ChangeLog-2017 698 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458
  1. 2017-12-31 Ruslan Kabatsayev <b7.10110111@gmail.com>
  2. * psymtab.c (recursively_search_psymtabs): Use pointer arithmetic
  3. instead of dereferencing std::vector past the end.
  4. 2017-12-30 Simon Marchi <simon.marchi@ericsson.com>
  5. * common/diagnostics.h
  6. (DIAGNOSTIC_IGNORE_SWITCH_DIFFERENT_ENUM_TYPES): Only
  7. define if the compiler knows about -Wenum-compare-switch.
  8. 2017-12-30 Simon Marchi <simon.marchi@ericsson.com>
  9. * dwarf2read.c (dwarf_decode_macro_bytes): Ignore
  10. -Wenum-compare-switch warning.
  11. (dwarf_decode_macros): Likewise.
  12. 2017-12-30 Tom Tromey <tom@tromey.com>
  13. Simon Marchi <simon.marchi@ericsson.com>
  14. * stap-probe.h (struct stap_parse_info): Add constructor,
  15. destructor.
  16. * stap-probe.c (stap_parse_argument): Update.
  17. * rust-exp.y (rust_lex_tests): Update.
  18. * parser-defs.h (struct parser_state): Add constructor,
  19. destructor, release method.
  20. <expout>: Change type to expression_up.
  21. (null_post_parser): Change type.
  22. (initialize_expout, reallocate_expout): Remove.
  23. * parse.c (parser_state::parser_state): Rename from
  24. initialize_expout.
  25. (parser_state::release): Rename from reallocate_expout.
  26. (write_exp_elt, parse_exp_in_context_1, increase_expout_size):
  27. Update.
  28. (null_post_parser): Change type of "exp".
  29. * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
  30. * ada-lang.c (resolve, resolve_subexp)
  31. (replace_operator_with_call): Change type of "expp".
  32. * language.h (struct language_defn) <la_post_parser>: Change type
  33. of "expp".
  34. 2017-12-30 Simon Marchi <simon.marchi@ericsson.com>
  35. * dwarf2read.c (struct mapped_debug_names): Make final.
  36. (struct mapped_index): Make final.
  37. 2017-12-29 Simon Marchi <simon.marchi@ericsson.com>
  38. * common/diagnostics.h
  39. (DIAGNOSTIC_IGNORE_SWITCH_DIFFERENT_ENUM_TYPES): New macro.
  40. * amd64-linux-tdep.c (amd64_canonicalize_syscall): Use it.
  41. 2017-12-29 Simon Marchi <simon.marchi@ericsson.com>
  42. * linux-thread-db.c (thread_db_detach): Remove call to
  43. delete_thread_db_info.
  44. 2017-12-28 Simon Marchi <simon.marchi@polymtl.ca>
  45. * target.h (enum target_object) <TARGET_OBJECT_HPUX_UREGS,
  46. TARGET_OBJECT_HPUX_SOLIB_GOT>: Remove.
  47. 2017-12-27 Franck Jullien <franck.jullien@gmail.com>
  48. Stafford Horne <shorne@gmail.com>
  49. * target-descriptions.c (tdesc_register_in_reggroup_p): Support
  50. arbitrary strings.
  51. (tdesc_use_registers): Add logic to register new reggroups.
  52. (tdesc_reg::group): Update comment to indicate we allow
  53. arbitrary strings.
  54. * NEWS (Changes since GDB 8.0): Announce that GDB supports
  55. arbitrary reggroups.
  56. 2017-12-27 Stafford Horne <shorne@gmail.com>
  57. * reggroups.c (reggroup_gdbarch_new): New function.
  58. (reggroup_find): New function.
  59. * reggroups.h (reggroup_gdbarch_new): New function.
  60. (reggroup_find): New function.
  61. 2017-12-27 Stafford Horne <shorne@gmail.com>
  62. * reggroups.c (reggroups_init): Change to depend only on
  63. obstack rather than gdbarch.
  64. (reggroup_add): Remove logic for forcing premature init.
  65. (_initialize_reggroup): Set `reggroups_data` with
  66. gdbarch_data_register_pre_init() rather than
  67. gdbarch_data_register_post_init().
  68. 2017-12-27 Stafford Horne <shorne@gmail.com>
  69. * infcmd.c (_initialize_infcmd): Add help for info reg $reggroup
  70. and info all-registers $reggroup feature.
  71. 2017-12-23 Simon Marchi <simon.marchi@polymtl.ca>
  72. * target-descriptions.c (print_c_tdesc)
  73. <printf_field_type_assignment>: Add ATTRIBUTE_PRINTF.
  74. 2017-12-21 Simon Marchi <simon.marchi@ericsson.com>
  75. Sergio Durigan Junior <sergiodj@redhat.com>
  76. * target-descriptions.c (print_c_tdesc) <visit>: Don't output
  77. field_type declaration, use printf_field_type_assignment
  78. instead.
  79. <printf_field_type_assignment>: New method.
  80. * features/aarch64-core.c, features/aarch64-fpu.c
  81. features/arc-arcompact.c, features/arc-v2.c,
  82. features/arm/arm-with-iwmmxt.c, features/i386/32bit-core.c,
  83. features/i386/32bit-mpx.c, features/i386/32bit-sse.c,
  84. features/i386/64bit-avx512.c, features/i386/64bit-core.c,
  85. features/i386/64bit-mpx.c, features/i386/64bit-sse.c,
  86. features/i386/x32-core.c, features/or1k.c,
  87. features/rs6000/powerpc-7400.c,
  88. features/rs6000/powerpc-altivec32.c,
  89. features/rs6000/powerpc-altivec32l.c,
  90. features/rs6000/powerpc-altivec64.c,
  91. features/rs6000/powerpc-altivec64l.c,
  92. features/rs6000/powerpc-cell32l.c,
  93. features/rs6000/powerpc-cell64l.c,
  94. features/rs6000/powerpc-isa205-altivec32l.c,
  95. features/rs6000/powerpc-isa205-altivec64l.c,
  96. features/rs6000/powerpc-isa205-vsx32l.c,
  97. features/rs6000/powerpc-isa205-vsx64l.c,
  98. features/rs6000/powerpc-vsx32.c,
  99. features/rs6000/powerpc-vsx32l.c,
  100. features/rs6000/powerpc-vsx64.c,
  101. features/rs6000/powerpc-vsx64l.c, features/s390-gs-linux64.c,
  102. features/s390-tevx-linux64.c, features/s390-vx-linux64.c,
  103. features/s390x-gs-linux64.c, features/s390x-tevx-linux64.c,
  104. features/s390x-vx-linux64.c: Re-generate.
  105. 2017-12-20 Uros Bizjak <ubizjak@gmail.com>
  106. * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Remove
  107. write-only assignment to "insn" variable.
  108. 2017-12-20 Ulrich Weigand <uweigand@de.ibm.com>
  109. * spu-tdep.c (spu_gdbarch_init): Set set_gdbarch_significant_addr_bit
  110. to 64 bits.
  111. (ppc_linux_init_abi): Likewise, if Cell/B.E. is supported.
  112. 2017-12-18 Joel Brobecker <brobecker@adacore.com>
  113. * ada-lang.c (ada_to_fixed_type_1): Rethrow errors with
  114. a more detailed exception message when getting an exception
  115. while trying to read the value of an XVZ variable.
  116. * ada-valprint.c (ada_val_print): Only catch RETURN_MASK_ERROR
  117. exceptions. Print an error message when an exception is caught.
  118. 2017-12-18 Joel Brobecker <brobecker@adacore.com>
  119. * ada-lang.c (assign_component): Strip any TYPE_CODE_TYPEDEF
  120. layer from lhs' type.
  121. (assign_aggregate): Likewise.
  122. 2017-12-18 Xavier Roirand <roirand@adacore.com>
  123. * ada-lang.c (ada_convert_actual): Change the way actual value
  124. are passed to the inferior when the inferior expects a pointer type.
  125. 2017-12-17 Stafford Horne <shorne@gmail.com>
  126. * or1k-tdep.c (show_or1k_debug): Fix function parameter alignment.
  127. (or1k_analyse_inst): Likewise.
  128. (or1k_single_step_through_delay): Likewise.
  129. (or1k_frame_cache): Fix parameter alignment and use paddress()
  130. instead of %x.
  131. 2017-12-17 Stafford Horne <shorne@gmail.com>
  132. * NEWS (Changes since GDB 8.0): Mention new or1k target and new
  133. commands to set/show or1k debug.
  134. 2017-12-15 Sergio Durigan Junior <sergiodj@redhat.com>
  135. * typeprint.c (whatis_exp): Fix ARI warning and reindent "if"
  136. condition.
  137. 2017-12-15 Sergio Durigan Junior <sergiodj@redhat.com>
  138. Pedro Alves <palves@redhat.com>
  139. PR cli/16224
  140. * NEWS (Changes since GDB 8.0): Mention new '/o' flag.
  141. * c-typeprint.c (OFFSET_SPC_LEN): New define.
  142. (c_type_print_varspec_prefix): New argument 'struct
  143. print_offset_data *'.
  144. (c_type_print_base_1): New function and prototype.
  145. (c_print_type_1): New function, with code from 'c_print_type'.
  146. (c_print_type): Use 'c_print_type_1'.
  147. (c_type_print_varspec_prefix): New argument 'struct
  148. print_offset_data *'. Use it. Call 'c_type_print_base_1'
  149. instead of 'c_print_type_base'.
  150. (print_spaces_filtered_with_print_options): New function.
  151. (output_access_specifier): Take new argument FLAGS. Modify
  152. function to call 'print_spaces_filtered_with_print_options'.
  153. (c_print_type_vtable_offset_marker): New function.
  154. (c_print_type_union_field_offset): New function.
  155. (c_print_type_struct_field_offset): New function.
  156. (c_print_type_no_offsets): New function.
  157. (c_type_print_base_struct_union): New argument 'struct
  158. print_offset_data *'. Print offsets and sizes for
  159. struct/union/class fields.
  160. * typeprint.c (const struct type_print_options
  161. type_print_raw_options): Initialize 'print_offsets'.
  162. (static struct type_print_options default_ptype_flags):
  163. Likewise.
  164. (struct print_offset_data print_offset_default_data): New
  165. variable.
  166. (whatis_exp): Handle '/o' option.
  167. (_initialize_typeprint): Add '/o' flag to ptype's help.
  168. * typeprint.h (struct print_offset_data): New struct.
  169. (struct type_print_options) <print_offsets>: New field.
  170. 2017-12-15 Sergio Durigan Junior <sergiodj@redhat.com>
  171. * c-typeprint.c (need_access_label_p): New function.
  172. (c_type_print_base_struct_union): New function.
  173. (c_type_print_base): Move code to handle
  174. TYPE_CODE_{STRUCT,UNION} to the functions mentioned above.
  175. 2017-12-15 Richard Henderson <rth@redhat.com>
  176. Uros Bizjak <ubizjak@gmail.com>
  177. PR gdb/19061
  178. * alpha-tdep.c (alpha_software_single_step): Call
  179. alpha_deal_with_atomic_sequence here.
  180. (set_gdbarch_software_single_step): Set to
  181. alpha_software_single_step.
  182. * nat/linux-ptrace.h [__alpha__]: Define GDB_ARCH_IS_TRAP_BRKPT
  183. and GDB_ARCH_IS_TRAP_HWBKPT.
  184. 2017-12-15 Yao Qi <yao.qi@linaro.org>
  185. * unittests/memory-map-selftests.c: Wrap test with HAVE_LIBEXPAT.
  186. 2017-12-15 Xavier Roirand <roirand@adacore.com>
  187. * ada-lang.c (ada_value_primitive_field): Handle field search
  188. in case of homonyms.
  189. (find_struct_field): Ditto.
  190. (ada_search_struct_field): Ditto.
  191. (ada_value_struct_elt): Ditto.
  192. (ada_lookup_struct_elt_type): Ditto.
  193. 2017-12-14 Simon Marchi <simon.marchi@ericsson.com>
  194. * python/py-breakpoint.c (bppy_init): Use 'O' format specifier
  195. for "qualified" and use PyObject_IsTrue.
  196. 2017-12-14 Jan Kratochvil <jan.kratochvil@redhat.com>
  197. * dwarf2read.c (dw2_debug_names_iterator::next): Support
  198. DW_IDX_type_unit.
  199. (debug_names::dwarf5_offset_size, unit_kind): New.
  200. (debug_names::insert): Add parameter kind.
  201. (debug_names::build): Support DW_IDX_type_unit.
  202. (debug_names::recursively_write_psymbols): Update
  203. (debug_names::write_psymbols caller.
  204. (debug_names::write_one_signatured_type_data)
  205. (debug_names::write_one_signatured_type): New.
  206. (debug_names::index_key, debug_names::symbol_value)
  207. (debug_names::write_psymbols): Add kind.
  208. (debug_names::write_one_signatured_type): New.
  209. (write_debug_names): Move dwarf5_offset_size to debug_names.
  210. Use debug_names::write_one_signatured_type for type units.
  211. 2017-12-14 Joel Brobecker <brobecker@adacore.com>
  212. * ada-lang.c (ada_value_equal): Add handling of typedef types
  213. when comparing array objects.
  214. 2017-12-14 Joel Brobecker <brobecker@adacore.com>
  215. * ada-tasks.c (read_atcb): Properly set task_info->ptid
  216. when !target_has_execution as well.
  217. (task_command): Remove error when !target_has_execution.
  218. 2017-12-13 Simon Marchi <simon.marchi@ericsson.com>
  219. * location.h (string_to_event_location): Add match_type
  220. parameter.
  221. * location.c (string_to_event_location): Likewise.
  222. * python/py-breakpoint.c (bppy_init): Handle qualified
  223. parameter.
  224. 2017-12-13 Pedro Alves <palves@redhat.com>
  225. * completer.c (completion_tracker::maybe_add_completion): New
  226. 'text' and 'word' parameters. Use make_completion_match_str.
  227. (completion_tracker::add_completion): New 'text' and 'word'
  228. parameters. Pass down.
  229. (completion_tracker::recompute_lowest_common_denominator): Change
  230. parameter type to gdb::unique_xmalloc_ptr rval ref. Adjust.
  231. * completer.h (completion_tracker::add_completion): New 'text' and
  232. 'word' parameters.
  233. (completion_tracker::recompute_lowest_common_denominator): Change
  234. parameter type to gdb::unique_xmalloc_ptr rval ref.
  235. (completion_tracker::recompute_lowest_common_denominator): Change
  236. parameter type to gdb::unique_xmalloc_ptr rval ref.
  237. * symtab.c (completion_list_add_name): Pass down 'text' and 'word'
  238. as well.
  239. 2017-12-13 Pedro Alves <palves@redhat.com>
  240. * cli/cli-decode.c (complete_on_cmdlist, complete_on_enum): Use
  241. make_completion_match_str.
  242. * completer.c: Use gdb::unique_xmalloc_ptr and
  243. make_completion_match_str.
  244. (make_completion_match_str_1): New.
  245. (make_completion_match_str(const char *, const char *,
  246. const char *)): New.
  247. (make_completion_match_str(gdb::unique_xmalloc_ptr<char> &&,
  248. const char *, const char *)): New.
  249. * completer.h (make_completion_match_str(const char *,
  250. const char *, const char *)): New.
  251. (make_completion_match_str(gdb::unique_xmalloc_ptr<char> &&,
  252. const char *, const char *)): New.
  253. * interps.c (interpreter_completer): Use make_completion_match_str.
  254. * symtab.c (completion_list_add_name, add_filename_to_list): Use
  255. make_completion_match_str.
  256. 2017-12-13 Stafford Horne <shorne@gmail.com>
  257. * or1k-tdep.c (or1k_analyse_inst): Use _() wrapper for message
  258. strings.
  259. (or1k_unwind_pc): Use paddress() instead of %p.
  260. (or1k_unwind_sp): Likewise.
  261. (or1k_frame_cache): Use host_address_to_string()/paddress()
  262. instead of %p and use _() wrapper for message strings.
  263. 2017-12-13 Simon Marchi <simon.marchi@ericsson.com>
  264. * contrib/ari/gdb_ari.sh: Fix typo in help.
  265. 2017-12-13 Joel Brobecker <brobecker@adacore.com>
  266. * event-top.c (handle_line_of_input): Set server_command.
  267. 2017-12-12 Stafford Horne <shorne@gmail.com>
  268. Stefan Wallentowitz <stefan@wallentowitz.de>
  269. Stefan Kristiansson <stefan.kristiansson@saunalahti.fi>
  270. Franck Jullien <franck.jullien@gmail.com>
  271. Jeremy Bennett <jeremy.bennett@embecosm.com>
  272. * configure.tgt: Add targets for or1k and or1knd.
  273. * or1k-tdep.c: New file.
  274. * or1k-tdep.h: New file.
  275. * features/Makefile: Add or1k.xml to build.
  276. * features/or1k.xml: New file.
  277. * features/or1k-core.xml: New file.
  278. * features/or1k.c: Generated.
  279. 2017-12-12 Alan Modra <amodra@gmail.com>
  280. PR tdep/22576
  281. * ppc64-tdep.c (ppc64_plt_entry_point): Rewrite to take TOC-relative
  282. PLT offset, and retrieve r2 from stack when executing in reverse.
  283. (ppc64_standard_linkage1_target): Drop pc param. Calculate offset
  284. rather than PLT address.
  285. (ppc64_standard_linkage2_target): Likewise.
  286. (ppc64_standard_linkage3_target): Likewise.
  287. (ppc64_standard_linkage4_target): Likewise.
  288. (ppc64_skip_trampoline_code_1): Adjust to suit.
  289. 2017-12-11 Simon Marchi <simon.marchi@ericsson.com>
  290. PR gdb/22556
  291. * remote.c (remote_thread_name): Return NULL if name is empty.
  292. (remote_threads_extra_info): Return NULL if extra info is empty.
  293. 2017-12-11 Pedro Alves <palves@redhat.com>
  294. * defs.h (elf_sym_fns_lazy_psyms, elf_sym_fns_gdb_index)
  295. (elf_sym_fns_debug_names): Move to elfread.c.
  296. * dwarf2read.c (dwarf2_initialize_objfile): Return a boolean
  297. instead of a sym_fns and add 'index_kind' output parameter. Fill
  298. the latter in with the index variant kind if using an index.
  299. (enum dw_index_kind): Moved to symfile.h.
  300. * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_debug_names)
  301. (elf_sym_fns_lazy_psyms): Move from defs.h.
  302. (elf_symfile_read): Adjust to new dwarf2_initialize_objfile
  303. interface.
  304. * symfile.h (enum class dw_index_kind): New, moved from
  305. dwarf2read.c.
  306. (dwarf2_initialize_objfile): Change prototype.
  307. 2017-12-11 Ulrich Weigand <uweigand@de.ibm.com>
  308. * target-float.c (mpfr_float_ops::from_target): Use mpfr_set_ui
  309. instead of mpfr_set_si to convert mantissa bits.
  310. 2017-12-11 Xavier Roirand <roirand@adacore.com>
  311. Joel Brobecker <brobecker@adacore.com>
  312. * ada-lang.c (ada_tag_value_at_base_address): Change the way
  313. tagged type base address is computed.
  314. (enum ada_primitive_types) <ada_primitive_type_storage_offset>:
  315. New enumerate.
  316. (ada_language_arch_info): Set the ada_primitive_type_storage_offset
  317. element of lai->primitive_type_vector.
  318. 2017-12-08 Pedro Alves <palves@redhat.com>
  319. * dwarf2read.c (mock_mapped_index): Reimplement as an extension of
  320. mapped_index_base.
  321. (check_match): Adjust to use mock_index directly.
  322. (check_find_bounds_finds)
  323. (test_mapped_index_find_name_component_bounds): Adjust to work
  324. with a mapped_index_base.
  325. 2017-12-08 Pedro Alves <palves@redhat.com>
  326. * dwarf2read.c (struct mapped_index_base): New, partially factored
  327. out from ...
  328. (struct mapped_index): ... this. Inherit mapped_index_base.
  329. (mapped_index::symbol_name_slot_invalid):
  330. (mapped_index::symbol_name_at): Add override marker.
  331. (mapped_index::symbol_name_count): New.
  332. (struct mapped_debug_names): Inherit mapped_index_base.
  333. (mapped_debug_names::symbol_name_at): New.
  334. (mapped_debug_names::symbol_name_count): New.
  335. (mapped_index::find_name_components_bounds): Rename to ...
  336. (mapped_index_base::find_name_components_bounds): ... this.
  337. (mapped_index::build_name_components): Rename to ...
  338. (mapped_index_base::build_name_components): ... this. Adjust to
  339. use mapped_index_base::symbol_name_count and
  340. mapped_index_base::symbol_name_slot_invalid.
  341. (dw2_expand_symtabs_matching_symbol): Take a mapped_index_base
  342. instead of a mapped_index. Use
  343. dw2_expand_symtabs_matching_symbol.
  344. 2017-12-08 Pedro Alves <palves@redhat.com>
  345. * dwarf2read.c (mapped_index::symbol_table_slot): New.
  346. (mapped_index::address_table): Now a gdb::array_view of const
  347. gdb_byte.
  348. (mapped_index::symbol_table): Now a gdb::array_view of
  349. symbol_table_slot.
  350. (mapped_index::address_table_size)
  351. (mapped_index::symbol_table_slots): Delete.
  352. (create_addrmap_from_index): Adjust.
  353. (find_slot_in_mapped_hash): Adjust.
  354. (read_index_from_section): Adjust.
  355. (dwarf2_read_index): Adjust.
  356. 2017-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
  357. Pedro Alves <palves@redhat.com>
  358. * defs.h (elf_sym_fns_debug_names): New declaration.
  359. * dwarf2read.c: Include "hash_enum.h".
  360. (mapped_debug_names): New.
  361. (struct dwarf2_per_objfile): Add debug_names, debug_aranges and
  362. debug_names_table.
  363. (dwarf2_elf_names): Add ".debug_names" and ".debug_aranges".
  364. (struct dwz_file): Add debug_names.
  365. (dwarf2_per_objfile::locate_sections): Handle debug_names and
  366. debug_aranges.
  367. (locate_dwz_sections): Handle debug_names.
  368. (create_signatured_type_table_from_debug_names)
  369. (create_addrmap_from_aranges): New.
  370. (dwarf2_read_index): Update function comment.
  371. (dwarf5_augmentation): Moved up.
  372. (read_debug_names_from_section, create_cus_from_debug_names_list)
  373. (create_cus_from_debug_names, dwarf2_read_debug_names): New.
  374. (dwarf5_djb_hash): Moved up.
  375. (dw2_debug_names_iterator): New.
  376. (read_indirect_string_at_offset): New declaration.
  377. (mapped_debug_names::namei_to_name)
  378. (dw2_debug_names_iterator::find_vec_in_debug_names)
  379. (dw2_debug_names_iterator::next, dw2_debug_names_lookup_symbol)
  380. (dw2_debug_names_dump, dw2_debug_names_expand_symtabs_for_function)
  381. (dw2_debug_names_expand_symtabs_matching, dwarf2_debug_names_functions):
  382. New.
  383. (dwarf2_initialize_objfile): Return also elf_sym_fns_debug_names.
  384. (debug_names::djb_hash): Rename it to dwarf5_djb_hash.
  385. (debug_names::build): Update djb_hash caller.
  386. (write_debug_names): Move out and rename augmentation to
  387. dwarf5_augmentation.
  388. * elfread.c (elf_sym_fns_debug_names): New.
  389. * psymtab.h (dwarf2_debug_names_functions): New declaration.
  390. * symfile.h (struct dwarf2_debug_sections): Add debug_names and
  391. debug_aranges.
  392. * xcoffread.c (dwarf2_xcoff_names): Add debug_names and debug_aranges.
  393. 2017-12-08 Pedro Alves <palves@redhat.com>
  394. * common/hash_enum.h: New file.
  395. 2017-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
  396. * dwarf2read.c (create_cu_from_index_list): New from ...
  397. (create_cus_from_index_list): ... this function, use it.
  398. (dw_expand_symtabs_matching_file_matcher)
  399. (dw2_expand_symtabs_matching_one): New from ...
  400. (dw2_expand_symtabs_matching): ... this function, use them.
  401. 2017-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
  402. * defs.h (elf_sym_fns_lazy_psyms, elf_sym_fns_gdb_index): Move here
  403. declarations from elfread.c.
  404. (dwarf2_initialize_objfile): Change return value.
  405. * elfread.c (elf_sym_fns_lazy_psyms, elf_sym_fns_gdb_index): Move these
  406. declarations to defs.h.
  407. (elf_symfile_read): Adjust dwarf2_initialize_objfile caller.
  408. * symfile.h (dwarf2_initialize_objfile): Change return type.
  409. 2017-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
  410. Pedro Alves <palves@redhat.com>
  411. * contrib/gdb-add-index.sh (index): Rename to ...
  412. (index4): ... here.
  413. (index5, debugstr, debugstrmerge, debugstrerr): New variables.
  414. Support also .debug_names and .debug_str.
  415. * dwarf2read.c: Include cmath, set, list.
  416. (INDEX_SUFFIX): Rename to ...
  417. (INDEX4_SUFFIX): ... here.
  418. (INDEX5_SUFFIX, DEBUG_STR_SUFFIX): New.
  419. (file_write(FILE *, const void *, size_t)): New.
  420. (file_write(FILE *, const std::vector<Elem, Alloc> &)): New.
  421. (data_buf::append_unsigned_leb128, data_buf::empty): New.
  422. (data_buf::file_write): Use ::file_write.
  423. (data_buf::c_str, dwarf5_djb_hash, debug_names)
  424. (check_dwarf64_offsets): New.
  425. (psyms_seen_size, write_gdbindex): New from
  426. write_psymtabs_to_index code.
  427. (dwarf5_gdb_augmentation, write_debug_names, assert_file_size)
  428. (enum dw_index_kind): New.
  429. (write_psymtabs_to_index): New parameter index_kind. Support
  430. filename_str and out_file_str. Move code to write_gdbindex,
  431. possibly call write_debug_names.
  432. (save_gdb_index_command): New parameter -dwarf-5.
  433. (_initialize_dwarf2_read): Document the new parameter -dwarf-5.
  434. 2017-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
  435. Pedro Alves <palves@redhat.com>
  436. * contrib/cc-with-tweaks.sh: Change interpreter to bash, incl. initial
  437. comment.
  438. (GDB_ADD_INDEX): New variable.
  439. <$want_index>: Call $GDB_ADD_INDEX.
  440. 2017-12-08 Sergio Durigan Junior <sergiodj@redhat.com>
  441. * dtrace-probe.c (dtrace_process_dof_probe): Do not declare a new
  442. "expression_up" inside the TRY block.
  443. 2017-12-08 Yao Qi <yao.qi@linaro.org>
  444. * breakpoint.c (update_watchpoint): Call
  445. address_significant.
  446. 2017-12-08 Yao Qi <yao.qi@linaro.org>
  447. * breakpoint.c (adjust_breakpoint_address): Call
  448. address_significant.
  449. 2017-12-08 Yao Qi <yao.qi@linaro.org>
  450. * aarch64-tdep.c (aarch64_gdbarch_init): Install gdbarch
  451. significant_addr_bit.
  452. * gdbarch.sh (significant_addr_bit): New.
  453. * gdbarch.c, gdbarch.h: Re-generated.
  454. * target.c (memory_xfer_partial): Call address_significant.
  455. * utils.c (address_significant): New function.
  456. * utils.h (address_significant): Declare.
  457. 2017-12-08 Tom Tromey <tom@tromey.com>
  458. * printcmd.c (ui_printf): Update. Use std::vector.
  459. * common/format.h (struct format_piece): Add constructor.
  460. <string>: Now const.
  461. (class format_pieces): New class.
  462. (parse_format_string, free_format_pieces)
  463. (free_format_pieces_cleanup): Remove.
  464. * common/format.c (format_pieces::format_pieces): Rename from
  465. parse_format_string. Update.
  466. (free_format_pieces, free_format_pieces_cleanup): Remove.
  467. * breakpoint.c (parse_cmd_to_aexpr): Update. Use std::vector.
  468. * ax-gdb.h (gen_printf): Remove argument.
  469. * ax-gdb.c (gen_printf): Remove "frags" argument.
  470. (maint_agent_printf_command): Update. Use std::vector.
  471. 2017-12-08 Yao Qi <yao.qi@linaro.org>
  472. PR breakpionts/22567
  473. * linespec.c (minsym_found): Set sal.section.
  474. 2017-12-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
  475. * configure.tgt (s390*-*-linux*): Add symfile-mem.o.
  476. 2017-12-07 Keith Seitz <keiths@redhat.com>
  477. PR breakpoints/22569
  478. * location.c (string_to_explicit_location): When terminating
  479. parsing early, break out of enclosing loop instead of returning.
  480. 2017-12-07 Keith Seitz <keiths@redhat.com>
  481. * NEWS (New commands): Mention set/show print type nested-type-limit.
  482. * c-typeprint.c (c_type_print_base): Print out nested types.
  483. * dwarf2read.c (struct typedef_field_list): Rename to ...
  484. (struct decl_field_list): ... this. Change all uses.
  485. (struct field_info) <nested_types_list, nested_types_list_count>:
  486. New fields.
  487. (add_partial_symbol): Look for nested type definitions in C++, too.
  488. (dwarf2_add_typedef): Rename to ...
  489. (dwarf2_add_type_defn): ... this.
  490. (type_can_define_types): New function.
  491. Update assertion to use type_can_define_types.
  492. Permit NULL for a field's name.
  493. (process_structure_scope): Handle child DIEs of types that can
  494. define types.
  495. Copy the list of nested types into the type struct.
  496. * gdbtypes.h (struct typedef_field): Rename to ...
  497. (struct decl_field): ... this. Change all uses.
  498. [is_protected, is_private]: New fields.
  499. (struct cplus_struct_type) <nested_types, nested_types_count>: New
  500. fields.
  501. (TYPE_NESTED_TYPES_ARRAY, TYPE_NESTED_TYPES_FIELD)
  502. (TYPE_NESTED_TYPES_FIELD_NAME, TYPE_NESTED_TYPES_FIELD_TYPE)
  503. (TYPE_NESTED_TYPES_COUNT, TYPE_NESTED_TYPES_FIELD_PROTECTED)
  504. (TYPE_NESTED_TYPES_FIELD_PRIVATE): New macros.
  505. * typeprint.c (type_print_raw_options, default_ptype_flags): Add
  506. default value for print_nested_type_limit.
  507. (print_nested_type_limit): New static variable.
  508. (set_print_type_nested_types, show_print_type_nested_types): New
  509. functions.
  510. (_initialize_typeprint): Register new commands for set/show
  511. `print-nested-type-limit'.
  512. * typeprint.h (struct type_print_options) [print_nested_type_limit]:
  513. New field.
  514. 2017-12-07 Tom Tromey <tom@tromey.com>
  515. PR breakpoints/22511:
  516. * breakpoint.c (commands_command_1): Don't throw an exception when
  517. no commands have been read.
  518. 2017-12-07 Adam Stylinski <adam.stylinski@etegent.com>
  519. PR c++/21222
  520. * target-descriptions.c (print_c_tdesc::visit_pre): Change type of
  521. range-for variable.
  522. 2017-12-07 Simon Marchi <simon.marchi@ericsson.com>
  523. * common/selftest.h (struct selftest): Add virtual destructor.
  524. 2017-12-07 Phil Muldoon <pmuldoon@redhat.com>
  525. * python/py-breakpoint.c (bppy_init): Use string_to_event_location
  526. over basic location code. Implement explicit location keywords.
  527. (bppy_init_validate_args): New function.
  528. * NEWS: Document Python explicit breakpoint locations.
  529. 2017-12-07 Joel Brobecker <brobecker@adacore.com>
  530. * MAINTAINERS: Restore target entries for m68hc11-elf,
  531. score-elf and xstormy16-elf, incorrectly removed in a previous
  532. patch meant to only update the list of active maintainers.
  533. 2017-12-06 Pedro Alves <palves@redhat.com>
  534. * break-catch-syscall.c (insert_catch_syscall)
  535. (remove_catch_syscall): Adjust to pass reference to
  536. inf_data->syscalls_counts directly via gdb::array_view.
  537. * fbsd-nat.c (fbsd_set_syscall_catchpoint): Adjust to use bool
  538. and gdb::array_view.
  539. * linux-nat.c (linux_child_set_syscall_catchpoint): Likewise.
  540. * remote.c (remote_set_syscall_catchpoint): Likewise.
  541. * target-debug.h (target_debug_print_bool): New.
  542. (define target_debug_print_gdb_array_view_const_int): New.
  543. * target-delegates.c: Regenerate.
  544. * target.h (target_ops) <to_set_syscall_catchpoint>: Use
  545. gdb::array_view and bool.
  546. (target_set_syscall_catchpoint): Likewise.
  547. 2017-12-06 Simon Marchi <simon.marchi@ericsson.com>
  548. * break-catch-syscall.c (catch_syscall_completer): Get pointers
  549. to syscall group strings after building the string vector.
  550. 2017-12-06 Pedro Alves <palves@redhat.com>
  551. * remote.c (remote_query_supported): Don't send "xmlRegisters=" if
  552. "qXfer:features:read"" is disabled.
  553. (remote_write_qxfer, remote_read_qxfer, remote_search_memory):
  554. Check packet_config_support instead of packet->support directly.
  555. 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
  556. * target-descriptions.c (struct tdesc_feature) <registers>: Use
  557. tdesc_reg_up typedef.
  558. (struct target_desc) <features>: Use tdesc_feature_up typedef.
  559. 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
  560. * target-descriptions.c (struct tdesc_type): Use default
  561. destructor.
  562. <u>: Remove.
  563. <accept>: Remove.
  564. (struct tdesc_type_builtin): New.
  565. (struct tdesc_type_vector): New.
  566. (struct tdesc_type_with_fields): New.
  567. (tdesc_predefined_types): Change type to tdesc_type_builtin[].
  568. (tdesc_gdb_type): Remove.
  569. (tdesc_register_type): Adjust.
  570. (tdesc_create_vector): Create tdesc_type_vector.
  571. (tdesc_create_struct): Create tdesc_type_with_fields.
  572. (tdesc_set_struct_size): Change parameter type.
  573. (tdesc_create_union): Create tdesc_type_with_fields.
  574. (tdesc_create_flags): Likewise.
  575. (tdesc_create_enum): Likewise.
  576. (tdesc_add_field): Change parameter type.
  577. (tdesc_add_typed_bitfield): Likewise.
  578. (tdesc_add_bitfield): Likewise.
  579. (tdesc_add_flag): Likewise.
  580. (tdesc_add_enum_value): Likewise.
  581. (print_c_tdesc) <visit>: Remove overload with tdesc_type
  582. parameter, add overloads for tdesc_type_builtin,
  583. tdesc_type_with_fields and tdesc_type_vector.
  584. <m_printed_type>: Remove.
  585. <m_printed_element_type, m_printed_type_with_fields>: Add.
  586. * target-descriptions.h (tdesc_create_enum): Change return type.
  587. (tdesc_add_typed_bitfield): Change parameter type.
  588. (tdesc_add_enum_value): Change parameter type.
  589. * xml-tdesc.c (struct tdesc_parsing_data) <current_type>: Change
  590. type to tdesc_type_with_fields.
  591. (tdesc_start_struct): Adjust.
  592. (tdesc_start_flags): Adjust.
  593. (tdesc_start_enum): Adjust.
  594. (tdesc_start_field): Adjust.
  595. * arch/tdesc.h (struct tdesc_type_builtin): Forward-declare.
  596. (struct tdesc_type_vector): Forward-declare.
  597. (struct tdesc_type_with_fields): Forward-declare.
  598. (tdesc_create_struct): Change return type.
  599. (tdesc_create_union): Likewise.
  600. (tdesc_create_flags): Likewise.
  601. (tdesc_add_field): Change parameter type.
  602. (tdesc_set_struct_size): Likewise.
  603. (tdesc_add_bitfield): Likewise.
  604. (tdesc_add_flag): Likewise.
  605. * features: Re-generate C files.
  606. 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
  607. * target-descriptions.c (tdesc_arch_reg): Remove typedef.
  608. (struct tdesc_arch_reg): Add constructor.
  609. (DEF_VEC_O (tdesc_arch_reg)): Remove.
  610. (struct tdesc_arch_data): Initialize fields.
  611. <arch_regs>: Change type to std::vector.
  612. (target_find_description): Adjust.
  613. (tdesc_find_type): Adjust.
  614. (tdesc_data_init): Call tdesc_arch_data constructor.
  615. (tdesc_data_alloc): Allocate tdesc_arch_data with new.
  616. (tdesc_data_cleanup): Free data with delete.
  617. (tdesc_numbered_register): Adjust.
  618. (tdesc_find_arch_register): Adjust.
  619. (tdesc_use_registers): Adjust.
  620. 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
  621. * target-descriptions.c (tdesc_type_field): Remove typedef.
  622. (DEF_VEC_O (tdesc_type_field)): Remove.
  623. (struct tdesc_type_field): Add constructor.
  624. <name>: Change type to std::string.
  625. (struct tdesc_type) <tdesc_type>: Instantiate vector if the type
  626. kind uses it.
  627. <~tdesc_type>: Destroy vector if the type kind uses it.
  628. <u::u::fields>: Change type to std::vector.
  629. (tdesc_gdb_type): Adjust.
  630. (tdesc_add_field): Adjust.
  631. (tdesc_add_typed_bitfield): Adjust.
  632. (tdesc_add_field): Adjust.
  633. (tdesc_add_enum_value): Adjust.
  634. (class print_c_tdesc) <visit>: Adjust.
  635. 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
  636. * target-descriptions.c (struct tdesc_type) <name>: Change type
  637. to std::string.
  638. <~tdesc_type>: Don't manually free name.
  639. <operator==>: Adjust.
  640. (tdesc_named_type): Adjust.
  641. (tdesc_find_type): Adjust.
  642. (tdesc_gdb_type): Adjust.
  643. (class print_c_tdesc) <visit>: Adjust.
  644. 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
  645. * target-descriptions.c (tdesc_type_p): Remove typedef.
  646. (DEF_VEC_P (tdesc_type_p)): Remove.
  647. (struct tdesc_feature) <types>: Change type to std::vector.
  648. <~tdesc_feature>: Replace with default implementation.
  649. <accept>: Adjust.
  650. (tdesc_named_type): Adjust.
  651. (tdesc_create_vector): Adjust.
  652. (tdesc_create_struct): Adjust.
  653. (tdesc_create_union): Adjust.
  654. (tdesc_create_flags): Adjust.
  655. (tdesc_create_enum): Adjust.
  656. 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
  657. * target-descriptions.c (struct tdesc_reg) <tdesc_reg>: Change
  658. type of name_ parameter, adjust to std::string change.
  659. <name, group, type>: Change type to std::string.
  660. <~tdesc_reg>: Replace with default implementation.
  661. <operator==>: Adjust.
  662. (tdesc_find_register_early): Adjust.
  663. (tdesc_register_name): Adjust.
  664. (tdesc_register_type): Adjust.
  665. (tdesc_register_in_reggroup_p): Adjust.
  666. (class print_c_tdesc) <visit>: Adjust.
  667. (class print_c_feature) <visit>: Adjust.
  668. * features/arc-arcompact.c: Re-generate.
  669. * features/arc-v2.c: Re-generate.
  670. 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
  671. * target-descriptions.c (tdesc_reg_p): Remove typedef.
  672. (DEF_VEC_P (tdesc_reg_p)): Remove.
  673. (struct tdesc_feature) <registers>: Change type to std::vector.
  674. <~tdesc_feature>: Don't manually free registers.
  675. <accept>: Adjust.
  676. <operator==>: Adjust.
  677. (tdesc_has_registers): Adjust.
  678. (tdesc_find_register_early): Adjust.
  679. (tdesc_use_registers): Adjust.
  680. (tdesc_create_reg): Adjust.
  681. 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
  682. * target-descriptions.c (tdesc_feature) <name>: Change type to
  683. std::string.
  684. <~tdesc_feature>: Don't manually free name.
  685. <operator==>: Adjust.
  686. (tdesc_find_feature): Adjust.
  687. (tdesc_feature_name): Adjust.
  688. (class print_c_tdesc) <visit_pre>: Adjust.
  689. (class print_c_feature) <visit_pre>: Adjust.
  690. 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
  691. * target-descriptions.c (tdesc_feature_p): Remove typedef.
  692. (DEF_VEC_P (tdesc_feature_p)): Remove.
  693. (struct target_desc) <features>: Change type to std::vector.
  694. <~target_desc>: Replace with default implementation.
  695. <accept>: Adjust.
  696. <operator==>: Adjust.
  697. (tdesc_has_registers): Adjust.
  698. (tdesc_find_feature): Adjust.
  699. (tdesc_use_registers): Adjust.
  700. (tdesc_create_feature): Adjust.
  701. 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
  702. * target-descriptions.c (arch_p): Remove typedef.
  703. (DEF_VEC_P (arch_p)): Remove.
  704. (struct target_desc) <compatible>: Change type to std::vector.
  705. <~target_desc>: Don't manually free compatible.
  706. (tdesc_compatible_p): Adjust.
  707. (tdesc_add_compatible): Adjust.
  708. (class print_c_tdesc) <visit_pre>: Adjust.
  709. 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
  710. * target-descriptions.c (property_s): Remove typedef.
  711. (DEF_VEC_O (property_s)): Remove.
  712. (struct target_desc) <properties>: Make an std::vector.
  713. <~target_desc>: Don't manually free properties.
  714. (tdesc_property): Adjust.
  715. (set_tdesc_property): Adjust.
  716. (class print_c_tdesc) <visit_pre>: Adjust.
  717. 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
  718. * common/gdb_assert.h (gdb_static_assert): Redefine using
  719. static_assert.
  720. 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
  721. * ada-lang.c (ada_collect_symbol_completion_matches): Remove
  722. unused variables.
  723. (ada_is_redundant_range_encoding): Likewise.
  724. * ada-varobj.c (ada_varobj_get_value_of_array_variable):
  725. Likewise.
  726. * alpha-tdep.c (alpha_software_single_step): Likewise.
  727. * arm-tdep.c (_initialize_arm_tdep): Likewise.
  728. * auto-load.c (info_auto_load_cmd): Likewise.
  729. * break-catch-syscall.c (insert_catch_syscall): Likewise.
  730. (remove_catch_syscall): Likewise.
  731. * breakpoint.c (condition_completer): Likewise.
  732. (clear_command): Likewise.
  733. (update_breakpoint_locations): Likewise.
  734. * btrace.c (btrace_disable): Likewise.
  735. (btrace_teardown): Likewise.
  736. (btrace_maint_update_pt_packets): Likewise.
  737. (maint_btrace_clear_cmd): Likewise.
  738. * cli/cli-decode.c (lookup_cmd_1): Likewise.
  739. (lookup_cmd_composition): Likewise.
  740. * cli/cli-dump.c (scan_filename): Likewise.
  741. (restore_command): Likewise.
  742. * compile/compile-loc2c.c (compute_stack_depth): Likewise.
  743. * compile/compile-object-load.c (compile_object_load): Likewise.
  744. * compile/compile-object-run.c (compile_object_run): Likewise.
  745. * compile/compile.c (compile_to_object): Likewise.
  746. * completer.c (filename_completer): Likewise.
  747. (complete_files_symbols): Likewise.
  748. (complete_expression): Likewise.
  749. * corelow.c (core_open): Likewise.
  750. * ctf.c (ctf_start): Likewise.
  751. (ctf_write_status): Likewise.
  752. (ctf_write_uploaded_tsv): Likewise.
  753. (ctf_write_definition_end): Likewise.
  754. (ctf_open_dir): Likewise.
  755. (ctf_xfer_partial): Likewise.
  756. (ctf_trace_find): Likewise.
  757. * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
  758. Likewise.
  759. * dwarf2loc.c (allocate_piece_closure): Likewise.
  760. (indirect_pieced_value): Likewise.
  761. (dwarf2_evaluate_loc_desc_full): Likewise.
  762. * dwarf2read.c (dw2_expand_marked_cus): Likewise.
  763. (dw2_expand_symtabs_matching): Likewise.
  764. (dw2_map_symbol_filenames): Likewise.
  765. (read_and_check_comp_unit_head): Likewise.
  766. (read_cutu_die_from_dwo): Likewise.
  767. (lookup_dwo_unit): Likewise.
  768. (read_comp_units_from_section): Likewise.
  769. (dwarf2_compute_name): Likewise.
  770. (handle_DW_AT_stmt_list): Likewise.
  771. (create_cus_hash_table): Likewise.
  772. (create_dwp_v2_section): Likewise.
  773. (dwarf2_rnglists_process): Likewise.
  774. (dwarf2_ranges_process): Likewise.
  775. (dwarf2_record_block_ranges): Likewise.
  776. (is_vtable_name): Likewise.
  777. (read_formatted_entries): Likewise.
  778. (skip_form_bytes): Likewise.
  779. * elfread.c (elf_symtab_read): Likewise.
  780. * exec.c (exec_file_command): Likewise.
  781. * f-valprint.c (f_val_print): Likewise.
  782. (info_common_command_for_block): Likewise.
  783. * guile/guile.c (initialize_scheme_side): Likewise.
  784. * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Likewise.
  785. * guile/scm-cmd.c (cmdscm_completer): Likewise.
  786. (gdbscm_register_command_x): Likewise.
  787. * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
  788. * guile/scm-param.c (gdbscm_parameter_value): Likewise.
  789. * guile/scm-ports.c (file_port_magic): Likewise.
  790. * guile/scm-pretty-print.c (ppscm_search_pp_list): Likewise.
  791. (ppscm_pretty_print_one_value): Likewise.
  792. (ppscm_print_children): Likewise.
  793. * guile/scm-string.c (gdbscm_string_to_argv): Likewise.
  794. * guile/scm-symtab.c (gdbscm_sal_symtab): Likewise.
  795. * guile/scm-type.c (gdbscm_type_next_field_x): Likewise.
  796. * guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
  797. * i386-tdep.c (i386_register_reggroup_p): Likewise.
  798. * infcmd.c (run_command_1): Likewise.
  799. (until_next_fsm_clean_up): Likewise.
  800. * linespec.c (linespec_complete): Likewise.
  801. (find_label_symbols): Likewise.
  802. * m2-valprint.c (m2_val_print): Likewise.
  803. * memattr.c (require_user_regions): Likewise.
  804. (lookup_mem_region): Likewise.
  805. (disable_mem_command): Likewise.
  806. (mem_delete): Likewise.
  807. * mep-tdep.c (mep_register_name): Likewise.
  808. (mep_analyze_prologue): Likewise.
  809. * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Likewise.
  810. * mi/mi-interp.c (mi_on_sync_execution_done): Likewise.
  811. * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
  812. * microblaze-linux-tdep.c (microblaze_linux_init_abi): Likewise.
  813. * minidebug.c (lzma_open): Likewise.
  814. * minsyms.c (lookup_minimal_symbol): Likewise.
  815. * mips-linux-tdep.c (mips64_fill_fpregset): Likewise.
  816. * mips-tdep.c (mips_stub_frame_sniffer): Likewise.
  817. (mips_o64_return_value): Likewise.
  818. (mips_single_step_through_delay): Likewise.
  819. (_initialize_mips_tdep): Likewise.
  820. * nios2-tdep.c (nios2_push_dummy_call): Likewise.
  821. (nios2_software_single_step): Likewise.
  822. * parse.c (find_minsym_type_and_address): Likewise.
  823. * psymtab.c (psym_relocate): Likewise.
  824. * python/py-breakpoint.c (bppy_get_commands): Likewise.
  825. (gdbpy_breakpoint_modified): Likewise.
  826. * python/py-infevents.c (create_inferior_call_event_object):
  827. Likewise.
  828. * python/py-record-btrace.c (btpy_list_item): Likewise.
  829. * python/py-type.c (typy_str): Likewise.
  830. * python/py-value.c (valpy_call): Likewise.
  831. * python/python.c (do_start_initialization): Likewise.
  832. * record-btrace.c (record_btrace_insn_history_range): Likewise.
  833. (record_btrace_call_history_range): Likewise.
  834. (record_btrace_record_method): Likewise.
  835. (record_btrace_xfer_partial): Likewise.
  836. (btrace_get_frame_function): Likewise.
  837. * record-full.c (record_full_open): Likewise.
  838. * record.c (get_context_size): Likewise.
  839. * registry.h (DEFINE_REGISTRY): Likewise.
  840. * remote-fileio.c (remote_fileio_request): Likewise.
  841. * remote.c (remote_update_thread_list): Likewise.
  842. (remote_check_symbols): Likewise.
  843. (remote_commit_resume): Likewise.
  844. (remote_interrupt): Likewise.
  845. (remote_insert_breakpoint): Likewise.
  846. (compare_sections_command): Likewise.
  847. * rust-exp.y (super_name): Likewise.
  848. (lex_string): Likewise.
  849. (convert_ast_to_type): Likewise.
  850. (convert_ast_to_expression): Likewise.
  851. * rust-lang.c (rust_print_struct_def): Likewise.
  852. (rust_print_type): Likewise.
  853. (rust_evaluate_subexp): Likewise.
  854. * rx-tdep.c (rx_register_type): Likewise.
  855. * ser-event.c (serial_event_clear): Likewise.
  856. * serial.c (serial_open): Likewise.
  857. * spu-tdep.c (spu_overlay_new_objfile): Likewise.
  858. * symfile.c (section_is_overlay): Likewise.
  859. (overlay_unmapped_address): Likewise.
  860. (overlay_mapped_address): Likewise.
  861. (simple_overlay_update_1): Likewise.
  862. (simple_overlay_update): Likewise.
  863. * symtab.c (symbol_find_demangled_name): Likewise.
  864. (search_symbols): Likewise.
  865. * target-descriptions.c (tdesc_predefined_type): Likewise.
  866. * target.c (target_commit_resume): Likewise.
  867. * thread.c (print_selected_thread_frame): Likewise.
  868. * top.c (new_ui_command): Likewise.
  869. (gdb_readline_no_editing): Likewise.
  870. * tracefile-tfile.c (tfile_open): Likewise.
  871. * tracepoint.c (create_tsv_from_upload): Likewise.
  872. * utils.c (quit): Likewise.
  873. (defaulted_query): Likewise.
  874. * valarith.c (value_concat): Likewise.
  875. * xml-syscall.c (xml_list_syscalls_by_group): Likewise.
  876. * xml-tdesc.c (target_fetch_description_xml): Likewise.
  877. * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
  878. (xtensa_pseudo_register_write): Likewise.
  879. 2017-12-04 Tom Tromey <tom@tromey.com>
  880. * NEWS: Mention Rust trait object inspection.
  881. 2017-12-04 Pedro Alves <palves@redhat.com>
  882. PR gdb/22499
  883. * amd64-tdep.c (amd64_insn::rex_offset): Rename to...
  884. (amd64_insn::enc_prefix_offset): ... this, and tweak comment.
  885. (vex2_prefix_p, vex3_prefix_p): New functions.
  886. (amd64_get_insn_details): Adjust to rename. Also skip VEX2 and
  887. VEX3 prefixes.
  888. (fixup_riprel): Set VEX3.!B.
  889. 2017-12-03 Simon Marchi <simon.marchi@ericsson.com>
  890. * target.h (mem_region_vector): Remove.
  891. (struct target_ops) <to_memory_map>: Change return type to
  892. std::vector<mem_region>.
  893. * target-debug.h (target_debug_print_mem_region_vector): Rename
  894. to ...
  895. (target_debug_print_std_vector_mem_region): ... this.
  896. * target-delegates.c: Re-generate.
  897. 2017-12-03 Pedro Alves <palves@redhat.com>
  898. * make-target-delegates (munge_type): Also munge '<', '>', and
  899. ':'. Avoid double underscores in identifiers, and trailing
  900. underscores.
  901. * target-debug.h
  902. (target_debug_print_VEC_static_tracepoint_marker_p__p): Rename to
  903. ...
  904. (target_debug_print_VEC_static_tracepoint_marker_p_p): ... this.
  905. * target-delegates.c: Regenerate.
  906. 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
  907. * common/poison.h (XDELETE): Fix typo.
  908. 2017-12-01 Andrew Cagney <cagney@redhat.com>
  909. Joel Brobecker <brobecker@adacore.com>
  910. Sergio Durigan Junior <sergiodj@redhat.com>
  911. * NEWS (Changes since GDB 8.0: Mention new '--readnever'
  912. feature.
  913. * coffread.c (coff_symfile_read): Do not map over sections with
  914. 'coff_locate_sections' if readnever is on.
  915. * dwarf2read.c (dwarf2_has_info): Return 0 if
  916. readnever is on.
  917. * elfread.c (elf_symfile_read): Do not map over sections with
  918. 'elf_locate_sections' if readnever is on.
  919. * main.c (validate_readnow_readnever): New function.
  920. (captured_main_1): Add support for --readnever.
  921. (print_gdb_help): Document --readnever.
  922. * objfile-flags.h (enum objfile_flag) <OBJF_READNEVER>: New
  923. flag.
  924. * symfile.c (readnever_symbol_files): New global.
  925. (symbol_file_add_with_addrs): Set 'OBJF_READNEVER' when
  926. 'READNEVER_SYMBOL_FILES' is set.
  927. (validate_readnow_readnever): New function.
  928. (symbol_file_command): Handle '-readnever' option.
  929. Call 'validate_readnow_readnever'.
  930. (add_symbol_file_command): Handle '-readnever' option.
  931. Call 'validate_readnow_readnever'.
  932. (_initialize_symfile): Document new '-readnever' option for
  933. both 'symbol-file' and 'add-symbol-file' commands.
  934. * top.h (readnever_symbol_files): New extern global.
  935. * xcoffread.c (xcoff_initial_scan): Do not read debug
  936. information if readnever is on.
  937. 2017-12-01 Sergio Durigan Junior <sergiodj@redhat.com>
  938. * symfile.c (symbol_file_command): Call
  939. 'symbol_file_add_main_1' only after processing all command
  940. line options.
  941. (add_symbol_file_command): Modify logic to make arguments
  942. position-independent.
  943. 2017-12-01 Joel Brobecker <brobecker@adacore.com>
  944. * ada-lang.c (symbol_list_obstack): Delete.
  945. (resolve_subexp): Make sure "candidates" gets xfree'ed.
  946. (ada_lookup_symbol_list_worker): Remove the limitation that
  947. the result is only good until the next call, now making it
  948. the responsibility of the caller to free the result when no
  949. longer needed. Adjust the function's intro comment accordingly.
  950. (ada_lookup_symbol_list): Adjust the function's intro comment.
  951. (ada_iterate_over_symbols): Make sure "results" gets xfree'ed.
  952. (ada_lookup_encoded_symbol, get_var_value): Likewise.
  953. (_initialize_ada_language): Remove symbol_list_obstack
  954. initialization.
  955. * ada-exp.y (block_lookup): Make sure "syms" gets xfree'ed.
  956. (write_var_or_type, write_name_assoc): Likewise.
  957. 2017-12-01 Tom Tromey <tom@tromey.com>
  958. * Makefile.in (all_deps_files): New variable.
  959. Include .Po files using all_deps_files.
  960. 2017-12-01 Joel Brobecker <brobecker@adacore.com>
  961. * MAINTAINERS: Update list of maintainers, moving those who
  962. stepped down or became inactive to the "Past Maintainers"
  963. section.
  964. 2017-11-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  965. * configure.ac Don't check for sys/fault.h, sys/syscall.h,
  966. sys/proc.h.
  967. (NEW_PROC_API): Remove.
  968. (prsysent_t, pr_sigset_t, pr_sigaction64_t, pr_siginfo64_t):
  969. Likewise.
  970. * common/common.m4 (GDB_AC_COMMON): Don't check for sys/syscall.h.
  971. * configure: Regenerate.
  972. * config.in: Regenerate.
  973. * gdbserver/configure: Regenerate.
  974. * gdbserver/config.in: Regenerate.
  975. * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Remove
  976. NEW_PROC_API test.
  977. * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Likewise.
  978. * linux-btrace.c: Remove HAVE_SYS_SYSCALL_H test.
  979. * proc-api.c: Remove !NEW_PROC_API support.
  980. Remove HAVE_SYS_PROC_H and HAVE_SYS_USER_H tests.
  981. Remove tests for macros always defined on Solaris.
  982. * proc-events.c: Remove !NEW_PROC_API support.
  983. Remove Remove HAVE_SYS_SYSCALL_H, HAVE_SYS_PROC_H and
  984. HAVE_SYS_USER_H tests.
  985. (init_syscall_table): Remove non-Solaris syscalls.
  986. Remove tests for syscalls present on all Solaris versions.
  987. Add missing Solaris 10+ syscalls.
  988. (signal_table): Remove non-Solaris signals.
  989. Remove tests for signals present on all Solaris versions.
  990. (fault_table): Remove non-Solaris faults.
  991. Remove tests for faults present on all Solaris versions.
  992. * proc-flags.c: Remove !NEW_PROC_API support.
  993. (pr_flag_table): Remove non-Solaris and pre-Solaris 7 comments.
  994. Remove non-Solaris flags.
  995. * proc-why.c: Remove !NEW_PROC_API support.
  996. (pr_why_table): Remove meaningless comments.
  997. Remove tests for reasons present on all Solaris versions.
  998. Remove OSF/1 cases.
  999. (proc_prettyfprint_why): Likewise.
  1000. * procfs.c: Remove !NEW_PROC_API and DYNAMIC_SYSCALLS support.
  1001. Remove HAVE_SYS_FAULT_H and HAVE_SYS_SYSCALL_H tests.
  1002. Remove WA_READ test, IRIX watchpoint support.
  1003. (gdb_sigset_t, gdb_sigaction_t, gdb_siginfo_t): Replace by base
  1004. types. Change users.
  1005. (gdb_praddset, gdb_prdelset, gdb_premptysysset, gdb_praddsysset)
  1006. (gdb_prdelset, gdb_pr_issyssetmember): Replace by base macros.
  1007. Change callers.
  1008. Remove CTL_PROC_NAME_FMT tests.
  1009. (gdb_prstatus_t, gdb_lwpstatus_t): Replace by base types. Change
  1010. users.
  1011. (sysset_t_size): Remove. Use sizeof (sysset_t) in callers.
  1012. Remove PROCFS_DONT_PIOCSSIG_CURSIG support.
  1013. (proc_modify_flag): Replace GDBRESET by PCUNSET.
  1014. Remove PR_ASYNC, PR_KLC tests.
  1015. (proc_unset_inherit_on_fork): Remove PR_ASYNC test.
  1016. (proc_parent_pid): Remove PCWATCH etc. tests.
  1017. (proc_set_watchpoint): Remove !PCWATCH && !PIOCSWATCH support.
  1018. Remove PCAGENT test.
  1019. (proc_get_nthreads) [PIOCNTHR && PIOCTLIST]: Remove.
  1020. Remove SYS_lwpcreate || SYS_lwp_create test.
  1021. (proc_get_current_thread): Likewise.
  1022. [PIOCNTHR && PIOCTLIST]: Remove.
  1023. [PIOCLSTATUS]: Remove.
  1024. (procfs_debug_inferior): Remove non-Solaris cases, conditionals.
  1025. [PRFS_STOPEXEC]: Remove.
  1026. (syscall_is_lwp_exit): Remove non-Solaris cases, conditionals.
  1027. (syscall_is_exit): Likewise.
  1028. (syscall_is_exec): Likewise.
  1029. (syscall_is_lwp_create): Likewise.
  1030. Remove SYS_syssgi support.
  1031. (procfs_wait): Remove PR_ASYNC, !PIOCSSPCACT tests.
  1032. [SYS_syssgi]: Remove.
  1033. Remove non-Solaris cases, conditionals.
  1034. (unconditionally_kill_inferior) [PROCFS_NEED_PIOCSSIG_FOR_KILL]:
  1035. Remove.
  1036. (procfs_init_inferior) [SYS_syssgi]: Remove.
  1037. (procfs_set_exec_trap) [PRFS_STOPEXEC]: Remove.
  1038. (procfs_inferior_created) [SYS_syssgi]: Remove.
  1039. (procfs_set_watchpoint): Remove !AIX5 test.
  1040. (procfs_stopped_by_watchpoint): Remove FLTWATCH test, FLTKWATCH
  1041. case.
  1042. (mappingflags) [MA_PHYS]: Remove.
  1043. (info_mappings_callback): Remove PCAGENT test.
  1044. Remove PIOCOPENLWP || PCAGENT test.
  1045. 2017-11-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  1046. * sol-thread.c (info_solthreads): Constify args.
  1047. Cast args to void *.
  1048. 2017-11-29 John Baldwin <jhb@FreeBSD.org>
  1049. * target-float.c [HAVE_LIBMPFR]: Define MPFR_USE_INTMAX_T.
  1050. 2017-11-29 Joel Brobecker <brobecker@adacore.com>
  1051. * ada-lang.c (to_fixed_range_type): Make sure that the size
  1052. of the range type being returned is the same as the size
  1053. of the range type being fixed.
  1054. 2017-11-29 Pedro Alves <palves@redhat.com>
  1055. PR c++/19436
  1056. * NEWS: Mention setting breakpoints on functions with C++ ABI
  1057. tags.
  1058. * completer.h (completion_match_for_lcd) <match,
  1059. mark_ignored_range>: New methods.
  1060. <finish>: Consider ignored ranges.
  1061. <clear>: Clear ignored ranges.
  1062. <m_ignored_ranges, m_finished_storage>: New fields.
  1063. * cp-support.c (cp_search_name_hash): Ignore ABI tags.
  1064. (cp_symbol_name_matches_1, cp_fq_symbol_name_matches): Pass the
  1065. completion_match_for_lcd pointer to strncmp_iw_with_mode.
  1066. (test_cp_symbol_name_cmp): Add [abi:...] tags unit tests.
  1067. * language.c (default_symbol_name_matcher): Pass the
  1068. completion_match_for_lcd pointer to strncmp_iw_with_mode.
  1069. * linespec.c (linespec_lexer_lex_string): Don't tokenize ABI tags.
  1070. * utils.c (skip_abi_tag): New function.
  1071. (strncmp_iw_with_mode): Add completion_match_for_lcd parameter.
  1072. Handle ABI tags.
  1073. * utils.h (strncmp_iw_with_mode): Add completion_match_for_lcd
  1074. parameter.
  1075. 2017-11-29 Pedro Alves <palves@redhat.com>
  1076. PR c++/19436
  1077. * NEWS: Mention setting breakpoints on functions with C++ ABI
  1078. tags.
  1079. * completer.h (completion_match_for_lcd) <match,
  1080. mark_ignored_range>: New methods.
  1081. <finish>: Consider ignored ranges.
  1082. <clear>: Clear ignored ranges.
  1083. <m_ignored_ranges, m_finished_storage>: New fields.
  1084. * cp-support.c (cp_search_name_hash): Ignore ABI tags.
  1085. (cp_symbol_name_matches_1, cp_fq_symbol_name_matches): Pass the
  1086. completion_match_for_lcd pointer to strncmp_iw_with_mode.
  1087. (test_cp_symbol_name_cmp): Add [abi:...] tags unit tests.
  1088. * language.c (default_symbol_name_matcher): Pass the
  1089. completion_match_for_lcd pointer to strncmp_iw_with_mode.
  1090. * linespec.c (linespec_lexer_lex_string): Don't tokenize ABI tags.
  1091. * utils.c (skip_abi_tag): New function.
  1092. (strncmp_iw_with_mode): Add completion_match_for_lcd parameter.
  1093. Handle ABI tags.
  1094. * utils.h (strncmp_iw_with_mode): Add completion_match_for_lcd
  1095. parameter.
  1096. 2017-11-29 Pedro Alves <palves@redhat.com>
  1097. * NEWS: Mention that breakpoints on C++ functions are now set on
  1098. on all namespaces/classes by default, and mention "break
  1099. -qualified".
  1100. * ax-gdb.c (agent_command_1): Adjust to pass a
  1101. symbol_name_match_type to new_linespec_location.
  1102. * breakpoint.c (parse_breakpoint_sals): Adjust to
  1103. get_linespec_location's return type change.
  1104. (strace_marker_create_sals_from_location): Adjust to pass a
  1105. symbol_name_match_type to new_linespec_location.
  1106. (strace_marker_decode_location): Adjust to get_linespec_location's
  1107. return type change.
  1108. (strace_command): Adjust to pass a symbol_name_match_type to
  1109. new_linespec_location.
  1110. (LOCATION_HELP_STRING): Add paragraph about wildmatching, and
  1111. mention "-qualified".
  1112. * c-lang.c (cplus_language_defn): Install cp_search_name_hash.
  1113. * completer.c (explicit_location_match_type::MATCH_QUALIFIED): New
  1114. enumerator.
  1115. (complete_address_and_linespec_locations): New parameter
  1116. 'match_type'. Pass it down.
  1117. (explicit_options): Add "-qualified".
  1118. (collect_explicit_location_matches): Pass the requested match type
  1119. to the linespec completers. Handle MATCH_QUALIFIED.
  1120. (location_completer): Handle "-qualified" combined with linespecs.
  1121. * cp-support.c (cp_search_name_hash): New.
  1122. (cp_symbol_name_matches_1): Implement wild matching for C++.
  1123. (cp_fq_symbol_name_matches): Reimplement.
  1124. (cp_get_symbol_name_matcher): Return different matchers depending
  1125. on the lookup name's match type.
  1126. (selftests::test_cp_symbol_name_matches): Add wild matching tests.
  1127. * cp-support.h (cp_search_name_hash): New declaration.
  1128. * dwarf2read.c
  1129. (selftests::dw2_expand_symtabs_matching::test_symbols): Add
  1130. symbols.
  1131. (test_dw2_expand_symtabs_matching_symbol): Add wild matching
  1132. tests.
  1133. * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Adjust to
  1134. pass a symbol_name_match_type to new_linespec_location.
  1135. * linespec.c (linespec_parse_basic): Lookup function symbols using
  1136. the parser's symbol name match type.
  1137. (convert_explicit_location_to_linespec): New
  1138. symbol_name_match_type parameter. Pass it down to
  1139. find_linespec_symbols.
  1140. (convert_explicit_location_to_sals): Pass the location's name
  1141. match type to convert_explicit_location_to_linespec.
  1142. (parse_linespec): New match_type parameter. Save it in the
  1143. parser.
  1144. (linespec_parser_new): Default to symbol_name_match_type::WILD.
  1145. (linespec_complete_function): New symbol_name_match_type
  1146. parameter. Use it.
  1147. (complete_linespec_component): Pass down the parser's recorded
  1148. name match type.
  1149. (linespec_complete_label): New symbol_name_match_type parameter.
  1150. Use it.
  1151. (linespec_complete): New symbol_name_match_type parameter. Save
  1152. it in the parser and pass it down. Adjust to
  1153. get_linespec_location's prototype change.
  1154. (find_function_symbols, find_linespec_symbols): New
  1155. symbol_name_match_type parameter. Pass it down instead of
  1156. assuming symbol_name_match_type::WILD.
  1157. * linespec.h (linespec_complete, linespec_complete_function)
  1158. (linespec_complete_label): New symbol_name_match_type parameter.
  1159. * location.c (event_location::linespec_location): Now a struct
  1160. linespec_location.
  1161. (EL_LINESPEC): Adjust.
  1162. (initialize_explicit_location): Default to
  1163. symbol_name_match_type::WILD.
  1164. (new_linespec_location): New symbol_name_match_type parameter.
  1165. Record it in the location.
  1166. (get_linespec_location): Now returns a struct linespec_location.
  1167. (new_explicit_location): Also copy func_name_match_type.
  1168. (explicit_to_string_internal)
  1169. (string_to_explicit_location): Handle "-qualified".
  1170. (copy_event_location): Adjust to LINESPEC_LOCATION type change.
  1171. Copy symbol_name_match_type fields.
  1172. (event_location_deleter::operator()): Adjust to LINESPEC_LOCATION
  1173. type change.
  1174. (event_location_to_string): Adjust to LINESPEC_LOCATION type
  1175. change. Handle "-qualfied".
  1176. (string_to_explicit_location): Handle "-qualified".
  1177. (string_to_event_location_basic): New symbol_name_match_type
  1178. parameter. Pass it down.
  1179. (string_to_event_location): Handle "-qualified".
  1180. * location.h (struct linespec_location): New.
  1181. (explicit_location::func_name_match_type): New field.
  1182. (new_linespec_location): Now returns a const linespec_location *.
  1183. (string_to_event_location_basic): New symbol_name_match_type
  1184. parameter.
  1185. (explicit_completion_info::saw_explicit_location_option): New
  1186. field.
  1187. * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Adjust to pass a
  1188. symbol_name_match_type to new_linespec_location.
  1189. * python/py-breakpoint.c (bppy_init): Likewise.
  1190. * python/python.c (gdbpy_decode_line): Likewise.
  1191. 2017-11-29 Pedro Alves <palves@redhat.com>
  1192. * ada-lang.c (ada_lookup_name_info::matches): Change type of
  1193. parameter from completion_match to completion_match_result.
  1194. Adjust.
  1195. (do_wild_match, do_full_match, ada_symbol_name_matches): Likewise.
  1196. * completer.c (completion_tracker::maybe_add_completion): Add
  1197. match_for_lcd parameter and use it.
  1198. (completion_tracker::add_completion): Likewise.
  1199. * completer.h (class completion_match_for_lcd): New class.
  1200. (completion_match_result::match_for_lcd): New field.
  1201. (completion_match_result::set_match): New method.
  1202. (completion_tracker): Add comments.
  1203. (completion_tracker::add_completion): Add match_for_lcd parameter.
  1204. (completion_tracker::reset_completion_match_result): Reset
  1205. match_for_lcd too.
  1206. (completion_tracker::maybe_add_completion): Add match_for_lcd
  1207. parameter.
  1208. (completion_tracker::m_lowest_common_denominator_unique): Extend
  1209. comments.
  1210. * cp-support.c (cp_symbol_name_matches_1)
  1211. (cp_fq_symbol_name_matches): Change type of parameter from
  1212. completion_match to completion_match_result. Adjust.
  1213. * language.c (default_symbol_name_matcher): Change type of
  1214. parameter from completion_match to completion_match_result.
  1215. Adjust.
  1216. * language.h (completion_match_for_lcd): Forward declare.
  1217. (default_symbol_name_matcher): Change type of parameter from
  1218. completion_match to completion_match_result.
  1219. * symtab.c (compare_symbol_name): Adjust.
  1220. (completion_list_add_name): Pass the match_for_lcd to the tracker.
  1221. * symtab.h (ada_lookup_name_info::matches): Change type of
  1222. parameter from completion_match to completion_match_result.
  1223. (symbol_name_matcher_ftype): Likewise, and update comments.
  1224. 2017-11-29 Pedro Alves <palves@redhat.com>
  1225. * linespec.c (minsym_found, add_minsym): Use msymbol_is_function.
  1226. * minsyms.c (msymbol_is_text): Delete.
  1227. (msymbol_is_function): New function.
  1228. * minsyms.h (msymbol_is_text): Delete.
  1229. (msymbol_is_function): New declaration.
  1230. * symtab.c (find_function_alias_target): Use msymbol_is_function.
  1231. 2017-11-29 Tom Tromey <tom@tromey.com>
  1232. * Makefile.in (distclean): Handle the case where rmdir fails.
  1233. 2017-11-29 Tom Tromey <tom@tromey.com>
  1234. * symfile.c (_initialize_symfile): Update usage text for
  1235. add-symbol-file, symbol-file, load.
  1236. 2017-11-29 Tom Tromey <tom@tromey.com>
  1237. * symfile.c (add_symbol_file_command): Error if some arguments to
  1238. -s are missing. Change unrecognized-argument error message.
  1239. (_initialize_symfile): Fix usage text for add-symbol-file.
  1240. 2017-11-27 Tom Tromey <tom@tromey.com>
  1241. * Makefile.in (REMOTE_OBS): Remove.
  1242. (SFILES): Remove remote sources.
  1243. (COMMON_SFILES): Add remote sources.
  1244. (ALLDEPFILES): Remove dcache.c.
  1245. 2017-11-27 Tom Tromey <tom@tromey.com>
  1246. * Makefile.in (SUBDIR_TARGET_SRCS, SUBDIR_TARGET_OBS): New
  1247. variables.
  1248. (SFILES): Use SUBDIR_TARGET_SRCS.
  1249. (COMMON_OBS): Use SUBDIR_TARGET_OBS. Remove waitstatus.o.
  1250. (CONFIG_SRC_SUBDIR): Add target.
  1251. (%.o): Remove target rule.
  1252. 2017-11-27 Tom Tromey <tom@tromey.com>
  1253. * Makefile.in (COMMON_OBS): Remove filename-seen-cache.o,
  1254. registry.o, thread-fsm.o, debug.o.
  1255. (COMMON_SFILES): Add filename-seen-cache.c, registry.c,
  1256. thread-fsm.c, debug.c.
  1257. 2017-11-27 Tom Tromey <tom@tromey.com>
  1258. * Makefile.in (COMMON_SFILES): New.
  1259. (SFILES): Move some entries to COMMON_SFILES.
  1260. (COMMON_OBS): Use COMMON_SFILES.
  1261. 2017-11-27 Tom Tromey <tom@tromey.com>
  1262. * Makefile.in (YYFILES): Update comment.
  1263. (YYOBJ): Redefine.
  1264. 2017-11-27 Tom Tromey <tom@tromey.com>
  1265. * Makefile.in (SUBDIR_PYTHON_OBS): Redefine.
  1266. (CONFIG_SRC_SUBDIR): Add python.
  1267. (%.o): Remove python rule.
  1268. (python/%.o): New rule.
  1269. * configure: Rebuild.
  1270. * configure.ac (CONFIG_OBS): Refer to python/python.o
  1271. 2017-11-27 Tom Tromey <tom@tromey.com>
  1272. * configure: Rebuild.
  1273. * configure.ac (CONFIG_OBS): Refer to guile/guile.o.
  1274. * Makefile.in (SUBDIR_GUILE_OBS): Redefine.
  1275. (CONFIG_SRC_SUBDIR): Add guile.
  1276. (%.o): Remove guile rule.
  1277. 2017-11-27 Tom Tromey <tom@tromey.com>
  1278. * Makefile.in (SUBDIR_UNITTESTS_OBS): Redefine.
  1279. (%.o): Remove unittests rule.
  1280. (CONFIG_SRC_SUBDIR): Add unittests.
  1281. 2017-11-27 Tom Tromey <tom@tromey.com>
  1282. * Makefile.in (SUBDIR_TUI_OBS): Redefine.
  1283. (CONFIG_SRC_SUBDIR): Add tui.
  1284. (%.o): Remove tui rule.
  1285. 2017-11-27 Tom Tromey <tom@tromey.com>
  1286. * Makefile.in (SUBDIR_GCC_COMPILE_OBS): Redefine.
  1287. (%.o): Remove compile rule.
  1288. (CONFIG_SRC_SUBDIR): Add compile.
  1289. 2017-11-27 Tom Tromey <tom@tromey.com>
  1290. * Makefile.in (SUBDIR_MI_OBS): Redefine.
  1291. (%.o): Remove mi rule.
  1292. (CONFIG_SRC_SUBDIR): Add mi.
  1293. (COMMON_OBS): Use mi/mi-common.o
  1294. 2017-11-27 Tom Tromey <tom@tromey.com>
  1295. * Makefile.in (SUBDIR_CLI_OBS): Redefine.
  1296. (%.o): Remove cli rule.
  1297. (CONFIG_SRC_SUBDIR): Add cli.
  1298. 2017-11-27 Tom Tromey <tom@tromey.com>
  1299. * configure.ac (CONFIG_SRC_SUBDIR): Don't subst.
  1300. * configure: Rebuild.
  1301. * Makefile.in (CONFIG_SRC_SUBDIR): Redefine.
  1302. (CONFIG_DEP_SUBDIR): New variable.
  1303. (%.o): Add order-only dependency.
  1304. ($(CONFIG_DEP_SUBDIR)): New target.
  1305. 2017-11-26 Dominik Czarnota <dominik.b.czarnota@gmail.com>
  1306. PR gdb/21945
  1307. * findcmd.c (_initialize_mem_search): Update find command help
  1308. text.
  1309. 2017-11-26 Simon Marchi <simon.marchi@polymtl.ca>
  1310. * python/python.c (do_start_initialization): Change progname
  1311. type to gdb::unique_xmalloc_ptr. Release the pointer when using
  1312. Python 2.
  1313. 2017-11-26 Tom Tromey <tom@tromey.com>
  1314. * common/format.h: Add include guards.
  1315. 2017-11-26 Tom Tromey <tom@tromey.com>
  1316. * nat/linux-personality.h (class
  1317. maybe_disable_address_space_randomization): New class.
  1318. (maybe_disable_address_space_randomization): Don't declare
  1319. function.
  1320. * nat/linux-personality.c (restore_personality)
  1321. (make_disable_asr_cleanup): Remove.
  1322. (maybe_disable_address_space_randomization): Now a constructor.
  1323. (~maybe_disable_address_space_randomization): New destructor.
  1324. * linux-nat.c (linux_nat_create_inferior): Update.
  1325. 2017-11-26 Tom Tromey <tom@tromey.com>
  1326. * gcore.c (write_gcore_file_1): Use gdb::unique_xmalloc_ptr.
  1327. 2017-11-26 Ulrich Weigand <uweigand@de.ibm.com>
  1328. * spu-tdep.c (spu_software_single_step): Access SPU_LSLR_REGNUM as
  1329. "cooked" register. Access only first four bytes of branch target
  1330. registers.
  1331. 2017-11-25 Sergio Durigan Junior <sergiodj@redhat.com>
  1332. PR gdb/22491
  1333. * stap-probe.c (relocate_address): New function.
  1334. (stap_probe::get_relocated_address): Use 'relocate_address'.
  1335. (stap_probe::set_semaphore): Use 'relocate_address' and pass
  1336. 'm_sem_addr'.
  1337. (stap_probe::clear_semaphore): Likewise.
  1338. 2017-11-25 Pedro Alves <palves@redhat.com>
  1339. * dictionary.c: Include "safe-ctype.h".
  1340. * minsyms.c: Include "safe-ctype.h".
  1341. * minsyms.c (SYMBOL_HASH_NEXT): Use TOLOWER instead of tolower.
  1342. 2017-11-25 Pedro Alves <palves@redhat.com>
  1343. * completer.c (complete_line_internal_1): Skip spaces until the
  1344. start of the command.
  1345. 2017-11-24 Pedro Alves <palves@redhat.com>
  1346. * cp-support.c (cp_symbol_name_matches_1): New, factored out from
  1347. cp_fq_symbol_name_matches. Pass language_cplus to
  1348. strncmp_with_mode.
  1349. (cp_fq_symbol_name_matches): Call cp_symbol_name_matches_1.
  1350. (selftests::test_cp_symbol_name_cmp): New.
  1351. (_initialize_cp_support): Register "cp_symbol_name_matches"
  1352. selftests.
  1353. * language.c (default_symbol_name_matcher): Pass language_minimal
  1354. to strncmp_iw_with_mode.
  1355. * utils.c: Include "cp-support.h" and <algorithm>.
  1356. (valid_identifier_name_char, cp_skip_operator_token, skip_ws)
  1357. (cp_is_operator): New functions.
  1358. (strncmp_iw_with_mode): Use them. Add language parameter. Don't
  1359. skip whitespace in the symbol name when the lookup name doesn't
  1360. have spaces, and vice versa.
  1361. (strncmp_iw, strcmp_iw): Pass language to strncmp_iw_with_mode.
  1362. * utils.h (strncmp_iw_with_mode): Add language parameter.
  1363. 2017-11-24 Joel Brobecker <brobecker@adacore.com>
  1364. * ada-lang.c (ada_exception_message_1, ada_exception_message):
  1365. New functions.
  1366. (print_it_exception): If available, display the exception
  1367. message as well.
  1368. * NEWS: Document new feature.
  1369. 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
  1370. * configure.nat <spu-linux>: Add fork-inferior.o to NATDEPFILES.
  1371. 2017-11-24 Philipp Rudo <prudo@linux.vnet.ibm.com>
  1372. * dtrace-probe.c (dtrace_probe::build_arg_exprs)
  1373. (dtrace_probe::is_enabled, dtrace_probe::enable)
  1374. (dtrace_probe::disable): Remove keyword 'struct' at for-range
  1375. variable
  1376. * probe.c (gen_ui_out_table_header_info)
  1377. (print_ui_out_not_applicables): Remove keyword 'struct' at
  1378. for-range variable
  1379. 2017-11-24 Alan Hayward <alan.hayward@arm.com>
  1380. * configure.tgt: Add arch/aarch64.o
  1381. 2017-11-24 Simon Marchi <simon.marchi@polymtl.ca>
  1382. * common/common-utils.h: Include poison.h.
  1383. (xfree): Remove declaration, add definition with static_assert.
  1384. * common/common-utils.c (xfree): Remove.
  1385. * common/poison.h (IsMallocatable): Define.
  1386. (IsFreeable): Define.
  1387. (free): Delete for non-freeable types.
  1388. (xnew): New.
  1389. (XNEW): Undef and redefine.
  1390. (xcnew): New.
  1391. (XCNEW): Undef and redefine.
  1392. (xdelete): New.
  1393. (XDELETE): Undef and redefine.
  1394. (xnewvec): New.
  1395. (XNEWVEC): Undef and redefine.
  1396. (xcnewvec): New.
  1397. (XCNEWVEC): Undef and redefine.
  1398. (xresizevec): New.
  1399. (XRESIZEVEC): Undef and redefine.
  1400. (xdeletevec): New.
  1401. (XDELETEVEC): Undef and redefine.
  1402. (xnewvar): New.
  1403. (XNEWVAR): Undef and redefine.
  1404. (xcnewvar): New.
  1405. (XCNEWVAR): Undef and redefine.
  1406. (xresizevar): New.
  1407. (XRESIZEVAR): Undef and redefine.
  1408. 2017-11-24 Simon Marchi <simon.marchi@polymtl.ca>
  1409. * gdbthread.h (private_thread_info): Define structure type, add
  1410. virtual pure destructor.
  1411. (thread_info) <priv>: Change type to unique_ptr.
  1412. <private_dtor>: Remove.
  1413. * thread.c (add_thread_with_info): Adjust to use of unique_ptr.
  1414. (private_thread_info::~private_thread_info): Provide default
  1415. implementation.
  1416. (thread_info::~thread_info): Don't call private_dtor nor
  1417. manually free priv.
  1418. * aix-thread.c (private_thread_info): Rename to ...
  1419. (aix_thread_info): ... this.
  1420. (get_aix_thread_info): New.
  1421. (sync_threadlists): Adjust.
  1422. (iter_tid): Adjust.
  1423. (aix_thread_resume): Adjust.
  1424. (aix_thread_fetch_registers): Adjust.
  1425. (aix_thread_store_registers): Adjust.
  1426. (aix_thread_extra_thread_info): Adjust.
  1427. * darwin-nat.h (private_thread_info): Rename to ...
  1428. (darwin_thread_info): ... this.
  1429. (get_darwin_thread_info): New.
  1430. * darwin-nat.c (darwin_init_thread_list): Adjust.
  1431. (darwin_check_new_threads): Adjust.
  1432. (thread_info_from_private_thread_info): Adjust.
  1433. * linux-thread-db.c (private_thread_info): Rename to ...
  1434. (thread_db_thread_info): ... this, initialize fields.
  1435. (get_thread_db_thread_info): New.
  1436. <dying>: Change type to bool.
  1437. (update_thread_state): Adjust to type rename.
  1438. (record_thread): Adjust to type rename an use of unique_ptr.
  1439. (thread_db_pid_to_str): Likewise.
  1440. (thread_db_extra_thread_info): Likewise.
  1441. (thread_db_thread_handle_to_thread_info): Likewise.
  1442. (thread_db_get_thread_local_address): Likewise.
  1443. * nto-tdep.h (private_thread_info): Rename to ...
  1444. (nto_thread_info): ... this, initialize fields.
  1445. (get_nto_thread_info): New.
  1446. <name>: Change type to std::string.
  1447. * nto-tdep.c (nto_extra_thread_info): Adjust to type rename and
  1448. use of unique_ptr.
  1449. * nto-procfs.c (update_thread_private_data_name): Adjust to
  1450. std::string change, allocate nto_private_thread_info with new.
  1451. (update_thread_private_data): Adjust to unique_ptr.
  1452. * remote.c (private_thread_info): Rename to ...
  1453. (remote_thread_info): ... this, initialize data members with
  1454. default values.
  1455. <extra, name>: Change type to std::string.
  1456. <thread_handle>: Change type to non-pointer.
  1457. (free_private_thread_info): Remove.
  1458. (get_private_info_thread): Rename to...
  1459. (get_remote_thread_info): ... this, change return type, adjust to
  1460. use of unique_ptr, use remote_thread_info constructor.
  1461. (remote_add_thread): Adjust.
  1462. (get_private_info_ptid): Rename to...
  1463. (get_remote_thread_info): ...this, change return type.
  1464. (remote_thread_name): Use get_remote_thread_info, adjust to
  1465. change to std::string.
  1466. (struct thread_item) <~thread_item>: Remove.
  1467. <thread_handle>: Make non pointer.
  1468. (start_thread): Adjust to thread_item::thread_handle type
  1469. change.
  1470. (remote_update_thread_list): Adjust to type name change, move
  1471. strings from temporary to long-lived object instead of
  1472. duplicating.
  1473. (remote_threads_extra_info): Use get_remote_thread_info.
  1474. (process_initial_stop_replies): Likewise.
  1475. (resume_clear_thread_private_info): Likewise.
  1476. (remote_resume): Adjust to type name change.
  1477. (remote_commit_resume): Use get_remote_thread_info.
  1478. (process_stop_reply): Adjust to type name change.
  1479. (remote_stopped_by_sw_breakpoint): Use get_remote_thread_info.
  1480. (remote_stopped_by_hw_breakpoint): Likewise.
  1481. (remote_stopped_by_watchpoint): Likewise.
  1482. (remote_stopped_data_address): Likewise.
  1483. (remote_core_of_thread): Likewise.
  1484. (remote_thread_handle_to_thread_info): Use
  1485. get_private_info_thread, adjust to thread_handle field type
  1486. change.
  1487. 2017-11-24 Simon Marchi <simon.marchi@polymtl.ca>
  1488. * remote.c (struct thread_item): Add constructor, disable copy
  1489. construction and copy assignment, define default move
  1490. construction and move assignment.
  1491. <extra, name>: Change type to std::string.
  1492. <core>: Initialize.
  1493. <thread_handle>: Make non-pointer.
  1494. (thread_item_t): Remove typedef.
  1495. (DEF_VEC_O(thread_item_t)): Remove.
  1496. (threads_listing_context) <contains_thread>: New method.
  1497. <remove_thread>: New method.
  1498. <items>: Change type to std::vector.
  1499. (clear_threads_listing_context): Remove.
  1500. (threads_listing_context_remove): Remove.
  1501. (remote_newthread_step): Use thread_item constructor, adjust to
  1502. change to std::vector.
  1503. (start_thread): Use thread_item constructor, adjust to change to
  1504. std::vector.
  1505. (end_thread): Adjust to change to std::vector and std::string.
  1506. (remote_get_threads_with_qthreadinfo): Use thread_item
  1507. constructor, adjust to std::vector.
  1508. (remote_update_thread_list): Adjust to change to std::vector and
  1509. std::string, use threads_listing_context methods.
  1510. (remove_child_of_pending_fork): Adjust.
  1511. (remove_new_fork_children): Adjust.
  1512. * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add rsp-low-selftests.c.
  1513. (SUBDIR_UNITTESTS_OBS): Add rsp-low-selftests.o.
  1514. * unittests/rsp-low-selftests.c: New file.
  1515. * common/rsp-low.h: Include common/byte-vector.h.
  1516. (hex2bin): New overload.
  1517. * common/rsp-low.c (hex2bin): New overload.
  1518. 2017-11-24 Simon Marchi <simon.marchi@ericsson.com>
  1519. * inferior.h (private_inferior): Define structure type, add
  1520. virtual pure destructor.
  1521. (inferior) <priv>: Change type to unique_ptr.
  1522. * inferior.c (private_inferior::~private_inferior): Provide
  1523. default implementation.
  1524. (inferior::~inferior): Don't free priv field.
  1525. (exit_inferior_1): Likewise.
  1526. * darwin-nat.h (struct darwin_exception_info): Initialize fields.
  1527. (darwin_exception_info): Remove typedef.
  1528. (DEF_VEC_O (darwin_thread_t)); Remove.
  1529. (private_inferior): Rename to ...
  1530. (darwin_private_inferior): ... this, extend private_inferior.
  1531. (get_darwin_inferior): New.
  1532. <threads>: Change type to std::vector of darwin_thread_t pointers.
  1533. * darwin-nat.c (darwin_check_new_threads): Adjust.
  1534. (find_inferior_task_it): Adjust.
  1535. (darwin_find_thread); Adjust.
  1536. (darwin_suspend_inferior): Adjust.
  1537. (darwin_resume_inferior): Adjust.
  1538. (darwin_find_new_inferior): Adjust.
  1539. (darwin_decode_notify_message): Adjust.
  1540. (darwin_send_reply): Adjust.
  1541. (darwin_resume_inferior_threads): Adjust.
  1542. (darwin_suspend_inferior_threads): Adjust.
  1543. (darwin_decode_message): Adjust.
  1544. (darwin_wait): Adjust.
  1545. (darwin_interrupt): Adjust.
  1546. (darwin_deallocate_threads): Adjust.
  1547. (darwin_mourn_inferior): Adjust, don't free private data.
  1548. (darwin_reply_to_all_pending_messages): Adjust.
  1549. (darwin_stop_inferior): Adjust.
  1550. (darwin_setup_exceptions): Adjust.
  1551. (darwin_kill_inferior): Adjust.
  1552. (darwin_setup_request_notification): Adjust.
  1553. (darwin_attach_pid): Adjust.
  1554. (darwin_init_thread_list): Adjust.
  1555. (darwin_setup_fake_stop_event): Adjust.
  1556. (darwin_attach): Adjust.
  1557. (darwin_detach): Adjust.
  1558. (darwin_xfer_partial): Adjust.
  1559. (set_enable_mach_exceptions): Adjust.
  1560. (darwin_pid_to_exec_file): Adjust.
  1561. (darwin_get_ada_task_ptid): Adjust.
  1562. * darwin-nat-info.c (get_task_from_args): Adjust.
  1563. (info_mach_ports_command): Adjust.
  1564. (info_mach_region_command): Adjust.
  1565. (info_mach_exceptions_command): Adjust.
  1566. * remote.c (private_inferior): Rename to ...
  1567. (remote_private_inferior): ... this, initialize fields.
  1568. (get_remote_inferior); New.
  1569. (remote_commit_resume): Use get_remote_inferior.
  1570. (check_pending_event_prevents_wildcard_vcont_callback): Likewise.
  1571. 2017-11-24 Pedro Alves <palves@redhat.com>
  1572. * NEWS: Mention linespecs and explicit locations, and completion
  1573. improvements.
  1574. 2017-11-24 Yao Qi <yao.qi@linaro.org>
  1575. * regcache.c (regcache::dump): Remove footnote_register_size.
  1576. 2017-11-24 Yao Qi <yao.qi@linaro.org>
  1577. * regcache.c (cooked_read_test): Add more test for readonly
  1578. regcache.
  1579. 2017-11-24 Yao Qi <yao.qi@linaro.org>
  1580. * gdbarch-selftests.c (test_target_has_registers): Move it to
  1581. target.c.
  1582. (test_target_has_stack): Likewise.
  1583. (test_target_has_memory): Likewise.
  1584. (test_target_prepare_to_store): Likewise.
  1585. (test_target_store_registers): Likewise.
  1586. (test_target_ops): Likewise.
  1587. * regcache.c: Include selftest-arch.h and gdbthread.h.
  1588. (target_ops_no_register): New class.
  1589. (test_target_fetch_registers): New.
  1590. (test_target_store_registers): New.
  1591. (test_target_xfer_partial): New.
  1592. (readwrite_regcache): New.
  1593. (cooked_read_test): New.
  1594. (_initialize_regcache): Register the test.
  1595. * target.c: (test_target_has_registers): Moved from
  1596. gdbarch-selftests.c.
  1597. (test_target_has_stack): Likewise.
  1598. (test_target_has_memory): Likewise.
  1599. (test_target_prepare_to_store): Likewise.
  1600. (test_target_store_registers): Likewise.
  1601. * target.h (test_target_ops): New class.
  1602. 2017-11-24 Alan Hayward <alan.hayward@arm.com>
  1603. * aarch64-tdep.c (_initialize_aarch64_tdep): Add target desc
  1604. selftest.
  1605. 2017-11-24 Alan Hayward <alan.hayward@arm.com>
  1606. * aarch64-tdep.c (_initialize_aarch64_tdep): Remove init.
  1607. * arch/aarch64.c (aarch64_create_target_description): Create
  1608. new target description.
  1609. * features/Makefile: Add new files.
  1610. * features/aarch64.c: Remove file.
  1611. * features/aarch64-core.c: New autogenerated file.
  1612. * features/aarch64-fpu.c: New autogenerated file.
  1613. * target-descriptions.c (maint_print_c_tdesc_cmd): Check for aarch64.
  1614. 2017-11-24 Alan Hayward <alan.hayward@arm.com>
  1615. * Makefile.in: Add new files.
  1616. * aarch64-linux-nat.c (aarch64_linux_read_description): Call
  1617. aarch64_read_description.
  1618. * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
  1619. Call aarch64_read_description.
  1620. * aarch64-tdep.c (aarch64_read_description): New function.
  1621. (aarch64_gdbarch_init): Call aarch64_read_description.
  1622. * aarch64-tdep.h (aarch64_read_description): New function.
  1623. * arch/aarch64.c: New file.
  1624. * configure.tgt: Add new files.
  1625. 2017-11-24 Yao Qi <yao.qi@linaro.org>
  1626. * mi/mi-main.c (register_changed_p): Update.
  1627. * value.c (value_contents_bits_eq): Change return type.
  1628. (value_contents_eq): Likewise.
  1629. * value.h: Update comments.
  1630. 2017-11-24 Yao Qi <yao.qi@linaro.org>
  1631. * mi/mi-main.c (mi_cmd_data_list_changed_registers): Remove
  1632. local 'changed'. Remove error.
  1633. (register_changed_p): Change return type to bool.
  1634. 2017-11-24 Yao Qi <yao.qi@linaro.org>
  1635. * arch/tic6x.c: New file.
  1636. * arch/tic6x.h: New file.
  1637. * features/Makefile (FEATURE_XMLFILES): Add tic6x-c6xp.xml,
  1638. tic6x-core.xml and tic6x-gp.xml.
  1639. * features/tic6x-c6xp.c: Generated.
  1640. * features/tic6x-core.c: Generated.
  1641. * features/tic6x-gp.c: Generated.
  1642. * target-descriptions.c (maint_print_c_tdesc_cmd): Match
  1643. "tic6x-".
  1644. 2017-11-23 Simon Marchi <simon.marchi@ericsson.com>
  1645. * mi/mi-main.c (list_available_thread_groups): Change map value
  1646. type to std::vector.
  1647. 2017-11-23 Simon Marchi <simon.marchi@ericsson.com>
  1648. * osdata.c (osdata_end_column, get_osdata): Remove std::move.
  1649. 2017-11-23 Simon Marchi <simon.marchi@ericsson.com>
  1650. * varobj.c (struct varobj_dynamic) <children_requested_>: Rename
  1651. back to...
  1652. <children_requested>: ... this.
  1653. (varobj_get_num_children, varobj_update): Adjust.
  1654. 2017-11-23 Simon Marchi <simon.marchi@ericsson.com>
  1655. * ada-varobj.c (ada_value_is_changeable_p): Change int to bool where applicable.
  1656. (ada_value_has_mutated): Likewise.
  1657. * c-varobj.c (varobj_is_anonymous_child): Likewise.
  1658. (c_is_path_expr_parent): Likewise.
  1659. * mi/mi-cmd-var.c (varobj_update_one): Likewise.
  1660. (mi_cmd_var_set_frozen): Likewise.
  1661. (mi_cmd_var_update_iter): Likewise.
  1662. (mi_cmd_var_update): Likewise.
  1663. * varobj.c (pretty_printing): Likewise.
  1664. (varobj_enable_pretty_printing): Likewise.
  1665. (struct varobj_root) <floating, is_valid>: Likewise.
  1666. (struct varobj_dynamic) <children_requested>: Likewise.
  1667. (delete_variable): Likewise.
  1668. (delete_variable_1): Likewise.
  1669. (install_variable): Likewise.
  1670. (update_type_if_necessary): Likewise.
  1671. (install_new_value): Likewise.
  1672. (value_of_root): Likewise.
  1673. (is_root_p): Likewise.
  1674. (varobj_create): Likewise.
  1675. (varobj_delete): Likewise.
  1676. (varobj_has_more): Likewise.
  1677. (varobj_set_frozen): Likewise.
  1678. (varobj_get_frozen): Likewise.
  1679. (install_dynamic_child): Likewise.
  1680. (dynamic_varobj_has_child_method): Likewise.
  1681. (update_dynamic_varobj_children): Likewise.
  1682. (varobj_get_num_children): Likewise.
  1683. (varobj_list_children): Likewise.
  1684. (is_path_expr_parent): Likewise.
  1685. (varobj_default_is_path_expr_parent): Likewise.
  1686. (varobj_is_dynamic_p): Likewise.
  1687. (varobj_set_value): Likewise.
  1688. (varobj_value_has_mutated): Likewise.
  1689. (varobj_update): Likewise.
  1690. (check_scope): Likewise.
  1691. (value_of_root_1): Likewise.
  1692. (varobj_value_get_print_value): Likewise.
  1693. (varobj_editable_p): Likewise.
  1694. (varobj_value_is_changeable_p): Likewise.
  1695. (varobj_floating_p): Likewise.
  1696. (varobj_default_value_is_changeable_p): Likewise.
  1697. (varobj_invalidate_iter): Likewise.
  1698. * varobj.h (struct varobj_update_result) <type_changed,
  1699. children_changed, changed, value_installed>: Likewise.
  1700. (struct varobj) <updated, frozen, not_fetched>: Likewise.
  1701. (struct lang_varobj_ops) <value_is_changeable_p,
  1702. value_has_mutated, is_path_expr_parent>: Likewise.
  1703. (varobj_delete): Likewise.
  1704. (varobj_set_frozen): Likewise.
  1705. (varobj_get_frozen): Likewise.
  1706. (varobj_set_value): Likewise.
  1707. (varobj_update): Likewise.
  1708. (varobj_editable_p): Likewise.
  1709. (varobj_floating_p): Likewise.
  1710. (varobj_has_more): Likewise.
  1711. (varobj_is_dynamic_p): Likewise.
  1712. (varobj_default_value_is_changeable_p): Likewise.
  1713. (varobj_value_is_changeable_p): Likewise.
  1714. (varobj_is_anonymous_child): Likewise.
  1715. (varobj_default_is_path_expr_parent): Likewise.
  1716. 2017-11-22 Sergio Durigan Junior <sergiodj@redhat.com>
  1717. * dtrace-probe.c (struct probe_ops dtrace_probe_ops): Delete.
  1718. (struct dtrace_probe_arg) <dtrace_probe_arg>: New constructor.
  1719. <type_str>: Convert to 'std::string'.
  1720. <expr>: Convert to 'expression_up'.
  1721. (dtrace_probe_arg_s): Delete type and VEC.
  1722. (dtrace_probe_enabler_s): Likewise.
  1723. (struct dtrace_probe): Replace by...
  1724. (class dtrace_static_probe_ops): ...this and...
  1725. (class dtrace_probe): ...this.
  1726. (dtrace_probe_is_linespec): Rename to...
  1727. (dtrace_static_probe_ops::is_linespec): ...this. Adjust code
  1728. to reflect change.
  1729. (dtrace_process_dof_probe): Use 'std::vector' instead of VEC.
  1730. Adjust code. Create new instance of 'dtrace_probe'.
  1731. (dtrace_build_arg_exprs): Rename to...
  1732. (dtrace_probe::build_arg_exprs): ...this. Adjust code to
  1733. reflect change.
  1734. (dtrace_get_probes): Rename to...
  1735. (dtrace_static_probe_ops::get_probes): ...this. Adjust code
  1736. to reflect change.
  1737. (dtrace_get_arg): Rename to...
  1738. (dtrace_probe::get_arg_by_number): ...this. Adjust code to
  1739. reflect change.
  1740. (dtrace_probe_is_enabled): Rename to...
  1741. (dtrace_probe::is_enabled): ...this. Adjust code to reflect
  1742. change.
  1743. (dtrace_get_probe_address): Rename to...
  1744. (dtrace_probe::get_relocated_address): ...this. Adjust code
  1745. to reflect change.
  1746. (dtrace_get_probe_argument_count): Rename to...
  1747. (dtrace_probe::get_argument_count): ...this. Adjust code to
  1748. reflect change.
  1749. (dtrace_can_evaluate_probe_arguments): Rename to...
  1750. (dtrace_probe::can_evaluate_arguments): ...this. Adjust code
  1751. to reflect change.
  1752. (dtrace_evaluate_probe_argument): Rename to...
  1753. (dtrace_probe::evaluate_argument): ...this. Adjust code to
  1754. reflect change.
  1755. (dtrace_compile_to_ax): Rename to...
  1756. (dtrace_probe::compile_to_ax): ...this. Adjust code to
  1757. reflect change.
  1758. (dtrace_probe_destroy): Delete.
  1759. (dtrace_type_name): Rename to...
  1760. (dtrace_static_probe_ops::type_name): ...this. Adjust code to
  1761. reflect change.
  1762. (dtrace_probe::get_static_ops): New method.
  1763. (dtrace_gen_info_probes_table_header): Rename to...
  1764. (dtrace_static_probe_ops::gen_info_probes_table_header):
  1765. ...this. Adjust code to reflect change.
  1766. (dtrace_gen_info_probes_table_values): Rename to...
  1767. (dtrace_probe::gen_info_probes_table_values): ...this. Adjust
  1768. code to reflect change.
  1769. (dtrace_enable_probe): Rename to...
  1770. (dtrace_probe::enable_probe): ...this. Adjust code to reflect
  1771. change.
  1772. (dtrace_disable_probe): Rename to...
  1773. (dtrace_probe::disable_probe): ...this. Adjust code to reflect
  1774. change.
  1775. (struct probe_ops dtrace_probe_ops): Delete.
  1776. (info_probes_dtrace_command): Call 'info_probes_for_spops'
  1777. instead of 'info_probes_for_ops'.
  1778. (_initialize_dtrace_probe): Use 'all_static_probe_ops' instead
  1779. of 'all_probe_ops'.
  1780. 2017-11-22 Sergio Durigan Junior <sergiodj@redhat.com>
  1781. Simon Marchi <simark@simark.ca>
  1782. * stap-probe.c (struct probe_ops stap_probe_ops): Delete
  1783. variable.
  1784. (struct stap_probe_arg) <stap_probe_arg>: New constructor.
  1785. <aexpr>: Change type to 'expression_up'.
  1786. (stap_probe_arg_s): Delete type and VEC.
  1787. (struct stap_probe): Delete. Replace by...
  1788. (class stap_static_probe_ops): ...this and...
  1789. (class stap_probe): ...this. Rename variables to add 'm_'
  1790. prefix. Do not use 'union' for arguments anymore.
  1791. (stap_get_expected_argument_type): Receive probe name instead
  1792. of 'struct stap_probe'. Adjust code.
  1793. (stap_parse_probe_arguments): Rename to...
  1794. (stap_probe::parse_arguments): ...this. Adjust code to
  1795. reflect change.
  1796. (stap_get_probe_address): Rename to...
  1797. (stap_probe::get_relocated_address): ...this. Adjust code
  1798. to reflect change.
  1799. (stap_get_probe_argument_count): Rename to...
  1800. (stap_probe::get_argument_count): ...this. Adjust code
  1801. to reflect change.
  1802. (stap_get_arg): Rename to...
  1803. (stap_probe::get_arg_by_number'): ...this. Adjust code to
  1804. reflect change.
  1805. (can_evaluate_probe_arguments): Rename to...
  1806. (stap_probe::can_evaluate_arguments): ...this. Adjust code
  1807. to reflect change.
  1808. (stap_evaluate_probe_argument): Rename to...
  1809. (stap_probe::evaluate_argument): ...this. Adjust code
  1810. to reflect change.
  1811. (stap_compile_to_ax): Rename to...
  1812. (stap_probe::compile_to_ax): ...this. Adjust code to
  1813. reflect change.
  1814. (stap_probe_destroy): Delete.
  1815. (stap_modify_semaphore): Adjust comment.
  1816. (stap_set_semaphore): Rename to...
  1817. (stap_probe::set_semaphore): ...this. Adjust code to reflect
  1818. change.
  1819. (stap_clear_semaphore): Rename to...
  1820. (stap_probe::clear_semaphore): ...this. Adjust code to
  1821. reflect change.
  1822. (stap_probe::get_static_ops): New method.
  1823. (handle_stap_probe): Adjust code to create instance of
  1824. 'stap_probe'.
  1825. (stap_get_probes): Rename to...
  1826. (stap_static_probe_ops::get_probes): ...this. Adjust code to
  1827. reflect change.
  1828. (stap_probe_is_linespec): Rename to...
  1829. (stap_static_probe_ops::is_linespec): ...this. Adjust code to
  1830. reflect change.
  1831. (stap_type_name): Rename to...
  1832. (stap_static_probe_ops::type_name): ...this. Adjust code to
  1833. reflect change.
  1834. (stap_gen_info_probes_table_header): Rename to...
  1835. (stap_static_probe_ops::gen_info_probes_table_header):
  1836. ...this. Adjust code to reflect change.
  1837. (stap_gen_info_probes_table_values): Rename to...
  1838. (stap_probe::gen_info_probes_table_values): ...this. Adjust
  1839. code to reflect change.
  1840. (struct probe_ops stap_probe_ops): Delete.
  1841. (info_probes_stap_command): Use 'info_probes_for_spops'
  1842. instead of 'info_probes_for_ops'.
  1843. (_initialize_stap_probe): Use 'all_static_probe_ops' instead
  1844. of 'all_probe_ops'.
  1845. 2017-11-22 Sergio Durigan Junior <sergiodj@redhat.com>
  1846. * break-catch-throw.c (fetch_probe_arguments): Use
  1847. 'probe.prob' instead of 'probe.probe'.
  1848. * breakpoint.c (create_longjmp_master_breakpoint): Call
  1849. 'can_evaluate_arguments' and 'get_relocated_address' methods
  1850. from probe.
  1851. (create_exception_master_breakpoint): Likewise.
  1852. (add_location_to_breakpoint): Use 'sal->prob' instead of
  1853. 'sal->probe'.
  1854. (bkpt_probe_insert_location): Call 'set_semaphore' method from
  1855. probe.
  1856. (bkpt_probe_remove_location): Likewise, for 'clear_semaphore'.
  1857. * elfread.c (elf_get_probes): Use 'static_probe_ops' instead
  1858. of 'probe_ops'.
  1859. (probe_key_free): Call 'delete' on probe.
  1860. (check_exception_resume): Use 'probe.prob' instead of
  1861. 'probe.probe'.
  1862. * location.c (string_to_event_location_basic): Call
  1863. 'probe_linespec_to_static_ops'.
  1864. * probe.c (class any_static_probe_ops): New class.
  1865. (any_static_probe_ops any_static_probe_ops): New variable.
  1866. (parse_probes_in_pspace): Receive 'static_probe_ops' as
  1867. argument. Adjust code to reflect change.
  1868. (parse_probes): Use 'static_probe_ops' instead of
  1869. 'probe_ops'. Adjust code to reflect change.
  1870. (find_probes_in_objfile): Call methods to get name and
  1871. provider from probe.
  1872. (find_probe_by_pc): Use 'result.prob' instead of
  1873. 'result.probe'. Call 'get_relocated_address' method from
  1874. probe.
  1875. (collect_probes): Adjust comment and argument list to receive
  1876. 'static_probe_ops' instead of 'probe_ops'. Adjust code to
  1877. reflect change. Call necessary methods from probe.
  1878. (compare_probes): Call methods to get name and provider from
  1879. probes.
  1880. (gen_ui_out_table_header_info): Receive 'static_probe_ops'
  1881. instead of 'probe_ops'. Use 'std::vector' instead of VEC,
  1882. adjust code accordingly.
  1883. (print_ui_out_not_applicables): Likewise.
  1884. (info_probes_for_ops): Rename to...
  1885. (info_probes_for_spops): ...this. Receive 'static_probe_ops'
  1886. as argument instead of 'probe_ops'. Adjust code. Call
  1887. necessary methods from probe.
  1888. (info_probes_command): Use 'info_probes_for_spops'.
  1889. (enable_probes_command): Pass correct argument to
  1890. 'collect_probes'. Call methods from probe.
  1891. (disable_probes_command): Likewise.
  1892. (get_probe_address): Move to 'any_static_probe_ops::get_address'.
  1893. (get_probe_argument_count): Move to
  1894. 'any_static_probe_ops::get_argument_count'.
  1895. (can_evaluate_probe_arguments): Move to
  1896. 'any_static_probe_ops::can_evaluate_arguments'.
  1897. (evaluate_probe_argument): Move to
  1898. 'any_static_probe_ops::evaluate_argument'.
  1899. (probe_safe_evaluate_at_pc): Use 'probe.prob' instead of
  1900. 'probe.probe'.
  1901. (probe_linespec_to_ops): Rename to...
  1902. (probe_linespec_to_static_ops): ...this. Adjust code.
  1903. (probe_any_is_linespec): Rename to...
  1904. (any_static_probe_ops::is_linespec): ...this.
  1905. (probe_any_get_probes): Rename to...
  1906. (any_static_probe_ops::get_probes): ...this.
  1907. (any_static_probe_ops::type_name): New method.
  1908. (any_static_probe_ops::gen_info_probes_table_header): New
  1909. method.
  1910. (compute_probe_arg): Use 'pc_probe.prob' instead of
  1911. 'pc_probe.probe'. Call methods from probe.
  1912. (compile_probe_arg): Likewise.
  1913. (std::vector<const probe_ops *> all_probe_ops): Delete.
  1914. (std::vector<const static_probe_ops *> all_static_probe_ops):
  1915. New variable.
  1916. (_initialize_probe): Use 'all_static_probe_ops' instead of
  1917. 'all_probe_ops'.
  1918. * probe.h (struct info_probe_column) <field_name>: Delete
  1919. extraneous newline
  1920. (info_probe_column_s): Delete type and VEC.
  1921. (struct probe_ops): Delete. Replace with...
  1922. (class static_probe_ops): ...this and...
  1923. (clas probe): ...this.
  1924. (struct bound_probe) <bound_probe>: Delete extraneous
  1925. newline. Adjust constructor to receive 'probe' instead of
  1926. 'struct probe'.
  1927. <probe>: Rename to...
  1928. <prob>: ...this. Delete extraneous newline.
  1929. <objfile>: Delete extraneous newline.
  1930. (register_probe_ops): Delete unused prototype.
  1931. (info_probes_for_ops): Rename to...
  1932. (info_probes_for_spops): ...this. Adjust comment.
  1933. (get_probe_address): Move to 'probe::get_address'.
  1934. (get_probe_argument_count): Move to
  1935. 'probe::get_argument_count'.
  1936. (can_evaluate_probe_arguments): Move to
  1937. 'probe::can_evaluate_arguments'.
  1938. (evaluate_probe_argument): Move to 'probe::evaluate_argument'.
  1939. * solib-svr4.c (struct svr4_info): Adjust comment.
  1940. (struct probe_and_action) <probe>: Rename to...
  1941. <prob>: ...this.
  1942. (register_solib_event_probe): Receive 'probe' instead of
  1943. 'struct probe' as argument. Use 'prob' instead of 'probe'
  1944. when applicable.
  1945. (solib_event_probe_action): Call 'get_argument_count' method
  1946. from probe. Adjust comment.
  1947. (svr4_handle_solib_event): Adjust comment. Call
  1948. 'evaluate_argument' method from probe.
  1949. (svr4_create_probe_breakpoints): Call 'get_relocated_address'
  1950. from probe.
  1951. (svr4_create_solib_event_breakpoints): Use 'probe' instead of
  1952. 'struct probe'. Call 'can_evaluate_arguments' from probe.
  1953. * symfile.h: Forward declare 'class probe' instead of 'struct
  1954. probe'.
  1955. * symtab.h: Likewise.
  1956. (struct symtab_and_line) <probe>: Rename to...
  1957. <prob>: ...this.
  1958. * tracepoint.c (start_tracing): Use 'prob' when applicable.
  1959. Call probe methods.
  1960. (stop_tracing): Likewise.
  1961. 2017-11-22 Joel Brobecker <brobecker@adacore.com>
  1962. * ravenscar-thread.c (ravenscar_inferior_created): Remove
  1963. trailing newline at end of string in call to warning.
  1964. 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
  1965. * osdata.h: Include vector isntead of vec.h.
  1966. (osdata_column_s): Remove typedef.
  1967. (struct osdata_column): Add constructor.
  1968. <name, value>: Change type to std::string.
  1969. (DEF_VEC_O (osdata_column_s)): Remove.
  1970. (osdata_item_s): Remove typedef.
  1971. (struct osdata_item) <columns>: Change type to std::vector.
  1972. (DEF_VEC_O (osdata_item_s)): Remove.
  1973. (struct osdata): Add constructor.
  1974. <type>: Change type to std::string.
  1975. <items>: Change type to std::vector.
  1976. (osdata_p): Remove typedef.
  1977. (DEF_VEC_P (osdata_p)): Remove.
  1978. (osdata_parse): Return a unique_ptr.
  1979. (osdata_free): Remove.
  1980. (make_cleanup_osdata_free): Remove.
  1981. (get_osdata): Return a unique_ptr.
  1982. (get_osdata_column): Return pointer to std::string, take a
  1983. reference to osdata_item as parameter.
  1984. * osdata.c (struct osdata_parsing_data) <osdata>: Change type to
  1985. unique_ptr.
  1986. <property_name>: Change type to std::string.
  1987. (osdata_start_osdata): Allocate osdata with new and adjust.
  1988. (osdata_start_item): Adjust.
  1989. (osdata_start_column): Adjust.
  1990. (osdata_end_column): Adjust.
  1991. (clear_parsing_data): Remove.
  1992. (osdata_parse): Return a unique_ptr and adjust, remove cleanup.
  1993. (osdata_item_clear): Remove.
  1994. (get_osdata): return a unique_ptr and adjust.
  1995. (get_osdata_column): Return a pointer to std::string and adjust.
  1996. (info_osdata): Adjust.
  1997. * mi/mi-main.c: Include <map>.
  1998. (free_vector_of_osdata_items): Remove.
  1999. (list_available_thread_groups): Adjust, use std::map instead of
  2000. splay tree.
  2001. 2017-11-22 Simon Marchi <simon.marchi@ericsson.com>
  2002. * stack.c (iterate_over_block_locals): Add LOC_OPTIMIZED_OUT
  2003. case in switch.
  2004. 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
  2005. * varobj.h (DEF_VEC_P (varobj_p)): Remove.
  2006. 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
  2007. * varobj.h (struct varobj_update_result): Add constructor, add
  2008. move constructor, disable copy and assign, initialize fields.
  2009. <newobj>: Change type to std::vector.
  2010. (varobj_update): Return std::vector.
  2011. * varobj.c (install_dynamic_child): Change VEC parameters to
  2012. std::vector and adjust.
  2013. (update_dynamic_varobj_children): Likewise.
  2014. (varobj_update): Return std::vector and adjust.
  2015. * mi/mi-cmd-var.c (varobj_update_one): Adjust to vector changes.
  2016. 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
  2017. * varobj.h (struct varobj) <parent>: Remove const.
  2018. <children>: Change type to std::vector.
  2019. (varobj_list_children): Return std::vector const reference.
  2020. (varobj_restrict_range): Change parameter type to std::vector
  2021. const reference.
  2022. * varobj.c (varobj_has_more): Adjust.
  2023. (varobj_restrict_range): Change parameter type to std::vector
  2024. const reference and adjust.
  2025. (install_dynamic_child): Adjust.
  2026. (update_dynamic_varobj_children): Adjust.
  2027. (varobj_list_children): Return std::vector const reference and
  2028. adjust.
  2029. (varobj_add_child): Adjust.
  2030. (update_type_if_necessary): Adjust.
  2031. (varobj_update): Adjust.
  2032. (delete_variable_1): Adjust.
  2033. * ada-varobj.c (ada_value_has_mutated): Adjust.
  2034. * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust.
  2035. 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
  2036. * varobj.h (struct varobj): Add constructor and destructor,
  2037. initialize fields.
  2038. * varobj.c (struct varobj_root): Initialize fields.
  2039. (struct varobj_dynamic): Initialize fields.
  2040. (varobj_create): Use unique_ptr instead of cleanup. Create
  2041. varobj with new instead of new_root_variable.
  2042. (delete_variable_1): Free variable with delete instead of
  2043. free_variable.
  2044. (create_child_with_value): Create variable with new instead of
  2045. new_variable.
  2046. (varobj::varobj): New.
  2047. (varobj::~varobj): New (body mostly coming from free_variable).
  2048. (new_variable): Remove.
  2049. (free_variable): Remove.
  2050. (do_free_variable_cleanup): Remove.
  2051. (make_cleanup_free_variable): Remove.
  2052. 2017-11-22 Ulrich Weigand <uweigand@de.ibm.com>
  2053. * core-regset.c: Remove file.
  2054. * Makefile.in (ALLDEPFILES): Remove core-regset.c.
  2055. 2017-11-22 Ulrich Weigand <uweigand@de.ibm.com>
  2056. * NEWS: Document use of GNU MPFR.
  2057. * README: Likewise.
  2058. * Makefile.in (LIBMPFR): Add define.
  2059. (CLIBS): Add $(LIBMPFR).
  2060. * configure.ac: Add --with-mpfr configure option.
  2061. * configure: Regenerate.
  2062. * config.in: Regenerate.
  2063. * target-float.c [HAVE_LIBMPFR]: Include <mpfr.h>.
  2064. (class mpfr_float_ops): New type.
  2065. (mpfr_float_ops::from_target): Two new overloaded functions.
  2066. (mpfr_float_ops::to_target): Likewise.
  2067. (mpfr_float_ops::to_string): New function.
  2068. (mpfr_float_ops::from_string): Likewise.
  2069. (mpfr_float_ops::to_longest): Likewise.
  2070. (mpfr_float_ops::from_longest): Likewise.
  2071. (mpfr_float_ops::from_ulongest): Likewise.
  2072. (mpfr_float_ops::to_host_double): Likewise.
  2073. (mpfr_float_ops::from_host_double): Likewise.
  2074. (mpfr_float_ops::convert): Likewise.
  2075. (mpfr_float_ops::binop): Likewise.
  2076. (mpfr_float_ops::compare): Likewise.
  2077. (get_target_float_ops): Use mpfr_float_ops if available.
  2078. 2017-11-22 Ulrich Weigand <uweigand@de.ibm.com>
  2079. * target-float.c: Do not include <math.h>.
  2080. Include <cmath> and <limits>.
  2081. (DOUBLEST): Do not define.
  2082. (class target_float_ops): New type.
  2083. (class host_float_ops): New templated type.
  2084. (class decimal_float_ops): New type.
  2085. (floatformat_to_doublest): Rename to ...
  2086. (host_float_ops<T>::from_target): ... this. Use template type T
  2087. instead of DOUBLEST. Use C++ math routines. Update recursive calls.
  2088. (host_float_ops<T>::from_target): New overload using a type argument.
  2089. (floatformat_from_doublest): Rename to ...
  2090. (host_float_ops<T>::to_target): ... this. Use template type T
  2091. instead of DOUBLEST. Use C++ math routines. Update recursive calls.
  2092. (host_float_ops<T>::to_target): New overload using a type argument.
  2093. (floatformat_printf_format): New function.
  2094. (struct printf_length_modifier): New templated type.
  2095. (floatformat_to_string): Rename to ...
  2096. (host_float_ops<T>::to_string): ... this. Use type instead of
  2097. floatformat argument. Use floatformat_printf_format and
  2098. printf_length_modifier. Remove special handling of invalid numbers,
  2099. infinities and NaN (moved to target_float_to_string).
  2100. (struct scanf_length_modifier): New templated type.
  2101. (floatformat_from_string): Rename to ...
  2102. (host_float_ops<T>::from_string): ... this. Use type instead of
  2103. floatformat argument. Use scanf_length_modifier.
  2104. (floatformat_to_longest): Rename to ...
  2105. (host_float_ops<T>::to_longest): ... this. Use type instead of
  2106. floatformat argument. Handle out-of-range values deterministically.
  2107. (floatformat_from_longest): Rename to ...
  2108. (host_float_ops<T>::from_longest): ... this. Use type instead of
  2109. floatformat argument.
  2110. (floatformat_from_ulongest): Rename to ...
  2111. (host_float_ops<T>::from_ulongest): ... this. Use type instead of
  2112. floatformat argument.
  2113. (floatformat_to_host_double): Rename to ...
  2114. (host_float_ops<T>::to_host_double): ... this. Use type instead of
  2115. floatformat argument.
  2116. (floatformat_from_host_double): Rename to ...
  2117. (host_float_ops<T>::from_host_double): ... this. Use type instead of
  2118. floatformat argument.
  2119. (floatformat_convert): Rename to ...
  2120. (host_float_ops<T>::convert): ... this. Use type instead of
  2121. floatformat arguments. Remove handling of no-op conversions.
  2122. (floatformat_binop): Rename to ...
  2123. (host_float_ops<T>::binop): ... this. Use type instead of
  2124. floatformat arguments.
  2125. (floatformat_compare): Rename to ...
  2126. (host_float_ops<T>::compare): ... this. Use type instead of
  2127. floatformat arguments.
  2128. (match_endianness): Use type instead of length/byte_order arguments.
  2129. (set_decnumber_context): Likewise.
  2130. (decimal_from_number): Likewise. Update calls.
  2131. (decimal_to_number): Likewise.
  2132. (decimal_is_zero): Likewise. Update calls. Move to earlier in file.
  2133. (decimal_float_ops::to_host_double): New dummy function.
  2134. (decimal_float_ops::from_host_double): Likewise.
  2135. (decimal_to_string): Rename to ...
  2136. (decimal_float_ops::to_string): ... this. Use type instead of
  2137. length/byte_order arguments. Update calls.
  2138. (decimal_from_string): Rename to ...
  2139. (decimal_float_ops::from_string): ... this. Use type instead of
  2140. length/byte_order arguments. Update calls.
  2141. (decimal_from_longest): Rename to ...
  2142. (decimal_float_ops::from_longest): ... this. Use type instead of
  2143. length/byte_order arguments. Update calls.
  2144. (decimal_from_ulongest): Rename to ...
  2145. (decimal_float_ops::from_ulongest): ... this. Use type instead of
  2146. length/byte_order arguments. Update calls.
  2147. (decimal_to_longest): Rename to ...
  2148. (decimal_float_ops::to_longest): ... this. Use type instead of
  2149. length/byte_order arguments. Update calls.
  2150. (decimal_binop): Rename to ...
  2151. (decimal_float_ops::binop): ... this. Use type instead of
  2152. length/byte_order arguments. Update calls.
  2153. (decimal_compare): Rename to ...
  2154. (decimal_float_ops::compare): ... this. Use type instead of
  2155. length/byte_order arguments. Update calls.
  2156. (decimal_convert): Rename to ...
  2157. (decimal_float_ops::convert): ... this. Use type instead of
  2158. length/byte_order arguments. Update calls.
  2159. (target_float_same_category_p): New function.
  2160. (target_float_same_format_p): Likewise.
  2161. (target_float_format_length): Likewise.
  2162. (enum target_float_ops_kind): New type.
  2163. (get_target_float_ops_kind): New function.
  2164. (get_target_float_ops): Three new overloaded functions.
  2165. (target_float_is_zero): Update call.
  2166. (target_float_to_string): Add special handling of invalid numbers,
  2167. infinities and NaN (moved from floatformat_to_string). Use
  2168. target_float_ops callback.
  2169. (target_float_from_string): Use target_float_ops callback.
  2170. (target_float_to_longest): Likewise.
  2171. (target_float_from_longest): Likewise.
  2172. (target_float_from_ulongest): Likewise.
  2173. (target_float_to_host_double): Likewise.
  2174. (target_float_from_host_double): Likewise.
  2175. (target_float_convert): Add special case for no-op conversions.
  2176. Use target_float_ops callback.
  2177. (target_float_binop): Use target_float_ops callback.
  2178. (target_float_compare): Likewise.
  2179. 2017-11-22 Yao Qi <yao.qi@linaro.org>
  2180. * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use strcpy.
  2181. 2017-11-22 Yao Qi <yao.qi@linaro.org>
  2182. * cli/cli-decode.c (help_list): Use memcpy instead of strncpy.
  2183. * cp-namespace.c (cp_lookup_transparent_type_loop): Likewise.
  2184. 2017-11-21 Jerome Guitton <guitton@adacore.com>
  2185. * ravenscar-thread.c (ravenscar_wait): Update inferior ptid
  2186. with event ptid from the lower layer before doing the
  2187. ravenscar-specific update.
  2188. 2017-11-21 Joel Brobecker <brobecker@adacore.com>
  2189. * ravenscar-thread.c (is_ravenscar_task): Also verify that
  2190. the ptid's TID is nonzero.
  2191. 2017-11-21 Joel Brobecker <brobecker@adacore.com>
  2192. * ada-lang.h (ada_get_tcb_types_info): Add declaration.
  2193. * ada-tasks.c (ada_get_tcb_types_info): Renames get_tcb_types_info.
  2194. Make non-static. Change return type to char *. Adjust code
  2195. accordingly. Rewrite the function's documentation.
  2196. (read_atcb): Adjust call to get_tcb_types_info accordingly.
  2197. * ravenscar-thread.c (ravenscar_inferior_created): Check that
  2198. we have enough debugging information in the runtime to support
  2199. Ada task debugging before we enable the ravenscar-thread layer.
  2200. 2017-11-21 Joel Brobecker <brobecker@adacore.com>
  2201. * ada-lang.h (ada_get_task_info_from_ptid): Add declaration.
  2202. * ada-tasks.c (ada_get_task_info_from_ptid): New function.
  2203. * ravenscar-thread.c: Add into comment.
  2204. (base_magic_null_ptid): Delete.
  2205. (base_ptid): Change documentation.
  2206. (ravenscar_active_task): Renames ravenscar_running_thread.
  2207. All callers updated throughout.
  2208. (is_ravenscar_task, ravenscar_get_thread_base_cpu): New function.
  2209. (ravenscar_task_is_currently_active): Likewise.
  2210. (get_base_thread_from_ravenscar_task): Ditto.
  2211. (ravenscar_update_inferior_ptid): Adjust to handle multiple CPUs.
  2212. (ravenscar_runtime_initialized): Likewise.
  2213. (get_running_thread_id): Add new parameter "cpu". Adjust
  2214. implementation to handle this new parameter.
  2215. (ravenscar_fetch_registers): Small adjustment to use
  2216. is_ravenscar_task and ravenscar_task_is_currently_active in
  2217. order to decide whether to use the target beneath or this
  2218. module's arch_ops.
  2219. (ravenscar_store_registers, ravenscar_prepare_to_store): Likewise.
  2220. (ravenscar_stopped_by_sw_breakpoint): Use
  2221. get_base_thread_from_ravenscar_task to get the underlying
  2222. thread, rather than using base_ptid.
  2223. (ravenscar_stopped_by_hw_breakpoint, ravenscar_stopped_by_watchpoint)
  2224. (ravenscar_stopped_data_address, ravenscar_core_of_thread):
  2225. Likewise.
  2226. (ravenscar_inferior_created): Do not set base_magic_null_ptid.
  2227. 2017-11-21 Joel Brobecker <brobecker@adacore.com>
  2228. * ada-lang.h (struct ada_task_info) <base_cpu>: New field.
  2229. * ada-lang.c (struct atcb_fieldno) <base_cpu>: New field.
  2230. (get_tcb_types_info): Set fieldnos.base_cpu.
  2231. (read_atcb): Set task_info->base_cpu.
  2232. (info_task): Print "Base CPU" info if set by runtime.
  2233. 2017-11-21 Joel Brobecker <brobecker@adacore.com>
  2234. * ravenscar-thread.c (ravenscar_stopped_by_sw_breakpoint)
  2235. (ravenscar_stopped_by_hw_breakpoint, ravenscar_stopped_by_watchpoint)
  2236. (ravenscar_stopped_data_address, ravenscar_core_of_thread):
  2237. New functions.
  2238. (init_ravenscar_thread_ops): Set the to_stopped_by_sw_breakpoint,
  2239. to_stopped_by_hw_breakpoint, to_stopped_by_watchpoint,
  2240. to_stopped_data_address and to_core_of_thread fields of
  2241. ravenscar_ops.
  2242. 2017-11-21 Ulrich Weigand <uweigand@de.ibm.com>
  2243. * ppc-tdep.h (enum powerpc_long_double_abi): New data type.
  2244. (struct gdbarch_tdep): New member long_double_abi.
  2245. * rs6000-tdep.c (rs6000_gdbarch_init): Initialize long_double_abi
  2246. member of tdep struct based on Tag_GNU_Power_ABI_FP attribute.
  2247. * ppc-linux-tdep.c (ppc_linux_init_abi): Install long double data
  2248. format depending on long_double_abi tdep member.
  2249. (ppc_floatformat_for_type): Handle __ibm128 type.
  2250. 2017-11-20 Simon Marchi <simon.marchi@polymtl.ca>
  2251. * darwin-nat.c (set_enable_mach_exceptions): Constify parameter.
  2252. 2017-11-21 Pedro Alves <palves@redhat.com>
  2253. * dwarf2read.c (mapped_index::find_name_components_bounds)
  2254. <completion mode, upper bound>: Use std::lower_bound instead of
  2255. std::upper_bound.
  2256. (test_mapped_index_find_name_component_bounds): Remove incorrect
  2257. "t1_fund" from expected symbols.
  2258. 2017-11-21 Pedro Alves <palves@redhat.com>
  2259. * dwarf2read.c (mapped_index::name_components_casing): New field.
  2260. (mapped_index) <build_name_components,
  2261. find_name_components_bounds): Declare new methods.
  2262. (mapped_index::find_name_components_bounds)
  2263. (mapped_index::build_name_components): New methods, factored out
  2264. from dw2_expand_symtabs_matching_symbol.
  2265. (check_find_bounds_finds)
  2266. (test_mapped_index_find_name_component_bounds): New.
  2267. (run_test): Rename to ...
  2268. (test_dw2_expand_symtabs_matching_symbol): ... this.
  2269. (run_test): Reimplement.
  2270. 2017-11-21 Pedro Alves <palves@redhat.com>
  2271. * cp-name-parser.y (cp_ident_is_alpha, cp_ident_is_alnum): New.
  2272. (symbol_end): Use cp_ident_is_alnum.
  2273. (yylex): Use cp_ident_is_alpha and cp_ident_is_alnum.
  2274. * dwarf2read.c (make_sort_after_prefix_name): New function.
  2275. (dw2_expand_symtabs_matching_symbol): Use it.
  2276. (test_symbols): Add more symbols.
  2277. (run_test): Add tests.
  2278. 2017-11-17 Tom Tromey <tom@tromey.com>
  2279. * symtab.h (enum symbol_subclass_kind): New.
  2280. (struct symbol) <is_cplus_template_function, is_rust_vtable>:
  2281. Remove.
  2282. <subclass>: New member.
  2283. (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION): Update.
  2284. * rust-lang.c (rust_get_trait_object_pointer): Update.
  2285. * dwarf2read.c (read_func_scope): Update.
  2286. (read_variable): Update.
  2287. 2017-11-17 Tom Tromey <tom@tromey.com>
  2288. * dwarf2read.c (read_func_scope): Update.
  2289. * symtab.h (struct template_symbol): Derive from symbol.
  2290. <base>: Remove.
  2291. 2017-11-17 Tom Tromey <tom@tromey.com>
  2292. * symtab.h (struct symbol) <is_rust_vtable>: New member.
  2293. (struct rust_vtable_symbol): New.
  2294. (find_symbol_at_address): Declare.
  2295. * symtab.c (find_symbol_at_address): New function.
  2296. * symfile.h (struct quick_symbol_functions)
  2297. <find_compunit_symtab_by_address>: New member.
  2298. * symfile-debug.c (debug_qf_find_compunit_symtab_by_address): New
  2299. function.
  2300. (debug_sym_quick_functions): Link to
  2301. debug_qf_find_compunit_symtab_by_address.
  2302. * rust-lang.c (rust_get_trait_object_pointer): New function.
  2303. (rust_evaluate_subexp) <case UNOP_IND>: New case. Call
  2304. rust_get_trait_object_pointer.
  2305. * psymtab.c (psym_relocate): Clear psymbol_map.
  2306. (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address): New
  2307. functions.
  2308. (psym_functions): Link to psym_find_compunit_symtab_by_address.
  2309. * objfiles.h (struct objfile) <psymbol_map>: New member.
  2310. * dwarf2read.c (dwarf2_gdb_index_functions): Update.
  2311. (process_die) <DW_TAG_variable>: New case. Call read_variable.
  2312. (rust_containing_type, read_variable): New functions.
  2313. 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
  2314. * common/gdb_vecs.h (DEF_VEC_I (int)): Remove.
  2315. 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
  2316. * common/filestuff.c: Include <algorithm>.
  2317. (open_fds): Change type to std::vector<int>.
  2318. (do_mark_open_fd): Adjust.
  2319. (unmark_fd_no_cloexec): Adjust.
  2320. (do_close): Adjust.
  2321. 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
  2322. * breakpoint.c (output_thread_groups): Take an std::vector.
  2323. (print_one_breakpoint_location): Adjust.
  2324. 2017-11-17 Joel Brobecker <brobecker@adacore.com>
  2325. * ada-lang.c (resolve_subexp): Add handling of OP_VAR_MSYM_VALUE.
  2326. (ada_evaluate_subexp_for_cast): New function.
  2327. (ada_evaluate_subexp) <UNOP_CAST>: Replace code by call to
  2328. ada_evaluate_subexp_for_cast.
  2329. (ada_evaluate_subexp) <nosideret>: Replace code by call to
  2330. eval_skip_value.
  2331. * eval.c (evaluate_var_value): Make non-static.
  2332. (evaluate_var_msym_value, eval_skip_value): Likewise.
  2333. * value.h (evaluate_var_value, evaluate_var_msym_value)
  2334. (eval_skip_value): Declare.
  2335. 2017-11-16 Joel Brobecker <brobecker@adacore.com>
  2336. * ada-lang.c (ada_value_cast): Remove parameter "noside".
  2337. Update all callers.
  2338. 2017-11-16 Pedro Alves <palves@redhat.com>
  2339. * python/py-unwind.c (pyuw_sniffer): Translate
  2340. PyExc_KeyboardInterrupt to a GDB Quit exception.
  2341. 2017-11-16 Pedro Alves <palves@redhat.com>
  2342. * infrun.c (resume_cleanups): Delete.
  2343. (resume): No longer install a resume_cleanups cleanup nor call
  2344. QUIT.
  2345. (proceed): Pass the terminal to the inferior.
  2346. (keep_going_pass_signal): No longer install a resume_cleanups
  2347. cleanup.
  2348. 2017-11-16 Pedro Alves <palves@redhat.com>
  2349. * inf-loop.c (inferior_event_handler): Don't swallow the exception
  2350. if the prompt is blocked.
  2351. 2017-11-16 Pedro Alves <palves@redhat.com>
  2352. * breakpoint.c (insert_bp_location): Replace bp_err and
  2353. bp_err_message locals by a gdb_exception local.
  2354. 2017-11-16 Pedro Alves <palves@redhat.com>
  2355. * inflow.c (scoped_ignore_sigttou): New class.
  2356. (child_terminal_ours_1, new_tty): Use it.
  2357. 2017-11-16 Ulrich Weigand <uweigand@de.ibm.com>
  2358. * target-float.c (decimal_from_number): Add byte_order argument and
  2359. call match_endianness. Error if unknown floating-point type.
  2360. (decimal_to_number): Add byte_order argument and call match_endianness.
  2361. (decimal_from_longest): Update call. Do not call match_endianness.
  2362. (decimal_from_ulongest): Likewise.
  2363. (decimal_binop): Likewise.
  2364. (decimal_is_zero): Likewise.
  2365. (decimal_compare): Likewise.
  2366. (decimal_convert): Likewise.
  2367. 2017-11-16 Phil Muldoon <pmuldoon@redhat.com>
  2368. * python/python.c (gdbpy_rbreak): New function.
  2369. * NEWS: Document Python rbreak feature.
  2370. 2017-11-16 Yao Qi <yao.qi@linaro.org>
  2371. * features/tic6x-c62x.xml: Remove.
  2372. * features/tic6x-c64x.xml: Remove.
  2373. * features/tic6x-c64xp.xml: Remove.
  2374. 2017-11-15 John Baldwin <jhb@FreeBSD.org>
  2375. * symtab.h: Include <array>.
  2376. 2017-11-15 John Baldwin <jhb@FreeBSD.org>
  2377. * bsd-kvm.c (bsd_kvm_cmd): Constify 'arg'.
  2378. (bsd_kvm_proc_cmd): Likewise.
  2379. 2017-11-15 Simon Marchi <simon.marchi@ericsson.com>
  2380. * tui/tui-win.c (window_name_completer): Replace VEC with
  2381. std::vector.
  2382. 2017-11-15 Andrew Cagney <cagney@gnu.org>
  2383. * MAINTAINERS: Remove no-longer applicable entries.
  2384. 2017-11-15 Andrew Cagney <cagney@gnu.org>
  2385. * MAINTAINERS: Move self to Past Maintainers.
  2386. 2017-11-15 Yao Qi <yao.qi@linaro.org>
  2387. * features/Makefile (XMLTOC): Remove nios2-linux.xml.
  2388. * features/nios2-linux.c: Remove.
  2389. * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Don't call
  2390. initialize_tdesc_nios2_linux.
  2391. 2017-11-15 Yao Qi <yao.qi@linaro.org>
  2392. * m68hc11-tdep.c (M68HC11_NUM_REGS): Change it to
  2393. M68HC11_LAST_HARD_REG + 1.
  2394. 2017-11-14 Paul Carroll <pcarroll@codesourcery.com>
  2395. PR gdb/22388
  2396. * remote.c (remote_write_bytes_aux, remote_read_bytes_1,
  2397. remote_read_bytes, remote_write_qxfer, remote_xfer_partial):
  2398. Return TARGET_XFER_EOF if size of returned data is 0.
  2399. 2017-11-14 Simon Marchi <simon.marchi@ericsson.com>
  2400. * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
  2401. memory-map-selftests.c.
  2402. (SUBDIR_UNITTESTS_OBS): Add memory-map-selftests.o.
  2403. * memory-map.c (memory_map_start_memory): Fix computation of hi
  2404. address.
  2405. * unittests/memory-map-selftests.c: New file.
  2406. 2017-11-09 Joel Brobecker <brobecker@adacore.com>
  2407. * ada-lang.c: Fix some typos in the general command documenting
  2408. how Ada expressions are being evaluated and how their result
  2409. is printed.
  2410. 2017-11-09 Tom Tromey <tom@tromey.com>
  2411. * psymtab.c (psymbol_hash): Do not hash string contents.
  2412. (psymbol_compare): Add comment.
  2413. 2017-11-09 Tom Tromey <tom@tromey.com>
  2414. * dictionary.c (dict_hash): Move "TKB" check into the "switch".
  2415. 2017-11-08 Joel Brobecker <brobecker@adacore.com>
  2416. * ada-exp.y (write_var_from_sym): Remove parameter
  2417. "orig_left_context". Update all callers.
  2418. 2017-11-08 Simon Marchi <simon.marchi@ericsson.com>
  2419. * tracepoint.h (class collection_list) <stringify>: Return
  2420. std::vector<std::string>.
  2421. (encode_actions_rsp): Change parameters to
  2422. std::vector<std::string> *.
  2423. * tracepoint.c (collection_list::stringify): Return
  2424. std::vector<std::string> and adjust accordingly.
  2425. (encode_actions_rsp): Changee parameters to
  2426. std::vector<std::string> and adjust accordingly.
  2427. * remote.c (free_actions_list),
  2428. free_actions_list_cleanup_wrapper): Remove.
  2429. (remote_download_tracepoint): Adjust to std::vector.
  2430. 2017-11-08 Tom Tromey <tom@tromey.com>
  2431. * dwarf2read.c (symbolp): Remove typedef.
  2432. (read_func_scope): Use std::vector.
  2433. (process_structure_scope): Use std::vector.
  2434. 2017-11-08 Pedro Alves <palves@redhat.com>
  2435. * ada-lang.c (ada_make_symbol_completion_list): Use
  2436. completion_skip_symbol.
  2437. * symtab.c (symbol_is_function_or_method(minimal_symbol*)): New.
  2438. (symbol_is_function_or_method(symbol*)): New.
  2439. (add_symtab_completions): Add complete_symbol_mode parameter. Use
  2440. completion_skip_symbol.
  2441. (default_collect_symbol_completion_matches_break_on): Use
  2442. completion_skip_symbol. Pass down mode.
  2443. (collect_file_symbol_completion_matches): Pass down mode.
  2444. * symtab.h (symbol_is_function_or_method): New declarations.
  2445. (completion_skip_symbol): New template function.
  2446. 2017-11-08 Pedro Alves <palves@redhat.com>
  2447. * linespec.c (iterate_over_all_matching_symtabs): Add
  2448. search_domain parameter. Pass it down to expand_symtabs_matching.
  2449. (decode_objc): Request FUNCTIONS_DOMAIN symbols only.
  2450. (lookup_prefix_sym): Adjust by passing ALL_DOMAIN as
  2451. search_domain.
  2452. (add_all_symbol_names_from_pspace): Add search_domain parameter.
  2453. Pass it down.
  2454. (find_method, find_function_symbols): Request FUNCTIONS_DOMAIN
  2455. symbols.
  2456. (add_matching_symbols_to_info): Add search_domain parameter. Pass
  2457. it down.
  2458. 2017-11-08 Pedro Alves <palves@redhat.com>
  2459. * ada-lang.c (ada_make_symbol_completion_list): Remove text and
  2460. text_len locals and don't pass them down.
  2461. * symtab.c (completion_list_add_name): Remove
  2462. sym_text/sym_text_len parameters and adjust.
  2463. (completion_list_add_symbol, completion_list_add_msymbol)
  2464. (completion_list_objc_symbol, completion_list_add_fields)
  2465. (add_symtab_completions): Likewise.
  2466. (default_collect_symbol_completion_matches_break_on)
  2467. (collect_file_symbol_completion_matches): Remove sym_text_len
  2468. local and don't pass it down.
  2469. * symtab.h (completion_list_add_name): Remove
  2470. sym_text/sym_text_len parameters.
  2471. 2017-11-08 Pedro Alves <palves@redhat.com>
  2472. * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
  2473. unittests/lookup_name_info-selftests.c.
  2474. (SUBDIR_UNITTESTS_OBS): Add lookup_name_info-selftests.o.
  2475. * cp-support.c: Include "selftest.h".
  2476. (cp_remove_params_1): Rename from cp_remove_params. Add
  2477. 'require_param' parameter, and handle it.
  2478. (cp_remove_params): Reimplement.
  2479. (cp_remove_params_if_any): New.
  2480. (selftests::quote): New.
  2481. (selftests::check_remove_params): New.
  2482. (selftests::test_cp_remove_params): New.
  2483. (_initialize_cp_support): Install
  2484. selftests::test_cp_remove_params.
  2485. * cp-support.h (cp_remove_params_if_any): Declare.
  2486. * dwarf2read.c :Include "selftest.h".
  2487. (dw2_expand_symtabs_matching_symbol): Use
  2488. lookup_name_info::make_ignore_params.
  2489. (selftests::dw2_expand_symtabs_matching::mock_mapped_index)
  2490. (selftests::dw2_expand_symtabs_matching::string_or_null)
  2491. (selftests::dw2_expand_symtabs_matching::check_match)
  2492. (selftests::dw2_expand_symtabs_matching::test_symbols)
  2493. (selftests::dw2_expand_symtabs_matching::run_test): New.
  2494. (_initialize_dwarf2_read): Register
  2495. selftests::dw2_expand_symtabs_matching::run_test.
  2496. * psymtab.c (psym_expand_symtabs_matching): Use
  2497. lookup_name_info::make_ignore_params.
  2498. * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info):
  2499. If the lookup name wants to ignore parameters, strip them.
  2500. (compare_symbol_name): Remove sym_text/sym_text_len parameters and
  2501. code handling '('.
  2502. (completion_list_add_name): Don't pass down sym_text/sym_text_len.
  2503. (default_collect_symbol_completion_matches_break_on): Don't try to
  2504. strip parameters.
  2505. * symtab.h (lookup_name_info::lookup_name_info): Add
  2506. 'ignore_parameters' parameter.
  2507. (lookup_name_info::ignore_parameters)
  2508. (lookup_name_info::make_ignore_params): New methods.
  2509. (lookup_name_info::m_ignore_parameters): New field.
  2510. * unittests/lookup_name_info-selftests.c: New file.
  2511. 2017-11-08 Pedro Alves <palves@redhat.com>
  2512. * dwarf2read.c (dw2_expand_marked_cus)
  2513. (dw2_expand_symtabs_matching_symbol): Remove forward declarations.
  2514. (dw2_expand_symtabs_matching): Move further below.
  2515. (dw2_expand_marked_cus): Reindent.
  2516. 2017-11-08 Pedro Alves <palves@redhat.com>
  2517. * dwarf2read.c (byte_swap, MAYBE_SWAP): Move higher up in file.
  2518. (struct name_component): New.
  2519. (mapped_index::name_components): New field.
  2520. (mapped_index::symbol_name_at): New method.
  2521. (dwarf2_read_index): Call mapped_index ctor.
  2522. (dw2_map_matching_symbols): Add comment about name_components
  2523. table.
  2524. (dw2_expand_symtabs_matching): Factor part to...
  2525. (dw2_expand_symtabs_matching_symbol): ... this new function.
  2526. Build name components table, and lookup symbols in it before
  2527. calling the name matcher.
  2528. (dw2_expand_marked_cus): New, factored out from
  2529. dw2_expand_symtabs_matching.
  2530. (dwarf2_per_objfile_free): Call the mapped_index's dtor.
  2531. 2017-11-08 Pedro Alves <palves@redhat.com>
  2532. * ada-lang.c (ada_encode): Rename to ..
  2533. (ada_encode_1): ... this. Add throw_errors parameter and handle
  2534. it.
  2535. (ada_encode): Reimplement.
  2536. (match_name): Delete, folded into full_name.
  2537. (resolve_subexp): No longer pass the encoded name to
  2538. ada_lookup_symbol_list.
  2539. (should_use_wild_match): Delete.
  2540. (name_match_type_from_name): New.
  2541. (ada_lookup_simple_minsym): Use lookup_name_info and the
  2542. language's symbol_name_matcher_ftype.
  2543. (add_symbols_from_enclosing_procs, ada_add_local_symbols)
  2544. (ada_add_block_renamings): Adjust to use lookup_name_info.
  2545. (ada_lookup_name): New.
  2546. (add_nonlocal_symbols, ada_add_all_symbols)
  2547. (ada_lookup_symbol_list_worker, ada_lookup_symbol_list)
  2548. (ada_iterate_over_symbols): Adjust to use lookup_name_info.
  2549. (ada_name_for_lookup): Delete.
  2550. (ada_lookup_encoded_symbol): Construct a verbatim name.
  2551. (wild_match): Reverse sense of return type. Use bool.
  2552. (full_match): Reverse sense of return type. Inline bits of old
  2553. match_name here.
  2554. (ada_add_block_symbols): Adjust to use lookup_name_info.
  2555. (symbol_completion_match): Delete, folded into...
  2556. (ada_lookup_name_info::matches): ... .this new method.
  2557. (symbol_completion_add): Delete.
  2558. (ada_collect_symbol_completion_matches): Add name_match_type
  2559. parameter. Adjust to use lookup_name_info and
  2560. completion_list_add_name.
  2561. (get_var_value, ada_add_global_exceptions): Adjust to use
  2562. lookup_name_info.
  2563. (ada_get_symbol_name_cmp): Delete.
  2564. (do_wild_match, do_full_match): New functions.
  2565. (ada_lookup_name_info::ada_lookup_name_info): New method.
  2566. (ada_symbol_name_matches, ada_get_symbol_name_matcher): New
  2567. functions.
  2568. (ada_language_defn): Install ada_get_symbol_name_matcher.
  2569. * ada-lex.l (processId): If name starts with '<', copy it
  2570. verbatim.
  2571. * block.c (block_iter_match_step, block_iter_match_first)
  2572. (block_iter_match_next, block_lookup_symbol)
  2573. (block_lookup_symbol_primary, block_find_symbol): Adjust to use
  2574. lookup_name_info.
  2575. * block.h (block_iter_match_first, block_iter_match_next)
  2576. (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use lookup_name_info.
  2577. * c-lang.c (c_language_defn, cplus_language_defn)
  2578. (asm_language_defn, minimal_language_defn): Adjust comments to
  2579. refer to la_get_symbol_name_matcher.
  2580. * completer.c (complete_files_symbols)
  2581. (collect_explicit_location_matches, symbol_completer): Pass a
  2582. symbol_name_match_type down.
  2583. * completer.h (class completion_match, completion_match_result):
  2584. New classes.
  2585. (completion_tracker::reset_completion_match_result): New method.
  2586. (completion_tracker::m_completion_match_result): New field.
  2587. * cp-support.c (make_symbol_overload_list_block): Adjust to use
  2588. lookup_name_info.
  2589. (cp_fq_symbol_name_matches, cp_get_symbol_name_matcher): New
  2590. functions.
  2591. * cp-support.h (cp_get_symbol_name_matcher): New declaration.
  2592. * d-lang.c: Adjust comments to refer to
  2593. la_get_symbol_name_matcher.
  2594. * dictionary.c (dict_vector) <iter_match_first, iter_match_next>:
  2595. Adjust to use lookup_name_info.
  2596. (dict_iter_match_first, dict_iter_match_next)
  2597. (iter_match_first_hashed, iter_match_next_hashed)
  2598. (iter_match_first_linear, iter_match_next_linear): Adjust to work
  2599. with a lookup_name_info.
  2600. * dictionary.h (dict_iter_match_first, dict_iter_match_next):
  2601. Likewise.
  2602. * dwarf2read.c (dw2_lookup_symbol): Adjust to use lookup_name_info.
  2603. (dw2_map_matching_symbols): Adjust to use symbol_name_match_type.
  2604. (gdb_index_symbol_name_matcher): New class.
  2605. (dw2_expand_symtabs_matching) Adjust to use lookup_name_info and
  2606. gdb_index_symbol_name_matcher. Accept a NULL symbol_matcher.
  2607. * f-lang.c (f_collect_symbol_completion_matches): Adjust to work
  2608. with a symbol_name_match_type.
  2609. (f_language_defn): Adjust comments to refer to
  2610. la_get_symbol_name_matcher.
  2611. * go-lang.c (go_language_defn): Adjust comments to refer to
  2612. la_get_symbol_name_matcher.
  2613. * language.c (default_symbol_name_matcher)
  2614. (language_get_symbol_name_matcher): New functions.
  2615. (unknown_language_defn, auto_language_defn): Adjust comments to
  2616. refer to la_get_symbol_name_matcher.
  2617. * language.h (symbol_name_cmp_ftype): Delete.
  2618. (language_defn) <la_collect_symbol_completion_matches>: Add match
  2619. type parameter.
  2620. <la_get_symbol_name_cmp>: Delete field.
  2621. <la_get_symbol_name_matcher>: New field.
  2622. <la_iterate_over_symbols>: Adjust to use lookup_name_info.
  2623. (default_symbol_name_matcher, language_get_symbol_name_matcher):
  2624. Declare.
  2625. * linespec.c (iterate_over_all_matching_symtabs)
  2626. (iterate_over_file_blocks): Adjust to use lookup_name_info.
  2627. (find_methods): Add language parameter, and use lookup_name_info
  2628. and the language's symbol_name_matcher_ftype.
  2629. (linespec_complete_function): Adjust.
  2630. (lookup_prefix_sym): Use lookup_name_info.
  2631. (add_all_symbol_names_from_pspace): Adjust.
  2632. (find_superclass_methods): Add language parameter and pass it
  2633. down.
  2634. (find_method): Pass symbol language down.
  2635. (find_linespec_symbols): Don't demangle or Ada encode here.
  2636. (search_minsyms_for_name): Add lookup_name_info parameter.
  2637. (add_matching_symbols_to_info): Add name_match_type parameter.
  2638. Use lookup_name_info.
  2639. * m2-lang.c (m2_language_defn): Adjust comments to refer to
  2640. la_get_symbol_name_matcher.
  2641. * minsyms.c: Include <algorithm>.
  2642. (add_minsym_to_demangled_hash_table): Remove table parameter and
  2643. add objfile parameter. Use search_name_hash, and add language to
  2644. demangled languages vector.
  2645. (struct found_minimal_symbols): New struct.
  2646. (lookup_minimal_symbol_mangled, lookup_minimal_symbol_demangled):
  2647. New functions.
  2648. (lookup_minimal_symbol): Adjust to use them. Don't canonicalize
  2649. input names here. Use lookup_name_info instead. Lookup up
  2650. demangled names once for each language in the demangled names
  2651. vector.
  2652. (iterate_over_minimal_symbols): Use lookup_name_info. Lookup up
  2653. demangled names once for each language in the demangled names
  2654. vector.
  2655. (build_minimal_symbol_hash_tables): Adjust.
  2656. * minsyms.h (iterate_over_minimal_symbols): Adjust to pass down a
  2657. lookup_name_info.
  2658. * objc-lang.c (objc_language_defn): Adjust comment to refer to
  2659. la_get_symbol_name_matcher.
  2660. * objfiles.h: Include <vector>.
  2661. (objfile_per_bfd_storage) <demangled_hash_languages>: New field.
  2662. * opencl-lang.c (opencl_language_defn): Adjust comment to refer to
  2663. la_get_symbol_name_matcher.
  2664. * p-lang.c (pascal_language_defn): Adjust comment to refer to
  2665. la_get_symbol_name_matcher.
  2666. * psymtab.c (psym_lookup_symbol): Use lookup_name_info.
  2667. (match_partial_symbol): Use symbol_name_match_type,
  2668. lookup_name_info and psymbol_name_matches.
  2669. (lookup_partial_symbol): Use lookup_name_info.
  2670. (map_block): Use symbol_name_match_type and lookup_name_info.
  2671. (psym_map_matching_symbols): Use symbol_name_match_type.
  2672. (psymbol_name_matches): New.
  2673. (recursively_search_psymtabs): Use lookup_name_info and
  2674. psymbol_name_matches. Rename 'kind' parameter to 'domain'.
  2675. (psym_expand_symtabs_matching): Use lookup_name_info. Rename
  2676. 'kind' parameter to 'domain'.
  2677. * rust-lang.c (rust_language_defn): Adjust comment to refer to
  2678. la_get_symbol_name_matcher.
  2679. * symfile-debug.c (debug_qf_map_matching_symbols)
  2680. (debug_qf_map_matching_symbols): Use symbol_name_match_type.
  2681. (debug_qf_expand_symtabs_matching): Use lookup_name_info.
  2682. * symfile.c (expand_symtabs_matching): Use lookup_name_info.
  2683. * symfile.h (quick_symbol_functions) <map_matching_symbols>:
  2684. Adjust to use symbol_name_match_type.
  2685. <expand_symtabs_matching>: Adjust to use lookup_name_info.
  2686. (expand_symtabs_matching): Adjust to use lookup_name_info.
  2687. * symmisc.c (maintenance_expand_symtabs): Use
  2688. lookup_name_info::match_any ().
  2689. * symtab.c (symbol_matches_search_name): New.
  2690. (eq_symbol_entry): Adjust to use lookup_name_info and the
  2691. language's matcher.
  2692. (demangle_for_lookup_info::demangle_for_lookup_info): New.
  2693. (lookup_name_info::match_any): New.
  2694. (iterate_over_symbols, search_symbols): Use lookup_name_info.
  2695. (compare_symbol_name): Add language, lookup_name_info and
  2696. completion_match_result parameters, and use them.
  2697. (completion_list_add_name): Make extern. Add language and
  2698. lookup_name_info parameters. Use them.
  2699. (completion_list_add_symbol, completion_list_add_msymbol)
  2700. (completion_list_objc_symbol): Add lookup_name_info parameters and
  2701. adjust. Pass down language.
  2702. (completion_list_add_fields): Add lookup_name_info parameters and
  2703. adjust. Pass down language.
  2704. (add_symtab_completions): Add lookup_name_info parameters and
  2705. adjust.
  2706. (default_collect_symbol_completion_matches_break_on): Add
  2707. name_match_type parameter, and use it. Use lookup_name_info.
  2708. (default_collect_symbol_completion_matches)
  2709. (collect_symbol_completion_matches): Add name_match_type
  2710. parameter, and pass it down.
  2711. (collect_symbol_completion_matches_type): Adjust.
  2712. (collect_file_symbol_completion_matches): Add name_match_type
  2713. parameter, and use lookup_name_info.
  2714. * symtab.h: Include <string> and "common/gdb_optional.h".
  2715. (enum class symbol_name_match_type): New.
  2716. (class ada_lookup_name_info): New.
  2717. (struct demangle_for_lookup_info): New.
  2718. (class lookup_name_info): New.
  2719. (symbol_name_matcher_ftype): New.
  2720. (SYMBOL_MATCHES_SEARCH_NAME): Use symbol_matches_search_name.
  2721. (symbol_matches_search_name): Declare.
  2722. (MSYMBOL_MATCHES_SEARCH_NAME): Delete.
  2723. (default_collect_symbol_completion_matches)
  2724. (collect_symbol_completion_matches)
  2725. (collect_file_symbol_completion_matches): Add name_match_type
  2726. parameter.
  2727. (iterate_over_symbols): Use lookup_name_info.
  2728. (completion_list_add_name): Declare.
  2729. * utils.c (enum class strncmp_iw_mode): Moved to utils.h.
  2730. (strncmp_iw_with_mode): Now extern.
  2731. * utils.h (enum class strncmp_iw_mode): Moved from utils.c.
  2732. (strncmp_iw_with_mode): Declare.
  2733. 2017-11-08 Keith Seitz <keiths@redhat.com>
  2734. Pedro Alves <palves@redhat.com>
  2735. * ada-lang.c (ada_language_defn): Install
  2736. default_search_name_hash.
  2737. * buildsym.c (struct buildsym_compunit): <language>: New field.
  2738. (finish_block_internal): Pass language when creating dictionaries.
  2739. (start_buildsym_compunit, start_symtab): New language parameters.
  2740. Use them.
  2741. (restart_symtab): Pass down compilation unit's language.
  2742. * buildsym.h (enum language): Forward declare.
  2743. (start_symtab): New 'language' parameter.
  2744. * c-lang.c (c_language_defn, cplus_language_defn)
  2745. (asm_language_defn, minimal_language_defn): Install
  2746. default_search_name_hash.
  2747. * coffread.c (coff_start_symtab): Adjust.
  2748. * d-lang.c (d_language_defn): Install default_search_name_hash.
  2749. * dbxread.c (struct symloc): Add 'pst_language' field.
  2750. (PST_LANGUAGE): Define.
  2751. (start_psymtab, read_ofile_symtab): Use it.
  2752. (process_one_symbol): New 'language' parameter. Pass it down.
  2753. * dictionary.c (struct dictionary) <language>: New field.
  2754. (DICT_LANGUAGE): Define.
  2755. (dict_create_hashed, dict_create_hashed_expandable)
  2756. (dict_create_linear, dict_create_linear_expandable): New parameter
  2757. 'language'. Set the dictionary's language.
  2758. (iter_match_first_hashed): Adjust to rename.
  2759. (insert_symbol_hashed): Assert we don't see mismatching
  2760. languages. Adjust to rename.
  2761. (dict_hash): Rename to ...
  2762. (default_search_name_hash): ... this and make extern.
  2763. * dictionary.h (struct language_defn): Forward declare.
  2764. (dict_create_hashed): New parameter 'language'.
  2765. * dwarf2read.c (dwarf2_start_symtab): Pass down language.
  2766. * f-lang.c (f_language_defn): Install default_search_name_hash.
  2767. * go-lang.c (go_language_defn): Install default_search_name_hash.
  2768. * jit.c (finalize_symtab): Pass compunit's language to dictionary
  2769. creation.
  2770. * language.c (unknown_language_defn, auto_language_defn):
  2771. * language.h (language_defn::la_search_name_hash): New field.
  2772. (default_search_name_hash): Declare.
  2773. * m2-lang.c (m2_language_defn): Install default_search_name_hash.
  2774. * mdebugread.c (new_block): New parameter 'language'.
  2775. * mdebugread.c (parse_symbol): Pass symbol language to block
  2776. allocation.
  2777. (psymtab_to_symtab_1): Pass down language.
  2778. (new_symtab): Pass compunit's language to block allocation.
  2779. * objc-lang.c (objc_language_defn): Install
  2780. default_search_name_hash.
  2781. * opencl-lang.c (opencl_language_defn):
  2782. * p-lang.c (pascal_language_defn): Install
  2783. default_search_name_hash.
  2784. * rust-lang.c (rust_language_defn): Install
  2785. default_search_name_hash.
  2786. * stabsread.h (enum language): Forward declare.
  2787. (process_one_symbol): Add 'language' parameter.
  2788. * symtab.c (search_name_hash): New function.
  2789. * symtab.h (search_name_hash): Declare.
  2790. * xcoffread.c (read_xcoff_symtab): Pass language to start_symtab.
  2791. 2017-11-08 Pedro Alves <palves@redhat.com>
  2792. * cp-name-parser.y (main): Don't initialize extra_chars.
  2793. 2017-11-07 Tom Tromey <tom@tromey.com>
  2794. * event-top.h (command_handler): Constify.
  2795. * record-full.c (cmd_record_full_start): Update.
  2796. * thread.c (thread_apply_all_command): Update.
  2797. * printcmd.c (eval_command): Update.
  2798. * mi/mi-main.c (mi_execute_cli_command): Update.
  2799. (mi_execute_async_cli_command): Update.
  2800. * tui/tui-stack.c (tui_update_command): Update.
  2801. * cli/cli-interp.c (safe_execute_command): Constify.
  2802. * record.c (record_start): Update.
  2803. (record_start, record_stop, cmd_record_start): Update.
  2804. * record-btrace.c (cmd_record_btrace_bts_start): Update.
  2805. (cmd_record_btrace_pt_start): Update.
  2806. (cmd_record_btrace_start): Update.
  2807. (cmd_record_btrace_start): Update.
  2808. * reverse.c (exec_reverse_once): Update.
  2809. * python/python.c (execute_gdb_command): Don't copy the command.
  2810. * event-top.c (command_line_handler): Update.
  2811. (command_handler): Constify.
  2812. * defs.h (deprecated_call_command_hook): Constify.
  2813. * cli/cli-script.h (execute_user_command): Constify.
  2814. * cli/cli-script.c (execute_user_command): Constify.
  2815. (execute_cmd_pre_hook, execute_cmd_post_hook): Constify.
  2816. (enum command_control_type): Update.
  2817. * main.c (catch_command_errors): Remove non-const overload.
  2818. (catch_command_errors_ftype): Remove.
  2819. * python/py-cmd.c (cmdpy_function): Constify.
  2820. * guile/scm-cmd.c (cmdscm_function): Constify.
  2821. * cli/cli-dump.c (call_dump_func): Constify.
  2822. * cli/cli-decode.c (do_const_cfunc): Constify.
  2823. (do_sfunc): Constify.
  2824. (cmd_func): Constify.
  2825. * gdbcmd.h (execute_command, execute_command_to_string): Constify.
  2826. * top.h (execute_command): Constify.
  2827. * top.c (execute_command): Constify.
  2828. (execute_command_to_string): Constify.
  2829. (deprecated_call_command_hook): Constify.
  2830. * command.h (cmd_func): Constify.
  2831. * cli/cli-decode.h (struct cmd_list_element) <func>: Constify.
  2832. 2017-11-07 Tom Tromey <tom@tromey.com>
  2833. * ada-lang.c (catch_ada_exception_command): Constify.
  2834. (catch_assert_command): Constify.
  2835. * break-catch-throw.c (catch_catch_command, catch_throw_command)
  2836. (catch_rethrow_command): Constify.
  2837. (catch_exception_command_1): Constify.
  2838. * breakpoint.h (add_catch_command): Constify.
  2839. * break-catch-syscall.c (catch_syscall_command_1): Constify.
  2840. (catch_syscall_split_args): Constify.
  2841. * break-catch-sig.c (catch_signal_command): Constify.
  2842. (catch_signal_split_args): Constify.
  2843. * cli/cli-decode.h (struct cmd_list_element) <function>: Use
  2844. cmd_const_sfunc_ftype.
  2845. * cli/cli-decode.c (add_setshow_cmd_full): Constify.
  2846. (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd)
  2847. (add_setshow_boolean_cmd, add_setshow_filename_cmd)
  2848. (add_setshow_string_cmd, struct cmd_list_element)
  2849. (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
  2850. (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
  2851. (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd):
  2852. Constify.
  2853. (set_cmd_sfunc): Constify.
  2854. (empty_sfunc): Constify.
  2855. * command.h (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd)
  2856. (add_setshow_boolean_cmd, add_setshow_filename_cmd)
  2857. (add_setshow_string_cmd, add_setshow_string_noescape_cmd)
  2858. (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
  2859. (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
  2860. (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
  2861. Constify.
  2862. (set_cmd_sfunc): Constify.
  2863. (cmd_sfunc_ftype): Remove.
  2864. * compile/compile.c (set_compile_args): Constify.
  2865. * infrun.c (set_disable_randomization): Constify.
  2866. * infcmd.c (set_args_command, set_cwd_command): Constify.
  2867. * breakpoint.c (set_condition_evaluation_mode): Constify.
  2868. (add_catch_command): Constify.
  2869. (catch_fork_command_1, catch_exec_command_1)
  2870. (catch_load_command_1, catch_unload_command_1): Constify.
  2871. (catch_load_or_unload): Constify.
  2872. * guile/scm-param.c (pascm_set_func): Constify.
  2873. (add_setshow_generic): Constify.
  2874. * python/py-param.c (get_set_value): Constify.
  2875. * top.h (set_verbose): Constify.
  2876. * tui/tui-win.c (tui_set_var_cmd): Constify.
  2877. * mi/mi-main.c (set_mi_async_command): Constify.
  2878. * cli/cli-logging.c (set_logging_overwrite)
  2879. (set_logging_redirect): Constify.
  2880. * value.c (set_max_value_size): Constify.
  2881. * valprint.c (set_input_radix, set_output_radix): Constify.
  2882. * utils.c (set_width_command, set_height_command): Constify.
  2883. * typeprint.c (set_print_type_methods, set_print_type_typedefs): Constify.
  2884. * tracepoint.c (set_disconnected_tracing)
  2885. (set_circular_trace_buffer, set_trace_buffer_size)
  2886. (set_trace_user, set_trace_notes, set_trace_stop_notes): Constify.
  2887. * top.c (set_history_size_command, set_verbose, set_editing)
  2888. (set_gdb_datadir, set_history_filename): Constify.
  2889. * target.c (set_targetdebug, maint_set_target_async_command)
  2890. (maint_set_target_non_stop_command, set_target_permissions)
  2891. (set_write_memory_permission): Constify.
  2892. (open_target): Constify.
  2893. * target-descriptions.c (set_tdesc_filename_cmd): Constify.
  2894. * target-dcache.c (set_stack_cache, set_code_cache): Constify.
  2895. * symtab.c (set_symbol_cache_size_handler): Constify.
  2896. * symfile.c (set_ext_lang_command): Constify.
  2897. * symfile-debug.c (set_debug_symfile): Constify.
  2898. * source.c (set_directories_command): Constify.
  2899. * solib.c (reload_shared_libraries, gdb_sysroot_changed): Constify.
  2900. * serial.c (set_parity): Constify.
  2901. * rs6000-tdep.c (powerpc_set_soft_float, powerpc_set_vector_abi): Constify.
  2902. * remote.c (set_remote_exec_file, set_remotebreak)
  2903. (set_remote_protocol_Z_packet_cmd, set_range_stepping): Constify.
  2904. * record.c (set_record_insn_history_size)
  2905. (set_record_call_history_size): Constify.
  2906. * record-full.c (set_record_full_insn_max_num): Constify.
  2907. * proc-api.c (set_procfs_trace_cmd, set_procfs_file_cmd): Constify.
  2908. * osabi.c (set_osabi): Constify.
  2909. * mips-tdep.c (set_mips64_transfers_32bit_regs)
  2910. (reinit_frame_cache_sfunc, mips_abi_update): Constify.
  2911. * maint.c (maintenance_set_profile_cmd): Constify.
  2912. * linux-thread-db.c (set_libthread_db_search_path): Constify.
  2913. * language.c (set_language_command, set_range_command)
  2914. (set_case_command): Constify.
  2915. * infrun.c (set_non_stop, set_observer_mode)
  2916. (set_stop_on_solib_events, set_schedlock_func)
  2917. (set_exec_direction_func): Constify.
  2918. * infcmd.c (set_inferior_tty_command): Constify.
  2919. * disasm.c (set_disassembler_options_sfunc): Constify.
  2920. * demangle.c (set_demangling_command): Constify.
  2921. * dcache.c (set_dcache_size, set_dcache_line_size): Constify.
  2922. * cris-tdep.c (set_cris_version, set_cris_mode)
  2923. (set_cris_dwarf2_cfi): Constify.
  2924. * corefile.c (set_gnutarget_command): Constify.
  2925. * charset.c (set_host_charset_sfunc, set_target_charset_sfunc)
  2926. (set_target_wide_charset_sfunc): Constify.
  2927. * breakpoint.c (update_dprintf_commands): Constify.
  2928. * auto-load.c (set_auto_load_dir, set_auto_load_safe_path): Constify.
  2929. * arm-tdep.c (set_fp_model_sfunc, arm_set_abi)
  2930. (set_disassembly_style_sfunc): Constify.
  2931. * arch-utils.c (set_endian, set_architecture): Constify.
  2932. * alpha-tdep.c (reinit_frame_cache_sfunc): Constify.
  2933. * agent.c (set_can_use_agent): Constify.
  2934. 2017-11-07 Tom Tromey <tom@tromey.com>
  2935. * go32-nat.c (go32_sysinfo, go32_sldt, go32_sgdt, go32_sidt)
  2936. (go32_pde, go32_pte, go32_pte_for_address): Constify.
  2937. * gnu-nat.c (_parse_bool_arg, show_thread_default_pause_cmd)
  2938. (set_thread_default_pause_cmd, set_thread_default_run_cmd)
  2939. (show_thread_default_run_cmd, set_thread_default_detach_sc_cmd)
  2940. (parse_int_arg, show_thread_default_detach_sc_cmd)
  2941. (set_signals_cmd, show_signals_cmd, set_sig_thread_cmd)
  2942. (show_sig_thread_cmd, set_stopped_cmd, show_stopped_cmd)
  2943. (set_exceptions_cmd, show_exceptions_cmd, set_task_pause_cmd)
  2944. (show_task_pause_cmd, set_task_detach_sc_cmd)
  2945. (show_task_detach_sc_cmd, set_task_exc_port_cmd)
  2946. (set_noninvasive_cmd, set_thread_pause_cmd)
  2947. (show_thread_pause_cmd, set_thread_run_cmd, show_thread_run_cmd)
  2948. (set_thread_detach_sc_cmd, show_thread_detach_sc_cmd)
  2949. (set_thread_exc_port_cmd, thread_takeover_sc_cmd): Constify.
  2950. * windows-nat.c (display_selectors): Constify.
  2951. * cli/cli-decode.h (struct cmd_list_element) <function>: Remove
  2952. non-const "cfunc".
  2953. * cli/cli-decode.c (set_cmd_cfunc): Remove non-const overload.
  2954. (cmd_cfunc_eq): Likewise.
  2955. (struct cmd_list_element): Likewise.
  2956. (do_cfunc): Remove.
  2957. (cli_user_command_p): Update.
  2958. * command.h (add_cmd): Remove non-const overload.
  2959. (cmd_cfunc_ftype): Remove typedef.
  2960. (cmd_cfunc_eq): Remove non-const overload.
  2961. * value.c (show_values): Constify.
  2962. * thread.c (thread_apply_all_command): Constify.
  2963. * symfile.c (load_command): Constify.
  2964. * source.c (directory_command): Constify.
  2965. * maint.c (maintenance_internal_error)
  2966. (maintenance_demangler_warning, maintenance_space_display)
  2967. (maintenance_print_architecture, maintenance_translate_address)
  2968. (maintenance_info_selftests, maintenance_internal_warning):
  2969. Constify.
  2970. * breakpoint.c (disable_trace_command, enable_trace_command):
  2971. Constify.
  2972. * auto-load.c (info_auto_load_local_gdbinit, add_auto_load_dir):
  2973. Constify.
  2974. (add_auto_load_safe_path): Constify.
  2975. * guile/scm-auto-load.c (info_auto_load_guile_scripts): Constify.
  2976. * top.h (show_commands): Constify.
  2977. * linux-thread-db.c (info_auto_load_libthread_db): Constify.
  2978. * sparc64-tdep.c (adi_examine_command): Constify.
  2979. (adi_assign_command): Constify.
  2980. 2017-11-07 Tom Tromey <tom@tromey.com>
  2981. * frame.h (info_locals_command, info_args_command): Constify.
  2982. * auto-load.h (auto_load_info_scripts): Constify.
  2983. * inferior.h (registers_info): Constify.
  2984. * copying.c: Rebuild.
  2985. * copying.awk: Constify generated commands.
  2986. * auto-load.c (auto_load_info_scripts)
  2987. (info_auto_load_gdb_scripts): Constify.
  2988. * cli/cli-decode.c (struct cmd_list_element): Take a
  2989. cmd_const_cfunc_ftype.
  2990. * command.h (add_info): Take a cmd_const_cfunc_ftype.
  2991. * tui/tui-win.c (tui_all_windows_info): Constify.
  2992. * python/py-auto-load.c (info_auto_load_python_scripts):
  2993. Constify.
  2994. * cli/cli-cmds.c (show_command): Remove non-const overload.
  2995. * tracepoint.c (info_tvariables_command, info_scope_command):
  2996. Constify.
  2997. (info_static_tracepoint_markers_command): Constify.
  2998. * thread.c (info_threads_command): Constify.
  2999. (print_thread_info_1): Constify.
  3000. * target.c (info_target_command): Constify.
  3001. * symtab.c (info_sources_command, info_functions_command)
  3002. (info_types_command): Constify.
  3003. (info_variables_command): Remove non-const overload.
  3004. * symfile.c (info_ext_lang_command): Constify.
  3005. * stack.c (info_frame_command, info_locals_command)
  3006. (info_args_command): Constify.
  3007. (backtrace_command): Remove non-const overload.
  3008. * source.c (info_source_command, info_line_command): Constify.
  3009. * solib.c (info_sharedlibrary_command): Constify.
  3010. * skip.c (info_skip_command): Constify.
  3011. * ser-go32.c (info_serial_command): Constify.
  3012. * reverse.c (info_bookmarks_command): Constify.
  3013. * printcmd.c (info_symbol_command, info_address_command)
  3014. (info_display_command): Constify.
  3015. * osdata.c (info_osdata_command): Constify.
  3016. * objc-lang.c (info_selectors_command, info_classes_command):
  3017. Constify.
  3018. * nto-procfs.c (procfs_pidlist, procfs_meminfo): Constify.
  3019. * memattr.c (info_mem_command): Constify.
  3020. * macrocmd.c (info_macro_command, info_macros_command): Constify.
  3021. * linux-fork.c (info_checkpoints_command): Constify.
  3022. * infrun.c (info_signals_command): Constify.
  3023. * inflow.c (info_terminal_command): Constify.
  3024. * inferior.c (info_inferiors_command): Constify.
  3025. (print_inferior): Constify.
  3026. * infcmd.c (info_program_command, info_all_registers_command)
  3027. (info_registers_command, info_vector_command)
  3028. (info_float_command): Constify.
  3029. (registers_info): Constify.
  3030. * gnu-nat.c (info_send_rights_cmd, info_recv_rights_cmd)
  3031. (info_port_sets_cmd, info_dead_names_cmd, info_port_rights_cmd):
  3032. Constify.
  3033. * f-valprint.c (info_common_command): Constify.
  3034. * dcache.c (info_dcache_command): Constify.
  3035. (dcache_info_1): Constify.
  3036. * darwin-nat-info.c (info_mach_tasks_command)
  3037. (info_mach_task_command, info_mach_ports_command)
  3038. (info_mach_port_command, info_mach_threads_command)
  3039. (info_mach_thread_command, info_mach_regions_command)
  3040. (info_mach_regions_recurse_command, info_mach_region_command)
  3041. (info_mach_exceptions_command): Constify.
  3042. (get_task_from_args): Constify.
  3043. * cp-support.c (info_vtbl_command): Constify.
  3044. * breakpoint.c (info_watchpoints_command)
  3045. (info_tracepoints_command): Constify.
  3046. (info_breakpoints_command): Remove non-const overload.
  3047. * avr-tdep.c (avr_io_reg_read_command): Constify.
  3048. * auxv.c (info_auxv_command): Constify.
  3049. * ada-tasks.c (info_tasks_command): Constify.
  3050. (info_task): Constify.
  3051. * ada-lang.c (info_exceptions_command): Constify.
  3052. 2017-11-07 Tom Tromey <tom@tromey.com>
  3053. * solib.h (no_shared_libraries): Constify.
  3054. * frame.h (return_command): Constify.
  3055. * cli/cli-cmds.h (quit_command): Constify.
  3056. * top.h (quit_command, execute_command): Constify.
  3057. * target.h (flash_erase_command): Constify.
  3058. * inferior.h (set_inferior_args, attach_command): Constify.
  3059. * tracepoint.h (start_tracing, stop_tracing): Constify.
  3060. * breakpoint.h (break_command, tbreak_command)
  3061. (hbreak_command_wrapper, thbreak_command_wrapper)
  3062. (rbreak_command_wrapper, watch_command_wrapper)
  3063. (awatch_command_wrapper, rwatch_command_wrapper)
  3064. (get_tracepoint_by_number): Constify.
  3065. * symtab.c (info_variables_command, rbreak_command)
  3066. (symtab_symbol_info): Constify.
  3067. (info_variables_command): Add non-const overload.
  3068. * top.c (dont_repeat_command): Constify.
  3069. * breakpoint.c (ignore_command, commands_command)
  3070. (condition_command, tbreak_command, hbreak_command)
  3071. (thbreak_command, clear_command, break_command)
  3072. (info_breakpoints_command, watch_command, rwatch_command)
  3073. (awatch_command, trace_command, ftrace_command, strace_command)
  3074. (trace_pass_command, break_range_command, dprintf_command)
  3075. (agent_printf_command, get_tracepoint_by_number)
  3076. (watch_maybe_just_location, trace_pass_command): Constify.
  3077. (info_breakpoints_command): Add non-const overload.
  3078. * tracefile.c (tsave_command): Constify.
  3079. * infcmd.c (attach_command, disconnect_command, signal_command)
  3080. (queue_signal_command, stepi_command, nexti_command)
  3081. (finish_command, next_command, step_command, until_command)
  3082. (advance_command, jump_command, continue_command, run_command)
  3083. (start_command, starti_command, interrupt_command)
  3084. (run_command_1, set_inferior_args, step_1): Constify.
  3085. * inferior.c (add_inferior_command, remove_inferior_command)
  3086. (clone_inferior_command): Constify.
  3087. * linux-fork.c (checkpoint_command, restart_command): Constify.
  3088. * windows-nat.c (signal_event_command): Constify.
  3089. * guile/guile.c (guile_repl_command, guile_command): Constify.
  3090. * printcmd.c (x_command, display_command, printf_command)
  3091. (output_command, set_command, call_command, print_command)
  3092. (eval_command): Constify.
  3093. (non_const_set_command): Remove.
  3094. (_initialize_printcmd): Update.
  3095. * source.c (forward_search_command, reverse_search_command):
  3096. Constify.
  3097. * jit.c (jit_reader_load_command, jit_reader_unload_command):
  3098. Constify.
  3099. * infrun.c (handle_command): Constify.
  3100. * memattr.c (mem_command): Constify.
  3101. * stack.c (return_command, up_command, up_silently_command)
  3102. (down_command, down_silently_command, frame_command)
  3103. (backtrace_command, func_command, backtrace_command_1): Constify.
  3104. (backtrace_command): Add non-const overload.
  3105. * remote-sim.c (simulator_command): Constify.
  3106. * exec.c (set_section_command): Constify.
  3107. * tracepoint.c (tdump_command, trace_variable_command)
  3108. (tstatus_command, tstop_command, tstart_command)
  3109. (end_actions_pseudocommand, while_stepping_pseudocommand)
  3110. (collect_pseudocommand, teval_pseudocommand, actions_command)
  3111. (start_tracing, stop_tracing): Constify.
  3112. * value.c (init_if_undefined_command): Constify.
  3113. * tui/tui-stack.c (tui_update_command): Constify.
  3114. * tui/tui-win.c (tui_refresh_all_command)
  3115. (tui_set_tab_width_command, tui_set_win_height_command)
  3116. (tui_set_focus_command, tui_scroll_forward_command)
  3117. (tui_scroll_backward_command, tui_scroll_left_command)
  3118. (tui_scroll_right_command, parse_scrolling_args, tui_set_focus)
  3119. (tui_set_win_height): Constify.
  3120. * tui/tui-layout.c (tui_layout_command): Constify.
  3121. * procfs.c (proc_trace_syscalls, proc_trace_sysentry_cmd)
  3122. (proc_trace_sysexit_cmd, proc_untrace_sysentry_cmd)
  3123. (proc_untrace_sysexit_cmd): Constify.
  3124. * remote.c (threadlist_test_cmd, threadinfo_test_cmd)
  3125. (threadset_test_cmd, threadlist_update_test_cmd)
  3126. (threadalive_test): Constify.
  3127. * objc-lang.c (print_object_command): Constify.
  3128. * command.h (add_com): Constify.
  3129. * cli/cli-dump.c (restore_command): Constify.
  3130. * cli/cli-cmds.c (pwd_command, echo_command, quit_command)
  3131. (help_command, complete_command, shell_command, edit_command)
  3132. (list_command, disassemble_command, make_command)
  3133. (apropos_command, alias_command): Constify.
  3134. * cli/cli-script.c (document_command, define_command)
  3135. (while_command, if_command, validate_comname): Constify.
  3136. * cli/cli-decode.c (struct cmd_list_element): Change type of
  3137. "fun".
  3138. * target.c (do_monitor_command, flash_erase_command): Constify.
  3139. * regcache.c (reg_flush_command): Constify.
  3140. * reverse.c (reverse_step, reverse_next, reverse_stepi)
  3141. (reverse_nexti, reverse_continue, reverse_finish)
  3142. (save_bookmark_command, goto_bookmark_command)
  3143. (exec_reverse_once): Constify.
  3144. * python/python.c (python_interactive_command, python_command):
  3145. Constify.
  3146. * typeprint.c (ptype_command, whatis_command, whatis_exp):
  3147. Constify.
  3148. * solib.c (sharedlibrary_command, no_shared_libraries): Constify.
  3149. * gcore.c (gcore_command): Constify.
  3150. 2017-11-07 Tom Tromey <tom@tromey.com>
  3151. * printcmd.c (x_command): Call set_repeat_arguments.
  3152. * cli/cli-cmds.c (list_command): Call set_repeat_arguments.
  3153. * top.c (repeat_arguments): New global.
  3154. (set_repeat_arguments): New function.
  3155. (execute_command): Handle repeat_arguments.
  3156. (show_commands): Calls set_repeat_arguments.
  3157. * command.h (set_repeat_arguments): Declare.
  3158. 2017-11-07 Tom Tromey <tom@tromey.com>
  3159. * stack.c (backtrace_command): Use std::string.
  3160. (backtrace_command_1): Make "count_exp" const.
  3161. 2017-11-07 Tom Tromey <tom@tromey.com>
  3162. * source.c (directory_switch, mod_path, add_path): Constify.
  3163. * defs.h (add_path, mod_path, directory_switch): Constify.
  3164. * mi/mi-cmd-env.c (env_mod_path): Constify.
  3165. 2017-11-07 Tom Tromey <tom@tromey.com>
  3166. * infcmd.c (strip_bg_char): Return gdb::unique_xmalloc_ptr.
  3167. (run_command_1, continue_command, step_1, jump_command)
  3168. (signal_command, until_command, advance_command, finish_command)
  3169. (attach_command): Update.
  3170. 2017-11-07 Tom Tromey <tom@tromey.com>
  3171. * command.h (set_cmd_cfunc): Don't declare.
  3172. * cli/cli-decode.c (set_cmd_cfunc): Now static.
  3173. 2017-11-07 Tom Tromey <tom@tromey.com>
  3174. * stack.c (select_frame_command): Constify.
  3175. * cli/cli-decode.c (add_com_suppress_notification): Constify.
  3176. * command.h (add_com_suppress_notification): Constify.
  3177. 2017-11-07 Tom Tromey <tom@tromey.com>
  3178. * breakpoint.c (stop_command): Constify.
  3179. * cli/cli-decode.c (struct cmd_list_element): Constify.
  3180. * command.h (add_abbrev_prefix_cmd): Constify.
  3181. 2017-11-07 Pedro Alves <palves@redhat.com>
  3182. * breakpoint.c (extract_bp_kind): New enum.
  3183. (extract_bp_num, extract_bp_or_bp_range): New functions, partially
  3184. factored out from ...
  3185. (extract_bp_number_and_location): ... here.
  3186. * cli/cli-utils.c (get_number_trailer): Handle '-$variable'.
  3187. 2017-11-07 Pedro Alves <palves@redhat.com>
  3188. * breakpoint.c (extract_bp_number_and_location): Change return
  3189. type to void. Throw error instead of warning.
  3190. (enable_disable_command): Adjust.
  3191. 2017-11-07 Xavier Roirand <roirand@adacore.com>
  3192. Pedro Alves <palves@redhat.com>
  3193. * breakpoint.c (map_breakpoint_number_range): New, factored out
  3194. from ...
  3195. (map_breakpoint_numbers): ... here.
  3196. (find_location_by_number): Change parameters from string to
  3197. breakpoint number and location.
  3198. (extract_bp_number_and_location): New function.
  3199. (enable_disable_bp_num_loc)
  3200. (enable_disable_breakpoint_location_range)
  3201. (enable_disable_command): New functions, factored out ...
  3202. (enable_command, disable_command): ... these functions, and
  3203. adjusted to support ranges.
  3204. * NEWS: Document enable/disable breakpoint location range feature.
  3205. 2017-11-06 Luis Machado <luis.machado@linaro.org>
  3206. * MAINTAINERS (Write After Approval): Update my e-mail address.
  3207. 2017-11-06 Pedro Alves <palves@redhat.com>
  3208. * gnu-nat.c (gnu_terminal_init): Delete.
  3209. (gnu_target): Don't install gnu_terminal_init.
  3210. * inflow.c (child_terminal_init_with_pgrp): Delete, merged with ...
  3211. (child_terminal_init): ... this function.
  3212. 2017-11-06 Pedro Alves <palves@redhat.com>
  3213. * common/common.m4 (GDB_AC_COMMON): No longer check termio.h nor
  3214. sgtty.h.
  3215. * config.in, configure: Regenerate.
  3216. 2017-11-06 Pedro Alves <palves@redhat.com>
  3217. * event-top.c: Check SIGTSTP instead of STOP_SIGNAL thoughout.
  3218. (async_init_signals): Adjust.
  3219. (handle_stop_sig): Rename to ...
  3220. (handle_sigtstp): ... this.
  3221. (async_stop_sig): Rename to ...
  3222. (async_sigtstp_handler): ... this, and delete STOP_SIGNAL !=
  3223. SIGTSTP path.
  3224. * event-top.h: Move signal.h include to the top. Check SIGTSTP
  3225. instead of STOP_SIGNAL thoughout.
  3226. (handle_stop_sig): Rename to ...
  3227. (handle_sigtstp): ... this.
  3228. * top.c (command_line_input): Replace STOP_SIGNAL -> SIGTSTP.
  3229. 2017-11-06 Pedro Alves <palves@redhat.com>
  3230. * inflow.c (child_terminal_inferior, child_terminal_ours_1): No
  3231. longer set flags twice in row.
  3232. 2017-11-06 Pedro Alves <palves@redhat.com>
  3233. * Makefile.in (SER_HARDWIRE): Update comment.
  3234. (HFILES_NO_SRCDIR): Remove gdb_termios.h.
  3235. * common/gdb_termios.h: Delete file.
  3236. * common/job-control.c: Include termios.h and unistd.h instead of
  3237. gdb_termios.h.
  3238. (gdb_setpgid): Remove HAVE_TERMIOS || TIOCGPGRP preprocessor
  3239. check.
  3240. (have_job_control): Check HAVE_TERMIOS_H instead of HAVE_TERMIOS.
  3241. Remove sgtty code.
  3242. * configure.ac: No longer check for termio.h and sgtty.h.
  3243. * configure: Regenerate.
  3244. * inflow.c: Include termios.h instead of gdb_termios.h. Replace
  3245. PROCESS_GROUP_TYPE checks with HAVE_TERMIOS_H checks throughout.
  3246. Replace PROCESS_GROUP_TYPE references with pid_t references
  3247. throughout.
  3248. (gdb_getpgrp): Delete.
  3249. (set_initial_gdb_ttystate): Use tcgetpgrp instead of gdb_getpgrp.
  3250. (child_terminal_inferior): Remove comment. Remove sgtty code.
  3251. (child_terminal_ours_1): Use tcgetpgrp directly instead of
  3252. gdb_getpgrp. Use serial_set_tty_state instead aof
  3253. serial_noflush_set_tty_state. Remove sgtty code.
  3254. * inflow.h: Include unistd.h instead of gdb_termios.h. Replace
  3255. PROCESS_GROUP_TYPE check with HAVE_TERMIOS_H check.
  3256. (inferior_process_group): Now returns pid_t.
  3257. * ser-base.c (ser_base_noflush_set_tty_state): Delete.
  3258. * ser-base.h (ser_base_noflush_set_tty_state): Delete.
  3259. * ser-event.c (serial_event_ops): Update.
  3260. * ser-go32.c (dos_noflush_set_tty_state): Delete.
  3261. (dos_ops): Update.
  3262. * ser-mingw.c (hardwire_ops, tty_ops, pipe_ops, tcp_ops): Update.
  3263. * ser-pipe.c (pipe_ops): Update.
  3264. * ser-tcp.c (tcp_ops): Update.
  3265. * ser-unix.c: Include termios.h instead of gdb_termios.h. Remove
  3266. HAVE_TERMIOS checks.
  3267. [HAVE_TERMIO] (struct hardwire_ttystate): Delete.
  3268. [HAVE_SGTTY] (struct hardwire_ttystate): Delete.
  3269. (get_tty_state, set_tty_state): Drop termio and sgtty code, and
  3270. assume termios.
  3271. (hardwire_noflush_set_tty_state): Delete.
  3272. (hardwire_print_tty_state, hardwire_drain_output)
  3273. (hardwire_flush_output, hardwire_flush_input)
  3274. (hardwire_send_break, hardwire_raw, hardwire_setbaudrate)
  3275. (hardwire_setstopbits, hardwire_setparity): Drop termio and sgtty
  3276. code, and assume termios.
  3277. (hardwire_ops): Update.
  3278. (_initialize_ser_hardwire): Remove HAVE_TERMIOS check.
  3279. * serial.c (serial_noflush_set_tty_state): Delete.
  3280. * serial.h (serial_noflush_set_tty_state): Delete.
  3281. (serial_ops::noflush_set_tty_state): Delete.
  3282. 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
  3283. * Makefile.in (SFILES): Remove doublest.c and dfp.c.
  3284. (HFILES_NO_SRCDIR): Remove doublest.h and dfp.h.
  3285. (COMMON_OBS): Remove doublest.o and dfp.o.
  3286. Do not build target-float.c (instead of doublest.c)
  3287. with -Wformat-nonliteral.
  3288. * doublest.c: Remove file.
  3289. * doublest.h: Remove file.
  3290. * dfp.c: Remove file.
  3291. * dfp.h: Remove file.
  3292. * target-float.c: Do not include "doublest.h" and "dfp.h".
  3293. (DOUBLEST): Move here from doublest.h.
  3294. (enum float_kind): Likewise.
  3295. (FLOATFORMAT_CHAR_BIT): Likewise.
  3296. (FLOATFORMAT_LARGEST_BYTES): Likewise.
  3297. (floatformat_totalsize_bytes): Move here from doublest.c. Make static.
  3298. (floatformat_precision): Likewise.
  3299. (floatformat_normalize_byteorder, get_field, put_field): Likewise.
  3300. (floatformat_is_negative, floatformat_classify, floatformat_mantissa):
  3301. Likewise.
  3302. (host_float_format, host_double_format, host_long_double_format):
  3303. Likewise.
  3304. (floatformat_to_string, floatformat_from_string): Likewise.
  3305. (floatformat_to_doublest): Likewise. Also, inline the original
  3306. convert_floatformat_to_doublest.
  3307. (floatformat_from_doublest): Likewise. Also, inline the original
  3308. convert_floatformat_from_doublest.
  3309. Include "dpd/decimal128.h", "dpd/decimal64.h", and "dpd/decimal32.h".
  3310. (MAX_DECIMAL_STRING): Move here from dfp.c.
  3311. (match_endianness): Likewise.
  3312. (set_decnumber_context, decimal_check_errors): Likewise.
  3313. (decimal_from_number, decimal_to_number): Likewise.
  3314. (decimal_to_string, decimal_from_string): Likewise. Make static.
  3315. (decimal_from_longest, decimal_from_ulongest): Likewise.
  3316. (decimal_to_longest): Likewise.
  3317. (decimal_binop, decimal_is_zero, decimal_compare): Likewise.
  3318. (decimal_convert): Likewise.
  3319. 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
  3320. * doublest.c: Do not include "gdbtypes.h".
  3321. (extract_typed_floating): Remove.
  3322. (store_typed_floating): Remove.
  3323. (convert_typed_floating): Remove.
  3324. * doublest.h (struct type): Remove.
  3325. (DOUBLEST_PRINT_FORMAT): Remove.
  3326. (DOUBLEST_SCAN_FORMAT): Remove.
  3327. (extract_typed_floating): Remove.
  3328. (store_typed_floating): Remove.
  3329. (convert_typed_floating): Remove.
  3330. * dfp.c (decimal_from_doublest): Remove.
  3331. (decimal_to_doublest): Remove.
  3332. * dfp.h: Do not include "doublest.h".
  3333. (decimal_from_doublest): Remove.
  3334. (decimal_to_doublest): Remove.
  3335. * value.c: Do not include "doublest.h" and "dfp.h".
  3336. (value_as_double): Remove.
  3337. (unpack_double): Remove.
  3338. (value_from_double): Remove.
  3339. (value_from_decfloat): Remove.
  3340. * value.h: Do not include "doublest.h".
  3341. (value_as_double): Remove.
  3342. (unpack_double): Remove.
  3343. (value_from_double): Remove.
  3344. (value_from_decfloat): Remove.
  3345. 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
  3346. * i386-tdep.c: Include "target-float.h". Do not include "doublest.h".
  3347. (i386_extract_return_value): Use target_float_convert.
  3348. (i386_store_return_value): Likewise.
  3349. * i387-tdep.c (i387_register_to_value): Use target_float_convert.
  3350. (i387_value_to_register): Likewise.
  3351. * ia64-tdep.c: Include "target-float.h". Do not include "doublest.h".
  3352. (ia64_register_to_value): Use target_float_convert.
  3353. (ia64_value_to_register): Likewise.
  3354. (ia64_extract_return_value): Likewise.
  3355. (ia64_store_return_value): Likewise.
  3356. (ia64_push_dummy_call): Likewise.
  3357. * m68k-tdep.c: Include "target-float.h".
  3358. (m68k_register_to_value): Use target_float_convert.
  3359. (m68k_value_to_register): Likewise.
  3360. (m68k_svr4_extract_return_value): Likewise.
  3361. (m68k_svr4_store_return_value): Likewise.
  3362. * ppc-sysv-tdep.c: Include "target-float.h".
  3363. (ppc_sysv_abi_push_dummy_call): Use target_float_convert.
  3364. (do_ppc_sysv_return_value): Likewise.
  3365. (ppc64_sysv_abi_push_freg): Likewise.
  3366. (ppc64_sysv_abi_return_value_base): Likewise.
  3367. * rs6000-aix-tdep.c: Include "target-float.h".
  3368. (rs6000_push_dummy_call): Use target_float_convert.
  3369. (rs6000_return_value): Likewise.
  3370. * rs6000-lynx178-tdep.c: Include "target-float.h".
  3371. (rs6000_lynx178_push_dummy_call): Use target_float_convert.
  3372. (rs6000_lynx178_return_value): Likewise.
  3373. * rs6000-tdep.c: Include "target-float.h". Do not include "doublest.h".
  3374. (rs6000_register_to_value): Use target_float_convert.
  3375. (rs6000_value_to_register): Likewise.
  3376. * arm-tdep.c: Include "target-float.h". Do not include "doublest.h".
  3377. (arm_extract_return_value): Use target_float_convert.
  3378. (arm_store_return_value): Likewise.
  3379. * sh-tdep.c: Include "target-float.h". Do not include "doublest.h".
  3380. (sh_register_convert_to_virtual): Use target_float_convert.
  3381. (sh_register_convert_to_raw): Likewise.
  3382. * sh64-tdep.c: Include "target-float.h".
  3383. (sh64_extract_return_value): Use target_float_convert.
  3384. (sh64_register_convert_to_virtual): Likewise.
  3385. (sh64_register_convert_to_raw): Likewise. Fix argument types.
  3386. 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
  3387. * target-float.c (floatformat_to_host_double): New function.
  3388. (floatformat_from_host_double): Likewise.
  3389. (target_float_to_host_double): Likewise.
  3390. (target_float_from_host_double): Likewise.
  3391. * target-float.h (target_float_to_host_double): Add prototype.
  3392. (target_float_from_host_double): Likewise.
  3393. * guile/scm-value.c: Include "target-float.h".
  3394. (gdbscm_value_to_real): Use target_float_to_host_double.
  3395. Handle integer source values via value_as_long.
  3396. * guile/scm-math.c: Include "target-float.h". Do not include
  3397. "doublest.h", "dfp.h", and "expression.h".
  3398. (vlscm_convert_typed_number): Use target_float_from_host_double.
  3399. (vlscm_convert_number): Likewise.
  3400. * python/py-value.c (valpy_float): Use target_float_to_host_double.
  3401. (convert_value_from_python): Use target_float_from_host_double.
  3402. 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
  3403. * ada-lang.c (cast_to_fixed): Reimplement in target arithmetic.
  3404. (cast_from_fixed): Likewise.
  3405. (ada_scaling_type): New function.
  3406. (ada_delta): Return value instead of DOUBLEST. Perform target
  3407. arithmetic instead of host arithmetic.
  3408. (scaling_factor): Rename to ...
  3409. (ada_scaling_factor) ... this. Make non-static. Return value instead
  3410. of DOUBLEST. Perform target arithmetic instead of host arithmetic.
  3411. (ada_fixed_to_float): Remove.
  3412. (ada_float_to_fixed): Remove.
  3413. * ada-lang.h (ada_fixed_to_float): Remove.
  3414. (ada_float_to_fixed): Remove.
  3415. (ada_delta): Return value instead of DOUBLEST.
  3416. (ada_scaling_factor): Add prototype.
  3417. * ada-typeprint.c: Include "target-float.h".
  3418. (print_fixed_point_type): Perform target arithmetic instead of
  3419. host arithmetic.
  3420. * ada-valprint.c: Include "target-float.h".
  3421. (ada_val_print_num): Perform target arithmetic instead of
  3422. host arithmetic for fixed-point types.
  3423. 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
  3424. * target-float.c: Include <math.h>.
  3425. (floatformat_binop): New function.
  3426. (floatformat_compare): Likewise.
  3427. (target_float_binop): Likewise.
  3428. (target_float_compare): Likewise.
  3429. * target-float.h: Include "expression.h".
  3430. (target_float_binop): Add prototype.
  3431. (target_float_compare): Likewise.
  3432. * valarith.c: Do not include "doublest.h" and "dfp.h".
  3433. Include "common/byte-vector.h".
  3434. (value_args_as_decimal): Remove, replace by ...
  3435. (value_args_as_target_float): ... this function. Handle both
  3436. binary and decimal target floating-point formats.
  3437. (scalar_binop): Handle both binary and decimal FP using
  3438. value_args_as_target_float and target_float_binop.
  3439. (value_equal): Handle both binary and decimal FP using
  3440. value_args_as_target_float and target_float_compare.
  3441. (value_less): Likewise.
  3442. (value_pos): Handle all scalar types as simple copy.
  3443. (value_neg): Handle all scalar types via BINOP_SUB from 0.
  3444. * dfp.c (decimal_binop): Throw error instead of internal_error
  3445. when called with an unsupported operation code.
  3446. 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
  3447. * target-float.c (target_float_to_string): New function.
  3448. (target_float_from_string): New function.
  3449. * target-float.h (target_float_to_string): Add prototype.
  3450. (target_float_from_string): Add prototype.
  3451. * valprint.c: Include "target-float.h". Do not include
  3452. "doublest.h" and "dfp.h".
  3453. (print_floating): Use target_float_to_string.
  3454. * printcmd.c: Include "target-float.h". Do not include "dfp.h".
  3455. (printf_floating): Use target_float_to_string.
  3456. * i387-tdep.c: Include "target-float.h". Do not include "doublest.h".
  3457. (print_i387_value): Use target_float_to_string.
  3458. * mips-tdep.c: Include "target-float.h".
  3459. (mips_print_fp_register): Use target_float_to_string.
  3460. * sh64-tdep.c: Include "target-float.h".
  3461. (sh64_do_fp_register): Use target_float_to_string.
  3462. * parse.c: Include "target-float.h". Do not include
  3463. "doublest.h" and "dfp.h".
  3464. (parse_float): Use target_float_from_string.
  3465. * stabsread.c: Include "target-float.h". Do not include "doublest.h".
  3466. (define_symbol): Use target_float_from_string.
  3467. * gdbarch-selftests.c: Include "target-float.h".
  3468. (register_to_value_test): Use target_float_from_string.
  3469. 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
  3470. * Makefile.c (SFILES): Add target-float.c.
  3471. (HFILES_NO_SRCDIR): Add target-float.h.
  3472. (COMMON_OBS): Add target-float.o.
  3473. * target-float.h: New file.
  3474. * target-float.c: New file.
  3475. * doublest.c (floatformat_classify): Fix detection of float_zero.
  3476. * gdbtypes.c (is_floating_type): New function.
  3477. * gdbtypes.h (is_floating_type): Add prototype.
  3478. * value.c: Do not include "floatformat.h".
  3479. (unpack_double): Use target_float_is_valid.
  3480. (is_floating_value): New function.
  3481. * value.h (is_floating_value): Add prototype-
  3482. * valarith.c: Include "target-float.h".
  3483. (value_logical_not): Use target_float_is_zero.
  3484. * python/py-value.c: Include "target-float.h".
  3485. (valpy_nonzero): Use target_float_is_zero.
  3486. 2017-11-04 Tom Tromey <tom@tromey.com>
  3487. * h8300-tdep.c (h8300_push_dummy_call): Use std::vector.
  3488. 2017-11-04 Tom Tromey <tom@tromey.com>
  3489. * breakpoint.c (set_momentary_breakpoint): Return
  3490. breakpoint_up.
  3491. (until_break_command): Update.
  3492. (new_until_break_fsm): Change argument types to
  3493. breakpoint_up.
  3494. (set_momentary_breakpoint_at_pc): Return breakpoint_up.
  3495. (do_delete_breakpoint_cleanup, make_cleanup_delete_breakpoint):
  3496. Remove.
  3497. * infcmd.c (finish_forward): Update.
  3498. * breakpoint.h (set_momentary_breakpoint)
  3499. (set_momentary_breakpoint_at_pc): Return breakpoint_up.
  3500. (make_cleanup_delete_breakpoint): Remove.
  3501. (struct breakpoint_deleter): New.
  3502. (breakpoint_up): New typedef.
  3503. * infrun.c (insert_step_resume_breakpoint_at_sal_1): Update.
  3504. (insert_exception_resume_breakpoint): Update.
  3505. (insert_exception_resume_from_probe): Update.
  3506. (insert_longjmp_resume_breakpoint): Update.
  3507. * arm-linux-tdep.c (arm_linux_copy_svc): Update.
  3508. * elfread.c (elf_gnu_ifunc_resolver_stop): Update.
  3509. * infcall.c (call_function_by_hand_dummy): Update
  3510. 2017-11-04 Tom Tromey <tom@tromey.com>
  3511. * c-typeprint.c (c_type_print_base): Use gdb::unique_xmalloc_ptr.
  3512. 2017-11-04 Tom Tromey <tom@tromey.com>
  3513. * linux-tdep.c (linux_core_info_proc_mappings): Use
  3514. gdb::def_vector.
  3515. (linux_get_siginfo_data): Return gdb::byte_vector. Remove
  3516. "size" argument.
  3517. (linux_corefile_thread): Update.
  3518. (linux_make_corefile_notes): Remove unused variable.
  3519. 2017-11-04 Tom Tromey <tom@tromey.com>
  3520. * ppc-linux-tdep.c (ppc_linux_get_syscall_number): Use
  3521. gdb::byte_vector.
  3522. 2017-11-04 Tom Tromey <tom@tromey.com>
  3523. * objfiles.c (do_free_objfile_cleanup): Remove.
  3524. * compile/compile-object-load.c (compile_object_load): Update.
  3525. * objfiles.h (make_cleanup_free_objfile): Remove.
  3526. 2017-11-04 Tom Tromey <tom@tromey.com>
  3527. * sparc64-tdep.c (do_examine): Use gdb::def_vector.
  3528. (adi_read_versions): Change "tags" to "gdb_byte *".
  3529. (adi_print_versions): Likewise.
  3530. 2017-11-04 Tom Tromey <tom@tromey.com>
  3531. * breakpoint.c
  3532. (scoped_rbreak_breakpoints::scoped_rbreak_breakpoints): Rename
  3533. from start_rbreak_breakpoints.
  3534. (scoped_rbreak_breakpoints): Rename from end_rbreak_breakpoints.
  3535. * breakpoint.h (class scoped_rbreak_breakpoints): New.
  3536. (start_rbreak_breakpoints, end_rbreak_breakpoints): Remove.
  3537. * symtab.c (do_end_rbreak_breakpoints): Remove.
  3538. (rbreak_command): Use scoped_rbreak_breakpoints, std::string.
  3539. 2017-11-04 Tom Tromey <tom@tromey.com>
  3540. * cp-namespace.c (reset_directive_searched): Remove.
  3541. (cp_lookup_symbol_via_imports): Use scoped_restore.
  3542. * cp-support.c (reset_directive_searched): Remove.
  3543. (make_symbol_overload_list_using): Use scoped_restore.
  3544. * d-namespace.c (d_lookup_symbol_imports): Use scoped_restore.
  3545. (reset_directive_searched): Remove.
  3546. 2017-11-04 Tom Tromey <tom@tromey.com>
  3547. * symfile.c (find_separate_debug_file_by_debuglink): Use
  3548. unique_xmalloc_ptr.
  3549. 2017-11-04 Tom Tromey <tom@tromey.com>
  3550. * compile/compile-loc2c.c (compute_stack_depth_worker): Change
  3551. type of "info".
  3552. (compute_stack_depth): Likewise.
  3553. (do_compile_dwarf_expr_to_c): Use std::vector.
  3554. 2017-11-04 Tom Tromey <tom@tromey.com>
  3555. * compile/compile-object-load.c (link_callbacks_einfo): Use
  3556. std::string.
  3557. 2017-11-04 Tom Tromey <tom@tromey.com>
  3558. * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
  3559. Use scoped_free_pendings.
  3560. * dbxread.c (dbx_symfile_read, dbx_psymtab_to_symtab_1): Use
  3561. scoped_free_pendings.
  3562. * xcoffread.c (xcoff_psymtab_to_symtab_1): Use scoped_free_pendings.
  3563. (xcoff_initial_scan): Likewise.
  3564. * buildsym.c (reset_symtab_globals): Update comment.
  3565. (scoped_free_pendings): Rename from really_free_pendings.
  3566. (prepare_for_building): Update comment.
  3567. (buildsym_init): Likewise.
  3568. * buildsym.h (class scoped_free_pendings): New class.
  3569. (really_free_pendings): Don't declare.
  3570. 2017-11-03 Ulrich Weigand <uweigand@de.ibm.com>
  3571. * doublest.c (convert_doublest_to_floatformat): Fix uninitialized
  3572. output when converting a zero value to a special byteorder format.
  3573. 2017-11-02 Yao Qi <yao.qi@linaro.org>
  3574. * frame.c (do_frame_register_read): Remove aspace.
  3575. * jit.c (jit_frame_sniffer): Likwise.
  3576. * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise.
  3577. * regcache.c (regcache::regcache): Pass nullptr.
  3578. (regcache_print): Caller updated.
  3579. * regcache.h (regcache::regcache): Remove one constructor
  3580. parameter aspace.
  3581. 2017-11-02 Yao Qi <yao.qi@linaro.org>
  3582. * regcache.h (regcache) <m_readonly_p>: Change it to const bool.
  3583. 2017-11-02 Yao Qi <yao.qi@linaro.org>
  3584. * breakpoint.c (insert_single_step_breakpoints): Update.
  3585. * frame.c (struct frame_info) <aspace>: Add const.
  3586. (frame_save_as_regcache): Add const.
  3587. (get_frame_address_space): Return const address_space *.
  3588. * frame.h (get_frame_address_space): Update declaration.
  3589. * infrun.c (struct step_over_info) <aspace>: Add const.
  3590. (set_step_over_info): Make aspace const.
  3591. (displaced_step_prepare_throw): Change variable const.
  3592. (resume): Likewise.
  3593. (proceed): Likewise.
  3594. (adjust_pc_after_break): Likewise.
  3595. (save_waitstatus): Likewise.
  3596. (handle_signal_stop): Likewise.
  3597. (keep_going_pass_signal): Likewise.
  3598. * jit.c (jit_frame_sniffer): Add const.
  3599. * mips-tdep.c (mips_single_step_through_delay): Likewise.
  3600. * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise.
  3601. * record-full.c (record_full_wait_1): Likewise.
  3602. * regcache.c (regcache::regcache): Change parameter to const.
  3603. * regcache.h (regcache::regcache): Likewise.
  3604. (regcache::aspace): Return const address_space *.
  3605. (regcache) <m_aspace>: Add const.
  3606. 2017-11-02 Yao Qi <yao.qi@linaro.org>
  3607. * darwin-nat.c (cancel_breakpoint): Use regcache->aspace ().
  3608. * frame.c (create_sentinel_frame): Likewise.
  3609. * infrun.c (displaced_step_prepare_throw): Likewise.
  3610. (resume): Likewise.
  3611. (thread_still_needs_step_over_bp): Likewise.
  3612. (proceed): Likewise.
  3613. (do_target_wait): Likewise.
  3614. (adjust_pc_after_break): Likewise.
  3615. (handle_syscall_event): Likewise.
  3616. (save_waitstatus): Likewise.
  3617. (handle_inferior_event_1): Likewise.
  3618. (handle_signal_stop): Likewise.
  3619. (keep_going_pass_signal): Likewise.
  3620. * linux-nat.c (status_callback): Likewise.
  3621. (save_stop_reason): Likewise.
  3622. (resume_stopped_resumed_lwps): Likewise.
  3623. * record-full.c (record_full_exec_insn): Likewise.
  3624. (record_full_wait_1): Likewise.
  3625. * regcache.c (get_regcache_aspace): Remove.
  3626. * regcache.h (get_regcache_aspace): Remove.
  3627. 2017-11-02 Yao Qi <yao.qi@linaro.org>
  3628. * regcache.c (struct regcache_descr) <nr_raw_registers>: Remove.
  3629. (init_regcache_descr): Use gdbarch_num_regs.
  3630. (regcache::regcache): Likewise.
  3631. (regcache::get_register_status): Likewise.
  3632. (regcache::assert_raw_regnum): Likewise.
  3633. (regcache::cooked_read): Likewise.
  3634. (regcache::cooked_read_value): Likewise.
  3635. (regcache::cooked_write): Likewise.
  3636. (regcache::dump): Likewise.
  3637. (regcache::num_raw_registers): New method.
  3638. * regcache.h (class regcache) <num_raw_registers>: New.
  3639. 2017-11-02 Yao Qi <yao.qi@linaro.org>
  3640. * regcache.c (regcache::assert_regnum): New method.
  3641. (regcache::invalidate): Call assert_regnum.
  3642. (regcache::raw_update): Likewise.
  3643. (regcache::raw_write): Likewise.
  3644. (regcache::raw_read_part): Likewise.
  3645. (regcache::raw_write_part): Likewise.
  3646. (regcache::raw_supply): Likewise.
  3647. (regcache::raw_supply_integer): Likewise.
  3648. (regcache::raw_supply_zeroed): Likewise.
  3649. (regcache::raw_collect): Likewise.
  3650. (regcache::raw_collect_integer): Likewise.
  3651. * regcache.h (regcache::assert_regnum): Declare.
  3652. 2017-11-02 Yao Qi <yao.qi@linaro.org>
  3653. * regcache.c (regcache::dump): Remove code.
  3654. 2017-11-02 Yao Qi <yao.qi@linaro.org>
  3655. * regcache.c (struct regcache_descr) <sizeof_raw_register_status>:
  3656. Remove.
  3657. <sizeof_cooked_register_status>: Remove.
  3658. (init_regcache_descr): Update.
  3659. (regcache::regcache): Use nr_cooked_registers and nr_raw_registers.
  3660. (regcache::save): Likewise.
  3661. (regcache::dump): Likewise.
  3662. 2017-11-01 James Bowman <james.bowman@ftdichip.com>
  3663. * ft32-tdep.c (ft32_fetch_instruction): New function.
  3664. (ft32_analyze_prologue): Use ft32_fetch_instruction().
  3665. 2017-10-31 Simon Marchi <simon.marchi@polymtl.ca>
  3666. * cli/cli-script.c (execute_control_command): Rename to ...
  3667. (execute_control_command_1): ... this.
  3668. (execute_control_command): New function.
  3669. 2017-10-31 Simon Marchi <simon.marchi@ericsson.com>
  3670. * tracepoint.c (tfind_command): Remove const_cast.
  3671. 2017-10-30 Mike Gulick <mgulick@mathworks.com>
  3672. * Makefile.in (HFILES_NO_SRCDIR): Remove reference to gdb.h.
  3673. 2017-10-30 Simon Marchi <simon.marchi@ericsson.com>
  3674. * common/common-utils.h (in_inclusive_range): New function.
  3675. * arm-tdep.c (arm_record_extension_space): Use
  3676. in_inclusive_range.
  3677. (thumb_record_ld_st_reg_offset): Use in_inclusive_range.
  3678. * cris-tdep.c (cris_spec_reg_applicable): Use
  3679. in_inclusive_range.
  3680. 2017-10-30 Pedro Alves <palves@redhat.com>
  3681. Simon Marchi <simon.marchi@ericsson.com>
  3682. * remote.c (remote_set_syscall_catchpoint): Build a std::string
  3683. instead of a gdb::unique_xmalloc_ptr, using string_appendf.
  3684. 2017-10-30 Pedro Alves <palves@redhat.com>
  3685. * common/common-utils.c (string_appendf, string_vappendf): New
  3686. functions.
  3687. * common/common-utils.h (string_appendf, string_vappendf): New
  3688. declarations.
  3689. * unittests/common-utils-selftests.c (string_appendf_func)
  3690. (test_appendf_func, string_vappendf_wrapper, string_appendf_tests)
  3691. (string_vappendf_tests): New functions.
  3692. (_initialize_common_utils_selftests): Register "string_appendf" and
  3693. "string_vappendf tests".
  3694. 2017-10-30 Pedro Alves <palves@redhat.com>
  3695. * unittests/common-utils-selftests.c (format_func): New typedef.
  3696. (string_printf_tests, string_vprintf_tests): Tests factored out
  3697. and merged to ...
  3698. (test_format_func): ... this new function.
  3699. (string_printf_tests, string_vprintf_tests): Reimplement on top of
  3700. test_format_func.
  3701. 2017-10-29 Simon Marchi <simon.marchi@ericsson.com>
  3702. * darwin-nat.c: Remove include of gdb.h.
  3703. 2017-10-29 Simon Marchi <simon.marchi@ericsson.com>
  3704. * xtensa-xtregs.c: Fix formatting issues.
  3705. 2017-10-29 Simon Marchi <simon.marchi@ericsson.com>
  3706. * xtensa-xtregs.c (xtensa_regtable_t) <name>: Constify.
  3707. 2017-10-28 Maksim Dzabraev <dzabraew@gmail.com>
  3708. PR python/21213
  3709. * python/py-infthread.c (thpy_get_inferior): Increment reference
  3710. of inferior before returning it.
  3711. 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
  3712. * unittests/common-utils-selftests.c (format): Add
  3713. ATTRIBUTE_PRINTF.
  3714. 2017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
  3715. * xml-syscall.c (struct syscall_desc): Add constructor.
  3716. <name>: Change type to std::string.
  3717. (syscall_desc_up): New typedef.
  3718. (syscall_desc_p): Remove typeder.
  3719. (DEF_VEC_P(syscall_desc_p)): Remove.
  3720. (struct syscall_group_desc): Add constructor.
  3721. <name>: Change type to std::string.
  3722. <syscalls>: Change type to std::vector.
  3723. (syscall_group_desc_up): New typedef.
  3724. (syscall_group_desc_p): Remove typedef.
  3725. (DEF_VEC_P(syscall_group_desc_p)): Remove.
  3726. (struct syscalls_info) <syscalls>: Change type to std::vector of
  3727. unique_ptr.
  3728. <groups>: Likewise.
  3729. <my_gdb_datadir>: Change type to std::string.
  3730. (syscalls_info_up): New typedef.
  3731. (allocate_syscalls_info): Remove.
  3732. (syscalls_info_free_syscalls_desc): Remove.
  3733. (syscalls_info_free_syscall_group_desc): Remove.
  3734. (free_syscalls_info): Remove.
  3735. (make_cleanup_free_syscalls_info): Remove.
  3736. (syscall_group_create_syscall_group_desc): Adjust.
  3737. (syscall_group_add_syscall): Adjust.
  3738. (syscall_create_syscall_desc): Adjust.
  3739. (syscall_parse_xml): Adjust, use unique_ptr instead of cleanup.
  3740. (init_syscalls_info): Adjust.
  3741. (syscall_group_get_group_by_name): Adjust.
  3742. (xml_get_syscall_number): Adjust.
  3743. (xml_get_syscall_name): Adjust.
  3744. (xml_list_of_syscalls): Adjust.
  3745. (xml_list_syscalls_by_group): Adjust.
  3746. (xml_list_of_groups): Adjust.
  3747. 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
  3748. * probe.h: Don't include gdb_vecs.h.
  3749. (DEF_VEC_P (probe_p)): Remove.
  3750. (find_probes_in_objfile): Return an std::vector.
  3751. * probe.c (find_probes_in_objfile): Likewise.
  3752. * breakpoint.c (breakpoint_objfile_data)
  3753. <longjmp_probes>: Change type to std::vector.
  3754. <exception_probes>: Likewise.
  3755. (free_breakpoint_probes): Don't manually free vectors.
  3756. (create_longjmp_master_breakpoint): Adjust.
  3757. (create_exception_master_breakpoint): Adjust.
  3758. * solib-svr4.c (svr4_create_probe_breakpoints): Change
  3759. parameter type, adjust.
  3760. (svr4_create_solib_event_breakpoints): Adjust.
  3761. 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
  3762. * breakpoint.c (breakpoint_objfile_data): Initialize fields.
  3763. (get_breakpoint_objfile_data): Allocate breakpoint_objfile_data
  3764. with new.
  3765. (free_breakpoint_probes): Rename to ...
  3766. (free_breakpoint_objfile_data): ... this, and call delete on
  3767. bp_objfile_data..
  3768. 2017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
  3769. * auto-load.c: Don't include gdb_vecs.h, include algorithm.
  3770. (loaded_script_ptr): Remove typedef.
  3771. (DEF_VEC_P (loaded_script_ptr)): Remove.
  3772. (struct collect_matching_scripts_data): Add constructor.
  3773. <scripts_p>: Change type to (pointer to) std::vector.
  3774. (collect_matching_scripts_data): Adjust.
  3775. (sort_scripts_by_name): Make suitable for std::sort.
  3776. (print_scripts): Don't sort vector, adjust to std::vector.
  3777. (auto_load_info_scripts): Sort vectors, adjust to std::vector.
  3778. 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
  3779. * symfile.c (filename_language): Make struct, not typedef. Add
  3780. constructor.
  3781. <ext>: Change type to std::string.
  3782. (DEF_VEC_O (filename_language)): Remove.
  3783. (filename_language_table): Change type to std::vector.
  3784. (add_filename_language): Adjust.
  3785. (set_ext_lang_command): Adjust.
  3786. (info_ext_lang_command): Adjust.
  3787. (deduce_language_from_filename): Adjust.
  3788. (class scoped_restore_filename_language_table): Remove.
  3789. (test_filename_language): Use scoped_restore.
  3790. (test_set_ext_lang_command): Use scoped_restore, adjust to
  3791. std::vector change.
  3792. 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
  3793. * symfile.c: Include selftest.h.
  3794. (class scoped_restore_filename_language_table): New.
  3795. (test_filename_language): New test.
  3796. (test_set_ext_lang_command): New test.
  3797. (_initialize_symfile): Register tests.
  3798. 2017-10-27 Keith Seitz <keiths@redhat.com>
  3799. * breakpoint.c (print_breakpoint_location): Use the symbol saved
  3800. in the bp_location, falling back to find_pc_sect_function when
  3801. needed.
  3802. (add_location_to_breakpoint): Save sal->symbol.
  3803. * breakpoint.h (struct bp_location) <symbol>: New field.
  3804. * symtab.c (find_function_start_sal): Save the symbol into the SaL.
  3805. * symtab.h (struct symtab_and_line) <symbol>: New field.
  3806. 2017-10-26 Patrick Frants <osscontribute@gmail.com>
  3807. PR gdb/13669
  3808. * cp-valprint.c (cp_print_value_fields): Use obstack_blank_fast
  3809. to rewind obstack.
  3810. 2017-10-26 Pedro Alves <palves@redhat.com>
  3811. * remote.c (remote_async_terminal_ours_p): Delete.
  3812. (remote_open_1, remote_terminal_inferior, remote_terminal_ours):
  3813. Remove references to 'remote_async_terminal_ours_p'.
  3814. 2017-10-26 Yao Qi <yao.qi@linaro.org>
  3815. * breakpoint.h (regular_breakpoint_inserted_here_p): Remove.
  3816. 2017-10-26 Yao Qi <yao.qi@linaro.org>
  3817. * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Make
  3818. aspace const.
  3819. * break-catch-syscall.c (breakpoint_hit_catch_syscall):
  3820. Likewise.
  3821. * breakpoint.c (bpstat_check_location): Remove cast.
  3822. (breakpoint_hit_catch_fork): Make aspce const.
  3823. (breakpoint_hit_catch_solib): Likewise.
  3824. (breakpoint_hit_catch_exec): Likewise.
  3825. (breakpoint_hit_ranged_breakpoint): Likewise.
  3826. (breakpoint_hit_watchpoint): Likewise.
  3827. (base_breakpoint_breakpoint_hit): Likewise.
  3828. (bkpt_breakpoint_hit): Likewise.
  3829. (dprintf_breakpoint_hit): Likewise.
  3830. (tracepoint_breakpoint_hit): Likewise.
  3831. * breakpoint.h (breakpoint_ops) <breakpoint_hit>: Likewise.
  3832. 2017-10-26 Yao Qi <yao.qi@linaro.org>
  3833. * breakpoint.c (breakpoint_location_address_match): Change
  3834. "struct address_space *" to "const address_space".
  3835. (breakpoint_location_address_range_overlap): Likewise.
  3836. (breakpoint_here_p): Likewise.
  3837. (breakpoint_in_range_p): Likewise.
  3838. (moribund_breakpoint_here_p): Likewise.
  3839. (bp_location_inserted_here_p): Likewise.
  3840. (software_breakpoint_inserted_here_p): Likewise.
  3841. (hardware_breakpoint_inserted_here_p): Likewise.
  3842. (hardware_watchpoint_inserted_in_range): Likewise.
  3843. (bpstat_check_location): Likewise.
  3844. (bpstat_stop_status): Likewise.
  3845. (breakpoint_address_match): Likewise.
  3846. (breakpoint_address_match_range): Likewise.
  3847. (breakpoint_location_address_match): Likewise.
  3848. (breakpoint_location_address_range_overlap): Likewise.
  3849. (insert_single_step_breakpoint): Likewise.
  3850. (breakpoint_has_location_inserted_here): Likewise.
  3851. (single_step_breakpoint_inserted_here_p): Likewise.
  3852. (pc_at_non_inline_function): Likewise.
  3853. * breakpoint.h (bpstat_stop_status): Update declaration.
  3854. (breakpoint_here_p): Likewise.
  3855. (breakpoint_in_range_p): Likewise.
  3856. (moribund_breakpoint_here_p): Likewise.
  3857. (breakpoint_inserted_here_p): Likewise.
  3858. (software_breakpoint_inserted_here_p): Likewise.
  3859. (hardware_breakpoint_inserted_here_p): Likewise.
  3860. (breakpoint_has_location_inserted_here): Likewise.
  3861. (single_step_breakpoint_inserted_here_p): Likewise.
  3862. (hardware_watchpoint_inserted_in_range): Likewise.
  3863. (breakpoint_address_match): Likewise.
  3864. (insert_single_step_breakpoint): Likewise.
  3865. (pc_at_non_inline_function): Likewise.
  3866. * gdbthread.h (thread_has_single_step_breakpoint_here): Likewise.
  3867. * record.c (record_check_stopped_by_breakpoint): Likewise.
  3868. * record.h (record_check_stopped_by_breakpoint): Likewise.
  3869. * thread.c (thread_has_single_step_breakpoint_here): Likewise.
  3870. 2017-10-25 Yao Qi <yao.qi@linaro.org>
  3871. * aarch32-linux-nat.c (aarch32_gp_regcache_supply): Use
  3872. regcache->arch () instead get_regcache_arch.
  3873. * aarch64-fbsd-nat.c (aarch64_fbsd_fetch_inferior_registers):
  3874. Likewise.
  3875. (aarch64_fbsd_store_inferior_registers): Likewise.
  3876. * aarch64-linux-nat.c (fetch_gregs_from_thread): Likewise.
  3877. (store_gregs_to_thread): Likewise.
  3878. (fetch_fpregs_from_thread): Likewise.
  3879. (store_fpregs_to_thread): Likewise.
  3880. * aarch64-tdep.c (aarch64_extract_return_value): Likewise.
  3881. (aarch64_store_return_value): Likewise.
  3882. (aarch64_software_single_step): Likewise.
  3883. * aix-thread.c (aix_thread_wait): Likewise.
  3884. (supply_reg32): Likewise.
  3885. (supply_sprs64): Likewise.
  3886. (supply_sprs32): Likewise.
  3887. (fill_gprs64): Likewise.
  3888. (fill_gprs32): Likewise.
  3889. (fill_sprs64): Likewise.
  3890. (fill_sprs32): Likewise.
  3891. (store_regs_user_thread): Likewise.
  3892. (store_regs_kernel_thread): Likewise.
  3893. * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
  3894. (alphabsd_store_inferior_registers): Likewise.
  3895. * alpha-tdep.c (alpha_extract_return_value): Likewise.
  3896. (alpha_store_return_value): Likewise.
  3897. (alpha_deal_with_atomic_sequence): Likewise.
  3898. (alpha_next_pc): Likewise.
  3899. (alpha_software_single_step): Likewise.
  3900. * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
  3901. (amd64bsd_store_inferior_registers): Likewise.
  3902. * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
  3903. Likewise.
  3904. (amd64_linux_store_inferior_registers): Likewise.
  3905. * amd64-nat.c (amd64_supply_native_gregset): Likewise.
  3906. (amd64_collect_native_gregset): Likewise.
  3907. * amd64-obsd-tdep.c (amd64obsd_supply_uthread): Likewise.
  3908. (amd64obsd_collect_uthread): Likewise.
  3909. * amd64-tdep.c (amd64_supply_fpregset): Likewise.
  3910. (amd64_collect_fpregset): Likewise.
  3911. (amd64_supply_fxsave): Likewise.
  3912. (amd64_supply_xsave): Likewise.
  3913. (amd64_collect_fxsave): Likewise.
  3914. (amd64_collect_xsave): Likewise.
  3915. * arc-tdep.c (arc_write_pc): Likewise.
  3916. * arch-utils.c (default_skip_permanent_breakpoint): Likewise.
  3917. * arm-fbsd-nat.c (arm_fbsd_fetch_inferior_registers): Likewise.
  3918. (arm_fbsd_store_inferior_registers): Likewise.
  3919. * arm-linux-nat.c (fetch_vfp_regs): Likewise.
  3920. (store_vfp_regs): Likewise.
  3921. (arm_linux_fetch_inferior_registers): Likewise.
  3922. (arm_linux_store_inferior_registers): Likewise.
  3923. * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
  3924. (arm_linux_sigreturn_next_pc): Likewise.
  3925. (arm_linux_get_next_pcs_syscall_next_pc): Likewise.
  3926. * arm-nbsd-nat.c (arm_supply_gregset): Likewise.
  3927. (fetch_register): Likewise.
  3928. (store_register): Likewise.
  3929. * arm-tdep.c (arm_is_thumb): Likewise.
  3930. (displaced_in_arm_mode): Likewise.
  3931. (bx_write_pc): Likewise.
  3932. (arm_get_next_pcs_addr_bits_remove): Likewise.
  3933. (arm_software_single_step): Likewise.
  3934. (arm_extract_return_value): Likewise.
  3935. (arm_store_return_value): Likewise.
  3936. (arm_write_pc): Likewise.
  3937. * bfin-tdep.c (bfin_extract_return_value): Likewise.
  3938. * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
  3939. (bsd_uthread_store_registers): Likewise.
  3940. * core-regset.c (fetch_core_registers): Likewise.
  3941. * corelow.c (get_core_registers): Likewise.
  3942. * cris-tdep.c (cris_store_return_value): Likewise.
  3943. (cris_extract_return_value): Likewise.
  3944. (find_step_target): Likewise.
  3945. (find_step_target): Likewise.
  3946. (cris_software_single_step): Likewise.
  3947. * ctf.c (ctf_fetch_registers): Likewise.
  3948. * darwin-nat.c (cancel_breakpoint): Likewise.
  3949. * fbsd-tdep.c (fbsd_collect_thread_registers): Likewise.
  3950. * frv-tdep.c (frv_extract_return_value): Likewise.
  3951. * ft32-tdep.c (ft32_store_return_value): Likewise.
  3952. (ft32_extract_return_value): Likewise.
  3953. * go32-nat.c (fetch_register): Likewise.
  3954. (go32_fetch_registers): Likewise.
  3955. (go32_store_registers): Likewise.
  3956. (store_register): Likewise.
  3957. * h8300-tdep.c (h8300_extract_return_value): Likewise.
  3958. (h8300_store_return_value): Likewise.
  3959. * hppa-linux-nat.c (fetch_register): Likewise.
  3960. (store_register): Likewise.
  3961. (hppa_linux_fetch_inferior_registers): Likewise.
  3962. (hppa_linux_store_inferior_registers): Likewise.
  3963. * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Likewise.
  3964. (i386_darwin_store_inferior_registers): Likewise.
  3965. * i386-gnu-nat.c (gnu_fetch_registers): Likewise.
  3966. (gnu_store_registers): Likewise.
  3967. * i386-linux-nat.c (fetch_register): Likewise.
  3968. (store_register): Likewise.
  3969. (supply_gregset): Likewise.
  3970. (fill_gregset): Likewise.
  3971. (i386_linux_fetch_inferior_registers): Likewise.
  3972. (i386_linux_store_inferior_registers): Likewise.
  3973. (i386_linux_resume): Likewise.
  3974. * i386-linux-tdep.c (i386_linux_get_syscall_number_from_regcache):
  3975. Likewise.
  3976. * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
  3977. * i386-obsd-nat.c (i386obsd_supply_pcb): Likewise.
  3978. * i386-obsd-tdep.c (i386obsd_supply_uthread): Likewise.
  3979. (i386obsd_collect_uthread): Likewise.
  3980. * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
  3981. (i386_supply_gregset): Likewise.
  3982. (i386_collect_gregset): Likewise.
  3983. (i386_supply_fpregset): Likewise.
  3984. (i386_collect_fpregset): Likewise.
  3985. (i386_mpx_bd_base): Likewise.
  3986. * i386-v4-nat.c (supply_fpregset): Likewise.
  3987. (fill_fpregset): Likewise.
  3988. * i387-tdep.c (i387_supply_fsave): Likewise.
  3989. (i387_collect_fsave): Likewise.
  3990. (i387_supply_fxsave): Likewise.
  3991. (i387_collect_fxsave): Likewise.
  3992. (i387_supply_xsave): Likewise.
  3993. (i387_collect_xsave): Likewise.
  3994. * ia64-linux-nat.c (ia64_linux_fetch_registers): Likewise.
  3995. (ia64_linux_store_registers): Likewise.
  3996. * ia64-tdep.c (ia64_access_rse_reg): Likewise.
  3997. (ia64_extract_return_value): Likewise.
  3998. (ia64_store_return_value): Likewise.
  3999. (find_func_descr): Likewise.
  4000. * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
  4001. * inf-ptrace.c (inf_ptrace_fetch_registers): Likewise.
  4002. (inf_ptrace_store_registers): Likewise.
  4003. * infrun.c (use_displaced_stepping): Likewise.
  4004. (displaced_step_prepare_throw): Likewise.
  4005. (resume): Likewise.
  4006. (proceed): Likewise.
  4007. (do_target_wait): Likewise.
  4008. (adjust_pc_after_break): Likewise.
  4009. (handle_inferior_event_1): Likewise.
  4010. (handle_signal_stop): Likewise.
  4011. (save_infcall_suspend_state): Likewise.
  4012. (restore_infcall_suspend_state): Likewise.
  4013. * iq2000-tdep.c (iq2000_extract_return_value): Likewise.
  4014. * jit.c (jit_frame_prev_register): Likewise.
  4015. * linux-nat.c (save_stop_reason): Likewise.
  4016. (linux_nat_wait_1): Likewise.
  4017. (resume_stopped_resumed_lwps): Likewise.
  4018. * linux-record.c (record_linux_sockaddr): Likewise.
  4019. (record_linux_msghdr): Likewise.
  4020. (record_linux_system_call): Likewise.
  4021. * linux-tdep.c (linux_collect_thread_registers): Likewise.
  4022. * lm32-tdep.c (lm32_extract_return_value): Likewise.
  4023. (lm32_store_return_value): Likewise.
  4024. * m32c-tdep.c (m32c_read_flg): Likewise.
  4025. (m32c_pseudo_register_read): Likewise.
  4026. (m32c_pseudo_register_write): Likewise.
  4027. * m32r-linux-tdep.c (m32r_linux_supply_gregset): Likewise.
  4028. (m32r_linux_collect_gregset): Likewise.
  4029. * m32r-tdep.c (m32r_store_return_value): Likewise.
  4030. (m32r_extract_return_value): Likewise.
  4031. * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
  4032. (m68kbsd_collect_fpregset): Likewise.
  4033. * m68k-bsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
  4034. * m68k-linux-nat.c (fetch_register): Likewise.
  4035. (old_fetch_inferior_registers): Likewise.
  4036. (old_store_inferior_registers): Likewise.
  4037. (store_regs): Likewise.
  4038. * m68k-tdep.c (m68k_svr4_extract_return_value): Likewise.
  4039. (m68k_svr4_store_return_value): Likewise.
  4040. * m88k-tdep.c (m88k_store_arguments): Likewise.
  4041. * mi/mi-main.c (mi_cmd_data_list_changed_registers): Likewise.
  4042. (mi_cmd_data_write_register_values): Likewise.
  4043. * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers): Likewise.
  4044. (mips_fbsd_store_inferior_registers): Likewise.
  4045. * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Likewise.
  4046. (mips_fbsd_supply_gregs): Likewise.
  4047. (mips_fbsd_collect_fpregs): Likewise.
  4048. (mips_fbsd_collect_gregs): Likewise.
  4049. (mips_fbsd_supply_fpregset): Likewise.
  4050. (mips_fbsd_collect_fpregset): Likewise.
  4051. (mips_fbsd_supply_gregset): Likewise.
  4052. (mips_fbsd_collect_gregset): Likewise.
  4053. * mips-linux-nat.c (supply_gregset): Likewise.
  4054. (fill_gregset): Likewise.
  4055. (supply_fpregset): Likewise.
  4056. (fill_fpregset): Likewise.
  4057. * mips-linux-tdep.c (mips_supply_gregset): Likewise.
  4058. (mips_fill_gregset): Likewise.
  4059. (mips_supply_fpregset): Likewise.
  4060. (mips_fill_fpregset): Likewise.
  4061. (mips64_supply_gregset): Likewise.
  4062. (micromips_linux_sigframe_validate): Likewise.
  4063. * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
  4064. (mipsnbsd_fetch_inferior_registers): Likewise.
  4065. (mipsnbsd_store_inferior_registers): Likewise.
  4066. * mips-nbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
  4067. (mipsnbsd_supply_gregset): Likewise.
  4068. (mipsnbsd_iterate_over_regset_sections): Likewise.
  4069. (mipsnbsd_supply_reg): Likewise.
  4070. (mipsnbsd_supply_fpreg): Likewise.
  4071. * mips-tdep.c (mips_in_frame_stub): Likewise.
  4072. (mips_dummy_id): Likewise.
  4073. (is_octeon_bbit_op): Likewise.
  4074. (micromips_bc1_pc): Likewise.
  4075. (extended_mips16_next_pc): Likewise.
  4076. (mips16_next_pc): Likewise.
  4077. (deal_with_atomic_sequence): Likewise.
  4078. * moxie-tdep.c (moxie_process_readu): Likewise.
  4079. * nios2-tdep.c (nios2_get_next_pc): Likewise.
  4080. * nto-procfs.c (procfs_store_registers): Likewise.
  4081. * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers): Likewise.
  4082. (ppcfbsd_store_inferior_registers): Likewise.
  4083. * ppc-linux-nat.c (fetch_vsx_register): Likewise.
  4084. (fetch_altivec_register): Likewise.
  4085. (get_spe_registers): Likewise.
  4086. (fetch_spe_register): Likewise.
  4087. (fetch_altivec_registers): Likewise.
  4088. (fetch_all_gp_regs): Likewise.
  4089. (fetch_all_fp_regs): Likewise.
  4090. (store_vsx_register): Likewise.
  4091. (store_altivec_register): Likewise.
  4092. (set_spe_registers): Likewise.
  4093. (store_spe_register): Likewise.
  4094. (store_altivec_registers): Likewise.
  4095. (store_all_gp_regs): Likewise.
  4096. (store_all_fp_regs): Likewise.
  4097. * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
  4098. (ppc_linux_collect_gregset): Likewise.
  4099. (ppc_canonicalize_syscall): Likewise.
  4100. (ppc_linux_record_signal): Likewise.
  4101. (ppu2spu_prev_register): Likewise.
  4102. * ppc-nbsd-nat.c (ppcnbsd_supply_pcb): Likewise.
  4103. * ppc-obsd-nat.c (ppcobsd_fetch_registers): Likewise.
  4104. (ppcobsd_store_registers): Likewise.
  4105. * ppc-ravenscar-thread.c (ppc_ravenscar_generic_fetch_registers):
  4106. Likewise.
  4107. (ppc_ravenscar_generic_store_registers): Likewise.
  4108. * procfs.c (procfs_fetch_registers): Likewise.
  4109. (procfs_store_registers): Likewise.
  4110. * ravenscar-thread.c (ravenscar_fetch_registers): Likewise.
  4111. (ravenscar_store_registers): Likewise.
  4112. (ravenscar_prepare_to_store): Likewise.
  4113. * record-btrace.c (record_btrace_fetch_registers): Likewise.
  4114. * record-full.c (record_full_wait_1): Likewise.
  4115. (record_full_registers_change): Likewise.
  4116. (record_full_store_registers): Likewise.
  4117. (record_full_core_fetch_registers): Likewise.
  4118. (record_full_save): Likewise.
  4119. (record_full_goto_insn): Likewise.
  4120. * regcache.c (regcache_register_size): Likewise.
  4121. (get_regcache_arch): Remove.
  4122. (regcache_read_pc): Likewise.
  4123. * regcache.h (get_regcache_arch): Remove.
  4124. * remote-sim.c (gdbsim_fetch_register): Likewise.
  4125. (gdbsim_store_register): Likewise.
  4126. * remote.c (fetch_register_using_p): Likewise.
  4127. (send_g_packet): Likewise.
  4128. (remote_prepare_to_store): Likewise.
  4129. (store_registers_using_G): Likewise.
  4130. * reverse.c (save_bookmark_command): Likewise.
  4131. (goto_bookmark_command): Likewise.
  4132. * rs6000-aix-tdep.c (branch_dest): Likewise.
  4133. * rs6000-nat.c (rs6000_ptrace64): Likewise.
  4134. (fetch_register): Likewise.
  4135. * rs6000-tdep.c (ppc_supply_reg): Likewise.
  4136. (ppc_collect_reg): Likewise.
  4137. (ppc_collect_gregset): Likewise.
  4138. (ppc_collect_fpregset): Likewise.
  4139. (ppc_collect_vsxregset): Likewise.
  4140. (ppc_collect_vrregset): Likewise.
  4141. (ppc_displaced_step_hw_singlestep): Likewise.
  4142. (rs6000_pseudo_register_read): Likewise.
  4143. (rs6000_pseudo_register_write): Likewise.
  4144. * s390-linux-nat.c (supply_gregset): Likewise.
  4145. (fill_gregset): Likewise.
  4146. (s390_linux_fetch_inferior_registers): Likewise.
  4147. * s390-linux-tdep.c (s390_write_pc): Likewise.
  4148. (s390_software_single_step): Likewise.
  4149. (s390_all_but_pc_registers_record): Likewise.
  4150. (s390_linux_syscall_record): Likewise.
  4151. * sentinel-frame.c (sentinel_frame_prev_arch): Likewise.
  4152. * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
  4153. (shnbsd_store_inferior_registers): Likewise.
  4154. * sh-tdep.c (sh_extract_return_value_nofpu): Likewise.
  4155. (sh_extract_return_value_fpu): Likewise.
  4156. (sh_store_return_value_nofpu): Likewise.
  4157. (sh_corefile_supply_regset): Likewise.
  4158. (sh_corefile_collect_regset): Likewise.
  4159. * sh64-tdep.c (sh64_extract_return_value): Likewise.
  4160. (sh64_store_return_value): Likewise.
  4161. * sparc-linux-tdep.c (sparc32_linux_collect_core_fpregset): Likewise.
  4162. * sparc-nat.c (sparc_fetch_inferior_registers): Likewise.
  4163. (sparc_store_inferior_registers): Likewise.
  4164. * sparc-ravenscar-thread.c (register_in_thread_descriptor_p): Likewise.
  4165. (sparc_ravenscar_prepare_to_store): Likewise.
  4166. * sparc-tdep.c (sparc32_store_arguments): Likewise.
  4167. (sparc_analyze_control_transfer): Likewise.
  4168. (sparc_step_trap): Likewise.
  4169. (sparc_software_single_step): Likewise.
  4170. (sparc32_gdbarch_init): Likewise.
  4171. (sparc_supply_rwindow): Likewise.
  4172. (sparc_collect_rwindow): Likewise.
  4173. * sparc64-linux-tdep.c (sparc64_linux_collect_core_fpregset): Likewise.
  4174. * sparc64-nbsd-nat.c (sparc64nbsd_supply_gregset): Likewise.
  4175. (sparc64nbsd_collect_gregset): Likewise.
  4176. (sparc64nbsd_supply_fpregset): Likewise.
  4177. (sparc64nbsd_collect_fpregset): Likewise.
  4178. * sparc64-tdep.c (sparc64_store_arguments): Likewise.
  4179. (sparc64_supply_gregset): Likewise.
  4180. (sparc64_collect_gregset): Likewise.
  4181. (sparc64_supply_fpregset): Likewise.
  4182. (sparc64_collect_fpregset): Likewise.
  4183. * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
  4184. * spu-tdep.c (spu_unwind_sp): Likewise.
  4185. (spu2ppu_prev_register): Likewise.
  4186. (spu_memory_remove_breakpoint): Likewise.
  4187. * stack.c (return_command): Likewise.
  4188. * tic6x-tdep.c (tic6x_extract_signed_field): Likewise.
  4189. * tracefile-tfile.c (tfile_fetch_registers): Likewise.
  4190. * tracefile.c (trace_save_ctf): Likewise.
  4191. * windows-nat.c (do_windows_fetch_inferior_registers): Likewise.
  4192. (do_windows_store_inferior_registers): Likewise.
  4193. (windows_resume): Likewise.
  4194. * xtensa-linux-nat.c (fill_gregset): Likewise.
  4195. (supply_gregset_reg): Likewise.
  4196. * xtensa-tdep.c (xtensa_register_write_masked): Likewise.
  4197. (xtensa_register_read_masked): Likewise.
  4198. (xtensa_supply_gregset): Likewise.
  4199. (xtensa_extract_return_value): Likewise.
  4200. (xtensa_store_return_value): Likewise.
  4201. 2017-10-25 Ulrich Weigand <uweigand@de.ibm.com>
  4202. * doublest.c (floatformat_from_string): New function.
  4203. * doublest.h (floatformat_from_string): Add prototype.
  4204. * std-operator.def (OP_DOUBLE, OP_DECFLOAT): Remove, replace by ...
  4205. (OP_FLOAT): ... this.
  4206. * expression.h: Do not include "doublest.h".
  4207. (union exp_element): Replace doubleconst and decfloatconst by
  4208. new element floatconst.
  4209. * ada-lang.c (resolve_subexp): Handle OP_FLOAT instead of OP_DOUBLE.
  4210. (ada_evaluate_subexp): Likewise.
  4211. * eval.c (evaluate_subexp_standard): Handle OP_FLOAT instead of
  4212. OP_DOUBLE and OP_DECFLOAT.
  4213. * expprint.c (print_subexp_standard): Likewise.
  4214. (dump_subexp_body_standard): Likewise.
  4215. * breakpoint.c (watchpoint_exp_is_const): Likewise.
  4216. * parse.c: Include "dfp.h".
  4217. (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
  4218. (write_exp_elt_floatcst): New function.
  4219. (operator_length_standard): Handle OP_FLOAT instead of OP_DOUBLE
  4220. and OP_DECFLOAT.
  4221. (operator_check_standard): Likewise.
  4222. (parse_float): Do not accept suffix. Take type as input. Return bool.
  4223. Return target format buffer instead of host DOUBLEST.
  4224. Use floatformat_from_string and decimal_from_string to parse
  4225. either binary or decimal floating-point types.
  4226. (parse_c_float): Remove.
  4227. * parser-defs.h: Do not include "doublest.h".
  4228. (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
  4229. (write_exp_elt_floatcst): Add prototype.
  4230. (parse_float): Update prototype.
  4231. (parse_c_float): Remove.
  4232. * c-exp.y: Do not include "dfp.h".
  4233. (typed_val_float): Use byte buffer instead of DOUBLEST.
  4234. (typed_val_decfloat): Remove.
  4235. (DECFLOAT): Remove.
  4236. (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
  4237. (parse_number): Update to new parse_float interface.
  4238. Parse suffixes and determine type before calling parse_float.
  4239. Handle decimal and binary FP types the same way.
  4240. * d-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
  4241. (FLOAT_LITERAL): Use OP_FLOAT and write_exp_elt_floatcst.
  4242. (parse_number): Update to new parse_float interface.
  4243. Parse suffixes and determine type before calling parse_float.
  4244. * f-exp.y: Replace dval by typed_val_float.
  4245. (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
  4246. (parse_number): Use parse_float instead of atof.
  4247. * go-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
  4248. (parse_go_float): Remove.
  4249. (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
  4250. (parse_number): Call parse_float instead of parse_go_float.
  4251. Parse suffixes and determine type before calling parse_float.
  4252. * p-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
  4253. (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
  4254. (parse_number): Update to new parse_float interface.
  4255. Parse suffixes and determine type before calling parse_float.
  4256. * m2-exp.y: Replace dval by byte buffer val.
  4257. (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
  4258. (parse_number): Call parse_float instead of atof.
  4259. * rust-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
  4260. (lex_number): Call parse_float instead of strtod.
  4261. (ast_dliteral): Use OP_FLOAT instead of OP_DOUBLE.
  4262. (convert_ast_to_expression): Handle OP_FLOAT instead of OP_DOUBLE.
  4263. Use write_exp_elt_floatcst.
  4264. (unit_testing): Remove static variable.
  4265. (rust_type): Do not check unit_testing.
  4266. (rust_lex_tests): Do not set uint_testing. Set up dummy rust_parser.
  4267. * ada-exp.y (type_float, type_double): Remove.
  4268. (typed_val_float): Use byte buffer instead of DOUBLEST.
  4269. (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
  4270. * ada-lex.l (processReal): Use parse_float instead of sscanf.
  4271. 2017-10-25 Alan Hayward <alan.hayward@arm.com>
  4272. * aarch64-tdep.h (enum aarch64_regnum): Remove.
  4273. * arch/aarch64.h: New file.
  4274. 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
  4275. * dfp.h (decimal_from_string): Use const reference for argument.
  4276. * dfp.c (decimal_from_string): Likewise.
  4277. 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
  4278. * i387-tdep.c (print_i387_value): Use floatformat_to_string.
  4279. * sh64-tdep.c (sh64_do_fp_register): Likewise.
  4280. * mips-tdep.c (mips_print_fp_register): Likewise.
  4281. 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
  4282. * common/format.h (enum argclass): Replace decfloat_arg by
  4283. dec32float_arg, dec64float_arg, and dec128float_arg.
  4284. * common/format.c (parse_format_string): Update to return
  4285. new decimal float argument classes.
  4286. * printcmd.c (printf_decfloat): Rename to ...
  4287. (printf_floating): ... this. Add argclass argument, and use it
  4288. instead of parsing the format string again. Add support for
  4289. binary floating-point values, using floatformat_to_string.
  4290. Convert value to the target format if it doesn't already match.
  4291. (ui_printf): Call printf_floating instead of printf_decfloat,
  4292. also for double_arg / long_double_arg. Pass argclass.
  4293. * dfp.c (decimal_to_string): Add format string argument.
  4294. * dfp.h (decimal_to_string): Likewise.
  4295. * doublest.c (floatformat_to_string): Add format string argument.
  4296. * doublest.h (floatformat_to_string): Likewise.
  4297. 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
  4298. * doublest.c (floatformat_precision): New routine.
  4299. (floatformat_to_string): Likewise.
  4300. * doublest.c (floatformat_to_string): Add prototype.
  4301. * printcmd.c (print_scalar_formatted): Only call print_floating
  4302. on floating-point types.
  4303. * valprint.c: Do not include "floatformat.h".
  4304. (generic_val_print_decfloat): Remove.
  4305. (generic_val_print): Call generic_val_print_float for both
  4306. TYPE_CODE_FLT and TYPE_CODE_DECFLOAT.
  4307. (print_floating): Use floatformat_to_string. Handle decimal float.
  4308. (print_decimal_floating): Remove, merge into floatformat_to_string.
  4309. * value.h (print_decimal_floating): Remove.
  4310. * Makefile.in: Do not build doublest.c with -Wformat-nonliteral.
  4311. 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
  4312. * buildsym.c (end_symtab_get_static_block): Use std::stable_sort.
  4313. 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
  4314. * memattr.h: Don't include vec.h.
  4315. (struct mem_attrib): Initialize fields.
  4316. <unknown>: New static method.
  4317. (struct mem_region): Add constructors, operator<, initialize
  4318. fields.
  4319. * memattr.c: Include algorithm.
  4320. (default_mem_attrib, unknown_mem_attrib): Remove.
  4321. (user_mem_region_list): New global.
  4322. (target_mem_region_list, mem_region_list): Change type to
  4323. std::vector<mem_region>.
  4324. (mem_use_target): Now a function.
  4325. (target_mem_regions_valid): Change type to bool.
  4326. (mem_region_lessthan, mem_region_cmp, mem_region_init): Remove.
  4327. (require_user_regions): Adjust.
  4328. (require_target_regions): Adjust.
  4329. (create_mem_region): Adjust.
  4330. (lookup_mem_region): Adjust.
  4331. (invalidate_target_mem_regions): Adjust.
  4332. (mem_clear): Rename to...
  4333. (user_mem_clear): ... this, and adjust.
  4334. (mem_command): Adjust.
  4335. (info_mem_command): Adjust.
  4336. (mem_enable, enable_mem_command, mem_disable,
  4337. disable_mem_command): Adjust.
  4338. (mem_delete): Adjust.
  4339. (delete_mem_command): Adjust.
  4340. * memory-map.h (parse_memory_map): Return an std::vector.
  4341. * memory-map.c (parse_memory_map): Likewise.
  4342. (struct memory_map_parsing_data): Add constructor.
  4343. <memory_map>: Point to std::vector.
  4344. (memory_map_start_memory): Adjust.
  4345. (memory_map_end_memory): Adjust.
  4346. (memory_map_end_property): Adjust.
  4347. (clear_result): Remove.
  4348. * remote.c (remote_memory_map): Return an std::vector.
  4349. * target-debug.h (target_debug_print_VEC_mem_region_s__p):
  4350. Remove.
  4351. (target_debug_print_mem_region_vector): New.
  4352. * target-delegates.c: Regenerate.
  4353. * target.h (mem_region_vector): New typedef.
  4354. (to_memory_map): Return mem_region_vector.
  4355. (target_memory_map): Return an std::vector.
  4356. * target.c (target_memory_map): Return an std::vector.
  4357. (flash_erase_command): Adjust.
  4358. 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
  4359. * memory-map.c (struct memory_map_parsing_data) <property_name>:
  4360. Change type to std::string.
  4361. (memory_map_start_property): Adjust.
  4362. (memory_map_end_property): Adjust.
  4363. 2017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
  4364. * infrun.h: Include common/byte-vector.h.
  4365. (struct displaced_step_closure): New struct.
  4366. (struct buf_displaced_step_closure): New struct.
  4367. * infrun.c (displaced_step_closure::~displaced_step_closure):
  4368. Provide default implementation.
  4369. (displaced_step_clear): Deallocate step closure with delete.
  4370. * aarch64-tdep.c (displaced_step_closure): Rename to ...
  4371. (aarch64_displaced_step_closure): ... this, extend
  4372. displaced_step_closure.
  4373. (aarch64_displaced_step_data) <dsc>: Change type to
  4374. aarch64_displaced_step_closure.
  4375. (aarch64_displaced_step_copy_insn): Adjust to type change, use
  4376. unique_ptr.
  4377. (aarch64_displaced_step_fixup): Add cast for displaced step
  4378. closure.
  4379. * amd64-tdep.c (displaced_step_closure): Rename to ...
  4380. (amd64_displaced_step_closure): ... this, extend
  4381. displaced_step_closure.
  4382. <insn_buf>: Change type to std::vector<gdb_byte>.
  4383. <max_len>: Remove.
  4384. (fixup_riprel): Change type of DSC parameter, adjust to type
  4385. change of insn_buf.
  4386. (fixup_displaced_copy): Change type of DSC parameter.
  4387. (amd64_displaced_step_copy_insn): Instantiate
  4388. amd64_displaced_step_closure.
  4389. (amd64_displaced_step_fixup): Add cast for closure type, adjust
  4390. to type change of insn_buf.
  4391. * arm-linux-tdep.c (arm_linux_cleanup_svc): Change type of
  4392. parameter DSC.
  4393. (arm_linux_copy_svc): Likewise.
  4394. (cleanup_kernel_helper_return): Likewise.
  4395. (arm_catch_kernel_helper_return): Likewise.
  4396. (arm_linux_displaced_step_copy_insn): Instantiate
  4397. arm_displaced_step_closure.
  4398. * arm-tdep.c (arm_pc_is_thumb): Add cast for closure.
  4399. (displaced_read_reg): Change type of parameter DSC.
  4400. (branch_write_pc): Likewise.
  4401. (load_write_pc): Likewise.
  4402. (alu_write_pc): Likewise.
  4403. (displaced_write_reg): Likewise.
  4404. (arm_copy_unmodified): Likewise.
  4405. (thumb_copy_unmodified_32bit): Likewise.
  4406. (thumb_copy_unmodified_16bit): Likewise.
  4407. (cleanup_preload): Likewise.
  4408. (install_preload): Likewise.
  4409. (arm_copy_preload): Likewise.
  4410. (thumb2_copy_preload): Likewise.
  4411. (install_preload_reg): Likewise.
  4412. (arm_copy_preload_reg): Likewise.
  4413. (cleanup_copro_load_store): Likewise.
  4414. (install_copro_load_store): Likewise.
  4415. (arm_copy_copro_load_store) Likewise.
  4416. (thumb2_copy_copro_load_store): Likewise.
  4417. (cleanup_branch): Likewise.
  4418. (install_b_bl_blx): Likewise.
  4419. (arm_copy_b_bl_blx): Likewise.
  4420. (thumb2_copy_b_bl_blx): Likewise.
  4421. (thumb_copy_b): Likewise.
  4422. (install_bx_blx_reg): Likewise.
  4423. (arm_copy_bx_blx_reg): Likewise.
  4424. (thumb_copy_bx_blx_reg): Likewise.
  4425. (cleanup_alu_imm): Likewise.
  4426. (arm_copy_alu_imm): Likewise.
  4427. (thumb2_copy_alu_imm): Likewise.
  4428. (cleanup_alu_reg): Likewise.
  4429. (install_alu_reg): Likewise.
  4430. (arm_copy_alu_reg): Likewise.
  4431. (thumb_copy_alu_reg): Likewise.
  4432. (cleanup_alu_shifted_reg): Likewise.
  4433. (install_alu_shifted_reg): Likewise.
  4434. (arm_copy_alu_shifted_reg): Likewise.
  4435. (cleanup_load): Likewise.
  4436. (cleanup_store): Likewise.
  4437. (arm_copy_extra_ld_st): Likewise.
  4438. (install_load_store): Likewise.
  4439. (thumb2_copy_load_literal): Likewise.
  4440. (thumb2_copy_load_reg_imm): Likewise.
  4441. (arm_copy_ldr_str_ldrb_strb): Likewise.
  4442. (cleanup_block_load_all): Likewise.
  4443. (cleanup_block_store_pc): Likewise.
  4444. (cleanup_block_load_pc): Likewise.
  4445. (arm_copy_block_xfer): Likewise.
  4446. (thumb2_copy_block_xfer): Likewise.
  4447. (cleanup_svc): Likewise.
  4448. (install_svc): Likewise.
  4449. (arm_copy_svc): Likewise.
  4450. (thumb_copy_svc): Likewise.
  4451. (arm_copy_undef): Likewise.
  4452. (thumb_32bit_copy_undef): Likewise.
  4453. (arm_copy_unpred): Likewise.
  4454. (arm_decode_misc_memhint_neon): Likewise.
  4455. (arm_decode_unconditional): Likewise.
  4456. (arm_decode_miscellaneous): Likewise.
  4457. (arm_decode_dp_misc): Likewise.
  4458. (arm_decode_ld_st_word_ubyte): Likewise.
  4459. (arm_decode_media): Likewise.
  4460. (arm_decode_b_bl_ldmstm): Likewise.
  4461. (arm_decode_ext_reg_ld_st): Likewise.
  4462. (thumb2_decode_dp_shift_reg): Likewise.
  4463. (thumb2_decode_ext_reg_ld_st): Likewise.
  4464. (arm_decode_svc_copro): Likewise.
  4465. (thumb2_decode_svc_copro): Likewise.
  4466. (install_pc_relative): Likewise.
  4467. (thumb_copy_pc_relative_16bit): Likewise.
  4468. (thumb_decode_pc_relative_16bit): Likewise.
  4469. (thumb_copy_pc_relative_32bit): Likewise.
  4470. (thumb_copy_16bit_ldr_literal): Likewise.
  4471. (thumb_copy_cbnz_cbz): Likewise.
  4472. (thumb2_copy_table_branch): Likewise.
  4473. (cleanup_pop_pc_16bit_all): Likewise.
  4474. (thumb_copy_pop_pc_16bit): Likewise.
  4475. (thumb_process_displaced_16bit_insn): Likewise.
  4476. (decode_thumb_32bit_ld_mem_hints): Likewise.
  4477. (thumb_process_displaced_32bit_insn): Likewise.
  4478. (thumb_process_displaced_insn): Likewise.
  4479. (arm_process_displaced_insn): Likewise.
  4480. (arm_displaced_init_closure): Likewise.
  4481. (arm_displaced_step_fixup): Add cast for closure.
  4482. * arm-tdep.h: Include infrun.h.
  4483. (displaced_step_closure): Rename to ...
  4484. (arm_displaced_step_closure): ... this, extend
  4485. displaced_step_closure.
  4486. <u::svc::copy_svc_os>: Change type of parameter DSC.
  4487. <cleanup>: Likewise.
  4488. (arm_process_displaced_insn): Likewise.
  4489. (arm_displaced_init_closure): Likewise.
  4490. (displaced_read_reg): Likewise.
  4491. (displaced_write_reg): Likewise.
  4492. * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
  4493. Adjust.
  4494. * i386-tdep.h: Include infrun.h.
  4495. (i386_displaced_step_closure): New typedef.
  4496. * i386-tdep.c (i386_displaced_step_copy_insn): Use
  4497. i386_displaced_step_closure.
  4498. (i386_displaced_step_fixup): Adjust.
  4499. * rs6000-tdep.c (ppc_displaced_step_closure): New typedef.
  4500. (ppc_displaced_step_copy_insn): Use ppc_displaced_step_closure
  4501. and unique_ptr.
  4502. (ppc_displaced_step_fixup): Adjust.
  4503. * s390-linux-tdep.c (s390_displaced_step_closure): New typedef.
  4504. (s390_displaced_step_copy_insn): Use s390_displaced_step_closure
  4505. and unique_ptr.
  4506. (s390_displaced_step_fixup): Adjust.
  4507. 2017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
  4508. * interps.h (interp_resume, interp_suspend, interp_set_temp):
  4509. Remove declarations.
  4510. 2017-10-20 Tom Tromey <tom@tromey.com>
  4511. * gdb_bfd.c (struct gdb_bfd_data) <included_bfds>: Now a
  4512. std::vector.
  4513. (gdb_bfd_record_inclusion): Update.
  4514. (bfdp): Remove typedef.
  4515. 2017-10-20 Tom Tromey <tom@tromey.com>
  4516. * gdb_bfd.c (gdb_bfd_ref): Use new.
  4517. (struct gdb_bfd_data): Add constructor, destructor, and member
  4518. initializers.
  4519. (gdb_bfd_unref): Use delete.
  4520. 2017-10-20 Tom Tromey <tom@tromey.com>
  4521. * exec.c (exec_file_attach): Use new_bfd_ref.
  4522. * symfile-mem.c (symbol_file_add_from_memory): Use new_bfd_ref.
  4523. * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
  4524. (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_fdopenr): Use
  4525. new_bfd_ref.
  4526. * gdb_bfd.h (new_bfd_ref): New function.
  4527. 2017-10-20 Pedro Alves <palves@redhat.com>
  4528. * main.c (captured_command_loop): Add attribute noinline.
  4529. 2017-10-19 Simon Marchi <simon.marchi@ericsson.com>
  4530. * interps.c (struct interp_factory): Add constructor.
  4531. (interp_factory_p): Remove typedef.
  4532. (DEF_VEC_P(interp_factory_p)): Remove.
  4533. (interpreter_factories): Change type to std::vector.
  4534. (interp_factory_register): Adjust.
  4535. (interp_lookup): Adjust.
  4536. (interpreter_completer): Adjust.
  4537. 2017-10-19 Tom Tromey <tom@tromey.com>
  4538. * break-catch-syscall.c (catch_syscall_completer): Use
  4539. std::string, gdb::unique_xmalloc_ptr.
  4540. 2017-10-19 Tom Tromey <tom@tromey.com>
  4541. * infcall.c (call_function_by_hand_dummy): Use std::string.
  4542. 2017-10-19 Tom Tromey <tom@tromey.com>
  4543. * mi/mi-main.c (mi_cmd_execute): Update.
  4544. * top.h (prepare_execute_command): Return scoped_value_mark.
  4545. * value.h (class scoped_value_mark): Use DISABLE_COPY_AND_ASSIGN.
  4546. Add move constructor.
  4547. * top.c (prepare_execute_command): Return scoped_value_mark.
  4548. (execute_command): Update.
  4549. 2017-10-19 Pedro Alves <palves@redhat.com>
  4550. * xml-support.c (xml_fetch_content_from_file): Check fread's
  4551. return.
  4552. 2017-10-19 Pedro Alves <palves@redhat.com>
  4553. * ser-base.c (ser_base_read_error_fd): Delete the file handler if
  4554. async.
  4555. (handle_error_fd): New function.
  4556. (ser_base_async): Add/delete an event loop file handler for
  4557. error_fd.
  4558. 2017-10-19 Pedro Alves <palves@redhat.com>
  4559. * xml-support.c (xml_fetch_content_from_file): Don't read in
  4560. chunks. Instead use fseek to determine the file's size, and read
  4561. it in one go.
  4562. 2017-11-18 Keith Seitz <keiths@redhat.com>
  4563. * c-exp.y (oper): Canonicalize conversion operators of user-defined
  4564. types.
  4565. Add whitespace to front of type name.
  4566. 2017-10-18 Keith Seitz <keiths@redhat.com>
  4567. * dwarf2read.c (dwarf2_add_typedef): Issue a complaint on unhandled
  4568. DW_AT_accessibility.
  4569. 2017-10-18 Yao Qi <yao.qi@linaro.org>
  4570. * features/tic6x-c62x-linux.c: Remove.
  4571. 2017-10-17 Tom Tromey <tom@tromey.com>
  4572. * disasm.c (do_mixed_source_and_assembly_deprecated): Use
  4573. gdb::optional, ui_out_emit_list, ui_out_emit_tuple.
  4574. (do_mixed_source_and_assembly): Likewise.
  4575. 2017-10-17 Tom Tromey <tom@tromey.com>
  4576. * regcache.c (regcache::xfer_part): Remove assertion.
  4577. 2017-10-17 Pedro Alves <palves@redhat.com>
  4578. * xml-support.c (xml_fetch_content_from_file): Call
  4579. unique_ptr::release() instead unique_ptr::get() when passing
  4580. through xrealloc.
  4581. 2017-10-17 Yao Qi <yao.qi@linaro.org>
  4582. * regcache.c (regcache::xfer_part): Remove parameters read and
  4583. write, add parameter is_raw. All callers are updated.
  4584. 2017-10-16 Keith Seitz <keiths@redhat.com>
  4585. * c-typeprint.c (enum access_specifier): Moved here from
  4586. c_type_print_base.
  4587. (output_access_specifier): New function.
  4588. (c_type_print_base): Consider typedefs when assessing
  4589. whether access labels are needed.
  4590. Use output_access_specifier as needed.
  4591. Output access specifier for typedefs, if needed.
  4592. * dwarf2read.c (dwarf2_add_typedef): Record DW_AT_accessibility.
  4593. * gdbtypes.h (struct typedef_field) <is_protected, is_private>: New
  4594. fields.
  4595. (TYPE_TYPEDEF_FIELD_PROTECTED, TYPE_TYPEDEF_FIELD_PRIVATE): New
  4596. accessor macros.
  4597. 2017-10-16 Tom Tromey <tom@tromey.com>
  4598. * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full)
  4599. (linux_fill_prpsinfo, linux_vsyscall_range_raw): Update.
  4600. * target.c (target_fileio_read_stralloc): Update.
  4601. * sparc64-tdep.c (adi_is_addr_mapped): Update.
  4602. * target.h (target_fileio_read_stralloc): Return
  4603. unique_xmalloc_ptr.
  4604. 2017-10-16 Tom Tromey <tom@tromey.com>
  4605. * xml-syscall.c (xml_init_syscalls_info): Update.
  4606. * xml-support.c (xinclude_start_include): Update.
  4607. (xml_fetch_content_from_file): Return unique_xmalloc_ptr.
  4608. * xml-support.h (xml_fetch_another): Return unique_xmalloc_ptr.
  4609. (xml_fetch_content_from_file): Likewise.
  4610. * osdata.c (get_osdata): Update.
  4611. * target.h (target_read_stralloc, target_get_osdata): Return
  4612. unique_xmalloc_ptr.
  4613. * solib-aix.c (solib_aix_get_library_list): Update.
  4614. * solib-target.c (solib_target_current_sos): Update.
  4615. * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Update.
  4616. * xml-tdesc.c (fetch_available_features_from_target): Update.
  4617. (target_fetch_description_xml): Update.
  4618. (file_read_description_xml): Update.
  4619. * remote.c (remote_get_threads_with_qxfer, remote_memory_map)
  4620. (remote_traceframe_info, btrace_read_config, remote_read_btrace)
  4621. (remote_pid_to_exec_file): Update.
  4622. * target.c (target_read_stralloc): Return unique_xmalloc_ptr.
  4623. (target_get_osdata): Likewise.
  4624. 2017-10-16 Tom Tromey <tom@tromey.com>
  4625. * remote.c (remote_register_number_and_offset): Use std::vector.
  4626. (remote_set_syscall_catchpoint): Use gdb::unique_xmalloc_ptr.
  4627. (putpkt_binary): Use gdb::def_vector.
  4628. (compare_sections_command): Use gdb::byte_vector.
  4629. 2017-10-16 Tom Tromey <tom@tromey.com>
  4630. * ppc-linux-nat.c (hwdebug_insert_point): Use
  4631. gdb::unique_xmalloc_ptr, XDUP.
  4632. 2017-10-16 Tom Tromey <tom@tromey.com>
  4633. * probe.c (parse_probes): Use std::string.
  4634. (info_probes_for_ops, enable_probes_command)
  4635. (disable_probes_command): Remove cleanups.
  4636. 2017-10-16 Tom Tromey <tom@tromey.com>
  4637. * buildsym.c (block_compar): Remove.
  4638. (end_symtab_get_static_block): Use std::vector.
  4639. 2017-10-16 Simon Marchi <simon.marchi@ericsson.com>
  4640. * memrange.h (struct mem_range): Define operator< and operator==.
  4641. (mem_range_s): Remove.
  4642. (DEF_VEC_O (mem_range_s)): Remove.
  4643. (normalize_mem_ranges): Change parameter type to std::vector.
  4644. * memrange.c (compare_mem_ranges): Remove.
  4645. (normalize_mem_ranges): Change parameter type to std::vector,
  4646. adjust to vector change.
  4647. * exec.c (section_table_available_memory): Return vector, remove
  4648. parameter.
  4649. (section_table_read_available_memory): Adjust to std::vector
  4650. change.
  4651. * remote.c (remote_read_bytes): Adjust to std::vector
  4652. change.
  4653. * tracepoint.h (traceframe_available_memory): Change parameter
  4654. type to std::vector.
  4655. * tracepoint.c (traceframe_available_memory): Change parameter
  4656. type to std::vector, adjust.
  4657. * mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to
  4658. std::vector change.
  4659. * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
  4660. unittests/memrange-selftests.c.
  4661. (SUBDIR_UNITTESTS_OBS): Add memrange-selftests.o.
  4662. * unittests/memrange-selftests.c: New file.
  4663. 2017-10-16 Pedro Alves <palves@redhat.com>
  4664. * elfread.c (probe_key_free): Rename range-for variable.
  4665. * probe.c (parse_probes_in_pspace, find_probes_in_objfile)
  4666. (find_probe_by_pc, collect_probes): Rename range-for variable.
  4667. 2017-10-16 Yao Qi <yao.qi@linaro.org>
  4668. * features/Makefile (XMLTOC): Remove tic6x-*.xml.
  4669. * features/tic6x-c62x.c: Remove.
  4670. * features/tic6x-c64x-linux.c: Remove.
  4671. * features/tic6x-c64x.c: Remove.
  4672. * features/tic6x-c64xp-linux.c: Remove.
  4673. * features/tic6x-c64xp.c: Remove.
  4674. * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Don't call
  4675. initialize_tdesc_tic6x_*_linux functions.
  4676. * tic6x-tdep.c (_initialize_tic6x_tdep): Don't call
  4677. initialize_tdesc_tic6x_* functions.
  4678. 2017-10-16 Yao Qi <yao.qi@linaro.org>
  4679. * features/Makefile (WHICH): Remove tic6x-c64xp, tic6x-c64x
  4680. tic6x-c62x.
  4681. * regformats/tic6x-c62x.dat: Remove.
  4682. * regformats/tic6x-c64x.dat: Remove.
  4683. * regformats/tic6x-c64xp.dat: Remove.
  4684. 2017-10-15 Simon Marchi <simon.marchi@ericsson.com>
  4685. * tracepoint.c (parse_traceframe_info): Return a unique_ptr
  4686. (the !HAVE_LIBEXPAT version).
  4687. 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
  4688. * nat/linux-osdata.c (struct pid_pgid_entry) <operator<>: Make
  4689. const.
  4690. 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
  4691. * target.h: Include tracepoint.h.
  4692. (enum trace_find_type): Move to tracepoint.h.
  4693. (struct target_ops) <to_traceframe_info>: Return a unique ptr.
  4694. * tracepoint.h: Don't include target.h
  4695. (enum trace_find_type): Move from target.h.
  4696. (parse_traceframe_info): Return a unique ptr.
  4697. * tracepoint.c (current_traceframe_info): Change type to unique
  4698. ptr.
  4699. (free_traceframe_info): Remove.
  4700. (clear_traceframe_info): Don't manually free
  4701. current_traceframe_info.
  4702. (free_result): Remove.
  4703. (parse_traceframe_info): Return a unique ptr.
  4704. (get_traceframe_info): Adjust to unique ptr.
  4705. * ctf.c (ctf_traceframe_info): Return a unique ptr.
  4706. * remote.c (remote_traceframe_info): Return a unique ptr.
  4707. * tracefile-tfile.c (tfile_traceframe_info): Return a unique
  4708. ptr.
  4709. * target-debug.h (target_debug_print_traceframe_info_up): New
  4710. macro.
  4711. * target-delegates.c: Regenerate.
  4712. 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
  4713. * memrange.h (struct mem_range): Add constructors.
  4714. * tracepoint.h (struct traceframe_info) <memory>: Change type to
  4715. std::vector<mem_range>.
  4716. * tracepoint.c (free_traceframe_info): Don't manually free
  4717. vector.
  4718. (traceframe_info_start_memory): Adjust to vector change.
  4719. (traceframe_available_memory): Likewise.
  4720. * tracefile-tfile.c (build_traceframe_info): Likewise.
  4721. * ctf.c (ctf_traceframe_info): Likewise.
  4722. 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
  4723. * tracepoint.h (struct traceframe_info) <tvars>: Change type to
  4724. std::vector<int>.
  4725. * tracepoint.c (free_traceframe_info): Deallocate with delete.
  4726. (traceframe_info_start_tvar): Adjust to vector change.
  4727. (parse_traceframe_info): Allocate with new.
  4728. * ctf.c (ctf_traceframe_info): Allocate with new, adjust to
  4729. vector change.
  4730. * tracefile-tfile.c (build_traceframe_info): Adjust to vector
  4731. change.
  4732. tfile_traceframe_info): Allocate with new.
  4733. * mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to vector
  4734. change.
  4735. 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
  4736. * tracepoint.c (traceframe_info): Rename to...
  4737. (current_traceframe_info): ...this.
  4738. (clear_traceframe_info): Adjust.
  4739. (get_traceframe_info): Adjust.
  4740. 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
  4741. * nat/linux-osdata.c: Include algorithm.
  4742. (compare_processes): Remove.
  4743. (struct pid_pgid_entry): New struct.
  4744. (linux_xfer_osdata_processgroups): Use std::vector instead of
  4745. XNEWVEC.
  4746. 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
  4747. * objfiles.h: Don't include symfile.h.
  4748. (struct partial_symbol): Remove forward-declaration.
  4749. (struct objfile) <global_psymbols, static_psymbols>: Change type
  4750. to std::vector<partial_symbol *>.
  4751. * objfiles.c (objfile::objfile): Don't memset those fields.
  4752. (objfile::~objfile): Don't free those fields.
  4753. * psympriv.h (struct psymbol_allocation_list): Remove
  4754. forward-declaration.
  4755. (add_psymbol_to_list): Change psymbol_allocation_list parameter
  4756. to std::vector.
  4757. (start_psymtab_common): Change parameters to std::vector.
  4758. * psymtab.c: Include algorithm.
  4759. (require_partial_symbols): Call shrink_to_fit.
  4760. (find_pc_sect_psymbol): Adjust to vector change.
  4761. (match_partial_symbol): Likewise.
  4762. (lookup_partial_symbol): Likewise.
  4763. (psym_relocate): Likewise.
  4764. (dump_psymtab): Likewise.
  4765. (recursively_search_psymtabs): Likewise.
  4766. (compare_psymbols): Remove.
  4767. (sort_pst_symbols): Adjust to vector change.
  4768. (start_psymtab_common): Likewise.
  4769. (end_psymtab_common): Likewise.
  4770. (psymbol_bcache_full): De-constify return value.
  4771. (add_psymbol_to_bcache): Likewise.
  4772. (extend_psymbol_list): Remove.
  4773. (append_psymbol_to_list): Adjust to vector change.
  4774. (add_psymbol_to_list): Likewise.
  4775. (init_psymbol_list): Likewise.
  4776. (maintenance_info_psymtabs): Likewise.
  4777. (maintenance_check_psymtabs): Likewise.
  4778. * symfile.h (struct psymbol_allocation_list): Remove.
  4779. * symfile.c (reread_symbols): Adjust to vector change.
  4780. * dbxread.c (start_psymtab): Change type of parameters.
  4781. (dbx_symfile_read): Adjust to vector change.
  4782. (read_dbx_symtab): Likewise.
  4783. (start_psymtab): Change type of parameters.
  4784. * dwarf2read.c (dwarf2_build_psymtabs): Adjust to vector change.
  4785. (create_partial_symtab): Likewise.
  4786. (add_partial_symbol): Likewise.
  4787. (write_one_signatured_type): Likewise.
  4788. (recursively_write_psymbols): Likewise.
  4789. * mdebugread.c (parse_partial_symbols): Likewise.
  4790. * xcoffread.c (xcoff_start_psymtab): Change type of parameters.
  4791. (scan_xcoff_symtab): Adjust to vector change.
  4792. (xcoff_initial_scan): Likewise.
  4793. 2017-10-13 Simon Marchi <simon.marchi@ericsson.com>
  4794. * ada-typeprint.c (print_dynamic_range_bound): Use std::string.
  4795. 2017-10-13 Yao Qi <yao.qi@linaro.org>
  4796. * features/Makefile: Remove tic6x-*-expedite, add tic6x-expedite.
  4797. Remove s390x-*-expedite, add s390x-expedite.
  4798. 2017-10-13 Yao Qi <yao.qi@linaro.org>
  4799. * features/s390-gs-linux64.c: Regenerated.
  4800. * features/s390x-gs-linux64.c: Regenerated.
  4801. 2017-10-13 Tom Tromey <tom@tromey.com>
  4802. * compile/compile-object-run.c (do_module_cleanup): Use delete.
  4803. * solib.c (update_solib_list, reload_shared_libraries_1): Use
  4804. delete.
  4805. * symfile.c (symbol_file_add_with_addrs): Use new.
  4806. (symbol_file_add_separate): Update comment.
  4807. (syms_from_objfile_1, remove_symbol_file_command): Use delete.
  4808. * jit.c (jit_object_close_impl): Use new.
  4809. (jit_unregister_code): Use delete.
  4810. * objfiles.c (objfile::objfile): Rename from allocate_objfile.
  4811. (~objfile): Rename from free_objfile.
  4812. (free_objfile_separate_debug, do_free_objfile_cleanup)
  4813. (free_all_objfiles, objfile_purge_solibs): Use delete.
  4814. * objfiles.h (struct objfile): Add constructor and destructor.
  4815. Use DISABLE_COPY_AND_ASSIGN. Add initializers to data members.
  4816. (allocate_objfile, free_objfile): Don't declare.
  4817. (struct objstats): Add initializers.
  4818. 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
  4819. * arch-utils.h (simple_displaced_step_copy_insn): Remove.
  4820. * arch-utils.c (simple_displaced_step_copy_insn): Remove.
  4821. * gdbarch.sh (displaced_step_copy_insn): Adjust comment.
  4822. * gdbarch.h: Regenerate.
  4823. * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
  4824. Adjust comment.
  4825. * i386-tdep.c (i386_displaced_step_copy_insn): Adjust comment.
  4826. (i386_displaced_step_fixup): Adjust comment.
  4827. * rs6000-tdep.c (ppc_displaced_step_copy_insn): Adjust comment.
  4828. 2017-10-12 Tom Tromey <tom@tromey.com>
  4829. * prologue-value.h (pv_area::store_would_trash): Return bool.
  4830. (pv_area::find_reg): Likewise.
  4831. * prologue-value.c (pv_area::store_would_trash): Return bool.
  4832. (pv_area::find_reg): Likewise.
  4833. 2017-10-12 Tom Tromey <tom@tromey.com>
  4834. * s390-linux-tdep.c (s390_store, s390_load)
  4835. (s390_check_for_saved, s390_analyze_prologue): Update.
  4836. * rx-tdep.c (check_for_saved, rx_analyze_prologue): Update.
  4837. * rl78-tdep.c (rl78_analyze_prologue, check_for_saved): Update.
  4838. * prologue-value.h (class pv_area): Move from prologue-value.c.
  4839. Change names of members. Add constructor, destructor, member
  4840. functions.
  4841. (make_pv_area, free_pv_area, make_cleanup_free_pv_area)
  4842. (pv_area_store, pv_area_fetch, pv_area_store_would_trash)
  4843. (pv_area_fetch, pv_area_scan): Don't declare.
  4844. * prologue-value.c (struct pv_area::area_entry): Now member of
  4845. pv_area.
  4846. (struct pv_area): Move to prologue-value.h.
  4847. (pv_area::pv_area): Rename from make_pv_area.
  4848. (pv_area::~pv_area): Rename from free_pv_area.
  4849. (do_free_pv_area_cleanup, make_cleanup_free_pv_area): Remove.
  4850. (clear_entries, find_entry, overlaps, store_would_trash, store)
  4851. (fetch, find_reg, scan): Now member of pv_area.
  4852. Remove "area" argument. Update.
  4853. * msp430-tdep.c (check_for_saved, msp430_analyze_prologue):
  4854. Update.
  4855. * mn10300-tdep.c (push_reg, check_for_saved)
  4856. (mn10300_analyze_prologue): Update.
  4857. * mep-tdep.c (is_arg_spill, check_for_saved)
  4858. (mep_analyze_prologue): Update.
  4859. * m32c-tdep.c (m32c_pv_push, m32c_srcdest_fetch)
  4860. (m32c_srcdest_store, m32c_pv_enter, m32c_is_arg_spill)
  4861. (m32c_is_struct_return, m32c_analyze_prologue): Update.
  4862. * arm-tdep.c (thumb_analyze_prologue, arm_analyze_prologue):
  4863. Update.
  4864. * arc-tdep.c (arc_is_in_prologue, arc_analyze_prologue): Update.
  4865. * aarch64-tdep.c (aarch64_analyze_prologue): Update.
  4866. 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
  4867. * linux-nat.h (linux_nat_set_delete_thread): New declaration.
  4868. * linux-nat.c (linux_nat_delete_thread): New variable.
  4869. (lwp_free): Invoke linux_nat_delete_thread if set.
  4870. (linux_nat_set_delete_thread): New function.
  4871. * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Assign
  4872. thread delete callback.
  4873. * arm-linux-nat.c (arm_linux_delete_thread): New function.
  4874. (_initialize_arm_linux_nat): Assign thread delete callback.
  4875. * s390-linux-nat.c (s390_delete_thread): New function.
  4876. (_initialize_s390_nat): Assign thread delete callback.
  4877. * x86-linux-nat.c (x86_linux_add_target): Likewise.
  4878. * nat/aarch64-linux.c (aarch64_linux_delete_thread): New
  4879. function.
  4880. * nat/aarch64-linux.h (aarch64_linux_delete_thread): New
  4881. declaration.
  4882. * nat/x86-linux.c (x86_linux_delete_thread): New function.
  4883. * nat/x86-linux.h (x86_linux_delete_thread): New declaration.
  4884. 2017-10-09 Tom Tromey <tom@tromey.com>
  4885. * tui/tui-win.c (tui_set_win_height, parse_scrolling_args): Use
  4886. std::string.
  4887. * tui/tui-layout.c (enum tui_status): Use std::string.
  4888. 2017-10-11 Tom Tromey <tom@tromey.com>
  4889. * gdbthread.h (thread_command): Constify.
  4890. * inferior.h (detach_command): Constify.
  4891. * top.h (set_history, show_history): Constify.
  4892. * arm-tdep.c (set_arm_command, show_arm_command): Constify.
  4893. * serial.c (serial_set_cmd, serial_show_cmd): Constify.
  4894. * bsd-kvm.c (bsd_kvm_cmd): Constify.
  4895. * printcmd.c (set_command): Constify.
  4896. (non_const_set_command): New function.
  4897. * dcache.c (set_dcache_command, show_dcache_command): Constify.
  4898. * breakpoint.c (enable_command, disable_command, delete_command)
  4899. (catch_command, tcatch_command, set_breakpoint_cmd)
  4900. (show_breakpoint_cmd): Constify.
  4901. * macrocmd.c (macro_command): Constify.
  4902. * infcmd.c (unset_command, kill_command, detach_command)
  4903. (info_proc_cmd): Constify.
  4904. * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Constify.
  4905. * auto-load.c (show_auto_load_cmd, set_auto_load_cmd)
  4906. (info_auto_load_cmd): Constify.
  4907. * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
  4908. (unset_tdesc_cmd): Constify.
  4909. * ada-lang.c (set_ada_command, show_ada_command)
  4910. (maint_set_ada_cmd, maint_show_ada_cmd): Constify.
  4911. * guile/guile.c (set_guile_command, show_guile_command)
  4912. (info_guile_command): Constify.
  4913. * tui/tui-win.c (tui_command, set_tui_cmd, show_tui_cmd):
  4914. Constify.
  4915. * skip.c (skip_command): Constify.
  4916. * compile/compile.c (_initialize_compile): Constify.
  4917. * dwarf2read.c (set_dwarf_cmd, show_dwarf_cmd): Constify.
  4918. * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
  4919. (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
  4920. (maint_btrace_pt_show_cmd): Constify.
  4921. * remote.c (set_remote_cmd, show_remote_cmd, remote_command):
  4922. Constify.
  4923. * python/python.c (user_show_python, user_set_python): Constify.
  4924. * mips-tdep.c (set_mips_command, show_mips_command)
  4925. (set_mipsfpu_command): Constify.
  4926. * record-btrace.c (cmd_record_btrace_start)
  4927. (cmd_set_record_btrace, cmd_show_record_btrace)
  4928. (cmd_set_record_btrace_bts, cmd_show_record_btrace_bts)
  4929. (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): Constify.
  4930. * rs6000-tdep.c (set_powerpc_command, show_powerpc_command):
  4931. Constify.
  4932. * symfile.c (overlay_command): Constify.
  4933. * spu-tdep.c (set_spu_command, show_spu_command): Constify.
  4934. * cli/cli-logging.c (set_logging_command, show_logging_command):
  4935. Constify.
  4936. * cli/cli-dump.c (dump_command, append_command)
  4937. (srec_dump_command, ihex_dump_command, verilog_dump_command)
  4938. (tekhex_dump_command, binary_dump_command)
  4939. (binary_append_command): Constify.
  4940. * cli/cli-decode.c (struct cmd_list_element): Change type of
  4941. "fun".
  4942. * cli/cli-cmds.c (info_command, show_command, set_debug)
  4943. (show_debug): Constify.
  4944. (show_command): Add non-const overload.
  4945. * top.c (set_history, show_history): Constify.
  4946. * sh-tdep.c (set_sh_command, show_sh_command): Constify.
  4947. * command.h (add_prefix_cmd): Accept a cmd_const_cfunc_ftype.
  4948. * target.c (target_command): Constify.
  4949. * sparc64-tdep.c (info_adi_command): Constify.
  4950. * record-full.c (cmd_record_full_start): Constify.
  4951. (set_record_full_command): Constify. Fix typo.
  4952. (show_record_full_command): Constify.
  4953. * thread.c (thread_command, thread_apply_command): Constify.
  4954. * memattr.c (dummy_cmd): Constify.
  4955. * value.c (function_command): Constify.
  4956. * frame.c (set_backtrace_cmd, show_backtrace_cmd): Constify.
  4957. * probe.c (info_probes_command): Constify.
  4958. * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Constify.
  4959. * gnu-nat.c (set_task_cmd, show_task_cmd, set_thread_cmd)
  4960. (show_thread_cmd, set_thread_default_cmd)
  4961. (show_thread_default_cmd): Constify.
  4962. (check_empty): Constify.
  4963. * tracepoint.c (tfind_command): Constify.
  4964. * cp-support.c (maint_cplus_command): Constify.
  4965. * windows-tdep.c (info_w32_command): Constify.
  4966. * record.c (cmd_record_start, set_record_command)
  4967. (show_record_command, info_record_command, cmd_record_goto):
  4968. Constify.
  4969. * ravenscar-thread.c (set_ravenscar_command)
  4970. (show_ravenscar_command): Constify.
  4971. * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
  4972. Constify.
  4973. (add_internal_problem_command): Remove casts.
  4974. * arc-tdep.c (maintenance_print_arc_command): Constify.
  4975. * valprint.c (set_print, show_print, set_print_raw)
  4976. (show_print_raw): Constify.
  4977. * maint.c (maintenance_command, maintenance_info_command)
  4978. (maintenance_print_command, maintenance_set_cmd)
  4979. (maintenance_show_cmd, set_per_command_cmd)
  4980. (show_per_command_cmd, maintenance_check_command): Constify.
  4981. * language.c (set_check, show_check): Constify.
  4982. * typeprint.c (show_print_type, set_print_type): Constify.
  4983. * go32-nat.c (go32_info_dos_command): Constify.
  4984. 2017-10-11 Tom Tromey <tom@tromey.com>
  4985. * breakpoint.c (prepare_re_set_context): Remove.
  4986. (breakpoint_re_set_one): Update. Don't use cleanups.
  4987. (breakpoint_re_set): Use scoped_restore, std::string, and
  4988. scoped_restore_current_language.
  4989. 2017-10-11 Tom Tromey <tom@tromey.com>
  4990. * breakpoint.c (commands_command_1): Use std::string.
  4991. (cleanup_executing_breakpoints): Remove.
  4992. (bpstat_do_actions_1): Use scoped_restore.
  4993. (bpstat_check_watchpoint): Use std::string.
  4994. (decode_static_tracepoint_spec): Likewise.
  4995. (break_range_command): Likewise.
  4996. (watch_command_1): Likewise.
  4997. (compare_breakpoints): Change argument types.
  4998. (clear_command): Use std::vector.
  4999. (cleanup_executing_breakpoints): Remove.
  5000. (update_global_location_list): Use unique_xmalloc_ptr.
  5001. (strace_command): Remove unused declaration.
  5002. 2017-10-11 John Baldwin <jhb@FreeBSD.org>
  5003. * Makefile.in (ALLDEPFILES): Add arm-fbsd-nat.c.
  5004. * NEWS: Mention new FreeBSD/arm native configuration.
  5005. * configure.host: Add arm*-*-freebsd*.
  5006. * configure.nat: Likewise.
  5007. * arm-fbsd-nat.c: New file.
  5008. 2017-10-11 John Baldwin <jhb@FreeBSD.org>
  5009. * Makefile.in (ALL_TARGET_OBS): Add arm-fbsd-tdep.o.
  5010. (ALLDEPFILES): Add arm-fbsd-tdep.c.
  5011. * NEWS: Mention new FreeBSD/arm target.
  5012. * configure.tgt: Add arm*-*-freebsd*.
  5013. * arm-fbsd-tdep.c: New file.
  5014. * arm-fbsd-tdep.h: New file.
  5015. 2017-10-11 Maciej W. Rozycki <macro@imgtec.com>
  5016. * linux-tdep.c (linux_make_corefile_notes): Remove call to
  5017. `gdbarch_elfcore_write_linux_prpsinfo'.
  5018. * gdbarch.sh (elfcore_write_linux_prpsinfo): Remove architecture
  5019. method.
  5020. (elf_internal_linux_prpsinfo): Remove declaration.
  5021. * gdbarch.h: Regenerate.
  5022. * gdbarch.c: Regenerate.
  5023. 2017-10-11 Maciej W. Rozycki <macro@imgtec.com>
  5024. * ppc-linux-tdep.c (ppc_linux_init_abi): Remove call to
  5025. `set_gdbarch_elfcore_write_linux_prpsinfo'.
  5026. 2017-10-11 Pedro Alves <palves@redhat.com>
  5027. * breakpoint.c (reattach_breakpoints): Delete.
  5028. * breakpoint.h (reattach_breakpoints): Delete.
  5029. 2017-10-11 Simon Marchi <simon.marchi@ericsson.com>
  5030. * symfile.c (registered_sym_fns): Make struct, not typedef.
  5031. (DEF_VEC_O (registered_sym_fns)): Remove.
  5032. (symtab_fns): Change type to std::vector.
  5033. (add_symtab_fns): Adjust.
  5034. (find_sym_fns): Adjust.
  5035. 2017-10-11 Anton Kolesov <Anton.Kolesov@synopsys.com>
  5036. * arc-tdep.c (arc_gdbarch_init): Pass proper cpu value to disassembler.
  5037. * arc-tdep.h (arc_arch_is_em): New function.
  5038. (arc_arch_is_hs): Likewise.
  5039. 2017-10-11 Egeyar Bagcioglu <egeyar.bagcioglu@oracle.com>
  5040. * macrotab.h (macro_lookup_inclusion): Remove unnecessary
  5041. parentheses in the declaration.
  5042. (macro_lookup_inclusion): Likewise.
  5043. (macro_lookup_definition): Likewise.
  5044. * p-lang.h (pascal_builtin_types): Likewise.
  5045. * tui/tui-data.c (tui_win_list): Likewise.
  5046. * tui/tui-data.h (tui_win_list): Likewise.
  5047. * utils.h (make_cleanup_free_section_addr_info): Likewise.
  5048. 2017-10-11 Mark Rages <markrages@gmail.com>
  5049. * target-memory.c (block_boundaries): Fix for block address not
  5050. aligned on block size.
  5051. 2017-10-10 Pedro Alves <palves@redhat.com>
  5052. Tom Tromey <tom@tromey.com>
  5053. * breakpoint.c (struct captured_breakpoint_query_args)
  5054. (do_captured_breakpoint_query, gdb_breakpoint_query): Delete.
  5055. (print_breakpoint): New.
  5056. * breakpoint.h (print_breakpoint): Declare.
  5057. * common/common-exceptions.h (enum return_reason): Remove
  5058. references to catch_exceptions.
  5059. * exceptions.c (catch_exceptions, catch_exceptions_with_msg):
  5060. Delete.
  5061. * exceptions.h (catch_exceptions_ftype, catch_exceptions)
  5062. (catch_exception_ftype, catch_exceptions_with_msg): Delete.
  5063. * gdb.h: Delete.
  5064. * gdbthread.h (thread_select): Declare.
  5065. * mi/mi-cmd-break.c: Don't include gdb.h.
  5066. (breakpoint_notify): Use print_breakpoint.
  5067. * mi/mi-cmd-catch.c: Don't include gdb.h.
  5068. * mi/mi-interp.c: Don't include gdb.h.
  5069. (mi_print_breakpoint_for_event): New.
  5070. (mi_breakpoint_created, mi_breakpoint_modified): Use
  5071. mi_print_breakpoint_for_event.
  5072. * mi/mi-main.c: Don't include gdb.h.
  5073. (mi_cmd_thread_select): Parse the global thread ID here. Use
  5074. thread_select instead of gdb_thread_select.
  5075. (mi_cmd_thread_list_ids): Output "thread-ids" tuple here instead
  5076. of using gdb_list_thread_ids.
  5077. * remote-fileio.c (do_remote_fileio_request): Change type. Reply
  5078. FILEIO_ENOSYS here.
  5079. (remote_fileio_request): Use TRY/CATCH instead of
  5080. catch_exceptions.
  5081. * symfile-mem.c (struct symbol_file_add_from_memory_args)
  5082. (symbol_file_add_from_memory_wrapper): Delete.
  5083. (add_vsyscall_page): Use TRY/CATCH instead of catch_exceptions.
  5084. * thread.c: Don't include gdb.h.
  5085. (do_captured_list_thread_ids, gdb_list_thread_ids): Delete.
  5086. (thread_alive): Use thread_select.
  5087. (do_captured_thread_select): Delete, parts salvaged as ...
  5088. (thread_select): ... this new function.
  5089. (gdb_thread_select): Delete.
  5090. 2017-10-10 Pedro Alves <palves@redhat.com>
  5091. Tom Tromey <tom@tromey.com>
  5092. * breakpoint.c (breakpoint_cond_eval): Change return type to bool
  5093. and reverse logic.
  5094. (WP_DELETED, WP_VALUE_CHANGED, WP_VALUE_NOT_CHANGED, WP_IGNORE):
  5095. No longer macros. Instead ...
  5096. (enum wp_check_result): They're now values of this new
  5097. enumeration.
  5098. (watchpoint_check): Change return type to wp_check_result and
  5099. parameter type to bpstat.
  5100. (bpstat_check_watchpoint): Use TRY/CATCH instead of catch_errors.
  5101. (bpstat_check_breakpoint_conditions): Use TRY/CATCH instead of
  5102. catch_errors. Reverse logic of watchpoint_check call.
  5103. (breakpoint_re_set_one): Now returns void and takes a breakpoint
  5104. pointer as parameter.
  5105. (breakpoint_re_set): Use TRY/CATCH instead of catch_errors.
  5106. * common/common-exceptions.c (throw_exception_sjlj): Update
  5107. comments to avoid mentioning catch_errors.
  5108. * exceptions.c (catch_errors): Delete.
  5109. * exceptions.h: Update comments to avoid mentioning catch_errors.
  5110. (catch_errors_ftype, catch_errors): Delete.
  5111. * infrun.c (normal_stop): Use TRY/CATCH instead of catch_errors.
  5112. (hook_stop_stub): Delete.
  5113. (restore_selected_frame): Change return type to void, and
  5114. parameter type to const frame_id &.
  5115. (restore_infcall_control_state): Use TRY/CATCH instead of
  5116. catch_errors.
  5117. * main.c (captured_command_loop): Return void and remove
  5118. parameter. Remove references to catch_errors.
  5119. (captured_main): Use TRY/CATCH instead of catch_errors.
  5120. * objc-lang.c (objc_submethod_helper_data)
  5121. (find_objc_msgcall_submethod_helper): Delete.
  5122. (find_objc_msgcall_submethod): Use TRY/CATCH instead of
  5123. catch_errors.
  5124. * record-full.c (record_full_message): Return void.
  5125. (record_full_message_args, record_full_message_wrapper): Delete.
  5126. (record_full_message_wrapper_safe): Return bool and use TRY/CATCH
  5127. instead of catch_errors.
  5128. * solib-aix.c (solib_aix_open_symbol_file_object): Change
  5129. parameter type to int.
  5130. * solib-darwin.c (open_symbol_file_object): Ditto.
  5131. * solib-dsbt.c (open_symbol_file_object): Ditto.
  5132. * solib-frv.c (open_symbol_file_object): Ditto.
  5133. * solib-svr4.c (open_symbol_file_object): Ditto.
  5134. * solib-target.c (solib_target_open_symbol_file_object): Ditto.
  5135. * solib.c (update_solib_list): Use TRY/CATCH instead of
  5136. catch_errors.
  5137. * solist.h (struct target_so_ops) <open_symbol_file_object>:
  5138. Change type.
  5139. * symmisc.c (struct print_symbol_args): Remove.
  5140. (dump_symtab_1): Use TRY/CATCH instead of catch_errors.
  5141. (print_symbol): Change type.
  5142. * windows-nat.c (handle_load_dll, handle_unload_dll): Return void
  5143. and remove parameters.
  5144. (catch_errors): New.
  5145. (get_windows_debug_event): Adjust.
  5146. 2017-10-09 Tom Tromey <tom@tromey.com>
  5147. * mi/mi-main.c (free_splay_tree): Remove.
  5148. (list_available_thread_groups): Use splay_tree_up.
  5149. * common/gdb_splay_tree.h: New file.
  5150. 2017-10-09 Tom Tromey <tom@tromey.com>
  5151. * mi/mi-main.c (do_nothing): Remove.
  5152. (list_available_thread_groups): Update.
  5153. 2017-10-09 Pedro Alves <palves@redhat.com>
  5154. * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>: Skip
  5155. reading registers when switching context.
  5156. 2017-10-09 John Baldwin <jhb@FreeBSD.org>
  5157. * fbsd-nat.c (fbsd_siginfo_size): Use gdbarch_long_bit.
  5158. (fbsd_convert_siginfo): Likewise.
  5159. * fbsd-tdep.c (fbsd_core_xfer_siginfo): Likewise.
  5160. 2017-10-09 Simon Marchi <simon.marchi@polymtl.ca>
  5161. * configure.ac (try_guile_versions): Remove guile-2.2.
  5162. * configure: Regenerate.
  5163. 2017-10-09 Tom Tromey <tom@tromey.com>
  5164. * Makefile.in (COMPILE.post, POSTCOMPILE): Restore $(basename).
  5165. (COMPILE.pre): Use $(CXX).
  5166. 2017-10-09 Pedro Alves <palves@redhat.com>
  5167. * cp-support.c (cp_remove_params): Return a gdb::unique_xmalloc_ptr.
  5168. Use bool.
  5169. (overload_list_add_symbol): Adjust to use gdb::unique_xmalloc_ptr.
  5170. * cp-support.h (cp_remove_params): Now returns a
  5171. gdb::unique_xmalloc_ptr.
  5172. * dwarf2read.c (find_slot_in_mapped_hash): Now returns bool.
  5173. Adjust to cp_remove_params returning a gdb::unique_xmalloc_ptr.
  5174. * psymtab.c (psymtab_search_name): Adjust to cp_remove_params
  5175. returning a gdb::unique_xmalloc_ptr.
  5176. (lookup_partial_symbol): Adjust to use gdb::unique_xmalloc_ptr.
  5177. * stack.c (find_frame_funname): Adjust to cp_remove_params
  5178. returning a gdb::unique_xmalloc_ptr.
  5179. 2017-10-08 Tom Tromey <tom@tromey.com>
  5180. * dwarf2read.c (dwarf2_get_dwz_file): Use
  5181. gdb::unique_xmalloc_ptr.
  5182. (find_slot_in_mapped_hash): Likewise.
  5183. (dwarf2_physname): Likewise.
  5184. (create_dwo_unit_in_dwp_v1): Use std::string.
  5185. (create_dwo_unit_in_dwp_v2): Likewise.
  5186. (lookup_dwo_cutu): Likewise.
  5187. (inherit_abstract_dies): Use std::vector.
  5188. (read_array_type): Likewise.
  5189. (dwarf_decode_macros): Remove unused declaration.
  5190. (unsigned_int_compar): Remove.
  5191. (dwarf2_build_psymtabs_hard): Use scoped_restore.
  5192. (psymtabs_addrmap_cleanup): Remove.
  5193. 2017-10-08 Tom Tromey <tom@tromey.com>
  5194. * frame-unwind.c (frame_unwind_try_unwinder): Update.
  5195. * frame.h (frame_cleanup_after_sniffer): Declare.
  5196. (frame_prepare_for_sniffer): Return void.
  5197. * frame.c (frame_cleanup_after_sniffer): No longer static. Change
  5198. type of argument.
  5199. (frame_prepare_for_sniffer): Return void.
  5200. 2017-10-08 Tom Tromey <tom@tromey.com>
  5201. * utils.h (make_cleanup_value_free): Remove.
  5202. * utils.c (do_value_free, struct cleanup): Remove.
  5203. * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>:
  5204. Use gdb_value_up.
  5205. * value.h (struct value_deleter): New.
  5206. (gdb_value_up): New typedef.
  5207. 2017-10-08 Tom Tromey <tom@tromey.com>
  5208. * symtab.c (free_search_symbols, do_free_search_symbols_cleanup)
  5209. (make_cleanup_free_search_symbols): Remove.
  5210. (search_symbols): Return std::vector.
  5211. (symbol_search::compare_search_syms): Now member of
  5212. symbol_search. Change arguments.
  5213. (sort_search_symbols_remove_dups): Change arguments. Rewrite.
  5214. (symtab_symbol_info, rbreak_command): Update.
  5215. * symtab.h (struct symbol_search) <next>: Remove.
  5216. Add constructors.
  5217. (symbol_search::operator<): New function.
  5218. (symbol_search::operator==): New function.
  5219. (search_symbols): Remove std::vector.
  5220. (free_search_symbols, make_cleanup_free_search_symbols): Remove.
  5221. (symbol_search::compare_search_syms): Declare.
  5222. 2017-10-06 Yao Qi <yao.qi@linaro.org>
  5223. * Makefile.in (ALL_64_TARGET_OBS): Replace aarch64-insn.o with
  5224. arch/aarch64-insn.o.
  5225. Remove one rule.
  5226. * configure.tgt: Replace aarch64-insn.o with arch/aarch64-insn.o.
  5227. 2017-10-06 Yao Qi <yao.qi@linaro.org>
  5228. * Makefile.in (ALL_TARGET_OBS): Replace arm.o, arm-get-next-pcs.o,
  5229. and arm-linux.o with arch/arm.o, arch/arm-get-next-pcs.o and
  5230. arch/arm-linux.o respectively.
  5231. * configure.tgt: Likewise.
  5232. 2017-10-06 Yao Qi <yao.qi@linaro.org>
  5233. * Makefile.in (ALL_TARGET_OBS): Rename i386.o to arch/i386.o.
  5234. * configure.tgt (i386_tobjs): Replace i386.o with arch/i386.o.
  5235. 2017-10-06 Pedro Alves <palves@redhat.com>
  5236. * windows-nat.c: Include <algorithm>.
  5237. 2017-10-06 Yao Qi <yao.qi@linaro.org>
  5238. * configure.tgt (i386_tobjs): New variable.
  5239. (amd64_tobjs): New variable.
  5240. Set $cpu_obs and $os_obs.
  5241. 2017-10-06 Yao Qi <yao.qi@linaro.org>
  5242. * Makefile.in (CONFIG_SRC_SUBDIR): New.
  5243. (ALL_64_TARGET_OBS): Replace amd64.o with arch/amd64.o.
  5244. (clean): Remove object files and dependency files.
  5245. (distclean): Remove the directory.
  5246. * configure.ac: Invoke AC_CONFIG_COMMANDS.
  5247. * configure: Re-generated.
  5248. * configure.tgt: Replace amd64.o with arch/amd64.o.
  5249. 2017-10-05 Jose E. Marchesi <jose.marchesi@oracle.com>
  5250. PR build/22188
  5251. * arm-tdep.c (arm_decode_misc_memhint_neon): Fix decoding of CPS
  5252. and SETEND.
  5253. 2017-10-05 Pedro Alves <palves@redhat.com>
  5254. * linux-nat.c (linux_child_follow_fork): When following the parent
  5255. and detaching the child, consult the parent thread's architecture
  5256. instead of the child's.
  5257. 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
  5258. * ax.h: Do not include "doublest.h".
  5259. (union agent_val): Remove.
  5260. 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
  5261. * dfp.h (MAX_DECIMAL_STRING): Move to dfp.c.
  5262. (decimal_to_string): Return std::string object.
  5263. (decimal_from_string): Accept std::string object. Return bool.
  5264. (decimal_from_integral, decimal_from_doublest): Remove.
  5265. (decimal_from_longest): Add prototype.
  5266. (decimal_from_ulongest): Likewise.
  5267. (decimal_to_longest): Likewise.
  5268. (decimal_from_doublest): Likewise.
  5269. * dfp.c: Do not include "gdbtypes.h" or "value.h".
  5270. (MAX_DECIMAL_STRING): Move here.
  5271. (decimal_to_string): Return std::string object.
  5272. (decimal_from_string): Accept std::string object. Return bool.
  5273. (decimal_from_integral): Remove, replace by ...
  5274. (decimal_from_longest, decimal_from_ulongest): ... these new functions.
  5275. (decimal_to_longest): New function.
  5276. (decimal_from_floating): Remove, replace by ...
  5277. (decimal_from_doublest): ... this new function.
  5278. (decimal_to_doublest): Update to new decimal_to_string interface.
  5279. * value.c (unpack_long): Use decimal_to_longest.
  5280. * valops.c (value_cast): Use decimal_from_doublest instead of
  5281. decimal_from_floating. Use decimal_from_[u]longest isntead of
  5282. decimal_from_integral.
  5283. * valarith.c (value_args_as_decimal): Likewise.
  5284. * valprint.c (print_decimal_floating): Update to new
  5285. decimal_to_string interface.
  5286. * printcmd.c (printf_decfloat): Likewise.
  5287. * c-exp.y (parse_number): Update to new decimal_from_string interface.
  5288. 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
  5289. * doublest.h: Do not include "floatformat.h". Remove stale comments.
  5290. * gdbtypes.c: Include "floatformat.h".
  5291. * value.c: Likewise.
  5292. * m68k-tdep.c: Likewise.
  5293. * findvar.c: Do not include "floatformat.h".
  5294. * amd64-darwin-tdep.c: Likewise.
  5295. * arm-linux-tdep.c: Likewise.
  5296. * i386-darwin-tdep.c: Likewise.
  5297. * i387-tdep.c: Likewise.
  5298. * m68k-linux-tdep.c: Likewise.
  5299. * mep-tdep.c: Likewise.
  5300. * mips-tdep.c: Likewise.
  5301. * nios2-tdep.c: Likewise.
  5302. * s390-linux-tdep.c: Likewise.
  5303. * sparc-obsd-tdep.c: Likewise.
  5304. * sparc-tdep.c: Likewise.
  5305. * sparc64-tdep.c: Likewise.
  5306. * spu-tdep.c: Likewise.
  5307. * tic6x-tdep.c: Likewise.
  5308. * tilegx-tdep.c: Likewise.
  5309. * vax-tdep.c: Likewise.
  5310. * xstormy16-tdep.c: Likewise.
  5311. * xtensa-tdep.c: Likewise.
  5312. * top.c: Do not include "doublest.h".
  5313. * aarch64-tdep.c: Likewise.
  5314. * alpha-tdep.c: Likewise.
  5315. * arm-linux-tdep.c: Likewise.
  5316. * m68k-linux-tdep.c: Likewise.
  5317. * tilegx-tdep.c: Likewise.
  5318. * xstormy16-tdep.c: Likewise.
  5319. 2017-10-05 John Baldwin <jhb@FreeBSD.org>
  5320. * mips-fbsd-tdep.c (MIPS_INST_ADDIU_A0_SP_N32): Define.
  5321. (mipsn32_fbsd_sigframe): Define.
  5322. (mips_fbsd_init_abi): Install mipsn32_fbsd_sigframe unwinder
  5323. for FreeBSD/mipsn32.
  5324. 2017-10-05 John Baldwin <jhb@FreeBSD.org>
  5325. * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_EHDRFLAGS and
  5326. AT_HWCAP.
  5327. 2017-10-05 Tristan Gingold <tgingold@free.fr>
  5328. * MAINTAINERS (Misc): Update my email address.
  5329. 2017-10-04 Pedro Alves <palves@redhat.com>
  5330. * remote.c (get_remote_arch_state): New 'gdbarch' parameter. Use
  5331. it instead of target_gdbarch.
  5332. (get_remote_state, get_remote_packet_size): Adjust
  5333. get_remote_arch_state calls, passing down target_gdbarch
  5334. explicitly.
  5335. (packet_reg_from_regnum, packet_reg_from_pnum): New parameter
  5336. 'gdbarch' and use it instead of target_gdbarch.
  5337. (get_memory_packet_size): Adjust get_remote_arch_state calls,
  5338. passing down target_gdbarch explicitly.
  5339. (struct stop_reply) <arch>: New field.
  5340. (remote_parse_stop_reply): Use the stopped thread's architecture,
  5341. not the current inferior's. Save the architecture in the
  5342. stop_reply.
  5343. (process_stop_reply): Use the stop reply's architecture.
  5344. (process_g_packet, remote_fetch_registers)
  5345. (remote_prepare_to_store, store_registers_using_G)
  5346. (remote_store_registers): Adjust get_remote_arch_state calls,
  5347. using the regcache's architecture.
  5348. (remote_get_trace_status): Adjust get_remote_arch_state calls,
  5349. passing down target_gdbarch explicitly.
  5350. * spu-multiarch.c (spu_thread_architecture): Defer to the target
  5351. beneath instead of calling target_gdbarch.
  5352. * target.c (default_thread_architecture): Use the specified
  5353. inferior's architecture, instead of the current inferior's
  5354. architecture (via target_gdbarch).
  5355. 2017-10-04 Pedro Alves <palves@redhat.com>
  5356. * regcache.c (get_thread_arch_regcache): Remove null_ptid special
  5357. case.
  5358. (regcache_print): Handle !target_has_registers here instead.
  5359. 2017-10-04 Pedro Alves <palves@redhat.com>
  5360. * frame.c (create_test_frame): Delete.
  5361. * frame.h (create_test_frame): Delete.
  5362. * gdbarch-selftests.c: Include gdbthread.h and target.h.
  5363. (class regcache_test): Delete.
  5364. (test_target_has_registers, test_target_has_stack)
  5365. (test_target_has_memory, test_target_prepare_to_store)
  5366. (test_target_store_registers): New functions.
  5367. (test_target_ops): New class.
  5368. (register_to_value_test): Error out if there's already a
  5369. process_stratum (or higher) target pushed. Create a fuller mock
  5370. environment, with mock target_ops, inferior, address space, thread
  5371. and inferior_ptid.
  5372. * progspace.c (struct address_space): Move to ...
  5373. * progspace.h (struct address_space): ... here.
  5374. * regcache.h (regcache::~regcache, regcache::raw_write)
  5375. [GDB_SELF_TEST]: No longer virtual.
  5376. 2017-10-04 Simon Marchi <simon.marchi@ericsson.com>
  5377. * mi/mi-main.c (list_available_thread_groups): Reverse filter logic.
  5378. 2017-10-04 Pedro Alves <palves@redhat.com>
  5379. * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Move code
  5380. out of 'between TRY and CATCH'.
  5381. 2017-10-04 Pedro Alves <palves@redhat.com>
  5382. * cli/cli-cmds.c (complete_command): Add missing END_CATCH.
  5383. * common/common-exceptions.h (TRY): Open an outermost scope.
  5384. Expand intro comment.
  5385. (CATCH): Reindent.
  5386. (END_CATCH): Close the outermost scope.
  5387. * completer.c (complete_line_internal): Add missing END_CATCH.
  5388. 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
  5389. * NEWS (Changes since GDB 8.0): Add entry about new
  5390. 'set-cwd-on-gdbserver' feature.
  5391. (New remote packets): Add entry for QSetWorkingDir.
  5392. * common/common-inferior.h (set_inferior_cwd): New prototype.
  5393. * infcmd.c (set_inferior_cwd): Remove "static".
  5394. (show_cwd_command): Expand text to include remote debugging.
  5395. * remote.c: Add PACKET_QSetWorkingDir.
  5396. (remote_protocol_features) <QSetWorkingDir>: New entry for
  5397. PACKET_QSetWorkingDir.
  5398. (extended_remote_set_inferior_cwd): New function.
  5399. (extended_remote_create_inferior): Call
  5400. "extended_remote_set_inferior_cwd".
  5401. (_initialize_remote): Call "add_packet_config_cmd" for
  5402. QSetWorkingDir.
  5403. 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
  5404. * NEWS (New commands): Mention "set/show cwd".
  5405. * cli/cli-cmds.c (_initialize_cli_cmds): Mention "set cwd" on
  5406. "cd" command's help text.
  5407. * common/common-inferior.h (get_inferior_cwd): New prototype.
  5408. * infcmd.c (inferior_cwd_scratch): New global variable.
  5409. (set_inferior_cwd): New function.
  5410. (get_inferior_cwd): Likewise.
  5411. (set_cwd_command): Likewise.
  5412. (show_cwd_command): Likewise.
  5413. (_initialize_infcmd): Add "set/show cwd" commands.
  5414. * inferior.h (class inferior) <cwd>: New field.
  5415. * nat/fork-inferior.c: Include "gdb_tilde_expand.h".
  5416. (fork_inferior): Change inferior's cwd before its execution.
  5417. * windows-nat.c (windows_create_inferior): Pass inferior's cwd
  5418. to CreateProcess.
  5419. 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
  5420. * Makefile.in (SFILES): Add gdb_tilde_expand.c.
  5421. (HFILES_NO_SRCDIR): Add gdb_tilde_expand.h.
  5422. (COMMON_OBS): Add gdb_tilde_expand.o.
  5423. * common/gdb_tilde_expand.c: New file.
  5424. * common/gdb_tilde_expand.h: Likewise.
  5425. 2017-10-03 Maciej W. Rozycki <macro@imgtec.com>
  5426. * gdbarch.sh (objfile): Remove duplicate declaration.
  5427. * gdbarch.h: Regenerate.
  5428. 2017-10-03 Tom Tromey <tom@tromey.com>
  5429. * utils.c (internal_vproblem): Use string_vprintf.
  5430. 2017-10-03 Tom Tromey <tom@tromey.com>
  5431. * printcmd.c (info_symbol_command): Use std::string.
  5432. 2017-10-03 Tom Tromey <tom@tromey.com>
  5433. * top.c (gdb_safe_append_history): Use std::string.
  5434. 2017-10-03 Tom Tromey <tom@tromey.com>
  5435. * event-top.c (stdin_event_handler): Update.
  5436. * main.c (captured_main_1): Update.
  5437. * top.h (make_delete_ui_cleanup): Remove.
  5438. (struct ui): Add constructor and destructor.
  5439. (new_ui, delete_ui): Remove.
  5440. * top.c (make_delete_ui_cleanup): Remove.
  5441. (new_ui_command): Use std::unique_ptr.
  5442. (delete_ui_cleanup): Remove.
  5443. (ui::ui): Rename from new_ui. Update.
  5444. (free_ui): Remove.
  5445. (ui::~ui): Rename from delete_ui. Update.
  5446. 2017-10-03 Tom Tromey <tom@tromey.com>
  5447. * symfile.c (load_progress): Use gdb::byte_vector.
  5448. 2017-10-03 Tom Tromey <tom@tromey.com>
  5449. * mi/mi-main.c (mi_cmd_trace_frame_collected): Remove unused
  5450. declaration.
  5451. * printcmd.c (x_command): Remove unused declaration.
  5452. * symfile.c (symbol_file_command): Remove unused declaration.
  5453. 2017-10-03 Tom Tromey <tom@tromey.com>
  5454. * utils.c (internal_vproblem): Use std::string.
  5455. (defaulted_query): Likewise.
  5456. 2017-10-03 Tom Tromey <tom@tromey.com>
  5457. * guile/scm-ports.c (ioscm_with_output_to_port_worker): Update.
  5458. * top.c (execute_command_to_string): Update.
  5459. * utils.c (make_cleanup_restore_page_info): Remove.
  5460. (do_restore_page_info_cleanup): Remove.
  5461. (set_batch_flag_and_restore_page_info):
  5462. New.
  5463. (make_cleanup_restore_page_info): Remove.
  5464. (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
  5465. (~set_batch_flag_and_restore_page_info): New
  5466. (make_cleanup_restore_uinteger): Remove.
  5467. (make_cleanup_restore_integer): Remove.
  5468. (struct restore_integer_closure): Remove.
  5469. (restore_integer): Remove.
  5470. * utils.h (struct set_batch_flag_and_restore_page_info): New
  5471. class.
  5472. (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
  5473. (make_cleanup_restore_page_info): Remove.
  5474. (make_cleanup_restore_uinteger) Remove.
  5475. (make_cleanup_restore_integer) Remove.
  5476. 2017-10-03 Tom Tromey <tom@tromey.com>
  5477. * record-full.h (record_full_gdb_operation_disable_set): Return
  5478. scoped_restore_tmpl<int>.
  5479. * infrun.c (adjust_pc_after_break): Update.
  5480. (handle_signal_stop): Update.
  5481. * record-full.c (record_full_gdb_operation_disable_set): Return
  5482. scoped_restore_tmpl<int>.
  5483. (record_full_wait_1, record_full_insert_breakpoint)
  5484. (record_full_remove_breakpoint, record_full_save)
  5485. (record_full_goto_insn): Update.
  5486. 2017-10-02 Tom Tromey <tom@tromey.com>
  5487. PR rust/22236:
  5488. * rust-lang.c (rust_val_print_str): New function.
  5489. (val_print_struct): Call it.
  5490. (rust_subscript): Preserve name of slice type.
  5491. 2017-10-02 Tom Tromey <tom@tromey.com>
  5492. * rust-lang.c (rust_subscript): Handle slices in
  5493. EVAL_AVOID_SIDE_EFFECTS case.
  5494. 2017-10-02 Tom Tromey <tom@tromey.com>
  5495. * rust-lang.c (rust_slice_type_p): Recognize &str as a slice type.
  5496. 2017-10-02 Tom Tromey <tom@tromey.com>
  5497. * rust-lang.h (rust_slice_type): Add "extern".
  5498. 2017-10-02 Tom Tromey <tom@tromey.com>
  5499. Pedro Alves <palves@redhat.com>
  5500. * ada-lang.h (ada_exc_info::operator<): Make const.
  5501. (ada_exc_info::operator==): Make const.
  5502. * ada-lang.c (ada_exc_info::operator<, ada_exc_info::operator==):
  5503. Make const.
  5504. 2017-09-29 Tom Tromey <tom@tromey.com>
  5505. * target.c (read_whatever_is_readable): Change type of "result".
  5506. Update.
  5507. (free_memory_read_result_vector): Remove.
  5508. (read_memory_robust): Change return type. Update.
  5509. * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Update. Use
  5510. bin2hex, std::string.
  5511. * target.h (memory_read_result_s): Remove typedef.
  5512. (free_memory_read_result_vector): Remove.
  5513. (read_memory_robust): Return std::vector.
  5514. 2017-09-29 Tom Tromey <tom@tromey.com>
  5515. * mi/mi-main.c (captured_mi_execute_command): Use scope_restore.
  5516. 2017-09-29 Tom Tromey <tom@tromey.com>
  5517. * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Update.
  5518. * ada-lang.h (struct ada_exc_info): Remove typedef. Declare
  5519. operator< and operator==.
  5520. (ada_exceptions_list): Return a std::vector.
  5521. * ada-lang.c (ada_exc_info::operator<): Rename from
  5522. compare_ada_exception_info.
  5523. (ada_exc_info::operator==): New.
  5524. (sort_remove_dups_ada_exceptions_list): Change type of
  5525. "exceptions".
  5526. (ada_add_standard_exceptions, ada_add_exceptions_from_frame)
  5527. (ada_add_global_exceptions): Likewise.
  5528. (ada_exceptions_list_1): Return a std::vector.
  5529. (ada_exceptions_list): Likewise.
  5530. 2017-09-29 Tom Tromey <tom@tromey.com>
  5531. * mi/mi-main.c (struct print_one_inferior_data) <inferiors>: Now a
  5532. 'std::set *'.
  5533. (print_one_inferior): Update.
  5534. (free_vector_of_ints): Remove.
  5535. (list_available_thread_groups): Change "ids" to std::set.
  5536. (mi_cmd_list_thread_groups): Update.
  5537. (struct collect_cores_data) <core>: Now a std::set.
  5538. (collect_cores): Update.
  5539. (unique): Remove.
  5540. (print_one_inferior): Update.
  5541. 2017-09-29 Tom Tromey <tom@tromey.com>
  5542. * mi/mi-main.c (mi_execute_cli_command): Use std::string.
  5543. (mi_execute_async_cli_command): Likewise.
  5544. (mi_cmd_trace_frame_collected): Use field_fmt.
  5545. 2017-09-29 Tom Tromey <tom@tromey.com>
  5546. * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Use
  5547. gdb::byte_vector.
  5548. 2017-09-29 Tom Tromey <tom@tromey.com>
  5549. * mi/mi-parse.c (mi_parse): Remove unused declaration.
  5550. 2017-09-29 Tom Tromey <tom@tromey.com>
  5551. * mi/mi-cmd-disas.c (mi_cmd_disassemble): Don't copy "oarg".
  5552. 2017-09-29 Tom Tromey <tom@tromey.com>
  5553. * varobj.h (varobj_gen_name): Return std::string.
  5554. * varobj.c (varobj_gen_name): Return std::string.
  5555. * mi/mi-cmd-var.c (mi_cmd_var_create): Use std::string.
  5556. (mi_cmd_var_delete): Don't copy "name".
  5557. 2017-09-29 Tom Tromey <tom@tromey.com>
  5558. * mi/mi-cmd-break.c (mi_argv_to_format): Return std::string.
  5559. (mi_cmd_break_insert_1): Update.
  5560. 2017-09-29 Tom Tromey <tom@tromey.com>
  5561. * target.h (make_scoped_defer_target_commit_resume): Update.
  5562. * target.c (make_scoped_defer_target_commit_resume): Rename from
  5563. make_cleanup_defer_target_commit_resume. Return a
  5564. scoped_restore.
  5565. * infrun.c (proceed): Use make_scoped_defer_target_commit_resume.
  5566. 2017-09-29 Tom Tromey <tom@tromey.com>
  5567. * main.c (captured_main_1): Remove unused declaration.
  5568. * spu-multiarch.c (parse_spufs_run): Remove unused declaration.
  5569. 2017-09-29 Tom Tromey <tom@tromey.com>
  5570. * symtab.c (search_symbols): Remove unused outer cleanup.
  5571. (make_source_files_completion_list): Remove unused declaration.
  5572. 2017-09-29 Tom Tromey <tom@tromey.com>
  5573. * mt-tdep.c (mt_push_dummy_call): Use gdb::byte_vector.
  5574. 2017-09-29 Tom Tromey <tom@tromey.com>
  5575. * xstormy16-tdep.c (xstormy16_push_dummy_call): Use
  5576. gdb::byte_vector.
  5577. 2017-09-29 Tom Tromey <tom@tromey.com>
  5578. * complaints.c (vcomplaint): Use std::string.
  5579. 2017-09-29 Tom Tromey <tom@tromey.com>
  5580. * tracepoint.c (trace_variable_command): Use std::string.
  5581. (encode_actions_1): Remove unused declarations.
  5582. (create_tsv_from_upload): Use std::string.
  5583. 2017-09-29 Tom Tromey <tom@tromey.com>
  5584. * cp-support.c (gdb_demangle): Use std::string.
  5585. 2017-09-29 Tom Tromey <tom@tromey.com>
  5586. * stack.c (parse_frame_specification): Use std::string
  5587. (info_frame_command): Use gdb::unique_xmalloc_ptr.
  5588. 2017-09-29 Tom Tromey <tom@tromey.com>
  5589. * tilegx-tdep.c (tilegx_push_dummy_call): Use gdb::byte_vector.
  5590. 2017-09-29 Tom Tromey <tom@tromey.com>
  5591. * utils.c (vfprintf_maybe_filtered): Use std::string.
  5592. (vfprintf_unfiltered): Likewise.
  5593. 2017-09-29 Tom Tromey <tom@tromey.com>
  5594. * event-top.c (top_level_prompt): Return std::string.
  5595. (display_gdb_prompt): Update.
  5596. 2017-09-29 Tom Tromey <tom@tromey.com>
  5597. * unittests/common-utils-selftests.c (format): New function.
  5598. (string_vprintf_tests): New function.
  5599. (_initialize_common_utils_selftests): Register new tests.
  5600. * common/common-utils.c (string_vprintf): New function.
  5601. * common/common-utils.h (string_vprintf): Declare.
  5602. 2017-09-29 Pedro Alves <palves@redhat.com>
  5603. * common/rsp-low.c (unpack_varlen_hex): Constify.
  5604. * common/rsp-low.h (unpack_varlen_hex): Constify.
  5605. * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
  5606. Constify.
  5607. * remote.c (remote_set_permissions, read_ptid)
  5608. (remote_current_thread, remote_get_threads_with_qthreadinfo)
  5609. (remote_static_tracepoint_marker_at)
  5610. (remote_static_tracepoint_markers_by_strid)
  5611. (stop_reply_extract_thread, remote_parse_stop_reply): Constify.
  5612. * tracepoint.c (parse_trace_status, parse_tracepoint_status)
  5613. (parse_tracepoint_definition, parse_tsv_definition)
  5614. (parse_static_tracepoint_marker_definition): Constify.
  5615. * tracepoint.h (parse_static_tracepoint_marker_definition)
  5616. (parse_trace_status, parse_tracepoint_status)
  5617. (parse_tracepoint_definition, parse_tsv_definition): Constify.
  5618. 2017-09-29 Pedro Alves <palves@redhat.com>
  5619. * remote.c (target_buf, target_buf_size): Delete.
  5620. (remote_get_noisy_reply): Remove buf_p and sizeof_buf parameters.
  5621. Use the connection's packet buffer instead.
  5622. All callers adjusted.
  5623. (_initialize_remote): Remove references to target_buf and
  5624. target_buf_size.
  5625. 2017-09-28 Pedro Alves <palves@redhat.com>
  5626. * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
  5627. unittests/common-utils-selftests.c.
  5628. (SUBDIR_UNITTESTS_OBS): Add common-utils-selftests.o.
  5629. (COMMON_OBS): Remove utils-selftests.o.
  5630. * utils-selftests.c: Move to ...
  5631. * unittests/common-utils-selftests.c: ... here and rename self
  5632. test to "string_printf".
  5633. 2017-09-28 Alexander Shaposhnikov <alexander.v.shaposhnikov@gmail.com> (tiny patch)
  5634. * dwarf2read.c (open_and_init_dwp_file): Protect against dwp_file
  5635. having NULL cus or tus.
  5636. 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
  5637. * arm-tdep.c: (convert_from_extended): Remove.
  5638. (convert_to_extended): Likewise.
  5639. (arm_extract_return_value): Use convert_typed_floating.
  5640. (arm_store_return_value): Likewise.
  5641. * sh-tdep.h (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
  5642. * sh-tdep.c: Do not include "floatformat.h".
  5643. (sh_littlebyte_bigword_type): New function.
  5644. (sh_register_convert_to_virtual): Use convert_typed_floating.
  5645. (sh_register_convert_to_raw): Likewise.
  5646. * sh64-tdep.c: (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
  5647. (sh64_littlebyte_bigword_type): New function.
  5648. (sh64_extract_return_value): Use convert_typed_floating.
  5649. (sh64_register_convert_to_virtual): Likewise.
  5650. (sh64_register_convert_to_raw): Likewise.
  5651. 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
  5652. * doublest.h (floatformat_from_type): Move to gdbtypes.h.
  5653. * doublest.c (floatformat_from_type): Move to gdbtypes.c.
  5654. * gdbtypes.h (union type_specific): Make field floatformat hold
  5655. just a single struct floatformat, not an array.
  5656. (floatformat_from_type): Move here.
  5657. * gdbtypes.c (floatformat_from_type): Move here. Update to
  5658. changed TYPE_FLOATFORMAT definition.
  5659. (verify_floatformat): Update to changed TYPE_FLOATFORMAT.
  5660. (recursive_dump_type): Likewise.
  5661. (init_float_type): Install correct floatformat for byte order.
  5662. (arch_float_type): Likewise.
  5663. 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
  5664. * gdbtypes.c (init_type): Change incoming argument from
  5665. length-in-bytes to length-in-bits. Assert length is a
  5666. multiple of TARGET_CHAR_BITS.
  5667. (arch_type, arch_flags_type): Likewise.
  5668. (init_integer_type): Update call to init_type.
  5669. (init_character_type): Likewise.
  5670. (init_boolean_type): Likewise.
  5671. (init_float_type): Likewise.
  5672. (init_decfloat_type): Likewise.
  5673. (init_complex_type): Likewise.
  5674. (init_pointer_type): Likewise.
  5675. (objfile_type): Likewise.
  5676. (arch_integer_type): Update call to arch_type.
  5677. (arch_character_type): Likewise.
  5678. (arch_boolean_type): Likewise.
  5679. (arch_float_type): Likewise.
  5680. (arch_decfloat_type): Likewise.
  5681. (arch_complex_type): Likewise.
  5682. (arch_pointer_type): Likewise.
  5683. (gdbtypes_post_init): Likewise.
  5684. * dwarf2read.c (dwarf2_init_float_type): Update call to init_type.
  5685. (read_base_type): Likewise.
  5686. * mdebugread.c (basic_type): Likewise.
  5687. * stabsread.c (dbx_init_float_type): Likewise.
  5688. (rs6000_builtin_type): Likewise.
  5689. (read_range_type): Likewise. Also, fix call to init_integer_type
  5690. with erroneous length argument.
  5691. * ada-lang.c (ada_language_arch_info): Update call to arch_type.
  5692. * d-lang.c (build_d_types): Likewise.
  5693. * f-lang.c (build_fortran_types): Likewise.
  5694. * go-lang.c (build_go_types): Likewise.
  5695. * opencl-lang.c (build_opencl_types): Likewise.
  5696. * jit.c (finalize_symtab): Likewise.
  5697. * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
  5698. (build_std_type_info_type): Likewise.
  5699. * target-descriptions.c (tdesc_gdb_type): Likewise. Also,
  5700. update call to arch_flags_type.
  5701. * linux-tdep.c (linux_get_siginfo_type_with_fields): Update call to
  5702. arch_type.
  5703. * fbsd-tdep.c (fbsd_get_siginfo_type): Likewise.
  5704. * windows-tdep.c (windows_get_tlb_type): Likewise.
  5705. * avr-tdep.c (avr_gdbarch_init): Update call to arch_type.
  5706. * ft32-tdep.c (ft32_gdbarch_init): Likewise.
  5707. * m32c-tdep.c (make_types): Likewise.
  5708. * rl78-tdep.c (rl78_gdbarch_init): Likewise.
  5709. (rl78_psw_type): Update call to arch_flags_type.
  5710. * m68k-tdep.c (m68k_ps_type): Update call to arch_flags_type.
  5711. * rx-tdep.c (rx_psw_type): Likewise.
  5712. (rx_fpsw_type): Likewise.
  5713. * sparc-tdep.c (sparc_psr_type): Likewise.
  5714. (sparc_fsr_type): Likewise.
  5715. * sparc64-tdep.c (sparc64_pstate_type): Likewise.
  5716. (sparc64_ccr_type): Likewise.
  5717. (sparc64_fsr_type): Likewise.
  5718. (sparc64_fprs_type): Likewise.
  5719. 2017-09-27 Tom Tromey <tom@tromey.com>
  5720. * findcmd.c (find_command): Constify.
  5721. 2017-09-27 Tom Tromey <tom@tromey.com>
  5722. * ada-tasks.c (task_command_1, task_command): Constify.
  5723. 2017-09-27 Tom Tromey <tom@tromey.com>
  5724. * symtab.c (maintenance_print_symbol_cache)
  5725. (maintenance_flush_symbol_cache)
  5726. (maintenance_print_symbol_cache_statistics): Constify.
  5727. 2017-09-27 Tom Tromey <tom@tromey.com>
  5728. * inferior.c (detach_inferior_command, kill_inferior_command)
  5729. (inferior_command): Constify.
  5730. 2017-09-27 Tom Tromey <tom@tromey.com>
  5731. * regcache.c (regcache_print, maintenance_print_registers)
  5732. (maintenance_print_raw_registers)
  5733. (maintenance_print_cooked_registers)
  5734. (maintenance_print_register_groups)
  5735. (maintenance_print_remote_registers): Constify.
  5736. 2017-09-27 Tom Tromey <tom@tromey.com>
  5737. * printcmd.c (map_display_numbers, undisplay_command)
  5738. (enable_disable_display_command, enable_display_command)
  5739. (disable_display_command): Constify.
  5740. 2017-09-27 Tom Tromey <tom@tromey.com>
  5741. * breakpoint.h (delete_command): Don't declare.
  5742. * breakpoint.c (delete_command, enable_once_command)
  5743. (enable_count_command, enable_delete_command, breakpoint_1)
  5744. (maintenance_info_breakpoints, stopin_command, stopat_command)
  5745. (delete_command, delete_trace_command, save_breakpoints)
  5746. (save_breakpoints_command, save_tracepoints_command): Constify.
  5747. 2017-09-27 Tom Tromey <tom@tromey.com>
  5748. * macrocmd.c (macro_expand_command, macro_expand_once_command)
  5749. (skip_ws, extract_identifier, macro_define_command)
  5750. (macro_undef_command, macro_list_command): Constify.
  5751. 2017-09-27 Tom Tromey <tom@tromey.com>
  5752. * infcmd.c (environment_info, set_environment_command)
  5753. (unset_environment_command, path_info, info_proc_cmd_1)
  5754. (info_proc_cmd_mappings, info_proc_cmd_stat)
  5755. (info_proc_cmd_status, info_proc_cmd_cwd, info_proc_cmd_cmdline)
  5756. (info_proc_cmd_exe, info_proc_cmd_all): Constify.
  5757. 2017-09-27 Tom Tromey <tom@tromey.com>
  5758. * i386-tdep.c (i386_mpx_info_bounds, i386_mpx_set_bounds):
  5759. Constify.
  5760. 2017-09-27 Tom Tromey <tom@tromey.com>
  5761. * symfile-mem.c (add_symbol_file_from_memory_command): Constify.
  5762. 2017-09-27 Tom Tromey <tom@tromey.com>
  5763. * demangle.c (demangle_command): Constify.
  5764. 2017-09-27 Tom Tromey <tom@tromey.com>
  5765. * progspace.c (maintenance_info_program_spaces_command):
  5766. Constify.
  5767. 2017-09-27 Tom Tromey <tom@tromey.com>
  5768. * compile/compile.c (check_raw_argument, compile_file_command)
  5769. (compile_code_command, compile_print_command): Constify.
  5770. 2017-09-27 Tom Tromey <tom@tromey.com>
  5771. * reggroups.c (maintenance_print_reggroups): Constify.
  5772. 2017-09-27 Tom Tromey <tom@tromey.com>
  5773. * dwarf2read.c (save_gdb_index_command): Constify.
  5774. 2017-09-27 Tom Tromey <tom@tromey.com>
  5775. * stap-probe.c (info_probes_stap_command): Constify.
  5776. 2017-09-27 Tom Tromey <tom@tromey.com>
  5777. * fork-child.c (unset_exec_wrapper_command): Constify.
  5778. 2017-09-27 Tom Tromey <tom@tromey.com>
  5779. * btrace.c (get_uint, get_context_size, no_chunk)
  5780. (maint_btrace_packet_history_cmd)
  5781. (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
  5782. (maint_info_btrace_cmd): Constify.
  5783. 2017-09-27 Tom Tromey <tom@tromey.com>
  5784. * reverse.c (delete_bookmark_command): Constify.
  5785. 2017-09-27 Tom Tromey <tom@tromey.com>
  5786. * remote.c (set_memory_packet_size)
  5787. (set_memory_write_packet_size, show_memory_write_packet_size)
  5788. (set_memory_read_packet_size, show_memory_read_packet_size)
  5789. (compare_sections_command, packet_command, remote_put_command)
  5790. (remote_get_command, remote_delete_command): Constify.
  5791. 2017-09-27 Tom Tromey <tom@tromey.com>
  5792. * mips-tdep.c (show_mipsfpu_command, set_mipsfpu_single_command)
  5793. (set_mipsfpu_double_command, set_mipsfpu_none_command)
  5794. (set_mipsfpu_auto_command): Constify.
  5795. 2017-09-27 Tom Tromey <tom@tromey.com>
  5796. * cli/cli-cmds.h (cd_command): Constify.
  5797. * cli/cli-cmds.c (cd_command): Constify.
  5798. 2017-09-27 Tom Tromey <tom@tromey.com>
  5799. * thread.c (thread_name_command, thread_find_command): Constify.
  5800. 2017-09-27 Tom Tromey <tom@tromey.com>
  5801. * probe.c (enable_probes_command, disable_probes_command):
  5802. Constify.
  5803. 2017-09-27 Tom Tromey <tom@tromey.com>
  5804. * symfile.c (symbol_file_command): Constify.
  5805. * gdbcore.h (deprecated_file_changed_hook): Constify.
  5806. * exec.c (deprecated_file_changed_hook, exec_file_command)
  5807. (file_command): Constify.
  5808. * defs.h (symbol_file_command): Constify.
  5809. 2017-09-27 Tom Tromey <tom@tromey.com>
  5810. * remote-fileio.c (set_system_call_allowed)
  5811. (show_system_call_allowed): Constify.
  5812. 2017-09-27 Tom Tromey <tom@tromey.com>
  5813. * tracepoint.c (delete_trace_variable_command)
  5814. (tfind_end_command, tfind_start_command, tfind_pc_command)
  5815. (tfind_tracepoint_command, tfind_line_command)
  5816. (tfind_range_command, tfind_outside_command): Constify.
  5817. 2017-09-27 Tom Tromey <tom@tromey.com>
  5818. * ax-gdb.c (maint_agent_printf_command, agent_command)
  5819. (agent_eval_command): Constify.
  5820. 2017-09-27 Tom Tromey <tom@tromey.com>
  5821. * tracepoint.c (info_scope_command): Constify.
  5822. * python/python.c (gdbpy_decode_line): Constify.
  5823. * python/py-breakpoint.c (bppy_init): Constify.
  5824. * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Constify.
  5825. * location.h: (new_linespec_location)
  5826. (string_to_event_location_basic, string_to_event_location):
  5827. Constify.
  5828. * location.c (new_linespec_location)
  5829. (string_to_event_location_basic, string_to_event_location):
  5830. Constify.
  5831. * linespec.h (decode_line_with_current_source)
  5832. (decode_line_with_last_displayed, linespec_lex_to_end): Constify.
  5833. * linespec.c (linespec_lex_to_end)
  5834. (decode_line_with_current_source)
  5835. (decode_line_with_last_displayed): Constify.
  5836. * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x):
  5837. Constify.
  5838. * cli/cli-cmds.c (edit_command, list_command): Constify.
  5839. * breakpoint.h (until_break_command, watch_command_wrapper)
  5840. (awatch_command_wrapper, rwatch_command_wrapper)
  5841. (init_ada_exception_breakpoint): Constify.
  5842. * breakpoint.c (break_command_1, dprintf_command)
  5843. (break_range_command, watch_command_wrapper)
  5844. (rwatch_command_wrapper, awatch_command_wrapper)
  5845. (until_break_command, init_ada_exception_breakpoint)
  5846. (strace_marker_create_sals_from_location, trace_command)
  5847. (ftrace_command, strace_command, struct tracepoint): Constify.
  5848. * ax-gdb.c (agent_command_1): Constify.
  5849. * ada-lang.c (ada_exception_sal): Constify.
  5850. 2017-09-27 Tom Tromey <tom@tromey.com>
  5851. * record.c (cmd_record_delete, cmd_record_stop, cmd_record_save)
  5852. (cmd_record_goto_begin, cmd_record_goto_end, get_insn_number)
  5853. (get_context_size, no_chunk, get_insn_history_modifiers)
  5854. (cmd_record_insn_history, get_call_history_modifiers)
  5855. (cmd_record_call_history): Constify.
  5856. 2017-09-27 Tom Tromey <tom@tromey.com>
  5857. * source.c (show_substitute_path_command)
  5858. (unset_substitute_path_command, set_substitute_path_command):
  5859. Constify.
  5860. 2017-09-27 Tom Tromey <tom@tromey.com>
  5861. * typeprint.c (maintenance_print_type): Constify.
  5862. * maint.c (maintenance_dump_me, maintenance_demangle)
  5863. (maintenance_time_display, maintenance_info_sections)
  5864. (maintenance_print_statistics, maintenance_deprecate)
  5865. (maintenance_undeprecate): Constify.
  5866. (maintenance_do_deprecate): Constify. Use std::string.
  5867. (maintenance_selftest): Constify.
  5868. * gdbtypes.h (maintenance_print_type): Constify.
  5869. 2017-09-27 Tom Tromey <tom@tromey.com>
  5870. * hppa-tdep.c (unwind_command): Constify.
  5871. 2017-09-27 Tom Tromey <tom@tromey.com>
  5872. * target-descriptions.c (unset_tdesc_filename_cmd)
  5873. (maint_print_c_tdesc_cmd, maintenance_check_xml_descriptions):
  5874. Constify.
  5875. 2017-09-27 Tom Tromey <tom@tromey.com>
  5876. * dummy-frame.c (maintenance_print_dummy_frames): Constify.
  5877. 2017-09-27 Tom Tromey <tom@tromey.com>
  5878. * tui/tui.c (tui_enable_command, tui_disable_command): Constify.
  5879. 2017-09-27 Tom Tromey <tom@tromey.com>
  5880. * tui/tui-regs.c (tui_reg_command): Constify.
  5881. 2017-09-27 Tom Tromey <tom@tromey.com>
  5882. * skip.c (skip_file_command, skip_function_command)
  5883. (skip_enable_command, skip_disable_command, skip_delete_command):
  5884. Constify.
  5885. 2017-09-27 Tom Tromey <tom@tromey.com>
  5886. * record-btrace.c (cmd_record_btrace_bts_start)
  5887. (cmd_record_btrace_pt_start): Constify.
  5888. 2017-09-27 Tom Tromey <tom@tromey.com>
  5889. * symmisc.c (maintenance_print_symbols)
  5890. (maintenance_print_msymbols, maintenance_print_objfiles)
  5891. (maintenance_info_symtabs, maintenance_check_symtabs)
  5892. (maintenance_expand_symtabs, maintenance_info_line_tables):
  5893. Constify.
  5894. 2017-09-27 Tom Tromey <tom@tromey.com>
  5895. * top.c (new_ui_command): Constify.
  5896. 2017-09-27 Tom Tromey <tom@tromey.com>
  5897. * symfile.c (add_symbol_file_command)
  5898. (remove_symbol_file_command, list_overlays_command)
  5899. (map_overlay_command, unmap_overlay_command)
  5900. (overlay_auto_command, overlay_manual_command)
  5901. (overlay_off_command, overlay_load_command): Constify.
  5902. 2017-09-27 Tom Tromey <tom@tromey.com>
  5903. * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
  5904. (info_spu_mailbox_command, info_spu_dma_command)
  5905. (info_spu_proxydma_command): Constify.
  5906. 2017-09-27 Tom Tromey <tom@tromey.com>
  5907. * cli/cli-logging.c (set_logging_on, set_logging_off): Constify.
  5908. 2017-09-27 Tom Tromey <tom@tromey.com>
  5909. * cli/cli-script.c (user_defined_command): Constify.
  5910. 2017-09-27 Tom Tromey <tom@tromey.com>
  5911. * cli/cli-dump.c (dump_memory_command, dump_value_command)
  5912. (dump_srec_memory, dump_srec_value, dump_ihex_memory)
  5913. (dump_ihex_value, dump_verilog_memory, dump_verilog_value)
  5914. (dump_tekhex_memory, dump_tekhex_value, dump_binary_memory)
  5915. (dump_binary_value, append_binary_memory, append_binary_value):
  5916. Constify.
  5917. (struct dump_context) <func>: Constify.
  5918. (add_dump_command): Update.
  5919. 2017-09-27 Tom Tromey <tom@tromey.com>
  5920. * cli/cli-cmds.c (show_version, show_configuration)
  5921. (source_command, show_user): Constify.
  5922. 2017-09-27 Tom Tromey <tom@tromey.com>
  5923. * target.c (maintenance_print_target_stack): Constify.
  5924. 2017-09-27 Tom Tromey <tom@tromey.com>
  5925. * interps.c (interpreter_exec_cmd): Constify.
  5926. 2017-09-27 Tom Tromey <tom@tromey.com>
  5927. * record-full.c (cmd_record_full_restore): Constify.
  5928. 2017-09-27 Tom Tromey <tom@tromey.com>
  5929. * memattr.c (enable_mem_command, disable_mem_command)
  5930. (delete_mem_command): Constify.
  5931. 2017-09-27 Tom Tromey <tom@tromey.com>
  5932. * value.c (show_convenience): Constify.
  5933. 2017-09-27 Tom Tromey <tom@tromey.com>
  5934. * gdbcore.h (core_file_command): Update.
  5935. * corefile.c (core_file_command): Constify.
  5936. 2017-09-27 Tom Tromey <tom@tromey.com>
  5937. * user-regs.c (maintenance_print_user_registers): Constify.
  5938. 2017-09-27 Tom Tromey <tom@tromey.com>
  5939. * cp-namespace.c (maintenance_cplus_namespace): Constify.
  5940. 2017-09-27 Tom Tromey <tom@tromey.com>
  5941. * cp-support.c (first_component_command): Constify.
  5942. 2017-09-27 Tom Tromey <tom@tromey.com>
  5943. * psymtab.c (maintenance_print_psymbols)
  5944. (maintenance_info_psymtabs, maintenance_check_psymtabs):
  5945. Constify.
  5946. 2017-09-27 Tom Tromey <tom@tromey.com>
  5947. * windows-tdep.c (display_tib): Constify.
  5948. 2017-09-27 Tom Tromey <tom@tromey.com>
  5949. * linux-fork.c (delete_checkpoint_command)
  5950. (detach_checkpoint_command): Constify.
  5951. 2017-09-27 Tom Tromey <tom@tromey.com>
  5952. * cp-abi.c (set_cp_abi_cmd, show_cp_abi_cmd): Constify.
  5953. 2017-09-27 Tom Tromey <tom@tromey.com>
  5954. * arc-tdep.c (dump_arc_instruction_command): Constify.
  5955. 2017-09-27 Tom Tromey <tom@tromey.com>
  5956. * valprint.c (set_radix, show_radix): Constify.
  5957. 2017-09-27 Tom Tromey <tom@tromey.com>
  5958. * dtrace-probe.c (info_probes_dtrace_command): Constify.
  5959. 2017-09-27 Tom Tromey <tom@tromey.com>
  5960. * command.h (not_just_help_class_command): Update.
  5961. * cli/cli-decode.h (not_just_help_class_command): Update.
  5962. * cli/cli-decode.c (not_just_help_class_command): Constify.
  5963. 2017-09-27 Tom Tromey <tom@tromey.com>
  5964. * gdb_bfd.c (maintenance_info_bfds): Constify.
  5965. 2017-09-27 Tom Tromey <tom@tromey.com>
  5966. * cli/cli-decode.c (add_cmd, set_cmd_cfunc): New function
  5967. overloads.
  5968. (do_add_cmd): Rename from add_cmd. Don't call set_cmd_cfunc.
  5969. (do_const_cfunc): New function.
  5970. (cmd_cfunc_eq): New overload.
  5971. (cli_user_command_p): Check do_const_cfunc.
  5972. * cli/cli-decode.h (struct cmd_list_element) <function>: New field
  5973. const_cfunc.
  5974. * command.h (add_cmd): Add const overload and no-function
  5975. overload.
  5976. (set_cmd_cfunc): Add const overload.
  5977. (cmd_const_cfunc_ftype): Declare.
  5978. (cmd_cfunc_eq): Add const overload.
  5979. * breakpoint.c, cli-cmds.c, cli-dump.c, guile/scm-cmd.c,
  5980. python/py-cmd.c, target.c, tracepoint.c: Use no-function add_cmd
  5981. overload.
  5982. 2017-09-27 Tom Tromey <tom@tromey.com>
  5983. * macroexp.c (get_next_token_for_substitution): New function.
  5984. (substitute_args): Call it. Check for __VA_OPT__.
  5985. 2017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
  5986. Pedro Alves <palves@redhat.com>
  5987. * dwarf2read.c (dwarf2_cu): Remove field producer_is_icc and add
  5988. producer_is_icc_lt_14.
  5989. (producer_is_icc_lt_14): New function.
  5990. (check_producer): Add code for checking version of ICC.
  5991. (producer_is_icc): Move to producer.c.
  5992. (read_structure_type): Restrict ICC workaround to ICC<14.
  5993. * producer.c: Include selftest.h.
  5994. (producer_is_icc, producer_parsing_tests, _initialize_producer):
  5995. New functions.
  5996. * producer.h (producer_is_icc): New declaration.
  5997. 2017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
  5998. * Makefile.in (SFILES): Add producer.c.
  5999. (COMMON_OBS): Add producer.o
  6000. * amd64-tdep.c (producer.h): Add new include.
  6001. * dwarf2read.c (producer.h): Add new include.
  6002. * producer.c: New file.
  6003. * producer.h: New file.
  6004. * utils.c (producer_is_gcc, producer_is_gcc_ge_4): Move to
  6005. producer.c.
  6006. * utils.h (producer_is_gcc, producer_is_gcc_ge_4): Move to
  6007. producer.h.
  6008. 2017-09-26 Matthias Klose <doko@ubuntu.com>
  6009. * configure.ac: Search ncursesw before ncurses.
  6010. Check ncursesw/ncurses.h before ncurses/ncurses.h.
  6011. * gdb_curses.h: Include <ncursesw/ncurses.h>
  6012. * config.in, configure: Regenerate.
  6013. 2017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  6014. PR gdb/22185
  6015. * configure.host <*-*-solaris2.[01], *-*-solaris2.[2-9]*>: Mark as
  6016. obsolete.
  6017. Use gdb_host sol2 for i[34567]86-*-solaris2*, x86_64-*-solaris2*.
  6018. Remove i386sol2 support.
  6019. * configure.nat <i386sol2>: Remove.
  6020. <sol2-64>: Fold into ...
  6021. <sol2>: ... this.
  6022. Move common settings to default section.
  6023. Add sol-thread.o.
  6024. * configure.tgt <i[34567]86-*-solaris2.1[0-9]*,
  6025. x86_64-*-solaris2.1[0-9]*>: Rename to ...
  6026. <i[34567]86-*-solaris2*, x86_64-*-solaris2*>: ... this.
  6027. <i[34567]86-*-solaris*>: Remove.
  6028. <sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*>: Remove.
  6029. * configure.ac: Remove wctype in libw check.
  6030. (_MSE_INT_H): Don't define on Solaris 7-9.
  6031. <solaris*>: Remove libthread_db.so.1 check.
  6032. * configure: Regenerate.
  6033. * config.in: Regenerate.
  6034. * proc-service.c: Remove PROC_SERVICE_IS_OLD handling.
  6035. (gdb_ps_prochandle_t, gdb_ps_read_buf_t, gdb_ps_write_buf_t)
  6036. (gdb_ps_size_t): Remove.
  6037. Use base types in users.
  6038. * sol-thread.c: Likewise, also for gdb_ps_addr_t.
  6039. * NEWS (Changes since GDB 8.0): Document Solaris 2.0-9 removal.
  6040. 2017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  6041. PR build/22206
  6042. * sparc64-tdep.c (adi_tag_fd): Print pid as long.
  6043. (adi_is_addr_mapped): Likewise.
  6044. (PSR_ICC): Don't redefine.
  6045. (PSR_IMPL): Likewise.
  6046. 2017-09-25 Tom Tromey <tom@tromey.com>
  6047. * regcache.c (regcache::dump): Use string_printf.
  6048. 2017-09-25 Tom Tromey <tom@tromey.com>
  6049. * regcache.c (class regcache_invalidator): New.
  6050. (struct register_to_invalidate): Remove.
  6051. (make_cleanup_regcache_invalidate): Remove.
  6052. (regcache::raw_write): Use regcache_invalidator.
  6053. 2017-09-25 Tom Tromey <tom@tromey.com>
  6054. * spu-tdep.c (spu2ppu_sniffer): Update.
  6055. * regcache.h (make_cleanup_regcache_xfree): Don't declare.
  6056. * regcache.c (do_regcache_xfree, make_cleanup_regcache_xfree):
  6057. Remove.
  6058. * ppc-linux-tdep.c (ppu2spu_sniffer): Update.
  6059. * mi/mi-main.c (mi_cmd_data_list_changed_registers): Update.
  6060. * frame.h (frame_save_as_regcache): Return std::unique_ptr.
  6061. * frame.c (frame_save_as_regcache): Return std::unique_ptr.
  6062. (frame_pop): Update.
  6063. 2017-09-25 Tom Tromey <tom@tromey.com>
  6064. * spu-tdep.c (spu2ppu_dealloc_cache): Use delete.
  6065. * regcache.h (regcache_xfree): Don't declare.
  6066. * regcache.c (regcache_xfree): Remove.
  6067. (do_regcache_xfree): Use delete.
  6068. * ppc-linux-tdep.c (ppu2spu_dealloc_cache): Use delete.
  6069. * linux-fork.c (free_fork): Use delete.
  6070. (fork_save_infrun_state): Likewise.
  6071. * jit.c (jit_dealloc_cache): Use delete.
  6072. * infrun.c (discard_infcall_suspend_state): Use delete.
  6073. 2017-09-25 Tom Tromey <tom@tromey.com>
  6074. * regcache.h (regcache_xmalloc): Don't declare.
  6075. (regcache_raw_set_cached_value): Update comment.
  6076. * regcache.c (regcache_xmalloc): Remove.
  6077. * ppc-linux-tdep.c (ppu2spu_sniffer): Use new.
  6078. * jit.c (jit_frame_sniffer): Use new.
  6079. * frame.c (frame_save_as_regcache): Use new.
  6080. 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
  6081. * NEWS: Advertise support for guarded-storage registers on IBM z.
  6082. 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
  6083. * s390-linux-nat.c (have_regset_gs): New static variable.
  6084. (s390_linux_fetch_inferior_registers): Handle guarded-storage
  6085. control block and guarded-storage broadcast control regsets.
  6086. (s390_read_description): Detect whether the target has
  6087. guarded-storage support, return appropriate tdesc.
  6088. * s390-linux-tdep.c (features/s390-gs-linux64.c): New include.
  6089. (features/s390x-gs-linux64.c): Likewise.
  6090. (struct gdbarch_tdep) <have_gs>: New field.
  6091. (s390_regmap_gs, s390_regmap_gsbc, s390_gs_regset)
  6092. (s390_gsbc_regset): New variables.
  6093. (s390_iterate_over_regset_sections): Iterate over s390_gs_regset
  6094. and s390_gsbc_regset, if applicable.
  6095. (s390_core_read_description): Check whether core file was from a
  6096. target with guarded-storage support; include appropriate regsets.
  6097. (s390_gdbarch_init): Add registers for guarded-storage support.
  6098. (_initialize_s390_tdep): Initialize new target descriptions that
  6099. include registers for guarded-storage support.
  6100. * s390-linux-tdep.h (HWCAP_S390_GS, S390_GSD_REGNUM)
  6101. (S390_GSSM_REGNUM, S390_GSEPLA_REGNUM)
  6102. (S390_BC_GSD_REGNUM, S390_BC_GSSM_REGNUM): New defines.
  6103. (S390_NUM_REGS): Adjust macro definition.
  6104. (s390_gs_regset, s390_gsbc_regset, tdesc_s390_gs_linux64)
  6105. (tdesc_s390x_gs_linux64): New declarations.
  6106. 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
  6107. * features/s390-gs-linux64.xml: New file.
  6108. * features/s390-gs.xml: New file.
  6109. * features/s390-gsbc.xml: New file.
  6110. * features/s390x-gs-linux64.xml: New file.
  6111. * features/Makefile (WHICH): Add s390-gs-linux64 and
  6112. s390x-gs-linux64.
  6113. (s390-gs-linux64-expedite, s390x-gs-linux64-expedite): New macros.
  6114. (XMLTOC): Add s390-gs-linux64.xml and s390x-linux64.xml.
  6115. * features/s390-gs-linux64.c: New generated file.
  6116. * features/s390x-gs-linux64.c: New file.
  6117. * regformats/s390-gs-linux64.dat: New file.
  6118. * regformats/s390x-gs-linux64.dat: New file.
  6119. 2017-09-23 Tom Tromey <tom@tromey.com>
  6120. * defs.h (make_cleanup_override_quit_handler): Don't declare.
  6121. 2017-09-22 Tom Tromey <tom@tromey.com>
  6122. * utils.c (class scoped_input_handler) <m_quit_handler>: Change
  6123. type to scoped_restore_tmpl.
  6124. <scoped_input_handler>: Initialize m_quit_handler directly.
  6125. 2017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
  6126. * cli/cli-cmds.c (pwd_command): Use "getcwd (NULL, 0)".
  6127. (cd_command): Likewise. Free "current_directory" before
  6128. assigning to it.
  6129. * main.c (captured_main_1): Use "getcwd (NULL, 0)".
  6130. * mi/mi-cmd-env.c (mi_cmd_env_pwd): Likewise.
  6131. * top.c (gdb_dirbuf): Remove global declaration.
  6132. * top.h (gdb_dirbuf): Likewise.
  6133. 2017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
  6134. * gnulib/aclocal.m4: Regenerate.
  6135. * gnulib/config.in: Regenerate.
  6136. * gnulib/configure: Regenerate.
  6137. * gnulib/import/Makefile.am: Regenerate.
  6138. * gnulib/import/Makefile.in: Regenerate.
  6139. * gnulib/import/assure.h: New file.
  6140. * gnulib/import/at-func.c: Likewise
  6141. * gnulib/import/chdir-long.c: New file.
  6142. * gnulib/import/chdir-long.h: New file.
  6143. * gnulib/import/cloexec.c: New file.
  6144. * gnulib/import/cloexec.h: New file.
  6145. * gnulib/import/close.c: New file.
  6146. * gnulib/import/closedir.c: New file.
  6147. * gnulib/import/dirent-private.h: New file.
  6148. * gnulib/import/dup-safer.c: New file.
  6149. * gnulib/import/dup.c: New file.
  6150. * gnulib/import/dup2.c: New file.
  6151. * gnulib/import/error.c: New file.
  6152. * gnulib/import/error.h: New file.
  6153. * gnulib/import/exitfail.c: New file.
  6154. * gnulib/import/exitfail.h: New file.
  6155. * gnulib/import/fchdir.c: New file.
  6156. * gnulib/import/fcntl.c: New file.
  6157. * gnulib/import/fcntl.in.h: New file.
  6158. * gnulib/import/fd-hook.c: New file.
  6159. * gnulib/import/fd-hook.h: New file.
  6160. * gnulib/import/fd-safer.c: New file.
  6161. * gnulib/import/fdopendir.c: New file.
  6162. * gnulib/import/filename.h: New file.
  6163. * gnulib/import/filenamecat-lgpl.c: New file.
  6164. * gnulib/import/filenamecat.h: New file.
  6165. * gnulib/import/fstat.c: New file.
  6166. * gnulib/import/fstatat.c: New file.
  6167. * gnulib/import/getcwd-lgpl.c: New file.
  6168. * gnulib/import/getcwd.c: New file.
  6169. * gnulib/import/getdtablesize.c: New file.
  6170. * gnulib/import/getlogin_r.c: New file.
  6171. * gnulib/import/getprogname.c: New file.
  6172. * gnulib/import/getprogname.h: New file.
  6173. * gnulib/import/gettext.h: New file.
  6174. * gnulib/import/glob-libc.h: New file.
  6175. * gnulib/import/glob.c: New file.
  6176. * gnulib/import/glob.in.h: New file.
  6177. * gnulib/import/intprops.h: New file.
  6178. * gnulib/import/m4/chdir-long.m4: New file.
  6179. * gnulib/import/m4/close.m4: New file.
  6180. * gnulib/import/m4/closedir.m4: New file.
  6181. * gnulib/import/m4/d-ino.m4: New file.
  6182. * gnulib/import/m4/d-type.m4: New file.
  6183. * gnulib/import/m4/dup.m4: New file.
  6184. * gnulib/import/m4/dup2.m4: New file.
  6185. * gnulib/import/m4/error.m4: New file.
  6186. * gnulib/import/m4/fchdir.m4: New file.
  6187. * gnulib/import/m4/fcntl.m4: New file.
  6188. * gnulib/import/m4/fcntl_h.m4: New file.
  6189. * gnulib/import/m4/fdopendir.m4: New file.
  6190. * gnulib/import/m4/filenamecat.m4: New file.
  6191. * gnulib/import/m4/fstat.m4: New file.
  6192. * gnulib/import/m4/fstatat.m4: New file.
  6193. * gnulib/import/m4/getcwd-abort-bug.m4: New file.
  6194. * gnulib/import/m4/getcwd-path-max.m4: New file.
  6195. * gnulib/import/m4/getcwd.m4: New file.
  6196. * gnulib/import/m4/getdtablesize.m4: New file.
  6197. * gnulib/import/m4/getlogin_r.m4: New file.
  6198. * gnulib/import/m4/getprogname.m4: New file.
  6199. * gnulib/import/m4/glob.m4: New file.
  6200. * gnulib/import/m4/gnulib-cache.m4: Regenerate.
  6201. * gnulib/import/m4/gnulib-comp.m4: Regenerate.
  6202. * gnulib/import/m4/mempcpy.m4: New file.
  6203. * gnulib/import/m4/memrchr.m4: New file.
  6204. * gnulib/import/m4/mode_t.m4: New file.
  6205. * gnulib/import/m4/msvc-inval.m4: New file.
  6206. * gnulib/import/m4/msvc-nothrow.m4: New file.
  6207. * gnulib/import/m4/open.m4: New file.
  6208. * gnulib/import/m4/openat.m4: New file.
  6209. * gnulib/import/m4/opendir.m4: New file.
  6210. * gnulib/import/m4/readdir.m4: New file.
  6211. * gnulib/import/m4/realloc.m4: New file.
  6212. * gnulib/import/m4/rewinddir.m4: New file.
  6213. * gnulib/import/m4/save-cwd.m4: New file.
  6214. * gnulib/import/m4/strdup.m4: New file.
  6215. * gnulib/import/m4/strerror.m4: New file.
  6216. * gnulib/import/m4/unistd-safer.m4: New file.
  6217. * gnulib/import/mempcpy.c: New file.
  6218. * gnulib/import/memrchr.c: New file.
  6219. * gnulib/import/msvc-inval.c: New file.
  6220. * gnulib/import/msvc-inval.h: New file.
  6221. * gnulib/import/msvc-nothrow.c: New file.
  6222. * gnulib/import/msvc-nothrow.h: New file.
  6223. * gnulib/import/open.c: New file.
  6224. * gnulib/import/openat-die.c: New file.
  6225. * gnulib/import/openat-priv.h: New file.
  6226. * gnulib/import/openat-proc.c: New file.
  6227. * gnulib/import/openat.c: New file.
  6228. * gnulib/import/openat.h: New file.
  6229. * gnulib/import/opendir.c: New file.
  6230. * gnulib/import/pipe-safer.c: New file.
  6231. * gnulib/import/readdir.c: New file.
  6232. * gnulib/import/realloc.c: New file.
  6233. * gnulib/import/rewinddir.c: New file.
  6234. * gnulib/import/save-cwd.c: New file.
  6235. * gnulib/import/save-cwd.h: New file.
  6236. * gnulib/import/strdup.c: New file.
  6237. * gnulib/import/strerror-override.c: New file.
  6238. * gnulib/import/strerror-override.h: New file.
  6239. * gnulib/import/strerror.c: New file.
  6240. * gnulib/import/unistd--.h: New file.
  6241. * gnulib/import/unistd-safer.h: New file.
  6242. * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
  6243. "getcwd" and "glob".
  6244. * ser-tcp.c: Undefine "close" before redefining it.
  6245. 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
  6246. * guile/scm-value.c (gdbscm_value_address): Initialize address,
  6247. get rid of res_val.
  6248. 2017-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  6249. * configure.nat <i386sol2,i386>: Add fork-inferior.o to NATDEPFILES.
  6250. <sol2,sparc>: Likewise.
  6251. <sol2-64,i386>: Likewise.
  6252. * warning.m4 (AM_GDB_WARNINGS): Disable -Wunknown-pragmas,
  6253. -Wdeprecated-declarations on *-*-solaris*.
  6254. * configure: Regenerate.
  6255. * procfs.c: Include "nat/inferior.h".
  6256. (procfs_info_proc): Fix typo.
  6257. 2017-09-21 Kevin Buettner <kevinb@redhat.com>
  6258. * remote.c (vector): Include.
  6259. (struct private_thread_info): Add field, thread_handle.
  6260. (free_private_thread_info): Deallocate storage associated with
  6261. thread handle.
  6262. (get_private_info_thread): Initialize `thread_handle' field.
  6263. (struct thread_item): Add field, thread_handle.
  6264. (clear_threads_listing_context): Deallocate storage associated
  6265. with thread handle.
  6266. (start_thread): Add support for "handle" attribute.
  6267. (thread_attributes): Add "handle".
  6268. (remote_get_threads_with_qthreadinfo): Initialize thread_handle
  6269. field.
  6270. (remote_update_thread_list): Update thread_handle.
  6271. (remote_thread_handle_to_thread_info): New function.
  6272. (init_remote_ops): Initialize to_thread_handle_to_thread_info.
  6273. 2017-09-21 Kevin Buettner <kevinb@redhat.com>
  6274. * python/py-inferior.c (gdbpy_thread_from_thread_handle): New
  6275. function.
  6276. (inferior_object_methods): Add gdbpy_thread_from_thread_handle.
  6277. * python/python-internal.h (thread_object_type): Declare.
  6278. 2017-09-21 Kevin Buettner <kevinb@redhat.com>
  6279. * target.h (struct target_ops): Add to_thread_handle_to_thread_info.
  6280. (target_thread_handle_to_thread_info): Declare.
  6281. * target.c (target_thread_handle_to_thread_info): New function.
  6282. * target-delegates.c: Regenerate.
  6283. * gdbthread.h (find_thread_by_handle): Declare.
  6284. * thread.c (find_thread_by_handle): New function.
  6285. * linux-thread-db.c (thread_db_thread_handle_to_thread_info): New
  6286. function.
  6287. (init_thread_db_ops): Register thread_db_thread_handle_to_thread_info.
  6288. 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
  6289. * nat/linux-waitpid.c (linux_debug): Add ATTRIBUTE_PRINTF.
  6290. 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
  6291. * microblaze-tdep.c (microblaze_debug): Add ATTRIBUTE_PRINTF.
  6292. 2017-09-21 Yao Qi <yao.qi@linaro.org>
  6293. * configure.tgt (aarch64*-*-freebsd*): Add fbsd-tdep.o solib-svr4.o
  6294. to gdb_target_obs.
  6295. 2017-09-20 Tom Tromey <tom@tromey.com>
  6296. * breakpoint.c (struct counted_command_line): Remove.
  6297. (breakpoint_commands): Update.
  6298. (alloc_counted_command_line, incref_counted_command_line)
  6299. (decref_counted_command_line, do_cleanup_counted_command_line)
  6300. (make_cleanup_decref_counted_command_line): Remove.
  6301. (breakpoint_set_commands, commands_command_1, ~bpstats, bpstats)
  6302. (bpstat_clear_actions, bpstat_do_actions_1, watchpoint_check)
  6303. (bpstat_stop_status, print_one_breakpoint_location, ~breakpoint)
  6304. (save_breakpoints): Update.
  6305. * breakpoint.h (counted_command_line): Now a typedef to
  6306. shared_ptr.
  6307. (struct breakpoint) <commands>: Now a counted_command_line.
  6308. (struct bpstats) <command>: Likewise.
  6309. 2017-09-20 Tom Tromey <tom@tromey.com>
  6310. * breakpoint.c (struct commands_info, do_map_commands_command):
  6311. Remove.
  6312. (commands_command_1): Update.
  6313. (iterate_over_related_breakpoints): Take a function_view.
  6314. (do_delete_breakpoint, do_map_delete_breakpoint): Remove.
  6315. (delete_command): Update.
  6316. (map_breakpoint_numbers): Take a function_view.
  6317. (do_disable_breakpoint, do_map_delete_breakpoint): Remove.
  6318. (disable_command): Update.
  6319. (do_enable_breakpoint, do_map_enable_breakpoint): Remove.
  6320. (enable_command): Update.
  6321. (struct disp_data, do_enable_breakpoint_disp)
  6322. (do_map_enable_once_breakpoint, do_map_enable_count_breakpoint)
  6323. (do_map_enable_delete_breakpoint): Remove.
  6324. (enable_once_command, enable_count_command, enable_delete_command)
  6325. (delete_trace_variable_command): Update.
  6326. 2017-09-20 Tom Tromey <tom@tromey.com>
  6327. * breakpoint.c (~bpstats): Rename from bpstat_free. Update.
  6328. (bpstat_clear): Use delete.
  6329. (bpstats): New constructors.
  6330. (bpstat_copy, bpstat_stop_status): Use new.
  6331. (dprintf_after_condition_true): Update.
  6332. * breakpoint.h (bpstats::bpstats): Add constructors.
  6333. (bpstats::~bpstats): Add destructor.
  6334. 2017-09-20 Pedro Alves <palves@redhat.com>
  6335. * eval.c (make_params): Delete, refactored as ...
  6336. (class fake_method): ... this new type's ctor.
  6337. (fake_method::~fake_method): New.
  6338. (evaluate_subexp_standard): Use 'fake_method'.
  6339. 2017-09-20 Tom Tromey <tom@tromey.com>
  6340. * windows-nat.c (get_windows_debug_event, windows_wait)
  6341. (do_initial_windows_stuff, windows_attach): Update.
  6342. * utils.c (vwarning, internal_vproblem): Update.
  6343. (ui_unregister_input_event_handler_cleanup)
  6344. (prepare_to_handle_input): Remove.
  6345. (class scoped_input_handler): New.
  6346. (defaulted_query, prompt_for_continue): Update.
  6347. * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
  6348. Update.
  6349. * top.c (undo_terminal_modifications_before_exit): Update.
  6350. * target/target.h (target_terminal_init, target_terminal_inferior)
  6351. (target_terminal_ours): Don't declare.
  6352. (class target_terminal): New.
  6353. * target.h (target_terminal_is_inferior, target_terminal_is_ours)
  6354. (target_terminal_ours_for_output)
  6355. (make_cleanup_restore_target_terminal): Don't declare.
  6356. (target_terminal_info): Remove.
  6357. * target.c (enum terminal_state, terminal_state): Remove.
  6358. (target_terminal::terminal_state): Define.
  6359. (target_terminal::init): Rename from target_terminal_init.
  6360. (target_terminal::inferior): Rename from
  6361. target_terminal_inferior.
  6362. (target_terminal::ours): Rename from target_terminal_ours.
  6363. (target_terminal::ours_for_output): Rename from
  6364. target_terminal_ours_for_output.
  6365. (target_terminal::info): New method.
  6366. (cleanup_restore_target_terminal)
  6367. (make_cleanup_restore_target_terminal): Remove.
  6368. * solib.c (handle_solib_event): Update.
  6369. * remote.c (remote_serial_quit_handler): Update.
  6370. (remote_terminal_inferior, remote_wait_as): Update.
  6371. * record-full.c (record_full_wait_1): Update.
  6372. * nto-procfs.c (procfs_create_inferior): Update.
  6373. * nat/fork-inferior.c (startup_inferior): Update.
  6374. * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
  6375. (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
  6376. (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
  6377. (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
  6378. (mi_breakpoint_created, mi_breakpoint_deleted)
  6379. (mi_breakpoint_modified, mi_on_resume, mi_solib_loaded)
  6380. (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
  6381. (mi_user_selected_context_changed, report_initial_inferior):
  6382. Update.
  6383. * linux-nat.c (linux_nat_attach, linux_nat_terminal_ours)
  6384. (linux_nat_terminal_inferior): Update.
  6385. * infrun.c (follow_fork_inferior)
  6386. (handle_vfork_child_exec_or_exit, do_target_resume)
  6387. (check_curr_ui_sync_execution_done, handle_inferior_event_1)
  6388. (handle_signal_stop, maybe_remove_breakpoints, normal_stop):
  6389. Update.
  6390. * inflow.c (child_terminal_init, info_terminal_command): Update.
  6391. * infcmd.c (post_create_inferior, continue_1, prepare_one_step)
  6392. (attach_command): Update.
  6393. * infcall.c (call_thread_fsm_should_stop): Update.
  6394. * gnu-nat.c (gnu_attach): Update.
  6395. * extension.c (struct active_ext_lang_state)
  6396. (restore_active_ext_lang): Update.
  6397. * exceptions.c (print_flush): Update.
  6398. * event-top.c (async_enable_stdin, default_quit_handler): Update.
  6399. (struct quit_handler_cleanup_data, restore_quit_handler)
  6400. (restore_quit_handler_dtor, make_cleanup_override_quit_handler):
  6401. Remove.
  6402. * cp-support.c (gdb_demangle): Update.
  6403. * breakpoint.c (update_inserted_breakpoint_locations)
  6404. (insert_breakpoint_locations, handle_jit_event)
  6405. (disable_breakpoints_in_unloaded_shlib): Update.
  6406. * annotate.c (annotate_breakpoints_invalid)
  6407. (annotate_frames_invalid): Update.
  6408. 2017-09-20 Tom Tromey <tom@tromey.com>
  6409. * main.c (catch_command_errors): Rename from
  6410. catch_command_errors_const.
  6411. (captured_main_1): Update.
  6412. 2017-09-20 Pedro Alves <palves@redhat.com>
  6413. * cli/cli-cmds.c (list_command): Use print_sal_location.
  6414. (print_sal_location): New function.
  6415. (ambiguous_line_spec): Use print_sal_location.
  6416. * linespec.c (symbol_to_sal): Record the symbol in the sal.
  6417. * symtab.c (find_function_start_sal): Likewise.
  6418. * symtab.h (symtab_and_line::symbol): New field.
  6419. 2017-09-20 Pedro Alves <palves@redhat.com>
  6420. * linespec.c (minsym_found): Handle non-text minsyms.
  6421. (symbol_to_sal): Record a sal.pc for non-block, non-label symbols.
  6422. 2017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
  6423. * features/Makefile (i386-avx-mpx-avx512-pku.dat): Add missing
  6424. backslash.
  6425. 2017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
  6426. * gdb.arch/i386-avx512.c (move_zmm_data_to_reg): Use
  6427. vmovups instead vmovaps.
  6428. (move_zmm_data_to_memory): Use vmovups instead vmovaps.
  6429. 2017-09-19 John Baldwin <jhb@FreeBSD.org>
  6430. * NEWS (Changes since GDB 8.0): Add starti.
  6431. * infcmd.c (enum run_break): New.
  6432. (run_command_1): Queue pending event for RUN_STOP_AT_FIRST_INSN
  6433. case.
  6434. (run_command): Use enum run_how.
  6435. (start_command): Likewise.
  6436. (starti_command): New function.
  6437. (RUN_ARGS_HELP): New macro.
  6438. (_initialize_infcmd): Use RUN_ARGS_HELP for run and start
  6439. commands. Add starti command.
  6440. 2017-09-19 Yao Qi <yao.qi@linaro.org>
  6441. * Makefile.in (monitor.o): Remove the rule.
  6442. 2017-09-19 Yao Qi <yao.qi@linaro.org>
  6443. * annotate.h (struct annotate_arg_emitter): Use
  6444. DISABLE_COPY_AND_ASSIGN.
  6445. * common/refcounted-object.h (refcounted_object): Likewise.
  6446. * completer.h (struct completion_result): Likewise.
  6447. * dwarf2read.c (struct dwarf2_per_objfile): Likewise.
  6448. * filename-seen-cache.h (filename_seen_cache): Likewise.
  6449. * gdbcore.h (thread_section_name): Likewise.
  6450. * gdb_regex.h (compiled_regex): Likewise.
  6451. * gdbthread.h (scoped_restore_current_thread): Likewise.
  6452. * inferior.h (scoped_restore_current_inferior): Likewise.
  6453. * jit.c (jit_reader): Likewise.
  6454. * linespec.h (struct linespec_result): Likewise.
  6455. * mi/mi-parse.h (struct mi_parse): Likewise.
  6456. * nat/fork-inferior.c (execv_argv): Likewise.
  6457. * progspace.h (scoped_restore_current_program_space): Likewise.
  6458. * python/python-internal.h (class gdbpy_enter): Likewise.
  6459. * regcache.h (regcache): Likewise.
  6460. * target-descriptions.c (struct tdesc_reg): Likewise.
  6461. (struct tdesc_type): Likewise.
  6462. (struct tdesc_feature): Likewise.
  6463. * ui-out.h (ui_out_emit_type): Likewise.
  6464. 2017-09-18 Simon Marchi <simon.marchi@ericsson.com>
  6465. * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Remove
  6466. label abort_expression.
  6467. 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
  6468. * common/buffer.c (buffer_xml_printf): Adjust.
  6469. * common/xml-utils.c (xml_escape_text): Change return type to
  6470. std::string, update code accordingly.
  6471. * common/xml-utils.h (xml_escape_text): Change return type to
  6472. std::string.
  6473. * rs6000-aix-tdep.c (rs6000_aix_shared_library_to_xml): Adjust.
  6474. * windows-tdep.c (windows_xfer_shared_library): Adjust.
  6475. * unittests/xml-utils-selftests.c (test_xml_escape_text):
  6476. Adjust.
  6477. 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
  6478. * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new source file.
  6479. (SUBDIR_UNITTESTS_OBS): Add new object file.
  6480. * unittests/xml-utils-selftests.c: New file.
  6481. 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
  6482. * common/selftest.h (selftest): New struct/interface.
  6483. (register_test): Add name parameter, add new overload.
  6484. (run_tests): Add filter parameter.
  6485. (for_each_selftest_ftype): New typedef.
  6486. (for_each_selftest): New declaration.
  6487. * common/selftest.c (tests): Change type to
  6488. map<string, unique_ptr<selftest>>.
  6489. (simple_selftest): New struct.
  6490. (register_test): New function.
  6491. (register_test): Add name parameter and use it.
  6492. (run_tests): Add filter parameter and use it. Add prints.
  6493. Adjust to vector -> map change.
  6494. * aarch64-tdep.c (_initialize_aarch64_tdep): Add names when
  6495. registering selftests.
  6496. * arm-tdep.c (_initialize_arm_tdep): Likewise.
  6497. * disasm-selftests.c (_initialize_disasm_selftests): Likewise.
  6498. * dwarf2-frame.c (_initialize_dwarf2_frame): Likewise.
  6499. * dwarf2loc.c (_initialize_dwarf2loc): Likewise.
  6500. * findvar.c (_initialize_findvar): Likewise.
  6501. * gdbarch-selftests.c (_initialize_gdbarch_selftests): Likewise.
  6502. * maint.c (maintenance_selftest): Update call to run_tests.
  6503. (maintenance_info_selftests): New function.
  6504. (_initialize_maint_cmds): Register "maintenance info selftests"
  6505. command. Update "maintenance selftest" doc.
  6506. * regcache.c (_initialize_regcache): Add names when registering
  6507. selftests.
  6508. * rust-exp.y (_initialize_rust_exp): Likewise.
  6509. * selftest-arch.c (gdbarch_selftest): New struct.
  6510. (gdbarch_tests): Remove.
  6511. (register_test_foreach_arch): Add name parameter. Call
  6512. register_test.
  6513. (tests_with_arch): Remove, move most content to
  6514. gdbarch_selftest::operator().
  6515. (_initialize_selftests_foreach_arch): Remove.
  6516. * selftest-arch.h (register_test_foreach_arch): Add name
  6517. parameter.
  6518. (run_tests_with_arch): New declaration.
  6519. * utils-selftests.c (_initialize_utils_selftests): Add names
  6520. when registering selftests.
  6521. * utils.c (_initialize_utils): Likewise.
  6522. * unittests/array-view-selftests.c
  6523. (_initialize_array_view_selftests): Likewise.
  6524. * unittests/environ-selftests.c (_initialize_environ_selftests):
  6525. Likewise.
  6526. * unittests/function-view-selftests.c
  6527. (_initialize_function_view_selftests): Likewise.
  6528. * unittests/offset-type-selftests.c
  6529. (_initialize_offset_type_selftests): Likewise.
  6530. * unittests/optional-selftests.c
  6531. (_initialize_optional_selftests): Likewise.
  6532. * unittests/scoped_restore-selftests.c
  6533. (_initialize_scoped_restore_selftests): Likewise.
  6534. * NEWS: Document "maintenance selftest" and "maint info
  6535. selftests".
  6536. 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
  6537. * mi/mi-main.c (mi_load_progress): Restore current_uiout using a
  6538. scoped_restore.
  6539. 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
  6540. * mi/mi-main.c (mi_load_progress): Make uiout variable
  6541. a unique_ptr.
  6542. 2017-09-15 Pedro Alves <palves@redhat.com>
  6543. * compile/compile-c-types.c (convert_enum, convert_int)
  6544. (convert_float): Adjust to refer to int_type_v0 and float_type_v0.
  6545. 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
  6546. * dwarf2read.c (copy_string): Remove.
  6547. (parse_macro_definition): Replace copy_string with savestring.
  6548. 2017-09-15 Yao Qi <yao.qi@linaro.org>
  6549. * configure.tgt (i[34567]86-*-darwin*): Append amd64.o to
  6550. gdb_target_obs.
  6551. (i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*):
  6552. Likewise.
  6553. (i[34567]86-*-linux*): Likewise.
  6554. 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
  6555. * dwarf2expr.h (dwarf_stack_value): Add constructor.
  6556. (dwarf_expr_context) <~dwarf_expr_context>: Define as default.
  6557. <stack>: Change type to std::vector.
  6558. <stack_len, stack_allocated>: Remove.
  6559. <grow_stack>: Remove.
  6560. * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
  6561. (dwarf_expr_context::~dwarf_expr_context): Remove.
  6562. (dwarf_expr_context::grow_stack): Remove.
  6563. (dwarf_expr_context::push): Adjust.
  6564. (dwarf_expr_context::pop): Adjust.
  6565. (dwarf_expr_context::fetch): Adjust.
  6566. (dwarf_expr_context::fetch_in_stack_memory): Adjust.
  6567. (dwarf_expr_context::stack_empty_p): Adjust.
  6568. (dwarf_expr_context::execute_stack_op): Adjust.
  6569. 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
  6570. * dwarf2expr.h (dwarf_expr_context) <stack_empty_p>: Change
  6571. return type to bool.
  6572. * dwarf2expr.c (dwarf_expr_context::stack_empty_p): Likewise.
  6573. 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
  6574. * dwarf2expr.h (dwarf_expr_piece) <v.mem.in_stack_memory>:
  6575. Change type to bool.
  6576. (dwarf_stack_value) <in_stack_memory>: Likewise.
  6577. (dwarf_expr_context) <push_address>: Change parameter type to
  6578. bool.
  6579. <fetch_in_stack_memory>: Change return type to bool.
  6580. <push>: Change parameter type to bool.
  6581. * dwarf2expr.c (dwarf_expr_context::push): Change parameter type
  6582. to bool.
  6583. (dwarf_expr_context::push_address): Likewise.
  6584. (dwarf_expr_context::fetch_in_stack_memory): Change return type
  6585. to bool.
  6586. (dwarf_expr_context::execute_stack_op): Adjust.
  6587. * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Adjust.
  6588. 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
  6589. * dwarf2expr.h (struct dwarf_expr_piece): Move up.
  6590. (struct dwarf_expr_context) <n_pieces>: Remove.
  6591. <pieces>: Change type to std::vector.
  6592. * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
  6593. (dwarf_expr_context::~dwarf_expr_context): Don't manually free
  6594. pieces.
  6595. (dwarf_expr_context::add_piece): Adjust.
  6596. * dwarf2loc.c (struct piece_closure): Initialize fields.
  6597. <n_pieces>: Remove.
  6598. <pieces>: Change type to std::vector.
  6599. (allocate_piece_closure): Adjust, change parameter to
  6600. std::vector rvalue and std::move it to piece_closure.
  6601. (rw_pieced_value): Adjust.
  6602. (check_pieced_synthetic_pointer): Adjust.
  6603. (indirect_synthetic_pointer): Adjust.
  6604. (coerce_pieced_ref): Adjust.
  6605. (free_pieced_value_closure): Adjust. Use delete to free
  6606. piece_closure.
  6607. (dwarf2_evaluate_loc_desc_full): Adjust. std::move ctx.pieces
  6608. to allocate_piece_closure.
  6609. (dwarf2_loc_desc_get_symbol_read_needs): Adjust.
  6610. 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
  6611. * probe.h (probe_ops_cp): Remove typedef.
  6612. (DEF_VEC_P (probe_ops_cp)): Remove.
  6613. (all_probe_ops): Change type to std::vector.
  6614. * probe.c (info_probes_for_ops): Adjust to vector change.
  6615. (probe_linespec_to_ops): Likewise.
  6616. (all_probe_ops): Change type to std::vector.
  6617. (_initialize_probe): Adjust to vector change.
  6618. * dtrace-probe.c (_initialize_dtrace_probe): Likewise.
  6619. * elfread.c (elf_get_probes): Likewise.
  6620. * stap-probe.c (_initialize_stap_probe): Likewise.
  6621. 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
  6622. * probe.h (struct bound_probe): Define constructors.
  6623. * probe.c (bound_probe_s): Remove typedef.
  6624. (DEF_VEC_O (bound_probe_s)): Remove VEC.
  6625. (collect_probes): Change return type to std::vector, remove
  6626. cleanup.
  6627. (compare_probes): Return bool, change parameter type. Change
  6628. semantic to "less than".
  6629. (gen_ui_out_table_header_info): Change parameter to std::vector
  6630. and update.
  6631. (exists_probe_with_pops): Likewise.
  6632. (info_probes_for_ops): Update to std::vector change.
  6633. (enable_probes_command): Likewise.
  6634. (disable_probes_command): Likewise.
  6635. 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
  6636. * probe.h (struct probe_ops) <get_probes>: Change parameter from
  6637. vec to std::vector.
  6638. * probe.c (parse_probes_in_pspace): Update.
  6639. (find_probes_in_objfile): Update.
  6640. (find_probe_by_pc): Update.
  6641. (collect_probes): Update.
  6642. (probe_any_get_probes): Update.
  6643. * symfile.h (struct sym_probe_fns) <sym_get_probes> Change
  6644. return type to reference to std::vector.
  6645. * dtrace-probe.c (dtrace_process_dof_probe): Change parameter to
  6646. std::vector and update.
  6647. (dtrace_process_dof): Likewise.
  6648. (dtrace_get_probes): Likewise.
  6649. * elfread.c (elf_get_probes): Change return type to std::vector,
  6650. store an std::vector in bfd_data.
  6651. (probe_key_free): Update to std::vector.
  6652. * stap-probe.c (handle_stap_probe): Change parameter to
  6653. std::vector and update.
  6654. (stap_get_probes): Likewise.
  6655. * symfile-debug.c (debug_sym_get_probes): Change return type to
  6656. std::vector and update.
  6657. 2017-09-11 Tom Tromey <tom@tromey.com>
  6658. * breakpoint.c (program_breakpoint_here_p): Update.
  6659. * target.c (make_scoped_restore_show_memory_breakpoints): Rename
  6660. from make_show_memory_breakpoints_cleanup. Return a
  6661. scoped_restore_tmpl<int>.
  6662. (restore_show_memory_breakpoints): Remove.
  6663. * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Update.
  6664. * mem-break.c (memory_validate_breakpoint): Update.
  6665. * ia64-tdep.c (ia64_memory_insert_breakpoint): Update.
  6666. (ia64_memory_remove_breakpoint): Update.
  6667. (ia64_breakpoint_from_pc): Update.
  6668. * target.h (make_scoped_restore_show_memory_breakpoints): Rename
  6669. from make_show_memory_breakpoints_cleanup.
  6670. 2017-09-11 Tom Tromey <tom@tromey.com>
  6671. * d-namespace.c (d_lookup_symbol): Use std::string.
  6672. (find_symbol_in_baseclass): Likewise.
  6673. 2017-09-11 Tom Tromey <tom@tromey.com>
  6674. * ctf.c (ctf_start): Use std::string.
  6675. 2017-09-11 Tom Tromey <tom@tromey.com>
  6676. * ada-lang.c (is_known_support_routine): Update.
  6677. (ada_unhandled_exception_name_addr_from_raise): Update.
  6678. * guile/scm-frame.c (gdbscm_frame_name): Update.
  6679. * python/py-frame.c (frapy_name): Update.
  6680. (frapy_function): Update.
  6681. * stack.h (find_frame_funname): Update.
  6682. * stack.c (find_frame_funname): Return unique_xmalloc_ptr.
  6683. (print_frame): Update.
  6684. 2017-09-11 Tom Tromey <tom@tromey.com>
  6685. * findcmd.c (put_bits): Take a gdb::byte_vector.
  6686. (parse_find_args): Return gdb::byte_vector. "args" now const.
  6687. Remove "pattern_bufp" and "pattern_lenp" parameters. Remove
  6688. cleanups.
  6689. (find_command): Update.
  6690. 2017-09-11 Tom Tromey <tom@tromey.com>
  6691. * cli/cli-script.c (class scoped_restore_hook_in): New.
  6692. (clear_hook_in_cleanup): Remove.
  6693. (execute_cmd_pre_hook, execute_cmd_post_hook): Use
  6694. scoped_restore_hook_in.
  6695. 2017-09-11 Tom Tromey <tom@tromey.com>
  6696. * cli/cli-script.c (restore_interp): Remove.
  6697. (read_command_lines): Use scoped_restore_interp.
  6698. * interps.c (scoped_restore_interp::set_temp): Rename from
  6699. interp_set_temp.
  6700. * interps.h (class scoped_restore_interp): New.
  6701. (interp_set_temp): Remove.
  6702. 2017-09-11 Tom Tromey <tom@tromey.com>
  6703. * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
  6704. (mi_cmd_catch_exception, mi_catch_load_unload): Update.
  6705. * mi/mi-cmd-break.c (setup_breakpoint_reporting): Return a
  6706. scoped_restore.
  6707. (mi_cmd_break_insert_1): Update.
  6708. * mi/mi-cmd-break.h (setup_breakpoint_reporting): Return a
  6709. scoped_restore.
  6710. 2017-09-11 Tom Tromey <tom@tromey.com>
  6711. * demangle.c (demangle_command): Update.
  6712. * breakpoint.c (disable_command): Update.
  6713. (enable_command): Update.
  6714. (find_location_by_number): Make "number" const. Use
  6715. get_number_trailer.
  6716. * cli/cli-utils.c (extract_arg): Return std::string.
  6717. * probe.c (parse_probe_linespec): Update. Change types.
  6718. (collect_probes): Take string arguments.
  6719. (parse_probe_linespec): Likewise.
  6720. (info_probes_for_ops): Update.
  6721. (enable_probes_command): Update.
  6722. (disable_probes_command): Update.
  6723. * break-catch-sig.c (catch_signal_split_args): Update.
  6724. * mi/mi-parse.c (mi_parse): Update.
  6725. 2017-09-11 Tom Tromey <tom@tromey.com>
  6726. * language.h (language_enum): Make argument const.
  6727. * language.c (language_enum): Make argument const.
  6728. 2017-09-11 Tom Tromey <tom@tromey.com>
  6729. * common/common-utils.h (skip_to_space): Remove macro, redeclare
  6730. as function.
  6731. (skip_to_space): Rename from skip_to_space_const.
  6732. * common/common-utils.c (skip_to_space): New function.
  6733. (skip_to_space): Rename from skip_to_space_const.
  6734. * cli/cli-utils.h (get_number): Rename from get_number_const.
  6735. (extract_arg): Rename from extract_arg_const.
  6736. * cli/cli-utils.c (get_number): Rename from get_number_const.
  6737. (extract_arg): Rename from extract_arg_const.
  6738. (number_or_range_parser::get_number): Use ::get_number.
  6739. * aarch64-linux-tdep.c, ada-lang.c, arm-linux-tdep.c, ax-gdb.c,
  6740. break-catch-throw.c, breakpoint.c, cli/cli-cmds.c, cli/cli-dump.c,
  6741. cli/cli-script.c, cli/cli-setshow.c, compile/compile.c,
  6742. completer.c, demangle.c, disasm.c, findcmd.c, linespec.c,
  6743. linux-tdep.c, linux-thread-db.c, location.c, mi/mi-parse.c,
  6744. minsyms.c, nat/linux-procfs.c, printcmd.c, probe.c,
  6745. python/py-breakpoint.c, record.c, rust-exp.y, serial.c, stack.c,
  6746. stap-probe.c, tid-parse.c, tracepoint.c: Update all callers.
  6747. 2017-09-11 Tom Tromey <tom@tromey.com>
  6748. * python/python.c (do_start_initialization): Use
  6749. py-event-types.def to initialize types.
  6750. Define all object type structures.
  6751. * python/python-internal.h: Don't declare event initialization
  6752. functions.
  6753. * python/py-threadevent.c (thread_event_object_type): Don't
  6754. define.
  6755. * python/py-stopevent.c (stop_event_object_type): Don't define.
  6756. * python/py-signalevent.c (signal_event_object_type): Don't
  6757. declare or define.
  6758. * python/py-newobjfileevent.c (new_objfile_event_object_type)
  6759. (clear_objfiles_event_object_type): Don't declare or define.
  6760. * python/py-infevents.c (inferior_call_pre_event_object_type)
  6761. (inferior_call_post_event_object_type)
  6762. (register_changed_event_object_type)
  6763. (memory_changed_event_object_type): Don't declare or define.
  6764. * python/py-inferior.c (new_thread_event_object_type)
  6765. (new_inferior_event_object_type)
  6766. (inferior_deleted_event_object_type): Don't declare or define.
  6767. * python/py-exitedevent.c (exited_event_object_type): Don't
  6768. declare or define.
  6769. * python/py-evts.c (gdbpy_initialize_py_events): Use
  6770. py-all-events.def.
  6771. * python/py-events.h (thread_event_object_type): Don't declare.
  6772. (events_object): Use py-all-events.def.
  6773. * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove. Use
  6774. py-event-types.def.
  6775. * python/py-event-types.def: New file.
  6776. * python/py-continueevent.c (create_continue_event_object): Don't
  6777. declare or define.
  6778. * python/py-bpevent.c (breakpoint_event_object_type): Don't
  6779. declare or define.
  6780. * python/py-all-events.def: New file.
  6781. 2017-09-11 Tom Tromey <tom@tromey.com>
  6782. * python/py-threadevent.c (create_thread_event_object): Return
  6783. gdbpy_ref.
  6784. * python/py-stopevent.h (create_stop_event_object)
  6785. (create_breakpoint_event_object, create_signal_event_object):
  6786. Update.
  6787. * python/py-stopevent.c (create_stop_event_object): Return
  6788. gdbpy_ref.
  6789. (emit_stop_event): Update.
  6790. * python/py-signalevent.c (create_signal_event_object): Return
  6791. gdbpy_ref.
  6792. * python/py-infevents.c (create_inferior_call_event_object):
  6793. Update.
  6794. * python/py-event.h (create_event_object)
  6795. (create_thread_event_object): Update.
  6796. * python/py-event.c (create_event_object): Return gdbpy_ref.
  6797. * python/py-continueevent.c: Return gdbpy_ref.
  6798. * python/py-bpevent.c (create_breakpoint_event_object): Return
  6799. gdbpy_ref.
  6800. 2017-09-11 Tom Tromey <tom@tromey.com>
  6801. PR python/15622:
  6802. * NEWS: Add entry.
  6803. * python/python.c (do_start_initialization): Initialize new event
  6804. types.
  6805. * python/python-internal.h (gdbpy_initialize_new_inferior_event)
  6806. (gdbpy_initialize_inferior_deleted_event)
  6807. (gdbpy_initialize_new_thread_event): Declare.
  6808. * python/py-threadevent.c (create_thread_event_object): Add option
  6809. "thread" parameter.
  6810. * python/py-inferior.c (new_thread_event_object_type)
  6811. (new_inferior_event_object_type)
  6812. (inferior_deleted_event_object_type): Declare.
  6813. (python_new_inferior, python_inferior_deleted): New functions.
  6814. (add_thread_object): Emit new_thread event.
  6815. (gdbpy_initialize_inferior): Attach new functions to corresponding
  6816. observers.
  6817. (new_thread, new_inferior, inferior_deleted): Define new event
  6818. types.
  6819. * python/py-evts.c (gdbpy_initialize_py_events): Add new
  6820. registries.
  6821. * python/py-events.h (events_object) <new_inferior,
  6822. inferior_deleted, new_thread>: New fields.
  6823. * python/py-event.h (create_thread_event_breakpoint): Add optional
  6824. "thread" parameter.
  6825. 2017-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
  6826. * utils.c (abort_with_message): Don't compare gdb_stderr to NULL,
  6827. check current_ui instead.
  6828. (internal_vproblem): Likewise.
  6829. 2017-09-09 Simon Marchi <simon.marchi@ericsson.com>
  6830. * thread.c (print_thread_info_1): Remove unnecessary calls to
  6831. uiout->is_mi_like_p.
  6832. 2017-09-09 Tom Tromey <tom@tromey.com>
  6833. * namespace.h (add_using_directive): Update.
  6834. * namespace.c (add_using_directive): Change type of excludes to
  6835. std::vector.
  6836. * dwarf2read.c (read_import_statement): Use std::vector.
  6837. (read_namespace): Update.
  6838. * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
  6839. 2017-09-09 Tom Tromey <tom@tromey.com>
  6840. * linespec.c (create_sals_line_offset): Use gdb::def_vector.
  6841. 2017-09-09 Tom Tromey <tom@tromey.com>
  6842. * p-valprint.c (pascal_object_print_value): Use gdb::byte_vector.
  6843. 2017-09-09 Tom Tromey <tom@tromey.com>
  6844. * stack.c (func_command): Use gdb::def_vector.
  6845. 2017-09-09 Tom Tromey <tom@tromey.com>
  6846. * mi/mi-cmd-var.c (mi_cmd_var_list_children): Use gdb::optional,
  6847. ui_out_emit_list, ui_out_emit_tuple.
  6848. (mi_cmd_var_update): Likewise.
  6849. 2017-09-09 Tom Tromey <tom@tromey.com>
  6850. * mi/mi-interp.c (mi_user_selected_context_changed): Use
  6851. ui_out_redirect_pop.
  6852. * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
  6853. ui_out_redirect_pop.
  6854. * utils.c (do_ui_out_redirect_pop)
  6855. (make_cleanup_ui_out_redirect_pop): Remove.
  6856. * top.c (execute_command_to_string): Use ui_out_redirect_pop.
  6857. * utils.h (make_cleanup_ui_out_redirect_pop): Remove.
  6858. * ui-out.h (ui_out_redirect_pop): New class.
  6859. 2017-09-09 Tom Tromey <tom@tromey.com>
  6860. * mi/mi-main.c (output_cores): Use ui_out_emit_list.
  6861. (list_available_thread_groups, mi_cmd_list_thread_groups)
  6862. (mi_cmd_data_list_changed_registers, mi_cmd_data_read_memory)
  6863. (mi_cmd_data_read_memory_bytes, mi_cmd_trace_frame_collected):
  6864. Likewise.
  6865. 2017-09-09 Tom Tromey <tom@tromey.com>
  6866. * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
  6867. ui_out_emit_tuple.
  6868. 2017-09-09 Tom Tromey <tom@tromey.com>
  6869. * target.c (flash_erase_command): Use ui_out_emit_tuple.
  6870. * stack.c (print_frame): Use ui_out_emit_tuple.
  6871. * spu-tdep.c (info_spu_event_command): Use ui_out_emit_tuple.
  6872. (info_spu_mailbox_command, info_spu_dma_command)
  6873. (info_spu_proxydma_command): Likewise.
  6874. * mi/mi-main.c (mi_cmd_trace_frame_collected): Use
  6875. ui_out_emit_tuple, gdb::byte_vector, bin2hex.
  6876. * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
  6877. ui_out_emit_tuple.
  6878. * breakpoint.c (print_it_watchpoint): Use ui_out_emit_tuple.
  6879. 2017-09-09 Tom Tromey <tom@tromey.com>
  6880. * ui-out.h (make_cleanup_ui_out_table_begin_end): Remove.
  6881. (class ui_out_emit_table): Update comment.
  6882. * ui-out.c (do_cleanup_table_end)
  6883. (make_cleanup_ui_out_table_begin_end): Remove.
  6884. * spu-tdep.c (info_spu_mailbox_list): Use ui_out_emit_table.
  6885. (info_spu_dma_cmdlist): Likewise.
  6886. * probe.c (info_probes_for_ops): Use ui_out_emit_table.
  6887. * darwin-nat-info.c (darwin_debug_regions_recurse): Use
  6888. ui_out_emit_table.
  6889. 2017-09-09 Tom Tromey <tom@tromey.com>
  6890. * thread.c (print_thread_info_1): Use ui_out_emit_table,
  6891. ui_out_emit_list, gdb::optional.
  6892. 2017-09-09 John Baldwin <jhb@FreeBSD.org>
  6893. * aarch64-linux-nat.c: Remove _initialize_aarch64_linux_nat
  6894. prototype.
  6895. * aarch64-linux-tdep.c: Remove _initialize_aarch64_linux_tdep
  6896. prototype.
  6897. * aarch64-newlib-tdep.c: Remove _initialize_aarch64_newlib_tdep
  6898. prototype.
  6899. * aarch64-tdep.c: Remove _initialize_aarch64_tdep prototype.
  6900. * ada-exp.y: Remove _initialize_ada_exp prototype.
  6901. * ada-lang.c: Remove _initialize_ada_language prototype.
  6902. * ada-tasks.c: Remove _initialize_tasks prototype.
  6903. * addrmap.c: Remove _initialize_addrmap prototype.
  6904. * agent.c: Remove _initialize_agent prototype.
  6905. * aix-thread.c: Remove _initialize_aix_thread prototype.
  6906. * alpha-bsd-nat.c: Remove _initialize_alphabsd_nat prototype.
  6907. * alpha-linux-nat.c: Remove _initialize_alpha_linux_nat prototype.
  6908. * alpha-linux-tdep.c: Remove _initialize_alpha_linux_tdep
  6909. prototype.
  6910. * alpha-nbsd-tdep.c: Remove _initialize_alphanbsd_tdep prototype.
  6911. * alpha-obsd-tdep.c: Remove _initialize_alphaobsd_tdep prototype.
  6912. * alpha-tdep.c: Remove _initialize_alpha_tdep prototype.
  6913. * amd64-darwin-tdep.c: Remove _initialize_amd64_darwin_tdep
  6914. prototype.
  6915. * amd64-dicos-tdep.c: Remove _initialize_amd64_dicos_tdep
  6916. prototype.
  6917. * amd64-fbsd-nat.c: Remove _initialize_amd64fbsd_nat prototype.
  6918. * amd64-fbsd-tdep.c: Remove _initialize_amd64fbsd_tdep prototype.
  6919. * amd64-linux-nat.c: Remove _initialize_amd64_linux_nat prototype.
  6920. * amd64-linux-tdep.c: Remove _initialize_amd64_linux_tdep
  6921. prototype.
  6922. * amd64-nbsd-nat.c: Remove _initialize_amd64nbsd_nat prototype.
  6923. * amd64-nbsd-tdep.c: Remove _initialize_amd64nbsd_tdep prototype.
  6924. * amd64-obsd-nat.c: Remove _initialize_amd64obsd_nat prototype.
  6925. * amd64-obsd-tdep.c: Remove _initialize_amd64obsd_tdep prototype.
  6926. * amd64-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
  6927. * amd64-tdep.c: Remove _initialize_amd64_tdep prototype.
  6928. * amd64-windows-nat.c: Remove _initialize_amd64_windows_nat
  6929. prototype.
  6930. * amd64-windows-tdep.c: Remove _initialize_amd64_windows_tdep
  6931. prototype.
  6932. * annotate.c: Remove _initialize_annotate prototype.
  6933. * arc-newlib-tdep.c: Remove _initialize_arc_newlib_tdep prototype.
  6934. * arc-tdep.c: Remove _initialize_arc_tdep prototype.
  6935. * arch-utils.c: Remove _initialize_gdbarch_utils prototype.
  6936. * arm-linux-nat.c: Remove _initialize_arm_linux_nat prototype.
  6937. * arm-linux-tdep.c: Remove _initialize_arm_linux_tdep prototype.
  6938. * arm-nbsd-tdep.c: Remove _initialize_arm_netbsd_tdep prototype.
  6939. * arm-obsd-tdep.c: Remove _initialize_armobsd_tdep prototype.
  6940. * arm-symbian-tdep.c: Remove _initialize_arm_symbian_tdep
  6941. prototype.
  6942. * arm-tdep.c: Remove _initialize_arm_tdep prototype.
  6943. * arm-wince-tdep.c: Remove _initialize_arm_wince_tdep prototype.
  6944. * auto-load.c: Remove _initialize_auto_load prototype.
  6945. * auxv.c: Remove _initialize_auxv prototype.
  6946. * avr-tdep.c: Remove _initialize_avr_tdep prototype.
  6947. * ax-gdb.c: Remove _initialize_ax_gdb prototype.
  6948. * bfin-linux-tdep.c: Remove _initialize_bfin_linux_tdep prototype.
  6949. * bfin-tdep.c: Remove _initialize_bfin_tdep prototype.
  6950. * break-catch-sig.c: Remove _initialize_break_catch_sig prototype.
  6951. * break-catch-syscall.c: Remove _initialize_break_catch_syscall
  6952. prototype.
  6953. * break-catch-throw.c: Remove _initialize_break_catch_throw
  6954. prototype.
  6955. * breakpoint.c: Remove _initialize_breakpoint prototype.
  6956. * bsd-uthread.c: Remove _initialize_bsd_uthread prototype.
  6957. * btrace.c: Remove _initialize_btrace prototype.
  6958. * charset.c: Remove _initialize_charset prototype.
  6959. * cli/cli-cmds.c: Remove _initialize_cli_cmds prototype.
  6960. * cli/cli-dump.c: Remove _initialize_cli_dump prototype.
  6961. * cli/cli-interp.c: Remove _initialize_cli_interp prototype.
  6962. * cli/cli-logging.c: Remove _initialize_cli_logging prototype.
  6963. * cli/cli-script.c: Remove _initialize_cli_script prototype.
  6964. * coff-pe-read.c: Remove _initialize_coff_pe_read prototype.
  6965. * coffread.c: Remove _initialize_coffread prototype.
  6966. * compile/compile.c: Remove _initialize_compile prototype.
  6967. * complaints.c: Remove _initialize_complaints prototype.
  6968. * completer.c: Remove _initialize_completer prototype.
  6969. * copying.awk: Remove _initialize_copying prototype.
  6970. * copying.c: Regenerate.
  6971. * core-regset.c: Remove _initialize_core_regset prototype.
  6972. * corefile.c: Remove _initialize_core prototype.
  6973. * corelow.c: Remove _initialize_corelow prototype.
  6974. * cp-abi.c: Remove _initialize_cp_abi prototype.
  6975. * cp-namespace.c: Remove _initialize_cp_namespace prototype.
  6976. * cp-support.c: Remove _initialize_cp_support prototype.
  6977. * cp-valprint.c: Remove _initialize_cp_valprint prototype.
  6978. * cris-linux-tdep.c: Remove _initialize_cris_linux_tdep prototype.
  6979. * cris-tdep.c: Remove _initialize_cris_tdep prototype.
  6980. * ctf.c: Remove _initialize_ctf prototype.
  6981. * d-lang.c: Remove _initialize_d_language prototype.
  6982. * darwin-nat-info.c: Remove _initialize_darwin_info_commands
  6983. prototype.
  6984. * darwin-nat.c: Remove _initialize_darwin_inferior prototype.
  6985. * dbxread.c: Remove _initialize_dbxread prototype.
  6986. * dcache.c: Remove _initialize_dcache prototype.
  6987. * demangle.c: Remove _initialize_demangler prototype.
  6988. * disasm-selftests.c: Remove _initialize_disasm_selftests
  6989. prototype.
  6990. * disasm.c: Remove _initialize_disasm prototype.
  6991. * dtrace-probe.c: Remove _initialize_dtrace_probe prototype.
  6992. * dummy-frame.c: Remove _initialize_dummy_frame prototype.
  6993. * dwarf2-frame-tailcall.c: Remove _initialize_tailcall_frame
  6994. prototype.
  6995. * dwarf2-frame.c: Remove _initialize_dwarf2_frame prototype.
  6996. * dwarf2expr.c: Remove _initialize_dwarf2expr prototype.
  6997. * dwarf2loc.c: Remove _initialize_dwarf2loc prototype.
  6998. * dwarf2read.c: Remove _initialize_dwarf2_read prototype.
  6999. * elfread.c: Remove _initialize_elfread prototype.
  7000. * exec.c: Remove _initialize_exec prototype.
  7001. * extension.c: Remove _initialize_extension prototype.
  7002. * f-lang.c: Remove _initialize_f_language prototype.
  7003. * f-valprint.c: Remove _initialize_f_valprint prototype.
  7004. * fbsd-nat.c: Remove _initialize_fbsd_nat prototype.
  7005. * fbsd-tdep.c: Remove _initialize_fbsd_tdep prototype.
  7006. * filesystem.c: Remove _initialize_filesystem prototype.
  7007. * findcmd.c: Remove _initialize_mem_search prototype.
  7008. * fork-child.c: Remove _initialize_fork_child prototype.
  7009. * frame-base.c: Remove _initialize_frame_base prototype.
  7010. * frame-unwind.c: Remove _initialize_frame_unwind prototype.
  7011. * frame.c: Remove _initialize_frame prototype.
  7012. * frv-linux-tdep.c: Remove _initialize_frv_linux_tdep prototype.
  7013. * frv-tdep.c: Remove _initialize_frv_tdep prototype.
  7014. * ft32-tdep.c: Remove _initialize_ft32_tdep prototype.
  7015. * gcore.c: Remove _initialize_gcore prototype.
  7016. * gdb_bfd.c: Remove _initialize_gdb_bfd prototype.
  7017. * gdbarch.c: Regenerate.
  7018. * gdbarch.sh: Remove _initialize_gdbarch prototype.
  7019. * gdbtypes.c: Remove _initialize_gdbtypes prototype.
  7020. * gnu-nat.c: Remove _initialize_gnu_nat prototype.
  7021. * gnu-v2-abi.c: Remove _initialize_gnu_v2_abi prototype.
  7022. * gnu-v3-abi.c: Remove _initialize_gnu_v3_abi prototype.
  7023. * go-lang.c: Remove _initialize_go_language prototype.
  7024. * go32-nat.c: Remove _initialize_go32_nat prototype.
  7025. * guile/guile.c: Remove _initialize_guile prototype.
  7026. * h8300-tdep.c: Remove _initialize_h8300_tdep prototype.
  7027. * hppa-linux-nat.c: Remove _initialize_hppa_linux_nat prototype.
  7028. * hppa-linux-tdep.c: Remove _initialize_hppa_linux_tdep prototype.
  7029. * hppa-nbsd-nat.c: Remove _initialize_hppanbsd_nat prototype.
  7030. * hppa-nbsd-tdep.c: Remove _initialize_hppanbsd_tdep prototype.
  7031. * hppa-obsd-nat.c: Remove _initialize_hppaobsd_nat prototype.
  7032. * hppa-obsd-tdep.c: Remove _initialize_hppaobsd_tdep prototype.
  7033. * hppa-tdep.c: Remove _initialize_hppa_tdep prototype.
  7034. * i386-bsd-nat.c: Remove _initialize_i386bsd_nat prototype.
  7035. * i386-cygwin-tdep.c: Remove _initialize_i386_cygwin_tdep
  7036. prototype.
  7037. * i386-darwin-tdep.c: Remove _initialize_i386_darwin_tdep
  7038. prototype.
  7039. * i386-dicos-tdep.c: Remove _initialize_i386_dicos_tdep prototype.
  7040. * i386-fbsd-nat.c: Remove _initialize_i386fbsd_nat prototype.
  7041. * i386-fbsd-tdep.c: Remove _initialize_i386fbsd_tdep prototype.
  7042. * i386-gnu-nat.c: Remove _initialize_i386gnu_nat prototype.
  7043. * i386-gnu-tdep.c: Remove _initialize_i386gnu_tdep prototype.
  7044. * i386-linux-nat.c: Remove _initialize_i386_linux_nat prototype.
  7045. * i386-linux-tdep.c: Remove _initialize_i386_linux_tdep prototype.
  7046. * i386-nbsd-nat.c: Remove _initialize_i386nbsd_nat prototype.
  7047. * i386-nbsd-tdep.c: Remove _initialize_i386nbsd_tdep prototype.
  7048. * i386-nto-tdep.c: Remove _initialize_i386nto_tdep prototype.
  7049. * i386-obsd-nat.c: Remove _initialize_i386obsd_nat prototype.
  7050. * i386-obsd-tdep.c: Remove _initialize_i386obsd_tdep prototype.
  7051. * i386-sol2-nat.c: Remove _initialize_amd64_sol2_nat prototype.
  7052. * i386-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
  7053. * i386-tdep.c: Remove _initialize_i386_tdep prototype.
  7054. * i386-windows-nat.c: Remove _initialize_i386_windows_nat
  7055. prototype.
  7056. * ia64-libunwind-tdep.c: Remove _initialize_libunwind_frame
  7057. prototype.
  7058. * ia64-linux-nat.c: Remove _initialize_ia64_linux_nat prototype.
  7059. * ia64-linux-tdep.c: Remove _initialize_ia64_linux_tdep prototype.
  7060. * ia64-tdep.c: Remove _initialize_ia64_tdep prototype.
  7061. * ia64-vms-tdep.c: Remove _initialize_ia64_vms_tdep prototype.
  7062. * infcall.c: Remove _initialize_infcall prototype.
  7063. * infcmd.c: Remove _initialize_infcmd prototype.
  7064. * inferior.c: Remove _initialize_inferiors prototype.
  7065. * inflow.c: Remove _initialize_inflow prototype.
  7066. * infrun.c: Remove _initialize_infrun prototype.
  7067. * interps.c: Remove _initialize_interpreter prototype.
  7068. * iq2000-tdep.c: Remove _initialize_iq2000_tdep prototype.
  7069. * jit.c: Remove _initialize_jit prototype.
  7070. * language.c: Remove _initialize_language prototype.
  7071. * linux-fork.c: Remove _initialize_linux_fork prototype.
  7072. * linux-nat.c: Remove _initialize_linux_nat prototype.
  7073. * linux-tdep.c: Remove _initialize_linux_tdep prototype.
  7074. * linux-thread-db.c: Remove _initialize_thread_db prototype.
  7075. * lm32-tdep.c: Remove _initialize_lm32_tdep prototype.
  7076. * m2-lang.c: Remove _initialize_m2_language prototype.
  7077. * m32c-tdep.c: Remove _initialize_m32c_tdep prototype.
  7078. * m32r-linux-nat.c: Remove _initialize_m32r_linux_nat prototype.
  7079. * m32r-linux-tdep.c: Remove _initialize_m32r_linux_tdep prototype.
  7080. * m32r-tdep.c: Remove _initialize_m32r_tdep prototype.
  7081. * m68hc11-tdep.c: Remove _initialize_m68hc11_tdep prototype.
  7082. * m68k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
  7083. * m68k-bsd-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
  7084. * m68k-linux-nat.c: Remove _initialize_m68k_linux_tdep prototype.
  7085. * m68k-linux-tdep.c: Remove _initialize_m68k_linux_tdep prototype.
  7086. * m68k-tdep.c: Remove _initialize_m68k_tdep prototype.
  7087. * m88k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
  7088. * m88k-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
  7089. * machoread.c: Remove _initialize_machoread prototype.
  7090. * macrocmd.c: Remove _initialize_macrocmd prototype.
  7091. * macroscope.c: Remove _initialize_macroscope prototype.
  7092. * maint.c: Remove _initialize_maint_cmds prototype.
  7093. * mdebugread.c: Remove _initialize_mdebugread prototype.
  7094. * memattr.c: Remove _initialize_mem prototype.
  7095. * mep-tdep.c: Remove _initialize_mep_tdep prototype.
  7096. * mi/mi-cmd-env.c: Remove _initialize_mi_cmd_env prototype.
  7097. * mi/mi-cmds.c: Remove _initialize_mi_cmds prototype.
  7098. * mi/mi-interp.c: Remove _initialize_mi_interp prototype.
  7099. * mi/mi-main.c: Remove _initialize_mi_main prototype.
  7100. * microblaze-linux-tdep.c: Remove
  7101. _initialize_microblaze_linux_tdep prototype.
  7102. * microblaze-tdep.c: Remove _initialize_microblaze_tdep prototype.
  7103. * mips-fbsd-nat.c: Remove _initialize_mips_fbsd_nat prototype.
  7104. * mips-fbsd-tdep.c: Remove _initialize_mips_fbsd_tdep prototype.
  7105. * mips-linux-nat.c: Remove _initialize_mips_linux_nat prototype.
  7106. * mips-linux-tdep.c: Remove _initialize_mips_linux_tdep prototype.
  7107. * mips-nbsd-nat.c: Remove _initialize_mipsnbsd_nat prototype.
  7108. * mips-nbsd-tdep.c: Remove _initialize_mipsnbsd_tdep prototype.
  7109. * mips-sde-tdep.c: Remove _initialize_mips_sde_tdep prototype.
  7110. * mips-tdep.c: Remove _initialize_mips_tdep prototype.
  7111. * mips64-obsd-nat.c: Remove _initialize_mips64obsd_nat prototype.
  7112. * mips64-obsd-tdep.c: Remove _initialize_mips64obsd_tdep
  7113. prototype.
  7114. * mipsread.c: Remove _initialize_mipsread prototype.
  7115. * mn10300-linux-tdep.c: Remove _initialize_mn10300_linux_tdep
  7116. prototype.
  7117. * mn10300-tdep.c: Remove _initialize_mn10300_tdep prototype.
  7118. * moxie-tdep.c: Remove _initialize_moxie_tdep prototype.
  7119. * msp430-tdep.c: Remove _initialize_msp430_tdep prototype.
  7120. * mt-tdep.c: Remove _initialize_mt_tdep prototype.
  7121. * nds32-tdep.c: Remove _initialize_nds32_tdep prototype.
  7122. * nios2-linux-tdep.c: Remove _initialize_nios2_linux_tdep
  7123. prototype.
  7124. * nios2-tdep.c: Remove _initialize_nios2_tdep prototype.
  7125. * nto-procfs.c: Remove _initialize_procfs prototype.
  7126. * nto-tdep.c: Remove _initialize_nto_tdep prototype.
  7127. * objc-lang.c: Remove _initialize_objc_language prototype.
  7128. * objfiles.c: Remove _initialize_objfiles prototype.
  7129. * observer.c: Remove observer_test_first_notification_function,
  7130. observer_test_second_notification_function,
  7131. observer_test_third_notification_function, and
  7132. _initialize_observer prototypes.
  7133. * opencl-lang.c: Remove _initialize_opencl_language prototypes.
  7134. * osabi.c: Remove _initialize_gdb_osabi prototype.
  7135. * osdata.c: Remove _initialize_osdata prototype.
  7136. * p-valprint.c: Remove _initialize_pascal_valprint prototype.
  7137. * parse.c: Remove _initialize_parse prototype.
  7138. * ppc-fbsd-nat.c: Remove _initialize_ppcfbsd_nat prototype.
  7139. * ppc-fbsd-tdep.c: Remove _initialize_ppcfbsd_tdep prototype.
  7140. * ppc-linux-nat.c: Remove _initialize_ppc_linux_nat prototype.
  7141. * ppc-linux-tdep.c: Remove _initialize_ppc_linux_tdep prototype.
  7142. * ppc-nbsd-nat.c: Remove _initialize_ppcnbsd_nat prototype.
  7143. * ppc-nbsd-tdep.c: Remove _initialize_ppcnbsd_tdep prototype.
  7144. * ppc-obsd-nat.c: Remove _initialize_ppcobsd_nat prototype.
  7145. * ppc-obsd-tdep.c: Remove _initialize_ppcobsd_tdep prototype.
  7146. * printcmd.c: Remove _initialize_printcmd prototype.
  7147. * probe.c: Remove _initialize_probe prototype.
  7148. * proc-api.c: Remove _initialize_proc_api prototype.
  7149. * proc-events.c: Remove _initialize_proc_events prototype.
  7150. * proc-service.c: Remove _initialize_proc_service prototype.
  7151. * procfs.c: Remove _initialize_procfs prototype.
  7152. * psymtab.c: Remove _initialize_psymtab prototype.
  7153. * python/python.c: Remove _initialize_python prototype.
  7154. * ravenscar-thread.c: Remove _initialize_ravenscar prototype.
  7155. * record-btrace.c: Remove _initialize_record_btrace prototype.
  7156. * record-full.c: Remove _initialize_record_full prototype.
  7157. * record.c: Remove _initialize_record prototype.
  7158. * regcache.c: Remove _initialize_regcache prototype.
  7159. * reggroups.c: Remove _initialize_reggroup prototype.
  7160. * remote-notif.c: Remove _initialize_notif prototype.
  7161. * remote-sim.c: Remove _initialize_remote_sim prototype.
  7162. * remote.c: Remove _initialize_remote prototype.
  7163. * reverse.c: Remove _initialize_reverse prototype.
  7164. * rl78-tdep.c: Remove _initialize_rl78_tdep prototype.
  7165. * rs6000-aix-tdep.c: Remove _initialize_rs6000_aix_tdep prototype.
  7166. * rs6000-lynx178-tdep.c: Remove _initialize_rs6000_lynx178_tdep
  7167. prototype.
  7168. * rs6000-nat.c: Remove _initialize_rs6000_nat prototype.
  7169. * rs6000-tdep.c: Remove _initialize_rs6000_tdep prototype.
  7170. * rust-exp.y: Remove _initialize_rust_exp prototype.
  7171. * rx-tdep.c: Remove _initialize_rx_tdep prototype.
  7172. * s390-linux-nat.c: Remove _initialize_s390_nat prototype.
  7173. * s390-linux-tdep.c: Remove _initialize_s390_tdep prototype.
  7174. * score-tdep.c: Remove _initialize_score_tdep prototype.
  7175. * selftest-arch.c: Remove _initialize_selftests_foreach_arch
  7176. prototype.
  7177. * ser-go32.c: Remove _initialize_ser_dos prototype.
  7178. * ser-mingw.c: Remove _initialize_ser_windows prototype.
  7179. * ser-pipe.c: Remove _initialize_ser_pipe prototype.
  7180. * ser-tcp.c: Remove _initialize_ser_tcp prototype.
  7181. * ser-unix.c: Remove _initialize_ser_hardwire prototype.
  7182. * serial.c: Remove _initialize_serial prototype.
  7183. * sh-linux-tdep.c: Remove _initialize_sh_linux_tdep prototype.
  7184. * sh-nbsd-nat.c: Remove _initialize_shnbsd_nat prototype.
  7185. * sh-nbsd-tdep.c: Remove _initialize_shnbsd_tdep prototype.
  7186. * sh-tdep.c: Remove _initialize_sh_tdep prototype.
  7187. * skip.c: Remove _initialize_step_skip prototype.
  7188. * sol-thread.c: Remove _initialize_sol_thread prototype.
  7189. * solib-aix.c: Remove _initialize_solib_aix prototype.
  7190. * solib-darwin.c: Remove _initialize_darwin_solib prototype.
  7191. * solib-dsbt.c: Remove _initialize_dsbt_solib prototype.
  7192. * solib-frv.c: Remove _initialize_frv_solib prototype.
  7193. * solib-spu.c: Remove _initialize_spu_solib prototype.
  7194. * solib-svr4.c: Remove _initialize_svr4_solib prototype.
  7195. * solib-target.c: Remove _initialize_solib_target prototype.
  7196. * solib.c: Remove _initialize_solib prototype.
  7197. * source.c: Remove _initialize_source prototype.
  7198. * sparc-linux-nat.c: Remove _initialize_sparc_linux_nat prototype.
  7199. * sparc-linux-tdep.c: Remove _initialize_sparc_linux_tdep
  7200. prototype.
  7201. * sparc-nat.c: Remove _initialize_sparc_nat prototype.
  7202. * sparc-nbsd-nat.c: Remove _initialize_sparcnbsd_nat prototype.
  7203. * sparc-nbsd-tdep.c: Remove _initialize_sparcnbsd_tdep prototype.
  7204. * sparc-obsd-tdep.c: Remove _initialize_sparc32obsd_tdep
  7205. prototype.
  7206. * sparc-sol2-nat.c: Remove _initialize_sparc_sol2_nat prototype.
  7207. * sparc-sol2-tdep.c: Remove _initialize_sparc_sol2_tdep prototype.
  7208. * sparc-tdep.c: Remove _initialize_sparc_tdep prototype.
  7209. * sparc64-fbsd-nat.c: Remove _initialize_sparc64fbsd_nat
  7210. prototype.
  7211. * sparc64-fbsd-tdep.c: Remove _initialize_sparc64fbsd_tdep
  7212. prototype.
  7213. * sparc64-linux-nat.c: Remove _initialize_sparc64_linux_nat
  7214. prototype.
  7215. * sparc64-linux-tdep.c: Remove _initialize_sparc64_linux_tdep
  7216. prototype.
  7217. * sparc64-nat.c: Remove _initialize_sparc64_nat prototype.
  7218. * sparc64-nbsd-nat.c: Remove _initialize_sparc64nbsd_nat
  7219. prototype.
  7220. * sparc64-nbsd-tdep.c: Remove _initialize_sparc64nbsd_tdep
  7221. prototype.
  7222. * sparc64-obsd-nat.c: Remove _initialize_sparc64obsd_nat
  7223. prototype.
  7224. * sparc64-obsd-tdep.c: Remove _initialize_sparc64obsd_tdep
  7225. prototype.
  7226. * sparc64-sol2-tdep.c: Remove _initialize_sparc64_sol2_tdep
  7227. prototype.
  7228. * spu-linux-nat.c: Remove _initialize_spu_nat prototype.
  7229. * spu-multiarch.c: Remove _initialize_spu_multiarch prototype.
  7230. * spu-tdep.c: Remove _initialize_spu_tdep prototype.
  7231. * stabsread.c: Remove _initialize_stabsread prototype.
  7232. * stack.c: Remove _initialize_stack prototype.
  7233. * stap-probe.c: Remove _initialize_stap_probe prototype.
  7234. * std-regs.c: Remove _initialize_frame_reg prototype.
  7235. * symfile-debug.c: Remove _initialize_symfile_debug prototype.
  7236. * symfile-mem.c: Remove _initialize_symfile_mem prototype.
  7237. * symfile.c: Remove _initialize_symfile prototype.
  7238. * symmisc.c: Remove _initialize_symmisc prototype.
  7239. * symtab.c: Remove _initialize_symtab prototype.
  7240. * target-dcache.c: Remove _initialize_target_dcache prototype.
  7241. * target-descriptions.c: Remove _initialize_target_descriptions
  7242. prototype.
  7243. * thread.c: Remove _initialize_thread prototype.
  7244. * tic6x-linux-tdep.c: Remove _initialize_tic6x_linux_tdep
  7245. prototype.
  7246. * tic6x-tdep.c: Remove _initialize_tic6x_tdep prototype.
  7247. * tilegx-linux-nat.c: Remove _initialize_tile_linux_nat prototype.
  7248. * tilegx-linux-tdep.c: Remove _initialize_tilegx_linux_tdep
  7249. prototype.
  7250. * tilegx-tdep.c: Remove _initialize_tilegx_tdep prototype.
  7251. * tracefile-tfile.c: Remove _initialize_tracefile_tfile prototype.
  7252. * tracefile.c: Remove _initialize_tracefile prototype.
  7253. * tracepoint.c: Remove _initialize_tracepoint prototype.
  7254. * tui/tui-hooks.c: Remove _initialize_tui_hooks prototype.
  7255. * tui/tui-interp.c: Remove _initialize_tui_interp prototype.
  7256. * tui/tui-layout.c: Remove _initialize_tui_layout prototype.
  7257. * tui/tui-regs.c: Remove _initialize_tui_regs prototype.
  7258. * tui/tui-stack.c: Remove _initialize_tui_stack prototype.
  7259. * tui/tui-win.c: Remove _initialize_tui_win prototype.
  7260. * tui/tui.c: Remove _initialize_tui prototype.
  7261. * typeprint.c: Remove _initialize_typeprint prototype.
  7262. * user-regs.c: Remove _initialize_user_regs prototype.
  7263. * utils.c: Remove _initialize_utils prototype.
  7264. * v850-tdep.c: Remove _initialize_v850_tdep prototype.
  7265. * valarith.c: Remove _initialize_valarith prototype.
  7266. * valops.c: Remove _initialize_valops prototype.
  7267. * valprint.c: Remove _initialize_valprint prototype.
  7268. * value.c: Remove _initialize_values prototype.
  7269. * varobj.c: Remove _initialize_varobj prototype.
  7270. * vax-bsd-nat.c: Remove _initialize_vaxbsd_nat prototype.
  7271. * vax-nbsd-tdep.c: Remove _initialize_vaxnbsd_tdep prototype.
  7272. * vax-tdep.c: Remove _initialize_vax_tdep prototype.
  7273. * windows-nat.c: Remove _initialize_windows_nat,
  7274. _initialize_check_for_gdb_ini, and _initialize_loadable
  7275. prototypes.
  7276. * windows-tdep.c: Remove _initialize_windows_tdep prototype.
  7277. * xcoffread.c: Remove _initialize_xcoffread prototype.
  7278. * xml-support.c: Remove _initialize_xml_support prototype.
  7279. * xstormy16-tdep.c: Remove _initialize_xstormy16_tdep prototype.
  7280. * xtensa-linux-nat.c: Remove _initialize_xtensa_linux_nat
  7281. prototype.
  7282. * xtensa-linux-tdep.c: Remove _initialize_xtensa_linux_tdep
  7283. prototype.
  7284. * xtensa-tdep.c: Remove _initialize_xtensa_tdep prototype.
  7285. 2017-09-08 Keith Seitz <keiths@redhat.com>
  7286. * dwarf2read.c (struct field_info) <fnfields>: Remove unused
  7287. field.
  7288. 2017-09-08 Christoph Weinmann <christoph.t.weinmann@intel.com>
  7289. * f-valprint.c (f_val_print): Remove check for one byte
  7290. sized integers. Remove printing of character type.
  7291. 2017-09-08 Frank Penczek <frank.penczek@intel.com>
  7292. Christoph Weinmann <christoph.t.weinmann@intel.com>
  7293. Bernhard Heckel <bernhard.heckel@intel.com>
  7294. * f-typeprint.c (f_type_print_base): Use fprintfi_filtered
  7295. to maintain proper indentation when printing pointers/refs.
  7296. 2017-09-07 Joel Brobecker <brobecker@adacore.com>
  7297. GDB 8.0.1 released.
  7298. 2017-09-07 Joel Brobecker <brobecker@adacore.com>
  7299. * NEWS (Changes in GDB 7.11): Remove entry for QStartupWithShell.
  7300. 2017-09-05 Tom Tromey <tom@tromey.com>
  7301. * parse.c (funcall_chain): Now a std::vector.
  7302. (start_arglist, end_arglist): Simplify.
  7303. (free_funcalls): Remove.
  7304. (parse_exp_in_context_1): Remove cleanup.
  7305. 2017-09-05 Tom Tromey <tom@tromey.com>
  7306. * go-exp.y (go_parse): Don't create a cleanup.
  7307. 2017-09-05 Tom Tromey <tom@tromey.com>
  7308. * d-exp.y (PrimaryExpression): Use std::string.
  7309. (d_parse): Don't create a cleanup.
  7310. 2017-09-05 Tom Tromey <tom@tromey.com>
  7311. * utils.c (do_clear_parser_state): Remove.
  7312. (make_cleanup_clear_parser_state): Remove.
  7313. * p-exp.y (pascal_parse): Use scoped_restore.
  7314. * m2-exp.y (m2_parse): Use scoped_restore.
  7315. * f-exp.y (f_parse): Use scoped_restore.
  7316. * d-exp.y (d_parse): Use scoped_restore.
  7317. * c-exp.y (c_parse): Use scoped_restore.
  7318. * ada-exp.y (ada_parse): Use scoped_restore.
  7319. * utils.h (make_cleanup_clear_parser_state): Remove.
  7320. 2017-09-06 Keith Seitz <keiths@redhat.com>
  7321. * dwarf2read.c (dw2_linkage_name_attr): New function.
  7322. (dw2_linkage_name): New function.
  7323. (dwarf2_compute_name, dwarf2_physname, read_call_site_scope)
  7324. (guess_full_die_structure_name, dwarf2_name): Use dw2_linkage_name.
  7325. (anonymous_struct_prefix, dwarf2_name): Use dw2_linkage_name_attr.
  7326. 2017-09-06 Kamil Rytarowski <n54@gmx.com>
  7327. * config/djgpp/djconfig.sh: Correct shell portability issue.
  7328. 2017-09-06 Kamil Rytarowski <n54@gmx.com>
  7329. * configure.nat: Define HAVE_NATIVE_GCORE_HOST on NetBSD.
  7330. 2017-09-06 John Baldwin <jhb@FreeBSD.org>
  7331. * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
  7332. * NEWS: Mention new FreeBSD/mips native configuration.
  7333. * configure.host: Add aarch64*-*-freebsd*.
  7334. * configure.nat: Likewise.
  7335. * aarch64-fbsd-nat.c: New file.
  7336. 2017-09-06 John Baldwin <jhb@FreeBSD.org>
  7337. * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-fbsd-tdep.o.
  7338. (ALLDEPFILES): Add aarch64-fbsd-tdep.c.
  7339. * NEWS: Mention new FreeBSD/aarch64 target.
  7340. * configure.tgt: Add aarch64*-*-freebsd*.
  7341. * aarch64-fbsd-tdep.c: New file.
  7342. * aarch64-fbsd-tdep.h: New file.
  7343. 2017-09-06 Kamil Rytarowski <n54@gmx.com>
  7344. * MAINTAINERS (Write After Approval): Add Kamil Rytarowski.
  7345. 2017-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
  7346. * parse.c (find_minsym_type_and_address): Don't relocate addresses
  7347. of TLS symbols.
  7348. 2017-09-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  7349. * objfiles.c (get_objfile_bfd_data): Remove useless obstack_init
  7350. call.
  7351. 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
  7352. * infrun.c (follow_exec): Call add_thread after
  7353. target_find_description.
  7354. 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
  7355. * infrun.c (handle_inferior_event_1): When exec'ing, read
  7356. stop_pc after follow_exec.
  7357. 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
  7358. * remote.c (process_g_packet): Update error message.
  7359. 2017-09-05 Yao Qi <yao.qi@linaro.org>
  7360. * configure.tgt (gdb_target_obs): Add i386.o for x86_64-*
  7361. targets.
  7362. 2017-09-05 Pedro Alves <palves@redhat.com>
  7363. * eval.c (eval_call, evaluate_funcall): New functions, factored
  7364. out from ...
  7365. (evaluate_subexp_standard): ... this.
  7366. 2017-09-05 Yao Qi <yao.qi@linaro.org>
  7367. * amd64-tdep.c (amd64_target_description): Create target
  7368. descriptions.
  7369. (_initialize_amd64_tdep): Don't call functions
  7370. initialize_tdesc_amd64_*. Add self tests.
  7371. * arch/amd64.c (amd64_create_target_description): Add parameter
  7372. is_linux. Call set_tdesc_osabi if is_linux is true.
  7373. * arch/amd64.h (amd64_create_target_description): Update the
  7374. declaration.
  7375. * arch/i386.c (i386_create_target_description): Add parameter
  7376. is_linux. Call set_tdesc_osabi if is_linux is true.
  7377. * arch/i386.h (i386_create_target_description): Update
  7378. declaration.
  7379. * configure.tgt: Add i386.o to gdb_target_obs.
  7380. * features/Makefile (XMLTOC): Remove i386/*.xml.
  7381. * features/i386/amd64-avx-avx512.c: Remove.
  7382. * features/i386/amd64-avx-mpx-avx512-pku.c: Remove.
  7383. * features/i386/amd64-avx-mpx.c: Remove.
  7384. * features/i386/amd64-avx.c: Remove.
  7385. * features/i386/amd64-mpx.c: Remove.
  7386. * features/i386/amd64.c: Remove.
  7387. * features/i386/i386-avx-avx512.c: Remove.
  7388. * features/i386/i386-avx-mpx-avx512-pku.c: Remove.
  7389. * features/i386/i386-avx-mpx.c: Remove.
  7390. * features/i386/i386-avx.c: Remove.
  7391. * features/i386/i386-mmx.c: Remove.
  7392. * features/i386/i386-mpx.c: Remove.
  7393. * features/i386/i386.c: Remove.
  7394. * i386-tdep.c: Don't include features/i386/i386*.c., include
  7395. target-descriptions.h and arch/i386.h.
  7396. (i386_target_description): Create target descriptions.
  7397. (i386_gdbarch_init): Don't call initialize_tdesc_i386_*
  7398. functions. Do self tests.
  7399. 2017-09-05 Yao Qi <yao.qi@linaro.org>
  7400. * features/Makefile (XMLTOC): Remove i386/amd64XXX-linux.xml.
  7401. * features/i386/amd64-avx-avx512-linux.c: Removed.
  7402. * features/i386/amd64-avx-linux.c: Removed.
  7403. * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Removed.
  7404. * features/i386/amd64-avx-mpx-linux.c: Removed.
  7405. * features/i386/amd64-linux.c: Removed.
  7406. * features/i386/amd64-mpx-linux.c: Removed.
  7407. * features/i386/x32-avx-avx512-linux.c: Removed.
  7408. * features/i386/x32-avx-linux.c: Removed.
  7409. * features/i386/x32-linux.c: Removed.
  7410. 2017-09-05 Yao Qi <yao.qi@linaro.org>
  7411. * amd64-linux-tdep.c: Include arch/amd64.h. Don't include
  7412. features/i386/*.c.
  7413. (amd64_linux_read_description): Call
  7414. amd64_create_target_description.
  7415. * arch/amd64.c: New file.
  7416. * arch/amd64.h: New file.
  7417. * configure.tgt (x86_64-*-linux*): Append amd64.o.
  7418. * Makefile.in (ALL_64_TARGET_OBS): Append amd64.o.
  7419. 2017-09-05 Yao Qi <yao.qi@linaro.org>
  7420. * amd64-linux-tdep.c: Don't include amd64-XXX-linux and
  7421. x32-XXX-linux.c. Include 64bit-XX.c and x32-XX.c.
  7422. (amd64_linux_read_description): Create target descriptions.
  7423. (_initialize_amd64_linux_tdep): Don't call initialize_tdesc_XXX
  7424. functions. Add unit tests.
  7425. * features/Makefile (FEATURE_XMLFILES): Append 64bit-XXX.xml and
  7426. x32-core.xml.
  7427. * features/i386/64bit-avx.c: Generated.
  7428. * features/i386/64bit-avx512.c: Generated.
  7429. * features/i386/64bit-core.c: Generated.
  7430. * features/i386/64bit-linux.c: Generated.
  7431. * features/i386/64bit-mpx.c: Generated.
  7432. * features/i386/64bit-pkeys.c: Generated.
  7433. * features/i386/64bit-segments.c: Generated.
  7434. * features/i386/64bit-sse.c: Generated.
  7435. * features/i386/x32-core.c: Generated.
  7436. * target-descriptions.c (maint_print_c_tdesc_cmd): Print feature
  7437. c files for amd64-linux and x32-linux.
  7438. 2017-09-05 Yao Qi <yao.qi@linaro.org>
  7439. * amd64-linux-tdep.c (amd64_linux_read_description): New
  7440. function.
  7441. (amd64_linux_core_read_description): Call
  7442. amd64_linux_read_description.
  7443. (amd64_linux_init_abi): Likewise.
  7444. (amd64_x32_linux_init_abi): Likewise.
  7445. * amd64-linux-tdep.h (amd64_linux_read_description): Declare.
  7446. * x86-linux-nat.c (x86_linux_read_description): Call
  7447. amd64_linux_read_description.
  7448. 2017-09-05 Yao Qi <yao.qi@linaro.org>
  7449. * amd64-linux-tdep.c (amd64_linux_core_read_description): Update
  7450. comments.
  7451. 2017-09-05 Yao Qi <yao.qi@linaro.org>
  7452. * features/Makefile (XMLTOC): Remove i386/i386-XX-linux.xml.
  7453. * features/i386/i386-avx-avx512-linux.c: Remove.
  7454. * features/i386/i386-avx-linux.c: Remove.
  7455. * features/i386/i386-avx-mpx-avx512-pku-linux.c: Remove.
  7456. * features/i386/i386-avx-mpx-linux.c: Remove.
  7457. * features/i386/i386-linux.c: Remove.
  7458. * features/i386/i386-mmx-linux.c: Remove.
  7459. * features/i386/i386-mpx-linux.c: Remove.
  7460. 2017-09-05 Yao Qi <yao.qi@linaro.org>
  7461. * Makefile.in (ALL_TARGET_OBS): Add i386.o.
  7462. (SFILES): Add arch/i386.c.
  7463. (HFILES_NO_SRCDIR): Add arch/i386.h.
  7464. * arch/i386.c: New file.
  7465. * arch/i386.h: New file.
  7466. * arch/tdesc.h (allocate_target_description): Declare.
  7467. (set_tdesc_architecture): Declare.
  7468. (set_tdesc_osabi): Declare.
  7469. * configure.tgt (i[34567]86-*-linux*): Add i386.o.
  7470. * i386-linux-tdep.c: Don't include ../features/i386/32bit-XXX.c.
  7471. include arch/i386.h.
  7472. (i386_linux_read_description): Remove code and call
  7473. i386_create_target_description.
  7474. (set_tdesc_architecture): New function.
  7475. (set_tdesc_osabi): New function.
  7476. * target-descriptions.h (allocate_target_description): Remove.
  7477. 2017-09-05 Yao Qi <yao.qi@linaro.org>
  7478. * arch/tdesc.h (tdesc_create_feature): Add an argument xml.
  7479. * target-descriptions.c (tdesc_create_feature): Likewise, and
  7480. adjust code.
  7481. * features/i386/32bit-avx.c: Re-generated.
  7482. * features/i386/32bit-avx512.c: Re-generated.
  7483. * features/i386/32bit-core.c: Re-generated.
  7484. * features/i386/32bit-linux.c: Re-generated.
  7485. * features/i386/32bit-mpx.c: Re-generated.
  7486. * features/i386/32bit-pkeys.c: Re-generated.
  7487. * features/i386/32bit-sse.c: Re-generated.
  7488. 2017-09-05 Yao Qi <yao.qi@linaro.org>
  7489. * regformats/regdef.h (struct reg): Override operator == and !=.
  7490. 2017-09-05 Yao Qi <yao.qi@linaro.org>
  7491. * arch/tdesc.h: New file.
  7492. * regformats/regdat.sh: Generate code using tdesc_create_reg.
  7493. * target-descriptions.c: Update comments.
  7494. * target-descriptions.h: Include "arch/tdesc.h". Remove the
  7495. declarations.
  7496. * features/i386/32bit-avx.c: Re-generated.
  7497. * features/i386/32bit-avx512.c: Re-generated.
  7498. * features/i386/32bit-core.c: Re-generated.
  7499. * features/i386/32bit-linux.c: Re-generated.
  7500. * features/i386/32bit-mpx.c: Re-generated.
  7501. * features/i386/32bit-pkeys.c: Re-generated.
  7502. * features/i386/32bit-sse.c: Re-generated.
  7503. 2017-09-05 Yao Qi <yao.qi@linaro.org>
  7504. * regformats/regdat.sh: Update generated code.
  7505. 2017-09-05 Yao Qi <yao.qi@linaro.org>
  7506. * regformats/regdat.sh: Adjust code order.
  7507. 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
  7508. * expprint.c (dump_subexp_body_standard): Use constant format
  7509. string in fprintf_filtered call.
  7510. 2017-09-04 John Baldwin <jhb@FreeBSD.org>
  7511. * configure.nat: Add "x86-nat.o x86-dregs.o" for NetBSD/amd64 and
  7512. NetBSD/i386.
  7513. * x86-bsd-nat.c [!DBREG_DRX && __NetBSD__]: Define DBREG_DRX.
  7514. 2017-09-04 John Baldwin <jhb@FreeBSD.org>
  7515. * bsd-kvm.o: Make <sys/user.h> conditional on HAVE_SYS_USER_H.
  7516. 2017-09-04 John Baldwin <jhb@FreeBSD.org>
  7517. * bsd-kvm.o: Define _KMEMUSER.
  7518. * configure.ac: Define _KMEMUSER when checking for "struct lwp".
  7519. * configure: Regenerate.
  7520. 2017-09-04 John Baldwin <jhb@FreeBSD.org>
  7521. * amd64-fbsd-nat.c: Add include of "x86-xstate.h".
  7522. * i386-fbsd-nat.c: Likewise.
  7523. 2017-09-04 John Baldwin <jhb@FreeBSD.org>
  7524. * unittests/array-view-selftests.c: Add include of <array>.
  7525. 2017-09-04 John Baldwin <jhb@FreeBSD.org>
  7526. * spu-tdep.c (flush_ea_cache): Add missing argument to
  7527. call_function_by_hand.
  7528. 2017-09-04 Pedro Alves <palves@redhat.com>
  7529. * NEWS (Safer support for debugging with no debug info): New.
  7530. 2017-09-04 Pedro Alves <palves@redhat.com>
  7531. * c-exp.y (function_method, function_method_void): Add current
  7532. instance flags to TYPE_INSTANCE.
  7533. * dwarf2read.c (check_modifier): New.
  7534. (compute_delayed_physnames): Assert that only C++ adds delayed
  7535. physnames. Mark fn_fields as const/volatile depending on
  7536. physname.
  7537. * eval.c (make_params): New type_instance_flags parameter. Use
  7538. it as the new type's instance flags.
  7539. (evaluate_subexp_standard) <TYPE_INSTANCE>: Extract the instance
  7540. flags element and pass it to make_params.
  7541. * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: Handle
  7542. instance flags element.
  7543. (dump_subexp_body_standard) <TYPE_INSTANCE>: Likewise.
  7544. * gdbtypes.h: Include "enum-flags.h".
  7545. (type_instance_flags): New enum-flags type.
  7546. (TYPE_CONST, TYPE_VOLATILE, TYPE_RESTRICT, TYPE_ATOMIC)
  7547. (TYPE_CODE_SPACE, TYPE_DATA_SPACE): Return boolean.
  7548. * parse.c (operator_length_standard) <TYPE_INSTANCE>: Adjust.
  7549. (follow_type_instance_flags): New function.
  7550. (operator_check_standard) <TYPE_INSTANCE>: Adjust.
  7551. * parser-defs.h (follow_type_instance_flags): Declare.
  7552. * valops.c (value_struct_elt_for_reference): const/volatile must
  7553. match too.
  7554. 2017-09-04 Pedro Alves <palves@redhat.com>
  7555. * cp-namespace.c (cp_search_static_and_baseclasses): Handle
  7556. function/method scopes; lookup the nested name as a function local
  7557. static variable.
  7558. 2017-09-04 Pedro Alves <palves@redhat.com>
  7559. (%type <voidval>): Add function_method.
  7560. * c-exp.y (exp): New production for calls with no arguments.
  7561. (function_method, function_method_void_or_typelist): New
  7562. productions.
  7563. (exp): New production for "method()::static_var".
  7564. * eval.c (evaluate_subexp_standard): Handle OP_FUNC_STATIC_VAR.
  7565. * expprint.c (print_subexp_standard, dump_subexp_body_standard):
  7566. Handle OP_FUNC_STATIC_VAR.
  7567. * parse.c (operator_length_standard):
  7568. Handle OP_FUNC_STATIC_VAR.
  7569. 2017-09-04 Pedro Alves <palves@redhat.com>
  7570. * eval.c (evaluate_subexp_standard): Remove UNOP_MEMVAL_TLS
  7571. handling.
  7572. * expprint.c (print_subexp_standard, dump_subexp_body_standard):
  7573. Ditto.
  7574. * parse.c (operator_length_standard, operator_check_standard):
  7575. Ditto.
  7576. * std-operator.def (UNOP_MEMVAL_TLS): Delete.
  7577. 2017-09-04 Pedro Alves <palves@redhat.com>
  7578. * ax-gdb.c: Include "typeprint.h".
  7579. (gen_expr_for_cast): New function.
  7580. (gen_expr) <OP_CAST, OP_CAST_TYPE>: Use it.
  7581. <OP_VAR_VALUE, OP_MSYM_VAR_VALUE>: Error out if the variable's
  7582. type is unknown.
  7583. * dwarf2read.c (new_symbol_full): Fallback to int instead of
  7584. nodebug_data_symbol.
  7585. * eval.c: Include "typeprint.h".
  7586. (evaluate_subexp_standard) <OP_VAR_VALUE, OP_VAR_MSYM_VALUE>:
  7587. Error out if symbol has unknown type.
  7588. <UNOP_CAST, UNOP_CAST_TYPE>: Common bits factored out to
  7589. evaluate_subexp_for_cast.
  7590. (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): Handle
  7591. OP_VAR_MSYM_VALUE.
  7592. (evaluate_subexp_for_cast): New function.
  7593. * gdbtypes.c (init_nodebug_var_type): New function.
  7594. (objfile_type): Use it to initialize types of variables with no
  7595. debug info.
  7596. * typeprint.c (error_unknown_type): New.
  7597. * typeprint.h (error_unknown_type): New declaration.
  7598. * compile/compile-c-types.c (convert_type_basic): Handle
  7599. TYPE_CODE_ERROR; warn and fallback to int for variables with
  7600. unknown type.
  7601. 2017-09-04 Pedro Alves <palves@redhat.com>
  7602. * eval.c (evaluate_var_value): New function, factored out from ...
  7603. (evaluate_subexp_standard): ... here.
  7604. 2017-09-04 Pedro Alves <palves@redhat.com>
  7605. * eval.c (evaluate_subexp_standard) <UNOP_COMPLEMENT, UNOP_ADDR>:
  7606. Remove useless assignments to 'op'.
  7607. 2017-09-04 Pedro Alves <palves@redhat.com>
  7608. * eval.c (eval_skip_value): New function.
  7609. (evaluate_subexp_standard): Use it.
  7610. 2017-09-04 Pedro Alves <palves@redhat.com>
  7611. * eval.c (evaluate_subexp_standard): <OP_FUNCALL>: Extract
  7612. function name from symbol/minsym and pass it to
  7613. error_call_unknown_return_type.
  7614. 2017-09-04 Pedro Alves <palves@redhat.com>
  7615. * ada-lang.c (resolve_subexp): Handle OP_VAR_MSYM_VALUE.
  7616. * ax-gdb.c (gen_msym_var_ref): New function.
  7617. (gen_expr): Handle OP_VAR_MSYM_VALUE.
  7618. * eval.c (evaluate_var_msym_value): New function.
  7619. * eval.c (evaluate_subexp_standard): Handle OP_VAR_MSYM_VALUE.
  7620. <OP_FUNCALL>: Extract function name from symbol/minsym and pass it
  7621. to call_function_by_hand.
  7622. * expprint.c (print_subexp_standard, dump_subexp_body_standard):
  7623. Handle OP_VAR_MSYM_VALUE.
  7624. (union exp_element) <msymbol>: New field.
  7625. * minsyms.h (struct type): Forward declare.
  7626. (find_minsym_type_and_address): Declare.
  7627. * parse.c (write_exp_elt_msym): New function.
  7628. (write_exp_msymbol): Delete, refactored as ...
  7629. (find_minsym_type_and_address): ... this new function.
  7630. (write_exp_msymbol): Reimplement using OP_VAR_MSYM_VALUE.
  7631. (operator_length_standard, operator_check_standard): Handle
  7632. OP_VAR_MSYM_VALUE.
  7633. * std-operator.def (OP_VAR_MSYM_VALUE): New.
  7634. 2017-09-04 Pedro Alves <palves@redhat.com>
  7635. * ada-lang.c (ada_evaluate_subexp) <TYPE_CODE_FUNC>: Don't handle
  7636. TYPE_GNU_IFUNC specially here. Throw error if return type is
  7637. unknown.
  7638. * ada-typeprint.c (print_func_type): Handle functions with unknown
  7639. return type.
  7640. * c-typeprint.c (c_type_print_base): Handle functions and methods
  7641. with unknown return type.
  7642. * compile/compile-c-symbols.c (convert_symbol_bmsym)
  7643. <mst_text_gnu_ifunc>: Use nodebug_text_gnu_ifunc_symbol.
  7644. * compile/compile-c-types.c: Include "objfiles.h".
  7645. (convert_func): For functions with unknown return type, warn and
  7646. default to int.
  7647. * compile/compile-object-run.c (compile_object_run): Adjust call
  7648. to call_function_by_hand_dummy.
  7649. * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust call to
  7650. call_function_by_hand.
  7651. * eval.c (evaluate_subexp_standard): Adjust calls to
  7652. call_function_by_hand. Handle functions and methods with unknown
  7653. return type. Pass expect_type to call_function_by_hand.
  7654. * f-typeprint.c (f_type_print_base): Handle functions with unknown
  7655. return type.
  7656. * gcore.c (call_target_sbrk): Adjust call to
  7657. call_function_by_hand.
  7658. * gdbtypes.c (objfile_type): Leave nodebug text symbol with NULL
  7659. return type instead of int. Make nodebug_text_gnu_ifunc_symbol be
  7660. an integer address type instead of nodebug.
  7661. * guile/scm-value.c (gdbscm_value_call): Adjust call to
  7662. call_function_by_hand.
  7663. * infcall.c (error_call_unknown_return_type): New function.
  7664. (call_function_by_hand): New "default_return_type" parameter.
  7665. Pass it down.
  7666. (call_function_by_hand_dummy): New "default_return_type"
  7667. parameter. Use it instead of defaulting to int. If there's no
  7668. default and the return type is unknown, throw an error. If
  7669. there's a default return type, and the called function has no
  7670. debug info, then assume the function is prototyped.
  7671. * infcall.h (call_function_by_hand, call_function_by_hand_dummy):
  7672. New "default_return_type" parameter.
  7673. (error_call_unknown_return_type): New declaration.
  7674. * linux-fork.c (call_lseek): Cast return type of lseek.
  7675. (inferior_call_waitpid, checkpoint_command): Adjust calls to
  7676. call_function_by_hand.
  7677. * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): Adjust
  7678. calls to call_function_by_hand.
  7679. * m2-typeprint.c (m2_procedure): Handle functions with unknown
  7680. return type.
  7681. * objc-lang.c (lookup_objc_class, lookup_child_selector)
  7682. (value_nsstring, print_object_command): Adjust calls to
  7683. call_function_by_hand.
  7684. * p-typeprint.c (pascal_type_print_varspec_prefix): Handle
  7685. functions with unknown return type.
  7686. (pascal_type_print_func_varspec_suffix): New function.
  7687. (pascal_type_print_varspec_suffix) <TYPE_CODE_FUNC,
  7688. TYPE_CODE_METHOD>: Use it.
  7689. * python/py-value.c (valpy_call): Adjust call to
  7690. call_function_by_hand.
  7691. * rust-lang.c (rust_evaluate_funcall): Adjust call to
  7692. call_function_by_hand.
  7693. * valarith.c (value_x_binop, value_x_unop): Adjust calls to
  7694. call_function_by_hand.
  7695. * valops.c (value_allocate_space_in_inferior): Adjust call to
  7696. call_function_by_hand.
  7697. * typeprint.c (type_print_unknown_return_type): New function.
  7698. * typeprint.h (type_print_unknown_return_type): New declaration.
  7699. 2017-09-04 Pedro Alves <palves@redhat.com>
  7700. * gdbtypes.c (lookup_function_type_with_arguments): Mark function
  7701. types with more than one parameter as prototyped.
  7702. 2017-09-04 Pedro Alves <palves@redhat.com>
  7703. * cli/cli-cmds.c (print_disassembly, disassemble_current_function)
  7704. (disassemble_command): Use gdb_disassembly_flags instead of bare
  7705. int.
  7706. * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn)
  7707. (dump_insns, do_mixed_source_and_assembly_deprecated)
  7708. (do_mixed_source_and_assembly, do_assembly_only, gdb_disassembly):
  7709. Use gdb_disassembly_flags instead of bare int.
  7710. * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED, DISASSEMBLY_RAW_INSN)
  7711. (DISASSEMBLY_OMIT_FNAME, DISASSEMBLY_FILENAME)
  7712. (DISASSEMBLY_OMIT_PC, DISASSEMBLY_SOURCE)
  7713. (DISASSEMBLY_SPECULATIVE): No longer macros. Instead they're...
  7714. (enum gdb_disassembly_flag): ... values of this new enumeration.
  7715. (gdb_disassembly_flags): Define.
  7716. (gdb_disassembly)
  7717. (gdb_pretty_print_disassembler::pretty_print_insn): Use it.
  7718. * mi/mi-cmd-disas.c (mi_cmd_disassemble): Use
  7719. gdb_disassembly_flags instead of bare int.
  7720. * record-btrace.c (btrace_insn_history)
  7721. (record_btrace_insn_history, record_btrace_insn_history_range)
  7722. (record_btrace_insn_history_from): Use gdb_disassembly_flags
  7723. instead of bare int.
  7724. * record.c (get_insn_history_modifiers, cmd_record_insn_history):
  7725. Use gdb_disassembly_flags instead of bare int.
  7726. * target-debug.h (target_debug_print_gdb_disassembly_flags):
  7727. Define.
  7728. * target-delegates.c: Regenerate.
  7729. * target.c (target_insn_history, target_insn_history_from)
  7730. (target_insn_history_range): Use gdb_disassembly_flags instead of
  7731. bare int.
  7732. * target.h: Include "disasm.h".
  7733. (struct target_ops) <to_insn_history, to_insn_history_from,
  7734. to_insn_history_range>: Use gdb_disassembly_flags instead of bare
  7735. int.
  7736. (target_insn_history, target_insn_history_from)
  7737. (target_insn_history_range): Use gdb_disassembly_flags instead of
  7738. bare int.
  7739. 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
  7740. * cli/cli-script.c (build_command_line): For if/while commands,
  7741. check whether args is empty.
  7742. 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
  7743. * cli/cli-script.h (enum misc_command_type): Move from defs.h.
  7744. (enum command_control_type): Likewise.
  7745. (struct command_line): Likewise.
  7746. (free_command_lines): Likewise.
  7747. (struct command_lines_deleter): Likewise.
  7748. (command_line_up): Likewise.
  7749. (read_command_lines): Likewise.
  7750. (read_command_lines_1): Likewise.
  7751. * defs.h (enum misc_command_type): Move to cli/cli-script.h.
  7752. (enum command_control_type): Likewise.
  7753. (struct command_line): Likewise.
  7754. (free_command_lines): Likewise.
  7755. (struct command_lines_deleter): Likewise.
  7756. (command_line_up): Likewise.
  7757. (read_command_lines): Likewise.
  7758. (read_command_lines_1): Likewise.
  7759. * breakpoint.h: Include cli/cli-script.h.
  7760. * extension-priv.h: Likewise.
  7761. * gdbcmd.h: Likewise.
  7762. 2017-09-04 Pedro Alves <palves@redhat.com>
  7763. * ada-lang.c (is_known_support_routine): Move sal declaration to
  7764. where it is initialized.
  7765. * breakpoint.c (create_internal_breakpoint, init_catchpoint)
  7766. (parse_breakpoint_sals, decode_static_tracepoint_spec)
  7767. (clear_command, update_static_tracepoint): Remove init_sal
  7768. references. Move declarations closer to initializations.
  7769. * cli/cli-cmds.c (list_command): Move sal declarations closer to
  7770. initializations.
  7771. * elfread.c (elf_gnu_ifunc_resolver_stop): Remove init_sal
  7772. references. Move sal declarations closer to initializations.
  7773. * frame.c (find_frame_sal): Return a symtab_and_line via function
  7774. return instead of output parameter. Remove init_sal references.
  7775. * frame.h (find_frame_sal): Return a symtab_and_line via function
  7776. return instead of output parameter.
  7777. * guile/scm-frame.c (gdbscm_frame_sal): Adjust.
  7778. * guile/scm-symtab.c (stscm_make_sal_smob): Use in-place new
  7779. instead of memset.
  7780. (gdbscm_find_pc_line): Remove init_sal reference.
  7781. * infcall.c (call_function_by_hand_dummy): Remove init_sal
  7782. references. Move declarations closer to initializations.
  7783. * infcmd.c (set_step_frame): Update. Move declarations closer to
  7784. initializations.
  7785. (finish_backward): Remove init_sal references. Move declarations
  7786. closer to initializations.
  7787. * infrun.c (process_event_stop_test, handle_step_into_function)
  7788. (insert_hp_step_resume_breakpoint_at_frame)
  7789. (insert_step_resume_breakpoint_at_caller): Likewise.
  7790. * linespec.c (create_sals_line_offset, decode_digits_ordinary)
  7791. (symbol_to_sal): Likewise.
  7792. * probe.c (parse_probes_in_pspace): Remove init_sal reference.
  7793. * python/py-frame.c (frapy_find_sal): Move sal declaration closer
  7794. to its initialization.
  7795. * reverse.c (save_bookmark_command): Use new/delete. Remove
  7796. init_sal references. Move declarations closer to initializations.
  7797. * source.c (get_current_source_symtab_and_line): Remove brace
  7798. initialization.
  7799. (set_current_source_symtab_and_line): Now takes the sal by const
  7800. reference. Remove brace initialization.
  7801. (line_info): Remove init_sal reference.
  7802. * source.h (set_current_source_symtab_and_line): Now takes a
  7803. symtab_and_line via const reference.
  7804. * stack.c (set_current_sal_from_frame): Adjust.
  7805. (print_frame_info): Adjust.
  7806. (get_last_displayed_sal): Return the sal via function return
  7807. instead of via output parameter. Simplify.
  7808. (frame_info): Adjust.
  7809. * stack.h (get_last_displayed_sal): Return the sal via function
  7810. return instead of via output parameter.
  7811. * symtab.c (init_sal): Delete.
  7812. (find_pc_sect_line): Remove init_sal references. Move
  7813. declarations closer to initializations.
  7814. (find_function_start_sal): Remove init_sal references. Move
  7815. declarations closer to initializations.
  7816. * symtab.h (struct symtab_and_line): In-class initialize all
  7817. fields.
  7818. * tracepoint.c (set_traceframe_context)
  7819. (print_one_static_tracepoint_marker): Remove init_sal references.
  7820. Move declarations closer to initializations.
  7821. * tui/tui-disasm.c (tui_show_disassem_and_update_source): Adjust.
  7822. * tui/tui-stack.c (tui_show_frame_info): Adjust. Move
  7823. declarations closer to initializations.
  7824. * tui/tui-winsource.c (tui_update_source_window_as_is): Remove
  7825. init_sal references. Adjust.
  7826. 2017-09-04 Pedro Alves <palves@redhat.com>
  7827. * ax-gdb.c (agent_command_1): Use range-for.
  7828. * break-catch-throw.c (re_set_exception_catchpoint): Update.
  7829. * breakpoint.c: Include "common/array-view.h".
  7830. (init_breakpoint_sal, create_breakpoint_sal): Change sals
  7831. parameter from struct symtabs_and_lines to
  7832. array_view<symtab_and_line>. Adjust. Use range-for. Update.
  7833. (breakpoint_sals_to_pc): Change sals parameter from struct
  7834. symtabs_and_lines to std::vector reference.
  7835. (check_fast_tracepoint_sals): Change sals parameter from struct
  7836. symtabs_and_lines to std::array_view. Use range-for.
  7837. (decode_static_tracepoint_spec): Return a std::vector instead of
  7838. symtabs_and_lines. Update.
  7839. (create_breakpoint): Update.
  7840. (break_range_command, until_break_command, clear_command): Update.
  7841. (base_breakpoint_decode_location, bkpt_decode_location)
  7842. (bkpt_probe_create_sals_from_location)
  7843. (bkpt_probe_decode_location, tracepoint_decode_location)
  7844. (tracepoint_probe_decode_location)
  7845. (strace_marker_create_sals_from_location): Return a std::vector
  7846. instead of symtabs_and_lines.
  7847. (strace_marker_create_breakpoints_sal): Update.
  7848. (strace_marker_decode_location): Return a std::vector instead of
  7849. symtabs_and_lines. Update.
  7850. (update_breakpoint_locations): Change struct symtabs_and_lines
  7851. parameters to gdb::array_view. Adjust.
  7852. (location_to_sals): Return a std::vector instead of
  7853. symtabs_and_lines. Update.
  7854. (breakpoint_re_set_default): Use std::vector instead of struct
  7855. symtabs_and_lines.
  7856. (decode_location_default): Return a std::vector instead of
  7857. symtabs_and_lines. Update.
  7858. * breakpoint.h: Include "common/array-view.h".
  7859. (struct breakpoint_ops) <decode_location>: Now returns a
  7860. std::vector instead of returning a symtabs_and_lines via output
  7861. parameter.
  7862. (update_breakpoint_locations): Change sals parameters to use
  7863. gdb::array_view.
  7864. * cli/cli-cmds.c (edit_command, list_command): Update to use
  7865. std::vector and gdb::array_view.
  7866. (ambiguous_line_spec): Adjust to use gdb::array_view and
  7867. range-for.
  7868. (compare_symtabs): Rename to ...
  7869. (cmp_symtabs): ... this. Change parameters to symtab_and_line
  7870. const reference and adjust.
  7871. (filter_sals): Rewrite using std::vector and standard algorithms.
  7872. * elfread.c (elf_gnu_ifunc_resolver_return_stop): Simplify.
  7873. (jump_command): Update to use std::vector.
  7874. * linespec.c (struct linespec_state) <canonical_names>: Update
  7875. comment.
  7876. (add_sal_to_sals_basic): Delete.
  7877. (add_sal_to_sals, filter_results, convert_results_to_lsals)
  7878. (decode_line_2, create_sals_line_offset)
  7879. (convert_address_location_to_sals, convert_linespec_to_sals)
  7880. (convert_explicit_location_to_sals, parse_linespec)
  7881. (event_location_to_sals, decode_line_full, decode_line_1)
  7882. (decode_line_with_current_source)
  7883. (decode_line_with_last_displayed, decode_objc)
  7884. (decode_digits_list_mode, decode_digits_ordinary, minsym_found)
  7885. (linespec_result::~linespec_result): Adjust to use std::vector
  7886. instead of symtabs_and_lines.
  7887. * linespec.h (linespec_sals::sals): Now a std::vector.
  7888. (struct linespec_result): Use std::vector, bool, and in-class
  7889. initialization.
  7890. (decode_line_1, decode_line_with_current_source)
  7891. (decode_line_with_last_displayed): Return std::vector.
  7892. * macrocmd.c (info_macros_command): Use std::vector.
  7893. * mi/mi-main.c (mi_cmd_trace_find): Use std::vector.
  7894. * probe.c (parse_probes_in_pspace, parse_probes): Adjust to use
  7895. std::vector.
  7896. * probe.h (parse_probes): Return a std::vector.
  7897. * python/python.c (gdbpy_decode_line): Use std::vector and
  7898. gdb::array_view.
  7899. * source.c (select_source_symtab, line_info): Use std::vector.
  7900. * stack.c (func_command): Use std::vector.
  7901. * symtab.h (struct symtabs_and_lines): Delete.
  7902. * tracepoint.c (tfind_line_command, scope_info): Use std::vector.
  7903. 2017-09-04 Pedro Alves <palves@redhat.com>
  7904. * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
  7905. unittests/array-view-selftests.c.
  7906. (SUBDIR_UNITTESTS_OBS): Add array-view-selftests.o.
  7907. * common/array-view.h: New file.
  7908. * unittests/array-view-selftests.c: New file.
  7909. 2017-09-04 Pedro Alves <palves@redhat.com>
  7910. * cli/cli-cmds.c (edit_command): Pass message to
  7911. ambiguous_line_spec.
  7912. (list_command): Pass message to ambiguous_line_spec. Say
  7913. "first"/"last" instead of "start" and "end" to be consistent with
  7914. the manual.
  7915. (ambiguous_line_spec): Add 'format' and vararg parameters. Use
  7916. them to print formatted message.
  7917. 2017-09-04 Pedro Alves <palves@redhat.com>
  7918. * btrace.c (ftrace_add_pt): Pass btrace_insn to
  7919. ftrace_update_insns by reference instead of pointer.
  7920. 2017-09-04 Yao Qi <yao.qi@linaro.org>
  7921. * i386-go32-tdep.c: Include x86-xstate.h.
  7922. (i386_go32_init_abi): Call i386_target_description.
  7923. * i386-tdep.c (i386_target_description): Return tdesc_i386_mmx
  7924. if xcr0 is X86_XSTATE_X87_MASK.
  7925. * i386-tdep.h (tdesc_i386): Remove the declaration.
  7926. (tdesc_i386_mmx): Likewise.
  7927. 2017-09-04 Yao Qi <yao.qi@linaro.org>
  7928. * i386-fbsd-tdep.c (i386fbsd_core_read_xcr0): Return
  7929. X86_XSTATE_SSE_MASK instead of 0.
  7930. 2017-09-04 Yao Qi <yao.qi@linaro.org>
  7931. * amd64-fbsd-nat.c (amd64fbsd_read_description): Call
  7932. i386_target_description.
  7933. * i386-fbsd-nat.c (i386fbsd_read_description): Call
  7934. i386_target_description.
  7935. * i386-tdep.c (i386_gdbarch_init): Likewise.
  7936. 2017-09-04 Yao Qi <yao.qi@linaro.org>
  7937. * amd64-darwin-tdep.c: Include "x86-xstate.h".
  7938. (x86_darwin_init_abi_64): Call amd64_target_description.
  7939. * amd64-dicos-tdep.c: Likewise.
  7940. * amd64-fbsd-nat.c: Likewise.
  7941. * amd64-fbsd-tdep.c: Likewise.
  7942. * amd64-nbsd-tdep.c: Likewise.
  7943. * amd64-obsd-tdep.c: Likewise.
  7944. * amd64-sol2-tdep.c: Likewise.
  7945. * amd64-windows-tdep.c: Likewise.
  7946. * amd64-tdep.h (tdesc_amd64): Remove the declaration.
  7947. 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
  7948. * btrace.h (btrace_insn_s, DEF_VEC_O (btrace_insn_s)): Remove.
  7949. (btrace_function) <insn>: Change type to use std::vector.
  7950. * btrace.c (ftrace_debug, ftrace_call_num_insn,
  7951. ftrace_find_call, ftrace_new_gap, ftrace_update_function,
  7952. ftrace_update_insns, ftrace_compute_global_level_offset,
  7953. btrace_stitch_bts, btrace_clear, btrace_insn_get,
  7954. btrace_insn_end, btrace_insn_next, btrace_insn_prev): Adjust to
  7955. change to std::vector.
  7956. (ftrace_update_insns): Adjust to change to std::vector, change
  7957. type of INSN parameter.
  7958. (btrace_compute_ftrace_bts): Adjust call to ftrace_update_insns.
  7959. * record-btrace.c (btrace_call_history_insn_range,
  7960. btrace_compute_src_line_range,
  7961. record_btrace_frame_prev_register): Adjust to change to
  7962. std::vector.
  7963. * python/py-record-btrace.c (recpy_bt_func_instructions): Adjust
  7964. to change to std::vector.
  7965. 2017-09-03 Tom Tromey <tom@tromey.com>
  7966. * corefile.c (reopen_exec_file): Use std::string.
  7967. 2017-09-03 Tom Tromey <tom@tromey.com>
  7968. * compile/compile.c (compile_register_name_mangled): Return
  7969. std::string.
  7970. * compile/compile-loc2c.c (pushf_register_address): Update.
  7971. (pushf_register): Update.
  7972. * compile/compile-c-types.c (convert_array): Update.
  7973. * compile/compile-c-symbols.c (generate_vla_size): Update.
  7974. (error_symbol_once): Use a gdb::unique_xmalloc_ptr.
  7975. (symbol_substitution_name): Return a gdb::unique_xmalloc_ptr.
  7976. (convert_one_symbol): Update.
  7977. (generate_c_for_for_one_variable): Update.
  7978. * compile/compile-c-support.c (c_get_range_decl_name): Return a
  7979. std::string.
  7980. (generate_register_struct): Update.
  7981. * compile/compile-internal.h (c_get_range_decl_name): Return a
  7982. std::string.
  7983. (compile_register_name_mangled): Return std::string.
  7984. 2017-09-03 Tom Tromey <tom@tromey.com>
  7985. * utils.c (perror_string): Return a std::string.
  7986. (throw_perror_with_name, perror_warning_with_name): Update.
  7987. 2017-09-03 Tom Tromey <tom@tromey.com>
  7988. * demangle.c (demangle_command): Use std::string,
  7989. unique_xmalloc_ptr.
  7990. 2017-09-03 Tom Tromey <tom@tromey.com>
  7991. * cli/cli-setshow.c (do_set_command): Use std::string.
  7992. 2017-09-03 Tom Tromey <tom@tromey.com>
  7993. * cli/cli-cmds.c (cd_command): Use gdb::unique_xmalloc_ptr.
  7994. 2017-09-03 Tom Tromey <tom@tromey.com>
  7995. * mi/mi-interp.c (mi_cmd_interpreter_exec): Use std::string.
  7996. 2017-09-03 Tom Tromey <tom@tromey.com>
  7997. * mi/mi-cmd-env.c (env_execute_cli_command): Use
  7998. gdb::unique_xmalloc_ptr.
  7999. 2017-09-03 Tom Tromey <tom@tromey.com>
  8000. * thread.c (print_thread_info_1): Use string_printf.
  8001. (thread_apply_command, thread_apply_all_command): Use
  8002. std::string.
  8003. 2017-09-03 Tom Tromey <tom@tromey.com>
  8004. * valprint.c (val_print_string): Update.
  8005. * gdbcore.h (memory_error_message): Return std::string.
  8006. * corefile.c (memory_error_message): Return std::string.
  8007. (memory_error): Update.
  8008. * breakpoint.c (insert_bp_location): Update.
  8009. 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
  8010. * target/waitstatus.h (target_waitstatus_to_string): Change
  8011. return type to std::string.
  8012. * target/waitstatus.c (target_waitstatus_to_string): Return
  8013. std::string.
  8014. * target.h (target_waitstatus_to_string): Remove declaration.
  8015. * infrun.c (resume, clear_proceed_status_thread,
  8016. print_target_wait_results, do_target_wait, save_waitstatus,
  8017. stop_all_threads): Adjust.
  8018. * record-btrace.c (record_btrace_wait): Adjust.
  8019. * target-debug.h
  8020. (target_debug_print_struct_target_waitstatus_p): Adjust.
  8021. 2017-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
  8022. PR gdb/22046
  8023. * nat/linux-procfs.c (parse_proc_status_state): Fix PROC_STATE_STOPPED
  8024. detection.
  8025. 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
  8026. * NEWS (Changes since GDB 8.0): Add entry mentioning new support
  8027. for setting/unsetting environment variables on the remote target.
  8028. (New remote packets): Add entries for QEnvironmentHexEncoded,
  8029. QEnvironmentUnset and QEnvironmentReset.
  8030. * common/environ.c (gdb_environ::operator=): Extend method to
  8031. handle m_user_set_env_list and m_user_unset_env_list.
  8032. (gdb_environ::clear): Likewise.
  8033. (match_var_in_string): Change type of first parameter from 'char
  8034. *' to 'const char *'.
  8035. (gdb_environ::set): Extend method to handle
  8036. m_user_set_env_list and m_user_unset_env_list.
  8037. (gdb_environ::unset): Likewise.
  8038. (gdb_environ::clear_user_set_env): New method.
  8039. (gdb_environ::user_set_envp): Likewise.
  8040. (gdb_environ::user_unset_envp): Likewise.
  8041. * common/environ.h (gdb_environ): Handle m_user_set_env_list and
  8042. m_user_unset_env_list on move constructor/assignment.
  8043. (unset): Add new default parameter 'update_unset_list = true'.
  8044. (clear_user_set_env): New method.
  8045. (user_set_envp): Likewise.
  8046. (user_unset_envp): Likewise.
  8047. (m_user_set_env_list): New std::set.
  8048. (m_user_unset_env_list): Likewise.
  8049. * common/rsp-low.c (hex2str): New function.
  8050. (bin2hex): New overload for bin2hex function.
  8051. * common/rsp-low.c (hex2str): New prototype.
  8052. (str2hex): New overload prototype.
  8053. * remote.c: Include "environ.h". Add QEnvironmentHexEncoded,
  8054. QEnvironmentUnset and QEnvironmentReset.
  8055. (remote_protocol_features): Add QEnvironmentHexEncoded,
  8056. QEnvironmentUnset and QEnvironmentReset packets.
  8057. (send_environment_packet): New function.
  8058. (extended_remote_environment_support): Likewise.
  8059. (extended_remote_create_inferior): Call
  8060. extended_remote_environment_support.
  8061. (_initialize_remote): Add QEnvironmentHexEncoded,
  8062. QEnvironmentUnset and QEnvironmentReset packet configs.
  8063. * unittests/environ-selftests.c (gdb_selftest_env_var):
  8064. New variable.
  8065. (test_vector_initialization): New function.
  8066. (test_init_from_host_environ): Likewise.
  8067. (test_reinit_from_host_environ): Likewise.
  8068. (test_set_A_unset_B_unset_A_cannot_find_A_can_find_B):
  8069. Likewise.
  8070. (test_unset_set_empty_vector): Likewise.
  8071. (test_vector_clear): Likewise.
  8072. (test_std_move): Likewise.
  8073. (test_move_constructor):
  8074. (test_self_move): Likewise.
  8075. (test_set_unset_reset): Likewise.
  8076. (run_tests): Rewrite in terms of the functions above.
  8077. 2017-08-31 Weimin Pan <weimin.pan@oracle.com>
  8078. * sparc64-tdep.c (adi_stat_t): Fix comment formatting.
  8079. (adi_available): Use a temp variable of type CORE_ADDR as argument
  8080. 3 when calling target_auxv_search.
  8081. (adi_normalize_address): Use masks and xor operators to calculate
  8082. normalized address.
  8083. (adi_read_versions, adi_write_versions, adi_print_versions)
  8084. (do_examine, do_assign): Use paddress.
  8085. 2017-08-29 John Baldwin <jhb@FreeBSD.org>
  8086. * mips-fbsd-nat.c (getfpregs_supplies): Return true for FIR.
  8087. * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Split supply of FSR
  8088. out of loop and add supply of FIR.
  8089. (mips_fbsd_collect_fpregs): Split collect of FSR out of loop and
  8090. add collect of FIR.
  8091. 2017-08-28 Simon Marchi <simon.marchi@ericsson.com>
  8092. PR gdb/21827
  8093. * cli/cli-script.c (define_command): Don't convert command name
  8094. to lower case.
  8095. 2017-08-25 Joel Brobecker <brobecker@adacore.com>
  8096. * ada-lang.c (ada_lookup_struct_elt_type): Remove parameter "dispp".
  8097. Update all callers accordingly. Remove all code blocks handling
  8098. the case where DISPP is not NULL.
  8099. 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
  8100. PR symtab/22003
  8101. * dwarf2read.c (dwarf2_const_value_attr, dump_die_shallow)
  8102. (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
  8103. (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_implicit_const.
  8104. 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
  8105. * dwarf2read.c (build_type_psymtabs_reader): New prototype.
  8106. (process_psymtab_comp_unit): Accept IS_DEBUG_TYPES.
  8107. (read_comp_units_from_section): New parameter abbrev_section, use
  8108. read_and_check_comp_unit_head, allocate signatured_type if needed.
  8109. (create_all_comp_units): Update read_comp_units_from_section caller.
  8110. 2017-08-23 Pedro Alves <palves@redhat.com>
  8111. PR remote/21852
  8112. * remote.c (add_current_inferior_and_thread): Set inferior_ptid
  8113. to null_ptid and switch to thread without reading the registers
  8114. after adding the inferior.
  8115. 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
  8116. * NEWS (Changes since GDB 8.0): Add set compile-gcc and show
  8117. compile-gcc.
  8118. * compile/compile.c (compile_gcc, show_compile_gcc): New.
  8119. (compile_to_object): Implement compile_gcc.
  8120. (_initialize_compile): Install "set compile-gcc". Initialize
  8121. compile_gcc.
  8122. 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
  8123. * compile/compile.c (compile_to_object): Conditionally call
  8124. set_verbose. Conditionally call compile or compile_v0.
  8125. 2017-08-07 Weimin Pan <weimin.pan@oracle.com>
  8126. * sparc64-tdep.h: (adi_normalize_address): New export.
  8127. * sparc-nat.h: (open_adi_tag_fd): New export.
  8128. * sparc64-linux-nat.c: (open_adi_tag_fd): New function.
  8129. * sparc64-linux-tdep.c:
  8130. (SEGV_ACCADI, SEGV_ADIDERR, SEGV_ADIPERR) New defines.
  8131. (sparc64_linux_handle_segmentation_fault): New function.
  8132. (sparc64_linux_init_abi): Register
  8133. sparc64_linux_handle_segmentation_fault
  8134. * sparc64-tdep.c: Include cli-utils.h,gdbcmd.h,auxv.h.
  8135. (sparc64_addr_bits_remove): New function.
  8136. (sparc64_init_abi): Register sparc64_addr_bits_remove.
  8137. (MAX_PROC_NAME_SIZE): New macro.
  8138. (AT_ADI_BLKSZ, AT_ADI_NBITS, AT_ADI_UEONADI) New defines.
  8139. (sparc64adilist): New variable.
  8140. (adi_proc_list): New variable.
  8141. (find_adi_info): New function.
  8142. (add_adi_info): New function.
  8143. (get_adi_info_proc): New function.
  8144. (get_adi_info): New function.
  8145. (info_adi_command): New function.
  8146. (read_maps_entry): New function.
  8147. (adi_available): New function.
  8148. (adi_normalize_address): New function.
  8149. (adi_align_address): New function.
  8150. (adi_convert_byte_count): New function.
  8151. (adi_tag_fd): New function.
  8152. (adi_is_addr_mapped): New function.
  8153. (adi_read_versions): New function.
  8154. (adi_write_versions): New function.
  8155. (adi_print_versions): New function.
  8156. (do_examine): New function.
  8157. (do_assign): New function.
  8158. (adi_examine_command): New function.
  8159. (adi_assign_command): New function.
  8160. (_initialize_sparc64_adi_tdep): New function.
  8161. 2017-08-22 Simon Marchi <simon.marchi@ericsson.com>
  8162. * breakpoint.c (breakpoints_info): Rename to ...
  8163. (info_breakpoints_command): ... this.
  8164. (watchpoints_info): Rename to ...
  8165. (info_watchpoints_command): ... this.
  8166. (tracepoints_info): Rename to ...
  8167. (info_tracepoints_command): ... this.
  8168. (_initialize_breakpoint): Adjust.
  8169. * dcache.c (dcache_info): Rename to ...
  8170. (info_display_command): ... this.
  8171. (_initialize_dcache): Adjust.
  8172. * frame.h (args_info): Rename to ...
  8173. (info_args_command): ... this.
  8174. (locals_info): Rename to ...
  8175. (info_locals_command): ... this.
  8176. * infcmd.c (nofp_registers_info): Rename to ...
  8177. (info_registers_command): ... this.
  8178. (float_info): Rename to ...
  8179. (info_float_command): ... this.
  8180. (program_info): Rename to ...
  8181. (info_program_command): ... this.
  8182. (all_registers_info): Rename to ...
  8183. (info_all_registers_command): ... this.
  8184. (vector_info): Rename to ...
  8185. (info_vector_command): ... this.
  8186. (float_info): Rename to ...
  8187. (info_float_command): ... this.
  8188. (_initialize_infcmd): Adjust.
  8189. * inferior.h (term_info): Rename to ...
  8190. (info_terminal_command): ... this.
  8191. * inflow.c (term_info): Rename to ...
  8192. (info_terminal_command): ... this.
  8193. (_initialize_inflow): Adjust.
  8194. * infrun.c (signals_info): Rename to ...
  8195. (info_signals_command): ... this.
  8196. (_initialize_infrun): Adjust.
  8197. * objc-lang.c (classes_info): Rename to ...
  8198. (info_classes_command): ... this.
  8199. (selectors_info): Rename to ...
  8200. (info_selectors_command): ... this.
  8201. (_initialize_objc_language): Adjust.
  8202. * printcmd.c (sym_info): Rename to ...
  8203. (info_symbol_command): ... this.
  8204. (address_info): Rename to ...
  8205. (info_address_command): ... this.
  8206. (display_info): Rename to ...
  8207. (info_display_command): ... this.
  8208. (_initialize_printcmd): Adjust.
  8209. * reverse.c (bookmarks_info): Rename to ...
  8210. (info_breakpoints_command): ... this.
  8211. (_initialize_reverse): Adjust.
  8212. * ser-go32.c (dos_info): Rename to ...
  8213. (info_serial_command): ... this.
  8214. (_initialize_ser_dos): Adjust.
  8215. * skip.c (skip_info): Rename to ...
  8216. (info_skip_command): ... this.
  8217. (_initialize_step_skip): Adjust.
  8218. * source.c (line_info): Rename to ...
  8219. (info_line_command): ... this.
  8220. (source_info): Rename to ...
  8221. (info_source_command)
  8222. * stack.c (frame_info): Rename to ...
  8223. (info_frame_command): ... this.
  8224. (locals_info): Rename to ...
  8225. (info_locals_command): ... this.
  8226. (args_info): Rename to ...
  8227. (info_args_command): ... this.
  8228. (_initialize_stack): Adjust.
  8229. * symtab.c (sources_info): Rename to ...
  8230. (info_sources_command): ... this.
  8231. (variables_info): Rename to ...
  8232. (info_variables_command): ... this.
  8233. (functions_info): Rename to ...
  8234. (info_functions_command): ... this.
  8235. (types_info): Rename to ...
  8236. (info_types_command): ... this.
  8237. (_initialize_symtab): Adjust.
  8238. * target.c (target_info): Rename to ...
  8239. (info_target_command): ... this.
  8240. (initialize_targets): Adjust.
  8241. * tracepoint.c (tvariables_info): Rename to ...
  8242. (info_tvariables_command): ... this.
  8243. (scope_info): Rename to ...
  8244. (info_scope_command): ... this.
  8245. (trace_dump_actions): Adjust.
  8246. (_initialize_tracepoint): Adjust.
  8247. 2017-08-22 Tom Tromey <tom@tromey.com>
  8248. * breakpoint.h (install_breakpoint): Update.
  8249. * breakpoint.c (add_solib_catchpoint): Update.
  8250. (install_breakpoint): Change argument to a std::unique_ptr.
  8251. (create_fork_vfork_event_catchpoint): Use std::unique_ptr.
  8252. (create_breakpoint_sal, create_breakpoint): Update.
  8253. (watch_command_1, catch_exec_command_1)
  8254. (strace_marker_create_breakpoints_sal): Use std::unique_ptr.
  8255. (add_to_breakpoint_chain): Change argument to a std::unique_ptr.
  8256. Return the breakpoint.
  8257. (set_raw_breakpoint_without_location, set_raw_breakpoint)
  8258. (new_single_step_breakpoint): Update.
  8259. * break-catch-throw.c (handle_gnu_v3_exceptions): Use
  8260. std::unique_ptr.
  8261. * break-catch-syscall.c (create_syscall_event_catchpoint): Use
  8262. std::unique_ptr.
  8263. * break-catch-sig.c (create_signal_catchpoint): Use
  8264. std::unique_ptr.
  8265. * ada-lang.c (create_ada_exception_catchpoint): Use
  8266. std::unique_ptr.
  8267. 2017-08-22 Tom Tromey <tom@tromey.com>
  8268. * breakpoint.c (add_solib_catchpoint): Use std::unique_ptr.
  8269. 2017-08-22 Tom Tromey <tom@tromey.com>
  8270. * psymtab.c (psymtab_search_name): Return a unique_xmalloc_ptr.
  8271. (lookup_partial_symbol): Update.
  8272. 2017-08-22 Tom Tromey <tom@tromey.com>
  8273. * source.h (rewrite_source_path): Return a unique_xmalloc_ptr.
  8274. * source.c (rewrite_source_path): Return a unique_xmalloc_ptr.
  8275. (find_and_open_source, symtab_to_fullname): Update.
  8276. * psymtab.c (psymtab_to_fullname): Update.
  8277. 2017-08-22 Tom Tromey <tom@tromey.com>
  8278. * exec.c (exec_file_attach): Update.
  8279. * linux-thread-db.c (try_thread_db_load): Update.
  8280. * guile/scm-safe-call.c (gdbscm_safe_source_script): Update.
  8281. * utils.c (gdb_realpath): Change return type.
  8282. (gdb_realpath_keepfile): Update.
  8283. (gdb_realpath_check_trailer, gdb_realpath_tests): New functions.
  8284. (_initialize_utils): Register the new self test.
  8285. * source.c (openp): Update.
  8286. (find_and_open_source): Update.
  8287. * nto-tdep.c (nto_find_and_open_solib): Update.
  8288. * main.c (set_gdb_data_directory): Update.
  8289. (captured_main_1): Update.
  8290. * dwarf2read.c (dwarf2_get_dwz_file): Update
  8291. (dw2_map_symbol_filenames): Update.
  8292. * auto-load.c (auto_load_safe_path_vec_update): Update.
  8293. (filename_is_in_auto_load_safe_path_vec): Change type of
  8294. "filename_realp".
  8295. (auto_load_objfile_script): Update.
  8296. (file_is_auto_load_safe): Update. Use std::string.
  8297. * utils.h (gdb_realpath): Return a gdb::unique_xmalloc_ptr.
  8298. 2017-08-22 Tom Tromey <tom@tromey.com>
  8299. * utils.c (gdb_realpath_keepfile): Return a
  8300. gdb::unique_xmalloc_ptr.
  8301. * exec.c (exec_file_attach): Update.
  8302. * utils.h (gdb_realpath_keepfile): Return a
  8303. gdb::unique_xmalloc_ptr.
  8304. 2017-08-22 Tom Tromey <tom@tromey.com>
  8305. * compile/compile.c (compile_file_command): Use
  8306. gdb::unique_xmalloc_ptr, std::string.
  8307. * utils.c (gdb_abspath): Change return type.
  8308. * source.c (openp): Update.
  8309. * objfiles.c (allocate_objfile): Update.
  8310. * main.c (set_gdb_data_directory): Update.
  8311. * utils.h (gdb_abspath): Return a gdb::unique_xmalloc_ptr.
  8312. 2017-08-22 Zhouyi Zhou <zhouzhouyi@gmail.com>
  8313. * cli-cmds.c (list_commands): List actual code around more than
  8314. one location.
  8315. 2017-08-21 John Baldwin <jhb@FreeBSD.org>
  8316. * fbsd-nat.c (fbsd_add_threads): Use array type for `lwps'.
  8317. 2017-08-21 Pedro Alves <palves@redhat.com>
  8318. PR gdb/19487
  8319. * c-exp.y (variable production): Handle function aliases.
  8320. * minsyms.c (msymbol_is_text): New function.
  8321. * minsyms.h (msymbol_is_text): Declare.
  8322. * symtab.c (find_function_alias_target): New function.
  8323. * symtab.h (find_function_alias_target): Declare.
  8324. 2017-08-21 Pedro Alves <palves@redhat.com>
  8325. * eval.c (evaluate_subexp_standard) <OP_TYPE>: Don't dig past
  8326. typedefs.
  8327. * typeprint.c (whatis_exp): If handling "whatis", and expression
  8328. is OP_TYPE, strip one typedef level. Otherwise don't strip
  8329. typedefs here.
  8330. * valops.c (value_cast): Save "to" type before resolving
  8331. stubs/typedefs. Use that type as resulting value's type.
  8332. 2017-08-18 Tom Tromey <tom@tromey.com>
  8333. Pedro Alves <palves@redhat.com>
  8334. * spu-multiarch.c (parse_spufs_run): Use scoped_restore.
  8335. * sol-thread.c (sol_thread_resume, sol_thread_wait)
  8336. (sol_thread_xfer_partial, rw_common): Use scoped_restore.
  8337. * procfs.c (procfs_do_thread_registers): Use scoped_restore.
  8338. * proc-service.c (ps_xfer_memory): Use scoped_restore.
  8339. * linux-tdep.c (linux_corefile_thread): Remove a cleanup.
  8340. (linux_get_siginfo_data): Add "thread" argument. Use
  8341. scoped_restore.
  8342. * linux-nat.c (linux_child_follow_fork)
  8343. (check_stopped_by_watchpoint): Use scoped_restore.
  8344. * infrun.c (displaced_step_prepare_throw, write_memory_ptid)
  8345. (THREAD_STOPPED_BY, handle_signal_stop): Use scoped_restore.
  8346. (restore_inferior_ptid, save_inferior_ptid): Remove.
  8347. * btrace.c (btrace_fetch): Use scoped_restore.
  8348. * bsd-uthread.c (bsd_uthread_fetch_registers)
  8349. (bsd_uthread_store_registers): Use scoped_restore.
  8350. * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
  8351. scoped_restore.
  8352. * aix-thread.c (aix_thread_resume, aix_thread_wait)
  8353. (aix_thread_xfer_partial): Use scoped_restore.
  8354. * inferior.h (save_inferior_ptid): Remove.
  8355. 2017-08-18 Yao Qi <yao.qi@linaro.org>
  8356. PR tdep/21818
  8357. * arm-tdep.c (gdb_print_insn_arm): Mark
  8358. USER_SPECIFIED_MACHINE_TYPE if exec_bfd isn't NULL.
  8359. 2017-08-18 Yao Qi <yao.qi@linaro.org>
  8360. * NEWS: Mention GDBserver's new option "--selftest".
  8361. * Makefile.in (SFILES): Remove selftest.c, add common/selftest.c.
  8362. * selftest.c: Move it to common/selftest.c.
  8363. * selftest.h: Move it to common/selftest.h.
  8364. * selftest-arch.c (reset): New function.
  8365. (tests_with_arch): Call reset.
  8366. 2017-08-18 Yao Qi <yao.qi@linaro.org>
  8367. * selftest.c (run_tests): Don't call QUIT. Call debug_printf
  8368. instead of exception_fprintf and printf_filtered.
  8369. 2017-08-18 Yao Qi <yao.qi@linaro.org>
  8370. * selftest.c (register_self_test): Rename it to
  8371. selftests::register_test.
  8372. (run_self_tests): selftest::run_tests.
  8373. * selftest.h: Update declarations.
  8374. * selftest-arch.c (register_self_test_foreach_arch): Rename it to
  8375. selftests::register_test_foreach_arch.
  8376. * selftest-arch.h: Update declaration.
  8377. * aarch64-tdep.c: Update.
  8378. * arm-tdep.c: Likewise.
  8379. * disasm-selftests.c: Likewise.
  8380. * dwarf2loc.c: Likewise.
  8381. * dwarf2-frame.c: Likewise.
  8382. * findvar.c: Likewise.
  8383. * gdbarch-selftests.c: Likewise.
  8384. * maint.c (maintenance_selftest): Likewise.
  8385. * regcache.c: Likewise.
  8386. * rust-exp.y: Likewise.
  8387. * selftest-arch.c: Likewise.
  8388. * unittests/environ-selftests.c: Likewise.
  8389. * unittests/function-view-selftests.c: Likewise.
  8390. * unittests/offset-type-selftests.c: Likewise.
  8391. * unittests/optional-selftests.c: Likewise.
  8392. * unittests/scoped_restore-selftests.c: Likewise.
  8393. * utils-selftests.c: Likewise.
  8394. 2017-08-17 Pedro Alves <palves@redhat.com>
  8395. * cli/cli-cmds.c (source_command): Delete 'old_source_verbose'
  8396. local.
  8397. 2017-08-17 Pedro Alves <palves@redhat.com>
  8398. * dwarf2read.c (struct dwarf2_cu) <line_header_die_owner>: New
  8399. field.
  8400. (reset_die_in_process): Delete, replaced by ...
  8401. (process_die_scope): ... this new class. Make it responsible for
  8402. freeing cu->line_header too.
  8403. (process_die): Use process_die_scope.
  8404. (handle_DW_AT_stmt_list): Record the line header's owner CU/DIE in
  8405. cu->line_header_die_owner. Don't release the line header if it's
  8406. owned by the CU.
  8407. (setup_type_unit_groups): Make the CU/DIE own the line header.
  8408. Don't release the line header here.
  8409. 2017-08-17 Alex Lindsay <alexlindsay239@gmail.com> (tiny change)
  8410. * elfread.c (elf_read_minimal_symbols): xfree synthsyms.
  8411. 2017-08-17 Ruslan Kabatsayev <b7.10110111@gmail.com>
  8412. * NEWS: Mention new shortcuts for nexti and stepi in TUI
  8413. Single-Key mode
  8414. 2017-08-16 Ruslan Kabatsayev <b7.10110111@gmail.com>
  8415. * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key
  8416. mode command list.
  8417. 2017-08-15 Stafford Horne <shorne@gmail.com>
  8418. * MAINTAINERS (Write After Approval): Add Stafford Horne.
  8419. 2017-08-15 Stafford Horne <shorne@gmail.com>
  8420. * xtensa-tdep.c (xtensa_init_reggroups): Use xstrdup for cpname.
  8421. 2017-08-15 Sergio Durigan Junior <sergiodj@redhat.com>
  8422. PR gdb/21954
  8423. * infcmd.c (unset_environment_command): Use the 'clear' method on
  8424. the environment instead of resetting it.
  8425. 2017-08-15 John Baldwin <jhb@FreeBSD.org>
  8426. * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian
  8427. platforms.
  8428. 2017-08-14 Tom Tromey <tom@tromey.com>
  8429. * valprint.c (print_octal_chars): Use HOST_CHAR_BIT.
  8430. (print_binary_chars): Likewise.
  8431. (BITS_IN_BYTES): Remove.
  8432. 2017-08-14 Tom Tromey <tom@tromey.com>
  8433. PR gdb/21675
  8434. * valprint.c (LOW_ZERO): Change value to 034.
  8435. (print_octal_chars): Add static_asserts for octal constants.
  8436. * printcmd.c (print_scalar_formatted): Add 'd' case.
  8437. 2017-08-11 Tom Tromey <tom@tromey.com>
  8438. * symfile.c (add_symbol_file_command): Use std::vector.
  8439. 2017-08-14 Tom Tromey <tom@tromey.com>
  8440. * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move.
  8441. * break-catch-syscall.c (create_syscall_event_catchpoint): Use
  8442. std::move.
  8443. * break-catch-sig.c (create_signal_catchpoint): Use std::move.
  8444. 2017-08-11 Pedro Alves <palves@redhat.com>
  8445. * infrun.c (process_event_stop_test): Adjust
  8446. function_name_is_marked_for_skip call.
  8447. * skip.c: Include <list>.
  8448. (skiplist_entry): Make it a class with private fields, and
  8449. getters/setters.
  8450. (skiplist_entry_chain): Delete.
  8451. (skiplist_entries): New.
  8452. (skiplist_entry_count): Delete.
  8453. (highest_skiplist_entry_num): New.
  8454. (ALL_SKIPLIST_ENTRIES, ALL_SKIPLIST_ENTRIES_SAFE): Delete.
  8455. (add_skiplist_entry): Delete.
  8456. (skiplist_entry::skiplist_entry): New.
  8457. (skiplist_entry::add_entry): New.
  8458. (skip_file_command, skip_function): Adjust.
  8459. (compile_skip_regexp): Delete.
  8460. (skip_command): Don't compile regexp here. Adjust to use
  8461. skiplist_entry::add_entry.
  8462. (skip_info): Adjust to use range-for and getters.
  8463. (skip_enable_command, skip_disable_command): Adjust to use
  8464. range-for and setters.
  8465. (skip_delete_command): Adjust to use std::list.
  8466. (add_skiplist_entry): Delete.
  8467. (skip_file_p): Delete, refactored as ...
  8468. (skiplist_entry::do_skip_file_p): ... this new method.
  8469. (skip_gfile_p): Delete, refactored as ...
  8470. (skiplist_entry::do_gskip_file_p): ... this new method.
  8471. (skip_function_p, skip_rfunction_p): Delete, refactored as ...
  8472. (skiplist_entry::skip_function_p): ... this new method.
  8473. (function_name_is_marked_for_skip): Now returns bool, and takes
  8474. the function sal by const reference. Adjust to use range-for and
  8475. skiplist_entry methods.
  8476. (_initialize_step_skip): Remove references to
  8477. skiplist_entry_chain, skiplist_entry_count.
  8478. * skip.h (function_name_is_marked_for_skip): Now returns bool, and
  8479. takes the function sal by const reference.
  8480. 2017-08-11 Yao Qi <yao.qi@linaro.org>
  8481. * dwarf2-frame.c (clear_pointer_cleanup): Remove.
  8482. (dwarf2_frame_cache): Remove reset_cache_cleanup.
  8483. (dwarf2_frame_cache):
  8484. * frame-unwind.c (frame_unwind_try_unwinder): Catch
  8485. RETURN_MASK_ALL and set *this_case to NULL.
  8486. * frame-unwind.h: Update comments.
  8487. 2017-08-11 Yao Qi <yao.qi@linaro.org>
  8488. * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Remove.
  8489. (dwarf2_frame_state_copy_regs): Remove.
  8490. (dwarf2_frame_state_free_regs): Remove.
  8491. (dwarf2_frame_state::~dwarf2_frame_state): Remove.
  8492. (dwarf2_restore_rule): Call method .alloc_regs instead of
  8493. dwarf2_frame_state_alloc_regs.
  8494. (execute_cfa_program): Likewise. Call dwarf2_frame_state_reg_info
  8495. constructor. Call std::move.
  8496. (dwarf2_fetch_cfa_info): Don't call dwarf2_frame_state_copy_regs.
  8497. (dwarf2_frame_cache): Likewise.
  8498. [GDB_SELF_TEST]: Include selftest.h and
  8499. selftest-arch.h.
  8500. [GDB_SELF_TEST] (execute_cfa_program_test): New function.
  8501. (_initialize_dwarf2_frame) [GDB_SELF_TEST]: Register
  8502. execute_cfa_program_test.
  8503. * dwarf2-frame.h (dwarf2_frame_state_reg_info): Add ctor, dtor,
  8504. copy ctor, assignment operator, move assignment.
  8505. <alloc_regs>: New method.
  8506. <swap>: New method.
  8507. (struct dwarf2_frame_state): Delete dtor.
  8508. (dwarf2_frame_state_alloc_regs): Remove declaration.
  8509. * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): Don't call
  8510. dwarf2_frame_state_alloc_regs, use .alloc_regs instead.
  8511. 2017-08-11 Yao Qi <yao.qi@linaro.org>
  8512. * dwarf2-frame.c (dwarf2_frame_state_free): Remove.
  8513. (dwarf2_frame_state::dwarf2_frame_state): New.
  8514. (dwarf2_frame_state::~dwarf2_frame_state): New.
  8515. (dwarf2_fetch_cfa_info): Update.
  8516. (dwarf2_frame_cache): Remove old_chain. Change 'fs' to an object
  8517. rather than a pointer. Update code.
  8518. * dwarf2-frame.h (struct dwarf2_frame_state): Declare ctor and
  8519. dtor.
  8520. <data_align, code_align, retaddr_column>: Change them to const.
  8521. <armcc_cfa_offsets_sf, armcc_cfa_offsets_reversed>: Change them
  8522. to bool.
  8523. 2017-08-11 Yao Qi <yao.qi@linaro.org>
  8524. * dwarf2-frame.h (struct dwarf2_frame_state_reg) <exp_len>: Remove.
  8525. <loc.exp>: New field.
  8526. * dwarf2-frame.c (execute_cfa_program): Update.
  8527. (dwarf2_frame_prev_register): Update.
  8528. 2017-08-10 Pedro Alves <palves@redhat.com>
  8529. * common/gdb_unique_ptr.h (xfree_deleter<T[]>): Define.
  8530. 2017-08-09 John Baldwin <jhb@FreeBSD.org>
  8531. * fbsd-nat.c (struct fbsd_fork_info): Remove.
  8532. (fbsd_pending_children): Use std::list.
  8533. (fbsd_remember_child): Likewise.
  8534. (fbsd_is_child_pending): Likewise.
  8535. (fbsd_pending_vfork_done): Use std::forward_list.
  8536. (fbsd_add_vfork_done): Likewise.
  8537. (fbsd_is_vfork_done_pending): Likewise.
  8538. (fbsd_next_vfork_done): Likewise.
  8539. 2017-08-09 John Baldwin <jhb@FreeBSD.org>
  8540. * fbsd-nat.c [HAVE_KINFO_GETVMMAP] (struct free_deleter): New.
  8541. (fbsd_find_memory_regions): Use free_deleter with std::unique_ptr.
  8542. [!HAVE_KINFO_GETVMMAP] (fbsd_find_memory_regions): Use std::string
  8543. for `mapfilename'.
  8544. (fbsd_xfer_partial): Use gdb::byte_vector.
  8545. (fbsd_add_threads): Use gdb::unique_xmalloc_ptr.
  8546. 2017-08-09 John Baldwin <jhb@FreeBSD.org>
  8547. * fbsd-nat.c: [!HAVE_KINFO_GETVMMAP]: Include <sys/user.h> and
  8548. "filestuff.h".
  8549. (fbsd_find_memory_regions): Fix `mapfile' initialization.
  8550. 2017-08-09 Tom Tromey <tom@tromey.com>
  8551. * skip.c (skiplist_entry): New constructor.
  8552. (skiplist_entry::enabled, skiplist_entry::function_is_regexp)
  8553. (skiplist_entry::file_is_glob): Now bool.
  8554. (skiplist_entry::file, skiplist_entry::function): Now
  8555. std::string.
  8556. (make_skip_entry): Return a unique_ptr. Use new.
  8557. (free_skiplist_entry, free_skiplist_entry_cleanup)
  8558. (make_free_skiplist_entry_cleanup): Remove.
  8559. (skip_command, skip_disable_command, add_skiplist_entry)
  8560. (skip_form_bytes, compile_skip_regexp, skip_command, skip_info)
  8561. (skip_file_p, skip_gfile_p, skip_function_p, skip_rfunction_p)
  8562. (function_name_is_marked_for_skip): Update.
  8563. (skip_delete_command): Update. Use delete.
  8564. 2017-08-09 Jiong Wang <jiong.wang@arm.com>
  8565. * aarch64-linux-tdep.c: Include "auxv.h" and "elf/common.h".
  8566. (aarch64_linux_core_read_description): New function.
  8567. (aarch64_linux_init_abi): Register gdbarch_core_read_description.
  8568. 2017-08-09 Pedro Alves <palves@redhat.com>
  8569. * cp-name-parser.y (cp_comp_to_string): Return a
  8570. gdb::unique_xmalloc_ptr<char>.
  8571. * cp-support.c (replace_typedefs_qualified_name)
  8572. (replace_typedefs): Adjust to use gdb::unique_xmalloc_ptr<char>.
  8573. (cp_canonicalize_string_full): Use op= instead of explicit
  8574. convertion.
  8575. (cp_class_name_from_physname, method_name_from_physname)
  8576. (cp_func_name, cp_remove_params): Adjust to use
  8577. gdb::unique_xmalloc_ptr<char>.
  8578. * cp-support.h (cp_comp_to_string): Return a
  8579. gdb::unique_xmalloc_ptr<char>.
  8580. * python/py-type.c (typy_lookup_type): Adjust to use
  8581. gdb::unique_xmalloc_ptr<char>.
  8582. 2017-08-09 H.J. Lu <hongjiu.lu@intel.com>
  8583. * dwarf2read.c (dwarf2_string_attr): Fix a typo.
  8584. 2017-08-09 Alex Lindsay <alexlindsay239@gmail.com>
  8585. Yao Qi <yao.qi@linaro.org>
  8586. * cp-support.c (cp_canonicalize_string_full): Use
  8587. gdb::unique_xmalloc_ptr<char>.
  8588. (cp_canonicalize_string): Likewise.
  8589. 2017-08-09 Yao Qi <yao.qi@linaro.org>
  8590. * features/Makefile (WHICH): Remove i386/ non-linux stuff.
  8591. * regformats/i386/amd64-avx-avx512.dat: Remove.
  8592. * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Remove.
  8593. * regformats/i386/amd64-avx-mpx.dat:Remove.
  8594. * regformats/i386/amd64-avx.dat: Remove.
  8595. * regformats/i386/amd64-mpx.dat: Remove.
  8596. * regformats/i386/i386-avx-avx512.dat: Remove.
  8597. * regformats/i386/i386-avx-mpx-avx512-pku.dat: Remove.
  8598. * regformats/i386/i386-avx-mpx.dat: Remove.
  8599. * regformats/i386/i386-mmx.dat: Remove.
  8600. * regformats/i386/i386-mpx.dat: Remove.
  8601. 2017-08-09 Yao Qi <yao.qi@linaro.org>
  8602. * amd64-tdep.h (tdesc_x32): Remove the declaration.
  8603. * amd64-tdep.c: Don't include features/i386/x32*.c.
  8604. (_initialize_amd64_tdep): Don't call initialize_tdesc_x32*
  8605. functions.
  8606. * features/Makefile (WHICH): Remove i386/x32, i386/x32-avx,
  8607. and i386/x32-avx-avx512.
  8608. (XMLTOC): Remove i386/x32-avx.xml, i386/x32-avx-avx512.xml,
  8609. and i386/x32.xml.
  8610. * features/i386/x32-avx-avx512.c: Removed.
  8611. * features/i386/x32-avx-avx512.xml: Removed.
  8612. * features/i386/x32-avx.c: Removed.
  8613. * features/i386/x32-avx.xml: Removed.
  8614. * features/i386/x32.c: Removed.
  8615. * features/i386/x32.xml: Removed.
  8616. * regformats/i386/x32-avx-avx512.dat: Removed.
  8617. * regformats/i386/x32-avx.dat: Removed.
  8618. * regformats/i386/x32.dat: Removed.
  8619. 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
  8620. PR breakpoints/21886
  8621. * mem-break.c (default_memory_insert_breakpoint): Use
  8622. `->placed_address' rather than `->reqstd_address' for the
  8623. breakpoint location.
  8624. 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
  8625. * arch-utils.c (default_print_insn): Remove arch/mach/endian
  8626. assertions.
  8627. 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
  8628. * gdbarch.sh (gdbarch_info): Replace the `tdep_info' member with
  8629. a union of `tdep_info', `tdesc_data' and `id'.
  8630. * aarch64-tdep.c (aarch64_gdbarch_init): Use `info.tdesc_data'
  8631. rather than `info.tdep_info'.
  8632. * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
  8633. * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
  8634. * i386-tdep.c (i386_gdbarch_init): Likewise.
  8635. * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
  8636. * mips-tdep.c (mips_gdbarch_init): Likewise.
  8637. * nds32-tdep.c (nds32_gdbarch_init): Likewise.
  8638. * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
  8639. * ppc-linux-tdep.c (ppu2spu_sniffer): Use `info.id' rather than
  8640. `info.tdep_info'.
  8641. (ppc_linux_init_abi): Use `info.tdesc_data' rather than
  8642. `info.tdep_info'.
  8643. * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
  8644. * spu-multiarch.c (spu_gdbarch): Use `info.id' rather than
  8645. `info.tdep_info'.
  8646. * spu-tdep.c (spu_gdbarch_init): Likewise.
  8647. * gdbarch.h: Regenerate.
  8648. 2017-08-07 Leszek Swirski <leszeks@google.com>
  8649. PR symtab/20899
  8650. * dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt.
  8651. 2017-08-07 Simon Marchi <simon.marchi@ericsson.com>
  8652. * remote-sim.c (gdbsim_load): Remove char **argv local variable.
  8653. (gdbsim_open): Rename gdb_argv args object to argv.
  8654. 2017-08-05 Tom Tromey <tom@tromey.com>
  8655. * compile/compile-object-load.c (compile_object_load): Use
  8656. gdb::unique_xmalloc_ptr.
  8657. * cli/cli-dump.c (scan_filename): Rename from
  8658. scan_filename_with_cleanup. Change return type.
  8659. (scan_expression): Rename from scan_expression_with_cleanup.
  8660. Change return type.
  8661. (dump_memory_to_file, dump_value_to_file, restore_command):
  8662. Use gdb::unique_xmalloc_ptr. Update.
  8663. * cli/cli-cmds.c (find_and_open_script): Use
  8664. gdb::unique_xmalloc_ptr.
  8665. * tracefile-tfile.c (tfile_open): Use gdb::unique_xmalloc_ptr.
  8666. * symmisc.c (maintenance_print_symbols)
  8667. (maintenance_print_msymbols): Use gdb::unique_xmalloc_ptr.
  8668. * symfile.c (symfile_bfd_open, generic_load)
  8669. (add_symbol_file_command, remove_symbol_file_command): Use
  8670. gdb::unique_xmalloc_ptr.
  8671. * source.c (openp): Use gdb::unique_xmalloc_ptr.
  8672. * psymtab.c (maintenance_print_psymbols): Use
  8673. gdb::unique_xmalloc_ptr.
  8674. * corelow.c (core_open): Use gdb::unique_xmalloc_ptr.
  8675. * breakpoint.c (save_breakpoints): Use gdb::unique_xmalloc_ptr.
  8676. * solib.c (solib_map_sections): Use gdb::unique_xmalloc_ptr.
  8677. (reload_shared_libraries_1): Likewise.
  8678. 2017-08-05 Tom Tromey <tom@tromey.com>
  8679. * rust-exp.y (rust_op_ptr, set_field): Remove typedefs.
  8680. (rust_op_vector, rust_set_vector): New typedefs.
  8681. (current_parser): New global.
  8682. (work_obstack): Change to pointer type. Update all users.
  8683. (rust_ast, pstate): Remove globals.
  8684. (struct rust_parser): New.
  8685. (%union) <params, field_inits>: Change type.
  8686. (start, tuple_expr, unit_expr, struct_expr_list, literal)
  8687. (field_expr, expr_list, maybe_expr_list, type_list): Update.
  8688. (ast_call_ish, ast_path, ast_function_type, ast_tuple_type)
  8689. (convert_params_to_types, convert_params_to_expression): Change
  8690. type of "params".
  8691. (ast_string): Change type of "fields".
  8692. (rust_parse): Make a rust_parser. Remove cleanups.
  8693. (rust_lex_tests): Make and install an auto_obstack.
  8694. 2017-08-04 Yao Qi <yao.qi@linaro.org>
  8695. * configure.srv (ipa_x32_linux_regobj): New.
  8696. * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512
  8697. instead of X86_TDESC_AVX512.
  8698. (initialize_low_tracepoint): Call
  8699. init_registers_x32_avx_avx512_linux.
  8700. 2017-08-04 Yao Qi <yao.qi@linaro.org>
  8701. * utils.h (gdb_argv): Add namespace std for nullptr_t.
  8702. 2017-08-03 Ruslan Kabatsayev <b7.10110111@gmail.com>
  8703. * MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev.
  8704. 2017-08-03 Tom Tromey <tom@tromey.com>
  8705. * utils.c (make_cleanup_freeargv, do_freeargv, gdb_buildargv):
  8706. Remove.
  8707. * utils.h (make_cleanup_freeargv, gdb_buildargv): Remove.
  8708. 2017-08-03 Tom Tromey <tom@tromey.com>
  8709. * python/py-param.c (compute_enum_values): Use gdb_argv.
  8710. 2017-08-03 Tom Tromey <tom@tromey.com>
  8711. * utils.h (struct gdb_argv_deleter): New.
  8712. (gdb_argv): New class.
  8713. * utils.c (gdb_argv::reset): New method.
  8714. * tracepoint.c (delete_trace_variable_command): Use gdb_argv.
  8715. * tracefile.c (tsave_command): Use gdb_argv.
  8716. * top.c (new_ui_command): Use gdb_argv.
  8717. * symmisc.c (maintenance_print_symbols)
  8718. (maintenance_print_msymbols, maintenance_expand_symtabs): Use gdb_argv.
  8719. * symfile.c (symbol_file_command, generic_load)
  8720. (remove_symbol_file_command): Use gdb_argv.
  8721. * stack.c (backtrace_command): Use gdb_argv.
  8722. * source.c (add_path, show_substitute_path_command)
  8723. (unset_substitute_path_command, set_substitute_path_command):
  8724. Use gdb_argv.
  8725. * skip.c (skip_command): Use gdb_argv. Use gdb_buildargv.
  8726. * ser-mingw.c (pipe_windows_open): Use gdb_argv.
  8727. * remote.c (extended_remote_run, remote_put_command)
  8728. (remote_get_command, remote_delete_command): Use gdb_argv.
  8729. * remote-sim.c (gdbsim_load, gdbsim_create_inferior)
  8730. (gdbsim_open): Use gdb_argv.
  8731. * python/py-cmd.c (gdbpy_string_to_argv): Use gdb_argv.
  8732. * psymtab.c (maintenance_print_psymbols): Use gdb_argv.
  8733. * procfs.c (procfs_info_proc): Use gdb_argv.
  8734. * interps.c (interpreter_exec_cmd): Use gdb_argv.
  8735. * infrun.c (handle_command): Use gdb_argv.
  8736. * inferior.c (add_inferior_command, clone_inferior_command):
  8737. Use gdb_argv.
  8738. * guile/scm-string.c (gdbscm_string_to_argv): Use gdb_argv.
  8739. * exec.c (exec_file_command): Use gdb_argv.
  8740. * cli/cli-cmds.c (alias_command): Use gdb_argv.
  8741. * compile/compile.c (build_argc_argv): Use gdb_argv.
  8742. 2017-08-03 Tom Tromey <tom@tromey.com>
  8743. * python/python.c (gdbpy_decode_line): Use unique_xmalloc_ptr.
  8744. 2017-08-03 Tom Tromey <tom@tromey.com>
  8745. * python/python.c (compute_python_string): Return std::string.
  8746. (gdbpy_eval_from_control_command): Update.
  8747. (do_start_initialization): Use std::string.
  8748. * python/py-varobj.c (py_varobj_iter_next): Use string_printf, not
  8749. xstrprintf.
  8750. * python/py-breakpoint.c (local_setattro): Use string_printf, not
  8751. xstrprintf.
  8752. 2017-08-03 Tom Tromey <tom@tromey.com>
  8753. * top.h (do_restore_instream_cleanup): Remove.
  8754. * top.c (do_restore_instream_cleanup): Remove.
  8755. (read_command_file): Use scoped_restore.
  8756. * cli/cli-script.c (execute_user_command): Use scoped_restore.
  8757. 2017-08-03 Tom Tromey <tom@tromey.com>
  8758. * cli/cli-script.c (execute_user_command)
  8759. (execute_control_command): Use scoped_restore.
  8760. 2017-08-03 Tom Tromey <tom@tromey.com>
  8761. * cli/cli-script.c (do_restore_user_call_depth): Remove.
  8762. (execute_user_command): Remove user_call_depth; use
  8763. user_args_stack's size instead.
  8764. 2017-08-03 Tom Tromey <tom@tromey.com>
  8765. * top.h (in_user_command): Remove.
  8766. * top.c (in_user_command): Remove.
  8767. * cli/cli-script.c (do_restore_user_call_depth)
  8768. (execute_user_command): Update.
  8769. 2017-08-03 Tom Tromey <tom@tromey.com>
  8770. * valops.c (search_struct_method): Use gdb::byte_vector.
  8771. * valarith.c (value_concat): Use std::vector.
  8772. * target.c (memory_xfer_partial): Use gdb::byte_vector.
  8773. (simple_search_memory): Likewise.
  8774. * printcmd.c (find_string_backward): Use gdb::byte_vector.
  8775. * mi/mi-main.c (mi_cmd_data_write_memory): Use gdb::byte_vector.
  8776. * gcore.c (gcore_copy_callback): Use gdb::byte_vector.
  8777. * elfread.c (elf_rel_plt_read): Use std::string.
  8778. * cp-valprint.c (cp_print_value): Use gdb::byte_vector.
  8779. * cli/cli-dump.c (restore_section_callback): Use
  8780. gdb::byte_vector.
  8781. 2017-08-03 Tom Tromey <tom@tromey.com>
  8782. * jit.c (jit_reader_load_command): Use unique_xmalloc_ptr.
  8783. 2017-08-03 Tom Tromey <tom@tromey.com>
  8784. * tui/tui-regs.c (tui_restore_gdbout): Remove.
  8785. (tui_register_format): Use scoped_restore.
  8786. 2017-08-03 Tom Tromey <tom@tromey.com>
  8787. * reverse.c (exec_direction_default): Remove.
  8788. (exec_reverse_once): Use scoped_restore.
  8789. * remote.c (restore_remote_timeout): Remove.
  8790. (remote_flash_erase, remote_flash_write, remote_flash_done)
  8791. (readchar, remote_serial_write): Use scoped_restore.
  8792. * cli/cli-script.c (struct source_cleanup_lines_args)
  8793. (source_cleanup_lines): Remove.
  8794. (script_from_file): Use scoped_restore.
  8795. * cli/cli-cmds.c (source_verbose_cleanup): Remove.
  8796. (source_command): Use scoped_restore.
  8797. 2017-08-03 Tom Tromey <tom@tromey.com>
  8798. * utils.h (make_cleanup_free_so): Remove.
  8799. * utils.c (do_free_so, make_cleanup_free_so): Remove.
  8800. * solist.h (struct so_deleter): New.
  8801. (so_list_up): New typedef.
  8802. * solib-svr4.c (svr4_read_so_list): Use so_list_up.
  8803. 2017-08-03 Tom Tromey <tom@tromey.com>
  8804. * utils.h (make_cleanup_restore_current_language): Remove.
  8805. * utils.c (do_restore_current_language)
  8806. (make_cleanup_restore_current_language): Remove.
  8807. * parse.c (parse_exp_in_context_1)
  8808. (parse_expression_with_language): Use
  8809. scoped_restore_current_language.
  8810. * mi/mi-main.c (mi_cmd_execute): Use
  8811. scoped_restore_current_language.
  8812. * language.h (scoped_restore_current_language): New class.
  8813. 2017-08-03 Tom Tromey <tom@tromey.com>
  8814. * compile/compile.c (cleanup_unlink_file): Remove.
  8815. (compile_to_object): Use gdb::unlinker.
  8816. (eval_compile_command): Likewise.
  8817. 2017-08-03 Tom Tromey <tom@tromey.com>
  8818. * utils.h (make_cleanup_fclose): Remove.
  8819. * utils.c (do_fclose_cleanup, make_cleanup_fclose): Remove.
  8820. 2017-08-03 Tom Tromey <tom@tromey.com>
  8821. * top.c (open_terminal_stream): Return gdb_file_up.
  8822. (new_ui_command): Update.
  8823. 2017-08-03 Tom Tromey <tom@tromey.com>
  8824. * source.c (print_source_lines_base, forward_search_command)
  8825. (reverse_search_command): Use gdb_file_up.
  8826. 2017-08-03 Tom Tromey <tom@tromey.com>
  8827. * fbsd-nat.c (fbsd_find_memory_regions): Update.
  8828. 2017-08-03 Tom Tromey <tom@tromey.com>
  8829. * cli/cli-cmds.c (find_and_open_script): Change return type.
  8830. Remove "streamp" and "full_path" parameters.
  8831. (source_script_with_search): Update.
  8832. * auto-load.c (source_script_file): Update.
  8833. * cli/cli-cmds.h (find_and_open_script): Change type.
  8834. (open_script): New struct.
  8835. 2017-08-03 Tom Tromey <tom@tromey.com>
  8836. * xml-support.c (xml_fetch_content_from_file): Update.
  8837. * ui-file.c (stdio_file::open): Update.
  8838. * tracefile-tfile.c (tfile_start): Update.
  8839. * remote.c (remote_file_put, remote_file_get): Update.
  8840. * nat/linux-procfs.c (linux_proc_get_int)
  8841. (linux_proc_pid_get_state, linux_proc_tid_get_name): Update.
  8842. * nat/linux-osdata.c (linux_common_core_of_thread): Update.
  8843. (command_from_pid, commandline_from_pid, linux_xfer_osdata_cpus)
  8844. (print_sockets, linux_xfer_osdata_shm, linux_xfer_osdata_sem)
  8845. (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Update.
  8846. * nat/linux-btrace.c (linux_determine_kernel_start): Update.
  8847. * linux-nat.c (linux_proc_pending_signals): Update.
  8848. * dwarf2read.c (write_psymtabs_to_index): Use gdb_file_up.
  8849. (file_closer): Remove.
  8850. * compile/compile.c (compile_to_object): Update.
  8851. * common/filestuff.h (struct gdb_file_deleter): New.
  8852. (gdb_file_up): New typedef.
  8853. (gdb_fopen_cloexec): Change return type.
  8854. * common/filestuff.c (gdb_fopen_cloexec): Return gdb_file_up.
  8855. * cli/cli-dump.c (fopen_with_cleanup): Remove.
  8856. (dump_binary_file, restore_binary_file): Update.
  8857. * auto-load.c (auto_load_objfile_script_1): Update.
  8858. 2017-08-03 Tom Tromey <tom@tromey.com>
  8859. * tracepoint.c (tvariables_info_1): Use ui_out_emit_table.
  8860. (info_static_tracepoint_markers_command): Likewise.
  8861. * solib.c (info_sharedlibrary_command): Use ui_out_emit_table.
  8862. * skip.c (skip_info): Use ui_out_emit_table.
  8863. * progspace.c (print_program_space): Use ui_out_emit_table.
  8864. * osdata.c (info_osdata): Use ui_out_emit_table.
  8865. * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Use
  8866. ui_out_emit_table.
  8867. * linux-thread-db.c (info_auto_load_libthread_db): Use
  8868. ui_out_emit_table.
  8869. * inferior.c (print_inferior): Use ui_out_emit_table.
  8870. * gdb_bfd.c (maintenance_info_bfds): Use ui_out_emit_table.
  8871. * breakpoint.c (breakpoint_1): Use ui_out_emit_table.
  8872. * auto-load.c (auto_load_info_scripts): Use ui_out_emit_table.
  8873. * ada-tasks.c (print_ada_task_info): Use ui_out_emit_table.
  8874. * ui-out.h (class ui_out_emit_table): New.
  8875. 2017-08-02 Maciej W. Rozycki <macro@imgtec.com>
  8876. * mips-tdep.c (mips_fpu_type_str): New function.
  8877. (mips_dump_tdep): Call it.
  8878. 2017-08-01 Maciej W. Rozycki <macro@imgtec.com>
  8879. * mips-tdep.c (mips_gdbarch_init): Use MIPS_FPU_TYPE to access
  8880. `->mips_fpu_type'.
  8881. 2017-07-31 Xavier Roirand <roirand@adacore.com>
  8882. * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
  8883. 2017-07-27 Xavier Roirand <roirand@adacore.com>
  8884. * MAINTAINERS (Write After Approval): Add Xavier Roirand.
  8885. 2017-07-26 Yao Qi <yao.qi@linaro.org>
  8886. * cli/cli-cmds.c (maintenancechecklist): New variable.
  8887. * gdbcmd.h (maintenancechecklist): Declare it.
  8888. * i386-linux-tdep.c (_initialize_i386_linux_tdep) [GDB_SELF_TEST]:
  8889. Call i386_linux_read_description with different masks.
  8890. * maint.c (maintenance_check_command): New function.
  8891. (_initialize_maint_cmds): Call add_prefix_cmd.
  8892. * target-descriptions.c (tdesc_reg): override operator != and ==.
  8893. (tdesc_type): Likewise.
  8894. (tdesc_feature): Likewise.
  8895. (target_desc): Likewise.
  8896. [GDB_SELF_TEST] (selftests::record_xml_tdesc): New function.
  8897. (maintenance_check_xml_descriptions): New function.
  8898. (_initialize_target_descriptions) Add command "xml-descriptions".
  8899. * target-descriptions.h (selftests::record_xml_tdesc): Declare.
  8900. 2017-07-26 Yao Qi <yao.qi@linaro.org>
  8901. * i386-linux-tdep.c: Don't include features/i386/i386-*linux.c.
  8902. Include features/i386/32bit-*.c.
  8903. (i386_linux_read_description): Generate target description if it
  8904. doesn't exist.
  8905. (_initialize_i386_linux_tdep): Don't call _initialize_tdesc_i386
  8906. functions.
  8907. * features/i386/32bit-linux.c: Re-generated.
  8908. * features/i386/32bit-sse.c: Likewise.
  8909. * target-descriptions.c (print_c_feature::visit): Print code to
  8910. set register number if needed.
  8911. (print_c_feature) <m_next_regnum>: New field.
  8912. 2017-07-26 Yao Qi <yao.qi@linaro.org>
  8913. * features/Makefile (CFILES): Rename with TDESC_CFILES.
  8914. (FEATURE_XMLFILES): New.
  8915. (FEATURE_CFILES): New.
  8916. New rules.
  8917. (clean-cfiles): Remove generated c files.
  8918. * features/i386/32bit-avx.c: Generated.
  8919. * features/i386/32bit-avx512.c: Generated.
  8920. * features/i386/32bit-core.c: Generated.
  8921. * features/i386/32bit-linux.c: Generated.
  8922. * features/i386/32bit-mpx.c: Generated.
  8923. * features/i386/32bit-pkeys.c: Generated.
  8924. * features/i386/32bit-sse.c: Generated.
  8925. * target-descriptions.c: Include algorithm.
  8926. (tdesc_element_visitor): Add method visit_end.
  8927. (print_c_tdesc): Implement visit_end.
  8928. (print_c_tdesc:: m_filename_after_features): Move it to
  8929. protected.
  8930. (print_c_feature): New class.
  8931. (maint_print_c_tdesc_cmd): Use print_c_feature if XML file
  8932. name starts with "i386/32bit-".
  8933. 2017-07-26 Yao Qi <yao.qi@linaro.org>
  8934. * target-descriptions.c (tdesc_element_visitor): New class.
  8935. (tdesc_element): New class.
  8936. (tdesc_reg): Inherit from tdesc_element.
  8937. (tdesc_reg::accept): New function.
  8938. (tdesc_type): Inherit from tdesc_element.
  8939. (tdesc_type::accept): New function.
  8940. (tdesc_feature): Inherit from tdesc_element.
  8941. (tdesc_feature::accept): New function.
  8942. (target_desc): Inherit from tdesc_element.
  8943. (target_desc::target_desc): New.
  8944. (target_desc::~target_desc): New.
  8945. (target_desc::accept): New.
  8946. (allocate_target_description): Use new.
  8947. (free_target_description): Use delete.
  8948. (print_c_tdesc): New class.
  8949. (maint_print_c_tdesc_cmd): Adjust.
  8950. * features/aarch64.c: Re-generated.
  8951. * features/arc-arcompact.c: Re-generated.
  8952. * features/arc-v2.c: Re-generated.
  8953. * features/arm/arm-with-iwmmxt.c: Re-generated.
  8954. * features/arm/arm-with-m.c: Re-generated.
  8955. * features/arm/arm-with-m-fpa-layout.c: Re-generated.
  8956. * features/arm/arm-with-m-vfp-d16.c: Re-generated.
  8957. * features/arm/arm-with-neon.c: Re-generated.
  8958. * features/arm/arm-with-vfpv2.c: Re-generated.
  8959. * features/arm/arm-with-vfpv3.c: Re-generated.
  8960. * features/i386/amd64-avx-avx512.c: Re-generated.
  8961. * features/i386/amd64-avx-avx512-linux.c: Re-generated.
  8962. * features/i386/amd64-avx.c: Re-generated.
  8963. * features/i386/amd64-avx-linux.c: Re-generated.
  8964. * features/i386/amd64-avx-mpx-avx512-pku.c: Re-generated.
  8965. * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
  8966. * features/i386/amd64-avx-mpx.c: Re-generated.
  8967. * features/i386/amd64-avx-mpx-linux.c: Re-generated.
  8968. * features/i386/amd64.c: Re-generated.
  8969. * features/i386/amd64-linux.c: Re-generated.
  8970. * features/i386/amd64-mpx.c: Re-generated.
  8971. * features/i386/amd64-mpx-linux.c: Re-generated.
  8972. * features/i386/i386-avx-avx512.c: Re-generated.
  8973. * features/i386/i386-avx-avx512-linux.c: Re-generated.
  8974. * features/i386/i386-avx.c: Re-generated.
  8975. * features/i386/i386-avx-linux.c: Re-generated.
  8976. * features/i386/i386-avx-mpx-avx512-pku.c: Re-generated.
  8977. * features/i386/i386-avx-mpx-avx512-pku-linux.c: Re-generated.
  8978. * features/i386/i386-avx-mpx.c: Re-generated.
  8979. * features/i386/i386-avx-mpx-linux.c: Re-generated.
  8980. * features/i386/i386.c: Re-generated.
  8981. * features/i386/i386-linux.c: Re-generated.
  8982. * features/i386/i386-mmx.c: Re-generated.
  8983. * features/i386/i386-mmx-linux.c: Re-generated.
  8984. * features/i386/i386-mpx.c: Re-generated.
  8985. * features/i386/i386-mpx-linux.c: Re-generated.
  8986. * features/i386/x32-avx-avx512.c: Re-generated.
  8987. * features/i386/x32-avx-avx512-linux.c: Re-generated.
  8988. * features/i386/x32-avx.c: Re-generated.
  8989. * features/i386/x32-avx-linux.c: Re-generated.
  8990. * features/i386/x32.c: Re-generated.
  8991. * features/i386/x32-linux.c: Re-generated.
  8992. * features/microblaze.c: Re-generated.
  8993. * features/microblaze-with-stack-protect.c: Re-generated.
  8994. * features/mips64-dsp-linux.c: Re-generated.
  8995. * features/mips64-linux.c: Re-generated.
  8996. * features/mips-dsp-linux.c: Re-generated.
  8997. * features/mips-linux.c: Re-generated.
  8998. * features/nds32.c: Re-generated.
  8999. * features/nios2.c: Re-generated.
  9000. * features/nios2-linux.c: Re-generated.
  9001. * features/rs6000/powerpc-32.c: Re-generated.
  9002. * features/rs6000/powerpc-32l.c: Re-generated.
  9003. * features/rs6000/powerpc-403.c: Re-generated.
  9004. * features/rs6000/powerpc-403gc.c : Re-generated.
  9005. * features/rs6000/powerpc-405.c: Re-generated.
  9006. * features/rs6000/powerpc-505.c: Re-generated.
  9007. * features/rs6000/powerpc-601.c: Re-generated.
  9008. * features/rs6000/powerpc-602.c: Re-generated.
  9009. * features/rs6000/powerpc-603.c: Re-generated.
  9010. * features/rs6000/powerpc-604.c: Re-generated.
  9011. * features/rs6000/powerpc-64.c: Re-generated.
  9012. * features/rs6000/powerpc-64l.c: Re-generated.
  9013. * features/rs6000/powerpc-7400.c: Re-generated.
  9014. * features/rs6000/powerpc-750.c: Re-generated.
  9015. * features/rs6000/powerpc-860.c: Re-generated.
  9016. * features/rs6000/powerpc-altivec32.c: Re-generated.
  9017. * features/rs6000/powerpc-altivec32l.c: Re-generated.
  9018. * features/rs6000/powerpc-altivec64.c: Re-generated.
  9019. * features/rs6000/powerpc-altivec64l.c: Re-generated.
  9020. * features/rs6000/powerpc-cell32l.c: Re-generated.
  9021. * features/rs6000/powerpc-cell64l.c: Re-generated.
  9022. * features/rs6000/powerpc-e500.c: Re-generated.
  9023. * features/rs6000/powerpc-e500l.c: Re-generated.
  9024. * features/rs6000/powerpc-isa205-32l.c: Re-generated.
  9025. * features/rs6000/powerpc-isa205-64l.c: Re-generated.
  9026. * features/rs6000/powerpc-isa205-altivec32l.c: Re-generated.
  9027. * features/rs6000/powerpc-isa205-altivec64l.c: Re-generated.
  9028. * features/rs6000/powerpc-isa205-vsx32l.c: Re-generated.
  9029. * features/rs6000/powerpc-isa205-vsx64l.c: Re-generated.
  9030. * features/rs6000/powerpc-vsx32.c: Re-generated.
  9031. * features/rs6000/powerpc-vsx32l.c: Re-generated.
  9032. * features/rs6000/powerpc-vsx64.c: Re-generated.
  9033. * features/rs6000/powerpc-vsx64l.c: Re-generated.
  9034. * features/rs6000/rs6000.c: Re-generated.
  9035. * features/s390-linux32.c: Re-generated.
  9036. * features/s390-linux32v1.c: Re-generated.
  9037. * features/s390-linux32v2.c: Re-generated.
  9038. * features/s390-linux64.c: Re-generated.
  9039. * features/s390-linux64v1.c: Re-generated.
  9040. * features/s390-linux64v2.c: Re-generated.
  9041. * features/s390-te-linux64.c: Re-generated.
  9042. * features/s390-tevx-linux64.c: Re-generated.
  9043. * features/s390-vx-linux64.c: Re-generated.
  9044. * features/s390x-linux64.c: Re-generated.
  9045. * features/s390x-linux64v1.c: Re-generated.
  9046. * features/s390x-linux64v2.c: Re-generated.
  9047. * features/s390x-te-linux64.c: Re-generated.
  9048. * features/s390x-tevx-linux64.c: Re-generated.
  9049. * features/s390x-vx-linux64.c: Re-generated.
  9050. * features/sparc/sparc32-solaris.c: Re-generated.
  9051. * features/sparc/sparc64-solaris.c: Re-generated.
  9052. * features/tic6x-c62x.c: Re-generated.
  9053. * features/tic6x-c62x-linux.c: Re-generated.
  9054. * features/tic6x-c64x.c: Re-generated.
  9055. * features/tic6x-c64x-linux.c: Re-generated.
  9056. * features/tic6x-c64xp.c: Re-generated.
  9057. * features/tic6x-c64xp-linux.c: Re-generated.
  9058. 2017-07-26 Yao Qi <yao.qi@linaro.org>
  9059. * i386-linux-tdep.c (i386_linux_read_description): New function.
  9060. (i386_linux_core_read_description): Call
  9061. i386_linux_read_description.
  9062. * i386-linux-tdep.h (i386_linux_read_description): Declare.
  9063. (tdesc_i386_linux, tdesc_i386_mmx_linux): Remove declarations.
  9064. (tdesc_i386_avx_linux, tdesc_i386_mpx_linux): Likewise
  9065. (tdesc_i386_avx_mpx_linux, tdesc_i386_avx_avx512_linux): Likewise.
  9066. (tdesc_i386_avx_mpx_avx512_pku_linux): Likewise.
  9067. * x86-linux-nat.c (x86_linux_read_description): Call
  9068. i386_linux_read_description.
  9069. 2017-07-26 Yao Qi <yao.qi@linaro.org>
  9070. * NEWS: Mention it.
  9071. * features/Makefile (%.c: %.xml): Pass the xml file name to
  9072. command "maint print c-tdesc".
  9073. * target-descriptions.c (maint_print_c_tdesc_cmd): Get file
  9074. name from 'arg'.
  9075. 2017-07-26 Yao Qi <yao.qi@linaro.org>
  9076. * target-descriptions.c (target_desc): Add ctor and dtor. Do
  9077. in-class initialization.
  9078. (tdesc_create_feature): Call new instead of XCNEW.
  9079. (free_target_description): Ue delete.
  9080. 2017-07-25 John Baldwin <jhb@FreeBSD.org>
  9081. * configure.nat: Add "-lkvm" for NetBSD/sparc64 and fix typo.
  9082. 2017-07-25 Yao Qi <yao.qi@linaro.org>
  9083. * amd64-tdep.c (amd64_init_abi): Make argument default_tdesc
  9084. constant.
  9085. (amd64_x32_init_abi): Likewise.
  9086. * amd64-tdep.h (amd64_init_abi): Update declaration.
  9087. (amd64_x32_init_abi): Likewise.
  9088. 2017-07-25 Yao Qi <yao.qi@linaro.org>
  9089. PR tdep/21717
  9090. * arm-linux-nat.c (arm_linux_fetch_inferior_registers): Update
  9091. condition for FPSCR.
  9092. (arm_linux_store_inferior_registers): Likewise.
  9093. 2017-07-22 Tom Tromey <tom@tromey.com>
  9094. * break-catch-syscall.c (struct catch_syscall_inferior_data)
  9095. <syscalls_counts>: Now a std::vector.
  9096. (get_catch_syscall_inferior_data): Use "new".
  9097. (catch_syscall_inferior_data_cleanup): Use "delete".
  9098. (insert_catch_syscall, remove_catch_syscall)
  9099. (clear_syscall_counts): Update.
  9100. 2017-07-22 Tom Tromey <tom@tromey.com>
  9101. * break-catch-syscall.c (syscall_catchpoint)
  9102. <syscalls_to_be_caught>: Now a std::vector<int>
  9103. (~syscall_catchpoint): Remove.
  9104. (insert_catch_syscall, remove_catch_syscall)
  9105. (breakpoint_hit_catch_syscall, print_one_catch_syscall)
  9106. (print_mention_catch_syscall, print_recreate_catch_syscall):
  9107. Update.
  9108. (create_syscall_event_catchpoint): Change type of "filter"
  9109. parameter.
  9110. (catch_syscall_split_args): Return a std::vector.
  9111. (catch_syscall_command_1, catching_syscall_number_1): Update.
  9112. 2017-07-22 Tom Tromey <tom@tromey.com>
  9113. * break-catch-throw.c (struct exception_catchpoint)
  9114. <exception_rx>: Now a std::string.
  9115. (~exception_catchpoint): Remove.
  9116. (print_one_detail_exception_catchpoint): Update.
  9117. (handle_gnu_v3_exceptions): Change type of except_rx.
  9118. (extract_exception_regexp): Return a std::string.
  9119. (catch_exception_command_1): Update.
  9120. 2017-07-22 Tom Tromey <tom@tromey.com>
  9121. * break-catch-sig.c (gdb_signal_type): Remove typedef.
  9122. (struct signal_catchpoint) <signals_to_be_caught>: Now a
  9123. std::vector.
  9124. <catch_all>: Now a bool.
  9125. (~signal_catchpoint): Remove.
  9126. (signal_catchpoint_insert_location)
  9127. (signal_catchpoint_remove_location)
  9128. (signal_catchpoint_breakpoint_hit, signal_catchpoint_print_one)
  9129. (signal_catchpoint_print_mention)
  9130. (signal_catchpoint_print_recreate)
  9131. (signal_catchpoint_explains_signal): Update.
  9132. (create_signal_catchpoint): Change type of "filter" and
  9133. "catch_all".
  9134. (catch_signal_split_args): Return a std::vector. Change type of
  9135. "catch_all".
  9136. (catch_signal_command): Update.
  9137. 2017-07-20 Pedro Alves <palves@redhat.com>
  9138. * ada-lang.c (ada_language_defn): Make extern.
  9139. (_initialize_ada_language): Remove add_language call.
  9140. * c-lang.c (c_language_defn, cplus_language_defn)
  9141. (asm_language_defn, minimal_language_defn): Make extern.
  9142. (_initialize_c_language): Delete.
  9143. * completer.c (compare_cstrings): Delete, moved to utils.h.
  9144. * d-lang.c (d_language_defn): Make extern.
  9145. (_initialize_d_language): Remove add_language calls.
  9146. * defs.h (enum language): Add comment.
  9147. * f-lang.c (f_language_defn): Make extern.
  9148. (_initialize_f_language): Remove add_language call.
  9149. * go-lang.c (go_language_defn): Make extern.
  9150. (_initialize_go_language): Remove add_language call.
  9151. * language.c: Include <algorithm>.
  9152. (languages): Redefine as const array.
  9153. (languages_size, languages_allocsize, DEFAULT_ALLOCSIZE): Delete.
  9154. (set_language_command): Handle "local". Use for-range loop.
  9155. (set_language): Remove loop.
  9156. (language_enum): Rewrite.
  9157. (language_def, language_str): Remove loops.
  9158. (add_language): Delete.
  9159. (add_set_language_command): New, based on add_languages.
  9160. (skip_language_trampoline): Adjust.
  9161. (local_language_defn): Delete.
  9162. (language_gdbarch_post_init): Adjust.
  9163. (_initialize_language): Remove add_language calls. Call
  9164. add_set_language_command.
  9165. * language.h (add_language): Delete.
  9166. (auto_language_defn)
  9167. (unknown_language_defn, minimal_language_defn, ada_language_defn)
  9168. (asm_language_defn, c_language_defn, cplus_language_defn)
  9169. (d_language_defn, f_language_defn, go_language_defn)
  9170. (m2_language_defn, objc_language_defn, opencl_language_defn)
  9171. (pascal_language_defn, rust_language_defn): Declare.
  9172. * m2-lang.c (m2_language_defn): Make extern.
  9173. (_initialize_m2_language): Remove add_language call.
  9174. * objc-lang.c (objc_language_defn): Make extern.
  9175. (_initialize_objc_language): Remove add_language call.
  9176. * opencl-lang.c (opencl_language_defn): Make extern.
  9177. (_initialize_opencl_language): Remove add_language call.
  9178. * p-lang.c (pascal_language_defn): Make extern.
  9179. (_initialize_pascal_language): Delete.
  9180. * rust-lang.c (rust_language_defn): Make extern.
  9181. (_initialize_rust_language): Delete.
  9182. * utils.h (compare_cstrings): New static inline function.
  9183. 2017-07-20 Pedro Alves <palves@redhat.com>
  9184. * ada-lang.c (ada_to_fixed_type_1): Adjust.
  9185. (get_var_value): Constify parameters.
  9186. (get_int_var_value): Change prototype.
  9187. (to_fixed_range_type): Adjust.
  9188. * ada-lang.h (get_int_var_value): Change prototype.
  9189. 2017-07-20 Pedro Alves <palves@redhat.com>
  9190. * dwarf2read.c (dw2_lookup_symbol): Use
  9191. SYMBOL_MATCHES_SEARCH_NAME.
  9192. * psymtab.c (psym_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME.
  9193. 2017-07-20 Pedro Alves <palves@redhat.com>
  9194. * block.c (block_iter_name_step, block_iter_name_first)
  9195. (block_iter_name_next): Delete.
  9196. (block_lookup_symbol_primary): Adjust to use
  9197. dict_iter_match_first/dict_iter_match_next.
  9198. * block.h (block_iter_name_first, block_iter_name_next): Delete
  9199. declarations.
  9200. (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use
  9201. dict_iter_match_first/dict_iter_match_next.
  9202. 2017-07-20 Pedro Alves <palves@redhat.com>
  9203. * cp-support.c (cp_find_first_component_aux): Add missing case for
  9204. end of string.
  9205. 2017-07-18 David Blaikie <dblaikie@gmail.com>
  9206. * dwarf2read.c (create_cus_hash_table): Re-add lost initialization
  9207. of dwo_cu's dwo_file.
  9208. 2017-07-18 Yao Qi <yao.qi@linaro.org>
  9209. * remote.c (store_registers_using_G): Remove one line comment.
  9210. 2017-07-18 Yao Qi <yao.qi@linaro.org>
  9211. * regcache.c (regcache_cpy): Simplify it.
  9212. (regcache::cpy_no_passthrough): Remove it.
  9213. * regcache.h (cpy_no_passthrough): Remove it.
  9214. (regcache_dup, regcache_cpy): Update comments.
  9215. 2017-07-18 Pedro Alves <palves@redhat.com>
  9216. * remote-sim.c (sim_command_completer): Adjust to work with a
  9217. completion_tracker instead of a VEC.
  9218. 2017-07-17 Pedro Alves <palves@redhat.com>
  9219. * completer.c (complete_source_filenames): New function.
  9220. (complete_address_and_linespec_locations): New function.
  9221. (location_completer): Use complete_address_and_linespec_locations.
  9222. (completion_tracker::build_completion_result): Honor the tracker's
  9223. request to suppress append.
  9224. * completer.h (completion_tracker::suppress_append_ws)
  9225. (completion_tracker::set_suppress_append_ws): New methods.
  9226. (completion_tracker::m_suppress_append_ws): New field.
  9227. (complete_source_filenames): New declaration.
  9228. * linespec.c (linespec_complete_what): New.
  9229. (struct ls_parser) <complete_what, completion_word,
  9230. completion_quote_char, completion_quote_end, completion_tracker>:
  9231. New fields.
  9232. (string_find_incomplete_keyword_at_end): New.
  9233. (linespec_lexer_lex_string): Record quote char. If in completion
  9234. mode, don't throw.
  9235. (linespec_lexer_consume_token): Advance the completion word point.
  9236. (linespec_lexer_peek_token): Save/restore completion info.
  9237. (save_stream_and_consume_token): New.
  9238. (set_completion_after_number): New.
  9239. (linespec_parse_basic): Set what to complete next depending on
  9240. token. Handle function and label completions specially.
  9241. (parse_linespec): Disable objc shortcut in completion mode. Set
  9242. what to complete next depending on token type. Skip keyword if in
  9243. completion mode.
  9244. (complete_linespec_component, linespec_complete): New.
  9245. * linespec.h (linespec_complete): Declare.
  9246. 2017-07-17 Pedro Alves <palves@redhat.com>
  9247. * linespec.c (linespec_lexer_lex_string, find_toplevel_char):
  9248. Handle 'operator<' / 'operator<<'.
  9249. 2017-07-17 Pedro Alves <palves@redhat.com>
  9250. * completer.c (collect_explicit_location_matches): Handle
  9251. MATCH_LABEL.
  9252. (convert_explicit_location_to_linespec): New, factored out from
  9253. ...
  9254. (convert_explicit_location_to_sals): ... this.
  9255. (complete_label): New.
  9256. (linespec_complete_label, find_label_symbols_in_block): New.
  9257. (find_label_symbols): Add completion_mode parameter and adjust to
  9258. call find_label_symbols_in_block.
  9259. * linespec.h (linespec_complete_label): Declare.
  9260. 2017-07-17 Pedro Alves <palves@redhat.com>
  9261. * ada-lang.c (ada_collect_symbol_completion_matches): Add
  9262. complete_symbol_mode parameter.
  9263. * cli/cli-cmds.c (complete_command): Get the completion result out
  9264. of the handle_brkchars tracker if used a custom word point.
  9265. * completer.c: Include "linespec.h".
  9266. (enum explicit_location_match_type) <MATCH_LINE>: New enumerator.
  9267. (advance_to_expression_complete_word_point): New.
  9268. (completion_tracker::completes_to_completion_word): New.
  9269. (complete_files_symbols): Pass down
  9270. complete_symbol_mode::EXPRESSION.
  9271. (explicit_options, probe_options): New.
  9272. (collect_explicit_location_matches): Complete on the
  9273. explictit_loc->foo instead of word. Use
  9274. linespec_complete_function. Handle MATCH_LINE. Handle offering
  9275. keyword and options completions.
  9276. (backup_text_ptr): Delete.
  9277. (skip_keyword): New.
  9278. (complete_explicit_location): Remove 'word' parameter. Add
  9279. language, quoted_arg_start and quoted_arg_end parameters.
  9280. Rewrite, parsing left to right.
  9281. (location_completer): Rewrite.
  9282. (location_completer_handle_brkchars): New function.
  9283. (symbol_completer): Pass down complete_symbol_mode::EXPRESSION.
  9284. (enum complete_line_internal_reason): Adjust comments.
  9285. (completion_tracker::discard_completions): New.
  9286. (completer_handle_brkchars_func_for_completer): Handle
  9287. location_completer.
  9288. (gdb_custom_word_point_brkchars)
  9289. (gdb_org_rl_basic_quote_characters): New.
  9290. (gdb_completion_word_break_characters_throw)
  9291. (completion_find_completion_word): Handle trackers that use a
  9292. custom word point.
  9293. (completion_tracker::advance_custom_word_point_by): New.
  9294. (completion_tracker::build_completion_result): Don't rely on
  9295. readline appending the quote char.
  9296. (gdb_rl_attempted_completion_function_throw): Handle trackers that
  9297. use a custom word point.
  9298. (gdb_rl_attempted_completion_function): Restore
  9299. rl_basic_quote_characters.
  9300. * completer.h (class completion_tracker): Extend intro comment.
  9301. (completion_tracker::set_quote_char)
  9302. (completion_tracker::quote_char)
  9303. (completion_tracker::set_use_custom_word_point)
  9304. (completion_tracker::use_custom_word_point)
  9305. (completion_tracker::custom_word_point)
  9306. (completion_tracker::set_custom_word_point)
  9307. (completion_tracker::advance_custom_word_point_by)
  9308. (completion_tracker::completes_to_completion_word)
  9309. (completion_tracker::discard_completions): New methods.
  9310. (completion_tracker::m_quote_char)
  9311. (completion_tracker::m_use_custom_word_point)
  9312. (completion_tracker::m_custom_word_point): New fields.
  9313. (advance_to_expression_complete_word_point): Declare.
  9314. * f-lang.c (f_collect_symbol_completion_matches): Add
  9315. complete_symbol_mode parameter.
  9316. * language.h (struct language_defn)
  9317. <la_collect_symbol_completion_matches>: Add complete_symbol_mode
  9318. parameter.
  9319. * linespec.c (linespec_keywords): Add NULL terminator. Make extern.
  9320. (linespec_complete_function): New function.
  9321. (linespec_lexer_lex_keyword): Adjust.
  9322. * linespec.h (linespec_keywords, linespec_complete_function): New
  9323. declarations.
  9324. * location.c (find_end_quote): New function.
  9325. (explicit_location_lex_one): Add explicit_completion_info
  9326. parameter. Save quoting info. Don't throw if being called for
  9327. completion. Don't handle Ada operators here.
  9328. (is_cp_operator, skip_op_false_positives, first_of)
  9329. (explicit_location_lex_one_function): New function.
  9330. (string_to_explicit_location): Replace 'dont_throw' parameter with
  9331. an explicit_completion_info pointer parameter. Handle it. Don't
  9332. use explicit_location_lex_one to lex function names. Use
  9333. explicit_location_lex_one_function instead.
  9334. * location.h (struct explicit_completion_info): New.
  9335. (string_to_explicit_location): Replace 'dont_throw' parameter with
  9336. an explicit_completion_info pointer parameter.
  9337. * symtab.c (default_collect_symbol_completion_matches_break_on):
  9338. Add complete_symbol_mode parameter. Handle LINESPEC mode.
  9339. (default_collect_symbol_completion_matches)
  9340. (collect_symbol_completion_matches): Add complete_symbol_mode
  9341. parameter.
  9342. (collect_symbol_completion_matches_type): Pass down
  9343. complete_symbol_mode::EXPRESSION.
  9344. (collect_file_symbol_completion_matches): Add complete_symbol_mode
  9345. parameter. Handle LINESPEC mode.
  9346. * symtab.h (complete_symbol_mode): New.
  9347. (default_collect_symbol_completion_matches_break_on)
  9348. (default_collect_symbol_completion_matches)
  9349. (collect_symbol_completion_matches)
  9350. (collect_file_symbol_completion_matches): Add complete_symbol_mode
  9351. parameter.
  9352. 2017-07-17 Pedro Alves <palves@redhat.com>
  9353. * utils.c (enum class strncmp_iw_mode): New.
  9354. (strcmp_iw): Rename to ...
  9355. (strncmp_iw_with_mode): ... this. Add string2_len and mode
  9356. parameters. Handle them.
  9357. (strncmp_iw): New.
  9358. (strcmp_iw): Reimplement as wrapper around strncmp_iw_with_mode.
  9359. * utils.h (strncmp_iw): Declare.
  9360. (strcmp_iw): Move describing comments here.
  9361. 2017-07-17 Pedro Alves <palves@redhat.com>
  9362. * c-exp.y (operator_stoken): Use CP_OPERATOR_LEN and
  9363. CP_OPERATOR_STR.
  9364. * c-typeprint.c (is_type_conversion_operator): Use
  9365. CP_OPERATOR_STR.
  9366. * cp-support.c (LENGTH_OF_OPERATOR): Delete.
  9367. (cp_find_first_component_aux): Use CP_OPERATOR_STR and
  9368. CP_OPERATOR_LEN.
  9369. * cp-support.h (CP_OPERATOR_STR, CP_OPERATOR_LEN): New.
  9370. * gnu-v2-abi.c (gnuv2_is_operator_name): Use CP_OPERATOR_STR.
  9371. * gnu-v3-abi.c (gnuv3_is_operator_name): Use CP_OPERATOR_STR.
  9372. * linespec.c (linespec_lexer_lex_string): Use CP_OPERATOR_LEN and
  9373. CP_OPERATOR_STR.
  9374. * location.c: Include "cp-support.h".
  9375. (explicit_location_lex_one): Use CP_OPERATOR_LEN and
  9376. CP_OPERATOR_STR.
  9377. * symtab.c (operator_chars): Use CP_OPERATOR_STR and
  9378. CP_OPERATOR_LEN.
  9379. 2017-07-17 Pedro Alves <palves@redhat.com>
  9380. * cli/cli-cmds.c (complete_command): Use a completion tracker
  9381. along with completion_find_completion_word for handle_brkchars
  9382. phase.
  9383. * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
  9384. (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): New.
  9385. (struct gdb_rl_completion_word_info): New.
  9386. (gdb_rl_find_completion_word): New.
  9387. (completion_find_completion_word): New.
  9388. * completer.h (completion_find_completion_word): Declare.
  9389. 2017-07-17 Pedro Alves <palves@redhat.com>
  9390. * ada-lang.c (symbol_completion_match): Adjust comments.
  9391. (symbol_completion_add): Replace vector parameter with
  9392. completion_tracker parameter. Use it.
  9393. (ada_make_symbol_completion_list): Rename to...
  9394. (ada_collect_symbol_completion_matches): ... this. Add
  9395. completion_tracker parameter and use it.
  9396. (ada_language_defn): Adjust.
  9397. * break-catch-syscall.c (catch_syscall_completer): Adjust
  9398. prototype and work with completion_tracker instead of VEC.
  9399. * breakpoint.c (condition_completer): Adjust prototype and work
  9400. with completion_tracker instead of VEC.
  9401. * c-lang.c (c_language_defn, cplus_language_defn)
  9402. (asm_language_defn, minimal_language_defn): Adjust to renames.
  9403. * cli/cli-cmds.c (complete_command): Rework using
  9404. completion_tracker. Catch exceptions when completing.
  9405. * cli/cli-decode.c (integer_unlimited_completer)
  9406. (complete_on_cmdlist, complete_on_enum): Adjust prototype and work
  9407. with completion_tracker instead of VEC.
  9408. * command.h (struct completion_tracker): Forward declare.
  9409. (completer_ftype, completer_handle_brkchars_ftype): Change
  9410. types.
  9411. (complete_on_cmdlist, complete_on_enum): Adjust.
  9412. * completer.c: Include <algorithm>.
  9413. (struct gdb_completer_state): New.
  9414. (current_completion): New global.
  9415. (readline_line_completion_function): Delete.
  9416. (noop_completer, filename_completer)
  9417. (filename_completer_handle_brkchars, complete_files_symbols)
  9418. (linespec_location_completer): Adjust to work with a
  9419. completion_tracker instead of a VEC.
  9420. (string_or_empty): New.
  9421. (collect_explicit_location_matches): Adjust to work with a
  9422. completion_tracker instead of a VEC.
  9423. (explicit_location_completer): Rename to ...
  9424. (complete_explicit_location): ... this and adjust to work with a
  9425. completion_tracker instead of a VEC.
  9426. (location_completer): Adjust to work with a completion_tracker
  9427. instead of a VEC.
  9428. (add_struct_fields): Adjust to work with a completion_list instead
  9429. of VEC.
  9430. (expression_completer): Rename to ...
  9431. (complete_expression): ... this and adjust to work with a
  9432. completion_tracker instead of a VEC. Use complete_files_symbols.
  9433. (expression_completer): Reimplement on top of complete_expression.
  9434. (symbol_completer): Adjust to work with a completion_tracker
  9435. instead of a VEC.
  9436. (enum complete_line_internal_reason): Add describing comments.
  9437. (complete_line_internal_normal_command): Adjust to work with a
  9438. completion_tracker instead of a VEC.
  9439. (complete_line_internal): Rename to ...
  9440. (complete_line_internal_1): ... this and adjust to work with a
  9441. completion_tracker instead of a VEC. Assert TEXT is NULL in the
  9442. handle_brkchars phase.
  9443. (new_completion_tracker): Delete.
  9444. (complete_line_internal): Reimplement as TRY/CATCH wrapper around
  9445. complete_line_internal_1.
  9446. (free_completion_tracker): Delete.
  9447. (INITIAL_COMPLETION_HTAB_SIZE): New.
  9448. (completion_tracker::completion_tracker)
  9449. (completion_tracker::~completion_tracker): New.
  9450. (maybe_add_completion): Delete.
  9451. (completion_tracker::maybe_add_completion)
  9452. (completion_tracker::add_completion)
  9453. (completion_tracker::add_completions): New.
  9454. (throw_max_completions_reached_error): Delete.
  9455. (complete_line): Adjust to work with a completion_tracker instead
  9456. of a VEC. Don't create a completion_tracker_t or check for max
  9457. completions here.
  9458. (command_completer, command_completer_handle_brkchars)
  9459. (signal_completer, reg_or_group_completer_1)
  9460. (reg_or_group_completer, default_completer_handle_brkchars):
  9461. Adjust to work with a completion_tracker.
  9462. (gdb_completion_word_break_characters_throw): New.
  9463. (gdb_completion_word_break_characters): Reimplement.
  9464. (line_completion_function): Delete.
  9465. (completion_tracker::recompute_lowest_common_denominator)
  9466. (expand_preserving_ws)
  9467. (completion_tracker::build_completion_result)
  9468. (completion_result::completion_result)
  9469. (completion_result::completion_result)
  9470. (completion_result::~completion_result)
  9471. (completion_result::completion_result)
  9472. (completion_result::release_match_list, compare_cstrings)
  9473. (completion_result::sort_match_list)
  9474. (completion_result::reset_match_list)
  9475. (gdb_rl_attempted_completion_function_throw)
  9476. (gdb_rl_attempted_completion_function): New.
  9477. * completer.h (completion_list, struct completion_result)
  9478. (class completion_tracker): New.
  9479. (complete_line): Add completion_tracker parameter.
  9480. (readline_line_completion_function): Delete.
  9481. (gdb_rl_attempted_completion_function): New.
  9482. (noop_completer, filename_completer, expression_completer)
  9483. (location_completer, symbol_completer, command_completer)
  9484. (signal_completer, reg_or_group_completer): Update prototypes.
  9485. (completion_tracker_t, new_completion_tracker)
  9486. (make_cleanup_free_completion_tracker): Delete.
  9487. (enum maybe_add_completion_enum): Delete.
  9488. (maybe_add_completion): Delete.
  9489. (throw_max_completions_reached_error): Delete.
  9490. * corefile.c (complete_set_gnutarget): Adjust to work with a
  9491. completion_tracker instead of a VEC.
  9492. * cp-abi.c (cp_abi_completer): Adjust to work with a
  9493. completion_tracker instead of a VEC.
  9494. * d-lang.c (d_language_defn): Adjust.
  9495. * disasm.c (disassembler_options_completer): Adjust to work with a
  9496. completion_tracker instead of a VEC.
  9497. * f-lang.c (f_make_symbol_completion_list): Rename to ...
  9498. (f_collect_symbol_completion_matches): ... this. Adjust to work
  9499. with a completion_tracker instead of a VEC.
  9500. (f_language_defn): Adjust.
  9501. * go-lang.c (go_language_defn): Adjust.
  9502. * guile/scm-cmd.c (cmdscm_add_completion, cmdscm_completer):
  9503. Adjust to work with a completion_tracker instead of a VEC.
  9504. * infrun.c (handle_completer): Likewise.
  9505. * interps.c (interpreter_completer): Likewise.
  9506. * interps.h (interpreter_completer): Likewise.
  9507. * language.c (unknown_language_defn, auto_language_defn)
  9508. (local_language_defn): Adjust.
  9509. * language.h (language_defn::la_make_symbol_completion_list):
  9510. Rename to ...
  9511. (language_defn::la_collect_symbol_completion_matches): ... this
  9512. and adjust to work with a completion_tracker instead of a VEC.
  9513. * m2-lang.c (m2_language_defn): Adjust.
  9514. * objc-lang.c (objc_language_defn): Adjust.
  9515. * opencl-lang.c (opencl_language_defn): Adjust.
  9516. * p-lang.c (pascal_language_defn): Adjust.
  9517. * python/py-cmd.c (cmdpy_completer_helper): Handle NULL word.
  9518. (cmdpy_completer_handle_brkchars, cmdpy_completer): Adjust to work
  9519. with a completion_tracker.
  9520. * rust-lang.c (rust_language_defn): Adjust.
  9521. * symtab.c (free_completion_list, do_free_completion_list)
  9522. (return_val, completion_tracker): Delete.
  9523. (completion_list_add_name, completion_list_add_symbol)
  9524. (completion_list_add_msymbol, completion_list_objc_symbol)
  9525. (completion_list_add_fields, add_symtab_completions): Add
  9526. completion_tracker parameter and use it.
  9527. (default_make_symbol_completion_list_break_on_1): Rename to...
  9528. (default_collect_symbol_completion_matches_break_on): ... this.
  9529. Add completion_tracker parameter and use it instead of allocating
  9530. a completion tracker here.
  9531. (default_make_symbol_completion_list_break_on): Delete old
  9532. implementation.
  9533. (default_make_symbol_completion_list): Delete.
  9534. (default_collect_symbol_completion_matches): New.
  9535. (make_symbol_completion_list): Delete.
  9536. (collect_symbol_completion_matches): New.
  9537. (make_symbol_completion_type): Rename to ...
  9538. (collect_symbol_completion_matches_type): ... this. Add
  9539. completion_tracker parameter and use it instead of VEC.
  9540. (make_file_symbol_completion_list_1): Rename to...
  9541. (collect_file_symbol_completion_matches): ... this. Add
  9542. completion_tracker parameter and use it instead of VEC.
  9543. (make_file_symbol_completion_list): Delete.
  9544. (add_filename_to_list): Use completion_list instead of a VEC.
  9545. (add_partial_filename_data::list): Now a completion_list.
  9546. (make_source_files_completion_list): Work with a completion_list
  9547. instead of a VEC.
  9548. * symtab.h: Include "completer.h".
  9549. (default_make_symbol_completion_list_break_on)
  9550. (default_make_symbol_completion_list, make_symbol_completion_list)
  9551. (make_symbol_completion_type, make_file_symbol_completion_list)
  9552. (make_source_files_completion_list): Delete.
  9553. (default_collect_symbol_completion_matches_break_on)
  9554. (default_collect_symbol_completion_matches)
  9555. (collect_symbol_completion_matches)
  9556. (collect_symbol_completion_matches_type)
  9557. (collect_file_symbol_completion_matches)
  9558. (make_source_files_completion_list): New.
  9559. * top.c (init_main): Don't install a rl_completion_entry_function
  9560. hook. Install a rl_attempted_completion_function hook instead.
  9561. * tui/tui-layout.c (layout_completer): Adjust to work with a
  9562. completion_tracker.
  9563. * tui/tui-regs.c (tui_reggroup_completer):
  9564. * tui/tui-win.c (window_name_completer, focus_completer)
  9565. (winheight_completer): Adjust to work with a completion_tracker.
  9566. * value.c: Include "completer.h".
  9567. (complete_internalvar): Adjust to work with a completion_tracker.
  9568. * value.h (complete_internalvar): Likewise.
  9569. 2017-07-17 Pedro Alves <palves@redhat.com>
  9570. * cli/cli-decode.c (set_cmd_completer_handle_brkchars): Adjust to
  9571. renames.
  9572. * cli/cli-decode.h (struct cmd_list_element) <completer>: Move
  9573. comments to completer_ftype's declaration.
  9574. <completer_handle_brkchars>: Change type to
  9575. completer_handle_brkchars_ftype.
  9576. * command.h (completer_ftype): Add describing comment and give
  9577. names to parameters.
  9578. (completer_ftype_void): Rename to ...
  9579. (completer_handle_brkchars_ftype) ... this. Add describing comment.
  9580. (set_cmd_completer_handle_brkchars): Adjust.
  9581. * completer.c (filename_completer_handle_brkchars): New function.
  9582. (complete_line_internal_normal_command): New function, factored
  9583. out from ...
  9584. (complete_line_internal): ... here.
  9585. (command_completer_handle_brkchars)
  9586. (default_completer_handle_brkchars)
  9587. (completer_handle_brkchars_func_for_completer): New functions.
  9588. * completer.h (set_gdb_completion_word_break_characters): Delete
  9589. declaration.
  9590. (completer_handle_brkchars_func_for_completer): New declaration.
  9591. * python/py-cmd.c (cmdpy_completer_handle_brkchars): Adjust to use
  9592. completer_handle_brkchars_func_for_completer.
  9593. 2017-07-17 Pedro Alves <palves@redhat.com>
  9594. * completer.c (symbol_completer): New function, based on
  9595. make_symbol_completion_list_fn.
  9596. * completer.h (symbol_completer): New declaration.
  9597. * guile/scm-cmd.c (cmdscm_completers): Adjust.
  9598. * python/py-cmd.c (completers): Adjust.
  9599. * symtab.c (make_symbol_completion_list_fn): Delete.
  9600. * symtab.h (make_symbol_completion_list_fn): Delete.
  9601. * cli/cli-decode.c (add_cmd): Adjust.
  9602. 2017-07-17 Pedro Alves <palves@redhat.com>
  9603. * Makefile.in (COMMON_OBS): Add filename-seen-cache.o.
  9604. * dwarf2read.c: Include "filename-seen-cache.h".
  9605. * dwarf2read.c (dwarf2_per_objfile) <filenames_cache>: New field.
  9606. (dw2_map_symbol_filenames): Build and use a filenames_seen_cache.
  9607. * filename-seen-cache.c: New file.
  9608. * filename-seen-cache.h: New file.
  9609. * symtab.c: Include "filename-seen-cache.h".
  9610. (struct filename_seen_cache, INITIAL_FILENAME_SEEN_CACHE_SIZE)
  9611. (create_filename_seen_cache, clear_filename_seen_cache)
  9612. (delete_filename_seen_cache, filename_seen): Delete, parts moved
  9613. to filename-seen-cache.h/filename-seen-cache.c.
  9614. (output_source_filename, sources_info)
  9615. (maybe_add_partial_symtab_filename)
  9616. (make_source_files_completion_list): Adjust to use
  9617. filename_seen_cache.
  9618. 2017-07-17 Pedro Alves <palves@redhat.com>
  9619. * dwarf2read.c (dwarf2_per_objfile): In-class initialize all
  9620. fields.
  9621. (dwarf2_per_objfile::dwarf2_per_objfile(objfile*, const
  9622. dwarf2_debug_sections*)): New.
  9623. (dwarf2_per_objfile::dwarf2_per_objfile(const
  9624. dwarf2_per_objfile&)): Declare as deleted.
  9625. (dwarf2_per_objfile::operator=): Declare as deleted.
  9626. (dwarf2_per_objfile::dwarf2_per_objfile)
  9627. (dwarf2_per_objfile::~dwarf2_per_objfile)
  9628. (dwarf2_per_objfile::free_cached_comp_units): New.
  9629. (dwarf2_has_info): dwarf2_per_objfile initialization code moved to
  9630. ctor. Call dwarf2_per_objfile's ctor manually.
  9631. (dwarf2_locate_sections): Deleted/refactored as ...
  9632. (dwarf2_per_objfile::locate_sections): ... this new method.
  9633. (free_cached_comp_units): Defer to
  9634. dwarf2_per_objfile::free_cached_comp_units.
  9635. (dwarf2_free_objfile): Call dwarf2_per_objfile's dtor manually.
  9636. 2017-07-14 Tom Tromey <tom@tromey.com>
  9637. PR rust/21764:
  9638. * rust-exp.y (convert_ast_to_expression): Add "want_type"
  9639. parameter.
  9640. <UNOP_SIZEOF>: Split into separate case.
  9641. <UNOP_VAR_VALUE>: Handle want_type. Add error case.
  9642. 2017-07-14 Tom Tromey <tom@tromey.com>
  9643. PR rust/21763:
  9644. * symtab.c (symbol_matches_domain): Add language_rust to special
  9645. case.
  9646. * rust-exp.y (convert_ast_to_expression) <OP_VAR_VALUE>: Don't
  9647. treat LOC_TYPEDEF symbols as variables.
  9648. 2017-07-14 Pedro Alves <palves@redhat.com>
  9649. * symtab.c (make_file_symbol_completion_list_1): Iterate over
  9650. symtabs matching all symtabs with SRCFILE as file name instead of
  9651. only considering the first hit, with lookup_symtab.
  9652. 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
  9653. * ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and
  9654. operator_name parameters.
  9655. (gen_expr): Update function call.
  9656. 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
  9657. * dwarf2loc.h (dwarf2_compile_expr_to_ax): Remove gdbarch
  9658. parameter.
  9659. * symtab.h (struct symbol_computed_ops::tracepoint_var_ref):
  9660. Likewise.
  9661. * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove gdbarch
  9662. parameter, use agent_expr::gdbarch instead, update function
  9663. calls.
  9664. (locexpr_tracepoint_var_ref): Likewise.
  9665. (loclist_tracepoint_var_ref): Likewise.
  9666. * ax-gdb.c (gen_trace_static_fields): Likewise.
  9667. (gen_traced_pop): Likewise.
  9668. (gen_frame_args_address): Likewise.
  9669. (gen_frame_locals_address): Likewise.
  9670. (gen_var_ref): Likewise.
  9671. (gen_struct_ref_recursive): Likewise.
  9672. (gen_static_field): Likewise.
  9673. (gen_maybe_namespace_elt): Likewise.
  9674. (gen_expr): Likewise.
  9675. (gen_trace_for_var): Likewise.
  9676. (gen_trace_for_expr): Likewise.
  9677. (gen_trace_for_return_address): Likewise.
  9678. 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
  9679. * ax-gdb.c (gen_deref, gen_address_of): Remove unused ax
  9680. parameter.
  9681. (gen_struct_ref, gen_expr, gen_expr_binop_rest): Update call.
  9682. 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
  9683. * ax-gdb.c (gen_usual_unary): Remove exp parameter, get gdbarch
  9684. from ax, update calls.
  9685. (gen_usual_arithmetic): Likewise.
  9686. (gen_integral_promotions): Likewise.
  9687. (gen_bitfield_ref): Likewise.
  9688. (gen_primitive_field): Likewise.
  9689. (gen_struct_ref_recursive): Likewise.
  9690. (gen_struct_ref): Likewise.
  9691. (gen_maybe_namespace_elt): Likewise.
  9692. (gen_struct_elt_for_reference): Likewise.
  9693. (gen_namespace_elt): Likewise.
  9694. (gen_aggregate_elt_ref): Likewise.
  9695. (gen_expr): Get gdbarch from ax, update calls.
  9696. (gen_expr_binop_rest): Likewise.
  9697. 2017-07-13 Pedro Alves <palves@redhat.com>
  9698. * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Pass tdesc_amd64
  9699. as default tdesc.
  9700. * amd64-dicos-tdep.c (amd64_dicos_init_abi):
  9701. * amd64-fbsd-tdep.c (amd64fbsd_init_abi):
  9702. * amd64-linux-tdep.c (amd64_linux_init_abi): Pass
  9703. tdesc_amd64_linux as default tdesc. Get final tdesc from the
  9704. tdep.
  9705. (amd64_x32_linux_init_abi): Pass tdesc_x32_linux as default tdesc.
  9706. Get final tdesc from the tdep.
  9707. * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Pass tdesc_amd64 as
  9708. default tdesc.
  9709. * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
  9710. * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
  9711. * amd64-tdep.c (amd64_init_abi): Add 'default_tdesc' parameter.
  9712. Use it as default tdesc.
  9713. (amd64_x32_init_abi): Add 'default_tdesc' parameter, and pass it
  9714. down to amd_init_abi. No longer handle fallback tdesc here.
  9715. * amd64-tdep.h (tdesc_x32): Declare.
  9716. (amd64_init_abi, amd64_x32_init_abi): Add 'default_tdesc'
  9717. parameter.
  9718. * amd64-windows-tdep.c (amd64_windows_init_abi): Pass tdesc_amd64
  9719. as default tdesc.
  9720. 2017-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
  9721. * s390-linux-tdep.c (s390_process_record): Add support for
  9722. instructions new in arch12.
  9723. 2017-07-11 John Baldwin <jhb@FreeBSD.org>
  9724. * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
  9725. PT_GETFSBASE and PT_GETGSBASE.
  9726. (amd64bsd_store_inferior_registers): Use PT_SETFSBASE and
  9727. PT_SETGSBASE.
  9728. 2017-07-11 John Baldwin <jhb@FreeBSD.org>
  9729. * features/Makefile (amd64.dat, amd64-avx.dat, amd64-mpx.dat)
  9730. (amd64-avx-mpx.dat, amd64-avx-avx512.dat)
  9731. (amd64-avx-mpx-avx512-pku.dat): Add i386/64bit-segments.xml in
  9732. those rules.
  9733. * features/i386/amd64-avx-avx512.xml: Add 64bit-segments.xml.
  9734. * features/i386/amd64-avx-mpx-avx512-pku.xml: Add 64bit-segments.xml.
  9735. * features/i386/amd64-avx-mpx.xml: Add 64bit-segments.xml.
  9736. * features/i386/amd64-avx.xml: Add 64bit-segments.xml.
  9737. * features/i386/amd64-mpx.xml: Add 64bit-segments.xml.
  9738. * features/i386/amd64.xml: Add 64bit-segments.xml.
  9739. * features/i386/amd64-avx-avx512.c: Regenerated.
  9740. * features/i386/amd64-avx-mpx-avx512-pku.c: Regenerated.
  9741. * features/i386/amd64-avx-mpx.c: Regenerated.
  9742. * features/i386/amd64-avx.c: Regenerated.
  9743. * features/i386/amd64-mpx.c: Regenerated.
  9744. * features/i386/amd64.c: Regenerated.
  9745. * regformats/i386/amd64-avx-avx512.dat: Regenerated.
  9746. * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
  9747. * regformats/i386/amd64-avx-mpx.dat: Regenerated.
  9748. * regformats/i386/amd64-avx.dat: Regenerated.
  9749. * regformats/i386/amd64-mpx.dat: Regenerated.
  9750. * regformats/i386/amd64.dat: Regenerated.
  9751. 2017-07-10 Yao Qi <yao.qi@linaro.org>
  9752. * features/i386/amd64-avx-avx512-linux.c: Re-generated.
  9753. * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
  9754. 2017-07-10 Anton Kolesov <Anton.Kolesov@synopsys.com>
  9755. * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add setenv and
  9756. unsetenv.
  9757. * gnulib/aclocal.m4: Regenerate.
  9758. * gnulib/config.in: Regenerate.
  9759. * gnulib/configure: Regenerate.
  9760. * gnulib/import/Makefile.am: Regenerate.
  9761. * gnulib/import/Makefile.in: Regenerate.
  9762. * gnulib/import/m4/gnulib-cache.m4: Regenerate.
  9763. * gnulib/import/m4/gnulib-comp.m4: Regenerate.
  9764. * gnulib/import/m4/environ.m4: New file.
  9765. * gnulib/import/m4/setenv.m4: New file.
  9766. * gnulib/import/setenv.c: New file.
  9767. * gnulib/import/unsetenv.c: New file.
  9768. 2017-07-09 Simon Marchi <simon.marchi@ericsson.com>
  9769. * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Read
  9770. address when op is DW_OP_addr.
  9771. 2017-07-09 Tom Tromey <tom@tromey.com>
  9772. * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Reverse size
  9773. check and apply to outer type.
  9774. 2017-07-07 John Baldwin <jhb@FreeBSD.org>
  9775. * fbsd-tdep.c (LWPINFO_OFFSET, LWPINFO_PL_FLAGS)
  9776. (LWPINFO64_PL_SIGINFO, LWPINFO32_PL_SIGINFO, PL_FLAG_SI)
  9777. (SIZE64_SIGINFO_T, SIZE32_SIGINFO_T, fbsd_core_xfer_siginfo): New.
  9778. (fbsd_init_abi): Install gdbarch "core_xfer_siginfo" method.
  9779. 2017-07-07 John Baldwin <jhb@FreeBSD.org>
  9780. * fbsd-tdep.c (fbsd_core_thread_name): Use thread_section_name.
  9781. 2017-07-07 John Baldwin <jhb@FreeBSD.org>
  9782. * corelow.c (get_core_siginfo): Remove.
  9783. (core_xfer_partial): Use the gdbarch "core_xfer_siginfo" method
  9784. instead of get_core_siginfo.
  9785. * gdbarch.sh (core_xfer_siginfo): New gdbarch callback.
  9786. * gdbarch.h: Re-generate.
  9787. * gdbarch.c: Re-generate.
  9788. * linux-tdep.c (linux_core_xfer_siginfo): New.
  9789. (linux_init_abi): Install gdbarch "core_xfer_siginfo" method.
  9790. 2017-07-07 John Baldwin <jhb@FreeBSD.org>
  9791. * corelow.c (thread_section_name): Move to ...
  9792. * gdbcore.h (thread_section_name): ... here.
  9793. 2017-07-07 John Baldwin <jhb@FreeBSD.org>
  9794. * fbsd-nat.c [PT_LWPINFO && __LP64__] (union sigval32)
  9795. (struct siginfo32): New.
  9796. [PT_LWPINFO] (fbsd_siginfo_size, fbsd_convert_siginfo): New.
  9797. (fbsd_xfer_partial) [PT_LWPINFO]: Handle TARGET_OBJECT_SIGNAL_INFO
  9798. via ptrace(PT_LWPINFO).
  9799. 2017-07-07 John Baldwin <jhb@FreeBSD.org>
  9800. * fbsd-tdep.c (fbsd_gdbarch_data_handle, struct fbsd_gdbarch_data)
  9801. (init_fbsd_gdbarch_data, get_fbsd_gdbarch_data)
  9802. (fbsd_get_siginfo_type): New.
  9803. (fbsd_init_abi): Install gdbarch "get_siginfo_type" method.
  9804. (_initialize_fbsd_tdep): New.
  9805. 2017-07-06 David Blaikie <dblaikie@gmail.com>
  9806. * dwarf2read.c (struct dwo_file): Use a htab of dwo_unit* (rather than
  9807. a singular dwo_unit*) to support multiple CUs in the same way that
  9808. multiple TUs are supported.
  9809. (create_cus_hash_table): Replace create_dwo_cu with a function for
  9810. parsing multiple CUs from a DWO file.
  9811. (open_and_init_dwo_file): Use create_cus_hash_table rather than
  9812. create_dwo_cu.
  9813. (lookup_dwo_cutu): Lookup CU in the hash table in the dwo_file with
  9814. htab_find, rather than comparing the signature to a singleton CU in
  9815. the dwo_file.
  9816. 2017-07-06 Pedro Alves <palves@redhat.com>
  9817. * python/py-unwind.c (pyuw_dealloc_cache): Fix for loop condition.
  9818. 2017-07-04 Pedro Alves <palves@redhat.com>
  9819. * gdbtypes.c (recursive_dump_type): Don't reference TYPE_STATIC.
  9820. * gdbtypes.h (TYPE_STATIC): Delete.
  9821. (struct fn_field) <is_public, is_abstract, is_static, is_final,
  9822. is_synchronized, is_native>: Delete.
  9823. <dummy>: Bump.
  9824. (TYPE_FN_FIELD_PUBLIC, TYPE_FN_FIELD_STATIC, TYPE_FN_FIELD_FINAL)
  9825. (TYPE_FN_FIELD_SYNCHRONIZED, TYPE_FN_FIELD_NATIVE)
  9826. (TYPE_FN_FIELD_ABSTRACT): Delete.
  9827. 2017-07-03 Simon Marchi <simon.marchi@ericsson.com>
  9828. * buffer.h (buffer_finish): Fix spelling mistakes.
  9829. 2017-07-01 Eli Zaretskii <eliz@gnu.org>
  9830. * .dir-locals.el: Automatically switch to C-style comments in
  9831. versions of Emacs that support the feature.
  9832. 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
  9833. Pedro Alves <palves@redhat.com>
  9834. PR cli/21688
  9835. * cli/cli-script.c (command_name_equals_not_inline): Remove function.
  9836. (process_next_line): New variable 'inline_cmd'.
  9837. Adjust 'if' clauses for "python", "compile" and "guile" to use
  9838. 'command_name_equals' and check for '!inline_cmd'.
  9839. 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
  9840. PR cli/21688
  9841. * cli/cli-script.c (command_name_equals_not_inline): New function.
  9842. (process_next_line): Adjust 'if' clauses for "python", "compile"
  9843. and "guile" to use command_name_equals_not_inline.
  9844. 2017-06-29 Pedro Alves <palves@redhat.com>
  9845. * completer.c (expression_completer): Call
  9846. linespec_location_completer instead of location_completer.
  9847. 2017-06-29 Pedro Alves <palves@redhat.com>
  9848. * completer.c (expression_completer): Remove code that recomputes
  9849. 'text' from 'word'.
  9850. 2017-06-29 Yao Qi <yao.qi@linaro.org>
  9851. * regformats/regdat.sh: Generate code with
  9852. "ifndef IN_PROCESS_AGENT".
  9853. 2017-06-28 Pedro Alves <palves@redhat.com>
  9854. * command.h: Include "common/scoped_restore.h".
  9855. 2017-06-28 Yao Qi <yao.qi@linaro.org>
  9856. * mi/mi-cmd-break.c (mi_argv_to_format): Use obstack_grow_str
  9857. instead of obstack_grow.
  9858. 2017-06-28 Doug Gilmore <Doug.Gilmore@imgtec.com>
  9859. PR gdb/21337
  9860. * symfile.c (reread_symbols): Call objfiles_changed just before
  9861. read_symbols.
  9862. 2017-06-27 Pedro Alves <palves@redhat.com>
  9863. * symtab.c (COMPLETION_LIST_ADD_SYMBOL)
  9864. (MCOMPLETION_LIST_ADD_SYMBOL): Delete macros, replace with ...
  9865. (completion_list_add_symbol, completion_list_add_msymbol):
  9866. ... these new functions.
  9867. (add_symtab_completions)
  9868. (default_make_symbol_completion_list_break_on_1): Adjust.
  9869. 2017-06-27 Pedro Alves <palves@redhat.com>
  9870. * objfiles.c (get_objfile_bfd_data): Call bfd_alloc instead of
  9871. bfd_zalloc. Call objfile_per_bfd_storage's ctor.
  9872. (free_objfile_per_bfd_storage): Call objfile_per_bfd_storage's
  9873. dtor.
  9874. * objfiles.h (objfile_per_bfd_storage): Add ctor. Make
  9875. 'storage_obstack' field an auto_obstack. In-class initialize all
  9876. non-bitfield fields. Make minsyms_read bool.
  9877. * symfile.c (read_symbols): Adjust.
  9878. 2017-06-27 Alan Hayward <alan.hayward@arm.com>
  9879. * remote-sim.c (gdbsim_fetch_register): Use byte_vector.
  9880. (gdbsim_store_register): Likewise.
  9881. 2017-06-27 Pedro Alves <palves@redhat.com>
  9882. * c-exp.y (name_obstack): Now an auto_obstack.
  9883. (yylex): Use auto_obstack::clear.
  9884. (c_parse): Use auto_obstack::clear instead of reinitializing and
  9885. freeing the obstack.
  9886. * c-lang.c (evaluate_subexp_c): Use auto_obstack.
  9887. * d-exp.y (name_obstack): Now an auto_obstack.
  9888. (yylex): Use auto_obstack::clear.
  9889. (d_parse): Use auto_obstack::clear instead of reinitializing and
  9890. freeing the obstack.
  9891. * dwarf2loc.c (fetch_const_value_from_synthetic_pointer): Use
  9892. auto_obstack.
  9893. * dwarf2read.c (create_addrmap_from_index)
  9894. (dwarf2_build_psymtabs_hard)
  9895. (update_enumeration_type_from_children): Likewise.
  9896. * gdb_obstack.h (auto_obstack): New type.
  9897. * go-exp.y (name_obstack): Now an auto_obstack.
  9898. (build_packaged_name): Use auto_obstack::clear.
  9899. (go_parse): Use auto_obstack::clear instead of reinitializing and
  9900. freeing the obstack.
  9901. * linux-tdep.c (linux_make_mappings_corefile_notes): Use
  9902. auto_obstack.
  9903. * printcmd.c (printf_wide_c_string, ui_printf): Use auto_obstack.
  9904. * rust-exp.y (work_obstack): Now an auto_obstack.
  9905. (rust_parse, rust_lex_tests): Use auto_obstack::clear instead of
  9906. reinitializing and freeing the obstack.
  9907. * utils.c (do_obstack_free, make_cleanup_obstack_free): Delete.
  9908. (host_char_to_target): Use auto_obstack.
  9909. * utils.h (make_cleanup_obstack_free): Delete declaration.
  9910. * valprint.c (generic_emit_char, generic_printstr): Use
  9911. auto_obstack.
  9912. 2017-06-27 Simon Marchi <simon.marchi@ericsson.com>
  9913. * darwin-nat.c (darwin_check_new_threads): Don't handle dummy
  9914. thread.
  9915. (darwin_init_thread_list): Don't update dummy thread.
  9916. (darwin_create_inferior, darwin_attach): Don't add a dummy thread.
  9917. 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
  9918. * record-full.c (netorder16): Remove.
  9919. 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
  9920. * common/diagnostics.h: Define macros for GCC.
  9921. (DIAGNOSTIC_IGNORE_UNUSED_FUNCTION): New macro.
  9922. * common/vec.h: Include diagnostics.h.
  9923. (DIAGNOSTIC_IGNORE_UNUSED_VEC_FUNCTION): New macro.
  9924. (DEF_VEC_I, DEF_VEC_P, DEF_VEC_O): Ignore -Wunused-function
  9925. warning.
  9926. 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
  9927. * common/diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER):
  9928. New macro.
  9929. * ada-lex.l: Ignore deprecated register warnings.
  9930. 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
  9931. * main.c (get_init_files): Replace "SYSTEM_GDBINIT +
  9932. datadir_len" with "&SYSTEM_GDBINIT[datadir_len]".
  9933. 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
  9934. * dtrace-probe.c (dtrace_process_dof_probe): Put semi-colon on
  9935. its own line.
  9936. 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
  9937. * nat/x86-dregs.c (x86_show_dr): Print registers one per line.
  9938. 2017-06-23 Alan Hayward <alan.hayward@arm.com>
  9939. * xtensa-tdep.c (XTENSA_MAX_REGISTER_SIZE): Add.
  9940. (xtensa_register_write_masked): Use XTENSA_MAX_REGISTER_SIZE.
  9941. (xtensa_register_read_masked): Likewise.
  9942. 2017-06-22 Sergio Durigan Junior <sergiodj@redhat.com>
  9943. * common/environ.c (gdb_environ::unset): Update comment.
  9944. 2017-06-22 Alan Hayward <alan.hayward@arm.com>
  9945. * python/py-unwind.c (pyuw_sniffer): Allocate space for
  9946. registers.
  9947. 2017-06-22 Alan Hayward <alan.hayward@arm.com>
  9948. * record-full.c (record_full_exec_insn): Use byte_vector.
  9949. 2017-06-22 Yao Qi <yao.qi@linaro.org>
  9950. * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Regenerated.
  9951. * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
  9952. 2017-06-22 Alan Hayward <alan.hayward@arm.com>
  9953. * remote.c (cached_reg): Move from here...
  9954. * regcache.h (cached_reg): ...to here.
  9955. * python/py-unwind.c (struct reg_info): Remove.
  9956. (cached_frame_info): Use cached_reg_t.
  9957. (pyuw_prev_register): Likewise.
  9958. (pyuw_sniffer): Use cached_reg_t and allocate registers.
  9959. (pyuw_dealloc_cache): Free all registers.
  9960. 2017-06-22 Pedro Alves <palves@redhat.com>
  9961. Simon Marchi <simon.marchi@ericsson.com>
  9962. * unittests/environ-selftests.c (run_tests): Ignore -Wself-move
  9963. warning.
  9964. * common/diagnostics.h: New file.
  9965. 2017-06-22 Pedro Alves <palves@redhat.com>
  9966. * common/agent.h: Add include guards.
  9967. 2017-06-21 Simon Marchi <simon.marchi@ericsson.com>
  9968. * target.h (struct target_ops) <to_xfer_partial>: Update doc to
  9969. talk about addressable units instead of bytes.
  9970. 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
  9971. * common/environ.c (gdb_environ::unset): Use '::iterator' instead
  9972. of '::const_iterator'.
  9973. 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
  9974. * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
  9975. 'unittests/environ-selftests.c'.
  9976. (SUBDIR_UNITTESTS_OBS): Add 'environ-selftests.o'.
  9977. * charset.c (find_charset_names): Declare object 'iconv_env'.
  9978. Update code to use 'iconv_env' object. Remove call to
  9979. 'free_environ'.
  9980. * common/environ.c: Include <utility>.
  9981. (make_environ): Delete function.
  9982. (free_environ): Delete function.
  9983. (gdb_environ::clear): New function.
  9984. (gdb_environ::operator=): New function.
  9985. (gdb_environ::get): Likewise.
  9986. (environ_vector): Delete function.
  9987. (set_in_environ): Delete function.
  9988. (gdb_environ::set): New function.
  9989. (unset_in_environ): Delete function.
  9990. (gdb_environ::unset): New function.
  9991. (gdb_environ::envp): Likewise.
  9992. * common/environ.h: Include <vector>.
  9993. (struct gdb_environ): Delete; transform into...
  9994. (class gdb_environ): ... this class.
  9995. (free_environ): Delete prototype.
  9996. (init_environ, get_in_environ, set_in_environ, unset_in_environ,
  9997. environ_vector): Likewise.
  9998. * infcmd.c (run_command_1): Update code to call
  9999. 'envp' from 'gdb_environ' class.
  10000. (environment_info): Update code to call methods from 'gdb_environ'
  10001. class.
  10002. (unset_environment_command): Likewise.
  10003. (path_info): Likewise.
  10004. (path_command): Likewise.
  10005. * inferior.c (inferior::~inferior): Delete call to 'free_environ'.
  10006. (inferior::inferior): Initialize 'environment' using the host's
  10007. information.
  10008. * inferior.h: Remove forward declaration of 'struct gdb_environ'.
  10009. Include "environ.h".
  10010. (class inferior) <environment>: Change type from 'struct
  10011. gdb_environ' to 'gdb_environ'.
  10012. * mi/mi-cmd-env.c (mi_cmd_env_path): Update code to call
  10013. methods from 'gdb_environ' class.
  10014. * solib.c (solib_find_1): Likewise
  10015. * unittests/environ-selftests.c: New file.
  10016. 2017-06-20 Yao Qi <yao.qi@linaro.org>
  10017. * features/i386/i386-linux.xml: Exchange the order of including
  10018. 32bit-linux.xml and 32bit-sse.xml.
  10019. * features/i386/i386-linux.c: Regenerated.
  10020. 2017-06-20 Yao Qi <yao.qi@linaro.org>
  10021. * target-descriptions.c (tdesc_reg): Add ctor, dtor.
  10022. Delete copy ctor and assignment operator.
  10023. (tdesc_type): Likewise.
  10024. (tdesc_feature): Likewise.
  10025. (tdesc_free_reg): Remove.
  10026. (tdesc_create_reg): Use new.
  10027. (tdesc_free_type): Remove.
  10028. (tdesc_create_vector): Use new.
  10029. (tdesc_create_union): Likewise.
  10030. (tdesc_create_flags): Likewise.
  10031. (tdesc_create_enum): Likewise.
  10032. (tdesc_free_feature): Delete.
  10033. (free_target_description): Use delete.
  10034. 2017-06-19 John Baldwin <jhb@FreeBSD.org>
  10035. * mips-tdep.c (print_gp_register_row): Don't error for unavailable
  10036. registers.
  10037. 2017-06-19 Pedro Alves <palves@redhat.com>
  10038. * dwarf2read.c (write_psymtabs_to_index): Construct file_closer
  10039. after gdb::unlinker.
  10040. 2017-06-19 Sergio Durigan Junior <sergiodj@redhat.com>
  10041. * mi/mi-cm-env.c (_initialize_mi_cmd_env): Use getenv instead of
  10042. gdb_environ to access an environment variable.
  10043. 2017-06-18 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  10044. * nat/linux-ptrace.c (linux_fork_to_function): Add cast to
  10045. gdb_byte*.
  10046. 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
  10047. * nat/fork-inferior.h (trace_start_error): Add ATTRIBUTE_PRINTF.
  10048. 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
  10049. * configure: Re-generate.
  10050. * warning.m4 (build_warnings): Add -Wno-mismatched-tags.
  10051. 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
  10052. * configure: Re-generate.
  10053. * warning.m4: Pass -Werror to compiler when checking for
  10054. supported warning flags.
  10055. 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
  10056. * Makefile.in (COMPILE.pre): Add "-x c++".
  10057. 2017-06-16 Alan Hayward <alan.hayward@arm.com>
  10058. Pedro Alves <palves@redhat.com>
  10059. Yao Qi <yao.qi@linaro.org>
  10060. * defs.h (RequireLongest): New.
  10061. (extract_integer): Declare function template.
  10062. (extract_signed_integer): Remove the declaration, but define it
  10063. static inline.
  10064. (extract_unsigned_integer): Likewise.
  10065. (store_integer): Declare function template.
  10066. (store_signed_integer): Remove the declaration, but define it
  10067. static inline.
  10068. (store_unsigned_integer): Likewise.
  10069. * findvar.c (extract_integer): New function template.
  10070. (extract_signed_integer): Remove.
  10071. (extract_unsigned_integer): Remove.
  10072. (extract_integer<LONGEST>, extract_integer<ULONGEST>): Explicit
  10073. instantiations.
  10074. (store_integer): New function template.
  10075. (store_signed_integer): Remove.
  10076. (store_unsigned_integer): Remove.
  10077. (store_integer): Explicit instantiations.
  10078. * regcache.c (regcache_raw_read_signed): Update.
  10079. (regcache::raw_read): New function.
  10080. (regcache::raw_read_signed): Remove.
  10081. (regcache::raw_read_unsigned): Remove.
  10082. (regcache_raw_read_unsigned): Update.
  10083. (regcache_raw_write_unsigned): Update.
  10084. (regcache::raw_write_signed): Remove.
  10085. (regcache::raw_write): New function.
  10086. (regcache_cooked_read_signed): Update.
  10087. (regcache::raw_write_unsigned): Remove.
  10088. (regcache::cooked_read_signed): Remove.
  10089. (regcache_cooked_read_unsigned): Update.
  10090. (regcache::cooked_read_unsigned): Remove.
  10091. (regcache_cooked_write_signed): Update.
  10092. (regcache_cooked_write_unsigned): Update.
  10093. * regcache.h (regcache) <raw_read_signed>: Remove.
  10094. <raw_write_signed, raw_read_unsigned, raw_write_unsigned>: Remove.
  10095. <raw_read, raw_write>: New.
  10096. <cooked_read_signed, cooked_write_signed>: Remove.
  10097. <cooked_write_unsigned, cooked_read_unsigned>: Remove.
  10098. <cooked_read, cooked_write>: New.
  10099. * sh64-tdep.c (sh64_pseudo_register_read): Update.
  10100. (sh64_pseudo_register_write): Update.
  10101. 2017-06-16 Anton Kolesov <anton.kolesov@synopsys.com>
  10102. * arc-tdep.c (arc_disassembler_options): New variable.
  10103. (arc_gdbarch_init): Set and use it. Use arc_delayed_print_insn instead
  10104. of default_print_insn.
  10105. (arc_delayed_print_insn): Set info->section when needed,
  10106. use default_print_insn to retrieve a disassembler.
  10107. 2017-06-14 Sergio Durigan Junior <sergiodj@redhat.com>
  10108. PR gdb/21574
  10109. * infcmd.c (_initialize_infcmd): Expand "help run" documentation
  10110. to mention $SHELL and startup-with-shell.
  10111. 2017-06-14 Max Filippov <jcmvbkbc@gmail.com>
  10112. * MAINTAINERS: Move Maxim Grigoriev to the Past Maintainers.
  10113. 2017-06-14 Yao Qi <yao.qi@linaro.org>
  10114. * aarch64-tdep.c (aarch64_gdb_print_insn): Call
  10115. default_print_insn instead of print_insn_aarch64.
  10116. * arm-tdep.c (gdb_print_insn_arm): Call
  10117. default_print_insn instead of print_insn_big_arm
  10118. and print_insn_little_arm.
  10119. * i386-tdep.c (i386_print_insn): Call default_print_insn
  10120. instead of print_insn_i386.
  10121. * ia64-tdep.c (ia64_print_insn): Call
  10122. default_print_insn instead of print_insn_ia64.
  10123. * mips-tdep.c (gdb_print_insn_mips): Call
  10124. default_print_insn instead of print_insn_big_mips
  10125. and print_insn_little_mips.
  10126. * spu-tdep.c (gdb_print_insn_spu): Call default_print_insn
  10127. instead of print_insn_spu.
  10128. 2017-06-14 Pedro Alves <palves@redhat.com>
  10129. * ada-lang.c: Include "common/byte-vector.h".
  10130. (ada_value_primitive_packed_val): Use gdb::byte_vector.
  10131. * charset.c (wchar_iterator::iterate): Resize the vector instead
  10132. of reserving it.
  10133. * common/byte-vector.h: Include "common/def-vector.h".
  10134. (wchar_iterator::m_out): Now a gdb::def_vector<gdb_wchar_t>.
  10135. * cli/cli-dump.c: Include "common/byte-vector.h".
  10136. (dump_memory_to_file, restore_binary_file): Use gdb::byte_vector.
  10137. * common/byte-vector.h: New file.
  10138. * common/def-vector.h: New file.
  10139. * common/default-init-alloc.h: New file.
  10140. * dwarf2loc.c: Include "common/byte-vector.h".
  10141. (rw_pieced_value): Use gdb::byte_vector, and resize the vector
  10142. instead of reserving it.
  10143. * dwarf2read.c: Include "common/byte-vector.h".
  10144. (data_buf::m_vec): Now a gdb::byte_vector.
  10145. * gdb_regex.c: Include "common/def-vector.h".
  10146. (compiled_regex::compiled_regex): Use gdb::def_vector<char>.
  10147. * mi/mi-main.c: Include "common/byte-vector.h".
  10148. (mi_cmd_data_read_memory): Use gdb::byte_vector.
  10149. * printcmd.c: Include "common/byte-vector.h".
  10150. (print_scalar_formatted): Use gdb::byte_vector.
  10151. * valprint.c: Include "common/byte-vector.h".
  10152. (maybe_negate_by_bytes, print_decimal_chars): Use
  10153. gdb::byte_vector.
  10154. 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
  10155. * darwin-nat.c: Include "nat/fork-inferior.h".
  10156. 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
  10157. * configure.nat: Factor out Darwin bits that are not
  10158. architecture-specific. Add fork-inferior.o.
  10159. 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
  10160. * configure.nat: Factor out AIX bits that are not
  10161. architecture-specific. Add fork-inferior.o.
  10162. 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
  10163. * dwarf2loc.c (rw_pieced_value): New. Merge logic from...
  10164. (read_pieced_value, write_pieced_value): ...here. Reduce to
  10165. wrappers that just call rw_pieced_value.
  10166. 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
  10167. * dwarf2loc.c (write_pieced_value): When writing the data for a
  10168. memory piece, use write_memory_with_notification instead of
  10169. write_memory.
  10170. 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
  10171. * valops.c (read_value_memory): Change embedded_offset to
  10172. represent a bit offset instead of a byte offset.
  10173. * value.h (read_value_memory): Adjust comment.
  10174. 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
  10175. * dwarf2loc.c (read_pieced_value): Remove unnecessary variables
  10176. dest_offset_bits and source_offset_bits.
  10177. (write_pieced_value): Likewise.
  10178. 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
  10179. * dwarf2loc.c (read_pieced_value): Respect the piece offset, as
  10180. given by DW_OP_bit_piece.
  10181. (write_pieced_value): Likewise.
  10182. 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
  10183. * dwarf2loc.c (read_pieced_value): Move the buffer allocation and
  10184. some other preparations to the places where sufficient information
  10185. is available.
  10186. (write_pieced_value): Likewise.
  10187. 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
  10188. * dwarf2loc.c (bits_to_bytes): New function.
  10189. (read_pieced_value): Fix offset calculations for register pieces
  10190. on big-endian targets.
  10191. (write_pieced_value): Likewise.
  10192. 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
  10193. * dwarf2loc.c (read_pieced_value): Remove buffer_size variable.
  10194. (write_pieced_value): Likewise.
  10195. 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
  10196. * dwarf2loc.c (write_pieced_value): When writing to a bit-field,
  10197. transfer the source value's least significant bits, instead of its
  10198. lowest-addressed ones. Rename type_len to max_offset.
  10199. (read_pieced_value): Mirror above changes to write_pieced_value as
  10200. applicable.
  10201. 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
  10202. * dwarf2loc.c (write_pieced_value): In DWARF_VALUE_MEMORY,
  10203. truncate full bytes from dest_offset_bits before using it as an
  10204. offset into the buffer.
  10205. 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
  10206. * dwarf2loc.c (write_pieced_value): Include transfer size in
  10207. byte-wise check.
  10208. 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
  10209. * dwarf2loc.c (write_pieced_value): Fix copy/paste error in the
  10210. calculation of this_size.
  10211. 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
  10212. * dwarf2loc.c (read_pieced_value): Respect parent value's offset
  10213. when targeting a bit-field.
  10214. (write_pieced_value): Likewise.
  10215. 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
  10216. * dwarf2loc.c (struct piece_closure) <addr_size>: Remove field.
  10217. (allocate_piece_closure): Drop addr_size parameter.
  10218. (dwarf2_evaluate_loc_desc_full): Adjust call to
  10219. allocate_piece_closure.
  10220. 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
  10221. PR gdb/21226
  10222. * dwarf2loc.c (read_pieced_value): Anchor stack value pieces at
  10223. the LSB end, independent of endianness.
  10224. 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
  10225. * dwarf2loc.c (write_pieced_value): Fix order of calculations for
  10226. size capping.
  10227. 2017-06-13 Yao Qi <yao.qi@linaro.org>
  10228. * mips-linux-nat.c: Move include features/mips*-linux.c to
  10229. mips-linux-tdep.c.
  10230. (_initialize_mips_linux_nat): Move initialize_tdesc_mips* calls
  10231. to mips-linux-tdep.c.
  10232. * mips-linux-tdep.c: Include features/mips*-linux.c
  10233. (_initialize_mips_linux_tdep): Call initialize_tdesc_mips*
  10234. functions.
  10235. * mips-linux-tdep.h (tdesc_mips_linux): Declare.
  10236. (tdesc_mips_dsp_linux, tdesc_mips64_linux): Declare.
  10237. (tdesc_mips64_dsp_linux): Declare.
  10238. 2017-06-12 Tom Tromey <tom@tromey.com>
  10239. * valprint.h (val_print_type_code_int): Remove.
  10240. * valprint.c (generic_val_print_int): Always call
  10241. val_print_scalar_formatted.
  10242. (val_print_type_code_int): Remove.
  10243. * printcmd.c (print_scalar_formatted): Handle options->format==0.
  10244. * f-valprint.c (f_val_print): Use val_print_scalar_formatted.
  10245. * c-valprint.c (c_val_print_int): Use val_print_scalar_formatted.
  10246. * ada-valprint.c (ada_val_print_num): Use
  10247. val_print_scalar_formatted.
  10248. 2017-06-12 Tom Tromey <tom@tromey.com>
  10249. * printcmd.c (print_scalar_formatted): Unify the two switches.
  10250. Don't convert scalars to LONGEST.
  10251. 2017-06-12 Tom Tromey <tom@tromey.com>
  10252. PR exp/16225:
  10253. * valprint.h (print_decimal_chars): Update.
  10254. * valprint.c (maybe_negate_by_bytes): New function.
  10255. (print_decimal_chars): Add "is_signed" argument.
  10256. * printcmd.c (print_scalar_formatted): Update.
  10257. 2017-06-12 Tom Tromey <tom@tromey.com>
  10258. PR exp/16225:
  10259. * valprint.h (print_binary_chars, print_hex_chars): Update.
  10260. * valprint.c (val_print_type_code_int): Update.
  10261. (print_binary_chars): Add "zero_pad" argument.
  10262. (emit_octal_digit): New function.
  10263. (print_octal_chars): Don't zero-pad.
  10264. (print_decimal_chars): Likewise.
  10265. (print_hex_chars): Add "zero_pad" argument.
  10266. * sh64-tdep.c (sh64_do_fp_register): Update.
  10267. * regcache.c (regcache::dump): Update.
  10268. * printcmd.c (print_scalar_formatted): Update.
  10269. * infcmd.c (default_print_one_register_info): Update.
  10270. 2017-06-12 Pedro Alves <palves@redhat.com>
  10271. Alan Hayward <alan.hayward@arm.com>
  10272. * mips-tdep.c (MAX_MIPS_ABI_REGSIZE): New.
  10273. (mips_eabi_push_dummy_call): Rename local 'regsize' to
  10274. 'abi_regsize'. Rename local array 'valbuf' to 'ref_valbuf', and
  10275. use MAX_MIPS_ABI_REGSIZE instead of MAX_REGISTER_SIZE to size it.
  10276. Assert that abi_regsize bytes fit in 'ref_valbuf'.
  10277. 2017-06-12 Pedro Alves <palves@redhat.com>
  10278. * dwarf2read.c (mapped_symtab::data): Now a vector of
  10279. symtab_index_entry instead of vector of
  10280. std::unique_ptr<symtab_index_entry>. All users adjusted to check
  10281. whether an element's name is NULL instead of checking whether the
  10282. element itself is NULL.
  10283. (find_slot): Change return type. Adjust.
  10284. (hash_expand, , add_index_entry, uniquify_cu_indices)
  10285. (write_hash_table): Adjust.
  10286. 2017-06-12 Pedro Alves <palves@redhat.com>
  10287. * dwarf2read.c (recursively_count_psymbols): New function.
  10288. (write_psymtabs_to_index): Call it to compute number of psyms and
  10289. pass estimate size of psyms_seen to unordered_set's ctor.
  10290. 2017-06-12 Pedro Alves <palves@redhat.com>
  10291. * dwarf2read.c (write_hash_table): Check if key already exists
  10292. before emplacing.
  10293. 2017-06-12 Pedro Alves <palves@redhat.com>
  10294. * dwarf2read.c (data_buf::append_space): Rename to...
  10295. (data_buf::grow): ... this, and make private. Adjust all callers.
  10296. (data_buf::append_uint): New method.
  10297. (add_address_entry, write_one_signatured_type)
  10298. (write_psymtabs_to_index): Use it.
  10299. 2017-06-12 Pedro Alves <palves@redhat.com>
  10300. * dwarf2read.c (file_write(FILE *, const void *, size_t)): Delete.
  10301. (file_write (FILE *, const std::vector<Elem>&)): Delete.
  10302. (data_buf::file_write): Call ::fwrite directly.
  10303. 2017-06-12 Pedro Alves <palves@redhat.com>
  10304. * dwarf2read.c (uniquify_cu_indices): Use std::unique and
  10305. std::vector::erase.
  10306. 2017-06-12 Jan Kratochvil <jan.kratochvil@redhat.com>
  10307. Code cleanup: C++ify .gdb_index producer.
  10308. * dwarf2read.c: Include <unordered_set> and <unordered_map>.
  10309. (MAYBE_SWAP) [WORDS_BIGENDIAN]: Cast to offset_type.
  10310. (struct strtab_entry, hash_strtab_entry, eq_strtab_entry)
  10311. (create_strtab, add_string): Remove.
  10312. (file_write, data_buf): New.
  10313. (struct symtab_index_entry): Use std::vector for cu_indices.
  10314. (struct mapped_symtab): Use std::vector for data.
  10315. (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry)
  10316. (create_symbol_hash_table, create_mapped_symtab, cleanup_mapped_symtab):
  10317. Remove.
  10318. (find_slot): Change return type. Update it to the new data structures.
  10319. (hash_expand, add_index_entry): Update it to the new data structures.
  10320. (offset_type_compare): Remove.
  10321. (uniquify_cu_indices): Update it to the new data structures.
  10322. (c_str_view, c_str_view_hasher, vector_hasher): New.
  10323. (add_indices_to_cpool): Remove.
  10324. (write_hash_table): Update it to the new data structures.
  10325. (struct psymtab_cu_index_map, hash_psymtab_cu_index)
  10326. (eq_psymtab_cu_index): Remove.
  10327. (psym_index_map): New typedef.
  10328. (struct addrmap_index_data): Change addr_obstack pointer to data_buf
  10329. reference and std::unordered_map for cu_index_htab.
  10330. (add_address_entry, add_address_entry_worker, write_address_map)
  10331. (write_psymbols): Update it to the new data structures.
  10332. (write_obstack): Remove.
  10333. (struct signatured_type_index_data): Change types_list to a data_buf
  10334. reference and psyms_seen to a std::unordered_set reference.
  10335. (write_one_signatured_type, recursively_write_psymbols)
  10336. (write_psymtabs_to_index): Update it to the new data structures.
  10337. 2017-06-11 Simon Marchi <simon.marchi@ericsson.com>
  10338. * NEWS (Changes since GDB 8.0): Announce {set,show} debug
  10339. separate-debug-file commands.
  10340. * symfile.h (separate_debug_file_debug): New global.
  10341. * symfile.c (separate_debug_file_debug): New global.
  10342. (separate_debug_file_exists, find_separate_debug_file): Add
  10343. debug output.
  10344. (_initialize_symfile): Add "set debug separate-debug-file"
  10345. command.
  10346. * build-id.c (build_id_to_debug_bfd,
  10347. find_separate_debug_file_by_buildid): Add debug output.
  10348. 2017-06-10 Simon Marchi <simon.marchi@polymtl.ca>
  10349. * gdbarch.sh (displaced_step_free_closure): Remove.
  10350. * gdbarch.h, gdbarch.c: Re-generate.
  10351. * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't set
  10352. displaced_step_free_closure.
  10353. * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
  10354. * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
  10355. * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
  10356. * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
  10357. * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
  10358. * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
  10359. * arch-utils.h (simple_displaced_step_free_closure): Remove.
  10360. * arch-utils.c (simple_displaced_step_free_closure): Remove.
  10361. * infrun.c (displaced_step_clear): Call xfree instead of
  10362. gdbarch_displaced_step_free_closure.
  10363. 2017-06-08 Sergio Durigan Junior <sergiodj@redhat.com>
  10364. * common/common-utils.c (stringify_argv): Check for "arg[0] !=
  10365. NULL".
  10366. 2017-06-08 Alan Hayward <alan.hayward@arm.com>
  10367. * mn10300-tdep.c (MN10300_MAX_REGISTER_SIZE): Add.
  10368. (mn10300_extract_return_value): Use MN10300_MAX_REGISTER_SIZE.
  10369. (mn10300_push_dummy_call): Likewise.
  10370. 2017-06-08 Alan Hayward <alan.hayward@arm.com>
  10371. * mi/mi-main.c (register_changed_p): Use value_contents_eq.
  10372. 2017-06-08 Alan Hayward <alan.hayward@arm.com>
  10373. * mi/mi-main.c (register_changed_p): Use cooked_read_value.
  10374. 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
  10375. * NEWS (Changes since GDB 8.0): Announce that GDBserver is now
  10376. able to start inferiors using a shell.
  10377. (New remote packets): Announce new packet "QStartupWithShell".
  10378. * remote.c: Add PACKET_QStartupWithShell.
  10379. (extended_remote_create_inferior): Handle new
  10380. PACKET_QStartupWithShell.
  10381. (remote_protocol_features) <QStartupWithShell>: New entry for
  10382. PACKET_QStartupWithShell.
  10383. (_initialize_remote): Call "add_packet_config_cmd" for
  10384. QStartupShell.
  10385. 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
  10386. Pedro Alves <palves@redhat.com>
  10387. * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-inferior.h"
  10388. and "nat/fork-inferior.h".
  10389. * common/common-inferior.h: New file, with contents from
  10390. "gdb/inferior.h".
  10391. * commom/common-utils.c: Include "common-utils.h".
  10392. (stringify_argv): New function.
  10393. * common/common-utils.h (stringify_argv): New prototype.
  10394. * configure.nat: Add "fork-inferior.o" as a dependency for
  10395. "*linux*", "fbsd*" and "nbsd*" hosts.
  10396. * corefile.c (get_exec_file): Update comment.
  10397. * darwin-nat.c (darwin_ptrace_him): Call "gdb_startup_inferior"
  10398. instead of "startup_inferior".
  10399. (darwin_create_inferior): Call "add_thread_silent" after
  10400. "fork_inferior".
  10401. * fork-child.c: Cleanup unnecessary includes.
  10402. (SHELL_FILE): Move to "common/common-fork-child.c".
  10403. (environ): Likewise.
  10404. (exec_wrapper): Initialize.
  10405. (get_exec_wrapper): New function.
  10406. (breakup_args): Move to "common/common-fork-child.c"; rename to
  10407. "breakup_args_for_exec".
  10408. (escape_bang_in_quoted_argument): Move to
  10409. "common/common-fork-child.c".
  10410. (saved_ui): New variable.
  10411. (prefork_hook): New function.
  10412. (postfork_hook): Likewise.
  10413. (postfork_child_hook): Likewise.
  10414. (gdb_startup_inferior): Likewise.
  10415. (fork_inferior): Move to "common/common-fork-child.c". Update
  10416. function to support gdbserver.
  10417. (startup_inferior): Likewise.
  10418. * gdbcore.h (get_exec_file): Remove declaration.
  10419. * gnu-nat.c (gnu_create_inferior): Call "gdb_startup_inferior"
  10420. instead of "startup_inferior". Call "add_thread_silent" after
  10421. "fork_inferior".
  10422. * inf-ptrace.c: Include "nat/fork-inferior.h" and "utils.h".
  10423. (inf_ptrace_create_inferior): Call "gdb_startup_inferior"
  10424. instead of "startup_inferior". Call "add_thread_silent" after
  10425. "fork_inferior".
  10426. * inferior.h: Include "common-inferior.h".
  10427. (trace_start_error): Move to "common/common-utils.h".
  10428. (trace_start_error_with_name): Likewise.
  10429. (fork_inferior): Move prototype to "nat/fork-inferior.h".
  10430. (startup_inferior): Likewise.
  10431. (gdb_startup_inferior): New prototype.
  10432. * nat/fork-inferior.c: New file, with contents from "fork-child.c".
  10433. * nat/fork-inferior.h: New file.
  10434. * procfs.c (procfs_init_inferior): Call "gdb_startup_inferior"
  10435. instead of "startup_inferior". Call "add_thread_silent" after
  10436. "fork_inferior".
  10437. * target.h (target_terminal_init): Move prototype to
  10438. "target/target.h".
  10439. (target_terminal_inferior): Likewise.
  10440. (target_terminal_ours): Likewise.
  10441. * target/target.h (target_terminal_init): New prototype, moved
  10442. from "target.h".
  10443. (target_terminal_inferior): Likewise.
  10444. (target_terminal_ours): Likewise.
  10445. * utils.c (gdb_flush_out_err): New function.
  10446. 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
  10447. * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h".
  10448. * common/common-gdbthread.h: New file, with parts from
  10449. "gdb/gdbthread.h".
  10450. * gdbthread.h: Include "common-gdbthread.h".
  10451. (switch_to_thread): Moved to "common/common-gdbthread.h".
  10452. 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
  10453. * Makefile.in (SFILES): Add "common/job-control.c".
  10454. (HFILES_NO_SRCDIR): Add "common/job-control.h".
  10455. (COMMON_OBS): Add "job-control.o".
  10456. * common/job-control.c: New file, with contents from
  10457. "gdb/inflow.c".
  10458. * common/job-control.h: New file, with contents from "terminal.h".
  10459. * fork-child.c: Include "job-control.h".
  10460. * inflow.c: Include "job-control.h".
  10461. (gdb_setpgid): Move to "common/common-inflow.c".
  10462. (_initialize_inflow): Move setting of "job_control" to
  10463. "handle_job_control".
  10464. * terminal.h (job_control): Moved to "common/common-terminal.h".
  10465. (gdb_setpgid): Likewise.
  10466. * top.c: Include "job_control.h".
  10467. * utils.c: Likewise.
  10468. (job_control): Moved to "job-control.c".
  10469. 2017-06-07 Pedro Alves <palves@redhat.com>
  10470. * Makefile.in (SFILES): Add gdb_regex.c.
  10471. (COMMON_OBS): Add gdb_regex.o.
  10472. * ada-lang.c (ada_add_standard_exceptions)
  10473. (ada_add_exceptions_from_frame, name_matches_regex)
  10474. (ada_add_global_exceptions, ada_exceptions_list_1): Change regex
  10475. parameter type to compiled_regex. Adjust.
  10476. (ada_exceptions_list): Use compiled_regex.
  10477. * break-catch-throw.c (exception_catchpoint::pattern): Now a
  10478. std::unique_ptr<compiled_regex>.
  10479. (exception_catchpoint::~exception_catchpoint): Remove regfree
  10480. call.
  10481. (check_status_exception_catchpoint): Adjust to use compiled_regex.
  10482. (handle_gnu_v3_exceptions): Adjust to use compiled_regex.
  10483. * breakpoint.c (solib_catchpoint::compiled): Now a
  10484. std::unique_ptr<compiled_regex>.
  10485. (solib_catchpoint::~solib_catchpoint): Remove regfree call.
  10486. (check_status_catch_solib): Adjust to use compiled_regex.
  10487. (add_solib_catchpoint): Adjust to use compiled_regex.
  10488. * cli/cli-cmds.c (apropos_command): Use compiled_regex.
  10489. * cli/cli-decode.c (apropos_cmd): Change regex parameter to
  10490. compiled_regex reference. Adjust to use it.
  10491. * cli/cli-decode.h: Remove struct re_pattern_buffer forward
  10492. declaration. Include "gdb_regex.h".
  10493. (apropos_cmd): Change regex parameter to compiled_regex reference.
  10494. * gdb_regex.c: New file.
  10495. * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Delete
  10496. declarations.
  10497. (class compiled_regex): New.
  10498. * linux-tdep.c: Include "common/gdb_optional.h".
  10499. (struct mapping_regexes): New, factored out from
  10500. mapping_is_anonymous_p, and adjusted to use compiled_regex.
  10501. (mapping_is_anonymous_p): Use mapping_regexes wrapped in a
  10502. gdb::optional and remove cleanups. Adjust to compiled_regex.
  10503. * probe.c: Include "common/gdb_optional.h".
  10504. (collect_probes): Use compiled_regex and gdb::optional and remove
  10505. cleanups.
  10506. * skip.c: Include "common/gdb_optional.h".
  10507. (skiplist_entry::compiled_function_regexp): Now a
  10508. gdb::optional<compiled_regex>.
  10509. (skiplist_entry::compiled_function_regexp_is_valid): Delete field.
  10510. (free_skiplist_entry): Remove regfree call.
  10511. (compile_skip_regexp, skip_rfunction_p): Adjust to use
  10512. compiled_regex and gdb::optional.
  10513. * symtab.c: Include "common/gdb_optional.h".
  10514. (search_symbols): Use compiled_regex and gdb::optional.
  10515. * utils.c (do_regfree_cleanup, make_regfree_cleanup)
  10516. (get_regcomp_error, compile_rx_or_error): Delete. Some bits moved
  10517. to gdb_regex.c.
  10518. 2017-06-07 Alan Hayward <alan.hayward@arm.com>
  10519. * regcache.c (regcache::save): Avoid buffer use.
  10520. (regcache::dump): Likewise.
  10521. 2017-06-07 Alan Hayward <alan.hayward@arm.com>
  10522. * sh-tdep.c (sh_pseudo_register_read): Remove
  10523. MAX_REGISTER_SIZE.
  10524. (sh_pseudo_register_write): Likewise.
  10525. * sh64-tdep.c (sh64_pseudo_register_read): Likewise.
  10526. (sh64_pseudo_register_write): Likewise
  10527. 2017-06-07 Alan Hayward <alan.hayward@arm.com>
  10528. * aarch64-tdep.c (aarch64_store_return_value): Use
  10529. V_REGISTER_SIZE.
  10530. (aarch64_pseudo_read_value): Likewise.
  10531. (aarch64_pseudo_write): Likewise.
  10532. 2017-06-06 Yao Qi <yao.qi@linaro.org>
  10533. * regformats/regdef.h (set_register_cache): Remove the
  10534. declaration.
  10535. 2017-06-06 Alan Hayward <alan.hayward@arm.com>
  10536. * frame.c (frame_unwind_register_signed): Use
  10537. frame_unwind_register_value.
  10538. 2017-06-06 Pedro Alves <palves@redhat.com>
  10539. PR breakpoints/21553
  10540. * breakpoint.c (create_breakpoints_sal_default)
  10541. (init_breakpoint_sal, create_breakpoint_sal): Use
  10542. gdb::unique_xmalloc_ptr for string parameters.
  10543. (create_breakpoint): Constify 'extra_string' and 'cond_string'
  10544. parameters. Replace cleanups with gdb::unique_xmalloc_ptr.
  10545. (base_breakpoint_create_breakpoints_sal)
  10546. (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal)
  10547. (strace_marker_create_breakpoints_sal)
  10548. (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for
  10549. string parameters.
  10550. * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use
  10551. gdb::unique_xmalloc_ptr for string parameters.
  10552. (create_breakpoint): Constify 'extra_string' and 'cond_string'
  10553. parameters.
  10554. 2017-06-06 Alan Hayward <alan.hayward@arm.com>
  10555. * alpha-tdep.c (alpha_register_to_value): Use
  10556. get_frame_register_value.
  10557. (alpha_value_to_register): Use ALPHA_REGISTER_SIZE.
  10558. 2017-06-06 Alan Hayward <alan.hayward@arm.com>
  10559. * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add.
  10560. (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE.
  10561. (ia64_value_to_register): Likewise.
  10562. (ia64_extract_return_value): Likewise.
  10563. (ia64_store_return_value): Likewise.
  10564. (ia64_push_dummy_call): Likewise.
  10565. 2017-06-04 Joel Brobecker <brobecker@adacore.com>
  10566. GDB 8.0 released.
  10567. 2017-06-03 Simon Marchi <simon.marchi@ericsson.com>
  10568. * x86-linux-nat.c (struct arch_lwp_info): Remove.
  10569. 2017-06-03 Simon Marchi <simon.marchi@polymtl.ca>
  10570. * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST
  10571. parameter.
  10572. (linux_nat_attach): Adjust call to linux_nat_post_attach_wait.
  10573. 2017-06-02 Simon Marchi <simon.marchi@ericsson.com>
  10574. * event-loop.c (poll_timers): Unallocate timer using delete
  10575. instead of xfree.
  10576. 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
  10577. * breakpoint.h (struct breakpoint_ops) <dtor>: Remove.
  10578. (struct breakpoint) <~breakpoint>: New.
  10579. (struct watchpoint): Inherit from breakpoint.
  10580. <~watchpoint>: New.
  10581. <base>: Remove.
  10582. (struct tracepoint): Inherit from breakpoint.
  10583. <base>: Remove.
  10584. * breakpoint.c (longjmp_breakpoint_ops): Remove.
  10585. (struct longjmp_breakpoint): Inherit from breakpoint.
  10586. <~longjmp_breakpoint>: New.
  10587. <base>: Remove.
  10588. (new_breakpoint_from_type): Remove casts.
  10589. (watchpoint_in_thread_scope): Remove reference to base field.
  10590. (watchpoint_del_at_next_stop): Likewise.
  10591. (update_watchpoint): Likewise.
  10592. (watchpoint_check): Likewise.
  10593. (bpstat_check_watchpoint): Likewise.
  10594. (set_longjmp_breakpoint): Likewise.
  10595. (struct fork_catchpoint): Inherit from breakpoint.
  10596. <base>: Remove.
  10597. (struct solib_catchpoint): Inherit from breakpoint.
  10598. <~solib_catchpoint>: New.
  10599. <base>: Remove.
  10600. (dtor_catch_solib): Change to ...
  10601. (solib_catchpoint::~solib_catchpoint): ... this.
  10602. (breakpoint_hit_catch_solib): Remove reference to base field.
  10603. (add_solib_catchpoint): Likewise.
  10604. (create_fork_vfork_event_catchpoint): Likewise.
  10605. (struct exec_catchpoint): Inherit from breakpoint.
  10606. <~exec_catchpoint>: New.
  10607. <base>: Remove.
  10608. (dtor_catch_exec): Change to ...
  10609. (exec_catchpoint::~exec_catchpoint): ... this.
  10610. (dtor_watchpoint): Change to ...
  10611. (watchpoint::~watchpoint): ... this.
  10612. (watch_command_1): Remove reference to base field.
  10613. (catch_exec_command_1): Likewise.
  10614. (base_breakpoint_dtor): Change to ...
  10615. (breakpoint::~breakpoint): ... this.
  10616. (base_breakpoint_ops): Remove dtor field value.
  10617. (longjmp_bkpt_dtor): Change to ...
  10618. (longjmp_breakpoint::~longjmp_breakpoint): ... this.
  10619. (strace_marker_create_breakpoints_sal): Remove reference to base
  10620. field.
  10621. (delete_breakpoint): Don't manually call breakpoint destructor.
  10622. (create_tracepoint_from_upload): Remove reference to base field.
  10623. (trace_pass_set_count): Likewise.
  10624. (initialize_breakpoint_ops): Don't initialize
  10625. momentary_breakpoint_ops, don't set dtors.
  10626. * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint.
  10627. <~ada_catchpoint>: New.
  10628. <base>: Remove.
  10629. (create_excep_cond_exprs): Remove reference to base field.
  10630. (dtor_exception): Change to ...
  10631. (ada_catchpoint::~ada_catchpoint): ... this.
  10632. (dtor_catch_exception): Remove.
  10633. (dtor_catch_exception_unhandled): Remove.
  10634. (dtor_catch_assert): Remove.
  10635. (create_ada_exception_catchpoint): Remove reference to base
  10636. field.
  10637. (initialize_ada_catchpoint_ops): Don't set dtors.
  10638. * break-catch-sig.c (struct signal_catchpoint): Inherit from
  10639. breakpoint.
  10640. <~signal_catchpoint>: New.
  10641. <base>: Remove.
  10642. (signal_catchpoint_dtor): Change to ...
  10643. (signal_catchpoint::~signal_catchpoint): ... this.
  10644. (create_signal_catchpoint): Remove reference to base field.
  10645. (initialize_signal_catchpoint_ops): Don't set dtor.
  10646. * break-catch-syscall.c (struct syscall_catchpoint): Inherit
  10647. from breakpoint.
  10648. <~syscall_catchpoint>: New.
  10649. <base>: Remove.
  10650. (dtor_catch_syscall): Change to ...
  10651. (syscall_catchpoint::~syscall_catchpoint): ... this.
  10652. (create_syscall_event_catchpoint): Remove reference to base
  10653. field.
  10654. (initialize_syscall_catchpoint_ops): Don't set dtor.
  10655. * break-catch-throw.c (struct exception_catchpoint): Inherit
  10656. from breakpoint.
  10657. <~exception_catchpoint>: New.
  10658. <base>: Remove.
  10659. (dtor_exception_catchpoint): Change to ...
  10660. (exception_catchpoint::~exception_catchpoint): ... this.
  10661. (handle_gnu_v3_exceptions): Remove reference to base field.
  10662. (initialize_throw_catchpoint_ops): Don't set dtor.
  10663. * ctf.c (ctf_get_traceframe_address): Remove reference to base
  10664. field.
  10665. * remote.c (remote_get_tracepoint_status): Likewise.
  10666. * tracefile-tfile.c (tfile_get_traceframe_address): Likewise.
  10667. * tracefile.c (tracefile_fetch_registers): Likewise.
  10668. * tracepoint.c (actions_command): Likewise.
  10669. (validate_actionline): Likewise.
  10670. (tfind_1): Likewise.
  10671. (get_traceframe_location): Likewise.
  10672. (find_matching_tracepoint_location): Likewise.
  10673. (parse_tracepoint_status): Likewise.
  10674. * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
  10675. 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
  10676. * breakpoint.c (struct longjmp_breakpoint): New struct.
  10677. (is_tracepoint_type): Change return type to bool.
  10678. (is_longjmp_type): New function.
  10679. (new_breakpoint_from_type): Handle longjmp kinds of breakpoints.
  10680. (set_raw_breakpoint_without_location): Use
  10681. new_breakpoint_from_type.
  10682. (set_raw_breakpoint): Likewise.
  10683. 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
  10684. * breakpoint.c (new_breakpoint_from_type): New function.
  10685. (create_breakpoint_sal): Use new_breakpoint_from_type and
  10686. unique_ptr.
  10687. (create_breakpoint): Likewise.
  10688. 2017-05-31 Simon Marchi <simon.marchi@ericsson.com>
  10689. * memattr.c (mem_info_command): Rename to ...
  10690. (info_mem_command): ... this.
  10691. (mem_enable_command): Rename to ...
  10692. (enable_mem_command): ... this.
  10693. (mem_disable_command): Rename to ...
  10694. (disable_mem_command): ... this.
  10695. (mem_delete_command): Rename to ...
  10696. (delete_mem_command): ... this.
  10697. (_initialize_mem): Adjust function names.
  10698. 2017-05-31 Markus Metzger <markus.t.metzger@intel.com>
  10699. * btrace.c (handle_pt_insn_events): New.
  10700. (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into
  10701. STATUS. Split into this and ...
  10702. (handle_pt_insn_event_flags): ... this.
  10703. 2017-05-31 Markus Metzger <markus.t.metzger@intel.com>
  10704. * configure.ac: Check for pt_insn_event, struct pt_insn.enabled,
  10705. and struct pt_insn.resynced.
  10706. * configure: Regenerated.
  10707. * config.in: Regenerated.
  10708. 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
  10709. * btrace.c (ftrace_find_call_by_number): New function.
  10710. (ftrace_new_function): Store objects, not pointers.
  10711. (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch,
  10712. ftrace_new_gap, ftrace_update_function,
  10713. ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear,
  10714. btrace_insn_get, btrace_insn_get_error, btrace_insn_end,
  10715. btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number,
  10716. btrace_ends_with_single_insn, btrace_call_get): Account for
  10717. btrace_thread_info::functions now storing objects.
  10718. * btrace.h (struct btrace_thread_info): Add constructor.
  10719. (struct btrace_thread_info) <functions>: Make std::vector.
  10720. (struct btrace_thread_info) <prev, next, up, insn, errcode, flags):
  10721. Initialize with default values.
  10722. * record-btrace.c (record_btrace_frame_sniffer): Account for
  10723. btrace_thread_info::functions now storing objects.
  10724. 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
  10725. * btrace.c: Remove typedef bfun_s.
  10726. (ftrace_new_gap): Directly add gaps to the list of gaps.
  10727. (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags,
  10728. ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1,
  10729. btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector
  10730. instead of gdb VEC.
  10731. 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
  10732. * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun,
  10733. ftrace_bridge_gap): Replace references to btrace_thread_info::segment
  10734. with btrace_thread_info::next_segment and
  10735. btrace_thread_info::prev_segment.
  10736. * btrace.h: Remove struct btrace_func_link.
  10737. (struct btrace_function): Replace pair of function segment pointers
  10738. with pair of indices.
  10739. * python/py-record-btrace.c (btpy_call_prev_sibling,
  10740. btpy_call_next_sibling): Replace references to
  10741. btrace_thread_info::segment with btrace_thread_info::next_segment and
  10742. btrace_thread_info::prev_segment.
  10743. * record-btrace.c (record_btrace_frame_this_id): Use
  10744. btrace_find_call_by_number.
  10745. 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
  10746. * btrace.c (ftrace_new_function, ftrace_fixup_level,
  10747. ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps,
  10748. btrace_insn_next, btrace_insn_prev): Remove references to
  10749. btrace_thread_info::flow.
  10750. * btrace.h (struct btrace_function): Remove FLOW.
  10751. 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
  10752. * btrace.c (ftrace_find_call_by_number): New function.
  10753. (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall,
  10754. ftrace_get_caller, ftrace_find_call, ftrace_new_return,
  10755. ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace,
  10756. ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an
  10757. index.
  10758. * btrace.h (struct btrace_function): Turn UP into an index.
  10759. * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up
  10760. as an index.
  10761. * record-btrace.c (record_btrace_frame_unwind_stop_reason,
  10762. record_btrace_frame_prev_register, record_btrace_frame_sniffer,
  10763. record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number.
  10764. 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
  10765. * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
  10766. ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
  10767. ftrace_update_function, ftrace_compute_global_level_offset,
  10768. btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt,
  10769. btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number,
  10770. btrace_insn_end, btrace_is_empty): Remove references to
  10771. btrace_thread_info::begin and btrace_thread_info::end.
  10772. * btrace.h (struct btrace_thread_info): Remove BEGIN and END.
  10773. (struct btrace_thread_info) <functions>: Adjust comment.
  10774. * record-btrace.c (record_btrace_start_replaying): Remove reference to
  10775. btrace_thread_info::begin.
  10776. 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
  10777. * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
  10778. ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
  10779. ftrace_update_function): Remove arguments that implicitly were always
  10780. BTINFO->END.
  10781. (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt):
  10782. Don't pass BTINFO->END.
  10783. 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
  10784. * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number,
  10785. btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev,
  10786. btrace_find_insn_by_number): Replace function segment pointer with
  10787. index.
  10788. (btrace_insn_cmp): Simplify.
  10789. * btrace.h: (struct btrace_insn_iterator) Rename index to
  10790. insn_index. Replace function segment pointer with index into function
  10791. segment vector.
  10792. * record-btrace.c (record_btrace_call_history): Replace function
  10793. segment pointer use with index.
  10794. (record_btrace_frame_sniffer): Retrieve function call segment through
  10795. vector.
  10796. (record_btrace_set_replay): Remove defunc't safety check.
  10797. 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
  10798. * btrace.c (btrace_ends_with_single_insn): New function.
  10799. (btrace_call_get, btrace_call_number, btrace_call_begin,
  10800. btrace_call_end, btrace_call_next, btrace_call_prev,
  10801. btrace_find_call_by_number): Use index into call segment vector
  10802. instead of pointer.
  10803. (btrace_call_cmp): Simplify.
  10804. * btrace.h (struct btrace_call_iterator): Replace function call segment
  10805. pointer with index into vector.
  10806. * record-btrace.c (record_btrace_call_history): Use index instead of
  10807. pointer.
  10808. 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
  10809. * btrace.c (btrace_insn_begin, btrace_insn_end,
  10810. btrace_find_insn_by_number): Add btinfo to iterator.
  10811. * btrace.h (struct btrace_insn_iterator): Add btinfo.
  10812. 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
  10813. * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments
  10814. and save pointers directly.
  10815. (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return,
  10816. ftrace_new_switch, ftrace_new_gap, ftrace_update_function,
  10817. ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for
  10818. changed signature of functions.
  10819. (btrace_compute_ftrace_pt): Adjust for changed signature of functions.
  10820. (btrace_fetch): Remove code that adds btrace_function pointers to
  10821. vector of btrace_functions.
  10822. (btrace_clear): Simplify freeing vector of btrace_functions.
  10823. 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
  10824. * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number):
  10825. Replace VEC_* with std::vector functions.
  10826. * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P.
  10827. (struct btrace_thread_info)<functions>: Change type to std::vector.
  10828. 2017-05-30 Simon Marchi <simon.marchi@ericsson.com>
  10829. * NEWS (Changes in GDB 8.0): Remove extra empty line. Move
  10830. "Removed targets and native configurations" up. Merge duplicate
  10831. "New commands" sub-sections. Add "New options" sub-sections.
  10832. 2017-05-26 Alan Hayward <alan.hayward@arm.com>
  10833. * defs.h (copy_integer_to_size): New declaration.
  10834. * findvar.c (copy_integer_to_size): New function.
  10835. (do_cint_test): New selftest function.
  10836. (copy_integer_to_size_test): Likewise.
  10837. (_initialize_findvar): Likewise.
  10838. * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer.
  10839. (mips_fbsd_collect_reg): Use raw_collect_integer.
  10840. * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer.
  10841. (mips64_fill_gregset): Use raw_collect_integer
  10842. (mips64_fill_fpregset): Use raw_supply_integer.
  10843. * regcache.c (regcache::raw_supply_integer): New function.
  10844. (regcache::raw_collect_integer): Likewise.
  10845. * regcache.h: (regcache::raw_supply_integer): New declaration.
  10846. (regcache::raw_collect_integer): Likewise.
  10847. 2017-05-24 Yao Qi <yao.qi@linaro.org>
  10848. * Makefile.in (SFILES): Add gdbarch-selftests.c.
  10849. (COMMON_OBS): Add gdbarch-selftests.o.
  10850. * frame.c [GDB_SELF_TESTS] (create_new_frame): New function.
  10851. * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare.
  10852. * gdbarch-selftests.c: New file.
  10853. * regcache.h (regcache) <~regcache>: Mark it virtual if
  10854. GDB_SELF_TEST.
  10855. <raw_write>: Likewise.
  10856. 2017-05-24 Yao Qi <yao.qi@linaro.org>
  10857. * regcache.c (current_regcache): Change it to
  10858. regcache::current_regcache.
  10859. (regcache_observer_target_changed): Update.
  10860. (regcache_thread_ptid_changed): Make it a regcache static
  10861. method.
  10862. (regcache_thread_ptid_changed): Update.
  10863. (class regcache_access): New.
  10864. (current_regcache_test): Update.
  10865. (_initialize_regcache): Update.
  10866. * regcache.h: Include forward_list.
  10867. (regcache): Declare regcache_thread_ptid_changed and declare
  10868. registers_changed_ptid as friend.
  10869. 2017-05-24 Yao Qi <yao.qi@linaro.org>
  10870. * i387-tdep.c (i387_register_to_value): Use register_size
  10871. instead of TYPE_LENGTH.
  10872. * m68k-tdep.c (m68k_register_to_value): Likewise.
  10873. 2017-05-24 Yao Qi <yao.qi@linaro.org>
  10874. * i387-tdep.c (i387_convert_register_p): Return false if type
  10875. code isn't TYPE_CODE_FLT.
  10876. 2017-05-24 Yao Qi <yao.qi@linaro.org>
  10877. * alpha-tdep.c (alpha_convert_register_p): Return true if type
  10878. length is 4.
  10879. (alpha_register_to_value): Remove type length check.
  10880. (alpha_value_to_register): Likewise.
  10881. 2017-05-24 Yao Qi <yao.qi@linaro.org>
  10882. * ia64-tdep.c (ia64_convert_register_p): Check type's code is
  10883. TYPE_CODE_FLT.
  10884. 2017-05-24 Yao Qi <yao.qi@linaro.org>
  10885. * m68k-tdep.c (m68k_convert_register_p): Check type's code is
  10886. TYPE_CODE_FLT or not.
  10887. 2017-05-24 Yao Qi <yao.qi@linaro.org>
  10888. * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW.
  10889. * avr-tdep.c (avr_gdbarch_init): Likewise.
  10890. * bfin-tdep.c (bfin_gdbarch_init): Likewise.
  10891. * cris-tdep.c (cris_gdbarch_init): Likewise.
  10892. * ft32-tdep.c (ft32_gdbarch_init): Likewise.
  10893. * lm32-tdep.c (lm32_gdbarch_init): Likewise.
  10894. * m32r-tdep.c (m32r_gdbarch_init): Likewise.
  10895. * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
  10896. * mep-tdep.c (mep_gdbarch_init): Likewise.
  10897. * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
  10898. * mips-tdep.c (mips_gdbarch_init): Likewise.
  10899. * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
  10900. * moxie-tdep.c (moxie_gdbarch_init): Likewise.
  10901. * msp430-tdep.c (msp430_gdbarch_init): Likewise.
  10902. * sh64-tdep.c (sh64_gdbarch_init): Likewise.
  10903. * v850-tdep.c (v850_gdbarch_init): Likewise.
  10904. 2017-05-24 Yao Qi <yao.qi@linaro.org>
  10905. * selftest-arch.c (tests_with_arch): Call registers_changed
  10906. and reinit_frame_cache.
  10907. * selftest.c (run_self_tests): Likewise.
  10908. 2017-05-24 Yao Qi <yao.qi@linaro.org>
  10909. * rs6000-tdep.c (gdb_print_insn_powerpc): Remove.
  10910. (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn.
  10911. 2017-05-24 Yao Qi <yao.qi@linaro.org>
  10912. * rl78-tdep.c (rl78_gdbarch_init): Don't call
  10913. set_gdbarch_print_insn.
  10914. 2017-05-24 Yao Qi <yao.qi@linaro.org>
  10915. * h8300-tdep.c (h8300_gdbarch_init): Don't call
  10916. set_gdbarch_print_insn.
  10917. 2017-05-24 Yao Qi <yao.qi@linaro.org>
  10918. * alpha-tdep.c (alpha_gdbarch_init): Don't call
  10919. set_gdbarch_print_insn.
  10920. * arc-tdep.c (arc_gdbarch_init): Likewise.
  10921. * arch-utils.c: include dis-asm.h.
  10922. (default_print_insn): New function.
  10923. * arch-utils.h (default_print_insn): Declare.
  10924. * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn.
  10925. * bfin-tdep.c (bfin_gdbarch_init): Likewise.
  10926. * cris-tdep.c (cris_delayed_get_disassembler): Remove.
  10927. (cris_gdbarch_init): Don't call set_gdbarch_print_insn.
  10928. * frv-tdep.c (frv_gdbarch_init): Likewise.
  10929. * ft32-tdep.c (ft32_gdbarch_init): Likewise.
  10930. * gdbarch.sh (print_insn): Use default_print_insn.
  10931. * gdbarch.c: Regenerated.
  10932. * hppa-tdep.c (hppa_gdbarch_init): Likewise.
  10933. * iq2000-tdep.c (iq2000_gdbarch_init): Likewise.
  10934. * lm32-tdep.c (lm32_gdbarch_init): Likewise.
  10935. * m32c-tdep.c (m32c_gdbarch_init): Likewise.
  10936. * m32r-tdep.c (m32r_gdbarch_init): Likewise.
  10937. * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove.
  10938. (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn.
  10939. * m68k-tdep.c (m68k_gdbarch_init): Likewise.
  10940. * m88k-tdep.c (m88k_gdbarch_init): Likewise.
  10941. * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
  10942. * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
  10943. * moxie-tdep.c (moxie_gdbarch_init): Likewise.
  10944. * msp430-tdep.c (msp430_gdbarch_init): Likewise.
  10945. * mt-tdep.c (mt_gdbarch_init): Likewise.
  10946. * nds32-tdep.c (nds32_gdbarch_init): Likewise.
  10947. * nios2-tdep.c (nios2_print_insn): Remove.
  10948. (nios2_gdbarch_init): Don't call set_gdbarch_print_insn.
  10949. * rx-tdep.c (rx_gdbarch_init): Likewise.
  10950. * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
  10951. * score-tdep.c (score_print_insn): Remove.
  10952. (score_gdbarch_init): Don't call set_gdbarch_print_insn.
  10953. * sh-tdep.c (sh_gdbarch_init): Likewise.
  10954. * sh64-tdep.c (sh64_gdbarch_init): Likewise.
  10955. * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
  10956. * tic6x-tdep.c (tic6x_print_insn): Remove.
  10957. (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn.
  10958. * tilegx-tdep.c (tilegx_gdbarch_init): Likewise.
  10959. * v850-tdep.c (v850_gdbarch_init): Likewise.
  10960. * vax-tdep.c (vax_gdbarch_init): Likewise.
  10961. * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
  10962. * xtensa-tdep.c (xtensa_gdbarch_init): Likewise.
  10963. 2017-05-23 John Baldwin <jhb@FreeBSD.org>
  10964. * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove.
  10965. (MIPS_FP0_REGNUM): Remove.
  10966. (MIPS_FSR_REGNUM): Remove.
  10967. (mips_fbsd_supply_fpregs): Use mips_regnum.
  10968. (mips_fbsd_supply_gregs): Likewise.
  10969. (mips_fbsd_collect_fpregs): Likewise.
  10970. (mips_fbsd_collect_gregs): Likewise.
  10971. 2017-05-23 John Baldwin <jhb@FreeBSD.org>
  10972. * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison.
  10973. (getpfpregs_supplies): New function.
  10974. (mips_fbsd_fetch_inferior_registers): Remove early exit and use
  10975. getfpregs_supplies.
  10976. (mips_fbsd_store_inferior_registers): Likewise.
  10977. 2017-05-22 Pedro Alves <palves@redhat.com>
  10978. * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD
  10979. maintainer.
  10980. 2017-05-22 Alan Hayward <alan.hayward@arm.com>
  10981. * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE.
  10982. (store_register): Likewise.
  10983. * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
  10984. (get_decimal_float_return_value): Likewise.
  10985. (do_ppc_sysv_return_value): Likewise.
  10986. (ppc64_sysv_abi_push_integer): Likewise.
  10987. (ppc64_sysv_abi_push_freg): Likewise.
  10988. (ppc64_sysv_abi_return_value_base): Likewise.
  10989. (ppc64_sysv_abi_return_value): Likewise.
  10990. * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
  10991. * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
  10992. * rs6000-nat.c: Likewise.
  10993. * rs6000-tdep.c (rs6000_register_to_value): Likewise.
  10994. (rs6000_value_to_register): Likewise.
  10995. * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add.
  10996. 2017-05-21 Tom Tromey <tom@tromey.com>
  10997. PR rust/21466:
  10998. * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized
  10999. arrays as "[T]", not "[T; ]".
  11000. 2017-05-19 Tom Tromey <tom@tromey.com>
  11001. PR rust/21484:
  11002. * rust-lang.c (exp_descriptor_rust): New function.
  11003. (rust_language_defn): Use it.
  11004. * p-lang.c (pascal_language_defn): Update.
  11005. * opencl-lang.c (opencl_language_defn): Update.
  11006. * objc-lang.c (objc_language_defn): Update.
  11007. * m2-lang.c (m2_language_defn): Update.
  11008. * language.h (struct language_defn)
  11009. <la_watch_location_expression>: New member.
  11010. * language.c (unknown_language_defn, auto_language_defn)
  11011. (local_language_defn): Update.
  11012. * go-lang.c (go_language_defn): Update.
  11013. * f-lang.c (f_language_defn): Update.
  11014. * d-lang.c (d_language_defn): Update.
  11015. * c-lang.h (c_watch_location_expression): Declare.
  11016. * c-lang.c (c_watch_location_expression): New function.
  11017. (c_language_defn, cplus_language_defn, asm_language_defn)
  11018. (minimal_language_defn): Use it.
  11019. * breakpoint.c (watch_command_1): Call
  11020. la_watch_location_expression.
  11021. * ada-lang.c (ada_language_defn): Update.
  11022. 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  11023. PR tui/21482
  11024. * gdb_curses.h (NOMACROS): Define.
  11025. (NCURSES_NOMACROS): Define.
  11026. 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  11027. PR tui/21482
  11028. * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr
  11029. arg to char *.
  11030. * tui/tui-wingeneral.c (box_win): Likewise.
  11031. * tui/tui-winsource.c (tui_erase_source_content): Likewise.
  11032. (tui_show_source_line): Likewise.
  11033. (tui_show_exec_info_content): Likewise.
  11034. 2017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
  11035. * sparc-tdep.c (sparc_structure_return_p)
  11036. (sparc_arg_on_registers_p): New functions.
  11037. (sparc32_store_arguments): Use them.
  11038. * sparc64-tdep.c (sparc64_16_byte_align_p)
  11039. (sparc64_store_floating_fields, sparc64_extract_floating_fields):
  11040. Handle TYPE_CODE_ARRAY.
  11041. 2017-05-17 Yao Qi <yao.qi@linaro.org>
  11042. * cli/cli-decode.c (add_alias_cmd): New function.
  11043. * command.h (add_alias_cmd): Declare.
  11044. * infcmd.c (_initialize_infcmd): Don't call add_com_alias,
  11045. instead call add_alias_cmd.
  11046. 2017-05-17 Pedro Alves <palves@redhat.com>
  11047. * Makefile.in (nat_extra_makefile_frag): Rename to ...
  11048. (nat_makefile_frag): ... this. All references updated.
  11049. * configure.ac: Likewise.
  11050. * configure.nat: Likewise. Enhance comments.
  11051. * configure: Regenerate.
  11052. 2017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  11053. * procfs.c (procfs_create_inferior): Change prototype to match
  11054. definition.
  11055. 2017-05-13 Eli Zaretskii <eliz@gnu.org>
  11056. * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a
  11057. C++ compiler warning.
  11058. 2017-05-12 Tom Tromey <tom@tromey.com>
  11059. PR rust/21483:
  11060. * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't
  11061. recurse, just call value_struct_elt directly.
  11062. 2017-05-12 Tom Tromey <tom@tromey.com>
  11063. * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS,
  11064. OP_RUST_ARRAY>: Fix.
  11065. 2017-05-12 Tom Tromey <tom@tromey.com>
  11066. * rust-lang.c (rust_print_subexp): Replace "return" with "break".
  11067. 2017-05-09 Yao Qi <yao.qi@linaro.org>
  11068. * regcache.c: Include <forward_list>.
  11069. (struct regcache_list): Remove.
  11070. (current_regcache): Update.
  11071. (get_thread_arch_aspace_regcache): Update for std::forward_list.
  11072. (regcache_thread_ptid_changed): Likewise.
  11073. (registers_changed_ptid): Likewise.
  11074. (current_regcache_size): Likewise.
  11075. 2017-05-09 Yao Qi <yao.qi@linaro.org>
  11076. * regcache.c [GDB_SELF_TEST]: Include selftest.h.
  11077. (current_regcache_size): New function.
  11078. (current_regcache_test): New function.
  11079. (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test.
  11080. 2017-05-08 Alan Hayward <alan.hayward@arm.com>
  11081. * mips-tdep.c (mips_o32_return_value): Remove unused buffer.
  11082. (print_gp_register_row): Use get_frame_register_value.
  11083. 2017-05-08 Alan Hayward <alan.hayward@arm.com>
  11084. * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed.
  11085. (mips_supply_fpregset): Likewise.
  11086. (mips64_supply_gregset): Likewise.
  11087. 2017-05-08 Alan Hayward <alan.hayward@arm.com>
  11088. * mn10300-linux-tdep.c (am33_supply_gregset_method): Use
  11089. regcache->raw_supply_zeroed.
  11090. 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
  11091. * configure.nat: Rearrange 'case' statements to match
  11092. host before cpu.
  11093. 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
  11094. * Makefile.in: Remove "@host_makefile_frag@". Add variables
  11095. NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS,
  11096. NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add
  11097. "@nat_extra_makefile_frag@".
  11098. (Makefile): Remove dependency on "@frags@".
  11099. ($(GNULIB_BUILDDIR)/Makefile): Likewise.
  11100. (data-directory/Makefile): Likewise.
  11101. * config/aarch64/linux.mh: Deleted; moved contents to
  11102. "gdb/configure.nat".
  11103. * config/alpha/alpha-linux.mh: Likewise.
  11104. * config/alpha/nbsd.mh: Likewise.
  11105. * config/arm/linux.mh: Likewise.
  11106. * config/arm/nbsdelf.mh: Likewise.
  11107. * config/i386/cygwin.mh: Likewise.
  11108. * config/i386/cygwin64.mh: Likewise.
  11109. * config/i386/darwin.mh: Likewise.
  11110. * config/i386/fbsd.mh: Likewise.
  11111. * config/i386/fbsd64.mh: Likewise.
  11112. * config/i386/go32.mh: Likewise.
  11113. * config/i386/i386gnu.mh: Likewise.
  11114. * config/i386/i386sol2.mh: Likewise.
  11115. * config/i386/linux.mh: Likewise.
  11116. * config/i386/linux64.mh: Likewise.
  11117. * config/i386/mingw.mh: Likewise.
  11118. * config/i386/mingw64.mh: Likewise.
  11119. * config/i386/nbsd64.mh: Likewise.
  11120. * config/i386/nbsdelf.mh: Likewise.
  11121. * config/i386/nto.mh: Likewise.
  11122. * config/i386/obsd.mh: Likewise.
  11123. * config/i386/obsd64.mh: Likewise.
  11124. * config/i386/sol2-64.mh: Likewise.
  11125. * config/ia64/linux.mh: Likewise.
  11126. * config/m32r/linux.mh: Likewise.
  11127. * config/m68k/linux.mh: Likewise.
  11128. * config/m68k/nbsdelf.mh: Likewise.
  11129. * config/m68k/obsd.mh: Likewise.
  11130. * config/m88k/obsd.mh: Likewise.
  11131. * config/mips/fbsd.mh: Likewise.
  11132. * config/mips/linux.mh: Likewise.
  11133. * config/mips/nbsd.mh: Likewise.
  11134. * config/mips/obsd64.mh: Likewise.
  11135. * config/pa/linux.mh: Likewise.
  11136. * config/pa/nbsd.mh: Likewise.
  11137. * config/pa/obsd.mh: Likewise.
  11138. * config/powerpc/aix.mh: Likewise.
  11139. * config/powerpc/fbsd.mh: Likewise.
  11140. * config/powerpc/linux.mh: Likewise.
  11141. * config/powerpc/nbsd.mh: Likewise.
  11142. * config/powerpc/obsd.mh: Likewise.
  11143. * config/powerpc/ppc64-linux.mh: Likewise.
  11144. * config/powerpc/spu-linux.mh: Likewise.
  11145. * config/s390/linux.mh: Likewise.
  11146. * config/sh/nbsd.mh: Likewise.
  11147. * config/sparc/fbsd.mh: Likewise.
  11148. * config/sparc/linux.mh: Likewise.
  11149. * config/sparc/linux64.mh: Likewise.
  11150. * config/sparc/nbsd64.mh: Likewise.
  11151. * config/sparc/nbsdelf.mh: Likewise.
  11152. * config/sparc/obsd64.mh: Likewise.
  11153. * config/sparc/sol2.mh: Likewise.
  11154. * config/tilegx/linux.mh: Likewise.
  11155. * config/vax/nbsdelf.mh: Likewise.
  11156. * config/vax/obsd.mh: Likewise.
  11157. * config/xtensa/linux.mh: Likewise.
  11158. * config/i386/i386gnu.mn: New file, with excerpts from
  11159. "config/i386/i386gnu.mh".
  11160. * configure: Regenerate.
  11161. * configure.ac: Rewrite code to use "gdb/configure.nat" instead of
  11162. *.mh files under "gdb/config".
  11163. * configure.nat: New file, with contents from the
  11164. "gdb/config/*/*.mh" files.
  11165. 2017-05-05 Tim Wiederhake <tim.wiederhake@intel.com>
  11166. * btrace.c (btrace_clear): Free insn vector.
  11167. 2017-05-05 Pedro Alves <palves@redhat.com>
  11168. * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized.
  11169. * configure: Regenerate.
  11170. 2017-05-04 Pedro Alves <palves@redhat.com>
  11171. * Makefile.in (SFILES): Add progspace-and-thread.c.
  11172. (HFILES_NO_SRCDIR): Add progspace-and-thread.h.
  11173. (COMMON_OBS): Add progspace-and-thread.o.
  11174. * breakpoint.c: Include "progspace-and-thread.h".
  11175. (update_inserted_breakpoint_locations)
  11176. (insert_breakpoint_locations, create_longjmp_master_breakpoint):
  11177. Use scoped_restore_current_pspace_and_thread.
  11178. (create_std_terminate_master_breakpoint): Use
  11179. scoped_restore_current_program_space.
  11180. (remove_breakpoint): Use scoped_restore_current_pspace_and_thread.
  11181. (print_breakpoint_location): Use
  11182. scoped_restore_current_program_space.
  11183. (bp_loc_is_permanent): Use
  11184. scoped_restore_current_pspace_and_thread.
  11185. (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread.
  11186. (download_tracepoint_locations): Use
  11187. scoped_restore_current_pspace_and_thread.
  11188. (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread.
  11189. * exec.c (exec_close_1): Use scoped_restore_current_program_space.
  11190. (enum step_over_calls_kind): Moved from inferior.h.
  11191. (class scoped_restore_current_thread): New class.
  11192. * gdbthread.h (make_cleanup_restore_current_thread): Delete
  11193. declaration.
  11194. (scoped_restore_current_thread): New class.
  11195. * infcmd.c: Include "common/gdb_optional.h".
  11196. (continue_1, proceed_after_attach): Use
  11197. scoped_restore_current_thread.
  11198. (notice_new_inferior): Use scoped_restore_current_thread.
  11199. * inferior.c: Include "progspace-and-thread.h".
  11200. (restore_inferior, save_current_inferior): Delete.
  11201. (add_inferior_command, clone_inferior_command): Use
  11202. scoped_restore_current_pspace_and_thread.
  11203. * inferior.h (scoped_restore_current_inferior): New class.
  11204. * infrun.c: Include "progspace-and-thread.h" and
  11205. "common/gdb_optional.h".
  11206. (follow_fork_inferior): Use
  11207. scoped_restore_current_pspace_and_thread.
  11208. (scoped_restore_exited_inferior): New class.
  11209. (handle_vfork_child_exec_or_exit): Use
  11210. scoped_restore_exited_inferior,
  11211. scoped_restore_current_pspace_and_thread,
  11212. scoped_restore_current_thread and scoped_restore.
  11213. (fetch_inferior_event): Use scoped_restore_current_thread.
  11214. * linespec.c (decode_line_full, decode_line_1): Use
  11215. scoped_restore_current_program_space.
  11216. * mi/mi-main.c: Include "progspace-and-thread.h".
  11217. (exec_continue): Use scoped_restore_current_thread.
  11218. (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread.
  11219. (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread.
  11220. * proc-service.c (ps_pglobal_lookup): Use
  11221. scoped_restore_current_program_space.
  11222. * progspace-and-thread.c: New file.
  11223. * progspace-and-thread.h: New file.
  11224. * progspace.c (release_program_space, clone_program_space): Use
  11225. scoped_restore_current_program_space.
  11226. (restore_program_space, save_current_program_space)
  11227. (save_current_space_and_thread): Delete.
  11228. (switch_to_program_space_and_thread): Moved to
  11229. progspace-and-thread.c.
  11230. * progspace.h (save_current_program_space)
  11231. (save_current_space_and_thread): Delete declarations.
  11232. (scoped_restore_current_program_space): New class.
  11233. * remote.c (remote_btrace_maybe_reopen): Use
  11234. scoped_restore_current_thread.
  11235. * symtab.c: Include "progspace-and-thread.h".
  11236. (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread.
  11237. * thread.c (print_thread_info_1): Use
  11238. scoped_restore_current_thread.
  11239. (struct current_thread_cleanup): Delete.
  11240. (do_restore_current_thread_cleanup)
  11241. (restore_current_thread_cleanup_dtor): Rename/convert both to ...
  11242. (scoped_restore_current_thread::~scoped_restore_current_thread):
  11243. ... this new dtor.
  11244. (make_cleanup_restore_current_thread): Rename/convert to ...
  11245. (scoped_restore_current_thread::scoped_restore_current_thread):
  11246. ... this new ctor.
  11247. (thread_apply_all_command): Use scoped_restore_current_thread.
  11248. (thread_apply_command): Use scoped_restore_current_thread.
  11249. * tracepoint.c (tdump_command): Use scoped_restore_current_thread.
  11250. * varobj.c (value_of_root_1): Use scoped_restore_current_thread.
  11251. 2017-05-04 Pedro Alves <palves@redhat.com>
  11252. * thread.c (make_cleanup_restore_current_thread): Move
  11253. find_thread_ptid call before the is_stopped call. Assert that the
  11254. thread is found. Replace is_stopped call by checking the thread's
  11255. state directly. Remove unnecessary NULL-thread check.
  11256. 2017-05-04 Pedro Alves <palves@redhat.com>
  11257. * corelow.c (thread_section_name): New class.
  11258. (get_core_register_section, get_core_siginfo): Use it.
  11259. 2017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
  11260. * corelow.c (sniff_core_bfd): Remove extra semicolon.
  11261. (get_core_register_section): Remove xfree of NULL pointer.
  11262. 2017-05-03 Alan Hayward <alan.hayward@arm.com>
  11263. * frv-linux-tdep.c (frv_linux_supply_gregset): Use raw_supply_zeroed.
  11264. * regcache.c (regcache::raw_supply_zeroed): New function.
  11265. * regcache.h (regcache::raw_supply_zeroed): New declaration.
  11266. 2017-05-03 Simon Marchi <simon.marchi@ericsson.com>
  11267. * gdbarch.sh: Remove commented out definition of
  11268. TARGET_CHAR_BIT.
  11269. * gdbarch.h: Re-generate.
  11270. 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
  11271. * configure: Regenerate.
  11272. 2017-05-02 Simon Marchi <simon.marchi@ericsson.com>
  11273. * solib-target.c (solib_target_relocate_section_addresses):
  11274. Remove num_section_bases, num_bases, segment_bases variables.
  11275. 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
  11276. * common/gdb_vecs.h (DEF_VEC_I (CORE_ADDR)): Remove.
  11277. 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
  11278. * solib-target.c: Include <vector>
  11279. (struct lm_info_target) <~lm_info_target>: Remove.
  11280. <segment_bases, section_bases>: Change type to
  11281. std::vector<CORE_ADDR>.
  11282. (library_list_start_segment, library_list_start_section,
  11283. library_list_end_library,
  11284. solib_target_relocate_section_addresses): Adjust.
  11285. 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
  11286. * gdbarch.sh (software_single_step): Change return type to
  11287. std::vector<CORE_ADDR>.
  11288. * gdbarch.c, gdbarch.h: Re-generate.
  11289. * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
  11290. Adjust.
  11291. (arm_deal_with_atomic_sequence_raw): Adjust.
  11292. (thumb_get_next_pcs_raw): Adjust.
  11293. (arm_get_next_pcs_raw): Adjust.
  11294. (arm_get_next_pcs): Adjust.
  11295. * arch/arm-get-next-pcs.h (arm_get_next_pcs): Adjust.
  11296. * aarch64-tdep.c (aarch64_software_single_step): Adjust.
  11297. * alpha-tdep.c (alpha_deal_with_atomic_sequence): Adjust.
  11298. (alpha_software_single_step): Adjust.
  11299. * alpha-tdep.h (alpha_software_single_step): Adjust.
  11300. * arm-linux-tdep.c (arm_linux_software_single_step): Adjust.
  11301. * arm-tdep.c (arm_software_single_step): Adjust.
  11302. (arm_breakpoint_kind_from_current_state): Adjust.
  11303. * arm-tdep.h (arm_software_single_step): Adjust.
  11304. * breakpoint.c (insert_single_step_breakpoint): Adjust.
  11305. * cris-tdep.c (cris_software_single_step): Adjust.
  11306. * mips-tdep.c (mips_deal_with_atomic_sequence): Adjust.
  11307. (micromips_deal_with_atomic_sequence): Adjust.
  11308. (deal_with_atomic_sequence): Adjust.
  11309. (mips_software_single_step): Adjust.
  11310. * mips-tdep.h (mips_software_single_step): Adjust.
  11311. * moxie-tdep.c (moxie_software_single_step): Adjust.
  11312. * nios2-tdep.c (nios2_software_single_step): Adjust.
  11313. * ppc-tdep.h (ppc_deal_with_atomic_sequence): Adjust.
  11314. * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust.
  11315. * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust.
  11316. * s390-linux-tdep.c (s390_software_single_step): Adjust.
  11317. * sparc-tdep.c (sparc_software_single_step): Adjust.
  11318. * spu-tdep.c (spu_software_single_step): Adjust.
  11319. * tic6x-tdep.c (tic6x_software_single_step): Adjust.
  11320. 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
  11321. * gdbarch.sh: Use semi-colon as field separator instead of colon.
  11322. * gdbarch.h: Re-generate.
  11323. 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
  11324. * Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o.
  11325. (SUBDIR_PYTHON_SRCS): Add py-instruction.c.
  11326. * python/py-instruction.c, python/py-instruction.h: New file.
  11327. * python/py-record.c: Add py-instruction.h include.
  11328. (gdbpy_initialize_record): Make gdb.Instruction a super class of
  11329. gdb.RecordInstruction.
  11330. * python/python-internal.h: Add gdbpy_initialize_instruction
  11331. declaration.
  11332. * python/python.c (do_start_initialization): Add
  11333. gdbpy_initialize_instruction.
  11334. 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
  11335. * python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type):
  11336. Remove.
  11337. (btrace_func_from_recpy_func): New function.
  11338. (btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove.
  11339. (btpy_call_level, btpy_call_symbol, btpy_call_instructions,
  11340. btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ...
  11341. (recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions,
  11342. recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This.
  11343. Also, use new helper functions.
  11344. (btpy_list_item): Use new helper functions.
  11345. (recpy_bt_function_call_history): Use new type name.
  11346. (btpy_call_getset): Remove.
  11347. (gdbpy_initialize_btrace): Remove code to initialize
  11348. gdb.BtraceFunctionCall.
  11349. * python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level,
  11350. recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up,
  11351. recpy_bt_func_prev, recpy_bt_func_next): New export.
  11352. * python/py-record.c (recpy_func_type): New static object.
  11353. (recpy_func_new, recpy_func_level, recpy_func_symbol,
  11354. recpy_func_instructions, recpy_func_up, recpy_func_prev,
  11355. recpy_func_next): New function.
  11356. (recpy_element_hash, recpy_element_richcompare): Updated comment.
  11357. (recpy_func_getset): New static object.
  11358. (gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction.
  11359. * python/py-record.h (recpy_func_type, recpy_func_new): New export.
  11360. 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
  11361. * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN): Remove.
  11362. (btpy_object, btpy_insn_type, btpy_new): Remove.
  11363. (btpy_list_object): Use gdb.RecordInstruction type instead of
  11364. gdb.BtraceInstruction type.
  11365. (btrace_insn_from_recpy_insn): New function.
  11366. (btpy_insn_or_gap_new): Adjust comment. Use recpy_insn_new instead of
  11367. btpy_new.
  11368. (btpy_call_new, btpy_list_item): Do not use btpy_new anymore.
  11369. (btpy_number, btpy_hash, btpy_call_level, btpy_call_symbol,
  11370. btpy_call_instructions, btpy_call_up, btpy_call_prev_sibling,
  11371. btpy_call_next_sibling, btpy_richcompare): Use recpy_element_object
  11372. instead of btpy_object.
  11373. (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
  11374. btpy_insn_data, btpy_insn_decode): Rename to ...
  11375. (recpy_bt_insn_sal, recpy_bt_insn_pc, recpy_bt_insn_size,
  11376. recpy_bt_insn_is_speculative, recpy_bt_insn_data,
  11377. recpy_bt_insn_decode): This. Also, use new helper functions.
  11378. (btpy_list_position, recpy_bt_goto): Use recpy_element_object and
  11379. recpy_insn_type.
  11380. (btpy_insn_getset): Remove.
  11381. (gdbpy_initialize_btrace): Remove code to initialize
  11382. gdb.BtraceInstruction. Use recpy_element_object.
  11383. * python/py-record-btrace.h (recpy_bt_insn_number, recpy_bt_insn_sal,
  11384. recpy_bt_insn_pc, recpy_bt_insn_data, recpy_bt_insn_decoded,
  11385. recpy_bt_insn_size, recpy_bt_insn_is_speculative): New export.
  11386. * python/py-record.c (recpy_insn_type): New static object.
  11387. (recpy_insn_new, recpy_insn_sal, recpy_insn_pc, recpy_insn_data,
  11388. recpy_insn_decoded, recpy_insn_size, recpy_insn_is_speculative,
  11389. recpy_element_number, recpy_element_hash, recpy_element_richcompare):
  11390. New function.
  11391. (recpy_insn_getset): New static object.
  11392. (gdbpy_initialize_record): Initialize gdb.RecordInstruction.
  11393. * python/py-record.h (recpy_element_object): New typedef.
  11394. (recpy_insn_type, recpy_insn_new): New export.
  11395. 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
  11396. * py-record-btrace.c (btpy_insn_new): Removed.
  11397. (btpy_insn_or_gap_new): New function.
  11398. (btpy_insn_error): Removed.
  11399. (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
  11400. btpy_insn_data, btpy_insn_decode): Remove code path for gaps.
  11401. (recpy_bt_replay_position, recpy_bt_begin, recpy_bt_end): Call
  11402. btpy_insn_or_gap_new instead of btpy_insn_new.
  11403. (btpy_insn_getset): Remove btpy_insn_error.
  11404. * py-record.c (recpy_gap_type): New static object.
  11405. (recpy_gap_object): New typedef.
  11406. (recpy_gap_new, recpy_gap_number, recpy_gap_reason_code,
  11407. recpy_gap_reason_string): New function.
  11408. (recpy_gap_getset): New static object.
  11409. (gdbpy_initialize_record): Initialize gdb.RecordGap type.
  11410. * py-record.h (recpy_gap_new): New export.
  11411. 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
  11412. * python/py-record.c (recpy_ptid): Remove.
  11413. (recpy_record_getset): Remove recpy_ptid.
  11414. 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
  11415. * btrace.c (btrace_fetch): Set inferior_ptid.
  11416. * python/py-record-btrace.c: Add "py-record.h" include.
  11417. (recpy_bt_format, recpy_bt_replay_position, recpy_bt_begin,
  11418. recpy_bt_end, recpy_bt_instruction_history,
  11419. recpy_bt_function_call_history, recpy_bt_goto): Use ptid stored
  11420. in gdb.Record object instead of current ptid.
  11421. * python/py-record.c: Include new "py-record.h" file.
  11422. (recpy_record_object): Moved to py-record.h.
  11423. * python/py-record.h: New file.
  11424. 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
  11425. * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN,
  11426. BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix
  11427. indentation.
  11428. 2017-05-01 Joel Brobecker <brobecker@adacore.com>
  11429. * MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to
  11430. the past maintainers section.
  11431. 2017-04-28 Yao Qi <yao.qi@linaro.org>
  11432. * infcmd.c (get_return_value): Use regcache ctor, and remove
  11433. cleanup.
  11434. 2017-04-28 Yao Qi <yao.qi@linaro.org>
  11435. Pedro Alves <palves@redhat.com>
  11436. * regcache.c (regcache::regcache): New tag dispatch ctor.
  11437. (do_cooked_read): Moved above.
  11438. (regcache_dup): Use the tag dispatch ctor..
  11439. * regcache.h (regcache): Declare ctor, delete copy ctor and
  11440. assignment operator, remove friend regcache_dup.
  11441. 2017-04-28 Yao Qi <yao.qi@linaro.org>
  11442. * regcache.c (regcache_dup): Assert !src->m_readonly_p and
  11443. call method save instead of regcache_cpy.
  11444. * regcache.h (struct regcache): Make regcache_dup a friend.
  11445. 2017-04-28 Yao Qi <yao.qi@linaro.org>
  11446. * regcache.c (struct regcache): Move to regcache.h
  11447. (regcache::arch): New method.
  11448. (regcache_get_ptid): Update.
  11449. (get_regcache_arch): Call arch method.
  11450. (get_regcache_aspace): Call method aspace.
  11451. (register_buffer): Change it to method.
  11452. (regcache_save): Change it to regcache::save.
  11453. (regcache_restore): Likewise.
  11454. (regcache_cpy_no_passthrough): Remove the declaration.
  11455. (regcache_cpy): Call methods restore and cpy_no_passthrough.
  11456. (regcache_cpy_no_passthrough): Change it to method
  11457. cpy_no_passthrough.
  11458. (regcache_register_status): Change it to method
  11459. get_register_status.
  11460. (regcache_invalidate): Change it to method invalidate.
  11461. (regcache_thread_ptid_changed): Use methods ptid and set_ptid.
  11462. (regcache_raw_update): Change it to method raw_update.
  11463. (regcache_raw_read): Likewise.
  11464. (regcache_raw_read_signed): Likewise.
  11465. (regcache_raw_read_unsigned): Likewise.
  11466. (regcache_raw_write_signed): Likewise.
  11467. (regcache_raw_write_unsigned): Likewise.
  11468. (regcache_cooked_read): Likewise.
  11469. (regcache_cooked_read_value): Likewise.
  11470. (regcache_cooked_read_signed): Likewise.
  11471. (regcache_cooked_read_unsigned): Likewise.
  11472. (regcache_cooked_write_signed): Likewise.
  11473. (regcache_cooked_write_unsigned): Likewise.
  11474. (regcache_raw_set_cached_value): Likewise.
  11475. (regcache_raw_write): Likewise.
  11476. (regcache_cooked_write): Likewise.
  11477. (regcache_xfer_part): Likewise.
  11478. (regcache_raw_read_part): Likewise.
  11479. (regcache_raw_write_part): Likewise.
  11480. (regcache_cooked_read_part): Likewise.
  11481. (regcache_cooked_write_part): Likewise.
  11482. (regcache_raw_supply): Likewise.
  11483. (regcache_raw_collect): Likewise.
  11484. (regcache_transfer_regset): Likewise.
  11485. (regcache_supply_regset): Likewise.
  11486. (regcache_collect_regset): Likewise.
  11487. (regcache_debug_print_register): Likewise.
  11488. (enum regcache_dump_what): Move it to regcache.h.
  11489. (regcache_dump): Change it to method dump.
  11490. * regcache.h (enum regcache_dump_what): New.
  11491. (class regcache): New.
  11492. * target.c (target_fetch_registers): Call method
  11493. debug_print_register.
  11494. (target_store_registers): Likewise.
  11495. 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
  11496. * windows-nat.c (struct lm_info_windows): Initialize field.
  11497. (windows_make_so): Allocate lm_info_windows with new.
  11498. (windows_free_so): Free lm_info_windows with delete.
  11499. 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
  11500. * solib-darwin.c (struct lm_info_darwin): Initialize field.
  11501. (darwin_current_sos): Allocate lm_info_darwin with new, remove
  11502. cleanup.
  11503. (darwin_free_so): Free lm_info_darwin with delete.
  11504. 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
  11505. * solib-svr4.h (struct lm_info_svr4): Initialize fields.
  11506. <l_addr_p>: Change type to bool.
  11507. * solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new.
  11508. (svr4_free_so): Free lm_info_svr4 with delete.
  11509. (svr4_copy_library_list): Replace memcpy with call to copy
  11510. constructor.
  11511. (library_list_start_library, svr4_default_sos): Allocate
  11512. lm_info_svr4 with new.
  11513. 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
  11514. * solib-target.c (struct lm_info_target): Add destructor,
  11515. initialize fields.
  11516. <name>: Change type to std::string.
  11517. (library_list_start_library): Allocate lm_info_target with new.
  11518. (solib_target_free_library_list): Free lm_info_target with
  11519. delete.
  11520. (solib_target_current_sos): Adapt to std::string.
  11521. (solib_target_free_so): Free lm_info_target with delete.
  11522. 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
  11523. * solib-frv.c (struct lm_info_frv): Add destructor, initialize
  11524. fields.
  11525. (frv_current_sos): Allocate lm_info_frv with new.
  11526. (frv_relocate_main_executable): Free lm_info_frv with delete,
  11527. allocate with new.
  11528. (frv_clear_solib, frv_free_so): Free lm_info_frv with delete.
  11529. 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
  11530. * solib-frv.c (struct lm_info_frv): Fix indentation.
  11531. 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
  11532. * solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize
  11533. map field.
  11534. (dsbt_current_sos): Allocate lm_info_dsbt with new.
  11535. (dsbt_relocate_main_executable): Free lm_info_dsbt with delete
  11536. and allocate with new.
  11537. (dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete.
  11538. 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
  11539. * solib-aix.c (struct lm_info_aix): Initialize fields in-class.
  11540. <filename, member_name>: Change type to std::string.
  11541. (solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove.
  11542. (library_list_start_library): Allocate lm_info_aix with new.
  11543. (solib_aix_free_library_list, solib_aix_free_so): Free with delete.
  11544. (solib_aix_current_sos): Adapt to std::string, copy lm_info_aix
  11545. with copy constructor.
  11546. 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
  11547. * solist.h (struct lm_info): Remove.
  11548. (struct lm_info_base): New class.
  11549. (struct so_list) <lm_info>: Change type to lm_info_base *.
  11550. * nto-tdep.c (struct lm_info): Remove.
  11551. (lm_addr): Adjust.
  11552. * solib-aix.c (struct lm_info): Rename to ...
  11553. (struct lm_info_aix): ... this. Extend lm_info_base.
  11554. (lm_info_p): Rename to ...
  11555. (lm_info_aix_p): ... this, and adjust.
  11556. (solib_aix_new_lm_info, solib_aix_xfree_lm_info,
  11557. solib_aix_parse_libraries, library_list_start_library,
  11558. solib_aix_free_library_list, solib_aix_parse_libraries,
  11559. solib_aix_get_library_list,
  11560. solib_aix_relocate_section_addresses, solib_aix_free_so,
  11561. solib_aix_get_section_offsets,
  11562. solib_aix_solib_create_inferior_hook, solib_aix_current_sos):
  11563. Adjust.
  11564. (struct solib_aix_inferior_data) <library_list>: Adjust.
  11565. * solib-darwin.c (struct lm_info): Rename to ...
  11566. (struct lm_info_darwin): ... this. Extend lm_info_base.
  11567. (darwin_current_sos, darwin_relocate_section_addresses): Adjust.
  11568. * solib-dsbt.c (struct lm_info): Rename to ...
  11569. (struct lm_info_dsbt): ... this. Extend lm_info_base.
  11570. (struct dsbt_info) <main_executable_lm_info): Adjust.
  11571. (dsbt_current_sos, dsbt_relocate_main_executable, dsbt_free_so,
  11572. dsbt_relocate_section_addresses): Adjust.
  11573. * solib-frv.c (struct lm_info): Rename to ...
  11574. (struct lm_info_frv): ... this. Extend lm_info_base.
  11575. (main_executable_lm_info): Adjust.
  11576. (frv_current_sos, frv_relocate_main_executable, frv_free_so,
  11577. frv_relocate_section_addresses, frv_fdpic_find_global_pointer,
  11578. find_canonical_descriptor_in_load_object,
  11579. frv_fdpic_find_canonical_descriptor): Adjust.
  11580. * solib-svr4.c (struct lm_info): Move to solib-svr4.h, renamed
  11581. to lm_info_svr4.
  11582. (lm_info_read, lm_addr_check, svr4_keep_data_in_core,
  11583. svr4_clear_so, svr4_copy_library_list,
  11584. library_list_start_library, svr4_default_sos, svr4_read_so_list,
  11585. svr4_current_sos, svr4_fetch_objfile_link_map,
  11586. solist_update_incremental): Adjust.
  11587. * solib-svr4.h (struct lm_info_svr4): Move here from
  11588. solib-svr4.c.
  11589. * solib-target.c (struct lm_info): Rename to ...
  11590. (struct lm_info_target): ... this. Extend lm_info_base.
  11591. (lm_info_p): Rename to ...
  11592. (lm_info_target_p): ... this.
  11593. (solib_target_parse_libraries, library_list_start_segment,
  11594. library_list_start_section, library_list_start_library,
  11595. library_list_end_library, solib_target_free_library_list,
  11596. solib_target_current_sos, solib_target_free_so,
  11597. solib_target_relocate_section_addresses): Adjust.
  11598. * windows-nat.c (struct lm_info): Rename to ...
  11599. (struct lm_info_windows): ... this. Extend lm_info_base.
  11600. (windows_make_so, handle_load_dll, handle_unload_dll,
  11601. windows_xfer_shared_libraries): Adjust.
  11602. 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
  11603. * solib-darwin.c (struct darwin_so_list): Remove.
  11604. (darwin_current_sos): Allocate an so_list object instead of a
  11605. darwin_so_list, separately allocate an lm_info object.
  11606. (darwin_free_so): Free lm_info.
  11607. 2017-04-28 John Baldwin <jhb@FreeBSD.org>
  11608. * mips-tdep.c (print_gp_register_row): Replace printf_filtered
  11609. with fprintf_filtered.
  11610. 2017-04-28 Yao Qi <yao.qi@linaro.org>
  11611. * regcache.c (regcache::regcache): New function.
  11612. (regcache::~regcache): New function.
  11613. (regcache_xmalloc_1): Remove.
  11614. (regcache_xmalloc): Call new regcache.
  11615. (regcache_xfree): Call delete regcache.
  11616. (get_thread_arch_aspace_regcache): Call new regcache.
  11617. 2017-04-28 Yao Qi <yao.qi@linaro.org>
  11618. * mips-linux-nat.c (mips_linux_new_thread): Use ptid method
  11619. lwp instead of ptid_get_lwp.
  11620. 2017-04-28 Yao Qi <yao.qi@linaro.org>
  11621. * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from
  11622. lwp_info instead of getting from inferior_ptid.
  11623. 2017-04-27 Keith Seitz <keiths@redhat.com>
  11624. * gdbtypes.c (LVALUE_REFERENCE_TO_RVALUE_BINDING_BADNESS)
  11625. DIFFERENT_REFERENCE_TYPE_BADNESS): Remove.
  11626. (CV_CONVERSION_BADNESS): Define.
  11627. (rank_one_type): Remove overly restrictive rvalue reference
  11628. rank checks.
  11629. Add cv-qualifier checks and subranks for type equality.
  11630. * gdbtypes.h (REFERENCE_CONVERSION_RVALUE,
  11631. REFERENCE_CONVERSION_CONST_LVALUE, CV_CONVERSION_BADNESS,
  11632. CV_CONVERSION_CONST, CV_CONVERSION_VOLATILE): Declare.
  11633. 2017-04-27 Simon Marchi <simon.marchi@ericsson.com>
  11634. * python/py-inferior.c (inferior_to_inferior_object): Increment reference
  11635. count when creating the object.
  11636. 2017-04-27 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
  11637. Ulrich Weigand <uweigand@de.ibm.com>
  11638. * xcoffread.c (read_xcoff_symtab): Read correct function auxiliary
  11639. entry if xlc -qfuncsect or gcc -ffunction-sections compiler option
  11640. is used in AIX.
  11641. (read_xcoff_symtab): Handle C_WEAKEXT storage class.
  11642. (process_xcoff_symbol): Likewise.
  11643. (scan_xcoff_symtab): Likewise.
  11644. 2017-04-26 Alan Hayward <alan.hayward@arm.com>
  11645. * ia64-tdep.c (examine_prologue): Use get_frame_register_unsigned.
  11646. (ia64_sigtramp_frame_prev_register): Use read_memory_unsigned_integer.
  11647. (ia64_access_reg): Use get_frame_register_unsigned.
  11648. (ia64_access_rse_reg): Likewise.
  11649. (ia64_libunwind_frame_prev_register): Likewise.
  11650. 2017-04-26 Jiong Wang <jiong.wang@arm.com>
  11651. * gdbarch.sh: New gdbarch method execute_dwarf_cfa_vendor_op.
  11652. * gdbarch.c: Regenerated.
  11653. * gdbarch.h: Regenerated.
  11654. * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Made the
  11655. visibility external.
  11656. (execute_cfa_program): Call execute_dwarf_cfa_vendor_op for CFI
  11657. between DW_CFA_lo_user and DW_CFA_high_user inclusive.
  11658. (enum cfa_how_kind): Move to ...
  11659. (struct dwarf2_frame_state_reg_info): Likewise.
  11660. (struct dwarf2_frame_state): Likewise.
  11661. * dwarf2-frame.h: ... here.
  11662. (dwarf2_frame_state_alloc_regs): New declaration.
  11663. * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): New function.
  11664. (sparc32_gdbarch_init): Register execute_dwarf_cfa_vendor_op hook.
  11665. 2017-04-26 Alan Hayward <alan.hayward@arm.com>
  11666. * xtensa-tdep.c (xtensa_pseudo_register_read): Use
  11667. regcache_raw_read_unsigned.
  11668. (xtensa_pseudo_register_write): Likewise.
  11669. 2017-04-26 Alan Hayward <alan.hayward@arm.com>
  11670. * nds32-tdep.c (nds32_pseudo_register_read): Abort on errors.
  11671. (nds32_pseudo_register_write): Likewise.
  11672. 2017-04-25 Yao Qi <yao.qi@linaro.org>
  11673. * regcache.c (struct regcache) <readonly_p>: Change its type
  11674. to bool.
  11675. (regcache_xmalloc_1): Update parameter type and callers update.
  11676. 2017-04-25 Yao Qi <yao.qi@linaro.org>
  11677. * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
  11678. set_gdbarch_wchar_bit.
  11679. * arm-tdep.c (arm_gdbarch_init): Likewise.
  11680. 2017-04-25 Pedro Alves <palves@redhat.com>
  11681. * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable)
  11682. (BothAreRelocatable, memcopy, memmove): Don't define.
  11683. * common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New
  11684. macros.
  11685. 2017-04-25 Pedro Alves <palves@redhat.com>
  11686. * common/common-defs.h: Include "common/poison.h".
  11687. * common/function-view.h: (Not, Or, Requires): Move to traits.h
  11688. and adjust.
  11689. * common/poison.h: New file.
  11690. * common/traits.h: Include <type_traits>.
  11691. (Not, Or, Requires): New, moved from common/function-view.h.
  11692. 2017-04-25 Pedro Alves <palves@redhat.com>
  11693. * breakpoint.h (struct breakpoint): In-class initialize all
  11694. fields. Make boolean fields "bool".
  11695. * breakpoint.c (init_raw_breakpoint_without_location): Remove
  11696. memset call and initializations no longer necessary.
  11697. 2017-04-25 Pedro Alves <palves@redhat.com>
  11698. * btrace.c (pt_btrace_insn_flags): Change parameter type to
  11699. reference.
  11700. (pt_btrace_insn): New function.
  11701. (ftrace_add_pt): Remove memset call and use pt_btrace_insn.
  11702. 2017-04-25 Pedro Alves <palves@redhat.com>
  11703. * ada-lang.c (ada_catchpoint_location): Now a "class". Remove
  11704. "base" field and inherit from "bp_location" instead. Add
  11705. non-default ctor.
  11706. (allocate_location_exception): Use new non-default ctor.
  11707. * breakpoint.c (get_first_locp_gte_addr): Remove memset call.
  11708. (init_bp_location): Convert to ...
  11709. (bp_location::bp_location): ... this new ctor, and remove memset
  11710. call.
  11711. (base_breakpoint_allocate_location): Use the new non-default ctor.
  11712. * breakpoint.h (bp_location): Now a class. Declare default and
  11713. non-default ctors. In-class initialize all members.
  11714. (init_bp_location): Remove declaration.
  11715. 2017-04-25 Pedro Alves <palves@redhat.com>
  11716. * common/enum-flags.h (enum_flags): Don't implement copy ctor and
  11717. assignment operator.
  11718. 2017-04-24 Yao Qi <yao.qi@linaro.org>
  11719. * doublest.c (convert_doublest_to_floatformat): Call
  11720. floatformat_totalsize_bytes.
  11721. 2017-04-22 Tom Tromey <tom@tromey.com>
  11722. * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
  11723. ui_out_emit_list.
  11724. * stack.c (print_frame): Use ui_out_emit_list.
  11725. * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
  11726. ui_out_emit_list.
  11727. * mi/mi-main.c (print_one_inferior)
  11728. (mi_cmd_data_list_register_names)
  11729. (mi_cmd_data_list_register_values, mi_cmd_list_features)
  11730. (mi_cmd_list_target_features, mi_cmd_trace_frame_collected): Use
  11731. ui_out_emit_list.
  11732. * mi/mi-interp.c (mi_on_normal_stop_1): Use ui_out_emit_list.
  11733. (mi_output_solib_attribs): Use ui_out_emit_list,
  11734. ui_out_emit_tuple.
  11735. * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_list.
  11736. * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
  11737. (mi_cmd_stack_list_args, list_args_or_locals): Use
  11738. ui_out_emit_list.
  11739. * disasm.c (do_assembly_only): Use ui_out_emit_list.
  11740. * breakpoint.c (print_solib_event, output_thread_groups): Use
  11741. ui_out_emit_list.
  11742. 2017-04-22 Tom Tromey <tom@tromey.com>
  11743. * mi/mi-main.c (print_variable_or_computed): Use ui_out_emit_tuple.
  11744. * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_tuple.
  11745. * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_out_emit_tuple.
  11746. 2017-04-22 Tom Tromey <tom@tromey.com>
  11747. * tracepoint.c (tvariables_info_1)
  11748. (print_one_static_tracepoint_marker): Use ui_out_emit_tuple.
  11749. 2017-04-22 Tom Tromey <tom@tromey.com>
  11750. * stack.c (print_frame_arg): Use ui_out_emit_tuple,
  11751. annotate_arg_emitter.
  11752. * breakpoint.c (print_mention_watchpoint)
  11753. (print_mention_masked_watchpoint): Use ui_out_emit_tuple.
  11754. * annotate.h (struct annotate_arg_emitter): New.
  11755. 2017-04-22 Tom Tromey <tom@tromey.com>
  11756. * record-btrace.c (record_btrace_insn_history)
  11757. (record_btrace_insn_history_range, record_btrace_call_history)
  11758. (record_btrace_call_history_range): Use ui_out_emit_tuple.
  11759. * thread.c (do_captured_list_thread_ids, print_thread_info_1): Use
  11760. ui_out_emit_tuple.
  11761. * stack.c (print_frame_info): Use ui_out_emit_tuple.
  11762. * solib.c (info_sharedlibrary_command): Use ui_out_emit_tuple.
  11763. * skip.c (skip_info): Use ui_out_emit_tuple.
  11764. * remote.c (show_remote_cmd): Use ui_out_emit_tuple.
  11765. * progspace.c (print_program_space): Use ui_out_emit_tuple.
  11766. * probe.c (info_probes_for_ops): Use ui_out_emit_tuple.
  11767. * osdata.c (info_osdata): Use ui_out_emit_tuple.
  11768. * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
  11769. ui_out_emit_tuple.
  11770. * mi/mi-main.c (print_one_inferior, list_available_thread_groups)
  11771. (output_register, mi_cmd_data_read_memory)
  11772. (mi_cmd_data_read_memory_bytes, mi_load_progress)
  11773. (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple.
  11774. * mi/mi-cmd-var.c (mi_cmd_var_list_children, varobj_update_one):
  11775. Use ui_out_emit_tuple.
  11776. * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Use
  11777. ui_out_emit_tuple.
  11778. * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
  11779. (mi_cmd_info_gdb_mi_command): Use ui_out_emit_tuple.
  11780. * linux-thread-db.c (info_auto_load_libthread_db): Use
  11781. ui_out_emit_tuple.
  11782. * inferior.c (print_inferior): Use ui_out_emit_tuple.
  11783. * gdb_bfd.c (print_one_bfd): Use ui_out_emit_tuple.
  11784. * disasm.c (do_mixed_source_and_assembly_deprecated)
  11785. (do_mixed_source_and_assembly): Use ui_out_emit_tuple.
  11786. * cp-abi.c (list_cp_abis): Use ui_out_emit_tuple.
  11787. * cli/cli-setshow.c (cmd_show_list): Use ui_out_emit_tuple.
  11788. * breakpoint.c (print_one_breakpoint_location)
  11789. (print_one_breakpoint): Use ui_out_emit_tuple.
  11790. * auto-load.c (print_script, info_auto_load_cmd): Use
  11791. ui_out_emit_tuple.
  11792. * ada-tasks.c (print_ada_task_info): Use ui_out_emit_tuple.
  11793. 2017-04-21 Simon Marchi <simon.marchi@ericsson.com>
  11794. * thread.c (print_thread_info_1): Remove dead code.
  11795. 2017-04-21 Jan Kratochvil <jan.kratochvil@redhat.com>
  11796. * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if
  11797. GDB_SELF_TEST.
  11798. * arm-tdep.c (selftests::arm_record_test): Likewise.
  11799. 2017-04-21 Yao Qi <yao.qi@linaro.org>
  11800. * regcache.c (regcache_restore): Remove argument 2. Replace
  11801. argument 3 with regcache. Get register status from
  11802. src->register_status and get register contents from
  11803. register_buffer (src, regnum).
  11804. (regcache_cpy): Update.
  11805. 2017-04-19 Pedro Alves <palves@redhat.com>
  11806. * gdbthread.h (thread): Add missing closing parenthesis in
  11807. comment.
  11808. 2017-04-19 Pedro Alves <palves@redhat.com>
  11809. * common/refcounted-object.h: New file.
  11810. * gdbthread.h: Include "common/refcounted-object.h".
  11811. (thread_info): Inherit from refcounted_object and add comments.
  11812. (thread_info::incref, thread_info::decref)
  11813. (thread_info::m_refcount): Delete.
  11814. (thread_info::deletable): Use the refcounted_object::refcount()
  11815. method.
  11816. * inferior.c (current_inferior_): Add comment.
  11817. (set_current_inferior): Increment/decrement refcounts.
  11818. (prune_inferiors, remove_inferior_command): Skip inferiors marked
  11819. not-deletable instead of comparing with the current inferior.
  11820. (initialize_inferiors): Increment the initial inferior's refcount.
  11821. * inferior.h (struct inferior): Forward declare.
  11822. Include "common/refcounted-object.h".
  11823. (current_inferior, set_current_inferior): Move declaration to
  11824. before struct inferior's definition, and fix comment.
  11825. (inferior): Inherit from refcounted_object. Add comments.
  11826. * thread.c (switch_to_thread_no_regs): Reference the thread's
  11827. inferior pointer directly instead of doing a ptid lookup.
  11828. (switch_to_no_thread): New function.
  11829. (switch_to_thread(thread_info *)): New function, factored out
  11830. from ...
  11831. (switch_to_thread(ptid_t)): ... this.
  11832. (restore_current_thread): Delete.
  11833. (current_thread_cleanup): Remove 'inf_id' and 'was_removable'
  11834. fields, and add 'inf' field.
  11835. (do_restore_current_thread_cleanup): Check whether old->inf is
  11836. alive instead of looking up an inferior by ptid. Use
  11837. switch_to_thread and switch_to_no_thread.
  11838. (restore_current_thread_cleanup_dtor): Use old->inf directly
  11839. instead of lookup up an inferior by id. Decref the inferior.
  11840. Don't restore 'removable'.
  11841. (make_cleanup_restore_current_thread): Same the inferior pointer
  11842. in old, instead of the inferior number. Incref the inferior.
  11843. Don't save/clear 'removable'.
  11844. 2017-04-19 Pedro Alves <palves@redhat.com>
  11845. * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
  11846. unittests/scoped_restore-selftests.c.
  11847. (SUBDIR_UNITTESTS_OBS): Add scoped_restore-selftests.o.
  11848. * common/scoped_restore.h (scoped_restore_base): Make "class".
  11849. (scoped_restore_base::release): New public method.
  11850. (scoped_restore_base::scoped_restore_base): New protected ctor.
  11851. (scoped_restore_base::m_saved_var): New protected field.
  11852. (scoped_restore_tmpl::scoped_restore_tmpl(T*)): Initialize the
  11853. scoped_restore_base base class instead of m_saved_var directly.
  11854. (scoped_restore_tmpl::scoped_restore_tmpl(T*, T2)): Likewise.
  11855. (scoped_restore_tmpl::scoped_restore_tmpl(const
  11856. scoped_restore_tmpl<T>&)): Likewise.
  11857. (scoped_restore_tmpl::~scoped_restore_tmpl): Use the saved_var
  11858. method.
  11859. (scoped_restore_tmpl::saved_var): New method.
  11860. (scoped_restore_tmpl::m_saved_var): Delete.
  11861. * inferior.h (inferior::detaching): Now a bool.
  11862. * infrun.c (prepare_for_detach): Use a scoped_restore instead of a
  11863. cleanup.
  11864. * unittests/scoped_restore-selftests.c: New file.
  11865. 2017-04-19 Pedro Alves <palves@redhat.com>
  11866. * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS):
  11867. Re-sort in alphabetic order.
  11868. 2017-04-18 Pedro Alves <palves@redhat.com>
  11869. * xml-support.c (obstack_xml_printf): Delete.
  11870. * xml-support.h (obstack_xml_printf): Delete.
  11871. 2017-04-18 Pedro Alves <palves@redhat.com>
  11872. * xml-support.c (gdb_xml_parser) <use_dtd, dtd_name, parse,
  11873. vdebug, verror, body_text, start_element, end_element, name,
  11874. user_data, set_is_xinclude, set_error, expat_parser>: New methods.
  11875. <name, user_data, expat_parser, scopes, error, last_line, dtd_name,
  11876. is_xinclude>: Make private and add m_ prefix.
  11877. (gdb_xml_parser::body_text): New method, based on ...
  11878. (gdb_xml_body_text): ... this. Adjust.
  11879. (gdb_xml_parser::vdebug): New method, based on ...
  11880. (gdb_xml_debug): ... this. Adjust.
  11881. (gdb_xml_parser::verror): New method, based on ...
  11882. (gdb_xml_error): ... this. Adjust.
  11883. (gdb_xml_parser::start_element): New method, based on ...
  11884. (gdb_xml_start_element): ... this. Adjust.
  11885. (gdb_xml_start_element_wrapper): Defer to
  11886. gdb_xml_parser::start_element and gdb_xml_parser::set_error.
  11887. (gdb_xml_parser::end_element): New method, based on ...
  11888. (gdb_xml_end_element_wrapper): ... this. Adjust.
  11889. (gdb_xml_parser::~gdb_xml_parser): Adjust.
  11890. (gdb_xml_parser::gdb_xml_parser): Adjust to field renames.
  11891. (gdb_xml_parser::use_dtd): New method, based on ...
  11892. (gdb_xml_use_dtd): ... this. Adjust.
  11893. (gdb_xml_parser::parse): New method, based on ...
  11894. (gdb_xml_parse): ... this. Adjust.
  11895. (gdb_xml_parse_quick): Adjust to call the parser's parse method.
  11896. (xinclude_start_include): Adjust to call the parser's name method.
  11897. (xml_xinclude_default, xml_xinclude_start_doctype)
  11898. (xml_xinclude_end_doctype): Adjust to call the parser's user_data
  11899. method.
  11900. (xml_process_xincludes): Adjust to call parser methods.
  11901. * xml-support.h (gdb_xml_use_dtd, gdb_xml_parse): Delete
  11902. declarations.
  11903. 2017-04-18 Pedro Alves <palves@redhat.com>
  11904. * tracefile-tfile.c (tfile_write_tdesc): Adjust to use
  11905. gdb::optional<std::string>.
  11906. * xml-support.c: Include <string>.
  11907. (scope_level::scope_level(scope_level &&))
  11908. (scope_level::~scope_level): Delete.
  11909. (scope_level::body): Now a std::string.
  11910. (gdb_xml_body_text, gdb_xml_end_element): Adjust.
  11911. (xinclude_parsing_data::xinclude_parsing_data): Add 'output'
  11912. parameter.
  11913. (xinclude_parsing_data::~xinclude_parsing_data): Delete.
  11914. (xinclude_parsing_data::output): Now a std::string reference.
  11915. (xinclude_start_include): Adjust.
  11916. (xml_xinclude_default): Adjust.
  11917. (xml_process_xincludes): Add 'output' parameter, and return bool.
  11918. * xml-support.h (xml_process_xincludes): Add 'output' parameter,
  11919. and return bool.
  11920. * xml-tdesc.c: Include <unordered_map> and <string>.
  11921. (tdesc_xml_cache): Delete.
  11922. (tdesc_xml_cache_s): Delete.
  11923. (xml_cache): Now an std::unordered_map.
  11924. (tdesc_parse_xml): Adjust to use std::string and unordered_map.
  11925. (target_fetch_description_xml): Change return type to
  11926. gdb::optional<std::string>, and adjust.
  11927. * xml-tdesc.h: Include "common/gdb_optional.h" and <string>.
  11928. (target_fetch_description_xml): Change return type to
  11929. gdb::optional<std::string>.
  11930. 2017-04-18 Pedro Alves <palves@redhat.com>
  11931. * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
  11932. unittests/optional-selftests.c.
  11933. (SUBDIR_UNITTESTS_OBS): Add optional-selftests.o.
  11934. * unittests/optional-selftests.c: New file.
  11935. * unittests/optional/assignment/1.cc: New file.
  11936. * unittests/optional/assignment/2.cc: New file.
  11937. * unittests/optional/assignment/3.cc: New file.
  11938. * unittests/optional/assignment/4.cc: New file.
  11939. * unittests/optional/assignment/5.cc: New file.
  11940. * unittests/optional/assignment/6.cc: New file.
  11941. * unittests/optional/assignment/7.cc: New file.
  11942. * unittests/optional/cons/copy.cc: New file.
  11943. * unittests/optional/cons/default.cc: New file.
  11944. * unittests/optional/cons/move.cc: New file.
  11945. * unittests/optional/cons/value.cc: New file.
  11946. * unittests/optional/in_place.cc: New file.
  11947. * unittests/optional/observers/1.cc: New file.
  11948. * unittests/optional/observers/2.cc: New file.
  11949. 2017-04-18 Pedro Alves <palves@redhat.com>
  11950. * common/gdb_optional.h: Include common/traits.h.
  11951. (in_place_t): New type.
  11952. (in_place): New constexpr variable.
  11953. (optional::optional): Remove member initialization of
  11954. m_instantiated.
  11955. (optional::optional(in_place_t...)): New constructor.
  11956. (optional::~optional): Use reset.
  11957. (optional::optional(const optional&)): New.
  11958. (optional::optional(const optional&&)): New.
  11959. (optional::optional(T &)): New.
  11960. (optional::optional(T &&)): New.
  11961. (operator::operator=(const optional &)): New.
  11962. (operator::operator=(optional &&)): New.
  11963. (operator::operator= (const T &))
  11964. (operator::operator= (T &&))
  11965. (operator::emplace (Args &&... args)): Return a T&. Use reset.
  11966. (operator::reset): New.
  11967. (operator::m_instantiated):: Add in-class initializer.
  11968. * common/traits.h: Include <type_traits>.
  11969. (struct And): New types.
  11970. 2017-04-18 Pedro Alves <palves@redhat.com>
  11971. * xml-support.c: Include <vector>.
  11972. (scope_level::scope_level(const gdb_xml_element *))
  11973. (scope_level::scope_level(scope_level&&)): New.
  11974. (scope_level::~scope_level): New.
  11975. (scope_level_s): Delete.
  11976. (gdb_xml_parser::scopes): Now a std::vector.
  11977. (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element):
  11978. Use std::vector.
  11979. (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary
  11980. scope cleanup code.
  11981. (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization
  11982. of the scopes member. Use std::vector::emplace_back.
  11983. 2017-04-18 Pedro Alves <palves@redhat.com>
  11984. * xml-support.c (gdb_xml_parser): Add ctor/dtor. Make is_xinclude
  11985. a bool.
  11986. (gdb_xml_end_element): Change type of first parameter.
  11987. (gdb_xml_cleanup): Rename to ...
  11988. (gdb_xml_parser::~gdb_xml_parser): ... this.
  11989. (gdb_xml_create_parser_and_cleanup): Delete with ...
  11990. (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out
  11991. to this new ctor.
  11992. (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of
  11993. using gdb_xml_create_parser_and_cleanup.
  11994. (xinclude_parsing_data): Add ctor/dtor.
  11995. (xml_xinclude_cleanup): Delete.
  11996. (xml_process_xincludes): Create a local xinclude_parsing_data
  11997. instead of heap-allocating one. Create a local gdb_xml_parser
  11998. instead of heap-allocating one with
  11999. gdb_xml_create_parser_and_cleanup.
  12000. 2017-04-18 John Baldwin <jhb@FreeBSD.org>
  12001. PR threads/20743
  12002. * fbsd-nat.c (resume_one_thread_cb): Remove.
  12003. (resume_all_threads_cb): Remove.
  12004. (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of
  12005. iterate_over_threads.
  12006. 2017-04-17 Joel Brobecker <brobecker@adacore.com>
  12007. * NEWS: Create a new section for the next release branch.
  12008. Rename the section of the current branch, now that it has
  12009. been cut.
  12010. 2017-04-17 Joel Brobecker <brobecker@adacore.com>
  12011. GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db):
  12012. * version.in: Bump version to 8.0.50.DATE-git.
  12013. 2017-04-13 Sergio Durigan Junior <sergiodj@redhat.com>
  12014. PR gdb/21385
  12015. * windows-nat.c (windows_create_inferior): Declare 'allargs'
  12016. independently of the host, and fix build breakage on Cygwin.
  12017. 2017-04-13 Pedro Alves <palves@redhat.com>
  12018. * inferior.c (free_inferior): Convert to ...
  12019. (inferior::~inferior): ... this dtor.
  12020. (inferior::inferior): New ctor, factored out from ...
  12021. (add_inferior_silent): ... here. Allocate the inferior with a new
  12022. expression.
  12023. (delete_inferior): Call delete instead of free_inferior.
  12024. * inferior.h (gdb_environ, continuation): Forward declare.
  12025. (inferior): Now a class. Add in-class initialization to all
  12026. members. Make boolean fields bool, except 'detaching'.
  12027. (inferior::inferior): New explicit ctor.
  12028. (inferior::~inferior): New.
  12029. 2017-04-13 Pedro Alves <palves@redhat.com>
  12030. * inferior.c (init_inferior_list): Delete.
  12031. * inferior.h (init_inferior_list): Delete.
  12032. 2017-04-13 Pedro Alves <palves@redhat.com>
  12033. PR threads/13217
  12034. * gdb.threads/threadapply.exp (thr_apply_detach): New procedure.
  12035. (top level): Call it twice, with different thread sets.
  12036. 2017-04-13 Pedro Alves <palves@redhat.com>
  12037. * thread.c: Include <algorithm>.
  12038. (thread_array_cleanup): Delete.
  12039. (scoped_inc_dec_ref): New class.
  12040. (live_threads_count): New function.
  12041. (set_thread_refcount): Delete.
  12042. (tp_array_compar_ascending): Now a bool.
  12043. (tp_array_compar): Convert to a std::sort comparison function.
  12044. (thread_apply_all_command): Use std::vector and scoped_inc_dec_ref
  12045. and live_threads_count.
  12046. 2017-04-13 Pedro Alves <palves@redhat.com>
  12047. * infrun.c (follow_fork_inferior): Also switch the current
  12048. inferior.
  12049. 2017-04-13 Pedro Alves <palves@redhat.com>
  12050. * breakpoint.c (watch_command_1): Save watchpoint-frame info
  12051. before calling create_internal_breakpoint.
  12052. 2017-04-13 Pedro Alves <palves@redhat.com>
  12053. * fork-child.c (execv_argv): New class.
  12054. (breakup_args): Refactored as ...
  12055. (execv_argv::init_for_no_shell): .. this method of execv_argv.
  12056. Copy arguments to storage and replace separators with NULL
  12057. terminators in place.
  12058. (escape_bang_in_quoted_argument): Adjust to return bool.
  12059. (execv_argv::execv_argv): New ctor.
  12060. (execv_argv::init_for_shell): New method, factored out from
  12061. fork_inferior. Don't strdup strings into the vector.
  12062. (fork_inferior): Eliminate "shell" local and use execv_argv. Use
  12063. Remove free_vector_argv call.
  12064. 2017-04-13 Yao Qi <yao.qi@linaro.org>
  12065. * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of
  12066. tdep->rx_psw_type.
  12067. 2017-04-13 Yao Qi <yao.qi@linaro.org>
  12068. * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW.
  12069. * rx-tdep.c (rx_gdbarch_init): Likewise.
  12070. 2017-04-13 Pedro Alves <palves@redhat.com>
  12071. * breakpoint.h (struct breakpoint): Reindent.
  12072. 2017-04-13 Pedro Alves <palves@redhat.com>
  12073. * breakpoint.c (bp_location): Rename to ...
  12074. (bp_locations): ... this. All references updated.
  12075. (bp_location_count): Rename to ...
  12076. (bp_locations_count): ... this. All references updated.
  12077. (bp_location_placed_address_before_address_max): Rename to ...
  12078. (bp_locations_placed_address_before_address_max): ... this. All
  12079. references updated.
  12080. (bp_location_shadow_len_after_address_max): Rename to ...
  12081. (bp_locations_shadow_len_after_address_max): ... this. All
  12082. references updated.
  12083. (bp_location_compare_addrs): Rename to ...
  12084. (bp_locations_compare_addrs): ... this. All references updated.
  12085. (bp_location_compare):Rename to ...
  12086. (bp_locations_compare): ... this. All references updated.
  12087. (bp_location_target_extensions_update): Rename to ...
  12088. (bp_locations_target_extensions_update): ... this. All references
  12089. updated.
  12090. 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
  12091. * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h".
  12092. * common/common.m4: Check headers 'termios.h', 'termio.h' and
  12093. 'sgtty.h'.
  12094. * common/gdb_termios.h: New file, with parts of "terminal.h".
  12095. * inflow.c: Include "gdb_termios.h".
  12096. * ser-unix.c: Include "gdb_termios.h".
  12097. * terminal.h: Move terminal-related defines to
  12098. "common/gdb_termios.h".
  12099. 2017-04-12 Tom Tromey <tom@tromey.com>
  12100. * probe.c (parse_probes): Update.
  12101. * location.h (delete_event_location): Don't declare.
  12102. (event_location_deleter::operator()): Update.
  12103. * location.c (event_location_deleter::operator()): Rename from
  12104. delete_event_location.
  12105. * linespec.h (linespec_result) <location>: Change type to
  12106. event_location_up.
  12107. * linespec.c (canonicalize_linespec, event_location_to_sals)
  12108. (decode_objc): Update.
  12109. (linespec_result): Don't call delete_event_location.
  12110. * breakpoint.c (create_breakpoints_sal)
  12111. (bkpt_probe_create_sals_from_location)
  12112. (strace_marker_create_sals_from_location): Update.
  12113. 2017-04-12 Tom Tromey <tom@tromey.com>
  12114. * linespec.h (struct linespec_result): Add constructor and
  12115. destructor.
  12116. (init_linespec_result, destroy_linespec_result)
  12117. (make_cleanup_destroy_linespec_result): Don't declare.
  12118. * linespec.c (init_linespec_result): Remove.
  12119. (linespec_result::~linespec_result): Rename from
  12120. destroy_linespec_result. Update.
  12121. (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
  12122. Remove.
  12123. * breakpoint.c (create_breakpoint, break_range_command)
  12124. (decode_location_default): Update.
  12125. * ax-gdb.c (agent_command_1): Update.
  12126. 2017-04-12 Tom Tromey <tom@tromey.com>
  12127. * remote.c (remote_download_tracepoint): Update.
  12128. * python/py-breakpoint.c (bppy_get_location): Update.
  12129. * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob)
  12130. (gdbscm_breakpoint_location): Update.
  12131. * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update.
  12132. * breakpoint.h (struct breakpoint) <location, location_range_end>:
  12133. Change type to event_location_up.
  12134. * breakpoint.c (create_overlay_event_breakpoint)
  12135. (create_longjmp_master_breakpoint)
  12136. (create_std_terminate_master_breakpoint)
  12137. (create_exception_master_breakpoint)
  12138. (breakpoint_event_location_empty_p, print_breakpoint_location)
  12139. (print_one_breakpoint_location, create_thread_event_breakpoint)
  12140. (init_breakpoint_sal, create_breakpoint)
  12141. (print_recreate_ranged_breakpoint, break_range_command)
  12142. (init_ada_exception_breakpoint, say_where): Update.
  12143. (base_breakpoint_dtor): Don't call delete_event_location.
  12144. (bkpt_print_recreate, tracepoint_print_recreate)
  12145. (dprintf_print_recreate, update_static_tracepoint)
  12146. (breakpoint_re_set_default): Update.
  12147. 2017-04-12 Tom Tromey <tom@tromey.com>
  12148. * compile/compile-loc2c.c (compute_stack_depth_worker): Change
  12149. type of "to_do". Update.
  12150. (compute_stack_depth): Use std::vector.
  12151. 2017-04-12 Tom Tromey <tom@tromey.com>
  12152. * printcmd.c (find_instruction_backward): Use std::vector.
  12153. 2017-04-12 Tom Tromey <tom@tromey.com>
  12154. * symfile.c (objfilep): Remove typedef.
  12155. (reread_symbols): Use a std::vector.
  12156. 2017-04-12 Tom Tromey <tom@tromey.com>
  12157. * mi/mi-main.c (exec_direction_forward): Remove.
  12158. (exec_reverse_continue, mi_execute_command): Use scoped_restore.
  12159. * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
  12160. scoped_restore.
  12161. * guile/guile.c (guile_repl_command, guile_command)
  12162. (gdbscm_execute_gdb_command): Use scoped_restore.
  12163. * go-exp.y (go_parse): Use scoped_restore.
  12164. * d-exp.y (d_parse): Use scoped_restore.
  12165. * cli/cli-decode.c (cmd_func): Use scoped_restore.
  12166. * c-exp.y (c_parse): Use scoped_restore.
  12167. 2017-04-12 Tom Tromey <tom@tromey.com>
  12168. * mi/mi-parse.h (struct mi_parse): Add constructor, destructor.
  12169. (mi_parse): Update return type.
  12170. (mi_parse_free): Remove.
  12171. * mi/mi-parse.c (mi_parse::mi_parse): New constructor.
  12172. (mi_parse::~mi_parse): Rename from mi_parse_free.
  12173. (mi_parse_cleanup): Remove.
  12174. (mi_parse): Return a unique_ptr. Use new.
  12175. * mi/mi-main.c (mi_execute_command): Update.
  12176. 2017-04-12 Tom Tromey <tom@tromey.com>
  12177. * location.c (explicit_location_lex_one): Return a
  12178. unique_xmalloc_ptr.
  12179. (string_to_explicit_location): Update. Remove cleanups.
  12180. 2017-04-12 Tom Tromey <tom@tromey.com>
  12181. * gnu-v3-abi.c (value_and_voffset_p): Remove typedef.
  12182. (compare_value_and_voffset): Change type. Update.
  12183. (compute_vtable_size): Change type of "offset_vec".
  12184. (gnuv3_print_vtable): Use std::vector. Remove cleanups.
  12185. (gnuv3_get_typeid): Remove extraneous declaration.
  12186. 2017-04-12 Tom Tromey <tom@tromey.com>
  12187. * charset.h (wchar_iterator): Fix comment.
  12188. 2017-04-12 Tom Tromey <tom@tromey.com>
  12189. * charset.c (iconv_wrapper): New class.
  12190. (cleanup_iconv): Remove.
  12191. (convert_between_encodings): Use it.
  12192. 2017-04-12 Tom Tromey <tom@tromey.com>
  12193. * symfile.h (increment_reading_symtab): Update type.
  12194. * symfile.c (decrement_reading_symtab): Remove.
  12195. (increment_reading_symtab): Return a scoped_restore_tmpl<int>.
  12196. * psymtab.c (psymtab_to_symtab): Update.
  12197. * dwarf2read.c (dw2_instantiate_symtab): Update.
  12198. 2017-04-12 Tom Tromey <tom@tromey.com>
  12199. * jit.c (struct jit_reader): Declare separately. Add constructor
  12200. and destructor. Change type of "handle".
  12201. (loaded_jit_reader): Define separately.
  12202. (jit_reader_load): Update. New "new".
  12203. (jit_reader_unload_command): Use "delete".
  12204. * gdb-dlfcn.h (struct dlclose_deleter): New.
  12205. (gdb_dlhandle_up): New typedef.
  12206. (gdb_dlopen, gdb_dlsym): Update types.
  12207. (gdb_dlclose): Remove.
  12208. * gdb-dlfcn.c (gdb_dlopen): Return a gdb_dlhandle_up.
  12209. (gdb_dlsym): Change type of "handle".
  12210. (make_cleanup_dlclose): Remove.
  12211. (dlclose_deleter::operator()): Rename from gdb_dlclose.
  12212. * compile/compile-c-support.c (load_libcc): Update.
  12213. 2017-04-12 Tom Tromey <tom@tromey.com>
  12214. * symtab.h (find_pcs_for_symtab_line): Change return type.
  12215. * symtab.c (find_pcs_for_symtab_line): Change return type.
  12216. * python/py-linetable.c (build_line_table_tuple_from_pcs): Change
  12217. type of "vec". Update.
  12218. (ltpy_get_pcs_for_line): Update.
  12219. * linespec.c (decode_digits_ordinary): Update.
  12220. 2017-04-12 Tom Tromey <tom@tromey.com>
  12221. * tracepoint.c (actions_command): Update.
  12222. * python/python.c (python_command, python_interactive_command):
  12223. Update.
  12224. * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
  12225. * guile/guile.c (guile_command): Update.
  12226. * defs.h (read_command_lines, read_command_lines_1): Return
  12227. command_line_up.
  12228. (command_lines_deleter): New struct.
  12229. (command_line_up): New typedef.
  12230. * compile/compile.c (compile_code_command)
  12231. (compile_print_command): Update.
  12232. * cli/cli-script.h (get_command_line, copy_command_lines): Return
  12233. command_line_up.
  12234. (make_cleanup_free_command_lines): Remove.
  12235. * cli/cli-script.c (get_command_line, read_command_lines_1)
  12236. (copy_command_lines): Return command_line_up.
  12237. (while_command, if_command, read_command_lines, define_command)
  12238. (document_command): Update.
  12239. (do_free_command_lines_cleanup, make_cleanup_free_command_lines):
  12240. Remove.
  12241. * breakpoint.h (breakpoint_set_commands): Change type of
  12242. "commands".
  12243. * breakpoint.c (breakpoint_set_commands): Change type of
  12244. "commands". Update.
  12245. (do_map_commands_command, update_dprintf_command_list)
  12246. (create_tracepoint_from_upload): Update.
  12247. 2017-04-12 Tom Tromey <tom@tromey.com>
  12248. * tracepoint.c (scope_info): Update.
  12249. * spu-tdep.c (spu_catch_start): Update.
  12250. * python/python.c (gdbpy_decode_line): Update.
  12251. * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
  12252. * python/py-breakpoint.c (bppy_init): Update.
  12253. * probe.c (parse_probes): Update.
  12254. * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
  12255. * location.h (event_location_deleter): New struct.
  12256. (event_location_up): New typedef.
  12257. (new_linespec_location, new_address_location, new_probe_location)
  12258. (new_explicit_location, copy_event_location)
  12259. (string_to_event_location, string_to_event_location_basic)
  12260. (string_to_explicit_location): Update return type.
  12261. (make_cleanup_delete_event_location): Remove.
  12262. * location.c (new_linespec_location, new_address_location)
  12263. (new_probe_location, new_explicit_location, copy_event_location):
  12264. Return event_location_up.
  12265. (delete_event_location_cleanup)
  12266. (make_cleanup_delete_event_location): Remove.
  12267. (string_to_explicit_location, string_to_event_location_basic)
  12268. (string_to_event_location): Return event_location_up.
  12269. * linespec.c (canonicalize_linespec, event_location_to_sals)
  12270. (decode_line_with_current_source)
  12271. (decode_line_with_last_displayed, decode_objc): Update.
  12272. * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
  12273. * completer.c (location_completer): Update.
  12274. * cli/cli-cmds.c (edit_command, list_command): Update.
  12275. * breakpoint.c (create_overlay_event_breakpoint)
  12276. (create_longjmp_master_breakpoint)
  12277. (create_std_terminate_master_breakpoint)
  12278. (create_exception_master_breakpoint)
  12279. (create_thread_event_breakpoint): Update.
  12280. (init_breakpoint_sal): Update. Remove some dead code.
  12281. (create_breakpoint_sal): Change type of "location". Update.
  12282. (create_breakpoints_sal, create_breakpoint, break_command_1)
  12283. (dprintf_command, break_range_command, until_break_command)
  12284. (init_ada_exception_breakpoint)
  12285. (strace_marker_create_sals_from_location)
  12286. (update_static_tracepoint, trace_command, ftrace_command)
  12287. (strace_command, create_tracepoint_from_upload): Update.
  12288. * break-catch-throw.c (re_set_exception_catchpoint): Update.
  12289. * ax-gdb.c (agent_command_1): Update.
  12290. 2017-04-12 Pedro Alves <palves@redhat.com>
  12291. * Makefile.in (ALL_TARGET_OBS): Add i386-go32-tdep.o.
  12292. * configure.tgt: Handle i[34567]86-*-go32* and
  12293. i[34567]86-*-msdosdjgpp*.
  12294. * i386-tdep.c (i386_svr4_reg_to_regnum):
  12295. Make extern.
  12296. (i386_go32_init_abi, i386_coff_osabi_sniffer): Moved to
  12297. i386-go32-tdep.c.
  12298. (_initialize_i386_tdep): DJGPP bits moved to i386-go32-tdep.c.
  12299. * i386-go32-tdep.c: New file.
  12300. * i386-tdep.h (tdesc_i386_mmx, i386_svr4_reg_to_regnum): New
  12301. declarations.
  12302. 2017-04-12 Simon Marchi <simon.marchi@ericsson.com>
  12303. * aix-thread.c (pd_status2str): Change return type to const char *.
  12304. 2017-04-12 Pedro Alves <palves@redhat.com>
  12305. * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove
  12306. calls to set_gdbarch_gnu_triplet_regexp.
  12307. 2017-04-12 Pedro Alves <palves@redhat.com>
  12308. PR gdb/21323
  12309. * c-lang.c (cplus_primitive_types) <cplus_primitive_type_wchar_t>:
  12310. New enum value.
  12311. (cplus_language_arch_info): Register cplus_primitive_type_wchar_t.
  12312. * gdbtypes.h (struct builtin_type) <builtin_wchar>: New field.
  12313. * gdbtypes.c (gdbtypes_post_init): Create the "wchar_t" type.
  12314. * gdbarch.sh (wchar_bit, wchar_signed): New per-arch values.
  12315. * gdbarch.h, gdbarch.c: Regenerate.
  12316. * aarch64-tdep.c (aarch64_gdbarch_init): Override
  12317. gdbarch_wchar_bit and gdbarch_wchar_signed.
  12318. * alpha-tdep.c (alpha_gdbarch_init): Likewise.
  12319. * arm-tdep.c (arm_gdbarch_init): Likewise.
  12320. * avr-tdep.c (avr_gdbarch_init): Likewise.
  12321. * h8300-tdep.c (h8300_gdbarch_init): Likewise.
  12322. * i386-nto-tdep.c (i386nto_init_abi): Likewise.
  12323. * i386-tdep.c (i386_go32_init_abi): Likewise.
  12324. * m32r-tdep.c (m32r_gdbarch_init): Likewise.
  12325. * moxie-tdep.c (moxie_gdbarch_init): Likewise.
  12326. * nds32-tdep.c (nds32_gdbarch_init): Likewise.
  12327. * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
  12328. * sh-tdep.c (sh_gdbarch_init): Likewise.
  12329. * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
  12330. * sparc64-tdep.c (sparc64_init_abi): Likewise.
  12331. * windows-tdep.c (windows_init_abi): Likewise.
  12332. * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
  12333. 2017-04-12 Pedro Alves <palves@redhat.com>
  12334. PR c++/21323
  12335. * c-lang.c (cplus_primitive_types) <cplus_primitive_type_char16_t,
  12336. cplus_primitive_type_char32_t>: New enum values.
  12337. (cplus_language_arch_info): Register cplus_primitive_type_char16_t
  12338. and cplus_primitive_type_char32_t.
  12339. * dwarf2read.c (read_base_type) <DW_ATE_UTF>: If bit size is 16 or
  12340. 32, use the archtecture's built-in type for char16_t and char32_t,
  12341. respectively. Otherwise, fallback to init_integer_type as before,
  12342. but make the type unsigned, and issue a complaint.
  12343. * gdbtypes.c (gdbtypes_post_init): Make char16_t and char32_t unsigned.
  12344. 2017-04-12 Alan Hayward <alan.hayward@arm.com>
  12345. * m32r-tdep.c (M32R_ARG_REGISTER_SIZE): Added.
  12346. (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE.
  12347. 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
  12348. * windows-nat.c (windows_create_inferior): Declare 'toexec' as
  12349. 'const char *'.
  12350. 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
  12351. * common/common-utils.c (free_vector_argv): New function.
  12352. * common/common-utils.h: Include <vector>.
  12353. (free_vector_argv): New prototype.
  12354. * darwin-nat.c (darwin_create_inferior): Rewrite function
  12355. prototype in order to constify "exec_file" and accept a
  12356. "std::string" for "allargs".
  12357. * fork-child.c: Include <vector>.
  12358. (breakup_args): Rewrite function, using C++.
  12359. (fork_inferior): Rewrite function header, constify "exec_file_arg"
  12360. and accept "std::string" for "allargs". Update the code to
  12361. calculate "argv" based on "allargs". Update calls to "exec_fun"
  12362. and "execvp".
  12363. * gnu-nat.c (gnu_create_inferior): Rewrite function prototype in
  12364. order to constify "exec_file" and accept a "std::string" for
  12365. "allargs".
  12366. * go32-nat.c (go32_create_inferior): Likewise.
  12367. * inf-ptrace.c (inf_ptrace_create_inferior): Likewise.
  12368. * infcmd.c (run_command_1): Constify "exec_file". Use
  12369. "std::string" for inferior arguments.
  12370. * inferior.h (fork_inferior): Update prototype.
  12371. * linux-nat.c (linux_nat_create_inferior): Rewrite function
  12372. prototype in order to constify "exec_file" and accept a
  12373. "std::string" for "allargs".
  12374. * nto-procfs.c (procfs_create_inferior): Likewise.
  12375. * procfs.c (procfs_create_inferior): Likewise.
  12376. * remote-sim.c (gdbsim_create_inferior): Likewise.
  12377. * remote.c (extended_remote_run): Update code to accept
  12378. "std::string" as argument.
  12379. (extended_remote_create_inferior): Rewrite function prototype in
  12380. order to constify "exec_file" and accept a "std::string" for
  12381. "allargs".
  12382. * rs6000-nat.c (super_create_inferior): Likewise.
  12383. (rs6000_create_inferior): Likewise.
  12384. * target.h (struct target_ops) <to_create_inferior>: Likewise.
  12385. * windows-nat.c (windows_create_inferior): Likewise.
  12386. 2017-04-11 Pedro Alves <palves@redhat.com>
  12387. * thread.c: Fix whitespace throughout.
  12388. 2017-04-11 Philipp Rudo <prudo@linux.vnet.ibm.com>
  12389. * linux-nat.c (linux_nat_detach): Remove delete_lwp call.
  12390. 2017-04-11 Alan Hayward <alan.hayward@arm.com>
  12391. * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE
  12392. 2017-04-10 Sergio Durigan Junior <sergiodj@redhat.com>
  12393. PR gdb/21364
  12394. * osdata.c (info_osdata): Check if 'type' is an empty string
  12395. instead of NULL.
  12396. 2017-04-10 Pedro Alves <palves@redhat.com>
  12397. * thread.c (add_thread_silent, delete_thread_1, find_thread_ptid)
  12398. (ptid_to_global_thread_id, in_thread_list)
  12399. (do_captured_list_thread_ids, set_resumed, set_running)
  12400. (set_executing, set_stop_requested, finish_thread_state)
  12401. (validate_registers_access, can_access_registers_ptid)
  12402. (print_thread_info_1, switch_to_thread)
  12403. (do_restore_current_thread_cleanup)
  12404. (make_cleanup_restore_current_thread, thread_command)
  12405. (thread_name_command): Use operator== instead of ptid_equal.
  12406. 2017-04-10 Pedro Alves <palves@redhat.com>
  12407. * thread.c (struct current_thread_cleanup) <next>: Delete field.
  12408. (current_thread_cleanup_chain): Delete.
  12409. (restore_current_thread_cleanup_dtor)
  12410. (make_cleanup_restore_current_thread): Remove references to
  12411. current_thread_cleanup_chain.
  12412. 2017-04-10 Alan Hayward <alan.hayward@arm.com>
  12413. * msp430-tdep.c (msp430_pseudo_register_read): Never return
  12414. REG_UNKNOWN.
  12415. 2017-04-10 Yao Qi <yao.qi@linaro.org>
  12416. PR gdb/19942
  12417. * gdbthread.h (thread_info::deletable): New method.
  12418. (thread_info::incref): New method.
  12419. (thread_info::decref): New method.
  12420. (thread_info::refcount): Move it to private.
  12421. * infrun.c (save_stop_context): Call inc_refcount.
  12422. (release_stop_context_cleanup): Likewise.
  12423. * thread.c (set_thread_exited): New function.
  12424. (init_thread_list): Delete "tp" only it is deletable, otherwise
  12425. call set_thread_exited.
  12426. (delete_thread_1): Call set_thread_exited.
  12427. (current_thread_cleanup) <inferior_pid>: Remove.
  12428. <thread>: New field.
  12429. (restore_current_thread_ptid_changed): Removed.
  12430. (do_restore_current_thread_cleanup): Adjust.
  12431. (restore_current_thread_cleanup_dtor): Don't call
  12432. find_thread_ptid.
  12433. (set_thread_refcount): Use dec_refcount.
  12434. (make_cleanup_restore_current_thread): Adjust.
  12435. (thread_apply_all_command): Call inc_refcount.
  12436. (_initialize_thread): Don't call
  12437. observer_attach_thread_ptid_changed.
  12438. 2017-04-10 Yao Qi <yao.qi@linaro.org>
  12439. * thread.c (delete_thread_1): Hoist code on marking thread as
  12440. exited.
  12441. 2017-04-09 Simon Marchi <simon.marchi@polymtl.ca>
  12442. * windows-nat.c (windows_detach): Initialize ptid with
  12443. minus_one_ptid.
  12444. 2017-04-07 Simon Marchi <simon.marchi@ericsson.com>
  12445. * unittests/ptid-selftests.c: Fix erroneous assert messages.
  12446. 2017-04-07 Alan Hayward <alan.hayward@arm.com>
  12447. * bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add.
  12448. (bfin_pseudo_register_read): Use BFIN_MAX_REGISTER_SIZE.
  12449. (bfin_pseudo_register_write): Likewise
  12450. 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
  12451. * common/ptid.h (struct ptid): Change to...
  12452. (class ptid_t): ... this.
  12453. <ptid_t>: New constructors.
  12454. <pid, lwp_p, lwp, tid_p, tid, is_pid, operator==, operator!=,
  12455. matches>: New methods.
  12456. <make_null, make_minus_one>: New static methods.
  12457. <pid>: Rename to...
  12458. <m_pid>: ...this.
  12459. <lwp>: Rename to...
  12460. <m_lwp>: ...this.
  12461. <tid>: Rename to...
  12462. <m_tid>: ...this.
  12463. (ptid_build, ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
  12464. ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): Take ptid arguments
  12465. as references, move comment to class ptid_t.
  12466. * common/ptid.c (null_ptid, minus_one_ptid): Initialize with
  12467. ptid_t static methods.
  12468. (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_tid,
  12469. ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match):
  12470. Take ptid arguments as references, implement using ptid_t methods.
  12471. * unittests/ptid-selftests.c: New file.
  12472. * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
  12473. unittests/ptid-selftests.c.
  12474. (SUBDIR_UNITTESTS_OBS): Add unittests/ptid-selftests.o.
  12475. 2017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
  12476. * python/python.c (python_run_simple_file): Cast mode literal to
  12477. non-const char pointer as expected by PyFile_FromString.
  12478. 2017-04-05 Simon Marchi <simon.marchi@ericsson.com>
  12479. * common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with
  12480. minus_one_ptid and null_ptid.
  12481. 2017-04-05 Pedro Alves <palves@redhat.com>
  12482. * warning.m4 (build_warnings): Remove -Wno-write-strings.
  12483. * configure: Regenerate.
  12484. 2017-04-05 Pedro Alves <palves@redhat.com>
  12485. * ada-exp.y (yyerror): Constify.
  12486. * ada-lang.c (bound_name, get_selections)
  12487. (ada_variant_discrim_type)
  12488. (ada_variant_discrim_name, ada_value_struct_elt)
  12489. (ada_lookup_struct_elt_type, is_unchecked_variant)
  12490. (ada_which_variant_applies, standard_exc, ada_get_next_arg)
  12491. (catch_ada_exception_command_split)
  12492. (catch_ada_assert_command_split, catch_assert_command)
  12493. (ada_op_name): Constify.
  12494. * ada-lang.h (ada_yyerror, get_selections)
  12495. (ada_variant_discrim_name, ada_value_struct_elt): Constify.
  12496. * arc-tdep.c (arc_print_frame_cache): Constify.
  12497. * arm-tdep.c (arm_skip_stub): Constify.
  12498. * ax-gdb.c (gen_binop, gen_struct_ref_recursive, gen_struct_ref)
  12499. (gen_aggregate_elt_ref): Constify.
  12500. * bcache.c (print_bcache_statistics): Constify.
  12501. * bcache.h (print_bcache_statistics): Constify.
  12502. * break-catch-throw.c (catch_exception_command_1):
  12503. * breakpoint.c (struct ep_type_description::description):
  12504. Constify.
  12505. (add_solib_catchpoint): Constify.
  12506. (catch_fork_command_1): Add cast.
  12507. (add_catch_command): Constify.
  12508. * breakpoint.h (add_catch_command, add_solib_catchpoint):
  12509. Constify.
  12510. * bsd-uthread.c (bsd_uthread_state): Constify.
  12511. * buildsym.c (patch_subfile_names): Constify.
  12512. * buildsym.h (next_symbol_text_func, patch_subfile_names):
  12513. Constify.
  12514. * c-exp.y (yyerror): Constify.
  12515. (token::oper): Constify.
  12516. * c-lang.h (c_yyerror, cp_print_class_member): Constify.
  12517. * c-varobj.c (cplus_describe_child): Constify.
  12518. * charset.c (find_charset_names): Add cast.
  12519. (find_charset_names): Constify array and add const_cast.
  12520. * cli/cli-cmds.c (complete_command, cd_command): Constify.
  12521. (edit_command): Constify.
  12522. * cli/cli-decode.c (lookup_cmd): Constify.
  12523. * cli/cli-dump.c (dump_memory_command, dump_value_command):
  12524. Constify.
  12525. (struct dump_context): Constify.
  12526. (add_dump_command, restore_command): Constify.
  12527. * cli/cli-script.c (get_command_line): Constify.
  12528. * cli/cli-script.h (get_command_line): Constify.
  12529. * cli/cli-utils.c (check_for_argument): Constify.
  12530. * cli/cli-utils.h (check_for_argument): Constify.
  12531. * coff-pe-read.c (struct read_pe_section_data): Constify.
  12532. * command.h (lookup_cmd): Constify.
  12533. * common/print-utils.c (decimal2str): Constify.
  12534. * completer.c (gdb_print_filename): Constify.
  12535. * corefile.c (set_gnutarget): Constify.
  12536. * cp-name-parser.y (yyerror): Constify.
  12537. * cp-valprint.c (cp_print_class_member): Constify.
  12538. * cris-tdep.c (cris_register_name, crisv32_register_name):
  12539. Constify.
  12540. * d-exp.y (yyerror): Constify.
  12541. (struct token::oper): Constify.
  12542. * d-lang.h (d_yyerror): Constify.
  12543. * dbxread.c (struct header_file_location::name): Constify.
  12544. (add_old_header_file, add_new_header_file, last_function_name)
  12545. (dbx_next_symbol_text, add_bincl_to_list)
  12546. (find_corresponding_bincl_psymtab, set_namestring)
  12547. (find_stab_function_addr, read_dbx_symtab, start_psymtab)
  12548. (dbx_end_psymtab, read_ofile_symtab, process_one_symbol):
  12549. * defs.h (command_line_input, print_address_symbolic)
  12550. (deprecated_readline_begin_hook): Constify.
  12551. * dwarf2read.c (anonymous_struct_prefix, dwarf_bool_name):
  12552. Constify.
  12553. * event-top.c (handle_line_of_input): Constify and add cast.
  12554. * exceptions.c (catch_errors): Constify.
  12555. * exceptions.h (catch_errors): Constify.
  12556. * expprint.c (print_subexp_standard, op_string, op_name)
  12557. (op_name_standard, dump_raw_expression, dump_raw_expression):
  12558. * expression.h (op_name, op_string, dump_raw_expression):
  12559. Constify.
  12560. * f-exp.y (yyerror): Constify.
  12561. (struct token::oper): Constify.
  12562. (struct f77_boolean_val::name): Constify.
  12563. * f-lang.c (f_word_break_characters): Constify.
  12564. * f-lang.h (f_yyerror): Constify.
  12565. * fork-child.c (fork_inferior): Add cast.
  12566. * frv-tdep.c (struct gdbarch_tdep::register_names): Constify.
  12567. (new_variant): Constify.
  12568. * gdbarch.sh (pstring_ptr, pstring_list): Constify.
  12569. * gdbarch.c: Regenerate.
  12570. * gdbcore.h (set_gnutarget): Constify.
  12571. * go-exp.y (yyerror): Constify.
  12572. (token::oper): Constify.
  12573. * go-lang.h (go_yyerror): Constify.
  12574. * go32-nat.c (go32_sysinfo): Constify.
  12575. * guile/scm-breakpoint.c (gdbscm_breakpoint_expression): Constify.
  12576. * guile/scm-cmd.c (cmdscm_function): Constify.
  12577. * guile/scm-param.c (pascm_param_value): Constify.
  12578. * h8300-tdep.c (h8300_register_name, h8300s_register_name)
  12579. (h8300sx_register_name): Constify.
  12580. * hppa-tdep.c (hppa32_register_name, hppa64_register_name):
  12581. Constify.
  12582. * ia64-tdep.c (ia64_register_names): Constify.
  12583. * infcmd.c (construct_inferior_arguments): Constify.
  12584. (path_command, attach_post_wait): Constify.
  12585. * language.c (show_range_command, show_case_command)
  12586. (unk_lang_error): Constify.
  12587. * language.h (language_defn::la_error)
  12588. (language_defn::la_name_of_this): Constify.
  12589. * linespec.c (decode_line_2): Constify.
  12590. * linux-thread-db.c (thread_db_err_str): Constify.
  12591. * lm32-tdep.c (lm32_register_name): Constify.
  12592. * m2-exp.y (yyerror): Constify.
  12593. * m2-lang.h (m2_yyerror): Constify.
  12594. * m32r-tdep.c (m32r_register_names): Constify and make static.
  12595. * m68hc11-tdep.c (m68hc11_register_names): Constify.
  12596. * m88k-tdep.c (m88k_register_name): Constify.
  12597. * macroexp.c (appendmem): Constify.
  12598. * mdebugread.c (fdr_name, add_data_symbol, parse_type)
  12599. (upgrade_type, parse_external, parse_partial_symbols)
  12600. (mdebug_next_symbol_text, cross_ref, mylookup_symbol, new_psymtab)
  12601. (new_symbol): Constify.
  12602. * memattr.c (mem_info_command): Constify.
  12603. * mep-tdep.c (register_name_from_keyword): Constify.
  12604. * mi/mi-cmd-env.c (mi_cmd_env_path, _initialize_mi_cmd_env):
  12605. Constify.
  12606. * mi/mi-cmd-stack.c (list_args_or_locals): Constify.
  12607. * mi/mi-cmd-var.c (mi_cmd_var_show_attributes): Constify.
  12608. * mi/mi-main.c (captured_mi_execute_command): Constify and add
  12609. cast.
  12610. (mi_execute_async_cli_command): Constify.
  12611. * mips-tdep.c (mips_register_name): Constify.
  12612. * mn10300-tdep.c (register_name, mn10300_generic_register_name)
  12613. (am33_register_name, am33_2_register_name)
  12614. * moxie-tdep.c (moxie_register_names): Constify.
  12615. * nat/linux-osdata.c (osdata_type): Constify fields.
  12616. * nto-tdep.c (nto_parse_redirection): Constify.
  12617. * objc-lang.c (lookup_struct_typedef, lookup_objc_class)
  12618. (lookup_child_selector): Constify.
  12619. (objc_methcall::name): Constify.
  12620. * objc-lang.h (lookup_objc_class, lookup_child_selector)
  12621. (lookup_struct_typedef): Constify.
  12622. * objfiles.c (pc_in_section): Constify.
  12623. * objfiles.h (pc_in_section): Constify.
  12624. * p-exp.y (struct token::oper): Constify.
  12625. (yyerror): Constify.
  12626. * p-lang.h (pascal_yyerror): Constify.
  12627. * parser-defs.h (op_name_standard): Constify.
  12628. (op_print::string): Constify.
  12629. (exp_descriptor::op_name): Constify.
  12630. * printcmd.c (print_address_symbolic): Constify.
  12631. * psymtab.c (print_partial_symbols): Constify.
  12632. * python/py-breakpoint.c (stop_func): Constify.
  12633. (bppy_get_expression): Constify.
  12634. * python/py-cmd.c (cmdpy_completer::name): Constify.
  12635. (cmdpy_function): Constify.
  12636. * python/py-event.c (evpy_add_attribute)
  12637. (gdbpy_initialize_event_generic): Constify.
  12638. * python/py-event.h (evpy_add_attribute)
  12639. (gdbpy_initialize_event_generic): Constify.
  12640. * python/py-evts.c (add_new_registry): Constify.
  12641. * python/py-finishbreakpoint.c (outofscope_func): Constify.
  12642. * python/py-framefilter.c (get_py_iter_from_func): Constify.
  12643. * python/py-inferior.c (get_buffer): Add cast.
  12644. * python/py-param.c (parm_constant::name): Constify.
  12645. * python/py-unwind.c (fprint_frame_id): Constify.
  12646. * python/python.c (gdbpy_parameter_value): Constify.
  12647. * remote-fileio.c (remote_fio_func_map): Make 'name' const.
  12648. * remote.c (memory_packet_config::name): Constify.
  12649. (show_packet_config_cmd, remote_write_bytes)
  12650. (remote_buffer_add_string):
  12651. * reverse.c (exec_reverse_once): Constify.
  12652. * rs6000-tdep.c (variant::name, variant::description): Constify.
  12653. * rust-exp.y (rustyyerror): Constify.
  12654. * rust-lang.c (rust_op_name): Constify.
  12655. * rust-lang.h (rustyyerror): Constify.
  12656. * serial.h (serial_ops::name): Constify.
  12657. * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
  12658. (sh_sh3e_register_name, sh_sh2e_register_name)
  12659. (sh_sh2a_register_name, sh_sh2a_nofpu_register_name)
  12660. (sh_sh_dsp_register_name, sh_sh3_dsp_register_name)
  12661. (sh_sh4_register_name, sh_sh4_nofpu_register_name)
  12662. (sh_sh4al_dsp_register_name): Constify.
  12663. * sh64-tdep.c (sh64_register_name): Constify.
  12664. * solib-darwin.c (lookup_symbol_from_bfd): Constify.
  12665. * spu-tdep.c (spu_register_name, info_spu_dma_cmdlist): Constify.
  12666. * stabsread.c (patch_block_stabs, read_type_number)
  12667. (ref_map::stabs, ref_add, process_reference)
  12668. (symbol_reference_defined, define_symbol, define_symbol)
  12669. (error_type, read_type, read_member_functions, read_cpp_abbrev)
  12670. (read_one_struct_field, read_struct_fields, read_baseclasses)
  12671. (read_tilde_fields, read_struct_type, read_array_type)
  12672. (read_enum_type, read_sun_builtin_type, read_sun_floating_type)
  12673. (read_huge_number, read_range_type, read_args, common_block_start)
  12674. (find_name_end): Constify.
  12675. * stabsread.h (common_block_start, define_symbol)
  12676. (process_one_symbol, symbol_reference_defined, ref_add):
  12677. * symfile.c (get_section_index, add_symbol_file_command):
  12678. * symfile.h (get_section_index): Constify.
  12679. * target-descriptions.c (tdesc_type::name): Constify.
  12680. (tdesc_free_type): Add cast.
  12681. * target.c (find_default_run_target):
  12682. (add_deprecated_target_alias, find_default_run_target)
  12683. (target_announce_detach): Constify.
  12684. (do_option): Constify.
  12685. * target.h (add_deprecated_target_alias): Constify.
  12686. * thread.c (print_thread_info_1): Constify.
  12687. * top.c (deprecated_readline_begin_hook, command_line_input):
  12688. Constify.
  12689. (init_main): Add casts.
  12690. * top.h (handle_line_of_input): Constify.
  12691. * tracefile-tfile.c (tfile_write_uploaded_tsv): Constify.
  12692. * tracepoint.c (tvariables_info_1, trace_status_mi): Constify.
  12693. (tfind_command): Rename to ...
  12694. (tfind_command_1): ... this and constify.
  12695. (tfind_command): New function.
  12696. (tfind_end_command, tfind_start_command): Adjust.
  12697. (encode_source_string): Constify.
  12698. * tracepoint.h (encode_source_string): Constify.
  12699. * tui/tui-data.c (tui_partial_win_by_name): Constify.
  12700. * tui/tui-data.h (tui_partial_win_by_name): Constify.
  12701. * tui/tui-source.c (tui_set_source_content_nil): Constify.
  12702. * tui/tui-source.h (tui_set_source_content_nil): Constify.
  12703. * tui/tui-win.c (parse_scrolling_args): Constify.
  12704. * tui/tui-windata.c (tui_erase_data_content): Constify.
  12705. * tui/tui-windata.h (tui_erase_data_content): Constify.
  12706. * tui/tui-winsource.c (tui_erase_source_content): Constify.
  12707. * tui/tui.c (tui_enable): Add cast.
  12708. * utils.c (defaulted_query): Constify.
  12709. (init_page_info): Add cast.
  12710. (puts_debug, subset_compare): Constify.
  12711. * utils.h (subset_compare): Constify.
  12712. * varobj.c (varobj_format_string): Constify.
  12713. * varobj.h (varobj_format_string): Constify.
  12714. * vax-tdep.c (vax_register_name): Constify.
  12715. * windows-nat.c (windows_detach): Constify.
  12716. * xcoffread.c (process_linenos, xcoff_next_symbol_text): Constify.
  12717. * xml-support.c (gdb_xml_end_element): Constify.
  12718. * xml-tdesc.c (tdesc_start_reg): Constify.
  12719. * xstormy16-tdep.c (xstormy16_register_name): Constify.
  12720. * xtensa-tdep.c (xtensa_find_register_by_name): Constify.
  12721. * xtensa-tdep.h (xtensa_register_t::name): Constify.
  12722. 2017-04-05 Pedro Alves <palves@redhat.com>
  12723. * proc-api.c (struct trans): Constify.
  12724. (procfs_note): Constify.
  12725. * proc-events.c (struct trans, syscall_table):
  12726. * proc-flags.c (struct trans): Constify.
  12727. * proc-utils.h (procfs_note): Constify.
  12728. * proc-why.c (struct trans): Constify.
  12729. * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error)
  12730. (procfs_detach): Constify.
  12731. * sol-thread.c (struct string_map): Constify.
  12732. (td_err_string, td_state_string): Constify.
  12733. 2017-04-05 Pedro Alves <palves@redhat.com>
  12734. * proc-api.c (procfs_filename): Don't initialize
  12735. procfs_filename.
  12736. (prepare_to_trace): Assume procfs_filename is non-NULL.
  12737. (_initialize_proc_api): Give procfs_filename a default value here.
  12738. 2017-04-05 Pedro Alves <palves@redhat.com>
  12739. * break-catch-throw.c (handle_gnu_v3_exceptions): Constify
  12740. 'cond_string' parameter.
  12741. (extract_exception_regexp): Constify 'string' parameter.
  12742. (catch_exception_command_1): Constify.
  12743. * breakpoint.c (init_catchpoint)
  12744. (create_fork_vfork_event_catchpoint): Constify 'cond_string'
  12745. parameter.
  12746. (ep_parse_optional_if_clause, catch_fork_command_1)
  12747. (catch_exec_command_1): Constify.
  12748. * breakpoint.h (init_catchpoint): Constify 'cond_string'
  12749. parameter.
  12750. (ep_parse_optional_if_clause): Constify.
  12751. * cli/cli-utils.c (remove_trailing_whitespace)
  12752. (check_for_argument): Constify.
  12753. * cli/cli-utils.h (remove_trailing_whitespace): Constify and add
  12754. non-const overload.
  12755. (check_for_argument): Likewise.
  12756. 2017-04-05 Pedro Alves <palves@redhat.com>
  12757. * event-top.c (command_line_handler): Add cast to execute_command
  12758. call.
  12759. * record-btrace.c (cmd_record_btrace_bts_start)
  12760. (cmd_record_btrace_pt_start, cmd_record_btrace_start)
  12761. (cmd_record_btrace_start): Add cast to execute_command call.
  12762. * record-full.c (record_full_goto_insn):
  12763. * record.c (record_start, record_stop): Add cast to
  12764. execute_command_to_string calls.
  12765. (cmd_record_start): Add cast to execute_command calls.
  12766. 2017-04-05 Pedro Alves <palves@redhat.com>
  12767. * python/python-internal.h (gdb_PyArg_ParseTupleAndKeywords): New
  12768. static inline function.
  12769. * python/py-arch.c (archpy_disassemble): Constify 'keywords'
  12770. array and use gdb_PyArg_ParseTupleAndKeywords.
  12771. * python/py-cmd.c (cmdpy_init): Likewise.
  12772. * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
  12773. * python/py-inferior.c (infpy_read_memory, infpy_write_memory)
  12774. (infpy_search_memory): Likewise.
  12775. * python/py-objfile.c (objfpy_add_separate_debug_file)
  12776. (gdbpy_lookup_objfile): Likewise.
  12777. * python/py-symbol.c (gdbpy_lookup_symbol)
  12778. (gdbpy_lookup_global_symbol): Likewise.
  12779. * python/py-type.c (gdbpy_lookup_type): Likewise.
  12780. * python/py-value.c (valpy_lazy_string, valpy_string): Likewise.
  12781. * python/python.c (execute_gdb_command, gdbpy_write, gdbpy_flush):
  12782. Likewise.
  12783. 2017-04-05 Pedro Alves <palves@redhat.com>
  12784. * python/python-internal.h (gdb_PyGetSetDef): New type.
  12785. * python/py-block.c (block_object_getset)
  12786. (breakpoint_object_getset): Now a gdb_PyGetSetDef array.
  12787. * python/py-event.c (event_object_getset)
  12788. (finish_breakpoint_object_getset): Likewise.
  12789. * python/py-inferior.c (inferior_object_getset): Likewise.
  12790. * python/py-infthread.c (thread_object_getset): Likewise.
  12791. * python/py-lazy-string.c (lazy_string_object_getset): Likewise.
  12792. * python/py-linetable.c (linetable_entry_object_getset): Likewise.
  12793. * python/py-objfile.c (objfile_getset): Likewise.
  12794. * python/py-progspace.c (pspace_getset): Likewise.
  12795. * python/py-record-btrace.c (btpy_insn_getset, btpy_call_getset):
  12796. Likewise.
  12797. * python/py-record.c (recpy_record_getset): Likewise.
  12798. * python/py-symbol.c (symbol_object_getset): Likewise.
  12799. * python/py-symtab.c (symtab_object_getset, sal_object_getset):
  12800. Likewise.
  12801. * python/py-type.c (type_object_getset, field_object_getset):
  12802. Likewise.
  12803. * python/py-value.c (value_object_getset): Likewise.
  12804. 2017-04-05 Pedro Alves <palves@redhat.com>
  12805. * python/python-internal.h (gdb_PyObject_CallMethod)
  12806. (gdb_PyErr_NewException, gdb_PySys_GetObject, gdb_PySys_SetPath):
  12807. New functions.
  12808. (GDB_PYSYS_SETPATH_CHAR, PyObject_CallMethod, PyErr_NewException)
  12809. (PySys_GetObject, PySys_SetPath): New macros.
  12810. 2017-04-05 Pedro Alves <palves@redhat.com>
  12811. * mi/mi-cmd-info.c (mi_cmd_info_os): Call info_osdata instead of
  12812. info_osdata_command.
  12813. * osdata.c (info_osdata_command): Rename to ...
  12814. (info_osdata): ... this. Constify 'type' parameter, and remove
  12815. the 'from_tty' parameter. Accept NULL TYPE.
  12816. (info_osdata_command): New function.
  12817. * osdata.h (info_osdata_command): Remove declaration.
  12818. (info_osdata): New declaration.
  12819. 2017-04-05 Pedro Alves <palves@redhat.com>
  12820. * mi/mi-cmd-break.c (mi_cmd_break_insert_1, mi_cmd_break_insert)
  12821. (mi_cmd_dprintf_insert, mi_cmd_break_passcount)
  12822. (mi_cmd_break_watch, mi_cmd_break_commands): Constify 'command'
  12823. parameter.
  12824. * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception)
  12825. (mi_cmd_catch_load, mi_cmd_catch_unload): Constify cmd' parameter.
  12826. * mi/mi-cmd-disas.c (mi_cmd_disassemble): Constify 'command'
  12827. parameter.
  12828. * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_cd, mi_cmd_env_path)
  12829. (mi_cmd_env_dir, mi_cmd_inferior_tty_set, _cmd_inferior_tty_show)
  12830. * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
  12831. (mi_cmd_file_list_exec_source_files)
  12832. (mi_cmd_file_list_shared_libraries): Constify 'command' parameter.
  12833. * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
  12834. (mi_cmd_info_gdb_mi_command, mi_cmd_info_os): Constify 'command'
  12835. parameter.
  12836. * mi/mi-cmd-stack.c (mi_cmd_enable_frame_filters)
  12837. (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth)
  12838. (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
  12839. (mi_cmd_stack_list_variables, mi_cmd_stack_select_frame)
  12840. (mi_cmd_stack_info_frame): Constify 'command' parameter.
  12841. * mi/mi-cmd-target.c (mi_cmd_target_file_get)
  12842. (mi_cmd_target_file_put, mi_cmd_target_file_delete): Constify
  12843. 'command' parameter.
  12844. * mi/mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete)
  12845. (mi_cmd_var_set_format, mi_cmd_var_set_visualizer)
  12846. (mi_cmd_var_set_frozen, mi_cmd_var_show_format)
  12847. (mi_cmd_var_info_num_children, mi_cmd_var_list_children)
  12848. (mi_cmd_var_info_type, mi_cmd_var_info_path_expression)
  12849. (mi_cmd_var_info_expression, mi_cmd_var_show_attributes)
  12850. (mi_cmd_var_evaluate_expression, mi_cmd_var_assign)
  12851. (mi_cmd_var_update, mi_cmd_enable_pretty_printing)
  12852. (mi_cmd_var_set_update_range): Constify 'command' parameter.
  12853. * mi/mi-cmds.h (mi_cmd_argv_ftype): Constify 'command' parameter.
  12854. * mi/mi-interp.c (mi_cmd_interpreter_exec): Constify 'command'
  12855. parameter.
  12856. * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_next)
  12857. (mi_cmd_exec_next_instruction, mi_cmd_exec_step)
  12858. (mi_cmd_exec_step_instruction, mi_cmd_exec_finish)
  12859. (mi_cmd_exec_return ,mi_cmd_exec_jump, mi_cmd_exec_continue)
  12860. (mi_cmd_exec_interrupt, mi_cmd_exec_run, mi_cmd_target_detach)
  12861. (mi_cmd_target_flash_erase, mi_cmd_thread_select)
  12862. (mi_cmd_thread_list_ids, mi_cmd_thread_info)
  12863. (mi_cmd_list_thread_groups, mi_cmd_data_list_register_names)
  12864. (mi_cmd_data_list_changed_registers)
  12865. (mi_cmd_data_write_register_values)
  12866. (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
  12867. (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory)
  12868. (mi_cmd_data_write_memory_bytes, mi_cmd_enable_timings)
  12869. (mi_cmd_list_features, mi_cmd_list_target_features)
  12870. (mi_cmd_add_inferior, mi_cmd_remove_inferior)
  12871. (mi_cmd_trace_define_variable, mi_cmd_trace_list_variables)
  12872. (mi_cmd_trace_find, mi_cmd_trace_save, mi_cmd_trace_start)
  12873. (mi_cmd_trace_status, mi_cmd_trace_stop, mi_cmd_ada_task_info)
  12874. (mi_cmd_trace_frame_collected): Constify 'command'
  12875. parameter.
  12876. * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Constify
  12877. 'command' parameter.
  12878. 2017-04-05 Pedro Alves <palves@redhat.com>
  12879. * ada-lang.c (ada_completer_word_break_characters): Now a const
  12880. array.
  12881. (ada_get_gdb_completer_word_break_characters): Constify.
  12882. * completer.c (gdb_completer_command_word_break_characters)
  12883. (gdb_completer_file_name_break_characters)
  12884. (gdb_completer_quote_characters): Now const arrays.
  12885. (get_gdb_completer_quote_characters): Constify.
  12886. (set_rl_completer_word_break_characters): New function.
  12887. (set_gdb_completion_word_break_characters)
  12888. (complete_line_internal): Use it.
  12889. * completer.h (get_gdb_completer_quote_characters): Constify.
  12890. (set_rl_completer_word_break_characters): Declare.
  12891. * f-lang.c (f_word_break_characters): Constify.
  12892. * language.c (default_word_break_characters): Constify.
  12893. * language.h (language_defn::la_word_break_characters): Constify.
  12894. (default_word_break_characters): Constify.
  12895. * top.c (init_main): Use set_rl_completer_word_break_characters.
  12896. 2017-04-05 Pedro Alves <palves@redhat.com>
  12897. * aix-thread.c (aix_thread_pid_to_str)
  12898. (aix_thread_extra_thread_info): Constify.
  12899. * bsd-kvm.c (bsd_kvm_pid_to_str): Constify.
  12900. * bsd-uthread.c (bsd_uthread_extra_thread_info)
  12901. (bsd_uthread_pid_to_str): Constify.
  12902. * corelow.c (core_pid_to_str): Constify.
  12903. * darwin-nat.c (darwin_pid_to_str): Constify.
  12904. * fbsd-nat.c (fbsd_pid_to_str): Constify.
  12905. * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str):
  12906. Constify.
  12907. * gnu-nat.c (gnu_pid_to_str): Constify.
  12908. * go32-nat.c (go32_pid_to_str): Constify.
  12909. * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify.
  12910. * inf-ptrace.c (inf_ptrace_pid_to_str): Constify.
  12911. * inferior.c (inferior_pid_to_str): Constify.
  12912. * linux-nat.c (linux_nat_pid_to_str): Constify.
  12913. * linux-tdep.c (linux_core_pid_to_str): Constify.
  12914. * linux-thread-db.c (thread_db_pid_to_str)
  12915. (thread_db_extra_thread_info): Constify.
  12916. * nto-tdep.c (nto_extra_thread_info): Constify.
  12917. * nto-tdep.h (nto_extra_thread_info): Constify.
  12918. * obsd-nat.c (obsd_pid_to_str): Constify.
  12919. * procfs.c (procfs_pid_to_str): Constify.
  12920. * ravenscar-thread.c (ravenscar_extra_thread_info)
  12921. (ravenscar_pid_to_str): Constify.
  12922. * remote-sim.c (gdbsim_pid_to_str): Constify.
  12923. * remote.c (remote_threads_extra_info, remote_pid_to_str):
  12924. Constify.
  12925. * sol-thread.c (solaris_pid_to_str): Constify.
  12926. * sol2-tdep.c (sol2_core_pid_to_str): Constify.
  12927. * sol2-tdep.h (sol2_core_pid_to_str): Constify.
  12928. * target.c (default_pid_to_str, target_pid_to_str)
  12929. (normal_pid_to_str, default_pid_to_str): Constify.
  12930. * target.h (target_ops::to_pid_to_str)
  12931. (target_ops::to_extra_thread_info): Constify.
  12932. (target_pid_to_str, normal_pid_to_str): Constify.
  12933. * windows-nat.c (windows_pid_to_str): Constify.
  12934. * gdbarch.sh (core_pid_to_str): Constify.
  12935. * target-delegates.c: Regenerate.
  12936. * gdbarch.h, gdbarch.c: Regenerate.
  12937. 2017-04-05 Pedro Alves <palves@redhat.com>
  12938. * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage
  12939. the memory of the temporary warning_pre_print override.
  12940. * utils.c (warning_pre_print): Constify.
  12941. * utils.h (warning_pre_print): Constify.
  12942. 2017-04-05 Pedro Alves <palves@redhat.com>
  12943. * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter.
  12944. (shell_command): New function.
  12945. (make_command): Use std::string.
  12946. (init_cli_cmds): Register shell_command instead of shell_escape.
  12947. 2017-04-05 Pedro Alves <palves@redhat.com>
  12948. * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize.
  12949. * tracepoint.c (default_collect): Don't initialize.
  12950. 2017-04-05 Pedro Alves <palves@redhat.com>
  12951. * macroexp.c (macro_buffer::shared): Now a bool.
  12952. (init_buffer): Update.
  12953. (init_shared_buffer): Constify 'addr' parameter.
  12954. (substitute_args, expand, macro_expand, macro_expand_next): Remove
  12955. casts.
  12956. 2017-04-05 Pedro Alves <palves@redhat.com>
  12957. * arm-tdep.c (show_disassembly_style_sfunc): Constify local.
  12958. * disasm.c (set_disassembler_options): Constify local.
  12959. * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment.
  12960. 2017-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
  12961. PR gdb/21352
  12962. * tracefile.c (tsave_command): Fix argument parsing for '-r'
  12963. option.
  12964. 2017-04-05 Yao Qi <yao.qi@linaro.org>
  12965. * frame.c (frame_unwind_register_unsigned): Call
  12966. frame_unwind_register_value.
  12967. 2017-04-05 Yao Qi <yao.qi@linaro.org>
  12968. * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint):
  12969. Use gdb_test_multiple, and don't match anchor.
  12970. 2017-04-05 Pedro Alves <palves@redhat.com>
  12971. * MAINTAINERS (Global Maintainers): Add Simon Marchi.
  12972. (Write After Approval): Remove Simon Marchi.
  12973. 2017-04-05 Pedro Alves <palves@redhat.com>
  12974. * common/gdb_optional.h (optional::optional): Make constexpr and
  12975. initialize m_dummy.
  12976. 2017-04-04 John Baldwin <jhb@FreeBSD.org>
  12977. * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include.
  12978. (amd64fbsd_jmp_buf_reg_offset): Remove.
  12979. (amd64fbsd_supply_uthread): Remove function.
  12980. (amd64fbsd_collect_uthread): Remove function.
  12981. (amd64fbsd_init_abi): Don't set bsd-uthread callbacks.
  12982. * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o.
  12983. (x86_64-*-freebsd*): Remove bsd-uthread.o.
  12984. (fbsd-nat.c): Update comment.
  12985. * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include.
  12986. (i386fbsd_jmp_buf_reg_offset): Remove.
  12987. (i386fbsd_supply_uthread): Remove function.
  12988. (i386fbsd_collect_uthread): Remove function.
  12989. (i386fbsd_init_abi): Don't set bsd-uthread callbacks.
  12990. 2017-04-04 John Baldwin <jhb@FreeBSD.org>
  12991. * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o.
  12992. (ALLDEPFILES): Remove alpha-fbsd-tdep.c
  12993. * NEWS: Mention that support for FreeBSD/alpha was removed.
  12994. * alpha-fbsd-tdep.c: Delete file.
  12995. * config/alpha/fbsd.mh: Delete file.
  12996. * configure.host: Delete alpha*-*-freebsd* and
  12997. alpha*-*-kfreebsd*-gnu.
  12998. * configure.tgt: Delete alpha*-*-freebsd* and
  12999. alpha*-*-kfreebsd*-gnu.
  13000. 2017-04-04 John Baldwin <jhb@FreeBSD.org>
  13001. * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers,
  13002. amd64bsd_store_inferior_registers): Use ptid from regcache.
  13003. 2017-04-04 Pedro Alves <palves@redhat.com>
  13004. * dwarf2read.c (lnp_state_machine): Now a class. Initialize all
  13005. data fields, make them private and add "m_" prefixes.
  13006. (lnp_state_machine::lnp_state_machine): New ctor.
  13007. (record_line, check_line_address, handle_set_discriminator)
  13008. (handle_set_address, handle_advance_pc, handle_special_opcode)
  13009. (handle_advance_line, handle_set_file, handle_negate_stmt)
  13010. (handle_const_add_pc, handle_fixed_advance_pc, handle_copy)
  13011. (end_sequence, advance_line): New methods.
  13012. (m_gdbarch, m_record_lines_p): New fields.
  13013. (lnp_reader_state): Delete.
  13014. (dwarf_record_line): Rename to ...
  13015. (lnp_state_machine::record_line): ... adjust.
  13016. (init_lnp_state_machine): Delete.
  13017. (lnp_state_machine::lnp_state_machine): New.
  13018. (check_line_address): Rename to ...
  13019. (lnp_state_machine::check_line_address): This.
  13020. (dwarf_decode_lines_1): Remove reference to "reader_state".
  13021. Adjust lnp_state_machine having a non-default ctor. Use bool.
  13022. State machine internal state manipulation moved to
  13023. lnp_state_machine methods.
  13024. 2017-04-04 Pedro Alves <palves@redhat.com>
  13025. * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
  13026. unittests/offset-type-selftests.c.
  13027. (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o.
  13028. * common/offset-type.h: New file.
  13029. * common/preprocessor.h: New file.
  13030. * common/traits.h: New file.
  13031. * common/valid-expr.h: New file.
  13032. * dwarf2expr.c: Include "common/underlying.h". Adjust to use
  13033. sect_offset and cu_offset strong typedefs throughout.
  13034. * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong
  13035. typedefs throughout.
  13036. * dwarf2loc.c: Include "common/underlying.h". Adjust to use
  13037. sect_offset and cu_offset strong typedefs throughout.
  13038. * dwarf2read.c: Adjust to use sect_offset and cu_offset strong
  13039. typedefs throughout.
  13040. * gdbtypes.h: Include "common/offset-type.h".
  13041. (cu_offset): Now an offset type (strong typedef) instead of a
  13042. struct.
  13043. (sect_offset): Likewise.
  13044. (union call_site_parameter_u): Rename "param_offset" field to
  13045. "param_cu_off".
  13046. * unittests/offset-type-selftests.c: New file.
  13047. 2017-04-04 Pedro Alves <palves@redhat.com>
  13048. * common/underlying.h: New file.
  13049. * dwarf2read.c: Include "common/gdb_optional.h" and
  13050. "common/underlying.h".
  13051. (dir_index, file_name_index): New types.
  13052. (file_entry): Use them.
  13053. (file_entry::include): Use to_underlying.
  13054. (line_header::add_file_name): Use dir_index.
  13055. (read_formatted_entries): Use gdb::optional. Read form before
  13056. writting to file_entry.
  13057. (dwarf_decode_line_header): Use dir_index.
  13058. (lnp_state_machine::current_file): Use to_underlying.
  13059. (lnp_state_machine::file): Change type to file_name_index.
  13060. (dwarf_record_line): Use to_underlying.
  13061. (init_lnp_state_machine): Use file_name_index.
  13062. (dwarf_decode_lines_1): Use dir_index and file_name_index.
  13063. 2017-04-04 Pedro Alves <palves@redhat.com>
  13064. * common/gdb_optional.h (gdb::optiona): Add operator->, operator*,
  13065. operator bool, has_value and get methods.
  13066. 2017-04-04 Pedro Alves <palves@redhat.com>
  13067. * dwarf2read.c (struct file_entry): Add ctors, and initialize all
  13068. fields.
  13069. (line_header): Initialize all data fields. Change type of
  13070. standard_opcode_lengths to std::unique_ptr<unsigned char[]>.
  13071. Change type of include_dirs to std::vector<const char *>. Remove
  13072. num_include_dirs, include_dirs_size. Change type of file_names to
  13073. std::vector<file_entry>. Remove num_file_names, file_names_size.
  13074. (line_header::line_header): New.
  13075. (line_header::add_include_dir, line_header::add_file_name): New
  13076. methods.
  13077. (line_header::include_dir_at): Remove NULL check.
  13078. (line_header::file_name_at): Add const overload.
  13079. (line_header_up): New unique_ptr typedef.
  13080. (dw2_get_file_names_reader): Use line_header_up. Adjust to use
  13081. std::vector. Remove free_line_header call.
  13082. (dwarf2_build_include_psymtabs): Use line_header_up. Remove
  13083. free_line_header call.
  13084. (free_cu_line_header): Delete.
  13085. (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list)
  13086. (setup_type_unit_groups): Use line_header_up instead of cleanups.
  13087. Adjust to use std::vector.
  13088. (free_line_header): Delete.
  13089. (free_line_header_voidp): Use delete.
  13090. (add_include_dir): Replace with ...
  13091. (line_header::add_include_dir): ... this method. Use std::vector.
  13092. (add_file_name): Replace with ...
  13093. (line_header::add_file_name): ... this method. Use std::vector.
  13094. (add_include_dir_stub): Delete.
  13095. (read_formatted_entries): Remove memset.
  13096. (dwarf_decode_line_header): Return a line_header_up instead of a
  13097. raw pointer. Remove cleanup handling. Pass lambdas to
  13098. read_formatted_entries. Adjust to use line_header methods.
  13099. (dwarf_decode_lines_1): Adjust to use line_header methods.
  13100. (dwarf_decode_lines, file_file_name, file_full_name): Adjust to
  13101. use std::vector.
  13102. 2017-04-04 Simon Marchi <simon.marchi@polymtl.ca>
  13103. * remote.c (set_general_thread, set_continue_thread): Use ptid_t
  13104. instead of struct ptid.
  13105. 2017-05-04 Alan Hayward <alan.hayward@arm.com>
  13106. * frame.c (get_frame_register_bytes): Unwind using value.
  13107. (put_frame_register_bytes): Likewise.
  13108. 2017-03-30 Iain Buclaw <ibuclaw@gdcproject.org>
  13109. * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being
  13110. aggregate-like.
  13111. 2017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com>
  13112. * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS.
  13113. 2017-03-29 Yao Qi <yao.qi@linaro.org>
  13114. * gdbthread.h (struct thread_info): Declare constructor and
  13115. destructor. Add some in-class member initializers.
  13116. * thread.c (free_thread): Remove.
  13117. (init_thread_list): Call delete instead of free_thread.
  13118. (new_thread): Call thread_info constructor.
  13119. (thread_info::thread_info): New function.
  13120. (thread_info::~thread_info): New function.
  13121. (delete_thread_1): Call delete instead of free_thread.
  13122. (make_cleanup_restore_current_thread): Move tp and frame to
  13123. inner block.
  13124. 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
  13125. * arc-tdep.c (arc_frame_cache): Add support for prologue analysis.
  13126. (arc_skip_prologue): Likewise.
  13127. (arc_make_frame_cache): Likewise.
  13128. (arc_pv_get_operand): New function.
  13129. (arc_is_in_prologue): Likewise.
  13130. (arc_analyze_prologue): Likewise.
  13131. (arc_print_frame_cache): Likewise.
  13132. (MAX_PROLOGUE_LENGTH): New constant.
  13133. 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
  13134. * configure.tgt: Add arc-insn.o.
  13135. * arc-tdep.c (arc_delayed_print_insn): Make non-static.
  13136. (dump_arc_instruction_command): New function.
  13137. (arc_fprintf_disasm): Likewise.
  13138. (arc_disassemble_info): Likewise.
  13139. (arc_insn_get_operand_value): Likewise.
  13140. (arc_insn_get_operand_value_signed): Likewise.
  13141. (arc_insn_get_memory_base_reg): Likewise.
  13142. (arc_insn_get_memory_offset): Likewise.
  13143. (arc_insn_get_branch_target): Likewise.
  13144. (arc_insn_dump): Likewise.
  13145. (arc_insn_get_linear_next_pc): Likewise.
  13146. * arc-tdep.h (arc_delayed_print_insn): Add function declaration.
  13147. (arc_disassemble_info): Likewise.
  13148. (arc_insn_get_branch_target): Likewise.
  13149. (arc_insn_get_linear_next_pc): Likewise.
  13150. * NEWS: Mention new "maint print arc arc-instruction".
  13151. 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
  13152. * arc-tdep (maintenance_print_arc_list): New variable.
  13153. (maintenance_print_arc_command): New function.
  13154. 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
  13155. * arc-tdep.c (core_v2_register_names, core_arcompact_register_names)
  13156. Add "limm" and "reserved".
  13157. (arc_cannot_fetch_register, arc_cannot_store_register): Add
  13158. ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM.
  13159. * arc-tdep.h (arc_regnum): Likewise.
  13160. 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
  13161. * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
  13162. for THREADPTR register.
  13163. (supply_gregset_reg): Call regcache_raw_supply for THREADPTR
  13164. register.
  13165. * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition.
  13166. (xtensa_derive_tdep): Initialize tdep->threadptr_regnum.
  13167. * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field.
  13168. 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
  13169. * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all
  13170. registers above gdbarch_num_regs (gdbarch) as privileged in
  13171. call0 ABI.
  13172. 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
  13173. * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
  13174. for a single specified register or for all registers in
  13175. a0_base..a0_base + C0_NREGS range.
  13176. (supply_gregset_reg): Call regcache_raw_supply for a single
  13177. specified register or for all registers in a0_base..a0_base +
  13178. C0_NREGS range.
  13179. 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
  13180. * arch/xtensa.h (C0_NREGS): Add definition.
  13181. * xtensa-tdep.c (C0_NREGS): Remove definition.
  13182. 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
  13183. * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue):
  13184. Drop xtensa_default_isa initialization.
  13185. (xtensa_gdbarch_init): Initialize xtensa_default_isa.
  13186. 2017-03-27 Pedro Alves <palves@redhat.com>
  13187. * dwarf2read.c (file_entry) <dir_index>: Add comment.
  13188. (file_entry::include_dir): New method.
  13189. (line_header::include_dir_at, line_header::file_name_at): New
  13190. methods.
  13191. (setup_type_unit_groups, setup_type_unit_groups)
  13192. (psymtab_include_file_name): Simplify using the new methods.
  13193. (lnp_state_machine) <the_line_header>: New field.
  13194. <file>: Add comment.
  13195. (lnp_state_machine::current_file): New method.
  13196. (dwarf_record_line): Simplify using the new methods.
  13197. (init_lnp_state_machine): Initialize the "the_line_header" field.
  13198. (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name):
  13199. Simplify using the new methods.
  13200. 2017-03-27 Pedro Alves <palves@redhat.com>
  13201. * cp-name-parser.y (make_empty): Delete.
  13202. (demangler_special, nested_name, ptr_operator, array_indicator)
  13203. (direct_declarator, declarator_1): Use fill_comp instead of
  13204. make_empty.
  13205. 2017-03-27 Pedro Alves <palves@redhat.com>
  13206. * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument
  13207. to ATTRIBUTE_PRINTF.
  13208. * solib-target.c (library_list_start_list): Print "string" not
  13209. "version".
  13210. * xml-tdesc.c (tdesc_start_field): Pass "field_name" to
  13211. gdb_xml_error call.
  13212. 2017-03-27 Pedro Alves <palves@redhat.com>
  13213. * dwarf2read.c (struct file_and_directory): New.
  13214. (dwarf2_get_dwz_file): Adjust to use std::string.
  13215. (dw2_get_file_names_reader): Adjust to use file_and_directory.
  13216. (find_file_and_directory): Adjust to return a file_and_directory
  13217. object.
  13218. (read_file_scope): Adjust to use file_and_directory. Remove
  13219. make_cleanup/do_cleanups calls.
  13220. (open_and_init_dwp_file): Adjust to use std::string. Remove
  13221. make_cleanup/do_cleanups calls.
  13222. * python/python.c (do_start_initialization): Adjust to ldirname
  13223. returning a std::string.
  13224. * utils.c (ldirname): Now returns a std::string.
  13225. * utils.h (ldirname): Change return type to std::string.
  13226. * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname
  13227. returning a std::string.
  13228. * xml-tdesc.c (file_read_description_xml): Likewise.
  13229. 2017-03-24 Alan Hayward <alan.hayward@arm.com>
  13230. * regcache.c (regcache_debug_print_register): New function.
  13231. * regcache.h (regcache_debug_print_register): New declaration.
  13232. * target.c (debug_print_register): Remove.
  13233. (target_fetch_registers): Call regcache_debug_print_register.
  13234. (target_store_registers): Likewise.
  13235. 2017-03-24 Pádraig Brady <pbrady@fb.com>
  13236. * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't
  13237. reference beyond the 'lh->include_dirs' array before accessing to
  13238. it.
  13239. (psymtab_include_file_name): Likewise.
  13240. (dwarf_decode_lines_1): Likewise.
  13241. (dwarf_decode_lines): Likewise.
  13242. (file_file_name): Likewise.
  13243. 2017-03-23 Simon Marchi <simon.marchi@ericsson.com>
  13244. * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore
  13245. inferior_ptid.
  13246. * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
  13247. ps_lsetfpregs): Likewise.
  13248. * regcache.c (regcache_raw_update, regcache_raw_write): Likewise.
  13249. * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
  13250. ps_lsetfpregs): Likewise.
  13251. * target.c (target_fetch_registers, target_store_registers):
  13252. Remove asserts.
  13253. 2017-03-23 Alan Hayward <alan.hayward@arm.com>
  13254. * sol-thread.c (sol_thread_store_registers): Remove regcache calls.
  13255. 2017-03-23 Yao Qi <yao.qi@linaro.org>
  13256. * aarch64-tdep.c (aarch64_process_record_test): Declare.
  13257. (_initialize_aarch64_tdep): Register it.
  13258. (aarch64_record_load_store): Handle PRFM instruction.
  13259. (aarch64_process_record_test): New function.
  13260. 2017-03-23 Yao Qi <yao.qi@linaro.org>
  13261. * aarch64-tdep.c (aarch64_record_load_store): Fix code
  13262. indentation.
  13263. 2017-03-23 Yao Qi <yao.qi@linaro.org>
  13264. * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE.
  13265. 2017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
  13266. python/python.c (do_start_initialization): Fix memory leak.
  13267. 2017-03-22 Simon Marchi <simon.marchi@polymtl.ca>
  13268. * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid
  13269. using get_ptrace_pid.
  13270. * linux-nat.c (linux_nat_xfer_partial): Don't set/restore
  13271. inferior_ptid.
  13272. (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of
  13273. inferior_ptid instead of pid.
  13274. 2017-03-22 Yao Qi <yao.qi@linaro.org>
  13275. * aarch64-tdep.c: Wrap locally used classes in anonymous
  13276. namespace.
  13277. * arm-tdep.c: Likewise.
  13278. * linespec.c: Likewise.
  13279. * ui-out.c: Likewise.
  13280. 2017-03-22 Jonah Graham <jonah@kichwacoders.com>
  13281. PR gdb/19637
  13282. * python/lib/gdb/printer/bound_registers.py: Import sys.
  13283. 2017-03-21 Simon Marchi <simon.marchi@ericsson.com>
  13284. * windows-nat.c (do_windows_fetch_inferior_registers): Add
  13285. windows_thread_info parameter and use it instead of
  13286. current_thread.
  13287. (windows_fetch_inferior_registers): Don't set current_thread,
  13288. pass the thread to do_windows_fetch_inferior_registers. Use
  13289. ptid from regcache instead of inferior_ptid.
  13290. (do_windows_store_inferior_registers): Add windows_thread_info
  13291. parameter and use it instead of current_thread.
  13292. (windows_store_inferior_registers): Don't set current_thread,
  13293. pass the thread to do_windows_store_inferior_registers. Use
  13294. ptid from regcache instead of inferior_ptid.
  13295. 2017-03-21 Simon Marchi <simon.marchi@ericsson.com>
  13296. * ser-mingw.c (ser_windows_raw): Remove reference to
  13297. struct serial::current_timeout.
  13298. 2017-03-21 Ivo Raisr <ivo.raisr@oracle.com>
  13299. PR tdep/20928
  13300. * sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field.
  13301. * sparc64-tdep.c (sparc64_ccr_type): New function.
  13302. (sparc64_fsr_type): Fix %fsr decoding.
  13303. 2017-03-21 Tim Wiederhake <tim.wiederhake@intel.com>
  13304. * python/py-record-btrace.c (btpy_insn_data): Change return type
  13305. for Python 2.
  13306. 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
  13307. * spu-linux-nat.c (spu_fetch_inferior_registers,
  13308. spu_store_inferior_registers): Use ptid from regcache, set and
  13309. restore inferior_ptid.
  13310. * spu-multiarch.c (spu_fetch_registers, spu_store_registers):
  13311. Likewise.
  13312. 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
  13313. * i386-linux-nat.c (fetch_register, store_register,
  13314. i386_linux_fetch_inferior_registers,
  13315. i386_linux_store_inferior_registers): Use ptid from regcache.
  13316. * ia64-linux-nat.c (ia64_linux_fetch_register,
  13317. ia64_linux_store_register): Likewise.
  13318. * inf-ptrace.c (inf_ptrace_fetch_register,
  13319. inf_ptrace_store_register): Likewise.
  13320. * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers,
  13321. m32r_linux_store_inferior_registers): Likewise.
  13322. * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers,
  13323. m68kbsd_store_inferior_registers): Likewise.
  13324. * m68k-linux-nat.c (fetch_register, store_register,
  13325. m68k_linux_fetch_inferior_registers,
  13326. m68k_linux_store_inferior_registers): Likewise.
  13327. * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers,
  13328. m88kbsd_store_inferior_registers): Likewise.
  13329. * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers,
  13330. mips_fbsd_store_inferior_registers): Likewise.
  13331. * mips-linux-nat.c (mips64_linux_regsets_fetch_registers,
  13332. mips64_linux_regsets_store_registers): Likewise.
  13333. * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers,
  13334. mipsnbsd_store_inferior_registers): Likewise.
  13335. * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers,
  13336. mips64obsd_store_inferior_registers): Likewise.
  13337. * nto-procfs.c (procfs_fetch_registers, procfs_store_registers):
  13338. Likewise.
  13339. * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers,
  13340. ppcfbsd_store_inferior_registers): Likewise.
  13341. * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers,
  13342. ppc_linux_store_inferior_registers): Likewise.
  13343. * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers,
  13344. ppcnbsd_store_inferior_registers): Likewise.
  13345. * ppc-obsd-nat.c (ppcobsd_fetch_registers,
  13346. ppcobsd_store_registers): Likewise.
  13347. * procfs.c (procfs_fetch_registers, procfs_store_registers):
  13348. Likewise.
  13349. * ravenscar-thread.c (ravenscar_fetch_registers,
  13350. ravenscar_store_registers, ravenscar_prepare_to_store):
  13351. Likewise.
  13352. * record-btrace.c (record_btrace_fetch_registers,
  13353. record_btrace_store_registers, record_btrace_prepare_to_store):
  13354. Likewise.
  13355. * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
  13356. Lookup inferior using ptid from regcache, instead of
  13357. current_inferior.
  13358. * remote.c (remote_fetch_registers, remote_store_registers): Use
  13359. ptid from regcache.
  13360. * rs6000-nat.c (fetch_register, store_register): Likewise.
  13361. * s390-linux-nat.c (s390_linux_fetch_inferior_registers,
  13362. s390_linux_store_inferior_registers): Likewise.
  13363. * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers,
  13364. shnbsd_store_inferior_registers): Likewise.
  13365. * sol-thread.c (sol_thread_fetch_registers,
  13366. sol_thread_store_registers): Likewise.
  13367. * sparc-nat.c (sparc_fetch_inferior_registers,
  13368. sparc_store_inferior_registers): Likewise.
  13369. * tilegx-linux-nat.c (fetch_inferior_registers,
  13370. store_inferior_registers): Likewise.
  13371. * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers,
  13372. vaxbsd_store_inferior_registers): Likewise.
  13373. * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs,
  13374. store_xtregs): Likewise.
  13375. 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
  13376. PR gdb/14441
  13377. * NEWS: Mention support for rvalue references in GDB and python.
  13378. 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
  13379. PR gdb/14441
  13380. * gdbtypes.c (rank_one_type): Implement overloading
  13381. resolution rules regarding rvalue references.
  13382. 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
  13383. PR gdb/14441
  13384. * aarch64-tdep.c (aarch64_type_align)
  13385. (aarch64_extract_return_value, aarch64_store_return_value): Change
  13386. lvalue reference type checks to general reference type checks.
  13387. * amd64-tdep.c (amd64_classify): Likewise.
  13388. * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
  13389. Likewise.
  13390. * arm-tdep.c (arm_type_align, arm_extract_return_value)
  13391. (arm_store_return_value): Likewise.
  13392. * ax-gdb.c (gen_fetch, gen_cast): Likewise.
  13393. * c-typeprint.c (c_print_type): Likewise.
  13394. * c-varobj.c (adjust_value_for_child_access, c_value_of_variable)
  13395. (cplus_number_of_children, cplus_describe_child): Likewise.
  13396. * compile/compile-c-symbols.c (generate_vla_size): Likewise.
  13397. * completer.c (expression_completer): Likewise.
  13398. * cp-support.c (make_symbol_overload_list_adl_namespace):
  13399. Likewise.
  13400. * darwin-nat-info.c (info_mach_region_command): Likewise.
  13401. * dwarf2loc.c (entry_data_value_coerce_ref)
  13402. (value_of_dwarf_reg_entry): Likewise.
  13403. * eval.c (ptrmath_type_p, evaluate_subexp_standard)
  13404. (evaluate_subexp_for_address, evaluate_subexp_for_sizeof):
  13405. Likewise.
  13406. * findvar.c (extract_typed_address, store_typed_address):
  13407. Likewise.
  13408. * gdbtypes.c (rank_one_type): Likewise.
  13409. * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise.
  13410. * infcall.c (value_arg_coerce): Likewise.
  13411. * language.c (pointer_type): Likewise.
  13412. * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer):
  13413. Likewise.
  13414. * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise.
  13415. * mn10300-tdep.c (mn10300_type_align): Likewise.
  13416. * msp430-tdep.c (msp430_push_dummy_call): Likewise.
  13417. * ppc-sysv-tdep.c (do_ppc_sysv_return_value)
  13418. (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value):
  13419. Likewise.
  13420. * printcmd.c (print_formatted, x_command): Likewise.
  13421. * python/py-type.c (typy_get_composite, typy_template_argument):
  13422. Likewise.
  13423. * python/py-value.c (valpy_referenced_value)
  13424. (valpy_get_dynamic_type, value_has_field): Likewise.
  13425. * s390-linux-tdep.c (s390_function_arg_integer): Likewise.
  13426. * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise.
  13427. * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise.
  13428. * spu-tdep.c (spu_scalar_value_p): Likewise.
  13429. * symtab.c (lookup_symbol_aux): Likewise.
  13430. * typeprint.c (whatis_exp, print_type_scalar): Likewise.
  13431. * valarith.c (binop_types_user_defined_p, unop_user_defined_p):
  13432. Likewise.
  13433. * valops.c (value_cast_pointers, value_cast)
  13434. (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp)
  13435. (value_struct_elt, value_struct_elt_bitpos)
  13436. (value_find_oload_method_list, find_overload_match)
  13437. (value_rtti_indirect_type): Likewise.
  13438. * valprint.c (val_print_scalar_type_p, generic_val_print):
  13439. Likewise.
  13440. * value.c (value_actual_type, value_as_address, unpack_long)
  13441. (pack_long, pack_unsigned_long, coerce_ref_if_computed)
  13442. (coerce_ref): Likewise.
  13443. * varobj.c (varobj_get_value_type): Likewise.
  13444. 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
  13445. PR gdb/14441
  13446. * python/lib/gdb/command/explore.py: Support exploring values
  13447. of rvalue reference types.
  13448. * python/lib/gdb/types.py: Implement get_basic_type() for
  13449. rvalue reference types.
  13450. * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New
  13451. constant.
  13452. * python/py-value.c (valpy_getitem): Add an rvalue reference
  13453. check.
  13454. (valpy_reference_value): Add new parameter "refcode".
  13455. (valpy_lvalue_reference_value, valpy_rvalue_reference_value):
  13456. New wrappers for valpy_reference_value().
  13457. * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
  13458. (gdbpy_invoke_xmethod): Likewise.
  13459. 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
  13460. PR gdb/14441
  13461. * dwarf2read.c (process_die, read_type_die_1): Handle the
  13462. DW_TAG_rvalue_reference_type DIE.
  13463. (read_tag_reference_type): Add new parameter "refcode".
  13464. 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
  13465. PR gdb/14441
  13466. * c-typeprint.c (c_print_type, c_type_print_varspec_prefix)
  13467. (c_type_print_modifier, c_type_print_varspec_suffix)
  13468. (c_type_print_base): Support printing rvalue reference types.
  13469. * c-valprint.c (c_val_print, c_value_print): Support printing
  13470. rvalue reference values.
  13471. 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
  13472. PR gdb/14441
  13473. * cp-name-parser.y (ptr_operator): Handle the '&&' token in
  13474. typename.
  13475. * cp-support.c (replace_typedefs): Handle
  13476. DEMANGLE_COMPONENT_RVALUE_REFERENCE.
  13477. * python/py-type.c (typy_lookup_type): Likewise.
  13478. 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
  13479. PR gdb/14441
  13480. * c-exp.y (ptr_operator): Handle the '&&' token in the typename.
  13481. * parse.c (insert_type): Change assert statement.
  13482. (follow_types): Handle rvalue reference types.
  13483. * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New
  13484. constant.
  13485. 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
  13486. PR gdb/14441
  13487. * ada-lang.c (ada_evaluate_subexp): Adhere to the new
  13488. value_ref() interface.
  13489. * c-valprint.c (c_value_print): Likewise.
  13490. * infcall.c (value_arg_coerce): Likewise.
  13491. * python/py-value.c (valpy_reference_value): Likewise.
  13492. * valops.c (value_cast, value_reinterpret_cast)
  13493. (value_dynamic_cast, typecmp): Likewise.
  13494. (value_ref): Parameterize by kind of return value reference type.
  13495. * value.h (value_ref): Add new parameter "refcode".
  13496. 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
  13497. PR gdb/14441
  13498. * dwarf2read.c (read_tag_reference_type): Use
  13499. lookup_lvalue_reference_type() instead of lookup_reference_type().
  13500. * eval.c (evaluate_subexp_standard): Likewise.
  13501. * f-exp.y: Likewise.
  13502. * gdbtypes.c (make_reference_type, lookup_reference_type):
  13503. Generalize with rvalue reference types.
  13504. (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New
  13505. convenience wrappers for lookup_reference_type().
  13506. * gdbtypes.h (make_reference_type, lookup_reference_type): Add a
  13507. reference kind parameter.
  13508. (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add
  13509. wrappers for lookup_reference_type().
  13510. * guile/scm-type.c (gdbscm_type_reference): Use
  13511. lookup_lvalue_reference_type() instead of lookup_reference_type().
  13512. * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise.
  13513. * parse.c (follow_types): Likewise.
  13514. * python/py-type.c (typy_reference, typy_lookup_type): Likewise.
  13515. * python/py-value.c (valpy_get_dynamic_type, valpy_getitem):
  13516. Likewise.
  13517. * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
  13518. (gdbpy_invoke_xmethod): Likewise.
  13519. * stabsread.c: Provide extra argument to make_reference_type()
  13520. call.
  13521. * valops.c (value_ref, value_rtti_indirect_type): Use
  13522. lookup_lvalue_reference_type() instead of lookup_reference_type().
  13523. 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
  13524. PR gdb/14441
  13525. * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant.
  13526. (TYPE_IS_REFERENCE): New macro.
  13527. (struct type): Add rvalue_reference_type field.
  13528. (TYPE_RVALUE_REFERENCE_TYPE): New macro.
  13529. 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
  13530. * NEWS: Add an entry about new '-file-list-shared-libraries' command.
  13531. * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries):
  13532. New function definition.
  13533. * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command.
  13534. * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries):
  13535. New function declaration.
  13536. * mi/mi-interp.c (mi_output_solib_attribs): New Function.
  13537. * mi/mi-interp.h: New file.
  13538. * solib.c (info_sharedlibrary_command): Replace for loop with
  13539. ALL_SO_LIBS macro
  13540. * solib.h (update_solib_list): New function declaration.
  13541. (so_list_head): Move macro.
  13542. * solist.h (ALL_SO_LIBS): New macro.
  13543. 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
  13544. * infcmd.c (post_create_inferior): Remove unused argument in
  13545. call to solib_add.
  13546. * remote.c (remote_start_remote): Likewise.
  13547. * solib-frv.c (frv_fetch_objfile_link_map): Likewise.
  13548. * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise.
  13549. (enable_break): Likewise.
  13550. * solib.c (update_solib_list): Remove unused target argument
  13551. and its documentation.
  13552. (solib_add): Remove unused target argument. Remove unused
  13553. argument in call to update_solib_list.
  13554. (info_sharedlibrary_command): Remove unused argument in call
  13555. to update_solib_list.
  13556. (sharedlibrary_command): Remove unused argument in call to
  13557. solib_add.
  13558. (handle_solib_event): Likewise.
  13559. (reload_shared_libraries): Likewise.
  13560. * solib.h (solib_add): Remove unused target argument.
  13561. 2017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
  13562. * s390-linux-tdep.c (is_rsi, is_rie): Remove functions.
  13563. (s390_displaced_step_fixup): Cover relative branches with the
  13564. default fixup handling. This fixes lack of support for some
  13565. relative branch instructions.
  13566. 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
  13567. * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use
  13568. ptid from regcache.
  13569. 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
  13570. * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers,
  13571. i386_darwin_store_inferior_registers): Use ptid from regcache.
  13572. 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
  13573. * i386-bsd-nat.c (i386bsd_fetch_inferior_registers,
  13574. i386bsd_store_inferior_registers): Use ptid from regcache.
  13575. 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
  13576. * hppa-obsd-nat.c (hppaobsd_fetch_registers,
  13577. hppaobsd_store_registers): Use ptid from regcache.
  13578. 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
  13579. * hppa-nbsd-nat.c (hppanbsd_fetch_registers,
  13580. hppanbsd_store_registers): Use ptid from regcache.
  13581. 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
  13582. * hppa-linux-nat.c (fetch_register, store_register): Use ptid
  13583. from regcache. Use get_ptrace_pid.
  13584. 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
  13585. * corelow.c (get_core_register_section): Use ptid from regcache,
  13586. update doc.
  13587. 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
  13588. * bsd-uthread.c (bsd_uthread_fetch_registers,
  13589. bsd_uthread_store_registers): Use ptid from regcache, set and
  13590. restore inferior_ptid.
  13591. 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
  13592. * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
  13593. fetch_fp_regs, store_register, store_regs, store_fp_register,
  13594. store_fp_regs): Use ptid from regcache.
  13595. 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
  13596. * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs,
  13597. store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs,
  13598. store_vfp_regs): Use ptid from regcache.
  13599. 2017-03-17 Pedro Alves <palves@redhat.com>
  13600. PR remote/21188
  13601. * ser-base.c (ser_base_wait_for): Add comment.
  13602. (do_ser_base_readchar): Improve comment based on the ser-unix.c's
  13603. version.
  13604. * ser-unix.c (hardwire_raw): Remove reference to
  13605. scb->current_timeout.
  13606. (wait_for, do_hardwire_readchar, hardwire_readchar): Delete.
  13607. (hardwire_ops): Install ser_base_readchar instead of
  13608. hardwire_readchar.
  13609. * serial.h (struct serial) <current_timeout, timeout_remaining>:
  13610. Remove fields.
  13611. 2017-03-17 Jonah Graham <jonah@kichwacoders.com>
  13612. PR gdb/19637
  13613. * python/lib/gdb/printer/bound_registers.py: Add support for
  13614. Python 3.
  13615. 2017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
  13616. * dwarf2loc.c (indirect_synthetic_pointer): Get data type of
  13617. pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full.
  13618. (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename
  13619. byte_offset to subobj_byte_offset. Fix the handling of
  13620. DWARF_VALUE_STACK on big-endian targets when coming via an
  13621. implicit pointer.
  13622. (dwarf2_evaluate_loc_desc): Adjust call to
  13623. dwarf2_evaluate_loc_desc_full.
  13624. * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration.
  13625. * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function.
  13626. 2017-03-16 Yao Qi <yao.qi@linaro.org>
  13627. * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16,
  13628. and REVSH instructions.
  13629. 2017-03-16 Yao Qi <yao.qi@linaro.org>
  13630. * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h".
  13631. (arm_record_test): Declare.
  13632. (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test.
  13633. (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to
  13634. align with the manual.
  13635. (thumb_record_misc): Adjust the code order to align with the
  13636. manual.
  13637. (thumb2_record_decode_insn_handler): Fix instruction matching.
  13638. (instruction_reader_thumb): New class.
  13639. (arm_record_test): New function.
  13640. 2017-03-16 Yao Qi <yao.qi@linaro.org>
  13641. * arm-tdep.c (abstract_memory_reader): New class.
  13642. (instruction_reader): New class.
  13643. (extract_arm_insn): Add argument 'reader'. Callers updated.
  13644. (decode_insn): Likewise.
  13645. 2017-03-16 Doug Evans <dje@google.com>
  13646. * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH
  13647. member. Change type of TYPE member to SCM. All uses updated.
  13648. (lsscm_make_lazy_string_smob): Add assert.
  13649. (lsscm_make_lazy_string): Flag bad length values.
  13650. (lsscm_elt_type): New function.
  13651. (gdbscm_lazy_string_to_value): Rewrite to use
  13652. lsscm_safe_lazy_string_to_value.
  13653. (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR.
  13654. * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length
  13655. values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs
  13656. in incoming type.
  13657. * guile/guile-internal.h (tyscm_scm_to_type): Declare.
  13658. * guile/scm-type.c (tyscm_scm_to_type): New function.
  13659. 2017-03-15 Doug Evans <dje@google.com>
  13660. PR python/17728, python/18439, python/18779
  13661. * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH
  13662. member. Change type of TYPE member to PyObject *. All uses updated.
  13663. (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR.
  13664. (gdbpy_create_lazy_string_object): Flag bad length values.
  13665. Handle TYPE_CODE_ARRAY with possibly different user-provided length.
  13666. Handle typedefs in incoming type.
  13667. (stpy_lazy_string_elt_type): New function.
  13668. (gdbpy_extract_lazy_string): Call it.
  13669. * python/py-value.c (valpy_lazy_string): Flag bad length values.
  13670. Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle
  13671. typedefs in incoming type.
  13672. 2017-03-16 Doug Evans <dje@google.com>
  13673. * guile/guile-internal.h (tyscm_scm_to_type): Declare.
  13674. * guile/scm-type.c (tyscm_scm_to_type): New function.
  13675. 2017-03-16 Jiong Wang <jiong.wang@arm.com>
  13676. * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to
  13677. "ULONGEST" for "skip".
  13678. 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
  13679. PR gdb/21220
  13680. * inf-ptrace.c (inf_ptrace_xfer_partial): In "case
  13681. TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke...
  13682. (inf_ptrace_peek_poke): ...here. New function. Now also loop
  13683. over ptrace peek/poke until end of buffer or error.
  13684. 2017-03-14 Simon Marchi <simon.marchi@ericsson.com>
  13685. * parse.c (length_of_subexp): Make static.
  13686. * parser-defs.h (length_of_subexp): Remove.
  13687. 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
  13688. * linux-nat.c (linux_proc_xfer_partial): Handle write operations
  13689. as well.
  13690. 2017-03-14 Pedro Alves <palves@redhat.com>
  13691. * cp-name-parser.y (cp_demangled_name_to_comp): Update comment.
  13692. (main): Use std::unique_ptr. Remove calls to
  13693. cp_demangled_name_parse_free.
  13694. 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
  13695. * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers,
  13696. alphabsd_store_inferior_registers): Use regcache->ptid instead
  13697. of inferior_ptid.
  13698. 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
  13699. * aix-thread.c (aix_thread_fetch_registers,
  13700. aix_thread_store_registers): Use regcache->ptid instead of
  13701. inferior_ptid.
  13702. 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
  13703. * aarch64-linux-nat.c (fetch_gregs_from_thread,
  13704. store_gregs_to_thread, fetch_fpregs_from_thread,
  13705. store_fpregs_to_thread): Use regcache->ptid instead of
  13706. inferior_ptid.
  13707. 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
  13708. * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers,
  13709. amd64_linux_fetch_inferior_registers): Use regcache->ptid
  13710. instead of inferior_ptid.
  13711. 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
  13712. * target.c (target_fetch_registers, target_store_registers): Add
  13713. assert.
  13714. 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
  13715. * regcache.h (regcache_get_ptid): New function.
  13716. * regcache.c (regcache_get_ptid): New function.
  13717. 2017-03-13 Mark Wielaard <mark@klomp.org>
  13718. * cp-name-parser.y (make_empty): Initialize d_printing to zero.
  13719. 2017-03-10 Keith Seitz <keiths@redhat.com>
  13720. PR c++/8218
  13721. * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments.
  13722. 2017-03-08 Pedro Alves <palves@redhat.com>
  13723. PR gdb/18360
  13724. * infrun.c (start_step_over, do_target_resume, resume)
  13725. (restart_threads): Assert we're not resuming a thread that is
  13726. meant to be stopped.
  13727. (infrun_thread_stop_requested_callback): Delete.
  13728. (infrun_thread_stop_requested): If the thread is internally
  13729. stopped, queue a pending stop event and clear the thread's
  13730. inline-frame state.
  13731. (handle_stop_requested): New function.
  13732. (handle_syscall_event, handle_inferior_event_1): Use
  13733. handle_stop_requested.
  13734. (handle_stop_requested): New function.
  13735. (handle_signal_stop): Set the thread's stop_signal here instead of
  13736. at caller.
  13737. (finish_step_over): Clear step over info unconditionally.
  13738. (handle_signal_stop): If the user had interrupted the event
  13739. thread, consider the stop a random signal.
  13740. (handle_signal_stop) <signal arrived while stepping over
  13741. breakpoint>: Don't restart threads here.
  13742. (stop_waiting): Don't clear step-over info here.
  13743. 2017-03-08 Pedro Alves <palves@redhat.com>
  13744. PR 21206
  13745. * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull
  13746. goes to argument 2, not 1.
  13747. 2017-03-08 Pedro Alves <palves@redhat.com>
  13748. PR cli/21218
  13749. * top.c (gdb_readline_wrapper): Avoid passing NULL to
  13750. display_gdb_prompt.
  13751. (command_line_input): Add comment.
  13752. 2017-03-08 Pedro Alves <palves@redhat.com>
  13753. PR tui/21216
  13754. * tui/tui-file.c (tui_file::write): New.
  13755. * tui/tui-file.h (tui_file): Override "write".
  13756. * tui/tui-io.c (do_tui_putc, update_start_line): New functions,
  13757. factored out from ...
  13758. (tui_puts): ... here.
  13759. (tui_putc): Use them.
  13760. (tui_write): New function.
  13761. * tui/tui-io.h (tui_write): Declare.
  13762. 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
  13763. * Makefile.in (SFILES): Replace "environ.c" with
  13764. "common/environ.c".
  13765. (HFILES_NO_SRCDIR): Likewise, for "environ.h".
  13766. * environ.c: Include "common-defs.h" instead of "defs.h. Moved
  13767. to...
  13768. * common/environ.c: ... here.
  13769. * environ.h: Moved to...
  13770. * common/environ.h: ... here.
  13771. 2017-03-07 Peter Bergner <bergner@vnet.ibm.com>
  13772. * gdbarch.sh (pstring_ptr): New static function.
  13773. (gdbarch_disassembler_options): Use it.
  13774. (gdbarch_verify_disassembler_options): Print valid_disassembler_options,
  13775. not valid_disassembler_option->name.
  13776. * gdbarch.c: Regenerate.
  13777. 2017-03-07 Peter Bergner <bergner@vnet.ibm.com>
  13778. * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete.
  13779. 2017-03-07 Pedro Alves <palves@redhat.com>
  13780. * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout.
  13781. 2017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
  13782. * i387-tdep.h (i387_reset_bnd_regs): Add function definition.
  13783. * i387-tdep.c (i387_reset_bnd_regs): Add function implementation.
  13784. * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs.
  13785. * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs.
  13786. 2017-03-06 Simon Marchi <simon.marchi@ericsson.com>
  13787. * xtensa-linux-nat.c (fetch_gregs): Remove const.
  13788. 2017-03-03 Simon Marchi <simon.marchi@ericsson.com>
  13789. * remote.c (remote_add_target_side_commands): Use range-based
  13790. for loop.
  13791. 2017-03-03 Yao Qi <yao.qi@linaro.org>
  13792. PR gdb/21165
  13793. * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if
  13794. value is lazy.
  13795. * valprint.c (common_val_print): Likewise.
  13796. 2017-02-28 Peter Bergner <bergner@vnet.ibm.com>
  13797. * NEWS: Mention new set/show disassembler-options commands.
  13798. * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h".
  13799. (prospective_options): New static variable.
  13800. (gdb_disassembler::gdb_disassembler): Initialize
  13801. m_di.disassembler_options.
  13802. (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options.
  13803. (get_disassembler_options): New function.
  13804. (set_disassembler_options): Likewise.
  13805. (set_disassembler_options_sfunc): Likewise.
  13806. (show_disassembler_options_sfunc): Likewise.
  13807. (disassembler_options_completer): Likewise.
  13808. (_initialize_disasm): Likewise.
  13809. * disasm.h (get_disassembler_options): New prototype.
  13810. (set_disassembler_options): Likewise.
  13811. * gdbarch.sh (gdbarch_disassembler_options): New variable.
  13812. (gdbarch_verify_disassembler_options): Likewise.
  13813. * gdbarch.c: Regenerate.
  13814. * gdbarch.h: Likewise.
  13815. * arm-tdep.c (num_disassembly_options): Delete.
  13816. (set_disassembly_style): Likewise.
  13817. (arm_disassembler_options): New static variable.
  13818. (set_disassembly_style_sfunc): Convert short style name into long
  13819. option name. Call set_disassembler_options.
  13820. (show_disassembly_style_sfunc): New function.
  13821. (arm_gdbarch_init): Call set_gdbarch_disassembler_options and
  13822. set_gdbarch_verify_disassembler_options.
  13823. (_initialize_arm_tdep): Delete regnames variable and update callers.
  13824. (arm_disassembler_options): Initialize.
  13825. (disasm_options): New variable.
  13826. (num_disassembly_options): Rename from this...
  13827. (num_disassembly_styles): ...to this. Compute by scanning through
  13828. disasm_options.
  13829. (valid_disassembly_styles): Initialize using disasm_options.
  13830. Remove calls to parse_arm_disassembler_option, get_arm_regnames and
  13831. set_arm_regname_option.
  13832. Pass show_disassembly_style_sfunc to the "disassembler" setshow command.
  13833. * rs6000-tdep.c (powerpc_disassembler_options): New static variable.
  13834. (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and
  13835. set_gdbarch_verify_disassembler_options.
  13836. * s390-tdep.c (s390_disassembler_options): New static variable.
  13837. (s390_gdbarch_init):all set_gdbarch_disassembler_options and
  13838. set_gdbarch_verify_disassembler_options.
  13839. 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
  13840. * remote.c (remote_add_target_side_condition): Remove "struct"
  13841. keyword from range-based for loop.
  13842. 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
  13843. * remote.c (remote_add_target_side_condition): Use range-based
  13844. for loop. Update comment.
  13845. 2017-02-27 Yao Qi <yao.qi@linaro.org>
  13846. * f-typeprint.c (f_print_type): Check "varstring" is empty first.
  13847. 2017-02-26 Alan Hayward <alan.hayward@arm.com>
  13848. * regcache.c (regcache_raw_update): New function.
  13849. (regcache_raw_read): Move code to regcache_raw_update.
  13850. * regcache.h (regcache_raw_update): New declaration.
  13851. * remote.c (remote_prepare_to_store): Call regcache_raw_update.
  13852. 2017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
  13853. * dwarf2read.c (create_debug_type_hash_table): Initialize
  13854. header.signature and header.type_offset_in_tu.
  13855. 2017-02-24 Pedro Alves <palves@redhat.com>
  13856. * symtab.c (make_file_symbol_completion_list_1): Use
  13857. add_symtab_completions.
  13858. 2017-02-24 Alan Hayward <alan.hayward@arm.com>
  13859. * stack.c (frame_info): Use frame_unwind_register_value to avoid buf.
  13860. 2017-02-24 Alan Hayward <alan.hayward@arm.com>
  13861. * i386-tdep.c (i386_pseudo_register_read_into_value): Use
  13862. I386_MAX_REGISTER_SIZE.
  13863. (i386_pseudo_register_write): Likewise.
  13864. (i386_process_record): Likewise.
  13865. * i387-tdep.c (i387_supply_xsave): Likewise.
  13866. * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE.
  13867. (store_register): Likewise.
  13868. 2017-02-23 Pedro Alves <palves@redhat.com>
  13869. * ada-lang.c: Include "common/function-view.h".
  13870. (ada_iterate_over_symbols): Adjust to use function_view as
  13871. callback type.
  13872. (struct add_partial_datum, ada_complete_symbol_matcher): Delete.
  13873. (ada_make_symbol_completion_list): Use a lambda.
  13874. (ada_exc_search_name_matches): Delete.
  13875. (name_matches_regex): New.
  13876. (ada_add_global_exceptions): Use a lambda and name_matches_regex.
  13877. * compile/compile-c-support.c: Include "common/function-view.h".
  13878. (print_one_macro): Change prototype to accept a ui_file pointer.
  13879. (write_macro_definitions): Use a lambda.
  13880. * dwarf2read.c: Include "common/function-view.h".
  13881. (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
  13882. (dw2_expand_symtabs_matching): Adjust to use function_view as
  13883. callback type.
  13884. * language.h: Include "common/function-view.h".
  13885. (struct language_defn) <la_iterate_over_symbols>: Adjust to use
  13886. function_view as callback type.
  13887. (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter.
  13888. * linespec.c: Include "common/function-view.h".
  13889. (collect_info::add_symbol): New method.
  13890. (struct symbol_and_data_callback, iterate_inline_only, struct
  13891. symbol_matcher_data, iterate_name_matcher): Delete.
  13892. (iterate_over_all_matching_symtabs): Adjust to use function_view
  13893. as callback type and lambdas.
  13894. (iterate_over_file_blocks): Adjust to use function_view as
  13895. callback type.
  13896. (decode_compound_collector): Now a class with private fields.
  13897. (decode_compound_collector::release_symbols): New method.
  13898. (collect_one_symbol): Rename to...
  13899. (decode_compound_collector::operator()): ... this and adjust.
  13900. (lookup_prefix_sym): decode_compound_collector construction bits
  13901. move to decode_compound_collector ctor. Pass the
  13902. decode_compound_collector object directly as callback. Remove
  13903. cleanups and use decode_compound_collector::release_symbols
  13904. instead.
  13905. (symtab_collector): Now a class with private fields.
  13906. (symtab_collector::release_symtabs): New method.
  13907. (add_symtabs_to_list): Rename to...
  13908. (symtab_collector::operator()): ... this and adjust.
  13909. (collect_symtabs_from_filename): symtab_collector construction
  13910. bits move to symtab_collector ctor. Pass the symtab_collector
  13911. object directly as callback. Remove cleanups and use
  13912. symtab_collector::release_symtabs instead.
  13913. (collect_symbols): Delete.
  13914. (add_matching_symbols_to_info): Use lambdas.
  13915. * macrocmd.c (print_macro_callback): Delete.
  13916. (info_macro_command): Use a lambda.
  13917. (info_macros_command): Pass print_macro_definition as callable
  13918. directly.
  13919. (print_one_macro): Remove 'ignore' parameter.
  13920. (macro_list_command): Adjust.
  13921. * macrotab.c (macro_for_each_data::fn): Now a function_view.
  13922. (macro_for_each_data::user_data): Delete field.
  13923. (foreach_macro): Adjust to call the function_view.
  13924. (macro_for_each): Adjust to use function_view as callback type.
  13925. (foreach_macro_in_scope): Adjust to call the function_view.
  13926. (macro_for_each_in_scope): Adjust to use function_view as callback
  13927. type.
  13928. * macrotab.h: Include "common/function-view.h".
  13929. (macro_callback_fn): Declare a prototype instead of a pointer.
  13930. Remove "user_data" parameter.
  13931. (macro_for_each, macro_for_each_in_scope): Adjust to use
  13932. function_view as callback type.
  13933. * psymtab.c (partial_map_expand_apply)
  13934. (psym_map_symtabs_matching_filename, recursively_search_psymtabs):
  13935. Adjust to use function_view as callback type and to return bool.
  13936. (psym_expand_symtabs_matching): Adjust to use function_view as
  13937. callback types.
  13938. * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust
  13939. to use function_view as callback type and to return bool.
  13940. (debug_qf_expand_symtabs_matching): Adjust to use function_view as
  13941. callback types.
  13942. * symfile.c (expand_symtabs_matching): Adjust to use function_view
  13943. as callback types.
  13944. * symfile.h: Include "common/function-view.h".
  13945. (expand_symtabs_file_matcher_ftype)
  13946. (expand_symtabs_symbol_matcher_ftype)
  13947. (expand_symtabs_exp_notify_ftype): Remove "data" parameter and
  13948. return bool.
  13949. (quick_symbol_functions::map_symtabs_matching_filename)
  13950. (quick_symbol_functions::expand_symtabs_matching): Adjust to use
  13951. function_view as callback type and return bool.
  13952. (expand_symtabs_matching): Adjust to use function_view as callback
  13953. type.
  13954. (maintenance_expand_name_matcher)
  13955. (maintenance_expand_file_matcher): Delete.
  13956. (maintenance_expand_symtabs): Use lambdas.
  13957. * symtab.c (iterate_over_some_symtabs): Adjust to use
  13958. function_view as callback types and return bool.
  13959. (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead
  13960. of a cleanup.
  13961. (lookup_symtab_callback): Delete.
  13962. (lookup_symtab): Use a lambda.
  13963. (iterate_over_symbols): Adjust to use function_view as callback
  13964. type.
  13965. (struct search_symbols_data, search_symbols_file_matches)
  13966. (search_symbols_name_matches): Delete.
  13967. (search_symbols): Use a pair of lambdas.
  13968. (struct add_name_data, add_macro_name, symbol_completion_matcher)
  13969. (symtab_expansion_callback): Delete.
  13970. (default_make_symbol_completion_list_break_on_1): Use lambdas.
  13971. * symtab.h: Include "common/function-view.h".
  13972. (iterate_over_some_symtabs): Adjust to use function_view as
  13973. callback type and return bool.
  13974. (iterate_over_symtabs): Adjust to use function_view as callback
  13975. type.
  13976. (symbol_found_callback_ftype): Remove 'data' parameter and return
  13977. bool.
  13978. (iterate_over_symbols): Adjust to use function_view as callback
  13979. type.
  13980. 2017-02-23 Pedro Alves <palves@redhat.com>
  13981. * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New.
  13982. (%.o) <unittests/%.c>: New pattern.
  13983. * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to
  13984. CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS.
  13985. * common/function-view.h: New file.
  13986. * unittests/function-view-selftests.c: New file.
  13987. * configure: Regenerate.
  13988. 2017-02-23 Simon Marchi <simon.marchi@ericsson.com>
  13989. * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of
  13990. inferior_ptid.
  13991. * go32-nat.c (go32_thread_alive): Likewise.
  13992. 2017-02-23 Yao Qi <yao.qi@linaro.org>
  13993. * varobj-iter.h (varobj_iter_delete): Call xfree instead of
  13994. delete.
  13995. 2017-02-23 Yao Qi <yao.qi@linaro.org>
  13996. * varobj.c (varobj_clear_saved_item): Use delete instead of
  13997. xfree.
  13998. (update_dynamic_varobj_children): Likewise.
  13999. 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
  14000. * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR.
  14001. 2017-02-21 Simon Marchi <simon.marchi@ericsson.com>
  14002. * common/enum-flags.h (enum_flags::enum_flags): Initialize
  14003. m_enum_value to 0 in default constructor.
  14004. 2017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
  14005. * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK.
  14006. (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK.
  14007. (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION,
  14008. STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines.
  14009. (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros.
  14010. (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN.
  14011. (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and
  14012. IS_STORE_CONDITIONAL_INSN.
  14013. 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
  14014. * dwarf2_rnglists_process: Initialize range_beginning and range_end.
  14015. 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
  14016. * NEWS (Changes since GDB 7.12): Add DWARF-5.
  14017. 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
  14018. * dwarf2read.c (skip_one_die, read_attribute_value)
  14019. (dwarf2_const_value_attr, dump_die_shallow)
  14020. (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
  14021. (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16.
  14022. 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
  14023. * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*.
  14024. (dwarf_parse_macro_header): Accept DWARF version 5.
  14025. (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*.
  14026. 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
  14027. * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and
  14028. DW_AT_GNU_*.
  14029. * common/common-exceptions.h (enum errors): Likewise.
  14030. * dwarf2-frame.c (class dwarf_expr_executor): Likewise.
  14031. * dwarf2expr.c (dwarf_block_to_dwarf_reg)
  14032. (dwarf_expr_context::execute_stack_op): Likewise.
  14033. * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece):
  14034. Likewise.
  14035. * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type)
  14036. (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
  14037. (show_entry_values_debug, call_site_to_target_addr)
  14038. (func_addr_to_tail_call_list, func_verify_no_selftailcall)
  14039. (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value)
  14040. (entry_data_value_free_closure, value_of_dwarf_reg_entry)
  14041. (value_of_dwarf_block_entry, indirect_pieced_value)
  14042. (symbol_needs_eval_context::push_dwarf_reg_entry_value):
  14043. (disassemble_dwarf_expression): Likewise.
  14044. * dwarf2read.c (process_die, inherit_abstract_dies)
  14045. (read_call_site_scope): Likewise.
  14046. * gdbtypes.h (struct func_type, struct call_site_parameter)
  14047. (struct call_site): Likewise.
  14048. * stack.c (read_frame_arg): Likewise.
  14049. * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise.
  14050. 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
  14051. * defs.h (read_unsigned_leb128): New declaration.
  14052. * dwarf2loc.c (decode_debug_loclists_addresses): New function.
  14053. (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*.
  14054. (dwarf2_find_location_expression): Call also
  14055. decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length.
  14056. * dwarf2loc.h (dwarf2_version): New declaration.
  14057. * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str,
  14058. rnglists.
  14059. (dwarf2_elf_names): Add .debug_loclists, .debug_line_str,
  14060. .debug_rnglists.
  14061. (struct dwop_section_names): Add loclists_dwo.
  14062. (dwop_section_names): Add .debug_loclists.dwo.
  14063. (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu.
  14064. (struct dwarf2_per_cu_data): Add dwarf_version.
  14065. (struct dwo_sections): Add loclists.
  14066. (struct attr_abbrev): Add implicit_const.
  14067. (read_indirect_line_string): New declaration.
  14068. (read_unsigned_leb128): Delete declaration.
  14069. (rcuh_kind): New definition.
  14070. (read_and_check_comp_unit_head): Change parameter
  14071. is_debug_types_section to section_kind.
  14072. (dwarf2_locate_sections): Handle loclists, line_str and rnglists.
  14073. (read_comp_unit_head): Change parameter abfd to section, add parameter
  14074. section_kind. Handle DWARF-5.
  14075. (error_check_comp_unit_head): Accept also DWARF version 5.
  14076. (read_and_check_comp_unit_head): Change parameter
  14077. is_debug_types_section to section_kind.
  14078. (read_and_check_type_unit_head): Delete function.
  14079. (read_abbrev_offset): Handle DWARF-5.
  14080. (create_debug_type_hash_table): Add parameter section_kind. Process
  14081. only DW_UT_type. Use signature and type_offset_in_tu from struct
  14082. comp_unit_head.
  14083. (create_debug_types_hash_table): Update create_debug_type_hash_table
  14084. caller.
  14085. (create_all_type_units): Call create_debug_type_hash_table.
  14086. (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change
  14087. read_and_check_type_unit_head caller to read_and_check_comp_unit_head
  14088. caller.
  14089. (skip_one_die): Handle DW_FORM_implicit_const.
  14090. (dwarf2_rnglists_process): New function.
  14091. (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5.
  14092. (abbrev_table_read_table): Handle DW_FORM_implicit_const.
  14093. (read_attribute_value): Handle DW_FORM_implicit_const,
  14094. DW_FORM_line_strp.
  14095. (read_attribute): Handle DW_FORM_implicit_const.
  14096. (read_indirect_string_at_offset_from): New function from
  14097. read_indirect_string_at_offset.
  14098. (read_indirect_string_at_offset): Call
  14099. read_indirect_string_at_offset_from.
  14100. (read_indirect_line_string_at_offset): New function.
  14101. (read_indirect_string): New function comment.
  14102. (read_indirect_line_string): New function.
  14103. (read_unsigned_leb128): Make it global.
  14104. (dwarf2_string_attr): Handle DWARF-5.
  14105. (add_include_dir_stub, read_formatted_entries): New functions.
  14106. (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section):
  14107. Handle DWARF-5.
  14108. (per_cu_header_read_in): Update read_comp_unit_head caller.
  14109. (dwarf2_version): New function.
  14110. * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and
  14111. rnglists.
  14112. * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections
  14113. fields.
  14114. 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
  14115. * dwarf2read.c (abbrev_table_read_table): Read the data only once.
  14116. 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
  14117. * dwarf2read.c (dwarf2_ranges_process): New function from
  14118. dwarf2_ranges_read.
  14119. (dwarf2_ranges_read, dwarf2_record_block_ranges): Use
  14120. dwarf2_ranges_process.
  14121. 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
  14122. * dwarf2read.c (create_debug_type_hash_table): New function from
  14123. create_debug_types_hash_table.
  14124. (create_debug_types_hash_table): Call create_debug_type_hash_table.
  14125. (create_all_type_units, open_and_init_dwo_file): Update
  14126. create_debug_types_hash_table callers.
  14127. 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
  14128. PR gdb/16188
  14129. * fork-child.c (trace_start_error): Fix thinko. va_end should
  14130. refer to 'ap', not 'args'.
  14131. 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
  14132. Pedro Alves <palves@redhat.com>
  14133. PR gdb/16188
  14134. * darwin-nat.c (darwin_ptrace_me): Check if calls to system
  14135. calls succeeded.
  14136. * fork-child.c (trace_start_error): New function.
  14137. (trace_start_error_with_name): Likewise.
  14138. * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded.
  14139. * inf-ptrace.c (inf_ptrace_me): Likewise.
  14140. * inferior.h (trace_start_error): New prototype.
  14141. (trace_start_error_with_name): Likewise.
  14142. 2017-02-15 Sergio Durigan Junior <sergiodj@redhat.com>
  14143. PR gdb/21164
  14144. * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not
  14145. NULL before using it.
  14146. * symmisc.c (maintenance_print_symbols): Likewise.
  14147. (maintenance_print_msymbols): Likewise.
  14148. 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
  14149. * NEWS: Add record Python bindings entry.
  14150. 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
  14151. * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o,
  14152. py-record-full.o.
  14153. (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c.
  14154. * python/py-record-btrace.c, python/py-record-btrace.h,
  14155. python/py-record-full.c, python/py-record-full.h: New file.
  14156. * python/py-record.c: Add include for py-record-btrace.h and
  14157. py-record-full.h.
  14158. (recpy_method, recpy_format, recpy_goto, recpy_replay_position,
  14159. recpy_instruction_history, recpy_function_call_history, recpy_begin,
  14160. recpy_end): Use functions from py-record-btrace.c and py-record-full.c.
  14161. * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t):
  14162. New definition.
  14163. (gdbpy_initialize_btrace): New export.
  14164. * python/python.c (_initialize_python): Add gdbpy_initialize_btrace.
  14165. 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
  14166. * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o.
  14167. (SUBDIR_PYTHON_SRCS): Add python/py-record.c.
  14168. * python/py-record.c: New file.
  14169. * python/python-internal.h (gdbpy_start_recording,
  14170. gdbpy_current_recording, gdpy_stop_recording,
  14171. gdbpy_initialize_record): New export.
  14172. * python/python.c (_initialize_python): Add gdbpy_initialize_record.
  14173. (python_GdbMethods): Add gdbpy_start_recording,
  14174. gdbpy_current_recording and gdbpy_stop_recording.
  14175. 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
  14176. * record-btrace.c (record_btrace_record_method): New function.
  14177. (init_record_btrace_ops): Initialize to_record_method.
  14178. * record-full.c (record_full_record_method): New function.
  14179. (init_record_full_ops, init_record_full_core_ops): Add
  14180. record_full_record_method.
  14181. * record.h (enum record_method): New enum.
  14182. * target-debug.h (target_debug_print_enum_record_method: New define.
  14183. * target-delegates.c: Regenerate.
  14184. * target.c (target_record_method): New function.
  14185. * target.h: Include record.h.
  14186. (struct target_ops) <to_record_method>: New field.
  14187. (target_record_method): New export.
  14188. 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
  14189. * record.h (record_start, record_stop): New export.
  14190. * record.c (record_start, record_stop): New function.
  14191. 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
  14192. * btrace.c (btrace_fetch): Copy function call segments pointer
  14193. into a vector.
  14194. (btrace_clear): Clear the vector.
  14195. (btrace_find_insn_by_number): Use binary search to find the correct
  14196. function call segment.
  14197. * btrace.h (brace_fun_p): New typedef.
  14198. (struct btrace_thread_info) <functions>: New field.
  14199. 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
  14200. * record-btrace.c (btrace_ui_out_decode_error): Move most of it ...
  14201. * btrace.c (btrace_decode_error): ... here. New function.
  14202. * btrace.h (btrace_decode_error): New export.
  14203. 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
  14204. * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function.
  14205. (ftrace_new_function, btrace_insn_number, btrace_insn_cmp,
  14206. btrace_find_insn_by_number): Remove special case for gaps.
  14207. * btrace.h (btrace_insn_get_error): New export.
  14208. (btrace_insn_number, btrace_find_insn_by_number): Adjust comment.
  14209. * record-btrace.c (btrace_insn_history): Print number for gaps.
  14210. (record_btrace_info, record_btrace_goto): Handle gaps.
  14211. 2017-02-14 Tom Tromey <tom@tromey.com>
  14212. PR python/13598:
  14213. * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt
  14214. event.
  14215. * python/py-evts.c (gdbpy_initialize_py_events): Add
  14216. before_prompt registry.
  14217. * python/py-events.h (events_object) <before_prompt>: New field.
  14218. 2017-02-14 Markus Metzger <markus.t.metzger@intel.com>
  14219. * btrace.c (ftrace_new_switch): Preserve up link and flags.
  14220. 2017-02-13 Luis Machado <lgustavo@codesourcery.com>
  14221. * symfile (_initialize_symfile): Add usage text to the load command's
  14222. help text.
  14223. 2017-02-10 Simon Marchi <simon.marchi@ericsson.com>
  14224. * utils.c (defaulted_query): Don't query on secondary UIs.
  14225. 2017-02-10 Tom Tromey <tom@tromey.com>
  14226. * rust-lang.c (rust_get_disr_info): Remove unused variable.
  14227. 2017-02-10 Tom Tromey <tom@tromey.com>
  14228. * python/py-value.c (valpy_richcompare_throw): Remove unnecessary
  14229. "cleanup" local.
  14230. * python/py-type.c (typy_legacy_template_argument): Remove
  14231. unnecessary "cleanup" local.
  14232. 2017-02-10 Tom Tromey <tom@tromey.com>
  14233. * python/python.c (do_start_initialization): New function, from
  14234. _initialize_python.
  14235. (_initialize_python): Call do_start_initialization.
  14236. * python/py-linetable.c (ltpy_iternext): Use explicit returns, not
  14237. goto.
  14238. 2017-02-10 Tom Tromey <tom@tromey.com>
  14239. * python/py-prettyprint.c (pretty_print_one_value): Use
  14240. gdbpy_ref.
  14241. 2017-02-10 Tom Tromey <tom@tromey.com>
  14242. * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref.
  14243. * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use
  14244. gdbpy_ref.
  14245. * python/py-type.c (field_new): Use gdbpy_ref.
  14246. * python/py-symtab.c (symtab_and_line_to_sal_object): Use
  14247. gdbpy_ref.
  14248. * python/py-progspace.c (pspy_new): Use gdbpy_ref.
  14249. (py_free_pspace): Likewise.
  14250. (pspace_to_pspace_object): Likewise.
  14251. * python/py-objfile.c (objfpy_new): Use gdbpy_ref.
  14252. (py_free_objfile): Likewise.
  14253. (objfile_to_objfile_object): Likewise.
  14254. * python/py-inferior.c (delete_thread_object): Use
  14255. gdbpy_ref.
  14256. (infpy_read_memory): Likewise.
  14257. (py_free_inferior): Likewise.
  14258. * python/py-evtregistry.c (create_eventregistry_object): Use
  14259. gdbpy_ref.
  14260. * python/py-event.c (create_event_object): Use gdbpy_ref.
  14261. 2017-02-10 Tom Tromey <tom@tromey.com>
  14262. * python/py-ref.h (gdbpy_ref_policy): Now a template.
  14263. (gdbpy_ref): Now a template; allow subclasses of PyObject to be
  14264. used.
  14265. * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c,
  14266. python/py-cmd.c, python/py-continueevent.c, python/py-event.c,
  14267. python/py-exitedevent.c, python/py-finishbreakpoint.c,
  14268. python/py-framefilter.c, python/py-function.c,
  14269. python/py-inferior.c, python/py-infevents.c,
  14270. python/py-linetable.c, python/py-newobjfileevent.c,
  14271. python/py-param.c, python/py-prettyprint.c, python/py-ref.h,
  14272. python/py-signalevent.c, python/py-stopevent.c,
  14273. python/py-symbol.c, python/py-threadevent.c, python/py-type.c,
  14274. python/py-unwind.c, python/py-utils.c, python/py-value.c,
  14275. python/py-varobj.c, python/py-xmethods.c, python/python.c,
  14276. varobj.c: Change gdbpy_ref to gdbpy_ref<>.
  14277. 2017-02-10 Tom Tromey <tom@tromey.com>
  14278. * ui-out.h (ui_out_emit_type): New class.
  14279. (ui_out_emit_tuple, ui_out_emit_list): New typedefs.
  14280. * python/py-framefilter.c (py_print_single_arg): Use gdb::optional
  14281. and ui_out_emit_tuple.
  14282. (enumerate_locals): Likewise.
  14283. (py_mi_print_variables, py_print_locals, py_print_args): Use
  14284. ui_out_emit_list.
  14285. (py_print_frame): Use gdb::optional, ui_out_emit_tuple,
  14286. ui_out_emit_list.
  14287. * common/gdb_optional.h: New file.
  14288. 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
  14289. * MAINTAINERS (Write After Approval): Update my e-mail address.
  14290. 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
  14291. PR gdb/21122
  14292. * breakpoint.c (_initialize_breakpoint): Update the help description
  14293. of the 'commands' command to indicate that it takes a list argument.
  14294. 2017-02-09 Simon Marchi <simon.marchi@ericsson.com>
  14295. * interps.c (current_interp_set_logging): Remove "return".
  14296. 2017-02-09 Gary Benson <gbenson@redhat.com>
  14297. * symtab.c (add_symtab_completions): Prevent NULL pointer
  14298. dereference.
  14299. 2017-02-08 Pedro Alves <palves@redhat.com>
  14300. * interps.c (interp::interp): Remove reference to quiet_p.
  14301. (interp_set): Make static. Remove dead "Switching to" output
  14302. code.
  14303. (interp_quiet_p, interp_set_quiet): Delete.
  14304. (interpreter_exec_cmd): Don't set the interpreter quiet.
  14305. * interps.h (interp_quiet_p): Make static.
  14306. (class interp) <quiet_p>: Remove field
  14307. 2017-02-08 Jerome Guitton <guitton@adacore.com>
  14308. * cli/cli-decode.c (find_command_name_length): Make it extern.
  14309. * cli/cli-decode.h (find_command_name_length): Declare.
  14310. * cli/cli-script.c (command_name_equals, line_first_arg):
  14311. New functions.
  14312. (process_next_line): Use cli-decode to parse command names.
  14313. (build_command_line): Make args a constant pointer.
  14314. 2017-02-08 Jerome Guitton <guitton@adacore.com>
  14315. * cli-decode.c (lookup_cmd_1, lookup_cmd_composition):
  14316. Remove case-insensitive search.
  14317. 2017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com>
  14318. * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
  14319. at the end of the line. Avoids an ARI warning.
  14320. 2017-02-06 Luis Machado <lgustavo@codesourcery.com>
  14321. * NEWS: Mention support for record/replay of Intel 64 rdrand and
  14322. rdseed instructions.
  14323. i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed.
  14324. 2017-02-06 Ivo Raisr <ivo.raisr@oracle.com>
  14325. PR tdep/20936
  14326. Provide and use sparc32 and sparc64 target description XML files.
  14327. * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml,
  14328. features/sparc/sparc32-fpu.xml: New files for sparc 32-bit.
  14329. * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml,
  14330. features/sparc/sparc64-fpu.xml: New files for sparc 64-bit.
  14331. * features/sparc/sparc32-solaris.xml: New file.
  14332. * features/sparc/sparc64-solaris.xml: New file.
  14333. * features/sparc/sparc32-solaris.c: Generated.
  14334. * features/sparc/sparc64-solaris.c: Generated.
  14335. * sparc-tdep.h: Account for differences in target descriptions.
  14336. * sparc-tdep.c (sparc32_register_name): Use target provided registers.
  14337. (sparc32_register_type): Use target provided registers.
  14338. (validate_tdesc_registers): New function.
  14339. (sparc32_gdbarch_init): Use tdesc_has_registers.
  14340. Set pseudoregister functions.
  14341. * sparc64-tdep.c (sparc64_register_name): Use target provided registers.
  14342. (sparc64_register_type): Use target provided registers.
  14343. (sparc64_init_abi): Set pseudoregister functions.
  14344. 2017-02-03 Tom Tromey <tom@tromey.com>
  14345. PR rust/21097:
  14346. * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums
  14347. with a single member.
  14348. 2017-02-03 Pedro Alves <palves@redhat.com>
  14349. * cli/cli-interp.c (cli_interp_base::cli_interp_base)
  14350. (cli_interp_base::~cli_interp_base): New.
  14351. (cli_interp): New struct.
  14352. (as_cli_interp): Cast the interp itself to cli_interp.
  14353. (cli_interpreter_pre_command_loop): Rename to ...
  14354. (cli_interp_base::pre_command_loop): ... this. Remove 'self'
  14355. parameter.
  14356. (cli_interpreter_init): Rename to ...
  14357. (cli_interp::init): ... this. Remove 'self' parameter. Use
  14358. boolean. Make extern.
  14359. (cli_interpreter_resume): Rename to ...
  14360. (cli_interp::resume): ... this. Remove 'data' parameter. Make
  14361. extern.
  14362. (cli_interpreter_suspend): Rename to ...
  14363. (cli_interp::suspend): ... this. Remove 'data' parameter. Make
  14364. extern.
  14365. (cli_interpreter_exec): Rename to ...
  14366. (cli_interp::exec): ... this. Remove 'data' parameter. Make
  14367. extern.
  14368. (cli_interpreter_supports_command_editing): Rename to ...
  14369. (cli_interp_base::supports_command_editing): ... this. Remove
  14370. 'interp' parameter. Make extern.
  14371. (cli_ui_out): Rename to ...
  14372. (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter.
  14373. Make extern.
  14374. (cli_set_logging): Rename to ...
  14375. (cli_interp_base::set_logging): ... this. Remove 'interp'
  14376. parameter. Make extern.
  14377. (cli_interp_procs): Delete.
  14378. (cli_interp_factory): Adjust to use "new".
  14379. * cli/cli-interp.h: Include "interps.h".
  14380. (struct cli_interp_base): New struct.
  14381. * interps.c (struct interp): Delete. Fields moved to interps.h.
  14382. (interp_new): Delete.
  14383. (interp::interp, interp::~interp): New.
  14384. (interp_set): Use bool, and return void. Assume the interpreter
  14385. has suspend, init and resume methods, and that the all return
  14386. void.
  14387. (set_top_level_interpreter): interp_set returns void.
  14388. (interp_ui_out): Adapt.
  14389. (current_interp_set_logging): Adapt.
  14390. (interp_data): Delete.
  14391. (interp_pre_command_loop, interp_supports_command_editing): Adapt.
  14392. (interp_exec): Adapt.
  14393. (top_level_interpreter_data): Delete.
  14394. * interps.h (interp_init_ftype, interp_resume_ftype)
  14395. (interp_suspend_ftype, interp_exec_ftype)
  14396. (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete.
  14397. (class interp): New.
  14398. (interp_new): Delete.
  14399. (interp_set): Now returns void. Use bool.
  14400. (interp_data, top_level_interpreter_data): Delete.
  14401. * mi/mi-common.h: Include interps.h.
  14402. (class mi_interp): Inherit from interp. Define a ctor. Declare
  14403. init, resume, suspect, exec, interp_ui_out, set_logging and
  14404. pre_command_loop methods.
  14405. * mi/mi-interp.c (as_mi_interp): Cast the interp itself.
  14406. (mi_interpreter_init): Rename to ...
  14407. (mi_interp::init): ... this. Remove the 'interp' parameter, use
  14408. bool, return void and make extern. Adjust.
  14409. (mi_interpreter_resume): ... Rename to ...
  14410. (mi_interp::resume): ... this. Remove the 'data' parameter,
  14411. return void and make extern. Adjust.
  14412. (mi_interpreter_suspend): ... Rename to ...
  14413. (mi_interp::suspend): ... this. Remove the 'data' parameter,
  14414. return void and make extern. Adjust.
  14415. (mi_interpreter_exec): ... Rename to ...
  14416. (mi_interp::exec): ... this. Remove the 'data' parameter and make
  14417. extern. Adjust.
  14418. (mi_interpreter_pre_command_loop): ... Rename to ...
  14419. (mi_interp::pre_command_loop): ... this. Remove the 'self'
  14420. parameter and make extern.
  14421. (mi_on_normal_stop_1): Adjust.
  14422. (mi_ui_out): Rename to ...
  14423. (mi_interp::interp_ui_out): ... this. Remove the 'interp'
  14424. parameter and make extern. Adjust.
  14425. (mi_set_logging): Rename to ...
  14426. (mi_interp::set_logging): ... this. Remove the 'interp'
  14427. parameter and make extern. Adjust.
  14428. (mi_interp_procs): Delete.
  14429. (mi_interp_factory): Adjust to use 'new'.
  14430. * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command)
  14431. (mi_print_exception, mi_execute_command, mi_load_progress):
  14432. Adjust.
  14433. * tui/tui-interp.c (tui_interp): New class.
  14434. (as_tui_interp): Return a tui_interp pointer.
  14435. (tui_on_normal_stop, tui_on_signal_received)
  14436. (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
  14437. (tui_on_no_history, tui_on_user_selected_context_changed): Adjust
  14438. to use interp::interp_ui_out.
  14439. (tui_init): Rename to ...
  14440. (tui_interp::init): ... this. Remove the 'self' parameter, use
  14441. bool, return void and make extern. Adjust.
  14442. (tui_resume): Rename to ...
  14443. (tui_interp::resume): ... this. Remove the 'data' parameter,
  14444. return void and make extern. Adjust.
  14445. (tui_suspend): Rename to ...
  14446. (tui_interp::suspend): ... this. Remove the 'data' parameter,
  14447. return void and make extern. Adjust.
  14448. (tui_ui_out): Rename to ...
  14449. (tui_interp::interp_ui_out): ... this. Remove the 'self'
  14450. parameter, and make extern. Adjust.
  14451. (tui_exec): Rename to ...
  14452. (tui_interp::exec): ... this. Remove the 'data' parameter and
  14453. make extern.
  14454. (tui_interp_procs): Delete.
  14455. (tui_interp_factory): Use "new".
  14456. 2017-02-02 Tom Tromey <tom@tromey.com>
  14457. * rust-exp.y (ends_raw_string, space_then_number)
  14458. (rust_identifier_start_p): Return bool.
  14459. * rust-lang.c (rust_tuple_type_p, rust_underscore_fields)
  14460. (rust_tuple_struct_type_p, rust_tuple_variant_type_p)
  14461. (rust_slice_type_p, rust_range_type_p, rust_u8_type_p)
  14462. (rust_chartype_p): Return bool.
  14463. (val_print_struct, rust_print_struct_def, rust_print_type):
  14464. Update.
  14465. * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p):
  14466. Return bool.
  14467. 2017-02-02 Tom Tromey <tom@tromey.com>
  14468. * rust-lang.c: Reindent.
  14469. 2017-02-02 Tom Tromey <tom@tromey.com>
  14470. * rust-lang.h (rust_crate_for_block): Update.
  14471. * rust-lang.c (rust_crate_for_block): Return std::string.
  14472. (rust_get_disr_info): Use std:;string, not
  14473. gdb::unique_xmalloc_ptr.
  14474. * rust-exp.y (crate_name): Update.
  14475. 2017-02-02 Pedro Alves <palves@redhat.com>
  14476. * disasm-selftests.c (print_one_insn_test): Move the "verbose"
  14477. field out of gdb_disassembler_test and make it static.
  14478. 2017-02-02 Pedro Alves <palves@redhat.com>
  14479. * mi/mi-common.h (struct mi_interp): Delete the mi2_interp,
  14480. mi1_interp and mi_interp fields.
  14481. 2017-02-02 Pedro Alves <palves@redhat.com>
  14482. * cli/cli-interp.c (struct saved_output_files, saved_output):
  14483. Moved from cli/cli-logging.c.
  14484. (cli_set_logging): New function.
  14485. (cli_interp_procs): Install cli_set_logging.
  14486. * cli/cli-interp.h (make_logging_output, cli_set_logging):
  14487. Declare.
  14488. * cli/cli-logging.c (struct saved_output_files, saved_output):
  14489. Moved to cli/cli-interp.c.
  14490. (pop_output_files): Don't save outputs here.
  14491. (make_logging_output): New function.
  14492. (handle_redirections): Don't build tee nor save previous outputs
  14493. here.
  14494. * interps.c (current_interp_set_logging): Change prototype.
  14495. Assume there's always a set_logging_proc method installed.
  14496. * interps.h (interp_set_logging_ftype): Change prototype.
  14497. (current_interp_set_logging): Change prototype and adjust comment.
  14498. * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to
  14499. use make_logging_output.
  14500. * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging.
  14501. 2017-02-02 Pedro Alves <palves@redhat.com>
  14502. * cli/cli-logging.c (maybe_warn_already_logging): New factored out
  14503. from ...
  14504. (set_logging_overwrite): ... here.
  14505. (logging_no_redirect_file): Delete.
  14506. (set_logging_redirect): Don't handle redirection on the fly.
  14507. Instead warn that "logging off" / "logging on" is necessary.
  14508. (pop_output_files): Delete references to logging_no_redirect_file.
  14509. (show_logging_command): Always speak in terms of what will happen
  14510. once logging is reenabled.
  14511. 2017-02-02 Pedro Alves <palves@redhat.com>
  14512. * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment.
  14513. 2017-02-02 Pedro Alves <palves@redhat.com>
  14514. * disasm.c (gdb_pretty_print_insn): Rename to ...
  14515. (gdb_pretty_print_disassembler::pretty_print_insn): ... this.
  14516. Remove gdbarch parameter. Adapt to clear the object's buffers
  14517. instead of allocating new buffers, and to print using the object's
  14518. gdb_disassembler instead of calling gdb_print_insn.
  14519. (dump_insns): Use gdb_pretty_print_disassembler.
  14520. * disasm.h (gdb_pretty_print_insn): Delete declaration.
  14521. (gdb_pretty_print_disassembler): New class.
  14522. * record-btrace.c (btrace_insn_history): Use
  14523. gdb_pretty_print_disassembler.
  14524. 2017-02-02 Pedro Alves <palves@redhat.com>
  14525. * ada-lang.c (type_as_string): Use string_file.
  14526. * ada-valprint.c (ada_print_floating): Use string_file.
  14527. * ada-varobj.c (ada_varobj_scalar_image)
  14528. (ada_varobj_get_value_image): Use string_file.
  14529. * aix-thread.c (aix_thread_extra_thread_info): Use string_file.
  14530. * arm-tdep.c (_initialize_arm_tdep): Use string_printf.
  14531. * breakpoint.c (update_inserted_breakpoint_locations)
  14532. (insert_breakpoint_locations, reattach_breakpoints)
  14533. (print_breakpoint_location, print_one_detail_ranged_breakpoint)
  14534. (print_it_watchpoint): Use string_file.
  14535. (save_breakpoints): Use stdio_file.
  14536. * c-exp.y (oper): Use string_file.
  14537. * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and
  14538. tee_file.
  14539. (pop_output_files): Use delete.
  14540. (handle_redirections): Use stdio_file and tee_file.
  14541. * cli/cli-setshow.c (do_show_command): Use string_file.
  14542. * compile/compile-c-support.c (c_compute_program): Use
  14543. string_file.
  14544. * compile/compile-c-symbols.c (generate_vla_size): Take a
  14545. 'string_file &' instead of a 'ui_file *'.
  14546. (generate_c_for_for_one_variable): Take a 'string_file &' instead
  14547. of a 'ui_file *'. Use string_file.
  14548. (generate_c_for_variable_locations): Take a 'string_file &'
  14549. instead of a 'ui_file *'.
  14550. * compile/compile-internal.h (generate_c_for_for_one_variable):
  14551. Take a 'string_file &' instead of a 'ui_file *'.
  14552. * compile/compile-loc2c.c (push, pushf, unary, binary)
  14553. (print_label, pushf_register_address, pushf_register)
  14554. (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a
  14555. 'ui_file *'. Adjust.
  14556. * compile/compile.c (compile_to_object): Use string_file.
  14557. * compile/compile.h (compile_dwarf_expr_to_c)
  14558. (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a
  14559. 'ui_file *'.
  14560. * cp-support.c (inspect_type): Use string_file and obstack_copy0.
  14561. (replace_typedefs_qualified_name): Use string_file and
  14562. obstack_copy0.
  14563. * disasm.c (gdb_pretty_print_insn): Use string_file.
  14564. (gdb_disassembly): Adjust reference the null_stream global.
  14565. (do_ui_file_delete): Delete.
  14566. (gdb_insn_length): Use null_stream.
  14567. * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file.
  14568. * dwarf2loc.c (dwarf2_compile_property_to_c)
  14569. (locexpr_generate_c_location, loclist_generate_c_location): Take a
  14570. 'string_file &' instead of a 'ui_file *'.
  14571. * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise.
  14572. * dwarf2read.c (do_ui_file_peek_last): Delete.
  14573. (dwarf2_compute_name): Use string_file.
  14574. * event-top.c (gdb_setup_readline): Use stdio_file.
  14575. * gdbarch.sh (verify_gdbarch): Use string_file.
  14576. * gdbtypes.c (safe_parse_type): Use null_stream.
  14577. * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
  14578. string_file.
  14579. * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a
  14580. 'string_file *' instead of a 'ui_file *'.
  14581. (gdbscm_arch_disassemble): Use string_file.
  14582. * guile/scm-frame.c (frscm_print_frame_smob): Use string_file.
  14583. * guile/scm-ports.c (class ioscm_file_port): Now a class that
  14584. inherits from ui_file.
  14585. (ioscm_file_port_delete, ioscm_file_port_rewind)
  14586. (ioscm_file_port_put): Delete.
  14587. (ioscm_file_port_write): Rename to ...
  14588. (ioscm_file_port::write): ... this. Remove file_port_magic
  14589. checks.
  14590. (ioscm_file_port_new): Delete.
  14591. (ioscm_with_output_to_port_worker): Use ioscm_file_port and
  14592. ui_file_up.
  14593. * guile/scm-type.c (tyscm_type_name): Use string_file.
  14594. * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
  14595. Use string_file.
  14596. * infcmd.c (print_return_value_1): Use string_file.
  14597. * infrun.c (print_target_wait_results): Use string_file.
  14598. * language.c (add_language): Use string_file.
  14599. * location.c (explicit_to_string_internal): Use string_file.
  14600. * main.c (captured_main_1): Use null_file.
  14601. * maint.c (maintenance_print_architecture): Use stdio_file.
  14602. * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file.
  14603. * mi/mi-common.h (struct mi_interp) <out, err, log, targ,
  14604. event_channel>: Change type to mi_console_file pointer.
  14605. * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush)
  14606. (mi_console_file_delete): Delete.
  14607. (struct mi_console_file): Delete.
  14608. (mi_console_file_magic): Delete.
  14609. (mi_console_file_new): Delete.
  14610. (mi_console_file::mi_console_file): New.
  14611. (mi_console_file_delete): Delete.
  14612. (mi_console_file_fputs): Delete.
  14613. (mi_console_file::write): New.
  14614. (mi_console_raw_packet): Delete.
  14615. (mi_console_file::flush): New.
  14616. (mi_console_file_flush): Delete.
  14617. (mi_console_set_raw): Rename to ...
  14618. (mi_console_file::set_raw): ... this.
  14619. * mi/mi-console.h (class mi_console_file): New class.
  14620. (mi_console_file_new, mi_console_set_raw): Delete.
  14621. * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file.
  14622. (mi_set_logging): Use delete and tee_file. Adjust.
  14623. * mi/mi-main.c (output_register): Use string_file.
  14624. (mi_cmd_data_evaluate_expression): Use string_file.
  14625. (mi_cmd_data_read_memory): Use string_file.
  14626. (mi_cmd_execute, print_variable_or_computed): Use string_file.
  14627. * mi/mi-out.c (mi_ui_out::main_stream): New.
  14628. (mi_ui_out::rewind): Use main_stream and
  14629. string_file.
  14630. (mi_ui_out::put): Use main_stream and string_file.
  14631. (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
  14632. Allocate a 'string_file' instead.
  14633. (mi_out_new): Don't allocate a mem_fileopen stream here.
  14634. * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
  14635. (mi_ui_out::main_stream): Declare method.
  14636. * printcmd.c (eval_command): Use string_file.
  14637. * psymtab.c (maintenance_print_psymbols): Use stdio_file.
  14638. * python/py-arch.c (archpy_disassemble): Use string_file.
  14639. * python/py-breakpoint.c (bppy_get_commands): Use string_file.
  14640. * python/py-frame.c (frapy_str): Use string_file.
  14641. * python/py-framefilter.c (py_print_type, py_print_single_arg):
  14642. Use string_file.
  14643. * python/py-type.c (typy_str): Use string_file.
  14644. * python/py-unwind.c (unwind_infopy_str): Use string_file.
  14645. * python/py-value.c (valpy_str): Use string_file.
  14646. * record-btrace.c (btrace_insn_history): Use string_file.
  14647. * regcache.c (regcache_print): Use stdio_file.
  14648. * reggroups.c (maintenance_print_reggroups): Use stdio_file.
  14649. * remote.c (escape_buffer): Use string_file.
  14650. * rust-lang.c (rust_get_disr_info): Use string_file.
  14651. * serial.c (serial_open_ops_1): Use stdio_file.
  14652. (do_serial_close): Use delete.
  14653. * stack.c (print_frame_arg): Use string_file.
  14654. (print_frame_args): Remove local mem_fileopen stream, not used.
  14655. (print_frame): Use string_file.
  14656. * symmisc.c (maintenance_print_symbols): Use stdio_file.
  14657. * symtab.h (struct symbol_computed_ops) <generate_c_location>:
  14658. Take a 'string_file *' instead of a 'ui_file *'.
  14659. * top.c (new_ui): Use stdio_file and stderr_file.
  14660. (free_ui): Use delete.
  14661. (execute_command_to_string): Use string_file.
  14662. (quit_confirm): Use string_file.
  14663. * tracepoint.c (collection_list::append_exp): Use string_file.
  14664. * tui/tui-disasm.c (tui_disassemble): Use string_file.
  14665. * tui/tui-file.c: Don't include "ui-file.h".
  14666. (enum streamtype, struct tui_stream): Delete.
  14667. (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen)
  14668. (tui_file_isatty, tui_file_rewind, tui_file_put): Delete.
  14669. (tui_file::tui_file): New method.
  14670. (tui_file_fputs): Delete.
  14671. (tui_file_get_strbuf): Delete.
  14672. (tui_file::puts): New method.
  14673. (tui_file_adjust_strbuf): Delete.
  14674. (tui_file_flush): Delete.
  14675. (tui_file::flush): New method.
  14676. * tui/tui-file.h: Tweak intro comment.
  14677. Include ui-file.h.
  14678. (tui_fileopen, tui_sfileopen, tui_file_get_strbuf)
  14679. (tui_file_adjust_strbuf): Delete declarations.
  14680. (class tui_file): New class.
  14681. * tui/tui-io.c (tui_initialize_io): Use tui_file.
  14682. * tui/tui-regs.c (tui_restore_gdbout): Use delete.
  14683. (tui_register_format): Use string_stream.
  14684. * tui/tui-stack.c (tui_make_status_line): Use string_file.
  14685. (tui_get_function_from_frame): Use string_file.
  14686. * typeprint.c (type_to_string): Use string_file.
  14687. * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete.
  14688. (null_stream): New global.
  14689. (ui_file_delete): Delete.
  14690. (ui_file::ui_file): New.
  14691. (null_file_isatty): Delete.
  14692. (ui_file::~ui_file): New.
  14693. (null_file_rewind): Delete.
  14694. (ui_file::printf): New.
  14695. (null_file_put): Delete.
  14696. (null_file_flush): Delete.
  14697. (ui_file::putstr): New.
  14698. (null_file_write): Delete.
  14699. (ui_file::putstrn): New.
  14700. (null_file_read): Delete.
  14701. (ui_file::putc): New.
  14702. (null_file_fputs): Delete.
  14703. (null_file_write_async_safe): Delete.
  14704. (ui_file::vprintf): New.
  14705. (null_file_delete): Delete.
  14706. (null_file::write): New.
  14707. (null_file_fseek): Delete.
  14708. (null_file::puts): New.
  14709. (ui_file_data): Delete.
  14710. (null_file::write_async_safe): New.
  14711. (gdb_flush, ui_file_isatty): Adjust.
  14712. (ui_file_put, ui_file_rewind): Delete.
  14713. (ui_file_write): Adjust.
  14714. (ui_file_write_for_put): Delete.
  14715. (ui_file_write_async_safe, ui_file_read): Adjust.
  14716. (ui_file_fseek): Delete.
  14717. (fputs_unfiltered): Adjust.
  14718. (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind)
  14719. (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe)
  14720. (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek)
  14721. (set_ui_file_data): Delete.
  14722. (string_file::~string_file, string_file::write)
  14723. (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup)
  14724. (do_ui_file_as_string, ui_file_as_string): Delete.
  14725. (do_ui_file_obsavestring, ui_file_obsavestring): Delete.
  14726. (struct mem_file): Delete.
  14727. (mem_file_new): Delete.
  14728. (stdio_file::stdio_file): New.
  14729. (mem_file_delete): Delete.
  14730. (stdio_file::stdio_file): New.
  14731. (mem_fileopen): Delete.
  14732. (stdio_file::~stdio_file): New.
  14733. (mem_file_rewind): Delete.
  14734. (stdio_file::set_stream): New.
  14735. (mem_file_put): Delete.
  14736. (stdio_file::open): New.
  14737. (mem_file_write): Delete.
  14738. (stdio_file_magic, struct stdio_file): Delete.
  14739. (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete.
  14740. (stdio_file::flush): New.
  14741. (stdio_file_read): Rename to ...
  14742. (stdio_file::read): ... this. Adjust.
  14743. (stdio_file_write): Rename to ...
  14744. (stdio_file::write): ... this. Adjust.
  14745. (stdio_file_write_async_safe): Rename to ...
  14746. (stdio_file::write_async_safe) ... this. Adjust.
  14747. (stdio_file_fputs): Rename to ...
  14748. (stdio_file::puts) ... this. Adjust.
  14749. (stdio_file_isatty): Delete.
  14750. (stdio_file_fseek): Delete.
  14751. (stdio_file::isatty): New.
  14752. (stderr_file_write): Rename to ...
  14753. (stderr_file::write) ... this. Adjust.
  14754. (stderr_file_fputs): Rename to ...
  14755. (stderr_file::puts) ... this. Adjust.
  14756. (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete.
  14757. (stderr_file::stderr_file): New.
  14758. (tee_file_magic): Delete.
  14759. (struct tee_file): Delete.
  14760. (tee_file::tee_file): New.
  14761. (tee_file_new): Delete.
  14762. (tee_file::~tee_file): New.
  14763. (tee_file_delete): Delete.
  14764. (tee_file_flush): Rename to ...
  14765. (tee_file::flush): ... this. Adjust.
  14766. (tee_file_write): Rename to ...
  14767. (tee_file::write): ... this. Adjust.
  14768. (tee_file::write_async_safe): New.
  14769. (tee_file_fputs): Rename to ...
  14770. (tee_file::puts): ... this. Adjust.
  14771. (tee_file_isatty): Rename to ...
  14772. (tee_file::isatty): ... this. Adjust.
  14773. * ui-file.h (struct obstack, struct ui_file): Don't
  14774. forward-declare.
  14775. (ui_file_new, ui_file_flush_ftype, set_ui_file_flush)
  14776. (ui_file_write_ftype)
  14777. (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs)
  14778. (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe)
  14779. (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype)
  14780. (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind)
  14781. (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put)
  14782. (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype)
  14783. (set_ui_file_fseek): Delete.
  14784. (ui_file_data, ui_file_delete, ui_file_rewind)
  14785. (struct ui_file): New.
  14786. (ui_file_up): New.
  14787. (class null_file): New.
  14788. (null_stream): Declare.
  14789. (ui_file_write_for_put, ui_file_put): Delete.
  14790. (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring):
  14791. Delete.
  14792. (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen)
  14793. (gdb_fopen, tee_file_new): Delete.
  14794. (struct string_file): New.
  14795. (struct stdio_file): New.
  14796. (stdio_file_up): New.
  14797. (struct stderr_file): New.
  14798. (class tee_file): New.
  14799. * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead
  14800. of a 'ui_file *'. Adjust.
  14801. * ui-out.h (class ui_out) <field_stream>: Likewise.
  14802. * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete)
  14803. (null_stream): Delete.
  14804. (error_stream): Take a 'string_file &' instead of a 'ui_file *'.
  14805. Adjust.
  14806. * utils.h (struct ui_file): Delete forward declaration..
  14807. (make_cleanup_ui_file_delete, null_stream): Delete declarations.
  14808. (error_stream): Take a 'string_file &' instead of a
  14809. 'ui_file *'.
  14810. * varobj.c (varobj_value_get_print_value): Use string_file.
  14811. * xtensa-tdep.c (xtensa_verify_config): Use string_file.
  14812. * gdbarch.c: Regenerate.
  14813. 2017-02-02 Pedro Alves <palves@redhat.com>
  14814. * disasm.c (gdb_disassembler::pretty_print_insn): Rename to...
  14815. (gdb_pretty_print_insn): ... this. Now a free function. Add back
  14816. a 'gdbarch' parameter. Allocate a mem_fileopen stream here.
  14817. Adjust to call gdb_print_insn instead of
  14818. gdb_disassembler::print_insn.
  14819. (dump_insns, do_mixed_source_and_assembly_deprecated)
  14820. (do_mixed_source_and_assembly, do_assembly_only): Add back a
  14821. 'gdbarch' parameter. Remove gdb_disassembler parameter.
  14822. (gdb_disassembly): Don't allocate a gdb_disassembler here.
  14823. * disasm.h (gdb_disassembler::pretty_print_insn): Delete
  14824. declaration.
  14825. (gdb_pretty_print_insn): Re-add declaration.
  14826. * record-btrace.c (btrace_insn_history): Don't allocate a
  14827. gdb_disassembler here. Adjust to call gdb_pretty_print_insn.
  14828. 2017-02-01 Simon Marchi <simon.marchi@polymtl.ca>
  14829. * disasm.h (gdb_disassembly): Remove file_string parameter.
  14830. * disasm.c (gdb_disassembly): Likewise.
  14831. * cli/cli-cmds.c (print_disassembly): Adapt.
  14832. * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
  14833. * stack.c (do_gdb_disassembly): Likewise.
  14834. 2017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
  14835. * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For
  14836. DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian
  14837. targets. And if the implicit value is longer than needed, extract
  14838. the first bytes instead of the "least significant" ones.
  14839. 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
  14840. * btrace.c (btrace_enable): Do not call btrace_add_pc for
  14841. BTRACE_FORMAT_PT or if can_access_registers_ptid returns false.
  14842. (btrace_fetch): Assert can_access_registers_ptid.
  14843. * record-btrace.c (require_btrace_thread, record_btrace_info): Call
  14844. validate_registers_access.
  14845. 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
  14846. * gdbthread.h (can_access_registers_ptid): New.
  14847. * thread.c (can_access_registers_ptid): New.
  14848. 2017-02-01 Pedro Alves <palves@redhat.com>
  14849. * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length.
  14850. 2017-01-31 Pedro Alves <palves@redhat.com>
  14851. * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified):
  14852. Fix typos.
  14853. 2017-01-31 Pedro Alves <palves@redhat.com>
  14854. * stack.c (print_frame_args): Remove local mem_fileopen stream,
  14855. not used.
  14856. 2017-01-31 Pedro Alves <palves@redhat.com>
  14857. * varobj.c (varobj_value_get_print_value): Remove xstrdup call.
  14858. 2017-01-31 Pedro Alves <palves@redhat.com>
  14859. * common/scoped_restore.h
  14860. (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and
  14861. change the value's parameter type to T2.
  14862. (make_scoped_restore): Likewise.
  14863. 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
  14864. Richard Henderson <rth@redhat.com>
  14865. * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define.
  14866. (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE
  14867. GS_BASE for older kernels.
  14868. (amd64_linux_store_inferior_registers): Add case to store FS_BASE
  14869. GS_BASE for older kernels.
  14870. * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE
  14871. and GS_BASE to the offset table.
  14872. (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the
  14873. system register group.
  14874. * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case
  14875. for older kernels.
  14876. * amd64-tdep.c (amd64_init_abi): Add segment registers for the
  14877. amd64 ABI.
  14878. * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and
  14879. AMD64_GSBASE_REGNUM.
  14880. (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1.
  14881. * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat)
  14882. (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat)
  14883. (x32-avx-linux.dat, x32-avx512-linux.dat): Add
  14884. i386/64bit-segments.xml in those rules.
  14885. * features/i386/64bit-segments.xml: New file.
  14886. * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml.
  14887. * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml.
  14888. * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml.
  14889. * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml.
  14890. * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml.
  14891. * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml.
  14892. * features/i386/amd64-linux.xml: Add 64bit-segments.xml.
  14893. * features/i386/amd64-avx-linux.c: Regenerated.
  14894. * features/i386/amd64-avx-mpx-linux.c: Regenerated.
  14895. * features/i386/amd64-avx-mpx.c: Regenerated.
  14896. * features/i386/amd64-avx512-linux.c: Regenerated.
  14897. * features/i386/amd64-linux.c: Regenerated.
  14898. * features/i386/amd64-mpx-linux.c: Regenerated.
  14899. * features/i386/i386-avx-mpx-linux.c: Regenerated.
  14900. * features/i386/i386-avx-mpx.c: Regenerated.
  14901. * features/i386/x32-avx-linux.c: Regenerated.
  14902. * features/i386/x32-avx512-linux.c: Regenerated.
  14903. * regformats/i386/amd64-avx-linux.dat: Regenerated.
  14904. * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated.
  14905. * regformats/i386/amd64-avx512-linux.dat: Regenerated.
  14906. * regformats/i386/amd64-linux.dat: Regenerated.
  14907. * regformats/i386/amd64-mpx-linux.dat: Regenerated.
  14908. * regformats/i386/x32-avx-linux.dat: Regenerated.
  14909. * regformats/i386/x32-avx512-linux.dat: Regenerated.
  14910. * regformats/i386/x32-linux.dat: Regenerated.
  14911. 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
  14912. * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM):
  14913. Set to AMD64_NUM_REGS.
  14914. 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
  14915. * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic
  14916. that checks validity of a register number.
  14917. 2017-01-27 Kees Cook <keescook@google.com>
  14918. * arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call
  14919. fetch_fpregs if target has fpa registers.
  14920. (arm_linux_store_inferior_registers): Call store_fpregs if target
  14921. has fpa registers.
  14922. 2017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com>
  14923. * cris-tdep.c (cris_gdbarch_init): Remove check for
  14924. info.byte_order and force it to BFD_ENDIAN_LITTLE.
  14925. 2017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
  14926. * corelow.c (get_core_register_section): Check for regset
  14927. existence before checking for REGSET_VARIABLE_SIZE.
  14928. 2017-01-26 Yao Qi <yao.qi@linaro.org>
  14929. Pedro Alves <palves@redhat.com>
  14930. PR gdb/20939
  14931. * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't
  14932. call memory_error, save memaddr instead.
  14933. (gdb_disassembler::print_insn): If gdbarch_print_insn returns
  14934. negative, cal memory_error.
  14935. * disasm.h (gdb_disassembler) <m_err_memaddr>: New field.
  14936. 2017-01-26 Yao Qi <yao.qi@linaro.org>
  14937. * disasm-selftests.c (memory_error_test): New function.
  14938. (_initialize_disasm_selftests): Register memory_error_test.
  14939. 2017-01-26 Yao Qi <yao.qi@linaro.org>
  14940. * Makefile.in (SFILES): Add disasm-selftests.c and
  14941. selftest-arch.c.
  14942. (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o.
  14943. * disasm-selftests.c: New file.
  14944. * selftest-arch.c: New file.
  14945. * selftest-arch.h: New file.
  14946. 2017-01-26 Yao Qi <yao.qi@linaro.org>
  14947. * mep-tdep.c (mep_gdb_print_insn): Set info->arch
  14948. to bfd_arch_mep. Don't return 0 if section is not
  14949. found. Call print_insn_mep.
  14950. 2017-01-26 Pedro Alves <palves@redhat.com>
  14951. Yao Qi <yao.qi@linaro.org>
  14952. * arm-tdep.c: Include "disasm.h".
  14953. (gdb_print_insn_arm): Update code to get gdbarch.
  14954. * disasm.c (dis_asm_read_memory): Change it to
  14955. gdb_disassembler::dis_asm_read_memory.
  14956. (dis_asm_memory_error): Likewise.
  14957. (dis_asm_print_address): Likewise.
  14958. (gdb_pretty_print_insn): Change it to
  14959. gdb_disassembler::pretty_print_insn.
  14960. (dump_insns): Add one argument gdb_disassemlber. All
  14961. callers updated.
  14962. (do_mixed_source_and_assembly_deprecated): Likewise.
  14963. (do_mixed_source_and_assembly): Likewise.
  14964. (do_assembly_only): Likewise.
  14965. (gdb_disassembler::gdb_disassembler): New.
  14966. (gdb_disassembler::print_insn): New.
  14967. * disasm.h (class gdb_disassembler): New.
  14968. (gdb_pretty_print_insn): Remove declaration.
  14969. (gdb_disassemble_info): Likewise.
  14970. * guile/scm-disasm.c (class gdbscm_disassembler): New.
  14971. (gdbscm_disasm_read_memory_worker): Update.
  14972. (gdbscm_disasm_read_memory): Update.
  14973. (gdbscm_disasm_memory_error): Remove.
  14974. (gdbscm_disasm_print_address): Remove.
  14975. (gdbscm_disassembler::gdbscm_disassembler): New.
  14976. (gdbscm_print_insn_from_port): Update.
  14977. * mips-tdep.c: Include disasm.h.
  14978. (gdb_print_insn_mips): Update code to get gdbarch.
  14979. * record-btrace.c (btrace_insn_history): Update.
  14980. * spu-tdep.c: Include disasm.h.
  14981. (struct spu_dis_asm_data): Remove.
  14982. (struct spu_dis_asm_info): New.
  14983. (spu_dis_asm_print_address): Use spu_dis_asm_info to get
  14984. SPU id.
  14985. (gdb_print_insn_spu): Cast disassemble_info to
  14986. spu_dis_asm_info.
  14987. 2017-01-26 Yao Qi <yao.qi@linaro.org>
  14988. * disasm.c (do_ui_file_delete): Delete.
  14989. (gdb_insn_length): Move code creating stream to ...
  14990. * utils.c (null_stream): ... here. New function.
  14991. * utils.h (null_stream): Declare.
  14992. 2017-01-23 Simon Marchi <simon.marchi@polymtl.ca>
  14993. * python/py-inferior.c (find_thread_object): Return directly
  14994. from the loop. Remove "found" variable.
  14995. 2017-01-21 Joel Brobecker <brobecker@adacore.com>
  14996. GDB 7.12.1 released.
  14997. 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
  14998. * python/py-function.c (fnpy_call): Reorder declarations to have
  14999. the gdbpy_enter object declared first.
  15000. * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise.
  15001. 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
  15002. PR python/21068
  15003. * python/python-internal.h (PyMem_RawMalloc): Define for
  15004. Python < 3.4.
  15005. * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use
  15006. PyMem_RawMalloc instead of PyMem_Malloc.
  15007. 2017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com>
  15008. Luis Machado <lgustavo@codesourcery.com>
  15009. * NEWS (New commands): Mention flash-erase.
  15010. (New MI commands): Mention target-flash-erase.
  15011. * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI
  15012. command.
  15013. * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration.
  15014. * mi/mi-main.c (mi_cmd_target_flash_erase): New function.
  15015. * target.c (flash_erase_command): New function.
  15016. (initialize_targets): Add new flash-erase command.
  15017. * target.h (flash_erase_command): New declaration.
  15018. 2017-01-20 Joel Brobecker <brobecker@adacore.com>
  15019. * nat/linux-ptrace.c: Only include <sys/procfs.h> if
  15020. HAVE_SYS_PROCFS_H is defined.
  15021. 2017-01-18 Alan Hayward <alan.hayward@arm.com>
  15022. * remote.c (struct cached_reg): Change data into a pointer.
  15023. * (stop_reply_dtr): Free data pointers before deleting vector.
  15024. (process_stop_reply): Likewise.
  15025. (remote_parse_stop_reply): Allocate space for data
  15026. 2017-01-18 Alan Hayward <alan.hayward@arm.com>
  15027. * amd64-tdep.c (amd64_pseudo_register_read_value): remove
  15028. MAX_REGISTER_SIZE.
  15029. (amd64_pseudo_register_read_value): Likewise.
  15030. * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE.
  15031. (store_register_using_P): Likewise.
  15032. * regcache.c (regcache_xfer_part): Likewise.
  15033. 2017-01-16 Ivo Raisr <ivo.raisr@oracle.com>
  15034. Split real and pseudo registers.
  15035. * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro.
  15036. (sparc32_pseudo_regnum): New enum.
  15037. * sparc64-tdep.h (sparc64_pseudo_regnum): New enum.
  15038. * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro.
  15039. (SPARC32_CP0_REGISTERS): New macro.
  15040. (sparc32_pseudo_register_name): New function.
  15041. (sparc32_register_name): Use sparc32_pseudo_register_name.
  15042. (sparc32_pseudo_register_type): New function.
  15043. (sparc32_register_type): Use sparc32_pseudo_register_type.
  15044. (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle
  15045. pseudo register numbers.
  15046. * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro.
  15047. (SPARC64_CP0_REGISTERS): New macro.
  15048. (sparc64_pseudo_register_name): New function.
  15049. (sparc64_register_name): Use sparc64_pseudo_register_name.
  15050. (sparc64_pseudo_register_type): New function.
  15051. (sparc64_register_type): Use sparc64_pseudo_register_type.
  15052. (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle
  15053. pseudo register numbers.
  15054. (sparc64_store_floating_fields, sparc64_extract_floating_fields,
  15055. sparc64_store_arguments): Handle pseudo register numbers.
  15056. 2017-01-13 Yao Qi <yao.qi@linaro.org>
  15057. * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro.
  15058. (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug
  15059. output.
  15060. (getpkt_or_notif_sane_1): Likewise.
  15061. 2017-01-13 Yao Qi <yao.qi@linaro.org>
  15062. * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead
  15063. of CC. Pass "-x c++-header" instead of "-x c".
  15064. 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
  15065. * remote.c (remote_can_async_p): Update comment.
  15066. 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
  15067. * linux-nat.c (linux_nat_can_async_p): Update comment.
  15068. 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
  15069. * serial.c (serial_open): Forget about "pc" and "lpt" serial interface.
  15070. 2017-01-11 Simon Marchi <simon.marchi@ericsson.com>
  15071. * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment.
  15072. 2017-01-10 Tom Tromey <tom@tromey.com>
  15073. * python/py-type.c (typy_legacy_template_argument): Update.
  15074. * cp-support.h (struct demangle_parse_info) (demangle_parse_info,
  15075. ~demangle_parse_info): Declare new members.
  15076. (cp_demangled_name_to_comp): Return unique_ptr.
  15077. (cp_demangled_name_parse_free)
  15078. (make_cleanup_cp_demangled_name_parse_free)
  15079. (cp_new_demangle_parse_info): Remove.
  15080. * cp-support.c (do_demangled_name_parse_free_cleanup)
  15081. (make_cleanup_cp_demangled_name_parse_free): Remove.
  15082. (inspect_type, cp_canonicalize_string_full)
  15083. (cp_canonicalize_string): Update.
  15084. (mangled_name_to_comp): Change return type.
  15085. (cp_class_name_from_physname, method_name_from_physname)
  15086. (cp_func_name, cp_remove_params): Update.
  15087. * cp-name-parser.y (demangle_parse_info): New constructor, from
  15088. cp_new_demangle_parse_info.
  15089. (~demangle_parse_info): New destructor, from
  15090. cp_demangled_name_parse_free.
  15091. (cp_merge_demangle_parse_infos): Update.
  15092. (cp_demangled_name_to_comp): Change return type.
  15093. 2017-01-10 Tom Tromey <tom@tromey.com>
  15094. * top.c (prevent_dont_repeat): Change return type.
  15095. * python/python.c (execute_gdb_command): Use std::string.
  15096. Update.
  15097. * guile/guile.c (gdbscm_execute_gdb_command): Update.
  15098. * command.h (prevent_dont_repeat): Change return type.
  15099. * breakpoint.c (bpstat_do_actions_1): Update.
  15100. 2017-01-10 Tom Tromey <tom@tromey.com>
  15101. * value.h (scoped_value_mark::~scoped_value_mark): Call
  15102. free_to_mark.
  15103. (scoped_value_mark::free_to_mark): New method.
  15104. * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
  15105. scoped_value_mark.
  15106. 2017-01-10 Tom Tromey <tom@tromey.com>
  15107. * python/py-value.c (valpy_dereference, valpy_referenced_value)
  15108. (valpy_reference_value, valpy_const_value, valpy_get_address)
  15109. (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
  15110. (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative)
  15111. (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark.
  15112. * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
  15113. scoped_value_mark.
  15114. * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark.
  15115. * value.h (scoped_value_mark): New class.
  15116. 2017-01-10 Tom Tromey <tom@tromey.com>
  15117. * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder.
  15118. * psympriv.h (make_cleanup_discard_psymtabs): Don't declare.
  15119. * psymtab.c (discard_psymtabs_upto): Remove.
  15120. (make_cleanup_discard_psymtabs): Remove.
  15121. (struct psymtab_state): Remove.
  15122. 2017-01-10 Tom Tromey <tom@tromey.com>
  15123. * record-full.c (record_full_save_cleanups): Remove.
  15124. (record_full_save): Use gdb::unlinker.
  15125. * gcore.c (do_bfd_delete_cleanup): Remove.
  15126. (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove
  15127. cleanups.
  15128. * dwarf2read.c (unlink_if_set): Remove.
  15129. (write_psymtabs_to_index): Use gdb::unlinker.
  15130. * common/gdb_unlinker.h: New file.
  15131. 2017-01-10 Tom Tromey <tom@tromey.com>
  15132. * windows-tdep.c (windows_xfer_shared_library): Update.
  15133. * windows-nat.c (windows_make_so): Update.
  15134. * utils.h (make_cleanup_bfd_unref): Remove.
  15135. * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove.
  15136. * symfile.h (symfile_bfd_open)
  15137. (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr.
  15138. * symfile.c (read_symbols, symbol_file_add)
  15139. (separate_debug_file_exists): Update.
  15140. (symfile_bfd_open): Return gdb_bfd_ref_ptr.
  15141. (generic_load, reread_symbols): Update.
  15142. * symfile-mem.c (symbol_file_add_from_memory): Update.
  15143. * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr.
  15144. (spu_symbol_file_add_from_memory): Update.
  15145. * solist.h (struct target_so_ops) <bfd_open>: Return
  15146. gdb_bfd_ref_ptr.
  15147. (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr.
  15148. * solib.c (solib_bfd_fopen, solib_bfd_open): Return
  15149. gdb_bfd_ref_ptr.
  15150. (solib_map_sections, reload_shared_libraries_1): Update.
  15151. * solib-svr4.c (enable_break): Update.
  15152. * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr.
  15153. * solib-frv.c (enable_break2): Update.
  15154. * solib-dsbt.c (enable_break): Update.
  15155. * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return
  15156. gdb_bfd_ref_ptr.
  15157. (darwin_solib_get_all_image_info_addr_at_init): Update.
  15158. (darwin_bfd_open): Return gdb_bfd_ref_ptr.
  15159. * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr.
  15160. * record-full.c (record_full_save): Update.
  15161. * python/py-objfile.c (objfpy_add_separate_debug_file): Update.
  15162. * procfs.c (insert_dbx_link_bpt_in_file): Update.
  15163. * minidebug.c (find_separate_debug_file_in_section): Return
  15164. gdb_bfd_ref_ptr.
  15165. * machoread.c (macho_add_oso_symfile): Change abfd to
  15166. gdb_bfd_ref_ptr.
  15167. (macho_symfile_read_all_oso): Update.
  15168. (macho_check_dsym): Return gdb_bfd_ref_ptr.
  15169. (macho_symfile_read): Update.
  15170. * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr.
  15171. (jit_bfd_try_read_symtab): Update.
  15172. * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
  15173. (gdb_bfd_openw, gdb_bfd_openr_iovec)
  15174. (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
  15175. gdb_bfd_ref_ptr.
  15176. (gdb_bfd_ref_policy): New struct.
  15177. (gdb_bfd_ref_ptr): New typedef.
  15178. * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
  15179. (gdb_bfd_openw, gdb_bfd_openr_iovec)
  15180. (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
  15181. gdb_bfd_ref_ptr.
  15182. * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr.
  15183. * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr.
  15184. (gcore_command): Update.
  15185. * exec.c (exec_file_attach): Update.
  15186. * elfread.c (elf_symfile_read): Update.
  15187. * dwarf2read.c (dwarf2_get_dwz_file): Update.
  15188. (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr.
  15189. (open_and_init_dwo_file): Update.
  15190. (open_dwp_file): Return gdb_bfd_ref_ptr.
  15191. (open_and_init_dwp_file): Update.
  15192. * corelow.c (core_open): Update.
  15193. * compile/compile-object-load.c (compile_object_load): Update.
  15194. * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator.
  15195. * coffread.c (coff_symfile_read): Update.
  15196. * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return
  15197. gdb_bfd_ref_ptr. Rename.
  15198. (dump_bfd_file, restore_command): Update.
  15199. * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
  15200. * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
  15201. (find_separate_debug_file_by_buildid): Update.
  15202. 2017-01-10 Tom Tromey <tom@tromey.com>
  15203. * common/gdb_ref_ptr.h: New file.
  15204. * python/py-ref.h (struct gdbpy_ref_policy): New.
  15205. (gdbpy_ref): Now a typedef.
  15206. 2017-01-10 Tom Tromey <tom@tromey.com>
  15207. * utils.h (make_cleanup_htab_delete): Don't declare.
  15208. * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete):
  15209. Remove.
  15210. * linespec.c (decode_compound_collector): Add constructor,
  15211. destructor.
  15212. (lookup_prefix_sym): Remove cleanup.
  15213. (symtab_collector): Add constructor, destructor.
  15214. (collect_symtabs_from_filename): Remove cleanup.
  15215. * disasm.c (do_mixed_source_and_assembly): Use htab_up.
  15216. * compile/compile-c-symbols.c (generate_c_for_variable_locations):
  15217. Use htab_up.
  15218. * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up.
  15219. * dwarf2read.c (dw2_expand_symtabs_matching)
  15220. (dw2_map_symbol_filenames, dwarf_decode_macros)
  15221. (write_psymtabs_to_index): Use htab_up.
  15222. * dwarf2loc.c (func_verify_no_selftailcall)
  15223. (call_site_find_chain_1, func_verify_no_selftailcall)
  15224. (chain_candidate, call_site_find_chain_1): Use std::unordered_set,
  15225. std::vector, gdb::unique_xmalloc_ptr.
  15226. (call_sitep): Remove typedef.
  15227. (dwarf2_locexpr_baton_eval): Remove unused variable.
  15228. 2017-01-10 Tom Tromey <tom@tromey.com>
  15229. * python/python-internal.h (make_cleanup_py_decref)
  15230. (make_cleanup_py_xdecref): Don't declare.
  15231. * python/py-utils.c (py_decref, make_cleanup_py_decref)
  15232. (py_xdecref, make_cleanup_py_xdecref): Remove.
  15233. 2017-01-10 Tom Tromey <tom@tromey.com>
  15234. * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref.
  15235. (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref.
  15236. 2017-01-10 Tom Tromey <tom@tromey.com>
  15237. * python/py-framefilter.c (enumerate_args): Use gdbpy_ref.
  15238. 2017-01-10 Tom Tromey <tom@tromey.com>
  15239. * python/py-utils.c (unicode_to_encoded_string)
  15240. (python_string_to_target_string)
  15241. (python_string_to_target_python_string)
  15242. (python_string_to_host_string, gdbpy_obj_to_string)
  15243. (get_addr_from_python): Use gdbpy_ref.
  15244. 2017-01-10 Tom Tromey <tom@tromey.com>
  15245. * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use
  15246. gdbpy_ref.
  15247. 2017-01-10 Tom Tromey <tom@tromey.com>
  15248. * python/python.c (eval_python_command, gdbpy_decode_line)
  15249. (gdbpy_run_events, gdbpy_start_type_printers)
  15250. (gdbpy_apply_type_printers): Use gdbpy_ref.
  15251. 2017-01-10 Tom Tromey <tom@tromey.com>
  15252. * python/py-param.c (get_doc_string, compute_enum_values): Use
  15253. gdbpy_ref.
  15254. 2017-01-10 Tom Tromey <tom@tromey.com>
  15255. * python/py-inferior.c (find_thread_object, build_inferior_list):
  15256. Use gdbpy_ref.
  15257. 2017-01-10 Tom Tromey <tom@tromey.com>
  15258. * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
  15259. 2017-01-10 Tom Tromey <tom@tromey.com>
  15260. * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
  15261. gdbpy_ref.
  15262. 2017-01-10 Tom Tromey <tom@tromey.com>
  15263. * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
  15264. extra incref.
  15265. (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
  15266. Use gdbpy_ref.
  15267. 2017-01-10 Tom Tromey <tom@tromey.com>
  15268. * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
  15269. gdbpy_ref.
  15270. 2017-01-10 Tom Tromey <tom@tromey.com>
  15271. * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
  15272. decref results of PyArg_ParseTupleAndKeywords.
  15273. 2017-01-10 Tom Tromey <tom@tromey.com>
  15274. * python/python.c (python_run_simple_file): Use
  15275. unique_xmalloc_ptr, gdbpy_ref.
  15276. 2017-01-10 Tom Tromey <tom@tromey.com>
  15277. * python/py-prettyprint.c (print_stack_unless_memory_error)
  15278. (print_string_repr, print_children): Use gdbpy_ref.
  15279. (dummy_python_frame): New class.
  15280. (dummy_python_frame::dummy_python_frame): Rename from
  15281. push_dummy_python_frame.
  15282. (py_restore_tstate): Remove.
  15283. 2017-01-10 Tom Tromey <tom@tromey.com>
  15284. * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
  15285. 2017-01-10 Tom Tromey <tom@tromey.com>
  15286. * python/python.c (ensure_python_env, restore_python_env):
  15287. Remove.
  15288. * python/python-internal.h (ensure_python_env): Don't declare.
  15289. * varobj.h (varobj_ensure_python_env): Don't declare.
  15290. * varobj.c (varobj_ensure_python_env): Remove.
  15291. 2017-01-10 Tom Tromey <tom@tromey.com>
  15292. * varobj.c (varobj_value_get_print_value): Use
  15293. gdbpy_enter_varobj.
  15294. 2017-01-10 Tom Tromey <tom@tromey.com>
  15295. * python/py-prettyprint.c (print_string_repr, print_children):
  15296. Update.
  15297. * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
  15298. of "encoding".
  15299. * varobj.c (varobj_value_get_print_value): Update.
  15300. * python/python-internal.h (gdbpy_extract_lazy_string): Update.
  15301. 2017-01-10 Tom Tromey <tom@tromey.com>
  15302. * varobj.c (varobj_get_display_hint)
  15303. (dynamic_varobj_has_child_method, install_new_value_visualizer)
  15304. (varobj_set_visualizer, free_variable): Use
  15305. gdbpy_enter_varobj.
  15306. 2017-01-10 Tom Tromey <tom@tromey.com>
  15307. * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
  15308. (do_finish_initialization): New function. Use gdbpy_ref.
  15309. (gdbpy_finish_initialization): Use gdbpy_enter. Call
  15310. do_finish_initialization.
  15311. 2017-01-10 Tom Tromey <tom@tromey.com>
  15312. * python/py-param.c (get_set_value, get_show_value): Use
  15313. gdbpy_enter, gdbpy_ref.
  15314. 2017-01-10 Tom Tromey <tom@tromey.com>
  15315. * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
  15316. 2017-01-10 Tom Tromey <tom@tromey.com>
  15317. * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
  15318. 2017-01-10 Tom Tromey <tom@tromey.com>
  15319. * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
  15320. Use gdbpy_enter_varobj.
  15321. 2017-01-10 Tom Tromey <tom@tromey.com>
  15322. * varobj.c (gdbpy_enter_varobj): New constructor.
  15323. * python/python-internal.h (gdbpy_enter_varobj): New class.
  15324. * python/py-varobj.c (py_varobj_get_iterator): Use
  15325. gdbpy_enter_varobj.
  15326. 2017-01-10 Tom Tromey <tom@tromey.com>
  15327. * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
  15328. gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
  15329. (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
  15330. (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
  15331. unique_xmalloc_ptr.
  15332. (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
  15333. 2017-01-10 Tom Tromey <tom@tromey.com>
  15334. * python/py-xmethods.c (invoke_match_method): Use
  15335. gdbpy_ref.
  15336. 2017-01-10 Tom Tromey <tom@tromey.com>
  15337. * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
  15338. gdbpy_enter, gdbpy_ref.
  15339. 2017-01-10 Tom Tromey <tom@tromey.com>
  15340. * python/python.c (python_interactive_command): Use gdbpy_enter.
  15341. 2017-01-10 Tom Tromey <tom@tromey.com>
  15342. * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
  15343. gdbpy_ref.
  15344. 2017-01-10 Tom Tromey <tom@tromey.com>
  15345. * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
  15346. gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
  15347. 2017-01-10 Tom Tromey <tom@tromey.com>
  15348. * utils.h (htab_deleter): New struct.
  15349. (htab_up): New typedef.
  15350. * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
  15351. gdbpy_enter, gdbpy_ref, htab_up.
  15352. 2017-01-10 Tom Tromey <tom@tromey.com>
  15353. * python/py-unwind.c (pending_frame_invalidate): Remove.
  15354. (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
  15355. 2017-01-10 Tom Tromey <tom@tromey.com>
  15356. * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
  15357. (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
  15358. 2017-01-10 Tom Tromey <tom@tromey.com>
  15359. * python/py-type.c (save_objfile_types): Use gdbpy_enter.
  15360. 2017-01-10 Tom Tromey <tom@tromey.com>
  15361. * python/python.c (gdbpy_eval_from_control_command)
  15362. (gdbpy_source_script, gdbpy_run_events)
  15363. (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
  15364. (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
  15365. gdbpy_enter.
  15366. 2017-01-10 Tom Tromey <tom@tromey.com>
  15367. * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
  15368. 2017-01-10 Tom Tromey <tom@tromey.com>
  15369. * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
  15370. 2017-01-10 Tom Tromey <tom@tromey.com>
  15371. * python/py-inferior.c (python_on_normal_stop, python_on_resume)
  15372. (python_on_inferior_call_pre, python_on_inferior_call_post)
  15373. (python_on_memory_change, python_on_register_change)
  15374. (python_inferior_exit, python_new_objfile, add_thread_object)
  15375. (delete_thread_object, py_free_inferior): Use gdbpy_enter.
  15376. 2017-01-10 Tom Tromey <tom@tromey.com>
  15377. * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
  15378. (bpfinishpy_handle_exit): Use gdbpy_enter.
  15379. 2017-01-10 Tom Tromey <tom@tromey.com>
  15380. * python/py-cmd.c (cmdpy_destroyer)
  15381. (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
  15382. gdbpy_enter.
  15383. 2017-01-10 Tom Tromey <tom@tromey.com>
  15384. * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
  15385. gdbpy_enter.
  15386. (gdbpy_breakpoint_has_cond): Likewise.
  15387. 2017-01-10 Tom Tromey <tom@tromey.com>
  15388. * python/python.c (gdbpy_enter): New constructor.
  15389. (~gdbpy_enter): New destructor.
  15390. (restore_python_env, ensure_python_env): Rewrite.
  15391. * python/python-internal.h (gdbpy_enter): New class.
  15392. 2017-01-10 Tom Tromey <tom@tromey.com>
  15393. * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
  15394. 2017-01-10 Tom Tromey <tom@tromey.com>
  15395. * python/py-value.c (value_has_field, get_field_flag)
  15396. (get_field_type, valpy_getitem, convert_value_from_python): Use
  15397. gdbpy_ref.
  15398. 2017-01-10 Tom Tromey <tom@tromey.com>
  15399. * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
  15400. gdbpy_ref.
  15401. 2017-01-10 Tom Tromey <tom@tromey.com>
  15402. * python/py-prettyprint.c (search_pp_list)
  15403. (find_pretty_printer_from_objfiles)
  15404. (find_pretty_printer_from_progspace)
  15405. (find_pretty_printer_from_gdb, find_pretty_printer)
  15406. (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
  15407. gdbpy_ref.
  15408. 2017-01-10 Tom Tromey <tom@tromey.com>
  15409. * python/py-param.c (call_doc_function): Use gdbpy_ref.
  15410. 2017-01-10 Tom Tromey <tom@tromey.com>
  15411. * python/py-linetable.c (build_line_table_tuple_from_pcs)
  15412. (ltpy_get_all_source_lines): Use gdbpy_ref.
  15413. 2017-01-10 Tom Tromey <tom@tromey.com>
  15414. * python/py-framefilter.c (extract_sym, extract_value)
  15415. (get_py_iter_from_func, bootstrap_python_frame_filters): Use
  15416. gdbpy_ref.
  15417. 2017-01-10 Tom Tromey <tom@tromey.com>
  15418. * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
  15419. 2017-01-10 Tom Tromey <tom@tromey.com>
  15420. * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
  15421. 2017-01-10 Tom Tromey <tom@tromey.com>
  15422. * python/py-function.c (convert_values_to_python, fnpy_init): Use
  15423. gdbpy_ref.
  15424. 2017-01-10 Tom Tromey <tom@tromey.com>
  15425. * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
  15426. 2017-01-10 Tom Tromey <tom@tromey.com>
  15427. * python/py-type.c (convert_field, make_fielditem, typy_fields)
  15428. (typy_range): Use gdbpy_ref.
  15429. 2017-01-10 Tom Tromey <tom@tromey.com>
  15430. * python/py-threadevent.c (create_thread_event_object): Use
  15431. gdbpy_ref.
  15432. * python/py-stopevent.c (create_stop_event_object): Simplify.
  15433. (emit_stop_event): Use gdbpy_ref.
  15434. * python/py-signalevent.c (create_signal_event_object): Use
  15435. gdbpy_ref.
  15436. * python/py-newobjfileevent.c (create_new_objfile_event_object)
  15437. (emit_new_objfile_event, create_clear_objfiles_event_object)
  15438. (emit_clear_objfiles_event): Use gdbpy_ref.
  15439. * python/py-infevents.c (create_inferior_call_event_object)
  15440. (create_register_changed_event_object)
  15441. (create_memory_changed_event_object, emit_inferior_call_event)
  15442. (emit_memory_changed_event, emit_register_changed_event): Use
  15443. gdbpy_ref.
  15444. * python/py-exitedevent.c (create_exited_event_object)
  15445. (emit_exited_event): Use gdbpy_ref.
  15446. * python/py-event.h (evpy_emit_event): Remove
  15447. CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
  15448. * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
  15449. * python/py-continueevent.c (emit_continue_event): Use
  15450. gdbpy_ref.
  15451. * python/py-breakpoint.c (gdbpy_breakpoint_created)
  15452. (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
  15453. gdbpy_ref.
  15454. * python/py-bpevent.c (create_breakpoint_event_object): Use
  15455. gdbpy_ref.
  15456. 2017-01-10 Tom Tromey <tom@tromey.com>
  15457. * python/py-ref.h: New file.
  15458. 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
  15459. * cli-out.c (cli_ui_out::do_redirect): Change return type to
  15460. void.
  15461. * cli-out.h (cli_ui_out::do_redirect): Likewise.
  15462. * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
  15463. * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
  15464. * ui-out.c (ui_out::redirect): Likewise.
  15465. * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
  15466. * cli/cli-logging.c (set_logging_redirect): Update call site of
  15467. ui_out::redirect.
  15468. (handle_redirections): Likewise.
  15469. * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
  15470. * top.c (execute_command_to_string): Likewise.
  15471. * utils.c (do_ui_out_redirect_pop): Likewise.
  15472. 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
  15473. * stack.c (_initialize_stack): Update "frame" command help message.
  15474. 2017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
  15475. * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
  15476. 2017-01-06 Yao Qi <yao.qi@linaro.org>
  15477. * x86-linux-nat.h: Include gdb_proc_service.h.
  15478. 2017-01-06 Yao Qi <yao.qi@linaro.org>
  15479. * ser-base.h: Include serial.h.
  15480. 2017-01-06 Yao Qi <yao.qi@linaro.org>
  15481. * ppc-linux-tdep.h: Include ppc-tdep.h.
  15482. 2017-01-06 Yao Qi <yao.qi@linaro.org>
  15483. * nat/amd64-linux-siginfo.h: Include signal.h.
  15484. 2017-01-06 Yao Qi <yao.qi@linaro.org>
  15485. * nat/aarch64-linux-hw-point.h: Include break-common.h.
  15486. 2017-01-06 Yao Qi <yao.qi@linaro.org>
  15487. * mi/mi-parse.h: Include mi-cmds.h.
  15488. 2017-01-06 Yao Qi <yao.qi@linaro.org>
  15489. * inf-loop.c: Don't include "target.h".
  15490. * inf-loop.h: Include it here.
  15491. 2017-01-06 Yao Qi <yao.qi@linaro.org>
  15492. * dfp.h: Include "dboulest.h" and "expression.h".
  15493. 2017-01-06 Yao Qi <yao.qi@linaro.org>
  15494. * ax-gdb.h: Include "ax.h".
  15495. 2017-01-06 Yao Qi <yao.qi@linaro.org>
  15496. * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
  15497. with nat/gdb_ptrace.h.
  15498. 2017-01-05 Yao Qi <yao.qi@linaro.org>
  15499. * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
  15500. new line.
  15501. (mips64_fbsd_sigframe_init): Likewise.
  15502. 2017-01-04 John Baldwin <jhb@FreeBSD.org>
  15503. * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
  15504. GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
  15505. 2017-01-04 John Baldwin <jhb@FreeBSD.org>
  15506. * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
  15507. * NEWS: Mention new FreeBSD/mips native configuration.
  15508. * config/mips/fbsd.mh: New file.
  15509. * configure.host: Add mips*-*-freebsd*.
  15510. * mips-fbsd-nat.c: New file.
  15511. 2017-01-04 John Baldwin <jhb@FreeBSD.org>
  15512. * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
  15513. (ALLDEPFILES): Add mips-fbsd-tdep.c.
  15514. * NEWS: Mention new FreeBSD/mips target.
  15515. * configure.tgt: Add mips*-*-freebsd*.
  15516. * mips-fbsd-tdep.c: New file.
  15517. * mips-fbsd-tdep.h: New file.
  15518. 2017-01-04 Yao Qi <yao.qi@linaro.org>
  15519. * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
  15520. use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
  15521. 2017-01-01 Joel Brobecker <brobecker@adacore.com>
  15522. Update copyright year range in all GDB files.
  15523. 2017-01-01 Joel Brobecker <brobecker@adacore.com>
  15524. * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
  15525. For older changes see ChangeLog-2016.
  15526. Local Variables:
  15527. mode: change-log
  15528. left-margin: 8
  15529. fill-column: 74
  15530. version-control: never
  15531. coding: utf-8
  15532. End: