ChangeLog-2019 627 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396
  1. 2019-12-30 Tom Tromey <tom@tromey.com>
  2. * tui/tui-win.c (tui_border_mode_translate)
  3. (tui_border_kind_translate_vline, tui_border_kind_translate_hline)
  4. (tui_border_kind_translate_ulcorner)
  5. (tui_border_kind_translate_urcorner)
  6. (tui_border_kind_translate_llcorner)
  7. (tui_border_kind_translate_lrcorner, tui_active_border_mode)
  8. (tui_border_mode, tui_border_kind): Now static.
  9. 2019-12-30 Tom Tromey <tom@tromey.com>
  10. * tui/tui-interp.c (tui_start_enabled): Now bool.
  11. (_initialize_tui_interp): Update.
  12. * tui/tui-hooks.c (tui_refreshing_registers): Now bool.
  13. (tui_register_changed)
  14. (tui_refresh_frame_and_register_information): Update.
  15. * tui/tui-win.c (tui_update_variables): Return bool.
  16. * tui/tui-win.h (tui_update_variables): Return bool.
  17. * tui/tui.c (tui_get_command_dimension): Return bool.
  18. * tui/tui.h (tui_get_command_dimension): Return bool.
  19. 2019-12-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
  20. * buildsym.c (buildsym_compunit::record_line): Do no longer ignore
  21. line 65535.
  22. 2019-12-27 Tom Tromey <tom@tromey.com>
  23. * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
  24. commented-out code.
  25. * tui/tui.c: Remove #if 0 code.
  26. 2019-12-27 Tom Tromey <tom@tromey.com>
  27. * cli/cli-cmds.c (print_disassembly): Reorder "if".
  28. 2019-12-27 Tom Tromey <tom@tromey.com>
  29. * tui/tui.c (tui_active): Now bool.
  30. (tui_finish_init): Likewise.
  31. (tui_enable): Update.
  32. (tui_disable): Update.
  33. (tui_is_window_visible): Update.
  34. * tui/tui.h (tui_active): Now bool.
  35. 2019-12-27 Tom Tromey <tom@tromey.com>
  36. * tui/tui-source.c (tui_source_window::maybe_update): Update.
  37. * tui/tui-regs.c (tui_data_window::display_registers_from):
  38. Update.
  39. * tui/tui-layout.c (tui_gen_win_info::resize): Update.
  40. * tui/tui-data.h (struct tui_gen_win_info) <viewport_height>:
  41. Remove.
  42. * tui/tui-command.c (tui_cmd_window::resize): Update.
  43. 2019-12-26 Christian Biesinger <cbiesinger@google.com>
  44. * ada-lang.c (ada_decode_symbol): Update.
  45. * buildsym.c (add_symbol_to_list): Update.
  46. * coffread.c (process_coff_symbol): Update.
  47. * ctfread.c (ctf_add_enum_member_cb): Update.
  48. (new_symbol): Update.
  49. (ctf_add_var_cb): Update.
  50. * dwarf2read.c (fixup_go_packaging): Update.
  51. (dwarf2_compute_name): Update.
  52. (new_symbol): Update.
  53. * jit.c (finalize_symtab): Update.
  54. * language.c (language_alloc_type_symbol): Update.
  55. * mdebugread.c (new_symbol): Update.
  56. * minsyms.c (minimal_symbol_reader::record_full): Update.
  57. (minimal_symbol_reader::install): Update.
  58. * psymtab.c (print_partial_symbols): Update.
  59. (psymbol_hash): Update.
  60. (psymbol_compare): Update.
  61. (add_psymbol_to_bcache): Update.
  62. (maintenance_check_psymtabs): Update.
  63. * stabsread.c (define_symbol): Update.
  64. * symtab.c (symbol_set_names): Rename to...
  65. (general_symbol_info::compute_and_set_names): ...this.
  66. (general_symbol_info::natural_name): Update.
  67. (general_symbol_info::search_name): Update.
  68. (fixup_section): Update.
  69. * symtab.h (struct general_symbol_info) <name>: Rename to...
  70. <m_name>: ...this.
  71. <compute_and_set_names>: Rename from...
  72. (symbol_set_names): ...this.
  73. (SYMBOL_SET_NAMES): Remove.
  74. (struct symbol) <ctor>: Update.
  75. 2019-12-26 Christian Biesinger <cbiesinger@google.com>
  76. * NEWS: Mention that multithreaded symbol loading is now on by
  77. default.
  78. 2019-12-26 Ruslan Kabatsayev <b7.10110111@gmail.com>
  79. * dwarf2read.c (is_valid_DW_AT_defaulted)
  80. (is_valid_DW_AT_calling_convention_for_type)
  81. (is_valid_DW_AT_calling_convention_for_subroutine): Fix printing
  82. ULONGEST variables on x86-32.
  83. 2019-12-21 George Barrett <bob@bob131.so>
  84. * solib-svr4.c (svr4_handle_solib_event): Add fallback link
  85. namespace test for when the debug struct isn't available.
  86. 2019-12-21 Eli Zaretskii <eliz@gnu.org>
  87. * top.c (print_gdb_configuration): Print "--with-xxhash" or
  88. "--without-xxhash" according to HAVE_LIBXXHASH.
  89. 2019-12-20 Weimin Pan <weimin.pan@oracle.com>
  90. * ctfread.c (ctf_file_key): Change type to objfile_key.
  91. (struct ctf_context): Remove typedef.
  92. (get_objfile_text_range): Use ANOFFSET to get text base.
  93. 2019-12-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  94. * dwarf2read.c (is_valid_DW_AT_calling_convention_for_subroutine):
  95. New function.
  96. (read_subroutine_type): Validate the parsed
  97. DW_AT_calling_convention value before assigning it to a
  98. subroutine's calling_convention attribute.
  99. * gdbtypes.h (struct func_type) <calling_convention>: Use
  100. an enum bitfield as its type, instead of plain unsigned.
  101. 2019-12-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  102. PR gdb/25054
  103. * infcall.c (call_function_by_hand_dummy): Update the argument-
  104. passing section for call-by-value parameters.
  105. (struct destructor_info): New struct.
  106. (call_destructors): New auxiliary function.
  107. 2019-12-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  108. * gnu-v3-abi.c (enum definition_style): New enum type.
  109. (get_def_style): New function.
  110. (is_user_provided_def): New function.
  111. (is_implicit_def): New function.
  112. (is_copy_or_move_constructor_type): New function.
  113. (is_copy_constructor_type): New function.
  114. (is_move_constructor_type): New function.
  115. (gnuv3_pass_by_reference): Collect language_pass_by_ref_info
  116. for a given type.
  117. 2019-12-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  118. * language.h (struct language_pass_by_ref_info): New struct.
  119. (struct language_defn)<la_pass_by_reference>: Change the signature
  120. to return a language_pass_by_ref_info instead of an int.
  121. (language_pass_by_reference): Ditto.
  122. (default_pass_by_reference): Ditto.
  123. Adjust the users listed below.
  124. * arch-utils.c (default_return_in_first_hidden_param_p):
  125. Update.
  126. * cp-abi.c (cp_pass_by_reference): Update.
  127. * cp-abi.h (cp_pass_by_reference): Update declaration.
  128. (struct cp_abi_ops)<pass_by_reference>: Update.
  129. * gnu-v3-abi.c (gnuv3_pass_by_reference): Update.
  130. * infcall.c (call_function_by_hand_dummy): Update.
  131. * language.c (language_pass_by_reference): Update.
  132. (default_pass_by_reference): Update.
  133. * tic6x-tdep.c (tic6x_return_value): Update.
  134. 2019-12-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  135. * dwarf2read.c (dwarf2_add_member_fn): Read the DW_AT_defaulted
  136. and DW_AT_deleted attributes of a function.
  137. (read_structure_type): Read the DW_AT_calling_convention attribute
  138. of a type.
  139. (is_valid_DW_AT_defaulted): New function.
  140. (is_valid_DW_AT_calling_convention_for_type): New function.
  141. * gdbtypes.h: Include dwarf2.h.
  142. (struct fn_field)<defaulted>: New field to store the
  143. DW_AT_defaulted attribute.
  144. (struct fn_field)<is_deleted>: New field to store the
  145. DW_AT_deleted attribute.
  146. (struct cplus_struct_type)<calling_convention>: New field to store
  147. the DW_AT_calling_convention attribute.
  148. (TYPE_FN_FIELD_DEFAULTED): New macro.
  149. (TYPE_FN_FIELD_DELETED): New macro.
  150. (TYPE_CPLUS_CALLING_CONVENTION): New macro.
  151. * gdbtypes.c (dump_fn_fieldlists): Update for the changes made
  152. to the .h file.
  153. (print_cplus_stuff): Likewise.
  154. 2019-12-20 Tom Tromey <tom@tromey.com>
  155. * tui/tui.c (tui_show_source): Remove.
  156. * tui/tui.h (tui_show_source): Don't declare.
  157. * tui/tui-out.c (tui_ui_out::do_field_string): Don't call
  158. tui_show_source.
  159. 2019-12-20 Tom Tromey <tom@tromey.com>
  160. * tui/tui-stack.h (tui_show_frame_info): Return bool.
  161. * tui/tui-stack.c (tui_show_frame_info): Return bool.
  162. * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
  163. Update.
  164. 2019-12-20 Tom Tromey <tom@tromey.com>
  165. PR tui/18932:
  166. * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
  167. Rename parameters. Handle the not-from-stack-frame case.
  168. (from_stack, from_source_symtab): New globals.
  169. (tui_before_prompt, tui_normal_stop): Update.
  170. (tui_context_changed, tui_symtab_changed): New functions.
  171. (tui_attach_detach_observers): Attach new observers.
  172. 2019-12-20 Tom Tromey <tom@tromey.com>
  173. * source.c (struct current_source_location) <set, symtab, line>:
  174. New methods.
  175. <m_symtab, m_line>: Rename. Now private.
  176. (get_current_source_symtab_and_line)
  177. (set_default_source_symtab_and_line)
  178. (set_current_source_symtab_and_line)
  179. (clear_current_source_symtab_and_line, select_source_symtab)
  180. (info_source_command, print_source_lines_base)
  181. (info_line_command, search_command_helper): Update.
  182. * observable.h (current_source_symtab_and_line_changed): Declare
  183. observable.
  184. * observable.c (current_source_symtab_and_line_changed): Define
  185. observable.
  186. 2019-12-20 Tom Tromey <tom@tromey.com>
  187. * tui/tui-hooks.c (tui_before_prompt): Change parameter to bool.
  188. (tui_before_prompt, tui_normal_stop): Update.
  189. 2019-12-20 Tom Tromey <tom@tromey.com>
  190. * tui/tui-winsource.c
  191. (tui_source_window_base::update_source_window_as_is): Don't call
  192. set_current_source_symtab_and_line.
  193. 2019-12-20 Tom Tromey <tom@tromey.com>
  194. * tui/tui-stack.h (struct tui_locator_window) <set_locator_info>:
  195. Take a symtab_and_line.
  196. * tui/tui-stack.c (tui_locator_window::set_locator_info): Take a
  197. symtab_and_line.
  198. (tui_show_frame_info): Update.
  199. 2019-12-20 Tom Tromey <tom@tromey.com>
  200. * tui/tui-stack.c (tui_show_frame_info): Don't call
  201. update_exec_info.
  202. 2019-12-20 Tom Tromey <tom@tromey.com>
  203. * tui/tui.c (tui_enable): Call tui_display_main.
  204. 2019-12-20 Tom Tromey <tom@tromey.com>
  205. * tui/tui-disasm.c (tui_get_begin_asm_address): Use
  206. get_current_source_symtab_and_line, and main_name.
  207. 2019-12-20 Tom Tromey <tom@tromey.com>
  208. * tui/tui.c (tui_show_source): Update.
  209. * tui/tui-winsource.h (tui_update_source_windows_with_line): Update.
  210. * tui/tui-winsource.c (tui_update_source_windows_with_line): Take
  211. a symtab_symbol_info, not a separate symtab and line. Simplify.
  212. 2019-12-20 Tom Tromey <tom@tromey.com>
  213. * tui/tui-winsource.c (tui_update_source_windows_with_addr):
  214. Simplify.
  215. 2019-12-20 Tom Tromey <tom@tromey.com>
  216. * tui/tui-winsource.h (struct tui_source_window_base)
  217. <set_contents, update_source_window_as_is, update_source_window>:
  218. Take a sal, not a separate symtab and tui_line_or_address.
  219. * tui/tui-winsource.c (tui_source_window_base::update_source_window)
  220. (tui_source_window_base::update_source_window_as_is): Take a sal,
  221. not a separate symtab and tui_line_or_address.
  222. (tui_update_source_windows_with_addr)
  223. (tui_update_source_windows_with_line)
  224. (tui_source_window_base::rerender)
  225. (tui_source_window_base::refill): Update.
  226. * tui/tui-source.h (struct tui_source_window) <set_contents>: Take
  227. a sal, not a separate symtab and tui_line_or_address.
  228. * tui/tui-source.c (tui_source_window::set_contents): Take a sal,
  229. not a separate symtab and tui_line_or_address.
  230. (tui_source_window::maybe_update): Update.
  231. * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>: Take
  232. a sal, not a separate symtab and tui_line_or_address.
  233. * tui/tui-disasm.c (tui_disasm_window::set_contents): Take a sal,
  234. not a separate symtab and tui_line_or_address.
  235. (tui_disasm_window::do_scroll_vertical)
  236. (tui_disasm_window::maybe_update): Update.
  237. 2019-12-20 Tom Tromey <tom@tromey.com>
  238. * tui/tui-winsource.c (tui_source_window_base::refill): Use
  239. start_line_or_addr.
  240. * tui/tui-source.c (tui_source_window::do_scroll_vertical): Use
  241. start_line_or_addr.
  242. * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
  243. start_line_or_addr.
  244. 2019-12-20 Tom Tromey <tom@tromey.com>
  245. * tui/tui-winsource.h (struct tui_source_window_base)
  246. <set_contents>: Return bool.
  247. * tui/tui-winsource.c
  248. (tui_source_window_base::update_source_window_as_is): Update.
  249. * tui/tui-source.h (struct tui_source_window) <set_contents>:
  250. Return bool.
  251. * tui/tui-source.c (tui_source_window::set_contents): Return
  252. bool. Simplify.
  253. * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
  254. Return bool.
  255. * tui/tui-disasm.c (tui_disasm_window::set_contents): Return
  256. bool.
  257. 2019-12-20 Tom Tromey <tom@tromey.com>
  258. * tui/tui-winsource.c (tui_update_source_windows_with_addr)
  259. (tui_update_source_windows_with_line): Call update_source_window.
  260. * tui/tui-source.h (struct tui_source_window)
  261. <show_symtab_source>: Don't declare.
  262. * tui/tui-source.c (tui_source_window::show_symtab_source):
  263. Remove.
  264. 2019-12-20 Tom Tromey <tom@tromey.com>
  265. * tui/tui-winsource.c (tui_update_source_windows_with_addr): Call
  266. update_source_window directly.
  267. * tui/tui-disasm.h (tui_show_disassem): Don't declare.
  268. * tui/tui-disasm.c (tui_show_disassem): Remove.
  269. 2019-12-20 Tom Tromey <tom@tromey.com>
  270. * tui/tui-winsource.c
  271. (tui_source_window_base::update_source_window_as_is): Don't switch focus.
  272. * tui/tui-disasm.c (tui_show_disassem): Don't switch focus.
  273. 2019-12-20 Tom Tromey <tom@tromey.com>
  274. * tui/tui-winsource.h (struct tui_source_window_base)
  275. <maybe_update>: Remove line_no and addr parameters.
  276. * tui/tui-stack.c (tui_show_frame_info): Set PC on sal. Update.
  277. * tui/tui-source.h (struct tui_source_window) <maybe_update>:
  278. Update.
  279. * tui/tui-source.c (tui_source_window::maybe_update): Remove
  280. line_no and addr parameters.
  281. * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
  282. Update.
  283. * tui/tui-disasm.c (tui_disasm_window::maybe_update): Remove
  284. line_no and addr parameters.
  285. 2019-12-20 Tom Tromey <tom@tromey.com>
  286. * tui/tui-winsource.c (tui_source_window_base::set_is_exec_point_at)
  287. (tui_source_window_base::update_breakpoint_info): Remove asserts.
  288. 2019-12-20 Tom Tromey <tom@tromey.com>
  289. * tui/tui-winsource.c (tui_update_source_windows_with_addr): Call
  290. tui_show_disassem.
  291. * tui/tui-disasm.h (tui_show_disassem_and_update_source): Don't
  292. declare.
  293. * tui/tui-disasm.c (tui_show_disassem_and_update_source): Remove.
  294. 2019-12-20 Tom Tromey <tom@tromey.com>
  295. * tui/tui.h (tui_show_source): Remove parameters.
  296. * tui/tui.c (tui_show_source): Remove parameters.
  297. * tui/tui-out.c (tui_ui_out::do_field_string): Update.
  298. 2019-12-20 Tom Tromey <tom@tromey.com>
  299. * tui/tui.c (tui_show_source): Update.
  300. * tui/tui-winsource.c (tui_display_main): Update.
  301. * tui/tui-stack.h (tui_update_locator_fullname): Change parameter
  302. to symtab.
  303. * tui/tui-stack.c (tui_update_locator_fullname): Change parameter
  304. to symtab.
  305. * tui/tui-disasm.c (tui_show_disassem_and_update_source): Update.
  306. 2019-12-20 Tom Tromey <tom@tromey.com>
  307. PR tui/23619:
  308. * tui/tui-io.c (tui_rl_saved_prompt): Remove.
  309. (tui_redisplay_readline): Use rl_display_prompt.
  310. (tui_prep_terminal): Update.
  311. 2019-12-19 Christian Biesinger <cbiesinger@google.com>
  312. * configure: Regenerate.
  313. * configure.ac: Quote variable arguments of test.
  314. * gdbsupport/common.m4: Likewise.
  315. 2019-12-19 Christian Biesinger <cbiesinger@google.com>
  316. * score-tdep.c (score7_analyze_prologue): Pass 2.0 instead of
  317. 2 to pow ().
  318. 2019-12-19 Christian Biesinger <cbiesinger@google.com>
  319. * tui/tui-source.c (tui_source_window::set_contents): Cast argument of
  320. log10 to double to fix Solaris 11 with gcc 5.5.
  321. 2019-12-19 Christian Biesinger <cbiesinger@google.com>
  322. * fbsd-tdep.c (fbsd_info_proc_files_entry): Rename local var
  323. "sun" to "saddr_un".
  324. 2019-12-19 Tom Tromey <tromey@adacore.com>
  325. * ui-out.h (enum class field_kind): Fix comment.
  326. 2019-12-11 Tom Tromey <tromey@adacore.com>
  327. * xml-support.c (xml_fetch_content_from_file): Use FOPEN_RB.
  328. 2019-12-18 Tom Tromey <tromey@adacore.com>
  329. PR build/25268:
  330. * gdbsupport/thread-pool.c (set_thread_name): Expect "int" return
  331. type on macOS. Add comment.
  332. 2019-12-18 Simon Marchi <simon.marchi@efficios.com>
  333. * c-lang.c (c_get_string, asm_language_defn): Remove space
  334. before tab.
  335. 2019-12-18 Tom Tromey <tromey@adacore.com>
  336. PR build/25250:
  337. * ui-out.c (ui_out::vmessage): Update.
  338. * ui-out.h (enum class field_kind) <FIELD_STRING, FIELD_SIGNED>:
  339. Rename.
  340. (string_field): Update.
  341. (signed_field): Update.
  342. 2019-12-18 Simon Marchi <simon.marchi@efficios.com>
  343. * top.c (print_gdb_configuration): Adjust indentation.
  344. 2019-12-17 Christian Biesinger <cbiesinger@google.com>
  345. * bsd-kvm.c: Include gdbsupport/pathstuff.h.
  346. 2019-12-17 Simon Marchi <simon.marchi@polymtl.ca>
  347. * tui/tui-layout.h (class tui_layout_base): Add virtual
  348. destructor.
  349. 2019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
  350. * infcmd.c (prepare_one_step): Step over skipped inline functions.
  351. * infrun.c (inline_frame_is_marked_for_skip): New helper function.
  352. (process_event_stop_test): Keep stepping over skipped inline functions.
  353. 2019-12-16 Simon Marchi <simon.marchi@polymtl.ca>
  354. * jit.c (struct gdb_block) <next>: Remove field.
  355. (struct gdb_symtab) <~gdb_symtab>: Remove.
  356. <blocks>: Change type to std::forward_list<gdb_block>.
  357. (compare_block): Remove.
  358. (jit_block_open_impl): Adjust to std::forward_list. Place the new
  359. block at the beginning, don't mind about sorting.
  360. (finalize_symtab): Adjust to std::forward_list, sort the blocks list
  361. before using it.
  362. 2019-12-16 Simon Marchi <simon.marchi@polymtl.ca>
  363. * jit.c (struct gdb_block): Add constructor, initialize
  364. real_block and next fields.
  365. <name>: Change type to gdb::unique_xmalloc_ptr.
  366. (struct gdb_symtab) <~gdb_symtab>: Free blocks with delete.
  367. (jit_block_open_impl): Allocate gdb_block with new.
  368. (finalize_symtab): Adjust to gdb::unique_xmalloc_ptr.
  369. 2019-12-16 Simon Marchi <simon.marchi@polymtl.ca>
  370. * jit.c: Include forward_list.
  371. (struct gdb_symtab) <next>: Remove field.
  372. (struct gdb_object) <symtabs>: Change type to
  373. std::forward_list<gdb_symtab>.
  374. (jit_object_open_impl): Allocate gdb_object with new.
  375. (jit_symtab_open_impl): Adjust to std::forward_list.
  376. (finalize_symtab): Don't delete symtab.
  377. (jit_object_close_impl): Adjust to std::forward_list. Free
  378. gdb_object with delete.
  379. 2019-12-16 Simon Marchi <simon.marchi@polymtl.ca>
  380. * jit.c (struct gdb_symtab): Add constructor, destructor,
  381. initialize fields.
  382. <linetable>: Change type to unique_xmalloc_ptr.
  383. <file_name>: Change type to std::string.
  384. (jit_symtab_open_impl): Allocate gdb_symtab with new.
  385. (jit_symtab_line_mapping_add_impl): Adjust.
  386. (finalize_symtab): Adjust, call delete on stab.
  387. 2019-12-16 Simon Marchi <simon.marchi@polymtl.ca>
  388. * jit.c (finalize_symtab): Set gdb_block_iter_tmp in loop.
  389. 2019-12-16 Tom Tromey <tromey@adacore.com>
  390. * windows-nat.c (windows_nat_target::attach): Update.
  391. * remote.c (extended_remote_target::attach): Update.
  392. * procfs.c (procfs_target::attach): Update.
  393. * nto-procfs.c (nto_procfs_target::attach): Update.
  394. (nto_procfs_target::create_inferior): Update.
  395. * inf-ptrace.c (inf_ptrace_target::attach): Update.
  396. * gnu-nat.c (gnu_nat_target::attach): Update.
  397. (gnu_nat_target::detach): Update.
  398. * darwin-nat.c (darwin_nat_target::attach): Update.
  399. * corefile.c (get_exec_file): Constify result. Remove extraneous
  400. return.
  401. * bsd-kvm.c (bsd_kvm_target_open): Update.
  402. * gdbsupport/common-inferior.h (get_exec_file): Constify result.
  403. 2019-12-16 Christian Biesinger <cbiesinger@google.com>
  404. * gdbsupport/common-defs.h: Remove workaround for a gnulib bug
  405. (we no longer need to include time.h before pathmax.h)
  406. 2019-12-15 Christian Biesinger <cbiesinger@google.com>
  407. * ada-exp.y (write_ambiguous_var): Update.
  408. * coffread.c (process_coff_symbol): Update.
  409. * ctfread.c (ctf_add_enum_member_cb): Update.
  410. (new_symbol): Update.
  411. * dwarf2read.c (fixup_go_packaging): Update.
  412. (new_symbol): Update.
  413. * language.c (language_alloc_type_symbol): Update.
  414. * mdebugread.c (new_symbol): Update.
  415. * minsyms.c (minimal_symbol_reader::record_full): Update.
  416. * psymtab.c (add_psymbol_to_bcache): Update.
  417. * stabsread.c (define_symbol): Update.
  418. (read_enum_type): Update.
  419. * symtab.c (symbol_set_language): Make this a member function...
  420. (general_symbol_info::set_language): ... here.
  421. * symtab.h (struct general_symbol_info) <set_language>: New function.
  422. (SYMBOL_SET_LANGUAGE): Remove.
  423. (symbol_set_language): Remove.
  424. 2019-12-15 Christian Biesinger <cbiesinger@google.com>
  425. * ada-lang.c (ada_add_block_symbols): Update.
  426. (ada_collect_symbol_completion_matches): Update.
  427. * ax-gdb.c (gen_expr): Update.
  428. * block.c (block_lookup_symbol): Update.
  429. (block_lookup_symbol_primary): Update.
  430. (block_find_symbol): Update.
  431. * cp-namespace.c (cp_lookup_symbol_imports_or_template): Update.
  432. * dbxread.c (process_one_symbol): Update.
  433. * dictionary.c (insert_symbol_hashed): Update.
  434. (collate_pending_symbols_by_language): Update.
  435. (mdict_add_symbol): Update.
  436. * dwarf-index-write.c (write_psymbols): Update.
  437. * dwarf2read.c (fixup_go_packaging): Update.
  438. * findvar.c (read_var_value): Update.
  439. * ft32-tdep.c (ft32_skip_prologue): Update.
  440. * go-lang.c (go_symbol_package_name): Update.
  441. * language.h (scoped_switch_to_sym_language_if_auto::
  442. scoped_switch_to_sym_language_if_auto): Update.
  443. * linespec.c (find_method): Update.
  444. (find_label_symbols_in_block): Update.
  445. * mdebugread.c (parse_symbol): Update.
  446. * mi/mi-cmd-stack.c (list_arg_or_local): Update.
  447. * minsyms.c (add_minsym_to_demangled_hash_table): Update.
  448. (minimal_symbol_reader::install): Update.
  449. * moxie-tdep.c (moxie_skip_prologue): Update.
  450. * parse.c (parse_exp_in_context): Update.
  451. * psymtab.c (psymbol_name_matches): Update.
  452. (match_partial_symbol): Update.
  453. (lookup_partial_symbol): Update.
  454. (psymbol_hash): Update.
  455. (psymbol_compare): Update.
  456. * python/py-framefilter.c (extract_sym): Update.
  457. (py_print_single_arg): Update.
  458. * stabsread.c (define_symbol): Update.
  459. * stack.c (print_frame_arg): Update.
  460. (find_frame_funname): Update.
  461. (info_frame_command_core): Update.
  462. * symfile.c (set_initial_language): Update.
  463. * symtab.c (symbol_set_demangled_name): Update.
  464. (symbol_get_demangled_name): Update.
  465. (symbol_set_language): Update.
  466. (symbol_find_demangled_name): Update.
  467. (symbol_set_names): Update.
  468. (general_symbol_info::natural_name): Update.
  469. (general_symbol_info::demangled_name): Update.
  470. (general_symbol_info::search_name): Update.
  471. (symbol_matches_search_name): Update.
  472. (eq_symbol_entry): Update.
  473. (iterate_over_symbols): Update.
  474. (completion_list_add_symbol): Update.
  475. (completion_list_add_msymbol): Update.
  476. (completion_list_add_fields): Update.
  477. * symtab.h (struct general_symbol_info) <language>: New function.
  478. <language>: Rename to...
  479. <m_language>: ...this.
  480. (SYMBOL_LANGUAGE): Remove.
  481. (MSYMBOL_LANGUAGE): Remove.
  482. (struct symbol) <ctor>: Update.
  483. * xstormy16-tdep.c (xstormy16_skip_prologue): Update.
  484. 2019-12-15 Christian Biesinger <cbiesinger@google.com>
  485. * ada-exp.y (write_ambiguous_var): Call symbol_set_language to
  486. set the language of sym.
  487. * language.c (language_alloc_type_symbol): Likewise.
  488. 2019-12-14 Sergio Durigan Junior <sergiodj@redhat.com>
  489. https://bugzilla.redhat.com/show_bug.cgi?id=1728147
  490. PR gdb/23613
  491. * bsd-kvm.c (bsd_kvm_target_open): Use 'gdb_abspath'.
  492. * corelow.c: Include 'gdbsupport/pathstuff.h'.
  493. (core_target_open): Use 'gdb_abspath'.
  494. * gdbsupport/pathstuff.c (gdb_abspath): Guard against
  495. 'current_directory == NULL' case.
  496. * gdbsupport/pathstuff.h (gdb_abspath): Expand comment and
  497. explain what happens when 'current_directory' is NULL.
  498. * go32-nat.c (go32_nat_target::wait): Check if
  499. 'current_directory' is NULL before call to 'chdir'.
  500. * source.c (add_path): Use 'gdb_abspath'.
  501. * top.c: Include 'gdbsupport/pathstuff.h'.
  502. (init_history): Use 'gdb_abspath'.
  503. (set_history_filename): Likewise.
  504. * tracefile-tfile.c: Include 'gdbsupport/pathstuff.h'.
  505. (tfile_target_open): Use 'gdb_abspath'.
  506. 2019-12-13 Tom Tromey <tromey@adacore.com>
  507. * contrib/ari/gdb_ari.sh: Remove check for multiple calls to
  508. warning or error.
  509. 2019-12-13 Tom Tromey <tromey@adacore.com>
  510. * contrib/ari/gdb_ari.sh: Remove call to "fix" for "long long".
  511. 2019-12-13 Tom Tromey <tromey@adacore.com>
  512. * contrib/ari/gdb_ari.sh: Handle -Wno- prefix.
  513. 2019-12-13 Tom Tromey <tromey@adacore.com>
  514. * contrib/ari/gdb_ari.sh (usage): Use GNU style.
  515. 2019-12-13 Tom Tromey <tromey@adacore.com>
  516. * gdbsupport/common-utils.c (string_printf, string_vprintf)
  517. (string_vappendf): Add ARI comment.
  518. 2019-12-13 Tom Tromey <tromey@adacore.com>
  519. * contrib/ari/gdb_ari.sh: Remove "fix" call for
  520. floatformat_to_double.
  521. * target-float.c (host_float_ops<T>::from_target): Add ARI
  522. comment.
  523. 2019-12-13 Tom Tromey <tromey@adacore.com>
  524. * contrib/ari/gdb_ari.sh: Remove "fix" call for abort.
  525. * utils.c (abort_with_message, dump_core, internal_vproblem): Add
  526. ARI marker to abort.
  527. * event-top.c (handle_sigsegv): Add ARI marker to abort.
  528. 2019-12-13 Tom Tromey <tromey@adacore.com>
  529. * contrib/ari/gdb_ari.sh: Fix floatformat_from_double text.
  530. 2019-12-13 Tom Tromey <tromey@adacore.com>
  531. * contrib/ari/gdb_ari.sh: Remove ATTRIBUTE_UNUSED check.
  532. 2019-12-13 Tom Tromey <tromey@adacore.com>
  533. * contrib/ari/gdb_ari.sh: Remove "boolean" and "var_boolean"
  534. checks.
  535. 2019-12-13 Tom Tromey <tromey@adacore.com>
  536. * gdbsupport/safe-iterator.h (class basic_safe_range) <begin,
  537. end>: No longer "const".
  538. 2019-12-13 Simon Marchi <simon.marchi@polymtl.ca>
  539. * jit.c: Fix indentation, replace spaces with tabs where
  540. applicable.
  541. 2019-12-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
  542. * configure.tgt: Match msp430-*-elf* targets when configuring GDB.
  543. 2019-12-12 Tom Tromey <tom@tromey.com>
  544. * objfiles.h (struct objfile) <partial_symtabs>: Now a
  545. unique_ptr.
  546. 2019-12-12 Tom Tromey <tom@tromey.com>
  547. * progspace.h (objfile_list): New typedef.
  548. (class unwrapping_objfile_iterator)
  549. (struct unwrapping_objfile_range): Newl
  550. (struct program_space) <objfiles_range>: Change type.
  551. <objfiles>: Change return type.
  552. <add_objfile>: Change type of "objfile" parameter.
  553. <objfiles_list>: Now a list of shared_ptr.
  554. * progspace.c (program_space::add_objfile): Change type of
  555. "objfile". Update.
  556. (program_space::remove_objfile): Update.
  557. * objfiles.h (struct objfile) <~objfile>: Make public.
  558. * objfiles.c (objfile::make): Update.
  559. (objfile::unlink): Don't call delete.
  560. 2019-12-12 Tom Tromey <tom@tromey.com>
  561. * symfile.c (symbol_file_clear): Update.
  562. * progspace.h (struct program_space) <free_all_objfiles>: Declare
  563. method.
  564. * progspace.c (program_space::free_all_objfiles): New method.
  565. * objfiles.h (free_all_objfiles): Don't declare.
  566. * objfiles.c (free_all_objfiles): Move to program_space.
  567. 2019-12-12 Tom Tromey <tom@tromey.com>
  568. * progspace.c (program_space::add_objfile)
  569. (program_space::remove_objfile): Update.
  570. (program_space::multi_objfile_p): Remove.
  571. * objfiles.h (struct objfile) <next>: Remove.
  572. * objfiles.c (objfile::objfile): Update.
  573. (put_objfile_before): Update.
  574. (unlink_objfile): Update.
  575. * progspace.h (object_files): Remove.
  576. (struct program_space) <objfiles_head>: Remove.
  577. <objfiles_list>: New member.
  578. <objfiles_range, objfiles_safe_range>: Change type.
  579. (objfiles): Change return type.
  580. (objfiles_safe): Update.
  581. (multi_objfile_p): Rewrite and inline.
  582. (object_files): Remove macro.
  583. 2019-12-12 Tom Tromey <tom@tromey.com>
  584. * gdbsupport/safe-iterator.h (basic_safe_iterator): Simplify. Add
  585. second constructor.
  586. (basic_safe_range): New class.
  587. 2019-12-12 Tom Tromey <tom@tromey.com>
  588. * progspace.c (program_space::multi_objfile_p): New method.
  589. * printcmd.c (info_symbol_command): Update.
  590. * maint.c (maintenance_translate_address): Update.
  591. * objfiles.h (MULTI_OBJFILE_P): Remove.
  592. * progspace.h (struct program_space) <multi_objfile_p>: New
  593. method.
  594. 2019-12-12 Tom Tromey <tom@tromey.com>
  595. * progspace.h (struct program_space) <remove_objfile>: Declare.
  596. * progspace.c (program_space::remove_objfile): New method.
  597. * objfiles.c (unlink_objfile): Remove.
  598. (objfile::unlink): Call remove_objfile.
  599. (objfile): Don't call unlink_objfile.
  600. 2019-12-12 Tom Tromey <tom@tromey.com>
  601. * progspace.h (struct program_space) <add_objfile>: Declare
  602. method.
  603. * progspace.c (program_space::add_objfile): New method.
  604. * objfiles.c (~objfile): Don't unlink objfile.
  605. (put_objfile_before): Remove.
  606. (add_separate_debug_objfile): Don't call put_objfile_before.
  607. (objfile::make): Call add_objfile. Set new_objfiles_available on
  608. the per-program-space data.
  609. 2019-12-12 Tom Tromey <tom@tromey.com>
  610. * symfile.c (syms_from_objfile_1): Use objfile_up.
  611. (syms_from_objfile_1, remove_symbol_file_command): Call unlink
  612. method.
  613. (reread_symbols): Use objfile_up.
  614. * solib.c (update_solib_list, reload_shared_libraries_1): Call
  615. unlink method.
  616. * objfiles.h (struct objfile) <~objfile>: Now private.
  617. <unlink>: New method.
  618. (struct objfile_deleter): New.
  619. (objfile_up): New typedef.
  620. * objfiles.c (objfile::unlink): New method.
  621. (free_objfile_separate_debug, free_all_objfiles)
  622. (objfile_purge_solibs): Use it.
  623. * jit.c (jit_unregister_code): Remove.
  624. (jit_inferior_exit_hook, jit_event_handler): Call unlink on
  625. objfile.
  626. * compile/compile-object-run.c (do_module_cleanup): Call unlink on
  627. objfile.
  628. * compile/compile-object-load.c (compile_object_load): Use
  629. objfile_up.
  630. 2019-12-12 Tom Tromey <tom@tromey.com>
  631. * symfile.c (symbol_file_add_with_addrs): Pass "parent" to
  632. objfile::make.
  633. * objfiles.h (struct objjfile) <make>: No longer inline.
  634. (add_separate_debug_objfile): Don't declare.
  635. * objfiles.c (add_separate_debug_objfile): Now static.
  636. (objfile::make): Move from objfiles.h. Call
  637. add_separate_debug_objfile. Add "parent" parameter.
  638. 2019-12-12 Tom Tromey <tom@tromey.com>
  639. * symfile.c (symbol_file_add_with_addrs): Use objfile::make.
  640. * objfiles.h (struct objfile): Make constructor private.
  641. <make>: New static method.
  642. * jit.c (jit_object_close_impl): Update.
  643. 2019-12-12 Simon Marchi <simon.marchi@polymtl.ca>
  644. * jit.c (jit_reader_try_read_symtab): Replace xmalloc/xfree with
  645. gdb::byte_vector.
  646. 2019-12-12 Tom Tromey <tromey@adacore.com>
  647. * xml-support.c (xml_fetch_content_from_file): Don't call
  648. malloc_failure.
  649. * utils.h (class gdb_argv): Remove malloc_failure comment.
  650. * utils.c (gdb_argv::reset): Don't call malloc_failure.
  651. 2019-12-12 Tom Tromey <tromey@adacore.com>
  652. * Makefile.in (ALL_TARGET_OBS): Add riscv-ravenscar-thread.o.
  653. (HFILES_NO_SRCDIR): Add riscv-ravenscar-thread.h.
  654. (ALLDEPFILES): Add riscv-ravenscar-thread.c.
  655. * configure.tgt (riscv-*-*): Add riscv-ravenscar-thread.o.
  656. * riscv-ravenscar-thread.c: New file.
  657. * riscv-ravenscar-thread.h: New file.
  658. * riscv-tdep.c (riscv_gdbarch_init): Call
  659. register_riscv_ravenscar_ops.
  660. 2019-12-12 Tom Tromey <tromey@adacore.com>
  661. * gdbsupport/thread-pool.c (set_thread_name): Use
  662. ATTRIBUTE_UNUSED.
  663. 2019-12-12 Luis Machado <luis.machado@linaro.org>
  664. * gdbsupport/safe-strerror.c: Don't include diagnostics.h.
  665. (select_strerror_r): Use ATTRIBUTE_UNUSED instead of the diagnostics
  666. macros.
  667. 2019-12-11 Tom Tromey <tom@tromey.com>
  668. * tui/tui-win.c (tui_set_win_height_command): Call
  669. tui_adjust_window_height.
  670. (tui_adjust_win_heights, new_height_ok): Remove.
  671. * tui/tui-layout.h (tui_adjust_window_height): Declare.
  672. * tui/tui-layout.c (tui_adjust_window_height): New function.
  673. 2019-12-11 Tom Tromey <tom@tromey.com>
  674. * tui/tui-win.c (tui_resize_all): Remove code, call
  675. tui_apply_current_layout.
  676. 2019-12-11 Tom Tromey <tom@tromey.com>
  677. * tui/tui-layout.h (tui_apply_current_layout): Declare.
  678. * tui/tui-layout.c (standard_layouts, applied_layout): New
  679. globals.
  680. (tui_apply_current_layout): New function.
  681. (show_layout): Set applied_layout. Call
  682. tui_apply_current_layout.
  683. (show_source_command, show_disasm_command)
  684. (show_source_disasm_command, show_data)
  685. (show_source_or_disasm_and_command): Remove.
  686. (initialize_layouts): New function.
  687. (_initialize_tui_layout): Call initialize_layouts.
  688. 2019-12-11 Tom Tromey <tom@tromey.com>
  689. * tui/tui-layout.h (class tui_layout_base)
  690. (class tui_layout_window, class tui_layout_split): New.
  691. * tui/tui-layout.c (tui_get_window_by_name)
  692. (tui_layout_window::clone, tui_layout_window::apply)
  693. (tui_layout_window::get_sizes, tui_layout_window::add_split)
  694. (tui_layout_split::add_window, tui_layout_split::clone)
  695. (tui_layout_split::get_sizes)
  696. (tui_layout_split::set_weights_from_heights)
  697. (tui_layout_split::adjust_size, tui_layout_split::apply): New
  698. functions.
  699. (tui_layout_split::add_split, tui_layout_split::add_split)
  700. (tui_layout_split::set_weights_from_heights)
  701. (tui_layout_split::set_weights_from_heights): New functions.
  702. 2019-12-11 Tom Tromey <tom@tromey.com>
  703. * tui/tui-wingeneral.c (tui_gen_win_info::make_window): Update.
  704. * tui/tui-win.c (tui_adjust_win_heights, tui_resize_all): Update.
  705. * tui/tui-layout.c (tui_gen_win_info::resize): Update.
  706. * tui/tui-data.h (struct tui_point): Remove.
  707. (struct tui_gen_win_info) <origin>: Remove.
  708. <x, y>: New fields.
  709. * tui/tui-command.c (tui_cmd_window::resize): Update.
  710. 2019-12-11 Tom Tromey <tom@tromey.com>
  711. * tui/tui-stack.h (struct tui_locator_window) <min_height>:
  712. Implement.
  713. * tui/tui-regs.h (struct tui_data_item_window) <min_height>:
  714. Implement.
  715. * tui/tui-data.h (struct tui_gen_win_info) <min_height>: New
  716. method.
  717. (struct tui_win_info) <min_height>: Implement.
  718. 2019-12-11 Tom Tromey <tom@tromey.com>
  719. * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
  720. (struct tui_win_info) <can_box>: Update.
  721. 2019-12-11 Tom Tromey <tom@tromey.com>
  722. * tui/tui-stack.h (struct tui_locator_window) <max_height>: New
  723. method.
  724. * tui/tui-regs.h (struct tui_data_item_window) <max_height>: New
  725. method.
  726. * tui/tui-data.h (struct tui_gen_win_info) <max_height>: New
  727. method.
  728. (struct tui_win_info) <max_height>: Now override.
  729. 2019-12-11 Joel Brobecker <brobecker@adacore.com>
  730. * NEWS: Create a new section for the next release branch.
  731. Rename the section of the current branch, now that it has
  732. been cut.
  733. 2019-12-11 Joel Brobecker <brobecker@adacore.com>
  734. GDB 9 branch created (27f7b2f64062ac9e52afc60509263c2702a9ebd0):
  735. * version.in: Bump version to 10.0.50.DATE-git.
  736. 2019-12-11 Tom Tromey <tromey@adacore.com>
  737. PR build/25268:
  738. * gdbsupport/thread-pool.c (set_thread_name): New function.
  739. (thread_pool::set_thread_count): Don't call pthread_setname_np.
  740. (thread_pool::thread_function): Call set_thread_name.
  741. 2019-12-11 Tom Tromey <tromey@adacore.com>
  742. * fbsd-tdep.c (fbsd_core_info_proc_status): Cast result of
  743. bfd_get_signed_8.
  744. 2019-12-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  745. * NEWS: Document -raw-values option and the related setting commands.
  746. * printcmd.c (print_command_parse_format): Do not set opts->raw off,
  747. only set it on when /r is given.
  748. * valprint.c (value_print_option_defs): New element raw-values.
  749. * Makefile.in: Add the new file.
  750. 2019-12-10 Christian Biesinger <cbiesinger@google.com>
  751. * gdbsupport/safe-strerror.c: Supress the unused function warning
  752. for select_strerror_r.
  753. 2019-12-10 Christian Biesinger <cbiesinger@google.com>
  754. * config.in: Regenerate.
  755. * configure: Regenerate.
  756. * gdbsupport/agent.c (gdb_connect_sync_socket): Call
  757. safe_strerror instead of strerror.
  758. * gdbsupport/common.m4: Don't check for strerror.
  759. * gdbsupport/safe-strerror.c: Support both the glibc version
  760. of strerror_r and the XSI version.
  761. 2019-12-10 Tom Tromey <tromey@adacore.com>
  762. * ada-typeprint.c (print_choices): Use a single "?".
  763. (print_variant_part): Print "?" if the discriminant name
  764. is not known.
  765. 2019-12-10 George Barrett <bob@bob131.so>
  766. Fix scripted probe breakpoints.
  767. * breakpoint.c (tracepoint_probe_breakpoint_ops): Move
  768. declaration forward.
  769. (breakpoint_ops_for_event_location_type)
  770. (breakpoint_ops_for_event_location): Add function definitions.
  771. (break_command_1, trace_command): Use
  772. breakpoint_ops_for_event_location.
  773. * breakpoint.h (breakpoint_ops_for_event_location): Add function
  774. declarations.
  775. * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Use
  776. breakpoint_ops_for_event_location.
  777. * python/py-breakpoint.c (bppy_init): Use
  778. breakpoint_ops_for_event_location.
  779. 2019-12-09 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  780. * gdbtypes.c (rank_one_type): Return INCOMPATIBLE_TYPE_BADNESS
  781. when ranking an lvalue argument for an rvalue parameter.
  782. 2019-12-08 Wataru Ashihara <wataash@wataash.com>
  783. * darwin-nat.c (darwin_nat_target::create_inferior): Fix
  784. template argument for scoped_restore_tmpl from bool to int.
  785. 2019-12-07 Keith Seitz <keiths@redhat.com>
  786. * build-id.c (build_id_bfd_get): Permit bfd_core, too.
  787. (build_id_to_debug_bfd): Make static, rewriting to use
  788. build_id_to_bfd_suffix.
  789. (build_id_to_bfd_suffix): Copy of build_id_to_debug_bfd,
  790. adding `suffix' parameter. Append SUFFIX to file names
  791. when searching for matching files.
  792. (build_id_to_debug_bfd): Use build_id_to_bfd_suffix.
  793. (build_id_to_exec_bfd): Likewise.
  794. * build-id.h (build_id_to_debug_bfd): Clarify that function
  795. searches for BFD of debug info file.
  796. (build_id_to_exec_bfd): Declare.
  797. * corelow.c: Include build-id.h.
  798. (locate_exec_from_corefile_build_id): New function.
  799. (core_target_open): If no executable BFD is found,
  800. search for a core file BFD using build-id.
  801. 2019-12-06 Christian Biesinger <cbiesinger@google.com>
  802. * bcache.c: Put in namespace gdb.
  803. * bcache.h: Likewise.
  804. * gdbtypes.c (check_types_worklist): Update.
  805. (types_deeply_equal): Update.
  806. * macrotab.c (struct macro_table) <bcache>: Update.
  807. (new_macro_table): Update.
  808. * macrotab.h (struct bcache): Put this forward declaration
  809. inside namespace gdb.
  810. (new_macro_table): Update.
  811. * objfiles.h (struct objfile_per_bfd_storage) <filename_cache>:
  812. Update.
  813. <macro_cache>: Update.
  814. * psymtab.h: (psymtab_storage) <psymbol_cache>: Update.
  815. 2019-12-06 Tom de Vries <tdevries@suse.de>
  816. PR symtab/24971
  817. * block.c (best_symbol, better_symbol): New function.
  818. (block_lookup_symbol_primary, block_lookup_symbol): Prefer def over
  819. decl.
  820. 2019-12-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  821. * gdbtypes.h: Define the REFERENCE_SEE_THROUGH_BADNESS value.
  822. * gdbtypes.c (rank_one_type): Use REFERENCE_SEE_THROUGH_BADNESS
  823. for ranking see-through reference cases.
  824. 2019-12-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  825. * stack.c (faas_command): Check a command is provided.
  826. * thread.c (taas_command, tfaas_command): Likewise.
  827. 2019-12-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  828. * inferior.c (prune_inferiors): Only call delete_inferior,
  829. Do not modify the inferior list.
  830. 2019-12-05 Simon Marchi <simon.marchi@polymtl.ca>
  831. * c-exp.y: Update calls to lookup_typename,
  832. lookup_signed_typename and lookup_unsigned_typename.
  833. * c-lang.c (evaluate_subexp_c): Likewise.
  834. * cp-namespace.c (cp_lookup_symbol_imports_or_template):
  835. Likewise.
  836. * eval.c (binop_promote): Likewise.
  837. * gdbtypes.c (lookup_typename): Remove gdbarch parameter.
  838. (lookup_unsigned_typename): Likewise.
  839. (lookup_signed_typename): Likewise.
  840. * gdbtypes.h (lookup_unsigned_typename): Likewise.
  841. (lookup_signed_typename): Likewise.
  842. (lookup_typename): Likewise.
  843. * guile/scm-type.c (tyscm_lookup_typename): Update calls to
  844. lookup_typename, lookup_signed_typename,
  845. lookup_unsigned_typename.
  846. * m2-exp.y: Likewise.
  847. * printcmd.c (printf_wide_c_string): Likewise.
  848. (ui_printf): Likewise.
  849. * python/py-type.c (typy_lookup_typename): Likewise.
  850. * python/py-xmethods.c (python_xmethod_worker::invoke):
  851. Likewise.
  852. * rust-exp.y: Likewise.
  853. 2019-12-04 Christian Biesinger <cbiesinger@google.com>
  854. * configure.nat (obsd64): Add missing files x86-nat.o and
  855. nat/x86-dregs.o.
  856. 2019-12-04 Tom Tromey <tom@tromey.com>
  857. * valprint.c (val_print_string): Use metadata_style.
  858. * go-valprint.c (print_go_string): Use metadata style.
  859. * p-valprint.c (pascal_object_print_static_field): Use metadata
  860. style.
  861. * cp-valprint.c (cp_print_static_field): Use metadata style.
  862. 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
  863. Chris January <chris.january@arm.com>
  864. * f-exp.y (COMPLEX_KEYWORD, SINGLE, DOUBLE, PRECISION): New
  865. tokens.
  866. (typebase): New patterns for complex, single/double precision, and
  867. single/double complex.
  868. (f77_keywords): Change token for complex keyword, and add single,
  869. double, and precision keywords.
  870. 2019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
  871. * avr-tdep.c (_initialize_avr_tdep): Improve help of command
  872. "info io_registers".
  873. 2019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
  874. * regcache.c (cooked_read_test): Initialize thread list of
  875. mock_inferior.
  876. 2019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
  877. * aarch64-linux-tdep.c: Remove includes.
  878. 2019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
  879. * aarch64-tdep.c: Remove includes.
  880. 2019-12-04 Simon Marchi <simon.marchi@efficios.com>
  881. * filtered-iterator.h (filtered_iterator) <operator==,
  882. operator!=>: Compare wrapped iterators, not wrapped pointers.
  883. * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
  884. unittests/filtered_iterator-selftests.c.
  885. * unittests/filtered_iterator-selftests.c: New file.
  886. 2019-12-04 Tom Tromey <tromey@adacore.com>
  887. * gdbtypes.c (create_range_type): Inherit endianity
  888. from base type.
  889. 2019-12-04 Tom Tromey <tromey@adacore.com>
  890. * ada-lang.c (decode_constrained_packed_array)
  891. (ada_value_assign, value_assign_to_component): Update.
  892. * dwarf2loc.c (rw_pieced_value, access_memory)
  893. (dwarf2_compile_expr_to_ax): Update.
  894. * dwarf2read.c (dwarf2_add_field): Update.
  895. * eval.c (evaluate_subexp_standard): Update.
  896. * gdbarch.c, gdbarch.h: Rebuild.
  897. * gdbarch.sh (bits_big_endian): Remove.
  898. * gdbtypes.h (union field_location): Update comment.
  899. * target-descriptions.c (make_gdb_type): Update.
  900. * valarith.c (value_bit_index): Update.
  901. * value.c (struct value) <bitpos>: Update comment.
  902. (unpack_bits_as_long, modify_field): Update.
  903. * value.h (value_bitpos): Update comment.
  904. 2019-12-04 Tom Tromey <tromey@adacore.com>
  905. * gdbtypes.c (type_byte_order): Move earlier. Assert for unknown
  906. endian-ness.
  907. 2019-12-04 Tom Tromey <tromey@adacore.com>
  908. * dwarf2read.c (dwarf2_init_float_type)
  909. (dwarf2_init_complex_target_type): Add byte_order parameter.
  910. (read_base_type): Compute byte order earlier.
  911. * gdbtypes.c (init_float_type): Add byte_order parameter.
  912. * gdbtypes.h (init_float_type): Add byte_order parameter.
  913. 2019-12-04 Tom Tromey <tromey@adacore.com>
  914. * unittests/tui-selftests.c: Conditionally include tui-winsource.h.
  915. 2019-12-04 Tom Tromey <tromey@adacore.com>
  916. * dwarf2read.c (process_structure_scope): Initialize
  917. "discr_offset".
  918. 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
  919. * mi/mi-symbol-cmds.c (mi_symbol_info): Take extra parameter, and
  920. add it into the search spec.
  921. (parse_max_results_option): New function.
  922. (mi_info_functions_or_variables): Parse -max-results flag and pass
  923. it to mi_symbol_info.
  924. (mi_cmd_symbol_info_modules): Likewise.
  925. (mi_cmd_symbol_info_types): Likewise.
  926. * symtab.c (global_symbol_searcher::add_matching_symbols): Change
  927. return type to bool, change result container into a set, and don't
  928. add new results if we have enough already.
  929. (global_symbol_searcher::add_matching_msymbols): Change return
  930. type to bool, and don't add new results if we have enough already.
  931. (sort_search_symbols_remove_dups): Delete.
  932. (global_symbol_searcher::search): Early exit from search loop when
  933. we have enough results. Use a std::set to collect the results
  934. from calling add_matching_symbols.
  935. * symtab.h (global_symbol_searcher) <set_max_seach_results>: New
  936. member function.
  937. (global_symbol_searcher) <m_max_search_results>: New member
  938. variable.
  939. (global_symbol_searcher) <add_matching_symbols>: Update header
  940. comment and change return type to bool.
  941. (global_symbol_searcher) <add_matching_msymbols>: Update header
  942. comment and change return type to bool.
  943. 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
  944. * symtab.c (symbol_search::compare_search_syms): Update header
  945. comment.
  946. (global_symbol_searcher::is_suitable_msymbol): New function.
  947. (global_symbol_searcher::expand_symtabs): New function.
  948. (global_symbol_searcher::add_matching_symbols): New function.
  949. (global_symbol_searcher::add_matching_msymbols): New function.
  950. (global_symbol_searcher::search): Move most of the content
  951. into the new functions above, and call them as needed.
  952. * symtab.h (global_symbol_searcher) <expand_symtabs>: New member
  953. function.
  954. (global_symbol_searcher) <add_matching_symbols>: New member
  955. function.
  956. (global_symbol_searcher) <add_matching_msymbols>: New member
  957. function.
  958. (global_symbol_searcher) <is_suitable_msymbol>: New member
  959. function.
  960. 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
  961. * mi/mi-cmds.c (mi_cmds): Add -symbol-info-module-functions and
  962. -symbol-info-module-variables entries.
  963. * mi/mi-cmds.h (mi_cmd_symbol_info_module_functions): Declare.
  964. (mi_cmd_symbol_info_module_variables): Declare.
  965. * mi/mi-symbol-cmds.c
  966. (module_symbol_search_iterator): New typedef.
  967. (output_module_symbols_in_single_module_and_file): New function.
  968. (output_module_symbols_in_single_module): New function.
  969. (mi_info_module_functions_or_variables): New function.
  970. (mi_cmd_symbol_info_module_functions): New function.
  971. (mi_cmd_symbol_info_module_variables): New function.
  972. * NEWS: Mention new MI command.
  973. 2019-12-03 Christian Biesinger <cbiesinger@google.com>
  974. * bcache.c (hash): Remove.
  975. (hash_continue): Remove.
  976. * bcache.h (hash): Remove.
  977. (hash_continue): Remove.
  978. (struct bcache) <ctor>: Update.
  979. * psymtab.c (psymbol_hash): Update.
  980. * stabsread.c (hashname): Update.
  981. * utils.h (fast_hash): Add an argument for a start value,
  982. defaulting to zero.
  983. 2019-12-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  984. * symtab.c (symbol_cache_clear_slot): Move close to cleared type.
  985. (destroy_block_symbol_cache): New function.
  986. (symbol_cache:~symbol_cache) Call destroy_block_symbol_cache.
  987. (resize_symbol_cache): Likewise.
  988. 2019-12-02 Tom Tromey <tom@tromey.com>
  989. * unittests/tui-selftests.c (run_tests): Make conditional.
  990. (_initialize_tui_selftest): Make conditional.
  991. 2019-12-02 Christian Biesinger <cbiesinger@google.com>
  992. * aix-thread.c (debug_aix_thread): Change type to bool.
  993. 2019-12-02 Luis Machado <luis.machado@linaro.org>
  994. * infrun.c (follow_fork_inferior): Remove outdated FIXME comment.
  995. 2019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
  996. * dwarf2read.c (read_tag_string_type): Read the fields required to
  997. make a dynamic string, and possibly create a dynamic range for the
  998. string.
  999. (attr_to_dynamic_prop): Setup is_reference based on the type of
  1000. attribute being processed.
  1001. * gdbtypes.c (is_dynamic_type_internal): Handle TYPE_CODE_STRING.
  1002. (resolve_dynamic_array): Rename to...
  1003. (resolve_dynamic_array_or_string): ...this, update header comment,
  1004. and accept TYPE_CODE_STRING.
  1005. (resolve_dynamic_type_internal): Handle TYPE_CODE_STRING.
  1006. 2019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
  1007. * dwarf2read.c (dwarf2_per_cu_int_type): New function, takes most
  1008. of its implementation from...
  1009. (dwarf2_per_cu_addr_sized_int_type): ...here, which now just calls
  1010. the new function.
  1011. 2019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
  1012. * dwarf2read.c (read_subrange_type): Read bit and byte stride and
  1013. create a range with stride where appropriate.
  1014. * f-valprint.c: Include 'gdbarch.h'.
  1015. (f77_print_array_1): Take the stride into account when walking the
  1016. array. Also convert the stride into addressable units.
  1017. * gdbtypes.c (create_range_type): Initialise the stride to
  1018. constant zero.
  1019. (create_range_type_with_stride): New function, initialise the
  1020. range as normal, and then setup the stride.
  1021. (has_static_range): Include the stride here. Also change the
  1022. return type to bool.
  1023. (create_array_type_with_stride): Consider the range stride if the
  1024. array isn't given its own stride.
  1025. (resolve_dynamic_range): Resolve the stride if needed.
  1026. * gdbtypes.h (struct range_bounds) <stride>: New member variable.
  1027. (struct range_bounds) <flag_is_byte_stride>: New member variable.
  1028. (TYPE_BIT_STRIDE): Define.
  1029. (TYPE_ARRAY_BIT_STRIDE): Define.
  1030. (create_range_type_with_stride): Declare.
  1031. * valarith.c (value_subscripted_rvalue): Take range stride into
  1032. account when walking the array.
  1033. 2019-12-01 Tom Tromey <tom@tromey.com>
  1034. * tui/tui-win.c (tui_all_windows_info): Treat inactive TUI
  1035. specially.
  1036. 2019-12-01 Tom Tromey <tom@tromey.com>
  1037. * tui/tui-winsource.c (tui_copy_source_line): Don't advance past
  1038. \0.
  1039. * unittests/tui-selftests.c: New file.
  1040. * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add tui-selftests.c.
  1041. 2019-12-01 Tom Tromey <tom@tromey.com>
  1042. * tui/tui.c (tui_enable): Call tui_update_variables earlier.
  1043. 2019-12-01 Tom Tromey <tom@tromey.com>
  1044. * NEWS: Document new settings.
  1045. * tui/tui-wingeneral.c (box_win): Apply appropriate border style.
  1046. * tui/tui-win.c (_initialize_tui_win): Add border style
  1047. observers.
  1048. * tui/tui-io.h (tui_apply_style): Declare.
  1049. * tui/tui-io.c (tui_apply_style): Rename from apply_style. No
  1050. longer static.
  1051. (apply_ansi_escape, tui_set_reverse_mode): Update.
  1052. * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
  1053. Add "skip_intensity" parameter.
  1054. <changed>: New member.
  1055. <do_set_value>: Declare.
  1056. (tui_border_style, tui_active_border_style): Declare.
  1057. * cli/cli-style.c (tui_border_style, tui_active_border_style): New
  1058. globals.
  1059. (cli_style_option): Initialize "changed".
  1060. (cli_style_option::do_set_value): New function.
  1061. (cli_style_option::add_setshow_commands): Add "skip_intensity"
  1062. parameter. Update.
  1063. (STYLE_ADD_SETSHOW_COMMANDS): Add "SKIP" parameter.
  1064. (_initialize_cli_style): Update. Create TUI border style
  1065. commands.
  1066. 2019-12-01 Tom Tromey <tom@tromey.com>
  1067. * tui/tui-winsource.h (tui_copy_source_line): Add "ndigits"
  1068. parameter.
  1069. * tui/tui-winsource.c (tui_copy_source_line): Add "ndigits"
  1070. parameter.
  1071. * tui/tui-win.h (compact_source): Declare.
  1072. * tui/tui-win.c (compact_source): New global.
  1073. (tui_set_compact_source, tui_show_compact_source): New functions.
  1074. (_initialize_tui_win): Add "compact-source" setting.
  1075. * tui/tui-source.c (tui_source_window::set_contents): Handle
  1076. compact_source setting.
  1077. * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
  1078. * NEWS: Document new setting.
  1079. 2019-11-30 Tom Tromey <tom@tromey.com>
  1080. * dwarf2read.c (dwarf2_add_field): Include field offset when
  1081. computing variant part length.
  1082. 2019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  1083. * NEWS: Mention define-prefix. Tell that command names can now
  1084. contain a . character.
  1085. 2019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  1086. * command.h (valid_cmd_char_p): Declare.
  1087. * cli/cli-decode.c (valid_cmd_char_p): New function factorizing
  1088. the check of valid command char.
  1089. (find_command_name_length, valid_user_defined_cmd_name_p): Use
  1090. valid_cmd_char_p.
  1091. * cli/cli-script.c (validate_comname): Likewise.
  1092. * completer.c (gdb_completer_command_word_break_characters):
  1093. Do not remove . from the word break char, update comments.
  1094. (complete_line_internal_1): Use valid_cmd_char_p.
  1095. * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
  1096. * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
  1097. 2019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  1098. * cli/cli-script.c (do_define_command): Ensure a redefined
  1099. prefix command is kept as a prefix command.
  1100. (define_prefix_command): New function.
  1101. (show_user_1): Report user defined prefixes.
  1102. (_initialize_cli_script): Create the new 'define-prefix' command.
  1103. Add completers for 'define' and 'document'.
  1104. * top.c (execute_command): If command is a user-defined prefix only
  1105. command, report the list of commands for this prefix command.
  1106. 2019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  1107. * valops.c (find_oload_champ): Improve debug output.
  1108. 2019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  1109. * valops.c (find_oload_champ): Print part of debug messages
  1110. before the badness vector is std::move'd.
  1111. 2019-11-28 Tom Tromey <tom@tromey.com>
  1112. * value.c (creal_internal_fn): Fix comment.
  1113. 2019-11-28 Tom Tromey <tom@tromey.com>
  1114. * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count,
  1115. flag_bound_evaluated>: Now unsigned.
  1116. 2019-11-28 Tom Tromey <tom@tromey.com>
  1117. * guile/guile-internal.h (vlscm_scm_from_value_unsafe): Don't
  1118. declare.
  1119. 2019-11-28 Mihails Strasuns <mihails.strasuns@intel.com>
  1120. * jit.c (jit_bfd_try_read_symtab): Fix printed function name in the
  1121. debug output.
  1122. * jit.c (jit_unregister_code): Add debug print to match
  1123. `jit_register_code`.
  1124. 2019-11-27 Christian Biesinger <cbiesinger@google.com>
  1125. * NEWS: Mention the new multithreaded symbol loading.
  1126. 2019-11-27 Christian Biesinger <cbiesinger@google.com>
  1127. * maint.c (n_worker_threads): Default to 0.
  1128. (worker_threads_disabled): New function.
  1129. * maint.h (worker_threads_disabled): New function.
  1130. * minsyms.c (minimal_symbol_reader::record_full): Call symbol_set_names
  1131. here if worker_threads_disabled () is true.
  1132. (minimal_symbol_reader::install): Skip all threading if
  1133. worker_threads_disabled () is true.
  1134. 2019-11-27 Christian Biesinger <cbiesinger@google.com>
  1135. * minsyms.c (add_minsym_to_hash_table): Use a previously computed
  1136. hash code if possible.
  1137. (add_minsym_to_demangled_hash_table): Likewise.
  1138. (minimal_symbol_reader::install): Compute the hash codes for msymbol
  1139. on the background thread.
  1140. * symtab.h (struct minimal_symbol) <hash_value, demangled_hash_value>:
  1141. Add these fields.
  1142. 2019-11-27 Christian Biesinger <cbiesinger@google.com>
  1143. * minsyms.c (minimal_symbol_reader::install): Also compute the hash
  1144. of the mangled name on the background thread.
  1145. * symtab.c (symbol_set_names): Allow passing in the hash of the
  1146. linkage_name.
  1147. * symtab.h (symbol_set_names): Likewise.
  1148. 2019-11-27 Kevin Buettner <kevinb@redhat.com>
  1149. * dwarf2read.c (inherit_abstract_dies): Ensure that delayed
  1150. physnames are computed for inherited DIEs.
  1151. 2019-11-27 Tom Tromey <tromey@adacore.com>
  1152. * dwarf2read.h (struct dwarf2_per_objfile): Remove unnecessary
  1153. backslashes.
  1154. * cp-support.c: Remove unnecessary backslashes.
  1155. 2019-11-27 Christian Biesinger <cbiesinger@google.com>
  1156. * ada-exp.y (write_ambiguous_var): Replace SYMBOL_SET_LINKAGE_NAME
  1157. with sym->set_linkage_name.
  1158. * coffread.c (coff_read_enum_type): Likewise.
  1159. * mdebugread.c (parse_symbol): Likewise.
  1160. * stabsread.c (patch_block_stabs): Likewise.
  1161. (define_symbol): Likewise.
  1162. (read_enum_type): Likewise.
  1163. (common_block_end): Likewise.
  1164. * symtab.h (struct general_symbol_info) <set_linkage_name>: New
  1165. function.
  1166. (SYMBOL_SET_LINKAGE_NAME): Remove.
  1167. * xcoffread.c (process_xcoff_symbol): Replace SYMBOL_SET_LINKAGE_NAME
  1168. with sym->set_linkage_name.
  1169. 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
  1170. * mi/mi-cmds.c (mi_cmds): Add 'symbol-info-modules' entry.
  1171. * mi/mi-cmds.h (mi_cmd_symbol_info_modules): Declare.
  1172. * mi/mi-symbol-cmds.c (mi_cmd_symbol_info_modules): New function.
  1173. * NEWS: Mention new MI command.
  1174. 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
  1175. * mi/mi-cmds.c (mi_cmds): Add '-symbol-info-functions',
  1176. '-symbol-info-types', and '-symbol-info-variables'.
  1177. * mi/mi-cmds.h (mi_cmd_symbol_info_functions): Declare.
  1178. (mi_cmd_symbol_info_types): Declare.
  1179. (mi_cmd_symbol_info_variables): Declare.
  1180. * mi/mi-symbol-cmds.c: Add 'source.h' and 'mi-getopt.h' includes.
  1181. (output_debug_symbol): New function.
  1182. (output_nondebug_symbol): New function.
  1183. (mi_symbol_info): New function.
  1184. (mi_info_functions_or_variables): New function.
  1185. (mi_cmd_symbol_info_functions): New function.
  1186. (mi_cmd_symbol_info_types): New function.
  1187. (mi_cmd_symbol_info_variables): New function.
  1188. * NEWS: Mention new commands.
  1189. 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
  1190. * symtab.c (symbol_to_info_string): New function, most content
  1191. moved from print_symbol_info, but updated to return a std::string.
  1192. (print_symbol_info): Update to use symbol_to_info_string and print
  1193. returned string.
  1194. * symtab.h (symbol_to_info_string): Declare new function.
  1195. 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
  1196. * python/python.c (gdbpy_rbreak): Convert to using
  1197. global_symbol_searcher.
  1198. * symtab.c (file_matches): Convert return type to bool, change
  1199. file list to std::vector, update header comment.
  1200. (search_symbols): Rename to...
  1201. (global_symbol_searcher::search): ...this and update now its
  1202. a member function of global_symbol_searcher. Take account of the
  1203. changes to file_matches.
  1204. (symtab_symbol_info): Convert to using global_symbol_searcher.
  1205. (rbreak_command): Likewise.
  1206. (search_module_symbols): Likewise.
  1207. * symtab.h (enum symbol_search): Update comment.
  1208. (search_symbols): Remove declaration.
  1209. (class global_symbol_searcher): New class.
  1210. 2019-11-26 Tom Tromey <tromey@adacore.com>
  1211. * cp-support.c (_initialize_cp_support): Conditionally initialize
  1212. gdb_demangle_attempt_core_dump.
  1213. 2019-11-26 Tom Tromey <tom@tromey.com>
  1214. * python/py-function.c (fnpy_init): Update.
  1215. * value.h (add_internal_function): Adjust declaration.
  1216. * value.c (function_destroyer): Remove.
  1217. (do_add_internal_function): Don't set destroyer or copy name.
  1218. (add_internal_function): Take unique_xmalloc_ptr<char> for name.
  1219. Set name_allocated.
  1220. * python/py-cmd.c (cmdpy_destroyer): Don't free "name".
  1221. (cmdpy_init): Set name_allocated.
  1222. * cli/cli-decode.h (struct cmd_list_element) <name_allocated>: New
  1223. member.
  1224. (~cmd_list_element): Free "name" if needed.
  1225. 2019-11-26 Tom Tromey <tom@tromey.com>
  1226. * value.h (add_internal_function): Add new overload. Move
  1227. documentation from value.h.
  1228. * value.c (do_add_internal_function): New function.
  1229. (add_internal_function): Use it. Add new overload.
  1230. (function_destroyer): Don't free doc.
  1231. * python/py-function.c (fnpy_init): Update.
  1232. 2019-11-26 Tom Tromey <tom@tromey.com>
  1233. * python/py-cmd.c (cmdpy_destroyer): Don't free "doc".
  1234. (cmdpy_init): Set "doc_allocated".
  1235. 2019-11-26 Tom Tromey <tom@tromey.com>
  1236. * gdbsupport/thread-pool.c (thread_pool::set_thread_count): Set
  1237. name of worker thread.
  1238. * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
  1239. pthread_setname_np.
  1240. * configure, config.in: Rebuild.
  1241. 2019-11-26 Tom Tromey <tom@tromey.com>
  1242. * python/python.c (class gdbpy_gil): New.
  1243. (struct gdbpy_event): Add constructor, destructor, operator().
  1244. (gdbpy_post_event): Use run_on_main_thread.
  1245. (gdbpy_initialize_events): Remove.
  1246. (do_start_initialization): Update.
  1247. 2019-11-26 Tom Tromey <tom@tromey.com>
  1248. * NEWS: Add entry.
  1249. * maint.c (_initialize_maint_cmds): Add "worker-threads" maint
  1250. commands. Call update_thread_pool_size.
  1251. (update_thread_pool_size, maintenance_set_worker_threads): New
  1252. functions.
  1253. (n_worker_threads): New global.
  1254. 2019-11-26 Christian Biesinger <cbiesinger@google.com>
  1255. Tom Tromey <tom@tromey.com>
  1256. * minsyms.c (minimal_symbol_reader::install): Use
  1257. parallel_for_each.
  1258. * gdbsupport/parallel-for.h: New file.
  1259. * Makefile.in (HFILES_NO_SRCDIR): Add gdbsupport/parallel-for.h.
  1260. 2019-11-26 Christian Biesinger <cbiesinger@google.com>
  1261. Tom Tromey <tom@tromey.com>
  1262. * gdbsupport/thread-pool.h: New file.
  1263. * gdbsupport/thread-pool.c: New file.
  1264. * Makefile.in (COMMON_SFILES): Add thread-pool.c.
  1265. (HFILES_NO_SRCDIR): Add thread-pool.h.
  1266. 2019-11-26 Tom Tromey <tom@tromey.com>
  1267. * event-top.h (thread_local_segv_handler): Declare.
  1268. * event-top.c (thread_local_segv_handler): New global.
  1269. (install_handle_sigsegv, handle_sigsegv): New functions.
  1270. (async_init_signals): Install SIGSEGV handler.
  1271. * cp-support.c (gdb_demangle_jmp_buf): Change type. Now
  1272. thread-local.
  1273. (report_failed_demangle): New function.
  1274. (gdb_demangle): Make core_dump_allowed atomic. Remove signal
  1275. handler-setting code, instead use segv_handler. Run warning code
  1276. on main thread.
  1277. 2019-11-26 Tom Tromey <tom@tromey.com>
  1278. * run-on-main-thread.c: New file.
  1279. * run-on-main-thread.h: New file.
  1280. * unittests/main-thread-selftests.c: New file.
  1281. * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
  1282. main-thread-selftests.c.
  1283. (HFILES_NO_SRCDIR): Add run-on-main-thread.h.
  1284. (COMMON_SFILES): Add run-on-main-thread.c.
  1285. 2019-11-26 Tom Tromey <tom@tromey.com>
  1286. * main.c (setup_alternate_signal_stack): Remove.
  1287. (captured_main_1): Use gdb::alternate_signal_stack.
  1288. * gdbsupport/alt-stack.h: New file.
  1289. 2019-11-26 Tom Tromey <tom@tromey.com>
  1290. * gdbsupport/signals-state-save-restore.c (original_signal_mask):
  1291. Remove comment.
  1292. (save_original_signals_state, restore_original_signals_state): Use
  1293. gdb_sigmask.
  1294. * linux-nat.c (block_child_signals, restore_child_signals_mask)
  1295. (_initialize_linux_nat): Use gdb_sigmask.
  1296. * guile/guile.c (_initialize_guile): Use block_signals.
  1297. * Makefile.in (HFILES_NO_SRCDIR): Add gdb-sigmask.h.
  1298. * gdbsupport/gdb-sigmask.h: New file.
  1299. * event-top.c (async_sigtstp_handler): Use gdb_sigmask.
  1300. * cp-support.c (gdb_demangle): Use gdb_sigmask.
  1301. * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
  1302. pthread_sigmask.
  1303. * configure, config.in: Rebuild.
  1304. * gdbsupport/block-signals.h: New file.
  1305. 2019-11-26 Tom Tromey <tom@tromey.com>
  1306. * acinclude.m4: Include ax_pthread.m4.
  1307. * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
  1308. (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
  1309. (CLIBS): Use PTHREAD_LIBS.
  1310. (aclocal_m4_deps): Add ax_pthread.m4.
  1311. * config.in, configure: Rebuild.
  1312. * gdbsupport/common.m4 (GDB_AC_COMMON): Check for std::thread.
  1313. 2019-11-26 Tom Tromey <tom@tromey.com>
  1314. * symtab.h (struct minimal_symbol) <name_set>: New member.
  1315. * minsyms.c (minimal_symbol_reader::record_full): Copy name.
  1316. Don't call symbol_set_names.
  1317. (minimal_symbol_reader::install): Call symbol_set_names.
  1318. 2019-11-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  1319. * python/python.c (gdbpy_enter::~gdbpy_enter): Release GIL after
  1320. restore_active_ext_lang, as GIL is needed for (indirectly)
  1321. called PyOS_InterruptOccurred.
  1322. 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
  1323. * sparc-nat.c (sparc_xfer_wcookie): Sync declaration with
  1324. definition.
  1325. 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
  1326. * remote-sim.c (simulator_command): Make static, remove
  1327. declaration.
  1328. 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
  1329. * unittests/array-view-selftests.c (check_ptr_size_ctor2): Make
  1330. static.
  1331. * unittests/basic_string_view/capacity/1.cc (test01): Likewise.
  1332. * unittests/basic_string_view/cons/char/1.cc (test01): Likewise.
  1333. (main): Likewise.
  1334. * unittests/basic_string_view/cons/char/2.cc (test03): Likewise.
  1335. (main): Likewise.
  1336. * unittests/basic_string_view/cons/char/3.cc (test05): Likewise.
  1337. (main): Likewise.
  1338. * unittests/basic_string_view/element_access/char/1.cc (test01):
  1339. Likewise.
  1340. (main): Likewise.
  1341. * unittests/basic_string_view/element_access/char/empty.cc (main):
  1342. Likewise.
  1343. * unittests/basic_string_view/element_access/char/front_back.cc
  1344. (test01): Likewise.
  1345. (main): Likewise.
  1346. * unittests/basic_string_view/inserters/char/2.cc (test05):
  1347. Likewise.
  1348. (main): Likewise.
  1349. * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc
  1350. (test01): Likewise.
  1351. (main): Likewise.
  1352. * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc
  1353. (test01): Likewise.
  1354. (main): Likewise.
  1355. * unittests/basic_string_view/modifiers/swap/char/1.cc (test01):
  1356. Likewise.
  1357. * unittests/basic_string_view/operations/compare/char/1.cc
  1358. (test01): Likewise.
  1359. (main): Likewise.
  1360. * unittests/basic_string_view/operations/compare/char/13650.cc
  1361. (test01): Likewise.
  1362. * unittests/basic_string_view/operations/copy/char/1.cc (test01):
  1363. Likewise.
  1364. (main): Likewise.
  1365. * unittests/basic_string_view/operations/data/char/1.cc (test01):
  1366. Likewise.
  1367. (main): Likewise.
  1368. * unittests/basic_string_view/operations/find/char/1.cc (test01):
  1369. Likewise.
  1370. (main): Likewise.
  1371. * unittests/basic_string_view/operations/find/char/2.cc (test02):
  1372. Likewise.
  1373. (main): Likewise.
  1374. * unittests/basic_string_view/operations/find/char/3.cc (test03):
  1375. Likewise.
  1376. (main): Likewise.
  1377. * unittests/basic_string_view/operations/find/char/4.cc (main):
  1378. Likewise.
  1379. * unittests/basic_string_view/operations/rfind/char/1.cc (test01):
  1380. Likewise.
  1381. (main): Likewise.
  1382. * unittests/basic_string_view/operations/rfind/char/2.cc (test02):
  1383. Likewise.
  1384. (main): Likewise.
  1385. * unittests/basic_string_view/operations/rfind/char/3.cc (test03):
  1386. Likewise.
  1387. (main): Likewise.
  1388. * unittests/basic_string_view/operations/substr/char/1.cc
  1389. (test01): Likewise.
  1390. (main): Likewise.
  1391. * unittests/basic_string_view/operators/char/2.cc (main):
  1392. Likewise.
  1393. * unittests/optional/assignment/1.cc (test): Likewise.
  1394. * unittests/optional/assignment/2.cc (test): Likewise.
  1395. * unittests/optional/assignment/3.cc (test): Likewise.
  1396. * unittests/optional/assignment/4.cc (test): Likewise.
  1397. * unittests/optional/assignment/5.cc (test): Likewise.
  1398. * unittests/optional/assignment/6.cc (test): Likewise.
  1399. * unittests/optional/assignment/7.cc (test): Likewise.
  1400. * unittests/optional/cons/copy.cc (test): Likewise.
  1401. * unittests/optional/cons/default.cc (test): Likewise.
  1402. * unittests/optional/cons/move.cc (test): Likewise.
  1403. * unittests/optional/cons/value.cc (test): Likewise.
  1404. * unittests/optional/in_place.cc (test): Likewise.
  1405. * unittests/optional/observers/1.cc (test): Likewise.
  1406. * unittests/optional/observers/2.cc (test): Likewise.
  1407. 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
  1408. * tui-win.h (tui_set_var_cmd): Remove.
  1409. * tui-win.c (tui_set_var_cmd): Make static.
  1410. 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
  1411. * breakpoint.h (hbreak_command_wrapper, thbreak_command_wrapper,
  1412. rbreak_command_wrapper): Remove.
  1413. * symtab.c (rbreak_command_wrapper): Remove.
  1414. 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
  1415. * inferior.h (info_terminal_command): Remove declaration.
  1416. * inflow.c (info_terminal_command): Make static.
  1417. 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
  1418. * inferior.c (exit_inferior_silent): Remove.
  1419. 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
  1420. * dictionary.c (dict_empty, mdict_empty): Remove.
  1421. * dictionary.c (mdict_empty): Remove.
  1422. 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
  1423. * arc-tdep.c (arc_insn_get_memory_base_reg): Make static.
  1424. (arc_insn_get_memory_offset): Likewise.
  1425. (arc_insn_dump): Likewise.
  1426. * cp-support.c (test_cp_symbol_name_matches): Likewise.
  1427. * csky-linux-tdep.c (csky_supply_fregset): Likewise.
  1428. * dictionary.c (dict_iterator_next): Likewise.
  1429. (dict_iter_match_first): Likewise.
  1430. (dict_iter_match_next): Likewise.
  1431. * f-lang.c (evaluate_subexp_f): Likewise.
  1432. * hppa-tdep.c (hppa_read_pc): Likewise.
  1433. * i386-tdep.c (i386_floatformat_for_type): Likewise.
  1434. * parse.c (write_exp_elt_msym): Likewise.
  1435. * ppc-linux-tdep.c (ppc_floatformat_for_type): Likewise.
  1436. * remote.c (remote_packet_size): Likewise.
  1437. (remote_notif_stop_parse): Likewise.
  1438. * rs6000-aix-tdep.c (aix_sighandle_frame_sniffer): Likewise.
  1439. * s12z-tdep.c (s12z_disassemble_info): Likewise.
  1440. * source.c (prepare_path_for_appending): Likewise.
  1441. * sparc64-linux-tdep.c
  1442. (sparc64_linux_handle_segmentation_fault); Likewise.
  1443. * stack.c (frame_selection_by_function_completer): Likewise.
  1444. 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
  1445. * completer.c (set_gdb_completion_word_break_characters):
  1446. Remove.
  1447. 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
  1448. * dwarf-index-write.c: Include dwarf-index-write.h.
  1449. * mi/mi-interp.c: Include mi/mi-interp.h.
  1450. 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
  1451. * aarch32-tdep.c: Include aarch32-tdep.h.
  1452. * aarch32-tdep.h: Forward-declare struct target_desc.
  1453. 2019-11-26 Christian Biesinger <cbiesinger@google.com>
  1454. * linux-nat.c (detach_one_lwp): Call safe_strerror instead of
  1455. strerror.
  1456. * nto-procfs.c (nto_procfs_target::create_inferior): Likewise.
  1457. * windows-nat.c (windows_nat_target::create_inferior): Likewise.
  1458. 2019-11-25 Tom de Vries <tdevries@suse.de>
  1459. * contrib/words.sh: Add -c option.
  1460. 2019-11-25 Christian Biesinger <cbiesinger@google.com>
  1461. * solib.c (solib_find_1): Change int to bool.
  1462. (exec_file_find): Change int to bool.
  1463. (solib_find): Change int to bool.
  1464. (solib_read_symbols): Change int to bool.
  1465. (solib_used): Change int to bool.
  1466. (solib_add): Change int to bool.
  1467. (info_sharedlibrary_command): Change int to bool.
  1468. (solib_contains_address_p): Change int to bool.
  1469. (solib_keep_data_in_core): Change int to bool.
  1470. (in_solib_dynsym_resolve_code): Change int to bool.
  1471. (reload_shared_libraries_1): Change int to bool.
  1472. (gdb_sysroot_changed): Change int to bool.
  1473. * solib.h (solib_read_symbols): Change int to bool.
  1474. (solib_contains_address_p): Change int to bool.
  1475. (solib_keep_data_in_core): Change int to bool.
  1476. (in_solib_dynsym_resolve_code): Change int to bool.
  1477. (libpthread_name_p): Change int to bool.
  1478. 2019-11-25 Luis Machado <luis.machado@linaro.org>
  1479. * NEWS (New Commands): Mention "set debug remote-packet-max-chars".
  1480. * remote.c (REMOTE_DEBUG_MAX_CHAR): Remove.
  1481. (remote_packet_max_chars): New static global.
  1482. (show_remote_packet_max_chars): New function.
  1483. (remote_target::putpkt_binary): Adjust to use new
  1484. remote_packet_max_chars option.
  1485. (remote_target::getpkt_or_notif_sane_1): Likewise.
  1486. (_initialize_remote): Register new remote-packet-max-chars option.
  1487. 2019-11-24 Simon Marchi <simon.marchi@efficios.com>
  1488. * m68k-linux-nat.c: Include gdbarch.h.
  1489. 2019-11-24 Tom Tromey <tom@tromey.com>
  1490. * symfile.c (read_symbols): Update.
  1491. * psymtab.c (require_partial_symbols): Change type of "verbose" to
  1492. bool.
  1493. (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
  1494. (psym_lookup_symbol, psym_find_last_source_symtab)
  1495. (psym_forget_cached_source_info, psym_print_stats)
  1496. (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
  1497. (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
  1498. (psym_map_matching_symbols, psym_expand_symtabs_matching)
  1499. (psym_find_compunit_symtab_by_address)
  1500. (maintenance_print_psymbols, maintenance_info_psymtabs)
  1501. (maintenance_check_psymtabs): Update.
  1502. * psymtab.h (require_partial_symbols): Change type of "verbose" to
  1503. bool.
  1504. 2019-11-22 Tom Tromey <tom@tromey.com>
  1505. * observable.h: Update comments.
  1506. 2019-11-22 Tom Tromey <tromey@adacore.com>
  1507. * ada-tasks.c (ada_task_is_alive): Make parameter const.
  1508. (print_ada_task_info): Don't try to fetch thread id if task is not
  1509. alive.
  1510. 2019-11-22 Christian Biesinger <cbiesinger@google.com>
  1511. * ada-exp.y: Update.
  1512. * ada-lang.c (sort_choices): Update.
  1513. (ada_print_symbol_signature): Update.
  1514. (resolve_subexp): Update.
  1515. (ada_parse_renaming): Update.
  1516. (ada_read_renaming_var_value): Update.
  1517. (lesseq_defined_than): Update.
  1518. (remove_extra_symbols): Update.
  1519. (remove_irrelevant_renamings): Update.
  1520. (ada_add_block_symbols): Update.
  1521. (ada_collect_symbol_completion_matches): Update.
  1522. (ada_is_renaming_symbol): Update.
  1523. (aggregate_assign_from_choices): Update.
  1524. (ada_evaluate_subexp): Update.
  1525. (ada_has_this_exception_support): Update.
  1526. (ada_is_non_standard_exception_sym): Update.
  1527. (ada_add_exceptions_from_frame): Update.
  1528. (ada_add_global_exceptions): Update.
  1529. (ada_print_subexp): Update.
  1530. * ax-gdb.c (gen_var_ref): Update.
  1531. (gen_maybe_namespace_elt): Update.
  1532. (gen_expr_for_cast): Update.
  1533. (gen_expr): Update.
  1534. * block.h: Update.
  1535. * blockframe.c (find_pc_partial_function): Update.
  1536. * breakpoint.c (print_breakpoint_location): Update.
  1537. (update_static_tracepoint): Update.
  1538. * btrace.c (ftrace_print_function_name): Update.
  1539. (ftrace_function_switched): Update.
  1540. * buildsym.c (find_symbol_in_list): Update.
  1541. * c-exp.y: Update.
  1542. * c-typeprint.c (c_print_typedef): Update.
  1543. (c_type_print_template_args): Update.
  1544. * cli/cli-cmds.c (edit_command): Update.
  1545. (list_command): Update.
  1546. (print_sal_location): Update.
  1547. * coffread.c (patch_opaque_types): Update.
  1548. (process_coff_symbol): Update.
  1549. (coff_read_enum_type): Update.
  1550. * compile/compile-c-symbols.c (c_symbol_substitution_name): Update.
  1551. (convert_one_symbol): Update.
  1552. (hash_symname): Update.
  1553. (eq_symname): Update.
  1554. * compile/compile-cplus-symbols.c (convert_one_symbol): Update.
  1555. * compile/compile-cplus-types.c (debug_print_scope): Update.
  1556. * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
  1557. * compile/compile-object-load.c (get_out_value_type): Update.
  1558. * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
  1559. (search_symbol_list): Update.
  1560. (cp_lookup_symbol_imports_or_template): Update.
  1561. * cp-support.c (overload_list_add_symbol): Update.
  1562. * ctfread.c (psymtab_to_symtab): Update.
  1563. * dbxread.c (cp_set_block_scope): Update.
  1564. * dictionary.c (iter_match_first_hashed): Update.
  1565. (iter_match_next_hashed): Update.
  1566. (insert_symbol_hashed): Update.
  1567. (iter_match_next_linear): Update.
  1568. * dictionary.h: Update.
  1569. * dwarf2loc.c (func_get_frame_base_dwarf_block): Update.
  1570. (locexpr_describe_location_piece): Update.
  1571. (locexpr_describe_location_1): Update.
  1572. (locexpr_generate_c_location): Update.
  1573. (loclist_describe_location): Update.
  1574. (loclist_generate_c_location): Update.
  1575. * dwarf2read.c (dw2_debug_names_lookup_symbol): Update.
  1576. (read_func_scope): Update.
  1577. (process_enumeration_scope): Update.
  1578. (new_symbol): Update.
  1579. (dwarf2_const_value): Update.
  1580. (dwarf2_symbol_mark_computed): Update.
  1581. * eval.c (evaluate_funcall): Update.
  1582. (evaluate_subexp_standard): Update.
  1583. * expprint.c (print_subexp_standard): Update.
  1584. (dump_subexp_body_standard): Update.
  1585. * f-valprint.c (info_common_command_for_block): Update.
  1586. * findvar.c (get_hosting_frame): Update.
  1587. (default_read_var_value): Update.
  1588. * go-lang.c (go_symbol_package_name): Update.
  1589. * guile/scm-block.c (bkscm_print_block_smob): Update.
  1590. * guile/scm-symbol.c (syscm_print_symbol_smob): Update.
  1591. (gdbscm_symbol_name): Update.
  1592. (gdbscm_symbol_linkage_name): Update.
  1593. (gdbscm_symbol_print_name): Update.
  1594. * infcall.c (get_function_name): Update.
  1595. * infcmd.c (jump_command): Update.
  1596. (finish_command): Update.
  1597. * infrun.c (insert_exception_resume_breakpoint): Update.
  1598. * linespec.c (canonicalize_linespec): Update.
  1599. (create_sals_line_offset): Update.
  1600. (convert_linespec_to_sals): Update.
  1601. (complete_label): Update.
  1602. (find_label_symbols_in_block): Update.
  1603. * m2-typeprint.c (m2_print_typedef): Update.
  1604. * mdebugread.c (mdebug_reg_to_regnum): Update.
  1605. (parse_symbol): Update.
  1606. (mylookup_symbol): Update.
  1607. * mi/mi-cmd-stack.c (list_arg_or_local): Update.
  1608. (list_args_or_locals): Update.
  1609. * objc-lang.c (compare_selectors): Update.
  1610. (info_selectors_command): Update.
  1611. (compare_classes): Update.
  1612. (info_classes_command): Update.
  1613. (find_imps): Update.
  1614. * p-typeprint.c (pascal_print_typedef): Update.
  1615. * printcmd.c (build_address_symbolic): Update.
  1616. (info_address_command): Update.
  1617. (print_variable_and_value): Update.
  1618. * python/py-framefilter.c (extract_sym): Update.
  1619. (py_print_single_arg): Update.
  1620. * python/py-symbol.c (sympy_str): Update.
  1621. (sympy_get_name): Update.
  1622. (sympy_get_linkage_name): Update.
  1623. * python/python.c (gdbpy_rbreak): Update.
  1624. * record-btrace.c (btrace_get_bfun_name): Update.
  1625. (btrace_call_history): Update.
  1626. * rust-lang.c (rust_print_typedef): Update.
  1627. * solib-frv.c (frv_fdpic_find_canonical_descriptor): Update.
  1628. * stabsread.c (stab_reg_to_regnum): Update.
  1629. (define_symbol): Update.
  1630. (read_enum_type): Update.
  1631. (common_block_end): Update.
  1632. (cleanup_undefined_types_1): Update.
  1633. (scan_file_globals): Update.
  1634. * stack.c (print_frame_arg): Update.
  1635. (print_frame_args): Update.
  1636. (find_frame_funname): Update.
  1637. (info_frame_command_core): Update.
  1638. (iterate_over_block_locals): Update.
  1639. (print_block_frame_labels): Update.
  1640. (do_print_variable_and_value): Update.
  1641. (iterate_over_block_arg_vars): Update.
  1642. (return_command): Update.
  1643. * symmisc.c (dump_symtab_1): Update.
  1644. (print_symbol): Update.
  1645. * symtab.c (eq_symbol_entry): Update.
  1646. (symbol_cache_dump): Update.
  1647. (lookup_language_this): Update.
  1648. (find_pc_sect_line): Update.
  1649. (skip_prologue_sal): Update.
  1650. (symbol_search::compare_search_syms): Update.
  1651. (treg_matches_sym_type_name): Update.
  1652. (search_symbols): Update.
  1653. (print_symbol_info): Update.
  1654. (rbreak_command): Update.
  1655. (completion_list_add_symbol): Update.
  1656. (find_gnu_ifunc): Update.
  1657. (get_symbol_address): Update.
  1658. (search_module_symbols): Update.
  1659. (info_module_subcommand): Update.
  1660. * symtab.h (SYMBOL_NATURAL_NAME): Remove.
  1661. (SYMBOL_LINKAGE_NAME): Remove.
  1662. (SYMBOL_DEMANGLED_NAME): Remove.
  1663. (SYMBOL_PRINT_NAME): Remove.
  1664. (SYMBOL_SEARCH_NAME): Remove.
  1665. * tracepoint.c (set_traceframe_context): Update.
  1666. (validate_actionline): Update.
  1667. (collection_list::collect_symbol): Update.
  1668. (encode_actions_1): Update.
  1669. (info_scope_command): Update.
  1670. (print_one_static_tracepoint_marker): Update.
  1671. * typeprint.c (typedef_hash_table::add_template_parameters): Update.
  1672. * valops.c (address_of_variable): Update.
  1673. (find_overload_match): Update.
  1674. (find_oload_champ): Update.
  1675. 2019-11-22 Christian Biesinger <cbiesinger@google.com>
  1676. * ada-lang.c (ada_lookup_simple_minsym): Update.
  1677. (ada_collect_symbol_completion_matches): Update.
  1678. * ada-tasks.c (read_atcb): Update.
  1679. * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
  1680. (amd64_windows_skip_trampoline_code): Update.
  1681. * arm-tdep.c (skip_prologue_function): Update.
  1682. (arm_skip_stack_protector): Update.
  1683. * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
  1684. (arm_wince_skip_main_prologue): Update.
  1685. * ax-gdb.c (gen_expr): Update.
  1686. * block.c (call_site_for_pc): Update.
  1687. * blockframe.c (find_pc_partial_function): Update.
  1688. * breakpoint.c (set_breakpoint_location_function): Update.
  1689. * btrace.c (ftrace_print_function_name): Update.
  1690. (ftrace_function_switched): Update.
  1691. * c-valprint.c (print_unpacked_pointer): Update.
  1692. * coffread.c (coff_symfile_read): Update.
  1693. * compile/compile-c-symbols.c (convert_symbol_bmsym): Update.
  1694. * compile/compile-cplus-symbols.c (convert_symbol_bmsym): Update.
  1695. * dwarf-index-write.c (write_psymbols): Update.
  1696. * dwarf2loc.c (call_site_to_target_addr): Update.
  1697. (func_verify_no_selftailcall): Update.
  1698. (tailcall_dump): Update.
  1699. (call_site_find_chain_1): Update.
  1700. (dwarf_expr_reg_to_entry_parameter): Update.
  1701. * elfread.c (elf_gnu_ifunc_record_cache): Update.
  1702. * eval.c (evaluate_funcall): Update.
  1703. (evaluate_subexp_standard): Update.
  1704. (evaluate_subexp_for_sizeof): Update.
  1705. * expprint.c (print_subexp_standard): Update.
  1706. (dump_subexp_body_standard): Update.
  1707. * frame.c (get_prev_frame_always_1): Update.
  1708. * frv-tdep.c (frv_skip_main_prologue): Update.
  1709. * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
  1710. * gnu-v3-abi.c (gnuv3_rtti_type): Update.
  1711. (gnuv3_get_typename_from_type_info): Update.
  1712. (gnuv3_skip_trampoline): Update.
  1713. * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
  1714. * i386-tdep.c (i386_skip_main_prologue): Update.
  1715. (i386_pe_skip_trampoline_code): Update.
  1716. * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
  1717. * infcall.c (get_function_name): Update.
  1718. * linespec.c (minsym_found): Update.
  1719. * linux-fork.c (info_checkpoints_command): Update.
  1720. * m32c-tdep.c (m32c_m16c_address_to_pointer): Update.
  1721. (m32c_m16c_pointer_to_address): Update.
  1722. * maint.c (maintenance_translate_address): Update.
  1723. * minsyms.c (add_minsym_to_hash_table): Update.
  1724. (add_minsym_to_demangled_hash_table): Update.
  1725. (lookup_minimal_symbol_mangled): Update.
  1726. (lookup_minimal_symbol_demangled): Update.
  1727. (lookup_minimal_symbol_linkage): Update.
  1728. (lookup_minimal_symbol_text): Update.
  1729. (lookup_minimal_symbol_by_pc_name): Update.
  1730. (minimal_symbol_is_less_than): Update.
  1731. (compact_minimal_symbols): Update.
  1732. (build_minimal_symbol_hash_tables): Update.
  1733. (find_solib_trampoline_target): Update.
  1734. * mips-tdep.c (mips_stub_frame_sniffer): Update.
  1735. (mips_skip_pic_trampoline_code): Update.
  1736. * msp430-tdep.c (msp430_skip_trampoline_code): Update.
  1737. * objc-lang.c (info_selectors_command): Update.
  1738. (info_classes_command): Update.
  1739. (find_methods): Update.
  1740. (find_imps): Update.
  1741. * p-valprint.c (pascal_val_print): Update.
  1742. * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Update.
  1743. * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
  1744. * printcmd.c (build_address_symbolic): Update.
  1745. (info_symbol_command): Update.
  1746. * psymtab.c (psymbol_name_matches): Update.
  1747. (match_partial_symbol): Update.
  1748. (lookup_partial_symbol): Update.
  1749. (print_partial_symbols): Update.
  1750. (sort_pst_symbols): Update.
  1751. (maintenance_check_psymtabs): Update.
  1752. * python/py-framefilter.c (py_print_frame): Update.
  1753. * python/python.c (gdbpy_rbreak): Update.
  1754. * record-btrace.c (btrace_get_bfun_name): Update.
  1755. (btrace_call_history): Update.
  1756. * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
  1757. (rs6000_skip_trampoline_code): Update.
  1758. * sol-thread.c (info_cb): Update.
  1759. * stabsread.c (scan_file_globals): Update.
  1760. * stack.c (find_frame_funname): Update.
  1761. (info_frame_command_core): Update.
  1762. * symmisc.c (dump_msymbols): Update.
  1763. * symtab.c (symbol_natural_name): Rename to..,
  1764. (general_symbol_info::natural_name): ...this.
  1765. (symbol_demangled_name): Rename to...
  1766. (general_symbol_info::demangled_name): ...this.
  1767. (symbol_search_name): Rename to...
  1768. (general_symbol_info::search_name): ...this.
  1769. (symbol_matches_search_name): Update.
  1770. (find_pc_sect_line): Update.
  1771. (skip_prologue_sal): Update.
  1772. (search_symbols): Update.
  1773. (print_msymbol_info): Update.
  1774. (rbreak_command): Update.
  1775. (completion_list_add_msymbol): Update.
  1776. (completion_list_objc_symbol): Update.
  1777. (get_msymbol_address): Update.
  1778. * symtab.h (struct general_symbol_info): Add member functions
  1779. natural_name (), linkage_name (), print_name (), demangled_name (),
  1780. and search_name ().
  1781. (SYMBOL_NATURAL_NAME): Update.
  1782. (symbol_natural_name): Move to a member function on general_symbol_info.
  1783. (SYMBOL_DEMANGLED_NAME): Update.
  1784. (symbol_demangled_name): Move to a member function on
  1785. general_symbol_info.
  1786. (SYMBOL_SEARCH_NAME): Update.
  1787. (symbol_search_name): Move to a member function on general_symbol_info.
  1788. (MSYMBOL_NATURAL_NAME): Remove.
  1789. (MSYMBOL_LINKAGE_NAME): Remove.
  1790. (MSYMBOL_PRINT_NAME): Remove.
  1791. (MSYMBOL_DEMANGLED_NAME): Remove.
  1792. (MSYMBOL_SEARCH_NAME): Remove.
  1793. * x86-tdep.c (x86_in_indirect_branch_thunk): Update.
  1794. 2019-11-22 Christian Biesinger <cbiesinger@google.com>
  1795. * symtab.c (create_demangled_names_hash): Use per_bfd->
  1796. minimal_symbol_count for computing the initial size, if greater
  1797. than our default size.
  1798. 2019-11-22 Tom de Vries <tdevries@suse.de>
  1799. * contrib/words.sh: Improve words extraction.
  1800. 2019-11-22 Tom de Vries <tdevries@suse.de>
  1801. * contrib/words.sh: Combine sed invocations.
  1802. 2019-11-21 Christian Biesinger <cbiesinger@google.com>
  1803. * Makefile.in: Update.
  1804. * demangle.c: Rename to...
  1805. * gdb-demangle.c: ..this.
  1806. (is_cplus_marker): Change return type to bool.
  1807. (_initialize_demangler): Rename to...
  1808. (_initialize_gdb_demangle): ...this.
  1809. * gdb-demangle.h (is_cplus_marker): Change return type to bool.
  1810. * symtab.h (demangle): Remove declaration; instead include
  1811. gdb-demangle.h.
  1812. 2019-11-21 Tom Tromey <tromey@adacore.com>
  1813. * gdbsupport/format.c (format_pieces): Parse %I64d.
  1814. * unittests/format_pieces-selftests.c (test_windows_formats): New
  1815. function.
  1816. (run_tests): Call it.
  1817. 2019-11-21 Peeter Joot <peeter.joot@lzlabs.com>
  1818. Byte reverse display of variables with DW_END_big, DW_END_little
  1819. (DW_AT_endianity) dwarf attributes if different than the native
  1820. byte order.
  1821. * ada-lang.c (ada_value_binop):
  1822. Use type_byte_order instead of gdbarch_byte_order.
  1823. * ada-valprint.c (printstr):
  1824. (ada_val_print_string):
  1825. * ada-lang.c (value_pointer):
  1826. (ada_value_binop):
  1827. Use type_byte_order instead of gdbarch_byte_order.
  1828. * c-lang.c (c_get_string):
  1829. Use type_byte_order instead of gdbarch_byte_order.
  1830. * c-valprint.c (c_val_print_array):
  1831. Use type_byte_order instead of gdbarch_byte_order.
  1832. * cp-valprint.c (cp_print_class_member):
  1833. Use type_byte_order instead of gdbarch_byte_order.
  1834. * dwarf2loc.c (rw_pieced_value):
  1835. Use type_byte_order instead of gdbarch_byte_order.
  1836. * dwarf2read.c (read_base_type): Handle DW_END_big,
  1837. DW_END_little
  1838. * f-lang.c (f_get_encoding):
  1839. Use type_byte_order instead of gdbarch_byte_order.
  1840. * findvar.c (default_read_var_value):
  1841. Use type_byte_order instead of gdbarch_byte_order.
  1842. * gdbtypes.c (check_types_equal):
  1843. Require matching TYPE_ENDIANITY_NOT_DEFAULT if set.
  1844. (recursive_dump_type): Print TYPE_ENDIANITY_BIG,
  1845. and TYPE_ENDIANITY_LITTLE if set.
  1846. (type_byte_order): new function.
  1847. * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): New macro.
  1848. (struct main_type) <flag_endianity_not_default>:
  1849. New field.
  1850. (type_byte_order): New function.
  1851. * infcmd.c (default_print_one_register_info):
  1852. Use type_byte_order instead of gdbarch_byte_order.
  1853. * p-lang.c (pascal_printstr):
  1854. Use type_byte_order instead of gdbarch_byte_order.
  1855. * p-valprint.c (pascal_val_print):
  1856. Use type_byte_order instead of gdbarch_byte_order.
  1857. * printcmd.c (print_scalar_formatted):
  1858. Use type_byte_order instead of gdbarch_byte_order.
  1859. * solib-darwin.c (darwin_current_sos):
  1860. Use type_byte_order instead of gdbarch_byte_order.
  1861. * solib-svr4.c (solib_svr4_r_ldsomap):
  1862. Use type_byte_order instead of gdbarch_byte_order.
  1863. * stap-probe.c (stap_modify_semaphore):
  1864. Use type_byte_order instead of gdbarch_byte_order.
  1865. * target-float.c (target_float_same_format_p):
  1866. Use type_byte_order instead of gdbarch_byte_order.
  1867. * valarith.c (scalar_binop):
  1868. (value_bit_index):
  1869. Use type_byte_order instead of gdbarch_byte_order.
  1870. * valops.c (value_cast):
  1871. Use type_byte_order instead of gdbarch_byte_order.
  1872. * valprint.c (generic_emit_char):
  1873. (generic_printstr):
  1874. (val_print_string):
  1875. Use type_byte_order instead of gdbarch_byte_order.
  1876. * value.c (unpack_long):
  1877. (unpack_bits_as_long):
  1878. (unpack_value_bitfield):
  1879. (modify_field):
  1880. (pack_long):
  1881. (pack_unsigned_long):
  1882. Use type_byte_order instead of gdbarch_byte_order.
  1883. * findvar.c (unsigned_pointer_to_address):
  1884. (signed_pointer_to_address):
  1885. (unsigned_address_to_pointer):
  1886. (address_to_signed_pointer):
  1887. (default_read_var_value):
  1888. (default_value_from_register):
  1889. Use type_byte_order instead of gdbarch_byte_order.
  1890. * gnu-v3-abi.c (gnuv3_make_method_ptr):
  1891. Use type_byte_order instead of gdbarch_byte_order.
  1892. * riscv-tdep.c (riscv_print_one_register_info):
  1893. Use type_byte_order instead of gdbarch_byte_order.
  1894. 2019-11-21 Simon Marchi <simon.marchi@polymtl.ca>
  1895. * top.c (current_ui_gdb_stdout_ptr): Spell out by hand.
  1896. (current_ui_gdb_stdin_ptr): Likewise.
  1897. (current_ui_gdb_stderr_ptr): Likewise.
  1898. (current_ui_gdb_stdlog_ptr): Likewise.
  1899. (current_ui_current_uiout_ptr): Likewise.
  1900. (gen_ret_current_ui_field_ptr): Remove.
  1901. 2019-11-21 Tom de Vries <tdevries@suse.de>
  1902. PR gdb/24956
  1903. * cli/cli-script.c (execute_control_command): Only switch to
  1904. INTERP_CONSOLE's ui_out when INTERP_MI is active.
  1905. 2019-11-19 Tom Tromey <tom@tromey.com>
  1906. * tui/tui-win.c (tui_partial_win_by_name): Move from tui-data.c.
  1907. Now static. Change type of "name".
  1908. (tui_set_win_height_command): Don't copy "arg".
  1909. * tui/tui-data.h (tui_partial_win_by_name): Don't declare.
  1910. * tui/tui-data.c (tui_partial_win_by_name): Move to tui-win.c.
  1911. 2019-11-19 Ali Tamur <tamur@google.com>
  1912. * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
  1913. "if (attr != nullptr)".
  1914. (dwarf2_find_base_address): Likewise.
  1915. (dwarf2_build_include_psymtabs): Likewise.
  1916. (read_cutu_die_from_dwo): Likewise.
  1917. (read_func_scope): Likewise.
  1918. (read_call_site_scope): Likewise.
  1919. (dwarf2_get_pc_bounds): Likewise.
  1920. (dwarf2_record_block_ranges): Likewise.
  1921. (dwarf2_add_field): Likewise.
  1922. (dwarf2_add_member_fn): Likewise.
  1923. (read_structure_type): Likewise.
  1924. (read_enumeration_type): Likewise.
  1925. (read_array_type): Likewise.
  1926. (read_array_order): Likewise.
  1927. (read_set_type): Likewise.
  1928. (read_common_block): Likewise.
  1929. (read_tag_reference_type): Likewise.
  1930. (read_tag_string_type): Likewise.
  1931. (read_subroutine_type): Likewise.
  1932. (read_base_type): Likewise.
  1933. (read_subrange_type): Likewise.
  1934. (new_symbol): Likewise.
  1935. (prepare_one_comp_unit): Likewise.
  1936. 2019-11-19 Tom Tromey <tromey@adacore.com>
  1937. * windows-nat.c (windows_nat_target::attach): Include GetLastError
  1938. result in error when DebugActiveProcess fails.
  1939. 2019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
  1940. Pedro Alves <palves@redhat.com>
  1941. https://bugzilla.redhat.com/show_bug.cgi?id=1765117
  1942. * target.c (target_stack::push): Call 'unpush' if there's a
  1943. target on top of the stack.
  1944. 2019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  1945. * python/py-block.c (blpy_dealloc): Call tp_free.
  1946. (blpy_block_syms_dealloc): Likewise.
  1947. * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
  1948. * python/py-inferior.c (infpy_dealloc): Likewise.
  1949. * python/py-lazy-string.c (stpy_dealloc): Likewise.
  1950. * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
  1951. * python/py-symbol.c (sympy_dealloc): Likewise.
  1952. * python/py-symtab.c (stpy_dealloc): Likewise.
  1953. * python/py-type.c (typy_iterator_dealloc): Likewise.
  1954. 2019-11-18 Christian Biesinger <cbiesinger@google.com>
  1955. * symtab.h (struct symbol) <owner>: Initialize explicitly in the
  1956. constructor instead of using a class initializer.
  1957. 2019-11-15 Christian Biesinger <cbiesinger@google.com>
  1958. * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
  1959. * configure: Regenerate.
  1960. * configure.ac: Don't source common.host.
  1961. * gdbsupport/common.host: Remove.
  1962. * gdbsupport/mingw-strerror.c: Remove.
  1963. * gdbsupport/posix-strerror.c: Rename to...
  1964. * gdbsupport/safe-strerror.c: ...this.
  1965. 2019-11-15 Christian Biesinger <cbiesinger@google.com>
  1966. * maint.c (scoped_command_stats::print_time): Use localtime_r
  1967. instead of localtime (provided through gnulib if necessary).
  1968. * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
  1969. of ctime.
  1970. 2019-11-15 Christian Biesinger <cbiesinger@google.com>
  1971. * gdbsupport/common-defs.h: Include time.h before pathmax.h to
  1972. avoid compile errors.
  1973. 2019-11-15 Christian Biesinger <cbiesinger@google.com>
  1974. * config.in: Regenerate.
  1975. * configure: Regenerate.
  1976. * gdbsupport/common.m4: No longer check for strerror_r.
  1977. * gdbsupport/posix-strerror.c (safe_strerror): Always call the
  1978. POSIX version of strerror_r, now that gnulib provides it if
  1979. necessary.
  1980. 2019-11-14 Christian Biesinger <cbiesinger@google.com>
  1981. * README (`configure' options): Update.
  1982. 2019-11-14 Tom Tromey <tromey@adacore.com>
  1983. * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
  1984. expected type for the RHS if the LHS is a convenience variable.
  1985. 2019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
  1986. * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
  1987. Provide explicit default and copy constructor.
  1988. 2019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  1989. * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
  1990. only call Py_INCREF (newbp) in the bppy_pending_object case.
  1991. 2019-11-13 Tom Tromey <tromey@adacore.com>
  1992. PR build/25182:
  1993. * psympriv.h (partial_symbol): Remove static assert.
  1994. * symtab.h (general_symbol_info, symbol): Remove static assert.
  1995. 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
  1996. * gdbsupport/format.c (format_pieces::format_pieces): Support
  1997. printf 'z' size modifier.
  1998. * gdbsupport/format.h (enum argclass): Add size_t_arg.
  1999. * printcmd.c (ui_printf): Handle size_t_arg.
  2000. * ui-out.c (ui_out::vmessage): Likewise.
  2001. * unittests/format_pieces-selftests.c (test_format_int_sizes): New
  2002. function.
  2003. (run_tests): Call test_format_int_sizes.
  2004. 2019-11-12 Christian Biesinger <cbiesinger@google.com>
  2005. * ada-exp.y (write_ambiguous_var): Update.
  2006. * buildsym.c (add_symbol_to_list): Update.
  2007. * dwarf2read.c (read_variable): Update.
  2008. (new_symbol): Update.
  2009. * jit.c (finalize_symtab): Update.
  2010. * language.c (language_alloc_type_symbol): Update.
  2011. * symtab.c (fixup_symbol_section): Update.
  2012. (initialize_objfile_symbol_1): Move code to...
  2013. (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
  2014. (allocate_symbol): Update.
  2015. (allocate_template_symbol): Update.
  2016. (get_symbol_address): Update.
  2017. * symtab.h (struct symbol): Inherit from general_symbol_info instead
  2018. of having as a field, and add a constructor.
  2019. (SYMBOL_VALUE): Update.
  2020. (SYMBOL_VALUE_ADDRESS): Update.
  2021. (SET_SYMBOL_VALUE_ADDRESS): Update.
  2022. (SYMBOL_VALUE_BYTES): Update.
  2023. (SYMBOL_VALUE_COMMON_BLOCK): Update.
  2024. (SYMBOL_BLOCK_VALUE): Update.
  2025. (SYMBOL_VALUE_CHAIN): Update.
  2026. (SYMBOL_LANGUAGE): Update.
  2027. (SYMBOL_SECTION): Update.
  2028. (SYMBOL_OBJ_SECTION): Update.
  2029. (SYMBOL_SET_LANGUAGE): Update.
  2030. (SYMBOL_SET_LINKAGE_NAME): Update.
  2031. (SYMBOL_SET_NAMES): Update.
  2032. (SYMBOL_NATURAL_NAME): Update.
  2033. (SYMBOL_LINKAGE_NAME): Update.
  2034. (SYMBOL_DEMANGLED_NAME): Update.
  2035. (SYMBOL_SEARCH_NAME): Update.
  2036. (SYMBOL_MATCHES_SEARCH_NAME): Update.
  2037. (struct symbol): Update.
  2038. (struct template_symbol): Update.
  2039. (struct rust_vtable_symbol): Update.
  2040. * xcoffread.c (SYMBOL_DUP): Update.
  2041. 2019-11-12 Tom Tromey <tom@tromey.com>
  2042. * tui/tui-layout.c (show_layout): Set current_layout.
  2043. (show_source_disasm_command, show_data)
  2044. (show_source_or_disasm_and_command): Don't set current_layout.
  2045. 2019-11-12 Tom Tromey <tom@tromey.com>
  2046. * tui/tui-layout.c (_initialize_tui_layout): Move to end.
  2047. 2019-11-12 Tom Tromey <tom@tromey.com>
  2048. * tui/tui-win.c (resize_message): New global.
  2049. (show_tui_resize_message): New function.
  2050. (tui_async_resize_screen): Print message if requested.
  2051. (_initialize_tui_win): Add tui-resize-message setting.
  2052. * NEWS: Add entry for new commands.
  2053. 2019-11-11 Tom Tromey <tom@tromey.com>
  2054. * tui/tui.c (tui_initialize_readline): Add new bindable readline
  2055. functions.
  2056. 2019-11-11 Christian Biesinger <cbiesinger@google.com>
  2057. * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
  2058. 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
  2059. * python/py-symbol.c (gdbpy_lookup_static_symbols): New
  2060. function.
  2061. * python/python-internal.h (gdbpy_lookup_static_symbols):
  2062. Declare new function.
  2063. * python/python.c (python_GdbMethods): Add
  2064. gdb.lookup_static_symbols method.
  2065. * NEWS: Mention gdb.lookup_static_symbols.
  2066. 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
  2067. * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
  2068. static block of current object file first. Also fix typo in
  2069. header comment.
  2070. 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
  2071. * stack.c (set_last_displayed_sal): Delete.
  2072. (last_displayed_sal_valid): Delete.
  2073. (last_displayed_pspace): Delete.
  2074. (last_displayed_addr): Delete.
  2075. (last_displayed_symtab): Delete.
  2076. (last_displayed_line): Delete.
  2077. (class last_displayed_symtab_info_type): New.
  2078. (last_displayed_symtab_info): New static global variable.
  2079. (print_frame_info): Call methods on last_displayed_symtab_info.
  2080. (clear_last_displayed_sal): Update header comment, and make use of
  2081. last_displayed_symtab_info.
  2082. (last_displayed_sal_is_valid): Likewise.
  2083. (get_last_displayed_pspace): Likewise.
  2084. (get_last_displayed_addr): Likewise.
  2085. (get_last_displayed_symtab): Likewise.
  2086. (get_last_displayed_line): Likewise.
  2087. (get_last_displayed_sal): Likewise.
  2088. * stack.h (clear_last_displayed_sal): Update header comment.
  2089. (last_displayed_sal_is_valid): Likewise.
  2090. (get_last_displayed_pspace): Likewise.
  2091. (get_last_displayed_addr): Likewise.
  2092. (get_last_displayed_symtab): Likewise.
  2093. (get_last_displayed_line): Likewise.
  2094. (get_last_displayed_sal): Likewise.
  2095. 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
  2096. * stack.c (frame_show_address): Convert return type to bool.
  2097. * stack.h (frame_show_address): Likewise, and update header
  2098. comment.
  2099. 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
  2100. * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
  2101. * unittests/vec-utils-selftests.c: New file.
  2102. * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
  2103. 2019-11-10 Tom Tromey <tom@tromey.com>
  2104. * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
  2105. (tui_highlight_win): Likewise.
  2106. (tui_win_info::check_and_display_highlight_if_needed): Likewise.
  2107. * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
  2108. * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
  2109. Don't set can_highlight.
  2110. 2019-11-10 Tom Tromey <tom@tromey.com>
  2111. * cli/cli-style.h (class cli_style_option) <cli_style_option>:
  2112. Remove unused declaration.
  2113. 2019-11-08 Tom Tromey <tromey@adacore.com>
  2114. * top.c (read_command_file): Update.
  2115. (command_line_input): Make return type const.
  2116. * python/py-gdb-readline.c: Update.
  2117. * linespec.c (decode_line_2): Update.
  2118. * defs.h (command_line_input): Make return type const.
  2119. * cli/cli-script.c (read_next_line): Make return type const.
  2120. * ada-lang.c (get_selections): Update.
  2121. 2019-11-06 Christian Biesinger <cbiesinger@google.com>
  2122. * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
  2123. * mi/mi-main.c (output_cores): Likewise.
  2124. * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
  2125. (linux_xfer_osdata_modules): Likewise.
  2126. * remote.c (register_remote_support_xml): Likewise.
  2127. * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
  2128. * xml-syscall.c (syscall_create_syscall_desc): Likewise.
  2129. 2019-11-06 Tom Tromey <tom@tromey.com>
  2130. * tui/tui-interp.c: Don't include readline.h.
  2131. * tui/tui-hooks.c: Don't include readline.h.
  2132. * symmisc.c: Include tilde.h, not readline.h.
  2133. * symfile.c: Include tilde.h, not readline.h.
  2134. * source.c: Include tilde.h, not readline.h.
  2135. * solib.c: Include tilde.h, not readline.h.
  2136. * psymtab.c: Include tilde.h, not readline.h.
  2137. * exec.c: Include tilde.h, not readline.h.
  2138. * corelow.c: Include tilde.h, not readline.h.
  2139. * cli/cli-dump.c: Include tilde.h, not readline.h.
  2140. * cli/cli-cmds.c: Don't include readline.h.
  2141. 2019-11-05 Tom Tromey <tom@tromey.com>
  2142. * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
  2143. (tui_disassemble): Set addr_size.
  2144. (tui_disasm_window::set_contents): Use addr_size.
  2145. 2019-11-05 Tom Tromey <tom@tromey.com>
  2146. * rust-lang.c (rust_language_defn): Update.
  2147. * python/py-value.c (valpy_string): Call c_get_string.
  2148. * p-lang.c (pascal_language_defn): Update.
  2149. * opencl-lang.c (opencl_language_defn): Update.
  2150. * objc-lang.c (objc_language_defn): Update.
  2151. * m2-lang.c (m2_language_defn): Update.
  2152. * language.c (unknown_language_defn, auto_language_defn): Update.
  2153. (default_get_string): Remove.
  2154. * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
  2155. * go-lang.c (go_language_defn): Update.
  2156. * f-lang.c (f_language_defn): Update.
  2157. * d-lang.c (d_language_defn): Update.
  2158. * c-lang.c (c_language_defn, cplus_language_defn)
  2159. (asm_language_defn, minimal_language_defn): Update.
  2160. * ada-lang.c (ada_language_defn): Update.
  2161. * language.h (struct language_defn) <la_get_string>: Remove.
  2162. (LA_GET_STRING): Remove.
  2163. (default_get_string): Don't declare.
  2164. 2019-11-05 Tom Tromey <tom@tromey.com>
  2165. * tui/tui-source.h (struct tui_source_window): Inline
  2166. constructor. Remove destructor.
  2167. <style_changed, m_observable>: Move to superclass.
  2168. * tui/tui-winsource.h (tui_copy_source_line): Declare.
  2169. (struct tui_source_window_base): Move private members to end.
  2170. <style_changed, m_observable>: Move from tui_source_window.
  2171. * tui/tui-winsource.c (tui_copy_source_line): Move from
  2172. tui-source.c. Rename from copy_source_line. Add special handling
  2173. for negative line number.
  2174. (tui_source_window_base::style_changed): Move from
  2175. tui_source_window.
  2176. (tui_source_window_base): Register observer.
  2177. (~tui_source_window_base): New.
  2178. * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
  2179. rename.
  2180. (tui_source_window::set_contents): Use tui_copy_source_line.
  2181. (tui_source_window::tui_source_window): Move to tui-source.h.
  2182. (tui_source_window::~tui_source_window): Remove.
  2183. (tui_source_window::style_changed): Move to superclass.
  2184. * tui/tui-disasm.c (tui_disassemble): Create string file with
  2185. styling, when possible. Add "addr_size" parameter.
  2186. (tui_disasm_window::set_contents): Use tui_copy_source_line.
  2187. Don't compute maximum size.
  2188. (len_without_escapes): New function
  2189. 2019-11-05 Tom Tromey <tom@tromey.com>
  2190. * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
  2191. std::string.
  2192. * tui/tui-winsource.c (tui_show_source_line): Update.
  2193. * tui/tui-source.c (tui_source_window::set_contents): Update.
  2194. * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
  2195. 2019-11-05 Christian Biesinger <cbiesinger@google.com>
  2196. * symtab.h (gdb_static_assert): Put && operator at the beginning
  2197. of the line instead of the end.
  2198. 2019-11-04 Christian Biesinger <cbiesinger@google.com>
  2199. * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
  2200. and sizeof (symbol).
  2201. * symtab.h: Add a static_assert for sizeof (partial_symbol).
  2202. 2019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  2203. * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
  2204. * configure.host: Mark *-*-solaris2.10* obsolete.
  2205. * configure.tgt: Mark Solaris < 11 obsolete.
  2206. * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
  2207. Update target triplet.
  2208. 2019-11-01 Tom Tromey <tromey@adacore.com>
  2209. * utils.c (print_sys_errmsg): Simplify.
  2210. 2019-11-01 Tom Tromey <tromey@adacore.com>
  2211. * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
  2212. 2019-11-01 Christian Biesinger <cbiesinger@google.com>
  2213. * configure: Regenerate.
  2214. * configure.ac: Remove check for strerror_r.
  2215. * gdbsupport/common.m4: Check for strerror_r.
  2216. 2019-11-01 Luis Machado <luis.machado@linaro.org>
  2217. PR gdb/25124
  2218. * arm-tdep.c (arm_per_objfile): Rename to ...
  2219. (arm_per_bfd): ... this.
  2220. (arm_objfile_data_key): Rename to ...
  2221. (arm_bfd_data_key): ... this.
  2222. (arm_find_mapping_symbol): Adjust access to new bfd_key-based
  2223. data.
  2224. (arm_record_special_symbol): Likewise.
  2225. 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
  2226. * ada-typeprint.c (ada_print_typedef): Don't print newline at the
  2227. end.
  2228. * c-typeprint.c (c_print_typedef): Likewise.
  2229. * f-typeprint.c (f_print_typedef): Likewise.
  2230. * m2-typeprint.c (m2_print_typedef): Likewise.
  2231. * p-typeprint.c (pascal_print_typedef): Likewise.
  2232. * rust-lang.c (rust_print_typedef): Likewise.
  2233. * symtab.c (print_symbol_info): Print a newline after calling
  2234. typedef_print.
  2235. 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
  2236. * symtab.c (info_module_cmdlist): New variable.
  2237. (info_module_command): New function.
  2238. (search_module_symbols): New function.
  2239. (info_module_subcommand): New function.
  2240. (struct info_modules_var_func_options): New struct.
  2241. (info_modules_var_func_options_defs): New variable.
  2242. (make_info_modules_var_func_options_def_group): New function.
  2243. (info_module_functions_command): New function.
  2244. (info_module_variables_command): New function.
  2245. (info_module_var_func_command_completer): New function.
  2246. (_initialize_symtab): Register new 'info module functions' and
  2247. 'info module variables' commands.
  2248. * symtab.h (typedef symbol_search_in_module): New typedef.
  2249. (search_module_symbols): Declare new function.
  2250. * NEWS: Mention new commands.
  2251. 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
  2252. * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
  2253. (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
  2254. (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
  2255. MODULES_DOMAIN.
  2256. (scan_partial_symbols): Only create partial module symbols for non
  2257. declarations.
  2258. * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
  2259. and MODULES_DOMAIN.
  2260. * symtab.c (search_domain_name): Likewise.
  2261. (search_symbols): Likewise.
  2262. (print_symbol_info): Likewise.
  2263. (symtab_symbol_info): Likewise.
  2264. (info_modules_command): New function.
  2265. (_initialize_symtab): Register 'info modules' command.
  2266. * symtab.h (enum search_domain): Add MODULES_DOMAIN.
  2267. * NEWS: Mention new 'info modules' command.
  2268. 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  2269. * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
  2270. and $_gdb_maint_setting_str.
  2271. 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  2272. * cli/cli-cmds.c (setting_cmd, value_from_setting)
  2273. (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
  2274. (str_value_from_setting, gdb_setting_str_internal_fn)
  2275. (gdb_maint_setting_str_internal_fn): New functions.
  2276. (_initialize_cli_cmds): Define the new convenience functions.
  2277. * cli/cli-setshow.h (get_setshow_command_value_string): Constify.
  2278. * cli/cli-setshow.c (get_setshow_command_value_string): Constify.
  2279. 2019-10-31 Christian Biesinger <cbiesinger@google.com>
  2280. * agent.c (set_can_use_agent): When the setting is turned on,
  2281. look up agent symbols if we don't have them yet.
  2282. (agent_new_objfile): Don't look up agent symbols when the agent
  2283. setting is off.
  2284. 2019-10-31 Christian Biesinger <cbiesinger@google.com>
  2285. * config.in: Regenerate.
  2286. 2019-10-31 Christian Biesinger <cbiesinger@google.com>
  2287. * configure: Regenerate.
  2288. * configure.ac: Check for strerror_r.
  2289. * gdbsupport/common-utils.h (safe_strerror): Change return value
  2290. to const char * and document that this function is now threadsafe.
  2291. * gdbsupport/posix-strerror.c (safe_strerror): Make buf
  2292. thread_local and call strerror_r, if available.
  2293. * utils.c (perror_string): Update.
  2294. (print_sys_errmsg): Update.
  2295. 2019-10-31 Luis Machado <luis.machado@linaro.org>
  2296. * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
  2297. objfile_key.
  2298. (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
  2299. objfile to fetch per-bfd data.
  2300. (arm_find_exidx_entry): Likewise.
  2301. 2019-10-31 Christian Biesinger <cbiesinger@google.com>
  2302. * gdbsupport/agent.c (debug_agent): Change type to bool.
  2303. (use_agent): Likewise.
  2304. (all_agent_symbols_look_up): Likewise.
  2305. (agent_loaded_p): Change return value to bool.
  2306. (agent_look_up_symbols): Update.
  2307. (agent_capability_check): Change return value to bool.
  2308. * gdbsupport/agent.h (agent_loaded_p): Likewise.
  2309. (debug_agent): Change type to bool.
  2310. (use_agent): Likewise.
  2311. (agent_capability_check): Change return value to bool.
  2312. 2019-10-30 Christian Biesinger <cbiesinger@google.com>
  2313. * minsyms.c (clear_minimal_symbol_hash_tables): New function.
  2314. (build_minimal_symbol_hash_tables): Code to clear the table moved
  2315. to clear_minimal_symbol_hash_tables.
  2316. (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
  2317. when needed.
  2318. 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
  2319. * infcmd.c: Remove includes.
  2320. * infrun.c: Remove includes.
  2321. 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
  2322. * ada-lang.h (GROW_VECT): Move to ada-lang.c.
  2323. (grow_vect): Remove declaration.
  2324. (ada_type_of_array): Remove declaration.
  2325. (ada_update_initial_language): Remove declaration.
  2326. (ada_fold_name): Remove declaration.
  2327. (ada_fill_in_ada_prototype): Remove declaration.
  2328. (user_select_syms): Remove declaration.
  2329. (get_selections): Remove declaration.
  2330. (ada_tag_type): Remove declaration.
  2331. (ada_value_tag): Remove declaration.
  2332. (ada_is_others_clause): Remove declaration.
  2333. (ada_in_variant): Remove declaration.
  2334. (ada_value_struct_elt): Remove declaration.
  2335. (ada_attribute_name): Remove declaration.
  2336. (ada_system_address_type): Remove declaration.
  2337. * ada-lang.c (ada_watch_location_expression): Make static.
  2338. (GROW_VECT): Move here from ada-lang.h.
  2339. (grow_vect): Make static.
  2340. (ada_update_initial_language): Make static.
  2341. (ada_fold_name): Make static.
  2342. (ada_type_of_array): Make static.
  2343. (encoded_ordered_before): Move up.
  2344. (sort_choices): Move up.
  2345. (print_signatures): Move up.
  2346. (ada_print_symbol_signature): Move up.
  2347. (get_selections): Move up and make static.
  2348. (user_select_syms): Move up and make static.
  2349. (ada_value_struct_elt): Move up and make static.
  2350. (ada_tag_type): Make static.
  2351. (ada_value_tag): Make static.
  2352. (ada_is_others_clause): Make static.
  2353. (ada_in_variant): Make static.
  2354. (ada_attribute_name): Make static.
  2355. 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
  2356. * ada-lang.c: Remove includes.
  2357. * ada-typeprint.c: Remove includes.
  2358. * ada-valprint.c: Remove includes.
  2359. 2019-10-29 Simon Marchi <simon.marchi@efficios.com>
  2360. * addrmap.c: Add static assertions of type size, moved from
  2361. _initialize_addrmap.
  2362. (_initialize_addrmap): Remove.
  2363. 2019-10-29 Christian Biesinger <cbiesinger@google.com>
  2364. * coffread.c (record_minimal_symbol): Update.
  2365. (process_coff_symbol): Update.
  2366. * dbxread.c (read_dbx_symtab): Update.
  2367. * dwarf2read.c (add_partial_symbol): Update.
  2368. (fixup_go_packaging): Update.
  2369. (load_partial_dies): Update.
  2370. (new_symbol): Update.
  2371. * elfread.c (record_minimal_symbol): Change signature to use
  2372. gdb::string_view instead of name+len.
  2373. (elf_symtab_read): Update.
  2374. (elf_rel_plt_read): Update.
  2375. * mdebugread.c (parse_partial_symbols): Update.
  2376. (handle_psymbol_enumerators): Update.
  2377. (new_symbol): Update.
  2378. * minsyms.c (minimal_symbol_reader::record_full): Change signature
  2379. to use gdb::string_view instead of name+len.
  2380. * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
  2381. * psympriv.h (add_psymbol_to_list): Likewise.
  2382. * psymtab.c (add_psymbol_to_bcache): Likewise.
  2383. (add_psymbol_to_list): Likewise.
  2384. * stabsread.c (define_symbol): Update.
  2385. * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
  2386. * symtab.h (SYMBOL_SET_NAMES): Likewise.
  2387. (symbol_set_names): Likewise.
  2388. * xcoffread.c (scan_xcoff_symtab): Update.
  2389. 2019-10-29 Christian Biesinger <cbiesinger@google.com>
  2390. * symtab.h (symbol_set_names): Document that copy_name must be
  2391. set to true for non-nullterminated strings.
  2392. * symtab.c (symbol_set_names): Only make a nullterminated copy of
  2393. linkage_name if the entry was not found and we need to demangle.
  2394. 2019-10-29 Christian Biesinger <cbiesinger@google.com>
  2395. * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
  2396. * dwarf2-frame.c (bsearch_fde_cmp): Update.
  2397. (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
  2398. * gdbsupport/gdb_binary_search.h: New file.
  2399. 2019-10-29 Christian Biesinger <cbiesinger@google.com>
  2400. * NEWS: Mention new --with-system-gdbinit-dir option.
  2401. * config.in: Regenerate.
  2402. * configure: Regenerate.
  2403. * configure.ac: Add new option --with-system-gdbinit-dir.
  2404. * extension.c (get_ext_lang_of_file): Return extension_language_gdb
  2405. for a ".gdb" suffix.
  2406. * main.c (get_init_files): Change system_gdbinit argument to
  2407. a vector and return the files in SYSTEM_GDBINIT_DIR in
  2408. addition to SYSTEM_GDBINIT.
  2409. (captured_main_1): Update.
  2410. (print_gdb_help): Update.
  2411. * top.c (print_gdb_configuration): Also print the value of
  2412. SYSTEM_GDBINIT_DIR.
  2413. 2019-10-28 Christian Biesinger <cbiesinger@google.com>
  2414. * gdbsupport/common-utils.h (startswith): Add an overloaded version
  2415. that takes gdb::string_view arguments.
  2416. 2019-10-26 Tom de Vries <tdevries@suse.de>
  2417. * aarch64-linux-tdep.c: Fix typos in comments.
  2418. * aarch64-tdep.c: Same.
  2419. * ada-lang.c: Same.
  2420. * amd64-nat.c: Same.
  2421. * arc-tdep.c: Same.
  2422. * arch/aarch64-insn.c: Same.
  2423. * block.c: Same.
  2424. * breakpoint.h: Same.
  2425. * btrace.h: Same.
  2426. * c-varobj.c: Same.
  2427. * cli/cli-decode.c: Same.
  2428. * cli/cli-script.c: Same.
  2429. * cli/cli-utils.h: Same.
  2430. * coff-pe-read.c: Same.
  2431. * coffread.c: Same.
  2432. * compile/compile-cplus-symbols.c: Same.
  2433. * compile/compile-object-run.c: Same.
  2434. * completer.c: Same.
  2435. * corelow.c: Same.
  2436. * cp-support.c: Same.
  2437. * demangle.c: Same.
  2438. * dwarf-index-write.c: Same.
  2439. * dwarf2-frame.c: Same.
  2440. * dwarf2-frame.h: Same.
  2441. * eval.c: Same.
  2442. * frame-base.h: Same.
  2443. * frame.h: Same.
  2444. * gdbcmd.h: Same.
  2445. * gdbtypes.h: Same.
  2446. * gnu-nat.c: Same.
  2447. * guile/scm-objfile.c: Same.
  2448. * i386-tdep.c: Same.
  2449. * i386-tdep.h: Same.
  2450. * infcall.c: Same.
  2451. * infcall.h: Same.
  2452. * linux-nat.c: Same.
  2453. * m68k-tdep.c: Same.
  2454. * macroexp.c: Same.
  2455. * memattr.c: Same.
  2456. * mi/mi-cmd-disas.c: Same.
  2457. * mi/mi-getopt.h: Same.
  2458. * mi/mi-main.c: Same.
  2459. * minsyms.c: Same.
  2460. * nat/aarch64-sve-linux-sigcontext.h: Same.
  2461. * objfiles.h: Same.
  2462. * ppc-linux-nat.c: Same.
  2463. * ppc-linux-tdep.c: Same.
  2464. * ppc-tdep.h: Same.
  2465. * progspace.h: Same.
  2466. * prologue-value.h: Same.
  2467. * python/py-evtregistry.c: Same.
  2468. * python/py-instruction.h: Same.
  2469. * record-btrace.c: Same.
  2470. * record-full.c: Same.
  2471. * remote.c: Same.
  2472. * rs6000-tdep.c: Same.
  2473. * ser-tcp.c: Same.
  2474. * sol-thread.c: Same.
  2475. * sparc-sol2-tdep.c: Same.
  2476. * sparc64-tdep.c: Same.
  2477. * stabsread.c: Same.
  2478. * symfile.c: Same.
  2479. * symtab.h: Same.
  2480. * target.c: Same.
  2481. * tracepoint.c: Same.
  2482. * tui/tui-data.h: Same.
  2483. * tui/tui-io.c: Same.
  2484. * tui/tui-win.c: Same.
  2485. * tui/tui.c: Same.
  2486. * unittests/rsp-low-selftests.c: Same.
  2487. * user-regs.h: Same.
  2488. * utils.c: Same.
  2489. * utils.h: Same.
  2490. * valarith.c: Same.
  2491. * valops.c: Same.
  2492. * valprint.c: Same.
  2493. * valprint.h: Same.
  2494. * value.c: Same.
  2495. * value.h: Same.
  2496. * varobj.c: Same.
  2497. * x86-nat.h: Same.
  2498. * xtensa-tdep.c: Same.
  2499. 2019-10-25 Ali Tamur <tamur@google.com>
  2500. * charset.c (find_charset_names): Reflect API change.
  2501. 2019-10-25 Christian Biesinger <cbiesinger@google.com>
  2502. * symtab.c (struct demangled_name_entry): Change demangled name
  2503. to a unique_xmalloc_ptr<char>, now that we don't allocate it as
  2504. part of the struct anymore.
  2505. (symbol_set_names): No longer obstack allocate + copy the demangled
  2506. name, just store the allocated name from bfd.
  2507. 2019-10-25 Tom Tromey <tromey@adacore.com>
  2508. * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
  2509. (bsearch_cie_cmp, add_cie): Remove.
  2510. (find_cie): Reimplement.
  2511. (decode_frame_entry_1, decode_frame_entry): Change type. Update.
  2512. (dwarf2_build_frame_info): Update.
  2513. 2019-10-24 H.J. Lu <hongjiu.lu@intel.com>
  2514. PR gdb/25126
  2515. * symfile.c (reread_symbols): Call forget_cached_source_info to
  2516. clear the stale source cache.
  2517. 2019-10-24 Christian Biesinger <cbiesinger@google.com>
  2518. * configure: Regenerate.
  2519. * configure.ac: Remove code that sets python_has_threads.
  2520. 2019-10-24 Christian Biesinger <cbiesinger@google.com>
  2521. * config.in: Regenerate.
  2522. * configure: Regenerate.
  2523. * configure.ac: Remove the code that uses sed to get the python
  2524. version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
  2525. 2019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
  2526. * python/py-progspace.c (pspy_block_for_pc): Return None for all
  2527. error paths.
  2528. 2019-10-23 Tom Tromey <tom@tromey.com>
  2529. * arc-tdep.c: Remove ".." from include.
  2530. * frv-tdep.c: Remove ".." from include.
  2531. * lm32-tdep.c: Remove ".." from include.
  2532. * microblaze-tdep.c: Remove ".." from include.
  2533. * or1k-tdep.h: Remove ".." from include.
  2534. * s12z-tdep.c: Remove ".." from include.
  2535. * Makefile.in (OPCODES_CFLAGS): Add comment.
  2536. (TOP_CFLAGS): New variable.
  2537. (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
  2538. 2019-10-23 Tom Tromey <tom@tromey.com>
  2539. * Makefile.in (READLINE_DIR): Update.
  2540. 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  2541. * infcall.c (call_function_by_hand_dummy): Fix the function
  2542. comment. And extract out a code section into...
  2543. (reserve_stack_space): ...this new function.
  2544. 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  2545. * infcall.c (value_arg_coerce): Remove an unused parameter.
  2546. (call_function_by_hand_dummy): Update the call to
  2547. 'value_arg_coerce'.
  2548. 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  2549. * infcall.c (call_function_by_hand_dummy): Refactor.
  2550. 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  2551. * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
  2552. 2019-10-23 Tom Tromey <tom@tromey.com>
  2553. * configure: Rebuild.
  2554. * configure.ac: Don't check for sigprocmask.
  2555. * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
  2556. 2019-10-23 Tom Tromey <tom@tromey.com>
  2557. * configure: Rebuild.
  2558. * acinclude.m4: Use m4_include, not sinclude.
  2559. 2019-10-23 Tom de Vries <tdevries@suse.de>
  2560. PR breakpoints/24687
  2561. * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
  2562. 2019-10-22 Christian Biesinger <cbiesinger@google.com>
  2563. * symtab.c (struct demangled_name_entry) <language>: Change from
  2564. bitfield to regular variable.
  2565. 2019-10-22 Christian Biesinger <cbiesinger@google.com>
  2566. * symtab.c (struct demangled_name_entry): Add a constructor.
  2567. (free_demangled_name_entry): New function to call the destructor
  2568. for demangled_name_entry.
  2569. (create_demangled_names_hash): Pass free_demangled_name_entry to
  2570. htab_create_alloc.
  2571. (symbol_set_names): Call placement new for demangled_name_entry.
  2572. * utils.c: No longer include xxhash.h here, now that fast_hash
  2573. is inlined in the header.
  2574. * utils.h: Instead, include it here.
  2575. 2019-10-22 Christian Biesinger <cbiesinger@google.com>
  2576. * Makefile.in: Link with libxxhash.
  2577. * config.in: Regenerate.
  2578. * configure: Regenerate.
  2579. * configure.ac: Search for libxxhash.
  2580. * utils.c (fast_hash): Use xxhash if present.
  2581. 2019-10-22 Christian Biesinger <cbiesinger@google.com>
  2582. * utils.h (fast_hash): New function.
  2583. * symtab.c (hash_demangled_name_entry): Call new function
  2584. fast_hash.
  2585. 2019-10-22 Christian Biesinger <cbiesinger@google.com>
  2586. * symtab.c (struct demangled_name_entry): Change type of mangled
  2587. to gdb::string_view. Also adds a constructor that takes the
  2588. mangled name.
  2589. (hash_demangled_name_entry): Update.
  2590. (eq_demangled_name_entry): Update.
  2591. (free_demangled_name_entry): New function to call the destructor
  2592. now that this is not a POD anymore.
  2593. (create_demangled_names_hash): Pass free_demangled_name_entry to
  2594. htab_create_alloc.
  2595. (symbol_set_names): Update.
  2596. 2019-10-21 Ali Tamur <tamu@google.com>
  2597. * dwarf2read.c (dir_index): Change type.
  2598. (file_name_index): Likewise.
  2599. (line_header::include_dir_at): Change comment and implementation on
  2600. whether it is DWARF 5.
  2601. (line_header::is_valid_file_index): New function.
  2602. (line_header::file_name_at): Change comment and implementation on
  2603. whether it is DWARF 5.
  2604. (line_header::file_names): Change to private field renamed as
  2605. m_file_names and introduce a new accessor method.
  2606. (line_header::file_names_size): New method.
  2607. (line_header::include_dirs): Change to private field and rename as
  2608. m_include_dirs.
  2609. (dw2_get_file_names_reader): Define local var at a smaller scope and
  2610. reflect API change.
  2611. (dwarf2_cu::setup_type_unit_groups): Reflect API change.
  2612. (process_structure_scope): Likewise.
  2613. (line_header::add_include_dir): Change message and reflect renaming.
  2614. (line_header::add_file_name): Likewise.
  2615. (read_formatted_entries): Handle DW_FORM_data16.
  2616. (dwarf_decode_line_header): Fix line header length calculation.
  2617. (psymtab_include_file_name): Change comment and API.
  2618. (lnp_state_machine::m_file): Update comment and reflect type change.
  2619. (lnp_state_machine::record_line): Reflect type change.
  2620. (dwarf_decode_lines): Reflect API change.
  2621. (file_file_name): Likewise.
  2622. (file_full_name): Likewise.
  2623. 2019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
  2624. * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
  2625. 2019-10-21 Tom Tromey <tom@tromey.com>
  2626. * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
  2627. 2019-10-21 Tom Tromey <tom@tromey.com>
  2628. * configure.ac (nm.h): Conditionally create nm.h link. Subst
  2629. NM_H. Use AC_CONFIG_LINKS.
  2630. * configure: Rebuild.
  2631. * Makefile.in (NM_H): New variable.
  2632. (generated_files): Add NM_H. Remove gcore.
  2633. (nm.h, stamp-nmh): New targets.
  2634. 2019-10-20 Tom Tromey <tom@tromey.com>
  2635. * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
  2636. * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
  2637. obsolete comment.
  2638. (put_objfile_before): Now static.
  2639. 2019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
  2640. * gdbsupport/common-utils.h (startswith): Change return type to
  2641. bool.
  2642. 2019-10-19 Christian Biesinger <cbiesinger@google.com>
  2643. * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
  2644. * breakpoint.c (bp_locations_compare): Rename to...
  2645. (bp_location_is_less_than): ...this, and change to std::sort semantics.
  2646. (update_global_location_list): Use std::sort instead of qsort.
  2647. * buildsym.c (compare_line_numbers): Rename to...
  2648. (lte_is_less_than): ...this, and change to std::sort semantics.
  2649. (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
  2650. instead of qsort.
  2651. * disasm.c (compare_lines): Rename to...
  2652. (line_is_less_than): ...this, and change to std::sort semantics.
  2653. (do_mixed_source_and_assembly_deprecated): Call std::sort instead
  2654. of qsort.
  2655. * dwarf2-frame.c (qsort_fde_cmp): Rename to...
  2656. (fde_is_less_than): ...this, and change to std::sort semantics.
  2657. (dwarf2_build_frame_info): Call std::sort instead of qsort.
  2658. * mdebugread.c (compare_blocks):
  2659. (block_is_less_than): ...this, and change to std::sort semantics.
  2660. (sort_blocks): Call std::sort instead of qsort.
  2661. * objfiles.c (qsort_cmp): Rename to...
  2662. (sort_cmp): ...this, and change to std::sort semantics.
  2663. (update_section_map): Call std::sort instead of qsort.
  2664. * remote.c (compare_pnums): Remove.
  2665. (map_regcache_remote_table): Call std::sort instead of qsort.
  2666. * utils.c (compare_positive_ints): Remove.
  2667. * utils.h (compare_positive_ints): Remove.
  2668. * xcoffread.c (compare_lte): Remove.
  2669. (arrange_linetable): Call std::sort instead of qsort.
  2670. 2019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
  2671. * symfile.c (init_entry_point_info): Fix typo.
  2672. * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
  2673. 2019-10-18 Tom de Vries <tdevries@suse.de>
  2674. * aarch64-tdep.c: Fix typos in comments.
  2675. * ada-lang.c: Same.
  2676. * ada-tasks.c: Same.
  2677. * alpha-tdep.c: Same.
  2678. * alpha-tdep.h: Same.
  2679. * amd64-nat.c: Same.
  2680. * amd64-windows-tdep.c: Same.
  2681. * arc-tdep.c: Same.
  2682. * arc-tdep.h: Same.
  2683. * arch-utils.c: Same.
  2684. * arm-nbsd-tdep.c: Same.
  2685. * arm-tdep.c: Same.
  2686. * ax-gdb.c: Same.
  2687. * blockframe.c: Same.
  2688. * btrace.c: Same.
  2689. * c-varobj.c: Same.
  2690. * coff-pe-read.c: Same.
  2691. * coffread.c: Same.
  2692. * cris-tdep.c: Same.
  2693. * darwin-nat.c: Same.
  2694. * dbxread.c: Same.
  2695. * dcache.c: Same.
  2696. * disasm.c: Same.
  2697. * dtrace-probe.c: Same.
  2698. * dwarf-index-write.c: Same.
  2699. * dwarf2-frame-tailcall.c: Same.
  2700. * dwarf2-frame.c: Same.
  2701. * dwarf2read.c: Same.
  2702. * eval.c: Same.
  2703. * exceptions.c: Same.
  2704. * fbsd-tdep.c: Same.
  2705. * findvar.c: Same.
  2706. * frame.c: Same.
  2707. * frv-tdep.c: Same.
  2708. * gnu-v3-abi.c: Same.
  2709. * go32-nat.c: Same.
  2710. * h8300-tdep.c: Same.
  2711. * hppa-tdep.c: Same.
  2712. * i386-linux-tdep.c: Same.
  2713. * i386-tdep.c: Same.
  2714. * ia64-libunwind-tdep.c: Same.
  2715. * ia64-tdep.c: Same.
  2716. * infcmd.c: Same.
  2717. * infrun.c: Same.
  2718. * linespec.c: Same.
  2719. * linux-nat.c: Same.
  2720. * linux-thread-db.c: Same.
  2721. * machoread.c: Same.
  2722. * mdebugread.c: Same.
  2723. * mep-tdep.c: Same.
  2724. * mn10300-tdep.c: Same.
  2725. * namespace.c: Same.
  2726. * objfiles.c: Same.
  2727. * opencl-lang.c: Same.
  2728. * or1k-tdep.c: Same.
  2729. * osabi.c: Same.
  2730. * ppc-linux-nat.c: Same.
  2731. * ppc-linux-tdep.c: Same.
  2732. * ppc-sysv-tdep.c: Same.
  2733. * printcmd.c: Same.
  2734. * procfs.c: Same.
  2735. * record-btrace.c: Same.
  2736. * record-full.c: Same.
  2737. * remote-fileio.c: Same.
  2738. * remote.c: Same.
  2739. * rs6000-tdep.c: Same.
  2740. * s12z-tdep.c: Same.
  2741. * score-tdep.c: Same.
  2742. * ser-base.c: Same.
  2743. * ser-go32.c: Same.
  2744. * skip.c: Same.
  2745. * sol-thread.c: Same.
  2746. * solib-svr4.c: Same.
  2747. * solib.c: Same.
  2748. * source.c: Same.
  2749. * sparc-nat.c: Same.
  2750. * sparc-sol2-tdep.c: Same.
  2751. * sparc-tdep.c: Same.
  2752. * sparc64-tdep.c: Same.
  2753. * stabsread.c: Same.
  2754. * stack.c: Same.
  2755. * symfile.c: Same.
  2756. * symtab.c: Same.
  2757. * target-descriptions.c: Same.
  2758. * target-float.c: Same.
  2759. * thread.c: Same.
  2760. * utils.c: Same.
  2761. * valops.c: Same.
  2762. * valprint.c: Same.
  2763. * value.c: Same.
  2764. * varobj.c: Same.
  2765. * windows-nat.c: Same.
  2766. * xcoffread.c: Same.
  2767. * xstormy16-tdep.c: Same.
  2768. * xtensa-tdep.c: Same.
  2769. 2019-10-17 Tom Tromey <tromey@adacore.com>
  2770. * configure: Rebuild.
  2771. * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
  2772. in AC_CONFIG_FILES invocation.
  2773. * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
  2774. new-style config.status invocation.
  2775. 2019-10-17 Tom de Vries <tdevries@suse.de>
  2776. * arm-nbsd-nat.c: Fix typos in comments.
  2777. * arm-tdep.c: Same.
  2778. * darwin-nat-info.c: Same.
  2779. * dwarf2read.c: Same.
  2780. * elfread.c: Same.
  2781. * event-top.c: Same.
  2782. * findvar.c: Same.
  2783. * gdbtypes.c: Same.
  2784. * hppa-tdep.c: Same.
  2785. * i386-tdep.c: Same.
  2786. * jit.c: Same.
  2787. * main.c: Same.
  2788. * mdebugread.c: Same.
  2789. * moxie-tdep.c: Same.
  2790. * nto-procfs.c: Same.
  2791. * osabi.c: Same.
  2792. * ppc-linux-tdep.c: Same.
  2793. * remote.c: Same.
  2794. * riscv-tdep.c: Same.
  2795. * s390-tdep.c: Same.
  2796. * sh-tdep.c: Same.
  2797. * sparc-linux-tdep.c: Same.
  2798. * sparc-nat.c: Same.
  2799. * stack.c: Same.
  2800. * target-descriptions.c: Same.
  2801. * top.c: Same.
  2802. * varobj.c: Same.
  2803. 2019-10-16 Tom Tromey <tom@tromey.com>
  2804. * objfiles.h (struct objfile) <original_name>: Now const.
  2805. 2019-10-16 Christian Biesinger <cbiesinger@google.com>
  2806. * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
  2807. pass on to sigsetjmp's second argument.
  2808. * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
  2809. 2019-10-16 Keith Seitz <keiths@redhat.com>
  2810. PR gdb/23567
  2811. * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
  2812. sections whose size is greater than the file size.
  2813. 2019-10-16 Jim Wilson <jimw@sifive.com>
  2814. * riscv-tdep.c (riscv_gcc_target_options): New.
  2815. (riscv_gnu_triplet_regexp): New.
  2816. (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
  2817. set_gdbarch_gnu_triplet_regexp.
  2818. 2019-10-16 Christian Biesinger <cbiesinger@google.com>
  2819. * Makefile.in: Add xml-builtin.h.
  2820. * features/feature_to_c.sh: Add an include for xml-builtin.h
  2821. to ensure that the compiler checks that the types match.
  2822. * xml-builtin.h: New file.
  2823. * xml-support.c (fetch_xml_builtin): Add missing const.
  2824. * xml-support.h: Remove declaration of xml_builtins.
  2825. 2019-10-16 Tom de Vries <tdevries@suse.de>
  2826. PR tdep/25096
  2827. * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
  2828. (amd64_classify_aggregate): ... here.
  2829. (amd64_classify_aggregate_field): Handled fiels of nested structs
  2830. recursively.
  2831. 2019-10-16 Tom de Vries <tdevries@suse.de>
  2832. PR tdep/24104
  2833. * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
  2834. that handles 'theclass'.
  2835. 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
  2836. * linespec.c (decode_digits_ordinary): Update comment.
  2837. * make-target-delegates: No longer need to handle VEC case.
  2838. * memrange.c (normalize_mem_ranges): Update comment.
  2839. * namespace.c (add_using_directive): Update comment.
  2840. * objc-lang.c (uniquify_strings): Update comment.
  2841. * ppc-linux-nat.c (struct thread_points): Update comment.
  2842. * probe.h (find_probes_in_objfile): Update comment.
  2843. * target.h (enum flash_preserve_mode): Update comment.
  2844. * varobj.c (varobj_restrict_range): Update comment.
  2845. * varobj.h (varobj_list_children): Update comment.
  2846. 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
  2847. * Makefile.in: Remove references to vec.h and vec.c.
  2848. * aarch64-tdep.c: No longer include vec.h.
  2849. * ada-lang.c: Likewise.
  2850. * ada-lang.h: Likewise.
  2851. * arm-tdep.c: Likewise.
  2852. * ax.h: Likewise.
  2853. * breakpoint.h: Likewise.
  2854. * charset.c: Likewise.
  2855. * cp-support.h: Likewise.
  2856. * dtrace-probe.c: Likewise.
  2857. * dwarf2read.c: Likewise.
  2858. * extension.h: Likewise.
  2859. * gdb_bfd.c: Likewise.
  2860. * gdbsupport/gdb_vecs.h: Likewise.
  2861. * gdbsupport/vec.c: Remove.
  2862. * gdbsupport/vec.h: Remove.
  2863. * gdbthread.h: Likewise.
  2864. * guile/scm-type.c: Likewise.
  2865. * inline-frame.c: Likewise.
  2866. * machoread.c: Likewise.
  2867. * memattr.c: Likewise.
  2868. * memrange.h: Likewise.
  2869. * namespace.h: Likewise.
  2870. * nat/linux-btrace.h: Likewise.
  2871. * osdata.c: Likewise.
  2872. * parser-defs.h: Likewise.
  2873. * progspace.h: Likewise.
  2874. * python/py-type.c: Likewise.
  2875. * record-btrace.c: Likewise.
  2876. * rust-exp.y: Likewise.
  2877. * solib-target.c: Likewise.
  2878. * stap-probe.c: Likewise.
  2879. * target-descriptions.c: Likewise.
  2880. * target-memory.c: Likewise.
  2881. * target.h: Likewise.
  2882. * varobj.c: Likewise.
  2883. * varobj.h: Likewise.
  2884. * xml-support.h: Likewise.
  2885. 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
  2886. * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
  2887. Update for new std::vector based implementation.
  2888. (process_psymtab_comp_unit_reader): Likewise.
  2889. (scan_partial_symbols): Likewise.
  2890. (recursively_compute_inclusions): Likewise.
  2891. (compute_compunit_symtab_includes): Likewise.
  2892. (process_imported_unit_die): Likewise.
  2893. (queue_and_load_dwo_tu): Likewise.
  2894. (follow_die_sig_1): Likewise.
  2895. * dwarf2read.h: Remove DEF_VEC_P.
  2896. (typedef dwarf2_per_cu_ptr): Remove.
  2897. (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
  2898. function.
  2899. (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
  2900. (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
  2901. (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
  2902. (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
  2903. std::vector.
  2904. 2019-10-15 Tom Tromey <tromey@adacore.com>
  2905. * windows-nat.c (windows_nat_target::resume): Use %x when logging
  2906. TID.
  2907. 2019-10-15 Tom Tromey <tromey@adacore.com>
  2908. * windows-nat.c (windows_nat_target::fetch_registers)
  2909. (windows_nat_target::store_registers): Rename "pid" to "tid".
  2910. 2019-10-15 Tom Tromey <tromey@adacore.com>
  2911. * gdbarch.h, gdbarch.c: Rebuild.
  2912. * gdbarch.sh (gcc_target_options): Change return type to
  2913. std::string.
  2914. * compile/compile.c (get_args): Update.
  2915. * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
  2916. * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
  2917. std::string.
  2918. * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
  2919. std::string.
  2920. * arch-utils.c (default_gcc_target_options): Return std::string.
  2921. * arch-utils.h (default_gcc_target_options): Return std::string.
  2922. * s390-tdep.c (s390_gcc_target_options): Return std::string.
  2923. 2019-10-15 Christian Biesinger <cbiesinger@google.com>
  2924. * breakpoint.c (breakpoint_chain): Make static.
  2925. * tui/tui-winsource.c: Call iterate_over_breakpoints instead
  2926. of accessing breakpoint_chain.
  2927. 2019-10-15 Christian Biesinger <cbiesinger@google.com>
  2928. * breakpoint.c (iterate_over_breakpoints): Change function pointer
  2929. to a gdb::function_view and return value to bool.
  2930. * breakpoint.h (iterate_over_breakpoints): Likewise.
  2931. * dummy-frame.c (pop_dummy_frame_bpt): Update.
  2932. (pop_dummy_frame): Update.
  2933. * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
  2934. (gdbscm_breakpoints): Update.
  2935. * python/py-breakpoint.c (build_bp_list): Update.
  2936. (gdbpy_breakpoints): Update.
  2937. * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
  2938. Update.
  2939. (bpfinishpy_handle_stop): Update.
  2940. (bpfinishpy_handle_exit): Update.
  2941. * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
  2942. (svr4_update_solib_event_breakpoints): Update.
  2943. 2019-10-15 Andreas Arnez <arnez@linux.ibm.com>
  2944. * s390-tdep.c (s390_effective_inner_type): Ignore static fields
  2945. when unwrapping single-field structs.
  2946. 2019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
  2947. * dwarf2read.c: Remove includes.
  2948. 2019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
  2949. * ui-out.c (ui_out::call_do_message): Silence
  2950. -Wformat-nonliteral warning.
  2951. 2019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
  2952. * breakpoint.c: Remove some includes: continuations.h, skip.h,
  2953. mi/mi-main.h, readline/readline.h, readline/history.h. Add
  2954. include: readline/tilde.h.
  2955. 2019-10-12 Christian Biesinger <cbiesinger@google.com>
  2956. * remote.c (remote_target::get_trace_status): Remove declaration of
  2957. trace_regblock_size.
  2958. 2019-10-12 Christian Biesinger <cbiesinger@google.com>
  2959. * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
  2960. (show_user): Remove declaration of cmdlist.
  2961. * cli/cli-cmds.h (max_user_call_depth): Declare.
  2962. * cli/cli-script.c (execute_user_command): Remove declaration
  2963. of max_user_call_depth.
  2964. 2019-10-11 Jim Wilson <jimw@sifive.com>
  2965. * gdbsupport/print-utils.h (pulongest): Fix comment.
  2966. (plongest): Likewise.
  2967. (phex): Add missing comment, mention leading zeros.
  2968. (phex_nz): Add mention of no leading zeros to comment.
  2969. * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
  2970. plongest instead of unsigned long long cast.
  2971. 2019-10-10 Christian Biesinger <cbiesinger@google.com>
  2972. * main.c (captured_main_1): Include gdbtk.h and remove declarations
  2973. for external_editor_command and gdbtk_test.
  2974. 2019-10-10 Christian Biesinger <cbiesinger@google.com>
  2975. * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
  2976. * varobj.c (varobjdebug): Move comment to...
  2977. * varobj.h (varobjdebug): ...here, and declare.
  2978. 2019-10-09 Tom Tromey <tom@tromey.com>
  2979. * tui/tui-regs.c (tui_data_window::show_registers): Don't call
  2980. erase_data_content.
  2981. 2019-10-09 Tom Tromey <tom@tromey.com>
  2982. * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
  2983. * tui/tui-stack.c (tui_locator_window::rerender): Update.
  2984. * tui/tui-command.c (tui_cmd_window::resize)
  2985. (tui_refresh_cmd_win): Update.
  2986. * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
  2987. * tui/tui.c (tui_rl_other_window, tui_enable): Update.
  2988. * tui/tui-data.c (~tui_gen_win_info): Remove.
  2989. * tui/tui-layout.c (tui_gen_win_info::resize): Update.
  2990. * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
  2991. (tui_redisplay_readline, tui_mld_flush)
  2992. (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
  2993. * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
  2994. (tui_data_window::erase_data_content)
  2995. (tui_data_item_window::rerender)
  2996. (tui_data_item_window::refresh_window): Update.
  2997. * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
  2998. (box_win, tui_gen_win_info::make_window)
  2999. (tui_gen_win_info::make_visible): Update.
  3000. (tui_delete_win): Remove.
  3001. * tui/tui-winsource.c
  3002. (tui_source_window_base::do_erase_source_content): Update.
  3003. (tui_show_source_line, tui_source_window_base::update_tab_width)
  3004. (tui_source_window_base::update_exec_info): Update.
  3005. * tui/tui-data.h (struct curses_deleter): New.
  3006. (struct tui_gen_win_info) <handle>: Now a unique_ptr.
  3007. (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
  3008. 2019-10-09 Tom Tromey <tom@tromey.com>
  3009. * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
  3010. 2019-10-09 Tom Tromey <tom@tromey.com>
  3011. * tui/tui-data.c (tui_win_is_auxiliary): Remove.
  3012. * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
  3013. 2019-10-09 Tom Tromey <tom@tromey.com>
  3014. * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
  3015. window height directly.
  3016. * tui/tui-layout.h (tui_default_win_viewport_height): Don't
  3017. declare.
  3018. * tui/tui-layout.c (tui_default_win_height): Remove.
  3019. (tui_default_win_viewport_height): Remove.
  3020. 2019-10-09 Tom Tromey <tom@tromey.com>
  3021. * tui/tui.h: Remove comments.
  3022. 2019-10-09 Tom de Vries <tdevries@suse.de>
  3023. * python/lib/gdb/printer/bound_registers.py: Use
  3024. '^builtin_type_bound128' as regexp argument for
  3025. add_builtin_pretty_printer.
  3026. 2019-10-09 Christian Biesinger <cbiesinger@google.com>
  3027. * guile/guile.c (guile_extension_script_ops): Remove forward
  3028. declaration and mark as static.
  3029. (guile_script_ops): Likewise.
  3030. (extension_language_guile): Move further down in the file so
  3031. it can reference the definitions for guile_{extension_,}script_ops.
  3032. 2019-10-09 Andreas Arnez <arnez@linux.ibm.com>
  3033. * s390-tdep.c (390_process_record): Handle new arch13 instructions
  3034. except SORTL, DFLTCC, and KDSA.
  3035. 2019-10-08 Tom Tromey <tromey@adacore.com>
  3036. * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
  3037. (struct safe_symbol_file_add_args): Remove.
  3038. 2019-10-08 Tom Tromey <tromey@adacore.com>
  3039. * windows-nat.c: Don't include buildsym-legacy.h.
  3040. 2019-10-08 Tom Tromey <tromey@adacore.com>
  3041. * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
  3042. 2019-10-08 Christian Biesinger <cbiesinger@google.com>
  3043. * gdbtypes.c (overload_debug): Move comment to header.
  3044. * gdbtypes.h (overload_debug): Declare.
  3045. * valops.c: Remove declaration of overload_debug, instead
  3046. include gdbtypes.h.
  3047. 2019-10-08 Christian Biesinger <cbiesinger@google.com>
  3048. * language.c (show_language_command): Pass lang_frame_mismatch_warn
  3049. through _().
  3050. (lang_frame_mismatch_warn): Make const, mark with N_(), and
  3051. move comment...
  3052. * language.h (lang_frame_mismatch_warn): ... here. Also add
  3053. declaration.
  3054. * top.c (lang_frame_mismatch_warn): Remove declaration.
  3055. (check_frame_language_change): Pass lang_frame_mismatch_warn
  3056. through _().
  3057. 2019-10-07 Christian Biesinger <cbiesinger@google.com>
  3058. * c-lang.h (vtbl_ptr_name): Declare.
  3059. * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
  3060. it from the header.
  3061. * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
  3062. 2019-10-07 Christian Biesinger <cbiesinger@google.com>
  3063. * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
  3064. gdb_static_assert.
  3065. 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
  3066. * ../Makefile.def (dependencies): Add all-libctf to all-gdb
  3067. * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
  3068. * ctfread.c: New file.
  3069. * ctfread.h: New file.
  3070. * elfread.c: Include ctfread.h.
  3071. (struct elfinfo text_p): New member ctfsect.
  3072. (elf_locate_sections): Mark CTF section.
  3073. (elf_symfile_read): Call elfctf_build_psymtabs.
  3074. * Makefile.in (LIBCTF): Add.
  3075. (CLIBS): Use it.
  3076. (CDEPS): Likewise.
  3077. (DIST): Add ctfread.c.
  3078. 2019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
  3079. * ctfread.c (struct nextfield): Renamed to ...
  3080. (struct ctf_nextfield): ... this.
  3081. (struct field_info): Renamed to ...
  3082. (strut ctf_field_info): ... this.
  3083. (attach_fields_to_type): Update for renamed structures.
  3084. (ctf_add_member_cb): Likewise.
  3085. (ctf_add_enum_member_cb): Likewise.
  3086. (process_struct_members): Likewise.
  3087. (process_enum_type): Likewise.
  3088. 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
  3089. * tracectf.h: Rename, was ctf.h.
  3090. * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
  3091. * tracefile.c: Likewise.
  3092. * tracepoint.c: Remove unused include ctf.h.
  3093. * mi/mi-main.c: Likewise.
  3094. * Makefile.in Replace ctf.c with tracectf.c.
  3095. 2019-10-06 Joel Brobecker <brobecker@adacore.com>
  3096. * version.in: Change version number to "9.0.50.DATE-git".
  3097. 2019-10-03 Tom Tromey <tom@tromey.com>
  3098. PR rust/24976:
  3099. * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
  3100. 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
  3101. * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
  3102. cp_search_name_hash.
  3103. * NEWS: Add entry about nested function support.
  3104. 2019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
  3105. Andrew Burgess <andrew.burgess@embecosm.com>
  3106. * cp-namespace.c (cp_search_static_and_baseclasses): Only search
  3107. for nested static variables when searchin VAR_DOMAIN.
  3108. * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
  3109. global scope, update comment.
  3110. (add_partial_subprogram): Call add_partial_subprogram recursively
  3111. for nested subroutines when processinng Fortran.
  3112. (load_partial_dies): Process the child entities of a subprogram
  3113. when processing Fortran.
  3114. (partial_die_parent_scope): Handle building scope
  3115. for Fortran nested functions.
  3116. (process_die): Record that nested functions have a scope.
  3117. (new_symbol): Always record Fortran subprograms on the global
  3118. symbol list.
  3119. (determine_prefix): How to build the prefix for Fortran
  3120. subprograms.
  3121. 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
  3122. * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
  3123. have just sent the thread a SIGSTOP and are waiting for it to
  3124. arrive.
  3125. 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
  3126. * btrace.c (btrace_add_pc): Remove whitespace before the template
  3127. parameter in 'std::vector <...>'.
  3128. (parse_xml_btrace_block): Likewise.
  3129. (btrace_maint_decode_pt): Likewise.
  3130. (btrace_maint_update_packets): Likewise.
  3131. (btrace_maint_print_packets): Likewise.
  3132. * btrace.h (struct btrace_maint_info): Likewise.
  3133. * dwarf2read.c (struct type_unit_group): Likewise.
  3134. (build_type_psymtabs_reader): Likewise.
  3135. * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
  3136. * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
  3137. * nat/linux-btrace.c (perf_event_read_bts): Likewise.
  3138. 2019-10-03 Tom de Vries <tdevries@suse.de>
  3139. * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
  3140. the first line of the help text for set/show style metadata.
  3141. 2019-10-02 Tom Tromey <tromey@adacore.com>
  3142. * Makefile.in (COMMON_SFILES): Add common-inferior.c.
  3143. * gdbsupport/common-inferior.c: New file.
  3144. * infcmd.c (startup_with_shell): Don't define.
  3145. * nat/fork-inferior.h (startup_with_shell): Don't declare.
  3146. * gdbsupport/common-inferior.h (startup_with_shell): Declare.
  3147. * inferior.h (startup_with_shell): Don't declare.
  3148. 2019-10-02 Christian Biesinger <cbiesinger@google.com>
  3149. * gdbsupport/gdb_assert.h: Include errors.h.
  3150. * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
  3151. 2019-10-02 Tom Tromey <tromey@adacore.com>
  3152. * NEWS: Add $_ada_exception entry.
  3153. * ada-lang.c (struct ada_catchpoint): Add constructor.
  3154. <m_kind>: New member.
  3155. (allocate_location_exception, re_set_exception): Remove
  3156. "ex" parameter.
  3157. (should_stop_exception): Compute $_ada_exception.
  3158. (check_status_exception, print_it_exception)
  3159. (print_one_exception, print_mention_exception): Remove
  3160. "ex" parameter.
  3161. (allocate_location_catch_exception, re_set_catch_exception)
  3162. (check_status_exception, print_it_catch_exception)
  3163. (print_one_catch_exception, print_mention_catch_exception)
  3164. (print_recreate_catch_exception)
  3165. (allocate_location_catch_exception_unhandled)
  3166. (re_set_catch_exception_unhandled)
  3167. (check_status_exception, print_it_catch_exception_unhandled)
  3168. (print_one_catch_exception_unhandled)
  3169. (print_mention_catch_exception_unhandled)
  3170. (print_recreate_catch_exception_unhandled)
  3171. (allocate_location_catch_assert, re_set_catch_assert)
  3172. (check_status_assert, print_it_catch_assert)
  3173. (print_one_catch_assert, print_mention_catch_assert)
  3174. (print_recreate_catch_assert)
  3175. (allocate_location_catch_handlers, re_set_catch_handlers)
  3176. (check_status_handlers, print_it_catch_handlers)
  3177. (print_one_catch_handlers, print_mention_catch_handlers)
  3178. (print_recreate_catch_handlers): Remove.
  3179. (create_ada_exception_catchpoint): Update.
  3180. (initialize_ada_catchpoint_ops): Update.
  3181. 2019-10-02 Tom Tromey <tromey@adacore.com>
  3182. * ada-lang.c (ada_lookup_simple_minsyms): Remove.
  3183. (create_excep_cond_exprs): Simplify exception string computation.
  3184. (ada_exception_catchpoint_cond_string): Likewise.
  3185. 2019-10-02 Tom Tromey <tromey@adacore.com>
  3186. * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
  3187. * ada-lang.c (lesseq_defined_than): Handle
  3188. LOC_STATIC.
  3189. * dwarf2read.c (dwarf2_per_objfile): Add can_copy
  3190. parameter.
  3191. (dwarf2_has_info): Likewise.
  3192. (new_symbol): Set maybe_copied on symbol when
  3193. appropriate.
  3194. * dwarf2read.h (dwarf2_per_objfile): Add can_copy
  3195. parameter.
  3196. <can_copy>: New member.
  3197. * elfread.c (record_minimal_symbol): Set maybe_copied
  3198. on symbol when appropriate.
  3199. (elf_symfile_read): Update call to dwarf2_has_info.
  3200. * minsyms.c (lookup_minimal_symbol_linkage): New
  3201. function.
  3202. * minsyms.h (lookup_minimal_symbol_linkage): Declare.
  3203. * symtab.c (get_symbol_address, get_msymbol_address):
  3204. New functions.
  3205. * symtab.h (get_symbol_address, get_msymbol_address):
  3206. Declare.
  3207. (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
  3208. maybe_copied.
  3209. (struct symbol, struct minimal_symbol) <maybe_copied>:
  3210. New member.
  3211. 2019-10-02 Tom Tromey <tromey@adacore.com>
  3212. * source.c (struct current_source_location): New.
  3213. (current_source_key): New global.
  3214. (current_source_symtab, current_source_line)
  3215. (current_source_pspace): Remove.
  3216. (get_source_location): New function.
  3217. (get_current_source_symtab_and_line)
  3218. (set_default_source_symtab_and_line)
  3219. (set_current_source_symtab_and_line)
  3220. (clear_current_source_symtab_and_line, select_source_symtab)
  3221. (info_source_command, print_source_lines_base)
  3222. (info_line_command, search_command_helper, _initialize_source):
  3223. Update.
  3224. 2019-10-02 Tom Tromey <tromey@adacore.com>
  3225. * source.c (select_source_symtab): Don't call
  3226. decode_line_with_current_source.
  3227. 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
  3228. * symtab.c (lookup_global_symbol): Search global block.
  3229. 2019-10-02 Tom Tromey <tromey@adacore.com>
  3230. * coffread.c (process_coff_symbol): Update.
  3231. * dwarf2read.c (var_decode_location, new_symbol): Update.
  3232. * mdebugread.c (parse_symbol): Update.
  3233. * objfiles.c (relocate_one_symbol): Update.
  3234. * stabsread.c (define_symbol, fix_common_block)
  3235. (scan_file_globals): Update.
  3236. * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
  3237. (SET_SYMBOL_VALUE_ADDRESS): New macro.
  3238. * xcoffread.c (process_xcoff_symbol): Update.
  3239. 2019-10-02 Andreas Arnez <arnez@linux.ibm.com>
  3240. * MAINTAINERS: Update my email address.
  3241. 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
  3242. * dwarf2read.c (struct type_unit_group) <tus>: Convert to
  3243. std::vector.
  3244. (build_type_psymtabs_reader): Update for std::vector.
  3245. (build_type_psymtab_dependencies): Likewise.
  3246. * dwarf2read.h: Remove use of DEF_VEC_P.
  3247. (typedef sig_type_ptr): Delete.
  3248. 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
  3249. * btrace.c (btrace_maint_clear): Update to handle change from VEC
  3250. to std::vector.
  3251. (btrace_maint_decode_pt): Likewise, and move allocation of the
  3252. vector outside of the loop.
  3253. (btrace_maint_update_packets): Update to handle change from VEC to
  3254. std::vector.
  3255. (btrace_maint_print_packets): Likewise.
  3256. (maint_info_btrace_cmd): Likewise.
  3257. * btrace.h: Remove use of DEF_VEC_O.
  3258. (typedef btrace_pt_packet_s): Delete.
  3259. (struct btrace_maint_info) <packets>: Change fromm VEC to
  3260. std::vector.
  3261. * gdbsupport/btrace-common.h: Remove 'vec.h' include.
  3262. 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
  3263. * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
  3264. make accesses into the vector constant references.
  3265. (btrace_add_pc): Update for std::vector.
  3266. (btrace_stitch_bts): Likewise.
  3267. (parse_xml_btrace_block): Likewise.
  3268. (btrace_maint_update_packets): Likewise.
  3269. (btrace_maint_print_packets): Likewise.
  3270. (maint_info_btrace_cmd): Likewise.
  3271. * gdbsupport/btrace-common.c (btrace_data::fini): Update for
  3272. std::vector.
  3273. (btrace_data::empty): Likewise.
  3274. (btrace_data_append): Likewise.
  3275. * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
  3276. (typedef btrace_block_s): Delete.
  3277. (struct btrace_block): Add constructor.
  3278. (struct btrace_data_bts) <blocks>: Change to std::vector.
  3279. * nat/linux-btrace.c (perf_event_read_bts): Update for
  3280. std::vector.
  3281. (linux_read_bts): Likewise.
  3282. 2019-10-01 Tom Tromey <tom@tromey.com>
  3283. * cli/cli-logging.c (show_logging_filename): Use styled_string.
  3284. 2019-10-01 Tom Tromey <tom@tromey.com>
  3285. * stack.c (print_frame, info_frame_command_core): Use
  3286. styled_string.
  3287. * linux-thread-db.c (try_thread_db_load_1)
  3288. (try_thread_db_load_from_pdir_1): Use styled_string.
  3289. * auto-load.c (file_is_auto_load_safe, execute_script_contents)
  3290. (auto_load_section_scripts, info_auto_load_local_gdbinit)
  3291. (maybe_print_unsupported_script_warning)
  3292. (maybe_print_script_not_found_warning): Use styled_string.
  3293. * ada-lang.c (user_select_syms): Use styled_string.
  3294. 2019-10-01 Tom Tromey <tom@tromey.com>
  3295. * p-lang.c (pascal_printstr): Use metadata style.
  3296. * value.c (show_convenience): Use metadata style.
  3297. * valprint.c (valprint_check_validity, val_print_optimized_out)
  3298. (val_print_not_saved, val_print_unavailable)
  3299. (val_print_invalid_address, generic_val_print, val_print)
  3300. (value_check_printable, val_print_array_elements): Use metadata
  3301. style.
  3302. * ui-out.h (class ui_out) <field_fmt>: New overload.
  3303. <do_field_fmt>: Add style parameter.
  3304. * ui-out.c (ui_out::field_fmt): New overload.
  3305. * typeprint.c (type_print_unknown_return_type)
  3306. (val_print_not_allocated, val_print_not_associated): Use metadata
  3307. style.
  3308. * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
  3309. parameter.
  3310. * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
  3311. * tracepoint.c (tvariables_info_1): Use metadata style.
  3312. * stack.c (print_frame_arg, print_frame_info, print_frame)
  3313. (info_frame_command_core): Use metadata style.
  3314. * skip.c (info_skip_command): Use metadata style.
  3315. * rust-lang.c (rust_print_enum): Use metadata style.
  3316. * python/py-prettyprint.c (print_stack_unless_memory_error): Use
  3317. metadata style.
  3318. * python/py-framefilter.c (py_print_single_arg): Use metadata
  3319. style.
  3320. * printcmd.c (do_one_display, print_variable_and_value): Use
  3321. metadata style.
  3322. * p-valprint.c (pascal_val_print)
  3323. (pascal_object_print_value_fields): Use metadata style.
  3324. * p-typeprint.c (pascal_type_print_base): Use metadata style.
  3325. * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
  3326. parameter.
  3327. * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
  3328. * m2-valprint.c (m2_print_long_set): Use metadata style.
  3329. * m2-typeprint.c (m2_print_type): Use metadata style.
  3330. * infcmd.c (print_return_value_1): Use metadata style.
  3331. * gnu-v3-abi.c (print_one_vtable): Use metadata style.
  3332. * f-valprint.c (info_common_command_for_block): Use metadata
  3333. style.
  3334. * f-typeprint.c (f_type_print_base): Use metadata style.
  3335. * expprint.c (print_subexp_standard): Use metadata style.
  3336. * cp-valprint.c (cp_print_value_fields): Use metadata style.
  3337. * cli/cli-style.h (class cli_style_option): Add constructor.
  3338. (metadata_style): Declare.
  3339. * cli/cli-style.c (metadata_style): New global.
  3340. (_initialize_cli_style): Register metadata style.
  3341. * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
  3342. parameter.
  3343. * cli-out.c (cli_ui_out::do_field_fmt): Update.
  3344. * c-typeprint.c (c_type_print_base_struct_union)
  3345. (c_type_print_base_1): Use metadata style.
  3346. * breakpoint.c (watchpoint_value_print)
  3347. (print_one_breakpoint_location): Use metadata style.
  3348. * break-catch-syscall.c (print_one_catch_syscall): Use metadata
  3349. style.
  3350. * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
  3351. style.
  3352. * ada-valprint.c (val_print_packed_array_elements, printstr)
  3353. (print_field_values, ada_val_print_ref, ada_val_print): Use
  3354. metadata style.
  3355. * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
  3356. style.
  3357. * ada-tasks.c (print_ada_task_info, info_task): Use metadata
  3358. style.
  3359. * ada-lang.c (user_select_syms): Use metadata style.
  3360. 2019-10-01 Tom Tromey <tom@tromey.com>
  3361. * cli/cli-cmds.c (pwd_command): Style output.
  3362. 2019-10-01 Pedro Alves <palves@redhat.com>
  3363. Tom Tromey <tom@tromey.com>
  3364. * symtab.c (print_symbol_info): Use %ps.
  3365. (print_msymbol_info): Use %ps.
  3366. * symfile.c (symbol_file_add_with_addrs): Use %ps.
  3367. * printcmd.c (print_variable_and_value): Use %ps.
  3368. * macrocmd.c (show_pp_source_pos): Use %ps.
  3369. * infrun.c (print_exited_reason): Use ui_out::message.
  3370. * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
  3371. (describe_other_breakpoints): Use ui_out::message and new
  3372. formats.
  3373. (say_where): Use new formats.
  3374. (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
  3375. and new formats.
  3376. 2019-10-01 Pedro Alves <palves@redhat.com>
  3377. Tom Tromey <tom@tromey.com>
  3378. * unittests/format_pieces-selftests.c: Add gdb_format parameter.
  3379. (test_gdb_formats): New function.
  3380. (run_tests): Call it.
  3381. (test_format_specifier): Update.
  3382. * utils.h (fputs_filtered): Update comment.
  3383. (vfprintf_styled, vfprintf_styled_no_gdbfmt)
  3384. (fputs_styled_unfiltered): Declare.
  3385. * utils.c (fputs_styled_unfiltered): New function.
  3386. (vfprintf_maybe_filtered): Add gdbfmt parameter.
  3387. (vfprintf_filtered): Update.
  3388. (vfprintf_unfiltered, vprintf_filtered): Update.
  3389. (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
  3390. * ui-out.h (enum ui_out_flag) <unfiltered_output,
  3391. disallow_ui_out_field>: New constants.
  3392. (enum class field_kind): New.
  3393. (struct base_field_s, struct signed_field_s): New.
  3394. (signed_field): New function.
  3395. (struct string_field_s): New.
  3396. (string_field): New function.
  3397. (struct styled_string_s): New.
  3398. (styled_string): New function.
  3399. (class ui_out) <message>: Add comment.
  3400. <vmessage, call_do_message>: New methods.
  3401. <do_message>: Add style parameter.
  3402. * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
  3403. methods.
  3404. (ui_out::message): Rewrite.
  3405. * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
  3406. parameter.
  3407. * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
  3408. * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
  3409. gdb_extensions parameter.
  3410. (class format_piece): Add parameter to constructor.
  3411. (n_int_args): New field.
  3412. * gdbsupport/format.c (format_pieces::format_pieces): Add
  3413. gdb_extensions parameter. Handle '*'.
  3414. * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
  3415. * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
  3416. vfprintf_styled_no_gdbfmt.
  3417. (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
  3418. (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
  3419. unfiltered output.
  3420. * ui-style.h (struct ui_file_style) <ptr>: New method.
  3421. 2019-10-01 Tom Tromey <tom@tromey.com>
  3422. * unittests/format_pieces-selftests.c: Update. Add final format.
  3423. * gdbsupport/format.c (format_pieces::format_pieces): Don't add
  3424. empty literal pieces.
  3425. 2019-10-01 Tom Tromey <tom@tromey.com>
  3426. * ui-out.h (enum class ui_out_style_kind): Remove.
  3427. (class ui_out) <field_string, field_stsream, do_field_string>:
  3428. Change type of "style".
  3429. * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
  3430. (ui_out::field_string): Update.
  3431. * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
  3432. of "style".
  3433. * tui/tui-out.c (tui_ui_out::do_field_string): Update.
  3434. * tracepoint.c (print_one_static_tracepoint_marker): Update.
  3435. * stack.c (print_frame_arg, print_frame_info, print_frame):
  3436. Update.
  3437. * source.c (print_source_lines_base): Update.
  3438. * solib.c (info_sharedlibrary_command): Update.
  3439. * skip.c (info_skip_command): Update.
  3440. * record-btrace.c (btrace_call_history_src_line)
  3441. (btrace_call_history): Update.
  3442. * python/py-framefilter.c (py_print_frame): Update.
  3443. * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
  3444. "style".
  3445. * mi/mi-out.c (mi_ui_out::do_table_header)
  3446. (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
  3447. (mi_ui_out::do_field_string): Update.
  3448. * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
  3449. Update.
  3450. * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
  3451. "style".
  3452. * cli-out.c (cli_ui_out::do_table_header)
  3453. (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
  3454. (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
  3455. (cli_ui_out::do_field_fmt): Update.
  3456. * breakpoint.c (print_breakpoint_location): Update.
  3457. (update_static_tracepoint): Update.
  3458. 2019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  3459. * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
  3460. conversion of gdb_datadir.
  3461. (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
  3462. remove not needed c_str ().
  3463. 2019-09-30 Ali Tamur <tamur@google.com>
  3464. * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
  3465. (dwarf2_string_attr): Likewise.
  3466. 2019-09-30 Ali Tamur <tamur@google.com>
  3467. * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
  3468. (process_full_type_unit): Likewise.
  3469. (dump_die_shallow): Likewise.
  3470. (cu_debug_loc_section): Likewise.
  3471. 2019-09-28 Christian Biesinger <cbiesinger@google.com>
  3472. * minsyms.c (compare_minimal_symbols): Rename to...
  3473. (minimal_symbol_is_less_than): ...this, and adjust to STL
  3474. conventions (return bool, take arguments as references)
  3475. (minimal_symbol_reader::install): Call std::sort instead
  3476. of qsort.
  3477. 2019-09-29 Christian Biesinger <cbiesinger@google.com>
  3478. * minsyms.h (msymbol_hash): Document that this is a case-insensitive
  3479. hash and why.
  3480. * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
  3481. msymbol_hash, msymbol_demangled_hash>: Improve comments.
  3482. 2019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
  3483. * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
  3484. * psympriv.h (add_psymbol_to_list): Move comment here and update
  3485. it.
  3486. 2019-09-29 Tom de Vries <tdevries@suse.de>
  3487. * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
  3488. Use $tmpdir/$(basename "$output_file").dwz instead of
  3489. "${output_file}.dwz".
  3490. 2019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
  3491. PR gdb/25045
  3492. * hppa-linux-nat.c: Include gdbarch.h.
  3493. 2019-09-26 Christian Biesinger <cbiesinger@google.com>
  3494. * blockframe.c (find_pc_partial_function): Change return type to bool.
  3495. * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
  3496. * minsyms.c (in_gnu_ifunc_stub): Likewise.
  3497. (stub_gnu_ifunc_resolve_name): Likewise.
  3498. * symtab.c (compare_filenames_for_search): Likewise.
  3499. (compare_glob_filenames_for_search): Likewise.
  3500. (matching_obj_sections): Likewise.
  3501. (symbol_matches_domain): Likewise.
  3502. (find_line_symtab): Change out param EXACT_MATCH to bool *.
  3503. (find_line_pc): Change return type to bool.
  3504. (find_line_pc_range): Likewise.
  3505. (producer_is_realview): Likewise.
  3506. * symtab.h (symbol_matches_domain): Likewise.
  3507. (find_pc_partial_function): Likewise.
  3508. (find_pc_line_pc_range): Likewise.
  3509. (in_gnu_ifunc_stub): Likewise.
  3510. (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
  3511. (find_line_pc): Likewise.
  3512. (find_line_pc_range): Likewise.
  3513. (matching_obj_sections): Likewise.
  3514. (find_line_symtab): Change out parameter to bool.
  3515. (producer_is_realview): Change return type to bool.
  3516. (compare_filenames_for_search): Likewise.
  3517. (compare_glob_filenames_for_search): Likewise.
  3518. 2019-09-26 Tom Tromey <tom@tromey.com>
  3519. * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
  3520. (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
  3521. * gdb_usleep.h: Remove.
  3522. * gdb_usleep.c: Remove.
  3523. * utils.c: Don't include gdb_usleep.h.
  3524. 2019-09-26 Tom Tromey <tromey@adacore.com>
  3525. * python/py-type.c (type_to_type_object): Call check_typedef
  3526. for stub types.
  3527. 2019-09-26 Tom Tromey <tom@tromey.com>
  3528. * utils.h (initialize_utils): Don't declare.
  3529. * top.c (gdb_init): Don't call initialize_utils.
  3530. * utils.c (initialize_utils): Remove. Move contents...
  3531. (_initialize_utils): ... here.
  3532. 2019-09-25 Tom Tromey <tom@tromey.com>
  3533. * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
  3534. * utils.h (make_hex_string): Don't declare.
  3535. * utils.c (make_hex_string): Remove.
  3536. 2019-09-24 Tom de Vries <tdevries@suse.de>
  3537. PR gdb/23815
  3538. * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
  3539. Initialize xstateregs before ptrace PTRACE_GETREGSET call.
  3540. 2019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
  3541. * NEWS: Mention new simulator port for PRU.
  3542. 2019-09-23 Christian Biesinger <cbiesinger@google.com>
  3543. * ada-exp.y (write_object_remaining): Update.
  3544. * ada-lang.c (ada_decode): Return a std::string instead of a char*
  3545. and eliminate the static buffer.
  3546. (ada_decode_symbol): Update.
  3547. (ada_la_decode): Update.
  3548. (ada_sniff_from_mangled_name): Update.
  3549. (is_valid_name_for_wild_match): Update.
  3550. (ada_lookup_name_info::matches): Update and simplify.
  3551. (name_matches_regex): Update.
  3552. (ada_add_global_exceptions): Update.
  3553. * ada-lang.h (ada_decode): Update signature.
  3554. * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
  3555. * dwarf-index-write.c (debug_names::insert): Update.
  3556. 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
  3557. * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
  3558. formatting.
  3559. 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
  3560. * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
  3561. Change "nonzero" to "true" in documentation.
  3562. 2019-09-20 Christian Biesinger <cbiesinger@google.com>
  3563. * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
  3564. (_initialize_darwin_solib): Don't set
  3565. darwin_so_ops.lookup_lib_global_symbol.
  3566. * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
  3567. set_gdbarch_iterate_over_objfiles_in_search_order.
  3568. (elf_lookup_lib_symbol): Rename to...
  3569. (svr4_iterate_over_objfiles_in_search_order): this, and update
  3570. to iterate semantics.
  3571. (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
  3572. * solib.c (solib_global_lookup): Remove.
  3573. * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
  3574. (solib_global_lookup): Remove.
  3575. * symtab.c (lookup_global_or_static_symbol): Remove call to
  3576. solib_global_lookup.
  3577. 2019-09-20 Joel Brobecker <brobecker@adacore.com>
  3578. * NEWS: Move entries about default MI version now being
  3579. version 3, and about the GDB/MI fix for multi-location
  3580. breakpoints to the "since GDB 8.3" section.
  3581. 2019-09-20 Joel Brobecker <brobecker@adacore.com>
  3582. GDB 8.3.1 released.
  3583. 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
  3584. * NEWS: Mention that Cell/B.E. debugging support was removed.
  3585. * MAINTAINERS: Remove spu target.
  3586. * config/djgpp/fnchange.lst: Remove entries for removed files.
  3587. * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
  3588. spu-multiarch.o, and spu-tdep.o.
  3589. (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
  3590. (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
  3591. spu-multiarch.c, and spu-tdep.c.
  3592. * spu-linux-nat.c: Remove file.
  3593. * spu-multiarch.c: Remove file.
  3594. * spu-tdep.c: Remove file.
  3595. * spu-tdep.h: Remove file.
  3596. * solib-spu.c: Remove file.
  3597. * solib-spu.h: Remove file.
  3598. * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
  3599. * configure.nat (spu-linux): Remove.
  3600. * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
  3601. solib-multiarch.o from gdb_target_obs.
  3602. (spu*-*-*): Remove.
  3603. * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
  3604. feature flag.
  3605. (ppc_linux_no_features): Update.
  3606. * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
  3607. Cell/B.E. support.
  3608. * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
  3609. (tdesc_powerpc_cell64l): Likewise.
  3610. * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
  3611. * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
  3612. Cell/B.E. support.
  3613. * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
  3614. Do not include "features/rs6000/powerpc-cell32l.c" or
  3615. "features/rs6000/powerpc-cell64l.c".
  3616. (ppc_linux_spu_section): Remove.
  3617. (ppc_linux_core_read_description): Remove Cell/B.E. support.
  3618. (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
  3619. spe_context_cache_ptid, spe_context_cache_ptid): Remove.
  3620. (ppc_linux_spe_context_lookup): Remove.
  3621. (ppc_linux_spe_context_inferior_created): Remove.
  3622. (ppc_linux_spe_context_solib_loaded): Remove.
  3623. (ppc_linux_spe_context_solib_unloaded): Remove.
  3624. (ppc_linux_spe_context): Remove.
  3625. (struct ppu2spu_cache): Remove.
  3626. (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
  3627. (struct ppu2spu_data): Remove.
  3628. (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
  3629. ppu2spu_unwind): Remove.
  3630. (ppc_linux_init_abi): Remove Cell/B.E. support.
  3631. * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
  3632. * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
  3633. (rs6000/powerpc-cell64l-expedite): Likewise
  3634. (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
  3635. (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
  3636. rs6000/powerpc-cell64l.xml.
  3637. * features/rs6000/powerpc-cell32l.xml: Remove.
  3638. * features/rs6000/powerpc-cell64l.xml: Likewise.
  3639. * features/rs6000/powerpc-cell32l.c: Remove generated file.
  3640. * features/rs6000/powerpc-cell64l.c: Likewise.
  3641. * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
  3642. * regformats/rs6000/powerpc-cell64l.dat: Likewise.
  3643. * regformats/reg-spu.dat: Remove.
  3644. * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
  3645. * corelow.c (struct spuid_list): Remove.
  3646. (add_to_spuid_list): Remove.
  3647. (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
  3648. * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
  3649. (remote_protocol_features): Remove associated entries.
  3650. (_initialize_remote): No longer initialize them.
  3651. (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
  3652. * linux-nat.c (SPUFS_MAGIC): Remove.
  3653. (linux_proc_xfer_spu): Remove.
  3654. (spu_enumerate_spu_ids): Remove.
  3655. (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
  3656. * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
  3657. (linux_make_corefile_notes): No longer call it.
  3658. * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
  3659. (cooked_write_test): Likewise.
  3660. 2019-09-20 Tom Tromey <tom@tromey.com>
  3661. * NEWS: Mention case-sensitivity of TUI commands.
  3662. * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
  3663. (tui_set_win_height_command, parse_scrolling_args): Likewise.
  3664. * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
  3665. 2019-09-20 Tom Tromey <tom@tromey.com>
  3666. * tui/tui-source.c (tui_source_window::set_contents): Use
  3667. make_unique_xstrdup.
  3668. * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
  3669. make_unique_xstrdup.
  3670. 2019-09-20 Tom Tromey <tom@tromey.com>
  3671. * tui/tui-data.c: Remove separator comments.
  3672. * tui/tui-layout.c: Remove separator comments.
  3673. * tui/tui-win.c: Remove separator comments.
  3674. * tui/tui-wingeneral.c: Remove separator comments.
  3675. 2019-09-20 Tom Tromey <tom@tromey.com>
  3676. * tui/tui.h (strcat_to_buf): Don't declare.
  3677. * tui/tui.c (strcat_to_buf): Remove.
  3678. 2019-09-20 Tom Tromey <tom@tromey.com>
  3679. * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
  3680. from "fullname".
  3681. * tui/tui-source.c (tui_source_window::set_contents)
  3682. (tui_source_window::location_matches_p)
  3683. (tui_source_window::maybe_update): Update.
  3684. 2019-09-20 Tom Tromey <tom@tromey.com>
  3685. * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
  3686. Update.
  3687. <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
  3688. prefix.
  3689. * tui/tui-regs.c (tui_data_window::last_regs_line_no)
  3690. (tui_data_window::line_from_reg_element_no)
  3691. (tui_data_window::first_reg_element_no_inline)
  3692. (tui_data_window::show_registers)
  3693. (tui_data_window::show_register_group)
  3694. (tui_data_window::display_registers_from)
  3695. (tui_data_window::display_registers_from_line)
  3696. (tui_data_window::first_data_item_displayed)
  3697. (tui_data_window::delete_data_content_windows)
  3698. (tui_data_window::erase_data_content)
  3699. (tui_data_window::do_scroll_vertical)
  3700. (tui_data_window::refresh_window)
  3701. (tui_data_window::check_register_values): Update.
  3702. 2019-09-20 Tom Tromey <tom@tromey.com>
  3703. * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
  3704. (struct tui_locator_window) <full_name, proc_name>: Now
  3705. std::string.
  3706. * tui/tui-stack.c (tui_locator_window::make_status_line)
  3707. (tui_locator_window::set_locator_fullname)
  3708. (tui_locator_window::set_locator_info): Update.
  3709. * tui/tui-source.c (tui_source_window::set_contents)
  3710. (tui_source_window::showing_source_p): Update.
  3711. 2019-09-20 Tom Tromey <tom@tromey.com>
  3712. * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
  3713. Don't call tui_locator_win_info_ptr.
  3714. 2019-09-20 Tom Tromey <tom@tromey.com>
  3715. * tui/tui-win.c (tui_resize_all): Don't call refresh.
  3716. 2019-09-20 Tom Tromey <tom@tromey.com>
  3717. * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
  3718. height for locator.
  3719. * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
  3720. * tui/tui-layout.c (show_source_disasm_command, show_data)
  3721. (show_source_or_disasm_and_command): Use 1 as height for locator.
  3722. 2019-09-20 Tom Tromey <tom@tromey.com>
  3723. * tui/tui.c (tui_enable): Update.
  3724. * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
  3725. Update.
  3726. * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
  3727. Update.
  3728. * tui/tui-data.c (win_resized): Now bool.
  3729. (tui_win_resized): Return bool.
  3730. (tui_set_win_resized_to): Accept a bool.
  3731. 2019-09-20 Tom Tromey <tom@tromey.com>
  3732. * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
  3733. Change type of "refresh_values_only".
  3734. * tui/tui-regs.c (tui_data_window::show_register_group): Change
  3735. type of "refresh_values_only".
  3736. 2019-09-20 Tom Tromey <tom@tromey.com>
  3737. * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
  3738. std::string.
  3739. (tui_disassemble): Add "pos" parameter.
  3740. (tui_disasm_window::set_contents): Simplify.
  3741. 2019-09-20 Tom Tromey <tom@tromey.com>
  3742. * tui/tui-winsource.h (struct tui_source_window_base)
  3743. <show_source_content>: Now private.
  3744. * tui/tui-winsource.c
  3745. (tui_source_window_base::show_source_content): Don't handle empty
  3746. content case.
  3747. 2019-09-20 Tom Tromey <tom@tromey.com>
  3748. * tui/tui-layout.c (show_source_disasm_command)
  3749. (show_source_or_disasm_and_command): Don't call
  3750. show_source_content.
  3751. 2019-09-20 Tom Tromey <tom@tromey.com>
  3752. * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
  3753. Declare.
  3754. * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
  3755. from tui_make_status_line.
  3756. (tui_locator_window::rerender): Update.
  3757. 2019-09-20 Tom Tromey <tom@tromey.com>
  3758. * tui/tui-stack.c (tui_make_status_line): Return std::string.
  3759. (tui_locator_window::rerender): Update.
  3760. 2019-09-20 Tom Tromey <tom@tromey.com>
  3761. * tui/tui-winsource.h (struct tui_source_window_base)
  3762. <~tui_source_window_base>: Don't declare.
  3763. <fullname>: Remove.
  3764. * tui/tui-winsource.c (~tui_source_window_base): Remove.
  3765. * tui/tui-source.h (struct tui_source_window) <fullname>: New
  3766. member.
  3767. * tui/tui-source.c (tui_source_window::set_contents): Update.
  3768. (tui_source_window::location_matches_p)
  3769. (tui_source_window::maybe_update): Update.
  3770. 2019-09-20 Tom Tromey <tom@tromey.com>
  3771. * tui/tui-winsource.h (~tui_source_element): Remove.
  3772. (tui_source_element): Update.
  3773. (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
  3774. * tui/tui-winsource.c (tui_show_source_line): Update.
  3775. * tui/tui-source.c (tui_source_window::set_contents): Update.
  3776. * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
  3777. 2019-09-20 Tom Tromey <tom@tromey.com>
  3778. * tui/tui-data.h (tui_clear_source_windows_detail): Don't
  3779. declare.
  3780. * tui/tui-layout.c (tui_add_win_to_layout): Don't call
  3781. tui_clear_source_windows_detail.
  3782. * tui/tui-winsource.h (struct tui_source_window_base)
  3783. <clear_detail>: Don't declare.
  3784. * tui/tui-winsource.c (tui_source_window_base::clear_detail):
  3785. Remove.
  3786. * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
  3787. 2019-09-20 Tom Tromey <tromey@adacore.com>
  3788. PR ada/24919:
  3789. * block.c (contained_in): Fix final return value.
  3790. 2019-09-20 Alan Modra <amodra@gmail.com>
  3791. * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
  3792. * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
  3793. (read_indirect_string_from_dwz): Use bfd accessor.
  3794. * dwarf2read.h (struct dwz_file <filename>): Likewise.
  3795. * machoread.c (macho_symfile_read_all_oso): Likewise.
  3796. * solib.c (solib_bfd_open): Likewise.
  3797. 2019-09-19 Christian Biesinger <cbiesinger@google.com>
  3798. * eval.c: Move declaration of overload_resolution to...
  3799. * value.h: ...here.
  3800. 2019-09-19 Christian Biesinger <cbiesinger@google.com>
  3801. * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
  3802. * arm-linux-tdep.c: Likewise.
  3803. * arm-nbsd-nat.c: Likewise.
  3804. * arm-tdep.h: Declare arm_apcs_32.
  3805. * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
  3806. 2019-09-19 Christian Biesinger <cbiesinger@google.com>
  3807. * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
  3808. * dwarf2read.h: Declare dwarf_always_disassemble.
  3809. 2019-09-19 Tom de Vries <tdevries@suse.de>
  3810. PR gdb/25009
  3811. * source-cache.c (source_cache::ensure): Catch exception thrown during
  3812. construction of the highlighter.
  3813. 2019-09-18 Alan Modra <amodra@gmail.com>
  3814. * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
  3815. * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
  3816. * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
  3817. * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
  3818. * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
  3819. * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
  3820. * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
  3821. * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
  3822. * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
  3823. * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
  3824. * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
  3825. * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
  3826. * solib-spu.c, * solib-svr4.c, * solib-target.c,
  3827. * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
  3828. * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
  3829. * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
  3830. * mi/mi-interp.c: Update throughout for bfd section macro and
  3831. function changes.
  3832. * gcore (gcore_create_callback): Use bfd_set_section_lma.
  3833. * spu-tdep.c (spu_overlay_new_objfile): Likewise.
  3834. 2019-09-18 Tom Tromey <tom@tromey.com>
  3835. * NEWS: Add entry.
  3836. * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
  3837. call rl_initialize.
  3838. (tui_enable): Do not call rl_initialize.
  3839. 2019-09-18 Christian Groessler <chris@groessler.org>
  3840. * alpha-linux-nat.c: Include gdbarch.h.
  3841. 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
  3842. * ui-file.c: Include cli/cli-style.h.
  3843. (term_cli_styling): Remove cli_styling declaration.
  3844. 2019-09-18 Alan Modra <amodra@gmail.com>
  3845. * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
  3846. to bfd_asymbol_section.
  3847. 2019-09-18 Alan Modra <amodra@gmail.com>
  3848. * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
  3849. * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
  3850. * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
  3851. 2019-09-18 Alan Modra <amodra@gmail.com>
  3852. * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
  3853. * spu-linux-nat.c (spu_bfd_open): Likewise.
  3854. 2019-09-18 Christian Biesinger <cbiesinger@google.com>
  3855. * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
  3856. to bool to match definition in dwarf2read.c.
  3857. 2019-09-17 Christian Biesinger <cbiesinger@google.com>
  3858. * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
  3859. (print_signatures): Likewise.
  3860. (trust_pad_over_xvs): Likewise.
  3861. * arch/aarch64-insn.c (aarch64_debug): Likewise.
  3862. * arch/aarch64-insn.h (aarch64_debug): Likewise.
  3863. * arm-linux-nat.c (arm_apcs_32): Likewise.
  3864. * arm-linux-tdep.c (arm_apcs_32): Likewise.
  3865. * arm-nbsd-nat.c (arm_apcs_32): Likewise.
  3866. * arm-tdep.c (arm_debug): Likewise.
  3867. (arm_apcs_32): Likewise.
  3868. * auto-load.c (debug_auto_load): Likewise.
  3869. (auto_load_gdb_scripts): Likewise.
  3870. (global_auto_load): Likewise.
  3871. (auto_load_local_gdbinit): Likewise.
  3872. (auto_load_local_gdbinit_loaded): Likewise.
  3873. * auto-load.h (global_auto_load): Likewise.
  3874. (auto_load_local_gdbinit): Likewise.
  3875. (auto_load_local_gdbinit_loaded): Likewise.
  3876. * breakpoint.c (disconnected_dprintf): Likewise.
  3877. (breakpoint_proceeded): Likewise.
  3878. (automatic_hardware_breakpoints): Likewise.
  3879. (always_inserted_mode): Likewise.
  3880. (target_exact_watchpoints): Likewise.
  3881. (_initialize_breakpoint): Update.
  3882. * breakpoint.h (target_exact_watchpoints): Change to bool.
  3883. * btrace.c (maint_btrace_pt_skip_pad): Likewise.
  3884. * cli/cli-cmds.c (trace_commands): Likewise.
  3885. * cli/cli-cmds.h (trace_commands): Likewise.
  3886. * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
  3887. to bool*.
  3888. * cli/cli-logging.c (logging_overwrite): Change to bool.
  3889. (logging_redirect): Likewise.
  3890. (debug_redirect): Likewise.
  3891. * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
  3892. (struct boolean_option_def) <get_var_address_cb_>: Change return type
  3893. to bool.
  3894. <boolean_option_def>: Update.
  3895. (struct flag_option_def): Change default type of Context to bool
  3896. from int.
  3897. <flag_option_def>: Change return type of var_address_cb_ to bool*.
  3898. * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
  3899. (get_setshow_command_value_string): Likewise.
  3900. * cli/cli-style.c (cli_styling): Change to bool.
  3901. (source_styling): Likewise.
  3902. * cli/cli-style.h (source_styling): Likewise.
  3903. (cli_styling): Likewise.
  3904. * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
  3905. to bool.
  3906. * command.h (var_types): Update comment.
  3907. (add_setshow_boolean_cmd): Change int* var argument to bool*.
  3908. * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
  3909. bool.
  3910. (debug_compile_cplus_scopes): Likewise.
  3911. * compile/compile-internal.h (compile_debug): Likewise.
  3912. * compile/compile.c (compile_debug): Likewise.
  3913. (struct compile_options) <raw>: Likewise.
  3914. * cp-support.c (catch_demangler_crashes): Likewise.
  3915. * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
  3916. (usr_cmd_cris_dwarf2_cfi): Likewise.
  3917. * csky-tdep.c (csky_debug): Likewise.
  3918. * darwin-nat.c (enable_mach_exceptions): Likewise.
  3919. * dcache.c (dcache_enabled_p): Likewise.
  3920. * defs.h (info_verbose): Likewise.
  3921. * demangle.c (demangle): Likewise.
  3922. (asm_demangle): Likewise.
  3923. * dwarf-index-cache.c (debug_index_cache): Likewise.
  3924. * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
  3925. * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
  3926. * dwarf2read.c (check_physname): Likewise.
  3927. (use_deprecated_index_sections): Likewise.
  3928. (dwarf_always_disassemble): Likewise.
  3929. * eval.c (overload_resolution): Likewise.
  3930. * event-top.c (set_editing_cmd_var): Likewise.
  3931. (exec_done_display_p): Likewise.
  3932. * event-top.h (set_editing_cmd_var): Likewise.
  3933. (exec_done_display_p): Likewise.
  3934. * exec.c (write_files): Likewise.
  3935. * fbsd-nat.c (debug_fbsd_lwp): Likewise
  3936. (debug_fbsd_nat): Likewise.
  3937. * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
  3938. Likewise.
  3939. (struct set_backtrace_options) <backtrace_past_main>: Likewise.
  3940. <backtrace_past_entry> Likewise.
  3941. * gdb-demangle.h (demangle): Likewise.
  3942. (asm_demangle): Likewise.
  3943. * gdb_bfd.c (bfd_sharing): Likewise.
  3944. * gdbcore.h (write_files): Likewise.
  3945. * gdbsupport/common-debug.c (show_debug_regs): Likewise.
  3946. * gdbsupport/common-debug.h (show_debug_regs): Likewise.
  3947. * gdbthread.h (print_thread_events): Likewise.
  3948. * gdbtypes.c (opaque_type_resolution): Likewise.
  3949. (strict_type_checking): Likewise.
  3950. * gnu-nat.c (gnu_debug_flag): Likewise.
  3951. * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
  3952. * guile/scm-param.c (pascm_variable): Add boolval.
  3953. (add_setshow_generic): Update.
  3954. (pascm_param_value): Update.
  3955. (pascm_set_param_value_x): Update.
  3956. * hppa-tdep.c (hppa_debug): Change to bool..
  3957. * infcall.c (may_call_functions_p): Likewise.
  3958. (coerce_float_to_double_p): Likewise.
  3959. (unwind_on_signal_p): Likewise.
  3960. (unwind_on_terminating_exception_p): Likewise.
  3961. * infcmd.c (startup_with_shell): Likewise.
  3962. * inferior.c (print_inferior_events): Likewise.
  3963. * inferior.h (startup_with_shell): Likewise.
  3964. (print_inferior_events): Likewise.
  3965. * infrun.c (step_stop_if_no_debug): Likewise.
  3966. (detach_fork): Likewise.
  3967. (debug_displaced): Likewise.
  3968. (disable_randomization): Likewise.
  3969. (non_stop): Likewise.
  3970. (non_stop_1): Likewise.
  3971. (observer_mode): Likewise.
  3972. (observer_mode_1): Likewise.
  3973. (set_observer_mode): Update.
  3974. (sched_multi): Change to bool.
  3975. * infrun.h (debug_displaced): Likewise.
  3976. (sched_multi): Likewise.
  3977. (step_stop_if_no_debug): Likewise.
  3978. (non_stop): Likewise.
  3979. (disable_randomization): Likewise.
  3980. * linux-tdep.c (use_coredump_filter): Likewise.
  3981. (dump_excluded_mappings): Likewise.
  3982. * linux-thread-db.c (auto_load_thread_db): Likewise.
  3983. (check_thread_db_on_load): Likewise.
  3984. * main.c (captured_main_1): Update.
  3985. * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
  3986. xx2_opt, boolean_opt>: Change to bool.
  3987. * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
  3988. * maint.c (maintenance_profile_p): Likewise.
  3989. (per_command_time): Likewise.
  3990. (per_command_space): Likewise.
  3991. (per_command_symtab): Likewise.
  3992. * memattr.c (inaccessible_by_default): Likewise.
  3993. * mi/mi-main.c (mi_async): Likewise.
  3994. (mi_async_1): Likewise.
  3995. * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
  3996. * nat/fork-inferior.h (startup_with_shell): Likewise.
  3997. * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
  3998. * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
  3999. * nios2-tdep.c (nios2_debug): Likewise.
  4000. * or1k-tdep.c (or1k_debug): Likewise.
  4001. * parse.c (parser_debug): Likewise.
  4002. * parser-defs.h (parser_debug): Likewise.
  4003. * printcmd.c (print_symbol_filename): Likewise.
  4004. * proc-api.c (procfs_trace): Likewise.
  4005. * python/py-auto-load.c (auto_load_python_scripts): Likewise.
  4006. * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
  4007. (set_parameter_value): Update.
  4008. (add_setshow_generic): Update.
  4009. * python/py-value.c (copy_py_bool_obj): Change argument from int*
  4010. to bool*.
  4011. * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
  4012. int*.
  4013. * ravenscar-thread.c (ravenscar_task_support): Change to bool.
  4014. * record-btrace.c (record_btrace_target::store_registers): Update.
  4015. * record-full.c (record_full_memory_query): Change to bool.
  4016. (record_full_stop_at_limit): Likewise.
  4017. * record-full.h (record_full_memory_query): Likewise.
  4018. * remote-notif.c (notif_debug): Likewise.
  4019. * remote-notif.h (notif_debug): Likewise.
  4020. * remote.c (use_range_stepping): Likewise.
  4021. (interrupt_on_connect): Likewise.
  4022. (remote_break): Likewise.
  4023. * ser-tcp.c (tcp_auto_retry): Likewise.
  4024. * ser-unix.c (serial_hwflow): Likewise.
  4025. * skip.c (debug_skip): Likewise.
  4026. * solib-aix.c (solib_aix_debug): Likewise.
  4027. * spu-tdep.c (spu_stop_on_load_p): Likewise.
  4028. (spu_auto_flush_cache_p): Likewise.
  4029. * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
  4030. Likewise.
  4031. (struct info_print_options) <quiet>: Likewise.
  4032. * symfile-debug.c (debug_symfile): Likewise.
  4033. * symfile.c (auto_solib_add): Likewise.
  4034. (separate_debug_file_debug): Likewise.
  4035. * symfile.h (auto_solib_add): Likewise.
  4036. (separate_debug_file_debug): Likewise.
  4037. * symtab.c (basenames_may_differ): Likewise.
  4038. (struct filename_partial_match_opts) <dirname, basename>: Likewise.
  4039. (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
  4040. (struct info_types_options) <quiet>: Likewise.
  4041. * symtab.h (demangle): Likewise.
  4042. (basenames_may_differ): Likewise.
  4043. * target-dcache.c (stack_cache_enabled_1): Likewise.
  4044. (code_cache_enabled_1): Likewise.
  4045. * target.c (trust_readonly): Likewise.
  4046. (may_write_registers): Likewise.
  4047. (may_write_memory): Likewise.
  4048. (may_insert_breakpoints): Likewise.
  4049. (may_insert_tracepoints): Likewise.
  4050. (may_insert_fast_tracepoints): Likewise.
  4051. (may_stop): Likewise.
  4052. (auto_connect_native_target): Likewise.
  4053. (target_stop_and_wait): Update.
  4054. (target_async_permitted): Change to bool.
  4055. (target_async_permitted_1): Likewise.
  4056. (may_write_registers_1): Likewise.
  4057. (may_write_memory_1): Likewise.
  4058. (may_insert_breakpoints_1): Likewise.
  4059. (may_insert_tracepoints_1): Likewise.
  4060. (may_insert_fast_tracepoints_1): Likewise.
  4061. (may_stop_1): Likewise.
  4062. * target.h (target_async_permitted): Likewise.
  4063. (may_write_registers): Likewise.
  4064. (may_write_memory): Likewise.
  4065. (may_insert_breakpoints): Likewise.
  4066. (may_insert_tracepoints): Likewise.
  4067. (may_insert_fast_tracepoints): Likewise.
  4068. (may_stop): Likewise.
  4069. * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
  4070. (make_thread_apply_all_options_def_group): Change argument from int*
  4071. to bool*.
  4072. (thread_apply_all_command): Update.
  4073. (print_thread_events): Change to bool.
  4074. * top.c (confirm): Likewise.
  4075. (command_editing_p): Likewise.
  4076. (history_expansion_p): Likewise.
  4077. (write_history_p): Likewise.
  4078. (info_verbose): Likewise.
  4079. * top.h (confirm): Likewise.
  4080. (history_expansion_p): Likewise.
  4081. * tracepoint.c (disconnected_tracing): Likewise.
  4082. (circular_trace_buffer): Likewise.
  4083. * typeprint.c (print_methods): Likewise.
  4084. (print_typedefs): Likewise.
  4085. * utils.c (debug_timestamp): Likewise.
  4086. (sevenbit_strings): Likewise.
  4087. (pagination_enabled): Likewise.
  4088. * utils.h (sevenbit_strings): Likewise.
  4089. (pagination_enabled): Likewise.
  4090. * valops.c (overload_resolution): Likewise.
  4091. * valprint.h (struct value_print_options) <prettyformat_arrays,
  4092. prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
  4093. stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
  4094. pascal_static_field_print, raw, summary, symbol_print, finish_print>:
  4095. Likewise.
  4096. * windows-nat.c (new_console): Likewise.
  4097. (cygwin_exceptions): Likewise.
  4098. (new_group): Likewise.
  4099. (debug_exec): Likewise.
  4100. (debug_events): Likewise.
  4101. (debug_memory): Likewise.
  4102. (debug_exceptions): Likewise.
  4103. (useshell): Likewise.
  4104. * windows-tdep.c (maint_display_all_tib): Likewise.
  4105. * xml-support.c (debug_xml): Likewise.
  4106. 2019-09-17 Mike Gulick <mgulick@mathworks.com>
  4107. * source.c (prepare_path_for_appending): New function.
  4108. (openp): Make use of new function.
  4109. (find_and_open_source): Search for the compilation directory and
  4110. source file as a relative path beneath the directory search path.
  4111. 2019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
  4112. * source-cache.c (source_cache::get_line_charpos): Catch
  4113. exceptions and return false, this matches the behaviour documented
  4114. in the header file.
  4115. 2019-09-17 Joel Brobecker <brobecker@adacore.com>
  4116. * ada-tasks.c (info_task): Remove quoting of the task's name.
  4117. 2019-09-16 Christian Biesinger <cbiesinger@google.com>
  4118. * symfile.c (auto_solib_add): Replace comment with a reference
  4119. to the header file.
  4120. 2019-09-14 Christian Biesinger <cbiesinger@google.com>
  4121. * NEWS: Mention that gdb can now be compiled with Python 3
  4122. on Windows.
  4123. 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
  4124. * maint.c (maint_print_section_data::maint_print_section_data):
  4125. Force use of 'float log10 (float)' by casting the argument to
  4126. float.
  4127. 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
  4128. * maint.c: Add 'cmath' include.
  4129. (struct maint_print_section_data): New structure.
  4130. (print_section_index): New function.
  4131. (print_bfd_section_info): Add header comment, small whitespace
  4132. cleanup, and update to call new print_section_index function.
  4133. (print_objfile_section_info): Likewise.
  4134. (maint_obj_section_from_bfd_section): New function.
  4135. (print_bfd_section_info_maybe_relocated): New function.
  4136. (maintenance_info_sections): Add header comment, always use
  4137. bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
  4138. 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
  4139. * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
  4140. inner scope, add check that the objfile has psymtabs before
  4141. checking psymtabs_addrmap.
  4142. * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
  4143. 2019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  4144. * NEWS: Announce that Ada task names are now shown at more places,
  4145. and between quotes (except in info task output).
  4146. * ada-tasks.c (task_to_str): New function.
  4147. (display_current_task_id): Call task_to_str.
  4148. (task_command_1): Likewise.
  4149. (print_ada_task_info): In non-mi mode, Properly align headers and data
  4150. when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
  4151. 2019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  4152. * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
  4153. prstatus.pr_lwp.pr_info instead of making it up.
  4154. 2019-09-11 Christian Biesinger <cbiesinger@google.com>
  4155. * auto-load.c (auto_load_expand_dir_vars): Update.
  4156. * defs.h (gdb_datadir): Change to std::string.
  4157. (python_libdir): Likewise.
  4158. (relocate_gdb_directory): Change return type to std::string.
  4159. * guile/guile.c (gdbscm_data_directory): Update.
  4160. (initialize_scheme_side): Update.
  4161. * jit.c (jit_reader_dir): Change to std::string.
  4162. (jit_reader_load_command): Update.
  4163. * main.c (gdb_datadir): Change to std::string.
  4164. (python_libdir): Likewise.
  4165. (set_gdb_data_directory): Update.
  4166. (relocate_path): Change to return std::string.
  4167. (relocate_gdb_directory): Change to return std::string.
  4168. (relocate_gdbinit_path_maybe_in_datadir): Update.
  4169. (captured_main_1): Update.
  4170. * python/python.c (do_start_initialization): Update.
  4171. * top.c (show_gdb_datadir): Update.
  4172. * xml-syscall.c (xml_init_syscalls_info): Update.
  4173. (init_syscalls_info): Update.
  4174. 2019-09-11 Christian Biesinger <cbiesinger@google.com>
  4175. * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
  4176. out of get_init_files.
  4177. (get_init_files): Update.
  4178. 2019-09-11 Christian Biesinger <cbiesinger@google.com>
  4179. * main.c (get_init_files): Change to use std::string.
  4180. (captured_main_1): Update.
  4181. (print_gdb_help): Update.
  4182. 2019-09-11 Ali Tamur <tamur@google.com>
  4183. * target-float.c (host_float_ops<T>::to_longest): Update
  4184. implementation.
  4185. 2019-09-11 Christian Biesinger <cbiesinger@google.com>
  4186. * dbxread.c (read_dbx_symtab): Update.
  4187. * dwarf2read.c (load_partial_dies): Update.
  4188. * mdebugread.c (parse_partial_symbols): Update.
  4189. (handle_psymbol_enumerators): Update.
  4190. * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
  4191. * psymtab.c (add_psymbol_to_bcache): Likewise.
  4192. (add_psymbol_to_list): Likewise.
  4193. * symtab.c (symbol_set_names): Likewise.
  4194. * symtab.h (symbol_set_names): Likewise.
  4195. * xcoffread.c (scan_xcoff_symtab): Update.
  4196. 2019-09-11 Tom Tromey <tom@tromey.com>
  4197. * symfile-mem.c (symbol_file_add_from_memory): Use
  4198. bfd_set_filename.
  4199. * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
  4200. * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
  4201. 2019-09-10 Tom Tromey <tromey@adacore.com>
  4202. * dwarf-index-write.c (write_psymbols): Extend error message.
  4203. (debug_names::insert): Add Ada code.
  4204. (debug_names::write_psymbols): Remove Ada check.
  4205. (debug_names) <m_string_obstack>: New member.
  4206. * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
  4207. (gdb_index_symbol_name_matcher::matches): Remove.
  4208. (mapped_index_base::find_name_components_bounds): Add "lang"
  4209. parameter.
  4210. (mapped_index_base::build_name_components): Also split names
  4211. according to Ada syntax.
  4212. (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
  4213. type of "match_callback".
  4214. (check_match, check_find_bounds_finds)
  4215. (dw2_expand_symtabs_matching): Update.
  4216. (dw2_debug_names_iterator): Add new constructor.
  4217. (dw2_debug_names_map_matching_symbols): New function.
  4218. (dw2_debug_names_expand_symtabs_matching): Update.
  4219. (dwarf2_debug_names_functions): Use
  4220. dw2_debug_names_map_matching_symbols.
  4221. 2019-09-10 Tom Tromey <tromey@adacore.com>
  4222. * dwarf2read.c (dw2_get_file_names_reader): Add the
  4223. CU's file name to the results.
  4224. 2019-09-10 Tom Tromey <tromey@adacore.com>
  4225. * ada-lang.c (add_nonlocal_symbols): Combine calls to
  4226. map_matching_symbols. Update.
  4227. * dwarf2read.c (dw2_map_matching_symbols): Update.
  4228. * psymtab.c (match_partial_symbol): Change type; update.
  4229. (psym_map_matching_symbols): Likewise.
  4230. * symfile-debug.c (debug_qf_map_matching_symbols): Change
  4231. type; update.
  4232. * symfile.h (struct quick_symbol_functions)
  4233. <map_matching_symbols>: Change "name" to be a lookup_name_info.
  4234. Remove "match".
  4235. 2019-09-10 Tom Tromey <tromey@adacore.com>
  4236. * psymtab.c (map_block): Remove.
  4237. (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
  4238. * symtab.c (iterate_over_symbols_terminated): New function.
  4239. * symtab.c (iterate_over_symbols_terminated): Declare.
  4240. 2019-09-10 Tom Tromey <tromey@adacore.com>
  4241. * ada-lang.c (ada_iterate_over_symbols): Return bool.
  4242. * language.h (struct language_defn) <la_iterate_over_symbols>:
  4243. Return bool.
  4244. * symtab.c (iterate_over_symbols): Return bool.
  4245. * symtab.h (iterate_over_symbols): Return bool.
  4246. 2019-09-10 Tom Tromey <tromey@adacore.com>
  4247. * ada-lang.c (aux_add_nonlocal_symbols): Change type.
  4248. (add_nonlocal_symbols): Update.
  4249. * dwarf2read.c (dw2_map_matching_symbols): Change type.
  4250. * psymtab.c (map_block, psym_map_matching_symbols): Change type.
  4251. * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
  4252. * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
  4253. Change type of "callback". Remove "data".
  4254. 2019-09-09 Ali Tamur <tamur@google.com>
  4255. * dwarf2read.c (comp_unit_head): Update comment.
  4256. (dwarf2_dwo_name): New function declaration.
  4257. (dwarf_unit_type_name): New function declaration.
  4258. (read_comp_unit_head): Add support for new compilation units,
  4259. DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
  4260. Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
  4261. (currently named as "signature") in their header. Also clarify error
  4262. messages.
  4263. (lookup_dwo_id): New function. Returns the dwo id of the given
  4264. compile unit.
  4265. (lookup_dwo_unit): Use the new lookup_dwo_id function.
  4266. (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
  4267. functions.
  4268. (create_dwo_cu_reader): Use the added lookup_dwo_id function.
  4269. (dwarf2_dwo_name): Get the dwo name if present.
  4270. (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
  4271. purposes.
  4272. 2019-09-09 Tom Tromey <tom@tromey.com>
  4273. * tui/tui-win.c (tui_all_windows_info): Use ui_out.
  4274. 2019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  4275. * python/python.c (do_start_initialization): Make progname_copy static,
  4276. to avoid a leak report.
  4277. 2019-09-08 Tom Tromey <tom@tromey.com>
  4278. * tui/tui-wingeneral.c (box_win): Truncate long window titles.
  4279. 2019-09-07 Simon Marchi <simon.marchi@efficios.com>
  4280. * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
  4281. Change type to gdb::optional<block_enum>.
  4282. (dw2_symtab_iter_init): Change block_index parameter type
  4283. to gdb::optional<block_enum>.
  4284. (dw2_lookup_symbol): Change block_index parameter
  4285. type to block_enum.c
  4286. (dw2_debug_names_lookup_symbol): Likewise.
  4287. * psymtab.c (psym_lookup_symbol): Likewise.
  4288. * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
  4289. * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
  4290. Likewise.
  4291. 2019-09-06 Christian Biesinger <cbiesinger@google.com>
  4292. * defs.h (relocate_gdb_directory): Change int to bool in
  4293. signature and rename flag to relocatable.
  4294. * main.c (relocate_path): Likewise.
  4295. (relocate_gdb_directory): Likewise.
  4296. 2019-09-06 Alan Modra <amodra@gmail.com>
  4297. * coffread.c (coff_symfile_read): Constify filename variable.
  4298. * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
  4299. (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
  4300. * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
  4301. * solib.c (reload_shared_libraries_1): Likewise.
  4302. * symfile.c (reread_symbols): Likewise.
  4303. * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
  4304. * solib-darwin.c (darwin_bfd_open): Likewise.
  4305. * symfile-mem.c (symbol_file_add_from_memory): Likewise.
  4306. 2019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
  4307. * psymtab.c (print_partial_symbols): Handle missing domain_enum
  4308. values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
  4309. 2019-09-03 Tom Tromey <tromey@adacore.com>
  4310. * ada-valprint.c (ada_val_print_num): Don't recurse for range
  4311. types.
  4312. (has_negatives): Unbias a range type bound.
  4313. * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
  4314. * gdbtypes.c (operator==): Handle new field.
  4315. (create_range_type): Add "bias" parameter.
  4316. (create_static_range_type, resolve_dynamic_range): Update.
  4317. * gdbtypes.h (struct range_bounds) <bias>: New member.
  4318. (create_range_type): Add bias parameter.
  4319. * printcmd.c (print_scalar_formatted): Unbias range types.
  4320. * value.c (unpack_long): Unbias range types.
  4321. (pack_long): Bias range types.
  4322. 2019-09-02 Alan Hayward <alan.hayward@arm.com>
  4323. * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
  4324. probe arguments.
  4325. 2019-09-02 Alan Hayward <alan.hayward@arm.com>
  4326. * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
  4327. * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
  4328. * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
  4329. (compile_probe_arg): Likewise.
  4330. * probe.h (get_argument_count): Likewise.
  4331. * solib-svr4.c (solib_event_probe_action): Likewise.
  4332. * stap-probe.c (stap_probe::get_argument_count): Likewise.
  4333. 2019-09-02 Alan Hayward <alan.hayward@arm.com>
  4334. * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
  4335. code to here...
  4336. (svr4_create_solib_event_breakpoints): ...from here.
  4337. 2019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
  4338. * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
  4339. suffix from warning message.
  4340. 2019-08-30 Tom Tromey <tom@tromey.com>
  4341. * tui/tui-winsource.h (struct tui_source_window_base)
  4342. <refresh_all>: Don't declare.
  4343. * tui/tui-winsource.c (tui_source_window_base::refresh_all):
  4344. Remove.
  4345. * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
  4346. tui_show_locator_content.
  4347. * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
  4348. declare.
  4349. * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
  4350. * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
  4351. declare.
  4352. 2019-08-30 Tom Tromey <tom@tromey.com>
  4353. * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
  4354. 2019-08-30 Tom Tromey <tom@tromey.com>
  4355. * tui/tui-stack.c (_initialize_tui_stack): Move later.
  4356. Remove unnecessary forward declarations.
  4357. 2019-08-30 Tom Tromey <tom@tromey.com>
  4358. * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
  4359. rerender.
  4360. (tui_update_locator_fullname, tui_show_frame_info): Don't call
  4361. tui_show_locator_content.
  4362. 2019-08-30 Tom Tromey <tom@tromey.com>
  4363. * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
  4364. (tui_locator_window::rerender): Rewrite using body of previous
  4365. tui_show_locator_content.
  4366. 2019-08-30 Tom Tromey <tom@tromey.com>
  4367. * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
  4368. set_locator_fullname>: New methods.
  4369. * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
  4370. Rename from tui_set_locator_fullname.
  4371. (tui_locator_window::set_locator_info): Rename from
  4372. tui_set_locator_info. Return bool.
  4373. (tui_update_locator_fullname, tui_show_frame_info): Update.
  4374. 2019-08-30 Tom Tromey <tom@tromey.com>
  4375. * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
  4376. 2019-08-30 Tom Tromey <tom@tromey.com>
  4377. * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
  4378. call touchwin.
  4379. 2019-08-30 Tom Tromey <tom@tromey.com>
  4380. * tui/tui-wingeneral.c (box_win): Assume win_info and
  4381. win_info->handle cannot be NULL.
  4382. 2019-08-30 Tom Tromey <tom@tromey.com>
  4383. * tui/tui-regs.h (struct tui_data_item_window) <rerender,
  4384. refresh_window>: Declare.
  4385. * tui/tui-regs.c (tui_data_window::display_registers_from): Call
  4386. resize.
  4387. (tui_data_item_window::rerender): Rename from
  4388. tui_display_register.
  4389. (tui_data_item_window::refresh_window): New method.
  4390. * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
  4391. no-op.
  4392. 2019-08-30 Tom Tromey <tom@tromey.com>
  4393. * tui/tui-regs.h (struct tui_data_window) <regs_content,
  4394. regs_column_count, current_group>: Move later. Now private.
  4395. <get_current_group>: New method.
  4396. * tui/tui-regs.c (tui_reg_command): Update.
  4397. * tui/tui-layout.c (tui_set_layout): Update.
  4398. 2019-08-30 Tom Tromey <tom@tromey.com>
  4399. * tui/tui-regs.c (tui_data_window::display_registers_from_line)
  4400. (tui_data_window::rerender): Don't call
  4401. check_and_display_highlight_if_needed.
  4402. (tui_data_window::refresh_all): Remove call to
  4403. erase_data_content.
  4404. 2019-08-30 Tom Tromey <tom@tromey.com>
  4405. * tui/tui-regs.c (tui_data_window::last_regs_line_no)
  4406. (tui_data_window::display_registers_from)
  4407. (tui_data_window::display_reg_element_at_line)
  4408. (tui_data_window::display_registers_from_line): Remove checks of
  4409. "empty".
  4410. 2019-08-30 Tom Tromey <tom@tromey.com>
  4411. * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
  4412. Don't declare.
  4413. * tui/tui-regs.c (tui_data_window::show_registers): Call
  4414. rerender.
  4415. (tui_data_window::rerender): Rename from display_all_data.
  4416. (tui_data_window::rerender): Remove old implementation.
  4417. 2019-08-30 Tom Tromey <tom@tromey.com>
  4418. * tui/tui-regs.c (tui_data_window::display_all_data): Change
  4419. text.
  4420. * tui/tui-data.h (NO_DATA_STRING): Remove define.
  4421. 2019-08-29 Bernhard Wodok <barto@gmx.net>
  4422. Sergio Durigan Junior <sergiodj@redhat.com>
  4423. PR win32/24284
  4424. * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
  4425. 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
  4426. * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
  4427. when searching for types.
  4428. 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
  4429. * f-lang.c (f_language_defn): Use f_print_typedef.
  4430. * f-lang.h (f_print_typedef): Declare.
  4431. * f-typeprint.c (f_print_typedef): Define.
  4432. 2019-08-27 Christian Biesinger <cbiesinger@google.com>
  4433. * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
  4434. 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
  4435. * cli/cli-utils.c (info_print_options_defs): Delete.
  4436. (make_info_print_options_def_group): Delete.
  4437. (extract_info_print_options): Delete.
  4438. (info_print_command_completer): Delete.
  4439. (info_print_args_help): Add extra parameter, and optionally
  4440. include text about -n flag.
  4441. * cli/cli-utils.h (struct info_print_options): Delete.
  4442. (extract_info_print_options): Delete declaration.
  4443. (info_print_command_completer): Delete declaration.
  4444. (info_print_args_help): Add extra parameter, extend header
  4445. comment.
  4446. * python/python.c (gdbpy_rbreak): Pass additional parameter to
  4447. search_symbols.
  4448. * stack.c (struct info_print_options): New type.
  4449. (info_print_options_defs): New file scoped variable.
  4450. (make_info_print_options_def_group): New static function.
  4451. (info_print_command_completer): New static function.
  4452. (info_locals_command): Update to use new local functions.
  4453. (info_args_command): Likewise.
  4454. (_initialize_stack): Add extra parameter to calls to
  4455. info_print_args_help.
  4456. * symtab.c (search_symbols): Add extra parameter, use this to
  4457. possibly excluse non-debug symbols.
  4458. (symtab_symbol_info): Add extra parameter, which is passed on to
  4459. search_symbols.
  4460. (struct info_print_options): New type.
  4461. (info_print_options_defs): New file scoped variable.
  4462. (make_info_print_options_def_group): New static function.
  4463. (info_print_command_completer): New static function.
  4464. (info_variables_command): Update to use local functions, and pass
  4465. extra parameter through to symtab_symbol_info.
  4466. (info_functions_command): Likewise.
  4467. (info_types_command): Pass additional argument through to
  4468. symtab_symbol_info.
  4469. (rbreak_command): Pass extra argument to search_symbols.
  4470. (_initialize_symtab): Add extra arguments for calls to
  4471. info_print_args_help, and update help text for 'info variables',
  4472. 'whereis', and 'info functions' commands.
  4473. * symtab.h (search_symbols): Add extra argument to declaration.
  4474. * NEWS: Mention new flags.
  4475. 2019-08-26 Christian Biesinger <cbiesinger@google.com>
  4476. * symtab.c (lookup_static_symbol): Call the new function (and move
  4477. it down to be next to lookup_global_symbol).
  4478. (struct global_sym_lookup_data): Add block_enum member and rename to...
  4479. (struct global_or_static_sym_lookup_data): ...this.
  4480. (lookup_symbol_global_iterator_cb): Pass block_index instead of
  4481. GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
  4482. (lookup_symbol_global_or_static_iterator_cb): ...this.
  4483. (lookup_global_or_static_symbol): New function.
  4484. (lookup_global_symbol): Call new function.
  4485. 2019-08-26 Tom de Vries <tdevries@suse.de>
  4486. PR c++/24852
  4487. * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
  4488. when pc_probe.prob == NULL.
  4489. 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
  4490. * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
  4491. variable symbol_linkage to symbol_linkage_.
  4492. 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
  4493. * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
  4494. represent whether the symbol is static, dynamic, or we don't
  4495. know.
  4496. 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
  4497. * rx-tdep.c (rx_register_names): New.
  4498. (rx_register_name): Delete.
  4499. (rx_psw_type): Delete.
  4500. (rx_fpsw_type): Delete.
  4501. (rx_register_type): Delete.
  4502. (rx_gdbarch_init): Convert target-descriptions.
  4503. (_initialize_rx_tdep): Add initialize_tdesc_rx.
  4504. * features/Makefile: Add rx.xml.
  4505. * features/rx.xml: New.
  4506. * features/rx.c: Generated.
  4507. * NEWS: Mention target description support.
  4508. 2019-08-22 Christian Biesinger <cbiesinger@google.com>
  4509. * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
  4510. *slot_ptr.
  4511. 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
  4512. * configure.ac: Don't check for 'dlfcn.h' (moved to
  4513. gdbsupport/common.m4).
  4514. * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
  4515. 'gdbsupport/'.
  4516. (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
  4517. * compile/compile-c-support.c: Include
  4518. 'gdbsupport/gdb-dlfcn.h'.
  4519. * gdbsupport/common.m4: Check for 'dlfcn.h'.
  4520. * gdb-dlfcn.c: Move to...
  4521. * gdbsupport/gdb-dlfcn.c: ... here.
  4522. * gdb-dlfcn.h: Move to...
  4523. * gdbsupport/gdb-dlfcn.h: ... here.
  4524. 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
  4525. * nios2-tdep.c (struct reg_value): Improve comments. Make
  4526. the offset field signed.
  4527. 2019-08-22 Christian Biesinger <cbiesinger@google.com>
  4528. * python/lib/gdb/__init__.py (_execute_file): New function.
  4529. * python/python.c (python_run_simple_file): Call gdb._execute_file
  4530. on Windows.
  4531. 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
  4532. * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
  4533. all uses as this was never set to anything but a zero value.
  4534. 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
  4535. * cli/cli-cmds.c (with_command_1): Error out if no arguments.
  4536. 2019-08-21 Christian Biesinger <cbiesinger@google.com>
  4537. * tui/tui-data.h (tui_gen_win_info): Add an =default
  4538. move constructor, required by some GCC versions.
  4539. 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
  4540. * go32-nat.c (go32_sysinfo): Add hygon_p.
  4541. 2019-08-20 Tom Tromey <tom@tromey.com>
  4542. * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
  4543. line_from_reg_element_no, first_reg_element_no_inline,
  4544. display_all_data, delete_data_content_windows,
  4545. erase_data_content>: Now private.
  4546. 2019-08-20 Tom Tromey <tom@tromey.com>
  4547. * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
  4548. (tui_unhighlight_win, tui_highlight_win)
  4549. (tui_win_info::make_window): Update.
  4550. * tui/tui-data.h (HILITE, NO_HILITE): Remove.
  4551. 2019-08-20 Tom Tromey <tom@tromey.com>
  4552. * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
  4553. (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
  4554. (MAX_PID_WIDTH): Move to tui-stack.c.
  4555. * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
  4556. (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
  4557. (MAX_PID_WIDTH): Move from tui-data.h.
  4558. 2019-08-20 Tom Tromey <tom@tromey.com>
  4559. * tui/tui-wingeneral.h (tui_make_window): Don't declare.
  4560. * tui/tui-wingeneral.c (box_win): Change type of win_info.
  4561. (box_win): Update.
  4562. (tui_gen_win_info::make_window): Rename from tui_make_window.
  4563. (tui_win_info::make_window): New method.
  4564. (tui_gen_win_info::make_visible): Update.
  4565. * tui/tui-source.c (tui_source_window::set_contents): Update.
  4566. * tui/tui-regs.c (tui_data_window::show_register_group): Update.
  4567. (tui_data_window::display_registers_from): Update.
  4568. * tui/tui-layout.c (tui_gen_win_info::resize): Update.
  4569. * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
  4570. Declare.
  4571. <can_box>: Remove.
  4572. <title>: Remove.
  4573. (struct tui_win_info) <make_window>: Declare.
  4574. <can_box>: Now virtual.
  4575. <title>: New member.
  4576. * tui/tui-data.c (~tui_gen_win_info): Don't free title.
  4577. * tui/tui-command.c (tui_cmd_window::resize): Update.
  4578. 2019-08-20 Tom Tromey <tom@tromey.com>
  4579. * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
  4580. * tui/tui-regs.c (tui_data_window::show_registers): Update.
  4581. (tui_data_window::check_register_values): Update.
  4582. 2019-08-20 Tom Tromey <tom@tromey.com>
  4583. * tui/tui-regs.h (struct tui_data_window): Use
  4584. DISABLE_COPY_AND_ASSIGN.
  4585. <regs_content>: Change type, removing unique_ptr.
  4586. <tui_data_window>: Add move constructor.
  4587. * tui/tui-regs.c (tui_data_window::show_registers)
  4588. (tui_data_window::show_register_group)
  4589. (tui_data_window::display_registers_from)
  4590. (tui_data_window::display_registers_from)
  4591. (tui_data_window::first_data_item_displayed)
  4592. (tui_data_window::delete_data_content_windows)
  4593. (tui_data_window::rerender, tui_data_window::refresh_window)
  4594. (tui_data_window::check_register_values): Update.
  4595. 2019-08-20 Tom Tromey <tom@tromey.com>
  4596. * tui/tui-regs.h (struct tui_data_window) <show_registers,
  4597. show_register_group>: Declare.
  4598. (tui_show_register_group): Don't declare.
  4599. * tui/tui-regs.c (tui_data_window::show_registers): Rename from
  4600. tui_show_registers.
  4601. (tui_data_window::show_register_group): Rename from
  4602. tui_show_register_group.
  4603. (tui_data_window::check_register_values, tui_reg_command):
  4604. Update.
  4605. * tui/tui-layout.c (tui_set_layout): Update.
  4606. 2019-08-20 Tom Tromey <tom@tromey.com>
  4607. * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
  4608. Declare.
  4609. (tui_check_register_values): Don't declare.
  4610. * tui/tui-regs.c (tui_data_window::check_register_values): Rename
  4611. from tui_check_register_values.
  4612. * tui/tui-hooks.c (tui_register_changed): Update.
  4613. 2019-08-20 Tom Tromey <tom@tromey.com>
  4614. * tui/tui-regs.c (tui_reg_layout): Move later.
  4615. (tui_show_registers): Don't enable TUI mode or change layout.
  4616. 2019-08-20 Tom Tromey <tom@tromey.com>
  4617. * tui/tui-regs.h (struct tui_data_item_window)
  4618. <~tui_data_item_window>: Remove.
  4619. <content>: Now a unique_xmalloc_ptr.
  4620. * tui/tui-regs.c (tui_register_format): Return a
  4621. unique_xmalloc_ptr.
  4622. (tui_get_register): Update.
  4623. (~tui_data_item_window): Remove.
  4624. (tui_data_window::display_registers_from, tui_display_register):
  4625. Update.
  4626. * tui/tui-io.h (tui_expand_tabs): Update.
  4627. * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
  4628. Remove "col" parameter.
  4629. 2019-08-20 Tom Tromey <tom@tromey.com>
  4630. * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
  4631. field.
  4632. * tui/tui-regs.c (~tui_data_item_window): Update.
  4633. 2019-08-20 Tom Tromey <tom@tromey.com>
  4634. * tui/tui-regs.c (tui_register_format, tui_get_register): Move
  4635. earlier.
  4636. 2019-08-20 Tom Tromey <tom@tromey.com>
  4637. * tui/tui-regs.c (tui_reg_command): Remove NULL check.
  4638. 2019-08-20 Tom Tromey <tom@tromey.com>
  4639. * tui/tui-source.h (struct tui_source_window): Update.
  4640. * tui/tui-regs.c (tui_show_registers): Update.
  4641. * tui/tui-disasm.h (struct tui_disasm_window): Update.
  4642. * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
  4643. (NO_REGS_STRING): Remove defines.
  4644. 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
  4645. * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
  4646. unnecessary thread walk if remote doesn't support the packet.
  4647. 2019-08-19 Tom Tromey <tromey@adacore.com>
  4648. * python/py-value.c (value_has_field): Fix indentation.
  4649. 2019-08-19 Tom Tromey <tromey@adacore.com>
  4650. * printcmd.c (do_one_display, info_display_command): Update.
  4651. * block.h (contained_in): Return bool. Add allow_nested
  4652. parameter.
  4653. * block.c (contained_in): Return bool. Add allow_nested
  4654. parameter.
  4655. 2019-08-19 Tom Tromey <tom@tromey.com>
  4656. * configure: Rebuild.
  4657. * configure.ac: Disallow the combination of -static-libstdc++ and
  4658. source highlight.
  4659. * source-cache.c (get_language_name): Handle rust.
  4660. (source_cache::get_source_lines): Ignore highlighting exceptions.
  4661. 2019-08-16 Tom Tromey <tom@tromey.com>
  4662. * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
  4663. * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
  4664. (struct tui_source_window_base) <make_visible, refresh_window,
  4665. resize>: Remove methods.
  4666. <execution_info>: Remove field.
  4667. * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
  4668. (tui_show_source_line, tui_source_window_base)
  4669. (~tui_source_window_base): Update.
  4670. (tui_source_window_base::resize)
  4671. (tui_source_window_base::make_visible)
  4672. (tui_source_window_base::refresh_window): Remove.
  4673. (tui_source_window_base::update_exec_info): Update.
  4674. * tui/tui-source.c (tui_source_window::set_contents): Update.
  4675. * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
  4676. 2019-08-16 Tom Tromey <tom@tromey.com>
  4677. * tui/tui-hooks.c (tui_remove_hooks): Don't set
  4678. deprecated_query_hook.
  4679. 2019-08-16 Tom Tromey <tom@tromey.com>
  4680. * tui/tui-winsource.c (tui_update_source_windows_with_addr)
  4681. (tui_update_source_windows_with_line): Update.
  4682. * tui/tui-source.h (struct tui_source_window)
  4683. <show_symtab_source>: Declare.
  4684. (tui_show_symtab_source): Don't declare.
  4685. * tui/tui-source.c (tui_show_symtab_source): Rename from
  4686. tui_show_symtab_source.
  4687. 2019-08-16 Tom Tromey <tom@tromey.com>
  4688. * tui/tui-winsource.h (struct tui_source_window_base)
  4689. <set_contents>: Declare.
  4690. * tui/tui-winsource.c
  4691. (tui_source_window_base::update_source_window_as_is): Update.
  4692. * tui/tui-source.h (struct tui_source_window) <set_contents>:
  4693. Declare.
  4694. (tui_set_source_content): Don't declare.
  4695. * tui/tui-source.c (tui_source_window::set_contents): Rename from
  4696. tui_set_source_content.
  4697. * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
  4698. Declare.
  4699. (tui_set_disassem_content): Don't declare.
  4700. * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
  4701. tui_set_disassem_content.
  4702. 2019-08-16 Tom Tromey <tom@tromey.com>
  4703. * tui/tui-winsource.h (struct tui_source_window_base)
  4704. <update_breakpoint_info>: Declare.
  4705. (tui_update_breakpoint_info): Don't declare.
  4706. * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
  4707. (tui_update_all_breakpoint_info): Update.
  4708. (tui_source_window_base::update_breakpoint_info): Rename from
  4709. tui_update_breakpoint_info.
  4710. (tui_source_window_base::update_exec_info): Update.
  4711. 2019-08-16 Tom Tromey <tom@tromey.com>
  4712. * tui/tui-winsource.h (struct tui_source_window_base)
  4713. <update_source_window>: Declare.
  4714. (tui_update_source_window): Don't declare.
  4715. * tui/tui-winsource.c
  4716. (tui_source_window_base::update_source_window): Rename from
  4717. tui_update_source_window.
  4718. (tui_source_window_base::rerender): Update.
  4719. * tui/tui-source.c (tui_source_window::maybe_update): Update.
  4720. * tui/tui-disasm.c (tui_show_disassem)
  4721. (tui_show_disassem_and_update_source)
  4722. (tui_disasm_window::maybe_update): Update.
  4723. 2019-08-16 Tom Tromey <tom@tromey.com>
  4724. * tui/tui-winsource.h (struct tui_source_window_base)
  4725. <update_source_window_as_is>: Declare.
  4726. (tui_update_source_window_as_is): Don't declare.
  4727. * tui/tui-winsource.c (tui_update_source_window): Update
  4728. (tui_source_window_base::update_source_window_as_is): Rename from
  4729. tui_update_source_window_as_is.
  4730. (tui_source_window_base::refill): Update.
  4731. * tui/tui-source.c (tui_show_symtab_source): Update.
  4732. * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
  4733. Update.
  4734. 2019-08-16 Tom Tromey <tom@tromey.com>
  4735. * tui/tui-winsource.h (tui_update_source_window)
  4736. (tui_update_source_window_as_is): Remove "noerror" parameter.
  4737. * tui/tui-winsource.c (tui_update_source_window)
  4738. (tui_update_source_window_as_is): Remove "noerror" parameter.
  4739. (tui_update_source_windows_with_addr)
  4740. (tui_update_source_windows_with_line)
  4741. (tui_source_window_base::rerender)
  4742. (tui_source_window_base::refill): Update.
  4743. * tui/tui-source.h (tui_set_source_content)
  4744. (tui_show_symtab_source): Remove "noerror" parameter.
  4745. * tui/tui-source.c (tui_set_source_content): Remove "noerror"
  4746. parameter.
  4747. (tui_show_symtab_source): Likewise.
  4748. (tui_source_window::maybe_update): Update.
  4749. * tui/tui-disasm.c (tui_show_disassem)
  4750. (tui_show_disassem_and_update_source)
  4751. (tui_disasm_window::do_scroll_vertical)
  4752. (tui_disasm_window::maybe_update): Update.
  4753. 2019-08-16 Tom Tromey <tom@tromey.com>
  4754. * tui/tui.c (tui_is_window_visible): Update.
  4755. * tui/tui-wingeneral.c (tui_make_window)
  4756. (tui_gen_win_info::make_visible, tui_refresh_all): Update.
  4757. * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
  4758. (tui_set_focus_command, tui_all_windows_info, update_tab_width)
  4759. (tui_set_win_height_command, parse_scrolling_args): Update.
  4760. * tui/tui-source.c (tui_source_window::style_changed): Update.
  4761. * tui/tui-regs.c (tui_show_registers)
  4762. (tui_data_window::first_data_item_displayed)
  4763. (tui_data_window::delete_data_content_windows)
  4764. (tui_check_register_values, tui_reg_command): Update.
  4765. * tui/tui-disasm.c (tui_show_disassem): Update.
  4766. * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
  4767. method.
  4768. <is_visible>: Remove field.
  4769. * tui/tui-data.c (tui_next_win, tui_prev_win)
  4770. (tui_delete_invisible_windows): Update.
  4771. 2019-08-16 Tom Tromey <tom@tromey.com>
  4772. * tui/tui-winsource.h (struct tui_source_window_base)
  4773. <m_has_locator>: Remove.
  4774. * tui/tui-layout.c (show_source_disasm_command, show_data)
  4775. (show_source_or_disasm_and_command): Update.
  4776. 2019-08-16 Alan Hayward <alan.hayward@arm.com>
  4777. * NEWS (Other MI changes): New subsection.
  4778. * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
  4779. (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
  4780. * arch-utils.c (default_get_pc_address_flags): New function.
  4781. * arch-utils.h (default_get_pc_address_flags): New declaration.
  4782. * gdbarch.sh: Add get_pc_address_flags.
  4783. * gdbarch.c: Regenerate.
  4784. * gdbarch.h: Likewise.
  4785. * stack.c (print_pc): New function.
  4786. (print_frame_info) (print_frame): Call print_pc.
  4787. 2019-08-16 Tom de Vries <tdevries@suse.de>
  4788. * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
  4789. print_objfile_section_info.
  4790. 2019-08-15 Tom Tromey <tom@tromey.com>
  4791. * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
  4792. calling update_cmdwin_start_line.
  4793. * tui/tui-winsource.h (struct tui_source_window_base)
  4794. <do_make_visible_with_new_height, set_new_height>: Don't declare.
  4795. <rerender>: Declare.
  4796. * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
  4797. Call rerender.
  4798. (tui_source_window_base::set_new_height): Remove.
  4799. (tui_source_window_base::rerender): Rename from
  4800. do_make_visible_with_new_height.
  4801. * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
  4802. resize method.
  4803. (tui_win_info::make_invisible_and_set_new_height)
  4804. (tui_win_info::make_visible_with_new_height): Remove.
  4805. * tui/tui-stack.h (struct tui_locator_window) <rerender>:
  4806. Declare.
  4807. * tui/tui-stack.c (tui_locator_window::rerender): New method.
  4808. * tui/tui-regs.h (struct tui_data_window) <set_new_height,
  4809. do_make_visible_with_new_height>: Don't declare.
  4810. <rerender>: Declare.
  4811. * tui/tui-regs.c (tui_data_window::rerender): Rename from
  4812. set_new_height.
  4813. (tui_data_window::do_make_visible_with_new_height): Remove.
  4814. * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
  4815. call tui_show_locator_content.
  4816. (tui_gen_win_info::resize): Call rerender.
  4817. (show_source_or_disasm_and_command): Don't call
  4818. tui_show_locator_content.
  4819. * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
  4820. method.
  4821. (struct tui_win_info) <rerender>: Declare.
  4822. <set_new_height, make_invisible_and_set_new_height,
  4823. make_visible_with_new_height>: Don't declare.
  4824. * tui/tui-data.c (tui_win_list::rerender): New method.
  4825. * tui/tui-command.h (struct tui_cmd_window)
  4826. <do_make_visible_with_new_height>: Don't declare.
  4827. * tui/tui-command.c
  4828. (tui_cmd_window::do_make_visible_with_new_height): Remove.
  4829. 2019-08-15 Tom Tromey <tromey@adacore.com>
  4830. * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
  4831. * ada-lang.c (ada_enum_name): Likewise.
  4832. 2019-08-15 Christian Biesinger <cbiesinger@google.com>
  4833. * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
  4834. leading underscore.
  4835. (GdbOutputErrorFile): Likewise.
  4836. (global scope): Adjust constructor calls to GdbOutput{,Error}File
  4837. accordingly.
  4838. (execute_unwinders): Rename to have a leading underscore.
  4839. (auto_load_packages): Likewise.
  4840. (global scope): Adjust call to auto_load_packages accordingly.
  4841. (GdbSetPythonDirectory): Likewise.
  4842. * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
  4843. instead of execute_unwinders.
  4844. 2019-08-15 Tom Tromey <tom@tromey.com>
  4845. * tui/tui-layout.c (show_layout, show_source_disasm_command)
  4846. (show_data): Don't change window visibility.
  4847. (tui_gen_win_info::resize): Remove special case for command
  4848. window. Use wresize, when available.
  4849. (show_source_or_disasm_and_command): Don't change window
  4850. visibility.
  4851. * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
  4852. <make_visible>: New method.
  4853. * tui/tui-command.c (tui_cmd_window::resize): New method.
  4854. 2019-08-15 Tom Tromey <tom@tromey.com>
  4855. * tui/tui-winsource.h (struct tui_source_window_iterator): New.
  4856. (struct tui_source_windows): New.
  4857. * tui/tui-winsource.c (tui_display_main): Update.
  4858. * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
  4859. (new_height_ok, parse_scrolling_args): Update.
  4860. * tui/tui-layout.c (show_layout, show_data): Update.
  4861. * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
  4862. (tui_add_to_source_windows): Don't declare.
  4863. * tui/tui-data.c (source_windows, tui_source_windows)
  4864. (tui_clear_source_windows, tui_add_to_source_windows): Remove.
  4865. 2019-08-15 Tom Tromey <tom@tromey.com>
  4866. * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
  4867. Rename from reset.
  4868. * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
  4869. * tui/tui-layout.c (show_source_disasm_command, show_data):
  4870. Update.
  4871. (tui_gen_win_info::resize): Rename.
  4872. (show_source_or_disasm_and_command): Update.
  4873. * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
  4874. reset.
  4875. 2019-08-15 Tom Tromey <tom@tromey.com>
  4876. * tui/tui-stack.c (tui_initialize_static_data): Remove.
  4877. * tui/tui-interp.c (tui_interp::init): Don't call
  4878. tui_initialize_static_data.
  4879. * tui/tui-data.h (tui_initialize_static_data): Don't declare.
  4880. 2019-08-15 Tom Tromey <tom@tromey.com>
  4881. * tui/tui-layout.c (tui_default_win_viewport_height): Don't
  4882. examine tui_win_list.
  4883. 2019-08-15 Tom Tromey <tom@tromey.com>
  4884. * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
  4885. * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
  4886. tui_clear_source_content.
  4887. (tui_clear_source_content): Remove.
  4888. (tui_source_window_base::do_erase_source_content): Hoist call to
  4889. content.clear().
  4890. * tui/tui-stack.c (tui_show_frame_info): Don't call
  4891. tui_clear_source_content.
  4892. 2019-08-15 Tom Tromey <tom@tromey.com>
  4893. * tui/tui-winsource.h (struct tui_source_window_base)
  4894. <do_erase_source_content>: New method.
  4895. <erase_source_content>: New method.
  4896. (tui_erase_source_content): Don't declare.
  4897. * tui/tui-winsource.c (tui_clear_source_content): Update.
  4898. (tui_source_window_base::do_erase_source_content): Rename from
  4899. tui_erase_source_content.
  4900. (tui_source_window_base::show_source_content): Update.
  4901. * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
  4902. * tui/tui-source.h (struct tui_source_window)
  4903. <erase_source_content>: New method.
  4904. * tui/tui-disasm.h (struct tui_disasm_window)
  4905. <erase_source_content>: New method.
  4906. 2019-08-15 Tom Tromey <tom@tromey.com>
  4907. * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
  4908. (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
  4909. constructor.
  4910. * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
  4911. * tui/tui-source.c (tui_set_source_content): Update.
  4912. * tui/tui-disasm.c (tui_set_disassem_content): Update.
  4913. 2019-08-15 Tom Tromey <tom@tromey.com>
  4914. * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
  4915. * tui/tui-winsource.c (tui_line_is_displayed): Move to
  4916. tui-source.c.
  4917. * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
  4918. Declare.
  4919. * tui/tui-source.c (tui_source_window::line_is_displayed): New
  4920. method.
  4921. (tui_source_window::maybe_update): Update.
  4922. 2019-08-15 Tom Tromey <tom@tromey.com>
  4923. * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
  4924. * tui/tui-winsource.c (tui_addr_is_displayed): Move to
  4925. tui-disasm.c.
  4926. * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
  4927. Declare.
  4928. * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
  4929. method.
  4930. (tui_disasm_window::maybe_update): Update.
  4931. 2019-08-15 Tom Tromey <tom@tromey.com>
  4932. * tui/tui-winsource.h (struct tui_source_window_base)
  4933. <maybe_update>: Declare.
  4934. * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
  4935. method.
  4936. * tui/tui-source.h (struct tui_source_window) <maybe_update>:
  4937. Declare.
  4938. * tui/tui-source.c (tui_source_window::maybe_update): New method.
  4939. * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
  4940. Declare.
  4941. * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
  4942. 2019-08-15 Tom Tromey <tom@tromey.com>
  4943. * tui/tui-stack.c (tui_make_status_line): Use string constructor.
  4944. 2019-08-15 Tom Tromey <tom@tromey.com>
  4945. * tui/tui-wingeneral.c: Include tui-stack.h.
  4946. * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
  4947. (struct tui_locator_window): Move from tui-data.h.
  4948. * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
  4949. (tui_initialize_static_data): Move from tui-data.c.
  4950. * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
  4951. (struct tui_locator_window): Move to tui-stack.c.
  4952. * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
  4953. (tui_initialize_static_data): Move to tui-stack.c.
  4954. 2019-08-15 Tom Tromey <tom@tromey.com>
  4955. * tui/tui-layout.c (show_source_disasm_command)
  4956. (show_source_or_disasm_and_command): Use make_visible method, not
  4957. tui_make_window.
  4958. * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
  4959. Remove.
  4960. 2019-08-15 Tom Tromey <tom@tromey.com>
  4961. * tui/tui-wingeneral.h (tui_make_window): Update.
  4962. * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
  4963. parameter.
  4964. (tui_gen_win_info::make_visible): Update.
  4965. * tui/tui-regs.c (tui_data_window::display_registers_from):
  4966. Update.
  4967. * tui/tui-layout.c (show_source_disasm_command)
  4968. (show_source_or_disasm_and_command): Update.
  4969. * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
  4970. (enum tui_box): Remove.
  4971. (struct tui_win_info) <can_box>: New method.
  4972. * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
  4973. method.
  4974. 2019-08-15 Tom de Vries <tdevries@suse.de>
  4975. * linux-nat-trad.c: Include gdbarch.h.
  4976. 2019-08-14 Alan Hayward <alan.hayward@arm.com>
  4977. * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
  4978. register sizes.
  4979. 2019-08-14 Tom Tromey <tromey@adacore.com>
  4980. * darwin-nat.c: Include gdbarch.h.
  4981. * darwin-nat-info.c: Include gdbarch.h.
  4982. 2019-08-13 Tom Tromey <tom@tromey.com>
  4983. * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
  4984. Remove.
  4985. * tui/tui-data.c (tui_initialize_static_data): Update.
  4986. 2019-08-13 Tom Tromey <tom@tromey.com>
  4987. * tui/tui-winsource.h (struct tui_exec_info_window)
  4988. <~tui_exec_info_window, maybe_allocate_content, get_content,
  4989. m_content>: Remove.
  4990. (struct tui_source_window_base) <set_exec_info_content,
  4991. show_exec_info_content>: Don't declare.
  4992. * tui/tui-winsource.c
  4993. (tui_exec_info_window::maybe_allocate_content): Remove.
  4994. (tui_source_window_base::update_exec_info): Rename from
  4995. set_exec_info_content.
  4996. (tui_source_window_base::show_exec_info_content)
  4997. (tui_source_window_base::update_exec_info): Remove.
  4998. 2019-08-13 Tom Tromey <tom@tromey.com>
  4999. * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
  5000. declare.
  5001. * tui/tui-winsource.c (tui_update_source_window_as_is)
  5002. (tui_update_source_windows_with_addr, tui_erase_source_content):
  5003. Update.
  5004. (tui_clear_exec_info_content): Remove.
  5005. 2019-08-13 Tom Tromey <tom@tromey.com>
  5006. * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
  5007. declare.
  5008. * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
  5009. call tui_erase_exec_info_content.
  5010. (tui_clear_exec_info_content): Rename from
  5011. tui_erase_exec_info_content.
  5012. (tui_clear_exec_info_content): Delete.
  5013. 2019-08-13 Tom Tromey <tom@tromey.com>
  5014. * tui/tui-winsource.h (struct tui_source_window_base)
  5015. <show_exec_info_content>: Declare.
  5016. (tui_show_exec_info_content): Don't declare.
  5017. * tui/tui-winsource.c
  5018. (tui_source_window_base::show_exec_info_content): Rename from
  5019. tui_show_exec_info_content.
  5020. (tui_source_window_base::update_exec_info): Update.
  5021. 2019-08-13 Tom Tromey <tom@tromey.com>
  5022. * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
  5023. (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
  5024. (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
  5025. * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
  5026. tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
  5027. (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
  5028. ... here.
  5029. 2019-08-13 Tom Tromey <tom@tromey.com>
  5030. * tui/tui-winsource.h (struct tui_source_window_base)
  5031. <update_exec_info>: Declare.
  5032. (tui_update_exec_info): Don't declare.
  5033. * tui/tui-winsource.c (tui_update_source_window_as_is)
  5034. (tui_source_window_base::refresh_all)
  5035. (tui_update_all_breakpoint_info): Update.
  5036. (tui_source_window_base::update_exec_info): Rename from
  5037. tui_update_exec_info.
  5038. * tui/tui-stack.c (tui_show_frame_info): Update.
  5039. 2019-08-13 Tom Tromey <tom@tromey.com>
  5040. * tui/tui-winsource.h (struct tui_source_window_base)
  5041. <set_exec_info_content>: Declare.
  5042. (tui_set_exec_info_content): Don't declare.
  5043. * tui/tui-winsource.c
  5044. (tui_source_window_base::set_exec_info_content): Rename from
  5045. tui_set_exec_info_content.
  5046. (tui_update_exec_info): Update.
  5047. 2019-08-13 Tom Tromey <tom@tromey.com>
  5048. * tui/tui-winsource.h (struct tui_source_window_base)
  5049. <show_source_content>: Declare.
  5050. (tui_show_source_content): Don't declare.
  5051. * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
  5052. (tui_source_window_base::show_source_content): Rename from
  5053. tui_show_source_content.
  5054. (tui_source_window_base::refresh_all): Update.
  5055. * tui/tui-layout.c (show_source_disasm_command)
  5056. (show_source_or_disasm_and_command): Update.
  5057. 2019-08-13 Tom Tromey <tom@tromey.com>
  5058. * tui/tui-winsource.c (tui_erase_source_content)
  5059. (tui_show_source_content, tui_source_window_base::refresh_all):
  5060. Update.
  5061. * tui/tui-wingeneral.h
  5062. (tui_check_and_display_highlight_if_needed): Don't declare.
  5063. * tui/tui-wingeneral.c
  5064. (tui_win_info::check_and_display_highlight_if_needed): Rename from
  5065. check_and_display_highlight_if_needed.
  5066. * tui/tui-win.c (tui_rehighlight_all)
  5067. (tui_win_info::make_visible_with_new_height): Update.
  5068. * tui/tui-regs.c (tui_data_window::display_registers_from_line)
  5069. (tui_data_window::erase_data_content)
  5070. (tui_data_window::display_all_data): Update.
  5071. * tui/tui-data.h (struct tui_win_info)
  5072. <check_and_display_highlight_if_needed>: Declare.
  5073. 2019-08-13 Tom Tromey <tom@tromey.com>
  5074. * tui/tui-win.c (tui_resize_all): Call
  5075. tui_delete_invisible_windows.
  5076. * tui/tui-layout.c (show_layout): Call
  5077. tui_delete_invisible_windows.
  5078. * tui/tui-data.h (tui_delete_invisible_windows): Declare.
  5079. * tui/tui-data.c (tui_delete_invisible_windows): New function.
  5080. 2019-08-13 Tom Tromey <tom@tromey.com>
  5081. * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
  5082. tui_add_win_to_layout.
  5083. 2019-08-13 Tom Tromey <tom@tromey.com>
  5084. * tui/tui-layout.h (tui_default_win_height): Don't declare.
  5085. * tui/tui-layout.c (tui_default_win_height): Now static.
  5086. 2019-08-13 Tom Tromey <tom@tromey.com>
  5087. * tui/tui-layout.c (show_layout): Unify all layout cases into a
  5088. single switch.
  5089. (show_source_disasm_command, show_source_or_disasm_and_command):
  5090. Don't check current layout.
  5091. 2019-08-13 Tom Tromey <tom@tromey.com>
  5092. * tui/tui-wingeneral.c (make_all_visible): Remove.
  5093. (tui_make_all_invisible): Simplify.
  5094. * tui/tui-layout.c (tui_make_all_invisible): Move from
  5095. tui-wingeneral.c; simplify.
  5096. (show_layout): Hoist call to tui_make_all_invisible.
  5097. (show_data): Don't call tui_make_all_invisible.
  5098. 2019-08-13 Tom Tromey <tom@tromey.com>
  5099. * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
  5100. * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
  5101. 2019-08-13 Tom Tromey <tom@tromey.com>
  5102. * tui/tui-layout.c (current_layout, tui_current_layout): Move from
  5103. tui-data.c.
  5104. (show_source_disasm_command, show_data)
  5105. (show_source_or_disasm_and_command): Don't use
  5106. tui_set_current_layout_to.
  5107. * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
  5108. * tui/tui-data.c (current_layout, tui_current_layout): Move to
  5109. tui-layout.c.
  5110. (tui_set_current_layout_to): Remove.
  5111. 2019-08-13 Tom Tromey <tom@tromey.com>
  5112. * tui/tui-layout.c (tui_set_layout): Update.
  5113. * tui/tui-data.h (struct tui_layout_def): Remove.
  5114. (tui_layout_def): Don't declare.
  5115. * tui/tui-data.c (layout_def): Remove.
  5116. (tui_layout_def): Remove.
  5117. 2019-08-13 Tom Tromey <tom@tromey.com>
  5118. * tui/tui-winsource.h (struct tui_source_window_base)
  5119. <clear_detail>: No longer "override".
  5120. * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
  5121. * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
  5122. * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
  5123. * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
  5124. Remove.
  5125. * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
  5126. 2019-08-13 Tom Tromey <tromey@adacore.com>
  5127. * tracepoint.c: Don't include readline.h or history.h.
  5128. 2019-08-12 Tom Tromey <tom@tromey.com>
  5129. * configure: Rebuild.
  5130. * configure.ac: Check for readline 7.
  5131. * NEWS: Mention readline 7 requirement.
  5132. * README: Update.
  5133. 2019-08-12 Tom Tromey <tom@tromey.com>
  5134. * mingw-hdep.c (gdb_select): Remove readline hack.
  5135. 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
  5136. * blockframe.c (find_pc_partial_function): Set *block to nullptr
  5137. when the function fails.
  5138. 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
  5139. * s390-tdep.c (s390_type_align): New function.
  5140. (s390_gdbarch_init): Set it as type_align gdbarch method.
  5141. 2019-08-09 Tom de Vries <tdevries@suse.de>
  5142. PR gdb/24591
  5143. * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
  5144. pc_low with relocation offset.
  5145. 2019-08-07 Tom Tromey <tromey@adacore.com>
  5146. * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
  5147. (print_frame_args): Update.
  5148. * python/py-framefilter.c (py_print_single_arg, enumerate_args):
  5149. Update.
  5150. * mi/mi-cmd-stack.c (list_arg_or_local): Update.
  5151. * frame.h (struct frame_arg): Add initializers.
  5152. <error>: Now a unique_xmalloc_ptr.
  5153. 2019-08-07 Alan Hayward <alan.hayward@arm.com>
  5154. * NEWS: Expand the Pointer Authentication entry.
  5155. * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
  5156. (aarch64_frame_unmask_lr): ... to this.
  5157. (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
  5158. Call aarch64_frame_unmask_lr.
  5159. * frame.c (struct frame_info): Add "masked" variable.
  5160. (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
  5161. (fprint_frame): Check for masked pc.
  5162. * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
  5163. declarations.
  5164. * python/py-framefilter.c (py_print_frame): Check for masked pc.
  5165. * stack.c (print_frame): Check for masked pc.
  5166. 2019-08-06 Tom Tromey <tom@tromey.com>
  5167. * stabsread.c (patch_block_stabs, read_one_struct_field)
  5168. (read_enum_type): Use obstack_strndup.
  5169. * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
  5170. * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
  5171. * dwarf2read.c (guess_full_die_structure_name)
  5172. (anonymous_struct_prefix): Use obstack_strndup.
  5173. * dbxread.c (cp_set_block_scope): Use obstack_strndup.
  5174. * c-exp.y (yylex): Use obstack_strndup.
  5175. * ada-exp.y (write_object_renaming, write_ambiguous_var)
  5176. (write_var_or_type): Use obstack_strndup.
  5177. 2019-08-06 Tom Tromey <tom@tromey.com>
  5178. * symfile.c (reread_symbols): Use obstack_strdup.
  5179. * stabsread.c (read_type): Use obstack_strdup.
  5180. * gdb_obstack.h (obstack_strdup): New overload.
  5181. * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
  5182. (create_dwo_unit_in_dwp_v2, build_error_marker_type)
  5183. (dwarf2_canonicalize_name): Use obstack_strdup.
  5184. * dbxread.c (read_dbx_symtab): Use obstack_strdup.
  5185. * cp-support.c (inspect_type, replace_typedefs_qualified_name):
  5186. Use obstack_strdup.
  5187. 2019-08-06 Tom Tromey <tom@tromey.com>
  5188. * gdb_obstack.h (obstack_strdup): Define.
  5189. * gdb_obstack.c (obstack_strdup): Don't define.
  5190. 2019-08-06 Tom Tromey <tom@tromey.com>
  5191. * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
  5192. obstack_strdup.
  5193. * typeprint.c (typedef_hash_table::find_global_typedef): Use
  5194. obstack_strdup.
  5195. * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
  5196. * stabsread.c (common_block_start): Use obstack_strdup.
  5197. * objfiles.c (set_objfile_main_name, objfile): Use
  5198. obstack_strdup.
  5199. * namespace.c (add_using_directive): Use obstack_strdup.
  5200. * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
  5201. * jit.c (finalize_symtab): Use obstack_strdup.
  5202. * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
  5203. (guess_partial_die_structure_name, partial_die_info::fixup)
  5204. (dwarf2_name): Use obstack_strdup.
  5205. * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
  5206. obstack_strdup.
  5207. * c-exp.y (scan_macro_expansion): Use obstack_strdup.
  5208. * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
  5209. obstack_strdup.
  5210. * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
  5211. 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  5212. * unittests/help-doc-selftests.c: New file.
  5213. * Makefile.in: Add the new file.
  5214. 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  5215. * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
  5216. * cli/cli-decode.c (print_doc_line): Likewise. It now prints
  5217. the full first line, except when FOR_VALUE_PREFIX. In this case,
  5218. the trailing '.' is not output, and the first character is uppercased.
  5219. (print_help_for_command): Update call to print_doc_line.
  5220. (print_doc_of_command): Likewise.
  5221. * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
  5222. * cli/cli-option.c (append_indented_doc): Do not append newline.
  5223. (build_help_option): Append newline after first appended_indented_doc
  5224. only if a second call is done.
  5225. (build_help): Append 2 new lines before each option, except the first
  5226. one.
  5227. * compile/compile.c (_initialize_compile): Add new lines after
  5228. %OPTIONS%, when not at the end of the help.
  5229. Change help doc or code
  5230. producing the help doc to respect the invariants.
  5231. * maint-test-options.c (_initialize_maint_test_options): Likewise.
  5232. Also removed the new line after 'Options:', as all other commands
  5233. do not put an empty line between 'Options:' and the first option.
  5234. * printcmd.c (_initialize_printcmd): Likewise.
  5235. * stack.c (_initialize_stack): Likewise.
  5236. * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
  5237. incorrectly telling COMMAND is optional.
  5238. * ada-lang.c (_initialize_ada_language): Change help doc or code
  5239. producing the help doc to respect the invariants.
  5240. * ada-tasks.c (_initialize_ada_tasks): Likewise.
  5241. * breakpoint.c (_initialize_breakpoint): Likewise.
  5242. * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
  5243. * cli/cli-logging.c (_initialize_cli_logging): Likewise.
  5244. * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
  5245. * cli/cli-style.c (cli_style_option::add_setshow_commands,
  5246. _initialize_cli_style): Likewise.
  5247. * corelow.c (core_target_info): Likewise.
  5248. * dwarf-index-cache.c (_initialize_index_cache): Likewise.
  5249. * dwarf2read.c (_initialize_dwarf2_read): Likewise.
  5250. * filesystem.c (_initialize_filesystem): Likewise.
  5251. * frame.c (_initialize_frame): Likewise.
  5252. * gnu-nat.c (add_task_commands): Likewise.
  5253. * infcall.c (_initialize_infcall): Likewise.
  5254. * infcmd.c (_initialize_infcmd): Likewise.
  5255. * interps.c (_initialize_interpreter): Likewise.
  5256. * language.c (_initialize_language): Likewise.
  5257. * linux-fork.c (_initialize_linux_fork): Likewise.
  5258. * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
  5259. * maint.c (_initialize_maint_cmds): Likewise.
  5260. * memattr.c (_initialize_mem): Likewise.
  5261. * printcmd.c (_initialize_printcmd): Likewise.
  5262. * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
  5263. _RegEx): Likewise.
  5264. * ravenscar-thread.c (_initialize_ravenscar): Likewise.
  5265. * record-btrace.c (_initialize_record_btrace): Likewise.
  5266. * record-full.c (_initialize_record_full): Likewise.
  5267. * record.c (_initialize_record): Likewise.
  5268. * regcache-dump.c (_initialize_regcache_dump): Likewise.
  5269. * regcache.c (_initialize_regcache): Likewise.
  5270. * remote.c (add_packet_config_cmd, init_remote_threadtests,
  5271. _initialize_remote): Likewise.
  5272. * ser-tcp.c (_initialize_ser_tcp): Likewise.
  5273. * serial.c (_initialize_serial): Likewise.
  5274. * skip.c (_initialize_step_skip): Likewise.
  5275. * source.c (_initialize_source): Likewise.
  5276. * stack.c (_initialize_stack): Likewise.
  5277. * symfile.c (_initialize_symfile): Likewise.
  5278. * symtab.c (_initialize_symtab): Likewise.
  5279. * target-descriptions.c (_initialize_target_descriptions): Likewise.
  5280. * top.c (init_main): Likewise.
  5281. * tracefile-tfile.c (tfile_target_info): Likewise.
  5282. * tracepoint.c (_initialize_tracepoint): Likewise.
  5283. * tui/tui-win.c (_initialize_tui_win): Likewise.
  5284. * utils.c (add_internal_problem_command): Likewise.
  5285. * valprint.c (value_print_option_defs): Likewise.
  5286. 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
  5287. PR build/24886
  5288. * configure.ac: Drop enable-libmcheck support.
  5289. * configure, config.in: Rebuild.
  5290. * libmcheck.m4: Remove.
  5291. * acinclude.m4: Don't include it.
  5292. * Makefile.in: Don't distribute it.
  5293. * top.c (print_gdb_configuration): Don't mention it.
  5294. 2019-08-06 Tom Tromey <tom@tromey.com>
  5295. * utils.c (set_output_style): Sometimes pass stream to
  5296. emit_style_escape.
  5297. * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
  5298. * record-btrace.c (btrace_insn_history): Update.
  5299. * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
  5300. method.
  5301. * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
  5302. Update initializers.
  5303. <m_uiout>: New field.
  5304. <m_di>: Move lower.
  5305. * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
  5306. Remove "uiout" parameter.
  5307. (dump_insns): Update.
  5308. * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
  5309. * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
  5310. 2019-08-06 Christian Biesinger <cbiesinger@google.com>
  5311. * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
  5312. (error_in_psymtab_expansion): Likewise.
  5313. (lookup_symbol_via_quick_fns): Likewise.
  5314. (basic_lookup_transparent_type_quick): Likewise.
  5315. (basic_lookup_transparent_type_1): Likewise.
  5316. 2019-08-06 Tom Tromey <tromey@adacore.com>
  5317. * source.c (last_source_error): Now bool.
  5318. (print_source_lines_base): Make "noprint" bool. Only open
  5319. source file when last_source_visited changes.
  5320. 2019-08-06 Tom Tromey <tromey@adacore.com>
  5321. * annotate.c (annotate_source_line): Use g_source_cache.
  5322. * source-cache.c (source_cache::get_plain_source_lines): Change
  5323. parameters. Populate m_offset_cache.
  5324. (source_cache::ensure): New method.
  5325. (source_cache::get_line_charpos): New method.
  5326. (extract_lines): Move lower. Change parameters.
  5327. (source_cache::get_source_lines): Move lower.
  5328. * source-cache.h (class source_cache): Update comment.
  5329. <get_line_charpos>: New method.
  5330. <get_source_lines>: Update comment.
  5331. <clear>: Clear m_offset_cache.
  5332. <get_plain_source_lines>: Change parameters.
  5333. <ensure>: New method
  5334. <m_offset_cache>: New member.
  5335. * source.c (forget_cached_source_info_for_objfile): Update.
  5336. (info_source_command): Use g_source_cache.
  5337. (find_source_lines, open_source_file_with_line_charpos): Remove.
  5338. (print_source_lines_base, search_command_helper): Use g_source_cache.
  5339. * source.h (open_source_file_with_line_charpos): Don't declare.
  5340. * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
  5341. * tui/tui-source.c (tui_source_window::do_scroll_vertical):
  5342. Use g_source_cache.
  5343. 2019-08-06 Tom Tromey <tromey@adacore.com>
  5344. * source-cache.c (source_cache::get_plain_source_lines):
  5345. Remove "first_line" and "last_line" parameters.
  5346. (source_cache::get_source_lines): Cache plain text.
  5347. * source-cache.h (class source_cache)
  5348. <get_plain_source_lines>: Update.
  5349. 2019-08-06 Tom Tromey <tromey@adacore.com>
  5350. * source-cache.c (extract_lines): No longer a method.
  5351. Changed type of parameter. Include final newline.
  5352. (selftests::extract_lines_test): New function.
  5353. (_initialize_source_cache): Likewise.
  5354. * source-cache.h (class source_cache)
  5355. <extract_lines>: Don't declare.
  5356. 2019-08-06 Tom Tromey <tromey@adacore.com>
  5357. * breakpoint.c (init_breakpoint_sal): Update.
  5358. (breakpoint): Update.
  5359. * breakpoint.h (struct breakpoint) <filter>: Now a
  5360. unique_xmalloc_ptr.
  5361. 2019-08-05 Christian Biesinger <cbiesinger@google.com>
  5362. * NEWS: Mention dictionary access on blocks.
  5363. * python/py-block.c (blpy_getitem): New function.
  5364. (block_object_as_mapping): New struct.
  5365. (block_object_type): Use new struct for tp_as_mapping field.
  5366. 2019-08-05 Christian Biesinger <cbiesinger@google.com>
  5367. * objfiles.h (objfile): Add a comment describing partial symbols.
  5368. 2019-08-05 Tom Tromey <tromey@adacore.com>
  5369. * compile/compile.c (_initialize_compile): Use _(), not N_().
  5370. * thread.c (_initialize_thread): Use _(), not N_().
  5371. * stack.c (_initialize_stack): Use _(), not N_().
  5372. * printcmd.c (_initialize_printcmd): Use _(), not N_().
  5373. 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
  5374. * dwarf2read.c (struct dw2_symtab_iterator):
  5375. <want_specific_block>: Remove.
  5376. <block_index>: Change type to gdb::optional.
  5377. (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
  5378. change type of BLOCK_INDEX parameter to gdb::optional.
  5379. (dw2_symtab_iter_next): Re-write in function of gdb::optional.
  5380. (dw2_lookup_symbol): Don't pass argument for
  5381. WANT_SPECIFIC_BLOCK.
  5382. (dw2_expand_symtabs_for_function): Don't pass argument for
  5383. WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
  5384. (class dw2_debug_names_iterator)
  5385. <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
  5386. parameter, change BLOCK_INDEX type to gdb::optional.
  5387. <m_want_specific_block>: Remove.
  5388. <m_block_index>: Change type to gdb::optional.
  5389. (dw2_debug_names_iterator::next): Change type of IS_STATIC to
  5390. gdb::optional. Re-write in function of gdb::optional.
  5391. (dw2_debug_names_lookup_symbol): Don't pass argument for
  5392. WANT_SPECIFIC_BLOCK.
  5393. (dw2_debug_names_expand_symtabs_for_function): Don't pass
  5394. argument for WANT_SPECIFIC_BLOCK, pass empty optional for
  5395. BLOCK_INDEX.
  5396. 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  5397. * NEWS: Mention changes to "info sources" command.
  5398. 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  5399. * symtab.c (filename_partial_match_opts): New struct type.
  5400. (struct output_source_filename_data): New members
  5401. regexp, c_regexp, partial_match.
  5402. (output_source_filename): Use new members to decide to print file.
  5403. (info_sources_option_defs): New variable.
  5404. (make_info_sources_options_def_group, print_info_sources_header,
  5405. info_sources_command_completer):
  5406. New functions.
  5407. (info_sources_command): Read new optional arguments.
  5408. (_initialize_symtab): Update info sources help.
  5409. 2019-08-02 Alexandre Oliva <oliva@adacore.com>
  5410. * ada-lang.c (exception_support_info_v0): Renamed from...
  5411. (default_exception_support_info): ... this. Create new
  5412. definition for v1.
  5413. (ada_has_this_exception_support): Look up catch_handlers_sym.
  5414. (ada_exception_support_info_sniffer): Try v0 after default.
  5415. 2019-08-01 Tom Tromey <tromey@adacore.com>
  5416. * ia64-libunwind-tdep.h (struct libunwind_descr): Include
  5417. gdbarch.h.
  5418. 2019-08-01 Christian Biesinger <cbiesinger@google.com>
  5419. * s12z-tdep.c: Fix include path for s12z-opc.h.
  5420. 2019-08-01 Alan Hayward <alan.hayward@arm.com>
  5421. * NEWS: Require GNU make 3.82.
  5422. 2019-07-16 Tom Tromey <tom@tromey.com>
  5423. * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
  5424. declare.
  5425. 2019-07-30 Tom Tromey <tromey@adacore.com>
  5426. * block.c (contained_in): Remove BLOCK_FUNCTION check.
  5427. 2019-07-30 Kevin Buettner <kevinb@redhat.com>
  5428. * printcmd.c (print_address_symbolic): Print negative offsets.
  5429. (build_address_symbolic): Force signed arithmetic when computing
  5430. offset.
  5431. 2019-07-30 Christian Biesinger <cbiesinger@google.com>
  5432. PR/24474: Add a function to lookup static variables.
  5433. * NEWS: Mention this new function.
  5434. * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
  5435. * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
  5436. * python/python.c (python_GdbMethods): Add new function.
  5437. 2019-07-29 Christian Biesinger <cbiesinger@google.com>
  5438. * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
  5439. * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
  5440. (objfpy_lookup_static_symbol): New function.
  5441. (objfile_object_methods): Add new functions.
  5442. 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  5443. * NEWS: Mention 'set|show print frame-info'. Mention new
  5444. 'presence' value for 'frame-arguments'. Mention new '-frame-info'
  5445. backtrace argument. Mention that python frame filtering code
  5446. is now consistent with what 'backtrace' command prints.
  5447. 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  5448. * frame.h (enum print_what): New value 'SHORT_LOCATION', update
  5449. comments.
  5450. (print_frame_info_auto, print_frame_info_source_line,
  5451. print_frame_info_location, print_frame_info_source_and_location,
  5452. print_frame_info_location_and_address, print_frame_info_short_location):
  5453. New declarations.
  5454. (struct frame_print_options): New member print_frame_info.
  5455. * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
  5456. * stack.h (get_user_print_what_frame_info): New declaration.
  5457. (frame_show_address): New declaration.
  5458. * stack.c (print_frame_arguments_choices): New value 'presence'.
  5459. (print_frame_info_auto, print_frame_info_source_line,
  5460. print_frame_info_location, print_frame_info_source_and_location,
  5461. print_frame_info_location_and_address, print_frame_info_short_location,
  5462. print_frame_info_choices, print_frame_info_print_what): New definitions.
  5463. (print_frame_args): Only print dots for args if print frame-arguments
  5464. is 'presence'.
  5465. (frame_print_option_defs): New element for "frame-info".
  5466. (get_user_print_what_frame_info): New function.
  5467. (frame_show_address): Make non static. Move comment to stack.h.
  5468. (print_frame_info_to_print_what): New function.
  5469. (print_frame_info): Update comment. Use fp_opts.print_frame_info
  5470. to decide what to print.
  5471. (backtrace_command_1): Handle the new print_frame_arguments_presence
  5472. value.
  5473. (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
  5474. * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
  5475. (py_print_frame): In non-mi mode, use LOCATION as default for
  5476. print_what, similarly to frame information printed directly by
  5477. backtrace command. Handle frame-info user option in non MI mode.
  5478. 2019-07-27 Kevin Buettner <kevinb@redhat.com>
  5479. * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
  5480. Add case for debugging 32-bit target on 64-bit host. Revise
  5481. comment.
  5482. 2019-07-27 Kevin Buettner <kevinb@redhat.com>
  5483. * infrun.c (fill_in_stop_func): Use find_pc_partial_function
  5484. instead of find_function_entry_range_from_pc.
  5485. 2019-07-27 Kevin Buettner <kevinb@redhat.com>
  5486. * stack.c (find_frame_funname): Remove code which preferred
  5487. minsym over symtab sym in "certain pathological cases".
  5488. * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
  5489. parameter. Change type of "do_demangle" to bool.
  5490. * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
  5491. Pass suitable "prefer_sym_over_minsym" flag to
  5492. build_address_symbolic(). Don't output "+" for negative offsets.
  5493. * printcmd.c (print_address_symbolic): Update invocation of
  5494. build_address_symbolic to include a "prefer_sym_over_minsym"
  5495. flag.
  5496. (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
  5497. Restrict cases in which use of minimal symbol is preferred to that
  5498. of a found symbol. Update comments.
  5499. * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
  5500. for entry pc when entry pc is out of range for that FDE.
  5501. 2019-07-26 Brian Callahan <bcallah@openbsd.org>
  5502. PR gdb/24839:
  5503. * obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
  5504. type.
  5505. 2019-07-25 Christian Biesinger <cbiesinger@google.com>
  5506. * python/py-objfile.c (add_separate_debug_file): Fix comment about
  5507. this function's Python signature.
  5508. 2019-07-24 Christian Biesinger <cbiesinger@google.com>
  5509. * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
  5510. * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
  5511. * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
  5512. * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
  5513. * symtab.h (lookup_global_symbol_from_objfile): Likewise.
  5514. 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
  5515. * h8300-tdep.c (h8300_register_name_common): New.
  5516. h8300_register_name): Use h8300_register_name_common.
  5517. (h8300s_register_name): Likewise.
  5518. (h8300sx_register_name): Likewise.
  5519. (h8300h_register_nam): New.
  5520. (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
  5521. 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
  5522. * arm-tdep.c (arm_skip_cmse_entry): New function.
  5523. (arm_is_sgstubs_section): New function.
  5524. (arm_skip_stub): Add call to arm_skip_cmse_entry function.
  5525. 2019-07-22 Tom Tromey <tom@tromey.com>
  5526. * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
  5527. Don't self-assign.
  5528. 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
  5529. * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
  5530. type_print.
  5531. 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
  5532. * symtab.c (search_symbols): Adjust msymbol matching type arrays
  5533. so that GDB doesn't match any msymbols when searching in the
  5534. TYPES_DOMAIN.
  5535. (print_symbol_info): Print using typedef_print or type_print based
  5536. on the type of the symbol. Add updated FIXME comment moved from...
  5537. (_initialize_symtab): ... move and update FIXME comment to above.
  5538. 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
  5539. * NEWS: Mention adding -q option to "info types".
  5540. * symtab.c (struct info_types_options): New struct.
  5541. (info_types_options_defs): New variable.
  5542. (make_info_types_options_def_group): New function.
  5543. (info_types_command): Use gdb::option framework to parse options.
  5544. (info_types_command_completer): New function.
  5545. (_initialize_symtab): Extend the help text on "info types" and
  5546. register command completer.
  5547. 2019-07-21 Christian Biesinger <cbiesinger@google.com>
  5548. * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
  5549. (lookup_symbol_in_objfile): Change int to block_enum and add a
  5550. gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
  5551. 2019-07-20 Christian Biesinger <cbiesinger@google.com>
  5552. * MAINTAINERS (Write After Approval): Add self.
  5553. 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
  5554. * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
  5555. instruction to the dummy code region.
  5556. 2019-07-19 Tom Tromey <tromey@adacore.com>
  5557. * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
  5558. (ARGSUSED, PARAMS, __func__): Remove rules.
  5559. 2019-07-19 Alan Hayward <alan.hayward@arm.com>
  5560. * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
  5561. * features/arm/arm-with-iwmmxt.c: Remove.
  5562. * features/arm/arm-with-iwmmxt.xml: Remove.
  5563. * features/arm/arm-with-m-fpa-layout.c: Remove.
  5564. * features/arm/arm-with-m-fpa-layout.xml: Remove.
  5565. * features/arm/arm-with-m-vfp-d16.c: Remove.
  5566. * features/arm/arm-with-m-vfp-d16.xml: Remove.
  5567. * features/arm/arm-with-m.c: Remove.
  5568. * features/arm/arm-with-m.xml: Remove.
  5569. * features/arm/arm-with-neon.c: Remove.
  5570. * features/arm/arm-with-neon.xml: Remove.
  5571. * features/arm/arm-with-vfpv2.c: Remove.
  5572. * features/arm/arm-with-vfpv2.xml: Remove.
  5573. * features/arm/arm-with-vfpv3.c: Remove.
  5574. * features/arm/arm-with-vfpv3.xml: Remove.
  5575. 2019-07-19 Alan Hayward <alan.hayward@arm.com>
  5576. * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
  5577. 2019-07-19 Alan Hayward <alan.hayward@arm.com>
  5578. * arch/aarch32.c (aarch32_create_target_description): Create
  5579. target descriptions using features.
  5580. * arch/arm.c (arm_create_target_description)
  5581. (arm_create_mprofile_target_description): Likewise.
  5582. * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
  5583. 2019-07-19 Alan Hayward <alan.hayward@arm.com>
  5584. * Makefile.in: Add new files.
  5585. * aarch32-tdep.c: New file.
  5586. * aarch32-tdep.h: New file.
  5587. * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
  5588. Call aarch32_read_description.
  5589. * arch/aarch32.c: New file.
  5590. * arch/aarch32.h: New file.
  5591. * arch/arm.c (arm_create_target_description)
  5592. (arm_create_mprofile_target_description): New function.
  5593. * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
  5594. (arm_create_target_description)
  5595. (arm_create_mprofile_target_description): New declaration.
  5596. * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
  5597. read_description functions.
  5598. * arm-linux-nat.c (arm_linux_nat_target::read_description):
  5599. Likewise.
  5600. * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
  5601. * arm-tdep.c (tdesc_arm_list): New variable.
  5602. (arm_register_g_packet_guesses): Call create description functions.
  5603. (arm_read_description) (arm_read_mprofile_description): New
  5604. function.
  5605. * arm-tdep.h (arm_read_description)
  5606. (arm_read_mprofile_description): Add declaration.
  5607. * configure.tgt: Add new files.
  5608. 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
  5609. * top.c (new_ui_command): Open specified terminal just once.
  5610. 2019-07-18 Tom Tromey <tromey@adacore.com>
  5611. * symtab.c (main_name): Constify return type.
  5612. * symfile.c (set_initial_language): Update.
  5613. * symtab.h (main_name): Constify return type.
  5614. 2019-07-17 Tom Tromey <tom@tromey.com>
  5615. * tui/tui-winsource.c (tui_update_source_window)
  5616. (tui_update_source_window_as_is)
  5617. (tui_update_source_windows_with_line): Remove return.
  5618. * tui/tui-disasm.c (tui_show_disassem)
  5619. (tui_show_disassem_and_update_source): Remove return.
  5620. * tui/tui.c (tui_reset): Remove return.
  5621. * tui/tui-wingeneral.c
  5622. (tui_check_and_display_highlight_if_needed): Remove return.
  5623. 2019-07-17 Tom Tromey <tom@tromey.com>
  5624. * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
  5625. 2019-07-17 Tom Tromey <tom@tromey.com>
  5626. * tui/tui-winsource.h (struct tui_exec_info_window)
  5627. (struct tui_source_window_base): Move from tui-data.h.
  5628. * tui/tui-winsource.c: Move many method definitions from
  5629. elsewhere. Remove "structuring" comments.
  5630. * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
  5631. (tui_source_window_base::refresh_window): Move to
  5632. tui-winsource.c.
  5633. * tui/tui-win.c (tui_source_window_base::refresh_all)
  5634. (tui_source_window_base::update_tab_width)
  5635. (tui_source_window_base::set_new_height)
  5636. (tui_source_window_base::do_make_visible_with_new_height): Move to
  5637. tui-winsource.c.
  5638. * tui/tui-source.h: Update.
  5639. * tui/tui-source.c (tui_source_window_base::reset): Move to
  5640. tui-winsource.c.
  5641. * tui/tui-disasm.h: Update.
  5642. * tui/tui-data.h (struct tui_exec_info_window): Move to
  5643. tui-winsource.h.
  5644. (struct tui_source_window_base): Likewise.
  5645. * tui/tui-data.c (tui_source_window_base::clear_detail)
  5646. (tui_source_window_base, ~tui_source_window_base): Move to
  5647. tui-winsource.c.
  5648. 2019-07-17 Tom Tromey <tom@tromey.com>
  5649. * tui/tui-win.c (tui_resize_all)
  5650. (tui_source_window_base::update_tab_width)
  5651. (tui_adjust_win_heights): Update.
  5652. (tui_win_info::make_invisible_and_set_new_height): Rename from
  5653. make_invisible_and_set_new_height.
  5654. * tui/tui-data.h (struct tui_win_info)
  5655. <make_invisible_and_set_new_height>: New method.
  5656. 2019-07-17 Tom Tromey <tom@tromey.com>
  5657. * tui/tui.c: Update.
  5658. * tui/tui-source.h (struct tui_source_window): Move from
  5659. tui-data.h.
  5660. * tui/tui-layout.c: Update.
  5661. * tui/tui-disasm.c: Update.
  5662. * tui/tui-data.h (struct tui_source_window): Move to
  5663. tui-source.h.
  5664. 2019-07-17 Tom Tromey <tom@tromey.com>
  5665. * tui/tui-disasm.h (struct tui_disasm_window): Move from
  5666. tui-data.h.
  5667. * tui/tui-data.h (struct tui_disasm_window): Move to
  5668. tui-disasm.h.
  5669. 2019-07-17 Tom Tromey <tom@tromey.com>
  5670. * tui/tui-regs.h (struct tui_data_item_window): Move from
  5671. tui-data.h.
  5672. * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
  5673. * tui/tui-data.h (struct tui_data_item_window): Move to
  5674. tui-regs.h.
  5675. * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
  5676. 2019-07-17 Tom Tromey <tom@tromey.com>
  5677. * tui/tui.c: Update.
  5678. * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
  5679. (tui_cmd_window::max_height): Move to tui-command.c.
  5680. * tui/tui-layout.c: Update.
  5681. * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
  5682. * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
  5683. tui-command.c.
  5684. * tui/tui-command.h (struct tui_cmd_window): Move from
  5685. tui-data.h.
  5686. * tui/tui-command.c: Remove "structuring" comments.
  5687. (tui_cmd_window::clear_detail)
  5688. (tui_cmd_window::do_make_visible_with_new_height)
  5689. (tui_cmd_window::max_height): Move from elsewhere.
  5690. 2019-07-17 Tom Tromey <tom@tromey.com>
  5691. * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
  5692. Now static.
  5693. * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
  5694. * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
  5695. 2019-07-17 Tom Tromey <tom@tromey.com>
  5696. * tui/tui.c: Update.
  5697. * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
  5698. tui-regs.c.
  5699. * tui/tui-windata.h: Remove file.
  5700. * tui/tui-windata.c: Remove file.
  5701. * tui/tui-win.c (tui_data_window::set_new_height)
  5702. (tui_data_window::do_make_visible_with_new_height): Move to
  5703. tui-regs.c.
  5704. * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
  5705. * tui/tui-regs.c: Remove "structuring" comments.
  5706. (tui_data_window::first_data_item_displayed)
  5707. (tui_data_window::delete_data_content_windows)
  5708. (tui_data_window::erase_data_content)
  5709. (tui_data_window::display_all_data)
  5710. (tui_data_window::refresh_all)
  5711. (tui_data_window::do_scroll_vertical)
  5712. (tui_data_window::clear_detail, tui_data_window::set_new_height)
  5713. (tui_data_window::do_make_visible_with_new_height)
  5714. (tui_data_window::refresh_window): Move from elsewhere.
  5715. (_initialize_tui_regs): Move to end of file.
  5716. * tui/tui-layout.c: Update.
  5717. * tui/tui-hooks.c: Update.
  5718. * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
  5719. * tui/tui-data.c (tui_data_window::clear_detail): Move to
  5720. tui-regs.c.
  5721. * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
  5722. 2019-07-17 Tom Tromey <tom@tromey.com>
  5723. * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
  5724. seen.
  5725. 2019-07-17 Tom Tromey <tom@tromey.com>
  5726. * tui/tui-win.c (tui_source_window_base::set_new_height)
  5727. (tui_source_window_base::do_make_visible_with_new_height): Use
  5728. m_has_locator field directly.
  5729. * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
  5730. method.
  5731. (struct tui_source_window_base) <has_locator>: Likewise.
  5732. 2019-07-17 Tom Tromey <tom@tromey.com>
  5733. * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
  5734. Don't declare.
  5735. * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
  5736. Remove.
  5737. * tui/tui-win.c (tui_source_window_base::set_new_height)
  5738. (tui_source_window_base::set_new_height)
  5739. (make_invisible_and_set_new_height)
  5740. (tui_source_window_base::do_make_visible_with_new_height)
  5741. (tui_source_window_base::do_make_visible_with_new_height):
  5742. Update.
  5743. * tui/tui-layout.c (show_source_disasm_command, show_data)
  5744. (show_source_or_disasm_and_command): Update.
  5745. * tui/tui-layout.c (show_layout): Update.
  5746. 2019-07-17 Tom Tromey <tom@tromey.com>
  5747. * tui/tui-layout.c (make_data_window): Remove.
  5748. (show_data): Unify creation and re-initialization cases.
  5749. 2019-07-17 Tom Tromey <tom@tromey.com>
  5750. * tui/tui-layout.c (make_source_window, make_disasm_window):
  5751. Remove.
  5752. (show_data): Unify creation and re-initialization cases.
  5753. 2019-07-17 Tom Tromey <tom@tromey.com>
  5754. * tui/tui-layout.c (make_command_window): Remove.
  5755. (show_source_disasm_command, show_source_or_disasm_and_command):
  5756. Unify creation and re-initialization cases.
  5757. 2019-07-17 Tom Tromey <tom@tromey.com>
  5758. * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
  5759. creation and re-initialization cases.
  5760. 2019-07-17 Tom Tromey <tom@tromey.com>
  5761. * tui/tui-regs.c (tui_get_register): Return void.
  5762. 2019-07-17 Tom Tromey <tom@tromey.com>
  5763. * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
  5764. Simplify.
  5765. 2019-07-17 Tom Tromey <tom@tromey.com>
  5766. * tui/tui-layout.c (show_source_disasm_command): Simplify window
  5767. resetting.
  5768. 2019-07-17 Tom Tromey <tom@tromey.com>
  5769. * tui/tui.h (tui_set_layout_by_name): Don't declare.
  5770. * tui/tui-regs.c (tui_reg_layout): New function.
  5771. (tui_show_registers, tui_reg_command): Use it.
  5772. * tui/tui-layout.c (LAYOUT_USAGE): Remove.
  5773. (tui_layout_command): Rename from tui_set_layout_by_name. Change
  5774. parameters.
  5775. (tui_layout_command): Remove.
  5776. 2019-07-17 Tom Tromey <tom@tromey.com>
  5777. * tui/tui-layout.h (tui/tui-layout): Return void.
  5778. * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
  5779. 2019-07-17 Tom Tromey <tom@tromey.com>
  5780. * tui/tui-layout.c (show_source_disasm_command, show_data):
  5781. Update.
  5782. (reset_locator): Remove.
  5783. (show_source_or_disasm_and_command): Update.
  5784. 2019-07-17 Tom Tromey <tom@tromey.com>
  5785. * tui/tui-source.c (tui_source_window_base::reset): Remove
  5786. win_type parameter.
  5787. * tui/tui-layout.c (make_command_window, make_source_window)
  5788. (make_disasm_window, make_data_window)
  5789. (show_source_disasm_command, show_data, tui_gen_win_info::reset)
  5790. (reset_locator, show_source_or_disasm_and_command): Update.
  5791. * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
  5792. win_type parameter.
  5793. (struct tui_source_window_base) <reset>: Likewise.
  5794. 2019-07-17 Tom Tromey <tom@tromey.com>
  5795. * tui/tui-layout.c (show_source_disasm_command): Use
  5796. reset_locator.
  5797. (reset_locator): New function.
  5798. (init_and_make_win): Remove.
  5799. (show_source_or_disasm_and_command): Use reset_locator.
  5800. 2019-07-17 Tom Tromey <tom@tromey.com>
  5801. * tui/tui-winsource.c (tui_set_exec_info_content): Remove
  5802. condition.
  5803. * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
  5804. Remove condition.
  5805. * tui/tui-source.c (tui_source_window_base::reset): New method.
  5806. * tui/tui-layout.c (make_command_window): Don't call
  5807. init_and_make_win.
  5808. (make_source_window, make_disasm_window): Don't call
  5809. make_source_or_disasm_window.
  5810. (make_data_window): Don't call init_and_make_win. Change calling
  5811. convention.
  5812. (show_source_disasm_command, show_data): Simplify.
  5813. (make_source_or_disasm_window): Remove.
  5814. (show_source_or_disasm_and_command): Simplify.
  5815. * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
  5816. (struct tui_source_window_base) <reset>: Likewise.
  5817. <execution_info>: Remove initializer.
  5818. * tui/tui-data.c (tui_source_window_base): Initialize
  5819. execution_info.
  5820. 2019-07-17 Tom Tromey <tom@tromey.com>
  5821. * tui/tui-layout.c (tui_set_layout): Remove regs_populate
  5822. variable.
  5823. 2019-07-17 Tom Tromey <tom@tromey.com>
  5824. * tui/tui.c (tui_rl_other_window): Update.
  5825. * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
  5826. superclass method first. Always iterate over regs_content.
  5827. (tui_unhighlight_win, tui_highlight_win): Use refresh_window
  5828. method.
  5829. * tui/tui-win.c (tui_set_focus_command): Update.
  5830. 2019-07-17 Tom Tromey <tom@tromey.com>
  5831. * tui/tui-win.c (tui_set_focus_command): Rename from
  5832. tui_set_focus. Call tui_enable.
  5833. (tui_set_focus_command): Remove.
  5834. 2019-07-17 Tom Tromey <tom@tromey.com>
  5835. * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
  5836. refresh_window.
  5837. * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
  5838. touchwin.
  5839. (tui_data_window::refresh_window): Call refresh_window on data
  5840. items. Always call superclass refresh_window.
  5841. (tui_win_info::refresh): Remove.
  5842. (tui_source_window_base::refresh_window): Update.
  5843. (tui_refresh_all): Update.
  5844. * tui/tui-layout.c (show_source_disasm_command): Remove call to
  5845. refresh_window.
  5846. (show_source_or_disasm_and_command): Likewise.
  5847. * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
  5848. (struct tui_source_window_base) <refresh>: Likewise.
  5849. 2019-07-17 Tom Tromey <tom@tromey.com>
  5850. * tui/tui-winsource.c (tui_clear_source_content)
  5851. (tui_show_source_content): Update.
  5852. * tui/tui-source.c (tui_source_window::showing_source_p): Check
  5853. whether content is empty.
  5854. * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
  5855. Remove.
  5856. 2019-07-17 Tom Tromey <tom@tromey.com>
  5857. * tui/tui-winsource.c (tui_erase_source_content): Clear the
  5858. window's contents.
  5859. * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
  5860. * tui/tui-source.c (tui_set_source_content_nil): Remove.
  5861. 2019-07-17 Tom Tromey <tom@tromey.com>
  5862. * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
  5863. (struct tui_data_item_window): Update.
  5864. 2019-07-17 Tom Tromey <tom@tromey.com>
  5865. * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
  5866. (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
  5867. defines.
  5868. 2019-07-17 Tom Tromey <tom@tromey.com>
  5869. * tui/tui-winsource.h (tui_erase_source_content)
  5870. (tui_clear_source_content): Remove "display_prompt" parameter.
  5871. * tui/tui-winsource.c (tui_update_source_window_as_is)
  5872. (tui_update_source_windows_with_addr): Update.
  5873. (tui_clear_source_content): Remove "display_prompt" parameter.
  5874. (tui_erase_source_content): Likewise. Simplify.
  5875. (tui_show_source_content): Update.
  5876. * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
  5877. * tui/tui-stack.c (tui_show_frame_info): Update.
  5878. * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
  5879. Remove defines.
  5880. 2019-07-17 Tom Tromey <tom@tromey.com>
  5881. * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
  5882. * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
  5883. parameter.
  5884. * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
  5885. parameter.
  5886. 2019-07-17 Tom Tromey <tom@tromey.com>
  5887. * tui/tui-winsource.c (tui_clear_source_content)
  5888. (tui_show_source_content, tui_show_exec_info_content)
  5889. (tui_clear_exec_info_content): Update.
  5890. * tui/tui-stack.c (tui_show_locator_content): Update.
  5891. (tui_show_frame_info): Update.
  5892. * tui/tui-source.h (tui_source_window): Don't declare.
  5893. * tui/tui-source.c (tui_source_window::showing_source_p): Rename
  5894. from tui_source_is_displayed.
  5895. * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
  5896. Remove field.
  5897. (struct tui_source_window_base) <content_in_use>: New field. Now
  5898. bool.
  5899. (struct tui_source_window) <showing_source_p>: New method.
  5900. (TUI_SRC_WIN): Change cast.
  5901. * tui/tui-data.c (tui_initialize_static_data): Update.
  5902. 2019-07-17 Tom Tromey <tom@tromey.com>
  5903. * tui/tui-winsource.c (tui_update_breakpoint_info): Use
  5904. location_matches_p.
  5905. * tui/tui-source.c (tui_source_window::location_matches_p): New
  5906. method.
  5907. * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
  5908. method.
  5909. * tui/tui-data.h (struct tui_source_window_base)
  5910. <location_matches_p>: New method.
  5911. (struct tui_source_window, struct tui_disasm_window)
  5912. <location_matches_p>: Likewise.
  5913. 2019-07-17 Tom Tromey <tom@tromey.com>
  5914. * tui/tui-win.c (tui_set_win_height_command): Rename from
  5915. tui_set_win_height.
  5916. (tui_set_win_height_command): Remove.
  5917. 2019-07-17 Tom Tromey <tom@tromey.com>
  5918. * tui/tui-source.c (tui_source_window): New constructor. Add
  5919. observer.
  5920. (~tui_source_window): New destructor.
  5921. (tui_source_window::style_changed): New method.
  5922. * tui/tui-hooks.c (tui_redisplay_source): Remove.
  5923. (tui_attach_detach_observers): Update.
  5924. * tui/tui-data.h (struct tui_source_window): Make constructor not
  5925. inline. Add destructor.
  5926. (struct tui_source_window) <style_changed>: New method.
  5927. <m_observable>: New member.
  5928. 2019-07-17 Tom Tromey <tom@tromey.com>
  5929. * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
  5930. * tui/tui-win.c (tui_resize_all): Fix typo.
  5931. 2019-07-17 Tom Tromey <tom@tromey.com>
  5932. * tui/tui-wingeneral.h (tui_refresh_all): Update.
  5933. * tui/tui-wingeneral.c (make_all_visible): Use foreach.
  5934. (tui_refresh_all): Remove "list" parameter. Use foreach.
  5935. * tui/tui-win.c (window_name_completer): Use foreach.
  5936. (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
  5937. (update_tab_width): Likewise.
  5938. * tui/tui-layout.c (show_layout): Update.
  5939. * tui/tui-data.h (class tui_window_iterator): New.
  5940. (struct all_tui_windows): New.
  5941. * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
  5942. 2019-07-17 Tom Tromey <tom@tromey.com>
  5943. * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
  5944. parameter. Don't reference globals.
  5945. (tui_reg_command): Update.
  5946. 2019-07-17 Tom Tromey <tom@tromey.com>
  5947. * tui/tui-regs.c (tui_show_registers): Simplify.
  5948. 2019-07-17 Tom Tromey <tom@tromey.com>
  5949. * tui/tui-regs.c (tui_show_registers): Update.
  5950. (tui_show_register_group): Add win_info parameter.
  5951. 2019-07-17 Tom Tromey <tom@tromey.com>
  5952. * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
  5953. Rename from tui_display_reg_element_at_line.
  5954. (tui_data_window::display_registers_from_line): Update.
  5955. * tui/tui-data.h (struct tui_data_window)
  5956. <display_reg_element_at_line>: New method.
  5957. 2019-07-17 Tom Tromey <tom@tromey.com>
  5958. * tui/tui-regs.h (tui_display_registers_from)
  5959. (tui_display_registers_from_line): Don't declare.
  5960. * tui/tui-windata.c (tui_data_window::display_all_data)
  5961. (tui_data_window::refresh_all)
  5962. (tui_data_window::do_scroll_vertical): Update.
  5963. * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
  5964. from tui_display_registers_from.
  5965. (tui_display_reg_element_at_line): Update.
  5966. (tui_data_window::display_registers_from_line): Rename from
  5967. tui_display_registers_from_line.
  5968. * tui/tui-data.h (struct tui_data_window) <display_registers_from,
  5969. display_registers_from_line>: New methods.
  5970. 2019-07-17 Tom Tromey <tom@tromey.com>
  5971. * tui/tui-windata.h (tui_erase_data_content): Don't declare.
  5972. * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
  5973. from tui_erase_data_content.
  5974. (tui_data_window::display_all_data)
  5975. (tui_data_window::refresh_all)
  5976. (tui_data_window::do_scroll_vertical): Update.
  5977. * tui/tui-regs.c (tui_show_registers): Update.
  5978. * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
  5979. New method.
  5980. 2019-07-17 Tom Tromey <tom@tromey.com>
  5981. * tui/tui-windata.h (tui_delete_data_content_windows): Don't
  5982. declare.
  5983. * tui/tui-windata.c
  5984. (tui_data_window::delete_data_content_windows): Rename from
  5985. tui_delete_data_content_windows.
  5986. (tui_data_window::display_all_data)
  5987. (tui_data_window::do_scroll_vertical): Update.
  5988. * tui/tui-data.h (struct tui_data_window)
  5989. <delete_data_content_windows>: New method.
  5990. 2019-07-17 Tom Tromey <tom@tromey.com>
  5991. * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
  5992. * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
  5993. 2019-07-17 Tom Tromey <tom@tromey.com>
  5994. * tui/tui-windata.h (tui_display_all_data): Don't declare.
  5995. * tui/tui-windata.c (tui_data_window::display_all_data): Rename
  5996. from tui_display_all_data.
  5997. * tui/tui-win.c
  5998. (tui_data_window::do_make_visible_with_new_height): Update.
  5999. * tui/tui-regs.c (tui_show_registers): Update.
  6000. * tui/tui-layout.c (tui_set_layout): Update.
  6001. * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
  6002. method.
  6003. 2019-07-17 Tom Tromey <tom@tromey.com>
  6004. * tui/tui-windata.h (tui_display_data_from): Don't declare.
  6005. * tui/tui-windata.c (tui_display_data_from): Remove.
  6006. (tui_data_window::refresh_all): Update.
  6007. 2019-07-17 Tom Tromey <tom@tromey.com>
  6008. * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
  6009. * tui/tui-windata.c (tui_display_data_from_line): Remove.
  6010. (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
  6011. tui_display_registers_from_line.
  6012. * tui/tui-regs.h (tui_display_registers_from_line): Update.
  6013. * tui/tui-regs.c (tui_display_registers_from_line): Remove
  6014. "force_display" parameter.
  6015. 2019-07-17 Tom Tromey <tom@tromey.com>
  6016. * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
  6017. declare.
  6018. * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
  6019. Rename from tui_first_reg_element_no_inline.
  6020. (tui_display_reg_element_at_line)
  6021. (tui_display_registers_from_line): Update.
  6022. * tui/tui-data.h (struct tui_data_window)
  6023. <first_reg_element_no_inline>: New method.
  6024. 2019-07-17 Tom Tromey <tom@tromey.com>
  6025. * tui/tui-windata.c (tui_display_data_from)
  6026. (tui_data_window::do_scroll_vertical): Update.
  6027. * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
  6028. * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
  6029. Rename from tui_line_from_reg_element_no.
  6030. (tui_display_registers_from_line): Update.
  6031. * tui/tui-data.h (struct tui_data_window)
  6032. <line_from_reg_element_no>: New method.
  6033. 2019-07-17 Tom Tromey <tom@tromey.com>
  6034. * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
  6035. * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
  6036. tui_last_regs_line_no.
  6037. (tui_display_reg_element_at_line)
  6038. (tui_display_registers_from_line): Update.
  6039. * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
  6040. method.
  6041. 2019-07-17 Tom Tromey <tom@tromey.com>
  6042. PR tui/24722:
  6043. * tui/tui-winsource.h (tui_update_all_breakpoint_info)
  6044. (tui_update_breakpoint_info): Add "being_deleted" parameter.
  6045. * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
  6046. (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
  6047. (tui_update_breakpoint_info): Likewise.
  6048. * tui/tui-hooks.c (tui_event_create_breakpoint)
  6049. (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
  6050. Update.
  6051. 2019-07-17 Tom Tromey <tom@tromey.com>
  6052. * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
  6053. 2019-07-17 Tom Tromey <tom@tromey.com>
  6054. * tui/tui-winsource.c (tui_update_source_window_as_is)
  6055. (tui_update_source_windows_with_addr): Update.
  6056. * tui/tui-source.h (tui_set_source_content)
  6057. (tui_show_symtab_source): Add "win_info" parameter.
  6058. * tui/tui-source.c (tui_set_source_content): Add "win_info"
  6059. parameter.
  6060. (tui_show_symtab_source): Likewise.
  6061. 2019-07-17 Tom Tromey <tom@tromey.com>
  6062. * tui/tui-wingeneral.c
  6063. (tui_check_and_display_highlight_if_needed): Check can_highlight.
  6064. 2019-07-17 Tom Tromey <tom@tromey.com>
  6065. * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
  6066. (struct tui_cmd_window) <can_scroll>: New method.
  6067. * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
  6068. method.
  6069. 2019-07-17 Tom Tromey <tromey@adacore.com>
  6070. * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
  6071. do_field_signed>: Rename. Change type of "value".
  6072. * ui-out.c (ui_out::field_signed): Rename from field_int.
  6073. Change type of "value".
  6074. (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
  6075. type of "value".
  6076. * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
  6077. do_field_int. Change type of "value".
  6078. * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
  6079. do_field_int. Change type of "value".
  6080. * tracepoint.c (trace_status_mi, tfind_1)
  6081. (print_one_static_tracepoint_marker): Update.
  6082. * thread.c (print_thread_info_1, print_selected_thread_frame):
  6083. Update.
  6084. * stack.c (print_frame, print_frame_info): Update.
  6085. * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
  6086. Update.
  6087. * source.c (print_source_lines_base): Update.
  6088. * skip.c (info_skip_command): Update.
  6089. * record-btrace.c (btrace_ui_out_decode_error)
  6090. (btrace_call_history_src_line): Update.
  6091. * python/py-framefilter.c (py_print_single_arg, py_print_frame):
  6092. Update.
  6093. * progspace.c (print_program_space): Update.
  6094. * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
  6095. * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
  6096. do_field_int. Change type of "value".
  6097. * mi/mi-out.c (mi_ui_out::do_table_begin)
  6098. (mi_ui_out::do_table_header): Update.
  6099. (mi_ui_out::do_field_signed): Rename from do_field_int. Change
  6100. type of "value".
  6101. * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
  6102. (mi_cmd_data_list_changed_registers, output_register)
  6103. (mi_cmd_data_read_memory, mi_load_progress)
  6104. (mi_cmd_trace_frame_collected): Update.
  6105. * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
  6106. Update.
  6107. * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
  6108. (mi_cmd_var_delete, mi_cmd_var_info_num_children)
  6109. (mi_cmd_var_list_children, varobj_update_one): Update.
  6110. * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
  6111. (mi_cmd_stack_list_args, list_arg_or_local): Update.
  6112. * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
  6113. * inferior.c (print_inferior): Update.
  6114. * gdb_bfd.c (print_one_bfd): Update.
  6115. * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
  6116. Update.
  6117. * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
  6118. * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
  6119. do_field_int. Change type of "value".
  6120. * cli-out.c (cli_ui_out::do_field_signed): Rename from
  6121. do_field_int. Change type of "value".
  6122. * breakpoint.c (watchpoint_check, print_breakpoint_location)
  6123. (print_one_breakpoint_location, print_it_catch_fork)
  6124. (print_one_catch_fork, print_it_catch_vfork)
  6125. (print_one_catch_vfork, print_it_catch_solib)
  6126. (print_it_catch_exec, print_it_ranged_breakpoint)
  6127. (print_mention_watchpoint, print_mention_masked_watchpoint)
  6128. (bkpt_print_it, update_static_tracepoint): Update.
  6129. * break-catch-throw.c (print_it_exception_catchpoint): Update.
  6130. * break-catch-syscall.c (print_it_catch_syscall): Update.
  6131. * ada-tasks.c (print_ada_task_info): Update.
  6132. * ada-lang.c (print_it_exception, print_mention_exception):
  6133. Update.
  6134. 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
  6135. PR breakpoints/24541
  6136. * gdbarch.c: Regenerate.
  6137. * gdbarch.h: Regenerate.
  6138. * gdbarch.sh: Adjust return type and parameter types for
  6139. 'stap_adjust_register'.
  6140. (i386_stap_adjust_register): Adjust signature and return new
  6141. register name.
  6142. * stap-probe.c (stap_parse_register_operand): Adjust use of
  6143. 'gdbarch_stap_adjust_register'.
  6144. 2019-07-17 Tom Tromey <tromey@adacore.com>
  6145. * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
  6146. declare VEC.
  6147. (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
  6148. std::vector.
  6149. (struct s390_process_info): Add initializers.
  6150. (s390_add_process): Use new.
  6151. (s390_linux_nat_target::low_forget_process): Use delete.
  6152. (s390_linux_nat_target::low_new_fork)
  6153. (s390_linux_nat_target::stopped_by_watchpoint)
  6154. (s390_linux_nat_target::low_prepare_to_resume)
  6155. (s390_linux_nat_target::insert_watchpoint)
  6156. (s390_linux_nat_target::insert_hw_breakpoint)
  6157. (s390_linux_nat_target::remove_watchpoint)
  6158. (s390_linux_nat_target::remove_hw_breakpoint): Update.
  6159. 2019-07-16 John Baldwin <jhb@FreeBSD.org>
  6160. * aarch64-fbsd-nat.c: Include regcache.h.
  6161. (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
  6162. argument.
  6163. (aarch64_fbsd_nat_target::fetch_registers)
  6164. (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
  6165. variable.
  6166. * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
  6167. 2019-07-16 John Baldwin <jhb@FreeBSD.org>
  6168. * fbsd-nat.c: Include gdbarch.h.
  6169. 2019-07-15 Tom Tromey <tromey@adacore.com>
  6170. * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
  6171. 2019-07-15 Tom Tromey <tromey@adacore.com>
  6172. * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
  6173. * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
  6174. * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
  6175. * cli-out.c (cli_ui_out::do_field_int): New method.
  6176. * ui-out.c (ui_out::field_unsigned): New method.
  6177. * symfile.c (generic_load): Use field_unsigned.
  6178. (print_transfer_performance): Likewise.
  6179. * record-btrace.c (ui_out_field_uint): Remove.
  6180. (btrace_call_history_insn_range, btrace_call_history): Use
  6181. field_unsigned.
  6182. * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
  6183. field_unsigned.
  6184. * ui-out.h (class ui_out) <field_unsigned>: New method.
  6185. <do_field_unsigned>: Likewise.
  6186. 2019-07-15 Tom Tromey <tromey@adacore.com>
  6187. * mi/mi-main.c (list_available_thread_groups): Use field_string.
  6188. * mi/mi-interp.c (mi_memory_changed): Use field_string.
  6189. * target.c (flash_erase_command): Use field_string.
  6190. * infrun.c (print_signal_received_reason): Use field_string.
  6191. * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
  6192. * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
  6193. field_string.
  6194. * ada-tasks.c (print_ada_task_info): Use field_string.
  6195. 2019-07-15 Tom Tromey <tromey@adacore.com>
  6196. * target.c (flash_erase_command): Use field_core_addr.
  6197. * symfile.c (generic_load): Use field_core_addr.
  6198. * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
  6199. Use field_core_addr.
  6200. * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
  6201. field_core_addr.
  6202. 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
  6203. * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
  6204. value if its desired type is smaller than a CORE_ADDR and signed.
  6205. 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
  6206. * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
  6207. of changes to field names, and use new is_reference field to
  6208. decide if a property is a reference or not.
  6209. * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
  6210. field.
  6211. (struct dwarf2_property_baton): Update header comment, rename
  6212. 'referenced_type' to 'property_type' and update comments.
  6213. * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
  6214. default property type, store in property baton, update to take
  6215. accound of renamed field.
  6216. (read_func_scope): Update call to attr_to_dynamic_prop.
  6217. (read_array_type): Likewise.
  6218. (dwarf2_per_cu_addr_sized_int_type): New function.
  6219. (read_subrange_index_type): Move type finding code to
  6220. dwarf2_per_cu_addr_sized_int_type.
  6221. (read_subrange_type): Update calls to attr_to_dynamic_prop.
  6222. (dwarf2_per_cu_addr_type): New function.
  6223. (set_die_type): Update calls to attr_to_dynamic_prop.
  6224. 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
  6225. * dwarf2read.c (read_subrange_index_type): New function.
  6226. (read_subrange_type): Move code into new function and call it.
  6227. * gdbtypes.c (create_range_type): Add some asserts.
  6228. 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
  6229. * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
  6230. update return statements.
  6231. * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
  6232. declaration, and update comment to match.
  6233. * gdbtypes.c (resolve_dynamic_array): Update call to
  6234. dwarf2_evaluate_property to match new return type.
  6235. 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
  6236. * valarith.c (value_subscripted_rvalue): Change lowerbound
  6237. parameter type from int to LONGEST.
  6238. * value.h (value_subscripted_rvalue): Likewise in declaration.
  6239. 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
  6240. * cli/cli-utils.c (info_print_command_completer): New function.
  6241. * cli/cli-utils.h: Add 'completer.h' include, and forward
  6242. declaration for 'struct cmd_list_element'.
  6243. (info_print_command_completer): Declare.
  6244. * stack.c (_initialize_stack): Add completer for 'info locals' and
  6245. 'info args'.
  6246. * symtab.c (_initialize_symtab): Add completer for 'info
  6247. variables' and 'info functions'.
  6248. * NEWS: Mention completion for additional info commands.
  6249. 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
  6250. * cli/cli-utils.c (extract_info_print_args): Delete.
  6251. (extract_arg_maybe_quoted): Delete.
  6252. (info_print_options_defs): New variable.
  6253. (make_info_print_options_def_group): New function.
  6254. (extract_info_print_options): Define new function.
  6255. * cli/cli-utils.h (extract_info_print_args): Delete.
  6256. (struct info_print_options): New structure.
  6257. (extract_info_print_options): Declare new function.
  6258. * stack.c (info_locals_command): Update to use new
  6259. extract_info_print_options, also add a header comment.
  6260. (info_args_command): Likewise.
  6261. * symtab.c (info_variables_command): Likewise.
  6262. (info_functions_command): Likewise.
  6263. 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
  6264. * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
  6265. to extract string arguments.
  6266. * common/common-utils.c (extract_string_maybe_quoted): New function.
  6267. * common/common-utils.h (extract_string_maybe_quoted): Declare.
  6268. 2019-07-11 Tom Tromey <tromey@adacore.com>
  6269. * main.c (get_init_files): Use GDBINIT, not gdbinit.
  6270. * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
  6271. * top.h (gdbinit): Don't declare.
  6272. * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
  6273. into...
  6274. (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
  6275. * top.c (gdb_init): Don't call init_cli_cmds.
  6276. (gdbinit): Remove.
  6277. * cli/cli-cmds.h (init_cli_cmds): Don't declare.
  6278. 2019-07-11 Tom Tromey <tromey@adacore.com>
  6279. * python/py-inferior.c (add_thread_object): Don't use thread_obj
  6280. after it has been moved.
  6281. 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
  6282. * valops.c (value_must_coerce_to_target): Change return type to
  6283. bool.
  6284. * value.h (value_must_coerce_to_target): Likewise.
  6285. 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
  6286. * breakpoint.c (is_hardware_watchpoint): Remove
  6287. forward-declaration.
  6288. (is_masked_watchpoint): Change return type to bool.
  6289. (is_tracepoint): Likewise.
  6290. (is_breakpoint): Likewise.
  6291. (is_hardware_watchpoint): Likewise.
  6292. (is_watchpoint): Likewise.
  6293. (is_no_memory_software_watchpoint): Likewise.
  6294. (is_catchpoint): Likewise.
  6295. (breakpoint_1): Make FILTER parameter's return type bool.
  6296. is_masked_watchpoint): Change return type to bool.
  6297. (save_breakpoints): Make FILTER parameter's return type bool.
  6298. * breakpoint.h (is_breakpoint): Change return type to bool.
  6299. (is_watchpoint): Likewise.
  6300. (is_catchpoint): Likewise.
  6301. (is_tracepoint): Likewise.
  6302. 2019-07-10 Tom Tromey <tom@tromey.com>
  6303. * defs.h: Don't include gdbarch.h.
  6304. * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
  6305. alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
  6306. ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
  6307. cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
  6308. cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
  6309. compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
  6310. cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
  6311. dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
  6312. dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
  6313. dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
  6314. frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
  6315. go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
  6316. i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
  6317. linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
  6318. mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
  6319. objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
  6320. parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
  6321. record-btrace.c, record.h, regcache-dump.c, regcache.h,
  6322. riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
  6323. sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
  6324. sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
  6325. sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
  6326. target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
  6327. tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
  6328. utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
  6329. xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
  6330. * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
  6331. 2019-07-10 Tom Tromey <tromey@adacore.com>
  6332. * ada-lang.h (is_ada_exception_catchpoint): Declare.
  6333. * breakpoint.c (init_ada_exception_breakpoint): Register as
  6334. bp_catchpoint.
  6335. (print_one_breakpoint_location, print_one_breakpoint): Use
  6336. is_ada_exception_catchpoint.
  6337. * ada-lang.c (class ada_catchpoint_location): Pass
  6338. bp_loc_software_breakpoint to bp_location constructor.
  6339. (is_ada_exception_catchpoint): New function.
  6340. 2019-07-10 Tom Tromey <tromey@adacore.com>
  6341. * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
  6342. VEC.
  6343. (struct arm_exidx_entry): New method operator<.
  6344. (struct arm_exidx_data) <section_maps>: Change type.
  6345. (arm_exidx_data_free): Remove.
  6346. (arm_exidx_data_key): Change type. Move lower.
  6347. (arm_exidx_new_objfile): Update.
  6348. (arm_compare_exidx_entries): Remove.
  6349. (arm_find_exidx_entry, _initialize_arm_tdep)
  6350. 2019-07-10 Tom Tromey <tromey@adacore.com>
  6351. * solib-spu.c (ocl_program_data_key): Change type.
  6352. (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
  6353. Update.
  6354. 2019-07-10 Tom Tromey <tromey@adacore.com>
  6355. * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
  6356. (struct solib_aix_inferior_data) <library_list>: Change type.
  6357. (solib_aix_inferior_data_handle): Change type.
  6358. (get_solib_aix_inferior_data): Update.
  6359. (solib_aix_free_library_list): Remove.
  6360. (library_list_start_library): Update.
  6361. (solib_aix_parse_libraries, solib_aix_get_library_list): Change
  6362. return type.
  6363. (solib_aix_get_library_list)
  6364. (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
  6365. (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
  6366. 2019-07-10 Tom Tromey <tromey@adacore.com>
  6367. * solib-dsbt.c (struct dsbt_info): Add initializers.
  6368. (solib_dsbt_pspace_data): Change type.
  6369. (dsbt_pspace_data_cleanup): Remove.
  6370. (get_dsbt_info, _initialize_dsbt_solib): Update.
  6371. 2019-07-10 Tom Tromey <tromey@adacore.com>
  6372. * spu-tdep.c (spu_overlay_data): Change type.
  6373. (spu_get_overlay_table, spu_overlay_new_objfile)
  6374. (_initialize_spu_tdep): Update.
  6375. 2019-07-10 Tom Tromey <tromey@adacore.com>
  6376. * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
  6377. destructor.
  6378. (dbx_objfile_data_key): Change type and declare later.
  6379. (DBX_SYMFILE_INFO): Rewrite.
  6380. * dbxread.c (dbx_objfile_data_key): Change type.
  6381. (dbx_symfile_init): Update.
  6382. (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
  6383. (coffstab_build_psymtabs, elfstab_build_psymtabs)
  6384. (stabsect_build_psymtabs, _initialize_dbxread): Update.
  6385. 2019-07-10 Tom Tromey <tromey@adacore.com>
  6386. * jit.c (jit_program_space_key): Change type. Move lower.
  6387. (get_jit_program_space_data): Update.
  6388. (jit_program_space_data_cleanup): Remove.
  6389. (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
  6390. Update.
  6391. (struct jit_program_space_data): Add initializers.
  6392. 2019-07-10 Tom Tromey <tromey@adacore.com>
  6393. * solib-darwin.c (struct darwin_info): Add initializers.
  6394. (solib_darwin_pspace_data): Change type.
  6395. (darwin_pspace_data_cleanup): Remove.
  6396. (get_darwin_info, _initialize_darwin_solib): Update.
  6397. 2019-07-10 Tom Tromey <tromey@adacore.com>
  6398. * remote-sim.c (struct sim_inferior_data): Add initializers,
  6399. constructor, and destructor.
  6400. (sim_inferior_data_key): Change type. Move lower.
  6401. (check_for_duplicate_sim_descriptor): Update.
  6402. (get_sim_inferior_data): Use new. Update.
  6403. (~sim_inferior_data_cleanup): Rename from
  6404. sim_inferior_data_cleanup. Simplify.
  6405. (gdbsim_close_inferior, simulator_command)
  6406. (sim_command_completer, _initialize_remote_sim): Update.
  6407. (next_pid, INITIAL_PID): Move earlier.
  6408. 2019-07-10 Tom Tromey <tromey@adacore.com>
  6409. * python/python-internal.h (create_thread_object): Return
  6410. gdbpy_ref.
  6411. * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
  6412. * python/py-inferior.c (struct threadlist_entry): Add
  6413. constructor.
  6414. <thread_obj>: Now a gdbpy_ref.
  6415. (thread_to_thread_object): Update.
  6416. (add_thread_object): Use new.
  6417. (delete_thread_object): Use delete.
  6418. (infpy_threads): Update.
  6419. (py_free_inferior): Update. Construct "inf_obj" after acquiring
  6420. GIL.
  6421. 2019-07-10 Tom Tromey <tromey@adacore.com>
  6422. * valops.c (value_cast): Specialize error message for Ada.
  6423. 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
  6424. * breakpoint.c (breakpoint_1): Update doc and parameter names.
  6425. 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
  6426. * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
  6427. bpstat_should_step): Return bool, adjust comments.
  6428. * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
  6429. bpstat_should_step): Likewise.
  6430. 2019-07-10 Alan Hayward <alan.hayward@arm.com>
  6431. * features/Makefile: Use feature target descriptions for Arm.
  6432. * features/arm/arm-core.c: Generate new file.
  6433. * features/arm/arm-fpa.c: Likewise.
  6434. * features/arm/arm-m-profile-with-fpa.xml: Likewise.
  6435. * features/arm/arm-m-profile.c: Likewise.
  6436. * features/arm/arm-vfpv2.c: Likewise.
  6437. * features/arm/arm-vfpv3.c: Likewise.
  6438. * features/arm/xscale-iwmmxt.c: Likewise.
  6439. * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
  6440. 2019-07-10 Alan Hayward <alan.hayward@arm.com>
  6441. * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
  6442. ptrace earlier.
  6443. 2019-07-10 Alan Hayward <alan.hayward@arm.com>
  6444. * features/aarch64-pauth.c: Regenerate.
  6445. 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
  6446. * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
  6447. bool.
  6448. (bpstat_what): Use false instead of 0.
  6449. 2019-07-09 Pedro Alves <palves@redhat.com>
  6450. * break-catch-throw.c (is_exception_catchpoint): New.
  6451. * breakpoint.c (print_one_breakpoint_location): New parameter
  6452. 'raw_loc'. Handle it. Use
  6453. is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
  6454. looking at the breakpoint's type.
  6455. (print_one_breakpoint): If handling "maint info breakpoints", also
  6456. print locations of exception catchpoints.
  6457. * breakpoint.h (is_exception_catchpoint): Declare.
  6458. 2019-07-09 Pedro Alves <palves@redhat.com>
  6459. * break-catch-throw.c (print_one_exception_catchpoint): Skip the
  6460. "addr" field.
  6461. (allocate_location_exception_catchpoint): New.
  6462. (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
  6463. (initialize_throw_catchpoint_ops): Install
  6464. allocate_location_exception_catchpoint as allocate_location
  6465. method.
  6466. * breakpoint.c (bpstat_what) <bp_catch>: Set action to
  6467. BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
  6468. bp_loc_other.
  6469. (breakpoint_address_is_meaningful): Delete.
  6470. (bl_address_is_meaningful): New.
  6471. (breakpoint_locations_match): Adjust comment.
  6472. (bp_location_from_bp_type): New, factored out of...
  6473. (bp_location::bp_location(breakpoint *)): ... this.
  6474. (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
  6475. factored out of...
  6476. (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
  6477. (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
  6478. breakpoint_address_is_meaningful.
  6479. (bp_locations_compare): Adjust comment.
  6480. (update_global_location_list): Use bl_address_is_meaningful
  6481. instead of breakpoint_address_is_meaningful.
  6482. * breakpoint.h (bp_location::bp_location(breakpoint *)): New
  6483. explicit.
  6484. (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
  6485. * python/py-breakpoint.c (bppy_get_location): No longer check
  6486. whether location is null.
  6487. 2019-07-09 Pedro Alves <palves@redhat.com>
  6488. PR c++/15468
  6489. * breakpoint.c (print_one_breakpoint_location): Remove
  6490. single-location assert.
  6491. 2019-07-09 Tom Tromey <tom@tromey.com>
  6492. * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
  6493. * configure: Rebuild.
  6494. * configure.ac: Change common to gdbsupport.
  6495. * gdbsupport: Rename from common.
  6496. * acinclude.m4: Change common to gdbsupport.
  6497. * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
  6498. (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
  6499. gdbsupport.
  6500. * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
  6501. amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
  6502. amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
  6503. amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
  6504. amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
  6505. arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
  6506. arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
  6507. arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
  6508. arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
  6509. auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
  6510. btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
  6511. charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
  6512. cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
  6513. coff-pe-read.c, command.h, compile/compile-c-support.c,
  6514. compile/compile-c.h, compile/compile-cplus-symbols.c,
  6515. compile/compile-cplus-types.c, compile/compile-cplus.h,
  6516. compile/compile-loc2c.c, compile/compile.c, completer.c,
  6517. completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
  6518. cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
  6519. darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
  6520. disasm.h, dtrace-probe.c, dwarf-index-cache.c,
  6521. dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
  6522. dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
  6523. event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
  6524. features/aarch64-core.c, features/aarch64-fpu.c,
  6525. features/aarch64-pauth.c, features/aarch64-sve.c,
  6526. features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
  6527. features/i386/32bit-core.c, features/i386/32bit-linux.c,
  6528. features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
  6529. features/i386/32bit-segments.c, features/i386/32bit-sse.c,
  6530. features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
  6531. features/i386/64bit-core.c, features/i386/64bit-linux.c,
  6532. features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
  6533. features/i386/64bit-segments.c, features/i386/64bit-sse.c,
  6534. features/i386/x32-core.c, features/riscv/32bit-cpu.c,
  6535. features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
  6536. features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
  6537. features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
  6538. features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
  6539. findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
  6540. gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
  6541. gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
  6542. go32-nat.c, guile/guile.c, guile/scm-ports.c,
  6543. guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
  6544. i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
  6545. i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
  6546. ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
  6547. inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
  6548. inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
  6549. inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
  6550. linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
  6551. macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
  6552. mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
  6553. mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
  6554. minsyms.c, mips-linux-tdep.c, namespace.h,
  6555. nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
  6556. nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
  6557. nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
  6558. nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
  6559. nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
  6560. nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
  6561. nat/linux-waitpid.c, nat/mips-linux-watch.c,
  6562. nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
  6563. nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
  6564. nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
  6565. obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
  6566. parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
  6567. procfs.c, producer.c, progspace.h, psymtab.h,
  6568. python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
  6569. python/py-type.c, python/python.c, record-btrace.c, record-full.c,
  6570. record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
  6571. remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
  6572. riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
  6573. selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
  6574. ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
  6575. source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
  6576. stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
  6577. symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
  6578. target-memory.c, target.c, target.h, target/waitstatus.c,
  6579. target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
  6580. top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
  6581. tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
  6582. unittests/array-view-selftests.c,
  6583. unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
  6584. unittests/common-utils-selftests.c,
  6585. unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
  6586. unittests/format_pieces-selftests.c,
  6587. unittests/function-view-selftests.c,
  6588. unittests/lookup_name_info-selftests.c,
  6589. unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
  6590. unittests/mkdir-recursive-selftests.c,
  6591. unittests/observable-selftests.c,
  6592. unittests/offset-type-selftests.c, unittests/optional-selftests.c,
  6593. unittests/parse-connection-spec-selftests.c,
  6594. unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
  6595. unittests/scoped_fd-selftests.c,
  6596. unittests/scoped_mmap-selftests.c,
  6597. unittests/scoped_restore-selftests.c,
  6598. unittests/string_view-selftests.c, unittests/style-selftests.c,
  6599. unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
  6600. unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
  6601. utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
  6602. value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
  6603. xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
  6604. xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
  6605. 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
  6606. * linespec.c (decode_digits_list_mode): Set explicit_line to a
  6607. bool value.
  6608. (decode_digits_ordinary): Set explicit_line field in sal.
  6609. * symtab.c (skip_prologue_sal): Don't skip prologue for a
  6610. symtab_and_line that was set on an explicit line number in
  6611. assembler code. Do always update the recorded symtab and line if
  6612. we do skip the prologue.
  6613. 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
  6614. * breakpoint.c (set_breakpoint_location_function): Remove
  6615. explicit_loc parameter.
  6616. (momentary_breakpoint_from_master): Update call to
  6617. set_breakpoint_location_function.
  6618. (add_location_to_breakpoint): Likewise.
  6619. 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
  6620. * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
  6621. required features based on default bfd type when no specific bfd
  6622. is present.
  6623. 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  6624. * NEWS: Mention that GDB printf and eval commands can now print
  6625. C-style and Ada-style convenience var strings without
  6626. calling the inferior.
  6627. * printcmd.c (printf_c_string): Locally print GDB internal var
  6628. instead of transiting via the inferior.
  6629. (printf_wide_c_string): Likewise.
  6630. 2019-07-04 Alan Hayward <alan.hayward@arm.com>
  6631. PR breakpoints/25011
  6632. * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
  6633. 2019-07-04 Tom Tromey <tom@tromey.com>
  6634. PR tui/24724:
  6635. * tui/tui-winsource.c (tui_clear_source_content): Update.
  6636. (tui_source_window_base::set_is_exec_point_at): Fix comment.
  6637. (tui_update_breakpoint_info): Update.
  6638. (tui_set_exec_info_content): Update.
  6639. * tui/tui-source.c (tui_set_source_content_nil): Update.
  6640. * tui/tui-disasm.c (tui_set_disassem_content): Don't set
  6641. has_break.
  6642. * tui/tui-data.h (enum tui_bp_flag): New.
  6643. (tui_bp_flags): New enum flags type.
  6644. (struct tui_source_element) <break_mode>: Change type. Rename
  6645. from has_break.
  6646. (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
  6647. (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
  6648. constants.
  6649. * tui/tui-winsource.h: Fix comment.
  6650. 2019-07-04 Alan Hayward <alan.hayward@arm.com>
  6651. * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
  6652. * aarch64-linux-nat.c (fetch_fpregs_from_thread)
  6653. (store_fpregs_to_thread)
  6654. (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
  6655. * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
  6656. (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
  6657. (IWMMXT_REGS_SIZE): Add define.
  6658. * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
  6659. (fetch_vfp_regs, store_vfp_regs)
  6660. (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
  6661. * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
  6662. 2019-07-04 Alan Hayward <alan.hayward@arm.com>
  6663. * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
  6664. defines.
  6665. * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
  6666. * arch/arm.h (INT_REGISTER_SIZE) Rename from...
  6667. (ARM_INT_REGISTER_SIZE): ...to this.
  6668. (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
  6669. * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
  6670. (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
  6671. (arm_linux_collect_gregset, supply_nwfpe_register)
  6672. (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
  6673. defines.
  6674. * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
  6675. (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
  6676. * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
  6677. * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
  6678. (arm_return_in_memory, arm_store_return_value)
  6679. (arm_get_longjmp_target, arm_register_g_packet_guesses)
  6680. (arm_record_ld_st_multiple): Likewise.
  6681. * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
  6682. * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
  6683. 2019-07-04 Alan Hayward <alan.hayward@arm.com>
  6684. * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
  6685. AARCH64_DISPLACED_MODIFIED_INSNS.
  6686. * aarch64-tdep.c (struct aarch64_displaced_step_data)
  6687. (aarch64_displaced_step_copy_insn): Likewise.
  6688. * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
  6689. (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
  6690. * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
  6691. ARM_DISPLACED_MODIFIED_INSNS.
  6692. * arm-tdep.c (arm_gdbarch_init): Likewise.
  6693. * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
  6694. (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
  6695. (struct arm_displaced_step_closure): Use
  6696. ARM_DISPLACED_MODIFIED_INSNS.
  6697. 2019-07-04 Alan Hayward <alan.hayward@arm.com>
  6698. * features/Makefile: Remove unused xml files.
  6699. * features/aarch64.xml: Remove.
  6700. * features/i386/amd64-avx-avx512-linux.xml: Remove.
  6701. * features/i386/amd64-avx-avx512.xml: Remove.
  6702. * features/i386/amd64-avx-linux.xml: Remove.
  6703. * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
  6704. * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
  6705. * features/i386/amd64-avx-mpx-linux.xml: Remove.
  6706. * features/i386/amd64-avx-mpx.xml: Remove.
  6707. * features/i386/amd64-avx.xml: Remove.
  6708. * features/i386/amd64-linux.xml: Remove.
  6709. * features/i386/amd64-mpx-linux.xml: Remove.
  6710. * features/i386/amd64-mpx.xml: Remove.
  6711. * features/i386/amd64.xml: Remove.
  6712. * features/i386/i386-avx-avx512-linux.xml: Remove.
  6713. * features/i386/i386-avx-avx512.xml: Remove.
  6714. * features/i386/i386-avx-linux.xml: Remove.
  6715. * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
  6716. * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
  6717. * features/i386/i386-avx-mpx-linux.xml: Remove.
  6718. * features/i386/i386-avx-mpx.xml: Remove.
  6719. * features/i386/i386-avx.xml: Remove.
  6720. * features/i386/i386-linux.xml: Remove.
  6721. * features/i386/i386-mmx-linux.xml: Remove.
  6722. * features/i386/i386-mmx.xml: Remove.
  6723. * features/i386/i386-mpx-linux.xml: Remove.
  6724. * features/i386/i386-mpx.xml: Remove.
  6725. * features/i386/i386.xml: Remove.
  6726. * features/i386/x32-avx-avx512-linux.xml: Remove.
  6727. * features/i386/x32-avx-linux.xml: Remove.
  6728. * features/i386/x32-linux.xml: Remove.
  6729. 2019-07-04 Alan Hayward <alan.hayward@arm.com>
  6730. * regformats/aarch64.dat: Remove.
  6731. * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
  6732. * regformats/i386/amd64-avx-linux.dat: Remove.
  6733. * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
  6734. * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
  6735. * regformats/i386/amd64-linux.dat: Remove.
  6736. * regformats/i386/amd64-mpx-linux.dat: Remove.
  6737. * regformats/i386/amd64.dat: Remove.
  6738. * regformats/i386/i386-avx-avx512-linux.dat: Remove.
  6739. * regformats/i386/i386-avx-linux.dat: Remove.
  6740. * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
  6741. * regformats/i386/i386-avx-mpx-linux.dat: Remove.
  6742. * regformats/i386/i386-linux.dat: Remove.
  6743. * regformats/i386/i386-mmx-linux.dat: Remove.
  6744. * regformats/i386/i386-mpx-linux.dat: Remove.
  6745. * regformats/i386/i386.dat: Remove.
  6746. * regformats/i386/x32-avx-avx512-linux.dat: Remove.
  6747. * regformats/i386/x32-avx-linux.dat: Remove.
  6748. * regformats/i386/x32-linux.dat: Remove.
  6749. 2019-07-04 Alan Hayward <alan.hayward@arm.com>
  6750. * aarch64-tdep.c: Remove xml self tests.
  6751. * amd64-linux-tdep.c: Likewise.
  6752. * amd64-tdep.c: Likewise.
  6753. * i386-linux-tdep.c: Likewise.
  6754. * i386-tdep.c: Likewise.
  6755. 2019-07-03 Pedro Alves <palves@redhat.com>
  6756. PR cli/24732
  6757. * cli/cli-cmds.c (struct pipe_cmd_opts): New.
  6758. (pipe_cmd_option_defs): New.
  6759. (make_pipe_cmd_options_def_group): New.
  6760. (pipe_command): Use gdb::option::process_options.
  6761. (pipe_command_completer): New function.
  6762. (_initialize_cli_cmds): Install completer for "pipe" command.
  6763. 2019-07-03 Pedro Alves <palves@redhat.com>
  6764. * cli/cli-option.c (union option_value) <string>: New field.
  6765. (struct option_def_and_value): Add ctor, move ctor, dtor and
  6766. use DISABLE_COPY_AND_ASSIGN.
  6767. (option_def_and_value::clear_value): New.
  6768. (parse_option, save_option_value_in_ctx, get_val_type_str)
  6769. (add_setshow_cmds_for_options): Handle var_string.
  6770. * cli-option.h (union option_def::var_address) <string>: New
  6771. field.
  6772. (struct string_option_def): New.
  6773. * maint-test-options.c (struct test_options_opts): Add default
  6774. ctor and use DISABLE_COPY_AND_ASSIGN.
  6775. <string_opt>: New field.
  6776. (test_options_opts::~test_options_opts): New.
  6777. (test_options_opts::dump): Also dump "-string".
  6778. (test_options_option_defs): Install "string.
  6779. 2019-07-03 Pedro Alves <palves@redhat.com>
  6780. * cli/cli-option.c (parse_option) <var_enum>: Don't return an
  6781. option_value with a null enumeration.
  6782. (complete_options): Save the option values in the context.
  6783. (save_option_value_in_ctx): New, factored out from ...
  6784. (process_options): ... here.
  6785. * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
  6786. of the function.
  6787. * maint-test-options.c (test_options_opts::dump): New, factored
  6788. out from ...
  6789. (maintenance_test_options_command_mode): ... here.
  6790. (maintenance_test_options_command_completion_result): Delete.
  6791. (maintenance_test_options_command_completion_text): Update
  6792. comment.
  6793. (maintenance_show_test_options_completion_result): Change
  6794. prototype. Just print
  6795. maintenance_test_options_command_completion_text.
  6796. (save_completion_result): New.
  6797. (maintenance_test_options_completer_mode): Pass options context to
  6798. complete_options, and then save a dump.
  6799. (_initialize_maint_test_options): Use add_cmd to install "maint
  6800. show test-options-completion-result".
  6801. 2019-07-03 Pedro Alves <palves@redhat.com>
  6802. * NEWS (New commands): Mention "with" and "maint with".
  6803. * cli/cli-cmds.c (with_command_1, with_command_completer_1)
  6804. (with_command, with_command_completer): New.
  6805. (pipe_command): Adjust to new repeat_previous
  6806. interface.
  6807. (_initialize_cli_cmds): Install the "with" command and its "w"
  6808. alias.
  6809. * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
  6810. declarations.
  6811. * cli/cli-setshow.c (parse_cli_var_uinteger)
  6812. (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
  6813. argument strings for all var_types.
  6814. (get_setshow_command_value_string): New, factored out from ...
  6815. (do_show_command): ... this.
  6816. * cli/cli-setshow.h: Include <string>.
  6817. (get_setshow_command_value_string): Declare.
  6818. * command.h (repeat_previous): Now returns const char *. Adjust
  6819. comment.
  6820. * maint.c: Include "cli/cli-cmds.h".
  6821. (maintenance_with_cmd, maintenance_with_cmd_completer): New.
  6822. (_initialize_maint_cmds): Register the "maintenance with" command.
  6823. * top.c (repeat_previous): Move bits from pipe_command here:
  6824. Return the saved command line, if any; error out if there's no
  6825. command to relaunch.
  6826. 2019-07-03 Pedro Alves <palves@redhat.com>
  6827. * NEWS (New commands): Mention "maint set/show test-settings"
  6828. instead of "maint test-settings".
  6829. * maint-test-settings.c (maintenance_test_settings_list): Delete.
  6830. (maintenance_test_settings_set_list): Rename to ...
  6831. (maintenance_set_test_settings_list): ... this.
  6832. (maintenance_test_settings_show_list): Rename to ...
  6833. (maintenance_show_test_settings_list): ... this.
  6834. (maintenance_test_settings_cmd): Delete.
  6835. (maintenance_test_settings_set_cmd): ...
  6836. (maintenance_set_test_settings_cmd): ... this.
  6837. (maintenance_test_settings_show_cmd): ...
  6838. (maintenance_show_test_settings_cmd): ... this.
  6839. (maintenance_test_settings_show_value_cmd):
  6840. (maintenance_show_test_settings_value_cmd): ... this.
  6841. (_initialize_maint_test_settings): No longer install the "maint
  6842. test-settings" prefix command. Rename "maint test-settings set"
  6843. to "maint set test-settings", and "maint test-settings show" to
  6844. "maint show test-settings". Adjust all subcommands.
  6845. 2019-07-03 Pedro Alves <palves@redhat.com>
  6846. * maint-test-settings.c: Fix file's intro comment. Replace all
  6847. references to "test-options" with references to "test-settings",
  6848. in comments.
  6849. 2019-07-03 Pedro Alves <palves@redhat.com>
  6850. * maint-test-settings.c (maintenance_test_settings_xxx)
  6851. (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
  6852. New.
  6853. (maintenance_test_settings_enums): Use them.
  6854. (maintenance_test_settings_enum): Default to
  6855. maintenance_test_settings_xxx.
  6856. (_initialize_maint_test_settings): Initialize
  6857. MAINTENANCE_TEST_SETTINGS_FILENAME.
  6858. 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
  6859. * breakpoint.h (remove_breakpoints_inf): Change return type to
  6860. void, move function documentation here.
  6861. * breakpoint.c (remove_breakpoints_inf): Change return type to
  6862. void, move function documentation to header.
  6863. 2019-07-02 Pedro Alves <palves@redhat.com>
  6864. * NEWS (Completion improvements): Mention "info threads".
  6865. * thread.c (struct info_threads_opts, info_threads_option_defs)
  6866. (make_info_threads_options_def_group): New.
  6867. (info_threads_command): Use gdb::option::process_options.
  6868. (info_threads_command_completer): New.
  6869. (_initialize_thread): Use gdb::option::build_help to build the
  6870. help text for "info threads".
  6871. 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
  6872. * defs.h (generic_load): Move from here...
  6873. * symfile.h (generic_load): ... to here. Rename name parameter
  6874. to args.
  6875. * symfile.c (generic_load): Add comment.
  6876. 2019-07-01 Tom Tromey <tromey@adacore.com>
  6877. * dwarf2read.c
  6878. (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
  6879. declaration of without_params. Fix formatting.
  6880. 2019-07-01 Tom Tromey <tromey@adacore.com>
  6881. * ada-exp.y (find_primitive_type): Update.
  6882. * ada-lang.h (ada_lookup_symbol): Update.
  6883. * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
  6884. parameter.
  6885. (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
  6886. 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
  6887. PR breakpoints/24541
  6888. * gdbarch.c: Regenerate.
  6889. * gdbarch.h: Regenerate.
  6890. * gdbarch.sh: Add 'stap_adjust_register'.
  6891. * i386-tdep.c: Include '<unordered_set>'.
  6892. (i386_stap_adjust_register): New function.
  6893. (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
  6894. * stap-probe.c (stap_parse_register_operand): Call
  6895. 'gdbarch_stap_adjust_register'.
  6896. 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
  6897. PR python/24742
  6898. https://bugzilla.redhat.com/show_bug.cgi?id=1723564
  6899. * python/python.c (do_start_initialization): Use 'xmalloc'
  6900. instead of 'PyMem_Malloc'.
  6901. 2019-06-28 Tom Tromey <tromey@adacore.com>
  6902. * dwarf2read.c (partial_die_info::read): Prefer the linkage name
  6903. for Ada.
  6904. 2019-06-27 Tom Tromey <tromey@adacore.com>
  6905. * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
  6906. objfile_key.
  6907. (arm_find_mapping_symbol, arm_record_special_symbol)
  6908. (_initialize_arm_tdep): Update.
  6909. (arm_objfile_data_free): Remove.
  6910. 2019-06-27 Tom Tromey <tromey@adacore.com>
  6911. * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
  6912. to cp_print_static_field.
  6913. 2019-06-26 Tom Tromey <tromey@adacore.com>
  6914. * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
  6915. * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
  6916. declare.
  6917. 2019-06-26 Alan Hayward <alan.hayward@arm.com>
  6918. * features/aarch64-core.c (create_feature_aarch64_core):
  6919. Regenerate.
  6920. * features/aarch64-core.xml: Add cpsr flags.
  6921. 2019-06-26 Alan Hayward <alan.hayward@arm.com>
  6922. * arm-tdep.c (arm_gnu_triplet_regexp): New function.
  6923. (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
  6924. 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
  6925. * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
  6926. field.
  6927. (arm_find_mapping_symbol): Sort mapping symbol vectors on first
  6928. use.
  6929. (arm_record_special_symbol): Don't insert new symbol in sorted
  6930. position, push it at the end.
  6931. 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
  6932. * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
  6933. (arm_mapping_symbol_s): Remove.
  6934. (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
  6935. (arm_mapping_symbol_vec): New typedef.
  6936. (struct arm_per_objfile): Add constructor.
  6937. <section_maps>: Change type to
  6938. std::unique_ptr<arm_mapping_symbol_vec[]>.
  6939. (arm_compare_mapping_symbols): Remove.
  6940. (arm_find_mapping_symbol): Adjust to section_maps type change.
  6941. (arm_objfile_data_free): Call delete on arm_per_objfile.
  6942. (arm_record_special_symbol): Adjust to section_maps type change.
  6943. Allocate arm_per_objfile with new.
  6944. 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  6945. * cli/cli-cmds.c (alias_command): Compare the alias prefix
  6946. with the command prefix.
  6947. 2019-06-25 Tom Tromey <tom@tromey.com>
  6948. * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
  6949. * tui/tui-data.c (~tui_gen_win_info): Remove "if".
  6950. 2019-06-25 Tom Tromey <tom@tromey.com>
  6951. * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
  6952. type.
  6953. * tui/tui-data.h (struct tui_gen_win_info): Make constructor
  6954. protected.
  6955. 2019-06-25 Tom Tromey <tom@tromey.com>
  6956. * tui/tui-winsource.c
  6957. (tui_source_window_base::set_is_exec_point_at): Add check against
  6958. LOA_ADDRESS.
  6959. 2019-06-25 Tom Tromey <tom@tromey.com>
  6960. * tui/tui-source.c (tui_set_source_content): Don't check before
  6961. xfree.
  6962. * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
  6963. 2019-06-25 Tom Tromey <tom@tromey.com>
  6964. * tui/tui-winsource.h (tui_update_source_window_as_is)
  6965. (tui_alloc_source_buffer, tui_line_is_displayed)
  6966. (tui_addr_is_displayed): Change type of win_info.
  6967. * tui/tui-winsource.c (tui_update_source_window_as_is)
  6968. (tui_clear_source_content, tui_show_source_line)
  6969. (tui_show_source_content, tui_source_window_base::refill)
  6970. (tui_source_window_base::set_is_exec_point_at)
  6971. (tui_source_window_base::set_is_exec_point_at)
  6972. (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
  6973. (tui_alloc_source_buffer, tui_line_is_displayed)
  6974. (tui_addr_is_displayed): Change type of win_info. Update.
  6975. * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
  6976. (tui_source_window_base::do_make_visible_with_new_height):
  6977. Update.
  6978. * tui/tui-source.c (tui_set_source_content)
  6979. (tui_set_source_content_nil)
  6980. (tui_source_window::do_scroll_vertical): Update.
  6981. * tui/tui-layout.c (show_layout): Update.
  6982. * tui/tui-disasm.c (tui_set_disassem_content)
  6983. (tui_disasm_window::do_scroll_vertical): Update.
  6984. * tui/tui-data.h (tui_win_content): Remove.
  6985. (struct tui_gen_win_info) <content, content_size>: Remove.
  6986. (struct tui_source_element): Add initializers and destructor.
  6987. (union tui_which_element, struct tui_win_element): Remove.
  6988. (struct tui_source_window_base) <content>: New field.
  6989. (struct tui_data_window): Remove destructor.
  6990. (tui_alloc_content, tui_free_win_content)
  6991. (tui_free_all_source_wins_content): Don't declare.
  6992. * tui/tui-data.c (tui_initialize_static_data): Update.
  6993. (init_content_element, tui_alloc_content): Remove.
  6994. (~tui_gen_win_info): Update.
  6995. (~tui_data_window, tui_free_all_source_wins_content)
  6996. (tui_free_win_content, free_content, free_content_elements):
  6997. Remove.
  6998. 2019-06-25 Tom Tromey <tom@tromey.com>
  6999. * tui/tui-winsource.h (tui_clear_source_content)
  7000. (tui_erase_source_content, tui_show_source_content): Change type
  7001. of win_info.
  7002. * tui/tui-winsource.c (tui_clear_source_content)
  7003. (tui_erase_source_content, tui_show_source_content): Change type
  7004. of win_info.
  7005. * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
  7006. * tui/tui-source.h (tui_set_source_content_nil): Change type of
  7007. win_info.
  7008. * tui/tui-source.c (tui_set_source_content_nil): Change type of
  7009. win_info.
  7010. * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
  7011. 2019-06-25 Tom Tromey <tom@tromey.com>
  7012. * tui/tui-winsource.c (tui_clear_source_content)
  7013. (tui_source_window_base::set_is_exec_point_at): Update.
  7014. * tui/tui-source.c (tui_set_source_content_nil): Update.
  7015. * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
  7016. a bool.
  7017. * tui/tui-data.c (init_content_element): Update.
  7018. 2019-06-25 Tom Tromey <tom@tromey.com>
  7019. * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
  7020. * tui/tui-win.c (make_invisible_and_set_new_height): Update.
  7021. * tui/tui-layout.c (init_and_make_win): Update.
  7022. * tui/tui.h (enum tui_win_type): Update.
  7023. * tui/tui-data.h (tui_win_is_auxiliary): Rename from
  7024. tui_win_is_auxillary.
  7025. * tui/tui-data.c (tui_win_is_auxiliary): Rename from
  7026. tui_win_is_auxillary.
  7027. 2019-06-25 Tom Tromey <tom@tromey.com>
  7028. * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
  7029. * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
  7030. (tui_delete_data_content_windows, tui_display_all_data)
  7031. (tui_data_window::do_scroll_vertical, tui_display_data_from):
  7032. Update.
  7033. * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
  7034. * tui/tui-regs.c (tui_last_regs_line_no)
  7035. (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
  7036. (tui_show_registers): Update.
  7037. (tui_show_register_group): Return void. Update.
  7038. (tui_display_registers_from, tui_display_reg_element_at_line)
  7039. (tui_display_registers_from_line, tui_check_register_values):
  7040. Update.
  7041. * tui/tui-data.h (union tui_which_element) <data_window>: Remove
  7042. member.
  7043. (struct tui_data_window) <regs_content>: Now a std::vector.
  7044. <regs_content_count>: Remove.
  7045. (tui_add_content_elements, tui_free_data_content): Don't declare.
  7046. * tui/tui-data.c (tui_data_window::clear_detail): Update.
  7047. (init_content_element): Remove DATA_WIN case. Add assert.
  7048. (tui_add_content_elements): Remove.
  7049. (tui_data_window): Update.
  7050. (tui_free_data_content): Remove.
  7051. (free_content_elements): Remove DATA_WIN case.
  7052. 2019-06-25 Tom Tromey <tom@tromey.com>
  7053. * tui/tui-data.c (tui_data_item_window): Update.
  7054. * tui/tui-windata.h (tui_check_data_values): Don't declare.
  7055. * tui/tui-windata.c (tui_display_all_data)
  7056. (tui_display_data_from_line): Update.
  7057. (tui_check_data_values): Remove.
  7058. * tui/tui-regs.c (tui_show_register_group)
  7059. (tui_display_reg_element_at_line): Update.
  7060. * tui/tui-hooks.c (tui_register_changed)
  7061. (tui_refresh_frame_and_register_information): Call
  7062. tui_check_register_values.
  7063. * tui/tui-data.h (struct tui_data_window) <data_content,
  7064. data_content_count, data_type>: Remove.
  7065. (enum tui_data_type): Remove.
  7066. * tui/tui-data.c (tui_data_window::clear_detail)
  7067. (~tui_data_window): Update.
  7068. 2019-06-25 Tom Tromey <tom@tromey.com>
  7069. * tui/tui-windata.h (tui_first_data_item_displayed): Don't
  7070. declare.
  7071. * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
  7072. Rename from tui_first_data_item_displayed. Update.
  7073. (tui_data_window::refresh_all)
  7074. (tui_data_window::do_scroll_vertical): Update.
  7075. * tui/tui-data.h (struct tui_data_window)
  7076. <first_data_item_displayed>: Declare new method.
  7077. 2019-06-25 Tom Tromey <tom@tromey.com>
  7078. * tui/tui-data.h (tui_init_generic_part): Don't declare.
  7079. * tui/tui-data.c (tui_init_generic_part): Remove, moving
  7080. contents...
  7081. (tui_initialize_static_data): ...here.
  7082. 2019-06-25 Tom Tromey <tom@tromey.com>
  7083. * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
  7084. (tui_display_registers_from, tui_check_register_values): Update.
  7085. (tui_display_register): Remove win_info parameter; update.
  7086. (tui_get_register): Change type of parameters.
  7087. * tui/tui-data.h (struct tui_data_element): Remove.
  7088. (union tui_which_element) <data>: Remove.
  7089. <data_window>: Change type.
  7090. (struct tui_data_item_window): New.
  7091. * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
  7092. case. Add assert.
  7093. (~tui_data_item_window): New destructor.
  7094. (free_content_elements): Remove DATA_ITEM_WIN case.
  7095. 2019-06-25 Tom Tromey <tom@tromey.com>
  7096. * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
  7097. Remove.
  7098. 2019-06-25 Tom Tromey <tom@tromey.com>
  7099. * tui/tui-data.h (struct tui_command_element): Remove.
  7100. (union tui_which_element) <command>: Remove.
  7101. * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
  7102. assert.
  7103. (free_content_elements): Remove CMD_WIN case.
  7104. 2019-06-25 Tom Tromey <tom@tromey.com>
  7105. * tui/tui-layout.c (tui_set_layout): Update.
  7106. * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
  7107. * tui/tui-data.c (layout_def): Update.
  7108. 2019-06-25 Tom Tromey <tom@tromey.com>
  7109. * tui/tui-wingeneral.c (tui_refresh_all): Update.
  7110. * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
  7111. (tui_source_window_base::set_new_height): Update.
  7112. * tui/tui-stack.c (tui_make_status_line): Change parameter type.
  7113. Update.
  7114. (tui_set_locator_fullname, tui_set_locator_info)
  7115. (tui_show_frame_info): Update.
  7116. * tui/tui-source.c (tui_set_source_content)
  7117. (tui_source_is_displayed): Update.
  7118. * tui/tui-layout.c (show_source_disasm_command, show_data)
  7119. (show_source_or_disasm_and_command): Update.
  7120. * tui/tui-disasm.c (tui_set_disassem_content)
  7121. (tui_get_begin_asm_address): Update.
  7122. * tui/tui-data.h (struct tui_locator_element): Remove.
  7123. (union tui_which_element) <locator>: Remove.
  7124. (struct tui_locator_window): New.
  7125. (tui_locator_win_info_ptr): Change return type.
  7126. * tui/tui-data.c (_locator): Change type.
  7127. (tui_locator_win_info_ptr): Change return type.
  7128. (init_content_element): Remove LOCATOR_WIN case. Add assert.
  7129. (tui_alloc_content): Add assert.
  7130. 2019-06-25 Tom Tromey <tom@tromey.com>
  7131. * tui/tui-winsource.c
  7132. (tui_exec_info_window::maybe_allocate_content): New method.
  7133. (tui_set_exec_info_content, tui_show_exec_info_content): Update.
  7134. * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
  7135. (make_source_or_disasm_window): Add cast.
  7136. * tui/tui-data.h (union tui_which_element) <simple_string>:
  7137. Remove.
  7138. (struct tui_source_info): New.
  7139. (struct tui_source_window_base) <execution_info>: Change type.
  7140. * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
  7141. case, and add assert.
  7142. (tui_alloc_content): Add assert.
  7143. 2019-06-25 Tom Tromey <tom@tromey.com>
  7144. * tui/tui-data.h (tui_alloc_win_info): Don't declare.
  7145. * tui/tui-layout.c (init_and_make_win): Use "new" directly.
  7146. * tui/tui-data.c (tui_alloc_win_info): Remove.
  7147. 2019-06-25 Tom Tromey <tom@tromey.com>
  7148. * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
  7149. * tui/tui-wingeneral.c (tui_unhighlight_win): Check
  7150. can_highlight.
  7151. 2019-06-25 Tom Tromey <tom@tromey.com>
  7152. * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
  7153. make_visible_with_new_height method.
  7154. (tui_win_info::make_visible_with_new_height): New method.
  7155. (tui_source_window_base::do_make_visible_with_new_height)
  7156. (tui_data_window::do_make_visible_with_new_height)
  7157. (tui_cmd_window::do_make_visible_with_new_height): New methods.
  7158. (make_visible_with_new_height): Remove.
  7159. (tui_resize_all, tui_adjust_win_heights): Use
  7160. make_visible_with_new_height method.
  7161. * tui/tui-data.h (struct tui_win_info)
  7162. <do_make_visible_with_new_height, make_visible_with_new_height>:
  7163. New methods.
  7164. (struct tui_source_window_base, struct tui_data_window)
  7165. (struct tui_cmd_window) <do_make_visible_with_new_height>: New
  7166. methods.
  7167. 2019-06-25 Tom Tromey <tom@tromey.com>
  7168. * tui/tui-win.c (tui_source_window_base::update_tab_width): New
  7169. method.
  7170. (update_tab_width): Call update_tab_width method.
  7171. * tui/tui-data.h (struct tui_win_info)
  7172. (struct tui_source_window_base) <update_tab_width>: New methods.
  7173. 2019-06-25 Tom Tromey <tom@tromey.com>
  7174. * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
  7175. parameter.
  7176. * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
  7177. parameter.
  7178. (tui_gen_win_info::make_visible): Update.
  7179. * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
  7180. parameter.
  7181. * tui/tui-data.h (enum tui_box): New enum.
  7182. (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
  7183. 2019-06-25 Tom Tromey <tom@tromey.com>
  7184. * tui/tui-layout.c (make_source_or_disasm_window): Always use
  7185. init_and_make_win for EXEC_INFO_WIN.
  7186. * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
  7187. longer inline.
  7188. (struct tui_win_info) <~tui_win_info>: Inline.
  7189. (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
  7190. Don't declare.
  7191. * tui/tui-data.c (source_win, disasm_win): Remove globals.
  7192. (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
  7193. Remove.
  7194. (tui_initialize_static_data): Update.
  7195. (~tui_gen_win_info): Handle more cleanup here.
  7196. (~tui_source_window_base): Delete "execution_info".
  7197. (~tui_win_info): Move code to ~tui_gen_win_info; remove.
  7198. 2019-06-25 Tom Tromey <tom@tromey.com>
  7199. * tui/tui-layout.c (make_command_window): Don't set
  7200. can_highlight.
  7201. (show_source_disasm_command): Call the reset method.
  7202. (show_data): Don't set can_highlight. Call the reset method.
  7203. (tui_gen_win_info::reset): Rename from init_gen_win_info
  7204. (init_and_make_win): Simplify. Return tui_gen_win_info.
  7205. (show_source_or_disasm_and_command): Call the reset method.
  7206. * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
  7207. (struct tui_cmd_window): Set can_highlight.
  7208. 2019-06-25 Tom Tromey <tom@tromey.com>
  7209. * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
  7210. from make_visible.
  7211. (tui_make_visible, tui_make_invisible): Rewrite.
  7212. (tui_win_info::make_visible): Remove.
  7213. (tui_source_window_base::make_visible): Update.
  7214. * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
  7215. method. Moved from...
  7216. (struct tui_win_info) <make_visible>: ...here.
  7217. 2019-06-25 Tom Tromey <tom@tromey.com>
  7218. * tui/tui-winsource.c
  7219. (tui_source_window_base::do_scroll_horizontal): Remove direction
  7220. parameter.
  7221. * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
  7222. direction parameter.
  7223. * tui/tui-win.c (tui_win_info::forward_scroll)
  7224. (tui_win_info::backward_scroll, tui_win_info::left_scroll)
  7225. (tui_win_info::right_scroll): Update.
  7226. * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
  7227. direction parameter.
  7228. * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
  7229. direction parameter.
  7230. * tui/tui-data.h (enum tui_scroll_direction): Remove.
  7231. (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
  7232. Remove direction parameter.
  7233. (struct tui_source_window_base, struct tui_source_window)
  7234. (struct tui_disasm_window, struct tui_data_window)
  7235. (struct tui_cmd_window): Update.
  7236. 2019-06-25 Tom Tromey <tom@tromey.com>
  7237. * tui/tui-winsource.h (tui_set_exec_info_content)
  7238. (tui_show_exec_info_content, tui_erase_exec_info_content)
  7239. (tui_clear_exec_info_content, tui_update_exec_info): Change
  7240. argument to tui_source_window_base.
  7241. * tui/tui-winsource.c (tui_set_exec_info_content)
  7242. (tui_show_exec_info_content, tui_erase_exec_info_content)
  7243. (tui_clear_exec_info_content, tui_update_exec_info): Change
  7244. argument to tui_source_window_base.
  7245. 2019-06-25 Tom Tromey <tom@tromey.com>
  7246. * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
  7247. * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
  7248. 2019-06-25 Tom Tromey <tom@tromey.com>
  7249. * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
  7250. check.
  7251. 2019-06-25 Tom Tromey <tom@tromey.com>
  7252. * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
  7253. type to void.
  7254. * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
  7255. type to void.
  7256. * tui/tui-source.c (tui_set_source_content): Update.
  7257. * tui/tui-disasm.c (tui_set_disassem_content): Update.
  7258. 2019-06-25 Tom Tromey <tom@tromey.com>
  7259. * tui/tui-win.c (window_name_completer, tui_set_focus)
  7260. (tui_all_windows_info): Use name method.
  7261. * tui/tui-data.h (struct tui_gen_win_info)
  7262. (struct tui_source_window, struct tui_disasm_window)
  7263. (struct tui_data_window, struct tui_cmd_window) <name>: New
  7264. method.
  7265. (tui_win_name): Don't declare.
  7266. * tui/tui-data.c (tui_partial_win_by_name): Use name method.
  7267. (tui_win_name): Remove.
  7268. 2019-06-25 Tom Tromey <tom@tromey.com>
  7269. * tui/tui-winsource.h (tui_update_source_window)
  7270. (tui_update_source_window_as_is): Change parameter type.
  7271. * tui/tui-winsource.c (tui_update_source_window): Change win_info
  7272. to be a tui_source_window_base.
  7273. (tui_update_source_window_as_is): Likewise.
  7274. * tui/tui-win.c (make_visible_with_new_height): Update.
  7275. 2019-06-25 Tom Tromey <tom@tromey.com>
  7276. * tui/tui-winsource.c (tui_erase_source_content)
  7277. (tui_show_source_content, tui_show_exec_info_content)
  7278. (tui_erase_exec_info_content): Use refresh_window method.
  7279. * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
  7280. * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
  7281. from tui_refresh_win.
  7282. (tui_data_window::refresh_window): New method.
  7283. (tui_win_info::refresh, tui_source_window_base::refresh)
  7284. (tui_refresh_all): Use refresh_window method.
  7285. * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
  7286. method.
  7287. * tui/tui-regs.c (tui_display_register): Call refresh_window
  7288. method.
  7289. * tui/tui-layout.c (show_source_disasm_command)
  7290. (show_source_or_disasm_and_command): Call refresh_window method.
  7291. * tui/tui-data.h (struct tui_gen_win_info)
  7292. (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
  7293. New method.
  7294. 2019-06-25 Tom Tromey <tom@tromey.com>
  7295. * tui/tui.c (tui_rl_other_window, tui_enable)
  7296. (tui_is_window_visible, tui_get_command_dimension): Update.
  7297. * tui/tui-winsource.c (tui_update_source_window_as_is)
  7298. (tui_clear_source_content, tui_erase_source_content)
  7299. (tui_show_source_line, tui_source_window_base::refill)
  7300. (tui_source_window_base::do_scroll_horizontal)
  7301. (tui_source_window_base::set_is_exec_point_at)
  7302. (tui_update_breakpoint_info, tui_set_exec_info_content)
  7303. (tui_alloc_source_buffer, tui_line_is_displayed)
  7304. (tui_addr_is_displayed): Update.
  7305. * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
  7306. (tui_check_and_display_highlight_if_needed)
  7307. (tui_win_info::make_visible, tui_win_info::refresh)
  7308. (tui_refresh_all): Update.
  7309. * tui/tui-windata.c (tui_first_data_item_displayed)
  7310. (tui_delete_data_content_windows, tui_erase_data_content)
  7311. (tui_display_all_data, tui_data_window::refresh_all)
  7312. (tui_check_data_values): Update.
  7313. * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
  7314. (tui_set_win_focus_to, tui_win_info::forward_scroll)
  7315. (tui_win_info::backward_scroll, tui_refresh_all_win)
  7316. (tui_resize_all, tui_set_focus, tui_all_windows_info)
  7317. (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
  7318. (tui_source_window_base::set_new_height)
  7319. (tui_data_window::set_new_height)
  7320. (make_invisible_and_set_new_height)
  7321. (make_visible_with_new_height, new_height_ok)
  7322. (parse_scrolling_args): Update.
  7323. * tui/tui-stack.c (tui_show_frame_info): Update.
  7324. * tui/tui-source.c (tui_set_source_content)
  7325. (tui_set_source_content_nil, tui_source_is_displayed)
  7326. (tui_source_window::do_scroll_vertical): Update.
  7327. * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
  7328. (tui_display_registers_from, tui_display_reg_element_at_line)
  7329. (tui_check_register_values, tui_reg_command): Update.
  7330. * tui/tui-layout.c (tui_default_win_height)
  7331. (show_source_disasm_command, show_data, init_and_make_win)
  7332. (show_source_or_disasm_and_command): Update.
  7333. * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
  7334. (tui_redisplay_readline, tui_mld_flush)
  7335. (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
  7336. (tui_getc): Update.
  7337. * tui/tui-disasm.c (tui_set_disassem_content)
  7338. (tui_disasm_window::do_scroll_vertical): Update.
  7339. * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
  7340. Now virtual.
  7341. (struct tui_win_info): Derive from tui_gen_win_info.
  7342. <~tui_win_info>: Mark as override.
  7343. <generic>: Remove member.
  7344. * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
  7345. (tui_prev_win, tui_partial_win_by_name, tui_win_info)
  7346. (~tui_data_window, ~tui_win_info)
  7347. (tui_free_all_source_wins_content): Update.
  7348. * tui/tui-command.c (tui_refresh_cmd_win): Update.
  7349. 2019-06-25 Tom Tromey <tom@tromey.com>
  7350. * tui/tui-layout.c (init_and_make_win): Use new.
  7351. * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
  7352. destructor, initializers.
  7353. (tui_alloc_generic_win_info): Don't declare.
  7354. * tui/tui-data.c (_locator): Add argument to constructor.
  7355. (source_win, disasm_win): New globals.
  7356. (exec_info): Remove.
  7357. (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
  7358. Update.
  7359. (tui_alloc_generic_win_info): Remove.
  7360. (init_content_element): Use new.
  7361. (tui_win_info::tui_win_info): Update.
  7362. (free_content_elements) <case DATA_WIN>: Use delete.
  7363. 2019-06-25 Tom Tromey <tom@tromey.com>
  7364. * tui/tui-wingeneral.c (tui_refresh_win): Update.
  7365. * tui/tui-windata.c (tui_first_data_item_displayed)
  7366. (tui_delete_data_content_windows): Update.
  7367. * tui/tui-win.c (tui_data_window::set_new_height): Update.
  7368. * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
  7369. (tui_display_registers_from, tui_check_register_values): Update.
  7370. * tui/tui-data.h (union tui_which_element) <data_window>: Now a
  7371. pointer.
  7372. * tui/tui-data.c (init_content_element): Update. Allocate the new
  7373. window.
  7374. (tui_free_data_content): Update.
  7375. (free_content_elements) <case DATA_WIN>: Free the window.
  7376. 2019-06-25 Tom Tromey <tom@tromey.com>
  7377. * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
  7378. Update.
  7379. * tui/tui-layout.c (make_command_window)
  7380. (show_source_disasm_command, show_data, init_and_make_win)
  7381. (show_source_or_disasm_and_command): Update.
  7382. * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
  7383. method.
  7384. <can_highight, is_highlighted>: Now bool.
  7385. (tui_set_win_highlight): Don't declare.
  7386. * tui/tui-data.c (tui_set_win_highlight): Remove.
  7387. 2019-06-25 Tom Tromey <tom@tromey.com>
  7388. * tui/tui-wingeneral.c (make_visible): Remove check of window
  7389. type.
  7390. 2019-06-25 Tom Tromey <tom@tromey.com>
  7391. * tui/tui-win.c (tui_win_info::max_height)
  7392. (tui_cmd_window::max_height): New methods.
  7393. (new_height_ok): Call max_height.
  7394. * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
  7395. <max_height>: New method.
  7396. 2019-06-25 Tom Tromey <tom@tromey.com>
  7397. * tui/tui-win.c (tui_source_window_base::set_new_height)
  7398. (tui_data_window::set_new_height): New methods.
  7399. (make_invisible_and_set_new_height): Call set_new_height method.
  7400. * tui/tui-data.h (struct tui_win_info)
  7401. (struct tui_source_window_base, struct tui_data_window)
  7402. <set_new_height>: New method.
  7403. 2019-06-25 Tom Tromey <tom@tromey.com>
  7404. * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
  7405. * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
  7406. tui_refresh_data_win.
  7407. * tui/tui-win.c (tui_source_window_base::refresh_all): New
  7408. method.
  7409. (tui_refresh_all_win): Call the refresh_all method.
  7410. (tui_set_focus): Likewise.
  7411. * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
  7412. (struct tui_source_window_base, struct tui_data_window) <refresh>:
  7413. Likewise.
  7414. 2019-06-25 Tom Tromey <tom@tromey.com>
  7415. * tui/tui-winsource.h (tui_refill_source_window)
  7416. (tui_set_is_exec_point_at): Don't declare.
  7417. * tui/tui-winsource.c (tui_update_source_windows_with_addr)
  7418. (tui_source_window_base::refill): Rename from
  7419. tui_refill_source_window.
  7420. (tui_source_window_base::do_scroll_horizontal): Update.
  7421. (tui_source_window_base::set_is_exec_point_at): Rename from
  7422. tui_set_is_exec_point_at.
  7423. (tui_update_all_breakpoint_info): Update.
  7424. * tui/tui-stack.c (tui_show_frame_info): Update.
  7425. * tui/tui-layout.c (show_data): Add cast.
  7426. * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
  7427. * tui/tui-data.h (struct tui_source_window_base) <refill,
  7428. set_is_exec_point_at>: New methods.
  7429. (tui_source_windows, tui_add_to_source_windows): Update types.
  7430. (tui_add_to_source_windows): Remove redundant declaration.
  7431. * tui/tui-data.c (source_windows): Store tui_source_window_base.
  7432. (tui_source_windows): Change return type.
  7433. (tui_clear_source_windows_detail): Update.
  7434. (tui_add_to_source_windows): Change type of parameter.
  7435. (tui_free_all_source_wins_content): Update.
  7436. 2019-06-25 Tom Tromey <tom@tromey.com>
  7437. * tui/tui-wingeneral.c (tui_win_info::refresh)
  7438. (tui_source_window_base::refresh): New methods.
  7439. (tui_refresh_all): Call the refresh method.
  7440. * tui/tui-data.h (struct tui_win_info)
  7441. (struct tui_source_window_base) <refresh>: New method.
  7442. 2019-06-25 Tom Tromey <tom@tromey.com>
  7443. * tui/tui.h (tui_is_window_visible): Return bool.
  7444. * tui/tui.c (tui_is_window_visible): Return bool.
  7445. * tui/tui-wingeneral.c (tui_make_window, make_visible)
  7446. (tui_make_visible, tui_make_invisible)
  7447. (tui_win_info::make_visible)
  7448. (tui_source_window_base::make_visible, make_all_visible)
  7449. (tui_make_all_visible, tui_make_all_invisible): Update.
  7450. * tui/tui-windata.c (tui_delete_data_content_windows): Update.
  7451. * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
  7452. bool.
  7453. (struct tui_win_info, struct tui_source_window_base)
  7454. (struct tui_cmd_window) <make_visible>: Change parameter to bool.
  7455. * tui/tui-data.c (tui_init_generic_part): Update.
  7456. 2019-06-25 Tom Tromey <tom@tromey.com>
  7457. * tui/tui-wingeneral.c (tui_win_info::make_visible)
  7458. (tui_source_window_base::make_visible): New methods.
  7459. (make_all_visible): Make method call.
  7460. * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
  7461. (struct tui_source_window_base, struct tui_cmd_window): Override
  7462. make_visible.
  7463. (tui_win_is_source_type): Don't declare.
  7464. * tui/tui-data.c (tui_win_is_source_type): Remove.
  7465. 2019-06-25 Tom Tromey <tom@tromey.com>
  7466. * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
  7467. NULL check.
  7468. 2019-06-25 Tom Tromey <tom@tromey.com>
  7469. * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
  7470. Inline constructor. Add initializers for members.
  7471. * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
  7472. constructors; now inline in class.
  7473. 2019-06-25 Tom Tromey <tom@tromey.com>
  7474. * tui/tui-regs.c (tui_show_registers): Update.
  7475. * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
  7476. bool.
  7477. * tui/tui-data.c (tui_data_window::clear_detail)
  7478. (tui_data_window): Update.
  7479. 2019-06-25 Tom Tromey <tom@tromey.com>
  7480. * tui/tui-windata.c (tui_display_all_data)
  7481. (tui_display_data_from_line, tui_display_data_from)
  7482. (tui_check_data_values, tui_data_window::do_scroll_vertical):
  7483. Update.
  7484. * tui/tui-regs.c (tui_last_regs_line_no)
  7485. (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
  7486. (tui_show_registers, tui_show_register_group)
  7487. (tui_display_registers_from, tui_display_reg_element_at_line)
  7488. (tui_display_registers_from_line, tui_check_register_values)
  7489. (tui_reg_next, tui_reg_prev): Update.
  7490. * tui/tui-layout.c (tui_set_layout, show_data): Update.
  7491. * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
  7492. tui_data_window.
  7493. (struct tui_win_info) <detail>: Remove. Add new fields from
  7494. tui_data_info.
  7495. (TUI_DATA_WIN): Add cast.
  7496. * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
  7497. (~tui_data_window): Simplify.
  7498. 2019-06-25 Tom Tromey <tom@tromey.com>
  7499. * tui/tui-layout.c (show_source_disasm_command)
  7500. (show_source_or_disasm_and_command): Update.
  7501. * tui/tui-io.c (update_cmdwin_start_line)
  7502. (tui_redisplay_readline): Update.
  7503. * tui/tui-data.h (struct tui_command_info): Remove.
  7504. (struct tui_win_info) <detail>: Remove command_info member.
  7505. (struct tui_data_window) <start_line>: New member, from
  7506. tui_command_info.
  7507. (TUI_CMD_WIN): Add casts.
  7508. 2019-06-25 Tom Tromey <tom@tromey.com>
  7509. * tui/tui-winsource.c (tui_update_source_window)
  7510. (tui_refill_source_window)
  7511. (tui_source_window_base::do_scroll_horizontal)
  7512. (tui_update_breakpoint_info, tui_set_exec_info_content)
  7513. (tui_show_exec_info_content, tui_erase_exec_info_content)
  7514. (tui_clear_exec_info_content): Update.
  7515. * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
  7516. Update.
  7517. * tui/tui-win.c (make_invisible_and_set_new_height)
  7518. (make_visible_with_new_height): Update.
  7519. * tui/tui-source.c (tui_set_source_content)
  7520. (tui_show_symtab_source): Update.
  7521. * tui/tui-layout.c (extract_display_start_addr)
  7522. (show_source_disasm_command, show_data)
  7523. (make_source_or_disasm_window)
  7524. (show_source_or_disasm_and_command): Update.
  7525. * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
  7526. (tui_disasm_window::do_scroll_vertical): Remove shadowing
  7527. "gdbarch".
  7528. * tui/tui-data.h (struct tui_source_info): Remove. Move contents
  7529. to tui_source_window_base.
  7530. (struct tui_win_info) <detail>: Remove source_info member.
  7531. (struct tui_source_window_base) <has_locator>: Inline.
  7532. Move contents from tui_source_info; rename has_locator member to
  7533. m_has_locator.
  7534. (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
  7535. * tui/tui-data.c (tui_source_window_base::has_locator): Move to
  7536. header file.
  7537. (tui_source_window_base::clear_detail, ~tui_source_window_base):
  7538. Simplify.
  7539. (tui_free_all_source_wins_content): Cast to
  7540. tui_source_window_base.
  7541. 2019-06-25 Tom Tromey <tom@tromey.com>
  7542. * tui/tui-win.c (make_invisible_and_set_new_height)
  7543. (make_visible_with_new_height): Call has_locator method.
  7544. * tui/tui-layout.c (show_source_disasm_command, show_data)
  7545. (show_source_or_disasm_and_command): Update for bool change.
  7546. * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
  7547. (tui_win_info) <has_locator>: New method.
  7548. (struct tui_source_window_base) <has_locator>: New method.
  7549. (tui_win_has_locator): Don't declare.
  7550. * tui/tui-data.c (tui_source_window_base::has_locator): Rename
  7551. from tui_win_has_locator.
  7552. (tui_source_window_base): Use false, not FALSE.
  7553. 2019-06-25 Tom Tromey <tom@tromey.com>
  7554. * tui/tui-data.h (tui_clear_win_detail): Don't declare.
  7555. * tui/tui-data.c (tui_clear_source_windows_detail): Call the
  7556. clear_detail method directly.
  7557. (tui_clear_win_detail): Remove.
  7558. 2019-06-25 Tom Tromey <tom@tromey.com>
  7559. * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
  7560. "this", not TUI_DISASM_WIN.
  7561. 2019-06-25 Tom Tromey <tom@tromey.com>
  7562. * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
  7563. declare.
  7564. * tui/tui-winsource.c
  7565. (tui_source_window_base::do_scroll_horizontal): Rename from
  7566. tui_horizontal_source_scroll.
  7567. * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
  7568. * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
  7569. from tui_vertical_data_scroll.
  7570. * tui/tui-win.h (tui_scroll): Don't declare.
  7571. * tui/tui-win.c (tui_win_info::forward_scroll)
  7572. (tui_win_info::backward_scroll, tui_win_info::left_scroll)
  7573. (tui_win_info::right_scroll): Rename and update.
  7574. (tui_scroll_forward_command, tui_scroll_backward_command)
  7575. (tui_scroll_left_command, tui_scroll_right_command): Update.
  7576. (tui_scroll): Remove.
  7577. * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
  7578. * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
  7579. from tui_vertical_source_scroll.
  7580. * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
  7581. * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
  7582. from tui_vertical_disassem_scroll.
  7583. * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
  7584. do_scroll_horizontal>: New methods.
  7585. <forward_scroll, backward_scroll, left_scroll, right_scroll>:
  7586. Likewise.
  7587. (struct tui_source_window_base): Add do_scroll_horizontal.
  7588. (struct tui_source_window, struct tui_disasm_window): Add
  7589. do_scroll_vertical.
  7590. (struct tui_data_window, struct tui_cmd_window): Add
  7591. do_scroll_horizontal and do_scroll_vertical.
  7592. * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
  7593. 2019-06-25 Tom Tromey <tom@tromey.com>
  7594. * tui/tui-data.h (struct tui_source_window_base): New struct.
  7595. (struct tui_source_window): Derive from tui_source_window_base.
  7596. (struct tui_disasm_window): New struct.
  7597. * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
  7598. from tui_source_window::clear_detail.
  7599. (tui_source_window_base): Rename from tui_source_window.
  7600. (~tui_source_window_base): Rename from ~tui_source_window.
  7601. (tui_alloc_win_info): Create a tui_disasm_window.
  7602. 2019-06-25 Tom Tromey <tom@tromey.com>
  7603. * tui/tui-data.h (struct tui_source_window)
  7604. (struct tui_data_window): Declare destructors.
  7605. * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
  7606. destructors.
  7607. (tui_win_info): Simplify.
  7608. 2019-06-25 Tom Tromey <tom@tromey.com>
  7609. * tui/tui-winsource.c (tui_display_main)
  7610. (tui_update_source_windows_with_addr)
  7611. (tui_update_all_breakpoint_info): Update.
  7612. * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
  7613. (new_height_ok, parse_scrolling_args): Update.
  7614. * tui/tui-stack.c (tui_show_frame_info): Update.
  7615. * tui/tui-data.h (struct tui_list): Remove.
  7616. (tui_source_windows): Return a reference to a std::vector.
  7617. * tui/tui-data.c (source_windows): Now a std::vector.
  7618. (tui_source_windows): Change return type.
  7619. (tui_clear_source_windows): Rewrite.
  7620. (tui_clear_source_windows_detail, tui_add_to_source_windows)
  7621. (tui_free_all_source_wins_content): Rewrite.
  7622. 2019-06-25 Tom Tromey <tom@tromey.com>
  7623. * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
  7624. (struct tui_data_window, struct tui_cmd_window): Declare
  7625. clear_detail method.
  7626. * tui/tui-data.c (tui_source_window::clear_detail)
  7627. (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
  7628. methods.
  7629. (tui_clear_win_detail): Simplify.
  7630. 2019-06-25 Tom Tromey <tom@tromey.com>
  7631. * tui/tui-layout.c (make_source_window, make_disasm_window)
  7632. (make_source_or_disasm_window): Remove win_info_ptr parameter.
  7633. Return the new window.
  7634. (show_source_disasm_command, show_data)
  7635. (show_source_or_disasm_and_command): Update.
  7636. 2019-06-25 Tom Tromey <tom@tromey.com>
  7637. * tui/tui-layout.c (make_command_window): Remove win_info_ptr
  7638. parameter. Return the new window.
  7639. (show_source_disasm_command): Update and remove NULL check.
  7640. (show_source_or_disasm_and_command): Update.
  7641. 2019-06-25 Tom Tromey <tom@tromey.com>
  7642. * tui/tui-layout.c (init_and_make_win): Remove NULL check.
  7643. 2019-06-25 Tom Tromey <tom@tromey.com>
  7644. * tui/tui-data.h (struct tui_win_info): Make constructor
  7645. protected. Make destructor virtual. Add initializers.
  7646. (tui_source_window, tui_data_window, tui_cmd_window): New
  7647. classes.
  7648. * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
  7649. constructor. Add "type" parameter.
  7650. (tui_source_window, tui_data_window, tui_cmd_window): New
  7651. constructors.
  7652. (tui_alloc_win_info): Instantiate the appropriate subclass.
  7653. 2019-06-25 Tom Tromey <tom@tromey.com>
  7654. * tui/tui-win.c (tui_resize_all): Use delete.
  7655. * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
  7656. destructor.
  7657. (tui_free_window): Don't declare.
  7658. * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
  7659. Update.
  7660. 2019-06-25 Tom Tromey <tom@tromey.com>
  7661. * tui/tui-data.h (struct tui_win_info): Add constructor.
  7662. * tui/tui-data.c (tui_alloc_win_info): Use new.
  7663. (tui_free_window): Use delete.
  7664. 2019-06-22 Tom Tromey <tom@tromey.com>
  7665. * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
  7666. declare.
  7667. * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
  7668. 2019-06-22 Tom Tromey <tom@tromey.com>
  7669. * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
  7670. declare.
  7671. * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
  7672. 2019-06-22 Tom de Vries <tdevries@suse.de>
  7673. * dwarf2read.c (create_addrmap_from_aranges)
  7674. (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
  7675. instead of '%zu'.
  7676. 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
  7677. * dwarf2read.h (dwarf2_section_info_def): Remove.
  7678. (DEF_VEC_O (dwarf2_section_info_def)): Remove.
  7679. * dwarf2read.c (struct dwo_sections) <types>: Change type to
  7680. std::vector<dwarf2_section_info>.
  7681. (struct dwo_file) <~dwo_file>: Remove.
  7682. (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
  7683. types field.
  7684. (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
  7685. (dwarf2_read_debug_names): Likewise.
  7686. (create_debug_types_hash_table): Change parameter type to
  7687. array_view, adjust code accordingly.
  7688. (dwarf2_locate_dwo_sections): Adjust to std::vector.
  7689. (partial_die_info::fixup): Likewise.
  7690. (determine_prefix): Likewise.
  7691. * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
  7692. 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
  7693. * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
  7694. gdb_bfd_ref_ptr.
  7695. <~dwo_file>: Remove call to gdb_bfd_unref.
  7696. (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
  7697. gdb_bfd_ref_ptr::get.
  7698. 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
  7699. * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
  7700. type to htab_up.
  7701. * dwarf2read.c (struct dwo_file): Initialize fields.
  7702. <~dwo_file>: New.
  7703. (free_dwo_file): Remove, move content to ~dwo_file.
  7704. (struct dwo_file_deleter): Remove.
  7705. (dwo_file_up>: Remove custom deleter.
  7706. (free_dwo_files): Remove.
  7707. (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
  7708. dwo_files.
  7709. (process_skeletonless_type_units): Call unique_ptr::get.
  7710. (allocate_dwo_file_hash_table): Add deleter to created hash
  7711. table. Change return type to htab_up.
  7712. (lookup_dwo_file_slot): Don't memset dwo_file, call
  7713. unique_ptr::get.
  7714. (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
  7715. (create_dwo_unit_in_dwp_v2): Likewise.
  7716. (open_and_init_dwo_file): Likewise.
  7717. (free_dwo_file_from_slot): Remove.
  7718. 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
  7719. * dwarf2read.h (struct dwarf2_section_info) <readin,
  7720. is_virtual>: Change type to bool.
  7721. * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
  7722. true instead of 1.
  7723. 2019-06-19 Tom Tromey <tom@tromey.com>
  7724. * tui/tui-data.h (tui_init_content_element): Don't declare.
  7725. 2019-06-19 Tom Tromey <tom@tromey.com>
  7726. * tui/tui-data.h (tui_init_win_info): Don't declare.
  7727. 2019-06-19 Tom de Vries <tdevries@suse.de>
  7728. * dwarf2read.h (abstract_to_concrete): Change type to
  7729. std::unordered_map<sect_offset, std::vector<sect_offset>,
  7730. gdb::hash_enum<sect_offset>>.
  7731. 2019-06-19 Tom Tromey <tromey@adacore.com>
  7732. * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
  7733. EVAL_AVOID_SIDE_EFFECTS specially.
  7734. 2019-06-19 Tom Tromey <tromey@adacore.com>
  7735. * source-cache.c (highlighter): New global.
  7736. (source_cache::get_source_lines): Create a highlighter on demand.
  7737. 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
  7738. * defs.h (deprecated_interactive_hook): Delete declaration.
  7739. * interps.c (clear_interpreter_hooks): Remove use of
  7740. deprecated_interactive_hook.
  7741. * top.c (deprecated_interactive_hook): Delete definition.
  7742. * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
  7743. 2019-06-18 Tom de Vries <tdevries@suse.de>
  7744. PR gdb/24515
  7745. * dwarf2read.h (abstract_to_concrete): Change type from
  7746. std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
  7747. std::unordered_map<sect_offset, std::vector<sect_offset>>.
  7748. * dwarf2read.c (read_variable): Update.
  7749. (dwarf2_fetch_die_loc_sect_off): Update.
  7750. 2019-06-17 Tom de Vries <tdevries@suse.de>
  7751. PR gdb/24617
  7752. * common/pathstuff.c (child_path): Make sure parent_len > 0 before
  7753. accessing parent[parent_len - 1].
  7754. 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
  7755. PR gdb/24364
  7756. * dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
  7757. call dtrace_process_dof with NULL dof.
  7758. 2019-06-16 Tom de Vries <tdevries@suse.de>
  7759. PR gdb/24445
  7760. * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
  7761. 2019-06-16 Tom Tromey <tom@tromey.com>
  7762. * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
  7763. (make_all_visible): Use address of member.
  7764. 2019-06-16 Tom Tromey <tom@tromey.com>
  7765. * tui/tui-data.c (tui_clear_win_detail, init_win_info)
  7766. (tui_free_window, free_content, free_content_elements): Remove
  7767. unnecessary cast.
  7768. * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
  7769. cast.
  7770. * tui/tui-regs.c (tui_show_register_group)
  7771. (tui_display_registers_from, tui_display_reg_element_at_line):
  7772. Remove unnecessary cast.
  7773. 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
  7774. * linux-nat.c (normal_mask): Delete.
  7775. (_initialize_linux_nat): Don't initialise normal_mask.
  7776. 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
  7777. PR gdb/24445
  7778. * dwarf-index-write.h (write_psymtabs_to_index): Add
  7779. dwz_basename parameter.
  7780. * dwarf-index-write.c (write_gdbindex): Move file writing to
  7781. write_gdbindex_1. Change return type void.
  7782. (assert_file_size): Move up, remove filename parameter.
  7783. (write_gdbindex_1): New function.
  7784. (write_debug_names): Change return type to void, call
  7785. assert_file_size.
  7786. (struct index_wip_file): New struct.
  7787. (write_psymtabs_to_index): Add dwz_basename parameter. Move
  7788. file logic to index_wip_file. Write index for dwz file if
  7789. needed.
  7790. (save_gdb_index_command): Pass basename of dwz file, if present.
  7791. * dwarf-index-cache.c (index_cache::store): Obtain and pass
  7792. build-id of dwz file, if present.
  7793. * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
  7794. (dwarf2_get_dwz_file): Likewise.
  7795. * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
  7796. (dwarf2_get_dwz_file): Likewise.
  7797. 2019-06-16 Tom Tromey <tom@tromey.com>
  7798. * coffread.c (process_coff_symbol): Use xstrdup.
  7799. * value.c (create_internalvar): Use xstrdup.
  7800. 2019-06-16 Tom Tromey <tom@tromey.com>
  7801. * valops.c (value_cast, value_slice): Remove unnecessary cast.
  7802. * breakpoint.c (stopin_command, stopat_command)
  7803. (until_break_command, decode_location_default): Remove unnecessary
  7804. cast.
  7805. * utils.c (subset_compare): Remove unnecessary cast.
  7806. * ada-lang.c (ada_update_initial_language): Remove unnecessary
  7807. cast.
  7808. * linespec.c (decode_line_with_last_displayed): Remove unnecessary
  7809. cast.
  7810. * infcmd.c (path_command): Remove unnecessary cast.
  7811. * coffread.c (decode_type): Remove unnecessary cast.
  7812. * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
  7813. * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
  7814. * tui/tui-stack.c (tui_show_locator_content)
  7815. (tui_show_frame_info): Remove unnecessary cast.
  7816. * tui/tui-win.c (tui_scroll_forward_command)
  7817. (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
  7818. (parse_scrolling_args): Remove unnecessary cast.
  7819. * tui/tui-data.c (init_win_info, tui_del_window)
  7820. (tui_free_window, tui_del_data_windows, tui_free_data_content)
  7821. (free_content_elements): Remove unnecessary cast.
  7822. * tui/tui-windata.c (tui_first_data_item_displayed): Remove
  7823. unnecessary cast.
  7824. * tui/tui-source.c (tui_set_source_content)
  7825. (tui_vertical_source_scroll): Remove unnecessary cast.
  7826. * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
  7827. cast.
  7828. * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
  7829. * tui/tui-regs.c (tui_display_registers_from)
  7830. (tui_display_register): Remove unnecessary cast.
  7831. * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
  7832. (tui_unhighlight_win, tui_highlight_win, tui_make_window)
  7833. (make_visible): Remove unnecessary cast.
  7834. * tui/tui-winsource.c (tui_erase_source_content)
  7835. (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
  7836. unnecessary cast.
  7837. * ax-gdb.c (agent_command_1): Remove unnecessary cast.
  7838. * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
  7839. * stabsread.c (read_type, read_array_type, read_range_type):
  7840. Remove unnecessary cast.
  7841. * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
  7842. (parse_symbol, parse_type, upgrade_type, parse_external)
  7843. (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
  7844. unnecessary cast.
  7845. * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
  7846. 2019-06-16 Tom Tromey <tom@tromey.com>
  7847. * tui/tui-data.c (tui_alloc_generic_win_info)
  7848. (tui_alloc_win_info, tui_add_content_elements): Remove NULL
  7849. checks.
  7850. 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
  7851. Andrew Burgess <andrew.burgess@embecosm.com>
  7852. * f-typeprint.c (f_print_type): Don't return early for not
  7853. associated or not allocated types.
  7854. (f_type_print_varspec_suffix): Add print_rank parameter and print
  7855. ranks of array types in case they dangling.
  7856. (f_type_print_base): Add print_rank parameter.
  7857. 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
  7858. * NEWS: Mention new MI commands.
  7859. * break-catch-throw.c (enum exception_event_kind): Move to
  7860. breakpoint.h.
  7861. (print_mention_exception_catchpoint): Output text as a single
  7862. message.
  7863. (catch_exception_command_1): Rename to...
  7864. (catch_exception_event): ...this, make non-static, update header
  7865. command, and change some parameter types.
  7866. (catch_catch_command): Update for changes to
  7867. catch_exception_command_1.
  7868. (catch_throw_command): Likewise.
  7869. (catch_rethrow_command): Likewise.
  7870. * breakpoint.c (enum exception_event_kind): Delete.
  7871. * breakpoint.h (enum exception_event_kind): Moved here from
  7872. break-catch-throw.c.
  7873. (catch_exception_event): Declare.
  7874. * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
  7875. (mi_cmd_catch_throw): New function.
  7876. (mi_cmd_catch_rethrow): New function.
  7877. (mi_cmd_catch_catch): New function.
  7878. * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
  7879. 'catch-catch' entries.
  7880. * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
  7881. (mi_cmd_catch_rethrow): Declare.
  7882. (mi_cmd_catch_catch): Declare.
  7883. 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
  7884. * annotate.c (annotate_source_line): Change return type to void,
  7885. update implementation to match.
  7886. * annotate.h (annotate_source_line): Change return type to void,
  7887. update header comment.
  7888. * stack.c (print_frame_info): Don't change what frame information
  7889. is printed based on whether annotations are on or not.
  7890. 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
  7891. * annotate.c: Add 'source.h' and 'objfiles.h' includes.
  7892. (annotate_source): Make static.
  7893. (annotate_source_line): Moved from source.c and renamed from
  7894. identify_source_line. Update the return type.
  7895. * annotate.h (annotate_source): Delete declaration.
  7896. (annotate_source_line): Declaration moved from source.h, and
  7897. renamed from identify_source_line. Return type updated.
  7898. * source.c (identify_source_line): Moved to annotate.c and renamed
  7899. to annotate_source_line.
  7900. (info_line_command): Remove check of annotation_level.
  7901. * source.h (identify_source_line): Move declaration to annotate.h
  7902. and rename to annotate_source_line.
  7903. * stack.c: Add 'annotate.h' include.
  7904. (print_frame_info): Remove check of annotation_level before
  7905. calling annotate_source_line.
  7906. 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
  7907. * source-cache.c (source_cache::get_plain_source_lines): Use
  7908. open_source_file_with_line_charpos instead of just
  7909. open_source_file, remove call to find_source_lines.
  7910. (source_cache::get_source_lines): Likewise.
  7911. * source.c (find_source_lines): Make static.
  7912. (get_filename_and_charpos): Renamed into...
  7913. (open_source_file_with_line_charpos): ..this along with changes to
  7914. return a scoped_fd, and some other minor clean ups.
  7915. (identify_source_line): Use open_source_file_with_line_charpos.
  7916. (search_command_helper): Use open_source_file_with_line_charpos
  7917. instead of just open_source_file, remove call to
  7918. find_source_lines.
  7919. * source.h (open_source_file_with_line_charpos): Declare new
  7920. function.
  7921. (find_source_lines): Delete declaration.
  7922. 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
  7923. * source.c (get_filename_and_charpos): Remove fullname
  7924. parameter.
  7925. (identify_source_line): Update call to get_filename_and_charpos.
  7926. 2019-06-14 Tom Tromey <tromey@adacore.com>
  7927. PR gdb/24502:
  7928. * ui-style.h (skip_ansi_escape): Update comment.
  7929. * ui-file.h (class no_terminal_escape_file): New class.
  7930. * ui-file.c (no_terminal_escape_file::write)
  7931. (no_terminal_escape_file::puts): New methods.
  7932. * cli/cli-logging.c (handle_redirections): Use
  7933. no_terminal_escape_file.
  7934. 2019-06-14 Tom Tromey <tromey@adacore.com>
  7935. * NEWS: Move convenience variable news above Python news.
  7936. 2019-06-14 Tom Tromey <tom@tromey.com>
  7937. * gnulib: Move directory to top-level.
  7938. * configure.ac: Don't configure gnulib.
  7939. * configure: Rebuild.
  7940. * common/common-defs.h: Use new path to gnulib.
  7941. * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
  7942. (GNULIB_H): Remove.
  7943. (INCGNU): Look in new gnulib location.
  7944. (HFILES_NO_SRCDIR): Remove gnulib files.
  7945. (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
  7946. (generated_files): Remove GNULIB_H.
  7947. ($(LIBGNU), all-lib): Remove targets.
  7948. (distclean): Don't mention GNULIB_BUILDDIR.
  7949. ($(GNULIB_BUILDDIR)/Makefile): Remove target.
  7950. 2019-06-14 Tom Tromey <tromey@adacore.com>
  7951. * symfile.c (add_symbol_file_command): Remove obsolete comment.
  7952. Warn if symbol file does not provide any symbols.
  7953. 2019-06-14 Tom Tromey <tromey@adacore.com>
  7954. * source.c (find_and_open_source): Respect basenames_may_differ.
  7955. 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
  7956. * annotate.c (annotate_breakpoints_invalid): Make use of
  7957. scoped_restore_terminal_state.
  7958. (annotate_frames_invalid): Likewise.
  7959. 2019-06-14 Tom Tromey <tromey@adacore.com>
  7960. * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
  7961. allow assignment to an internalvar.
  7962. 2019-06-14 Tom Tromey <tromey@adacore.com>
  7963. * ada-lex.l: Allow "_" in attribute names.
  7964. 2019-06-14 Tom Tromey <tromey@adacore.com>
  7965. PR gdb/24653:
  7966. * regcache.c (registers_changed): Don't call alloca.
  7967. * top.c (execute_command): Don't call alloca.
  7968. 2019-06-13 Pedro Alves <palves@redhat.com>
  7969. * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
  7970. 'expression'. When parsing an expression, error out if there's
  7971. junk after "unlimited".
  7972. (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
  7973. (do_set_command): Adjust calls to is_unlimited_literal.
  7974. 2019-06-13 Pedro Alves <palves@redhat.com>
  7975. * compile/compile.c (make_compile_options_def_group): Add braces
  7976. around array_view initializer.
  7977. * thread.c (make_thread_apply_all_options_def_group)
  7978. (make_thread_apply_all_options_def_group): Likewise.
  7979. 2019-06-13 Pedro Alves <palves@redhat.com>
  7980. * NEWS (New commands): Mention "maint test-options
  7981. require-delimiter", "maint test-options unknown-is-error", "maint
  7982. test-options unknown-is-operand" and "maint show
  7983. test-options-completion-result".
  7984. (New command options, command completion): New section.
  7985. (Completion improvements): New section.
  7986. Mention that you can abbreviate "unlimited".
  7987. 2019-06-13 Pedro Alves <palves@redhat.com>
  7988. * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
  7989. * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
  7990. * unittests/cli-utils-selftests.c (test_parse_flags)
  7991. (test_parse_flags_qcs): Delete.
  7992. (test_cli_utils): Don't call deleted functions.
  7993. 2019-06-13 Pedro Alves <palves@redhat.com>
  7994. * thread.c: Include "cli/cli-option.h".
  7995. (tp_array_compar_ascending): Global.
  7996. (tp_array_compar): Delete function.
  7997. (tp_array_compar_ascending, tp_array_compar_descending): New
  7998. functions.
  7999. (ascending_option_def, qcs_flag_option_def)
  8000. (thr_qcs_flags_option_defs)
  8001. (make_thread_apply_all_options_def_group)
  8002. (make_thread_apply_options_def_group): New.
  8003. (thread_apply_all_command): Use gdb::option::process_options.
  8004. (thread_apply_command_completer)
  8005. (thread_apply_all_command_completer): New.
  8006. (thread_apply_command): Use gdb::option::process_options.
  8007. (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
  8008. with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
  8009. to generate help text of "thread apply". Adjust "taas"'s help.
  8010. * tid-parse.c (tid_range_parser::in_thread_range): New method.
  8011. * tid-parse.h (tid_range_parser::in_thread_range): New method.
  8012. 2019-06-13 Pedro Alves <palves@redhat.com>
  8013. * thread.c (thread_apply_command): Check for invalid TID with
  8014. isdigit instead of !isalpha.
  8015. 2019-06-13 Pedro Alves <palves@redhat.com>
  8016. * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
  8017. (validate_flags_qcs): New.
  8018. * cli/cli-utils.h (struct qcs_flags): Change field types to int.
  8019. (validate_flags_qcs): Declare.
  8020. * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
  8021. (make_frame_apply_options_def_group): New.
  8022. (frame_apply_command_count): Process options with
  8023. gdb::option::process_options.
  8024. (frame_apply_completer): New.
  8025. (frame_apply_level_completer, frame_apply_all_completer)
  8026. (frame_apply_completer): New.
  8027. (_initialize_stack): Update help of "frame apply", "frame apply
  8028. level", "frame apply all" and "faas" to mention supported options
  8029. and install command completers.
  8030. * stack.h (frame_apply_all_completer): Declare.
  8031. * thread.c: Include "stack.h".
  8032. (tfaas_command): Add "--".
  8033. (_initialize_thread): Update help "tfaas" to mention supported
  8034. options and install command completer.
  8035. 2019-06-13 Pedro Alves <palves@redhat.com>
  8036. * completer.c (complete_nested_command_line): New.
  8037. (gdb_completion_word_break_characters_throw): Add assertion.
  8038. * completer.h (complete_nested_command_line): Declare.
  8039. 2019-06-13 Pedro Alves <palves@redhat.com>
  8040. * stack.c (parse_backtrace_qualifiers): New.
  8041. (backtrace_command): Use it.
  8042. (backtrace_command_completer): Complete on qualifiers.
  8043. 2019-06-13 Pedro Alves <palves@redhat.com>
  8044. * frame.c: Include "cli/cli-option.h.
  8045. (user_set_backtrace_options): New.
  8046. (backtrace_past_main, backtrace_past_entry, backtrace_limit):
  8047. Delete.
  8048. (get_prev_frame): Adjust.
  8049. (boolean_option_def, uinteger_option_def)
  8050. (set_backtrace_option_defs): New.
  8051. (_initialize_frame): Adjust and use
  8052. gdb::option::add_setshow_cmds_for_options to install "set
  8053. backtrace past-main" and "set backtrace past-entry".
  8054. * frame.h: Include "cli/cli-option.h".
  8055. (struct frame_print_options): Forward declare.
  8056. (print_frame_arguments_all, print_frame_arguments_scalars)
  8057. (print_frame_arguments_none): Declare.
  8058. (print_entry_values): Delete declaration.
  8059. (struct frame_print_options, user_frame_print_options): New.
  8060. (struct set_backtrace_options): New.
  8061. (set_backtrace_option_defs, user_set_backtrace_options): Declare.
  8062. * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
  8063. (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
  8064. (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
  8065. (list_args_or_locals): Add frame_print_options parameter.
  8066. (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
  8067. * python/py-framefilter.c (enumerate_args): Pass down
  8068. USER_FRAME_PRINT_OPTIONS.
  8069. * stack.c: Include "cli/cli-option.h".
  8070. (print_frame_arguments_all, print_frame_arguments_scalars)
  8071. (print_frame_arguments_none): Declare.
  8072. (print_raw_frame_arguments, print_entry_values): Delete.
  8073. (user_frame_print_options): New.
  8074. (boolean_option_def, enum_option_def, frame_print_option_defs):
  8075. New.
  8076. (struct backtrace_cmd_options): New.
  8077. (bt_flag_option_def): New.
  8078. (backtrace_command_option_defs): New.
  8079. (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
  8080. (print_frame_arg, read_frame_arg, print_frame_args)
  8081. (print_frame_info, print_frame): Add frame_print_options parameter
  8082. and use it.
  8083. (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
  8084. (backtrace_command_1): Add frame_print_options and
  8085. backtrace_cmd_options parameters and use them.
  8086. (make_backtrace_options_def_group): New.
  8087. (backtrace_command): Process command options with
  8088. gdb::option::process_options.
  8089. (backtrace_command_completer): New.
  8090. (_initialize_stack): Extend "backtrace"'s help to mention
  8091. supported options. Install completer for "backtrace".
  8092. Install some settings commands with add_setshow_cmds_for_options.
  8093. 2019-06-13 Pedro Alves <palves@redhat.com>
  8094. * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
  8095. and that "set/show print raw frame-arguments" are now deprecated.
  8096. * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
  8097. command.
  8098. * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
  8099. * stack.c (_initialize_stack): Install "set/show print
  8100. raw-frame-arguments", and deprecate "set/show print raw
  8101. frame-arguments".
  8102. * valprint.c (_initialize_valprint): Deprecate "set/show print
  8103. raw".
  8104. 2019-06-13 Pedro Alves <palves@redhat.com>
  8105. * compile/compile.c (struct compile_options): New.
  8106. (compile_flag_option_def, compile_command_option_defs)
  8107. (make_compile_options_def_group): New.
  8108. (compile_file_command): Handle options with
  8109. gdb::option::process_options.
  8110. (compile_file_command_completer): New function.
  8111. (compile_code_command): Handle options with
  8112. gdb::option::process_options.
  8113. (compile_code_command_completer): New function.
  8114. (_initialize_compiler): Install completers for "compile code" and
  8115. "compile file". Mention available options in "compile code" and
  8116. "compile code"'s help.
  8117. * completer.c (advance_to_completion_word): New, factored out from
  8118. ...
  8119. (advance_to_expression_complete_word_point): ... this.
  8120. (advance_to_filename_complete_word_point): New.
  8121. * completer.h (advance_to_filename_complete_word_point): New
  8122. declaration.
  8123. 2019-06-13 Pedro Alves <palves@redhat.com>
  8124. * compile/compile.c: Include "cli/cli-option.h".
  8125. (compile_print_value): Scope data pointer is now a
  8126. value_print_options pointer; adjust.
  8127. (compile_print_command): Process options. Scope data pointer is
  8128. now a value_print_options pointer; adjust.
  8129. (_initialize_compile): Update "compile print"'s help to include
  8130. supported options. Install a completer for "compile print".
  8131. * cp-valprint.c (show_vtblprint, show_objectprint)
  8132. (show_static_field_print): Delete.
  8133. (_initialize_cp_valprint): Don't install "set print
  8134. static-members", "set print vtbl", "set print object" here.
  8135. * printcmd.c: Include "cli/cli-option.h" and
  8136. "common/gdb_optional.h".
  8137. (print_command_parse_format): Rework to fill in a
  8138. value_print_options instead of a format_data.
  8139. (print_value): Change parameter type from format_data pointer to
  8140. value_print_options reference. Adjust.
  8141. (print_command_1): Process options. Adjust to pass down a
  8142. value_print_options.
  8143. (print_command_completer): New.
  8144. (_initialize_printcmd): Install print_command_completer as
  8145. handle_brkchars completer for the "print" command. Update
  8146. "print"'s help to include supported options.
  8147. * valprint.c: Include "cli/cli-option.h".
  8148. (show_vtblprint, show_objectprint, show_static_field_print): Moved
  8149. here from cp-valprint.c.
  8150. (boolean_option_def, uinteger_option_def)
  8151. (value_print_option_defs, make_value_print_options_def_group):
  8152. New. Use gdb::option::add_setshow_cmds_for_options to install
  8153. "set print elements", "set print null-stop", "set print repeats",
  8154. "set print pretty", "set print union", "set print array", "set
  8155. print address", "set print symbol", "set print array-indexes".
  8156. * valprint.h: Include <string> and "cli/cli-option.h".
  8157. (make_value_print_options_def_group): Declare.
  8158. (print_value): Change parameter type from format_data pointer to
  8159. value_print_options reference.
  8160. (print_command_completer): Declare.
  8161. 2019-06-13 Pedro Alves <palves@redhat.com>
  8162. * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
  8163. (COMMON_SFILES): Add maint-test-settings.c.
  8164. * cli/cli-decode.c (boolean_enums): New global, factored out from
  8165. ...
  8166. (add_setshow_boolean_cmd): ... here.
  8167. * cli/cli-decode.h (boolean_enums): Declare.
  8168. * cli/cli-option.c: New file.
  8169. * cli/cli-option.h: New file.
  8170. * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
  8171. factored out from ...
  8172. (parse_cli_boolean_value(const char *)): ... this.
  8173. (is_unlimited_literal): Change parameter type to pointer to
  8174. pointer. Adjust and advance ARG pointer.
  8175. (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
  8176. (parse_cli_var_enum): New, factored out from ...
  8177. (do_set_command): ... this. Adjust.
  8178. * cli/cli-setshow.h (parse_cli_boolean_value)
  8179. (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
  8180. (parse_cli_var_enum): Declare.
  8181. * cli/cli-utils.c: Include "cli/cli-option.h".
  8182. (get_ulongest): New.
  8183. * cli/cli-utils.h (get_ulongest): Declare.
  8184. (check_for_argument): New overloads.
  8185. * maint-test-options.c: New file.
  8186. 2019-06-13 Pedro Alves <palves@redhat.com>
  8187. * cli/cli-utils.c (number_or_range_parser::get_number): Do not
  8188. parse a range if "-" is at the end of the string.
  8189. 2019-06-13 Pedro Alves <palves@redhat.com>
  8190. * cli/cli-setshow.c (parse_auto_binary_operation)
  8191. (parse_cli_boolean_value): Don't allow "o".
  8192. 2019-06-13 Pedro Alves <palves@redhat.com>
  8193. * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
  8194. * NEWS: Mention maint test-settings KIND.
  8195. * maint-test-settings.c: New file.
  8196. 2019-06-13 Pedro Alves <palves@redhat.com>
  8197. * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
  8198. completer.
  8199. (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
  8200. "set" completers.
  8201. 2019-06-13 Pedro Alves <palves@redhat.com>
  8202. * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
  8203. after item.
  8204. 2019-06-13 Pedro Alves <palves@redhat.com>
  8205. * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
  8206. 2019-06-13 Pedro Alves <palves@redhat.com>
  8207. * ax-gdb.c (agent_command_1): Remove skip_spaces call.
  8208. * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
  8209. call.
  8210. * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
  8211. * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
  8212. calls.
  8213. (check_for_argument): Skip spaces after argument.
  8214. 2019-06-13 Pedro Alves <palves@redhat.com>
  8215. * thread.c (thread_apply_command): Adjust TID parsing.
  8216. * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
  8217. detected before end of string.
  8218. (tid_is_in_list): Error out if LIST is invalid.
  8219. 2019-06-13 Pedro Alves <palves@redhat.com>
  8220. * completer.c (complete_line_internal_1): Rewind completion word
  8221. point.
  8222. (completion_tracker::advance_custom_word_point_by): Change
  8223. parameter type to int.
  8224. * completer.h (completion_tracker::advance_custom_word_point_by):
  8225. Likewise.
  8226. 2019-06-13 Pedro Alves <palves@redhat.com>
  8227. * completer.c (advance_to_completion_word): Handle delimiters.
  8228. 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
  8229. * dwarf2read.c (add_partial_symbol): Skip nameless modules.
  8230. 2019-06-11 Tom Tromey <tom@tromey.com>
  8231. * common/common-utils.c (xmalloc, xrealloc, xcalloc)
  8232. (xmalloc_failed): Move to alloc.c.
  8233. * alloc.c: New file.
  8234. * Makefile.in (COMMON_SFILES): Add alloc.c.
  8235. 2019-06-11 Tom Tromey <tom@tromey.com>
  8236. * nat/linux-waitpid.c: Don't include server.h.
  8237. (linux_debug): Remove.
  8238. (my_waitpid): Update.
  8239. 2019-06-11 Tom Tromey <tromey@adacore.com>
  8240. * infcall.c (_initialize_infcall): Remove trailing newline from
  8241. help.
  8242. * user-regs.c (_initialize_user_regs): Remove trailing newline
  8243. from help.
  8244. * typeprint.c (_initialize_typeprint): Remove trailing newline
  8245. from help.
  8246. * reverse.c (_initialize_reverse): Remove trailing newlines from
  8247. help.
  8248. * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
  8249. from help.
  8250. * language.c (add_set_language_command): Remove trailing newline
  8251. from help.
  8252. * infcmd.c (_initialize_infcmd): Remove trailing newlines from
  8253. help.
  8254. * disasm.c (_initialize_disasm): Remove trailing newline from
  8255. help.
  8256. * top.c (init_main): Remove trailing newline from help.
  8257. * interps.c (_initialize_interpreter): Remove trailing newline
  8258. from help.
  8259. * btrace.c (_initialize_btrace): Remove trailing newlines from
  8260. help.
  8261. * breakpoint.c (_initialize_breakpoint): Remove trailing newline
  8262. from help.
  8263. * python/python.c (_initialize_python): Remove trailing newline
  8264. from help.
  8265. * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
  8266. help.
  8267. * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
  8268. from help. Reformat some text.
  8269. * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
  8270. from help.
  8271. * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
  8272. newline from help.
  8273. 2019-06-11 Tom Tromey <tromey@adacore.com>
  8274. * darwin-nat.c (darwin_decode_exception_message)
  8275. (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
  8276. 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
  8277. * valops.c (value_slice): Check for not allocated or not
  8278. associated values.
  8279. 2019-06-10 Tom de Vries <tdevries@suse.de>
  8280. PR gdb/24618
  8281. * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
  8282. sure an empty slot (defined by a 32-bit zero pair) is recognized as
  8283. invalid.
  8284. 2019-06-10 Tom de Vries <tdevries@suse.de>
  8285. PR gdb/24611
  8286. * linespec.c (linespec_lexer_lex_string): Remove incorrect
  8287. "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
  8288. 2019-06-10 Tom de Vries <tdevries@suse.de>
  8289. PR symtab/24545
  8290. * symtab.c (struct demangled_name_entry): Add language field.
  8291. (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
  8292. static minimal symbol". Set and use language field.
  8293. 2019-06-10 Tom Tromey <tromey@adacore.com>
  8294. * ada-lang.c (_initialize_ada_language): Update help text.
  8295. 2019-06-10 Tom Tromey <tromey@adacore.com>
  8296. * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
  8297. with a newline.
  8298. * guile/guile.c (handle_boot_error): Don't end warning with a
  8299. newline.
  8300. * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
  8301. warning with a newline.
  8302. * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
  8303. newline.
  8304. (s12z_frame_cache): Likewise.
  8305. * dwarf-index-cache.c (index_cache::store): Don't end warning with
  8306. a newline.
  8307. * solib-svr4.c (disable_probes_interface): Don't end warning with
  8308. a newline.
  8309. * nat/fork-inferior.c (fork_inferior): Don't end warning with a
  8310. newline.
  8311. * python/python.c (do_finish_initialization): Don't end warning
  8312. with a newline.
  8313. 2019-06-10 Tom Tromey <tom@tromey.com>
  8314. * python/py-breakpoint.c (gdbpy_breakpoint_created)
  8315. (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
  8316. gdbpy_enter.
  8317. 2019-06-10 Tom Tromey <tromey@adacore.com>
  8318. * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
  8319. data.
  8320. (elf_new_init): Don't call stabsread_new_init.
  8321. * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
  8322. (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
  8323. * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
  8324. 2019-06-10 Tom de Vries <tdevries@suse.de>
  8325. PR symtab/16264
  8326. PR symtab/24517
  8327. * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
  8328. 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
  8329. * source.c (find_and_open_source): Also rewrite relative file
  8330. names.
  8331. 2019-04-26 Amos Bird <amosbird@gmail.com>
  8332. * annotate.c (annotate_thread_exited): Add "thread-exited"
  8333. annotation.
  8334. 2019-06-06 Tom Tromey <tromey@adacore.com>
  8335. * maint.h (class scoped_command_stats): Use
  8336. DISABLE_COPY_AND_ASSIGN.
  8337. <print_time>: New method.
  8338. * maint.c (scoped_command_stats, ~scoped_command_stats): Call
  8339. print_time.
  8340. (scoped_command_stats::print_time): New method.
  8341. 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
  8342. * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
  8343. instructions of lengths 6 or 8 bytes.
  8344. 2019-06-04 Pedro Alves <palves@redhat.com>
  8345. * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
  8346. * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
  8347. * breakpoint.c (condition_completer): Likewise.
  8348. * cli/cli-dump.c (scan_expression): Likewise.
  8349. * common/filestuff.c (mkdir_recursive): Likewise.
  8350. * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
  8351. * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
  8352. (gdb_abspath): Likewise.
  8353. * compile/compile-cplus-types.c
  8354. (compile_cplus_instance::decl_name): Likewise.
  8355. * completer.c (complete_explicit_location):
  8356. (signal_completer, reg_or_group_completer_1): Likewise.
  8357. * cp-support.c (cp_remove_params_if_any): Likewise.
  8358. * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
  8359. * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
  8360. * infcmd.c (strip_bg_char): Likewise.
  8361. * linespec.c (copy_token_string): Likewise.
  8362. * mi/mi-main.c (output_cores): Likewise.
  8363. * psymtab.c (psymtab_search_name):
  8364. * symfile.c (test_set_ext_lang_command): Likewise.
  8365. * target.c (target_fileio_read_stralloc): Likewise.
  8366. * tui/tui-regs.c (tui_reggroup_completer): Likewise.
  8367. * value.c (complete_internalvar): Likewise.
  8368. 2019-06-04 Christian Biesinger <cbiesinger@google.com>
  8369. Add objfile property to gdb.Type.
  8370. * NEWS: Mention Python API addition.
  8371. * python/py-type.c (typy_get_objfile): New method.
  8372. 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  8373. * NEWS: Mention the new set|show style [title|highlight].
  8374. Mention changes to "show style", "help" and "apropos".
  8375. 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  8376. * cli/cli-decode.h (apropos_cmd): Add verbose argument.
  8377. * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
  8378. instead of print_help_for_command.
  8379. (print_doc_of_command): New function.
  8380. (help_list): Add 'apropos -v word' suggestion.
  8381. (print_help_for_command): Style the command name using title style.
  8382. * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
  8383. (_initialize_cli_cmds): Describe -v in apropos_command help.
  8384. 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  8385. * cli/cli-style.h (cli_style_option): Add name in constructor,
  8386. add m_name class member, add constructor with intensity,
  8387. add name class function.
  8388. (cli_style_option::add_setshow_commands): Remove name argument.
  8389. (highlight_style, title_style): New styles.
  8390. * cli/cli-style.c (do_show): New function that shows a style
  8391. characteristic styling the style name with itself.
  8392. (set_style_name): New function.
  8393. (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
  8394. Update all callers according to the changes in cli/cli-style.h.
  8395. * utils.h (fputs_highlighted): New function.
  8396. * utils.c (fputs_highlighted): Likewise.
  8397. 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  8398. * NEWS: Mention new pipe command and new convenience variables.
  8399. 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  8400. * cli/cli-cmds.c (pipe_command): New function.
  8401. (_initialize_cli_cmds): Call add_com for pipe_command.
  8402. Define | as an alias for pipe.
  8403. (exit_status_set_internal_vars): New function.
  8404. (shell_escape): Call exit_status_set_internal_vars.
  8405. cli/cli-decode.c (find_command_name_length): Recognize | as
  8406. a single character command.
  8407. 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  8408. * gdbcmd.h (execute_command_to_ui_file): New declaration.
  8409. top.c (execute_command_to_ui_file): New function, mostly a copy
  8410. of execute_command_to_string.
  8411. (execute_command_to_string): Implement by calling
  8412. execute_command_to_ui_file.
  8413. 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  8414. * top.h (saved_command_line): Remove declaration.
  8415. * top.c (previous_saved_command_line, previous_repeat_arguments):
  8416. New variables.
  8417. (saved_command_line): Make static, define together with other
  8418. 'repeat variables'.
  8419. (dont_repeat): Clear repeat_arguments.
  8420. (repeat_previous, get_saved_command_line, save_command_line):
  8421. New functions.
  8422. (gdb_init): Initialize saved_command_line
  8423. and previous_saved_command_line.
  8424. * main.c (captured_main_1): Remove saved_command_line initialization.
  8425. * event-top.c (handle_line_of_input): Update to use
  8426. the new 'repeat' related functions instead of direct access to
  8427. saved_command_line.
  8428. * command.h (repeat_previous, get_saved_command_line,
  8429. save_command_line): New declarations.
  8430. (dont_repeat): Add comment.
  8431. 2019-05-30 Tom Tromey <tromey@adacore.com>
  8432. * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
  8433. Fix comment.
  8434. (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
  8435. 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
  8436. PR cli/24587
  8437. * completer.c (complete): Initialize variable word.
  8438. 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
  8439. Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
  8440. Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
  8441. * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
  8442. 'body' is NULL to the outter 'if', protecting the '!is_define'
  8443. situation as well.
  8444. 2019-05-29 Tom Tromey <tromey@adacore.com>
  8445. * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
  8446. (dwarf_unknown): New function.
  8447. (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
  8448. (dwarf_type_encoding_name): Use dwarf_unknown.
  8449. 2019-05-29 Tom Tromey <tromey@adacore.com>
  8450. PR c++/20020:
  8451. * cp-valprint.c (cp_print_value_fields): Call
  8452. cp_print_static_field inside "try".
  8453. 2019-05-29 Tom Tromey <tromey@adacore.com>
  8454. * inflow.c (struct terminal_info): Add default operator=.
  8455. * configure: Rebuild.
  8456. * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
  8457. -Wdeprecated-copy-dtor, -Wredundant-move.
  8458. 2019-05-29 Tom Tromey <tromey@adacore.com>
  8459. * NEWS: Add entry.
  8460. * infcmd.c (print_return_value_1): Handle finish_print
  8461. option.
  8462. (show_print_finish): New function.
  8463. (_initialize_infcmd): Add "set/show print finish" commands.
  8464. * valprint.c (user_print_options): Initialize new member.
  8465. * valprint.h (struct value_print_options) <finish_print>: New
  8466. member.
  8467. 2019-05-28 Tom Tromey <tromey@adacore.com>
  8468. * ada-lang.c (ada_remove_Xbn_suffix)
  8469. (find_old_style_renaming_symbol)
  8470. (parse_old_style_renaming): Remove.
  8471. (ada_find_renaming_symbol): Don't call
  8472. find_old_style_renaming_symbol.
  8473. (ada_is_renaming_symbol): Rename from
  8474. ada_find_renaming_symbol. Remove "block" parameter. Return
  8475. bool. Now static.
  8476. (ada_read_var_value): Update and simplify.
  8477. * ada-exp.y (write_var_or_type): Remove old code.
  8478. 2019-05-28 Alan Hayward <alan.hayward@arm.com>
  8479. PR gdb/25010
  8480. * event-top.c: Remove include comment.
  8481. * inflow.c (class scoped_ignore_sigttou): Move from here...
  8482. * inflow.h (class scoped_ignore_sigttou): ...to here.
  8483. * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
  8484. * top.c: Remove include comment.
  8485. 2019-05-27 Tom Tromey <tom@tromey.com>
  8486. * NEWS: Fix typo.
  8487. 2019-05-22 Tom Tromey <tromey@adacore.com>
  8488. * target.c (target_follow_exec): Constify parameter.
  8489. * target-delegates.c: Rebuild.
  8490. * remote.c (remote_target::follow_exec): Constify parameter.
  8491. * infrun.c (follow_exec): Constify parameter.
  8492. * target.h (struct target_ops) <follow_exec>: Constify parameter.
  8493. (target_follow_exec): Likewise.
  8494. 2019-05-22 Alan Hayward <alan.hayward@arm.com>
  8495. * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
  8496. DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
  8497. 2019-05-22 Alan Hayward <alan.hayward@arm.com>
  8498. * NEWS: Add debugredirect and testsuite sections.
  8499. 2019-05-22 Simon Cook <simon.cook@embecosm.com>
  8500. * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
  8501. target descriptions using exclusively floating point register name
  8502. aliases.
  8503. 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
  8504. PR gdb/18644:
  8505. * f-lang.c (build_fortran_types): Handle the case where
  8506. gdbarch_floatformat_for_type returns a nullptr.
  8507. 2019-05-21 Tom de Vries <tdevries@suse.de>
  8508. PR cli/24587
  8509. * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
  8510. 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
  8511. PR gdb/18644:
  8512. * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
  8513. 16-byte floats.
  8514. * i386-tdep.c (i386_floatformat_for_type): Use
  8515. floatformats_ia64_quad for the 16-byte floating point component
  8516. within a fortran 32-byte complex number.
  8517. 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
  8518. * dwarf2read.c (struct cu_partial_die_info): Add constructor,
  8519. delete default constructor.
  8520. (find_partial_die): Update to return const struct.
  8521. (partial_die_parent_scope): Move variable declaration into scope
  8522. of its use and change its type to auto.
  8523. (guess_partial_die_structure_name): Likewise.
  8524. (partial_die_info::fixup): Likewise.
  8525. 2019-05-17 Tom Tromey <tromey@adacore.com>
  8526. * source.c (find_and_open_source): Remove cast.
  8527. 2019-05-17 Tom Tromey <tromey@adacore.com>
  8528. * annotate.c (annotate_source): Make "filename" const.
  8529. * annotate.h (annotate_source): Use const.
  8530. 2019-05-17 Alan Hayward <alan.hayward@arm.com>
  8531. * disasm.c (set_disassembler_options): Send errors to stderr.
  8532. 2019-05-17 Alan Hayward <alan.hayward@arm.com>
  8533. * cli/cli-interp.c (struct saved_output_files): Add saved entry.
  8534. (cli_interp_base::set_logging): Check debug_redirect.
  8535. * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
  8536. * cli/cli-logging.c (debug_redirect): Add static variable.
  8537. (pop_output_files): Add default param.
  8538. (handle_redirections): Print debug setting.
  8539. (show_logging_command): Likewise.
  8540. (_initialize_cli_logging): Add debugredirect command.
  8541. * interps.c (current_interp_set_logging): Add debug_redirect
  8542. parameter.
  8543. * interps.h (set_logging): Add debug_redirect parameter.
  8544. (current_interp_set_logging): Likewise.
  8545. * mi/mi-common.h: Likewise.
  8546. * mi/mi-interp.c (mi_interp::set_logging): Likewise.
  8547. 2019-05-17 Alan Hayward <alan.hayward@arm.com>
  8548. Tom Tromey <tromey@adacore.com>
  8549. * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
  8550. directly.
  8551. * cli/cli-interp.h (make_logging_output): Remove declaration.
  8552. * cli/cli-logging.c (make_logging_output): Remove function.
  8553. * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
  8554. directly.
  8555. * ui-file.c (tee_file::tee_file): Remove bools.
  8556. (tee_file::~tee_file): Remove deletes.
  8557. * ui-file.h (tee_file): Remove bools.
  8558. 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
  8559. * mi/mi-cmds.h (mi_cmd_complete): New function.
  8560. * mi/mi-main.c (mi_cmd_complete): Likewise.
  8561. * mi/mi-cmds.c: Define new MI command -complete.
  8562. * NEWS: Mention new -complete command.
  8563. 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
  8564. * completer.h (complete): New function.
  8565. * completer.c (complete): Likewise.
  8566. * cli/cli-cmds.c: (complete_command): Update to use new complete()
  8567. function defined in completer.h.
  8568. 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
  8569. * MAINTAINERS (Write After Approval): Add myself.
  8570. 2019-05-17 Tom de Vries <tdevries@suse.de>
  8571. PR gdb/24094
  8572. * dwarf2read.c (struct cu_partial_die_info): New struct.
  8573. (find_partial_die): Return cu_partial_die_info.
  8574. (partial_die_parent_scope, guess_partial_die_structure_name)
  8575. (partial_die_info::fixup): Handle new return type of find_partial_die.
  8576. 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
  8577. PR breakpoints/24541
  8578. * stap-probe.c (stap_parse_register_operand): Make "regname" an
  8579. "std::string", simplifying the algorithm.
  8580. 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
  8581. * stap-probe.c (handle_stap_probe): Fix complaint formatting.
  8582. (stap_static_probe_ops::get_probes): Likewise.
  8583. 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
  8584. * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
  8585. '-')" and "else if".
  8586. (stap_parse_single_operand): Join checks for
  8587. "gdbarch_stap_parse_special_token_p" and
  8588. "gdbarch_stap_parse_special_token" in the same "if" statement.
  8589. Invert check when verifying for operation on register
  8590. displacement.
  8591. 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
  8592. * stap-probe.c (stap_get_opcode): Update comment.
  8593. (stap_get_expected_argument_type): Likewise.
  8594. (handle_stap_probe): Likewise.
  8595. 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
  8596. * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
  8597. return type to 'bool'. Adjust comment. Use 'bool' when
  8598. appropriate.
  8599. (i386_stap_parse_special_token_three_arg_disp): Likewise.
  8600. * stap-probe.c (stap_parse_argument_1): Likewise.
  8601. (stap_is_operator): Likewise.
  8602. (stap_is_generic_prefix): Likewise.
  8603. (stap_is_register_prefix): Likewise.
  8604. (stap_is_register_indirection_prefix): Likewise.
  8605. (stap_is_integer_prefix): Likewise.
  8606. (stap_generic_check_suffix): Likewise.
  8607. (stap_check_integer_suffix): Likewise.
  8608. (stap_check_register_suffix): Likewise.
  8609. (stap_check_register_indirection_suffix): Likewise.
  8610. (stap_parse_register_operand): Likewise.
  8611. (stap_parse_single_operand): Likewise.
  8612. (stap_parse_argument_1): Likewise.
  8613. (stap_probe::get_argument_count): Likewise.
  8614. (stap_is_operator): Likewise.
  8615. 2019-05-16 Tom Tromey <tromey@adacore.com>
  8616. * darwin-nat.c (thread_info_from_private_thread_info): Add struct
  8617. keyword to foreach.
  8618. 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
  8619. * linux-thread-db.c (try_thread_db_load_1): Change return type
  8620. to bool.
  8621. (try_thread_db_load): Likewise.
  8622. (try_thread_db_load_from_pdir_1): Likewise.
  8623. (try_thread_db_load_from_pdir): Likewise.
  8624. (try_thread_db_load_from_sdir): Likewise.
  8625. (try_thread_db_load_from_dir): Likewise.
  8626. (thread_db_load_search): Likewise.
  8627. (has_libpthread): Likewise.
  8628. (thread_db_load): Likewise.
  8629. 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
  8630. Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
  8631. * dwarf2read.c (parse_macro_definition): Check whether 'body' is
  8632. NULL, and complain/return if that's the case.
  8633. 2019-05-15 John Darrington <john@darrington.wattle.id.au>
  8634. * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
  8635. (advance, posn, abstract_read_memory): New functions.
  8636. [struct mem_read_abstraction]: New struct.
  8637. (s12z_frame_cache): Use opcodes API to interpret stack frame code.
  8638. 2019-05-14 Tom Tromey <tromey@adacore.com>
  8639. * ada-lang.c (coerce_unspec_val_to_type): Only set address when
  8640. value is not lval_memory.
  8641. 2019-05-14 Tom Tromey <tromey@adacore.com>
  8642. * solib.c (info_sharedlibrary_command): Style the file name.
  8643. 2019-05-14 Alan Hayward <alan.hayward@arm.com>
  8644. * aarch64-tdep.c (aarch64_vnh_type): Add half view.
  8645. (aarch64_vnv_type): Likewise.
  8646. * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
  8647. * common/tdesc.c: Likewise.
  8648. * common/tdesc.h (enum tdesc_type_kind): Likewise.
  8649. * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
  8650. * features/aarch64-fpu.xml: Add ieee half view.
  8651. * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
  8652. * gdbtypes.c (gdbtypes_post_init): Add builtin_half
  8653. * gdbtypes.h (struct builtin_type): Likewise.
  8654. (struct objfile_type): Likewise.
  8655. 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
  8656. * language.c (language_sniff_from_mangled_name): Fix "langauge"
  8657. typo.
  8658. * location.h (string_to_event_location): Likewise.
  8659. 2019-05-11 Joel Brobecker <brobecker@adacore.com>
  8660. GDB 8.3 released.
  8661. 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
  8662. * breakpoint.h (fix_multi_location_breakpoint_output_globally):
  8663. New variable declaration.
  8664. * breakpoint.c (fix_multi_location_breakpoint_output_globally):
  8665. New variable.
  8666. (print_one_breakpoint): Use ui_out::test_flags and new global
  8667. variable to compute use_fixed_output.
  8668. * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
  8669. Remove.
  8670. * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
  8671. (mi_multi_location_breakpoint_output_fixed): Remove.
  8672. (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
  8673. new variable.
  8674. * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
  8675. fix_multi_location_breakpoint_output flag if version >= 3.
  8676. * ui-out.h (enum ui_out_flag)
  8677. <fix_multi_location_breakpoint_output>: New enumerator.
  8678. 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
  8679. * contrib/cc-with-tweaks.sh: Validate dwz's work.
  8680. 2019-05-10 Tom Tromey <tromey@adacore.com>
  8681. * ada-lang.c (catch_ada_completer): New function.
  8682. (_initialize_ada_language): Use it.
  8683. 2019-05-10 Tom Tromey <tromey@adacore.com>
  8684. * thread.c (print_thread_info): Make "requested_threads" const.
  8685. * gdbthread.h (print_thread_info): Make "requested_threads"
  8686. const.
  8687. * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
  8688. * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
  8689. 2019-05-08 Tom Tromey <tom@tromey.com>
  8690. * gdbtypes.c (objfile_type_data): Change type.
  8691. (objfile_type, _initialize_gdbtypes): Update.
  8692. 2019-05-08 Tom Tromey <tom@tromey.com>
  8693. * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
  8694. (dwarf2_frame_find_fde, dwarf2_build_frame_info)
  8695. (_initialize_dwarf2_frame): Update.
  8696. 2019-05-08 Tom Tromey <tom@tromey.com>
  8697. * objc-lang.c (objc_objfile_data): Change type.
  8698. (find_methods): Update.
  8699. (_initialize_objc_lang): Remove.
  8700. 2019-05-08 Tom Tromey <tom@tromey.com>
  8701. * stabsread.c (rs6000_builtin_type_data): Change type.
  8702. (rs6000_builtin_type, _initialize_stabsread): Update.
  8703. 2019-05-08 Tom Tromey <tom@tromey.com>
  8704. * mips-tdep.c (mips_pdr_data): Remove.
  8705. (_initialize_mips_tdep): Update.
  8706. 2019-05-08 Tom Tromey <tom@tromey.com>
  8707. * hppa-tdep.c (hppa_objfile_priv_data): Change type.
  8708. (hppa_init_objfile_priv_data, read_unwind_info)
  8709. (find_unwind_entry, _initialize_hppa_tdep): Update.
  8710. 2019-05-08 Tom Tromey <tom@tromey.com>
  8711. * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
  8712. (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
  8713. on obstack.
  8714. (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
  8715. 2019-05-08 Tom Tromey <tom@tromey.com>
  8716. * mdebugread.c (basic_type_data): Change type.
  8717. (basic_type, _initialize_mdebugread): Update.
  8718. 2019-05-08 Tom Tromey <tom@tromey.com>
  8719. * common/gdb_unique_ptr.h (struct noop_deleter): New.
  8720. 2019-05-08 Tom Tromey <tom@tromey.com>
  8721. * nto-tdep.c (nto_inferior_data_reg): Change type.
  8722. (nto_inferior_data): Update.
  8723. (nto_inferior_data_cleanup, nto_new_inferior_data)
  8724. (_initialize_nto_tdep): Remove.
  8725. * nto-tdep.h (struct nto_inferior_data): Add initializers.
  8726. 2019-05-08 Tom Tromey <tom@tromey.com>
  8727. * ada-lang.c (struct ada_inferior_data): Add initializers.
  8728. (ada_inferior_data): Change type.
  8729. (ada_inferior_data_cleanup): Remove.
  8730. (get_ada_inferior_data, ada_inferior_exit)
  8731. (struct ada_pspace_data): Add initializers, destructor.
  8732. (ada_pspace_data_handle): Change type.
  8733. (get_ada_pspace_data): Update.
  8734. (ada_pspace_data_cleanup): Remove.
  8735. 2019-05-08 Tom Tromey <tom@tromey.com>
  8736. * coffread.c (struct coff_symfile_info): Add initializers.
  8737. (coff_objfile_data_key): Move lower. Change type.
  8738. (coff_symfile_init, coff_symfile_read, _initialize_coffread):
  8739. Update.
  8740. (coff_free_info): Remove.
  8741. 2019-05-08 Tom Tromey <tom@tromey.com>
  8742. * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
  8743. (fbsd_pspace_data_handle): Move lower. Change type.
  8744. (get_fbsd_pspace_data): Update.
  8745. (fbsd_pspace_data_cleanup): Remove.
  8746. (_initialize_fbsd_tdep): Update.
  8747. 2019-05-08 Tom Tromey <tom@tromey.com>
  8748. * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
  8749. (get_ada_tasks_pspace_data): Update.
  8750. (ada_tasks_pspace_data_cleanup): Remove.
  8751. (_initialize_tasks): Update.
  8752. (ada_tasks_inferior_data_handle): Change type.
  8753. (get_ada_tasks_inferior_data): Update.
  8754. (ada_tasks_inferior_data_cleanup): Remove.
  8755. (struct ada_tasks_pspace_data): Add initializers.
  8756. 2019-05-08 Tom Tromey <tom@tromey.com>
  8757. * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
  8758. * symfile-debug.c (debug_sym_get_probes): Change type.
  8759. * stap-probe.c (handle_stap_probe):
  8760. (stap_static_probe_ops::get_probes): Change type.
  8761. * probe.h (class static_probe_ops) <get_probes>: Change type.
  8762. * probe.c (class any_static_probe_ops) <get_probes>: Change type.
  8763. (parse_probes_in_pspace): Update.
  8764. (find_probes_in_objfile, find_probe_by_pc, collect_probes):
  8765. Update.
  8766. (any_static_probe_ops::get_probes): Change type.
  8767. * elfread.c (elfread_data): New typedef.
  8768. (probe_key): Change type.
  8769. (elf_get_probes): Likewise. Update.
  8770. (probe_key_free): Remove.
  8771. (_initialize_elfread): Update.
  8772. * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
  8773. Change type.
  8774. (dtrace_process_dof_probe, dtrace_process_dof)
  8775. (dtrace_static_probe_ops::get_probe): Change type.
  8776. 2019-05-08 Tom Tromey <tom@tromey.com>
  8777. * xcoffread.c (struct xcoff_symfile_info): Rename from
  8778. coff_symfile_info. Add initializers.
  8779. (xcoff_objfile_data_key): Move lower. Change type.
  8780. (XCOFF_DATA): Rewrite.
  8781. (xcoff_free_info): Remove.
  8782. (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
  8783. (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
  8784. (xcoff_initial_scan): Update.
  8785. 2019-05-08 Tom Tromey <tom@tromey.com>
  8786. * solib-svr4.c (struct svr4_info): Add initializers and
  8787. destructor.
  8788. <probes_table>: Now an htab_up.
  8789. (solib_svr4_pspace_data): Change type.
  8790. (free_probes_table): Simplify.
  8791. (~svr4_info): Rename from svr4_pspace_data_cleanup.
  8792. (get_svr4_info, probes_table_htab_remove_objfile_probes)
  8793. (probes_table_remove_objfile_probes, register_solib_event_probe)
  8794. (solib_event_probe_at, svr4_update_solib_event_breakpoint)
  8795. (_initialize_svr4_solib): Update.
  8796. 2019-05-08 Tom Tromey <tom@tromey.com>
  8797. * remote.c (remote_pspace_data): Change type.
  8798. (remote_pspace_data_cleanup): Remove.
  8799. (get_remote_exec_file, set_pspace_remote_exec_file)
  8800. (_initialize_remote): Update.
  8801. 2019-05-08 Tom Tromey <tom@tromey.com>
  8802. * breakpoint.c (breakpoint_objfile_key): Change type.
  8803. (get_breakpoint_objfile_data): Update.
  8804. (free_breakpoint_objfile_data): Remove.
  8805. (_initialize_breakpoint): Update.
  8806. 2019-05-08 Tom Tromey <tom@tromey.com>
  8807. * linux-tdep.c (struct linux_info): Add initializers.
  8808. (linux_inferior_data): Move. Change type.
  8809. (invalidate_linux_cache_inf): Update.
  8810. (linux_inferior_data_cleanup): Remove.
  8811. (get_linux_inferior_data, _initialize_linux_tdep): Update.
  8812. 2019-05-08 Tom Tromey <tom@tromey.com>
  8813. * auxv.c (auxv_inferior_data): Move. Change type.
  8814. (auxv_inferior_data_cleanup): Remove.
  8815. (invalidate_auxv_cache_inf): Rewrite.
  8816. (get_auxv_inferior_data, _initialize_auxv): Update.
  8817. 2019-05-08 Tom Tromey <tom@tromey.com>
  8818. * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
  8819. (symfile_debug_objfile_data_key): Change type.
  8820. (symfile_debug_installed, debug_qf_has_symbols)
  8821. (debug_qf_find_last_source_symtab)
  8822. (debug_qf_forget_cached_source_info)
  8823. (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
  8824. (debug_qf_print_stats, debug_qf_dump)
  8825. (debug_qf_expand_symtabs_for_function)
  8826. (debug_qf_expand_all_symtabs)
  8827. (debug_qf_expand_symtabs_with_fullname)
  8828. (debug_qf_map_matching_symbols)
  8829. (debug_qf_expand_symtabs_matching)
  8830. (debug_qf_find_pc_sect_compunit_symtab)
  8831. (debug_qf_map_symbol_filenames)
  8832. (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
  8833. (debug_sym_new_init, debug_sym_init, debug_sym_read)
  8834. (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
  8835. (debug_sym_read_linetable, debug_sym_relocate): Update.
  8836. (symfile_debug_free_objfile): Remove.
  8837. (install_symfile_debug_logging, _initialize_symfile_debug):
  8838. Update.
  8839. 2019-05-08 Tom Tromey <tom@tromey.com>
  8840. * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
  8841. allocate_on_obstack.
  8842. * dwarf2read.c (dwarf2_objfile_data_key): Change type.
  8843. (get_dwarf2_per_objfile): Update.
  8844. (set_dwarf2_per_objfile): Remove.
  8845. (dwarf2_has_info, dwarf2_get_section_info): Update.
  8846. (dwarf2_free_objfile): Remove.
  8847. (_initialize_dwarf2_read): Update.
  8848. 2019-05-08 Tom Tromey <tom@tromey.com>
  8849. * auto-load.c (struct auto_load_pspace_info): Add destructor and
  8850. initializers.
  8851. <unsupported_script_warning_printed,
  8852. script_not_found_warning_printed>: Now bool.
  8853. (auto_load_pspace_data): Change type.
  8854. (~auto_load_pspace_info): Rename from
  8855. auto_load_pspace_data_cleanup.
  8856. (get_auto_load_pspace_data, init_loaded_scripts_info)
  8857. (clear_section_scripts, maybe_print_unsupported_script_warning)
  8858. (maybe_print_script_not_found_warning, _initialize_auto_load):
  8859. Update.
  8860. 2019-05-08 Tom Tromey <tom@tromey.com>
  8861. * objfiles.c (objfile_pspace_info): Add destructor and
  8862. initializers.
  8863. (objfiles_pspace_data): Change type.
  8864. (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
  8865. (get_objfile_pspace_data): Update.
  8866. (objfiles_bfd_data): Change type.
  8867. (get_objfile_bfd_data): Update.
  8868. (objfile_bfd_data_free, _initialize_objfiles): Remove.
  8869. 2019-05-08 Tom Tromey <tom@tromey.com>
  8870. * break-catch-syscall.c (catch_syscall_inferior_data): Move.
  8871. Change type.
  8872. (get_catch_syscall_inferior_data): Update.
  8873. (catch_syscall_inferior_data_cleanup): Remove.
  8874. (_initialize_break_catch_syscall): Update.
  8875. 2019-05-08 Tom Tromey <tom@tromey.com>
  8876. * inflow.c (struct terminal_info): Add destructor and
  8877. initializers.
  8878. (inflow_inferior_data): Change type.
  8879. (~terminal_info): Rename from inflow_inferior_data_cleanup.
  8880. (get_inflow_inferior_data, inflow_inferior_exit)
  8881. (swap_terminal_info, _initialize_inflow): Update.
  8882. 2019-05-08 Tom Tromey <tom@tromey.com>
  8883. * target-dcache.c (target_dcache_cleanup): Remove.
  8884. (target_dcache_aspace_key): Change type.
  8885. (target_dcache_init_p, target_dcache_invalidate)
  8886. (target_dcache_get, target_dcache_get_or_init)
  8887. (_initialize_target_dcache): Update.
  8888. * dcache.h (struct dcache_deleter): New.
  8889. 2019-05-08 Tom Tromey <tom@tromey.com>
  8890. * symtab.c (struct symbol_cache): Add destructor and
  8891. initializers.
  8892. (symbol_cache_key): Move. Change type.
  8893. (make_symbol_cache, free_symbol_cache): Remove.
  8894. (get_symbol_cache): Update.
  8895. (symbol_cache_cleanup): Remove.
  8896. (ALL_PSPACES, symbol_cache_flush)
  8897. (maintenance_print_symbol_cache)
  8898. (maintenance_print_symbol_cache_statistics, _initialize_symtab):
  8899. Update.
  8900. 2019-05-08 Tom Tromey <tom@tromey.com>
  8901. * symtab.c (struct main_info): Add destructor and initializers.
  8902. (main_progspace_key): Move. Change type.
  8903. (get_main_info): Update.
  8904. (main_info_cleanup): Remove.
  8905. (_initialize_symtab): Update.
  8906. 2019-05-08 Tom Tromey <tom@tromey.com>
  8907. * registry.h (DECLARE_REGISTRY): Define the _key class.
  8908. 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
  8909. * NEWS: Merge two 'New commands' sections.
  8910. 2019-05-08 Joel Brobecker <brobecker@adacore.com>
  8911. * ada-valprint.c (ada_val_print_gnat_array): Remove language
  8912. parameter and use Ada language definition instead.
  8913. (ada_val_print_ptr): Remove unused language parameter.
  8914. (ada_val_print_num): Remove language parameter and use Ada language
  8915. definition instead.
  8916. (ada_val_print_enum, ada_val_print_flt): Remove unused language
  8917. parameter.
  8918. (ada_val_print_struct_union, ada_val_print_ref): Remove language
  8919. parameter and use Ada language definition instead.
  8920. (ada_val_print_1): Update all ada_val_print_xxx calls.
  8921. Remove language parameter.
  8922. (ada_val_print): Update ada_val_print_1 call.
  8923. 2019-05-08 Tom Tromey <tromey@adacore.com>
  8924. * remote.c (remote_hw_watchpoint_limit)
  8925. (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
  8926. Now static.
  8927. 2019-05-08 Tom Tromey <tromey@adacore.com>
  8928. * maint.c (_initialize_maint_cmds): Move initialization code to
  8929. remote.c.
  8930. (watchdog, show_watchdog): Move to remote.c.
  8931. * remote.c (watchdog, show_watchdog): Move from maint.c. Make
  8932. "watchdog" static.
  8933. (_initialize_remote): Move initialization code from maint.c.
  8934. * defs.h (watchdog): Don't declare.
  8935. 2019-05-08 Tom Tromey <tromey@adacore.com>
  8936. * tui/tui-interp.c: Include main.h.
  8937. * interps.c: Include main.h.
  8938. * main.h (interpreter_p): Declare.
  8939. * defs.h (interpreter_p): Don't declare.
  8940. 2019-05-08 Tom Tromey <tromey@adacore.com>
  8941. * dwarf2loc.c: Include dwarf2read.h.
  8942. * defs.h (read_unsigned_leb128): Don't declare.
  8943. * dwarf2read.h (read_unsigned_leb128): Declare.
  8944. 2019-05-08 Tom Tromey <tromey@adacore.com>
  8945. * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
  8946. method.
  8947. 2019-05-08 Tom Tromey <tromey@adacore.com>
  8948. * utils.c (fputs_maybe_filtered): Reset style after paging, even
  8949. when no wrap column is set.
  8950. 2019-05-08 Tom Tromey <tromey@adacore.com>
  8951. * c-lang.c (c_get_string): Handle non-C-style arrays.
  8952. 2019-05-08 Tom Tromey <tromey@adacore.com>
  8953. * typeprint.c (print_offset_data::update): Print the bit offset,
  8954. not the number of bits remaining.
  8955. 2019-05-08 Tom Tromey <tromey@adacore.com>
  8956. * typeprint.c (print_offset_data::maybe_print_hole): Add extra
  8957. padding at end of comment.
  8958. 2019-05-08 Tom Tromey <tromey@adacore.com>
  8959. * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
  8960. Compare main types.
  8961. 2019-05-06 Tom Tromey <tom@tromey.com>
  8962. * common/scoped_mmap.c: Include common-defs.h.
  8963. * common/scoped_mmap.h: Don't include config.h.
  8964. 2019-05-04 Tom Tromey <tom@tromey.com>
  8965. * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
  8966. (struct aarch64_call_info): Add initializers.
  8967. <si>: Now a std::vector.
  8968. (pass_on_stack, aarch64_push_dummy_call): Update.
  8969. 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
  8970. Tom Tromey <tom@tromey.com>
  8971. * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
  8972. (ppc_threads): Now a std::vector. Now static.
  8973. (hwdebug_find_thread_points_by_tid)
  8974. (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
  8975. Update.
  8976. 2019-05-04 Tom Tromey <tom@tromey.com>
  8977. * arc-tdep.c (arc_tdesc_init): Return bool.
  8978. 2019-05-04 Tom Tromey <tom@tromey.com>
  8979. * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
  8980. Use gdb_assert_not_reached.
  8981. 2019-05-04 Tom Tromey <tom@tromey.com>
  8982. * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
  8983. "false".
  8984. 2019-05-04 Tom Tromey <tom@tromey.com>
  8985. * arc-tdep.c (arc_tdesc_init): Use bool.
  8986. 2019-05-04 Tom Tromey <tom@tromey.com>
  8987. * stack.c (select_frame_for_mi): Use "false", not "FALSE".
  8988. 2019-05-04 Tom Tromey <tom@tromey.com>
  8989. * cli/cli-cmds.c (valid_command_p): Return bool.
  8990. 2019-05-04 Tom Tromey <tom@tromey.com>
  8991. * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
  8992. * command.h (valid_user_defined_cmd_name_p): Channge return type.
  8993. 2019-05-04 Raul Tambre <raul@tambre.ee>
  8994. * python/lib/gdb/prompt.py (_ExtendedPrompt)
  8995. <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
  8996. operator for comparison.
  8997. 2019-05-04 Tom Tromey <tom@tromey.com>
  8998. * psymtab.c (psymbol_name_matches, match_partial_symbol)
  8999. (lookup_partial_symbol, print_partial_symbols)
  9000. (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
  9001. (psymbol_compare): Update.
  9002. (add_psymbol_to_bcache): Clear the entire psymbol.
  9003. (maintenance_check_psymtabs): Update.
  9004. * psympriv.h (struct partial_symbol): Don't derive from
  9005. general_symbol_info.
  9006. <obj_section, unrelocated_address, address,
  9007. set_unrelocated_address>: Update.
  9008. <ginfo>: New member.
  9009. * dwarf-index-write.c (write_psymbols, debug_names::insert)
  9010. (debug_names::write_psymbols): Update.
  9011. 2019-05-04 Tom de Vries <tdevries@suse.de>
  9012. * contrib/cc-with-tweaks.sh: Support -n arg.
  9013. 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  9014. * corelow.c (core_target::detach): Ensure frame cache and
  9015. register caches are cleared.
  9016. inferior.c (exit_inferior_1): Likewise.
  9017. 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
  9018. Tom Tromey <tom@tromey.com>
  9019. * dictionary.c (collate_pending_symbols_by_language): Remove
  9020. "struct" from foreach.
  9021. * symtab.c (lookup_global_symbol_from_objfile)
  9022. (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
  9023. foreach.
  9024. * ser-tcp.c (net_open): Remove "struct" from foreach.
  9025. * objfiles.c (objfile_relocate, objfile_rebase)
  9026. (objfile_has_symbols): Remove "struct" from foreach.
  9027. * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
  9028. from foreach.
  9029. * dwarf2read.c (handle_struct_member_die): Remove "struct" from
  9030. foreach.
  9031. * darwin-nat.c (thread_info_from_private_thread_info): Remove
  9032. "struct" from foreach.
  9033. * ada-lang.c (create_excep_cond_exprs)
  9034. (ada_exception_catchpoint_cond_string): Remove "struct" from
  9035. foreach.
  9036. 2019-05-03 Tom Tromey <tromey@adacore.com>
  9037. * ada-exp.y (convert_char_literal): Check suffix of each
  9038. enumerator.
  9039. 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
  9040. PR ada/21406:
  9041. * ada-exp.y (yywrap): Don't define.
  9042. * ada-lex.l (%option): Add noyywrap
  9043. (yywrap): Remove.
  9044. 2019-05-03 Eli Zaretskii <eliz@gnu.org>
  9045. * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
  9046. _WIN32_WINNT to the XP level, unless already defined to a higher
  9047. level.
  9048. * unittests/parse-connection-spec-selftests.c:
  9049. * ser-tcp.c:
  9050. * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
  9051. override.
  9052. * symfile.c (find_separate_debug_file): Remove colon from the
  9053. drive spec of DOS/Windows file names of the target, so that the
  9054. file name produced from DEBUGDIR and the target's directory will
  9055. be valid on DOS/Windows systems.
  9056. 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
  9057. * rust-lang.c (val_print_struct): Handle printing structures
  9058. containing strings.
  9059. 2019-05-02 Tom Tromey <tromey@adacore.com>
  9060. * valarith.c (_initialize_valarith): Remove.
  9061. 2019-05-01 Tom Tromey <tromey@adacore.com>
  9062. * ada-lang.c (ada_value_primitive_field): Treat more fields as
  9063. bitfields.
  9064. 2019-05-01 Tom Tromey <tromey@adacore.com>
  9065. * ada-lang.c (ada_value_assign): Correctly compute starting offset
  9066. for big-endian copies.
  9067. 2019-04-30 Ali Tamur <tamur@google.com>
  9068. * dwarf2read.c (read_3_bytes): New declaration.
  9069. (read_attribute_value): Added DW_FORM_strx1-4 cases.
  9070. (read_3_bytes): New function.
  9071. 2019-04-30 Joel Brobecker <brobecker@adacore.com>
  9072. * windows-nat.c (main_thread_id): Delete.
  9073. (handle_output_debug_string): Replace main_thread_id by
  9074. current_event.dwThreadId.
  9075. (fake_create_process): Likewise.
  9076. (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
  9077. Do not set main_thread_id.
  9078. <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
  9079. current_event.dwThreadId.
  9080. <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
  9081. 2019-04-30 Joel Brobecker <brobecker@adacore.com>
  9082. * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
  9083. Use current_event.dwThreadId instead of main_thread_id.
  9084. 2019-04-30 Tom Tromey <tromey@adacore.com>
  9085. * ada-lang.c (ada_lookup_simple_minsyms): New function.
  9086. (create_excep_cond_exprs): Iterate over program spaces.
  9087. (ada_exception_catchpoint_cond_string): Examine all minimal
  9088. symbols for exception types.
  9089. 2019-04-30 Tom Tromey <tromey@adacore.com>
  9090. PR c++/24470:
  9091. * dwarf2read.c (process_structure_scope): Handle case where type
  9092. has template parameters but no symbol was created.
  9093. 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
  9094. Chris January <chris.january@arm.com>
  9095. * f-typeprint.c (f_type_print_base): Print 'allocatable' type
  9096. qualifier.
  9097. * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
  9098. 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
  9099. * f-typeprint.c (f_print_type): Update rules for printing
  9100. whitespace.
  9101. (f_type_print_varspec_suffix): Likewise.
  9102. 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
  9103. Chris January <chris.january@arm.com>
  9104. * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
  9105. function arguments.
  9106. 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
  9107. * f-lang.c (build_fortran_types): Change name of void type to
  9108. lower case.
  9109. * f-typeprint.c (f_type_print_base): Print the name of the void
  9110. type, rather than a fixed string.
  9111. * f-valprint.c (f_decorations): Use lower case void string.
  9112. 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
  9113. Chris January <chris.january@arm.com>
  9114. * dwarf2read.c (dwarf2_init_complex_target_type): Use different
  9115. types for Fortran.
  9116. 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
  9117. Chris January <chris.january@arm.com>
  9118. David Lecomber <david.lecomber@arm.com>
  9119. * f-exp.y (BINOP_INTRINSIC): New token.
  9120. (exp): New parser rule handling BINOP_INTRINSIC.
  9121. (f77_keywords): Add new builtin procedures.
  9122. * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
  9123. UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
  9124. (operator_length_f): Handle UNOP_FORTRAN_CEILING,
  9125. UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
  9126. (print_unop_subexp_f): New function.
  9127. (print_binop_subexp_f): New function.
  9128. (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
  9129. BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
  9130. (dump_subexp_body_f): Likewise.
  9131. (operator_check_f): Likewise.
  9132. * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
  9133. BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
  9134. 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
  9135. * expprint.c (dump_subexp_body_standard): Remove use of
  9136. UNOP_KIND.
  9137. * expression.h (exp_opcode): Include 'fortran-operator.def'.
  9138. * f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
  9139. * f-lang.c (evaluate_subexp_f): Likewise.
  9140. (operator_length_f): New fuction.
  9141. (print_subexp_f): New function.
  9142. (op_name_f): New function.
  9143. (dump_subexp_body_f): New function.
  9144. (operator_check_f): New function.
  9145. (exp_descriptor_f): Replace standard expression handling functions
  9146. with new functions.
  9147. * fortran-operator.def: New file.
  9148. * parse.c (operator_length_standard): Remove use of UNOP_KIND.
  9149. * std-operator.def: Remove UNOP_KIND.
  9150. 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
  9151. * std-operator.def: Remove unbalanced, stray double quote
  9152. character.
  9153. 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
  9154. Chris January <chris.january@arm.com>
  9155. Daniel Everett <daniel.everett@arm.com>
  9156. Nick Forrington <nick.forrington@arm.com>
  9157. Richard Bunt <richard.bunt@arm.com>
  9158. * cp-valprint.c (cp_print_value_fields): Allow an additional level
  9159. of depth when printing anonymous structs or unions.
  9160. * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
  9161. Don't print either the top-level value, or the children if the
  9162. max-depth is exceeded.
  9163. (ppscm_print_children): When printing the key of a map, allow one
  9164. extra level of depth.
  9165. * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
  9166. print either the top-level value, or the children if the max-depth
  9167. is exceeded.
  9168. (print_children): When printing the key of a map, allow one extra
  9169. level of depth.
  9170. * python/py-value.c (valpy_format_string): Add max_depth keyword.
  9171. * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
  9172. (user_print_options): Initialise max_depth field.
  9173. (val_print_scalar_or_string_type_p): New function.
  9174. (val_print): Check to see if the max depth has been reached.
  9175. (val_print_check_max_depth): Define new function.
  9176. (show_print_max_depth): New function.
  9177. (_initialize_valprint): Add 'print max-depth' option.
  9178. * valprint.h (struct value_print_options) <max_depth>: New field.
  9179. (val_print_check_max_depth): Declare new function.
  9180. * NEWS: Document new feature.
  9181. 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
  9182. * ada-lang.c (ada_language_defn): Initialise new field.
  9183. * c-lang.c (c_is_string_type_p): New function.
  9184. (c_language_defn): Initialise new field.
  9185. (cplus_language_defn): Initialise new field.
  9186. (asm_language_defn): Initialise new field.
  9187. (minimal_language_defn): Initialise new field.
  9188. * c-lang.h (c_is_string_type_p): Declare new function.
  9189. * d-lang.c (d_language_defn): Initialise new field.
  9190. * f-lang.c (f_is_string_type_p): New function.
  9191. (f_language_defn): Initialise new field.
  9192. * go-lang.c (go_is_string_type_p): New function.
  9193. (go_language_defn): Initialise new field.
  9194. * language.c (default_is_string_type_p): New function.
  9195. (unknown_language_defn): Initialise new field.
  9196. (auto_language_defn): Initialise new field.
  9197. * language.h (struct language_defn) <la_is_string_type_p>: New
  9198. member variable.
  9199. (default_is_string_type_p): Declare new function.
  9200. * m2-lang.c (m2_language_defn): Initialise new field.
  9201. * objc-lang.c (objc_language_defn): Initialise new field.
  9202. * opencl-lang.c (opencl_language_defn): Initialise new field.
  9203. * p-lang.c (pascal_is_string_type_p): New function.
  9204. (pascal_language_defn): Initialise new field.
  9205. * rust-lang.c (rust_is_string_type_p): New function.
  9206. (rust_language_defn): Initialise new field.
  9207. 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
  9208. * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
  9209. New field.
  9210. * ada-lang.c (ada_language_defn): Initialise new field.
  9211. * c-lang.c (c_language_defn): Likewise.
  9212. (cplus_language_defn): Likewise.
  9213. (asm_language_defn): Likewise.
  9214. (minimal_language_defn): Likewise.
  9215. * d-lang.c (d_language_defn): Likewise.
  9216. * f-lang.c (f_language_defn): Likewise.
  9217. * go-lang.c (go_language_defn): Likewise.
  9218. * language.c (unknown_language_defn): Likewise.
  9219. (auto_language_defn): Likewise.
  9220. * m2-lang.c (m2_language_defn): Likewise.
  9221. * objc-lang.c (objc_language_defn): Likewise.
  9222. * opencl-lang.c (opencl_language_defn): Likewise.
  9223. * p-lang.c (pascal_language_defn): Likewise.
  9224. * rust-lang.c (rust_language_defn): Likewise.
  9225. 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
  9226. * ada-lang.c (ada_is_character_type): Change return type to bool.
  9227. (ada_is_string_type): Likewise.
  9228. * ada-lang.h (ada_is_character_type): Update declaration
  9229. (ada_is_string_type): Likewise.
  9230. 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  9231. Support style in 'frame|thread apply'
  9232. * gdbcmd.h (execute_command_to_string): New term_out parameter.
  9233. * record.c (record_start, record_stop): Update callers of
  9234. execute_command_to_string with false.
  9235. * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
  9236. * ui-file.h (class ui_file): New term_out and can_emit_style_escape
  9237. methods.
  9238. (class string_file): New constructor with term_out parameter.
  9239. Override methods term_out and can_emit_style_escape. New member
  9240. term_out.
  9241. (class stdio_file): Override can_emit_style_escape.
  9242. (class tee_file): Override term_out and can_emit_style_escape.
  9243. * utils.h (can_emit_style_escape): Remove.
  9244. * utils.c (can_emit_style_escape): Likewise.
  9245. Update all callers of can_emit_style_escape (SOMESTREAM) to
  9246. SOMESTREAM->can_emit_style_escape.
  9247. * source-cache.c (source_cache::get_source_lines): Likewise.
  9248. * stack.c (frame_apply_command_count): Call execute_command_to_string
  9249. passing the term_out characteristic of the current gdb_stdout.
  9250. * thread.c (thr_try_catch_cmd): Likewise.
  9251. * top.c (execute_command_to_string): pass term_out parameter
  9252. to construct the string_file for the command output.
  9253. * ui-file.c (term_cli_styling): New function (most code moved
  9254. from utils.c can_emit_style_escape).
  9255. (string_file::string_file, string_file::can_emit_style_escape,
  9256. stdio_file::can_emit_style_escape, tee_file::term_out,
  9257. tee_file::can_emit_style_escape): New functions.
  9258. 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  9259. * NEWS: Mention the new set|show may-call-functions.
  9260. * infcall.c (may_call_functions_p): New variable.
  9261. (show_may_call_functions_p): New function.
  9262. (call_function_by_hand_dummy): Throws an error if not
  9263. may-call-functions.
  9264. (_initialize_infcall): Call add_setshow_boolean_cmd for
  9265. may-call-functions.
  9266. 2019-04-25 Keith Seitz <keiths@redhat.com>
  9267. PR c++/24367
  9268. * cp-support.c (inspect_type): Don't attempt substitutions
  9269. of symbol with the same name.
  9270. 2019-04-25 Tom Tromey <tromey@adacore.com>
  9271. PR gdb/24475:
  9272. * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
  9273. static.
  9274. 2019-04-25 Tom Tromey <tromey@adacore.com>
  9275. * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
  9276. rvalue reference.
  9277. (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
  9278. (gdb_xml_parser::parse): Use std::move.
  9279. * python/python-internal.h (gdbpy_convert_exception): Take a const
  9280. reference.
  9281. * python/py-value.c (valpy_getitem, valpy_nonzero): Use
  9282. std::move.
  9283. * python/py-utils.c (gdbpy_convert_exception): Take a const
  9284. reference.
  9285. * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
  9286. Use std::move.
  9287. * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
  9288. Use std::move.
  9289. * mi/mi-main.c (mi_print_exception): Take a const reference.
  9290. * main.c (handle_command_errors): Take a const reference.
  9291. * linespec.c (parse_linespec): Use std::move.
  9292. * infcall.c (run_inferior_call): Use std::move.
  9293. (call_function_by_hand_dummy): Use std::move.
  9294. * exec.c (try_open_exec_file): Use std::move.
  9295. * exceptions.h (exception_print, exception_fprintf)
  9296. (exception_print_same): Update.
  9297. * exceptions.c (print_exception, exception_print)
  9298. (exception_fprintf, exception_print_same): Change parameters to
  9299. const reference.
  9300. * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
  9301. * common/new-op.c: Use std::move.
  9302. * common/common-exceptions.h (struct gdb_exception): Add move
  9303. constructor.
  9304. (struct gdb_exception_error, struct gdb_exception_quit, struct
  9305. gdb_quit_bad_alloc): Change constructor to move constructor.
  9306. (throw_exception): Change parameter to rvalue reference.
  9307. * common/common-exceptions.c (throw_exception): Take rvalue
  9308. reference.
  9309. * cli/cli-interp.c (safe_execute_command): Use std::move.
  9310. * breakpoint.c (insert_bp_location, location_to_sals): Use
  9311. std::move.
  9312. 2019-04-25 Tom Tromey <tromey@adacore.com>
  9313. * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
  9314. (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
  9315. * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
  9316. guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
  9317. guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
  9318. guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
  9319. guile/scm-value.c: Use unpack.
  9320. * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
  9321. gdbscm_gdb_exception.
  9322. (gdbscm_throw_gdb_exception): Likewise.
  9323. (struct gdbscm_gdb_exception): New.
  9324. (unpack): New function.
  9325. (gdbscm_wrap): Use unpack.
  9326. 2019-04-25 Tom Tromey <tromey@adacore.com>
  9327. * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
  9328. (gdb_rl_callback_handler): Use std::move.
  9329. * common/common-exceptions.h (struct gdb_exception): Add move
  9330. assignment operator.
  9331. (throw_exception_sjlj): Change "exception" to const reference.
  9332. * common/common-exceptions.c (exceptions_state_mc_catch): Update.
  9333. (throw_exception_sjlj): Change "exception" to const reference.
  9334. 2019-04-25 Tom Tromey <tromey@adacore.com>
  9335. * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
  9336. * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
  9337. * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
  9338. Update.
  9339. * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
  9340. Update.
  9341. * mi/mi-interp.c (mi_interp::exec): Update.
  9342. * linespec.c (parse_linespec): Update.
  9343. * infcall.c (run_inferior_call): Update.
  9344. * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
  9345. * guile/scm-symbol.c (gdbscm_lookup_symbol)
  9346. (gdbscm_lookup_global_symbol): Update.
  9347. * guile/scm-param.c (gdbscm_parameter_value): Update.
  9348. * guile/scm-frame.c (gdbscm_frame_read_register)
  9349. (gdbscm_frame_read_var): Update.
  9350. * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
  9351. * exec.c (try_open_exec_file): Update.
  9352. * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
  9353. (gdb_rl_callback_handler): Update.
  9354. * common/common-exceptions.h (exception_none): Don't declare.
  9355. * common/common-exceptions.c (exception_none): Don't define.
  9356. (struct catcher) <exception>: Update.
  9357. * cli/cli-interp.c (safe_execute_command): Update.
  9358. * breakpoint.c (insert_bp_location, location_to_sals): Update.
  9359. 2019-04-25 Ali Tamur <tamur@google.com>
  9360. * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
  9361. (read_attribute_value): Likewise.
  9362. (dwarf2_read_addr_index): Update comment.
  9363. (read_str_index): Add DW_FORM_strx.
  9364. (dwarf2_string_attr): Likewise.
  9365. (dwarf2_const_value_attr): Likewise.
  9366. (dump_die_shallow): Likewise.
  9367. (dwarf2_fetch_constant_bytes): Likewise.
  9368. (skip_form_bytes): Likewise.
  9369. 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
  9370. PR corefiles/11608
  9371. PR corefiles/18187
  9372. * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
  9373. OFFSET. Verify if current mapping contains an ELF header.
  9374. (linux_find_memory_regions_full): Adjust call to
  9375. dump_mapping_p.
  9376. 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
  9377. Kang Li <kanglictf@gmail.com>
  9378. PR gdb/21600
  9379. * dwarf2-frame.c (read_initial_length): Be consistent about using
  9380. unsigned representation of length.
  9381. (decode_frame_entry_1): Likewise. Check for wraparound of
  9382. end pointer as well as buffer overflow.
  9383. 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
  9384. * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
  9385. "vq".
  9386. 2019-04-24 Tom Tromey <tromey@adacore.com>
  9387. * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
  9388. 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
  9389. * s12z-tdep.c (s12z_unwind_pc): Delete.
  9390. (s12z_unwind_sp): Delete.
  9391. (s12z_gdbarch_init): Don't register deleted functions with
  9392. gdbarch.
  9393. 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
  9394. * rl78-tdep.c (rl78_unwind_sp): Delete.
  9395. (rl78_gdbarch_init): Don't register deleted function with gdbarch.
  9396. 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
  9397. * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
  9398. (xstormy16_unwind_pc): Delete.
  9399. (xstormy16_dummy_id): Delete.
  9400. (xstormy16_gdbarch_init): Don't register deleted functions with
  9401. gdbarch.
  9402. 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
  9403. * vax-tdep.c (vax_unwind_pc): Delete.
  9404. (vax_gdbarch_init): Don't register deleted function with gdbarch.
  9405. 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
  9406. * v850-tdep.c (v850_unwind_sp): Delete.
  9407. (v850_unwind_pc): Delete.
  9408. (v850_dummy_id): Delete.
  9409. (v850_gdbarch_init): Don't register deleted functions with
  9410. gdbarch.
  9411. 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
  9412. * tilegx-tdep.c (tilegx_unwind_sp): Delete.
  9413. (tilegx_unwind_pc): Delete.
  9414. (tilegx_unwind_dummy_id): Delete.
  9415. (tilegx_gdbarch_init): Don't register deleted functions with
  9416. gdbarch.
  9417. 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
  9418. * tic6x-tdep.c (tic6x_unwind_sp): Delete.
  9419. (tic6x_dummy_id): Delete.
  9420. (tic6x_gdbarch_init): Don't register deleted functions with
  9421. gdbarch.
  9422. 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
  9423. * sparc-tdep.c (sparc_unwind_pc): Delete.
  9424. (sparc32_gdbarch_init): Don't register deleted function with
  9425. gdbarch.
  9426. 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
  9427. * sh-tdep.c (sh_unwind_sp): Delete.
  9428. (sh_unwind_pc): Delete.
  9429. (sh_dummy_id): Delete.
  9430. (sh_gdbarch_init): Don't register deleted functions with
  9431. gdbarch.
  9432. 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
  9433. * score-tdep.c (score_unwind_sp): Delete.
  9434. (score_unwind_pc): Delete.
  9435. (score_dummy_id): Delete.
  9436. (score_gdbarch_init): Don't register deleted functions with
  9437. gdbarch.
  9438. 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
  9439. * rx-tdep.c (rx_unwind_pc): Delete.
  9440. (rx_unwind_sp): Delete.
  9441. (rx_dummy_id): Delete.
  9442. (rx_gdbarch_init): Don't register deleted functions with
  9443. gdbarch. Update comment.
  9444. 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
  9445. * rs6000-tdep.c (rs6000_unwind_pc): Delete.
  9446. (rs6000_dummy_id): Delete.
  9447. (rs6000_gdbarch_init): Don't register deleted functions with
  9448. gdbarch.
  9449. 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
  9450. * or1k-tdep.c (or1k_dummy_id): Delete.
  9451. (or1k_gdbarch_init): Don't register deleted function with gdbarch.
  9452. 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
  9453. * nios2-tdep.c (nios2_dummy_id): Delete.
  9454. (nios2_unwind_sp): Delete.
  9455. (nios2_gdbarch_init): Don't register deleted functions with
  9456. gdbarch.
  9457. 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
  9458. * nds32-tdep.c (nds32_dummy_id): Delete.
  9459. (nds32_unwind_pc): Delete.
  9460. (nds32_unwind_sp): Delete.
  9461. (nds32_gdbarch_init): Don't register deleted functions with
  9462. gdbarch.
  9463. 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
  9464. * msp430-tdep.c (msp430_unwind_pc): Delete.
  9465. (msp430_unwind_sp): Delete.
  9466. (msp430_dummy_id): Delete.
  9467. (msp430_gdbarch_init): Don't register deleted functions with
  9468. gdbarch.
  9469. 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
  9470. * moxie-tdep.c (moxie_unwind_sp): Delete.
  9471. (moxie_unwind_pc): Delete.
  9472. (moxie_dummy_id): Delete.
  9473. (moxie_gdbarch_init): Don't register deleted functions with
  9474. gdbarch.
  9475. 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
  9476. * mn10300-tdep.c (mn10300_dummy_id): Delete.
  9477. (mn10300_unwind_pc): Delete.
  9478. (mn10300_unwind_sp): Delete.
  9479. (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
  9480. mn10300_unwind_sp.
  9481. (mn10300_frame_unwind_init): Don't register deleted functions with
  9482. gdbarch.
  9483. 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
  9484. * mep-tdep.c (mep_unwind_pc): Delete.
  9485. (mep_unwind_sp): Delete.
  9486. (mep_dummy_id): Delete.
  9487. (mep_gdbarch_init): Don't register deleted functions with
  9488. gdbarch.
  9489. 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
  9490. * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
  9491. (m68hc11_unwind_sp): Delete.
  9492. (m68hc11_gdbarch_init): Don't register deleted functions with
  9493. gdbarch.
  9494. 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
  9495. * m32r-tdep.c (m32r_unwind_sp): Delete.
  9496. (m32r_unwind_pc): Delete.
  9497. (m32r_dummy_id): Delete.
  9498. (m32r_gdbarch_init): Don't register deleted functions with
  9499. gdbarch.
  9500. 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
  9501. * m32c-tdep.c (m32c_unwind_pc): Delete.
  9502. (m32c_unwind_sp): Delete.
  9503. (m32c_dummy_id): Delete.
  9504. (m32c_gdbarch_init): Don't register deleted functions with
  9505. gdbarch.
  9506. 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
  9507. * lm32-tdep.c (lm32_unwind_sp): Delete.
  9508. (lm32_unwind_pc): Delete.
  9509. (lm32_dummy_id): Delete.
  9510. (lm32_gdbarch_init): Don't register deleted functions with
  9511. gdbarch.
  9512. 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
  9513. * iq2000-tdep.c (iq2000_unwind_sp): Delete.
  9514. (iq2000_unwind_pc): Delete.
  9515. (iq2000_dummy_id): Delete.
  9516. (iq2000_gdbarch_init): Don't register deleted functions with
  9517. gdbarch.
  9518. 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
  9519. * nds32-tdep.c (nds32_type_align): Delete.
  9520. (nds32_push_dummy_call): Use type_align instead.
  9521. 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
  9522. * arm-tdep.c (arm_type_align): Only handle vector override case.
  9523. (arm_push_dummy_call): Use type_align.
  9524. (arm_gdbarch_init): Register arm_type_align gdbarch function.
  9525. 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
  9526. * aarch64-tdep.c (aarch64_type_align): Only handle vector override
  9527. case.
  9528. (pass_on_stack): Use type_align.
  9529. (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
  9530. function.
  9531. 2019-04-23 Tom Tromey <tromey@adacore.com>
  9532. * dwarf2read.c (line_header::file_name_at): Remove unused
  9533. overload.
  9534. 2019-04-23 Tom de Vries <tdevries@suse.de>
  9535. PR gdb/24438
  9536. * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
  9537. invocation.
  9538. 2019-03-27 Ali Tamur <tamur@google.com>
  9539. * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
  9540. * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
  9541. * dwarf2expr.h(dwarf_expr_context::offset): Update comment
  9542. (dwarf_expr_context::get_addr_index): Likewise
  9543. * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
  9544. (symbol_needs_eval_context::get_addr_index): Likewise
  9545. (disassemble_dwarf_expression): Add DW_OP_addrx
  9546. * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
  9547. (read_cutu_die_from_dwo): Update comment
  9548. (skip_one_die): Add DW_FORM_addrx
  9549. (read_attribute_value): Likewise
  9550. (var_decode_location): Add DW_OP_addrx
  9551. (dwarf2_const_value_attr): Add DW_FORM_addrx
  9552. (dump_die_shallow): Likewise
  9553. (dwarf2_fetch_constant_bytes): Likewise
  9554. (decode_locdesc): Add DW_OP_addrx
  9555. (skip_form_bytes): Add DW_FORM_addrx
  9556. 2019-04-22 Ali Tamur <tamur@google.com>
  9557. * MAINTAINERS (Write After Approval): Add self.
  9558. 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
  9559. * solib-svr4.c (get_svr4_info): Add pspace parameter.
  9560. (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
  9561. (open_symbol_file_object): Likewise.
  9562. (svr4_default_sos): Add info parameter.
  9563. (svr4_read_so_list): Likewise.
  9564. (svr4_current_sos_direct): Adjust functions calls to pass down
  9565. info.
  9566. (svr4_current_sos_1): Add info parameter.
  9567. (svr4_current_sos): Call get_svr4_info, pass info down to
  9568. svr4_current_sos_1.
  9569. (svr4_fetch_objfile_link_map): Pass objfile->pspace to
  9570. get_svr4_info.
  9571. (svr4_in_dynsym_resolve_code): Pass current_program_space to
  9572. get_svr4_info.
  9573. (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
  9574. to get_svr4_info.
  9575. (probes_table_remove_objfile_probes): Likewise.
  9576. (register_solib_event_probe): Add info parameter.
  9577. (solist_update_incremental): Pass info parameter down to
  9578. svr4_read_so_list.
  9579. (disable_probes_interface): Add info parameter.
  9580. (svr4_handle_solib_event): Pass current_program_space to
  9581. get_svr4_info. Adjust disable_probes_interface cleanup.
  9582. (svr4_create_probe_breakpoints): Add info parameter, pass it
  9583. down to register_solib_event_probe.
  9584. (svr4_create_solib_event_breakpoints): Add info parameter,
  9585. pass it down to svr4_create_probe_breakpoints.
  9586. (enable_break): Pass info down to
  9587. svr4_create_solib_event_breakpoints.
  9588. (svr4_solib_create_inferior_hook): Pass current_program_space to
  9589. get_svr4_info.
  9590. (svr4_clear_solib): Likewise.
  9591. 2019-04-22 Pedro Alves <palves@redhat.com>
  9592. * solib-svr4.c (svr4_free_objfile_observer): New.
  9593. (probe_and_action::objfile): New field.
  9594. (probes_table_htab_remove_objfile_probes)
  9595. (probes_table_remove_objfile_probes): New functions.
  9596. (register_solib_event_probe): Add 'objfile' parameter. Store it
  9597. in the new probe_and_action. Don't store the probe in 'lookup'.
  9598. (svr4_create_probe_breakpoints): Pass objfile to
  9599. register_solib_event_probe.
  9600. (_initialize_svr4_solib): Register a free_objfile observer.
  9601. 2019-04-19 Tom Tromey <tom@tromey.com>
  9602. * common/queue.h: Remove.
  9603. 2019-04-19 Tom Tromey <tom@tromey.com>
  9604. * event-loop.c: Don't include "common/queue.h".
  9605. 2019-04-19 Tom Tromey <tom@tromey.com>
  9606. * remote.c (remote_target): Use delete.
  9607. * remote-notif.h: Include <list>, not "common/queue.h".
  9608. (notif_client_p): Remove typedef.
  9609. (remote_notif_state): Add constructor, destructor, initializer.
  9610. <notif_queue>: Now a std::list.
  9611. (remote_notif_state_xfree): Don't declare.
  9612. * remote-notif.c (remote_notif_process, handle_notification)
  9613. (remote_notif_state_allocate): Update.
  9614. (~remote_notif_state): Rename from remote_notif_state_xfree.
  9615. 2019-04-19 Tom Tromey <tom@tromey.com>
  9616. * symfile.c (reread_symbols): Update.
  9617. * objfiles.c (objfile_register_static_link)
  9618. (objfile_lookup_static_link): Update
  9619. (~objfile) Don't delete static_links.
  9620. * objfiles.h (struct objfile) <static_links>: Now an htab_up.
  9621. 2019-04-19 Tom Tromey <tom@tromey.com>
  9622. * type-stack.h (struct type_stack) <insert>: Constify string.
  9623. * type-stack.c (type_stack::insert): Constify string.
  9624. * gdbtypes.h (lookup_template_type): Update.
  9625. (address_space_name_to_int): Update.
  9626. * gdbtypes.c (address_space_name_to_int): Make space_identifier
  9627. const.
  9628. (lookup_template_type): Make name const.
  9629. * c-exp.y: Update rules.
  9630. (lex_one_token, classify_name, classify_inner_name)
  9631. (c_print_token): Update.
  9632. * p-exp.y: Update rules.
  9633. (yylex): Update.
  9634. * f-exp.y: Update rules.
  9635. (yylex): Update.
  9636. * d-exp.y: Update rules.
  9637. (lex_one_token, classify_name, classify_inner_name): Update.
  9638. * parse.c (write_dollar_variable, copy_name): Return std::string.
  9639. * parser-defs.h (copy_name): Change return type.
  9640. * m2-exp.y: Update rules.
  9641. (yylex): Update.
  9642. * go-exp.y (lex_one_token): Update.
  9643. Update rules.
  9644. (classify_unsafe_function, classify_packaged_name)
  9645. (classify_name, yylex): Update.
  9646. 2019-04-19 Sergei Trofimovich <siarheit@google.com>
  9647. * configure.ac: add --enable-source-highlight switch.
  9648. * configure: Regenerate.
  9649. * top.c (print_gdb_version): plumb --enable-source-highlight
  9650. status to "show configuration".
  9651. 2019-04-19 Tom Tromey <tromey@adacore.com>
  9652. * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
  9653. Check ADA_TYPE_P.
  9654. (empty_record, ada_template_to_fixed_record_type_1)
  9655. (template_to_static_fixed_type)
  9656. (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
  9657. * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
  9658. * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
  9659. macros.
  9660. 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
  9661. PR symtab/24423:
  9662. * source.c (print_source_lines_base): Advance "iter" when a
  9663. control character is seen.
  9664. 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  9665. * inferior.h (struct infcall_suspend_state_deleter):
  9666. Catch exception in destructor to avoid crash.
  9667. 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  9668. * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
  9669. close to the add_com "shell".
  9670. 2019-04-18 Tom Tromey <tromey@adacore.com>
  9671. * process-stratum-target.h (class process_stratum_target)
  9672. <stratum>: Add "final".
  9673. 2019-04-17 Tom Tromey <tromey@adacore.com>
  9674. * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
  9675. against nullptr before use.
  9676. 2019-04-17 Alan Hayward <alan.hayward@arm.com>
  9677. * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
  9678. 2019-04-17 Jim Wilson <jimw@sifive.com>
  9679. Andrew Burgess <andrew.burgess@embecosm.com>
  9680. * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
  9681. code read might fail, assume 4-byte breakpoint in that case.
  9682. 2019-04-15 Leszek Swirski <leszeks@google.com>
  9683. * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
  9684. rather than a hand-rolled POD check when checking for forced MEMORY
  9685. classification.
  9686. 2019-04-15 Alan Hayward <alan.hayward@arm.com>
  9687. * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
  9688. * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
  9689. function.
  9690. (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
  9691. (aarch64_sve_regs_copy_from_reg_buf): Likewise.
  9692. * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
  9693. declaration.
  9694. 2019-04-15 Alan Hayward <alan.hayward@arm.com>
  9695. * aarch64-linux-nat.c
  9696. (aarch64_linux_nat_target::thread_architecture): Add override.
  9697. * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
  9698. each VQ.
  9699. 2019-04-15 Alan Hayward <alan.hayward@arm.com>
  9700. * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
  9701. 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
  9702. * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
  9703. target types of size 96-bits, add some additional comments, and
  9704. check that the builtin type we found was the correct size.
  9705. 2019-04-12 Eli Zaretskii <eliz@gnu.org>
  9706. * utils.c (prompt_for_continue): Don't restore the styling at the
  9707. end, as applied_style has the wrong value. This fixes styling in
  9708. long lists of file names that are interrupted by the "Continue?"
  9709. prompt.
  9710. 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
  9711. * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
  9712. * c-lang.c (c_language_defn): Likewise.
  9713. (cplus_language_defn): Likewise.
  9714. (asm_language_defn): Likewise.
  9715. (minimal_language_defn): Likewise.
  9716. * d-lang.c (d_language_defn): Likewise.
  9717. * f-lang.c (f_language_defn): Likewise.
  9718. * go-lang.c (go_language_defn): Likewise.
  9719. * language.c (unknown_language_defn): Likewise.
  9720. (auto_language_defn): Likewise.
  9721. * language.h (struct language_defn): Remove la_magic field.
  9722. (LANG_MAGIC): Delete.
  9723. * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
  9724. * objc-lang.c (objc_language_defn): Likewise.
  9725. * opencl-lang.c (opencl_language_defn): Likewise.
  9726. * p-lang.c (pascal_language_defn): Likewise.
  9727. * rust-lang.c (rust_language_defn): Likewise.
  9728. 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
  9729. * riscv-tdep.c (riscv_type_align): New function.
  9730. (riscv_type_alignment): Delete.
  9731. (riscv_arg_location): Use 'type_align'.
  9732. (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
  9733. 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
  9734. * gdbtypes.c (type_align): A struct with no non-static fields also
  9735. has alignment of 1.
  9736. 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
  9737. * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
  9738. component to 0.
  9739. (riscv_struct_info::riscv_struct_info): Initialise m_offsets
  9740. member.
  9741. (riscv_struct_info::analyse): New implementation using new
  9742. analyse_inner member function.
  9743. (riscv_struct_info::field_offset): New member function.
  9744. (riscv_struct_info::m_offsets): New member variable.
  9745. (riscv_struct_info::analyse_inner): New private member function,
  9746. takes the old implementation of riscv_struct_info::analyse but
  9747. extended to track field offsets.
  9748. (riscv_call_arg_struct): Update the struct folding special cases
  9749. to handle cases where empty C++ structs, which are non-zero
  9750. length, are found.
  9751. (riscv_arg_location): Initialise the length of each location, a
  9752. non-zero length now indicates the location is in use.
  9753. (riscv_push_dummy_call): Allow for the first location having a
  9754. non-zero offset when setting up arguments.
  9755. (riscv_return_value): Likewise, but for return values.
  9756. 2019-04-11 Tom Tromey <tromey@adacore.com>
  9757. * utils.c (internal_vproblem): Make "msg" const.
  9758. 2019-04-11 Alan Hayward <alan.hayward@arm.com>
  9759. * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
  9760. * trad-frame.c (trad_frame_reset_saved_regs): New function.
  9761. (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
  9762. * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
  9763. 2019-04-10 Kevin Buettner <kevinb@redhat.com>
  9764. * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
  9765. function.
  9766. (fill_gregset): Call amd64_linux_collect_native_gregset instead
  9767. of amd64_collect_native_gregset.
  9768. (amd64_linux_nat_target::store_registers): Likewise.
  9769. 2019-04-10 Tom Tromey <tom@tromey.com>
  9770. * symtab.c (lookup_global_symbol_from_objfile)
  9771. (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
  9772. * objfiles.h (class separate_debug_iterator): New.
  9773. (class separate_debug_range): New.
  9774. (struct objfile) <separate_debug_objfiles>: New method.
  9775. (objfile_separate_debug_iterate): Don't declare.
  9776. * objfiles.c (separate_debug_iterator::operator++): Rename from
  9777. objfile_separate_debug_iterate.
  9778. (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
  9779. iterator.
  9780. * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
  9781. iterator.
  9782. 2019-04-10 Tom Tromey <tom@tromey.com>
  9783. * symfile.c (reread_symbols): Remove old comment.
  9784. * objfiles.c (free_all_objfiles): Fix a typo.
  9785. 2019-04-10 Tom Tromey <tom@tromey.com>
  9786. * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
  9787. * minsyms.c (lookup_minimal_symbol): Use foreach.
  9788. (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
  9789. (lookup_minimal_symbol_solib_trampoline): Likewise.
  9790. * symfile.c (reread_symbols): Use foreach.
  9791. 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
  9792. Tom Tromey <tromey@adacore.com>
  9793. PR rust/24414:
  9794. * rust-exp.y (rust_parser::lex_number): Use strtoulst.
  9795. (rust_lex_int_test): Change "value" to be LONGEST.
  9796. (rust_lex_tests): Add test for long integer literal.
  9797. 2019-04-09 Tom Tromey <tromey@adacore.com>
  9798. * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
  9799. to bool.
  9800. (extended_remote_target::attach): Update.
  9801. (remote_target::remote_notice_new_inferior): Update.
  9802. (remote_target::add_current_inferior_and_thread): Update.
  9803. * inferior.c (exit_inferior_1): Use "false".
  9804. * corelow.c (add_to_thread_list): Make fake_pid_p bool.
  9805. 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
  9806. * infcmd.c (run_command_1): Pass -qualified to tbreak when using
  9807. the "start" command.
  9808. 2019-04-08 Kevin Buettner <kevinb@redhat.com>
  9809. * python/py-inferior.c (infpy_thread_from_thread_handle):
  9810. Adjust comments to reflect renaming of thread_from_thread_handle
  9811. to thread_from_handle. Adjust keywords. Fix type error message.
  9812. (inferior_object_methods): Add thread_from_handle. Retain
  9813. thread_from_thread_handle, but mark it as deprecated.
  9814. 2019-04-08 Kevin Buettner <kevinb@redhat.com>
  9815. * gdbthread.h (find_thread_by_handle): Revise declaration.
  9816. * thread.c (find_thread_by_handle): Likewise. Adjust
  9817. implementation too.
  9818. * python/py-inferior.c (infpy_thread_from_thread_handle): Add
  9819. support for buffer objects as handles.
  9820. 2019-04-08 Kevin Buettner <kevinb@redhat.com>
  9821. * python/py-infthread.c (thpy_thread_handle): New function.
  9822. (thread_object_methods): Register thpy_thread_handle.
  9823. 2019-04-08 Kevin Buettner <kevinb@redhat.com>
  9824. * gdbthread.h (thread_to_thread_handle): Declare.
  9825. * thread.c (gdbtypes.h): Include.
  9826. (thread_to_thread_handle): New function.
  9827. * target.h (struct target_ops): Add thread_info_to_thread_handle.
  9828. (target_thread_info_to_thread_handle): Declare.
  9829. * target.c (target_thread_info_to_thread_handle): New function.
  9830. * target-debug.h (target_debug_print_gdb_byte_vector): Define.
  9831. * target-delegates.c: Regenerate.
  9832. * linux-thread-db.c (class thread_db_target): Add method
  9833. thread_info_to_thread_handle.
  9834. (thread_db_target::thread_info_to_thread_handle): Define.
  9835. * remote.c (class remote_target): Add new method
  9836. thread_info_to_thread_handle.
  9837. (remote_target::thread_info_to_thread_handle): Define.
  9838. 2019-04-08 Pedro Alves <palves@redhat.com>
  9839. * common/common-exceptions.c (throw_exception): Don't create
  9840. named object to throw; throw directly.
  9841. (throw_it): Likewise. Don't initialize gdb_exception::message
  9842. here, with new; pass FMT and AP to the ctor instead.
  9843. * common/common-exceptions.h: Include <string>.
  9844. (gdb_exception::gdb_exception(enum return_reason, enum errors,
  9845. const char *, va_list)): New ctor. Use std::make_shared.
  9846. (gdb_exception_error::gdb_exception_error(enum return_reason, enum
  9847. errors)): Delete.
  9848. (gdb_exception_error::gdb_exception_error(enum errors, const char
  9849. *, va_list)): New.
  9850. (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
  9851. Add assertion.
  9852. (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
  9853. errors)): Delete.
  9854. (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
  9855. (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
  9856. Add assertion.
  9857. 2019-04-08 Tom Tromey <tom@tromey.com>
  9858. * valops.c (value_rtti_indirect_type): Replace throw_exception
  9859. with throw.
  9860. * tracefile-tfile.c (tfile_target_open): Replace throw_exception
  9861. with throw.
  9862. * thread.c (thr_try_catch_cmd): Replace throw_exception with
  9863. throw.
  9864. * target.c (target_translate_tls_address): Replace throw_exception
  9865. with throw.
  9866. * stack.c (frame_apply_command_count): Replace throw_exception
  9867. with throw.
  9868. * solib-spu.c (append_ocl_sos): Replace throw_exception with
  9869. throw.
  9870. * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
  9871. with throw.
  9872. * rs6000-tdep.c (rs6000_frame_cache)
  9873. (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
  9874. * remote.c: Replace throw_exception with throw.
  9875. * record-full.c (record_full_message, record_full_wait_1)
  9876. (record_full_restore): Replace throw_exception with throw.
  9877. * record-btrace.c:
  9878. (get_thread_current_frame_id, record_btrace_start_replaying)
  9879. (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
  9880. (cmd_record_btrace_start): Replace throw_exception with throw.
  9881. * parse.c (parse_exp_in_context_1): Replace throw_exception with
  9882. throw.
  9883. * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
  9884. (resume_stopped_resumed_lwps): Replace throw_exception with throw.
  9885. * linespec.c:
  9886. (find_linespec_symbols): Replace throw_exception with throw.
  9887. * infrun.c (displaced_step_prepare, resume): Replace
  9888. throw_exception with throw.
  9889. * infcmd.c (post_create_inferior): Replace throw_exception with
  9890. throw.
  9891. * inf-loop.c (inferior_event_handler): Replace throw_exception
  9892. with throw.
  9893. * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
  9894. (i386_sigtramp_frame_cache): Replace throw_exception with throw.
  9895. * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
  9896. (get_prev_frame_always, get_frame_pc_if_available)
  9897. (get_frame_address_in_block_if_available, get_frame_language):
  9898. Replace throw_exception with throw.
  9899. * frame-unwind.c (frame_unwind_try_unwinder): Replace
  9900. throw_exception with throw.
  9901. * eval.c (fetch_subexp_value, evaluate_var_value)
  9902. (evaluate_funcall, evaluate_subexp_standard): Replace
  9903. throw_exception with throw.
  9904. * dwarf2loc.c (call_site_find_chain)
  9905. (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
  9906. Replace throw_exception with throw.
  9907. * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
  9908. with throw.
  9909. * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
  9910. throw.
  9911. * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
  9912. * completer.c (complete_line_internal): Replace throw_exception
  9913. with throw.
  9914. * compile/compile-object-run.c (compile_object_run): Replace
  9915. throw_exception with throw.
  9916. * cli/cli-script.c (process_next_line): Replace throw_exception
  9917. with throw.
  9918. * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
  9919. (btrace_enable, btrace_maint_update_pt_packets): Replace
  9920. throw_exception with throw.
  9921. * breakpoint.c (create_breakpoint, save_breakpoints): Replace
  9922. throw_exception with throw.
  9923. * break-catch-throw.c (re_set_exception_catchpoint): Replace
  9924. throw_exception with throw.
  9925. * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
  9926. (amd64_epilogue_frame_cache): Replace throw_exception with throw.
  9927. * aarch64-tdep.c (aarch64_make_prologue_cache)
  9928. (aarch64_make_stub_cache): Replace throw_exception with throw.
  9929. 2019-04-08 Tom Tromey <tom@tromey.com>
  9930. * common/common-exceptions.c (throw_exception): Rename from
  9931. throw_exception_cxx. Remove old copy. Make argument const.
  9932. (throw_it): Create and throw exception objects directly.
  9933. * common/common-exceptions.h (throw_exception): Make argument
  9934. const.
  9935. (struct gdb_exception_error): Add constructor.
  9936. (struct gdb_exception_quit): Add constructor.
  9937. 2019-04-08 Tom Tromey <tom@tromey.com>
  9938. * common/common-exceptions.h (exception_rethrow): Don't declare.
  9939. (TRY_SJLJ): Update comment.
  9940. (TRY, CATCH, END_CATCH): Remove.
  9941. * common/common-exceptions.c (exception_rethrow): Remove.
  9942. 2019-04-08 Tom Tromey <tom@tromey.com>
  9943. * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
  9944. Remove.
  9945. (gdb_exception_error): Rename from
  9946. gdb_exception_RETURN_MASK_ERROR.
  9947. (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
  9948. (gdb_quit_bad_alloc): Update.
  9949. * aarch64-tdep.c: Update.
  9950. * ada-lang.c: Update.
  9951. * ada-typeprint.c: Update.
  9952. * ada-valprint.c: Update.
  9953. * amd64-tdep.c: Update.
  9954. * arch-utils.c: Update.
  9955. * break-catch-throw.c: Update.
  9956. * breakpoint.c: Update.
  9957. * btrace.c: Update.
  9958. * c-varobj.c: Update.
  9959. * cli/cli-cmds.c: Update.
  9960. * cli/cli-interp.c: Update.
  9961. * cli/cli-script.c: Update.
  9962. * common/common-exceptions.c: Update.
  9963. * common/new-op.c: Update.
  9964. * common/selftest.c: Update.
  9965. * compile/compile-c-symbols.c: Update.
  9966. * compile/compile-cplus-symbols.c: Update.
  9967. * compile/compile-object-load.c: Update.
  9968. * compile/compile-object-run.c: Update.
  9969. * completer.c: Update.
  9970. * corelow.c: Update.
  9971. * cp-abi.c: Update.
  9972. * cp-support.c: Update.
  9973. * cp-valprint.c: Update.
  9974. * darwin-nat.c: Update.
  9975. * disasm-selftests.c: Update.
  9976. * dtrace-probe.c: Update.
  9977. * dwarf-index-cache.c: Update.
  9978. * dwarf-index-write.c: Update.
  9979. * dwarf2-frame-tailcall.c: Update.
  9980. * dwarf2-frame.c: Update.
  9981. * dwarf2loc.c: Update.
  9982. * dwarf2read.c: Update.
  9983. * eval.c: Update.
  9984. * event-loop.c: Update.
  9985. * event-top.c: Update.
  9986. * exec.c: Update.
  9987. * f-valprint.c: Update.
  9988. * fbsd-tdep.c: Update.
  9989. * frame-unwind.c: Update.
  9990. * frame.c: Update.
  9991. * gdbtypes.c: Update.
  9992. * gnu-v3-abi.c: Update.
  9993. * guile/guile-internal.h: Update.
  9994. * guile/scm-block.c: Update.
  9995. * guile/scm-breakpoint.c: Update.
  9996. * guile/scm-cmd.c: Update.
  9997. * guile/scm-disasm.c: Update.
  9998. * guile/scm-frame.c: Update.
  9999. * guile/scm-lazy-string.c: Update.
  10000. * guile/scm-math.c: Update.
  10001. * guile/scm-param.c: Update.
  10002. * guile/scm-ports.c: Update.
  10003. * guile/scm-pretty-print.c: Update.
  10004. * guile/scm-symbol.c: Update.
  10005. * guile/scm-symtab.c: Update.
  10006. * guile/scm-type.c: Update.
  10007. * guile/scm-value.c: Update.
  10008. * i386-linux-tdep.c: Update.
  10009. * i386-tdep.c: Update.
  10010. * inf-loop.c: Update.
  10011. * infcall.c: Update.
  10012. * infcmd.c: Update.
  10013. * infrun.c: Update.
  10014. * jit.c: Update.
  10015. * language.c: Update.
  10016. * linespec.c: Update.
  10017. * linux-fork.c: Update.
  10018. * linux-nat.c: Update.
  10019. * linux-tdep.c: Update.
  10020. * linux-thread-db.c: Update.
  10021. * main.c: Update.
  10022. * mi/mi-cmd-break.c: Update.
  10023. * mi/mi-cmd-stack.c: Update.
  10024. * mi/mi-interp.c: Update.
  10025. * mi/mi-main.c: Update.
  10026. * objc-lang.c: Update.
  10027. * p-valprint.c: Update.
  10028. * parse.c: Update.
  10029. * ppc-linux-tdep.c: Update.
  10030. * printcmd.c: Update.
  10031. * python/py-arch.c: Update.
  10032. * python/py-breakpoint.c: Update.
  10033. * python/py-cmd.c: Update.
  10034. * python/py-finishbreakpoint.c: Update.
  10035. * python/py-frame.c: Update.
  10036. * python/py-framefilter.c: Update.
  10037. * python/py-gdb-readline.c: Update.
  10038. * python/py-inferior.c: Update.
  10039. * python/py-infthread.c: Update.
  10040. * python/py-lazy-string.c: Update.
  10041. * python/py-linetable.c: Update.
  10042. * python/py-objfile.c: Update.
  10043. * python/py-param.c: Update.
  10044. * python/py-prettyprint.c: Update.
  10045. * python/py-progspace.c: Update.
  10046. * python/py-record-btrace.c: Update.
  10047. * python/py-record.c: Update.
  10048. * python/py-symbol.c: Update.
  10049. * python/py-type.c: Update.
  10050. * python/py-unwind.c: Update.
  10051. * python/py-utils.c: Update.
  10052. * python/py-value.c: Update.
  10053. * python/python.c: Update.
  10054. * record-btrace.c: Update.
  10055. * record-full.c: Update.
  10056. * remote-fileio.c: Update.
  10057. * remote.c: Update.
  10058. * riscv-tdep.c: Update.
  10059. * rs6000-aix-tdep.c: Update.
  10060. * rs6000-tdep.c: Update.
  10061. * rust-exp.y: Update.
  10062. * rust-lang.c: Update.
  10063. * s390-tdep.c: Update.
  10064. * selftest-arch.c: Update.
  10065. * solib-dsbt.c: Update.
  10066. * solib-frv.c: Update.
  10067. * solib-spu.c: Update.
  10068. * solib-svr4.c: Update.
  10069. * solib.c: Update.
  10070. * sparc64-linux-tdep.c: Update.
  10071. * stack.c: Update.
  10072. * symfile-mem.c: Update.
  10073. * symmisc.c: Update.
  10074. * target.c: Update.
  10075. * thread.c: Update.
  10076. * top.c: Update.
  10077. * tracefile-tfile.c: Update.
  10078. * tui/tui.c: Update.
  10079. * typeprint.c: Update.
  10080. * unittests/cli-utils-selftests.c: Update.
  10081. * unittests/parse-connection-spec-selftests.c: Update.
  10082. * valops.c: Update.
  10083. * valprint.c: Update.
  10084. * value.c: Update.
  10085. * varobj.c: Update.
  10086. * windows-nat.c: Update.
  10087. * x86-linux-nat.c: Update.
  10088. * xml-support.c: Update.
  10089. 2019-04-08 Tom Tromey <tom@tromey.com>
  10090. * xml-support.c: Use C++ exception handling.
  10091. * x86-linux-nat.c: Use C++ exception handling.
  10092. * windows-nat.c: Use C++ exception handling.
  10093. * varobj.c: Use C++ exception handling.
  10094. * value.c: Use C++ exception handling.
  10095. * valprint.c: Use C++ exception handling.
  10096. * valops.c: Use C++ exception handling.
  10097. * unittests/parse-connection-spec-selftests.c: Use C++ exception
  10098. handling.
  10099. * unittests/cli-utils-selftests.c: Use C++ exception handling.
  10100. * typeprint.c: Use C++ exception handling.
  10101. * tui/tui.c: Use C++ exception handling.
  10102. * tracefile-tfile.c: Use C++ exception handling.
  10103. * top.c: Use C++ exception handling.
  10104. * thread.c: Use C++ exception handling.
  10105. * target.c: Use C++ exception handling.
  10106. * symmisc.c: Use C++ exception handling.
  10107. * symfile-mem.c: Use C++ exception handling.
  10108. * stack.c: Use C++ exception handling.
  10109. * sparc64-linux-tdep.c: Use C++ exception handling.
  10110. * solib.c: Use C++ exception handling.
  10111. * solib-svr4.c: Use C++ exception handling.
  10112. * solib-spu.c: Use C++ exception handling.
  10113. * solib-frv.c: Use C++ exception handling.
  10114. * solib-dsbt.c: Use C++ exception handling.
  10115. * selftest-arch.c: Use C++ exception handling.
  10116. * s390-tdep.c: Use C++ exception handling.
  10117. * rust-lang.c: Use C++ exception handling.
  10118. * rust-exp.y: Use C++ exception handling.
  10119. * rs6000-tdep.c: Use C++ exception handling.
  10120. * rs6000-aix-tdep.c: Use C++ exception handling.
  10121. * riscv-tdep.c: Use C++ exception handling.
  10122. * remote.c: Use C++ exception handling.
  10123. * remote-fileio.c: Use C++ exception handling.
  10124. * record-full.c: Use C++ exception handling.
  10125. * record-btrace.c: Use C++ exception handling.
  10126. * python/python.c: Use C++ exception handling.
  10127. * python/py-value.c: Use C++ exception handling.
  10128. * python/py-utils.c: Use C++ exception handling.
  10129. * python/py-unwind.c: Use C++ exception handling.
  10130. * python/py-type.c: Use C++ exception handling.
  10131. * python/py-symbol.c: Use C++ exception handling.
  10132. * python/py-record.c: Use C++ exception handling.
  10133. * python/py-record-btrace.c: Use C++ exception handling.
  10134. * python/py-progspace.c: Use C++ exception handling.
  10135. * python/py-prettyprint.c: Use C++ exception handling.
  10136. * python/py-param.c: Use C++ exception handling.
  10137. * python/py-objfile.c: Use C++ exception handling.
  10138. * python/py-linetable.c: Use C++ exception handling.
  10139. * python/py-lazy-string.c: Use C++ exception handling.
  10140. * python/py-infthread.c: Use C++ exception handling.
  10141. * python/py-inferior.c: Use C++ exception handling.
  10142. * python/py-gdb-readline.c: Use C++ exception handling.
  10143. * python/py-framefilter.c: Use C++ exception handling.
  10144. * python/py-frame.c: Use C++ exception handling.
  10145. * python/py-finishbreakpoint.c: Use C++ exception handling.
  10146. * python/py-cmd.c: Use C++ exception handling.
  10147. * python/py-breakpoint.c: Use C++ exception handling.
  10148. * python/py-arch.c: Use C++ exception handling.
  10149. * printcmd.c: Use C++ exception handling.
  10150. * ppc-linux-tdep.c: Use C++ exception handling.
  10151. * parse.c: Use C++ exception handling.
  10152. * p-valprint.c: Use C++ exception handling.
  10153. * objc-lang.c: Use C++ exception handling.
  10154. * mi/mi-main.c: Use C++ exception handling.
  10155. * mi/mi-interp.c: Use C++ exception handling.
  10156. * mi/mi-cmd-stack.c: Use C++ exception handling.
  10157. * mi/mi-cmd-break.c: Use C++ exception handling.
  10158. * main.c: Use C++ exception handling.
  10159. * linux-thread-db.c: Use C++ exception handling.
  10160. * linux-tdep.c: Use C++ exception handling.
  10161. * linux-nat.c: Use C++ exception handling.
  10162. * linux-fork.c: Use C++ exception handling.
  10163. * linespec.c: Use C++ exception handling.
  10164. * language.c: Use C++ exception handling.
  10165. * jit.c: Use C++ exception handling.
  10166. * infrun.c: Use C++ exception handling.
  10167. * infcmd.c: Use C++ exception handling.
  10168. * infcall.c: Use C++ exception handling.
  10169. * inf-loop.c: Use C++ exception handling.
  10170. * i386-tdep.c: Use C++ exception handling.
  10171. * i386-linux-tdep.c: Use C++ exception handling.
  10172. * guile/scm-value.c: Use C++ exception handling.
  10173. * guile/scm-type.c: Use C++ exception handling.
  10174. * guile/scm-symtab.c: Use C++ exception handling.
  10175. * guile/scm-symbol.c: Use C++ exception handling.
  10176. * guile/scm-pretty-print.c: Use C++ exception handling.
  10177. * guile/scm-ports.c: Use C++ exception handling.
  10178. * guile/scm-param.c: Use C++ exception handling.
  10179. * guile/scm-math.c: Use C++ exception handling.
  10180. * guile/scm-lazy-string.c: Use C++ exception handling.
  10181. * guile/scm-frame.c: Use C++ exception handling.
  10182. * guile/scm-disasm.c: Use C++ exception handling.
  10183. * guile/scm-cmd.c: Use C++ exception handling.
  10184. * guile/scm-breakpoint.c: Use C++ exception handling.
  10185. * guile/scm-block.c: Use C++ exception handling.
  10186. * guile/guile-internal.h: Use C++ exception handling.
  10187. * gnu-v3-abi.c: Use C++ exception handling.
  10188. * gdbtypes.c: Use C++ exception handling.
  10189. * frame.c: Use C++ exception handling.
  10190. * frame-unwind.c: Use C++ exception handling.
  10191. * fbsd-tdep.c: Use C++ exception handling.
  10192. * f-valprint.c: Use C++ exception handling.
  10193. * exec.c: Use C++ exception handling.
  10194. * event-top.c: Use C++ exception handling.
  10195. * event-loop.c: Use C++ exception handling.
  10196. * eval.c: Use C++ exception handling.
  10197. * dwarf2read.c: Use C++ exception handling.
  10198. * dwarf2loc.c: Use C++ exception handling.
  10199. * dwarf2-frame.c: Use C++ exception handling.
  10200. * dwarf2-frame-tailcall.c: Use C++ exception handling.
  10201. * dwarf-index-write.c: Use C++ exception handling.
  10202. * dwarf-index-cache.c: Use C++ exception handling.
  10203. * dtrace-probe.c: Use C++ exception handling.
  10204. * disasm-selftests.c: Use C++ exception handling.
  10205. * darwin-nat.c: Use C++ exception handling.
  10206. * cp-valprint.c: Use C++ exception handling.
  10207. * cp-support.c: Use C++ exception handling.
  10208. * cp-abi.c: Use C++ exception handling.
  10209. * corelow.c: Use C++ exception handling.
  10210. * completer.c: Use C++ exception handling.
  10211. * compile/compile-object-run.c: Use C++ exception handling.
  10212. * compile/compile-object-load.c: Use C++ exception handling.
  10213. * compile/compile-cplus-symbols.c: Use C++ exception handling.
  10214. * compile/compile-c-symbols.c: Use C++ exception handling.
  10215. * common/selftest.c: Use C++ exception handling.
  10216. * common/new-op.c: Use C++ exception handling.
  10217. * cli/cli-script.c: Use C++ exception handling.
  10218. * cli/cli-interp.c: Use C++ exception handling.
  10219. * cli/cli-cmds.c: Use C++ exception handling.
  10220. * c-varobj.c: Use C++ exception handling.
  10221. * btrace.c: Use C++ exception handling.
  10222. * breakpoint.c: Use C++ exception handling.
  10223. * break-catch-throw.c: Use C++ exception handling.
  10224. * arch-utils.c: Use C++ exception handling.
  10225. * amd64-tdep.c: Use C++ exception handling.
  10226. * ada-valprint.c: Use C++ exception handling.
  10227. * ada-typeprint.c: Use C++ exception handling.
  10228. * ada-lang.c: Use C++ exception handling.
  10229. * aarch64-tdep.c: Use C++ exception handling.
  10230. 2019-04-08 Tom Tromey <tom@tromey.com>
  10231. * xml-support.c (gdb_xml_parser::parse): Update.
  10232. * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
  10233. * value.c (show_convenience): Update.
  10234. * unittests/cli-utils-selftests.c (test_number_or_range_parser)
  10235. (test_parse_flags_qcs): Update.
  10236. * thread.c (thr_try_catch_cmd): Update.
  10237. * target.c (target_translate_tls_address): Update.
  10238. * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
  10239. (info_frame_command_core, frame_apply_command_count): Update.
  10240. * rust-exp.y (rust_lex_exception_test): Update.
  10241. * riscv-tdep.c (riscv_print_one_register_info): Update.
  10242. * remote.c (remote_target::enable_btrace): Update.
  10243. * record-btrace.c (record_btrace_enable_warn): Update.
  10244. * python/py-utils.c (gdbpy_convert_exception): Update.
  10245. * printcmd.c (do_one_display, print_variable_and_value): Update.
  10246. * mi/mi-main.c (mi_print_exception): Update.
  10247. * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
  10248. * mi/mi-cmd-stack.c (list_arg_or_local): Update.
  10249. * linux-nat.c (linux_nat_target::attach): Update.
  10250. * linux-fork.c (class scoped_switch_fork_info): Update.
  10251. * infrun.c (displaced_step_prepare): Update.
  10252. * infcall.c (call_function_by_hand_dummy): Update.
  10253. * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
  10254. * gnu-v3-abi.c (print_one_vtable): Update.
  10255. * frame.c (get_prev_frame_always): Update.
  10256. * f-valprint.c (info_common_command_for_block): Update.
  10257. * exec.c (try_open_exec_file): Update.
  10258. * exceptions.c (print_exception, exception_print)
  10259. (exception_fprintf, exception_print_same): Update.
  10260. * dwarf2-frame.c (dwarf2_build_frame_info): Update.
  10261. * dwarf-index-cache.c (index_cache::store)
  10262. (index_cache::lookup_gdb_index): Update.
  10263. * darwin-nat.c (maybe_cache_shell): Update.
  10264. * cp-valprint.c (cp_print_value_fields): Update.
  10265. * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
  10266. (gcc_cplus_symbol_address): Update.
  10267. * compile/compile-c-symbols.c (gcc_convert_symbol)
  10268. (gcc_symbol_address, generate_c_for_for_one_variable): Update.
  10269. * common/selftest.c: Update.
  10270. * common/common-exceptions.h (struct gdb_exception) <message>: Now
  10271. a std::string.
  10272. (exception_try_scope_entry, exception_try_scope_exit): Don't
  10273. declare.
  10274. (struct exception_try_scope): Remove.
  10275. (TRY): Don't use exception_try_scope.
  10276. (struct gdb_exception): Add constructor, operator=.
  10277. <what>: New method.
  10278. (struct gdb_exception_RETURN_MASK_ALL)
  10279. (struct gdb_exception_RETURN_MASK_ERROR)
  10280. (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
  10281. (struct gdb_quit_bad_alloc): Update.
  10282. * common/common-exceptions.c (exception_none): Change
  10283. initializer.
  10284. (struct catcher) <state, exception>: Initialize inline.
  10285. <prev>: Remove member.
  10286. (current_catcher): Remove.
  10287. (catchers): New global.
  10288. (exceptions_state_mc_init): Simplify.
  10289. (catcher_pop): Remove.
  10290. (exceptions_state_mc, exceptions_state_mc_catch): Update.
  10291. (try_scope_depth, exception_try_scope_entry)
  10292. (exception_try_scope_exit): Remove.
  10293. (throw_exception_sjlj): Update.
  10294. (exception_messages, exception_messages_size): Remove.
  10295. (throw_it): Simplify.
  10296. (gdb_exception_sliced_copy): Remove.
  10297. (throw_exception_cxx): Update.
  10298. * cli/cli-script.c (script_from_file): Update.
  10299. * breakpoint.c (insert_bp_location, update_breakpoint_locations):
  10300. Update.
  10301. * ada-valprint.c (ada_val_print): Update.
  10302. * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
  10303. (create_excep_cond_exprs): Update.
  10304. 2019-04-08 Tom Tromey <tom@tromey.com>
  10305. * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
  10306. (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
  10307. (TRY, CATCH, END_CATCH): Remove some definitions.
  10308. * common/common-exceptions.c: Don't use GDB_XCPT.
  10309. (catcher_list_size): Remove.
  10310. (throw_exception, throw_it): Simplify.
  10311. 2019-04-05 Tom Tromey <tom@tromey.com>
  10312. Revert the header-sorting patch.
  10313. * ft32-tdep.c: Revert.
  10314. * frv-tdep.c: Revert.
  10315. * frv-linux-tdep.c: Revert.
  10316. * frame.c: Revert.
  10317. * frame-unwind.c: Revert.
  10318. * frame-base.c: Revert.
  10319. * fork-child.c: Revert.
  10320. * findvar.c: Revert.
  10321. * findcmd.c: Revert.
  10322. * filesystem.c: Revert.
  10323. * filename-seen-cache.h: Revert.
  10324. * filename-seen-cache.c: Revert.
  10325. * fbsd-tdep.c: Revert.
  10326. * fbsd-nat.h: Revert.
  10327. * fbsd-nat.c: Revert.
  10328. * f-valprint.c: Revert.
  10329. * f-typeprint.c: Revert.
  10330. * f-lang.c: Revert.
  10331. * extension.h: Revert.
  10332. * extension.c: Revert.
  10333. * extension-priv.h: Revert.
  10334. * expprint.c: Revert.
  10335. * exec.h: Revert.
  10336. * exec.c: Revert.
  10337. * exceptions.c: Revert.
  10338. * event-top.c: Revert.
  10339. * event-loop.c: Revert.
  10340. * eval.c: Revert.
  10341. * elfread.c: Revert.
  10342. * dwarf2read.h: Revert.
  10343. * dwarf2read.c: Revert.
  10344. * dwarf2loc.c: Revert.
  10345. * dwarf2expr.h: Revert.
  10346. * dwarf2expr.c: Revert.
  10347. * dwarf2-frame.c: Revert.
  10348. * dwarf2-frame-tailcall.c: Revert.
  10349. * dwarf-index-write.h: Revert.
  10350. * dwarf-index-write.c: Revert.
  10351. * dwarf-index-common.c: Revert.
  10352. * dwarf-index-cache.h: Revert.
  10353. * dwarf-index-cache.c: Revert.
  10354. * dummy-frame.c: Revert.
  10355. * dtrace-probe.c: Revert.
  10356. * disasm.h: Revert.
  10357. * disasm.c: Revert.
  10358. * disasm-selftests.c: Revert.
  10359. * dictionary.c: Revert.
  10360. * dicos-tdep.c: Revert.
  10361. * demangle.c: Revert.
  10362. * dcache.h: Revert.
  10363. * dcache.c: Revert.
  10364. * darwin-nat.h: Revert.
  10365. * darwin-nat.c: Revert.
  10366. * darwin-nat-info.c: Revert.
  10367. * d-valprint.c: Revert.
  10368. * d-namespace.c: Revert.
  10369. * d-lang.c: Revert.
  10370. * ctf.c: Revert.
  10371. * csky-tdep.c: Revert.
  10372. * csky-linux-tdep.c: Revert.
  10373. * cris-tdep.c: Revert.
  10374. * cris-linux-tdep.c: Revert.
  10375. * cp-valprint.c: Revert.
  10376. * cp-support.c: Revert.
  10377. * cp-namespace.c: Revert.
  10378. * cp-abi.c: Revert.
  10379. * corelow.c: Revert.
  10380. * corefile.c: Revert.
  10381. * continuations.c: Revert.
  10382. * completer.h: Revert.
  10383. * completer.c: Revert.
  10384. * complaints.c: Revert.
  10385. * coffread.c: Revert.
  10386. * coff-pe-read.c: Revert.
  10387. * cli-out.h: Revert.
  10388. * cli-out.c: Revert.
  10389. * charset.c: Revert.
  10390. * c-varobj.c: Revert.
  10391. * c-valprint.c: Revert.
  10392. * c-typeprint.c: Revert.
  10393. * c-lang.c: Revert.
  10394. * buildsym.c: Revert.
  10395. * buildsym-legacy.c: Revert.
  10396. * build-id.h: Revert.
  10397. * build-id.c: Revert.
  10398. * btrace.c: Revert.
  10399. * bsd-uthread.c: Revert.
  10400. * breakpoint.h: Revert.
  10401. * breakpoint.c: Revert.
  10402. * break-catch-throw.c: Revert.
  10403. * break-catch-syscall.c: Revert.
  10404. * break-catch-sig.c: Revert.
  10405. * blockframe.c: Revert.
  10406. * block.c: Revert.
  10407. * bfin-tdep.c: Revert.
  10408. * bfin-linux-tdep.c: Revert.
  10409. * bfd-target.c: Revert.
  10410. * bcache.c: Revert.
  10411. * ax-general.c: Revert.
  10412. * ax-gdb.h: Revert.
  10413. * ax-gdb.c: Revert.
  10414. * avr-tdep.c: Revert.
  10415. * auxv.c: Revert.
  10416. * auto-load.c: Revert.
  10417. * arm-wince-tdep.c: Revert.
  10418. * arm-tdep.c: Revert.
  10419. * arm-symbian-tdep.c: Revert.
  10420. * arm-pikeos-tdep.c: Revert.
  10421. * arm-obsd-tdep.c: Revert.
  10422. * arm-nbsd-tdep.c: Revert.
  10423. * arm-nbsd-nat.c: Revert.
  10424. * arm-linux-tdep.c: Revert.
  10425. * arm-linux-nat.c: Revert.
  10426. * arm-fbsd-tdep.c: Revert.
  10427. * arm-fbsd-nat.c: Revert.
  10428. * arm-bsd-tdep.c: Revert.
  10429. * arch-utils.c: Revert.
  10430. * arc-tdep.c: Revert.
  10431. * arc-newlib-tdep.c: Revert.
  10432. * annotate.h: Revert.
  10433. * annotate.c: Revert.
  10434. * amd64-windows-tdep.c: Revert.
  10435. * amd64-windows-nat.c: Revert.
  10436. * amd64-tdep.c: Revert.
  10437. * amd64-sol2-tdep.c: Revert.
  10438. * amd64-obsd-tdep.c: Revert.
  10439. * amd64-obsd-nat.c: Revert.
  10440. * amd64-nbsd-tdep.c: Revert.
  10441. * amd64-nbsd-nat.c: Revert.
  10442. * amd64-nat.c: Revert.
  10443. * amd64-linux-tdep.c: Revert.
  10444. * amd64-linux-nat.c: Revert.
  10445. * amd64-fbsd-tdep.c: Revert.
  10446. * amd64-fbsd-nat.c: Revert.
  10447. * amd64-dicos-tdep.c: Revert.
  10448. * amd64-darwin-tdep.c: Revert.
  10449. * amd64-bsd-nat.c: Revert.
  10450. * alpha-tdep.c: Revert.
  10451. * alpha-obsd-tdep.c: Revert.
  10452. * alpha-nbsd-tdep.c: Revert.
  10453. * alpha-mdebug-tdep.c: Revert.
  10454. * alpha-linux-tdep.c: Revert.
  10455. * alpha-linux-nat.c: Revert.
  10456. * alpha-bsd-tdep.c: Revert.
  10457. * alpha-bsd-nat.c: Revert.
  10458. * aix-thread.c: Revert.
  10459. * agent.c: Revert.
  10460. * addrmap.c: Revert.
  10461. * ada-varobj.c: Revert.
  10462. * ada-valprint.c: Revert.
  10463. * ada-typeprint.c: Revert.
  10464. * ada-tasks.c: Revert.
  10465. * ada-lang.c: Revert.
  10466. * aarch64-tdep.c: Revert.
  10467. * aarch64-ravenscar-thread.c: Revert.
  10468. * aarch64-newlib-tdep.c: Revert.
  10469. * aarch64-linux-tdep.c: Revert.
  10470. * aarch64-linux-nat.c: Revert.
  10471. * aarch64-fbsd-tdep.c: Revert.
  10472. * aarch64-fbsd-nat.c: Revert.
  10473. * aarch32-linux-nat.c: Revert.
  10474. 2019-04-05 Tom Tromey <tom@tromey.com>
  10475. * ft32-tdep.c: Sort headers.
  10476. * frv-tdep.c: Sort headers.
  10477. * frv-linux-tdep.c: Sort headers.
  10478. * frame.c: Sort headers.
  10479. * frame-unwind.c: Sort headers.
  10480. * frame-base.c: Sort headers.
  10481. * fork-child.c: Sort headers.
  10482. * findvar.c: Sort headers.
  10483. * findcmd.c: Sort headers.
  10484. * filesystem.c: Sort headers.
  10485. * filename-seen-cache.h: Sort headers.
  10486. * filename-seen-cache.c: Sort headers.
  10487. * fbsd-tdep.c: Sort headers.
  10488. * fbsd-nat.h: Sort headers.
  10489. * fbsd-nat.c: Sort headers.
  10490. * f-valprint.c: Sort headers.
  10491. * f-typeprint.c: Sort headers.
  10492. * f-lang.c: Sort headers.
  10493. * extension.h: Sort headers.
  10494. * extension.c: Sort headers.
  10495. * extension-priv.h: Sort headers.
  10496. * expprint.c: Sort headers.
  10497. * exec.h: Sort headers.
  10498. * exec.c: Sort headers.
  10499. * exceptions.c: Sort headers.
  10500. * event-top.c: Sort headers.
  10501. * event-loop.c: Sort headers.
  10502. * eval.c: Sort headers.
  10503. * elfread.c: Sort headers.
  10504. * dwarf2read.h: Sort headers.
  10505. * dwarf2read.c: Sort headers.
  10506. * dwarf2loc.c: Sort headers.
  10507. * dwarf2expr.h: Sort headers.
  10508. * dwarf2expr.c: Sort headers.
  10509. * dwarf2-frame.c: Sort headers.
  10510. * dwarf2-frame-tailcall.c: Sort headers.
  10511. * dwarf-index-write.h: Sort headers.
  10512. * dwarf-index-write.c: Sort headers.
  10513. * dwarf-index-common.c: Sort headers.
  10514. * dwarf-index-cache.h: Sort headers.
  10515. * dwarf-index-cache.c: Sort headers.
  10516. * dummy-frame.c: Sort headers.
  10517. * dtrace-probe.c: Sort headers.
  10518. * disasm.h: Sort headers.
  10519. * disasm.c: Sort headers.
  10520. * disasm-selftests.c: Sort headers.
  10521. * dictionary.c: Sort headers.
  10522. * dicos-tdep.c: Sort headers.
  10523. * demangle.c: Sort headers.
  10524. * dcache.h: Sort headers.
  10525. * dcache.c: Sort headers.
  10526. * darwin-nat.h: Sort headers.
  10527. * darwin-nat.c: Sort headers.
  10528. * darwin-nat-info.c: Sort headers.
  10529. * d-valprint.c: Sort headers.
  10530. * d-namespace.c: Sort headers.
  10531. * d-lang.c: Sort headers.
  10532. * ctf.c: Sort headers.
  10533. * csky-tdep.c: Sort headers.
  10534. * csky-linux-tdep.c: Sort headers.
  10535. * cris-tdep.c: Sort headers.
  10536. * cris-linux-tdep.c: Sort headers.
  10537. * cp-valprint.c: Sort headers.
  10538. * cp-support.c: Sort headers.
  10539. * cp-namespace.c: Sort headers.
  10540. * cp-abi.c: Sort headers.
  10541. * corelow.c: Sort headers.
  10542. * corefile.c: Sort headers.
  10543. * continuations.c: Sort headers.
  10544. * completer.h: Sort headers.
  10545. * completer.c: Sort headers.
  10546. * complaints.c: Sort headers.
  10547. * coffread.c: Sort headers.
  10548. * coff-pe-read.c: Sort headers.
  10549. * cli-out.h: Sort headers.
  10550. * cli-out.c: Sort headers.
  10551. * charset.c: Sort headers.
  10552. * c-varobj.c: Sort headers.
  10553. * c-valprint.c: Sort headers.
  10554. * c-typeprint.c: Sort headers.
  10555. * c-lang.c: Sort headers.
  10556. * buildsym.c: Sort headers.
  10557. * buildsym-legacy.c: Sort headers.
  10558. * build-id.h: Sort headers.
  10559. * build-id.c: Sort headers.
  10560. * btrace.c: Sort headers.
  10561. * bsd-uthread.c: Sort headers.
  10562. * breakpoint.h: Sort headers.
  10563. * breakpoint.c: Sort headers.
  10564. * break-catch-throw.c: Sort headers.
  10565. * break-catch-syscall.c: Sort headers.
  10566. * break-catch-sig.c: Sort headers.
  10567. * blockframe.c: Sort headers.
  10568. * block.c: Sort headers.
  10569. * bfin-tdep.c: Sort headers.
  10570. * bfin-linux-tdep.c: Sort headers.
  10571. * bfd-target.c: Sort headers.
  10572. * bcache.c: Sort headers.
  10573. * ax-general.c: Sort headers.
  10574. * ax-gdb.h: Sort headers.
  10575. * ax-gdb.c: Sort headers.
  10576. * avr-tdep.c: Sort headers.
  10577. * auxv.c: Sort headers.
  10578. * auto-load.c: Sort headers.
  10579. * arm-wince-tdep.c: Sort headers.
  10580. * arm-tdep.c: Sort headers.
  10581. * arm-symbian-tdep.c: Sort headers.
  10582. * arm-pikeos-tdep.c: Sort headers.
  10583. * arm-obsd-tdep.c: Sort headers.
  10584. * arm-nbsd-tdep.c: Sort headers.
  10585. * arm-nbsd-nat.c: Sort headers.
  10586. * arm-linux-tdep.c: Sort headers.
  10587. * arm-linux-nat.c: Sort headers.
  10588. * arm-fbsd-tdep.c: Sort headers.
  10589. * arm-fbsd-nat.c: Sort headers.
  10590. * arm-bsd-tdep.c: Sort headers.
  10591. * arch-utils.c: Sort headers.
  10592. * arc-tdep.c: Sort headers.
  10593. * arc-newlib-tdep.c: Sort headers.
  10594. * annotate.h: Sort headers.
  10595. * annotate.c: Sort headers.
  10596. * amd64-windows-tdep.c: Sort headers.
  10597. * amd64-windows-nat.c: Sort headers.
  10598. * amd64-tdep.c: Sort headers.
  10599. * amd64-sol2-tdep.c: Sort headers.
  10600. * amd64-obsd-tdep.c: Sort headers.
  10601. * amd64-obsd-nat.c: Sort headers.
  10602. * amd64-nbsd-tdep.c: Sort headers.
  10603. * amd64-nbsd-nat.c: Sort headers.
  10604. * amd64-nat.c: Sort headers.
  10605. * amd64-linux-tdep.c: Sort headers.
  10606. * amd64-linux-nat.c: Sort headers.
  10607. * amd64-fbsd-tdep.c: Sort headers.
  10608. * amd64-fbsd-nat.c: Sort headers.
  10609. * amd64-dicos-tdep.c: Sort headers.
  10610. * amd64-darwin-tdep.c: Sort headers.
  10611. * amd64-bsd-nat.c: Sort headers.
  10612. * alpha-tdep.c: Sort headers.
  10613. * alpha-obsd-tdep.c: Sort headers.
  10614. * alpha-nbsd-tdep.c: Sort headers.
  10615. * alpha-mdebug-tdep.c: Sort headers.
  10616. * alpha-linux-tdep.c: Sort headers.
  10617. * alpha-linux-nat.c: Sort headers.
  10618. * alpha-bsd-tdep.c: Sort headers.
  10619. * alpha-bsd-nat.c: Sort headers.
  10620. * aix-thread.c: Sort headers.
  10621. * agent.c: Sort headers.
  10622. * addrmap.c: Sort headers.
  10623. * ada-varobj.c: Sort headers.
  10624. * ada-valprint.c: Sort headers.
  10625. * ada-typeprint.c: Sort headers.
  10626. * ada-tasks.c: Sort headers.
  10627. * ada-lang.c: Sort headers.
  10628. * aarch64-tdep.c: Sort headers.
  10629. * aarch64-ravenscar-thread.c: Sort headers.
  10630. * aarch64-newlib-tdep.c: Sort headers.
  10631. * aarch64-linux-tdep.c: Sort headers.
  10632. * aarch64-linux-nat.c: Sort headers.
  10633. * aarch64-fbsd-tdep.c: Sort headers.
  10634. * aarch64-fbsd-nat.c: Sort headers.
  10635. * aarch32-linux-nat.c: Sort headers.
  10636. 2019-04-04 Tom Tromey <tom@tromey.com>
  10637. * varobj.c (varobj_create): Update.
  10638. * rust-exp.y (struct rust_parser) <update_innermost_block,
  10639. lookup_symbol>: New methods.
  10640. (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
  10641. Rename.
  10642. (rust_parser::rust_lookup_type)
  10643. (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
  10644. * printcmd.c (display_command, do_one_display): Update.
  10645. * parser-defs.h (struct parser_state) <parser_state>: Add
  10646. "tracker" parameter.
  10647. (block_tracker): New member.
  10648. (class innermost_block_tracker) <innermost_block_tracker>: Add
  10649. "types" parameter.
  10650. <reset>: Remove method.
  10651. (innermost_block): Don't declare.
  10652. (null_post_parser): Update.
  10653. * parse.c (innermost_block): Remove global.
  10654. (write_dollar_variable): Update.
  10655. (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
  10656. Remove "tracker_types" parameter.
  10657. (parse_expression): Add "tracker" parameter.
  10658. (parse_expression_for_completion): Update.
  10659. (null_post_parser): Add "tracker" parameter.
  10660. * p-exp.y: Update rules.
  10661. * m2-exp.y: Update rules.
  10662. * language.h (struct language_defn) <la_post_parser>: Add
  10663. "tracker" parameter.
  10664. * go-exp.y: Update rules.
  10665. * f-exp.y: Update rules.
  10666. * expression.h (parse_expression, parse_exp_1): Add "tracker"
  10667. parameter.
  10668. * d-exp.y: Update rules.
  10669. * c-exp.y: Update rules.
  10670. * breakpoint.c (set_breakpoint_condition): Create an
  10671. innermost_block_tracker.
  10672. (watch_command_1): Likewise.
  10673. * ada-lang.c (resolve): Add "tracker" parameter.
  10674. (resolve_subexp): Likewise.
  10675. * ada-exp.y (write_var_from_sym): Update.
  10676. 2019-04-04 Tom Tromey <tom@tromey.com>
  10677. * type-stack.h: New file.
  10678. * type-stack.c: New file.
  10679. * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
  10680. type-stack.h.
  10681. (insert_into_type_stack, insert_type, push_type, push_type_int)
  10682. (insert_type_address_space, pop_type, pop_type_int)
  10683. (pop_typelist, pop_type_stack, append_type_stack)
  10684. (push_type_stack, get_type_stack, push_typelist)
  10685. (follow_type_instance_flags, follow_types): Don't declare.
  10686. * parse.c (type_stack): Remove global.
  10687. (parse_exp_in_context): Update.
  10688. (insert_into_type_stack, insert_type, push_type, push_type_int)
  10689. (insert_type_address_space, pop_type, pop_type_int)
  10690. (pop_typelist, pop_type_stack, append_type_stack)
  10691. (push_type_stack, get_type_stack, push_typelist)
  10692. (follow_type_instance_flags, follow_types): Remove (moved to
  10693. type-stack.c).
  10694. * f-exp.y (type_stack): New global.
  10695. Update rules.
  10696. (push_kind_type, f_parse): Update.
  10697. * d-exp.y (type_stack): New global.
  10698. Update rules.
  10699. (d_parse): Update.
  10700. * c-exp.y (struct c_parse_state) <type_stack>: New member.
  10701. Update rules.
  10702. * Makefile.in (COMMON_SFILES): Add type-stack.c.
  10703. (HFILES_NO_SRCDIR): Add type-stack.h.
  10704. 2019-04-04 Tom Tromey <tom@tromey.com>
  10705. * rust-exp.y (rust_parser::lex_identifier, rustyylex)
  10706. (rust_parser::convert_ast_to_expression, rust_parse)
  10707. (rust_lex_test_completion, rust_lex_tests): Update.
  10708. * parser-defs.h (struct expr_completion_state): New.
  10709. (struct parser_state) <parser_state>: Add completion parameter.
  10710. <mark_struct_expression, mark_completion_tag>: New methods.
  10711. <parse_completion, m_completion_state>: New members.
  10712. (prefixify_expression, null_post_parser): Update.
  10713. (mark_struct_expression, mark_completion_tag): Don't declare.
  10714. * parse.c (parse_completion, expout_last_struct)
  10715. (expout_tag_completion_type, expout_completion_name): Remove
  10716. globals.
  10717. (parser_state::mark_struct_expression)
  10718. (parser_state::mark_completion_tag): Now methods.
  10719. (prefixify_expression): Add last_struct parameter.
  10720. (prefixify_subexp): Likewise.
  10721. (parse_exp_1): Update.
  10722. (parse_exp_in_context): Add cstate parameter. Update.
  10723. (parse_expression_for_completion): Create an
  10724. expr_completion_state.
  10725. (null_post_parser): Add "completion" parameter.
  10726. * p-exp.y: Update rules.
  10727. (yylex): Update.
  10728. * language.h (struct language_defn) <la_post_parser>: Add
  10729. "completing" parameter.
  10730. * go-exp.y: Update rules.
  10731. (lex_one_token): Update.
  10732. * expression.h (parse_completion): Don't declare.
  10733. * d-exp.y: Update rules.
  10734. (lex_one_token): Update rules.
  10735. * c-exp.y: Update rules.
  10736. (lex_one_token): Update.
  10737. * ada-lang.c (resolve): Add "parse_completion" parameter.
  10738. (resolve_subexp): Likewise.
  10739. (ada_resolve_function): Likewise.
  10740. 2019-04-04 Tom Tromey <tom@tromey.com>
  10741. * parser-defs.h (struct parser_state) <start_arglist,
  10742. end_arglist>: New methods.
  10743. <arglist_len, m_funcall_chain>: New members.
  10744. (arglist_len, start_arglist, end_arglist): Don't declare.
  10745. * parse.c (arglist_len, funcall_chain): Remove global.
  10746. (start_arglist, end_arglist): Remove functions.
  10747. (parse_exp_in_context): Update.
  10748. * p-exp.y: Update rules.
  10749. * m2-exp.y: Update rules.
  10750. * go-exp.y: Update rules.
  10751. * f-exp.y: Update rules.
  10752. * d-exp.y: Update rules.
  10753. * c-exp.y: Update rules.
  10754. 2019-04-04 Tom Tromey <tom@tromey.com>
  10755. * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
  10756. lex_operator, push_back>: New methods.
  10757. Update all rules.
  10758. (rust_parser::lex_hex, lex_escape): Rename and update.
  10759. (rust_parser::lex_string, rust_parser::lex_identifier): Update.
  10760. (rust_parser::lex_operator): Rename and update.
  10761. (rust_parser::lex_number, rustyylex, rustyyerror)
  10762. (rust_lex_test_init, rust_lex_test_sequence)
  10763. (rust_lex_test_push_back, rust_lex_tests): Update.
  10764. * parser-defs.h (struct parser_state) <parser_state>: Add "input"
  10765. parameter.
  10766. <lexptr, prev_lexptr>: New members.
  10767. (lexptr, prev_lexptr): Don't declare.
  10768. * parse.c (lexptr, prev_lexptr): Remove globals.
  10769. (parse_exp_in_context): Update.
  10770. * p-exp.y (yylex, yyerror): Update.
  10771. * m2-exp.y (parse_number, yylex, yyerror): Update.
  10772. * go-exp.y (lex_one_token, yyerror): Update.
  10773. * f-exp.y (match_string_literal, yylex, yyerror): Update.
  10774. * d-exp.y (lex_one_token, yyerror): Update.
  10775. * c-exp.y (scan_macro_expansion, finished_macro_expansion)
  10776. (lex_one_token, yyerror): Update.
  10777. * ada-lex.l (YY_INPUT): Update.
  10778. (rewind_to_char): Update.
  10779. * ada-exp.y (yyerror): Update.
  10780. 2019-04-04 Tom Tromey <tom@tromey.com>
  10781. * rust-exp.y (rustyylex, rust_lex_tests): Update.
  10782. * parser-defs.h (struct parser_state) <parser_state>: Add new
  10783. parameter.
  10784. <comma_terminates>: New member.
  10785. (comma_terminates): Don't declare global.
  10786. * parse.c (comma_terminates): Remove global.
  10787. (parse_exp_in_context): Update.
  10788. * p-exp.y (yylex): Update.
  10789. * m2-exp.y (yylex): Update.
  10790. * go-exp.y (lex_one_token): Update.
  10791. * f-exp.y (yylex): Update.
  10792. * d-exp.y (lex_one_token): Update.
  10793. * c-exp.y (lex_one_token): Update.
  10794. * ada-lex.l: Update.
  10795. 2019-04-04 Tom Tromey <tom@tromey.com>
  10796. * rust-exp.y (struct rust_parser) <paren_depth>: New member.
  10797. (rustyylex, rust_lex_test_init, rust_lex_test_one)
  10798. (rust_lex_test_sequence, rust_lex_test_push_back): Update.
  10799. * parser-defs.h (paren_depth): Don't declare.
  10800. * parse.c (paren_depth): Remove global.
  10801. (parse_exp_in_context): Update.
  10802. * p-exp.y (paren_depth): New global.
  10803. (pascal_parse): Initialize it.
  10804. * m2-exp.y (paren_depth): New global.
  10805. (m2_parse): Initialize it.
  10806. * go-exp.y (paren_depth): New global.
  10807. (go_parse): Initialize it.
  10808. * f-exp.y (paren_depth): New global.
  10809. (f_parse): Initialize it.
  10810. * d-exp.y (paren_depth): New global.
  10811. (d_parse): Initialize it.
  10812. * c-exp.y (paren_depth): New global.
  10813. (c_parse): Initialize it.
  10814. * ada-lex.l (paren_depth): New global.
  10815. (lexer_init): Initialize it.
  10816. 2019-04-04 Tom Tromey <tom@tromey.com>
  10817. * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
  10818. (rust_parser::convert_ast_to_type)
  10819. (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
  10820. * parser-defs.h (struct parser_state) <parser_state>: Add
  10821. parameters. Initialize new members.
  10822. <expression_context_block, expression_context_pc>: New members.
  10823. * parse.c (expression_context_block, expression_context_pc):
  10824. Remove globals.
  10825. (parse_exp_in_context): Update.
  10826. * p-exp.y: Update all rules.
  10827. (yylex): Update.
  10828. * m2-exp.y: Update all rules.
  10829. (yylex): Update.
  10830. * go-exp.y (yylex): Update.
  10831. * f-exp.y (yylex): Update.
  10832. * d-exp.y: Update all rules.
  10833. (yylex): Update.
  10834. * c-exp.y: Update all rules.
  10835. (lex_one_token, classify_name, yylex, c_parse): Update.
  10836. * ada-exp.y (write_var_or_type, write_name_assoc): Update.
  10837. 2019-04-04 Tom Tromey <tom@tromey.com>
  10838. * gdbarch.h, gdbarch.c: Rebuild.
  10839. * gdbarch.sh (dtrace_parse_probe_argument): Change type.
  10840. * stap-probe.h:
  10841. (struct stap_parse_info): Replace "parser_state" with
  10842. "expr_builder".
  10843. * parser-defs.h (struct expr_builder): Rename from "parser_state".
  10844. (parser_state): New class.
  10845. * parse.c (expr_builder): Rename.
  10846. (expr_builder::release): Rename.
  10847. (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
  10848. (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
  10849. (write_exp_elt_longcst, write_exp_elt_floatcst)
  10850. (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
  10851. (write_exp_string_vector, write_exp_bitstring)
  10852. (write_exp_msymbol, mark_struct_expression)
  10853. (write_dollar_variable)
  10854. (insert_type_address_space, increase_expout_size): Replace
  10855. "parser_state" with "expr_builder".
  10856. * dtrace-probe.c: Replace "parser_state" with "expr_builder".
  10857. * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
  10858. "parser_state" with "expr_builder".
  10859. 2019-04-04 Tom Tromey <tom@tromey.com>
  10860. * rust-exp.y: Replace "parse_language" with method call.
  10861. * p-exp.y:
  10862. (yylex): Replace "parse_language" with method call.
  10863. * m2-exp.y:
  10864. (yylex): Replace "parse_language" with method call.
  10865. * go-exp.y (classify_name): Replace "parse_language" with method
  10866. call.
  10867. * f-exp.y (yylex): Replace "parse_language" with method call.
  10868. * d-exp.y (lex_one_token): Replace "parse_language" with method
  10869. call.
  10870. * c-exp.y:
  10871. (lex_one_token, classify_name, yylex): Replace "parse_language"
  10872. with method call.
  10873. * ada-exp.y (find_primitive_type, type_char)
  10874. (type_system_address): Replace "parse_language" with method call.
  10875. 2019-04-04 Tom Tromey <tom@tromey.com>
  10876. * rust-exp.y: Replace "parse_gdbarch" with method call.
  10877. * parse.c (write_dollar_variable, insert_type_address_space):
  10878. Replace "parse_gdbarch" with method call.
  10879. * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
  10880. call.
  10881. * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
  10882. call.
  10883. * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
  10884. "parse_gdbarch" with method call.
  10885. * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
  10886. with method call.
  10887. * f-exp.y (parse_type, parse_f_type, yylex): Replace
  10888. "parse_gdbarch" with method call.
  10889. * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
  10890. "parse_gdbarch" with method call.
  10891. * c-exp.y (parse_type, parse_number, classify_name): Replace
  10892. "parse_gdbarch" with method call.
  10893. * ada-lex.l: Replace "parse_gdbarch" with method call.
  10894. * ada-exp.y (parse_type, find_primitive_type, type_char)
  10895. (type_system_address): Replace "parse_gdbarch" with method call.
  10896. 2019-04-04 Tom Tromey <tom@tromey.com>
  10897. * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
  10898. * stap-probe.c (stap_parse_argument): Update.
  10899. * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
  10900. initial_size parameter.
  10901. * rust-exp.y (rust_lex_tests): Update.
  10902. * parse.c (parser_state): Update.
  10903. (parse_exp_in_context): Update.
  10904. * parser-defs.h (struct parser_state) <parser_state>: Remove
  10905. "initial_size" parameter.
  10906. 2019-04-04 Tom Tromey <tom@tromey.com>
  10907. * parser-defs.h (increase_expout_size): Don't declare.
  10908. * parse.c (increase_expout_size): Now static.
  10909. 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
  10910. * gnu-nat.c (gnu_nat_target::wait): Fix
  10911. target_waitstatus_to_string call.
  10912. 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
  10913. * eval.c (evaluate_subexp_standard): Handle internal functions
  10914. during Fortran function call handling.
  10915. 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
  10916. * NEWS: Mention new internal functions.
  10917. * dwarf2read.c (dwarf2_init_complex_target_type): New function.
  10918. (read_base_type): Use dwarf2_init_complex_target_type.
  10919. * value.c (creal_internal_fn): New function.
  10920. (cimag_internal_fn): New function.
  10921. (_initialize_values): Register new internal functions.
  10922. 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  10923. * infrun.c (stop_all_threads): If debug_infrun, always
  10924. trace the wait status after wait_one, using
  10925. target_waitstatus_to_string and target_pid_to_str.
  10926. (handle_inferior_event): Replace various trace of
  10927. wait status kind by a single trace.
  10928. * gnu-nat.c (gnu_nat_target::wait): Replace local
  10929. wait status kind image by target_waitstatus_to_string.
  10930. * target/waitstatus.c (target_waitstatus_to_string): Fix
  10931. obsolete comment.
  10932. 2019-04-01 Tom Tromey <tromey@adacore.com>
  10933. PR symtab/23331:
  10934. * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
  10935. 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
  10936. Pedro Alves <palves@redhat.com>
  10937. * top.c (quit_force): Call 'finalize_values'.
  10938. * value.c (finalize_values): New function.
  10939. * value.h (finalize_values): Declare.
  10940. 2019-03-30 Eli Zaretskii <eliz@gnu.org>
  10941. * NEWS: Announce $_gdb_major and $_gdb_minor.
  10942. * top.c (init_gdb_version_vars): New function.
  10943. (gdb_init): Call init_gdb_version_vars.
  10944. 2019-03-29 Tom Tromey <tromey@adacore.com>
  10945. * printcmd.c (_initialize_printcmd): Add usage lines. Update some
  10946. help text. Remove dead code.
  10947. 2019-03-29 Keith Seitz <keiths@redhat.com>
  10948. From Siddhesh Poyarekar:
  10949. * f-lang.h (f77_get_upperbound): Return LONGEST.
  10950. (f77_get_lowerbound): Likewise.
  10951. * f-typeprint.c (f_type_print_varspec_suffix): Expand
  10952. UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
  10953. print them.
  10954. (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
  10955. plongest to format print it.
  10956. * f-valprint.c (f77_get_lowerbound): Return LONGEST.
  10957. (f77_get_upperbound): Likewise.
  10958. (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
  10959. LOWER_BOUND to LONGEST.
  10960. (f77_create_arrayprint_offset_tbl): Likewise.
  10961. 2019-03-29 Keith Seitz <keiths@redhat.com>
  10962. * ada-lang.c (ada_template_to_fixed_record_type_1): Use
  10963. %s/pulongest for TYPE_LENGTH instead of %d in format
  10964. strings.
  10965. * ada-typerint.c (ada_print_type): Likewise.
  10966. * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
  10967. * compile/compile-c-support.c (generate_register_struct): Likewise.
  10968. * gdbtypes.c (recursive_dump_type): Likewise.
  10969. * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
  10970. * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
  10971. instead of %d in format strings.
  10972. * riscv-tdep.c (riscv_type_alignment): Cast second argument
  10973. to std::min to ULONGEST.
  10974. * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
  10975. instead of %d in format strings.
  10976. * tracepoint.c (info_scope_command): Likewise.
  10977. * typeprint.c (print_offset_data::update)
  10978. (print_offset_data::finish): Likewise.
  10979. * xtensa-tdep.c (xtensa_store_return_value)
  10980. (xtensa_push_dummy_call): Likewise.
  10981. 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
  10982. * windows-nat.c (display_selector): Fixed format specifications
  10983. for 64-bit Cygwin.
  10984. 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  10985. * infrun.c (follow_exec): Call target_terminal::ours_for_output.
  10986. 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
  10987. * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
  10988. * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
  10989. * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
  10990. (nios2_linux_init_abi): Install it.
  10991. 2019-03-28 Alan Hayward <alan.hayward@arm.com>
  10992. * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
  10993. 2019-03-28 Alan Hayward <alan.hayward@arm.com>
  10994. * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
  10995. 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  10996. Tom Tromey <tromey@adacore.com>
  10997. * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
  10998. 2019-03-26 Joel Brobecker <brobecker@adacore.com>
  10999. * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
  11000. (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
  11001. method to compute the bounds of range types. Also print "[evaluated]"
  11002. if the bounds' values come from a dynamic evaluation.
  11003. 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
  11004. * cp-valprint.c (cp_print_value_fields): Don't print trailing
  11005. whitespace when pretty printing is on.
  11006. 2019-03-26 Alan Hayward <alan.hayward@arm.com>
  11007. * ppc-linux-nat.c: Add include.
  11008. 2019-03-26 Alan Hayward <alan.hayward@arm.com>
  11009. * NEWS: Mention AArch64 Pointer Authentication.
  11010. 2019-03-26 Alan Hayward <alan.hayward@arm.com>
  11011. * arm-linux-nat.c: Add include.
  11012. 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
  11013. * source-cache.c (source_cache::get_source_lines): Re-read
  11014. fullname after calling open_source_file.
  11015. 2019-03-25 John Baldwin <jhb@FreeBSD.org>
  11016. * NEWS: Mention TLS support for FreeBSD.
  11017. 2019-03-25 Tom Tromey <tromey@adacore.com>
  11018. * minsyms.c (BUNCH_SIZE): Update comment.
  11019. (~minimal_symbol_reader): Remove old comment.
  11020. (compact_minimal_symbols): Update comment.
  11021. (minimal_symbol_reader::install): Remove old comment. Update
  11022. other comments.
  11023. 2019-03-25 Alan Hayward <alan.hayward@arm.com>
  11024. * s390-linux-nat.c: Add include.
  11025. 2019-03-25 Alan Hayward <alan.hayward@arm.com>
  11026. * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
  11027. Call linux_get_hwcap.
  11028. * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
  11029. Likewise.
  11030. (aarch64_linux_get_hwcap): Remove function.
  11031. * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
  11032. declaration.
  11033. * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
  11034. linux_get_hwcap.
  11035. * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
  11036. * linux-tdep.c (linux_get_hwcap): Add function.
  11037. (linux_get_hwcap2): Likewise.
  11038. * linux-tdep.h (linux_get_hwcap): Add declaration.
  11039. (linux_get_hwcap2): Likewise.
  11040. * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
  11041. (ppc_linux_get_hwcap2): Likewise.
  11042. (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
  11043. linux_get_hwcap.
  11044. (ppc_linux_nat_target::insert_watchpoint): Likewise.
  11045. (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
  11046. (ppc_linux_nat_target::read_description): Likewise.
  11047. * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
  11048. * s390-linux-nat.c: Likewise.
  11049. * s390-linux-tdep.c (s390_core_read_description): Likewise.
  11050. 2019-03-24 Tom Tromey <tom@tromey.com>
  11051. * ada-lang.c (standard_lookup): Simplify initialization.
  11052. (ada_lookup_symbol_nonlocal): Simplify return.
  11053. * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
  11054. * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
  11055. * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
  11056. * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
  11057. initialization.
  11058. * solib.c (solib_global_lookup): Simplify.
  11059. * symtab.c (null_block_symbol): Remove.
  11060. (symbol_cache_lookup): Simplify returns.
  11061. (lookup_language_this): Simplify returns.
  11062. (lookup_symbol_aux): Simplify return.
  11063. (lookup_local_symbol): Simplify returns.
  11064. (lookup_global_symbol_from_objfile): Simplify return.
  11065. (lookup_symbol_in_objfile_symtabs)
  11066. (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
  11067. (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
  11068. (lookup_static_symbol, lookup_global_symbol): Simplify return.
  11069. * cp-namespace.c (cp_lookup_bare_symbol)
  11070. (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
  11071. (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
  11072. (cp_lookup_nested_symbol): Don't use null_block_symbol.
  11073. (cp_lookup_symbol_via_imports): Simplify initialization.
  11074. (find_symbol_in_baseclass): Likewise.
  11075. * symtab.h (null_block_symbol): Remove.
  11076. * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
  11077. (d_lookup_nested_symbol, d_lookup_symbol_imports)
  11078. (d_lookup_symbol_module): Likewise.
  11079. (find_symbol_in_baseclass): Simplify initialization.
  11080. 2019-03-24 Tom Tromey <tom@tromey.com>
  11081. * expression.h: Don't include symtab.h.
  11082. (struct block): Forward declare.
  11083. 2019-03-24 Tom Tromey <tom@tromey.com>
  11084. * c-exp.y (typebase): Remove casts.
  11085. * gdbtypes.c (lookup_unsigned_typename, )
  11086. (lookup_signed_typename): Remove cast.
  11087. * eval.c (parse_to_comma_and_eval): Remove cast.
  11088. * parse.c (write_dollar_variable): Remove cast.
  11089. * block.h (struct block) <superblock>: Now const.
  11090. * symfile-debug.c (debug_qf_map_matching_symbols): Update.
  11091. * psymtab.c (psym_map_matching_symbols): Make "block" const.
  11092. (map_block): Make "block" const.
  11093. * symfile.h (struct quick_symbol_functions)
  11094. <map_matching_symbols>: Constify block argument to "callback".
  11095. * symtab.c (basic_lookup_transparent_type_quick): Make "block"
  11096. const.
  11097. (find_pc_sect_compunit_symtab): Make "b" const.
  11098. (find_symbol_at_address): Likewise.
  11099. (search_symbols): Likewise.
  11100. * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
  11101. (dw2_debug_names_lookup_symbol): Likewise.
  11102. (dw2_map_matching_symbols): Update.
  11103. * p-valprint.c (pascal_val_print): Remove "block".
  11104. * ada-lang.c (ada_add_global_exceptions): Make "b" const.
  11105. (aux_add_nonlocal_symbols): Make "block" const.
  11106. (resolve_subexp): Remove cast.
  11107. * linespec.c (iterate_over_all_matching_symtabs): Make "block"
  11108. const.
  11109. (iterate_over_file_blocks): Likewise.
  11110. * f-exp.y (%union) <bval>: Remove.
  11111. * coffread.c (patch_opaque_types): Make "b" const.
  11112. * spu-tdep.c (spu_catch_start): Make "block" const.
  11113. * c-valprint.c (print_unpacked_pointer): Remove "block".
  11114. * symmisc.c (dump_symtab_1): Make "b" const.
  11115. (block_depth): Make "block" const.
  11116. * d-exp.y (%union) <bval>: Remove.
  11117. * cp-support.h (cp_lookup_rtti_type): Update.
  11118. * cp-support.c (cp_lookup_rtti_type): Make "block" const.
  11119. * psymtab.c (psym_lookup_symbol): Make "block" const.
  11120. (maintenance_check_psymtabs): Make "b" const.
  11121. * python/py-framefilter.c (extract_sym): Make "sym_block" const.
  11122. (enumerate_locals, enumerate_args): Update.
  11123. * python/py-symtab.c (stpy_global_block): Make "block" const.
  11124. (stpy_static_block): Likewise.
  11125. * inline-frame.c (block_starting_point_at): Make "new_block"
  11126. const.
  11127. * block.c (find_block_in_blockvector): Make return type const.
  11128. (blockvector_for_pc_sect): Make "b" const.
  11129. (find_block_in_blockvector): Make "b" const.
  11130. 2019-03-23 Tom Tromey <tom@tromey.com>
  11131. * varobj.c (varobj_create): Update.
  11132. * symfile.c (clear_symtab_users): Don't reset innermost_block.
  11133. * printcmd.c (display_command, do_one_display): Don't reset
  11134. innermost_block.
  11135. * parser-defs.h (enum innermost_block_tracker_type): Move to
  11136. expression.h.
  11137. (innermost_block): Update comment.
  11138. * parse.c (parse_exp_1): Add tracker_types parameter.
  11139. (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
  11140. tracker_types parameter. Reset innermost_block.
  11141. (parse_exp_in_context): Remove.
  11142. (parse_expression_for_completion): Update.
  11143. * objfiles.c (~objfile): Don't reset expression_context_block or
  11144. innermost_block.
  11145. * expression.h (enum innermost_block_tracker_type): Move from
  11146. parser-defs.h.
  11147. (parse_exp_1): Add tracker_types parameter.
  11148. * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
  11149. reset innermost_block.
  11150. 2019-03-23 Tom Tromey <tom@tromey.com>
  11151. * objfiles.h: Include bcache.h.
  11152. 2019-03-23 Tom Tromey <tom@tromey.com>
  11153. * linespec.c (get_current_search_block): Use
  11154. scoped_restore_current_language.
  11155. * symmisc.c (dump_symtab): Use scoped_restore_current_language.
  11156. 2019-03-22 Alan Hayward <alan.hayward@arm.com>
  11157. Jiong Wang <jiong.wang@arm.com>
  11158. * aarch64-linux-tdep.c
  11159. (aarch64_linux_iterate_over_regset_sections): Check for pauth
  11160. section.
  11161. * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
  11162. 2019-03-22 Alan Hayward <alan.hayward@arm.com>
  11163. Jiong Wang <jiong.wang@arm.com>
  11164. * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
  11165. instructions.
  11166. (aarch64_analyze_prologue_test): Add PACIASP test.
  11167. (aarch64_prologue_prev_register): Unmask PC value.
  11168. 2019-03-22 Alan Hayward <alan.hayward@arm.com>
  11169. Jiong Wang <jiong.wang@arm.com>
  11170. * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
  11171. (aarch64_dwarf2_prev_register): Unmask PC value.
  11172. (aarch64_dwarf2_frame_init_reg): Init pauth registers.
  11173. (aarch64_execute_dwarf_cfa_vendor_op): Check for
  11174. DW_CFA_AARCH64_negate_ra_state.
  11175. (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
  11176. 2019-03-22 Alan Hayward <alan.hayward@arm.com>
  11177. Jiong Wang <jiong.wang@arm.com>
  11178. * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
  11179. registers.
  11180. (aarch64_pseudo_register_name): Likewise.
  11181. (aarch64_pseudo_register_type): Likewise.
  11182. (aarch64_pseudo_register_reggroup_p): Likewise.
  11183. (aarch64_gdbarch_init): Add pauth registers.
  11184. * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
  11185. (AARCH64_DWARF_PAUTH_DMASK): Likewise.
  11186. (AARCH64_DWARF_PAUTH_CMASK): Likewise.
  11187. (struct gdbarch_tdep): Add regnum for ra_state.
  11188. 2019-03-22 Alan Hayward <alan.hayward@arm.com>
  11189. Jiong Wang <jiong.wang@arm.com>
  11190. * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
  11191. 2019-03-22 Alan Hayward <alan.hayward@arm.com>
  11192. Jiong Wang <jiong.wang@arm.com>
  11193. * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
  11194. function.
  11195. (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
  11196. * aarch64-tdep.c (aarch64_cannot_store_register): New function.
  11197. (aarch64_gdbarch_init): Add puth registers.
  11198. * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
  11199. * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
  11200. (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
  11201. 2019-03-22 Alan Hayward <alan.hayward@arm.com>
  11202. Jiong Wang <jiong.wang@arm.com>
  11203. * aarch64-linux-nat.c
  11204. (aarch64_linux_nat_target::read_description): Read PACA hwcap.
  11205. * aarch64-linux-tdep.c
  11206. (aarch64_linux_core_read_description): Likewise.
  11207. (aarch64_linux_get_hwcap): New function.
  11208. * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
  11209. (aarch64_linux_get_hwcap): New declaration.
  11210. 2019-03-22 Alan Hayward <alan.hayward@arm.com>
  11211. Jiong Wang <jiong.wang@arm.com>
  11212. * aarch64-linux-nat.c
  11213. (aarch64_linux_nat_target::read_description): Add pauth param.
  11214. * aarch64-linux-tdep.c
  11215. (aarch64_linux_core_read_description): Likewise.
  11216. * aarch64-tdep.c (struct target_desc): Add in pauth.
  11217. (aarch64_read_description): Add pauth param.
  11218. (aarch64_gdbarch_init): Likewise.
  11219. * aarch64-tdep.h (aarch64_read_description): Likewise.
  11220. * arch/aarch64.c (aarch64_create_target_description): Likewise.
  11221. * arch/aarch64.h (aarch64_create_target_description): Likewise.
  11222. * features/Makefile: Add new files.
  11223. * features/aarch64-pauth.c: New file.
  11224. * features/aarch64-pauth.xml: New file.
  11225. 2019-03-20 Tom Tromey <tromey@adacore.com>
  11226. * infrun.c (handle_inferior_event): Rename from
  11227. handle_inferior_event_1. Create a scoped_value_mark.
  11228. (handle_inferior_event): Remove.
  11229. 2019-03-19 Tom Tromey <tromey@adacore.com>
  11230. * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
  11231. * infrun.h (print_stop_event): Add "displays" parameter.
  11232. * infrun.c (print_stop_event): Add "displays" parameter.
  11233. 2019-03-19 Pedro Alves <palves@redhat.com>
  11234. * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
  11235. (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
  11236. to -1. Fix TABs vs spaces.
  11237. (tui_ui_out::tui_ui_out): Don't initialize fields here.
  11238. * tui/tui-out.h (tui_ui_out) Add intro comments.
  11239. <m_line, m_start_of_line>: In-class initialize, and add describing
  11240. comment.
  11241. 2019-03-18 Alan Hayward <alan.hayward@arm.com>
  11242. * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
  11243. variable names.
  11244. (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
  11245. 2019-03-18 Pedro Alves <palves@redhat.com>
  11246. Eli Zaretskii <eliz@gnu.org>
  11247. * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
  11248. m_line and m_start_of_line.
  11249. 2019-03-18 Eli Zaretskii <eliz@gnu.org>
  11250. * tui/tui-io.c (gdb_wgetch): Don't echo CR.
  11251. (tui_getc): When gdb_wgetch returns a CR, behave the same as when
  11252. it returns a newline. This fixes a regression in TU mode, whereby
  11253. the next line is output on the same screen line as the user input.
  11254. 2019-03-18 Tom Tromey <tromey@adacore.com>
  11255. * minsyms.c (minimal_symbol_reader::install): Remove call to
  11256. obstack_blank.
  11257. 2019-03-18 Pedro Alves <palves@redhat.com>
  11258. * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
  11259. New globals.
  11260. (apply_style): New, factored out from ...
  11261. (apply_ansi_escape): ... this. Handle reverse video mode.
  11262. (tui_set_reverse_mode): New function.
  11263. * tui/tui-io.h (tui_set_reverse_mode): New declaration.
  11264. * tui/tui-winsource.c (tui_show_source_line): Use
  11265. tui_set_reverse_mode instead of setting A_STANDOUT.
  11266. * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
  11267. New setter methods.
  11268. 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
  11269. * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
  11270. Handle tabs.
  11271. 2019-03-18 Tom Tromey <tromey@adacore.com>
  11272. * ada-lang.c (empty_array): Add "high" parameter.
  11273. (ada_evaluate_subexp): Update.
  11274. 2019-03-17 Sergei Trofimovich <siarheit@google.com>
  11275. * unittests/string_view-selftests.c: Define
  11276. _initialize_string_view_selftests unconditionally.
  11277. 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
  11278. PR gdb/24350
  11279. * windows-nat.c (windows_make_so): Remove unused text_vma variable.
  11280. 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
  11281. PR gdb/24351
  11282. * windows-nat.c (display_selector): Fix format specifiers.
  11283. 2019-03-17 Eli Zaretskii <eliz@gnu.org>
  11284. * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
  11285. tui_refill_source_window instead of tui_refresh_win, to update the
  11286. current execution line. This fixes redisplay of the current line
  11287. when stepping through the code with "next" or "step".
  11288. 2019-03-16 Eli Zaretskii <eliz@gnu.org>
  11289. * source-cache.c (source_cache::get_source_lines): Call
  11290. find_source_lines to initialize s->nlines. This fixes vertical
  11291. scrolling of TUI source window when the DOWN arrow is pressed.
  11292. 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  11293. * auto-load.c (_initialize_auto_load): Fix 'This options has'.
  11294. linux-thread-db.c (_initialize_thread_db): Likewise.
  11295. 2019-03-16 Eli Zaretskii <eliz@gnu.org>
  11296. * tui/tui-winsource.c (tui_show_source_line): Revert "Use
  11297. wclrtoeol in tui_show_source_line". This reverts changes made in
  11298. commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
  11299. 2019-03-15 Tom Tromey <tom@tromey.com>
  11300. * symtab.h (struct minimal_symbol): Derive from
  11301. general_symbol_info.
  11302. (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
  11303. (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
  11304. (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
  11305. (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
  11306. (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
  11307. (MSYMBOL_SEARCH_NAME): Update.
  11308. (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
  11309. * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
  11310. * minsyms.c (minimal_symbol_reader::record_full): Update.
  11311. 2019-03-15 Tom Tromey <tom@tromey.com>
  11312. * minsyms.c (minimal_symbol_reader::install): Use memcpy.
  11313. 2019-03-15 Tom Tromey <tom@tromey.com>
  11314. * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
  11315. unique_xmalloc_ptr.
  11316. (objfile::msymbols_range::begin, objfile::msymbols_range::end):
  11317. Update.
  11318. * minsyms.c (lookup_minimal_symbol_by_pc_section)
  11319. (build_minimal_symbol_hash_tables)
  11320. (minimal_symbol_reader::install): Update.
  11321. 2019-03-15 Tom Tromey <tom@tromey.com>
  11322. * symtab.c (create_demangled_names_hash): Update.
  11323. (symbol_set_names): Update.
  11324. * objfiles.h (struct objfile_per_bfd_storage)
  11325. <demangled_names_hash>: Now an htab_up.
  11326. * objfiles.c (objfile_per_bfd_storage): Simplify.
  11327. 2019-03-15 Tom Tromey <tom@tromey.com>
  11328. * objfiles.h (struct objfile_per_bfd_storage): Declare
  11329. destructor.
  11330. * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
  11331. New.
  11332. (get_objfile_bfd_data): Use new. Don't initialize
  11333. language_of_main.
  11334. (free_objfile_per_bfd_storage): Remove.
  11335. (objfile_bfd_data_free, objfile::~objfile): Use delete.
  11336. 2019-03-15 Tom Tromey <tom@tromey.com>
  11337. * symfile.c (reread_symbols): Update.
  11338. * objfiles.c (objfile::objfile): Update.
  11339. * minsyms.h (terminate_minimal_symbol_table): Don't declare.
  11340. * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
  11341. comment.
  11342. (minimal_symbol_reader::install): Update.
  11343. (terminate_minimal_symbol_table): Remove.
  11344. * jit.c (jit_object_close_impl): Update.
  11345. 2019-03-15 Tom Tromey <tom@tromey.com>
  11346. * minsyms.c (minimal_symbol_reader::record_full): Remove some
  11347. initializations.
  11348. 2019-03-15 Tom Tromey <tom@tromey.com>
  11349. * objfiles.h (struct objfile_per_bfd_storage)
  11350. <demangled_hash_languages>: Now a bitset.
  11351. * minsyms.c (add_minsym_to_demangled_hash_table): Update.
  11352. (lookup_minimal_symbol): Update.
  11353. 2019-03-15 Tom Tromey <tom@tromey.com>
  11354. * minsyms.h (class minimal_symbol_reader) <record_with_info>:
  11355. Don't return the symbol.
  11356. * coffread.c (record_minimal_symbol): Use record_full.
  11357. 2019-03-14 Eli Zaretskii <eliz@gnu.org>
  11358. The MS-Windows port of ncurses fails to switch to a color pair if
  11359. one or both of the colors are the implicit default colors. This
  11360. change records the default colors when TUI is initialized, and
  11361. then specifies them explicitly when a color pair uses the default
  11362. colors. This allows color styling in TUI mode on MS-Windows.
  11363. * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
  11364. ncurses_norm_attr.
  11365. (tui_initialize_io) [__MINGW32__]: Record the default terminal
  11366. colors in ncurses_norm_attr.
  11367. (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
  11368. "none", replace it with the default color recorded in
  11369. ncurses_norm_attr.
  11370. 2019-03-14 Tom Tromey <tromey@adacore.com>
  11371. * source-cache.h (class source_cache) <get_source_lines>: Return
  11372. std::string.
  11373. * source-cache.c (source_cache::extract_lines): Handle case where
  11374. first_pos==npos. Return std::string.
  11375. (source_cache::get_source_lines): Update.
  11376. 2019-03-14 Tom Tromey <tromey@adacore.com>
  11377. * NEWS: Add item for "style sources" commands.
  11378. * source-cache.c (source_cache::get_source_lines): Check
  11379. source_styling.
  11380. * cli/cli-style.c (source_styling): New global.
  11381. (_initialize_cli_style): Add "style sources" commands.
  11382. (show_style_sources): New function.
  11383. * cli/cli-style.h (source_styling): Declare.
  11384. 2019-03-14 Pedro Alves <palves@redhat.com>
  11385. Tom Tromey <tromey@adacore.com>
  11386. * tui/tui-winsource.h (tui_refill_source_window): Declare.
  11387. * tui/tui-winsource.c (tui_refill_source_window): New function,
  11388. from...
  11389. (tui_horizontal_source_scroll): ... here. Move some logic.
  11390. * cli/cli-style.c (set_style_enabled): Notify new observable.
  11391. * tui/tui-hooks.c (tui_redisplay_source): New function.
  11392. (tui_attach_detach_observers): Attach or detach
  11393. tui_redisplay_source.
  11394. * observable.h (source_styling_changed): New observable.
  11395. * observable.c: Define source_styling_changed observable.
  11396. 2019-03-13 Tom Tromey <tromey@adacore.com>
  11397. * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
  11398. (i386_gnu_nat_target::store_registers): Update.
  11399. * target-debug.h (target_debug_print_std_string): New macro.
  11400. * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
  11401. * windows-tdep.c (display_one_tib): Update.
  11402. * tui/tui-stack.c (tui_make_status_line): Update.
  11403. * top.c (print_inferior_quit_action): Update.
  11404. * thread.c (thr_try_catch_cmd): Update.
  11405. (add_thread_with_info): Update.
  11406. (thread_target_id_str): Update.
  11407. (thr_try_catch_cmd): Update.
  11408. (thread_command): Update.
  11409. (thread_find_command): Update.
  11410. * record-btrace.c (record_btrace_target::info_record)
  11411. (record_btrace_resume_thread, record_btrace_target::resume)
  11412. (record_btrace_cancel_resume, record_btrace_step_thread)
  11413. (record_btrace_target::wait, record_btrace_target::wait)
  11414. (record_btrace_target::wait, record_btrace_target::stop): Update.
  11415. * progspace.c (print_program_space): Update.
  11416. * process-stratum-target.c
  11417. (process_stratum_target::thread_address_space): Update.
  11418. * linux-fork.c (linux_fork_mourn_inferior)
  11419. (detach_checkpoint_command, info_checkpoints_command)
  11420. (linux_fork_context): Update.
  11421. (linux_fork_detach): Update.
  11422. (class scoped_switch_fork_info): Update.
  11423. (delete_checkpoint_command): Update.
  11424. * infrun.c (follow_fork_inferior): Update.
  11425. (follow_fork_inferior): Update.
  11426. (proceed_after_vfork_done): Update.
  11427. (handle_vfork_child_exec_or_exit): Update.
  11428. (follow_exec): Update.
  11429. (displaced_step_prepare_throw): Update.
  11430. (displaced_step_restore): Update.
  11431. (start_step_over): Update.
  11432. (resume_1): Update.
  11433. (clear_proceed_status_thread): Update.
  11434. (proceed): Update.
  11435. (print_target_wait_results): Update.
  11436. (do_target_wait): Update.
  11437. (context_switch): Update.
  11438. (stop_all_threads): Update.
  11439. (restart_threads): Update.
  11440. (finish_step_over): Update.
  11441. (handle_signal_stop): Update.
  11442. (switch_back_to_stepped_thread): Update.
  11443. (keep_going_pass_signal): Update.
  11444. (print_exited_reason): Update.
  11445. (normal_stop): Update.
  11446. * inferior.c (inferior_pid_to_str): Change return type.
  11447. (print_selected_inferior): Update.
  11448. (add_inferior): Update.
  11449. (detach_inferior): Update.
  11450. * dummy-frame.c (fprint_dummy_frames): Update.
  11451. * dcache.c (dcache_info_1): Update.
  11452. * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
  11453. (btrace_fetch, btrace_clear): Update.
  11454. * linux-tdep.c (linux_core_pid_to_str): Change return type.
  11455. * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
  11456. type.
  11457. * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
  11458. * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
  11459. * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
  11460. * gdbarch.c, gdbarch.h: Rebuild.
  11461. * gdbarch.sh (core_pid_to_str): Change return type.
  11462. * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
  11463. return type.
  11464. (windows_nat_target::pid_to_str): Change return type.
  11465. (windows_delete_thread): Update.
  11466. (windows_nat_target::attach): Update.
  11467. (windows_nat_target::files_info): Update.
  11468. * target-delegates.c: Rebuild.
  11469. * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
  11470. return type.
  11471. (sol_thread_target::pid_to_str): Change return type.
  11472. * remote.c (class remote_target) <pid_to_str>: Change return
  11473. type.
  11474. (remote_target::pid_to_str): Change return type.
  11475. (extended_remote_target::attach, remote_target::remote_stop_ns)
  11476. (remote_target::remote_notif_remove_queued_reply)
  11477. (remote_target::push_stop_reply, remote_target::disable_btrace):
  11478. Update.
  11479. (extended_remote_target::attach): Update.
  11480. * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
  11481. type.
  11482. (gdbsim_target::pid_to_str): Change return type.
  11483. * ravenscar-thread.c (struct ravenscar_thread_target)
  11484. <pid_to_str>: Change return type.
  11485. (ravenscar_thread_target::pid_to_str): Change return type.
  11486. * procfs.c (class procfs_target) <pid_to_str>: Change return
  11487. type.
  11488. (procfs_target::pid_to_str): Change return type.
  11489. (procfs_target::attach): Update.
  11490. (procfs_target::detach): Update.
  11491. (procfs_target::fetch_registers): Update.
  11492. (procfs_target::store_registers): Update.
  11493. (procfs_target::wait): Update.
  11494. (procfs_target::files_info): Update.
  11495. * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
  11496. * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
  11497. return type.
  11498. (nto_procfs_target::pid_to_str): Change return type.
  11499. (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
  11500. * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
  11501. return type.
  11502. * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
  11503. (exit_lwp): Update.
  11504. (attach_proc_task_lwp_callback, get_detach_signal)
  11505. (detach_one_lwp, resume_lwp, linux_nat_target::resume)
  11506. (linux_nat_target::resume, wait_lwp, stop_callback)
  11507. (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
  11508. (save_stop_reason, select_event_lwp, linux_nat_filter_event)
  11509. (linux_nat_wait_1, resume_stopped_resumed_lwps)
  11510. (linux_nat_target::wait, linux_nat_stop_lwp): Update.
  11511. * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
  11512. type.
  11513. (inf_ptrace_target::attach): Update.
  11514. (inf_ptrace_target::files_info): Update.
  11515. * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
  11516. type.
  11517. (go32_nat_target::pid_to_str): Change return type.
  11518. * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
  11519. (gnu_nat_target::wait): Update.
  11520. (gnu_nat_target::wait): Update.
  11521. (gnu_nat_target::resume): Update.
  11522. * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
  11523. (fbsd_nat_target::wait): Update.
  11524. * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
  11525. type.
  11526. (darwin_nat_target::attach): Update.
  11527. * corelow.c (class core_target) <pid_to_str>: Change return type.
  11528. (core_target::pid_to_str): Change return type.
  11529. * target.c (normal_pid_to_str): Change return type.
  11530. (default_pid_to_str): Likewise.
  11531. (target_pid_to_str): Change return type.
  11532. (target_translate_tls_address): Update.
  11533. (target_announce_detach): Update.
  11534. * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
  11535. return type.
  11536. (bsd_uthread_target::pid_to_str): Change return type.
  11537. * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
  11538. type.
  11539. (bsd_kvm_target::pid_to_str): Change return type.
  11540. * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
  11541. return type.
  11542. (aix_thread_target::pid_to_str): Change return type.
  11543. * target.h (struct target_ops) <pid_to_str>: Change return type.
  11544. (target_pid_to_str, normal_pid_to_str): Likewise.
  11545. * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
  11546. type.
  11547. * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
  11548. type.
  11549. * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
  11550. return type.
  11551. * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
  11552. type.
  11553. * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
  11554. type.
  11555. * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
  11556. return type.
  11557. 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
  11558. * NEWS: Mention that the new default MI version is 3. Mention
  11559. changes to the output of commands and events that deal with
  11560. multi-location breakpoints.
  11561. * breakpoint.c: Include "mi/mi-out.h".
  11562. (print_one_breakpoint): Change output syntax if using MI version
  11563. >= 3.
  11564. * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
  11565. New.
  11566. (mi_multi_location_breakpoint_output_fixed): New.
  11567. * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
  11568. (mi_cmd_fix_multi_location_breakpoint_output): New.
  11569. (mi_multi_location_breakpoint_output_fixed): New.
  11570. * mi/mi-cmds.c (mi_cmds): Register command
  11571. -fix-multi-location-breakpoint-output.
  11572. * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
  11573. interpreter "mi".
  11574. 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
  11575. * mi/mi-out.h (mi_out_new): Change parameter to const char *.
  11576. * mi/mi-out.c (mi_out_new): Change parameter to const char *,
  11577. instantiate mi_ui_out based on interpreter name.
  11578. * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
  11579. * mi/mi-main.c (mi_load_progress): Likewise.
  11580. 2019-03-12 John Baldwin <jhb@FreeBSD.org>
  11581. * NEWS: Combine separate "New targets" sections for 8.3.
  11582. 2019-03-12 John Baldwin <jhb@FreeBSD.org>
  11583. * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
  11584. (ppcfbsd_init_abi): Install gdbarch
  11585. "fetch_tls_load_module_address" and "get_thread_local_address"
  11586. methods.
  11587. 2019-03-12 John Baldwin <jhb@FreeBSD.org>
  11588. * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
  11589. (riscv_fbsd_init_abi): Install gdbarch
  11590. "fetch_tls_load_module_address" and "get_thread_local_address"
  11591. methods.
  11592. 2019-03-12 John Baldwin <jhb@FreeBSD.org>
  11593. * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
  11594. (i386fbsd_init_abi): Install gdbarch
  11595. "fetch_tls_load_module_address" and "get_thread_local_address"
  11596. methods.
  11597. 2019-03-12 John Baldwin <jhb@FreeBSD.org>
  11598. * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
  11599. (amd64fbsd_init_abi): Install gdbarch
  11600. "fetch_tls_load_module_address" and "get_thread_local_address"
  11601. methods.
  11602. 2019-03-12 John Baldwin <jhb@FreeBSD.org>
  11603. * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
  11604. (struct fbsd_pspace_data): New type.
  11605. (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
  11606. (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
  11607. (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
  11608. (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
  11609. * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
  11610. 2019-03-12 John Baldwin <jhb@FreeBSD.org>
  11611. * gdbtypes.c (lookup_struct_elt): New function.
  11612. (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
  11613. * gdbtypes.h (struct struct_elt): New type.
  11614. (lookup_struct_elt): New prototype.
  11615. 2019-03-12 John Baldwin <jhb@FreeBSD.org>
  11616. * gdbtypes.c (lookup_struct_elt_type): Update comment and
  11617. remove disabled code block.
  11618. 2019-03-12 John Baldwin <jhb@FreeBSD.org>
  11619. * gdbarch.sh (get_thread_local_address): New method.
  11620. * gdbarch.h, gdbarch.c: Regenerate.
  11621. * target.c (target_translate_tls_address): Use
  11622. gdbarch_get_thread_local_address if present instead of
  11623. target::get_thread_local_address.
  11624. 2019-03-12 John Baldwin <jhb@FreeBSD.org>
  11625. * target.h (target::get_thread_local_address): Update comment.
  11626. 2019-03-12 John Baldwin <jhb@FreeBSD.org>
  11627. * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
  11628. objfile->separate_debug_objfile_backlink if not NULL.
  11629. 2019-03-12 John Baldwin <jhb@FreeBSD.org>
  11630. * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
  11631. tdep->fsbase_regnum instead of constants for fs_base and gs_base.
  11632. (amd64bsd_store_inferior_registers): Likewise.
  11633. * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
  11634. Enable segment base registers.
  11635. * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
  11636. PT_GETFSBASE and PT_GETGSBASE.
  11637. (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
  11638. PT_SETGSBASE.
  11639. * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
  11640. segment base registers.
  11641. * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
  11642. 2019-03-12 John Baldwin <jhb@FreeBSD.org>
  11643. * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
  11644. Update calls to i386_target_description to add 'segments'
  11645. parameter.
  11646. * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
  11647. add segment base registers.
  11648. * arch/i386.c (i386_create_target_description): Add 'segments'
  11649. parameter to enable segment base registers.
  11650. * arch/i386.h (i386_create_target_description): Likewise.
  11651. * features/i386/32bit-segments.xml: New file.
  11652. * features/i386/32bit-segments.c: Generate.
  11653. * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
  11654. call to i386_target_description to add 'segments' parameter.
  11655. * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
  11656. * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
  11657. * i386-linux-tdep.c (i386_linux_read_description): Likewise.
  11658. * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
  11659. if feature is present.
  11660. (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
  11661. Add 'segments' parameter to call to i386_target_description.
  11662. (i386_target_description): Add 'segments' parameter to enable
  11663. segment base registers.
  11664. (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
  11665. to call to i386_target_description.
  11666. * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
  11667. (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
  11668. Define I386_NUM_REGS.
  11669. (i386_target_description): Add 'segments' parameter to enable
  11670. segment base registers.
  11671. 2019-03-12 Eli Zaretskii <eliz@gnu.org>
  11672. PR/24325
  11673. * source-cache.c: #undef open and close, to avoid unresolved
  11674. externals during linking.
  11675. 2019-03-12 Tom Tromey <tromey@adacore.com>
  11676. * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
  11677. const. Add initializers.
  11678. (_initialize_remote): Don't initialize ptid globals.
  11679. 2019-03-12 Pedro Alves <palves@redhat.com>
  11680. * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
  11681. 2019-03-12 Pedro Alves <palves@redhat.com>
  11682. * cp-name-parser.y (main): Remove unused 'len' variable.
  11683. 2019-03-12 Tom Tromey <tromey@adacore.com>
  11684. * common/ptid.c (null_ptid, minus_one_ptid): Now const.
  11685. * common/ptid.h (null_ptid, minus_one_ptid): Now const.
  11686. 2019-03-12 Tom Tromey <tromey@adacore.com>
  11687. * linux-nat.c (iterate_over_lwps): Update.
  11688. (stop_callback): Remove parameter.
  11689. (stop_wait_callback, detach_callback, resume_set_callback)
  11690. (select_singlestep_lwp_callback, set_ignore_sigint)
  11691. (status_callback, resumed_callback, resume_clear_callback)
  11692. (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
  11693. data parameter.
  11694. (linux_nat_target::detach, linux_nat_target::resume)
  11695. (linux_stop_and_wait_all_lwps, select_event_lwp)
  11696. (linux_nat_filter_event, linux_nat_wait_1)
  11697. (linux_nat_target::kill, linux_nat_target::stop)
  11698. (linux_nat_target::stop): Update.
  11699. (linux_nat_resume_callback): Change type.
  11700. (resume_stopped_resumed_lwps, count_events_callback)
  11701. (select_event_lwp_callback): Likewise.
  11702. (linux_stop_lwp, linux_nat_stop_lwp): Update.
  11703. * arm-linux-nat.c (struct update_registers_data): Remove.
  11704. (update_registers_callback): Change type.
  11705. (arm_linux_insert_hw_breakpoint1): Update.
  11706. * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
  11707. parameter.
  11708. (x86_linux_dr_set_addr): Update.
  11709. (x86_linux_dr_set_control): Update.
  11710. * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
  11711. (iterate_over_lwps): Use gdb::function_view.
  11712. * nat/aarch64-linux-hw-point.c (struct
  11713. aarch64_dr_update_callback_param): Remove.
  11714. (debug_reg_change_callback): Change type.
  11715. (aarch64_notify_debug_reg_change): Update.
  11716. * s390-linux-nat.c (s390_refresh_per_info): Update.
  11717. 2019-03-11 Tom Tromey <tromey@adacore.com>
  11718. * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
  11719. redundant assignment to "this_cu".
  11720. 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
  11721. * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
  11722. 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
  11723. * gdbtypes.c (rank_one_type_parm_set): New function extracted
  11724. from...
  11725. (rank_one_type): ... this.
  11726. 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
  11727. * gdbtypes.c (rank_one_type_parm_struct): New function extracted
  11728. from...
  11729. (rank_one_type): ... this.
  11730. 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
  11731. * gdbtypes.c (rank_one_type_parm_complex): New function extracted
  11732. from...
  11733. (rank_one_type): ... this.
  11734. 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
  11735. * gdbtypes.c (rank_one_type_parm_float): New function extracted
  11736. from...
  11737. (rank_one_type): ... this.
  11738. 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
  11739. * gdbtypes.c (rank_one_type_parm_bool): New function extracted
  11740. from...
  11741. (rank_one_type): ... this.
  11742. 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
  11743. * gdbtypes.c (rank_one_type_parm_range): New function extracted
  11744. from...
  11745. (rank_one_type): ... this.
  11746. 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
  11747. * gdbtypes.c (rank_one_type_parm_char): New function extracted
  11748. from...
  11749. (rank_one_type): ... this.
  11750. 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
  11751. * gdbtypes.c (rank_one_type_parm_enum): New function extracted
  11752. from...
  11753. (rank_one_type): ... this.
  11754. 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
  11755. * gdbtypes.c (rank_one_type_parm_int): New function extracted
  11756. from...
  11757. (rank_one_type): ... this.
  11758. 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
  11759. * gdbtypes.c (rank_one_type_parm_func): New function extracted
  11760. from...
  11761. (rank_one_type): ... this.
  11762. 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
  11763. * gdbtypes.c (rank_one_type_parm_array): New function extracted
  11764. from...
  11765. (rank_one_type): ... this.
  11766. 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
  11767. * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
  11768. from...
  11769. (rank_one_type): ... this.
  11770. 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  11771. * inferior.c (initialize_inferiors): Ensure 'help set/show print
  11772. inferior-events' shows the example events.
  11773. 2019-03-08 Eli Zaretskii <eliz@gnu.org>
  11774. Support styling on native MS-Windows console
  11775. PR/24315
  11776. * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
  11777. on MS-Windows if $TERM is not defined.
  11778. * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
  11779. * posix-hdep.c (gdb_console_fputs):
  11780. * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
  11781. functions.
  11782. * ui-file.h (gdb_console_fputs): Add prototype.
  11783. * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
  11784. back to fputs only if the former returns zero.
  11785. 2019-03-07 Tom Tromey <tom@tromey.com>
  11786. * symmisc.c (print_symbol_bcache_statistics): Update.
  11787. (print_objfile_statistics): Update.
  11788. * symfile.c (allocate_symtab): Update.
  11789. * stabsread.c: Don't include bcache.h.
  11790. * psymtab.h (struct psymbol_bcache): Don't declare.
  11791. (class psymtab_storage) <psymbol_cache>: Now a bcache.
  11792. (psymbol_bcache_init, psymbol_bcache_free)
  11793. (psymbol_bcache_get_bcache): Don't declare.
  11794. * psymtab.c (struct psymbol_bcache): Remove.
  11795. (psymtab_storage::psymtab_storage): Update.
  11796. (psymtab_storage::~psymtab_storage): Update.
  11797. (psymbol_bcache_init, psymbol_bcache_free)
  11798. (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
  11799. (add_psymbol_to_bcache): Update.
  11800. (allocate_psymtab): Update.
  11801. * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
  11802. macro_cache>: No longer pointers.
  11803. * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
  11804. (free_objfile_per_bfd_storage): Don't call bcache_xfree.
  11805. * macrotab.c (macro_bcache): Update.
  11806. * macroexp.c: Don't include bcache.h.
  11807. * gdbtypes.c (check_types_worklist): Update.
  11808. (types_deeply_equal): Remove TRY/CATCH. Update.
  11809. * elfread.c (elf_symtab_read): Update.
  11810. * dwarf2read.c: Don't include bcache.h.
  11811. * buildsym.c (buildsym_compunit::get_macro_table): Update.
  11812. * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
  11813. (print_bcache_statistics, bcache_memory_used): Don't declare.
  11814. (struct bcache): Move from bcache.c. Add constructor, destructor,
  11815. methods. Rename all data members.
  11816. * bcache.c (struct bcache): Move to bcache.h.
  11817. (bcache::expand_hash_table): Rename from expand_hash_table.
  11818. (bcache): Remove.
  11819. (bcache::insert): Rename from bcache_full.
  11820. (bcache::compare): Rename from bcache_compare.
  11821. (bcache_xmalloc): Remove.
  11822. (bcache::~bcache): Rename from bcache_xfree.
  11823. (bcache::print_statistics): Rename from print_bcache_statistics.
  11824. (bcache::memory_used): Rename from bcache_memory_used.
  11825. 2019-03-07 Pedro Alves <palves@redhat.com>
  11826. * infrun.c (normal_stop): Also check for
  11827. TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
  11828. 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
  11829. * f-lang.c (value_from_host_double): Moved to...
  11830. * value.c (value_from_host_double): ...here.
  11831. * value.h (value_from_host_double): Declare.
  11832. * guile/scm-math.c (vlscm_convert_typed_number): Use
  11833. value_from_host_double.
  11834. (vlscm_convert_number): Likewise.
  11835. * guile/scm-value.c (gdbscm_value_to_real): Likewise.
  11836. * python/py-value.c (convert_value_from_python): Likewise.
  11837. 2019-03-06 Tom Tromey <tom@tromey.com>
  11838. * gcore.c (write_gcore_file): Use SCOPE_EXIT.
  11839. 2019-03-06 Tom Tromey <tom@tromey.com>
  11840. * utils.h (free_current_contents): Don't declare.
  11841. * utils.c (free_current_contents): Remove.
  11842. 2019-03-06 Tom Tromey <tom@tromey.com>
  11843. * top.c (quit_force): Update.
  11844. * main.c (captured_command_loop): Update.
  11845. * common/new-op.c (operator new): Update.
  11846. * common/common-exceptions.c (struct catcher)
  11847. <save_cleanup_chain>: Remove member.
  11848. (exceptions_state_mc_init): Update.
  11849. (exception_try_scope_entry): Return nullptr.
  11850. (exception_try_scope_exit, exception_rethrow)
  11851. (throw_exception_sjlj, throw_exception_cxx): Update.
  11852. * common/cleanups.h (make_cleanup, make_cleanup_dtor)
  11853. (all_cleanups, do_cleanups, discard_cleanups)
  11854. (discard_final_cleanups, save_cleanups, save_final_cleanups)
  11855. (restore_cleanups, restore_final_cleanups): Don't declare.
  11856. (do_final_cleanups): Remove parameter.
  11857. * common/cleanups.c (cleanup_chain, make_cleanup)
  11858. (make_cleanup_dtor, all_cleanups, do_cleanups)
  11859. (discard_my_cleanups, discard_cleanups)
  11860. (discard_final_cleanups, save_my_cleanups, save_cleanups)
  11861. (save_final_cleanups, restore_my_cleanups, restore_cleanups)
  11862. (null_cleanup): Remove.
  11863. (do_final_cleanups): Remove parameter.
  11864. 2019-03-06 Tom Tromey <tom@tromey.com>
  11865. * remote.c (remote_target::remote_parse_stop_reply): Use
  11866. unique_xmalloc_ptr.
  11867. 2019-03-06 Tom Tromey <tom@tromey.com>
  11868. * stabsread.c (struct stabs_field_info): Rename from field_info.
  11869. <list, fnlist>: Add initializers.
  11870. <obstack>: New member.
  11871. (read_member_functions, read_struct_fields, read_baseclasses):
  11872. Allocate on obstack. Don't use cleanups.
  11873. (read_one_struct_field, read_member_functions, read_struct_fields)
  11874. (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
  11875. (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
  11876. (read_struct_type): Update.
  11877. 2019-03-06 Tom Tromey <tom@tromey.com>
  11878. * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
  11879. * common/filestuff.h (make_cleanup_close): Don't declare.
  11880. * common/filestuff.c (do_close_cleanup, make_cleanup_close):
  11881. Remove.
  11882. 2019-03-06 Tom Tromey <tom@tromey.com>
  11883. * solib-aix.c: Use make_scope_exit.
  11884. 2019-03-06 Tom Tromey <tom@tromey.com>
  11885. * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
  11886. Use make_scope_exit.
  11887. 2019-03-06 Tom Tromey <tom@tromey.com>
  11888. * solib-svr4.c (disable_probes_interface): Remove parameter.
  11889. (svr4_handle_solib_event): Use make_scope_exit.
  11890. 2019-03-06 Tom Tromey <tom@tromey.com>
  11891. * remote.c (struct stop_reply_deleter): Remove.
  11892. (stop_reply_up): Update.
  11893. (struct stop_reply): Derive from notif_event. Don't typedef.
  11894. <regcache>: Now a std::vector.
  11895. (stop_reply_xfree): Remove.
  11896. (stop_reply::~stop_reply): Rename from stop_reply_dtr.
  11897. (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
  11898. (remote_target::discard_pending_stop_replies): Use delete.
  11899. (remote_target::remote_parse_stop_reply): Update.
  11900. (remote_target::process_stop_reply): Update.
  11901. * remote-notif.h (struct notif_event): Add virtual destructor.
  11902. Remove "dtr" member.
  11903. (struct notif_client) <alloc_event>: Return a unique_ptr.
  11904. (notif_event_xfree): Don't declare.
  11905. (notif_event_up): New typedef.
  11906. * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
  11907. (notif_event_xfree, do_notif_event_xfree): Remove.
  11908. (remote_notif_state_xfree): Update.
  11909. 2019-03-06 Tom Tromey <tom@tromey.com>
  11910. * infrun.c (displaced_step_clear_cleanup): Now a
  11911. forward_scope_exit type.
  11912. (displaced_step_prepare_throw): Update.
  11913. (displaced_step_fixup): Update.
  11914. 2019-03-06 Tom Tromey <tom@tromey.com>
  11915. * inferior.h (class inferior): Update comment.
  11916. * gdbthread.h (class thread_info): Update comment.
  11917. 2019-03-06 Joel Brobecker <brobecker@adacore.com>
  11918. Tom Tromey <tom@tromey.com>
  11919. * stabsread.h (struct stab_section_list): Remove.
  11920. (coffstab_build_psymtabs): Update.
  11921. * dbxread.c (symbuf_sections): Now a std::vector.
  11922. (sect_idx): New global.
  11923. (fill_symbuf): Update.
  11924. (coffstab_build_psymtabs): Change type of stabsects parameter.
  11925. Update.
  11926. * coffread.c (struct coff_symfile_info) <stabsects>: Now a
  11927. std::vector.
  11928. (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
  11929. (coff_locate_sections): Update.
  11930. (coff_symfile_read): Remove cleanups. Update.
  11931. (init_stringtab): Add storage parameter.
  11932. (free_stringtab, free_stringtab_cleanup): Remove.
  11933. (init_lineno): Add storage parameter.
  11934. (free_linetab, free_linetab_cleanup): Remove.
  11935. 2019-03-06 Pedro Alves <palves@redhat.com>
  11936. * linux-fork.c (fork_info::clobber_regs): Delete.
  11937. (fork_load_infrun_state): Remove reference to 'clobber_regs'.
  11938. (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
  11939. comment. Adjust.
  11940. (scoped_switch_fork_info::scoped_switch_fork_info)
  11941. (checkpoint_command, linux_fork_context): Adjust
  11942. fork_save_infrun_state calls.
  11943. 2019-03-06 Pedro Alves <palves@redhat.com>
  11944. * linux-fork.c (inf_has_multiple_thread_cb): Delete.
  11945. (inf_has_multiple_threads): Return 'bool' and rewrite using
  11946. inferior_info::threads().
  11947. 2019-03-06 Pedro Alves <palves@redhat.com>
  11948. * linux-fork.c: Include <list>.
  11949. (fork_list): Now a std::list instance.
  11950. (fork_info): Add ctor, dtor, and in-class initialize all fields.
  11951. (forks_exist_p, find_last_fork): Adjust.
  11952. (new_fork): Delete.
  11953. (one_fork_p): New.
  11954. (add_fork): Adjust.
  11955. (free_fork): Delete, folded into fork_info::~fork_info().
  11956. (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
  11957. Adjust.
  11958. (init_fork_list): Delete.
  11959. (linux_fork_killall, linux_fork_mourn_inferior)
  11960. (linux_fork_detach, info_checkpoints_command): Adjust.
  11961. (_initialize_linux_fork): No longer call init_fork_list.
  11962. 2019-03-06 Pedro Alves <palves@redhat.com>
  11963. * linux-fork.c (new_fork): New, split out of ...
  11964. (add_fork): ... this. Return void. Move "first fork" special
  11965. case from here, to ...
  11966. (checkpoint_command): ... here.
  11967. * linux-linux.h (add_fork): Return void.
  11968. 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
  11969. * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
  11970. 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
  11971. Chris January <chris.january@arm.com>
  11972. David Lecomber <david.lecomber@arm.com>
  11973. * f-exp.y: New token, UNOP_INTRINSIC.
  11974. (exp): New pattern using UNOP_INTRINSIC token.
  11975. (f77_keywords): Add 'abs' keyword.
  11976. * f-lang.c: Add 'target-float.h' and 'math.h' includes.
  11977. (value_from_host_double): New function.
  11978. (evaluate_subexp_f): Support UNOP_ABS.
  11979. 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
  11980. * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
  11981. types.
  11982. 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
  11983. * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
  11984. * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
  11985. * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
  11986. 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
  11987. * f-exp.y (convert_to_kind_type): Handle more type kinds.
  11988. 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
  11989. Chris January <chris.january@arm.com>
  11990. * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
  11991. * f-exp.y: Define 'KIND' token.
  11992. (exp): New pattern for KIND expressions.
  11993. (ptype): Handle types with a kind extension.
  11994. (direct_abs_decl): Extend to spot kind extensions.
  11995. (f77_keywords): Add 'kind' to the list.
  11996. (push_kind_type): New function.
  11997. (convert_to_kind_type): New function.
  11998. * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
  11999. * parse.c (operator_length_standard): Likewise.
  12000. * parser-defs.h (enum type_pieces): Add tp_kind.
  12001. * std-operator.def: Add UNOP_KIND.
  12002. 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
  12003. * f-exp.y (f_parse): Set yydebug.
  12004. 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
  12005. * f-lang.c (evaluate_subexp_f): New function.
  12006. (exp_descriptor_f): New global.
  12007. (f_language_defn): Use exp_descriptor_f instead of
  12008. exp_descriptor_standard.
  12009. 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
  12010. * f-exp.y (struct token): Add comments.
  12011. (dot_ops): Remove uppercase versions and the end marker.
  12012. (f77_keywords): Likewise.
  12013. (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
  12014. entries in the dot_ops array are case insensitive, and use
  12015. strncasecmp to compare strings. Also some whitespace cleanup in
  12016. this area. Similar for the f77_keywords array, except entries in
  12017. this list might be case sensitive.
  12018. 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
  12019. * f-exp.y (struct f77_boolean_val): Add comments.
  12020. (boolean_values): Remove uppercase versions, and end marker.
  12021. (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
  12022. and use strncasecmp to achieve case insensitivity. Additionally,
  12023. perform whitespace cleanup around this code.
  12024. 2019-03-06 Tom Tromey <tromey@adacore.com>
  12025. * remote-sim.c (gdbsim_target_open): Use result of
  12026. gdb_argv::release.
  12027. 2019-03-06 Richard Bunt <richard.bunt@arm.com>
  12028. Dirk Schubert <dirk.schubert@arm.com>
  12029. Chris January <chris.january@arm.com>
  12030. * eval.c (evaluate_subexp_standard): Call Fortran argument
  12031. wrapping logic.
  12032. * f-lang.c (struct value): A value which can be passed into a
  12033. Fortran function call.
  12034. (fortran_argument_convert): Wrap Fortran arguments in a pointer
  12035. where appropriate.
  12036. (struct type): Value ready for a Fortran function call.
  12037. (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
  12038. is needed.
  12039. * f-lang.h (fortran_argument_convert): Declaration.
  12040. (fortran_preserve_arg_pointer): Declaration.
  12041. * infcall.c (value_arg_coerce): Call Fortran argument logic.
  12042. 2019-03-05 Tom Tromey <tromey@adacore.com>
  12043. * python/py-prettyprint.c (print_string_repr): Remove #if.
  12044. * python/py-utils.c (unicode_to_encoded_string): Remove #if.
  12045. 2019-03-05 Tom Tromey <tromey@adacore.com>
  12046. * target.c (the_dummy_target): Move later. Change type to
  12047. "dummy_target".
  12048. (initialize_targets): Don't initialize the_dummy_target.
  12049. 2019-03-05 Tom Tromey <tromey@adacore.com>
  12050. * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
  12051. * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
  12052. 2019-03-05 Tom Tromey <tromey@adacore.com>
  12053. * windows-nat.c (windows_nat_target::attach)
  12054. (windows_nat_target::detach): Don't call gdb_flush.
  12055. * valprint.c (generic_val_print, val_print, val_print_string):
  12056. Don't call gdb_flush.
  12057. * utils.c (defaulted_query): Don't call gdb_flush.
  12058. * typeprint.c (print_type_scalar): Don't call gdb_flush.
  12059. * target.c (target_announce_detach): Don't call gdb_flush.
  12060. * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
  12061. * remote.c (extended_remote_target::attach): Don't call
  12062. gdb_flush.
  12063. * procfs.c (procfs_target::detach): Don't call gdb_flush.
  12064. * printcmd.c (do_examine): Don't call gdb_flush.
  12065. (info_display_command): Don't call gdb_flush.
  12066. * p-valprint.c (pascal_val_print): Don't call gdb_flush.
  12067. * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
  12068. * memattr.c (info_mem_command): Don't call gdb_flush.
  12069. * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
  12070. * m2-valprint.c (m2_val_print): Don't call gdb_flush.
  12071. * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
  12072. * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
  12073. * hppa-tdep.c (unwind_command): Don't call gdb_flush.
  12074. * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
  12075. (gnu_nat_target::detach): Don't call gdb_flush.
  12076. * f-valprint.c (f_val_print): Don't call gdb_flush.
  12077. * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
  12078. * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
  12079. * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
  12080. gdb_flush.
  12081. * c-valprint.c (c_val_print): Don't call gdb_flush.
  12082. * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
  12083. 2019-03-05 Tom Tromey <tromey@adacore.com>
  12084. * varobj.c (update_dynamic_varobj_children): Update.
  12085. (install_default_visualizer): Use reset, not release.
  12086. * value.c (set_internalvar): Update.
  12087. * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
  12088. * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
  12089. ATTRIBUTE_UNUSED_RESULT.
  12090. 2019-03-05 Tom Tromey <tromey@adacore.com>
  12091. * remote.c (class scoped_remote_fd) <release>: Add
  12092. ATTRIBUTE_UNUSED_RESULT.
  12093. 2019-03-05 Tom Tromey <tromey@adacore.com>
  12094. * macroexp.c (struct macro_buffer) <release>: Add
  12095. ATTRIBUTE_UNUSED_RESULT.
  12096. 2019-03-05 Tom Tromey <tromey@adacore.com>
  12097. * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
  12098. * common/scoped_mmap.h (class scoped_mmap) <release>: Add
  12099. ATTRIBUTE_UNUSED_RESULT.
  12100. 2019-03-05 Tom Tromey <tromey@adacore.com>
  12101. * common/scoped_fd.h (class scoped_fd) <release>: Add
  12102. ATTRIBUTE_UNUSED_RESULT.
  12103. 2019-03-05 Tom Tromey <tromey@adacore.com>
  12104. * parser-defs.h (struct parser_state) <release>: Add
  12105. ATTRIBUTE_UNUSED_RESULT.
  12106. 2019-03-05 Tom Tromey <tromey@adacore.com>
  12107. * utils.h (class gdb_argv) <release>: Add
  12108. ATTRIBUTE_UNUSED_RESULT.
  12109. * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
  12110. 2019-03-02 Eli Zaretskii <eliz@gnu.org>
  12111. * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
  12112. for-loop range, to avoid compiler warnings.
  12113. * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
  12114. avoid compiler warnings about unused variables.
  12115. * NEWS: Mention end of support for native debugging on MS-Windows
  12116. before XP.
  12117. PR gdb/24292
  12118. * common/netstuff.c:
  12119. * gdbserver/gdbreplay.c
  12120. * gdbserver/remote-utils.c:
  12121. * ser-tcp.c:
  12122. * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
  12123. Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
  12124. _WIN32_WINNT to 0x0501 if defined to a smaller value, as
  12125. 'getaddrinfo' and 'freeaddrinfo' were not available before
  12126. Windows XP, and mingw.org's MinGW headers by default define
  12127. _WIN32_WINNT to 0x500.
  12128. 2019-03-01 Gary Benson <gbenson@redhat.com>
  12129. * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
  12130. 2019-02-28 Brian Vandenberg <phantall@gmail.com>
  12131. Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  12132. PR gdb/8527
  12133. * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
  12134. set_sigint_trap, clear_sigint_trap.
  12135. 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  12136. * target.c (target_detach): Clear the regcache and the
  12137. frame cache.
  12138. 2019-02-27 Pedro Alves <palves@redhat.com>
  12139. * utils.c (set_screen_size): When we cap the height/width sizes,
  12140. tweak the corresponding command variable to show "unlimited":
  12141. 2019-02-27 Saagar Jha <saagar@saagarjha.com>
  12142. Pedro Alves <palves@redhat.com>
  12143. * utils.c (set_screen_size): Reduce "infinite" rows and columns
  12144. before calling rl_set_screen_size.
  12145. 2019-02-27 Tom Tromey <tromey@adacore.com>
  12146. * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
  12147. define.
  12148. * python/py-value.c: Remove Python 2.4 workaround.
  12149. * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
  12150. workaround.
  12151. * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
  12152. Python 2.4 workaround.
  12153. * python/python-internal.h: Remove Python 2.4 comment.
  12154. (Py_ssize_t): Don't define.
  12155. (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
  12156. (gdb_Py_DECREF): Remove Python 2.4 workaround.
  12157. (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
  12158. (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
  12159. * python/python.c (do_start_initialization): Remove Python 2.4
  12160. workaround.
  12161. * python/py-prettyprint.c (class dummy_python_frame): Remove.
  12162. (print_children): Remove Python 2.4 workaround.
  12163. * python/py-inferior.c (buffer_procs): Remove Python 2.4
  12164. workaround.
  12165. (CHARBUFFERPROC_NAME): Remove.
  12166. * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
  12167. Python 2.4 workaround.
  12168. 2019-02-27 Kevin Buettner <kevinb@redhat.com>
  12169. * NEWS: Note minimum Python version.
  12170. 2019-02-27 Kevin Buettner <kevinb@redhat.com>
  12171. * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
  12172. code from these functions. Remove corresponding ifdefs. Use
  12173. Py_buffer_up instead of explicit calls to PyBuffer_Release.
  12174. Remove gotos and target of gotos.
  12175. (infpy_search_memory): Likewise.
  12176. 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
  12177. * hppa-tdep.c (hppa_dummy_id): Delete.
  12178. (hppa_gdbarch_init): Don't register deleted functions with
  12179. gdbarch.
  12180. 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
  12181. * h8300-tdep.c (h8300_unwind_pc): Delete.
  12182. (h8300_unwind_sp): Delete.
  12183. (h8300_dummy_id): Delete.
  12184. (h8300_gdbarch_init): Don't register deleted functions with
  12185. gdbarch.
  12186. 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
  12187. * ft32-tdep.c (ft32_dummy_id): Delete.
  12188. (ft32_unwind_pc): Delete.
  12189. (ft32_unwind_sp): Delete.
  12190. (ft32_gdbarch_init): Don't register deleted functions with
  12191. gdbarch.
  12192. 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
  12193. * frv-tdep.c (frv_dummy_id): Delete.
  12194. (frv_unwind_pc): Delete.
  12195. (frv_unwind_sp): Delete.
  12196. (frv_gdbarch_init): Don't register deleted functions with
  12197. gdbarch.
  12198. 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
  12199. * riscv-tdep.c (riscv_dummy_id): Delete.
  12200. (riscv_unwind_pc): Delete.
  12201. (riscv_unwind_sp): Delete.
  12202. (riscv_gdbarch_init): Don't register deleted functions with
  12203. gdbarch.
  12204. 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
  12205. * csky-tdep.c (csky_dummy_id): Delete.
  12206. (csky_unwind_pc): Delete.
  12207. (csky_unwind_sp): Delete.
  12208. (csky_gdbarch_init): Don't register deleted functions with
  12209. gdbarch.
  12210. 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
  12211. * cris-tdep.c (cris_dummy_id): Delete.
  12212. (cris_unwind_pc): Delete.
  12213. (cris_unwind_sp): Delete.
  12214. (cris_gdbarch_init): Don't register deleted functions with
  12215. gdbarch.
  12216. 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
  12217. * bfin-tdep.c (bfin_dummy_id): Delete.
  12218. (bfin_unwind_pc): Delete.
  12219. (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
  12220. 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
  12221. * arm-tdep.c (arm_dummy_id): Delete.
  12222. (arm_unwind_pc): Delete.
  12223. (arm_unwind_sp): Delete.
  12224. (arm_gdbarch_init): Don't register deleted functions with gdbarch.
  12225. 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
  12226. * arc-tdep.c (arc_dummy_id): Delete.
  12227. (arc_unwind_pc): Delete.
  12228. (arc_unwind_sp): Delete.
  12229. (arc_gdbarch_init): Don't register deleted functions with gdbarch.
  12230. 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
  12231. * alpha-tdep.c (alpha_dummy_id): Delete.
  12232. (alpha_unwind_pc): Delete.
  12233. (alpha_gdbarch_init): Don't register deleted functions with
  12234. gdbarch.
  12235. 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
  12236. * aarch64-tdep.c (aarch64_dummy_id): Delete.
  12237. (aarch64_unwind_pc): Delete.
  12238. (aarch64_unwind_sp): Delete.
  12239. (aarch64_gdbarch_init): Don't register deleted functions with
  12240. gdbarch.
  12241. 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
  12242. * gdbtypes.c (type_align): Don't consider static members when
  12243. computing structure alignment.
  12244. 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
  12245. * arc-tdep.c (arc_type_align): Provide alignment for basic types,
  12246. return 0 for other types.
  12247. * arch-utils.c (default_type_align): Always return 0.
  12248. * gdbarch.h: Regenerate.
  12249. * gdbarch.sh (type_align): Extend comment.
  12250. * gdbtypes.c (type_align): Add additional comments, always call
  12251. gdbarch_type_align before applying the default rules.
  12252. * i386-tdep.c (i386_type_align): Return 0 as the default rule,
  12253. generic code will then apply a suitable default.
  12254. * nios2-tdep.c (nios2_type_align): Provide alignment for basic
  12255. types, return 0 for other types.
  12256. 2019-02-27 Joel Brobecker <brobecker@adacore.com>
  12257. * NEWS: Create a new section for the next release branch.
  12258. Rename the section of the current branch, now that it has
  12259. been cut.
  12260. 2019-02-27 Joel Brobecker <brobecker@adacore.com>
  12261. GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
  12262. * version.in: Bump version to 8.3.50.DATE-git.
  12263. 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
  12264. * aix-thread.c (ptid_cmp): Remove unused variable.
  12265. (get_signaled_thread): Likewise.
  12266. (store_regs_user_thread): Likewise.
  12267. (store_regs_kernel_thread): Likewise.
  12268. (fetch_regs_kernel_thread): Remove shadowed variable.
  12269. 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
  12270. * features/riscv/32bit-cpu.xml: Add register numbers.
  12271. * features/riscv/32bit-fpu.c: Regenerate.
  12272. * features/riscv/32bit-fpu.xml: Add register numbers.
  12273. * features/riscv/64bit-cpu.xml: Add register numbers.
  12274. * features/riscv/64bit-fpu.c: Regenerate.
  12275. * features/riscv/64bit-fpu.xml: Add register numbers.
  12276. 2019-02-26 Kevin Buettner <kevinb@redhat.com>
  12277. * NEWS: Mention two argument form of gdb.Value constructor.
  12278. * python/py-value.c (convert_buffer_and_type_to_value): New
  12279. function.
  12280. (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
  12281. Add support for handling an optional second argument. Call
  12282. convert_buffer_and_type_to_value as appropriate.
  12283. * python/python-internal.h (Py_buffer_deleter): New struct.
  12284. (Py_buffer_up): New typedef.
  12285. 2019-02-25 John Baldwin <jhb@FreeBSD.org>
  12286. * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
  12287. instead of releasing ownership.
  12288. 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
  12289. * dwarf2read.c (open_and_init_dwp_file): Call
  12290. elf_numsections instead of bfd_count_sections to initialize
  12291. dwp_file->num_sections.
  12292. 2019-02-25 Tom Tromey <tromey@adacore.com>
  12293. * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
  12294. 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
  12295. * gcore.in: Add '--readnever' option when invoking GDB.
  12296. 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
  12297. * MAINTAINERS: Update my email address.
  12298. 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
  12299. * build-id.c (build_id_to_debug_bfd_1): New function.
  12300. (build_id_to_debug_bfd): Look for separate debug file in
  12301. sysroot.
  12302. 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
  12303. * gdbarch.sh: Update the copyright year range that is placed into
  12304. generated files.
  12305. 2019-02-22 Keith Seitz <keiths@redhat.com>
  12306. PR symtab/23853
  12307. * linespec.c (create_sals_line_offset): Search for the default
  12308. symtab's filename instead of its fullname.
  12309. 2019-02-21 Alan Hayward <alan.hayward@arm.com>
  12310. * NEWS: Update style defaults.
  12311. 2019-02-21 Alan Hayward <alan.hayward@arm.com>
  12312. * main.c (captured_main_1): Disable styling in batch mode.
  12313. 2019-02-20 Tom Tromey <tom@tromey.com>
  12314. * symtab.c (symtab_symbol_info): Fix typos.
  12315. 2019-02-20 Tom Tromey <tromey@adacore.com>
  12316. * findcmd.c (_initialize_mem_search): Use upper case for
  12317. metasyntactic variables.
  12318. 2019-02-20 Alan Hayward <alan.hayward@arm.com>
  12319. * aarch64-tdep.c (aarch64_add_reggroups): New function.
  12320. (aarch64_gdbarch_init): Call aarch64_add_reggroups.
  12321. 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
  12322. * top.h (source_file_name): Change to std::string.
  12323. * top.c (source_file_name): Likewise.
  12324. (command_line_input): Adjust.
  12325. * cli/cli-script.c (script_from_file): Adjust.
  12326. 2019-02-19 Tom Tromey <tromey@adacore.com>
  12327. * ravenscar-thread.c
  12328. (ravenscar_thread_target::update_thread_list): Don't call
  12329. ada_build_task_list.
  12330. * ada-lang.h (ada_build_task_list): Don't declare.
  12331. * ada-tasks.c (struct ada_tasks_inferior_data)
  12332. <task_list_valid_p>: Now bool.
  12333. (read_known_tasks, ada_task_list_changed)
  12334. (ada_tasks_invalidate_inferior_data): Update.
  12335. (read_known_tasks_array): Return bool.
  12336. (read_known_tasks_list): Likewise.
  12337. (read_known_tasks): Return void.
  12338. (ada_build_task_list): Now static.
  12339. 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
  12340. * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
  12341. and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
  12342. 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  12343. * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
  12344. variant for ada_tasks_pspace_data_handle and
  12345. ada_tasks_inferior_data_handle.
  12346. (ada_tasks_pspace_data_cleanup): New function.
  12347. (ada_tasks_inferior_data_cleanup): New function.
  12348. 2019-02-17 Tom Tromey <tom@tromey.com>
  12349. * macrotab.h (macro_source_fullname): Return a std::string.
  12350. * macrotab.c (macro_include, check_for_redefinition)
  12351. (macro_undef, macro_lookup_definition, foreach_macro)
  12352. (foreach_macro_in_scope): Update.
  12353. (macro_source_fullname): Return a std::string.
  12354. * macrocmd.c (show_pp_source_pos): Update.
  12355. 2019-02-17 Tom Tromey <tom@tromey.com>
  12356. * macrocmd.c (show_pp_source_pos): Style the file names.
  12357. 2019-02-17 Tom Tromey <tom@tromey.com>
  12358. PR tui/24197:
  12359. * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
  12360. 2019-02-17 Tom Tromey <tom@tromey.com>
  12361. * ada-lang.c (user_select_syms): Use filtered printing.
  12362. * utils.c (wrap_style): New global.
  12363. (desired_style): Remove.
  12364. (emit_style_escape): Add stream parameter.
  12365. (set_output_style, reset_terminal_style, prompt_for_continue):
  12366. Update.
  12367. (flush_wrap_buffer): Only flush gdb_stdout.
  12368. (wrap_here): Set wrap_style.
  12369. (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
  12370. treat escape sequences as a character. Change when wrap buffer is
  12371. flushed.
  12372. (fputs_styled): Do not set the output style when the default is
  12373. requested.
  12374. * ui-style.h (struct ui_file_style) <is_default>: New method.
  12375. * source.c (print_source_lines_base): Emit escape sequences in one
  12376. piece.
  12377. 2019-02-17 Joel Brobecker <brobecker@adacore.com>
  12378. * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
  12379. integers and enumeration types.
  12380. 2019-02-17 Joel Brobecker <brobecker@adacore.com>
  12381. * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
  12382. instead of lookup_symbol_in_language
  12383. (do_exact_match): New function.
  12384. (ada_get_symbol_name_matcher): Return do_exact_match when
  12385. doing a verbatim match.
  12386. 2019-02-15 Tom Tromey <tromey@adacore.com>
  12387. * ravenscar-thread.c (ravenscar_thread_target::resume)
  12388. (ravenscar_thread_target::wait): Special case wildcard requests.
  12389. 2019-02-15 Tom Tromey <tromey@adacore.com>
  12390. * ravenscar-thread.c (base_ptid): Remove.
  12391. (struct ravenscar_thread_target) <close>: New method.
  12392. <m_base_ptid>: New member.
  12393. <update_inferior_ptid, active_task, task_is_currently_active,
  12394. runtime_initialized>: Declare methods.
  12395. <ravenscar_thread_target>: Add constructor.
  12396. (ravenscar_thread_target::task_is_currently_active)
  12397. (ravenscar_thread_target::update_inferior_ptid)
  12398. (ravenscar_runtime_initialized): Rename. Now methods.
  12399. (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
  12400. (ravenscar_thread_target::update_thread_list): Update.
  12401. (ravenscar_thread_target::active_task): Now method.
  12402. (ravenscar_thread_target::store_registers)
  12403. (ravenscar_thread_target::prepare_to_store)
  12404. (ravenscar_thread_target::prepare_to_store)
  12405. (ravenscar_thread_target::mourn_inferior): Update.
  12406. (ravenscar_inferior_created): Use "new" to create target.
  12407. (ravenscar_thread_target::get_ada_task_ptid): Update.
  12408. (_initialize_ravenscar): Don't initialize base_ptid.
  12409. (ravenscar_ops): Remove global.
  12410. 2019-02-15 Tom Tromey <tromey@adacore.com>
  12411. * target.h (push_target): Declare new overload.
  12412. * target.c (push_target): New overload, taking an rvalue reference.
  12413. * remote.c (remote_target::open_1): Use push_target overload.
  12414. * corelow.c (core_target_open): Use push_target overload.
  12415. 2019-02-15 Tom Tromey <tromey@adacore.com>
  12416. * ravenscar-thread.c (is_ravenscar_task)
  12417. (ravenscar_task_is_currently_active): Return bool.
  12418. (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
  12419. (_initialize_ravenscar): Remove "(void)".
  12420. (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
  12421. Return bool.
  12422. 2019-02-15 Tom Tromey <tromey@adacore.com>
  12423. * ravenscar-thread.c (ravenscar_runtime_initializer)
  12424. (has_ravenscar_runtime, get_running_thread_id)
  12425. (ravenscar_thread_target::resume): Fix indentation.
  12426. 2019-02-15 Tom Tromey <tromey@adacore.com>
  12427. * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
  12428. from ravenscar_arch_ops.
  12429. (sparc_ravenscar_ops::fetch_registers)
  12430. (sparc_ravenscar_ops::store_registers): Now methods.
  12431. (sparc_ravenscar_prepare_to_store): Remove.
  12432. (sparc_ravenscar_ops): Redefine.
  12433. * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
  12434. methods and destructor. Remove members.
  12435. * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
  12436. (ravenscar_thread_target::store_registers)
  12437. (ravenscar_thread_target::prepare_to_store): Update.
  12438. * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
  12439. Remove.
  12440. (struct ppc_ravenscar_powerpc_ops): Derive from
  12441. ravenscar_arch_ops.
  12442. (ppc_ravenscar_powerpc_ops::fetch_registers)
  12443. (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
  12444. (ppc_ravenscar_powerpc_ops): Redefine.
  12445. (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
  12446. (ppc_ravenscar_e500_ops::fetch_registers)
  12447. (ppc_ravenscar_e500_ops::store_registers): Now methods.
  12448. (ppc_ravenscar_e500_ops): Redefine.
  12449. * aarch64-ravenscar-thread.c
  12450. (aarch64_ravenscar_generic_prepare_to_store): Remove.
  12451. (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
  12452. (aarch64_ravenscar_fetch_registers)
  12453. (aarch64_ravenscar_store_registers): Now methods.
  12454. (aarch64_ravenscar_ops): Redefine.
  12455. 2019-02-15 Tom Tromey <tromey@adacore.com>
  12456. * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
  12457. (ravenscar_thread_target::stopped_by_hw_breakpoint)
  12458. (ravenscar_thread_target::stopped_by_watchpoint)
  12459. (ravenscar_thread_target::stopped_data_address)
  12460. (ravenscar_thread_target::core_of_thread): Use scoped_restore.
  12461. 2019-02-15 Tom Tromey <tromey@adacore.com>
  12462. * ravenscar-thread.c: Fix some typos.
  12463. 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  12464. Tom Tromey <tromey@adacore.com>
  12465. * ada-lang.c (ada_exception_sal): Change addr_string to a
  12466. std::string.
  12467. (create_ada_exception_catchpoint): Update.
  12468. 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  12469. Tom Tromey <tromey@adacore.com>
  12470. * breakpoint.c (~bp_location): Rename from bp_location_dtor.
  12471. (bp_location_ops): Remove.
  12472. (base_breakpoint_allocate_location): Update.
  12473. (free_bp_location): Update.
  12474. * ada-lang.c (class ada_catchpoint_location)
  12475. <ada_catchpoint_location>: Remove ops parameter.
  12476. (ada_catchpoint_location_dtor): Remove.
  12477. (ada_catchpoint_location_ops): Remove.
  12478. (allocate_location_exception): Update.
  12479. * breakpoint.h (struct bp_location_ops): Remove.
  12480. (class bp_location) <bp_location>: Remove bp_location_ops
  12481. parameter.
  12482. <~bp_location>: Add destructor.
  12483. <ops>: Remove.
  12484. 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
  12485. Pedro Alves <palves@redhat.com>
  12486. * remote.c (remote_target::remote_parse_stop_reply): Avoid using
  12487. 'PATH_MAX'.
  12488. 2019-02-14 David Michael <fedora.dm0@gmail.com>
  12489. Samuel Thibault <samuel.thibault@gnu.org>
  12490. Thomas Schwinge <thomas@codesourcery.com>
  12491. * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
  12492. (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
  12493. 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
  12494. * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
  12495. (check_empty): Use "const char *".
  12496. * gnu-nat.c (gnu_nat_target::detach): Instead of
  12497. 'detach_inferior (pid)' call
  12498. 'detach_inferior (find_inferior_pid (pid))'.
  12499. * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
  12500. 'nat/fork-inferior.o'.
  12501. * gnu-nat.c: #include "nat/fork-inferior.h".
  12502. * gnu-nat.c (gnu_nat_target::detach): Instead of
  12503. 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
  12504. * gnu-nat.h: #include "inf-child.h".
  12505. * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
  12506. 'i386_gnu_nat_target::fetch_registers'.
  12507. (gnu_store_registers): Rename/move to
  12508. 'i386_gnu_nat_target::store_registers'.
  12509. * config/i386/nm-i386gnu.h: Don't "#include" any files.
  12510. * gnu-nat.h (mach_thread_info): New function.
  12511. * gnu-nat.c (thread_takeover_sc_cmd): Use it.
  12512. * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
  12513. 2019-02-14 Frederic Konrad <konrad@adacore.com>
  12514. * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
  12515. 2019-02-14 Joel Brobecker <brobecker@adacore.com>
  12516. * windows-nat.c (windows_add_thread): Add new parameter
  12517. "main_thread_p" with default value set to false. Update
  12518. function documentation as well as all callers.
  12519. (windows_delete_thread): Likewise.
  12520. (fake_create_process): Update call to windows_add_thread.
  12521. (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
  12522. <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
  12523. <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
  12524. call to windows_delete_thread.
  12525. 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
  12526. * MAINTAINERS: Add Andrew Burgess as global maintainer.
  12527. 2019-02-12 John Baldwin <jhb@FreeBSD.org>
  12528. * symfile.c (find_separate_debug_file): Use canonical path of
  12529. sysroot with child_path instead of gdb_sysroot if it is valid.
  12530. 2019-02-12 John Baldwin <jhb@FreeBSD.org>
  12531. * symfile.c (find_separate_debug_file): Use child_path to
  12532. determine if an object file is under a sysroot.
  12533. 2019-02-12 John Baldwin <jhb@FreeBSD.org>
  12534. * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
  12535. unittests/child-path-selftests.c.
  12536. * common/pathstuff.c (child_path): New function.
  12537. * common/pathstuff.h (child_path): New prototype.
  12538. * unittests/child-path-selftests.c: New file.
  12539. 2019-02-12 John Baldwin <jhb@FreeBSD.org>
  12540. * symfile.c (find_separate_debug_file): Look for separate debug
  12541. files in debug directories under the sysroot.
  12542. 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  12543. * symtab.h (struct minimal_symbol data_p): New const method.
  12544. (struct minimal_symbol text_p): Likewise.
  12545. * symtab.c (output_source_filename): Use file name style
  12546. to print file name.
  12547. (print_symbol_info): Likewise.
  12548. (print_msymbol_info): Use address style to print addresses.
  12549. Use function name style to print executable text symbols.
  12550. (expand_symtab_containing_pc): Use data_p.
  12551. (find_pc_sect_compunit_symtab): Likewise.
  12552. 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  12553. * breakpoint.c (describe_other_breakpoints): Use address style
  12554. to print addresses.
  12555. (say_where): Likewise.
  12556. 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  12557. * ada-typeprint.c (print_func_type): Print function name
  12558. style to print function name.
  12559. * c-typeprint.c (c_print_type_1): Likewise.
  12560. 2019-02-11 Alan Hayward <alan.hayward@arm.com>
  12561. * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
  12562. for execve.
  12563. 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  12564. * c-exp.y (direct_abs_decl): Use emplace_back to record the
  12565. type_stack.
  12566. 2019-02-10 Joel Brobecker <brobecker@adacore.com>
  12567. * ada-varobj.c (ada_value_is_changeable_p): Add handling of
  12568. TYPE_CODE_REF types.
  12569. 2019-02-08 Jim Wilson <jimw@sifive.com>
  12570. * riscv-linux-tdep.c (riscv_linux_fregmap): New.
  12571. (riscv_linux_fregset): New.
  12572. (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
  12573. 2019-02-07 Tom Tromey <tom@tromey.com>
  12574. * thread.c (thread_cancel_execution_command): Update.
  12575. * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
  12576. methods.
  12577. (struct thread_fsm_ops): Remove.
  12578. (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
  12579. (thread_fsm_should_stop, thread_fsm_return_value)
  12580. (thread_fsm_set_finished, thread_fsm_finished_p)
  12581. (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
  12582. Don't declare.
  12583. * mi/mi-interp.c (mi_on_normal_stop_1): Update.
  12584. * infrun.c (clear_proceed_status_thread)
  12585. (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
  12586. (print_stop_event): Update.
  12587. * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
  12588. Add constructor.
  12589. (step_command_fsm_ops): Remove.
  12590. (new_step_command_fsm): Remove.
  12591. (step_1): Update.
  12592. (step_command_fsm::should_stop): Rename from
  12593. step_command_fsm_should_stop.
  12594. (step_command_fsm::clean_up): Rename from
  12595. step_command_fsm_clean_up.
  12596. (step_command_fsm::do_async_reply_reason): Rename from
  12597. step_command_fsm_async_reply_reason.
  12598. (struct until_next_fsm): Inherit from thread_fsm. Add
  12599. constructor.
  12600. (until_next_fsm_ops): Remove.
  12601. (new_until_next_fsm): Remove.
  12602. (until_next_fsm::should_stop): Rename from
  12603. until_next_fsm_should_stop.
  12604. (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
  12605. (until_next_fsm::do_async_reply_reason): Rename from
  12606. until_next_fsm_async_reply_reason.
  12607. (struct finish_command_fsm): Inherit from thread_fsm. Add
  12608. constructor. Change type of breakpoint.
  12609. (finish_command_fsm_ops): Remove.
  12610. (new_finish_command_fsm): Remove.
  12611. (finish_command_fsm::should_stop): Rename from
  12612. finish_command_fsm_should_stop.
  12613. (finish_command_fsm::clean_up): Rename from
  12614. finish_command_fsm_clean_up.
  12615. (finish_command_fsm::return_value): Rename from
  12616. finish_command_fsm_return_value.
  12617. (finish_command_fsm::do_async_reply_reason): Rename from
  12618. finish_command_fsm_async_reply_reason.
  12619. (finish_command): Update.
  12620. * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
  12621. Add constructor.
  12622. (call_thread_fsm_ops): Remove.
  12623. (call_thread_fsm::call_thread_fsm): Rename from
  12624. new_call_thread_fsm.
  12625. (call_thread_fsm::should_stop): Rename from
  12626. call_thread_fsm_should_stop.
  12627. (call_thread_fsm::should_notify_stop): Rename from
  12628. call_thread_fsm_should_notify_stop.
  12629. (run_inferior_call, call_function_by_hand_dummy): Update.
  12630. * cli/cli-interp.c (should_print_stop_to_console): Update.
  12631. * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
  12632. Add constructor. Change type of location_breakpoint,
  12633. caller_breakpoint.
  12634. (until_break_fsm_ops): Remove.
  12635. (new_until_break_fsm): Remove.
  12636. (until_break_fsm::should_stop): Rename from
  12637. until_break_fsm_should_stop.
  12638. (until_break_fsm::clean_up): Rename from
  12639. until_break_fsm_clean_up.
  12640. (until_break_fsm::do_async_reply_reason): Rename from
  12641. until_break_fsm_async_reply_reason.
  12642. (until_break_command): Update.
  12643. * thread-fsm.c: Remove.
  12644. * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
  12645. 2019-02-07 Tom Tromey <tom@tromey.com>
  12646. * yy-remap.h: Add include guard.
  12647. * xtensa-tdep.h: Add include guard.
  12648. * xcoffread.h: Rename include guard.
  12649. * varobj-iter.h: Add include guard.
  12650. * tui/tui.h: Rename include guard.
  12651. * tui/tui-winsource.h: Rename include guard.
  12652. * tui/tui-wingeneral.h: Rename include guard.
  12653. * tui/tui-windata.h: Rename include guard.
  12654. * tui/tui-win.h: Rename include guard.
  12655. * tui/tui-stack.h: Rename include guard.
  12656. * tui/tui-source.h: Rename include guard.
  12657. * tui/tui-regs.h: Rename include guard.
  12658. * tui/tui-out.h: Rename include guard.
  12659. * tui/tui-layout.h: Rename include guard.
  12660. * tui/tui-io.h: Rename include guard.
  12661. * tui/tui-hooks.h: Rename include guard.
  12662. * tui/tui-file.h: Rename include guard.
  12663. * tui/tui-disasm.h: Rename include guard.
  12664. * tui/tui-data.h: Rename include guard.
  12665. * tui/tui-command.h: Rename include guard.
  12666. * tic6x-tdep.h: Add include guard.
  12667. * target/waitstatus.h: Rename include guard.
  12668. * target/wait.h: Rename include guard.
  12669. * target/target.h: Rename include guard.
  12670. * target/resume.h: Rename include guard.
  12671. * target-float.h: Rename include guard.
  12672. * stabsread.h: Add include guard.
  12673. * rs6000-tdep.h: Add include guard.
  12674. * riscv-fbsd-tdep.h: Add include guard.
  12675. * regformats/regdef.h: Rename include guard.
  12676. * record.h: Rename include guard.
  12677. * python/python.h: Rename include guard.
  12678. * python/python-internal.h: Rename include guard.
  12679. * python/py-stopevent.h: Rename include guard.
  12680. * python/py-ref.h: Rename include guard.
  12681. * python/py-record.h: Rename include guard.
  12682. * python/py-record-full.h: Rename include guard.
  12683. * python/py-record-btrace.h: Rename include guard.
  12684. * python/py-instruction.h: Rename include guard.
  12685. * python/py-events.h: Rename include guard.
  12686. * python/py-event.h: Rename include guard.
  12687. * procfs.h: Add include guard.
  12688. * proc-utils.h: Add include guard.
  12689. * p-lang.h: Add include guard.
  12690. * or1k-tdep.h: Rename include guard.
  12691. * observable.h: Rename include guard.
  12692. * nto-tdep.h: Rename include guard.
  12693. * nat/x86-linux.h: Rename include guard.
  12694. * nat/x86-linux-dregs.h: Rename include guard.
  12695. * nat/x86-gcc-cpuid.h: Add include guard.
  12696. * nat/x86-dregs.h: Rename include guard.
  12697. * nat/x86-cpuid.h: Rename include guard.
  12698. * nat/ppc-linux.h: Rename include guard.
  12699. * nat/mips-linux-watch.h: Rename include guard.
  12700. * nat/linux-waitpid.h: Rename include guard.
  12701. * nat/linux-ptrace.h: Rename include guard.
  12702. * nat/linux-procfs.h: Rename include guard.
  12703. * nat/linux-osdata.h: Rename include guard.
  12704. * nat/linux-nat.h: Rename include guard.
  12705. * nat/linux-namespaces.h: Rename include guard.
  12706. * nat/linux-btrace.h: Rename include guard.
  12707. * nat/glibc_thread_db.h: Rename include guard.
  12708. * nat/gdb_thread_db.h: Rename include guard.
  12709. * nat/gdb_ptrace.h: Rename include guard.
  12710. * nat/fork-inferior.h: Rename include guard.
  12711. * nat/amd64-linux-siginfo.h: Rename include guard.
  12712. * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
  12713. * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
  12714. * nat/aarch64-linux.h: Rename include guard.
  12715. * nat/aarch64-linux-hw-point.h: Rename include guard.
  12716. * mn10300-tdep.h: Add include guard.
  12717. * mips-linux-tdep.h: Add include guard.
  12718. * mi/mi-parse.h: Rename include guard.
  12719. * mi/mi-out.h: Rename include guard.
  12720. * mi/mi-main.h: Rename include guard.
  12721. * mi/mi-interp.h: Rename include guard.
  12722. * mi/mi-getopt.h: Rename include guard.
  12723. * mi/mi-console.h: Rename include guard.
  12724. * mi/mi-common.h: Rename include guard.
  12725. * mi/mi-cmds.h: Rename include guard.
  12726. * mi/mi-cmd-break.h: Rename include guard.
  12727. * m2-lang.h: Add include guard.
  12728. * location.h: Rename include guard.
  12729. * linux-record.h: Rename include guard.
  12730. * linux-nat.h: Add include guard.
  12731. * linux-fork.h: Add include guard.
  12732. * i386-darwin-tdep.h: Rename include guard.
  12733. * hppa-linux-offsets.h: Add include guard.
  12734. * guile/guile.h: Rename include guard.
  12735. * guile/guile-internal.h: Rename include guard.
  12736. * gnu-nat.h: Rename include guard.
  12737. * gdb-stabs.h: Rename include guard.
  12738. * frv-tdep.h: Add include guard.
  12739. * f-lang.h: Add include guard.
  12740. * event-loop.h: Add include guard.
  12741. * darwin-nat.h: Rename include guard.
  12742. * cp-abi.h: Rename include guard.
  12743. * config/sparc/nm-sol2.h: Rename include guard.
  12744. * config/nm-nto.h: Rename include guard.
  12745. * config/nm-linux.h: Add include guard.
  12746. * config/i386/nm-i386gnu.h: Rename include guard.
  12747. * config/djgpp/nl_types.h: Rename include guard.
  12748. * config/djgpp/langinfo.h: Rename include guard.
  12749. * compile/gcc-cp-plugin.h: Add include guard.
  12750. * compile/gcc-c-plugin.h: Add include guard.
  12751. * compile/compile.h: Rename include guard.
  12752. * compile/compile-object-run.h: Rename include guard.
  12753. * compile/compile-object-load.h: Rename include guard.
  12754. * compile/compile-internal.h: Rename include guard.
  12755. * compile/compile-cplus.h: Rename include guard.
  12756. * compile/compile-c.h: Rename include guard.
  12757. * common/xml-utils.h: Rename include guard.
  12758. * common/x86-xstate.h: Rename include guard.
  12759. * common/version.h: Rename include guard.
  12760. * common/vec.h: Rename include guard.
  12761. * common/tdesc.h: Rename include guard.
  12762. * common/selftest.h: Rename include guard.
  12763. * common/scoped_restore.h: Rename include guard.
  12764. * common/scoped_mmap.h: Rename include guard.
  12765. * common/scoped_fd.h: Rename include guard.
  12766. * common/safe-iterator.h: Rename include guard.
  12767. * common/run-time-clock.h: Rename include guard.
  12768. * common/refcounted-object.h: Rename include guard.
  12769. * common/queue.h: Rename include guard.
  12770. * common/ptid.h: Rename include guard.
  12771. * common/print-utils.h: Rename include guard.
  12772. * common/preprocessor.h: Rename include guard.
  12773. * common/pathstuff.h: Rename include guard.
  12774. * common/observable.h: Rename include guard.
  12775. * common/netstuff.h: Rename include guard.
  12776. * common/job-control.h: Rename include guard.
  12777. * common/host-defs.h: Rename include guard.
  12778. * common/gdb_wait.h: Rename include guard.
  12779. * common/gdb_vecs.h: Rename include guard.
  12780. * common/gdb_unlinker.h: Rename include guard.
  12781. * common/gdb_unique_ptr.h: Rename include guard.
  12782. * common/gdb_tilde_expand.h: Rename include guard.
  12783. * common/gdb_sys_time.h: Rename include guard.
  12784. * common/gdb_string_view.h: Rename include guard.
  12785. * common/gdb_splay_tree.h: Rename include guard.
  12786. * common/gdb_setjmp.h: Rename include guard.
  12787. * common/gdb_ref_ptr.h: Rename include guard.
  12788. * common/gdb_optional.h: Rename include guard.
  12789. * common/gdb_locale.h: Rename include guard.
  12790. * common/gdb_assert.h: Rename include guard.
  12791. * common/filtered-iterator.h: Rename include guard.
  12792. * common/filestuff.h: Rename include guard.
  12793. * common/fileio.h: Rename include guard.
  12794. * common/environ.h: Rename include guard.
  12795. * common/common-utils.h: Rename include guard.
  12796. * common/common-types.h: Rename include guard.
  12797. * common/common-regcache.h: Rename include guard.
  12798. * common/common-inferior.h: Rename include guard.
  12799. * common/common-gdbthread.h: Rename include guard.
  12800. * common/common-exceptions.h: Rename include guard.
  12801. * common/common-defs.h: Rename include guard.
  12802. * common/common-debug.h: Rename include guard.
  12803. * common/cleanups.h: Rename include guard.
  12804. * common/buffer.h: Rename include guard.
  12805. * common/btrace-common.h: Rename include guard.
  12806. * common/break-common.h: Rename include guard.
  12807. * cli/cli-utils.h: Rename include guard.
  12808. * cli/cli-style.h: Rename include guard.
  12809. * cli/cli-setshow.h: Rename include guard.
  12810. * cli/cli-script.h: Rename include guard.
  12811. * cli/cli-interp.h: Rename include guard.
  12812. * cli/cli-decode.h: Rename include guard.
  12813. * cli/cli-cmds.h: Rename include guard.
  12814. * charset-list.h: Add include guard.
  12815. * buildsym-legacy.h: Rename include guard.
  12816. * bfin-tdep.h: Add include guard.
  12817. * ax.h: Rename include guard.
  12818. * arm-linux-tdep.h: Add include guard.
  12819. * arm-fbsd-tdep.h: Add include guard.
  12820. * arch/xtensa.h: Rename include guard.
  12821. * arch/tic6x.h: Add include guard.
  12822. * arch/i386.h: Add include guard.
  12823. * arch/arm.h: Rename include guard.
  12824. * arch/arm-linux.h: Rename include guard.
  12825. * arch/arm-get-next-pcs.h: Rename include guard.
  12826. * arch/amd64.h: Add include guard.
  12827. * arch/aarch64-insn.h: Rename include guard.
  12828. * arch-utils.h: Rename include guard.
  12829. * annotate.h: Add include guard.
  12830. * amd64-darwin-tdep.h: Rename include guard.
  12831. * aarch64-linux-tdep.h: Add include guard.
  12832. * aarch64-fbsd-tdep.h: Add include guard.
  12833. * aarch32-linux-nat.h: Add include guard.
  12834. 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  12835. * macrotab.c (macro_define_internal): New function that
  12836. factorizes macro_define_object_internal and macro_define_function
  12837. code.
  12838. (macro_define_object_internal): Use macro_define_internal.
  12839. (macro_define_function): Likewise.
  12840. 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  12841. * macrocmd.c (extract_identifier): Return
  12842. a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
  12843. callers.
  12844. 2019-02-06 John Baldwin <jhb@FreeBSD.org>
  12845. * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
  12846. 2019-02-05 Tom Tromey <tom@tromey.com>
  12847. * target.c (target_stack::unpush): Move assertion earlier.
  12848. 2019-01-30 Tom Tromey <tom@tromey.com>
  12849. PR python/23615:
  12850. * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
  12851. (gdbpy_parse_and_eval): Likewise.
  12852. * python/python-internal.h (gdbpy_allow_threads): New class.
  12853. 2019-01-28 John Baldwin <jhb@FreeBSD.org>
  12854. * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
  12855. (aarch64_fbsd_fpregmap): Move earlier.
  12856. (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
  12857. (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
  12858. instead of individual calls to trad_frame_set_reg_addr.
  12859. * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
  12860. earlier.
  12861. (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
  12862. (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
  12863. instead of individual calls to trad_frame_set_reg_addr.
  12864. 2019-01-28 Alan Hayward <alan.hayward@arm.com>
  12865. * CONTRIBUTE: Replace contribution list with wiki link.
  12866. 2019-01-25 Tom Tromey <tom@tromey.com>
  12867. * Makefile.in (GDB_CFLAGS): Don't add -I for common.
  12868. 2019-01-25 Tom Tromey <tom@tromey.com>
  12869. * xtensa-linux-nat.c: Fix common/ includes.
  12870. * xml-support.h: Fix common/ includes.
  12871. * xml-support.c: Fix common/ includes.
  12872. * x86-linux-nat.c: Fix common/ includes.
  12873. * windows-nat.c: Fix common/ includes.
  12874. * varobj.h: Fix common/ includes.
  12875. * varobj.c: Fix common/ includes.
  12876. * value.c: Fix common/ includes.
  12877. * valops.c: Fix common/ includes.
  12878. * utils.c: Fix common/ includes.
  12879. * unittests/xml-utils-selftests.c: Fix common/ includes.
  12880. * unittests/utils-selftests.c: Fix common/ includes.
  12881. * unittests/unpack-selftests.c: Fix common/ includes.
  12882. * unittests/tracepoint-selftests.c: Fix common/ includes.
  12883. * unittests/style-selftests.c: Fix common/ includes.
  12884. * unittests/string_view-selftests.c: Fix common/ includes.
  12885. * unittests/scoped_restore-selftests.c: Fix common/ includes.
  12886. * unittests/scoped_mmap-selftests.c: Fix common/ includes.
  12887. * unittests/scoped_fd-selftests.c: Fix common/ includes.
  12888. * unittests/rsp-low-selftests.c: Fix common/ includes.
  12889. * unittests/parse-connection-spec-selftests.c: Fix common/
  12890. includes.
  12891. * unittests/optional-selftests.c: Fix common/ includes.
  12892. * unittests/offset-type-selftests.c: Fix common/ includes.
  12893. * unittests/observable-selftests.c: Fix common/ includes.
  12894. * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
  12895. * unittests/memrange-selftests.c: Fix common/ includes.
  12896. * unittests/memory-map-selftests.c: Fix common/ includes.
  12897. * unittests/lookup_name_info-selftests.c: Fix common/ includes.
  12898. * unittests/function-view-selftests.c: Fix common/ includes.
  12899. * unittests/environ-selftests.c: Fix common/ includes.
  12900. * unittests/copy_bitwise-selftests.c: Fix common/ includes.
  12901. * unittests/common-utils-selftests.c: Fix common/ includes.
  12902. * unittests/cli-utils-selftests.c: Fix common/ includes.
  12903. * unittests/array-view-selftests.c: Fix common/ includes.
  12904. * ui-file.c: Fix common/ includes.
  12905. * tui/tui-io.c: Fix common/ includes.
  12906. * tracepoint.h: Fix common/ includes.
  12907. * tracepoint.c: Fix common/ includes.
  12908. * tracefile-tfile.c: Fix common/ includes.
  12909. * top.h: Fix common/ includes.
  12910. * top.c: Fix common/ includes.
  12911. * thread.c: Fix common/ includes.
  12912. * target/waitstatus.h: Fix common/ includes.
  12913. * target/waitstatus.c: Fix common/ includes.
  12914. * target.h: Fix common/ includes.
  12915. * target.c: Fix common/ includes.
  12916. * target-memory.c: Fix common/ includes.
  12917. * target-descriptions.c: Fix common/ includes.
  12918. * symtab.h: Fix common/ includes.
  12919. * symfile.c: Fix common/ includes.
  12920. * stap-probe.c: Fix common/ includes.
  12921. * spu-linux-nat.c: Fix common/ includes.
  12922. * sparc-nat.c: Fix common/ includes.
  12923. * source.c: Fix common/ includes.
  12924. * solib.c: Fix common/ includes.
  12925. * solib-target.c: Fix common/ includes.
  12926. * ser-unix.c: Fix common/ includes.
  12927. * ser-tcp.c: Fix common/ includes.
  12928. * ser-pipe.c: Fix common/ includes.
  12929. * ser-base.c: Fix common/ includes.
  12930. * selftest-arch.c: Fix common/ includes.
  12931. * s12z-tdep.c: Fix common/ includes.
  12932. * rust-exp.y: Fix common/ includes.
  12933. * rs6000-aix-tdep.c: Fix common/ includes.
  12934. * riscv-tdep.c: Fix common/ includes.
  12935. * remote.c: Fix common/ includes.
  12936. * remote-notif.h: Fix common/ includes.
  12937. * remote-fileio.h: Fix common/ includes.
  12938. * remote-fileio.c: Fix common/ includes.
  12939. * regcache.h: Fix common/ includes.
  12940. * regcache.c: Fix common/ includes.
  12941. * record-btrace.c: Fix common/ includes.
  12942. * python/python.c: Fix common/ includes.
  12943. * python/py-type.c: Fix common/ includes.
  12944. * python/py-inferior.c: Fix common/ includes.
  12945. * progspace.h: Fix common/ includes.
  12946. * producer.c: Fix common/ includes.
  12947. * procfs.c: Fix common/ includes.
  12948. * proc-api.c: Fix common/ includes.
  12949. * printcmd.c: Fix common/ includes.
  12950. * ppc-linux-nat.c: Fix common/ includes.
  12951. * parser-defs.h: Fix common/ includes.
  12952. * osdata.c: Fix common/ includes.
  12953. * obsd-nat.c: Fix common/ includes.
  12954. * nat/x86-linux.c: Fix common/ includes.
  12955. * nat/x86-linux-dregs.c: Fix common/ includes.
  12956. * nat/x86-dregs.h: Fix common/ includes.
  12957. * nat/x86-dregs.c: Fix common/ includes.
  12958. * nat/ppc-linux.c: Fix common/ includes.
  12959. * nat/mips-linux-watch.h: Fix common/ includes.
  12960. * nat/mips-linux-watch.c: Fix common/ includes.
  12961. * nat/linux-waitpid.c: Fix common/ includes.
  12962. * nat/linux-ptrace.h: Fix common/ includes.
  12963. * nat/linux-ptrace.c: Fix common/ includes.
  12964. * nat/linux-procfs.c: Fix common/ includes.
  12965. * nat/linux-personality.c: Fix common/ includes.
  12966. * nat/linux-osdata.c: Fix common/ includes.
  12967. * nat/linux-namespaces.c: Fix common/ includes.
  12968. * nat/linux-btrace.h: Fix common/ includes.
  12969. * nat/linux-btrace.c: Fix common/ includes.
  12970. * nat/fork-inferior.c: Fix common/ includes.
  12971. * nat/amd64-linux-siginfo.c: Fix common/ includes.
  12972. * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
  12973. * nat/aarch64-linux.c: Fix common/ includes.
  12974. * nat/aarch64-linux-hw-point.h: Fix common/ includes.
  12975. * nat/aarch64-linux-hw-point.c: Fix common/ includes.
  12976. * namespace.h: Fix common/ includes.
  12977. * mips-linux-tdep.c: Fix common/ includes.
  12978. * minsyms.c: Fix common/ includes.
  12979. * mi/mi-parse.h: Fix common/ includes.
  12980. * mi/mi-main.c: Fix common/ includes.
  12981. * mi/mi-cmd-env.c: Fix common/ includes.
  12982. * memrange.h: Fix common/ includes.
  12983. * memattr.c: Fix common/ includes.
  12984. * maint.h: Fix common/ includes.
  12985. * maint.c: Fix common/ includes.
  12986. * main.c: Fix common/ includes.
  12987. * machoread.c: Fix common/ includes.
  12988. * location.c: Fix common/ includes.
  12989. * linux-thread-db.c: Fix common/ includes.
  12990. * linux-nat.c: Fix common/ includes.
  12991. * linux-fork.c: Fix common/ includes.
  12992. * inline-frame.c: Fix common/ includes.
  12993. * infrun.c: Fix common/ includes.
  12994. * inflow.c: Fix common/ includes.
  12995. * inferior.h: Fix common/ includes.
  12996. * inferior.c: Fix common/ includes.
  12997. * infcmd.c: Fix common/ includes.
  12998. * inf-ptrace.c: Fix common/ includes.
  12999. * inf-child.c: Fix common/ includes.
  13000. * ia64-linux-nat.c: Fix common/ includes.
  13001. * i387-tdep.c: Fix common/ includes.
  13002. * i386-tdep.c: Fix common/ includes.
  13003. * i386-linux-tdep.c: Fix common/ includes.
  13004. * i386-linux-nat.c: Fix common/ includes.
  13005. * i386-go32-tdep.c: Fix common/ includes.
  13006. * i386-fbsd-tdep.c: Fix common/ includes.
  13007. * i386-fbsd-nat.c: Fix common/ includes.
  13008. * guile/scm-type.c: Fix common/ includes.
  13009. * guile/guile.c: Fix common/ includes.
  13010. * go32-nat.c: Fix common/ includes.
  13011. * gnu-nat.c: Fix common/ includes.
  13012. * gdbthread.h: Fix common/ includes.
  13013. * gdbarch-selftests.c: Fix common/ includes.
  13014. * gdb_usleep.c: Fix common/ includes.
  13015. * gdb_select.h: Fix common/ includes.
  13016. * gdb_bfd.c: Fix common/ includes.
  13017. * gcore.c: Fix common/ includes.
  13018. * fork-child.c: Fix common/ includes.
  13019. * findvar.c: Fix common/ includes.
  13020. * fbsd-nat.c: Fix common/ includes.
  13021. * event-top.c: Fix common/ includes.
  13022. * event-loop.c: Fix common/ includes.
  13023. * dwarf2read.c: Fix common/ includes.
  13024. * dwarf2loc.c: Fix common/ includes.
  13025. * dwarf2-frame.c: Fix common/ includes.
  13026. * dwarf-index-cache.c: Fix common/ includes.
  13027. * dtrace-probe.c: Fix common/ includes.
  13028. * disasm-selftests.c: Fix common/ includes.
  13029. * defs.h: Fix common/ includes.
  13030. * csky-tdep.c: Fix common/ includes.
  13031. * cp-valprint.c: Fix common/ includes.
  13032. * cp-support.h: Fix common/ includes.
  13033. * cp-support.c: Fix common/ includes.
  13034. * corelow.c: Fix common/ includes.
  13035. * completer.h: Fix common/ includes.
  13036. * completer.c: Fix common/ includes.
  13037. * compile/compile.c: Fix common/ includes.
  13038. * compile/compile-loc2c.c: Fix common/ includes.
  13039. * compile/compile-cplus-types.c: Fix common/ includes.
  13040. * compile/compile-cplus-symbols.c: Fix common/ includes.
  13041. * command.h: Fix common/ includes.
  13042. * cli/cli-dump.c: Fix common/ includes.
  13043. * cli/cli-cmds.c: Fix common/ includes.
  13044. * charset.c: Fix common/ includes.
  13045. * build-id.c: Fix common/ includes.
  13046. * btrace.h: Fix common/ includes.
  13047. * btrace.c: Fix common/ includes.
  13048. * breakpoint.h: Fix common/ includes.
  13049. * breakpoint.c: Fix common/ includes.
  13050. * ax.h:
  13051. (enum agent_op): Fix common/ includes.
  13052. * ax-general.c (struct aop_map): Fix common/ includes.
  13053. * ax-gdb.c: Fix common/ includes.
  13054. * auxv.c: Fix common/ includes.
  13055. * auto-load.c: Fix common/ includes.
  13056. * arm-tdep.c: Fix common/ includes.
  13057. * arch/riscv.c: Fix common/ includes.
  13058. * arch/ppc-linux-common.c: Fix common/ includes.
  13059. * arch/i386.c: Fix common/ includes.
  13060. * arch/arm.c: Fix common/ includes.
  13061. * arch/arm-linux.c: Fix common/ includes.
  13062. * arch/arm-get-next-pcs.c: Fix common/ includes.
  13063. * arch/amd64.c: Fix common/ includes.
  13064. * arch/aarch64.c: Fix common/ includes.
  13065. * arch/aarch64-insn.c: Fix common/ includes.
  13066. * arch-utils.c: Fix common/ includes.
  13067. * amd64-windows-tdep.c: Fix common/ includes.
  13068. * amd64-tdep.c: Fix common/ includes.
  13069. * amd64-sol2-tdep.c: Fix common/ includes.
  13070. * amd64-obsd-tdep.c: Fix common/ includes.
  13071. * amd64-nbsd-tdep.c: Fix common/ includes.
  13072. * amd64-linux-tdep.c: Fix common/ includes.
  13073. * amd64-linux-nat.c: Fix common/ includes.
  13074. * amd64-fbsd-tdep.c: Fix common/ includes.
  13075. * amd64-fbsd-nat.c: Fix common/ includes.
  13076. * amd64-dicos-tdep.c: Fix common/ includes.
  13077. * amd64-darwin-tdep.c: Fix common/ includes.
  13078. * agent.c: Fix common/ includes.
  13079. * ada-lang.h: Fix common/ includes.
  13080. * ada-lang.c: Fix common/ includes.
  13081. * aarch64-tdep.c: Fix common/ includes.
  13082. 2019-01-25 Tom Tromey <tom@tromey.com>
  13083. * common/create-version.sh: Use common/version.h.
  13084. 2019-01-24 Pedro Alves <palves@redhat.com>
  13085. * infrun.c (signal_stop, signal_print, signal_program)
  13086. (signal_catch, signal_pass): Now arrays instead of pointers.
  13087. (update_signals_program_target, do_target_resume)
  13088. (signal_catch_update, handle_command, _initialize_infrun): Adjust.
  13089. * linux-nat.c (linux_nat_target::pass_signals)
  13090. (linux_nat_target::create_inferior, linux_nat_target::attach):
  13091. Adjust.
  13092. * linux-nat.h (linux_nat_target::pass_signals): Adjust.
  13093. * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
  13094. * procfs.c (procfs_target::pass_signals): Adjust.
  13095. * record-full.c (record_full_target::resume): Adjust.
  13096. * remote.c (remote_target::pass_signals)
  13097. (remote_target::program_signals): Adjust.
  13098. * target-debug.h (target_debug_print_signals): Now takes a
  13099. gdb::array_view as parameter. Adjust.
  13100. * target.h (target_ops) <pass_signals, program_signals>: Replace
  13101. pointer and length parameters with gdb::array_view.
  13102. (target_pass_signals, target_program_signals): Likewise.
  13103. * target-delegates.c: Regenerate.
  13104. 2019-01-24 Pedro Alves <palves@redhat.com>
  13105. * common/forward-scope-exit.h
  13106. (forward_scope_exit::forward_scope_exit): Pass arguments to
  13107. m_bind_function directly, instead of creating a std::bind and
  13108. copying that.
  13109. 2019-01-24 Alan Hayward <alan.hayward@arm.com>
  13110. * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
  13111. for static members.
  13112. (pass_in_v_vfp_candidate): Likewise.
  13113. 2019-01-23 Tom Tromey <tom@tromey.com>
  13114. Pedro Alves <palves@redhat.com>
  13115. * regcache.c (class regcache_invalidator): Remove.
  13116. (regcache::raw_write): Use make_scope_exit.
  13117. 2019-01-23 Tom Tromey <tom@tromey.com>
  13118. * ui-out.h (class ui_out_emit_type): Update comment.
  13119. 2019-01-23 Tom Tromey <tom@tromey.com>
  13120. * infrun.c (fetch_inferior_event): Update comment.
  13121. 2019-01-23 Tom Tromey <tom@tromey.com>
  13122. Pedro Alves <palves@redhat.com>
  13123. * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
  13124. parameter.
  13125. (fetch_inferior_event): Use SCOPE_EXIT.
  13126. 2019-01-23 Tom Tromey <tom@tromey.com>
  13127. Pedro Alves <palves@redhat.com>
  13128. * infrun.c (disable_thread_events): Delete.
  13129. (stop_all_threads): Use SCOPE_EXIT.
  13130. 2019-01-23 Tom Tromey <tom@tromey.com>
  13131. Pedro Alves <palves@redhat.com>
  13132. * symfile.c: Include forward-scope-exit.h.
  13133. (clear_symtab_users_cleanup): Replace forward declaration with
  13134. a FORWARD_SCOPE_EXIT.
  13135. (syms_from_objfile_1): Use the forward_scope_exit and
  13136. gdb::optional instead of cleanup_function.
  13137. (reread_symbols): Use the forward_scope_exit instead of
  13138. cleanup_function.
  13139. (clear_symtab_users_cleanup): Remove function.
  13140. 2019-01-23 Tom Tromey <tom@tromey.com>
  13141. Pedro Alves <palves@redhat.com>
  13142. * linux-nat.c: Include scope-exit.h.
  13143. (cleanup_target_stop): Remove.
  13144. (linux_nat_target::static_tracepoint_markers_by_strid): Use
  13145. SCOPE_EXIT.
  13146. 2019-01-23 Tom Tromey <tom@tromey.com>
  13147. Pedro Alves <palves@redhat.com>
  13148. * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
  13149. (call_function_by_hand_dummy): Use SCOPE_EXIT.
  13150. 2019-01-23 Tom Tromey <tom@tromey.com>
  13151. Andrew Burgess <andrew.burgess@embecosm.com>
  13152. Pedro Alves <palves@redhat.com>
  13153. * infrun.c (fetch_inferior_event): Use scope_exit.
  13154. * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
  13155. * top.c (execute_command): Use scope_exit.
  13156. * breakpoint.c (bpstat_do_actions): Use scope_exit.
  13157. * utils.c (do_bpstat_clear_actions_cleanup)
  13158. (make_bpstat_clear_actions_cleanup): Remove.
  13159. 2019-01-23 Tom Tromey <tom@tromey.com>
  13160. Pedro Alves <palves@redhat.com>
  13161. * infrun.c: Include "common/scope-exit.h"
  13162. (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
  13163. (wait_for_inferior): Use SCOPE_EXIT.
  13164. (fetch_inferior_event): Use scope_exit.
  13165. 2019-01-23 Tom Tromey <tom@tromey.com>
  13166. Pedro Alves <palves@redhat.com>
  13167. * breakpoint.c (create_breakpoint): Remove cleanup.
  13168. 2019-01-23 Tom Tromey <tom@tromey.com>
  13169. Andrew Burgess <andrew.burgess@embecosm.com>
  13170. Pedro Alves <palves@redhat.com>
  13171. 2019-01-23 Pedro Alves <palves@redhat.com>
  13172. * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
  13173. 2019-01-23 Pedro Alves <palves@redhat.com>
  13174. Andrew Burgess <andrew.burgess@embecosm.com>
  13175. * gdbthread.h: Include "common/forward-scope-exit.h".
  13176. (scoped_finish_thread_state): Redefine custom class in terms of
  13177. forward_scope_exit.
  13178. 2019-01-23 Pedro Alves <palves@redhat.com>
  13179. Andrew Burgess <andrew.burgess@embecosm.com>
  13180. * common/forward-scope-exit.h: New file.
  13181. 2019-01-23 Pedro Alves <palves@redhat.com>
  13182. Andrew Burgess <andrew.burgess@embecosm.com>
  13183. Tom Tromey <tom@tromey.com>
  13184. * common/scope-exit.h: New file.
  13185. 2019-01-23 Pedro Alves <palves@redhat.com>
  13186. * common/preprocessor.h (ESC): Rename to ...
  13187. (ESC_PARENS): ... this.
  13188. * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
  13189. (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
  13190. 2019-01-23 Tom Tromey <tom@tromey.com>
  13191. * language.h (class scoped_switch_to_sym_language_if_auto):
  13192. Initialize m_lang in both cases.
  13193. 2019-01-23 Alan Hayward <alan.hayward@arm.com>
  13194. * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
  13195. with XCNEW.
  13196. 2019-01-22 Tom Tromey <tom@tromey.com>
  13197. * corelow.c: Do not include sys/file.h.
  13198. 2019-01-22 Tom Tromey <tom@tromey.com>
  13199. * tui/tui-wingeneral.h: Include gdb_curses.h.
  13200. 2019-01-22 Tom Tromey <tom@tromey.com>
  13201. * source-cache.h (class source_cache) <get_source_lines,
  13202. get_plain_source_lines, extract_lines>: Rename "lines" parameter.
  13203. 2019-01-22 Tom Tromey <tom@tromey.com>
  13204. * remote-fileio.h (struct remote_target): Declare.
  13205. 2019-01-22 Tom Tromey <tom@tromey.com>
  13206. * python/py-arch.c: Do not include py-ref.h.
  13207. * python/py-bpevent.c: Do not include py-ref.h.
  13208. * python/py-cmd.c: Do not include py-ref.h.
  13209. * python/py-continueevent.c: Do not include py-ref.h.
  13210. * python/py-event.h: Do not include py-ref.h.
  13211. * python/py-evtregistry.c: Do not include py-ref.h.
  13212. * python/py-finishbreakpoint.c: Do not include py-ref.h.
  13213. * python/py-frame.c: Do not include py-ref.h.
  13214. * python/py-framefilter.c: Do not include py-ref.h.
  13215. * python/py-function.c: Do not include py-ref.h.
  13216. * python/py-infevents.c: Do not include py-ref.h.
  13217. * python/py-linetable.c: Do not include py-ref.h.
  13218. * python/py-objfile.c: Do not include py-ref.h.
  13219. * python/py-param.c: Do not include py-ref.h.
  13220. * python/py-prettyprint.c: Do not include py-ref.h.
  13221. * python/py-progspace.c: Do not include py-ref.h.
  13222. * python/py-symbol.c: Do not include py-ref.h.
  13223. * python/py-symtab.c: Do not include py-ref.h.
  13224. * python/py-type.c: Do not include py-ref.h.
  13225. * python/py-unwind.c: Do not include py-ref.h.
  13226. * python/py-utils.c: Do not include py-ref.h.
  13227. * python/py-value.c: Do not include py-ref.h.
  13228. * python/py-varobj.c: Do not include py-ref.h.
  13229. * python/py-xmethods.c: Do not include py-ref.h.
  13230. * python/python.c: Do not include py-ref.h.
  13231. * varobj.c: Do not include py-ref.h.
  13232. 2019-01-22 Tom Tromey <tom@tromey.com>
  13233. * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
  13234. keyword for bcache.
  13235. 2019-01-22 Tom Tromey <tom@tromey.com>
  13236. * compile/compile-cplus-types.c: Remove a comment by #include.
  13237. 2019-01-22 Tom Tromey <tom@tromey.com>
  13238. * compile/gcc-c-plugin.h: Include compile-internal.h.
  13239. 2019-01-22 Tom Tromey <tom@tromey.com>
  13240. * stabsread.c (EXTERN): Do not define.
  13241. (symnum, next_symbol_text_func, processing_gcc_compilation)
  13242. (within_function, global_sym_chain, global_stabs)
  13243. (previous_stab_code, this_object_header_files)
  13244. (n_this_object_header_files)
  13245. (n_allocated_this_object_header_files): Define.
  13246. * stabsread.h (EXTERN): Never define. Use "extern".
  13247. 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  13248. * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
  13249. history_value.
  13250. 2019-01-21 Tom Tromey <tom@tromey.com>
  13251. * ui-out.c: Fix includes.
  13252. * tui/tui-source.c: Fix includes.
  13253. * target.c: Fix includes.
  13254. * remote.c: Fix includes.
  13255. * regcache.c: Fix includes.
  13256. * python/py-block.c: Fix includes.
  13257. * printcmd.c: Fix includes.
  13258. * or1k-tdep.c: Fix includes.
  13259. * mi/mi-main.c: Fix includes.
  13260. * m32r-tdep.c: Fix includes.
  13261. * csky-tdep.c: Fix includes.
  13262. * compile/compile-cplus-types.c: Fix includes.
  13263. * cli/cli-interp.c: Fix includes.
  13264. 2019-01-21 Alan Hayward <alan.hayward@arm.com>
  13265. * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
  13266. for padding.
  13267. 2019-01-16 Tom Tromey <tom@tromey.com>
  13268. * objfiles.h (struct minimal_symbol_iterator): Rename. Move
  13269. earlier.
  13270. (struct objfile) <msymbols_range>: Move from top level.
  13271. <msymbols>: New method.
  13272. (class objfile_msymbols): Remove.
  13273. * symtab.c (default_collect_symbol_completion_matches_break_on):
  13274. Update.
  13275. * symmisc.c (dump_msymbols): Update.
  13276. * stabsread.c (scan_file_globals): Update.
  13277. * objc-lang.c (info_selectors_command, info_classes_command)
  13278. (find_methods): Update.
  13279. * minsyms.c (find_solib_trampoline_target): Update.
  13280. * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
  13281. * coffread.c (coff_symfile_read): Update.
  13282. * ada-lang.c (ada_lookup_simple_minsym)
  13283. (ada_collect_symbol_completion_matches): Update.
  13284. 2019-01-16 Tom Tromey <tom@tromey.com>
  13285. * objfiles.h (class objfile_msymbols) <iterator>: Change argument
  13286. type. Remove no-argument constructor.
  13287. <iterator::operator++>: Simplify.
  13288. <begin>: Update.
  13289. <end>: Use minimal_symbol_count.
  13290. 2019-01-16 Tom Tromey <tom@tromey.com>
  13291. * objfiles.h (struct objfile) <psymtabs>: New method.
  13292. (class objfile_psymtabs): Remove.
  13293. * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
  13294. typedef.
  13295. <range>: New method.
  13296. (require_partial_symbols): Change return type.
  13297. * psymtab.c (require_partial_symbols)
  13298. (psym_expand_symtabs_matching): Update.
  13299. * mdebugread.c (parse_partial_symbols): Update.
  13300. * dbxread.c (dbx_end_psymtab): Update.
  13301. 2019-01-15 Tom Tromey <tom@tromey.com>
  13302. * symtab.c (lookup_objfile_from_block)
  13303. (lookup_symbol_in_objfile_symtabs)
  13304. (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
  13305. (find_line_symtab, info_sources_command)
  13306. (default_collect_symbol_completion_matches_break_on)
  13307. (make_source_files_completion_list): Update.
  13308. * symmisc.c (print_objfile_statistics, dump_objfile)
  13309. (maintenance_print_symbols, maintenance_info_symtabs)
  13310. (maintenance_check_symtabs, maintenance_info_line_tables):
  13311. Update.
  13312. * source.c (select_source_symtab)
  13313. (forget_cached_source_info_for_objfile): Update.
  13314. * objfiles.h (class objfile_compunits): Remove.
  13315. (struct objfile) <compunits_range>: New typedef.
  13316. (compunits): New method.
  13317. * objfiles.c (objfile_relocate1): Update.
  13318. * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
  13319. * maint.c (count_symtabs_and_blocks): Update.
  13320. * linespec.c (iterate_over_all_matching_symtabs): Update.
  13321. * cp-support.c (add_symbol_overload_list_qualified): Update.
  13322. * coffread.c (coff_symtab_read): Update.
  13323. * ada-lang.c (add_nonlocal_symbols)
  13324. (ada_collect_symbol_completion_matches)
  13325. (ada_add_global_exceptions): Update.
  13326. 2019-01-15 Tom Tromey <tom@tromey.com>
  13327. * progspace.h (program_space) <objfiles_safe_range>: New
  13328. typedef.
  13329. <objfiles_safe>: New method.
  13330. * objfiles.h (class all_objfiles_safe): Remove.
  13331. * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
  13332. * jit.c (jit_inferior_exit_hook): Update.
  13333. 2019-01-17 Tom Tromey <tom@tromey.com>
  13334. * progspace.h (program_space) <objfiles_range>: New typedef.
  13335. <objfiles>: New method.
  13336. <objfiles_head>: Rename from objfiles.
  13337. (object_files): Update.
  13338. * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
  13339. * guile/scm-pretty-print.c
  13340. (ppscm_find_pretty_printer_from_objfiles): Update.
  13341. * guile/scm-objfile.c (gdbscm_objfiles): Update.
  13342. * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
  13343. Update.
  13344. * python/py-progspace.c (pspy_get_objfiles): Update.
  13345. * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
  13346. Update.
  13347. * python/py-objfile.c (objfpy_lookup_objfile_by_name)
  13348. (objfpy_lookup_objfile_by_build_id): Update.
  13349. * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
  13350. * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
  13351. Update.
  13352. * symtab.c (iterate_over_symtabs, matching_obj_sections)
  13353. (expand_symtab_containing_pc, lookup_objfile_from_block)
  13354. (lookup_static_symbol, basic_lookup_transparent_type)
  13355. (find_pc_sect_compunit_symtab, find_symbol_at_address)
  13356. (find_line_symtab, info_sources_command)
  13357. (default_collect_symbol_completion_matches_break_on)
  13358. (make_source_files_completion_list, find_main_name): Update.
  13359. * symmisc.c (print_symbol_bcache_statistics)
  13360. (print_objfile_statistics, maintenance_print_symbols)
  13361. (maintenance_print_msymbols, maintenance_print_objfiles)
  13362. (maintenance_info_symtabs, maintenance_check_symtabs)
  13363. (maintenance_expand_symtabs, maintenance_info_line_tables):
  13364. Update.
  13365. * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
  13366. (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
  13367. (map_overlay_command, unmap_overlay_command)
  13368. (simple_overlay_update, expand_symtabs_matching)
  13369. (map_symbol_filenames): Update.
  13370. * symfile-debug.c (set_debug_symfile): Update.
  13371. * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
  13372. Update.
  13373. * source.c (select_source_symtab, forget_cached_source_info):
  13374. Update.
  13375. * solib.c (solib_read_symbols): Update.
  13376. * solib-spu.c (append_ocl_sos): Update.
  13377. * psymtab.c (maintenance_print_psymbols)
  13378. (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
  13379. * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
  13380. * printcmd.c (info_symbol_command): Update.
  13381. * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
  13382. Update.
  13383. * objfiles.h (class all_objfiles): Remove.
  13384. * objfiles.c (have_partial_symbols, have_full_symbols)
  13385. (have_minimal_symbols, qsort_cmp, update_section_map)
  13386. (shared_objfile_contains_address_p)
  13387. (default_iterate_over_objfiles_in_search_order): Update.
  13388. * objc-lang.c (info_selectors_command, info_classes_command)
  13389. (find_methods): Update.
  13390. * minsyms.c (find_solib_trampoline_target): Update.
  13391. * maint.c (maintenance_info_sections)
  13392. (maintenance_translate_address, count_symtabs_and_blocks):
  13393. Update.
  13394. * main.c (captured_main_1): Update.
  13395. * linux-thread-db.c (try_thread_db_load_from_pdir)
  13396. (has_libpthread): Update.
  13397. * linespec.c (iterate_over_all_matching_symtabs)
  13398. (search_minsyms_for_name): Update.
  13399. * jit.c (jit_find_objf_with_entry_addr): Update.
  13400. * hppa-tdep.c (find_unwind_entry)
  13401. (hppa_lookup_stub_minimal_symbol): Update.
  13402. * gcore.c (gcore_create_callback, objfile_find_memory_regions):
  13403. Update.
  13404. * elfread.c (elf_gnu_ifunc_resolve_by_cache)
  13405. (elf_gnu_ifunc_resolve_by_got): Update.
  13406. * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
  13407. * dwarf-index-write.c (save_gdb_index_command): Update.
  13408. * cp-support.c (add_symbol_overload_list_qualified): Update.
  13409. * breakpoint.c (create_overlay_event_breakpoint)
  13410. (create_longjmp_master_breakpoint)
  13411. (create_std_terminate_master_breakpoint)
  13412. (create_exception_master_breakpoint): Update.
  13413. * blockframe.c (find_pc_partial_function): Update.
  13414. * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
  13415. (ada_collect_symbol_completion_matches)
  13416. (ada_add_global_exceptions): Update.
  13417. 2019-01-17 Tom Tromey <tom@tromey.com>
  13418. * solib-target.c (lm_info_target_p): Remove typedef. Don't
  13419. declare VEC.
  13420. (solib_target_parse_libraries): Change return type.
  13421. (library_list_start_segment, library_list_start_section)
  13422. (library_list_end_library, library_list_start_library); Update.
  13423. (solib_target_free_library_list): Remove.
  13424. (solib_target_parse_libraries): Remove cleanup. Change return
  13425. type.
  13426. (solib_target_current_sos): Update.
  13427. 2019-01-17 Tom Tromey <tromey@bapiya>
  13428. * valprint.c: Replace "the the" with "the".
  13429. * symtab.c: Replace "the the" with "the".
  13430. * solib.c: Replace "the the" with "the".
  13431. * solib-dsbt.c: Replace "the the" with "the".
  13432. * linespec.c: Replace "the the" with "the".
  13433. * dwarf2loc.h: Replace "the the" with "the".
  13434. * amd64-windows-tdep.c: Replace "the the" with "the".
  13435. * aarch64-tdep.c: Replace "the the" with "the".
  13436. 2019-01-16 Keith Seitz <keiths@redhat.com>
  13437. PR gdb/23773
  13438. * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
  13439. <builder>: Rename to ..
  13440. <m_builder>: ... this and make private.
  13441. (dwarf2_cu::get_builder): New method. Change all users of
  13442. `builder' to use this method.
  13443. (dwarf2_start_symtab): Move to ...
  13444. (dwarf2_cu::start_symtab): ... here. Update all callers
  13445. (setup_type_unit_groups): Move to ...
  13446. (dwarf2_cu::setup_type_unit_groups): ... here. Update all
  13447. callers.
  13448. (dwarf2_cu::reset_builder): New method.
  13449. (process_full_compunit, process_full_type_unit): Use
  13450. dwarf2_cu::reset_builder.
  13451. (follow_die_offset): Record the ancestor CU if it is different
  13452. from the followed DIE's CU.
  13453. (follow_die_sig_1): Likewise.
  13454. 2019-01-15 Tom Tromey <tom@tromey.com>
  13455. * remote.c (class remote_state) <buf>: Now a char_vector.
  13456. <buf_size>: Remove.
  13457. (remote_target::getpkt): Change type of buf. Remove sizeof_buf
  13458. parameter.
  13459. (remote_target::getpkt_or_notif_sane_1)
  13460. (remote_target::getpkt_sane)
  13461. (remote_target::getpkt_or_notif_sane): Likewise.
  13462. (class remote_target) <putpkt>: New overload.
  13463. (remote_target::read_frame): Change type of "buf_p". Remove
  13464. sizeof_p parameter.
  13465. (packet_ok): New overload.
  13466. (packet_check_result): New overload.
  13467. Update all uses.
  13468. 2019-01-14 Tom Tromey <tom@tromey.com>
  13469. * remote-notif.c (handle_notification, remote_notif_ack)
  13470. (remote_notif_parse): Make "buf" const.
  13471. * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
  13472. const.
  13473. (remote_notif_parse, remote_notif_ack, handle_notification):
  13474. Likewise.
  13475. * remote.c (remote_notif_stop_parse): Make "buf" const.
  13476. (remote_target::remote_parse_stop_reply): Make "buf" const.
  13477. (remote_notif_stop_ack): Make "buf" const.
  13478. 2019-01-14 Tom Tromey <tom@tromey.com>
  13479. * remote.c (remote_console_output): Make parameter const.
  13480. 2019-01-14 Tom Tromey <tom@tromey.com>
  13481. * target-debug.h (target_debug_print_signals): Constify.
  13482. * nto-procfs.c (nto_procfs_target::pass_signals): Update.
  13483. * procfs.c (procfs_target::pass_signals): Update.
  13484. * linux-nat.c (linux_nat_target::pass_signals): Update.
  13485. * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
  13486. * target-delegates.c: Rebuild.
  13487. * remote.c (remote_target::program_signals): Update.
  13488. (remote_target::pass_signals): Update.
  13489. * target.c (target_pass_signals): Constify argument.
  13490. (target_program_signals): Likewise.
  13491. * target.h (struct target_ops) <pass_signals, program_signals>:
  13492. Constify argument.
  13493. (target_pass_signals, target_program_signals): Constify argument.
  13494. 2019-01-14 Tom Tromey <tom@tromey.com>
  13495. PR tui/28819:
  13496. * tui/tui-io.c (gdb_wgetch): Print \r when needed.
  13497. 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
  13498. * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
  13499. field.
  13500. * rs6000-tdep.c: Include reggroups.h.
  13501. (IS_V_ALIAS_PSEUDOREG): Define.
  13502. (rs6000_register_name): Return names for the "vX" aliases.
  13503. (rs6000_pseudo_register_type): Return type for the "vX" aliases.
  13504. (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
  13505. aliases. Call default_register_reggroup_p for all other
  13506. pseudo-registers.
  13507. (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
  13508. New functions.
  13509. (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
  13510. Handle "vX" aliases.
  13511. (v_alias_pseudo_register_collect): New function.
  13512. (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
  13513. (rs6000_gdbarch_init): Initialize "vX" aliases as
  13514. pseudo-registers. Restore registration of
  13515. rs6000_pseudo_register_reggroup_p with
  13516. set_tdesc_pseudo_register_reggroup_p.
  13517. 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
  13518. * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
  13519. tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
  13520. set_gdbarch_num_pseudo_regs.
  13521. 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  13522. * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
  13523. Remove arg prefixname, add do_set and do_show.
  13524. Add member functions set_list and show_list.
  13525. * cli/cli-style.c (class cli_style_option): Update accordingly.
  13526. (style_set_list): Move to file scope.
  13527. (style_show_list): Likewise.
  13528. (set_style): Call help_list.
  13529. (show_style): Call cmd_show_list.
  13530. (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
  13531. Update to use the new macro.
  13532. 2019-10-12 Joel Brobecker <brobecker@adacore.com>
  13533. * ada-lang.c (_initialize_ada_language): Expand the help text
  13534. for the "catch exception" command.
  13535. 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  13536. * symtab.c (matching_obj_sections): Initialize obj,
  13537. declare it closer to its usage.
  13538. 2019-01-10 Tom Tromey <tom@tromey.com>
  13539. * thread-iter.h (inf_threads_iterator): Use next_iterator.
  13540. (basic_inf_threads_range): Remove.
  13541. (inf_threads_range, inf_non_exited_threads_range)
  13542. (safe_inf_threads_range): Use next_adapter.
  13543. 2019-01-10 Keith Seitz <keiths@redhat.com>
  13544. PR gdb/23712
  13545. PR symtab/23010
  13546. * dwarf2read.c (dw2_add_symbol_to_list): Remove.
  13547. (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
  13548. 2019-01-10 Keith Seitz <keiths@redhat.com>
  13549. PR gdb/23712
  13550. PR symtab/23010
  13551. * dictionary.c (pending_to_vector): Remove.
  13552. (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
  13553. Remove _1 suffix, replacing functions of the same name. Update
  13554. all callers.
  13555. (dict_create_hashed, dict_create_hashed_expandable)
  13556. (dict_create_linear, dict_create_linear_expandable, dict_free)
  13557. (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
  13558. Make functions static.
  13559. 2019-01-10 Keith Seitz <keiths@redhat.com>
  13560. PR gdb/23712
  13561. PR symtab/23010
  13562. * dictionary.h (struct dictionary): Replace declaration with
  13563. multidictionary.
  13564. (dict_create_hashed, dict_create_hashed_expandable)
  13565. (dict_create_linear, dict_create_linear_expandable)
  13566. (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
  13567. (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
  13568. (dict_iter_match_next, dict_size): Rename to "mdict_" versions
  13569. taking multidictionary argument.
  13570. [ALL_DICT_SYMBOLS]: Update for multidictionary.
  13571. * block.h (struct block) <dict>: Change to multidictionary
  13572. and rename `multidict'.
  13573. * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
  13574. symmisc.c: Update all dictionary references to multidictionary.
  13575. 2019-01-10 Keith Seitz <keiths@redhat.com>
  13576. PR gdb/23712
  13577. PR symtab/23010
  13578. * dictionary.c: Include unordered_map.
  13579. (pending_to_vector): New function.
  13580. (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
  13581. Rewrite the non-"_1" functions to take vector instead
  13582. of linked list.
  13583. (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
  13584. "new" _1 versions of the same name.
  13585. (multidictionary): Define.
  13586. (std::hash<enum language): New definition.
  13587. (collate_pending_symbols_by_language, mdict_create_hashed)
  13588. (mdict_create_hashed_expandable, mdict_create_linear)
  13589. (mdict_create_linear_expandable, mdict_free)
  13590. (find_language_dictionary, create_new_language_dictionary)
  13591. (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
  13592. (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
  13593. (mdict_size, mdict_empty): New functions.
  13594. * dictionary.h (mdict_iterator): Define.
  13595. 2019-01-10 Pedro Alves <palves@redhat.com>
  13596. * breakpoint.c (read_uploaded_action)
  13597. (create_tracepoint_from_upload): Adjust to use
  13598. gdb::unique_xmalloc_ptr.
  13599. * ctf.c (ctf_write_uploaded_tp):
  13600. (SET_ARRAY_FIELD): Use emplace_back.
  13601. (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
  13602. * tracefile-tfile.c (tfile_write_uploaded_tp):
  13603. * tracepoint.c (parse_tracepoint_definition): Adjust to use
  13604. gdb::unique_xmalloc_ptr.
  13605. * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
  13606. at_string, cond_string, cmd_strings>: Replace char pointers
  13607. with gdb::unique_xmalloc_ptr.
  13608. 2019-01-10 Pedro Alves <palves@redhat.com>
  13609. * solib-target.c (library_list_start_library): Don't xstrdup name.
  13610. 2019-01-10 Pedro Alves <palves@redhat.com>
  13611. * mdebugread.c (parse_partial_symbols): Use
  13612. gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
  13613. 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
  13614. * linux-fork.c (scoped_switch_fork_info)
  13615. <~scoped_switch_fork_info>: Fix incorrect variable name.
  13616. 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
  13617. * linux-fork.c (scoped_switch_fork_info)
  13618. <scoped_switch_fork_info>: Make explicit.
  13619. <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
  13620. 2019-01-10 Tom Tromey <tom@tromey.com>
  13621. * objfiles.h (objfile::reset_psymtabs): Update.
  13622. * objfiles.c (objfile::objfile): Update.
  13623. * psymtab.h (psymtab_storage::obstack): Update.
  13624. (psymtab_storage::m_obstack): Use gdb::optional.
  13625. (class psymtab_storage): Update comment. Remove objfile
  13626. parameter.
  13627. * psymtab.c (psymtab_storage::psymtab_storage): Update.
  13628. 2019-01-10 Tom Tromey <tom@tromey.com>
  13629. * psymtab.h (psymtab_storage::allocate_psymtab): New method.
  13630. <free_psymtabs>: Now private.
  13631. * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
  13632. (allocate_psymtab): Use new method.
  13633. 2019-01-10 Tom Tromey <tom@tromey.com>
  13634. * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
  13635. * psymtab.h (psymtab_storage::allocate_dependencies): New method.
  13636. * mdebugread.c (parse_partial_symbols): Use
  13637. allocate_dependencies.
  13638. * dwarf2read.c (dwarf2_create_include_psymtab): Use
  13639. allocate_dependencies.
  13640. (process_psymtab_comp_unit_reader)
  13641. (build_type_psymtab_dependencies): Likewise.
  13642. * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
  13643. 2019-01-10 Tom Tromey <tom@tromey.com>
  13644. * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
  13645. PSYMBOL_SET_LANGUAGE.
  13646. (allocate_psymtab): Allocate psymtab on the psymtab obstack.
  13647. 2019-01-10 Tom Tromey <tom@tromey.com>
  13648. * psymtab.h (psymtab_storage::obstack): New method.
  13649. <m_obstack>: Rename from obstack; now private.
  13650. * psymtab.c (psymtab_storage): Update.
  13651. * dwarf2read.c (create_addrmap_from_index)
  13652. (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
  13653. Update.
  13654. 2019-01-10 Tom Tromey <tom@tromey.com>
  13655. * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
  13656. * objfiles.h (objfile::reset_psymtabs): New method.
  13657. 2019-01-10 Tom Tromey <tom@tromey.com>
  13658. * symmisc.c (print_symbol_bcache_statistics): Update.
  13659. (print_objfile_statistics): Update.
  13660. * symfile.c (reread_symbols): Update.
  13661. * psymtab.h (class psymtab_storage): New.
  13662. * psymtab.c (psymtab_storage): New constructor.
  13663. (~psymtab_storage): New destructor.
  13664. (require_partial_symbols): Update.
  13665. (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
  13666. (find_pc_sect_psymtab, find_pc_sect_psymbol)
  13667. (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
  13668. (psym_dump, recursively_search_psymtabs, psym_has_symbols)
  13669. (psym_find_compunit_symtab_by_address, sort_pst_symbols)
  13670. (start_psymtab_common, end_psymtab_common)
  13671. (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
  13672. (allocate_psymtab): Update.
  13673. (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
  13674. Update.
  13675. (dump_psymtab_addrmap, maintenance_print_psymbols)
  13676. (maintenance_check_psymtabs): Update.
  13677. (class objfile_psymtabs): Move to objfiles.h.
  13678. * psympriv.h (discard_psymtab): Now inline.
  13679. (psymtab_discarder::psymtab_discarder): Update.
  13680. (psymtab_discarder::~psymtab_discarder): Update.
  13681. (ALL_OBJFILE_PSYMTABS): Rewrite.
  13682. * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
  13683. free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
  13684. Remove fields.
  13685. <partial_symtabs>: New field.
  13686. (class objfile_psymtabs): Move from psymtab.h. Update.
  13687. * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
  13688. psymbol_cache.
  13689. (objfile::~objfile): Don't destroy psymbol_cache.
  13690. * mdebugread.c (parse_partial_symbols): Update.
  13691. * dwarf2read.c (create_addrmap_from_index)
  13692. (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
  13693. (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
  13694. (add_partial_subprogram, dwarf2_ranges_read): Update.
  13695. * dwarf-index-write.c (write_address_map)
  13696. (write_one_signatured_type, recursively_write_psymbols)
  13697. (class debug_names, class debug_names, write_psymtabs_to_index):
  13698. Update.
  13699. 2019-01-10 Tom Tromey <tom@tromey.com>
  13700. * symtab.h (SYMBOL_SET_NAMES): Update.
  13701. (symbol_set_names): Update.
  13702. (MSYMBOL_SET_NAMES): Update.
  13703. * symtab.c (symbol_set_names): Change argument to be an
  13704. objfile_per_bfd_storage.
  13705. * psymtab.c (add_psymbol_to_bcache): Update.
  13706. * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
  13707. 2019-01-10 Tom Tromey <tom@tromey.com>
  13708. * symtab.c (create_demangled_names_hash): Change argument to be an
  13709. objfile_per_bfd_storage.
  13710. (symbol_set_names): Update.
  13711. 2019-01-10 Tom Tromey <tom@tromey.com>
  13712. * xcoffread.c (xcoff_initial_scan): Unconditionally call
  13713. init_psymbol_list.
  13714. * psymtab.c (init_psymbol_list): Do nothing if already called.
  13715. * psympriv.h (init_psymbol_list): Add comment.
  13716. * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
  13717. init_psymbol_list.
  13718. * dbxread.c (dbx_symfile_read): Unconditionally call
  13719. init_psymbol_list.
  13720. 2019-01-10 Tom Tromey <tom@tromey.com>
  13721. * xcoffread.c (scan_xcoff_symtab): Update.
  13722. * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
  13723. "where".
  13724. * mdebugread.c (parse_partial_symbols)
  13725. (handle_psymbol_enumerators): Update.
  13726. * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
  13727. * dbxread.c (read_dbx_symtab): Update.
  13728. * psympriv.h (psymbol_placement): New enum.
  13729. (add_psymbol_to_list): Update.
  13730. 2019-01-10 Tom Tromey <tom@tromey.com>
  13731. * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
  13732. static_psymbols parameters.
  13733. (scan_xcoff_symtab): Update.
  13734. * psymtab.c (start_psymtab_common): Remove global_psymbols and
  13735. static_psymbols parameters.
  13736. * psympriv.h (start_psymtab_common): Update.
  13737. * mdebugread.c (parse_partial_symbols): Update.
  13738. * dwarf2read.c (create_partial_symtab): Update.
  13739. * dbxread.c (read_dbx_symtab): Update.
  13740. (start_psymtab): Remove global_psymbols and static_psymbols
  13741. parameters.
  13742. 2019-01-10 Tom Tromey <tom@tromey.com>
  13743. * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
  13744. * psymtab.c (allocate_psymtab): Add comment.
  13745. * psympriv.h (allocate_psymtab): Add comment.
  13746. * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
  13747. initializations.
  13748. * dbxread.c (dbx_end_psymtab): Remove some initializations.
  13749. 2019-01-10 Tom Tromey <tom@tromey.com>
  13750. * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
  13751. Don't declare.
  13752. * mipsread.c: Include mdebugread.h.
  13753. * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
  13754. Declare.
  13755. * elfread.c: Include mdebugread.h.
  13756. 2019-01-09 Tom Tromey <tom@tromey.com>
  13757. * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
  13758. * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
  13759. * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
  13760. (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
  13761. (psym_lookup_symbol, psym_find_last_source_symtab)
  13762. (psym_forget_cached_source_info, psym_print_stats)
  13763. (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
  13764. (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
  13765. (psym_map_matching_symbols, psym_expand_symtabs_matching)
  13766. (psym_find_compunit_symtab_by_address)
  13767. (maintenance_print_psymbols, maintenance_info_psymtabs)
  13768. (maintenance_check_psymtabs): Use ranged for.
  13769. * psymtab.h (class objfile_psymtabs): New.
  13770. (require_partial_symbols): Return objfile_psymtabs.
  13771. * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
  13772. 2019-01-09 Tom Tromey <tom@tromey.com>
  13773. * symfile.c (overlay_invalidate_all, find_pc_overlay)
  13774. (find_pc_mapped_section, list_overlays_command)
  13775. (map_overlay_command, unmap_overlay_command)
  13776. (simple_overlay_update): Use all_objfiles.
  13777. * spu-tdep.c (spu_overlay_update): Use all_objfiles.
  13778. * printcmd.c (info_symbol_command): Use all_objfiles.
  13779. * objfiles.h (ALL_OBJSECTIONS): Remove.
  13780. * maint.c (maintenance_translate_address): Use all_objfiles.
  13781. * gcore.c (gcore_create_callback): Use all_objfiles.
  13782. (objfile_find_memory_regions): Likewise.
  13783. 2019-01-09 Tom Tromey <tom@tromey.com>
  13784. * symtab.c (find_line_symtab, info_sources_command)
  13785. (make_source_files_completion_list): Use objfile_compunits.
  13786. * source.c (select_source_symtab): Use objfile_compunits.
  13787. * objfiles.h (struct objfile): Update comment.
  13788. (ALL_OBJFILES): Remove.
  13789. (ALL_FILETABS): Remove.
  13790. * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
  13791. objfile_compunits.
  13792. 2019-01-09 Tom Tromey <tom@tromey.com>
  13793. * symmisc.c (print_objfile_statistics, dump_objfile)
  13794. (maintenance_print_symbols): Use compunit_filetabs.
  13795. * source.c (forget_cached_source_info_for_objfile): Use
  13796. compunit_filetabs.
  13797. * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
  13798. (ALL_FILETABS): Use compunit_filetabs.
  13799. * objfiles.c (objfile_relocate1): Use compunit_filetabs.
  13800. * coffread.c (coff_symtab_read): Use compunit_filetabs.
  13801. 2019-01-09 Tom Tromey <tom@tromey.com>
  13802. * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
  13803. (compunit_filetabs): New.
  13804. * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
  13805. compunit_filetabs.
  13806. (info_sources_command, make_source_files_completion_list): Remove
  13807. declaration.
  13808. * symmisc.c (print_objfile_statistics, dump_objfile)
  13809. (maintenance_print_symbols): Remove declaration.
  13810. (maintenance_info_symtabs): Use compunit_filetabs.
  13811. (maintenance_info_line_tables): Likewise.
  13812. * source.c (select_source_symtab): Change local variable name.
  13813. (forget_cached_source_info_for_objfile): Remove declaration.
  13814. * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
  13815. * objfiles.c (objfile_relocate1): Remove declaration.
  13816. * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
  13817. declaration.
  13818. * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
  13819. * coffread.c (coff_symtab_read): Remove declaration.
  13820. * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
  13821. compunit_filetabs.
  13822. 2019-01-09 Tom Tromey <tom@tromey.com>
  13823. * symtab.c (lookup_objfile_from_block)
  13824. (find_pc_sect_compunit_symtab, search_symbols)
  13825. (default_collect_symbol_completion_matches_break_on): Use
  13826. objfile_compunits.
  13827. * objfiles.h (ALL_COMPUNITS): Remove.
  13828. * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
  13829. * cp-support.c (add_symbol_overload_list_qualified): Use
  13830. objfile_compunits.
  13831. * ada-lang.c (ada_collect_symbol_completion_matches)
  13832. (ada_add_global_exceptions): Use objfile_compunits.
  13833. 2019-01-09 Tom Tromey <tom@tromey.com>
  13834. * source.c (select_source_symtab)
  13835. (forget_cached_source_info_for_objfile): Remove declaration.
  13836. * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
  13837. declaration.
  13838. * maint.c (count_symtabs_and_blocks): Remove declaration.
  13839. * cp-support.c (add_symbol_overload_list_qualified): Remove
  13840. declaration.
  13841. * coffread.c (coff_symtab_read): Remove declaration.
  13842. * symtab.c (lookup_symbol_in_objfile_symtabs)
  13843. (basic_lookup_transparent_type_1): Use objfile_compunits.
  13844. (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
  13845. (info_sources_command, search_symbols)
  13846. (default_collect_symbol_completion_matches_break_on)
  13847. (make_source_files_completion_list): Remove declaration.
  13848. * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
  13849. (ada_collect_symbol_completion_matches)
  13850. (ada_add_global_exceptions): Remove declaration.
  13851. * linespec.c (iterate_over_all_matching_symtabs): Use
  13852. objfile_compunits.
  13853. * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
  13854. (class objfile_compunits): New.
  13855. (ALL_COMPUNITS): Use objfile_compunits.
  13856. * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
  13857. (maintenance_check_symtabs, maintenance_info_line_tables): Use
  13858. objfile_compunits.
  13859. * objfiles.c (objfile_relocate1): Use objfile_compunits.
  13860. 2019-01-09 Tom Tromey <tom@tromey.com>
  13861. * symtab.c (search_symbols)
  13862. (default_collect_symbol_completion_matches_break_on): Use
  13863. objfile_msymbols.
  13864. * ada-lang.c (ada_lookup_simple_minsym)
  13865. (ada_collect_symbol_completion_matches): Use objfile_msymbols.
  13866. * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
  13867. * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
  13868. objfile_msymbols.
  13869. * coffread.c (coff_symfile_read): Use objfile_msymbols.
  13870. * symmisc.c (dump_msymbols): Use objfile_msymbols.
  13871. * objc-lang.c (find_methods): Use objfile_msymbols.
  13872. (info_selectors_command, info_classes_command): Likewise.
  13873. * stabsread.c (scan_file_globals): Use objfile_msymbols.
  13874. * objfiles.h (class objfile_msymbols): New.
  13875. (ALL_OBJFILE_MSYMBOLS): Remove.
  13876. (ALL_MSYMBOLS): Remove.
  13877. 2019-01-09 Tom Tromey <tom@tromey.com>
  13878. * common/next-iterator.h (next_adapter): Add Iterator template
  13879. parameter.
  13880. * objfiles.h (ALL_OBJFILES_SAFE): Remove.
  13881. (class all_objfiles_safe): New.
  13882. * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
  13883. * objfiles.c (put_objfile_before): Update comment.
  13884. (add_separate_debug_objfile): Likewise.
  13885. (free_all_objfiles): Use all_objfiles_safe.
  13886. (objfile_purge_solibs): Likewise.
  13887. 2019-01-09 Tom Tromey <tom@tromey.com>
  13888. * symtab.c (iterate_over_symtabs, matching_obj_sections)
  13889. (expand_symtab_containing_pc, lookup_static_symbol)
  13890. (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
  13891. (find_symbol_at_address, find_line_symtab, find_main_name): Use
  13892. all_objfiles.
  13893. * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
  13894. * breakpoint.c (create_overlay_event_breakpoint)
  13895. (create_longjmp_master_breakpoint)
  13896. (create_std_terminate_master_breakpoint)
  13897. (create_exception_master_breakpoint): Use all_objfiles.
  13898. * linux-thread-db.c (try_thread_db_load_from_pdir)
  13899. (has_libpthread): Use all_objfiles.
  13900. * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
  13901. * linespec.c (iterate_over_all_matching_symtabs)
  13902. (search_minsyms_for_name): Use all_objfiles.
  13903. * maint.c (maintenance_info_sections): Use all_objfiles.
  13904. * main.c (captured_main_1): Use all_objfiles.
  13905. * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
  13906. * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
  13907. * guile/scm-pretty-print.c
  13908. (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
  13909. * solib-spu.c (append_ocl_sos): Use all_objfiles.
  13910. * symmisc.c (maintenance_print_symbols): Use all_objfiles.
  13911. (maintenance_print_msymbols): Use all_objfiles.
  13912. * source.c (select_source_symtab): Use all_objfiles.
  13913. * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
  13914. * symfile.c (remove_symbol_file_command)
  13915. (expand_symtabs_matching, map_symbol_filenames): Use
  13916. all_objfiles.
  13917. * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
  13918. all_objfiles.
  13919. * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
  13920. * objc-lang.c (find_methods): Use all_objfiles.
  13921. * objfiles.c (have_partial_symbols, have_full_symbols)
  13922. (have_minimal_symbols, qsort_cmp)
  13923. (default_iterate_over_objfiles_in_search_order): Use
  13924. all_objfiles.
  13925. * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
  13926. * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
  13927. (maintenance_check_psymtabs): Use all_objfiles.
  13928. (ALL_PSYMTABS): Remove.
  13929. * compile/compile-object-run.c (do_module_cleanup): Use
  13930. all_objfiles.
  13931. * blockframe.c (find_pc_partial_function): Use all_objfiles.
  13932. * cp-support.c (add_symbol_overload_list_qualified): Use
  13933. all_objfiles.
  13934. * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
  13935. Use all_objfiles.
  13936. * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
  13937. * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
  13938. all_objfiles.
  13939. * python/py-objfile.c (objfpy_lookup_objfile_by_name)
  13940. (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
  13941. * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
  13942. Uses all_objfiles.
  13943. * solib.c (solib_read_symbols): Use all_objfiles
  13944. 2019-01-09 Tom Tromey <tom@tromey.com>
  13945. * probe.c (parse_probes_in_pspace): Use all_objfiles.
  13946. * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
  13947. all_objfiles.
  13948. * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
  13949. * symmisc.c (print_symbol_bcache_statistics)
  13950. (print_objfile_statistics, maintenance_print_objfiles)
  13951. (maintenance_info_symtabs, maintenance_check_symtabs)
  13952. (maintenance_expand_symtabs, maintenance_info_line_tables): Use
  13953. all_objfiles.
  13954. * source.c (forget_cached_source_info): Use all_objfiles.
  13955. * symfile-debug.c (set_debug_symfile): Use all_objfiles.
  13956. * elfread.c (elf_gnu_ifunc_resolve_by_cache)
  13957. (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
  13958. * objfiles.c (update_section_map): Use all_objfiles.
  13959. (shared_objfile_contains_address_p): Likewise.
  13960. * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
  13961. * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
  13962. 2019-01-09 Tom Tromey <tom@tromey.com>
  13963. * common/next-iterator.h: New file.
  13964. * objfiles.h (class all_objfiles): New.
  13965. (struct objfile_iterator): New.
  13966. 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  13967. * NEWS: Move the description of the changed "frame", "select-frame",
  13968. and "info frame" commands to the Changed commands section.
  13969. 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
  13970. * gdbtypes.c (check_stub_method_group): Remove handling of old
  13971. mangling schemes.
  13972. * linespec.c (find_methods): Likewise.
  13973. * stabsread.c (read_member_functions): Likewise.
  13974. * valops.c (search_struct_method): Likewise.
  13975. (value_struct_elt_for_reference): Likewise.
  13976. * NEWS: Mention this change.
  13977. 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
  13978. * cli/cli-cmds.c (list_command): Pass a source_lines_range to
  13979. print_source_lines.
  13980. * source.c (print_source_lines_base): Update line number check.
  13981. (print_source_lines): New function.
  13982. (source_lines_range::source_lines_range): New function.
  13983. * source.h (class source_lines_range): New class.
  13984. (print_source_lines): New declaration.
  13985. 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  13986. * linespec.c (linespec_state_destructor): Free self->canonical_names.
  13987. 2019-01-08 Tom Tromey <tom@tromey.com>
  13988. Simon Marchi <simon.marchi@ericsson.com>
  13989. PR gdb/24060
  13990. * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
  13991. * ada-lex.l (DOLLAR_VARIABLE): Likewise.
  13992. * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
  13993. * f-exp.y (DOLLAR_VARIABLE): Likewise.
  13994. * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
  13995. * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
  13996. 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
  13997. * source.c (select_source_symtab): Move header comment to
  13998. declaration in source.h.
  13999. (forget_cached_source_info_for_objfile): Likewise.
  14000. (forget_cached_source_info): Likewise.
  14001. (identify_source_line): Likewise.
  14002. * source.h (identify_source_line): Move declaration from symtab.h
  14003. and add comment from source.c
  14004. (print_source_lines): Likewise.
  14005. (forget_cached_source_info_for_objfile): Likewise.
  14006. (forget_cached_source_info): Likewise.
  14007. (select_source_symtab): Likewise.
  14008. (enum print_source_lines_flag): Move definition from symtab.h.
  14009. * symtab.h (identify_source_line): Move declaration to source.h.
  14010. (print_source_lines): Likewise.
  14011. (forget_cached_source_info_for_objfile): Likewise.
  14012. (forget_cached_source_info): Likewise.
  14013. (select_source_symtab): Likewise.
  14014. (enum print_source_lines_flag): Move definition to source.h.
  14015. * tui/tui-hooks.c: Add 'source.h' include.
  14016. 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
  14017. * source.c (print_source_lines_base): Handle requests to print
  14018. reverse line number sequences, and guard against empty lines
  14019. string.
  14020. 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
  14021. * source.c (print_source_lines_base): Fix skip of '\r' if next
  14022. character is '\n'.
  14023. 2019-01-06 Tom Tromey <tom@tromey.com>
  14024. * c-exp.y (struct c_parse_state) <macro_original_text,
  14025. expansion_obstack>: New member.
  14026. (macro_original_text, expansion_obstack): Remove globals.
  14027. (scan_macro_expansion, scanning_macro_expansion)
  14028. (finished_macro_expansion): Update.
  14029. (scan_macro_cleanup): Remove.
  14030. (yylex, c_parse): Update.
  14031. 2019-01-06 Tom Tromey <tom@tromey.com>
  14032. * c-exp.y (struct c_parse_state) <strings>: New member.
  14033. (operator_stoken): Update.
  14034. 2019-01-06 Tom Tromey <tom@tromey.com>
  14035. * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
  14036. (union type_stack_elt) <typelist_val>: Now a pointer to
  14037. std::vector.
  14038. (type_stack_cleanup): Don't declare.
  14039. (push_typelist): Update.
  14040. * parse.c (pop_typelist): Return a std::vector.
  14041. (push_typelist): Take a std::vector.
  14042. (follow_types): Update. Do not free args.
  14043. (type_stack_cleanup): Remove.
  14044. * c-exp.y (struct c_parse_state): New.
  14045. (cpstate): New global.
  14046. (type_aggregate_p, exp, ptr_operator, parameter_typelist)
  14047. (nonempty_typelist): Update.
  14048. (func_mod): Create a new vector.
  14049. (c_parse): Create a c_parse_state.
  14050. (check_parameter_typelist): Do not delete params.
  14051. (function_method): Update. Do not delete type_list.
  14052. 2019-01-06 Tom Tromey <tom@tromey.com>
  14053. PR gdb/28155:
  14054. * python/py-finishbreakpoint.c (bpfinishpy_init): Use
  14055. check_typedef.
  14056. * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
  14057. (print_return_value): Likewise.
  14058. 2019-01-05 Tom Tromey <tom@tromey.com>
  14059. * contrib/cleanup_check.py: Remove.
  14060. * contrib/gcc-with-excheck: Remove.
  14061. * contrib/exsummary.py: Remove.
  14062. * contrib/excheck.py: Remove.
  14063. 2019-01-05 Joel Brobecker <brobecker@adacore.com>
  14064. * thread.c (delete_thread_1): Add gdb_assert that THR is not
  14065. NULL. Initialize tpprev to NULL instead of assigning it
  14066. to NULL on the next statement.
  14067. * windows-nat.c (windows_delete_thread): Remove check for
  14068. main_thread_id before printing thread exit notifications.
  14069. (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
  14070. Remove thread ID check against main_thread_id.
  14071. <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
  14072. windows_delete_thread.
  14073. <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
  14074. 2019-01-04 Tom Tromey <tom@tromey.com>
  14075. * compile/compile.c (_initialize_compile): Use upper case for
  14076. metasyntactic variables.
  14077. * symmisc.c (_initialize_symmisc): Use upper case for
  14078. metasyntactic variables.
  14079. * psymtab.c (_initialize_psymtab): Use upper case for
  14080. metasyntactic variables.
  14081. * demangle.c (demangle_command): Use upper case for metasyntactic
  14082. variables.
  14083. (_initialize_demangler): Likewise.
  14084. * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
  14085. variables.
  14086. 2019-01-03 Tom Tromey <tom@tromey.com>
  14087. * tui/tui-source.c (tui_set_source_content): Use xstrdup.
  14088. 2019-01-03 Tom Tromey <tom@tromey.com>
  14089. * python/py-symtab.c (salpy_str): Update.
  14090. (struct salpy_sal_object) <symtab>: Now a PyObject.
  14091. (salpy_dealloc): Update.
  14092. (del_objfile_sal): Use gdbpy_ref.
  14093. 2019-01-03 Tom Tromey <tom@tromey.com>
  14094. * python/py-type.c (convert_field): Use new_reference. Return
  14095. gdbpy_ref.
  14096. (make_fielditem): Return gdbpy_ref.
  14097. (typy_fields): Update.
  14098. (typy_getitem): Update.
  14099. (field_name): Return gdbpy_ref. Use new_reference.
  14100. (typy_iterator_iternext): Update.
  14101. 2019-01-03 Tom Tromey <tom@tromey.com>
  14102. * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
  14103. 2019-01-03 Tom Tromey <tom@tromey.com>
  14104. * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
  14105. * python/py-type.c (typy_fields_items): Use gdbpy_ref.
  14106. * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
  14107. (pspy_set_frame_filters, pspy_set_frame_unwinders)
  14108. (pspy_set_type_printers): Likewise.
  14109. * python/py-function.c (fnpy_init): Use gdbpy_ref.
  14110. * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
  14111. * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
  14112. (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
  14113. (objfpy_set_type_printers): Likewise.
  14114. 2019-01-03 Tom Tromey <tom@tromey.com>
  14115. * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
  14116. (gdbpy_print_stack): Use gdbpy_err_fetch.
  14117. * python/python-internal.h (class gdbpy_err_fetch): New class.
  14118. (class gdbpy_enter) <m_error_type, m_error_value,
  14119. m_error_traceback>: Remove.
  14120. <m_error>: New member.
  14121. (gdbpy_exception_to_string): Don't declare.
  14122. * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
  14123. * python/py-value.c (convert_value_from_python): Use
  14124. gdbpy_err_fetch.
  14125. * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
  14126. gdbpy_exception_to_string.
  14127. (gdbpy_handle_exception): Use gdbpy_err_fetch.
  14128. * python/py-prettyprint.c (print_stack_unless_memory_error): Use
  14129. gdbpy_err_fetch.
  14130. 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
  14131. * linux-nat.c (delete_lwp_cleanup): Delete.
  14132. (struct lwp_deleter): New struct.
  14133. (lwp_info_up): New typedef.
  14134. (linux_nat_target::follow_fork): Delete cleanup, and make use of
  14135. lwp_info_up.
  14136. 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
  14137. * linux-fork.c (class scoped_switch_fork_info): New class.
  14138. (inferior_call_waitpid): Update to use scoped_switch_fork_info.
  14139. 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
  14140. * valops.c (find_overload_match): Remove use of null_cleanup, and
  14141. calls to do_cleanups.
  14142. 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
  14143. * compile/compile-cplus-types.c
  14144. (compile_cplus_instance::decl_name): Handle changes to
  14145. cp_func_name.
  14146. * cp-support.c (cp_func_name): Update header comment, update
  14147. return type.
  14148. * cp-support.h (cp_func_name): Update return type in declaration.
  14149. * valops.c (find_overload_match): Move temp_func local to top
  14150. level of function and change its type. Use temp_func to hold and
  14151. delete temporary string obtained from cp_func_name.
  14152. 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
  14153. * remote.c (remote_target::remote_check_symbols): Convert `msg` to
  14154. gdb::char_vector, remove cleanup, and update uses of `msg`.
  14155. 2019-01-03 Jim Wilson <jimw@sifive.com>
  14156. * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
  14157. 2019-01-02 Tom Tromey <tom@tromey.com>
  14158. * xml-tdesc.c (xml_cache): Hold a target_desc_up.
  14159. (tdesc_parse_xml): Remove cleanups.
  14160. * target-descriptions.h (make_cleanup_free_target_description):
  14161. Don't declare.
  14162. (target_desc_deleter): New struct.
  14163. (target_desc_up): New typedef.
  14164. * target-descriptions.c (target_desc_deleter::operator()): Rename
  14165. from free_target_description.
  14166. (make_cleanup_free_target_description): Remove.
  14167. 2019-01-02 Tom Tromey <tom@tromey.com>
  14168. * linespec.c (struct linespec_parser): Rename from ls_parser. Add
  14169. constructor, destructor.
  14170. (linespec_parser): Remove typedef.
  14171. (~linespec_parser): Rename from linespec_parser_delete.
  14172. (linespec_lex_to_end, linespec_complete_label)
  14173. (linespec_complete): Update.
  14174. (decode_line_full): Remove cleanups.
  14175. (decode_line_1): Update.
  14176. 2019-01-02 Tom Tromey <tom@tromey.com>
  14177. * python/python-internal.h (inferior_to_inferior_object): Change
  14178. return type.
  14179. * python/py-exitedevent.c (create_exited_event_object): Update.
  14180. * python/py-inferior.c (inferior_to_inferior_object): Return
  14181. gdbpy_ref.
  14182. (python_new_inferior, python_inferior_deleted)
  14183. (thread_to_thread_object, delete_thread_object)
  14184. (build_inferior_list, gdbpy_selected_inferior): Update.
  14185. * python/py-infthread.c (create_thread_object): Update. Also fail
  14186. if inferior_to_inferior_object fails.
  14187. 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
  14188. * inferior.h (class inferior) <displaced_step_state>: New field.
  14189. * infrun.h (struct displaced_step_state): Move here from
  14190. infrun.c. Initialize fields, add constructor.
  14191. <inf>: Remove field.
  14192. <reset>: New method.
  14193. * infrun.c (struct displaced_step_inferior_state): Move to
  14194. infrun.h.
  14195. (displaced_step_inferior_states): Remove.
  14196. (get_displaced_stepping_state): Adust.
  14197. (displaced_step_in_progress_any_inferior): Adjust.
  14198. (displaced_step_in_progress_thread): Adjust.
  14199. (displaced_step_in_progress): Adjust.
  14200. (add_displaced_stepping_state): Remove.
  14201. (get_displaced_step_closure_by_addr): Adjust.
  14202. (remove_displaced_stepping_state): Remove.
  14203. (infrun_inferior_exit): Call displaced_step_state.reset.
  14204. (use_displaced_stepping): Don't check for NULL.
  14205. (displaced_step_prepare_throw): Call
  14206. get_displaced_stepping_state.
  14207. (displaced_step_fixup): Don't check for NULL.
  14208. (prepare_for_detach): Don't check for NULL.
  14209. 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  14210. * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
  14211. in case of call that did not complete.
  14212. 2019-01-02 Andrey Utkin <autkin@undo.io>
  14213. * symfile.c (find_separate_debug_file): Fix search of debug files for
  14214. remote debuggee.
  14215. 2019-01-02 Tom Tromey <tom@tromey.com>
  14216. * python/py-inferior.c (gdbpy_initialize_inferior): Fix
  14217. indentation.
  14218. * python/py-frame.c (frapy_older): Remove cast.
  14219. (frapy_newer): Likewise.
  14220. * python/py-breakpoint.c (local_setattro): Remove cast.
  14221. * python/py-arch.c (archpy_name): Remove local variable.
  14222. * python/py-type.c (gdbpy_lookup_type): Remove cast.
  14223. 2019-01-02 Joel Brobecker <brobecker@adacore.com>
  14224. * unittests/basic_string_view/element_access/char/empty.cc:
  14225. Fix year range in copyright header.
  14226. 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
  14227. * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
  14228. Delete.
  14229. <operator==>: Update with for removed field.
  14230. <hash>: Likewise.
  14231. * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
  14232. <isa_features>: ...this.
  14233. <abi_features>: New field.
  14234. (riscv_isa_flen): Update comment.
  14235. (riscv_abi_xlen): New declaration.
  14236. (riscv_abi_flen): New declaration.
  14237. * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
  14238. isa_features.
  14239. (riscv_abi_xlen): New function.
  14240. (riscv_isa_flen): Update to get answer from isa_features.
  14241. (riscv_abi_flen): New function.
  14242. (riscv_has_fp_abi): Update to get answer from abi_features.
  14243. (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
  14244. xlen and flen.
  14245. (riscv_call_info) <xlen, flen>: Update comment.
  14246. (riscv_call_arg_struct): Remove invalid assertions
  14247. (riscv_features_from_gdbarch_info): Update now hw_float_abi field
  14248. is removed.
  14249. (riscv_gdbarch_init): Gather isa features and abi features
  14250. separately, ensure both match on the gdbarch when reusing an old
  14251. gdbarch. Relax an error check to allow 32-bit abi float to run on
  14252. a target with 64-bit float hardware.
  14253. 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  14254. * source.c (search_command_helper): Stop reverse search
  14255. when line 1 has been searched.
  14256. 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  14257. * record-full.c (record_full_base_target::close): Rewrite
  14258. record_full_core_buf_list free logic.
  14259. 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  14260. * break-catch-syscall.c (print_one_catch_syscall): xfree
  14261. the last text.
  14262. 2019-01-01 Joel Brobecker <brobecker@adacore.com>
  14263. * top.c (print_gdb_version): Update Copyright year in version
  14264. message.
  14265. 2019-01-01 Joel Brobecker <brobecker@adacore.com>
  14266. Update copyright year range in all GDB files.
  14267. 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
  14268. * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
  14269. For older changes see ChangeLog-2018.
  14270. Local Variables:
  14271. mode: change-log
  14272. left-margin: 8
  14273. fill-column: 74
  14274. version-control: never
  14275. coding: utf-8
  14276. End: