ChangeLog-2020 699 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751
  1. 2020-12-27 Tom Tromey <tom@tromey.com>
  2. * eval.c (evaluate_subexp_standard) <case MULTI_SUBSCRIPT>:
  3. Simplify.
  4. 2020-12-24 Andrew Burgess <andrew.burgess@embecosm.com>
  5. PR gdb/27059
  6. * eval.c (evaluate_subexp_for_sizeof): Handle not allocated and
  7. not associated arrays.
  8. * f-lang.c (fortran_adjust_dynamic_array_base_address_hack): Don't
  9. adjust arrays that are not allocated/associated.
  10. * gdbtypes.c (resolve_dynamic_range): Update header comment. Add
  11. new parameter which is used to sometimes set dynamic properties to
  12. undefined.
  13. (resolve_dynamic_array_or_string): Update header comment. Add new
  14. parameter which is used to guard evaluating dynamic properties.
  15. Resolve allocated/associated properties first.
  16. 2020-12-24 Andrew Burgess <andrew.burgess@embecosm.com>
  17. * gdbtypes (recursive_dump_type): Include allocated and associated
  18. properties.
  19. 2020-12-24 Lancelot SIX <lsix@lancelotsix.com>
  20. * gdbtypes.c (is_scalar_type_recursive): Prevent comparison
  21. between uninitialized values.
  22. 2020-12-23 Andrew Burgess <andrew.burgess@embecosm.com>
  23. * expprint.c (print_subexp_standard): Replace uses of
  24. LA_PRINT_STRING.
  25. * f-valprint.c (f_language::value_print_inner): Likewise.
  26. * guile/scm-pretty-print.c (ppscm_print_string_repr): Likewise.
  27. * p-valprint.c (pascal_language::value_print_inner): Likewise.
  28. * python/py-prettyprint.c (print_string_repr): Likewise.
  29. 2020-12-23 Andrew Burgess <andrew.burgess@embecosm.com>
  30. * rust-exp.y (rust_parse): Rename to...
  31. (rust_language::parser): ...this.
  32. * rust-lang.c (-rust_printstr): Rename to...
  33. (rust_language::printstr): ...this.
  34. (rust_value_print_inner): Delete declaration.
  35. (val_print_struct): Rename to...
  36. (rust_language::val_print_struct): ...this. Update calls to
  37. member functions.
  38. (rust_print_enum): Rename to...
  39. (rust_language::print_enum): ...this. Update calls to member
  40. functions.
  41. (rust_value_print_inner): Rename to...
  42. (rust_language::value_print_inner): ...this. Update calls to
  43. member functions.
  44. (exp_descriptor_rust): Rename to...
  45. (rust_language::exp_descriptor_tab): ...this.
  46. (class rust_language): Move to rust-lang.h.
  47. (rust_language::language_arch_info): Implementation moved to here
  48. from class declaration.
  49. (rust_language::print_type): Likewise.
  50. (rust_language::emitchar): Likewise.
  51. (rust_language::is_string_type_p): Likewise.
  52. * rust-lang.h: Add 'demangle.h', 'language.h', 'value.h', and
  53. 'c-lang.h' includes.
  54. (rust_parse): Delete declaration.
  55. (class rust_language): Class declaration moved here from
  56. rust-lang.c.
  57. 2020-12-23 Andrew Burgess <andrew.burgess@embecosm.com>
  58. * objc-lang.c (objc_language::opcode_print_table): Return
  59. objc_op_print_tab.
  60. 2020-12-23 Andrew Burgess <andrew.burgess@embecosm.com>
  61. * p-exp.y (exp): Update call to pascal_is_string_type.
  62. (pascal_parse): Rename to...
  63. (pascal_language::parser): ...this.
  64. * p-lang.c (is_pascal_string_type): Rename to...
  65. (pascal_is_string_type): ...this.
  66. (pascal_one_char): Rename to...
  67. (pascal_language::print_one_char): ...this.
  68. (pascal_printchar): Rename to...
  69. (pascal_language::printchar): ...this. Update call to
  70. print_one_char member function.
  71. (pascal_op_print_tab): Rename to...
  72. (pascal_language::op_print_tab): ...this.
  73. (class pascal_language): Moved to p-lang.h.
  74. (pascal_language::language_arch_info): Function implementation
  75. moved out of class declaration.
  76. (pascal_language::printstr): Likewise.
  77. * p-lang.h (pascal_parse): Delete declaration.
  78. (pascal_is_string_type): Declare.
  79. (pascal_print_type): Delete declaration.
  80. (pascal_print_typedef): Delete declaration.
  81. (pascal_value_print_inner): Delete declaration.
  82. (pascal_value_print): Delete declaration.
  83. (pascal_type_print_method_args): Delete declaration.
  84. (is_pascal_string_type): Delete declaration.
  85. (pascal_printchar): Delete declaration.
  86. (pascal_builtin_types): Delete declaration.
  87. (pascal_type_print_base): Delete declaration.
  88. (pascal_type_print_varspec_prefix): Delete declaration.
  89. (class pascal_language): Moved here from p-lang.c.
  90. * p-typeprint.c (pascal_type_print_varspec_suffix): Delete
  91. declaration.
  92. (pascal_type_print_derivation_info): Delete declaration.
  93. (pascal_print_type): Rename to...
  94. (pascal_language::print_type): ...this. Update calls to member
  95. functions.
  96. (pascal_print_typedef): Rename to...
  97. (pascal_language::print_typedef): ...this. Update calls to member
  98. functions.
  99. (pascal_type_print_derivation_info): Rename to...
  100. (pascal_language::type_print_derivation_info): ...this.
  101. (pascal_type_print_method_args): Rename to...
  102. (pascal_language::type_print_method_args): ...this.
  103. (pascal_type_print_varspec_prefix): Rename to...
  104. (pascal_language::type_print_varspec_prefix): ...this. Update
  105. calls to member functions.
  106. (pascal_print_func_args): Rename to...
  107. (pascal_language::print_func_args): ...this. Update calls to
  108. member functions.
  109. (pascal_type_print_func_varspec_suffix): Rename to...
  110. (pascal_language::type_print_func_varspec_suffix): ...this.
  111. Update calls to member functions.
  112. (pascal_type_print_varspec_suffix): Rename to...
  113. (pascal_language::type_print_varspec_suffix): ...this. Update
  114. calls to member functions.
  115. (pascal_type_print_base): Rename to...
  116. (pascal_language::type_print_base): ...this. Update calls to
  117. member functions.
  118. * p-valprint.c (pascal_value_print_inner): Rename to...
  119. (pascal_language::value_print_inner): ...this. Update calls to
  120. member functions.
  121. (pascal_value_print): Rename to...
  122. (pascal_language::value_print): ...this. Update calls to member
  123. functions.
  124. 2020-12-23 Andrew Burgess <andrew.burgess@embecosm.com>
  125. * go-exp.y (go_parse): Rename to...
  126. (go_language::parser): ...this.
  127. * go-lang.c (go_demangle): Rename to...
  128. (go_language::demangle_symbol): ...this.
  129. (go_language::expression_ops): Implementation moved here out of
  130. class declaration.
  131. (go_op_print_tab): Rename to...
  132. (go_language::op_print_tab): ...this, update comment.
  133. (class go_language): Declaration moved to go-lang.h.
  134. (go_language::language_arch_info): Implementation moved here out
  135. of class declaration.
  136. * go-lang.h (go_parse): Delete declaration.
  137. (go_demangle): Delete declaration.
  138. (go_print_type): Delete declaration.
  139. (go_value_print_inner): Delete declaration.
  140. (class go_language): Declaration moved here from go-lang.c.
  141. * go-typeprint.c (go_print_type): Rename to...
  142. (go_language::print_type): ...this.
  143. * go-valprint.c (go_value_print_inner): Rename to...
  144. (go_language::value_print_inner): ...this.
  145. * symtab.c (demangle_for_lookup): Call demangle_symbol method on
  146. the go_language object.
  147. 2020-12-23 Andrew Burgess <andrew.burgess@embecosm.com>
  148. * c-lang.c (language_defn::printchar): Call emitchar, not
  149. LA_EMIT_CHAR.
  150. * f-lang.h (f_language::printchar): Likewise.
  151. * language.h (LA_EMIT_CHAR): Delete macro.
  152. * rust-lang.c (rust_language::printchar): Call emitchar, not
  153. LA_EMIT_CHAR.
  154. 2020-12-23 Andrew Burgess <andrew.burgess@embecosm.com>
  155. * c-lang.c (c_printchar): Rename to...
  156. (language_defn::printchar): ...this.
  157. * c-lang.h (c_printchar): Delete declaration.
  158. * language.c (language_defn::printchar): Delete this
  159. implementation. Is now implemented in c-lang.c.
  160. 2020-12-23 Andrew Burgess <andrew.burgess@embecosm.com>
  161. * dwarf2/read.c (dwarf2_compute_name): Call methods on C++
  162. language object instead of calling global functions directly.
  163. 2020-12-23 Andrew Burgess <andrew.burgess@embecosm.com>
  164. * valprint.c (print_char_chars): Delete definition.
  165. * valprint.h (print_char_chars): Delete declaration.
  166. 2020-12-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
  167. * i386-gnu-tdep.c (I386_GNU_UCONTEXT_T_THREAD_STATE_OFFSET): New
  168. macro.
  169. (i386_gnu_sigcontext_addr): Detect between legacy and siginfo from the
  170. second parameter, which is a small sigcode in the legacy case, and a
  171. pointer in the siginfo case.
  172. * MAINTAINERS (Write After Approval): Add myself.
  173. 2020-12-22 Shahab Vahedi <shahab@synopsys.com>
  174. * frame.c: Remove trailing white spaces.
  175. * frame.h: Likewise.
  176. 2020-12-22 Shahab Vahedi <shahab@synopsys.com>
  177. * arc-linux-tdep.c: Replace "regnum" with "REGNUM" in comments.
  178. 2020-12-22 Anton Kolesov <anton.kolesov@synopsys.com>
  179. * Makefile.in (ALLDEPFILES): Add arc-linux-nat.c.
  180. * configure.host (host to gdb names): Add arc*-*-linux*.
  181. * configure.nat (gdb_host_cpu): Add arc.
  182. * arc-linux-nat.c: New.
  183. 2020-12-22 Shahab Vahedi <shahab@synopsys.com>
  184. * arc-linux-tdep.c (supply_register): New.
  185. (arc_linux_supply_gregset, arc_linux_supply_v2_regset,
  186. arc_linux_collect_v2_regset): Consider REGNUM.
  187. 2020-12-22 Anton Kolesov <anton.kolesov@synopsys.com>
  188. * arc-linux-tdep.c (arc_linux_sc_reg_offsets): New static variable.
  189. (arc_linux_is_sigtramp): New function.
  190. (arc_linux_sigcontext_addr): Likewise.
  191. (arc_linux_init_osabi): Use them.
  192. 2020-12-22 Anton Kolesov <anton.kolesov@synopsys.com>
  193. * arc-tdep.c (arc_make_sigtramp_frame_cache): New function.
  194. (arc_sigtramp_frame_this_id): Likewise.
  195. (arc_sigtramp_frame_prev_register): Likewise.
  196. (arc_sigtramp_frame_sniffer): Likewise.
  197. (arc_siftramp_frame_unwind): New global variable.
  198. (arc_gdbarch_init): Use sigtramp capabilities.
  199. (arc_dump_tdep): Print sigtramp fields.
  200. * arc-tdep.h (gdbarch_tdep): Add sigtramp fields.
  201. 2020-12-21 Tom Tromey <tom@tromey.com>
  202. * expression.h (enum noside): Move earlier.
  203. 2020-12-21 Peter Waller <p@pwaller.net>
  204. * interps.c (interpreter_exec_cmd): Restore streams pointers.
  205. 2020-12-21 Markus Metzger <markus.t.metzger@intel.com>
  206. * record.c (require_record_target): Rephrase error message.
  207. (info_record_command): Likewise.
  208. 2020-12-19 Hannes Domani <ssbssa@yahoo.de>
  209. PR exp/27070
  210. * gdbtypes.c (check_types_equal): Don't compare types of enum fields.
  211. 2020-12-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
  212. * configure.ac: Move the static libs vs. source-highlight
  213. error message to a better place.
  214. * configure: Regenerate.
  215. 2020-12-18 Hannes Domani <ssbssa@yahoo.de>
  216. * gdb-gdb.py.in: Fix main_type field name.
  217. 2020-12-18 Hannes Domani <ssbssa@yahoo.de>
  218. * python/py-value.c (valpy_format_string): Implement address keyword.
  219. 2020-12-18 Hannes Domani <ssbssa@yahoo.de>
  220. * python/py-type.c (typy_get_composite): Add TYPE_CODE_METHOD.
  221. 2020-12-18 Jameson Nash <vtjnash@gmail.com>
  222. * coffread.c (linetab_offset): Change type to file_ptr.
  223. (linetab_size): Likewise.
  224. (enter_linenos): Change parameter type to file_ptr.
  225. (init_lineno): Likewise.
  226. (init_stringtab): Likewise.
  227. (coff_symtab_read): Likewise.
  228. (coff_symfile_read): Change variable types to file_ptr.
  229. 2020-12-17 Tom Tromey <tromey@adacore.com>
  230. * printcmd.c (print_variable_and_value): Don't use n_spaces.
  231. 2020-12-17 Tom Tromey <tromey@adacore.com>
  232. * gdbtypes.c (print_args, dump_fn_fieldlists, print_cplus_stuff)
  233. (print_gnat_stuff, print_fixed_point_type_info)
  234. (recursive_dump_type): Update.
  235. * go32-nat.c (go32_sysinfo, display_descriptor): Update.
  236. * c-typeprint.c (c_type_print_base_struct_union)
  237. (c_type_print_base_1): Update.
  238. * rust-lang.c (rust_internal_print_type): Update.
  239. * f-typeprint.c (f_language::f_type_print_base): Update.
  240. * utils.h (fprintfi_filtered, printfi_filtered): Remove.
  241. * m2-typeprint.c (m2_record_fields): Update.
  242. * p-typeprint.c (pascal_type_print_base): Update.
  243. * compile/compile-loc2c.c (push, pushf, unary, binary)
  244. (do_compile_dwarf_expr_to_c): Update.
  245. * utils.c (fprintfi_filtered, printfi_filtered): Remove.
  246. 2020-12-16 Tom Tromey <tom@tromey.com>
  247. * rust-exp.y (rust_lex_tests): Update.
  248. * parser-defs.h (parser_state): Add void_p parameter.
  249. <void_context_p>: New member.
  250. * parse.c (parse_exp_in_context): Update.
  251. * language.h (language_defn::post_parser): Remove void_context_p,
  252. completing, tracker parameters. Add parser state.
  253. * ada-lang.c (ada_language::post_parser): Update.
  254. 2020-12-16 Tom Tromey <tom@tromey.com>
  255. * parse.c (parse_exp_1, parse_expression_for_completion): Update.
  256. (parse_exp_in_context): Change void_context_p to bool.
  257. * language.h (struct language_defn) <post_parser>: Change
  258. void_context_p to bool.
  259. * ada-lang.c (class ada_language) <post_parser>: Update.
  260. 2020-12-16 Tom Tromey <tom@tromey.com>
  261. Tom Tromey <tromey@redhat.com>
  262. Tom de Vries <tdevries@suse.de>
  263. * utils.h (get_chars_per_line): Declare.
  264. * utils.c (get_chars_per_line): New function.
  265. (fputs_maybe_filtered): Handle '\r'.
  266. * ui-out.h (ui_out::progress_meter): New class.
  267. (ui_out::progress, ui_out::do_progress_start)
  268. (ui_out::do_progress_notify, ui_out::do_progress_end): New
  269. methods.
  270. * ui-out.c (do_progress_end)
  271. (make_cleanup_ui_out_progress_begin_end, ui_out_progress): New
  272. functions.
  273. * mi/mi-out.h (mi_ui_out::do_progress_start)
  274. (mi_ui_out::do_progress_notify, mi_ui_out::do_progress_end): New
  275. methods.
  276. * cli-out.h (struct cli_ui_out) <do_progress_start,
  277. do_progress_notify, do_progress_end>: New methods.
  278. <enum meter_stat, struct cli_progress_info>: New.
  279. <m_meters>: New member.
  280. * cli-out.c (cli_ui_out::do_progress_start)
  281. (cli_ui_out::do_progress_notify, cli_ui_out::do_progress_end): New
  282. methods.
  283. 2020-12-16 Luis Machado <luis.machado@linaro.org>
  284. * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Record FPSR.
  285. 2020-12-16 Luis Machado <luis.machado@linaro.org>
  286. * aarch64-linux-nat.c
  287. (aarch64_linux_nat_target::stopped_data_address): Handle the TBI.
  288. 2020-12-15 Rae Kim <rae.kim@gmail.com>
  289. * cli/cli-script.c (do_document_command): Rename from
  290. document_command. Handle multi-line input.
  291. (multi_line_command_p): Handle document_control.
  292. (build_command_line): Likewise.
  293. (execute_control_command_1): Likewise.
  294. (process_next_line): Likewise.
  295. (document_command): Call do_document_command.
  296. * cli/cli-script.h (enum command_control_type): Add
  297. document_control.
  298. 2020-12-15 Tom Tromey <tom@tromey.com>
  299. * stap-probe.c (stap_probe::evaluate_argument): Use
  300. evaluate_expression.
  301. * dtrace-probe.c (dtrace_probe::evaluate_argument): Use
  302. evaluate_expression.
  303. * value.h (evaluate_expression): Add expect_type parameter.
  304. * objc-lang.c (print_object_command): Call evaluate_expression.
  305. * eval.c (evaluate_expression): Add expect_type parameter.
  306. 2020-12-15 Tom Tromey <tom@tromey.com>
  307. * varobj.c (varobj_create): Use first_opcode.
  308. * value.c (init_if_undefined_command): Use first_opcode.
  309. * typeprint.c (whatis_exp): Use first_opcode.
  310. * tracepoint.c (validate_actionline): Use first_opcode.
  311. (encode_actions_1): Use first_opcode.
  312. * stack.c (return_command): Use first_opcode.
  313. * expression.h (struct expression) <first_opcode>: New method.
  314. * eval.c (parse_and_eval_type): Use first_opcode.
  315. * dtrace-probe.c (dtrace_process_dof_probe): Use first_opcode.
  316. 2020-12-15 Tom Tromey <tom@tromey.com>
  317. * f-lang.c (evaluate_subexp_f): Update.
  318. * expression.h (evaluate_subexp_do_call): Update.
  319. * eval.c (evaluate_subexp_do_call): Add callee parameter. Replace
  320. nargs, argvec with array_view.
  321. (evaluate_funcall): Update.
  322. 2020-12-15 Tom Tromey <tom@tromey.com>
  323. * ada-lang.c (num_component_specs): Remove.
  324. (assign_aggregate): Update.
  325. (aggregate_assign_positional, aggregate_assign_from_choices)
  326. (aggregate_assign_others, add_component_interval): Change
  327. arguments.
  328. 2020-12-15 Tom Tromey <tromey@adacore.com>
  329. * cli/cli-decode.c (deprecated_cmd_warning): Use title style for
  330. command names.
  331. 2020-12-14 Tom Tromey <tom@tromey.com>
  332. * dtrace-probe.c (dtrace_process_dof_probe): Use value_type.
  333. * typeprint.c (whatis_exp): Always use evaluate_type.
  334. (maintenance_print_type): Likewise. Simplify.
  335. 2020-12-14 Tom Tromey <tromey@adacore.com>
  336. * dictionary.c (language_defn::search_name_hash): Ignore "B".
  337. * ada-lang.c (advance_wild_match): Ignore "B".
  338. (full_match): Remove.
  339. (do_full_match): Rewrite.
  340. 2020-12-14 Tom Tromey <tromey@adacore.com>
  341. * ada-lang.c (get_var_value): Only consider exact matches.
  342. 2020-12-14 Tom Tromey <tromey@adacore.com>
  343. * dwarf2/read.c (rewrite_array_type): New function.
  344. (quirk_ada_thick_pointer_struct): Use rewrite_array_type.
  345. 2020-12-14 Tom Tromey <tromey@adacore.com>
  346. * valarith.c (fixed_point_binop): Call error on division by zero.
  347. 2020-12-13 Tom Tromey <tom@tromey.com>
  348. * gdbtypes.c (safe_parse_type): Make argument const.
  349. * value.h (parse_and_eval_type): Make argument const.
  350. * eval.c (parse_and_eval_type): Make argument const.
  351. 2020-12-13 Andrew Burgess <andrew.burgess@embecosm.com>
  352. * NEWS: Mention new commands.
  353. * target-dcache.c: Add 'cli/cli-cmds.h' include.
  354. (maint_flush_dcache_command): New function.
  355. (_initialize_target_dcache): Create new 'maint flush dcache'
  356. command.
  357. 2020-12-13 Andrew Burgess <andrew.burgess@embecosm.com>
  358. * NEWS: Mention new commands, and that the old commands are now
  359. deprecated.
  360. * cli/cli-cmds.c (maintenanceflushlist): Define.
  361. * cli/cli-cmds.h (maintenanceflushlist): Declare.
  362. * maint.c (_initialize_maint_cmds): Initialise
  363. maintenanceflushlist.
  364. * regcache.c: Add 'cli/cli-cmds.h' include.
  365. (reg_flush_command): Add header comment.
  366. (_initialize_regcache): Create new 'maint flush register-cache'
  367. command, make 'flushregs' an alias.
  368. * symtab.c: Add 'cli/cli-cmds.h' include.
  369. (_initialize_symtab): Create new 'maint flush symbol-cache'
  370. command, make old command an alias.
  371. 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
  372. * cli/cli-decode.c (deprecated_cmd_warning): Ignore the prefix
  373. result from lookup_cmd_composition_1, use the prefixes from both
  374. the command and the alias instead.
  375. (lookup_cmd_composition_1): Initial prefix command is the based on
  376. the search list being passed in. Simplify the logic for tracking
  377. the prefix command. Replace a use of alloca with a local
  378. std::string.
  379. 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
  380. * cli/cli-decode.c (deprecated_cmd_warning): Use nullptr instead
  381. of NULL. Don't print message piece by piece, but sentence at a
  382. time to allow internationalisation. Some whitespace cleanup.
  383. 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
  384. PR cli/15104
  385. * cli/cli-decode.c (lookup_cmd_1): Pass command list to
  386. deprecated_cmd_warning.
  387. (deprecated_cmd_warning): Take extra parameter, call
  388. lookup_cmd_composition_1 and pass new parameter through.
  389. (lookup_cmd_composition_1): New function, takes implementation of
  390. lookup_cmd_composition but with extra parameter.
  391. (lookup_cmd_composition): Now calls lookup_cmd_composition_1
  392. passing in cmdlist.
  393. * command.h (deprecated_cmd_warning): Add extra parameter to
  394. declaration.
  395. * top.c (execute_command): Pass cmdlist to deprecated_cmd_warning.
  396. 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
  397. * cli/cli-decode.c (lookup_cmd_1): Move header comment into
  398. command.h, add extra parameter, and use this to guard giving a
  399. warning.
  400. * command.h (lookup_cmd_1): Add comment from cli/cli-decode.c,
  401. include argument names in declaration, add new argument.
  402. * completer.c (complete_line_internal_1): Remove unneeded
  403. brackets, pass extra argument to lookup_cmd_1.
  404. 2020-12-11 Simon Marchi <simon.marchi@polymtl.ca>
  405. * infrun.h (debug_infrun): Make a bool.
  406. * infrun.c (debug_infrun): Make a bool.
  407. (_initialize_infrun): Use add_setshow_boolean_cmd to define "set
  408. debug infrun".
  409. 2020-12-11 Simon Marchi <simon.marchi@polymtl.ca>
  410. * displaced-stepping.h (displaced_debug_printf): Use
  411. debug_prefixed_printf_cond.
  412. * dwarf2/read.c (dwarf_read_debug_printf): Likewise.
  413. (dwarf_read_debug_printf_v): Likewise.
  414. * infrun.h (infrun_debug_printf): Likewise.
  415. * linux-nat.c (linux_nat_debug_printf): Likewise.
  416. 2020-12-11 Tom Tromey <tom@tromey.com>
  417. * p-exp.y (intvar): Remove global.
  418. (DOLLAR_VARIABLE): Change type.
  419. (start): Update.
  420. (exp): Call write_dollar_variable here...
  421. (yylex): ... not here.
  422. * m2-exp.y (DOLLAR_VARIABLE): Change type.
  423. (variable): Call write_dollar_variable here...
  424. (yylex): ... not here.
  425. * f-exp.y (DOLLAR_VARIABLE): Change type.
  426. (exp): Call write_dollar_variable here...
  427. (yylex): ... not here.
  428. 2020-12-11 Tom Tromey <tom@tromey.com>
  429. * varobj.c (varobj_create): Update.
  430. (install_variable): Return void.
  431. 2020-12-11 Tom Tromey <tom@tromey.com>
  432. * varobj.c (instantiate_pretty_printer): Use gdbpy_ref.
  433. 2020-12-11 Tom Tromey <tom@tromey.com>
  434. * varobj.c (varobj_clear_saved_item): Remove.
  435. (update_dynamic_varobj_children): Update.
  436. (varobj::~varobj): Don't call varobj_clear_saved_item.
  437. 2020-12-11 Tom Tromey <tom@tromey.com>
  438. * varobj.c (install_dynamic_child, varobj_clear_saved_item)
  439. (update_dynamic_varobj_children, create_child)
  440. (create_child_with_value): Update.
  441. * varobj-iter.h (struct varobj_item) <value>: Now a
  442. value_ref_ptr.
  443. * python/py-varobj.c (py_varobj_iter::next): Call release_value.
  444. 2020-12-11 Tom Tromey <tom@tromey.com>
  445. * varobj.c (struct varobj_dynamic) <child_iter>: Now unique_ptr.
  446. (varobj_get_iterator): Return unique_ptr.
  447. (update_dynamic_varobj_children, install_visualizer)
  448. (varobj::~varobj): Update.
  449. * python/python-internal.h (py_varobj_get_iterator): Return
  450. unique_ptr.
  451. * python/py-varobj.c (py_varobj_get_iterator): Return unique_ptr.
  452. 2020-12-11 Tom Tromey <tom@tromey.com>
  453. * varobj.c (struct varobj_dynamic) <saved_item>: Now unique_ptr.
  454. (varobj_clear_saved_item, update_dynamic_varobj_children):
  455. Update.
  456. 2020-12-11 Tom Tromey <tom@tromey.com>
  457. * varobj.c (update_dynamic_varobj_children): Update.
  458. * varobj-iter.h (struct varobj_iter) <next>: Change return type.
  459. * python/py-varobj.c (struct py_varobj_iter) <next>: Change return
  460. type.
  461. (py_varobj_iter::next): Likewise.
  462. 2020-12-11 Tom Tromey <tom@tromey.com>
  463. * varobj.c (update_dynamic_varobj_children, install_visualizer)
  464. (varobj::~varobj): Update.
  465. * varobj-iter.h (struct varobj_iter): Change to interface class.
  466. (struct varobj_iter_ops): Remove.
  467. (varobj_iter_next, varobj_iter_delete): Remove.
  468. * python/py-varobj.c (struct py_varobj_iter): Derive from
  469. varobj_iter. Add constructor, destructor. Rename members.
  470. (py_varobj_iter::~py_varobj_iter): Rename from
  471. py_varobj_iter_dtor.
  472. (py_varobj_iter::next): Rename from py_varobj_iter_next.
  473. (py_varobj_iter_ops): Remove.
  474. (py_varobj_iter): Rename from py_varobj_iter_ctor.
  475. (py_varobj_iter_new): Remove.
  476. (py_varobj_get_iterator): Update.
  477. 2020-12-11 Tom Tromey <tom@tromey.com>
  478. * varobj.h (all_root_varobjs): Take a function_view.
  479. * varobj.c (all_root_varobjs): Take a function_view.
  480. (varobj_invalidate_iter): Remove unused parameter.
  481. (varobj_invalidate): Update.
  482. * mi/mi-cmd-var.c (struct mi_cmd_var_update): Remove.
  483. (mi_cmd_var_update_iter): Change parameters.
  484. 2020-12-11 Tom Tromey <tom@tromey.com>
  485. * varobj.c (struct varobj_root) <next>: Remove.
  486. (struct vlist): Remove.
  487. (rootlist): Now a std::list.
  488. (install_variable, uninstall_variable, all_root_varobjs): Update.
  489. 2020-12-11 Tom Tromey <tom@tromey.com>
  490. * varobj.c (VAROBJ_TABLE_SIZE): Remove.
  491. (varobj_table): Now htab_t.
  492. (varobj_get_handle, install_variable, uninstall_variable):
  493. Update.
  494. (hash_varobj, eq_varobj_and_string): New functions.
  495. (hash_varobj): Update.
  496. 2020-12-11 Tom Tromey <tom@tromey.com>
  497. * inline-frame.c (stopped_by_user_bp_inline_frame): Update.
  498. * ada-lang.c (check_status_exception): Update.
  499. * breakpoint.c (free_bp_location): Remove.
  500. (decref_bp_location): Use bp_location_ref_policy.
  501. (bpstats::bpstats): Don't call incref_bp_location.
  502. (bpstats::~bpstats): Remove.
  503. (bpstats::bpstats): Update.
  504. (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
  505. (bp_location::bp_location): Update.
  506. (incref_bp_location): Remove.
  507. (bkpt_print_it): Update.
  508. * breakpoint.h (class bp_location): Derive from
  509. refcounted_object.
  510. (struct bpstats): Remove destructor.
  511. <bp_location_at>: Now a bp_location_ref_ptr.
  512. <refc>: Remove.
  513. (bp_location_ref_ptr): New typedef.
  514. (struct bp_location_ref_policy): New.
  515. 2020-12-11 Tom Tromey <tom@tromey.com>
  516. * thread.c (class scoped_inc_dec_ref): Remove.
  517. (tp_array_compar_ascending, tp_array_compar_descending): Change
  518. parameter types.
  519. (thread_apply_all_command): Use thread_info_ref.
  520. 2020-12-11 Tom Tromey <tom@tromey.com>
  521. * infrun.c (struct stop_context) <thread>: Now a thread_info_ref.
  522. (stop_context::stop_context): Update.
  523. (stop_context::~stop_context): Remove.
  524. 2020-12-11 Tom Tromey <tom@tromey.com>
  525. * inferior.c (current_inferior_): Change type.
  526. (current_inferior, set_current_inferior, initialize_inferiors):
  527. Update.
  528. 2020-12-11 Tom Tromey <tom@tromey.com>
  529. * gdbthread.h (class enable_thread_stack_temporaries) <m_thr>:
  530. Change type.
  531. 2020-12-11 Tom Tromey <tromey@adacore.com>
  532. * ada-tasks.c (struct ada_tasks_pspace_data) <cpu_id_offset>: New
  533. field.
  534. (ada_get_tcb_types_info): Look for __gnat_gdb_cpu_first_id.
  535. (read_atcb): Use cpu_id_offset.
  536. 2020-12-10 Kevin Buettner <kevinb@redhat.com>
  537. * ada-lang.c (ada_fold_name): Fix off-by-one error.
  538. 2020-12-10 Luis Machado <luis.machado@linaro.org>
  539. * breakpoint.c (should_be_inserted): Don't output newline.
  540. 2020-12-10 Luis Machado <luis.machado@linaro.org>
  541. * aarch64-linux-tdep.c (aarch64_linux_restore_vreg) New function.
  542. (aarch64_linux_sigframe_init): Call aarch64_linux_restore_vreg.
  543. * aarch64-tdep.h (V_REGISTER_SIZE): Move to ...
  544. * arch/aarch64.h: ... here.
  545. * nat/aarch64-sve-linux-ptrace.c: Include endian.h.
  546. (aarch64_maybe_swab128): New function.
  547. (aarch64_sve_regs_copy_to_reg_buf)
  548. (aarch64_sve_regs_copy_from_reg_buf): Adjust FPSIMD entries.
  549. * trad-frame.c (trad_frame_reset_saved_regs): Initialize
  550. the data field.
  551. (TF_REG_VALUE_BYTES): New enum value.
  552. (trad_frame_value_bytes_p): New function.
  553. (trad_frame_set_value_bytes): New function.
  554. (trad_frame_set_reg_value_bytes): New function.
  555. (trad_frame_get_prev_register): Handle register values saved as bytes.
  556. * trad-frame.h (trad_frame_set_reg_value_bytes): New prototype.
  557. (struct trad_frame_saved_reg) <data>: New field.
  558. (trad_frame_set_value_bytes): New prototype.
  559. (trad_frame_value_bytes_p): New prototype.
  560. 2020-12-07 Mihails Strasuns <mihails.strasuns@intel.com>
  561. * jit.c (mem_bfd*, bfd_open_from_target_memory): Removed.
  562. * gdb_bfd.h (gdb_bfd_open_from_target_memory): New function.
  563. * gdb_bfd.c (mem_bfd*, gdb_bfd_open_from_target_memory): New functions.
  564. 2020-12-09 Tom Tromey <tromey@adacore.com>
  565. * ada-lang.c (ada_lookup_encoded_symbol): Use add_angle_brackets.
  566. 2020-12-09 Tom Tromey <tromey@adacore.com>
  567. * dwarf2/read.c (get_dwarf2_rational_constant): Change "numerator"
  568. and "denominator" to gdb_mpz. Handle block forms.
  569. (get_dwarf2_unsigned_rational_constant): Change "numerator" and
  570. "denominator" to gdb_mpz.
  571. (finish_fixed_point_type): Update.
  572. (has_zero_over_zero_small_attribute): Update.
  573. 2020-12-09 Tom Tromey <tromey@adacore.com>
  574. * expprint.c (op_name): Update.
  575. * expression.h (enum exp_opcode): Update.
  576. * std-operator.def: Add more opcodes.
  577. * ada-operator.def, fortran-operator.def: Remove, moving contents
  578. into std-operator.def.
  579. 2020-12-09 Simon Marchi <simon.marchi@polymtl.ca>
  580. * gdbtypes.c (get_discrete_low_bound, get_discrete_high_bound):
  581. Return {} instead of false.
  582. (get_discrete_bounds): Compute high bound only if low bound is
  583. valid.
  584. 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
  585. PR 26875, PR 26901
  586. * gdbtypes.c (get_discrete_low_bound): Make non-static.
  587. (get_discrete_high_bound): Make non-static.
  588. * gdbtypes.h (get_discrete_low_bound): New declaration.
  589. (get_discrete_high_bound): New declaration.
  590. * valarith.c (value_subscript): Only fetch high bound if
  591. necessary.
  592. 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
  593. * gdbtypes.c (get_discrete_bounds): Implement with
  594. get_discrete_low_bound and get_discrete_high_bound.
  595. (get_discrete_low_bound): New.
  596. (get_discrete_high_bound): New.
  597. 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
  598. * gdbtypes.h (get_discrete_bounds): Return bool, adjust all
  599. callers.
  600. * gdbtypes.c (get_discrete_bounds): Return bool.
  601. 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
  602. * ada-lang.c (ada_value_slice_from_ptr): Adjust.
  603. (ada_value_slice): Adjust.
  604. (pos_atr): Adjust.
  605. * gdbtypes.c (get_discrete_bounds): Adjust.
  606. (discrete_position): Return optional.
  607. * gdbtypes.h (discrete_position): Return optional.
  608. 2020-12-07 Tom Tromey <tromey@adacore.com>
  609. * maint.c (_initialize_maint_cmds): Use expression command
  610. completer for "maint print type".
  611. 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  612. * completer.c (complete_explicit_location): Also add keywords
  613. that start with '-' to the completion list.
  614. 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  615. * linespec.c (linespec_lexer_lex_keyword): The "-force-condition"
  616. keyword may be followed by any keyword.
  617. * breakpoint.c (find_condition_and_thread): Advance 'tok' by
  618. 'toklen' in the case for "-force-condition".
  619. 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  620. * main.c (catch_command_errors): Add a flag parameter; invoke
  621. `bpstat_do_actions` if the flag is set.
  622. (execute_cmdargs): Update a call to `catch_command_errors`.
  623. 2020-12-07 Tom de Vries <tdevries@suse.de>
  624. * ada-lang.c (replace_operator_with_call): Handle shrink resize.
  625. 2020-12-06 Tom Tromey <tom@tromey.com>
  626. PR ada/26999
  627. * ada-lang.c (replace_operator_with_call): Rewrite.
  628. 2020-12-06 Giancarlo Frix <gfrix@rocketsoftware.com> (tiny change)
  629. PR breakpoints/27009
  630. * s390-tdep.h (op_bc): Correct BC opcode value.
  631. 2020-12-06 Joel Brobecker <brobecker@adacore.com>
  632. * gmp-utils.h (gdb_mpz::safe_export): New private method.
  633. (gdb_mpz::as_integer): Reimplement using gdb_mpz::safe_export.
  634. * gmp-utils.c (gdb_mpz::write): Rewrite using gdb_mpz::safe_export.
  635. (gdb_mpz::safe_export): New method.
  636. * unittests/gmp-utils-selftests .c (gdb_mpz_as_integer):
  637. Update function description.
  638. (check_as_integer_raises_out_of_range_error): New function.
  639. (gdb_mpz_as_integer_out_of_range): New function.
  640. (_initialize_gmp_utils_selftests): Register
  641. gdb_mpz_as_integer_out_of_range as a selftest.
  642. 2020-12-05 Joel Brobecker <brobecker@adacore.com>
  643. * gmp-utils.c (gdb_mpz::read): Use HOST_CHAR_BIT instead of
  644. TARGET_CHAR_BIT.
  645. (gdb_mpz::write): Likewise.
  646. 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
  647. * amd64-linux-tdep.c (amd64_linux_init_abi): Pass 2 as the
  648. number of displaced step buffers.
  649. 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
  650. * displaced-stepping.h (struct displaced_step_buffer): Rename
  651. to...
  652. (struct displaced_step_buffers): ... this.
  653. <m_addr, m_current_thread, m_copy_insn_closure>: Remove.
  654. <struct displaced_step_buffer>: New inner class.
  655. <m_buffers>: New.
  656. * displaced-stepping.c (displaced_step_buffer::prepare): Rename
  657. to...
  658. (displaced_step_buffers::prepare): ... this, adjust for multiple
  659. buffers.
  660. (displaced_step_buffer::finish): Rename to...
  661. (displaced_step_buffers::finish): ... this, adjust for multiple
  662. buffers.
  663. (displaced_step_buffer::copy_insn_closure_by_addr): Rename to...
  664. (displaced_step_buffers::copy_insn_closure_by_addr): ... this,
  665. adjust for multiple buffers.
  666. (displaced_step_buffer::restore_in_ptid): Rename to...
  667. (displaced_step_buffers::restore_in_ptid): ... this, adjust for
  668. multiple buffers.
  669. * linux-tdep.h (linux_init_abi): Change supports_displaced_step
  670. for num_disp_step_buffers.
  671. * linux-tdep.c (struct linux_gdbarch_data)
  672. <num_disp_step_buffers>: New field.
  673. (struct linux_info) <disp_step_buf>: Rename to...
  674. <disp_step_bufs>: ... this, change type to
  675. displaced_step_buffers.
  676. (linux_displaced_step_prepare): Use
  677. linux_gdbarch_data::num_disp_step_buffers to create that number
  678. of buffers.
  679. (linux_displaced_step_finish): Adjust.
  680. (linux_displaced_step_copy_insn_closure_by_addr): Adjust.
  681. (linux_displaced_step_restore_all_in_ptid): Adjust.
  682. (linux_init_abi): Change supports_displaced_step parameter for
  683. num_disp_step_buffers, save it in linux_gdbarch_data.
  684. * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust.
  685. * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust.
  686. * amd64-linux-tdep.c (amd64_linux_init_abi_common): Change
  687. supports_displaced_step parameter for num_disp_step_buffers.
  688. (amd64_linux_init_abi): Adjust.
  689. (amd64_x32_linux_init_abi): Adjust.
  690. * arc-linux-tdep.c (arc_linux_init_osabi): Adjust.
  691. * arm-linux-tdep.c (arm_linux_init_abi): Adjust.
  692. * bfin-linux-tdep.c (bfin_linux_init_abi): Adjust.
  693. * cris-linux-tdep.c (cris_linux_init_abi): Adjust.
  694. * csky-linux-tdep.c (csky_linux_init_abi): Adjust.
  695. * frv-linux-tdep.c (frv_linux_init_abi): Adjust.
  696. * hppa-linux-tdep.c (hppa_linux_init_abi): Adjust.
  697. * i386-linux-tdep.c (i386_linux_init_abi): Adjust.
  698. * ia64-linux-tdep.c (ia64_linux_init_abi): Adjust.
  699. * m32r-linux-tdep.c (m32r_linux_init_abi): Adjust.
  700. * m68k-linux-tdep.c (m68k_linux_init_abi):
  701. * microblaze-linux-tdep.c (microblaze_linux_init_abi):
  702. * mips-linux-tdep.c (mips_linux_init_abi): Adjust.
  703. * mn10300-linux-tdep.c (am33_linux_init_osabi): Adjust.
  704. * nios2-linux-tdep.c (nios2_linux_init_abi): Adjust.
  705. * or1k-linux-tdep.c (or1k_linux_init_abi): Adjust.
  706. * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust.
  707. * riscv-linux-tdep.c (riscv_linux_init_abi): Adjust.
  708. * rs6000-tdep.c (struct ppc_inferior_data) <disp_step_buf>:
  709. Change type to displaced_step_buffers.
  710. * s390-linux-tdep.c (s390_linux_init_abi_any): Adjust.
  711. * sh-linux-tdep.c (sh_linux_init_abi): Adjust.
  712. * sparc-linux-tdep.c (sparc32_linux_init_abi): Adjust.
  713. * sparc64-linux-tdep.c (sparc64_linux_init_abi): Adjust.
  714. * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Adjust.
  715. * tilegx-linux-tdep.c (tilegx_linux_init_abi): Adjust.
  716. * xtensa-linux-tdep.c (xtensa_linux_init_abi): Adjust.
  717. 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
  718. * linux-tdep.c (init_linux_gdbarch_data): Change parameter to
  719. obkstack.
  720. (_initialize_linux_tdep): Register pre-init gdb data instead of
  721. post-init.
  722. 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
  723. * displaced-stepping.h (struct
  724. displaced_step_copy_insn_closure): Adjust comments.
  725. (struct displaced_step_inferior_state) <step_thread,
  726. step_gdbarch, step_closure, step_original, step_copy,
  727. step_saved_copy>: Remove fields.
  728. (struct displaced_step_thread_state): New.
  729. (struct displaced_step_buffer): New.
  730. * displaced-stepping.c (displaced_step_buffer::prepare): New.
  731. (write_memory_ptid): Move from infrun.c.
  732. (displaced_step_instruction_executed_successfully): New,
  733. factored out of displaced_step_finish.
  734. (displaced_step_buffer::finish): New.
  735. (displaced_step_buffer::copy_insn_closure_by_addr): New.
  736. (displaced_step_buffer::restore_in_ptid): New.
  737. * gdbarch.sh (displaced_step_location): Remove.
  738. (displaced_step_prepare, displaced_step_finish,
  739. displaced_step_copy_insn_closure_by_addr,
  740. displaced_step_restore_all_in_ptid): New.
  741. * gdbarch.c: Re-generate.
  742. * gdbarch.h: Re-generate.
  743. * gdbthread.h (class thread_info) <displaced_step_state>: New
  744. field.
  745. (thread_step_over_chain_remove): New declaration.
  746. (thread_step_over_chain_next): New declaration.
  747. (thread_step_over_chain_length): New declaration.
  748. * thread.c (thread_step_over_chain_remove): Make non-static.
  749. (thread_step_over_chain_next): New.
  750. (global_thread_step_over_chain_next): Use
  751. thread_step_over_chain_next.
  752. (thread_step_over_chain_length): New.
  753. (global_thread_step_over_chain_enqueue): Add debug print.
  754. (global_thread_step_over_chain_remove): Add debug print.
  755. * infrun.h (get_displaced_step_copy_insn_closure_by_addr):
  756. Remove.
  757. * infrun.c (get_displaced_stepping_state): New.
  758. (displaced_step_in_progress_any_inferior): Remove.
  759. (displaced_step_in_progress_thread): Adjust.
  760. (displaced_step_in_progress): Adjust.
  761. (displaced_step_in_progress_any_thread): New.
  762. (get_displaced_step_copy_insn_closure_by_addr): Remove.
  763. (gdbarch_supports_displaced_stepping): Use
  764. gdbarch_displaced_step_prepare_p.
  765. (displaced_step_reset): Change parameter from inferior to
  766. thread.
  767. (displaced_step_prepare_throw): Implement using
  768. gdbarch_displaced_step_prepare.
  769. (write_memory_ptid): Move to displaced-step.c.
  770. (displaced_step_restore): Remove.
  771. (displaced_step_finish): Implement using
  772. gdbarch_displaced_step_finish.
  773. (start_step_over): Allow starting more than one displaced step.
  774. (prepare_for_detach): Handle possibly multiple threads doing
  775. displaced steps.
  776. (handle_inferior_event): Handle possibility that fork event
  777. happens while another thread displaced steps.
  778. * linux-tdep.h (linux_displaced_step_prepare): New.
  779. (linux_displaced_step_finish): New.
  780. (linux_displaced_step_copy_insn_closure_by_addr): New.
  781. (linux_displaced_step_restore_all_in_ptid): New.
  782. (linux_init_abi): Add supports_displaced_step parameter.
  783. * linux-tdep.c (struct linux_info) <disp_step_buf>: New field.
  784. (linux_displaced_step_prepare): New.
  785. (linux_displaced_step_finish): New.
  786. (linux_displaced_step_copy_insn_closure_by_addr): New.
  787. (linux_displaced_step_restore_all_in_ptid): New.
  788. (linux_init_abi): Add supports_displaced_step parameter,
  789. register displaced step methods if true.
  790. (_initialize_linux_tdep): Register inferior_execd observer.
  791. * amd64-linux-tdep.c (amd64_linux_init_abi_common): Add
  792. supports_displaced_step parameter, adjust call to
  793. linux_init_abi. Remove call to
  794. set_gdbarch_displaced_step_location.
  795. (amd64_linux_init_abi): Adjust call to
  796. amd64_linux_init_abi_common.
  797. (amd64_x32_linux_init_abi): Likewise.
  798. * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust call to
  799. linux_init_abi. Remove call to
  800. set_gdbarch_displaced_step_location.
  801. * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
  802. * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
  803. * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust call to
  804. linux_init_abi.
  805. * arc-linux-tdep.c (arc_linux_init_osabi): Likewise.
  806. * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
  807. * cris-linux-tdep.c (cris_linux_init_abi): Likewise.
  808. * csky-linux-tdep.c (csky_linux_init_abi): Likewise.
  809. * frv-linux-tdep.c (frv_linux_init_abi): Likewise.
  810. * hppa-linux-tdep.c (hppa_linux_init_abi): Likewise.
  811. * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
  812. * m32r-linux-tdep.c (m32r_linux_init_abi): Likewise.
  813. * m68k-linux-tdep.c (m68k_linux_init_abi): Likewise.
  814. * microblaze-linux-tdep.c (microblaze_linux_init_abi): Likewise.
  815. * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
  816. * mn10300-linux-tdep.c (am33_linux_init_osabi): Likewise.
  817. * nios2-linux-tdep.c (nios2_linux_init_abi): Likewise.
  818. * or1k-linux-tdep.c (or1k_linux_init_abi): Likewise.
  819. * riscv-linux-tdep.c (riscv_linux_init_abi): Likewise.
  820. * s390-linux-tdep.c (s390_linux_init_abi_any): Likewise.
  821. * sh-linux-tdep.c (sh_linux_init_abi): Likewise.
  822. * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
  823. * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
  824. * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Likewise.
  825. * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
  826. * xtensa-linux-tdep.c (xtensa_linux_init_abi): Likewise.
  827. * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust call to
  828. linux_init_abi. Remove call to
  829. set_gdbarch_displaced_step_location.
  830. * arm-tdep.c (arm_pc_is_thumb): Call
  831. gdbarch_displaced_step_copy_insn_closure_by_addr instead of
  832. get_displaced_step_copy_insn_closure_by_addr.
  833. * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Adjust calls to
  834. clear gdbarch methods.
  835. * rs6000-tdep.c (struct ppc_inferior_data): New structure.
  836. (get_ppc_per_inferior): New function.
  837. (ppc_displaced_step_prepare): New function.
  838. (ppc_displaced_step_finish): New function.
  839. (ppc_displaced_step_restore_all_in_ptid): New function.
  840. (rs6000_gdbarch_init): Register new gdbarch methods.
  841. * s390-tdep.c (s390_gdbarch_init): Don't call
  842. set_gdbarch_displaced_step_location, set new gdbarch methods.
  843. 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
  844. * Makefile.in (COMMON_SFILES): Add displaced-stepping.c.
  845. * aarch64-tdep.h: Include displaced-stepping.h.
  846. * displaced-stepping.h (struct displaced_step_copy_insn_closure):
  847. Move here.
  848. (displaced_step_copy_insn_closure_up): Move here.
  849. (struct buf_displaced_step_copy_insn_closure): Move here.
  850. (struct displaced_step_inferior_state): Move here.
  851. (debug_displaced): Move here.
  852. (displaced_debug_printf_1): Move here.
  853. (displaced_debug_printf): Move here.
  854. * displaced-stepping.c: New file.
  855. * gdbarch.sh: Include displaced-stepping.h in gdbarch.h.
  856. * gdbarch.h: Re-generate.
  857. * inferior.h: Include displaced-stepping.h.
  858. * infrun.h (debug_displaced): Move to displaced-stepping.h.
  859. (displaced_debug_printf_1): Likewise.
  860. (displaced_debug_printf): Likewise.
  861. (struct displaced_step_copy_insn_closure): Likewise.
  862. (displaced_step_copy_insn_closure_up): Likewise.
  863. (struct buf_displaced_step_copy_insn_closure): Likewise.
  864. (struct displaced_step_inferior_state): Likewise.
  865. * infrun.c (show_debug_displaced): Move to displaced-stepping.c.
  866. (displaced_debug_printf_1): Likewise.
  867. (displaced_step_copy_insn_closure::~displaced_step_copy_insn_closure):
  868. Likewise.
  869. (_initialize_infrun): Don't register "set/show debug displaced".
  870. 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
  871. * linux-tdep.c (get_linux_inferior_data): Add inferior
  872. parameter.
  873. (linux_vsyscall_range): Pass current inferior.
  874. 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
  875. * infrun.c (displaced_step_prepare_throw): Change return type to
  876. displaced_step_prepare_status.
  877. (displaced_step_prepare): Likewise.
  878. (displaced_step_finish): Change return type to
  879. displaced_step_finish_status.
  880. (resume_1): Adjust.
  881. (stop_all_threads): Adjust.
  882. * displaced-stepping.h: New file.
  883. 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
  884. * infrun.c (displaced_step_fixup): Rename to...
  885. (displaced_step_finish): ... this, update all callers.
  886. 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
  887. * infrun.h (get_displaced_step_closure_by_addr): Rename to...
  888. (get_displaced_step_copy_insn_closure_by_addr): ... this.
  889. Update all users.
  890. (displaced_step_closure): Rename to...
  891. (displaced_step_copy_insn_closure): ... this. Update all users.
  892. (displaced_step_closure_up): Rename to...
  893. (displaced_step_copy_insn_closure_up). ... this. Update all
  894. users.
  895. (buf_displaced_step_closure): Rename to...
  896. (buf_displaced_step_copy_insn_closure): ... this. Update all
  897. users.
  898. * infrun.c (get_displaced_step_closure_by_addr): Rename to...
  899. (get_displaced_step_copy_insn_closure_by_addr): ... this.
  900. Update all users.
  901. * aarch64-tdep.c (aarch64_displaced_step_closure): Rename to...
  902. (aarch64_displaced_step_copy_insn_closure): ... this. Update
  903. all users.
  904. * amd64-tdep.c (amd64_displaced_step_closure): Rename to...
  905. (amd64_displaced_step_copy_insn_closure): ... this. Update all
  906. users.
  907. * arm-tdep.h (arm_displaced_step_closure): Rename to...
  908. (arm_displaced_step_copy_insn_closure): ... this. Update all
  909. users.
  910. * i386-tdep.h (i386_displaced_step_closure): Rename to...
  911. (i386_displaced_step_copy_insn_closure): ... this. Update all
  912. users.
  913. * rs6000-tdep.c (ppc_displaced_step_closure): Rename to...
  914. (ppc_displaced_step_copy_insn_closure): ... this. Update all
  915. users.
  916. * s390-tdep.c (s390_displaced_step_closure): Rename to...
  917. (s390_displaced_step_copy_insn_closure): ... this. Update all
  918. users.
  919. * gdbarch.h: Re-generate.
  920. * gdbarch.c: Re-generate.
  921. 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
  922. * gdbthread.h (thread_step_over_chain_enqueue): Rename to...
  923. (global_thread_step_over_chain_enqueue): ... this. Update all
  924. users.
  925. (thread_step_over_chain_remove): Rename to...
  926. (global_thread_step_over_chain_remove): ... this. Update all
  927. users.
  928. (thread_step_over_chain_next): Rename to...
  929. (global_thread_step_over_chain_next): ... this. Update all
  930. users.
  931. * infrun.h (step_over_queue_head): Rename to...
  932. (global_thread_step_over_chain_head): ... this. Update all
  933. users.
  934. * infrun.c (step_over_queue_head): Rename to...
  935. (global_thread_step_over_chain_head): ... this. Update all
  936. users.
  937. * thread.c (step_over_chain_remove): Rename to...
  938. (thread_step_over_chain_remove): ... this. Update all users.
  939. (thread_step_over_chain_next): Rename to...
  940. (global_thread_step_over_chain_next): ... this. Update all
  941. users.
  942. (thread_step_over_chain_enqueue): Rename to...
  943. (global_thread_step_over_chain_enqueue): ... this. Update all
  944. users.
  945. (thread_step_over_chain_remove): Rename to...
  946. (global_thread_step_over_chain_remove): ... this. Update all
  947. users.
  948. 2020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
  949. * infrun.c (get_displaced_stepping_state): Remove, change
  950. callers to access the field directly.
  951. 2020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
  952. * infrun.c (handle_inferior_event): Restore displaced step
  953. buffer bytes in child process when handling fork, even if fork
  954. happened in another thread than the displaced-stepping one.
  955. 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
  956. * infrun.c (infrun_inferior_execd): New function.
  957. (_initialize_infrun): Attach inferior_execd observer.
  958. 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
  959. * observable.h (inferior_execd): Declare new observable.
  960. * observable.c (inferior_execd): Declare new observable.
  961. * infrun.c (follow_exec): Notify inferior_execd observer.
  962. * jit.c (jit_inferior_created_hook): Make static.
  963. (_initialize_jit): Register inferior_execd observer.
  964. * jit.h (jit_inferior_created_hook): Remove declaration.
  965. * solib.c (_initialize_solib): Register inferior_execd observer.
  966. 2020-12-04 Tom de Vries <tdevries@suse.de>
  967. PR gdb/27003
  968. * completer.c (completion_tracker::build_completion_result): Don't
  969. access match_list[0][-1].
  970. 2020-12-04 Tom Tromey <tromey@adacore.com>
  971. * linespec.c (struct linespec_token): Rename; remove typedef.
  972. * guile/scm-block.c (struct block_smob): Remove typedef.
  973. (struct block_syms_progress_smob): Likewise.
  974. * guile/scm-symbol.c (struct symbol_smob): Remove typedef.
  975. * guile/scm-symtab.c (symtab_smob): Remove typedef.
  976. (struct sal_smob): Remove typedef.
  977. * guile/scm-param.c (struct param_smob): Remove typedef.
  978. * guile/scm-progspace.c (struct pspace_smob): Rename.
  979. * guile/scm-objfile.c (struct objfile_smob): Rename.
  980. * guile/scm-iterator.c (struct iterator_smob): Rename.
  981. * guile/scm-frame.c (struct frame_smob): Rename.
  982. * guile/scm-arch.c (struct arch_smob): Rename.
  983. * guile/scm-type.c (struct field_smob): Remove typedef.
  984. (struct type_smob): Rename.
  985. * guile/scm-cmd.c (struct command_smob): Remove typedef.
  986. * guile/scm-ports.c (struct ioscm_memory_port): Remove typedef.
  987. * guile/scm-value.c (struct value_smob): Remove typedef.
  988. * guile/scm-lazy-string.c (lazy_string_smob): Remove typedef.
  989. * guile/guile-internal.h (struct scheme_variable)
  990. (struct scheme_function, struct scheme_integer_constant)
  991. (struct gdb_smob, struct chained_gdb_smob)
  992. (struct eqable_gdb_smob, arch_smob, frame_smob, iterator_smob)
  993. (objfile_smob, pspace_smob, type_smob): Remove typedef.
  994. * guile/scm-pretty-print.c (pretty_printer_smob): Remove typedef.
  995. (struct pretty_printer_worker_smob): Remove typedef.
  996. * guile/scm-exception.c (struct exception_smob): Remove typedef.
  997. * python/py-block.c (struct block_object): Remove typedef.
  998. (block_syms_iterator_object): Update.
  999. (set_block): Update.
  1000. (block_syms_iterator_object): Remove typedef.
  1001. * python/py-inferior.c (struct membuf_object): Remove typedef.
  1002. * python/py-symtab.c (struct symtab_object): Remove typedef.
  1003. (set_symtab): Update.
  1004. (sal_object): Remove typedef.
  1005. (set_sal): Update.
  1006. * python/py-frame.c (frame_object): Remove typedef.
  1007. * python/py-record-btrace.c (struct btpy_list_object): Remove
  1008. typedef.
  1009. * python/py-arch.c (struct arch_object): Remove typedef.
  1010. * python/py-linetable.c (struct linetable_entry_object)
  1011. (linetable_object, struct ltpy_iterator_object): Remove typedef.
  1012. * python/py-events.h (eventregistry_object): Remove typedef.
  1013. (struct events_object): Remove typedef.
  1014. * python/python-internal.h (gdbpy_breakpoint_object): Remove
  1015. typedef.
  1016. (thread_object): Remove typedef.
  1017. * python/py-progspace.c (pspace_object): Remove typedef.
  1018. * python/py-value.c (struct value_object): Remove typedef.
  1019. * python/py-record.h (recpy_record_object): Remove typedef.
  1020. (struct recpy_element_object): Remove typedef.
  1021. * python/py-lazy-string.c (lazy_string_object): Remove typedef.
  1022. * python/py-objfile.c (objfile_object): Remove typedef.
  1023. * python/py-cmd.c (struct cmdpy_object): Remove typedef.
  1024. * python/py-type.c (type_object): Remove typedef.
  1025. (typy_iterator_object): Update.
  1026. (set_type): Update.
  1027. (field_object): Remove typedef.
  1028. (typy_iterator_object): Remove typedef.
  1029. * python/py-registers.c (register_descriptor_iterator_object):
  1030. Remove typedef.
  1031. (struct register_descriptor_object)
  1032. (struct reggroup_iterator_object, struct reggroup_object): Remove
  1033. typedef.
  1034. * python/py-record.c (recpy_gap_object): Remove typedef.
  1035. * python/py-symbol.c (symbol_object): Remove typedef.
  1036. (set_symbol): Update.
  1037. * python/py-event.h (event_object): Remove typedef.
  1038. * python/py-param.c (parmpy_object): Remove typedef.
  1039. * python/py-instruction.c (struct py_insn_obj): Remove typedef.
  1040. * python/py-unwind.c (struct pending_frame_object): Remove typedef.
  1041. (unwind_info_object, struct cached_frame_info): Likewise.
  1042. 2020-12-04 Tom Tromey <tromey@adacore.com>
  1043. * value.c (value_internal_function_name): Make return type const.
  1044. * value.h (value_internal_function_name): Make return type const.
  1045. 2020-12-04 Luis Machado <luis.machado@linaro.org>
  1046. * aarch64-tdep.c (submask, bit, bits): Remove.
  1047. * arch/aarch64-insn.c (extract_signed_bitfield): Remove.
  1048. (aarch64_decode_adr, aarch64_decode_b aarch64_decode_bcond)
  1049. (aarch64_decode_cb, aarch64_decode_tb)
  1050. (aarch64_decode_ldr_literal): Use sbits to extract a signed
  1051. immediate.
  1052. * arch/aarch64-insn.h (submask, bits, bit, sbits): New macros.
  1053. 2020-12-04 Tom de Vries <tdevries@suse.de>
  1054. PR tdep/27007
  1055. * i386-tdep.c (i386_16_byte_align_p): Skip static fields.
  1056. 2020-12-03 Simon Marchi <simon.marchi@polymtl.ca>
  1057. PR gdb/26876
  1058. * dwarf2/frame.c (find_comp_unit, set_comp_unit): Reverse use of
  1059. dwarf2_frame_bfd_data and dwarf2_frame_objfile_data.
  1060. 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
  1061. * arch/riscv.c: Include 'rv32e-xregs.c'.
  1062. (riscv_create_target_description): Update to handle rv32e.
  1063. * arch/riscv.h (struct riscv_gdbarch_features) <embedded>: New
  1064. member variable.
  1065. <operator==>: Update to account for new field.
  1066. <hash>: Likewise.
  1067. * features/Makefile (FEATURE_XMLFILES): Add riscv/rv32e-xregs.xml.
  1068. * features/riscv/rv32e-xregs.c: Generated.
  1069. * features/riscv/rv32e-xregs.xml: New file.
  1070. * riscv-tdep.c (riscv_debug_breakpoints): Move from later in the
  1071. file.
  1072. (riscv_debug_infcall): Likewise.
  1073. (riscv_debug_unwinder): Likewise.
  1074. (riscv_debug_gdbarch): Likewise.
  1075. (enum riscv_register_required_status): Delete.
  1076. (struct riscv_register_feature): Add constructor, delete default
  1077. constructor, copy, and assign constructors.
  1078. (struct riscv_register_feature::register_info) <required>: Delete.
  1079. <check>: Update comment and arguments.
  1080. (struct riscv_register_feature) <name>: Change to member function.
  1081. <prefer_first_name>: Delete.
  1082. <tdesc_feature>: New member function.
  1083. <registers>: Rename to...
  1084. <m_registers>: ...this.
  1085. <m_feature_name>: New member variable.
  1086. (riscv_register_feature::register_info::check): Update arguments.
  1087. (riscv_xreg_feature): Rewrite as class, create a single static
  1088. instance of the class.
  1089. (riscv_freg_feature): Likewise.
  1090. (riscv_virtual_feature): Likewise.
  1091. (riscv_csr_feature): Likewise.
  1092. (riscv_create_csr_aliases): Has become a member function inside
  1093. riscv_csr_feature class.
  1094. (riscv_abi_embedded): New function definition.
  1095. (riscv_register_name): Adjust to use new feature objects.
  1096. (struct riscv_call_info) <riscv_call_info>: Check for rv32e abi,
  1097. and adjust available argument registers.
  1098. (riscv_features_from_gdbarch_info): Check for EF_RISCV_RVE flag.
  1099. (riscv_check_tdesc_feature): Delete.
  1100. (riscv_tdesc_unknown_reg): Adjust to use new feature objects.
  1101. (riscv_gdbarch_init): Delete target description checking code, and
  1102. instead call to the new feature objects to perform the checks.
  1103. Reorder handling of no abi information case, allows small code
  1104. simplification.
  1105. (_initialize_riscv_tdep): Remove call, this is now done in the
  1106. riscv_csr_feature constructor.
  1107. * riscv-tdep.h (riscv_abi_embedded): Declare.
  1108. 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
  1109. * riscv-tdep.c (riscv_create_csr_aliases): Remove use of
  1110. DECLARE_CSR_ALIAS.
  1111. 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
  1112. * riscv-tdep.c (riscv_is_unknown_csr): New function,
  1113. implementation moved from riscv_register_reggroup_p.
  1114. (riscv_register_reggroup_p): Update group handling for unknown
  1115. CSRs.
  1116. 2020-12-01 Sergio Durigan Junior <sergiodj@sergiodj.net>
  1117. * dwarf2/read.c (dwz_search_other_debugdirs): New function.
  1118. (dwarf2_get_dwz_file): Convert 'filename' to a
  1119. std::string. Use dwz_search_other_debugdirs to search for DWZ
  1120. files in the debug-file-directories provided by the user as well.
  1121. 2020-12-01 Tom Tromey <tom@tromey.com>
  1122. * parse.c (expr_builder::expr_builder): Initialize expout.
  1123. (expr_builder::release): Use expression::resize.
  1124. (expression::expression, expression::~expression)
  1125. (expression::resize): New methods.
  1126. (write_exp_elt): Use expression::resize.
  1127. (prefixify_expression): Update.
  1128. (increase_expout_size): Use expression::resize.
  1129. * expression.h (struct expression): Add constructor, destructor.
  1130. <resize>: New method.
  1131. (expression_up): Change type.
  1132. 2020-12-01 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
  1133. * ppc-linux-nat.c: (PPC_DEBUG_FEATURE_DATA_BP_ARCH_31): New define.
  1134. (region_ok_for_hw_watchpoint): Check if 2nd DAWR is avaliable before
  1135. set region.
  1136. 2020-11-30 Tom de Vries <tdevries@suse.de>
  1137. PR symtab/26905
  1138. * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add and handle
  1139. is_reference parameter.
  1140. (dwarf2_evaluate_property): Update dwarf2_locexpr_baton_eval call.
  1141. 2020-11-30 Tom Tromey <tom@tromey.com>
  1142. * rust-lang.c (rust_op_name): Remove.
  1143. (exp_descriptor_rust): Update.
  1144. * parser-defs.h (op_name_standard): Don't declare.
  1145. (struct exp_descriptor) <op_name>: Remove.
  1146. * parse.c (exp_descriptor_standard): Update.
  1147. * opencl-lang.c (exp_descriptor_opencl): Update.
  1148. * m2-lang.c (m2_language::exp_descriptor_modula2): Update.
  1149. * f-lang.c (op_name_f): Remove.
  1150. (f_language::exp_descriptor_tab): Update.
  1151. * expression.h (op_name): Update.
  1152. * expprint.c (op_name): Rewrite.
  1153. (op_name_standard): Remove.
  1154. (dump_raw_expression, dump_subexp): Update.
  1155. * c-lang.c (exp_descriptor_c): Update.
  1156. * ax-gdb.c (gen_expr): Update.
  1157. * ada-lang.c (ada_op_name): Remove.
  1158. (ada_exp_descriptor): Update.
  1159. 2020-11-30 Tom Tromey <tom@tromey.com>
  1160. * eval.c (init_array_element): Remove.
  1161. (evaluate_subexp_standard) <OP_ARRAY>: Remove "index_pc".
  1162. 2020-11-29 Hannes Domani <ssbssa@yahoo.de>
  1163. PR tui/26973
  1164. * tui/tui-layout.c (tui_apply_current_layout): Don't delete the
  1165. static locator win info.
  1166. 2020-11-28 Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
  1167. * acincludde.m4 (GDB_AC_CHECK_BFD): Include string.h in the test
  1168. program.
  1169. 2020-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
  1170. * printcmd.c (skip_over_slash_fmt): Reorder code to ensure in_fmt
  1171. is always initialized.
  1172. 2020-11-26 Rogerio Alves <rcardoso@linux.ibm.com>
  1173. * MAINTAINERS (Write After Approval): Add myself.
  1174. 2020-11-26 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
  1175. * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
  1176. * features/aarch64-fpu.xml: Add named FPCR and FPSR register bit-fields.
  1177. 2020-11-25 Tom Tromey <tom@tromey.com>
  1178. * eval.c (evaluate_subexp_standard): Remove unnecessary
  1179. variables.
  1180. 2020-11-25 Tom Tromey <tom@tromey.com>
  1181. * d-lang.c: Include parser-defs.h.
  1182. * rust-lang.c: Include parser-defs.h.
  1183. * c-lang.h: Do not include parser-defs.h.
  1184. 2020-11-24 Simon Marchi <simon.marchi@polymtl.ca>
  1185. * regcache.h (struct cached_reg): Remove typedef.
  1186. 2020-11-24 Joel Brobecker <brobecker@adacore.com>
  1187. * README: Fix the URL of the MPFR library.
  1188. 2020-11-24 Joel Brobecker <brobecker@adacore.com>
  1189. * README: Document the --with-libgmp-prefix configure option.
  1190. 2020-11-24 Joel Brobecker <brobecker@adacore.com>
  1191. * NEWS: Add entry documenting support for DWARF-based fixed
  1192. point types.
  1193. 2020-11-24 Joel Brobecker <brobecker@adacore.com>
  1194. * NEWS: Document that building GDB now requires GMP.
  1195. 2020-11-24 Joel Brobecker <brobecker@adacore.com>
  1196. * typeprint.c (print_type_scalar): Add handling of
  1197. TYPE_CODE_FIXED_POINT.
  1198. 2020-11-24 Joel Brobecker <brobecker@adacore.com>
  1199. * valarith.c (fixed_point_binop): Replace the
  1200. INIT_VAL_WITH_FIXED_POINT_VAL macro by a lambda. Update all
  1201. users accordingly.
  1202. 2020-11-24 Joel Brobecker <brobecker@adacore.com>
  1203. * gdbtypes.h (struct type) <fixed_point_scaling_factor>: New method,
  1204. replacing fixed_point_scaling_factor. All callers updated
  1205. throughout this project.
  1206. (fixed_point_scaling_factor): Delete declaration.
  1207. * gdbtypes.c (type::fixed_point_scaling_factor): Replaces
  1208. fixed_point_scaling_factor. Adjust implementation accordingly.
  1209. 2020-11-24 Joel Brobecker <brobecker@adacore.com>
  1210. * gdbtypes.h (struct type) <fixed_point_type_base_type> New method,
  1211. replacing the fixed_point_type_base_type function. All callers
  1212. updated throughout this project.
  1213. (fixed_point_type_base_type): Remove declaration.
  1214. * gdbtypes.c (type::fixed_point_type_base_type): Replaces
  1215. fixed_point_type_base_type. Adjust implementation accordingly.
  1216. 2020-11-24 Joel Brobecker <brobecker@adacore.com>
  1217. * gdbtypes.h (struct type) <fixed_point_info, set_fixed_point_info>:
  1218. New methods.
  1219. (INIT_FIXED_POINT_SPECIFIC): Adjust.
  1220. (TYPE_FIXED_POINT_INFO): Delete macro.
  1221. (allocate_fixed_point_type_info): Change return type to void.
  1222. * gdbtypes.c (copy_type_recursive): Replace the use of
  1223. TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
  1224. (fixed_point_scaling_factor): Likewise.
  1225. (allocate_fixed_point_type_info): Change return type to void.
  1226. Adjust implementation accordingly.
  1227. * dwarf2/read.c (finish_fixed_point_type): Replace the use of
  1228. TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
  1229. 2020-11-24 Joel Brobecker <brobecker@adacore.com>
  1230. * gmp-utils.h (gdb_mpz::read): Change buf and len parameters
  1231. into one single gdb::array_view parameter.
  1232. (gdb_mpz::write): Likewise.
  1233. (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
  1234. * gmp-utils.c (gdb_mpz::read): Change buf and len parameters
  1235. into one single gdb::array_view parameter.
  1236. Adjust implementation accordingly.
  1237. (gdb_mpz::write): Likewise.
  1238. (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
  1239. * unittests/gmp-utils-selftests.c: Adapt following changes above.
  1240. * valarith.c, valops.c, valprint.c, value.c: Likewise.
  1241. 2020-11-24 Joel Brobecker <brobecker@adacore.com>
  1242. * gmp-utils.h (gmp_string_printf): Rename from gmp_string_asprintf.
  1243. Change return type to std::string. Update all callers.
  1244. * gmp-utils.c (gmp_string_printf): Likewise.
  1245. 2020-11-24 Joel Brobecker <brobecker@adacore.com>
  1246. * unittests/gmp-utils-selftests.c (write_fp_test): Use mpq_set_si
  1247. instead of mpq_set_ui to initialize our GMP rational.
  1248. 2020-11-23 Tom de Vries <tdevries@suse.de>
  1249. * debuginfod-support.c (debuginfod_source_query)
  1250. (debuginfod_debuginfo_query): Only set DESTNAME if successful.
  1251. 2020-11-21 Tom Tromey <tom@tromey.com>
  1252. * breakpoint.c (watchpoint_exp_is_const): Return bool.
  1253. 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
  1254. * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small):
  1255. Pass 2.0 to pow.
  1256. (gdb_mpz_write_all_from_small): Likewise.
  1257. 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
  1258. * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
  1259. of abs.
  1260. 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
  1261. * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
  1262. ctf_arc_open_by_name.
  1263. 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
  1264. * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
  1265. (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
  1266. 2020-11-20 Pedro Alves <pedro@palves.net>
  1267. * language.c (language_arch_info::lookup_primitive_type): Use
  1268. gdb::function_view instead of gdb::function.
  1269. (template language_lookup_primitive_type): Rename to ...
  1270. (language_lookup_primitive_type_1): ... this, and make static.
  1271. (language_lookup_primitive_type(const struct language_defn *,
  1272. struct gdbarch *, const char *): Make non-template.
  1273. (language_lookup_primitive_type(const struct language_defn *,
  1274. struct gdbarch *, std::function<bool (struct type *)>): Make
  1275. non-template and use gdb::function_view.
  1276. * language.h (language_arch_info::lookup_primitive_type): Use
  1277. gdb::function_view instead of std::function.
  1278. (language_lookup_primitive_type): No longer template.
  1279. * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
  1280. lambda instead of a std::function.
  1281. 2020-11-19 Andreas Arnez <arnez@linux.ibm.com>
  1282. PR tdep/26916
  1283. * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
  1284. and STOCFH.
  1285. 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
  1286. * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
  1287. 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
  1288. * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
  1289. in `loop_cb` parameter.
  1290. * gdbarch.c: Re-generate.
  1291. * gdbarch.h: Re-generate.
  1292. * arch-utils.c (default_read_core_file_mappings): Remove `other`
  1293. parameter.
  1294. * arch-utils.h (default_read_core_file_mappings): Likewise.
  1295. * corelow.c (core_target::build_file_mappings): Likewise.
  1296. * linux-tdep.c (linux_read_core_file_mappings): Likewise.
  1297. (linux_core_info_proc_mappings): Likewise.
  1298. 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
  1299. * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
  1300. * NEWS: Mention new options.
  1301. * f-array-walker.h: New file.
  1302. * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
  1303. (repack_array_slices): New static global.
  1304. (show_repack_array_slices): New function.
  1305. (fortran_array_slicing_debug): New static global.
  1306. (show_fortran_array_slicing_debug): New function.
  1307. (value_f90_subarray): Delete.
  1308. (skip_undetermined_arglist): Delete.
  1309. (class fortran_array_repacker_base_impl): New class.
  1310. (class fortran_lazy_array_repacker_impl): New class.
  1311. (class fortran_array_repacker_impl): New class.
  1312. (fortran_value_subarray): Complete rewrite.
  1313. (set_fortran_list): New static global.
  1314. (show_fortran_list): Likewise.
  1315. (_initialize_f_language): Register new commands.
  1316. (fortran_adjust_dynamic_array_base_address_hack): New function.
  1317. * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
  1318. Declare.
  1319. * f-valprint.c: Include 'f-array-walker.h'.
  1320. (class fortran_array_printer_impl): New class.
  1321. (f77_print_array_1): Delete.
  1322. (f77_print_array): Delete.
  1323. (fortran_print_array): New.
  1324. (f_value_print_inner): Update to call fortran_print_array.
  1325. * gdbtypes.c: Include 'f-lang.h'.
  1326. (resolve_dynamic_type_internal): Call
  1327. fortran_adjust_dynamic_array_base_address_hack.
  1328. 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
  1329. * breakpoint.c (struct watch_options): New struct.
  1330. (watch_option_defs): New static global.
  1331. (make_watch_options_def_group): New function.
  1332. (watch_maybe_just_location): Convert option parsing.
  1333. (watch_command_completer): New function.
  1334. (_initialize_breakpoint): Build help text using options mechanism.
  1335. 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
  1336. * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
  1337. (watch_command_1): Update parameter types. Convert locals to
  1338. bool.
  1339. (watch_command_wrapper): Change parameter type.
  1340. (watch_maybe_just_location): Change locals to bool.
  1341. (rwatch_command_wrapper): Update parameter type.
  1342. (awatch_command_wrapper): Update parameter type.
  1343. * breakpoint.h (watch_command_wrapper): Change parameter type.
  1344. (rwatch_command_wrapper): Update parameter type.
  1345. (awatch_command_wrapper): Update parameter type.
  1346. * eval.c (fetch_subexp_value): Change parameter type.
  1347. * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
  1348. 'false' not '0'.
  1349. * value.h (fetch_subexp_value): Change parameter type in
  1350. declaration.
  1351. 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
  1352. * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
  1353. skip_spaces.
  1354. 2020-11-18 Keith Seitz <keiths@redhat.com>
  1355. * linux-tdep.c (dump_note_entry_p): Return true instead of
  1356. checking `filename'.
  1357. 2020-11-18 Tom de Vries <tdevries@suse.de>
  1358. * debuginfod-support.c (debuginfod_source_query)
  1359. (debuginfod_debuginfo_query): Also do early exit if
  1360. "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
  1361. 2020-11-18 Tom de Vries <tdevries@suse.de>
  1362. * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
  1363. warning.
  1364. 2020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
  1365. * gdbtypes.h (get_array_bounds): Return bool, adjust some
  1366. callers. Move doc here.
  1367. * gdbtypes.c (get_array_bounds): Return bool
  1368. 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
  1369. * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
  1370. assert.
  1371. * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
  1372. * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
  1373. case to the default.
  1374. 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
  1375. * printcmd.c: Include 'safe-ctype.c'.
  1376. (skip_over_slash_fmt): New function.
  1377. (print_command_completer): Call skip_over_slash_fmt.
  1378. (display_and_x_command_completer): New function.
  1379. (_initialize_printcmd): Add command completion for 'x' and
  1380. 'display'.
  1381. 2020-11-16 Pedro Alves <pedro@palves.net>
  1382. * frame.c (get_prev_frame): Move get_frame_id call from here ...
  1383. (get_prev_frame_always_1): ... to here.
  1384. * inline-frame.c (inline_frame_this_id): Mention
  1385. get_prev_frame_always_1 in comment.
  1386. 2020-11-15 Joel Brobecker <brobecker@adacore.com>
  1387. * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
  1388. handling.
  1389. (value_less): Add fixed-point handling.
  1390. 2020-11-15 Joel Brobecker <brobecker@adacore.com>
  1391. * eval.c (binop_promote): Add fixed-point type handling.
  1392. * valarith.c (fixed_point_binop): New function.
  1393. (scalar_binop): Add fixed-point type handling.
  1394. (value_neg): Add fixed-point type handling.
  1395. * valops.c (value_cast_to_fixed_point): New function.
  1396. (value_cast): Add fixed-point type handling.
  1397. 2020-11-15 Joel Brobecker <brobecker@adacore.com>
  1398. * ada-typeprint.c (ada_print_type): Add handing of fixed-point
  1399. range types.
  1400. * c-typeprint.c (c_type_print_varspec_prefix)
  1401. (c_type_print_varspec_suffix, c_type_print_base_1): Add
  1402. TYPE_CODE_FIXED_POINT handling.
  1403. * p-typeprint.c (pascal_type_print_varspec_prefix)
  1404. (pascal_type_print_varspec_suffix): Likewise.
  1405. * typeprint.c (print_type_fixed_point): New function.
  1406. * typeprint.h (print_type_fixed_point): Add declaration.
  1407. 2020-11-15 Joel Brobecker <brobecker@adacore.com>
  1408. * printcmd.c (print_scalar_formatted): Add fixed-point type
  1409. handling when options->format is set.
  1410. 2020-11-15 Joel Brobecker <brobecker@adacore.com>
  1411. * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
  1412. * dwarf2/read.c (get_dwarf2_rational_constant)
  1413. (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
  1414. (has_zero_over_zero_small_attribute): New functions.
  1415. read_base_type, set_die_type): Add fixed-point type handling.
  1416. * gdb-gdb.py.in: Add fixed-point type handling.
  1417. * gdbtypes.c: #include "gmp-utils.h".
  1418. (create_range_type, set_type_code): Add fixed-point type handling.
  1419. (init_fixed_point_type): New function.
  1420. (is_integral_type, is_scalar_type): Add fixed-point type handling.
  1421. (print_fixed_point_type_info): New function.
  1422. (recursive_dump_type, copy_type_recursive): Add fixed-point type
  1423. handling.
  1424. (fixed_point_type_storage): New typedef.
  1425. (fixed_point_objfile_key): New static global.
  1426. (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
  1427. (fixed_point_type_base_type, fixed_point_scaling_factor): New
  1428. functions.
  1429. * gdbtypes.h: #include "gmp-utils.h".
  1430. (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
  1431. (union type_specific) <fixed_point_info>: New field.
  1432. (struct fixed_point_type_info): New struct.
  1433. (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
  1434. (init_fixed_point_type, is_fixed_point_type)
  1435. (fixed_point_type_base_type, fixed_point_scaling_factor)
  1436. (allocate_fixed_point_type_info): Add declarations.
  1437. * valprint.c (generic_val_print_fixed_point): New function.
  1438. (generic_value_print): Add fixed-point type handling.
  1439. * value.c (value_as_address, unpack_long): Add fixed-point type
  1440. handling.
  1441. 2020-11-15 Joel Brobecker <brobecker@adacore.com>
  1442. * utils.h (uinteger_pow): Add declaration.
  1443. * utils.c (uinteger_pow): Moved here (without changes)...
  1444. * valarith.c (uinteger_pow): ... from here.
  1445. 2020-11-15 Joel Brobecker <brobecker@adacore.com>
  1446. * gmp-utils.h, gmp-utils.c: New file.
  1447. * unittests/gmp-utils-selftests.c: New file.
  1448. * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
  1449. unittests/gmp-utils-selftests.c.
  1450. (COMMON_SFILES) Add gmp-utils.c.
  1451. (HFILES_NO_SRCDIR): Add gmp-utils.h.
  1452. 2020-11-15 Joel Brobecker <brobecker@adacore.com>
  1453. * configure.ac: Generate an error if a usable GMP library
  1454. could not be found.
  1455. * configure: Regenerate.
  1456. 2020-11-15 Joel Brobecker <brobecker@adacore.com>
  1457. * configure.ac: Add support for --with-libgmp-prefix.
  1458. * Makefile.in (LIBGMP): New variable.
  1459. (CLIBS): Include $(LIBGMP).
  1460. * configure, config.in: Regenerate
  1461. 2020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
  1462. PR cli/26879
  1463. * f-exp.y (COMPLETE): New token.
  1464. (exp): Two new rules for tab-completion.
  1465. (saw_name_at_eof): New static global.
  1466. (last_was_structop): Likewise.
  1467. (yylex): Set new variables, and return COMPLETE token at the end
  1468. of the input stream in some cases.
  1469. 2020-11-14 Tom Tromey <tom@tromey.com>
  1470. * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
  1471. 2020-11-14 Tom Tromey <tom@tromey.com>
  1472. * opencl-lang.c (opencl_component_ref): Make "comps" const.
  1473. 2020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
  1474. * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
  1475. 2020-11-13 Tom Tromey <tom@tromey.com>
  1476. * c-lang.c (convert_ucn, convert_octal, convert_hex)
  1477. (convert_escape, parse_one_string): Constify.
  1478. 2020-11-13 Keith Seitz <keiths@redhat.com>
  1479. https://bugzilla.redhat.com/show_bug.cgi?id=1553086
  1480. * elfread.c (elf_symfile_segments): Omit "Loadable section ...
  1481. outside of ELF segments" warning for debugin
  1482. 2020-11-13 Keith Seitz <keiths@redhat.com>
  1483. PR gdb/23034
  1484. * elfread.c (elf_symfile_segments): Output a BFD file name
  1485. for the "Loadable section ... outside of ELF segments" warning.
  1486. 2020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
  1487. PR gdb/26835
  1488. * arm-tdep.c (class arm_instruction_reader): New.
  1489. (target_arm_instruction_reader): New.
  1490. (arm_analyze_prologue): Add instruction reader parameter and use
  1491. it. Use arm_expand_immediate.
  1492. (class target_arm_instruction_reader): Adjust.
  1493. (arm_skip_prologue): Adjust.
  1494. (arm_expand_immediate): New.
  1495. (arm_scan_prologue): Adjust.
  1496. (arm_analyze_prologue_test): New.
  1497. (class test_arm_instruction_reader): New.
  1498. 2020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
  1499. * f-lang.c (fortran_argument_convert): Add declaration. Add
  1500. header comment, taken from f-lang.h. Make static.
  1501. * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
  1502. (fortran_argument_convert): Delete declaration.
  1503. 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
  1504. * ada-exp.y (find_primitive_type): Make parameter const.
  1505. * ada-lang.c (enum ada_primitive_types): Delete.
  1506. (ada_language::language_arch_info): Update.
  1507. * c-lang.c (enum c_primitive_types): Delete.
  1508. (c_language_arch_info): Update.
  1509. (enum cplus_primitive_types): Delete.
  1510. (cplus_language::language_arch_info): Update.
  1511. * d-lang.c (enum d_primitive_types): Delete.
  1512. (d_language::language_arch_info): Update.
  1513. * f-lang.c (enum f_primitive_types): Delete.
  1514. (f_language::language_arch_info): Update.
  1515. * go-lang.c (enum go_primitive_types): Delete.
  1516. (go_language::language_arch_info): Update.
  1517. * language.c (auto_or_unknown_language::language_arch_info):
  1518. Update.
  1519. (language_gdbarch_post_init): Use obstack_new, use array indexing.
  1520. (language_string_char_type): Add header comment, call function in
  1521. language_arch_info.
  1522. (language_bool_type): Likewise
  1523. (language_arch_info::bool_type): Define.
  1524. (language_lookup_primitive_type_1): Delete.
  1525. (language_lookup_primitive_type): Rewrite as a templated function
  1526. to call function in language_arch_info, then instantiate twice.
  1527. (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
  1528. (language_arch_info::lookup_primitive_type_and_symbol): Define.
  1529. (language_arch_info::lookup_primitive_type): Define twice with
  1530. different signatures.
  1531. (language_arch_info::lookup_primitive_type_as_symbol): Define.
  1532. (language_lookup_primitive_type_as_symbol): Rewrite to call a
  1533. member function in language_arch_info.
  1534. * language.h (language_arch_info): Complete rewrite.
  1535. (language_lookup_primitive_type): Make templated.
  1536. * m2-lang.c (enum m2_primitive_types): Delete.
  1537. (m2_language::language_arch_info): Update.
  1538. * opencl-lang.c (OCL_P_TYPE): Delete.
  1539. (enum opencl_primitive_types): Delete.
  1540. (opencl_type_data): Delete.
  1541. (builtin_opencl_type): Delete.
  1542. (lookup_opencl_vector_type): Update.
  1543. (opencl_language::language_arch_info): Update, lots of content
  1544. moved from...
  1545. (build_opencl_types): ...here. This function is now deleted.
  1546. (_initialize_opencl_language): Delete.
  1547. * p-lang.c (enum pascal_primitive_types): Delete.
  1548. (pascal_language::language_arch_info): Update.
  1549. * rust-lang.c (enum rust_primitive_types): Delete.
  1550. (rust_language::language_arch_info): Update.
  1551. 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
  1552. * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
  1553. dwarf2_queue_guard.
  1554. 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
  1555. * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
  1556. comment.
  1557. 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
  1558. * dwarf2/read.c (dwarf_read_debug_printf,
  1559. dwarf_read_debug_printf_v): New macros, use throughout the file.
  1560. 2020-11-12 Shahab Vahedi <shahab@synopsys.com>
  1561. PR tdep/27015
  1562. * arc-linux-tdep.c (collect_register): Populate "eret" by
  1563. "pc" value from the regcache when asked for "pc" value.
  1564. 2020-11-12 Tom Tromey <tom@tromey.com>
  1565. PR rust/26799:
  1566. * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
  1567. exist.
  1568. 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
  1569. * features/Makefile (XMLTOC): Add rx.xml.
  1570. (FEATURE_XMLFILES): Remove rx.xml.
  1571. (FEATURE_CFILES rule): Pass '-single-feature' flag.
  1572. * features/rx.c: Regenerate.
  1573. * features/rx.xml: Wrap in `target` tags, and reindent.
  1574. * target-descriptions.c (struct maint_print_c_tdesc_options): New
  1575. structure.
  1576. (maint_print_c_tdesc_opt_def): New typedef.
  1577. (maint_print_c_tdesc_opt_defs): New static global.
  1578. (make_maint_print_c_tdesc_options_def_group): New function.
  1579. (maint_print_c_tdesc_cmd): Make use of command line flags, only
  1580. print single feature C file for target descriptions containing a
  1581. single feature.
  1582. (maint_print_c_tdesc_cmd_completer): New function.
  1583. (_initialize_target_descriptions): Update call to register command
  1584. completer, and include command line flag in help text.
  1585. 2020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
  1586. * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
  1587. numbers.
  1588. * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
  1589. enum values.
  1590. 2020-11-10 Tom Tromey <tom@tromey.com>
  1591. * value.h (internalvar_name): Update.
  1592. * value.c (internalvar_name): Make return type const.
  1593. 2020-11-10 Tom Tromey <tom@tromey.com>
  1594. * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
  1595. (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
  1596. const.
  1597. 2020-11-10 Tom Tromey <tom@tromey.com>
  1598. * objc-lang.h (value_nsstring): Update.
  1599. * objc-lang.c (value_nsstring): Make "ptr" const.
  1600. 2020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
  1601. * expprint.c (print_subexp_funcall): Increment expression position
  1602. after reading argument count.
  1603. * f-lang.c (print_subexp_f): Skip over opcode before calling
  1604. common function.
  1605. (dump_subexp_body_f): Likewise.
  1606. 2020-11-06 Romain Geissler <romain.geissler@amadeus.com>
  1607. PR python/26832
  1608. * configure: Regenerate.
  1609. * configure.ac: Check for python modules ctypes instead of
  1610. itertools.
  1611. 2020-11-06 Pedro Alves <pedro@palves.net>
  1612. * macroexp.c (struct macro_buffer): Split in two classes. Add
  1613. uses adjusted.
  1614. (struct shared_macro_buffer): New, factored out from struct
  1615. macro_buffer.
  1616. (struct growable_macro_buffer): New, factored out from struct
  1617. macro_buffer.
  1618. (set_token, get_comment, get_identifier, get_pp_number)
  1619. (get_character_constant, get_string_literal, get_punctuator)
  1620. (get_next_token_for_substitution): Constify parameters.
  1621. (substitute_args): Constify locals.
  1622. 2020-11-05 Tom Tromey <tom@tromey.com>
  1623. * dwarf2/read.c (read_cutu_die_from_dwo)
  1624. (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
  1625. (build_type_psymtabs_1): Update.
  1626. * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
  1627. parameter.
  1628. * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
  1629. Don't read section. Add assert.
  1630. 2020-11-04 Tom Tromey <tromey@adacore.com>
  1631. * ada-typeprint.c (ada_print_type): Handle __XVL fields.
  1632. 2020-11-04 Tom Tromey <tromey@adacore.com>
  1633. * ada-typeprint.c (ada_print_type): Handle __T types.
  1634. 2020-11-04 Tom Tromey <tromey@adacore.com>
  1635. * dwarf2/read.c (add_partial_symbol, process_die):
  1636. Handle DW_TAG_array_type.
  1637. (is_type_tag_for_partial): Add "lang" parameter.
  1638. (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
  1639. 2020-11-04 Tom Tromey <tromey@adacore.com>
  1640. * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
  1641. 2020-11-04 Tom Tromey <tromey@adacore.com>
  1642. * dwarf2/read.c (read_array_type): Only apply stride to innermost
  1643. array.
  1644. 2020-11-04 Tom Tromey <tromey@adacore.com>
  1645. * gdbtypes.c (update_static_array_size): Handle bit stride.
  1646. 2020-11-04 Tom Tromey <tromey@adacore.com>
  1647. * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
  1648. 2020-11-04 Tom Tromey <tromey@adacore.com>
  1649. * ada-lang.c (ada_is_any_packed_array_type): New function.
  1650. (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
  1651. 2020-11-04 Tom Tromey <tromey@adacore.com>
  1652. * dwarf2/read.c (recognize_bound_expression)
  1653. (quirk_ada_thick_pointer): New functions.
  1654. (read_array_type): Call quirk_ada_thick_pointer.
  1655. (set_die_type): Add "skip_data_location" parameter.
  1656. (quirk_ada_thick_pointer): New function.
  1657. (process_structure_scope): Call quirk_ada_thick_pointer.
  1658. * ada-lang.c (ada_is_unconstrained_packed_array_type)
  1659. (decode_packed_array_bitsize): Handle thick pointers without
  1660. parallel types.
  1661. (ada_is_gnat_encoded_packed_array_type): Rename from
  1662. ada_is_packed_array_type.
  1663. (ada_is_constrained_packed_array_type): Update.
  1664. * ada-valprint.c (ada_val_print_gnat_array): Remove.
  1665. (ada_value_print_1): Use ada_get_decoded_value.
  1666. 2020-11-04 Tom Tromey <tromey@adacore.com>
  1667. * ada-lang.c (recursively_update_array_bitsize): New function.
  1668. (decode_constrained_packed_array_type): Call it.
  1669. 2020-11-04 Tom Tromey <tromey@adacore.com>
  1670. * ada-lang.c (to_fixed_array_type): Error if
  1671. decode_constrained_packed_array_type returns NULL.
  1672. 2020-11-04 Tom Tromey <tromey@adacore.com>
  1673. * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
  1674. 2020-11-02 Tom Tromey <tromey@adacore.com>
  1675. * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
  1676. (ALLDEPFILES): Add amd64-ravenscar-thread.c.
  1677. (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
  1678. * amd64-ravenscar-thread.c: New file.
  1679. * amd64-ravenscar-thread.h: New file.
  1680. * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
  1681. * configure.tgt (amd64_tobjs): Add ravenscar objects.
  1682. 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
  1683. * main.c (execute_cmdargs): New function.
  1684. (captured_main_1): Make use of execute_cmdargs.
  1685. 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
  1686. * NEWS: Mention changes to config file search path.
  1687. * main.c
  1688. 2020-11-02 Tom Tromey <tromey@adacore.com>
  1689. * python/python.c: Consolidate two HAVE_PYTHON blocks.
  1690. (python_GdbModuleDef): Move earlier. Now static.
  1691. (do_start_initialization): Consolidate some IS_PY3K blocks.
  1692. 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
  1693. * aarch64-linux-tdep.c: Fix indentation.
  1694. * aarch64-ravenscar-thread.c: Fix indentation.
  1695. * aarch64-tdep.c: Fix indentation.
  1696. * aarch64-tdep.h: Fix indentation.
  1697. * ada-lang.c: Fix indentation.
  1698. * ada-lang.h: Fix indentation.
  1699. * ada-tasks.c: Fix indentation.
  1700. * ada-typeprint.c: Fix indentation.
  1701. * ada-valprint.c: Fix indentation.
  1702. * ada-varobj.c: Fix indentation.
  1703. * addrmap.c: Fix indentation.
  1704. * addrmap.h: Fix indentation.
  1705. * agent.c: Fix indentation.
  1706. * aix-thread.c: Fix indentation.
  1707. * alpha-bsd-nat.c: Fix indentation.
  1708. * alpha-linux-tdep.c: Fix indentation.
  1709. * alpha-mdebug-tdep.c: Fix indentation.
  1710. * alpha-nbsd-tdep.c: Fix indentation.
  1711. * alpha-obsd-tdep.c: Fix indentation.
  1712. * alpha-tdep.c: Fix indentation.
  1713. * amd64-bsd-nat.c: Fix indentation.
  1714. * amd64-darwin-tdep.c: Fix indentation.
  1715. * amd64-linux-nat.c: Fix indentation.
  1716. * amd64-linux-tdep.c: Fix indentation.
  1717. * amd64-nat.c: Fix indentation.
  1718. * amd64-obsd-tdep.c: Fix indentation.
  1719. * amd64-tdep.c: Fix indentation.
  1720. * amd64-windows-tdep.c: Fix indentation.
  1721. * annotate.c: Fix indentation.
  1722. * arc-tdep.c: Fix indentation.
  1723. * arch-utils.c: Fix indentation.
  1724. * arch/arm-get-next-pcs.c: Fix indentation.
  1725. * arch/arm.c: Fix indentation.
  1726. * arm-linux-nat.c: Fix indentation.
  1727. * arm-linux-tdep.c: Fix indentation.
  1728. * arm-nbsd-tdep.c: Fix indentation.
  1729. * arm-pikeos-tdep.c: Fix indentation.
  1730. * arm-tdep.c: Fix indentation.
  1731. * arm-tdep.h: Fix indentation.
  1732. * arm-wince-tdep.c: Fix indentation.
  1733. * auto-load.c: Fix indentation.
  1734. * auxv.c: Fix indentation.
  1735. * avr-tdep.c: Fix indentation.
  1736. * ax-gdb.c: Fix indentation.
  1737. * ax-general.c: Fix indentation.
  1738. * bfin-linux-tdep.c: Fix indentation.
  1739. * block.c: Fix indentation.
  1740. * block.h: Fix indentation.
  1741. * blockframe.c: Fix indentation.
  1742. * bpf-tdep.c: Fix indentation.
  1743. * break-catch-sig.c: Fix indentation.
  1744. * break-catch-syscall.c: Fix indentation.
  1745. * break-catch-throw.c: Fix indentation.
  1746. * breakpoint.c: Fix indentation.
  1747. * breakpoint.h: Fix indentation.
  1748. * bsd-uthread.c: Fix indentation.
  1749. * btrace.c: Fix indentation.
  1750. * build-id.c: Fix indentation.
  1751. * buildsym-legacy.h: Fix indentation.
  1752. * buildsym.c: Fix indentation.
  1753. * c-typeprint.c: Fix indentation.
  1754. * c-valprint.c: Fix indentation.
  1755. * c-varobj.c: Fix indentation.
  1756. * charset.c: Fix indentation.
  1757. * cli/cli-cmds.c: Fix indentation.
  1758. * cli/cli-decode.c: Fix indentation.
  1759. * cli/cli-decode.h: Fix indentation.
  1760. * cli/cli-script.c: Fix indentation.
  1761. * cli/cli-setshow.c: Fix indentation.
  1762. * coff-pe-read.c: Fix indentation.
  1763. * coffread.c: Fix indentation.
  1764. * compile/compile-cplus-types.c: Fix indentation.
  1765. * compile/compile-object-load.c: Fix indentation.
  1766. * compile/compile-object-run.c: Fix indentation.
  1767. * completer.c: Fix indentation.
  1768. * corefile.c: Fix indentation.
  1769. * corelow.c: Fix indentation.
  1770. * cp-abi.h: Fix indentation.
  1771. * cp-namespace.c: Fix indentation.
  1772. * cp-support.c: Fix indentation.
  1773. * cp-valprint.c: Fix indentation.
  1774. * cris-linux-tdep.c: Fix indentation.
  1775. * cris-tdep.c: Fix indentation.
  1776. * darwin-nat-info.c: Fix indentation.
  1777. * darwin-nat.c: Fix indentation.
  1778. * darwin-nat.h: Fix indentation.
  1779. * dbxread.c: Fix indentation.
  1780. * dcache.c: Fix indentation.
  1781. * disasm.c: Fix indentation.
  1782. * dtrace-probe.c: Fix indentation.
  1783. * dwarf2/abbrev.c: Fix indentation.
  1784. * dwarf2/attribute.c: Fix indentation.
  1785. * dwarf2/expr.c: Fix indentation.
  1786. * dwarf2/frame.c: Fix indentation.
  1787. * dwarf2/index-cache.c: Fix indentation.
  1788. * dwarf2/index-write.c: Fix indentation.
  1789. * dwarf2/line-header.c: Fix indentation.
  1790. * dwarf2/loc.c: Fix indentation.
  1791. * dwarf2/macro.c: Fix indentation.
  1792. * dwarf2/read.c: Fix indentation.
  1793. * dwarf2/read.h: Fix indentation.
  1794. * elfread.c: Fix indentation.
  1795. * eval.c: Fix indentation.
  1796. * event-top.c: Fix indentation.
  1797. * exec.c: Fix indentation.
  1798. * exec.h: Fix indentation.
  1799. * expprint.c: Fix indentation.
  1800. * f-lang.c: Fix indentation.
  1801. * f-typeprint.c: Fix indentation.
  1802. * f-valprint.c: Fix indentation.
  1803. * fbsd-nat.c: Fix indentation.
  1804. * fbsd-tdep.c: Fix indentation.
  1805. * findvar.c: Fix indentation.
  1806. * fork-child.c: Fix indentation.
  1807. * frame-unwind.c: Fix indentation.
  1808. * frame-unwind.h: Fix indentation.
  1809. * frame.c: Fix indentation.
  1810. * frv-linux-tdep.c: Fix indentation.
  1811. * frv-tdep.c: Fix indentation.
  1812. * frv-tdep.h: Fix indentation.
  1813. * ft32-tdep.c: Fix indentation.
  1814. * gcore.c: Fix indentation.
  1815. * gdb_bfd.c: Fix indentation.
  1816. * gdbarch.sh: Fix indentation.
  1817. * gdbarch.c: Re-generate
  1818. * gdbarch.h: Re-generate.
  1819. * gdbcore.h: Fix indentation.
  1820. * gdbthread.h: Fix indentation.
  1821. * gdbtypes.c: Fix indentation.
  1822. * gdbtypes.h: Fix indentation.
  1823. * glibc-tdep.c: Fix indentation.
  1824. * gnu-nat.c: Fix indentation.
  1825. * gnu-nat.h: Fix indentation.
  1826. * gnu-v2-abi.c: Fix indentation.
  1827. * gnu-v3-abi.c: Fix indentation.
  1828. * go32-nat.c: Fix indentation.
  1829. * guile/guile-internal.h: Fix indentation.
  1830. * guile/scm-cmd.c: Fix indentation.
  1831. * guile/scm-frame.c: Fix indentation.
  1832. * guile/scm-iterator.c: Fix indentation.
  1833. * guile/scm-math.c: Fix indentation.
  1834. * guile/scm-ports.c: Fix indentation.
  1835. * guile/scm-pretty-print.c: Fix indentation.
  1836. * guile/scm-value.c: Fix indentation.
  1837. * h8300-tdep.c: Fix indentation.
  1838. * hppa-linux-nat.c: Fix indentation.
  1839. * hppa-linux-tdep.c: Fix indentation.
  1840. * hppa-nbsd-nat.c: Fix indentation.
  1841. * hppa-nbsd-tdep.c: Fix indentation.
  1842. * hppa-obsd-nat.c: Fix indentation.
  1843. * hppa-tdep.c: Fix indentation.
  1844. * hppa-tdep.h: Fix indentation.
  1845. * i386-bsd-nat.c: Fix indentation.
  1846. * i386-darwin-nat.c: Fix indentation.
  1847. * i386-darwin-tdep.c: Fix indentation.
  1848. * i386-dicos-tdep.c: Fix indentation.
  1849. * i386-gnu-nat.c: Fix indentation.
  1850. * i386-linux-nat.c: Fix indentation.
  1851. * i386-linux-tdep.c: Fix indentation.
  1852. * i386-nto-tdep.c: Fix indentation.
  1853. * i386-obsd-tdep.c: Fix indentation.
  1854. * i386-sol2-nat.c: Fix indentation.
  1855. * i386-tdep.c: Fix indentation.
  1856. * i386-tdep.h: Fix indentation.
  1857. * i386-windows-tdep.c: Fix indentation.
  1858. * i387-tdep.c: Fix indentation.
  1859. * i387-tdep.h: Fix indentation.
  1860. * ia64-libunwind-tdep.c: Fix indentation.
  1861. * ia64-libunwind-tdep.h: Fix indentation.
  1862. * ia64-linux-nat.c: Fix indentation.
  1863. * ia64-linux-tdep.c: Fix indentation.
  1864. * ia64-tdep.c: Fix indentation.
  1865. * ia64-tdep.h: Fix indentation.
  1866. * ia64-vms-tdep.c: Fix indentation.
  1867. * infcall.c: Fix indentation.
  1868. * infcmd.c: Fix indentation.
  1869. * inferior.c: Fix indentation.
  1870. * infrun.c: Fix indentation.
  1871. * iq2000-tdep.c: Fix indentation.
  1872. * language.c: Fix indentation.
  1873. * linespec.c: Fix indentation.
  1874. * linux-fork.c: Fix indentation.
  1875. * linux-nat.c: Fix indentation.
  1876. * linux-tdep.c: Fix indentation.
  1877. * linux-thread-db.c: Fix indentation.
  1878. * lm32-tdep.c: Fix indentation.
  1879. * m2-lang.c: Fix indentation.
  1880. * m2-typeprint.c: Fix indentation.
  1881. * m2-valprint.c: Fix indentation.
  1882. * m32c-tdep.c: Fix indentation.
  1883. * m32r-linux-tdep.c: Fix indentation.
  1884. * m32r-tdep.c: Fix indentation.
  1885. * m68hc11-tdep.c: Fix indentation.
  1886. * m68k-bsd-nat.c: Fix indentation.
  1887. * m68k-linux-nat.c: Fix indentation.
  1888. * m68k-linux-tdep.c: Fix indentation.
  1889. * m68k-tdep.c: Fix indentation.
  1890. * machoread.c: Fix indentation.
  1891. * macrocmd.c: Fix indentation.
  1892. * macroexp.c: Fix indentation.
  1893. * macroscope.c: Fix indentation.
  1894. * macrotab.c: Fix indentation.
  1895. * macrotab.h: Fix indentation.
  1896. * main.c: Fix indentation.
  1897. * mdebugread.c: Fix indentation.
  1898. * mep-tdep.c: Fix indentation.
  1899. * mi/mi-cmd-catch.c: Fix indentation.
  1900. * mi/mi-cmd-disas.c: Fix indentation.
  1901. * mi/mi-cmd-env.c: Fix indentation.
  1902. * mi/mi-cmd-stack.c: Fix indentation.
  1903. * mi/mi-cmd-var.c: Fix indentation.
  1904. * mi/mi-cmds.c: Fix indentation.
  1905. * mi/mi-main.c: Fix indentation.
  1906. * mi/mi-parse.c: Fix indentation.
  1907. * microblaze-tdep.c: Fix indentation.
  1908. * minidebug.c: Fix indentation.
  1909. * minsyms.c: Fix indentation.
  1910. * mips-linux-nat.c: Fix indentation.
  1911. * mips-linux-tdep.c: Fix indentation.
  1912. * mips-nbsd-tdep.c: Fix indentation.
  1913. * mips-tdep.c: Fix indentation.
  1914. * mn10300-linux-tdep.c: Fix indentation.
  1915. * mn10300-tdep.c: Fix indentation.
  1916. * moxie-tdep.c: Fix indentation.
  1917. * msp430-tdep.c: Fix indentation.
  1918. * namespace.h: Fix indentation.
  1919. * nat/fork-inferior.c: Fix indentation.
  1920. * nat/gdb_ptrace.h: Fix indentation.
  1921. * nat/linux-namespaces.c: Fix indentation.
  1922. * nat/linux-osdata.c: Fix indentation.
  1923. * nat/netbsd-nat.c: Fix indentation.
  1924. * nat/x86-dregs.c: Fix indentation.
  1925. * nbsd-nat.c: Fix indentation.
  1926. * nbsd-tdep.c: Fix indentation.
  1927. * nios2-linux-tdep.c: Fix indentation.
  1928. * nios2-tdep.c: Fix indentation.
  1929. * nto-procfs.c: Fix indentation.
  1930. * nto-tdep.c: Fix indentation.
  1931. * objfiles.c: Fix indentation.
  1932. * objfiles.h: Fix indentation.
  1933. * opencl-lang.c: Fix indentation.
  1934. * or1k-tdep.c: Fix indentation.
  1935. * osabi.c: Fix indentation.
  1936. * osabi.h: Fix indentation.
  1937. * osdata.c: Fix indentation.
  1938. * p-lang.c: Fix indentation.
  1939. * p-typeprint.c: Fix indentation.
  1940. * p-valprint.c: Fix indentation.
  1941. * parse.c: Fix indentation.
  1942. * ppc-linux-nat.c: Fix indentation.
  1943. * ppc-linux-tdep.c: Fix indentation.
  1944. * ppc-nbsd-nat.c: Fix indentation.
  1945. * ppc-nbsd-tdep.c: Fix indentation.
  1946. * ppc-obsd-nat.c: Fix indentation.
  1947. * ppc-ravenscar-thread.c: Fix indentation.
  1948. * ppc-sysv-tdep.c: Fix indentation.
  1949. * ppc64-tdep.c: Fix indentation.
  1950. * printcmd.c: Fix indentation.
  1951. * proc-api.c: Fix indentation.
  1952. * producer.c: Fix indentation.
  1953. * producer.h: Fix indentation.
  1954. * prologue-value.c: Fix indentation.
  1955. * prologue-value.h: Fix indentation.
  1956. * psymtab.c: Fix indentation.
  1957. * python/py-arch.c: Fix indentation.
  1958. * python/py-bpevent.c: Fix indentation.
  1959. * python/py-event.c: Fix indentation.
  1960. * python/py-event.h: Fix indentation.
  1961. * python/py-finishbreakpoint.c: Fix indentation.
  1962. * python/py-frame.c: Fix indentation.
  1963. * python/py-framefilter.c: Fix indentation.
  1964. * python/py-inferior.c: Fix indentation.
  1965. * python/py-infthread.c: Fix indentation.
  1966. * python/py-objfile.c: Fix indentation.
  1967. * python/py-prettyprint.c: Fix indentation.
  1968. * python/py-registers.c: Fix indentation.
  1969. * python/py-signalevent.c: Fix indentation.
  1970. * python/py-stopevent.c: Fix indentation.
  1971. * python/py-stopevent.h: Fix indentation.
  1972. * python/py-threadevent.c: Fix indentation.
  1973. * python/py-tui.c: Fix indentation.
  1974. * python/py-unwind.c: Fix indentation.
  1975. * python/py-value.c: Fix indentation.
  1976. * python/py-xmethods.c: Fix indentation.
  1977. * python/python-internal.h: Fix indentation.
  1978. * python/python.c: Fix indentation.
  1979. * ravenscar-thread.c: Fix indentation.
  1980. * record-btrace.c: Fix indentation.
  1981. * record-full.c: Fix indentation.
  1982. * record.c: Fix indentation.
  1983. * reggroups.c: Fix indentation.
  1984. * regset.h: Fix indentation.
  1985. * remote-fileio.c: Fix indentation.
  1986. * remote.c: Fix indentation.
  1987. * reverse.c: Fix indentation.
  1988. * riscv-linux-tdep.c: Fix indentation.
  1989. * riscv-ravenscar-thread.c: Fix indentation.
  1990. * riscv-tdep.c: Fix indentation.
  1991. * rl78-tdep.c: Fix indentation.
  1992. * rs6000-aix-tdep.c: Fix indentation.
  1993. * rs6000-lynx178-tdep.c: Fix indentation.
  1994. * rs6000-nat.c: Fix indentation.
  1995. * rs6000-tdep.c: Fix indentation.
  1996. * rust-lang.c: Fix indentation.
  1997. * rx-tdep.c: Fix indentation.
  1998. * s12z-tdep.c: Fix indentation.
  1999. * s390-linux-tdep.c: Fix indentation.
  2000. * score-tdep.c: Fix indentation.
  2001. * ser-base.c: Fix indentation.
  2002. * ser-mingw.c: Fix indentation.
  2003. * ser-uds.c: Fix indentation.
  2004. * ser-unix.c: Fix indentation.
  2005. * serial.c: Fix indentation.
  2006. * sh-linux-tdep.c: Fix indentation.
  2007. * sh-nbsd-tdep.c: Fix indentation.
  2008. * sh-tdep.c: Fix indentation.
  2009. * skip.c: Fix indentation.
  2010. * sol-thread.c: Fix indentation.
  2011. * solib-aix.c: Fix indentation.
  2012. * solib-darwin.c: Fix indentation.
  2013. * solib-frv.c: Fix indentation.
  2014. * solib-svr4.c: Fix indentation.
  2015. * solib.c: Fix indentation.
  2016. * source.c: Fix indentation.
  2017. * sparc-linux-tdep.c: Fix indentation.
  2018. * sparc-nbsd-tdep.c: Fix indentation.
  2019. * sparc-obsd-tdep.c: Fix indentation.
  2020. * sparc-ravenscar-thread.c: Fix indentation.
  2021. * sparc-tdep.c: Fix indentation.
  2022. * sparc64-linux-tdep.c: Fix indentation.
  2023. * sparc64-nbsd-tdep.c: Fix indentation.
  2024. * sparc64-obsd-tdep.c: Fix indentation.
  2025. * sparc64-tdep.c: Fix indentation.
  2026. * stabsread.c: Fix indentation.
  2027. * stack.c: Fix indentation.
  2028. * stap-probe.c: Fix indentation.
  2029. * stubs/ia64vms-stub.c: Fix indentation.
  2030. * stubs/m32r-stub.c: Fix indentation.
  2031. * stubs/m68k-stub.c: Fix indentation.
  2032. * stubs/sh-stub.c: Fix indentation.
  2033. * stubs/sparc-stub.c: Fix indentation.
  2034. * symfile-mem.c: Fix indentation.
  2035. * symfile.c: Fix indentation.
  2036. * symfile.h: Fix indentation.
  2037. * symmisc.c: Fix indentation.
  2038. * symtab.c: Fix indentation.
  2039. * symtab.h: Fix indentation.
  2040. * target-float.c: Fix indentation.
  2041. * target.c: Fix indentation.
  2042. * target.h: Fix indentation.
  2043. * tic6x-tdep.c: Fix indentation.
  2044. * tilegx-linux-tdep.c: Fix indentation.
  2045. * tilegx-tdep.c: Fix indentation.
  2046. * top.c: Fix indentation.
  2047. * tracefile-tfile.c: Fix indentation.
  2048. * tracepoint.c: Fix indentation.
  2049. * tui/tui-disasm.c: Fix indentation.
  2050. * tui/tui-io.c: Fix indentation.
  2051. * tui/tui-regs.c: Fix indentation.
  2052. * tui/tui-stack.c: Fix indentation.
  2053. * tui/tui-win.c: Fix indentation.
  2054. * tui/tui-winsource.c: Fix indentation.
  2055. * tui/tui.c: Fix indentation.
  2056. * typeprint.c: Fix indentation.
  2057. * ui-out.h: Fix indentation.
  2058. * unittests/copy_bitwise-selftests.c: Fix indentation.
  2059. * unittests/memory-map-selftests.c: Fix indentation.
  2060. * utils.c: Fix indentation.
  2061. * v850-tdep.c: Fix indentation.
  2062. * valarith.c: Fix indentation.
  2063. * valops.c: Fix indentation.
  2064. * valprint.c: Fix indentation.
  2065. * valprint.h: Fix indentation.
  2066. * value.c: Fix indentation.
  2067. * value.h: Fix indentation.
  2068. * varobj.c: Fix indentation.
  2069. * vax-tdep.c: Fix indentation.
  2070. * windows-nat.c: Fix indentation.
  2071. * windows-tdep.c: Fix indentation.
  2072. * xcoffread.c: Fix indentation.
  2073. * xml-syscall.c: Fix indentation.
  2074. * xml-tdesc.c: Fix indentation.
  2075. * xstormy16-tdep.c: Fix indentation.
  2076. * xtensa-config.c: Fix indentation.
  2077. * xtensa-linux-nat.c: Fix indentation.
  2078. * xtensa-linux-tdep.c: Fix indentation.
  2079. * xtensa-tdep.c: Fix indentation.
  2080. 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
  2081. Craig Blackmore <craig.blackmore@embecosm.com>
  2082. * riscv-tdep.c (riscv_frame_cache): Read the frame base register
  2083. as an unsigned value.
  2084. 2020-11-01 Tom Tromey <tom@tromey.com>
  2085. * dbxread.c (dbx_end_psymtab): Update.
  2086. * dwarf2/read.c (process_psymtab_comp_unit_reader)
  2087. (build_type_psymtabs_reader): Update.
  2088. * xcoffread.c (xcoff_end_psymtab): Update.
  2089. * ctfread.c (scan_partial_symbols): Update.
  2090. * psymtab.c (sort_pst_symbols): Remove.
  2091. (partial_symtab::end): Rename from end_psymtab_common. Inline
  2092. sort_pst_symbols.
  2093. * psympriv.h (struct partial_symtab) <end>: New method.
  2094. (end_psymtab_common): Don't declare.
  2095. 2020-11-01 Tom Tromey <tom@tromey.com>
  2096. * symmisc.c (count_psyms): New function.
  2097. (print_objfile_statistics): Use it.
  2098. * psymtab.c (append_psymbol_to_list): Remove.
  2099. (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
  2100. * objfiles.h (struct objstats) <n_psyms>: Remove.
  2101. 2020-11-01 Tom Tromey <tom@tromey.com>
  2102. * dbxread.c (dbx_end_psymtab): Update.
  2103. * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
  2104. (build_type_psymtabs_reader): Update.
  2105. * xcoffread.c (xcoff_end_psymtab): Update.
  2106. * ctfread.c (scan_partial_symbols): Update.
  2107. * psympriv.h (end_psymtab_common): Update.
  2108. * psymtab.c (end_psymtab_common): Remove objfile parameter.
  2109. (sort_pst_symbols): Likewise.
  2110. 2020-11-01 Tom Tromey <tom@tromey.com>
  2111. * dbxread.c (dbx_symfile_read): Update.
  2112. * dwarf2/read.c (dwarf2_build_psymtabs): Update.
  2113. * xcoffread.c (xcoff_initial_scan): Update.
  2114. * psympriv.h (init_psymbol_list): Don't declare.
  2115. * psymtab.c (init_psymbol_list): Remove.
  2116. 2020-11-01 Joel Brobecker <brobecker@adacore.com>
  2117. * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
  2118. gnat_encoded_fixed_type_info. Update all callers.
  2119. 2020-11-01 Joel Brobecker <brobecker@adacore.com>
  2120. * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
  2121. line too long.
  2122. 2020-11-01 Joel Brobecker <brobecker@adacore.com>
  2123. * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
  2124. cast_from_fixed. Update all callers.
  2125. (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
  2126. Update all callers.
  2127. (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
  2128. Update all callers.
  2129. * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
  2130. ada_scaling_factor.
  2131. * ada-typeprint.c: Replace call to ada_scaling_factor by call
  2132. to print_gnat_encoded_fixed_point_type.
  2133. * ada-valprint.c: Likewise.
  2134. 2020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
  2135. * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
  2136. (debug_prefixed_printf): Add check of debug_displaced flag.
  2137. * linux-nat.c (linux_nat_debug_printf): Add check of
  2138. debug_linux_nat flag.
  2139. 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
  2140. * infrun.c (infrun_debug_printf_1): Remove.
  2141. (displaced_debug_printf_1): Remove.
  2142. (stop_all_threads): Use debug_prefixed_printf.
  2143. * infrun.h (infrun_debug_printf_1): Remove.
  2144. (infrun_debug_printf): Use debug_prefixed_printf.
  2145. (displaced_debug_printf_1): Remove.
  2146. (displaced_debug_printf): Use debug_prefixed_printf.
  2147. * linux-nat.c (linux_nat_debug_printf_1): Remove.
  2148. (linux_nat_debug_printf): Use debug_prefixed_printf.
  2149. 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
  2150. * configure: Re-generate.
  2151. * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
  2152. AC_LANG_PROGRAM.
  2153. 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
  2154. * configure: Re-generate.
  2155. 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
  2156. * configure: Re-generate.
  2157. 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
  2158. * configure: Re-generate.
  2159. 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
  2160. * configure: Re-generate.
  2161. 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
  2162. * acinclude.m4: Modernize.
  2163. * configure: Re-generate.
  2164. 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
  2165. * configure.ac: Modernize.
  2166. * configure: Re-generate.
  2167. 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
  2168. * acinclude.m4 (AM_PROG_CC_STDC): Remove.
  2169. * configure: Re-generate.
  2170. * configure.ac: Remove AM_PROG_CC_STDC.
  2171. 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
  2172. * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
  2173. AC_CANONICAL_SYSTEM.
  2174. * configure: Re-generate.
  2175. 2020-10-30 Simon Marchi <simon.marchi@efficios.com>
  2176. * infrun.h (displaced_debug_printf): New macro. Replace
  2177. displaced debug prints throughout to use it.
  2178. (displaced_debug_printf_1): New declaration.
  2179. (displaced_step_dump_bytes): Return string, remove ui_file
  2180. parameter, update all callers.
  2181. * infrun.c (displaced_debug_printf_1): New function.
  2182. (displaced_step_dump_bytes): Return string, remove ui_file
  2183. parameter
  2184. 2020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
  2185. * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
  2186. 2020-10-30 Tom Tromey <tromey@adacore.com>
  2187. * Makefile.in (stamp-init): Depend on config.status.
  2188. 2020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  2189. * infrun.c (fetch_inferior_event): Temporarily disable pagination.
  2190. 2020-10-30 Pedro Alves <pedro@palves.net>
  2191. * thread.c (lookup_selected_frame): Move ...
  2192. * frame.c (lookup_selected_frame): ... here.
  2193. 2020-10-30 Pedro Alves <pedro@palves.net>
  2194. * blockframe.c (block_innermost_frame): Use get_selected_frame.
  2195. * frame.c
  2196. (scoped_restore_selected_frame::scoped_restore_selected_frame):
  2197. Use save_selected_frame. Save language as well.
  2198. (scoped_restore_selected_frame::~scoped_restore_selected_frame):
  2199. Use restore_selected_frame, and restore language as well.
  2200. (selected_frame_id, selected_frame_level): New.
  2201. (selected_frame): Update comments.
  2202. (save_selected_frame, restore_selected_frame): New.
  2203. (get_selected_frame): Use lookup_selected_frame.
  2204. (get_selected_frame_if_set): Delete.
  2205. (select_frame): Record selected_frame_level and selected_frame_id.
  2206. * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
  2207. fields.
  2208. (get_selected_frame): Make 'message' parameter optional.
  2209. (get_selected_frame_if_set): Delete declaration.
  2210. (select_frame): Update comments.
  2211. (save_selected_frame, restore_selected_frame)
  2212. (lookup_selected_frame): Declare.
  2213. * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
  2214. * infrun.c (struct infcall_control_state) <selected_frame_level>:
  2215. New field.
  2216. (save_infcall_control_state): Use save_selected_frame.
  2217. (restore_selected_frame): Delete.
  2218. (restore_infcall_control_state): Use restore_selected_frame.
  2219. * stack.c (select_frame_command_core, frame_command_core): Use
  2220. get_selected_frame.
  2221. * thread.c (restore_selected_frame): Rename to ...
  2222. (lookup_selected_frame): ... this and make extern. Select the
  2223. current frame if the frame level is -1.
  2224. (scoped_restore_current_thread::restore): Also restore the
  2225. language.
  2226. (scoped_restore_current_thread::~scoped_restore_current_thread):
  2227. Don't try/catch.
  2228. (scoped_restore_current_thread::scoped_restore_current_thread):
  2229. Save the language as well. Use save_selected_frame.
  2230. 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
  2231. * gdbarch.sh (displaced_step_hw_singlestep): Adjust
  2232. documentation.
  2233. * gdbarch.h: Re-generate.
  2234. 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
  2235. * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
  2236. parameter.
  2237. * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
  2238. Likewise.
  2239. * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
  2240. Likewise.
  2241. * arch-utils.c (default_displaced_step_hw_singlestep):
  2242. Likewise.
  2243. * arch-utils.h (default_displaced_step_hw_singlestep):
  2244. Likewise.
  2245. * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
  2246. Likewise.
  2247. * s390-tdep.c (s390_displaced_step_hw_singlestep):
  2248. Likewise.
  2249. * gdbarch.c: Re-generate.
  2250. * gdbarch.h: Re-generate.
  2251. * infrun.c (resume_1): Adjust.
  2252. 2020-10-29 Tom Tromey <tom@tromey.com>
  2253. * progspace.c (program_space::~program_space): Don't call
  2254. exec_close.
  2255. 2020-10-29 Tom Tromey <tom@tromey.com>
  2256. * exec.c (exec_target::close): Don't change current program
  2257. space.
  2258. 2020-10-29 Tom Tromey <tom@tromey.com>
  2259. * symfile.c (add_symbol_file_command): Update.
  2260. * exec.c (program_space::add_target_sections): Rename.
  2261. * symfile-mem.c (symbol_file_add_from_memory): Update.
  2262. * progspace.h (struct program_space) <add_target_sections>:
  2263. Declare new overload.
  2264. * exec.h (add_target_sections_of_objfile): Don't declare.
  2265. 2020-10-29 Tom Tromey <tom@tromey.com>
  2266. * solib.c (solib_map_sections): Update.
  2267. * exec.c (program_space::add_target_sections): Now a method.
  2268. (exec_file_attach): Update.
  2269. * exec.h (add_target_sections): Don't declare.
  2270. * progspace.h (struct program_space) <add_target_sections>:
  2271. Declare.
  2272. 2020-10-29 Tom Tromey <tom@tromey.com>
  2273. * progspace.h (struct program_space) <remove_target_sections>:
  2274. Declare.
  2275. * exec.c (program_space::remove_target_sections): Now a method.
  2276. * exec.h (remove_target_sections): Don't declare.
  2277. 2020-10-29 Tom Tromey <tom@tromey.com>
  2278. * inferior.c (delete_inferior): Update.
  2279. * progspace.c (program_space::empty): Rename from
  2280. program_space_empty_p. Return bool.
  2281. * progspace.h (struct program_space) <empty>: New method.
  2282. (program_space_empty_p): Don't declare.
  2283. 2020-10-29 Tom Tromey <tom@tromey.com>
  2284. * progspace.c (program_space::~program_space): Don't call
  2285. clear_program_space_solib_cache.
  2286. (program_space::clear_solib_cache): Rename from
  2287. clear_solib_cache.
  2288. * solib.c (handle_solib_event): Update.
  2289. * progspace.h (struct program_space) <clear_solib_cache>: New
  2290. method.
  2291. (clear_program_space_solib_cache): Don't declare.
  2292. 2020-10-29 Tom Tromey <tom@tromey.com>
  2293. * windows-tdep.c (windows_solib_create_inferior_hook): Update.
  2294. * target.c (info_target_command): Update.
  2295. * symfile.c (syms_from_objfile_1, finish_new_objfile)
  2296. (symbol_file_clear, reread_symbols): Update.
  2297. * symfile-mem.c (add_symbol_file_from_memory_command): Update.
  2298. * stabsread.c (scan_file_globals): Update.
  2299. * solib.c (update_solib_list): Update.
  2300. * solib-svr4.c (elf_locate_base, open_symbol_file_object)
  2301. (svr4_fetch_objfile_link_map, enable_break)
  2302. (svr4_relocate_main_executable)
  2303. (svr4_iterate_over_objfiles_in_search_order): Update.
  2304. * solib-frv.c (lm_base, enable_break)
  2305. (frv_relocate_main_executable): Update.
  2306. (main_got, frv_fdpic_find_canonical_descriptor): Update.
  2307. (frv_fetch_objfile_link_map): Update.
  2308. * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
  2309. * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
  2310. * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
  2311. * remote.c (remote_target::get_offsets): Update.
  2312. (remote_target::start_remote)
  2313. (extended_remote_target::post_attach): Update.
  2314. * objfiles.c (entry_point_address_query): Update.
  2315. * nto-procfs.c (nto_procfs_target::create_inferior): Update.
  2316. * minsyms.c (get_symbol_leading_char): Update.
  2317. * frame.c (inside_main_func): Update.
  2318. * progspace.h (symfile_objfile): Remove macro.
  2319. 2020-10-29 Tom Tromey <tom@tromey.com>
  2320. * exec.c (exec_file_attach): Update.
  2321. * progspace.c (program_space::exec_close): Update.
  2322. * progspace.h (struct program_space) <ebfd>: Now a
  2323. gdb_bfd_ref_ptr.
  2324. <set_exec_bfd>: Change argument type.
  2325. <exec_bfd>: Update.
  2326. 2020-10-29 Tom Tromey <tom@tromey.com>
  2327. * windows-tdep.c (windows_solib_create_inferior_hook): Update.
  2328. * symfile.c (reread_symbols): Update.
  2329. * symfile-mem.c (add_symbol_file_from_memory_command)
  2330. (add_vsyscall_page): Update.
  2331. * source-cache.c (source_cache::get_plain_source_lines): Update.
  2332. * solib-svr4.c (find_program_interpreter, elf_locate_base)
  2333. (svr4_current_sos_direct, svr4_exec_displacement)
  2334. (svr4_relocate_main_executable): Update.
  2335. (svr4_iterate_over_objfiles_in_search_order): Update.
  2336. * solib-frv.c (enable_break2, enable_break): Update.
  2337. * solib-dsbt.c (lm_base, enable_break): Update.
  2338. * solib-darwin.c (find_program_interpreter)
  2339. (darwin_solib_create_inferior_hook): Update.
  2340. * sol-thread.c (rw_common, ps_pdmodel): Update.
  2341. * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
  2342. * remote.c (compare_sections_command)
  2343. (remote_target::trace_set_readonly_regions): Update.
  2344. * remote-sim.c (get_sim_inferior_data)
  2345. (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
  2346. (gdbsim_target_open, gdbsim_target::files_info): Update.
  2347. * exec.h (exec_bfd): Remove macro.
  2348. * progspace.c (initialize_progspace): Update.
  2349. * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
  2350. Update.
  2351. * nto-procfs.c (nto_procfs_target::post_attach)
  2352. (nto_procfs_target::create_inferior): Update.
  2353. * maint.c (maintenance_info_sections): Update.
  2354. * linux-thread-db.c (thread_db_target::get_thread_local_address):
  2355. Update.
  2356. * infcmd.c (post_create_inferior): Update.
  2357. * gcore.c (default_gcore_arch, default_gcore_target): Update.
  2358. (objfile_find_memory_regions): Update.
  2359. * exec.c (validate_exec_file, exec_file_attach)
  2360. (exec_read_partial_read_only, print_section_info): Update.
  2361. * corelow.c (core_target_open): Update.
  2362. * corefile.c (reopen_exec_file, validate_files): Update.
  2363. * arm-tdep.c (gdb_print_insn_arm): Update.
  2364. * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
  2365. * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
  2366. methods.
  2367. 2020-10-29 Tom Tromey <tom@tromey.com>
  2368. * progspace.h (current_target_sections): Remove macro.
  2369. * solib-svr4.c (scan_dyntag): Update.
  2370. * solib-dsbt.c (scan_dyntag): Update.
  2371. * exec.c (exec_target::close): Update.
  2372. (add_target_sections, add_target_sections_of_objfile)
  2373. (remove_target_sections, exec_target::get_section_table)
  2374. (exec_target::files_info, set_section_command)
  2375. (exec_set_section_address, exec_target::has_memory)
  2376. (exec_target::has_memory): Update.
  2377. 2020-10-29 Tom Tromey <tom@tromey.com>
  2378. * source-cache.c (source_cache::get_plain_source_lines): Use
  2379. current_program_space.
  2380. * corefile.c (reopen_exec_file): Use current_program_space.
  2381. * exec.c (exec_file_attach): Use current_program_space.
  2382. * exec.h (exec_bfd_mtime): Remove.
  2383. 2020-10-29 Tom Tromey <tom@tromey.com>
  2384. * gcore.c (default_gcore_mach): Remove.
  2385. (create_gcore_bfd): Update.
  2386. 2020-10-29 Tom Tromey <tom@tromey.com>
  2387. * progspace.c (program_space::exec_close): New method, from
  2388. exec_close in exec.c.
  2389. * exec.c (exec_close): Move to progspace.c.
  2390. (exec_target::close, exec_file_attach): Update.
  2391. * progspace.h (struct program_space) <exec_close>: Declare
  2392. method.
  2393. 2020-10-29 Tom Tromey <tom@tromey.com>
  2394. * progspace.h (struct program_space) <exec_filename>: Rename from
  2395. pspace_exec_filename. Now a unique_xmalloc_ptr.
  2396. * inferior.c (print_selected_inferior): Update.
  2397. (print_inferior): Update.
  2398. * mi/mi-main.c (print_one_inferior): Update.
  2399. * exec.h (exec_filename): Remove macro.
  2400. * corefile.c (get_exec_file): Update.
  2401. * exec.c (exec_close): Update.
  2402. (exec_file_attach): Update.
  2403. * progspace.c (clone_program_space): Update.
  2404. (print_program_space): Update.
  2405. 2020-10-29 Tom Tromey <tom@tromey.com>
  2406. * target-section.h (struct target_section): Add constructor.
  2407. * exec.c (build_section_table, add_target_sections_of_objfile):
  2408. Update.
  2409. * corelow.c (core_target::build_file_mappings): Update.
  2410. 2020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  2411. PR gdb/19318
  2412. * inferior.c (detach_inferior_command): Restore the current thread.
  2413. (kill_inferior_command): Ditto.
  2414. 2020-10-28 Tom de Vries <tdevries@suse.de>
  2415. PR symtab/26772
  2416. * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
  2417. map, check it in the "best match" loop.
  2418. 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
  2419. * m32c-tdep.c: Remove unused includes.
  2420. 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
  2421. * xtensa-tdep.c: Remove includes.
  2422. 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  2423. * breakpoint.c (struct condition_command_opts): New struct.
  2424. (condition_command_option_defs): New static global.
  2425. (make_condition_command_options_def_group): New function.
  2426. (condition_completer): Update to consider the '-force' flag.
  2427. (condition_command): Use gdb::option for the '-force' flag.
  2428. 2020-10-27 Tom de Vries <tdevries@suse.de>
  2429. * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
  2430. symbols in section check.
  2431. 2020-10-27 Tom de Vries <tdevries@suse.de>
  2432. * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
  2433. 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  2434. * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
  2435. * breakpoint.c: Update the help text of the 'condition' and 'break'
  2436. commands.
  2437. (set_breakpoint_condition): Take a new bool parameter
  2438. to control whether condition definition should be forced even when
  2439. the condition expression is invalid in all of the current locations.
  2440. (condition_command): Update the call to 'set_breakpoint_condition'.
  2441. (find_condition_and_thread): Take the "-force-condition" flag into
  2442. account.
  2443. * linespec.c (linespec_keywords): Add "-force-condition" as an
  2444. element.
  2445. (FORCE_KEYWORD_INDEX): New #define.
  2446. (linespec_lexer_lex_keyword): Update to consider "-force-condition"
  2447. as a keyword.
  2448. * ada-lang.c (create_ada_exception_catchpoint): Ditto.
  2449. * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
  2450. * python/py-breakpoint.c (bppy_set_condition): Ditto.
  2451. * NEWS: Mention the changes to the 'break' and 'condition' commands.
  2452. 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  2453. * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
  2454. * breakpoint.c (set_breakpoint_location_condition): New function.
  2455. (set_breakpoint_condition): Disable a breakpoint location if parsing
  2456. the condition string gives an error.
  2457. (should_be_inserted): Update to consider the 'disabled_by_cond' field.
  2458. (build_target_condition_list): Ditto.
  2459. (build_target_command_list): Ditto.
  2460. (build_bpstat_chain): Ditto.
  2461. (print_one_breakpoint_location): Ditto.
  2462. (print_one_breakpoint): Ditto.
  2463. (breakpoint_1): Ditto.
  2464. (bp_location::bp_location): Ditto.
  2465. (locations_are_equal): Ditto.
  2466. (update_breakpoint_locations): Ditto.
  2467. (enable_disable_bp_num_loc): Ditto.
  2468. (init_breakpoint_sal): Use set_breakpoint_location_condition.
  2469. (find_condition_and_thread_for_sals): New static function.
  2470. (create_breakpoint): Call find_condition_and_thread_for_sals.
  2471. (location_to_sals): Call find_condition_and_thread_for_sals instead
  2472. of find_condition_and_thread.
  2473. 2020-10-26 Tom de Vries <tdevries@suse.de>
  2474. * dwarf2/read.c (process_full_comp_unit): Call
  2475. dwarf2_find_base_address.
  2476. 2020-10-26 Tom Tromey <tromey@adacore.com>
  2477. * gdbtypes.c (create_range_type): Revert previous patch. Add
  2478. comment.
  2479. 2020-10-26 Pedro Alves <pedro@palves.net>
  2480. * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
  2481. (my_waitpid): Use gdb::handle_eintr.
  2482. 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
  2483. * acinclude.m4: Update ptrace.m4 path.
  2484. * ptrace.m4: Moved to gdbsupport.
  2485. 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
  2486. * symfile-mem.c (add_vsyscall_page): Use inferior parameter
  2487. instead of target_gdbarch.
  2488. 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
  2489. * jit.c (jit_reader_load_command): Pass current inferior.
  2490. (jit_inferior_init): Change parameter type to inferior, use it.
  2491. (jit_inferior_created): Remove.
  2492. (jit_inferior_created_hook): Pass inferior parameter down.
  2493. (_initialize_jit): Use jit_inferior_created_hook instead of
  2494. jit_inferior_created.
  2495. * jit.h (jit_inferior_created_hook): Add inferior parameter.
  2496. * infrun.c (follow_exec): Pass inferior to
  2497. jit_inferior_created_hook.
  2498. 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
  2499. * linux-thread-db.c (check_pid_namespace_match): Add inferior
  2500. parameter and use it.
  2501. (thread_db_inferior_created): Pass inferior argument.
  2502. 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
  2503. * aix-thread.c (aix_thread_inferior_created): Add inferior
  2504. parameter.
  2505. * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
  2506. * dummy-frame.c (cleanup_dummy_frames): Likewise.
  2507. * jit.c (jit_inferior_created): Likewise.
  2508. * linux-thread-db.c (thread_db_inferior_created): Likewise.
  2509. * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
  2510. * observable.h (inferior_created): Likewise.
  2511. * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
  2512. * symfile-mem.c (add_vsyscall_page): Likewise.
  2513. * infcmd.c (post_create_inferior): Pass inferior argument.
  2514. 2020-10-24 Joel Brobecker <brobecker@adacore.com>
  2515. GDB 10.1 released.
  2516. 2020-10-23 Joel Brobecker <brobecker@adacore.com>
  2517. * ada-typeprint.c (ada_print_type): Remove superfluous second call
  2518. to ada_check_typedef.
  2519. 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
  2520. * f-exp.y (f_parse): Rename to...
  2521. (f_language::parser): ...this.
  2522. * f-lang.c (f_get_encoding): Rename to...
  2523. (f_language::get_encoding): ...this.
  2524. (f_op_print_tab): Rename to...
  2525. (f_language::op_print_tab): ...this.
  2526. (exp_descriptor_f): Rename to...
  2527. (f_language::exp_descriptor_tab): ...this.
  2528. (class f_language): Moved to f-lang.h.
  2529. (f_language::language_arch_info): New function, moved out of class
  2530. declaration.
  2531. (f_language::search_name_hash): Likewise.
  2532. (f_language::lookup_symbol_nonlocal): Likewise.
  2533. (f_language::get_symbol_name_matcher_inner): Likewise.
  2534. * f-lang.h: Add 'valprint.h' include.
  2535. (class f_language): Moved here from f-lang.c.
  2536. * f-typeprint.c (f_type_print_args): Delete commented out
  2537. declaration.
  2538. (f_print_typedef): Rename to...
  2539. (f_language::print_typedef): ...this.
  2540. (f_print_type): Rename to...
  2541. (f_language::print_type): ...this.
  2542. (f_type_print_varspec_prefix): Delete declaration and rename to...
  2543. (f_language::f_type_print_varspec_prefix): ...this.
  2544. (f_type_print_varspec_suffix): Delete declaration and rename to...
  2545. (f_language::f_type_print_varspec_suffix): ...this.
  2546. (f_type_print_base): Delete declaration and rename to...
  2547. (f_language::f_type_print_base): ...this.
  2548. * f-valprint.c (f_value_print_inner): Rename to...
  2549. (f_language::value_print_inner): ...this.
  2550. * parse.c: Delete 'f-lang.h' include.
  2551. 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
  2552. * language.h (language_defn::print_type): Add variable names in
  2553. declaration, and update header comment.
  2554. 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
  2555. * ada-lang.c (ada_language::demangle): Rename to...
  2556. (ada_language::demangle_symbol): ...this.
  2557. * c-lang.c (cplus_language::demangle): Rename to...
  2558. (cplus_language::demangle_symbol): ...this.
  2559. * d-lang.c (d_language::demangle): Rename to...
  2560. (d_language::demangle_symbol): ...this.
  2561. * f-lang.c (f_language::demangle): Rename to...
  2562. (f_language::demangle_symbol): ...this.
  2563. * go-lang.c (go_language::demangle): Rename to...
  2564. (go_language::demangle_symbol): ...this.
  2565. * language.c (language_demangle): Update call to demangle_symbol.
  2566. (auto_or_unknown_language::demangle): Rename to...
  2567. (auto_or_unknown_language::demangle_symbol): ...this.
  2568. * language.h (language_defn::demangle): Rename to...
  2569. (language_defn::demangle_symbol): ...this.
  2570. * objc-lang.c (objc_language::demangle): Rename to...
  2571. (objc_language::demangle_symbol): ...this.
  2572. * rust-lang.c (rust_language::demangle): Rename to...
  2573. (rust_language::demangle_symbol): ...this.
  2574. 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
  2575. * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
  2576. (iterate_over_file_blocks): Replace use of macro with the macros
  2577. definition.
  2578. 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
  2579. * language.h (LA_PRINT_ARRAY_INDEX): Delete.
  2580. * valprint.c (maybe_print_array_index): Replace use of macro with
  2581. the macros definition.
  2582. 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
  2583. * ada-lang.c (ada_language::print_array_index): Call value_print
  2584. directly.
  2585. * language.c (language_defn::print_array_index): Likewise.
  2586. * language.h (LA_VALUE_PRINT): Delete.
  2587. * valprint.c (value_print): Call value_print on the
  2588. current_language directly.
  2589. 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
  2590. * language.h (LA_PRINT_TYPEDEF): Delete.
  2591. * typeprint.c (typedef_print): Call print_typedef directly on the
  2592. current_language object.
  2593. 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
  2594. * m2-exp.y (m2_parse): Rename to...
  2595. (m2_language::parser): ...this. Update function signature.
  2596. * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
  2597. (m2_op_print): Rename to...
  2598. (m2_language::op_print_tab): ...this, and make const.
  2599. (exp_descriptor_modula2): Rename to...
  2600. (m2_language::exp_descriptor_modula2): ...this.
  2601. (class m2_language): Move to m2-lang.h.
  2602. (m2_language::language_arch_info): New function, moved out of
  2603. class declaration.
  2604. (m2_language::printchar): New function, body from m2_printchar.
  2605. (m2_language::printstr): New function, moved out of class
  2606. declaration.
  2607. (m2_language::emitchar): Likewise.
  2608. * m2-lang.h (m2_parse): Delete declaration.
  2609. (m2_print_typedef): Delete declaration.
  2610. (m2_value_print_inner): Delete declaration.
  2611. (class m2_language): Class declaration moved from m2-lang.c,
  2612. larger functions are left in m2-lang.c.
  2613. * m2-typeprint.c (m2_print_typedef): Rename to...
  2614. (m2_language::print_typedef): ...this, and update function
  2615. signature.
  2616. * m2-valprint.c (m2_value_print_inner): Rename to...
  2617. (m2_language::value_print_inner): ...this, replace use of
  2618. LA_PRINT_STRING with a direct call to printstr member function,
  2619. and update recursive call.
  2620. 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
  2621. * language.c (default_is_string_type_p): Delete, implementation
  2622. moved into auto_or_unknown_language::is_string_type_p.
  2623. (unk_op_print_tab): Moved into
  2624. auto_or_unknown_language::opcode_print_table.
  2625. (unknown_language_arch_info): Delete, implementation moved into
  2626. auto_or_unknown_language::language_arch_info.
  2627. (class auto_or_unknown_language): New class, member functions
  2628. copied from unknown_language class, with some updates.
  2629. (class unknown_language): Most member functions moved into
  2630. auto_or_unknown_language class. Inherit from
  2631. auto_or_unknown_language class.
  2632. (class auto_language): Inherit from auto_or_unknown_language.
  2633. Delete most member functions.
  2634. 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
  2635. * stabsread.c (read_member_functions): Remove gdb_assert.
  2636. 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
  2637. * gdbtypes.c (init_complex_type): Check target type name.
  2638. 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
  2639. * target-debug.h (target_debug_print_struct_target_ops_p):
  2640. Remove.
  2641. (target_debug_print_async_callback_ftype_p): Remove.
  2642. (target_debug_print_struct_trace_state_variable_p): Remove.
  2643. (target_debug_print_struct_traceframe_info_p): Remove.
  2644. (target_debug_print_VEC__btrace_block_s__pp): Remove.
  2645. (target_debug_print_enum_btrace_format): Remove.
  2646. (target_debug_print_enum_info_proc_what): Remove.
  2647. (target_debug_print_thread_info_pp): Remove.
  2648. 2020-10-22 Simon Marchi <simon.marchi@efficios.com>
  2649. * target.h (struct target_ops) <make_corefile_notes>:
  2650. Change return type to unique pointer.
  2651. * target.c (dummy_make_corefile_notes): Likewise.
  2652. * exec.c (struct exec_target) <make_corefile_notes>:
  2653. Likewise.
  2654. (exec_target::make_corefile_notes): Likewise.
  2655. * procfs.c (class procfs_target) <make_corefile_notes>:
  2656. Likewise.
  2657. (procfs_do_thread_registers): Adjust to unique pointer.
  2658. (struct procfs_corefile_thread_data): Add constructor.
  2659. <note_data>: Change type to unique pointer.
  2660. (procfs_corefile_thread_callback): Adjust to unique pointer.
  2661. (procfs_target::make_corefile_notes): Change return type to
  2662. unique pointer.
  2663. * target-delegates.c: Re-generate.
  2664. * gcore.c (write_gcore_file_1): Adjust.
  2665. * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
  2666. New.
  2667. 2020-10-22 Tom de Vries <tdevries@suse.de>
  2668. * block.c (find_block_in_blockvector): Make sure the returned block
  2669. contains pc.
  2670. 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
  2671. PR gdb/26693
  2672. * dwarf2/read.c (load_full_comp_unit): Add existing_cu
  2673. parameter.
  2674. (load_cu): Pass existing CU.
  2675. (process_imported_unit_die): Likewise.
  2676. (follow_die_offset): Likewise.
  2677. 2020-10-22 Luis Machado <luis.machado@linaro.org>
  2678. * corelow.c (core_target::xfer_partial): Also check for an empty
  2679. m_core_unavailable_mappings vector.
  2680. 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
  2681. * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
  2682. * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
  2683. * f-exp.y (arglist): Allow for a series of subranges.
  2684. (subrange): Add cases for subranges with strides.
  2685. * f-lang.c (value_f90_subarray): Catch use of array strides and
  2686. throw an error.
  2687. * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
  2688. 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
  2689. * expprint.c (print_subexp_standard): Change enum range_type to
  2690. range_flag and rename variables to match.
  2691. (dump_subexp_body_standard): Likewise.
  2692. * expression.h (enum range_type): Rename to...
  2693. (enum range_flag): ...this.
  2694. (range_types): Rename to...
  2695. (range_flags): ...this.
  2696. * f-lang.c (value_f90_subarray): Change enum range_type to
  2697. range_flag and rename variables to match.
  2698. * parse.c (operator_length_standard): Likewise.
  2699. * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
  2700. range_type to range_flag.
  2701. * rust-lang.c (rust_evaluate_funcall): Likewise.
  2702. (rust_range): Likewise.
  2703. (rust_compute_range): Likewise.
  2704. (rust_subscript): Likewise.
  2705. 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
  2706. * expprint.c (print_subexp_standard): Update to reflect changes to
  2707. enum range_type.
  2708. (dump_subexp_body_standard): Likewise.
  2709. * expression.h (enum range_type): Convert to a bit field enum, and
  2710. make the enum unsigned.
  2711. * f-exp.y (subrange): Update to reflect changes to enum
  2712. range_type.
  2713. * f-lang.c (value_f90_subarray): Likewise.
  2714. * parse.c (operator_length_standard): Likewise.
  2715. * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
  2716. * rust-lang.c (rust_range): Likewise.
  2717. (rust_compute_range): Likewise.
  2718. (rust_subscript): Likewise.
  2719. 2020-10-21 Simon Marchi <simon.marchi@efficios.com>
  2720. * infrun.c (displaced_step_in_progress_thread): Fix comment.
  2721. (displaced_step_in_progress): Fix comment.
  2722. 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
  2723. * gdbarch.sh (make_corefile_notes): Return unique pointer.
  2724. * gdbarch.c: Re-generate.
  2725. * gdbarch.h: Re-generate.
  2726. * gcore.c (write_gcore_file_1): Adjust.
  2727. * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
  2728. constructor.
  2729. <note_data>: Change type to unique pointer.
  2730. <abort_iteration>: Change type to bool.
  2731. (fbsd_collect_regset_section_cb): Adjust to unique pointer.
  2732. (fbsd_collect_thread_registers): Return void, adjust.
  2733. (struct fbsd_corefile_thread_data): Add construtor.
  2734. <note_data>: Change type to unique pointer.
  2735. (fbsd_corefile_thread): Adjust.
  2736. (fbsd_make_corefile_notes): Return unique pointer, adjust.
  2737. * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
  2738. to unique pointer, adjust.
  2739. (struct linux_collect_regset_section_cb_data): Add constructor.
  2740. <note_data>: Change type to unique pointer.
  2741. <abort_iteration>: Change type to bool.
  2742. (linux_collect_thread_registers): Return void, adjust.
  2743. (struct linux_corefile_thread_data): Add constructor.
  2744. <note_data>: Change type to unique pointer.
  2745. (linux_corefile_thread): Adjust.
  2746. (linux_make_corefile_notes): Return unique pointer, adjust.
  2747. 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
  2748. * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
  2749. * gdbarch.c: Re-generate.
  2750. * gdbarch.h: Re-generate.
  2751. * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
  2752. bool.
  2753. * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
  2754. Likewise.
  2755. * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
  2756. * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
  2757. * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
  2758. * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
  2759. 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
  2760. * gdbarch.sh: Make generated predicates return bool.
  2761. * gdbarch.c: Re-generate.
  2762. * gdbarch.h: Re-generate.
  2763. 2020-10-20 Tom Tromey <tom@tromey.com>
  2764. * varobj-iter.h (struct varobj_item): Remove typedef.
  2765. 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
  2766. * infrun.c (currently_stepping): Change int to bool
  2767. (maybe_software_singlestep): Likewise.
  2768. (show_stop_on_solib_events): Likewise.
  2769. (stepping_past_nonsteppable_watchpoint): Likewise.
  2770. (displaced_step_in_progress_any_inferior): Likewise.
  2771. (displaced_step_in_progress_thread): Likewise.
  2772. (keep_going_stepped_thread): Likewise.
  2773. (thread_still_needs_step_over): Likewise.
  2774. (start_step_over): Likewise.
  2775. (do_target_resume): Likewise.
  2776. (resume_1): Likewise.
  2777. (clear_proceed_status): Likewise.
  2778. (thread_still_needs_step_over_bp): Likewise.
  2779. (proceed): Likewise.
  2780. (switch_back_to_stepped_thread): Likewise.
  2781. (adjust_pc_after_break): Likewise.
  2782. (stepped_in_from): Likewise.
  2783. (handle_stop_requested): Likewise.
  2784. (handle_syscall_event): Likewise.
  2785. (handle_no_resumed): Likewise.
  2786. (handle_inferior_event): Likewise.
  2787. (finish_step_over): Likewise.
  2788. (handle_signal_stop): Likewise.
  2789. (process_event_stop_test): Likewise.
  2790. 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
  2791. * infrun.c (get_displaced_stepping_state): Fix comment.
  2792. 2020-10-20 Andreas Schwab <schwab@linux-m68k.org>
  2793. * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
  2794. 2020-10-19 Tom Tromey <tromey@adacore.com>
  2795. PR tui/26719
  2796. * tui/tui-winsource.h (struct tui_source_window_base)
  2797. <refresh_window>: Rename from refresh_pad.
  2798. * tui/tui-winsource.c (tui_source_window_base::refresh_window):
  2799. Rename from refresh_pad.
  2800. (tui_source_window_base::show_source_content)
  2801. (tui_source_window_base::do_scroll_horizontal): Update.
  2802. 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  2803. * thread.c (_initialize_thread): Fine-tune the help text of
  2804. 'info threads'.
  2805. 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  2806. * frame.c: Remove the unused 'uinteger_option_def' type alias.
  2807. 2020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
  2808. * breakpoint.c (handle_jit_event): Add an argument, change how
  2809. `jit_event_handler` is called.
  2810. 2020-10-17 Tom Tromey <tom@tromey.com>
  2811. * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
  2812. (scan_xcoff_symtab): Update.
  2813. * psymtab.h (class psymtab_storage) <global_psymbols,
  2814. static_psymbols, current_global_psymbols,
  2815. current_static_psymbols>: Remove.
  2816. * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
  2817. (match_partial_symbol, lookup_partial_symbol): Update.
  2818. (print_partial_symbols): Change parameters.
  2819. (dump_psymtab, recursively_search_psymtabs)
  2820. (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
  2821. (sort_pst_symbols, partial_symtab::partial_symtab): Update.
  2822. (concat): Remove.
  2823. (end_psymtab_common): Simplify.
  2824. (append_psymbol_to_list): Change parameters.
  2825. (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
  2826. (init_psymbol_list): Simplify.
  2827. (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
  2828. * psympriv.h (struct partial_symtab) <empty>: New method.
  2829. <globals_offset, n_global_syms, statics_offset, n_static_syms>:
  2830. Remove.
  2831. <global_psymbols, static_psymbols>: New members.
  2832. <add_psymbol>: New methods.
  2833. (add_psymbol_to_list): Don't declare.
  2834. (psymbol_placement): Move earlier.
  2835. * mdebugread.c (parse_partial_symbols): Update.
  2836. (handle_psymbol_enumerators): Change parameters.
  2837. (mdebug_expand_psymtab): Update.
  2838. * dwarf2/read.c (process_psymtab_comp_unit_reader)
  2839. (add_partial_symbol): Update.
  2840. * dwarf2/index-write.c (write_psymbols): Change parameters.
  2841. (write_one_signatured_type): Update.
  2842. (recursively_count_psymbols): Update.
  2843. (recursively_write_psymbols): Update.
  2844. (class debug_names) <recursively_write_psymbols>: Update.
  2845. <write_psymbols>: Change parameters.
  2846. <write_one_signatured_type>: Update.
  2847. * dbxread.c (read_dbx_symtab): Update.
  2848. (dbx_end_psymtab): Use partial_symtab::empty.
  2849. * ctfread.c (struct ctf_context) <pst>: New member.
  2850. (create_partial_symtab): Set it.
  2851. (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
  2852. (scan_partial_symbols): Use the psymtab's context. Update.
  2853. 2020-10-17 Tom Tromey <tom@tromey.com>
  2854. * valprint.c (generic_value_print): Remove comment.
  2855. * m2-valprint.c (m2_value_print_inner): Remove comment.
  2856. * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
  2857. type.
  2858. 2020-10-17 Tom de Vries <tdevries@suse.de>
  2859. PR symtab/26317
  2860. * source.c (select_source_symtab): Handling sal.symtab == NULL for
  2861. symbol main.
  2862. 2020-10-14 Tom de Vries <tdevries@suse.de>
  2863. PR gdb/26733
  2864. * solib.c (solib_contains_address_p): Handle
  2865. 'solib->sections == nullptr'.
  2866. 2020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
  2867. PR gdb/26642
  2868. * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
  2869. target can't do async.
  2870. * target.c (target_wait): Assert that we don't pass
  2871. TARGET_WNOHANG to a target that can't async.
  2872. 2020-10-13 Kamil Rytarowski <n54@gmx.com>
  2873. * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
  2874. HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
  2875. * alpha-bsd-nat.c: Adjust include.
  2876. * alpha-bsd-tdep.h: Adjust comment.
  2877. * alpha-nbsd-tdep.c: Rename to ...
  2878. * alpha-netbsd-tdep.c: ... this, adjust include.
  2879. * amd64-nbsd-nat.c: Rename to ...
  2880. * amd64-netbsd-nat.c: ... this, adjust include.
  2881. * amd64-nbsd-tdep.c: Rename to ...
  2882. * amd64-netbsd-tdep.c: ... this, adjust include.
  2883. * amd64-tdep.h: Adjust include.
  2884. * arm-nbsd-nat.c: Rename to ...
  2885. * arm-netbsd-nat.c: ... this, adjust include.
  2886. * arm-nbsd-tdep.c: Rename to ...
  2887. * arm-netbsd-tdep.c: ... this, adjust include.
  2888. * arm-nbsd-tdep.h: Rename to ...
  2889. * arm-netbsd-tdep.h: ... this, adjust include.
  2890. * configure.nat: Adjust file lists.
  2891. * configure.tgt: Likewise.
  2892. * hppa-nbsd-nat.c: Rename to ...
  2893. * hppa-netbsd-nat.c: ... this, adjust include.
  2894. * hppa-nbsd-tdep.c: Rename to ...
  2895. * hppa-netbsd-tdep.c: ... this, adjust include.
  2896. * i386-nbsd-nat.c: Rename to ...
  2897. * i386-netbsd-nat.c: ... this, adjust include.
  2898. * i386-nbsd-tdep.c: Rename to ...
  2899. * i386-netbsd-tdep.c: ... this, adjust include.
  2900. * m68k-bsd-nat.c: Adjust include.
  2901. * mips-nbsd-nat.c: Rename to ...
  2902. * mips-netbsd-nat.c: ... this, adjust include.
  2903. * mips-nbsd-tdep.c: Rename to ...
  2904. * mips-netbsd-tdep.c: ... this, adjust include.
  2905. * mips-nbsd-tdep.h: Rename to ...
  2906. * mips-netbsd-tdep.h: ... this.
  2907. * nbsd-nat.c: Rename to ...
  2908. * netbsd-nat.c: ... this, adjust include.
  2909. * nbsd-nat.h: Rename to ...
  2910. * netbsd-nat.h: ... this, adjust include.
  2911. * nbsd-tdep.c: Rename to ...
  2912. * netbsd-tdep.c: ... this, adjust include.
  2913. * nbsd-tdep.h: Rename to ...
  2914. * netbsd-tdep.h: ... this.
  2915. * ppc-nbsd-nat.c: Rename to ...
  2916. * ppc-netbsd-nat.c: ... this, adjust include.
  2917. * ppc-nbsd-tdep.c: Rename to ...
  2918. * ppc-netbsd-tdep.c: ... this, adjust include and comment.
  2919. * ppc-nbsd-tdep.h: Rename to ...
  2920. * ppc-netbsd-tdep.h: ... this.
  2921. * sh-nbsd-nat.c: Rename to ...
  2922. * sh-netbsd-nat.c: ... this, adjust include.
  2923. * sh-nbsd-tdep.c: Rename to ...
  2924. * sh-netbsd-tdep.c: ... this, adjust include.
  2925. * sparc-nbsd-nat.c: Rename to ...
  2926. * sparc-netbsd-nat.c: ... this.
  2927. * sparc-nbsd-tdep.c: Rename to ...
  2928. * sparc-netbsd-tdep.c: ... this, adjust include.
  2929. * sparc64-nbsd-nat.c: Rename to ...
  2930. * sparc64-netbsd-nat.c: ... this.
  2931. * sparc64-nbsd-tdep.c: Rename to ...
  2932. * sparc64-netbsd-tdep.c: ... this, adjust include.
  2933. * sparc64-tdep.h: Adjust comment.
  2934. * vax-bsd-nat.c: Adjust include.
  2935. * vax-nbsd-tdep.c: Rename to ...
  2936. * vax-netbsd-tdep.c: ... this, adjust include.
  2937. 2020-10-12 Tom Tromey <tom@tromey.com>
  2938. * target.h (struct target_ops) <get_section_table>: Update.
  2939. (target_get_section_table): Update.
  2940. * target.c (target_get_section_table, target_section_by_addr)
  2941. (memory_xfer_partial_1): Update.
  2942. * target-section.h (target_section_table): Now an alias.
  2943. * target-delegates.c: Rebuild.
  2944. * target-debug.h (target_debug_print_target_section_table_p):
  2945. Rename from target_debug_print_struct_target_section_table_p.
  2946. * symfile.c (build_section_addr_info_from_section_table): Update.
  2947. * solib.c (solib_map_sections, solib_contains_address_p): Update.
  2948. * solib-svr4.c (scan_dyntag): Update.
  2949. * solib-dsbt.c (scan_dyntag): Update.
  2950. * remote.c (remote_target::remote_xfer_live_readonly_partial):
  2951. Update.
  2952. * record-full.c (record_full_core_target::xfer_partial): Update.
  2953. * progspace.h (struct program_space) <target_sections>: Update.
  2954. * exec.h (print_section_info): Update.
  2955. * exec.c (exec_target::close, build_section_table)
  2956. (add_target_sections, add_target_sections_of_objfile)
  2957. (remove_target_sections, exec_on_vfork)
  2958. (section_table_available_memory)
  2959. (section_table_xfer_memory_partial)
  2960. (exec_target::get_section_table, exec_target::xfer_partial)
  2961. (print_section_info, set_section_command)
  2962. (exec_set_section_address, exec_target::has_memory): Update.
  2963. * corelow.c (core_target::build_file_mappings)
  2964. (core_target::xfer_partial, core_target::info_proc_mappings)
  2965. (core_target::info_proc_mappings): Update.
  2966. * bfd-target.c (class target_bfd): Update
  2967. 2020-10-12 Tom Tromey <tom@tromey.com>
  2968. * progspace.c (program_space::~program_space): Don't call
  2969. clear_section_table.
  2970. * exec.h (clear_section_table): Don't declare.
  2971. * exec.c (exec_target::close): Update.
  2972. (clear_section_table): Remove.
  2973. 2020-10-12 Tom Tromey <tom@tromey.com>
  2974. * exec.c (add_target_sections_of_objfile): Simplify.
  2975. 2020-10-12 Tom Tromey <tom@tromey.com>
  2976. * solib.c (solib_map_sections): Update.
  2977. * record-full.c (record_full_core_open_1): Update.
  2978. * exec.h (build_section_table): Return a target_section_table.
  2979. * exec.c (exec_file_attach): Update.
  2980. (build_section_table): Return a target_section_table.
  2981. * corelow.c (core_target::core_target): Update.
  2982. * bfd-target.c (target_bfd::target_bfd): Update.
  2983. 2020-10-12 Tom Tromey <tom@tromey.com>
  2984. * target.c (target_section_by_addr, memory_xfer_partial_1):
  2985. Update.
  2986. * target-section.h (struct target_section_table): Use
  2987. std::vector.
  2988. * symfile.h (build_section_addr_info_from_section_table): Take a
  2989. target_section_table.
  2990. * symfile.c (build_section_addr_info_from_section_table): Take a
  2991. target_section_table.
  2992. * solist.h (struct so_list) <sections>: Change type.
  2993. <sections_end>: Remove.
  2994. * solib.c (solib_map_sections, clear_so, solib_read_symbols)
  2995. (solib_contains_address_p): Update.
  2996. * solib-svr4.c (scan_dyntag): Update.
  2997. * solib-dsbt.c (scan_dyntag): Update.
  2998. * remote.c (remote_target::remote_xfer_live_readonly_partial):
  2999. Update.
  3000. * record-full.c (record_full_core_start, record_full_core_end):
  3001. Remove.
  3002. (record_full_core_sections): New global.
  3003. (record_full_core_open_1, record_full_core_target::xfer_partial):
  3004. Update.
  3005. * exec.h (build_section_table, section_table_xfer_memory_partial)
  3006. (add_target_sections): Take a target_section_table.
  3007. * exec.c (exec_file_attach, clear_section_table): Update.
  3008. (resize_section_table): Remove.
  3009. (build_section_table, add_target_sections): Take a
  3010. target_section_table.
  3011. (add_target_sections_of_objfile, remove_target_sections)
  3012. (exec_on_vfork): Update.
  3013. (section_table_available_memory): Take a target_section_table.
  3014. (section_table_read_available_memory): Update.
  3015. (section_table_xfer_memory_partial): Take a target_section_table.
  3016. (print_section_info, set_section_command)
  3017. (exec_set_section_address, exec_target::has_memory): Update.
  3018. * corelow.c (class core_target) <m_core_section_table,
  3019. m_core_file_mappings>: Remove braces.
  3020. <~core_target>: Remove.
  3021. (core_target::core_target): Update.
  3022. (core_target::~core_target): Remove.
  3023. (core_target::build_file_mappings)
  3024. (core_target::xfer_memory_via_mappings)
  3025. (core_target::xfer_partial, core_target::info_proc_mappings):
  3026. Update.
  3027. * bfd-target.c (target_bfd::xfer_partial): Update.
  3028. (target_bfd::target_bfd): Update.
  3029. (target_bfd::~target_bfd): Remove.
  3030. 2020-10-12 Tom Tromey <tom@tromey.com>
  3031. * target.h (struct target_section, struct target_section_table):
  3032. Move to target-section.h.
  3033. * target-section.h: New file.
  3034. 2020-10-12 Pedro Alves <pedro@palves.net>
  3035. PR exp/26602
  3036. * valops.c (struct struct_field_searcher): New.
  3037. (update_search_result): Rename to ...
  3038. (struct_field_searcher::update_result): ... this. Simplify
  3039. prototype. Record all found fields.
  3040. (do_search_struct_field): Rename to ...
  3041. (struct_field_searcher::search): ... this. Simplify prototype.
  3042. Maintain stack of visited baseclass path. Call update_result for
  3043. fields too. Keep searching fields in baseclasses instead of
  3044. stopping at the first found field.
  3045. (search_struct_field): Use struct_field_searcher. When looking
  3046. for fields, report ambiguous access attempts.
  3047. 2020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
  3048. * frame.c (inside_main_func): Check full symbols as well as
  3049. minimal symbols.
  3050. 2020-10-09 Joel Brobecker <brobecker@adacore.com>
  3051. * ada-lang.c (advance_wild_match): Rewrite the function's
  3052. description. Change the type of target0, t0 and t1 to char.
  3053. 2020-10-09 Tom Tromey <tromey@adacore.com>
  3054. * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
  3055. 2020-10-09 Tom Tromey <tromey@adacore.com>
  3056. * ada-lang.h (ada_encode): Return std::string.
  3057. * ada-lang.c (ada_encode_1): Return std::string.
  3058. (ada_encode): Likewise.
  3059. (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
  3060. Update.
  3061. * ada-exp.y (block_lookup, write_var_or_type): Update.
  3062. 2020-10-09 Hannes Domani <ssbssa@yahoo.de>
  3063. PR exp/26714
  3064. * printcmd.c (print_formatted): Handle void results as
  3065. unformatted prints.
  3066. 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
  3067. * arch/aarch32.c (aarch32_create_target_description): Release the
  3068. target_desc_up as late as possible.
  3069. * arch/aarch64.c (aarch64_create_target_description): Likewise.
  3070. * arch/amd64.c (amd64_create_target_description): Likewise.
  3071. * arch/arc.c (arc_create_target_description): Return a
  3072. target_desc_up, don't release it.
  3073. * arch/arc.h (arc_create_target_description): Update declaration.
  3074. (arc_lookup_target_description): Move target_desc_up into the
  3075. cache, and return a borrowed pointer.
  3076. * arch/arm.c (arm_create_target_description): Release the
  3077. target_desc_up as late as possible.
  3078. * arch/i386.c (i386_create_target_description): Likewise.
  3079. * arch/riscv.h (riscv_create_target_description): Update
  3080. declaration to match definition.
  3081. * arch/tic6x.c (tic6x_create_target_description): Release the
  3082. target_desc_up as late as possible.
  3083. 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
  3084. * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
  3085. or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
  3086. 2020-10-09 Jan Vrany <jan.vrany@labware.com>
  3087. * source.c (directory_command): Notify observers that "directories"
  3088. parameter has changed.
  3089. 2020-10-08 Tom Tromey <tom@tromey.com>
  3090. * cli/cli-cmds.c (print_disassembly): Style function name and
  3091. addresses. Add _() wrappers.
  3092. 2020-10-08 Shahab Vahedi <shahab@synopsys.com>
  3093. * NEWS: Mention ARC support in GDBserver.
  3094. 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
  3095. * arch/aarch32.c (aarch32_create_target_description): Release
  3096. unique_ptr returned from allocate_target_description.
  3097. * arch/aarch64.c (aarch64_create_target_description): Likewise.
  3098. * arch/amd64.c (amd64_create_target_description): Likewise.
  3099. * arch/arc.c (arc_create_target_description): Likewise.
  3100. * arch/arm.c (arm_create_target_description): Likewise.
  3101. * arch/i386.c (i386_create_target_description): Likewise.
  3102. * arch/riscv.c (riscv_create_target_description): Update return
  3103. type. Handle allocate_target_description returning a unique_ptr.
  3104. (riscv_lookup_target_description): Update to handle unique_ptr.
  3105. * arch/tic6x.c (tic6x_create_target_description): Release
  3106. unique_ptr returned from allocate_target_description.
  3107. * features/microblaze-with-stack-protect.c: Regenerate.
  3108. * features/microblaze.c: Regenerate.
  3109. * features/mips-dsp-linux.c: Regenerate.
  3110. * features/mips-linux.c: Regenerate.
  3111. * features/mips64-dsp-linux.c: Regenerate.
  3112. * features/mips64-linux.c: Regenerate.
  3113. * features/nds32.c: Regenerate.
  3114. * features/nios2.c: Regenerate.
  3115. * features/or1k.c: Regenerate.
  3116. * features/rs6000/powerpc-32.c: Regenerate.
  3117. * features/rs6000/powerpc-32l.c: Regenerate.
  3118. * features/rs6000/powerpc-403.c: Regenerate.
  3119. * features/rs6000/powerpc-403gc.c: Regenerate.
  3120. * features/rs6000/powerpc-405.c: Regenerate.
  3121. * features/rs6000/powerpc-505.c: Regenerate.
  3122. * features/rs6000/powerpc-601.c: Regenerate.
  3123. * features/rs6000/powerpc-602.c: Regenerate.
  3124. * features/rs6000/powerpc-603.c: Regenerate.
  3125. * features/rs6000/powerpc-604.c: Regenerate.
  3126. * features/rs6000/powerpc-64.c: Regenerate.
  3127. * features/rs6000/powerpc-64l.c: Regenerate.
  3128. * features/rs6000/powerpc-7400.c: Regenerate.
  3129. * features/rs6000/powerpc-750.c: Regenerate.
  3130. * features/rs6000/powerpc-860.c: Regenerate.
  3131. * features/rs6000/powerpc-altivec32.c: Regenerate.
  3132. * features/rs6000/powerpc-altivec32l.c: Regenerate.
  3133. * features/rs6000/powerpc-altivec64.c: Regenerate.
  3134. * features/rs6000/powerpc-altivec64l.c: Regenerate.
  3135. * features/rs6000/powerpc-e500.c: Regenerate.
  3136. * features/rs6000/powerpc-e500l.c: Regenerate.
  3137. * features/rs6000/powerpc-isa205-32l.c: Regenerate.
  3138. * features/rs6000/powerpc-isa205-64l.c: Regenerate.
  3139. * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
  3140. * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
  3141. * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
  3142. * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
  3143. * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
  3144. * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
  3145. * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
  3146. * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
  3147. * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
  3148. * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
  3149. * features/rs6000/powerpc-vsx32.c: Regenerate.
  3150. * features/rs6000/powerpc-vsx32l.c: Regenerate.
  3151. * features/rs6000/powerpc-vsx64.c: Regenerate.
  3152. * features/rs6000/powerpc-vsx64l.c: Regenerate.
  3153. * features/rs6000/rs6000.c: Regenerate.
  3154. * features/rx.c: Regenerate.
  3155. * features/s390-gs-linux64.c: Regenerate.
  3156. * features/s390-linux32.c: Regenerate.
  3157. * features/s390-linux32v1.c: Regenerate.
  3158. * features/s390-linux32v2.c: Regenerate.
  3159. * features/s390-linux64.c: Regenerate.
  3160. * features/s390-linux64v1.c: Regenerate.
  3161. * features/s390-linux64v2.c: Regenerate.
  3162. * features/s390-te-linux64.c: Regenerate.
  3163. * features/s390-tevx-linux64.c: Regenerate.
  3164. * features/s390-vx-linux64.c: Regenerate.
  3165. * features/s390x-gs-linux64.c: Regenerate.
  3166. * features/s390x-linux64.c: Regenerate.
  3167. * features/s390x-linux64v1.c: Regenerate.
  3168. * features/s390x-linux64v2.c: Regenerate.
  3169. * features/s390x-te-linux64.c: Regenerate.
  3170. * features/s390x-tevx-linux64.c: Regenerate.
  3171. * features/s390x-vx-linux64.c: Regenerate.
  3172. * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
  3173. from allocate_target_description.
  3174. * target-descriptions.c (allocate_target_description): Update
  3175. return type.
  3176. (print_c_tdesc::visit_pre): Release unique_ptr returned from
  3177. allocate_target_description.
  3178. 2020-10-07 Tom Tromey <tromey@adacore.com>
  3179. * unittests/search-memory-selftests.c: New file.
  3180. * Makefile.in (SELFTESTS_SRCS): Add
  3181. unittests/search-memory-selftests.c.
  3182. 2020-10-07 Tom Tromey <tromey@adacore.com>
  3183. PR gdb/16930:
  3184. * findcmd.c (_initialize_mem_search): Mention that the range is
  3185. inclusive.
  3186. 2020-10-07 Tom Tromey <tromey@adacore.com>
  3187. * target.h (simple_search_memory): Don't declare.
  3188. * target.c (simple_search_memory): Move to gdbsupport.
  3189. (default_search_memory): Update.
  3190. * remote.c (remote_target::search_memory): Update.
  3191. 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
  3192. * Makefile.in (COMPILE): Add CXXFLAGS.
  3193. (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
  3194. (check-headers): Add CXXFLAGS.
  3195. 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
  3196. * arc-linux-tdep.h: New file.
  3197. * arc-linux-tdep.c (arc_linux_core_reg_offsets,
  3198. arc_linux_supply_gregset, arc_linux_supply_v2_regset,
  3199. arc_linux_collect_gregset, arc_linux_collect_v2_regset,
  3200. arc_linux_gregset, arc_linux_v2_regset,
  3201. arc_linux_iterate_over_regset_sections,
  3202. arc_linux_core_read_description): Implement.
  3203. (arc_linux_init_osabi): Set iterate_over_regset_sections.
  3204. * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
  3205. (arc_gdbarch_features_create): Add.
  3206. * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
  3207. 2020-10-07 Shahab Vahedi <shahab@synopsys.com>
  3208. * arch/arc.h: Rename "arc_gdbarch_features" to
  3209. "arc_arch_features".
  3210. * arc-tdep.h: Likewise.
  3211. * arc-tdep.c: Likewise.
  3212. 2020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  3213. * infcmd.c (attach_command): Remove the redundant call to
  3214. `clear_proceed_status`.
  3215. 2020-10-07 Kamil Rytarowski <n54@gmx.com>
  3216. * nat/netbsd-nat.c (write_memory, read_memory): Update.
  3217. 2020-10-07 Kamil Rytarowski <n54@gmx.com>
  3218. * nat/netbsd-nat.c (write_memory, read_memory): Add.
  3219. * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
  3220. * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
  3221. 2020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
  3222. * break-catch-sig.c (signal_catch_counts): Make a static arrray.
  3223. (_initialize_break_catch_sig): Don't allocate array.
  3224. 2020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
  3225. * symtab.c (find_pc_line): Return unmapped addresses when the
  3226. requested address is also unmapped.
  3227. 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
  3228. * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
  3229. tui/tui-out.h.
  3230. 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
  3231. * amd64-windows-tdep.c (amd64_windows_return_value): Use
  3232. type::is_vector instead of TYPE_VECTOR.
  3233. 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
  3234. * auto-load.c (auto_load_objfile_script_1): Don't use
  3235. debugfile_holder as temporary variable when stripping drive
  3236. letter.
  3237. 2020-10-05 Hannes Domani <ssbssa@yahoo.de>
  3238. * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
  3239. Add TYPE_CODE_COMPLEX.
  3240. (amd64_windows_return_value): Fix types returned via XMM0.
  3241. 2020-10-05 Alan Hayward <alan.hayward@arm.com>
  3242. * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
  3243. AArch64/ARM maintainers.
  3244. 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
  3245. * NEWS: Mention set/show debug event-loop.
  3246. 2020-10-02 Tom Tromey <tromey@adacore.com>
  3247. * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
  3248. REG_EXTENDED.
  3249. 2020-10-02 Simon Marchi <simon.marchi@efficios.com>
  3250. * aix-thread.c (aix_thread_inferior_created): Remove parameters.
  3251. * procfs.c (procfs_inferior_created): Remove.
  3252. (_initialize_procfs): Don't register procfs_inferior_created.
  3253. 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
  3254. * async-event.c (invoke_async_signal_handlers): Add debug
  3255. print.
  3256. (check_async_event_handlers): Likewise.
  3257. * event-top.c (show_debug_event_loop): New function.
  3258. (_initialize_event_top): Register "set debug event-loop"
  3259. setting.
  3260. 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
  3261. * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
  3262. * debug.h: Remove.
  3263. * infrun.c: Include gdbsupport/common-debug.h.
  3264. * linux-nat.c: Likewise.
  3265. 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
  3266. * async-event.h (create_async_signal_handler): Add name
  3267. parameter.
  3268. (create_async_event_handler): Likewise.
  3269. * async-event.c (struct async_signal_handler) <name>: New field.
  3270. (struct async_event_handler) <name>: New field.
  3271. (create_async_signal_handler): Assign name.
  3272. (create_async_event_handler): Assign name.
  3273. * event-top.c (async_init_signals): Pass name when creating
  3274. handler.
  3275. * infrun.c (_initialize_infrun): Likewise.
  3276. * record-btrace.c (record_btrace_push_target): Likewise.
  3277. * record-full.c (record_full_open): Likewise.
  3278. * remote-notif.c (remote_notif_state_allocate): Likewise.
  3279. * remote.c (remote_target::open_1): Likewise.
  3280. * tui/tui-win.c (tui_initialize_win): Likewise.
  3281. 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
  3282. * async-event.c (initialize_async_signal_handlers): Pass name to
  3283. add_file_handler
  3284. * event-top.c (ui_register_input_event_handler): Likewise.
  3285. * linux-nat.c (linux_nat_target::async): Likewise.
  3286. * run-on-main-thread.c (_initialize_run_on_main_thread):
  3287. Likewise
  3288. * ser-base.c (reschedule): Likewise.
  3289. (ser_base_async): Likewise.
  3290. * tui/tui-io.c: Likewise.
  3291. * top.h (struct ui) <num>: New field.
  3292. * top.c (highest_ui_num): New variable.
  3293. (ui::ui): Initialize num.
  3294. 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
  3295. * observable.h <inferior_created>: Remove parameters. Update all
  3296. listeners.
  3297. * inferior.h (post_create_inferior): Remove target parameter.
  3298. Update all callers.
  3299. 2020-10-02 Nitika Achra <Nitika.Achra@amd.com>
  3300. * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
  3301. and DW_MACRO_undef_strx.
  3302. (dwarf_decode_macros): Likewise
  3303. * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
  3304. which is the value of DW_AT_str_offsets_base.
  3305. * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
  3306. str_offsets_base.
  3307. 2020-10-01 Kamil Rytarowski <n54@gmx.com>
  3308. * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
  3309. 2020-10-01 Kamil Rytarowski <n54@gmx.com>
  3310. * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
  3311. * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
  3312. 2020-10-01 Kamil Rytarowski <n54@gmx.com>
  3313. * i386-bsd-nat.c: Include "x86-bsd-nat.h".
  3314. 2020-09-30 Tom de Vries <tdevries@suse.de>
  3315. PR symtab/26683
  3316. * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
  3317. 2020-09-30 Tom Tromey <tromey@adacore.com>
  3318. * dwarf2/read.c (handle_variant): Use constant_value.
  3319. 2020-09-29 Tom Tromey <tom@tromey.com>
  3320. * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
  3321. (read_file_scope, dwarf2_get_pc_bounds)
  3322. (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
  3323. (read_structure_type, handle_struct_member_die)
  3324. (read_enumeration_type, read_array_type, read_set_type)
  3325. (read_tag_pointer_type, read_tag_reference_type)
  3326. (read_subroutine_type, read_base_type, read_subrange_type)
  3327. (read_full_die_1, partial_die_info::read)
  3328. (partial_die_info::read, by, new_symbol)
  3329. (dwarf2_const_value_data, dwarf2_const_value_attr)
  3330. (dump_die_shallow, dwarf2_fetch_constant_bytes)
  3331. (prepare_one_comp_unit): Update.
  3332. * dwarf2/attribute.h (DW_UNSND): Remove.
  3333. 2020-09-29 Tom Tromey <tom@tromey.com>
  3334. * dwarf2/read.c (read_func_scope, prototyped_function_p)
  3335. (read_subroutine_type, partial_die_info::read)
  3336. (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
  3337. (dwarf2_add_member_fn): Update.
  3338. * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
  3339. * dwarf2/attribute.c (attribute::as_boolean): New method.
  3340. 2020-09-29 Tom Tromey <tom@tromey.com>
  3341. * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
  3342. * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
  3343. method.
  3344. * dwarf2/attribute.c (attribute::as_virtuality): New method.
  3345. 2020-09-29 Tom Tromey <tom@tromey.com>
  3346. * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
  3347. the attribute's form.
  3348. 2020-09-29 Tom Tromey <tom@tromey.com>
  3349. * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
  3350. (dwarf2_add_member_fn): Update.
  3351. * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
  3352. * dwarf2/attribute.c (attribute::defaulted): New method, from
  3353. is_valid_DW_AT_defaulted.
  3354. 2020-09-29 Tom Tromey <tom@tromey.com>
  3355. * dwarf2/read.c (dw2_get_file_names_reader)
  3356. (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
  3357. (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
  3358. (dwarf2_symbol_mark_computed): Use as_unsigned.
  3359. * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
  3360. method.
  3361. <form_is_section_offset>: Update comment.
  3362. 2020-09-29 Tom Tromey <tom@tromey.com>
  3363. * dwarf2/read.c (dwarf2_access_attribute): Rename from
  3364. dwarf2_default_access_attribute. Look up attribute.
  3365. (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
  3366. Update.
  3367. 2020-09-29 Tom Tromey <tom@tromey.com>
  3368. * dwarf2/read.c (skip_one_die): Update.
  3369. (read_full_die_1): Change how reprocessing is done.
  3370. (partial_die_info::read): Update.
  3371. (read_attribute_value): Remove need_reprocess parameter.
  3372. (read_attribute): Likewise.
  3373. * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
  3374. New method.
  3375. 2020-09-29 Tom Tromey <tom@tromey.com>
  3376. * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
  3377. (dwarf2_const_value_attr, dump_die_shallow)
  3378. (dwarf2_fetch_constant_bytes): Update.
  3379. * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
  3380. comment.
  3381. <set_address>: New method.
  3382. (DW_ADDR): Remove.
  3383. * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
  3384. (attribute::as_string, attribute::as_address): Add assert.
  3385. 2020-09-29 Tom Tromey <tom@tromey.com>
  3386. * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
  3387. (read_attribute_reprocess, read_attribute_value): Update.
  3388. (read_attribute): Clear requires_reprocessing.
  3389. * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
  3390. form_requires_reprocessing>: New methods.
  3391. <string_init>: Clear requires_reprocessing.
  3392. <set_unsigned_reprocess>: New method.
  3393. <name>: Shrink by one bit.
  3394. <requires_reprocessing>: New member.
  3395. * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
  3396. method.
  3397. 2020-09-29 Tom Tromey <tom@tromey.com>
  3398. * dwarf2/read.c (read_attribute_value): Update.
  3399. * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
  3400. set_unsigned>: New methods.
  3401. * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
  3402. 2020-09-29 Tom Tromey <tom@tromey.com>
  3403. * dwarf2/read.c (get_alignment, read_array_order)
  3404. (read_attribute_value, dwarf2_const_value_attr)
  3405. (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
  3406. * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
  3407. New methods.
  3408. (DW_SND): Remove.
  3409. 2020-09-29 Tom Tromey <tom@tromey.com>
  3410. * dwarf2/read.c (read_attribute_value, lookup_die_type)
  3411. (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
  3412. Update.
  3413. * dwarf2/attribute.h (struct attribute) <as_signature,
  3414. set_signature>: New methods.
  3415. (DW_SIGNATURE): Remove.
  3416. 2020-09-29 Tom Tromey <tom@tromey.com>
  3417. * dwarf2/read.c (read_call_site_scope)
  3418. (handle_data_member_location, dwarf2_add_member_fn)
  3419. (mark_common_block_symbol_computed, attr_to_dynamic_prop)
  3420. (partial_die_info::read, read_attribute_value)
  3421. (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
  3422. (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
  3423. (dwarf2_symbol_mark_computed): Update.
  3424. * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
  3425. methods.
  3426. (DW_BLOCK): Remove.
  3427. * dwarf2/attribute.c (attribute::form_is_block): Add
  3428. DW_FORM_data16.
  3429. 2020-09-29 Tom Tromey <tom@tromey.com>
  3430. * dwarf2/read.c (read_cutu_die_from_dwo)
  3431. (read_attribute_reprocess, read_attribute_value, read_attribute)
  3432. (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
  3433. (dwarf2_fetch_constant_bytes): Update.
  3434. * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
  3435. <set_string_noncanonical, set_string_canonical>: New methods.
  3436. <string_is_canonical>: Update comment.
  3437. <canonical_string_p>: Add assert.
  3438. (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
  3439. * dwarf2/attribute.c (attribute::form_is_string): New method.
  3440. (attribute::string): Use it.
  3441. 2020-09-29 Tom Tromey <tom@tromey.com>
  3442. * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
  3443. (dump_die_shallow): Use canonical_string_p.
  3444. * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
  3445. method.
  3446. 2020-09-29 Tom Tromey <tom@tromey.com>
  3447. * dwarf2/read.c (partial_die_info::read)
  3448. (dwarf2_const_value_attr, anonymous_struct_prefix, )
  3449. (dwarf2_name, dwarf2_fetch_constant_bytes): Use
  3450. attribute::as_string.
  3451. 2020-09-29 Tom Tromey <tom@tromey.com>
  3452. * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
  3453. DW_ADDR.
  3454. (attribute::string): Don't use DW_STRING.
  3455. (attribute::get_ref_die_offset): Don't use DW_UNSND.
  3456. (attribute::constant_value): Don't use DW_UNSND or DW_SND.
  3457. 2020-09-29 Tom Tromey <tom@tromey.com>
  3458. * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
  3459. (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
  3460. (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
  3461. * dwarf2/attribute.h (struct attribute): Rename methods.
  3462. * dwarf2/attribute.c (attribute::as_address): Rename from
  3463. value_as_address.
  3464. (attribute::as_string): Rename from value_as_string.
  3465. 2020-09-29 Tom Tromey <tom@tromey.com>
  3466. * dwarf2/read.c (partial_die_info::read) <case
  3467. DW_AT_linkage_name>: Use value_as_string.
  3468. (dwarf2_string_attr): Use value_as_string.
  3469. * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
  3470. method.
  3471. * dwarf2/attribute.c (attribute::value_as_string): New method.
  3472. 2020-09-29 Pedro Alves <pedro@palves.net>
  3473. * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
  3474. defined before using '#pragma GCC diagnostic' instead of checking
  3475. __clang__.
  3476. 2020-09-28 Tom Tromey <tom@tromey.com>
  3477. * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
  3478. (handle_signal_stop): Update.
  3479. * procfs.c (procfs_target::insert_watchpoint): Update.
  3480. * target.h (target_have_steppable_watchpoint): Now a function.
  3481. 2020-09-28 Tom Tromey <tom@tromey.com>
  3482. * infrun.c (set_schedlock_func): Update.
  3483. * target.h (target_can_lock_scheduler): Now a function.
  3484. 2020-09-28 Tom Tromey <tom@tromey.com>
  3485. * inferior.h (class inferior) <has_execution>: Update.
  3486. * windows-tdep.c (windows_solib_create_inferior_hook): Update.
  3487. * valops.c (find_function_in_inferior)
  3488. (value_allocate_space_in_inferior): Update.
  3489. * top.c (kill_or_detach): Update.
  3490. * target.c (target_preopen, set_target_permissions): Update.
  3491. (target_has_execution_current): Remove.
  3492. * sparc64-tdep.c (adi_examine_command, adi_assign_command):
  3493. Update.
  3494. * solib.c (update_solib_list, reload_shared_libraries): Update.
  3495. * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
  3496. * solib-dsbt.c (enable_break): Update.
  3497. * score-tdep.c (score7_fetch_inst): Update.
  3498. * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
  3499. Update.
  3500. * remote.c (remote_target::start_remote)
  3501. (remote_target::remote_check_symbols, remote_target::open_1)
  3502. (remote_target::remote_detach_1, remote_target::verify_memory)
  3503. (remote_target::xfer_partial, remote_target::read_description)
  3504. (remote_target::get_min_fast_tracepoint_insn_len): Update.
  3505. * record-full.c (record_full_open_1): Update.
  3506. * record-btrace.c (record_btrace_target_open): Update.
  3507. * objc-lang.c (lookup_objc_class, lookup_child_selector)
  3508. (value_nsstring): Update.
  3509. * linux-thread-db.c (add_thread_db_info)
  3510. (thread_db_find_new_threads_silently, check_thread_db_callback)
  3511. (try_thread_db_load_1, record_thread): Update.
  3512. * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
  3513. Update.
  3514. * linux-fork.c (checkpoint_command): Update.
  3515. * infrun.c (set_non_stop, set_observer_mode)
  3516. (check_multi_target_resumption, for_each_just_stopped_thread)
  3517. (maybe_remove_breakpoints, normal_stop)
  3518. (class infcall_suspend_state): Update.
  3519. * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
  3520. (info_program_command, attach_command): Update.
  3521. * infcall.c (call_function_by_hand_dummy): Update.
  3522. * inf-loop.c (inferior_event_handler): Update.
  3523. * gcore.c (gcore_command, derive_heap_segment): Update.
  3524. * exec.c (exec_file_command): Update.
  3525. * eval.c (evaluate_subexp): Update.
  3526. * compile/compile.c (compile_to_object): Update.
  3527. * cli/cli-dump.c (restore_command): Update.
  3528. * breakpoint.c (update_watchpoint)
  3529. (update_inserted_breakpoint_locations)
  3530. (insert_breakpoint_locations, get_bpstat_thread): Update.
  3531. * target.h (target_has_execution): Remove macro.
  3532. (target_has_execution_current): Don't declare.
  3533. (target_has_execution): Rename from target_has_execution_1. Add
  3534. argument default.
  3535. 2020-09-28 Tom Tromey <tom@tromey.com>
  3536. * mi/mi-main.c (exec_reverse_continue)
  3537. (mi_cmd_list_target_features): Update.
  3538. * infrun.c (set_exec_direction_func): Update.
  3539. * target.c (default_execution_direction): Update.
  3540. * reverse.c (exec_reverse_once): Update.
  3541. * target.h (target_can_execute_reverse): Now a function.
  3542. 2020-09-28 Tom Tromey <tom@tromey.com>
  3543. * tui/tui-regs.c (tui_get_register)
  3544. (tui_data_window::show_registers): Update.
  3545. * thread.c (scoped_restore_current_thread::restore)
  3546. (scoped_restore_current_thread::scoped_restore_current_thread):
  3547. Update.
  3548. * regcache-dump.c (regcache_print): Update.
  3549. * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
  3550. Update.
  3551. * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
  3552. * mep-tdep.c (current_me_module, current_options): Update.
  3553. * linux-thread-db.c (thread_db_load): Update.
  3554. * infcmd.c (registers_info, info_vector_command)
  3555. (info_float_command): Update.
  3556. * ia64-tdep.c (ia64_frame_prev_register)
  3557. (ia64_sigtramp_frame_prev_register): Update.
  3558. * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
  3559. * gcore.c (derive_stack_segment): Update.
  3560. * frame.c (get_current_frame, has_stack_frames): Update.
  3561. * findvar.c (language_defn::read_var_value): Update.
  3562. * arm-tdep.c (arm_pc_is_thumb): Update.
  3563. * target.c (target_has_registers): Rename from
  3564. target_has_registers_1.
  3565. * target.h (target_has_registers): Remove macro.
  3566. (target_has_registers): Rename from target_has_registers_1.
  3567. 2020-09-28 Tom Tromey <tom@tromey.com>
  3568. * windows-tdep.c (tlb_make_value): Update.
  3569. * tui/tui-regs.c (tui_data_window::show_registers): Update.
  3570. * thread.c (scoped_restore_current_thread::restore)
  3571. (scoped_restore_current_thread::scoped_restore_current_thread)
  3572. (thread_command): Update.
  3573. * stack.c (backtrace_command_1, frame_apply_level_command)
  3574. (frame_apply_all_command, frame_apply_command): Update.
  3575. * infrun.c (siginfo_make_value, restore_infcall_control_state):
  3576. Update.
  3577. * gcore.c (derive_stack_segment): Update.
  3578. * frame.c (get_current_frame, has_stack_frames): Update.
  3579. * auxv.c (info_auxv_command): Update.
  3580. * ada-tasks.c (ada_build_task_list): Update.
  3581. * target.c (target_has_stack): Rename from target_has_stack_1.
  3582. * target.h (target_has_stack): Remove macro.
  3583. (target_has_stack): Rename from target_has_stack_1.
  3584. 2020-09-28 Tom Tromey <tom@tromey.com>
  3585. * target.c (target_has_memory): Rename from target_has_memory_1.
  3586. * tui/tui-regs.c (tui_data_window::show_registers): Update.
  3587. * thread.c (scoped_restore_current_thread::restore)
  3588. (scoped_restore_current_thread::scoped_restore_current_thread):
  3589. Update.
  3590. * frame.c (get_current_frame, has_stack_frames): Update.
  3591. * target.h (target_has_memory): Remove macro.
  3592. (target_has_memory): Rename from target_has_memory_1.
  3593. 2020-09-28 Tom Tromey <tom@tromey.com>
  3594. * target.c (target_has_all_memory_1): Remove.
  3595. * target.h (target_has_all_memory): Remove define.
  3596. (target_has_all_memory_1): Don't declare.
  3597. 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
  3598. * ser-base.c: Adjust comments formatting.
  3599. 2020-09-27 Tom Tromey <tom@tromey.com>
  3600. PR tui/25342:
  3601. * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
  3602. 2020-09-27 Tom Tromey <tom@tromey.com>
  3603. PR tui/25342:
  3604. * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
  3605. 2020-09-27 Tom Tromey <tom@tromey.com>
  3606. * unittests/tui-selftests.c: Update.
  3607. * tui/tui-winsource.h (struct tui_source_window_base)
  3608. <extra_margin, show_line_number, refresh_pad>: New methods.
  3609. <m_max_length, m_pad>: New members.
  3610. (tui_copy_source_line): Update.
  3611. * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
  3612. first_col, line_width, ndigits parameters. Add length.
  3613. (tui_source_window_base::show_source_line): Write to pad. Line
  3614. number now 0-based.
  3615. (tui_source_window_base::refresh_pad): New method.
  3616. (tui_source_window_base::show_source_content): Write to pad. Call
  3617. refresh_pad.
  3618. (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
  3619. not refill.
  3620. (tui_source_window_base::update_exec_info): Call
  3621. show_line_number.
  3622. * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
  3623. method.
  3624. <m_digits>: New member.
  3625. * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
  3626. and m_max_length.
  3627. (tui_source_window::show_line_number): New method.
  3628. * tui/tui-io.h (tui_puts): Fix comment.
  3629. * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
  3630. m_max_length.
  3631. 2020-09-27 Tom Tromey <tom@tromey.com>
  3632. * tui/tui-winsource.c
  3633. (tui_source_window_base::set_is_exec_point_at): Don't call
  3634. show_source_line.
  3635. 2020-09-27 Tom Tromey <tom@tromey.com>
  3636. * python/py-tui.c (class tui_py_window) <refresh_window>: New
  3637. method.
  3638. <erase>: Update.
  3639. <cursor_x, cursor_y>: Remove.
  3640. <m_inner_window>: New member.
  3641. (tui_py_window::rerender): Create inner window.
  3642. (tui_py_window::output): Write to inner window.
  3643. 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
  3644. PR python/26586
  3645. * cli/cli-script.c (execute_control_commands): don't set
  3646. instream to nullptr here as this breaks the from_tty argument
  3647. to gdb.execute in Python.
  3648. (execute_user_command): set instream to nullptr here instead.
  3649. 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
  3650. * infrun.h (infrun_debug_printf): Fix formatting.
  3651. * linux-nat.c (linux_nat_debug_printf): Fix formatting.
  3652. 2020-09-25 Saagar Jha <saagar@saagarjha.com>
  3653. * compile/compile-object-load.h (struct munmap_list): Add
  3654. explicitly-defined move constructor.
  3655. 2020-09-24 Tom Tromey <tromey@adacore.com>
  3656. PR tui/26638:
  3657. * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
  3658. method.
  3659. * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
  3660. * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
  3661. (tui_prev_win): Rewrite.
  3662. 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
  3663. * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
  3664. in WOW64 processes as SIGINT.
  3665. * nat/windows-nat.h: Make wow64_process a shared variable.
  3666. * windows-nat.c: Remove static wow64_process variable.
  3667. 2020-09-23 Tom Tromey <tom@tromey.com>
  3668. PR symtab/25470:
  3669. * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
  3670. offset and bit size.
  3671. * printcmd.c (print_scalar_formatted): Handle zero-length
  3672. integer.
  3673. (print_scalar_formatted): Use bit_size_differs_p.
  3674. * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
  3675. constant.
  3676. (union type_specific): <int_stuff>: New member.
  3677. (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
  3678. methods.
  3679. * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
  3680. TYPE_SPECIFIC_FIELD.
  3681. (recursive_dump_type, copy_type_recursive): Update.
  3682. * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
  3683. DW_AT_data_bit_offset.
  3684. 2020-09-23 Tom Tromey <tom@tromey.com>
  3685. * utils.h (class gdb_argv): Add move operators.
  3686. <append>: New methods.
  3687. * compile/compile.c (build_argc_argv): Remove.
  3688. (compile_args_argc): Remove.
  3689. (compile_args_argv): Change type.
  3690. (set_compile_args): Simplify.
  3691. (append_args): Remove.
  3692. (filter_args): Remove argcp parameter.
  3693. (get_args): Return gdb_argv. Simplify.
  3694. (compile_to_object): Update.
  3695. 2020-09-23 Tom Tromey <tom@tromey.com>
  3696. * compile/compile-object-run.c (do_module_cleanup)
  3697. <~do_module_cleanup> :Remove.
  3698. (do_module_cleanup): Update.
  3699. * compile/compile-object-load.h (struct munmap_list): Add move
  3700. assignment operator.
  3701. <source_file>: Now a std::string.
  3702. <munmap_list>: Rename. No longer a pointer.
  3703. * compile/compile-object-load.c (struct setup_sections_data): Add
  3704. constructor.
  3705. <setup_one_section>: Declare.
  3706. <munmap_list>: Move earlier.
  3707. <m_bfd>: New member.
  3708. <m_last_size, m_last_section_first, m_last_prot,
  3709. m_last_max_alignment>: Rename, add initializers where needed.
  3710. (setup_sections_data::setup_one_section): Rename from
  3711. setup_sections. Update.
  3712. (compile_object_load): Update. Don't use bfd_map_over_sections.
  3713. 2020-09-23 Tom Tromey <tom@tromey.com>
  3714. * compile/compile-object-run.c (struct do_module_cleanup): Add
  3715. parameters to constructor. Update destructor.
  3716. <source_file, scope, scope_data, out_value_type, out_value_addr,
  3717. munmap_list_head, objfile_name_string>: Remove.
  3718. <module>: New member.
  3719. (do_module_cleanup): Update.
  3720. (compile_object_run): Update.
  3721. 2020-09-23 Tom Tromey <tom@tromey.com>
  3722. * compile/compile.c (eval_compile_command): Update.
  3723. * compile/compile-object-run.h (compile_object_run): Take a
  3724. compile_module_up.
  3725. * compile/compile-object-run.c (compile_object_run): Take a
  3726. compile_module_up.
  3727. * compile/compile-object-load.h (struct compile_module): Add
  3728. constructor, destructor.
  3729. (compile_module_up): New typedef.
  3730. (compile_object_load): Return compile_object_up.
  3731. * compile/compile-object-load.c (compile_object_load): Return
  3732. compile_module_up.
  3733. 2020-09-23 Tom Tromey <tom@tromey.com>
  3734. * compile/compile-object-run.c (struct do_module_cleanup): Add
  3735. constructor, destructor.
  3736. <objfile_name_string>: Don't use struct hack.
  3737. (do_module_cleanup): Use delete.
  3738. (compile_object_run): Use new.
  3739. 2020-09-23 Tom Tromey <tom@tromey.com>
  3740. * compile/compile-cplus-types.c
  3741. (compile_cplus_convert_struct_or_union): Use std::vector.
  3742. (compile_cplus_convert_func): Likewise.
  3743. * compile/compile-c-types.c (convert_func): Use std::vector.
  3744. 2020-09-21 Tom Tromey <tromey@adacore.com>
  3745. * sparc-tdep.c (sparc32_skip_prologue): Use
  3746. skip_prologue_using_sal.
  3747. 2020-09-19 Tom Tromey <tom@tromey.com>
  3748. * symfile.c (add_section_size_callback): Remove.
  3749. (load_one_section): Rename from load_section_callback. Change
  3750. parameters.
  3751. (generic_load): Use foreach.
  3752. 2020-09-19 Tom Tromey <tom@tromey.com>
  3753. * exec.c (add_to_section_table): Remove.
  3754. (build_section_table): Use foreach.
  3755. 2020-09-19 Tom Tromey <tom@tromey.com>
  3756. * elfread.c (elf_locate_sections): Change parameters.
  3757. (elf_symfile_read): Use foreach.
  3758. 2020-09-19 Tom Tromey <tom@tromey.com>
  3759. * cli/cli-dump.c (struct callback_data): Remove.
  3760. (restore_one_section): Rename from restore_section_callback.
  3761. Change parameters.
  3762. (restore_binary_file): Change parameters.
  3763. (restore_command): Use foreach.
  3764. 2020-09-19 Tom Tromey <tom@tromey.com>
  3765. * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
  3766. (gcore_copy_callback): Likewise.
  3767. (gcore_memory_sections): Use foreach.
  3768. 2020-09-19 Tom Tromey <tom@tromey.com>
  3769. * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
  3770. * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
  3771. parameters.
  3772. (generic_elf_osabi_sniffer): Use foreach.
  3773. * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
  3774. * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
  3775. 2020-09-19 Tom Tromey <tom@tromey.com>
  3776. * dwarf2/read.c (locate_dwz_sections): Change parameters.
  3777. (dwarf2_get_dwz_file): Use foreach.
  3778. (dwarf2_locate_dwo_sections): Change parameters.
  3779. (open_and_init_dwo_file): Use foreach.
  3780. (dwarf2_locate_common_dwp_sections): Change parameters.
  3781. (open_and_init_dwp_file): Use foreach.
  3782. 2020-09-19 Tom Tromey <tom@tromey.com>
  3783. * symfile.h: (find_lowest_section): Don't declare.
  3784. * symfile.c (find_lowest_section): Now static. Change
  3785. parameters.
  3786. (struct place_section_arg): Remove.
  3787. (place_section): Change parameters.
  3788. (addr_info_make_relative): Use foreach.
  3789. (symfile_dummy_outputs): Remove.
  3790. (default_symfile_relocate): Use foreach.
  3791. 2020-09-19 Tom Tromey <tom@tromey.com>
  3792. * objfiles.c (add_to_objfile_sections): Rename from
  3793. add_to_objfile_sections_full.
  3794. (add_to_objfile_sections): Remove.
  3795. (build_objfile_section_table): Use foreach.
  3796. 2020-09-19 Tom Tromey <tom@tromey.com>
  3797. * stap-probe.c (get_stap_base_address_1): Remove.
  3798. (get_stap_base_address): Use foreach.
  3799. 2020-09-19 Tom Tromey <tom@tromey.com>
  3800. * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
  3801. parameters.
  3802. (gdb_bfd_close_or_warn): Use foreach.
  3803. 2020-09-19 Tom Tromey <tom@tromey.com>
  3804. * corelow.c (add_to_thread_list): Change parameters.
  3805. (core_target_open): Use foreach.
  3806. 2020-09-19 Tom Tromey <tom@tromey.com>
  3807. * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
  3808. existing function.
  3809. 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
  3810. * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
  3811. for arrays.
  3812. 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
  3813. * eval.c: Remove 'f-lang.h' include.
  3814. (value_f90_subarray): Moved to f-lang.c.
  3815. (eval_call): Renamed to...
  3816. (evaluate_subexp_do_call): ...this, is no longer static, header
  3817. comment moved into header file.
  3818. (evaluate_funcall): Update call to eval_call.
  3819. (skip_undetermined_arglist): Moved to f-lang.c.
  3820. (fortran_value_subarray): Likewise.
  3821. (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
  3822. moved to evaluate_subexp_f.
  3823. (calc_f77_array_dims): Moved to f-lang.c
  3824. * expprint.c (print_subexp_funcall): New function.
  3825. (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
  3826. moved to print_subexp_f, OP_FUNCALL uses new function.
  3827. (dump_subexp_body_funcall): New function.
  3828. (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
  3829. moved to dump_subexp_f, OP_FUNCALL uses new function.
  3830. * expression.h (evaluate_subexp_do_call): Declare.
  3831. * f-lang.c (value_f90_subarray): Moved from eval.c.
  3832. (skip_undetermined_arglist): Likewise.
  3833. (calc_f77_array_dims): Likewise.
  3834. (fortran_value_subarray): Likewise.
  3835. (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
  3836. (operator_length_f): Likewise.
  3837. (print_subexp_f): Likewise.
  3838. (dump_subexp_body_f): Likewise.
  3839. * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
  3840. declaration of this operation to here.
  3841. * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
  3842. support moved to operator_length_f.
  3843. * parser-defs.h (dump_subexp_body_funcall): Declare.
  3844. (print_subexp_funcall): Declare.
  3845. * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
  3846. fortran-operator.def.
  3847. 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
  3848. * eval.c (fortran_value_subarray): New function, content is taken
  3849. from...
  3850. (evaluate_subexp_standard): ...here, in two places. Now arrays
  3851. and strings both call the new function.
  3852. (calc_f77_array_dims): Add header comment, handle strings.
  3853. 2020-09-18 Victor Collod <vcollod@nvidia.com>
  3854. PR gdb/26635
  3855. * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
  3856. (i386_analyze_prologue): Call i386_skip_endbr.
  3857. 2020-09-18 Tom Tromey <tromey@adacore.com>
  3858. * windows-nat.c (struct windows_nat_target) <wait>: Update.
  3859. (windows_nat_target::wait): Update.
  3860. * target/wait.h (enum target_wait_flag): New. Use
  3861. DEF_ENUM_FLAGS_TYPE.
  3862. * target/target.h (target_wait): Change type of options.
  3863. * target.h (target_options_to_string, default_target_wait):
  3864. Update.
  3865. (struct target_ops) <wait>: Change type of options.
  3866. * target.c (target_wait, default_target_wait, do_option): Change
  3867. type of "options".
  3868. (target_options_to_string): Likewise.
  3869. * target-delegates.c: Rebuild.
  3870. * target-debug.h (target_debug_print_target_wait_flags): Rename
  3871. from target_debug_print_options.
  3872. * sol-thread.c (class sol_thread_target) <wait>: Update.
  3873. (sol_thread_target::wait): Update.
  3874. * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
  3875. (rs6000_nat_target::wait): Update.
  3876. * remote.c (class remote_target) <wait, wait_ns, wait_as>:
  3877. Update.
  3878. (remote_target::wait_ns, remote_target::wait_as): Change type of
  3879. "options".
  3880. (remote_target::wait): Update.
  3881. * remote-sim.c (struct gdbsim_target) <wait>: Update.
  3882. (gdbsim_target::wait): Update.
  3883. * record-full.c (class record_full_base_target) <wait>: Update.
  3884. (record_full_wait_1): Change type of "options".
  3885. (record_full_base_target::wait): Update.
  3886. * record-btrace.c (class record_btrace_target) <wait>: Update.
  3887. (record_btrace_target::wait): Update.
  3888. * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
  3889. Update.
  3890. (ravenscar_thread_target::wait): Update.
  3891. * procfs.c (class procfs_target) <wait>: Update.
  3892. (procfs_target::wait): Update.
  3893. * obsd-nat.h (class obsd_nat_target) <wait>: Update.
  3894. * obsd-nat.c (obsd_nat_target::wait): Update.
  3895. * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
  3896. (nto_procfs_target::wait): Update.
  3897. * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
  3898. * nbsd-nat.c (nbsd_wait): Change type of "options".
  3899. (nbsd_nat_target::wait): Update.
  3900. * linux-thread-db.c (class thread_db_target) <wait>: Update.
  3901. (thread_db_target::wait): Update.
  3902. * linux-nat.h (class linux_nat_target) <wait>: Update.
  3903. * linux-nat.c (linux_nat_target::wait): Update.
  3904. (linux_nat_wait_1): Update.
  3905. * infrun.c (do_target_wait_1, do_target_wait): Change type of
  3906. "options".
  3907. * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
  3908. * inf-ptrace.c (inf_ptrace_target::wait): Update.
  3909. * go32-nat.c (struct go32_nat_target) <wait>: Update.
  3910. (go32_nat_target::wait): Update.
  3911. * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
  3912. * gnu-nat.c (gnu_nat_target::wait): Update.
  3913. * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
  3914. * fbsd-nat.c (fbsd_nat_target::wait): Update.
  3915. * darwin-nat.h (class darwin_nat_target) <wait>: Update.
  3916. * darwin-nat.c (darwin_nat_target::wait): Update.
  3917. * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
  3918. (bsd_uthread_target::wait): Update.
  3919. * aix-thread.c (class aix_thread_target) <wait>: Update.
  3920. (aix_thread_target::wait): Update.
  3921. 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
  3922. * compile/compile-object-run.c (create_copied_type_recursive): New
  3923. function.
  3924. (compile_object_run): Use new function.
  3925. 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
  3926. * NEWS: Mention x86_64 Cygwin core file support.
  3927. 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
  3928. * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
  3929. (core_process_module_section): Handle NOTE_INFO_MODULE64.
  3930. 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
  3931. * windows-tdep.h: Add prototypes.
  3932. * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
  3933. (i386_windows_core_pid_to_str): Move and rename ...
  3934. * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
  3935. (windows_core_pid_to_str): ... and here.
  3936. * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
  3937. 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
  3938. * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
  3939. (amd64_windows_init_abi_common): ... and register.
  3940. 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
  3941. * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
  3942. (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
  3943. 2020-09-18 Pedro Alves <pedro@palves.net>
  3944. PR gdb/26631
  3945. * thread.c (thread_find_command): Switch inferior before calling
  3946. target methods.
  3947. 2020-09-17 Tom Tromey <tromey@adacore.com>
  3948. * tic6x-tdep.c (tic6x_gdbarch_init): Update.
  3949. * target-descriptions.h (struct tdesc_arch_data_deleter): New.
  3950. (tdesc_arch_data_up): New typedef.
  3951. (tdesc_use_registers, tdesc_data_alloc): Update.
  3952. (tdesc_data_cleanup): Don't declare.
  3953. * target-descriptions.c (tdesc_data_alloc): Return a
  3954. tdesc_arch_data_up.
  3955. (tdesc_arch_data_deleter::operator()): Rename from
  3956. tdesc_data_cleanup. Change argument type.
  3957. (tdesc_use_registers): Change early_data to an rvalue reference.
  3958. (tdesc_use_registers): Don't use delete.
  3959. * sparc-tdep.c (sparc32_gdbarch_init): Update.
  3960. * s390-tdep.c (s390_gdbarch_init): Update.
  3961. * rx-tdep.c (rx_gdbarch_init): Update.
  3962. * rs6000-tdep.c (rs6000_gdbarch_init): Update.
  3963. * riscv-tdep.c (riscv_gdbarch_init): Update.
  3964. * or1k-tdep.c (or1k_gdbarch_init): Update.
  3965. * nios2-tdep.c (nios2_gdbarch_init): Update.
  3966. * nds32-tdep.c (nds32_gdbarch_init): Update.
  3967. * mips-tdep.c (mips_gdbarch_init): Update.
  3968. * microblaze-tdep.c (microblaze_gdbarch_init): Update.
  3969. * m68k-tdep.c (m68k_gdbarch_init): Update.
  3970. * i386-tdep.c (i386_gdbarch_init): Update.
  3971. * arm-tdep.c (arm_gdbarch_init): Update.
  3972. * arc-tdep.c (arc_tdesc_init): Update.
  3973. (arc_gdbarch_init): Update.
  3974. * aarch64-tdep.c (aarch64_gdbarch_init): Update.
  3975. 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
  3976. * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
  3977. for WOW64 processes.
  3978. 2020-09-17 Tom Tromey <tom@tromey.com>
  3979. * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
  3980. 2020-09-17 Tom Tromey <tom@tromey.com>
  3981. * value.c (preserve_values): Update.
  3982. * python/py-type.c (save_objfile_types): Update.
  3983. * guile/scm-type.c (save_objfile_types): Update.
  3984. * gdbtypes.h (create_copied_types_hash): Return htab_up.
  3985. * gdbtypes.c (create_copied_types_hash): Return htab_up.
  3986. * compile/compile-object-run.c (compile_object_run): Update.
  3987. 2020-09-17 Tom Tromey <tom@tromey.com>
  3988. * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
  3989. Remove.
  3990. <m_table>: Now htab_up.
  3991. * typeprint.c (typedef_hash_table::recursively_update)
  3992. (typedef_hash_table::add_template_parameters)
  3993. (typedef_hash_table::typedef_hash_table): Update.
  3994. (typedef_hash_table::~typedef_hash_table): Remove.
  3995. (typedef_hash_table::typedef_hash_table)
  3996. (typedef_hash_table::find_global_typedef)
  3997. (typedef_hash_table::find_typedef): Update.
  3998. 2020-09-17 Tom Tromey <tom@tromey.com>
  3999. * target-descriptions.c (tdesc_use_registers): Use htab_up.
  4000. 2020-09-17 Tom Tromey <tom@tromey.com>
  4001. * linespec.c (class decode_compound_collector)
  4002. <~decode_compound_collector>: Remove.
  4003. <m_unique_syms>: Now htab_up.
  4004. (decode_compound_collector::operator ()): Update.
  4005. (class symtab_collector) <~symtab_collector>: Remove.
  4006. <m_symtab_table>: Now htab_up.
  4007. (symtab_collector::operator ()): Update.
  4008. 2020-09-17 Tom Tromey <tom@tromey.com>
  4009. * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
  4010. (filename_seen_cache::clear): Update.
  4011. (~filename_seen_cache): Remove.
  4012. (filename_seen_cache::seen): Update.
  4013. * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
  4014. htab_up.
  4015. <~filename_seen_cache>: Remove.
  4016. <traverse>: Update.
  4017. 2020-09-17 Tom Tromey <tom@tromey.com>
  4018. * completer.c (completion_tracker::discard_completions)
  4019. (completion_tracker::~completion_tracker)
  4020. (completion_tracker::maybe_add_completion)
  4021. (completion_tracker::remove_completion)
  4022. (completion_tracker::recompute_lowest_common_denominator)
  4023. (completion_tracker::build_completion_result): Update.
  4024. * completer.h (class completion_tracker) <have_completions>:
  4025. Update.
  4026. <m_entries_hash>: Now htab_up.
  4027. 2020-09-17 Tom Tromey <tom@tromey.com>
  4028. * breakpoint.c (ambiguous_names_p): Use htab_up.
  4029. 2020-09-17 Tom Tromey <tom@tromey.com>
  4030. * auto-load.c (struct auto_load_pspace_info)
  4031. <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
  4032. <loaded_script_files, loaded_script_texts>: Change type to
  4033. htab_up.
  4034. (~auto_load_pspace_info) Remove.
  4035. (init_loaded_scripts_info, maybe_add_script_file)
  4036. (maybe_add_script_text, auto_load_info_scripts): Update.
  4037. 2020-09-17 Tom Tromey <tromey@adacore.com>
  4038. * c-exp.y (name_obstack): Now static.
  4039. 2020-09-17 Chungyi Chi <demonic@csie.io>
  4040. * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
  4041. 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
  4042. * breakpoint.h (init_catchpoint): Change int parameter to bool.
  4043. (add_solib_catchpoint): Likewise.
  4044. * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
  4045. to bool.
  4046. (add_solib_catchpoint): Change int parameter/variable to bool.
  4047. (catch_load_or_unload): Likewise.
  4048. (init_catchpoint): Likewise.
  4049. (create_fork_vfork_event_catchpoint): Likewise.
  4050. (catch_fork_command_1): Likewise.
  4051. (catch_exec_command_1): Likewise.
  4052. 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
  4053. * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
  4054. Change instance_flags to m_instance_flags.
  4055. 2020-09-16 Tom Tromey <tromey@adacore.com>
  4056. PR gdb/26598:
  4057. * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
  4058. 2020-09-16 John Baldwin <jhb@FreeBSD.org>
  4059. * fbsd-nat.c (fbsd_nat_target::wait): Always check for
  4060. PL_FLAG_EXEC.
  4061. (fbsd_nat_target::insert_exec_catchpoint)
  4062. (fbsd_nat_target::remove_exec_catchpoint): Always define.
  4063. * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
  4064. (fbsd_nat_target::remove_exec_catchpoint): Always declare.
  4065. 2020-09-16 John Baldwin <jhb@FreeBSD.org>
  4066. * configure.ac: Remove check for kinfo_getvmmap().
  4067. * configure, config.in: Regenerate.
  4068. * fbsd-nat.c (fbsd_read_mapping): Remove
  4069. (fbsd_nat_target::find_memory_regions): Remove the procfs version.
  4070. (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
  4071. kinfo_get_vmmap() are always present.
  4072. 2020-09-16 John Baldwin <jhb@FreeBSD.org>
  4073. * fbsd-nat.c: Always include support for
  4074. TARGET_OBJECT_SIGNAL_INFO.
  4075. 2020-09-16 John Baldwin <jhb@FreeBSD.org>
  4076. * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
  4077. sysctl and remove procfs fallback.
  4078. 2020-09-16 John Baldwin <jhb@FreeBSD.org>
  4079. * fbsd-nat.c: Assume PT_LWPINFO is always defined.
  4080. * fbsd-nat.h: Likewise.
  4081. 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  4082. * breakpoint.c (commands_command_1): Make a copy of the 'arg'
  4083. argument.
  4084. 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
  4085. * ada-lang.c (ada_language_data): Delete.
  4086. (ada_language): Remove references to ada_language_data.
  4087. * c-lang.c (c_language_data): Delete.
  4088. (c_language): Remove references to c_language_data.
  4089. (cplus_language_data): Delete.
  4090. (cplus_language): Remove references to cplus_language_data.
  4091. (asm_language_data): Delete.
  4092. (asm_language): Remove references to asm_language_data.
  4093. (minimal_language_data): Delete.
  4094. (minimal_language): Remove references to minimal_language_data.
  4095. * d-lang.c (d_language_data): Delete.
  4096. (d_language): Remove references to d_language_data.
  4097. * f-lang.c (f_language_data): Delete.
  4098. (f_language): Remove references to f_language_data.
  4099. * go-lang.c (go_language_data): Delete.
  4100. (go_language): Remove references to go_language_data.
  4101. * language.c (unknown_language_data): Delete.
  4102. (unknown_language): Remove references to unknown_language_data.
  4103. (auto_language_data): Delete.
  4104. (auto_language): Remove references to auto_language_data.
  4105. * language.h (language_data): Delete struct.
  4106. (language_defn): No longer inherit from language_data.
  4107. * m2-lang.c (m2_language_data): Delete.
  4108. (m2_language): Remove references to m2_language_data.
  4109. * objc-lang.c (objc_language_data): Delete.
  4110. (objc_language): Remove references to objc_language_data.
  4111. * opencl-lang.c (opencl_language_data): Delete.
  4112. (opencl_language): Remove references to opencl_language_data.
  4113. * p-lang.c (pascal_language_data): Delete.
  4114. (pascal_language): Remove references to pascal_language_data.
  4115. * rust-lang.c (rust_language_data): Delete.
  4116. (rust_language): Remove references to rust_language_data.
  4117. 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
  4118. * ada-lang.c (ada_language_data): Remove la_op_print_tab
  4119. initializer.
  4120. (ada_language::opcode_print_table): New member function.
  4121. * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
  4122. (c_language::opcode_print_table): New member function.
  4123. (cplus_language_data): Remove la_op_print_tab initializer.
  4124. (cplus_language::opcode_print_table): New member function.
  4125. (asm_language_data): Remove la_op_print_tab initializer.
  4126. (asm_language::opcode_print_table): New member function.
  4127. (minimal_language_data): Remove la_op_print_tab initializer.
  4128. (minimal_language::opcode_print_table): New member function.
  4129. * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
  4130. (d_language::opcode_print_table): New member function.
  4131. * expprint.c (print_subexp_standard): Update call to
  4132. opcode_print_table.
  4133. (op_string): Likewise.
  4134. * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
  4135. (f_language::opcode_print_table): New member function.
  4136. * go-lang.c (go_language_data): Remove la_op_print_tab
  4137. initializer.
  4138. (go_language::opcode_print_table): New member function.
  4139. * language.c (unknown_language_data): Remove la_op_print_tab
  4140. initializer.
  4141. (unknown_language::opcode_print_table): New member function.
  4142. (auto_language_data): Remove la_op_print_tab initializer.
  4143. (auto_language::opcode_print_table): New member function.
  4144. * language.h (language_data): Remove la_op_print_tab field.
  4145. (language_defn::opcode_print_table): Declare new member function.
  4146. * m2-lang.c (m2_language_data): Remove la_op_print_tab
  4147. initializer.
  4148. (m2_language::opcode_print_table): New member function.
  4149. * objc-lang.c (objc_language_data): Remove la_op_print_tab
  4150. initializer.
  4151. (objc_language::opcode_print_table): New member function.
  4152. * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
  4153. initializer.
  4154. (opencl_language::opcode_print_table): New member function.
  4155. * p-lang.c (pascal_language_data): Remove la_op_print_tab
  4156. initializer.
  4157. (pascal_language::opcode_print_table): New member function.
  4158. * rust-lang.c (rust_language_data): Remove la_op_print_tab
  4159. initializer.
  4160. (rust_language::opcode_print_table): New member function.
  4161. 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
  4162. * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
  4163. (ada_language::expression_ops): New member function.
  4164. * c-lang.c (c_language_data): Remove la_exp_desc initializer.
  4165. (c_language::expression_ops): New member function.
  4166. (cplus_language_data): Remove la_exp_desc initializer.
  4167. (cplus_language::expression_ops): New member function.
  4168. (asm_language_data): Remove la_exp_desc initializer.
  4169. (asm_language::expression_ops): New member function.
  4170. (minimal_language_data): Remove la_exp_desc initializer.
  4171. (minimal_language::expression_ops): New member function.
  4172. * d-lang.c (d_language_data): Remove la_exp_desc initializer.
  4173. (d_language::expression_ops): New member function.
  4174. * eval.c (evaluate_subexp): Update call to expression_ops.
  4175. * expprint.c (print_subexp): Likewise.
  4176. (op_name): Likewise.
  4177. (dump_subexp_body): Likewise.
  4178. * f-lang.c (f_language_data): Remove la_exp_desc initializer.
  4179. (f_language::expression_ops): New member function.
  4180. * go-lang.c (go_language_data): Remove la_exp_desc initializer.
  4181. (go_language::expression_ops): New member function.
  4182. * language.c (language_defn::expression_ops): New function.
  4183. (unknown_language_data): Remove la_exp_desc initializer.
  4184. (auto_language_data): Likewise.
  4185. * language.h (language_data): Remove la_exp_desc field.
  4186. (language_defn::expression_ops): Declare new member function.
  4187. * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
  4188. (m2_language::expression_ops): New member function.
  4189. * objc-lang.c (objc_language_data): Remove la_exp_desc
  4190. initializer.
  4191. * opencl-lang.c (opencl_language_data): Remove la_exp_desc
  4192. initializer.
  4193. (opencl_language::expression_ops): New member function.
  4194. * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
  4195. * parse.c (operator_length): Update call to expression_ops.
  4196. (exp_iterate): Likewise.
  4197. * rust-lang.c (rust_language_data): Remove la_exp_desc
  4198. initializer.
  4199. (ruse_language::expression_ops): New member function.
  4200. 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
  4201. * ada-lang.c (ada_language_data): Remove la_varobj_ops
  4202. initializer.
  4203. (ada_language::varobj_ops): New member function.
  4204. * c-lang.c (c_language_data): Remove la_varobj_ops
  4205. initializer.
  4206. (cplus_language_data): Likewise.
  4207. (cplus_language::varobj_ops): New member function.
  4208. (asm_language_data): Remove la_varobj_ops initializer.
  4209. (minimal_language_data): Likewise.
  4210. * d-lang.c (d_language_data): Likewise.
  4211. * f-lang.c (f_language_data): Likewise.
  4212. * go-lang.c (go_language_data): Likewise.
  4213. * language.c (language_defn::varobj_ops): New function.
  4214. (unknown_language_data): Remove la_varobj_ops
  4215. initializer.
  4216. (auto_language_data): Likewise.
  4217. * language.h (language_data): Remove la_varobj_ops field.
  4218. (language_defn::varobj_ops): Declare new member function.
  4219. * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
  4220. * objc-lang.c (objc_language_data): Likewise.
  4221. * opencl-lang.c (opencl_language_data): Likewise.
  4222. * p-lang.c (pascal_language_data): Likewise.
  4223. * rust-lang.c (rust_language_data): Likewise.
  4224. * varobj.c (varobj_create): Update call to varobj_ops.
  4225. * varobj.h (default_varobj_ops): Delete define.
  4226. 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
  4227. * ada-lang.c (ada_language_data): Remove la_macro_expansion
  4228. initializer.
  4229. * c-lang.c (c_language_data): Likewise.
  4230. (c_language::macro_expansion): New member function.
  4231. (cplus_language_data): Likewise.
  4232. (cplus_language::macro_expansion): New member function.
  4233. (asm_language_data): Likewise.
  4234. (asm_language::macro_expansion): New member function.
  4235. (minimal_language_data): Likewise.
  4236. (minimal_language::macro_expansion): New member function.
  4237. * d-lang.c (d_language_data): Remove la_macro_expansion
  4238. initializer.
  4239. * f-lang.c (f_language_data): Likewise.
  4240. * go-lang.c (go_language_data): Likewise.
  4241. * language.c (unknown_language_data): Likewise.
  4242. (auto_language_data): Likewise.
  4243. * language.h (language_data): Remove la_macro_expansion field.
  4244. (language_defn::macro_expansion): New member function.
  4245. * m2-lang.c (m2_language_data): Remove la_macro_expansion
  4246. initializer.
  4247. * objc-lang.c (objc_language_data): Likewise.
  4248. (objc_language::macro_expansion): New member function.
  4249. * opencl-lang.c (opencl_language_data): Likewise.
  4250. (opencl_language::macro_expansion): New member function.
  4251. * p-lang.c (pascal_language_data): Remove la_macro_expansion
  4252. initializer.
  4253. * rust-lang.c (rust_language_data): Likewise.
  4254. * symtab.c (default_collect_symbol_completion_matches_break_on):
  4255. Update call to macro_expansion.
  4256. 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
  4257. * ada-lang.c (ada_language_data): Remove la_array_ordering
  4258. initializer.
  4259. * c-lang.c (c_language_data): Likewise.
  4260. (cplus_language_data): Likewise.
  4261. (asm_language_data): Likewise.
  4262. (minimal_language_data): Likewise.
  4263. * d-lang.c (d_language_data): Likewise.
  4264. * dwarf2/read.c (read_array_order): Update for call to
  4265. array_ordering.
  4266. * f-lang.c (f_language_data): Remove la_array_ordering
  4267. initializer.
  4268. (f_language::array_ordering): New member function.
  4269. * go-lang.c (go_language_data): Remove la_array_ordering
  4270. initializer.
  4271. * language.c (unknown_language_data): Likewise.
  4272. (auto_language_data): Likewise.
  4273. * language.h (language_data): Delete la_array_ordering field.
  4274. (language_defn::array_ordering): New member function.
  4275. * m2-lang.c (m2_language_data): Remove la_array_ordering
  4276. initializer.
  4277. * objc-lang.c (objc_language_data): Likewise.
  4278. * opencl-lang.c (opencl_language_data): Likewise.
  4279. * p-lang.c (pascal_language_data): Likewise.
  4280. * rust-lang.c (rust_language_data): Likewise.
  4281. 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
  4282. * ada-lang.c (ada_language_data): Remove la_case_sensitivity
  4283. initializer.
  4284. * c-lang.c (c_language_data): Likewise.
  4285. (cplus_language_data): Likewise.
  4286. (asm_language_data): Likewise.
  4287. (minimal_language_data): Likewise.
  4288. * d-lang.c (d_language_data): Likewise.
  4289. * f-lang.c (f_language_data): Likewise.
  4290. (f_language::case_sensitivity): New member function.
  4291. * go-lang.c (go_language_data): Remove la_case_sensitivity
  4292. initializer.
  4293. * language.c (enum case_mode): Moved here from language.h.
  4294. (case_mode): Make static.
  4295. (show_case_command): Update for case_sensitivity being a method.
  4296. (set_case_command): Likewise.
  4297. (set_range_case): Likewise.
  4298. (unknown_language_data): Remove la_case_sensitivity initializer.
  4299. (auto_language_data): Likewise.
  4300. * language.h (case_mode): Delete, move enum declaration to
  4301. language.c.
  4302. (language_data): Delete la_case_sensitivity field.
  4303. (language_defn::case_sensitivity): New member function.
  4304. * m2-lang.c (m2_language_data): Remove la_case_sensitivity
  4305. initializer.
  4306. * objc-lang.c (objc_language_data): Likewise.
  4307. * opencl-lang.c (opencl_language_data): Likewise.
  4308. * p-lang.c (pascal_language_data): Likewise.
  4309. * rust-lang.c (rust_language_data): Likewise.
  4310. 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
  4311. * ada-lang.c (ada_language_data): Remove la_range_check
  4312. initializer.
  4313. * c-lang.c (c_language_data): Likewise.
  4314. (cplus_language_data): Likewise.
  4315. (asm_language_data): Likewise.
  4316. (minimal_language_data): Likewise.
  4317. * d-lang.c (d_language_data): Likewise.
  4318. * f-lang.c (f_language_data): Likewise.
  4319. (f_language::range_checking_on_by_default): New member function.
  4320. * go-lang.c (go_language_data): Remove la_range_check initializer.
  4321. * language.c (enum range_mode): Moved here from language.h.
  4322. (range_mode): Made static.
  4323. (show_range_command): Update to use
  4324. range_checking_on_by_default.
  4325. (set_range_command): Likewise.
  4326. (set_range_case): Likewise.
  4327. (unknown_language_data): Remove la_range_check initializer.
  4328. (auto_language_data): Likewise.
  4329. * language.h (range_mode): Delete. Enum definition moved to
  4330. language.c.
  4331. (language_data): Remove la_range_check field.
  4332. (language_defn::range_checking_on_by_default): New member
  4333. function.
  4334. * m2-lang.c (m2_language_data): Remove la_range_check initializer.
  4335. (m2_language::range_checking_on_by_default): New member function.
  4336. * objc-lang.c (objc_language_data): Remove la_range_check
  4337. initializer.
  4338. * opencl-lang.c (opencl_language_data): Likewise.
  4339. * p-lang.c (pascal_language_data): Likewise.
  4340. (pascal_language::range_checking_on_by_default): New member
  4341. function.
  4342. * rust-lang.c (rust_language_data): Remove la_range_check
  4343. initializer.
  4344. (rust_language::range_checking_on_by_default): New member
  4345. function.
  4346. 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
  4347. * dwarf2/read.c (dwarf2_physname): Remove special case for
  4348. language_go.
  4349. * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
  4350. member function.
  4351. 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
  4352. * ada-lang.c (ada_language_data): Remove
  4353. la_store_sym_names_in_linkage_form_p initializer.
  4354. (ada_language::store_sym_names_in_linkage_form_p): New member
  4355. function.
  4356. * c-lang.c (c_language_data): Remove
  4357. la_store_sym_names_in_linkage_form_p initializer.
  4358. (c_language::store_sym_names_in_linkage_form_p): New member
  4359. function.
  4360. (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
  4361. initializer.
  4362. (asm_language_data): Likewise.
  4363. (asm_language::store_sym_names_in_linkage_form_p): New member
  4364. function.
  4365. (minimal_language_data): Remove
  4366. la_store_sym_names_in_linkage_form_p initializer.
  4367. (minimal_language::store_sym_names_in_linkage_form_p): New member
  4368. function.
  4369. * d-lang.c (d_language_data): Remove
  4370. la_store_sym_names_in_linkage_form_p initializer.
  4371. * dwarf2/read.c (dwarf2_physname): Update call to
  4372. store_sym_names_in_linkage_form_p.
  4373. * f-lang.c (f_language_data): Remove
  4374. la_store_sym_names_in_linkage_form_p initializer.
  4375. * go-lang.c (go_language_data): Remove
  4376. la_store_sym_names_in_linkage_form_p initializer.
  4377. * language.c (unknown_language_data): Remove
  4378. la_store_sym_names_in_linkage_form_p initializer.
  4379. (unknown_language::store_sym_names_in_linkage_form_p): New member
  4380. function.
  4381. (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
  4382. initializer.
  4383. (auto_language::store_sym_names_in_linkage_form_p): New member
  4384. function.
  4385. * language.h (language_data): Remove
  4386. la_store_sym_names_in_linkage_form_p member variable.
  4387. (language_defn::store_sym_names_in_linkage_form_p): New member
  4388. function.
  4389. * m2-lang.c (m2_language_data): Remove
  4390. la_store_sym_names_in_linkage_form_p initializer.
  4391. * objc-lang.c (objc_language_data): Likewise.
  4392. * opencl-lang.c (opencl_language_data): Likewise.
  4393. * p-lang.c (pascal_language_data): Likewise.
  4394. * rust-lang.c (rust_language_data): Likewise.
  4395. 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
  4396. * ada-lang.c (ada_language_data): Remove string_lower_bound
  4397. initializer.
  4398. * c-lang.c (c_language_data): Likewise.
  4399. (cplus_language_data): Likewise.
  4400. (asm_language_data): Likewise.
  4401. (minimal_language_data): Likewise.
  4402. * d-lang.c (d_language_data): Likewise.
  4403. * f-lang.c (f_language_data): Likewise.
  4404. * go-lang.c (go_language_data): Likewise.
  4405. * language.c (unknown_language_data): Likewise.
  4406. (auto_language_data): Likewise.
  4407. * language.h (language_data): Remove string_lower_bound field.
  4408. (language_defn::string_lower_bound): New member function.
  4409. * m2-lang.c (m2_language_data): Remove string_lower_bound
  4410. initializer.
  4411. (m2_language::string_lower_bound): New member function.
  4412. * objc-lang.c (objc_language_data): Remove string_lower_bound
  4413. initializer.
  4414. * opencl-lang.c (opencl_language_data): Likewise.
  4415. * p-lang.c (pascal_language_data): Likewise.
  4416. * rust-lang.c (rust_language_data): Likewise.
  4417. * valops.c (value_cstring): Update call to string_lower_bound.
  4418. (value_string): Likewise.
  4419. * value.c (allocate_repeated_value): Likewise.
  4420. 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
  4421. * valops.c (value_repeat): Fix incorrect argument name in comment.
  4422. 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
  4423. * ada-lang.c (ada_language_data): Remove c_style_arrays
  4424. initializer.
  4425. (ada_language::c_style_arrays_p): New member fuction.
  4426. * c-lang.c (c_language_data): Remove c_style_arrays
  4427. initializer.
  4428. (cplus_language_data): Likewise.
  4429. (asm_language_data): Likewise.
  4430. (minimal_language_data): Likewise.
  4431. * d-lang.c (d_language_data): Likewise.
  4432. * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
  4433. * f-lang.c (f_language_data): Remove c_style_arrays initializer.
  4434. (f_language::c_style_arrays_p): New member function.
  4435. * go-lang.c (go_language_data): Remove c_style_arrays initializer.
  4436. * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
  4437. * language.c (unknown_language_data): Remove c_style_arrays
  4438. initializer.
  4439. (auto_language_data): Likewise.
  4440. * language.h (language_data): Remove c_style_arrays field.
  4441. (language_defn::c_style_arrays_p): New member function.
  4442. * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
  4443. (m2_language::c_style_arrays_p): New member function.
  4444. * objc-lang.c (objc_language_data): Remove c_style_arrays
  4445. initializer.
  4446. * opencl-lang.c (opencl_language_data): Likewise.
  4447. * p-lang.c (pascal_language_data): Likewise.
  4448. * rust-lang.c (rust_language_data): Likewise.
  4449. * valarith.c (value_subscript): Update call to c_style_arrays_p,
  4450. and update local variable to a bool.
  4451. * valops.c (value_cast): Update call to c_style_arrays_p.
  4452. (value_array): Likewise.
  4453. * value.c (coerce_array): Likewise.
  4454. 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
  4455. * ada-lang.c (ada_language_data): Remove la_language initializer.
  4456. * c-lang.c (c_language_data): Likewise.
  4457. (cplus_language_data): Likewise.
  4458. (asm_language_data): Likewise.
  4459. (minimal_language_data): Likewise.
  4460. * d-lang.c (d_language_data): Likewise.
  4461. * f-lang.c (f_language_data): Likewise.
  4462. * go-lang.c (go_language_data): Likewise.
  4463. * language.c (unknown_language_data): Likewise.
  4464. (auto_language_data): Likewise.
  4465. * language.h (language_data): Remove la_language field.
  4466. (language_defn::language_defn): Initialise la_language field.
  4467. (language_defn::la_language): New member variable.
  4468. * m2-lang.c (m2_language_data): Remove la_language field.
  4469. * objc-lang.c (objc_language_data): Likewise.
  4470. * opencl-lang.c (opencl_language_data): Likewise.
  4471. * p-lang.c (pascal_language_data): Likewise.
  4472. * rust-lang.c (rust_language_data): Likewise.
  4473. 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
  4474. * ada-lang.c (ada_extensions): Delete, moved into
  4475. ada_language::filename_extensions.
  4476. (ada_language_data): Remove la_filename_extensions initializer.
  4477. (ada_language::filename_extensions): New member function.
  4478. * c-lang.c (c_extensions): Delete, moved into
  4479. c_language::filename_extensions.
  4480. (c_language_data): Remove la_filename_extensions initializer.
  4481. (c_language::filename_extensions): New member function.
  4482. (cplus_extensions): Delete, moved into
  4483. cplus_language::filename_extensions.
  4484. (cplus_language_data): Remove la_filename_extensions initializer.
  4485. (cplus_language::filename_extensions): New member function.
  4486. (asm_extensions): Delete, moved into
  4487. asm_language::filename_extensions.
  4488. (asm_language_data): Remove la_filename_extensions initializer.
  4489. (asm_language::filename_extensions): New member function.
  4490. (minimal_language_data): Remove la_filename_extensions
  4491. initializer.
  4492. * d-lang.c (d_extensions): Delete, moved into
  4493. d_language::filename_extensions.
  4494. (d_language_data): Remove la_filename_extensions initializer.
  4495. (d_language::filename_extensions): New member function.
  4496. * f-lang.c (f_extensions): Delete, moved into
  4497. f_language::filename_extensions.
  4498. (f_language_data): Remove la_filename_extensions initializer.
  4499. (f_language::filename_extensions): New member function.
  4500. * go-lang.c (go_language_data): Remove la_filename_extensions
  4501. initializer.
  4502. * language.c (add_set_language_command): Update now that
  4503. filename_extensions returns a vector.
  4504. (unknown_language_data): Remove la_filename_extensions
  4505. initializer.
  4506. (auto_language_data): Likewise.
  4507. * language.h (language_data): Remove la_filename_extensions field.
  4508. (language_defn::filename_extensions): New member function.
  4509. * m2-lang.c (m2_language_data): Remove la_filename_extensions
  4510. initializer.
  4511. * objc-lang.c (objc_extensions): Delete, moved into
  4512. objc_language::filename_extensions.
  4513. (objc_language_data): Remove la_filename_extensions initializer.
  4514. (objc_language::filename_extensions): New member function.
  4515. * opencl-lang.c (opencl_language_data): Remove
  4516. la_filename_extensions initializer.
  4517. * p-lang.c (pascal_extensions): Delete, moved into
  4518. pascal_language::filename_extensions.
  4519. (pascal_language_data): Remove la_filename_extensions initializer.
  4520. (pascal_language::filename_extensions): New member function.
  4521. * rust-lang.c (rust_extensions): Delete, moved into
  4522. rust_language::filename_extensions.
  4523. (rust_language_data): Remove la_filename_extensions initializer.
  4524. (rust_language::filename_extensions): New member function.
  4525. * symfile.c (add_filename_language): Add new assert.
  4526. 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
  4527. * ada-lang.c (ada_language_data): Remove la_name and
  4528. la_natural_name initializers.
  4529. (ada_language::name): New member function.
  4530. (ada_language::natural_name): New member function.
  4531. * c-lang.c (c_language_data): Remove la_name and
  4532. la_natural_name initializers.
  4533. (c_language::name): New member function.
  4534. (c_language::natural_name): New member function.
  4535. (cplus_language_data): Remove la_name and
  4536. la_natural_name initializers.
  4537. (cplus_language::name): New member function.
  4538. (cplus_language::natural_name): New member function.
  4539. (asm_language_data): Remove la_name and
  4540. la_natural_name initializers.
  4541. (asm_language::name): New member function.
  4542. (asm_language::natural_name): New member function.
  4543. (minimal_language_data): Remove la_name and
  4544. la_natural_name initializers.
  4545. (minimal_language::name): New member function.
  4546. (minimal_language::natural_name): New member function.
  4547. * compile/compile.c (compile_to_object): Update call to
  4548. lanugage_defn::name.
  4549. * d-lang.c (d_language_data): Remove la_name and
  4550. la_natural_name initializers.
  4551. (d_language::name): New member function.
  4552. (d_language::natural_name): New member function.
  4553. * expprint.c (print_subexp_standard): Update call to
  4554. language_defn::name.
  4555. (dump_raw_expression): Likewise
  4556. (dump_prefix_expression): Likewise.
  4557. * f-lang.c (f_language_data): Remove la_name and
  4558. la_natural_name initializers.
  4559. (f_language::name): New member function.
  4560. (f_language::natural_name): New member function.
  4561. * go-lang.c (go_language_data): Remove la_name and
  4562. la_natural_name initializers.
  4563. (go_language::name): New member function.
  4564. (go_language::natural_name): New member function.
  4565. * language.c (show_language_command): Update call to
  4566. language_defn::name.
  4567. (set_language_command): Likewise.
  4568. (language_enum): Likewise.
  4569. (language_str): Likewise.
  4570. (add_set_language_command): Likewise, use
  4571. language_defn::natural_name in the doc string.
  4572. (unknown_language_data): Remove la_name and
  4573. la_natural_name initializers.
  4574. (unknown_language::name): New member function.
  4575. (unknown_language::natural_name): New member function.
  4576. (auto_language_data): Remove la_name and
  4577. la_natural_name initializers.
  4578. (auto_language::name): New member function.
  4579. (auto_language::natural_name): New member function.
  4580. (language_lookup_primitive_type_as_symbol): Update call to
  4581. language_defn::name.
  4582. * language.h (language_data): Remove la_name and la_natural_name
  4583. member variables.
  4584. (language_defn::name): New member function.
  4585. (language_defn::natural_name): New member function.
  4586. * m2-lang.c (m2_language_data): Remove la_name and
  4587. la_natural_name initializers.
  4588. (m2_language::name): New member function.
  4589. (m2_language::natural_name): New member function.
  4590. * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
  4591. language_defn::natural_name.
  4592. * objc-lang.c (objc_language_data): Remove la_name and
  4593. la_natural_name initializers.
  4594. (objc_language::name): New member function.
  4595. (objc_language::natural_name): New member function.
  4596. * opencl-lang.c (opencl_language_data): Remove la_name and
  4597. la_natural_name initializers.
  4598. (opencl_language::name): New member function.
  4599. (opencl_language::natural_name): New member function.
  4600. * p-lang.c (pascal_language_data): Remove la_name and
  4601. la_natural_name initializers.
  4602. (pascal_language::name): New member function.
  4603. (pascal_language::natural_name): New member function.
  4604. * rust-lang.c (rust_language_data): Remove la_name and
  4605. la_natural_name initializers.
  4606. (rust_language::name): New member function.
  4607. (rust_language::natural_name): New member function.
  4608. * symtab.c (lookup_language_this): Update call to
  4609. language_defn::name.
  4610. 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
  4611. * ada-lang.c (ada_language_data): Remove la_name_of_this
  4612. initializer.
  4613. * ax-gdb.c (gen_expr): Update call to name_of_this.
  4614. * c-exp.y (classify_name): Likewise.
  4615. * c-lang.c (c_language_data): Remove la_name_of_this initializer.
  4616. (cplus_language_data): Likewise.
  4617. (cplus_language::name_of_this): New member function.
  4618. (asm_language_data): Remove la_name_of_this initializer.
  4619. (minimal_language_data): Likewise.
  4620. * d-lang.c (d_language_data): Likewise.
  4621. (d_language::name_of_this): New member function.
  4622. * expprint.c (print_subexp_standard): Update call to name_of_this.
  4623. * f-lang.c (f_language_data): Remove la_name_of_this initializer.
  4624. * go-lang.c (go_language_data): Likewise.
  4625. * language.c (unknown_language_data): Likewise.
  4626. (unknown_language::name_of_this): New member function.
  4627. (auto_language_data): Remove la_name_of_this initializer.
  4628. (auto_language::name_of_this): New member function.
  4629. * language.h (language_data): Delete la_name_of_this member
  4630. variable.
  4631. (language_defn::name_of_this): New member function.
  4632. * m2-lang.c (m2_language_data): Remove la_name_of_this
  4633. initializer.
  4634. * objc-lang.c (objc_language_data): Likewise.
  4635. (objc_language::name_of_this): New member function.
  4636. * opencl-lang.c (opencl_language_data): Remove la_name_of_this
  4637. initializer.
  4638. * p-lang.c (pascal_language_data): Likewise.
  4639. (pascal_language::name_of_this): New member function.
  4640. * rust-lang.c (rust_language_data): Remove la_name_of_this
  4641. initializer.
  4642. * symtab.c (lookup_language_this): Update call to name_of_this.
  4643. (lookup_symbol_aux): Likewise.
  4644. * valops.c (value_of_this): Likewise.
  4645. 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
  4646. * ada-lang.c (ada_language_data): Remove
  4647. la_struct_too_deep_ellipsis initializer.
  4648. (ada_language::struct_too_deep_ellipsis): New member function.
  4649. * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
  4650. initializer.
  4651. (cplus_language_data): Likewise.
  4652. (asm_language_data): Likewise.
  4653. (minimal_language_data): Likewise.
  4654. * cp-valprint.c (cp_print_value): Update call to
  4655. struct_too_deep_ellipsis.
  4656. * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
  4657. initializer.
  4658. * f-lang.c (f_language_data): Likewise.
  4659. (f_language::struct_too_deep_ellipsis): New member function.
  4660. * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
  4661. initializer.
  4662. * language.c (unknown_language_data): Likewise.
  4663. (auto_language_data): Likewise.
  4664. * language.h (language_data): Delete la_struct_too_deep_ellipsis
  4665. member variable.
  4666. (language_defn::struct_too_deep_ellipsis): New member function.
  4667. * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
  4668. initializer.Q
  4669. * objc-lang.c (objc_language_data): Likewise.
  4670. * opencl-lang.c (opencl_language_data): Likewise.
  4671. * p-lang.c (pascal_language_data): Likewise.
  4672. * rust-lang.c (rust_language_data): Likewise.
  4673. * valprint.c (val_print_check_max_depth): Update call to
  4674. struct_too_deep_ellipsis.
  4675. 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
  4676. * MAINTAINERS (Write After Approval): Add myself.
  4677. 2020-09-15 Tom Tromey <tom@tromey.com>
  4678. * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
  4679. Remove.
  4680. 2020-09-15 Tom Tromey <tom@tromey.com>
  4681. * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
  4682. and TYPE_CODE_METHODPTR cases.
  4683. * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
  4684. (c_value_print_inner): Update.
  4685. * valprint.c (generic_value_print_memberptr): New function, from
  4686. c_value_print_memberptr.
  4687. (generic_value_print): Use it. Call cplus_print_method_ptr.
  4688. 2020-09-15 Tom Tromey <tromey@adacore.com>
  4689. * python/python-internal.h (PyInt_FromLong): Remove define.
  4690. * python/py-value.c (convert_value_from_python): Use
  4691. gdb_py_object_from_longest.
  4692. * python/py-type.c (typy_get_code): Use
  4693. gdb_py_object_from_longest.
  4694. * python/py-symtab.c (salpy_get_line): Use
  4695. gdb_py_object_from_longest.
  4696. * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
  4697. gdb_py_object_from_longest.
  4698. * python/py-record.c (recpy_gap_reason_code): Use
  4699. gdb_py_object_from_longest.
  4700. * python/py-record-btrace.c (recpy_bt_insn_size)
  4701. (recpy_bt_func_level, btpy_list_count): Use
  4702. gdb_py_object_from_longest.
  4703. * python/py-infthread.c (gdbpy_create_ptid_object): Use
  4704. gdb_py_object_from_longest. Fix error handling.
  4705. * python/py-framefilter.c (bootstrap_python_frame_filters): Use
  4706. gdb_py_object_from_longest.
  4707. * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
  4708. gdb_py_object_from_longest.
  4709. * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
  4710. (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
  4711. (bppy_get_ignore_count): Use gdb_py_object_from_longest.
  4712. 2020-09-15 Tom Tromey <tromey@adacore.com>
  4713. * python/python.c (gdbpy_parameter_value): Use
  4714. gdb_py_object_from_ulongest.
  4715. 2020-09-15 Tom Tromey <tromey@adacore.com>
  4716. * python/py-infevents.c (create_register_changed_event_object):
  4717. Use gdb_py_object_from_longest.
  4718. * python/py-exitedevent.c (create_exited_event_object): Use
  4719. gdb_py_object_from_longest.
  4720. 2020-09-15 Tom Tromey <tromey@adacore.com>
  4721. * python/python.c (gdbpy_parameter_value): Use
  4722. gdb_py_object_from_longest.
  4723. * python/py-type.c (convert_field, typy_range): Use
  4724. gdb_py_object_from_longest.
  4725. * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
  4726. gdb_py_object_from_longest.
  4727. * python/py-lazy-string.c (stpy_get_length): Use
  4728. gdb_py_object_from_longest.
  4729. * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
  4730. gdb_py_object_from_longest.
  4731. * python/py-infevents.c (create_memory_changed_event_object): Use
  4732. gdb_py_object_from_longest.
  4733. * python/py-inferior.c (infpy_get_num): Use
  4734. gdb_py_object_from_longest.
  4735. (infpy_get_pid): Likewise.
  4736. 2020-09-15 Tom Tromey <tromey@adacore.com>
  4737. * python/python-internal.h (gdb_py_long_from_ulongest): Remove
  4738. defines.
  4739. * python/py-value.c (valpy_long): Use
  4740. gdb_py_object_from_ulongest.
  4741. * python/py-symtab.c (salpy_get_pc): Use
  4742. gdb_py_object_from_ulongest.
  4743. (salpy_get_last): Likewise.
  4744. * python/py-record-btrace.c (recpy_bt_insn_pc): Use
  4745. gdb_py_object_from_ulongest.
  4746. * python/py-lazy-string.c (stpy_get_address): Use
  4747. gdb_py_object_from_ulongest.
  4748. * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
  4749. * python/py-arch.c (archpy_disassemble): Use
  4750. gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
  4751. error handling.
  4752. 2020-09-15 Tom Tromey <tromey@adacore.com>
  4753. * python/python-internal.h (gdb_py_long_from_longest): Remove
  4754. defines.
  4755. * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
  4756. * python/py-type.c (convert_field, typy_get_sizeof): Use
  4757. gdb_py_object_from_longest.
  4758. * python/py-record-btrace.c (btpy_list_index): Use
  4759. gdb_py_object_from_longest.
  4760. 2020-09-15 Tom Tromey <tromey@adacore.com>
  4761. * python/python-internal.h (PyInt_FromSsize_t): Remove define.
  4762. * python/py-record.c (recpy_element_number): Use
  4763. gdb_py_object_from_longest.
  4764. (recpy_gap_number): Likewise.
  4765. 2020-09-15 Tom Tromey <tromey@adacore.com>
  4766. * top.c (ui::ui): Update.
  4767. (highest_ui_num): Remove.
  4768. * top.h (struct ui) <num>: Remove.
  4769. 2020-09-15 Tom Tromey <tromey@adacore.com>
  4770. * unittests/memory-map-selftests.c (valid_mem_map): Now array.
  4771. * ui-style.c (ansi_regex_text): Now array.
  4772. * rust-exp.y (number_regex_text): Now array.
  4773. * linespec.c (linespec_quote_characters): Now array.
  4774. * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
  4775. Now arrays.
  4776. 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
  4777. * debuginfod-support.c (debuginfod_client_deleter): New.
  4778. (debuginfod_client_up): New.
  4779. (debuginfod_init): Return debuginfod_client_up.
  4780. (debuginfod_source_query): Adjust.
  4781. (debuginfod_debuginfo_query): Adjust.
  4782. 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
  4783. * debuginfod-support.c (debuginfod_source_query): Use
  4784. make_unique_xstrdup.
  4785. 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
  4786. * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
  4787. with `type::instance_flags`.
  4788. 2020-09-14 Michael Mullin <masmullin@gmail.com>
  4789. * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
  4790. Remove baton parameter.
  4791. 2020-09-14 Pedro Alves <pedro@palves.net>
  4792. * Makefile.in (SELFTESTS_SRCS): Add
  4793. unittests/enum-flags-selftests.c.
  4794. * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
  4795. btrace_function_flags instead of enum btrace_function_flag.
  4796. * compile/compile-c-types.c (convert_qualified): Use
  4797. enum_flags::raw.
  4798. * compile/compile-cplus-symbols.c (convert_one_symbol)
  4799. (convert_symbol_bmsym):
  4800. * compile/compile-cplus-types.c (compile_cplus_convert_method)
  4801. (compile_cplus_convert_struct_or_union_methods)
  4802. (compile_cplus_instance::convert_qualified_base):
  4803. * go-exp.y (parse_string_or_char): Add cast to int.
  4804. * unittests/enum-flags-selftests.c: New file.
  4805. * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
  4806. type to btrace_thread_flags from btrace_thread_flag.
  4807. (record_btrace_cancel_resume, record_btrace_step_thread): Change
  4808. local's type to btrace_thread_flags from btrace_thread_flag. Add
  4809. cast in DEBUG call.
  4810. 2020-09-14 Pedro Alves <pedro@palves.net>
  4811. * c-typeprint.c (c_type_print_modifier): Adjust to rename.
  4812. * gdbtypes.c (address_space_name_to_int): Rename to ...
  4813. (address_space_name_to_type_instance_flags): ... this.
  4814. (address_space_int_to_name): Rename to ...
  4815. (address_space_type_instance_flags_to_name): ... this.
  4816. * gdbtypes.h (address_space_name_to_int): Rename to ...
  4817. (address_space_name_to_type_instance_flags): ... this.
  4818. (address_space_int_to_name): Rename to ...
  4819. (address_space_type_instance_flags_to_name): ... this.
  4820. * type-stack.c (type_stack::insert): Adjust to rename.
  4821. * type-stack.h (type_stack::insert): Likewise.
  4822. 2020-09-14 Pedro Alves <pedro@palves.net>
  4823. Andrew Burgess <andrew.burgess@embecosm.com>
  4824. * avr-tdep.c (avr_address_class_type_flags): Return
  4825. type_instance_flags.
  4826. (avr_address_class_type_flags_to_name): Take a
  4827. type_instance_flags.
  4828. (avr_address_class_name_to_type_flags): Return bool and take a
  4829. type_instance_flags.
  4830. * d-lang.c (build_d_types): Use type::set_instance_flags.
  4831. * ft32-tdep.c (ft32_address_class_type_flags): Return
  4832. type_instance_flags.
  4833. (ft32_address_class_type_flags_to_name): Take a
  4834. type_instance_flags.
  4835. (ft32_address_class_name_to_type_flags): Return bool and take a
  4836. type_instance_flags.
  4837. (ft32_gdbarch_init): Use type::set_instance_flags.
  4838. * eval.c (fake_method::fake_method): Use type::set_instance_flags.
  4839. * gdbarch.h, gdbarch.c: Regenerate.
  4840. * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
  4841. (address_class_name_to_type_flags): Use type_instance_flags and
  4842. bool.
  4843. * gdbtypes.c (address_space_name_to_int)
  4844. (address_space_int_to_name, make_qualified_type): Use
  4845. type_instance_flags.
  4846. (make_qualified_type): Use type_instance_flags and
  4847. type::set_instance_flags.
  4848. (make_type_with_address_space, make_cv_type, make_vector_type)
  4849. (check_typedef): Use type_instance_flags.
  4850. (recursive_dump_type): Cast type_instance_flags to unsigned for
  4851. printing.
  4852. (copy_type_recursive): Use type::set_instance_flags.
  4853. (gdbtypes_post_init): Use type::set_instance_flags.
  4854. * gdbtypes.h (struct type) <instance_flags>: Rename to ...
  4855. <m_instance_flags>: ... this.
  4856. <instance_flags, set_instance_flags>: New methods.
  4857. (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
  4858. (SET_TYPE_INSTANCE_FLAGS): New.
  4859. (address_space_name_to_int, address_space_int_to_name)
  4860. (make_type_with_address_space): Pass flags using
  4861. type_instance_flags instead of int.
  4862. * stabsread.c (cleanup_undefined_types_noname): Use
  4863. type::set_instance_flags.
  4864. * s390-tdep.c (s390_address_class_type_flags): Return
  4865. type_instance_flags.
  4866. (s390_address_class_type_flags_to_name): Take a
  4867. type_instance_flags.
  4868. (s390_address_class_name_to_type_flags): Return bool and take a
  4869. type_instance_flags.
  4870. * type-stack.c (type_stack::follow_types): Use
  4871. type_instance_flags.
  4872. * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
  4873. 2020-09-14 Tom Tromey <tromey@adacore.com>
  4874. * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
  4875. * x86-tdep.c (x86_is_thunk_register_name)
  4876. (x86_in_indirect_branch_thunk): Update.
  4877. * sparc64-tdep.c (sparc64_fpu_register_names)
  4878. (sparc64_cp0_register_names, sparc64_register_names)
  4879. (sparc64_pseudo_register_names): Now const.
  4880. * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
  4881. cp0_registers_num>: Now const.
  4882. * sparc-tdep.c (sparc_core_register_names)
  4883. (sparc32_fpu_register_names, sparc32_cp0_register_names)
  4884. (sparc32_pseudo_register_names): Now const.
  4885. (validate_tdesc_registers): Update.
  4886. * rust-lang.c (rust_extensions): Now const.
  4887. * p-lang.c (p_extensions): Now const.
  4888. * objc-lang.c (objc_extensions): Now const.
  4889. * nto-tdep.c (nto_thread_state_str): Now const.
  4890. * moxie-tdep.c (moxie_register_names): Now const.
  4891. * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
  4892. Now const.
  4893. * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
  4894. (mips_linux_reg_names): Now const.
  4895. (mips_gdbarch_init): Update.
  4896. * microblaze-tdep.c (microblaze_register_names): Now const.
  4897. * m68k-tdep.c (m68k_register_names): Now const.
  4898. * m32r-tdep.c (m32r_register_names): Now const.
  4899. * ia64-tdep.c (ia64_register_names): Now const.
  4900. * i386-tdep.h (struct gdbarch_tdep) <register_names,
  4901. ymmh_register_names, ymm16h_regnum, mpx_register_names,
  4902. k_register_names, zmmh_register_names, xmm_avx512_register_names,
  4903. ymm_avx512_register_names, pkeys_register_names>: Now const.
  4904. * i386-tdep.c (i386_register_names, i386_zmm_names)
  4905. (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
  4906. (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
  4907. (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
  4908. * f-lang.c (f_extensions): Now const.
  4909. * d-lang.c (d_extensions): Now const.
  4910. * csky-tdep.c (csky_register_names): Now const.
  4911. * charset.c (default_charset_names, charset_enum): Now const.
  4912. (_initialize_charset): Update.
  4913. * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
  4914. const.
  4915. * bsd-uthread.c (bsd_uthread_solib_names): Now const.
  4916. (bsd_uthread_solib_loaded): Update.
  4917. (bsd_uthread_state): Now const.
  4918. * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
  4919. (amd64_ymm_avx512_names, amd64_ymmh_names)
  4920. (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
  4921. (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
  4922. (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
  4923. (amd64_dword_names): Now const.
  4924. * agent.c (can_use_agent_enum): Now const.
  4925. * ada-tasks.c (task_states, long_task_states): Now const.
  4926. * ada-lang.c (known_runtime_file_name_patterns)
  4927. (known_auxiliary_function_name_patterns, attribute_names)
  4928. (standard_exc, ada_extensions): Now const.
  4929. 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
  4930. * bcache.h (struct bcache) <bcache>: Remove constructor.
  4931. <m_hash_function, m_compare_function>: Remove.
  4932. <~bcache>: Make virtual.
  4933. <compare>: Remove static method, introduce virtual method.
  4934. <default_hash>: Remove.
  4935. <hash>: New virtual method.
  4936. * bcache.c (bcache::expand_hash_table): Update.
  4937. (bcache::insert): Update.
  4938. (bcache::hash): New.
  4939. (bcache::compare): Update comment and parameter names.
  4940. * gdbtypes.c (types_deeply_equal): Update.
  4941. * psymtab.h (struct psymbol_bcache): New struct.
  4942. (class psymtab_storage) <psymtab_storage>: Make default.
  4943. <psymbol_cache>: Change type to psymbol_bcache.
  4944. * psymtab.c (psymtab_storage::psymtab_storage): Remove.
  4945. (psymbol_hash): Change to...
  4946. (psymbol_bcache::hash): ... this.
  4947. (psymbol_compare): Change to...
  4948. (psymbol_bcache::compare): ... this.
  4949. 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
  4950. * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
  4951. checking for initial lwp.
  4952. 2020-09-14 Tom Tromey <tromey@adacore.com>
  4953. * m68k-tdep.c (m68k_extract_return_value): Use
  4954. pointer_result_regnum.
  4955. (m68k_store_return_value): Likewise.
  4956. (m68k_reg_struct_return_p): Handle vectors and arrays.
  4957. (m68k_return_value): Handle arrays.
  4958. (m68k_svr4_return_value): Fix single-element aggregate handling.
  4959. Handle long double. Adjust for embedded ABI.
  4960. (m68k_svr4_init_abi): Set pointer_result_regnum.
  4961. (m68k_embedded_init_abi): New function.
  4962. (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
  4963. (m68k_osabi_sniffer): New function.
  4964. (_initialize_m68k_tdep): Register osabi sniffer.
  4965. * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
  4966. member.
  4967. 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
  4968. * xml-support.c (xml_fetch_content_from_file): Replace xfree
  4969. with gdb::unique_xmalloc_ptr<char>.
  4970. 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
  4971. * xml-support.h (xml_fetch_another): Change type to be a
  4972. function_view.
  4973. (xml_process_xincludes): Remove baton parameter.
  4974. (xml_fetch_content_from_file): Change baton parameter to
  4975. dirname.
  4976. * xml-support.c (struct xinclude_parsing_data)
  4977. <xinclude_parsing_data>: Remove baton parameter.
  4978. <fetcher_baton>: Remove.
  4979. (xinclude_start_include): Adjust.
  4980. (xml_process_xincludes): Adjust.
  4981. (xml_fetch_content_from_file): Replace baton parameter with
  4982. dirname.
  4983. * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
  4984. (xml_init_syscalls_info): Use a lambda.
  4985. * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
  4986. (file_read_description_xml): Use a lambda.
  4987. (fetch_available_features_from_target): Change baton parameter
  4988. to target_ops.
  4989. (target_read_description_xml): Use a lambda.
  4990. (target_fetch_description_xml): Use a lambda.
  4991. (string_read_description_xml): Update.
  4992. 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
  4993. * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
  4994. uses with type::endianity_is_not_default.
  4995. 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
  4996. * gdbtypes.h (struct type) <endianity_is_not_default,
  4997. set_endianity_is_not_default>: New methods.
  4998. (TYPE_ENDIANITY_NOT_DEFAULT): Use
  4999. type::endianity_is_not_default, change all write call sites to
  5000. use type::set_endianity_is_not_default.
  5001. 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
  5002. * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
  5003. uses with type::is_fixed_instance.
  5004. 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
  5005. * gdbtypes.h (struct type) <is_fixed_instance,
  5006. set_is_fixed_instance>: New methods.
  5007. (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
  5008. write call sites to use type::set_is_fixed_instance.
  5009. 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
  5010. * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
  5011. uses with type::is_gnu_ifunc.
  5012. 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
  5013. * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
  5014. (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
  5015. use type::set_is_gnu_ifunc.
  5016. 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
  5017. * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
  5018. uses with type::stub_is_supported.
  5019. 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
  5020. * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
  5021. (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
  5022. use type::set_stub_is_supported.
  5023. 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
  5024. * gdbtypes.h (TYPE_VECTOR): Remove, replace all
  5025. uses with type::is_vector.
  5026. 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
  5027. * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
  5028. (TYPE_VECTOR): Use type::is_vector, change all write call sites to
  5029. use type::set_is_vector.
  5030. 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
  5031. * gdbtypes.h (TYPE_VARARGS): Remove, replace all
  5032. uses with type::has_varargs.
  5033. 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
  5034. * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
  5035. (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
  5036. use type::set_has_varargs.
  5037. 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
  5038. * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
  5039. uses with type::is_prototyped.
  5040. 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
  5041. * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
  5042. New methods.
  5043. (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
  5044. call sites to use type::set_is_prototyped.
  5045. 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
  5046. * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
  5047. uses with type::target_is_stub.
  5048. 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
  5049. * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
  5050. New methods.
  5051. (TYPE_TARGET_STUB): Use type::is_stub, change all write call
  5052. sites to use type::set_target_is_stub.
  5053. 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
  5054. * gdbtypes.h (TYPE_STUB): Remove, replace all
  5055. uses with type::is_stub.
  5056. 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
  5057. * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
  5058. (TYPE_STUB): Use type::is_stub, change all write call sites to
  5059. use type::set_is_stub.
  5060. 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
  5061. * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
  5062. type::has_no_signedness.
  5063. 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
  5064. * gdbtypes.h (struct type) <has_no_signedness,
  5065. set_has_no_signedness>: New methods.
  5066. (TYPE_NOSIGN): Use type::has_no_signedness, change all write
  5067. call sites to use type::set_has_no_signedness.
  5068. 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
  5069. * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
  5070. type::is_unsigned.
  5071. 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
  5072. * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
  5073. methods.
  5074. (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
  5075. sites to use type::set_is_unsigned.
  5076. 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
  5077. Adam Renquinha <arenquinha@cimeq.qc.ca>
  5078. * arm-tdep.c (arm_m_exception_cache): Try use correct stack
  5079. pointer and stack frame offset when unwinding.
  5080. 2020-09-13 Pedro Alves <pedro@palves.net>
  5081. * NEWS: Document "-break-insert --qualified".
  5082. * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
  5083. 2020-09-13 Pedro Alves <pedro@palves.net>
  5084. * linespec.c (classify_mtype, compare_msyms): Delete.
  5085. (search_minsyms_for_name): Remove classification logic. Instead
  5086. filter out trampoline symbols if we also found an external
  5087. function of the same name.
  5088. 2020-09-13 Joel Brobecker <brobecker@adacore.com>
  5089. * NEWS: Create a new section for the next release branch.
  5090. Rename the section of the current branch, now that it has
  5091. been cut.
  5092. 2020-09-13 Joel Brobecker <brobecker@adacore.com>
  5093. GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
  5094. * version.in: Bump version to 11.0.50.DATE-git.
  5095. 2020-09-12 Joel Brobecker <brobecker@adacore.com>
  5096. * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
  5097. 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
  5098. Felix Willgerodt <Felix.Willgerodt@intel.com>
  5099. * gdbarch.sh: Added bfloat16 type.
  5100. * gdbarch.c: Regenerated.
  5101. * gdbarch.h: Regenerated.
  5102. * gdbtypes.c (floatformats_bfloat16): New struct.
  5103. (gdbtypes_post_init): Add builtin_bfloat16.
  5104. * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
  5105. (floatformats_bfloat16): New struct.
  5106. * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
  5107. (i386_ymm_type): Add field "v16_bfloat16"
  5108. (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
  5109. * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
  5110. * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
  5111. * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
  5112. * features/i386/64bit-avx512.xml: Add bfloat16 type.
  5113. * features/i386/64bit-avx512.c: Regenerated.
  5114. * features/i386/64bit-sse.xml: Add bfloat16 type.
  5115. * features/i386/64bit-sse.c: Regenerated.
  5116. 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
  5117. * i386-tdep.c (i386_zmm_type): Fix field names.
  5118. (i386_ymm_type): Fix field names.
  5119. 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  5120. * breakpoint.c: Fix typo in the help message of the
  5121. "set breakpoint condition-evaluation" command.
  5122. 2020-09-10 Kamil Rytarowski <n54@gmx.com>
  5123. * nbsd-nat.c: Include "nat/netbsd-nat.h".
  5124. * (nbsd_nat_target::pid_to_exec_file)
  5125. (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
  5126. (nbsd_nat_target::post_startup_inferior)
  5127. (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
  5128. (nbsd_add_threads): Switch local code to common gdb/nat functions.
  5129. * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
  5130. * (nbsd_thread_lister): Remove.
  5131. 2020-09-10 Kamil Rytarowski <n54@gmx.com>
  5132. * fork-inferior.c (startup_inferior): Avoid double free.
  5133. 2020-09-10 Kamil Rytarowski <n54@gmx.com>
  5134. * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
  5135. * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
  5136. 2020-09-10 Kamil Rytarowski <n54@gmx.com>
  5137. * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
  5138. * netbsd-nat.c: Include <sys/ptrace.h>.
  5139. * (netbsd_nat::enable_proc_events): Add.
  5140. 2020-09-10 Kamil Rytarowski <n54@gmx.com>
  5141. * netbsd-nat.h: Include "gdbsupport/function-view.h".
  5142. * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
  5143. (netbsd_nat::for_each_thread): Add.
  5144. * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
  5145. "gdbsupport/common-debug.h".
  5146. * (netbsd_nat::netbsd_thread_lister)
  5147. (netbsd_nat::thread_alive, netbsd_nat::thread_name)
  5148. (netbsd_nat::for_each_thread): Add.
  5149. 2020-09-10 Kamil Rytarowski <n54@gmx.com>
  5150. * netbsd-nat.h: Include <unistd.h>.
  5151. * (netbsd_nat::pid_to_exec_file): Add.
  5152. * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
  5153. * (netbsd_nat::pid_to_exec_file) Add.
  5154. 2020-09-10 Kamil Rytarowski <n54@gmx.com>
  5155. * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
  5156. 2020-09-10 Kamil Rytarowski <n54@gmx.com>
  5157. * netbsd-nat.h: New file.
  5158. * netbsd-nat.c: Likewise.
  5159. 2020-09-09 Tom Tromey <tromey@adacore.com>
  5160. * ada-lang.c (remove_extra_symbols): Do not increment when
  5161. removing an element
  5162. 2020-09-08 Tom Tromey <tromey@adacore.com>
  5163. * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
  5164. 2020-09-08 Tom Tromey <tromey@adacore.com>
  5165. PR win32/25302:
  5166. * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
  5167. (gdb_bfd_init_data): New function.
  5168. (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
  5169. 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  5170. * infrun.c (fetch_inferior_event): Use
  5171. `switch_to_target_no_thread` to switch the target.
  5172. 2020-09-06 Tom Tromey <tom@tromey.com>
  5173. * symfile.h (dwarf2_free_objfile): Don't declare.
  5174. 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
  5175. * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
  5176. to match 16 byte real/complex type generated by Flang compiler.
  5177. 2020-09-03 Tom de Vries <tdevries@suse.de>
  5178. PR breakpoint/26546
  5179. * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
  5180. LOC_OPTIMIZED_OUT instead of LOC_LABEL.
  5181. 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
  5182. * maint.c (index_digits): New function.
  5183. (struct maint_print_section_data): Remove.
  5184. (print_bfd_section_info): Remove print_data parameter, add arg
  5185. and index_digits.
  5186. (print_objfile_section_info): Likewise.
  5187. (print_bfd_section_info_maybe_relocated): Likewise (plus
  5188. objfile).
  5189. (maintenance_info_sections): Adjust calls.
  5190. 2020-09-02 Tom Tromey <tromey@adacore.com>
  5191. * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
  5192. for null pointers.
  5193. (ada_varobj_adjust_for_child_access): Special-case null pointers.
  5194. 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
  5195. * bcache.h (struct bcache) <insert>: Change type of `added` to
  5196. pointer to bool.
  5197. * bcache.c (bcache::insert): Likewise.
  5198. * gdbtypes.c (check_types_worklist): Adjust.
  5199. * psymtab.c (add_psymbol_to_bcache): Adjust.
  5200. 2020-08-31 Kevin Buettner <kevinb@redhat.com>
  5201. * corelow.c (unordered_set): Include.
  5202. (class core_target): Add field 'm_core_unavailable_mappings'.
  5203. (core_target::build_file_mappings): Print only one warning
  5204. per inaccessible file. Add unavailable/broken mappings
  5205. to m_core_unavailable_mappings.
  5206. (core_target::xfer_partial): Call...
  5207. (core_target::xfer_memory_via_mappings): New method.
  5208. 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
  5209. * dwarf2/read.c (struct field_info) <non_public_fields>: Change
  5210. type to bool.
  5211. 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
  5212. * dwarf2/read.c (struct field_info): Fix indentation.
  5213. 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
  5214. * frame-unwind.h (frame_prev_register_ftype): Fix adjective
  5215. ordering in comment.
  5216. * frame.c (frame_id_eq): Fix indentation.
  5217. 2020-08-31 Scott Linder <scott@scottlinder.com>
  5218. Simon Marchi <simon.marchi@efficios.com>
  5219. * inline-frame.c (inline_frame_this_id): Remove assert that prevents
  5220. inline frame ids in outer frame.
  5221. 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
  5222. * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
  5223. * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
  5224. (outer_frame_id): Use FID_STACK_OUTER instead of
  5225. FID_STACK_INVALID.
  5226. (frame_id_p): Don't check for outer_frame_id.
  5227. 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
  5228. * frame-unwind.c (frame_unwind_got_optimized): Don't set
  5229. regnum/frame in value. Call allocate_value_lazy.
  5230. * frame.c (frame_unwind_register_value): Use
  5231. val_print_not_saved.
  5232. 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
  5233. * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
  5234. 2020-08-29 Pedro Alves <pedro@palves.net>
  5235. * progspace.c (print_program_space): Use all_inferiors. Switch to
  5236. the inferior before calling target_pid_to_str.
  5237. 2020-08-28 Tom Tromey <tom@tromey.com>
  5238. * xcoffread.c (xcoff_end_psymtab): Update comment.
  5239. * dbxread.c (dbx_end_psymtab): Update comment.
  5240. 2020-08-28 Tom de Vries <tdevries@suse.de>
  5241. PR breakpoint/26544
  5242. * breakpoint.c (parse_breakpoint_sals): Remove const from struct
  5243. event_location.
  5244. (create_breakpoint): Same.
  5245. (base_breakpoint_decode_location): Same.
  5246. (bkpt_create_sals_from_location): Same.
  5247. (bkpt_decode_location): Same.
  5248. (bkpt_probe_create_sals_from_location): Same.
  5249. (bkpt_probe_decode_location): Same.
  5250. (tracepoint_create_sals_from_location): Same.
  5251. (tracepoint_decode_location): Same.
  5252. (tracepoint_probe_decode_location): Same.
  5253. (strace_marker_create_sals_from_location): Same.
  5254. (strace_marker_decode_location): Same.
  5255. (create_sals_from_location_default): Same.
  5256. (decode_location_default): Same.
  5257. * breakpoint.h (struct breakpoint_ops): Same.
  5258. (create_breakpoint): Same.
  5259. * linespec.h (decode_line_full): Same.
  5260. * linespec.c (decode_line_full): Same. Throw error if
  5261. result.size () == 0.
  5262. 2020-08-27 Pedro Alves <pedro@palves.net>
  5263. PR gdb/26524
  5264. * breakpoint.c (until_break_fsm) <location_breakpoint,
  5265. caller_breakpoint>: Delete fields.
  5266. <breakpoints>: New field.
  5267. <until_break_fsm>: Adjust to save a breakpoint vector instead of
  5268. two individual breakpoints.
  5269. (until_break_fsm::should_stop): Loop over breakpoints in the
  5270. breakpoint vector.
  5271. (until_break_fsm::clean_up): Adjust to clear the breakpoints
  5272. vector.
  5273. (until_break_command): Handle location expanding into multiple
  5274. sals.
  5275. 2020-08-27 Pedro Alves <pedro@palves.net>
  5276. PR gdb/26523
  5277. * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
  5278. bp_until breakpoints user-specified locations. Update intro
  5279. comment.
  5280. 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
  5281. * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
  5282. gdb_bfd_sections): New.
  5283. * maint.c (print_bfd_section_info): Change param type to
  5284. maint_print_section_data.
  5285. (print_objfile_section_info): Likewise.
  5286. (print_bfd_section_info_maybe_relocated): Likewise.
  5287. (maintenance_info_sections): Use gdb_bfd_sections.
  5288. 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
  5289. * MAINTAINERS: Add ARC target and maintainer.
  5290. 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
  5291. * configure.tgt: ARC support for GNU/Linux.
  5292. * Makefile.in (ALL_TARGET_OBJS): Likewise.
  5293. * arc-linux-tdep.c: New file.
  5294. * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
  5295. * arc-tdep.c (arc_write_pc): Use it.
  5296. 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
  5297. * arc-tdep.c (arc_check_for_hardware_loop): New.
  5298. * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
  5299. 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
  5300. * arc-tdep.h: Include "gdbarch.h".
  5301. 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
  5302. * arch/arc.h
  5303. (arc_gdbarch_features): New class to stir the selection of target XML.
  5304. (arc_create_target_description): Use FEATURES to choose XML target.
  5305. (arc_lookup_target_description): Use arc_create_target_description
  5306. to create _new_ target descriptions or return the already created
  5307. ones if the FEATURES is the same.
  5308. * arch/arc.c: Implementation of prototypes described above.
  5309. * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
  5310. (arc_gdbarch_features_init): Initialize the FEATURES struct.
  5311. * arc-tdep.c (*_feature_name): Make feature names consistent.
  5312. (arc_register_feature): A new struct to hold information about
  5313. registers of a particular target/feature.
  5314. (arc_check_tdesc_feature): Check if XML provides registers in
  5315. compliance with ARC_REGISTER_FEATURE structs.
  5316. (arc_update_acc_reg_names): Add aliases for r58 and r59.
  5317. (determine_*_reg_feature_set): Which feature name to look for.
  5318. (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
  5319. (mach_type_to_arc_isa): Convert from a set of binutils machine types
  5320. to expected ISA enums to be used in arc_gdbarch_features structs.
  5321. * features/Makefile (FEATURE_XMLFILES): Add new files.
  5322. * gdb/features/arc/v1-aux.c: New file.
  5323. * gdb/features/arc/v1-aux.xml: Likewise.
  5324. * gdb/features/arc/v1-core.c: Likewise.
  5325. * gdb/features/arc/v1-core.xml: Likewise.
  5326. * gdb/features/arc/v2-aux.c: Likewise.
  5327. * gdb/features/arc/v2-aux.xml: Likewise.
  5328. * gdb/features/arc/v2-core.c: Likewise.
  5329. * gdb/features/arc/v2-core.xml: Likewise.
  5330. * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
  5331. 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
  5332. Andrew Burgess <andrew.burgess@embecosm.com>
  5333. PR m2/26372
  5334. * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
  5335. an assert. Remove single element array indexing pattern as the
  5336. MULTI_SUBSCRIPT support will handle this case too.
  5337. 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
  5338. * value.h (valprint_check_validity): Move declaration from
  5339. here...
  5340. * valprint.h (valprint_check_validity): ... to here.
  5341. 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
  5342. * debug.h: New file.
  5343. * debug.c (debug_prefixed_vprintf): New function.
  5344. * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
  5345. * linux-nat.c (linux_nat_debug_printf_1): Likewise.
  5346. 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
  5347. * infrun.h (infrun_debug_printf_1): New function declaration.
  5348. (infrun_debug_printf): New macro.
  5349. * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
  5350. throughout.
  5351. (infrun_debug_printf): New function.
  5352. * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
  5353. (handle_jit_event): Likewise.
  5354. 2020-08-21 Mark Wielaard <mark@klomp.org>
  5355. * ada-lex.l: Extend register warnings diagnostics comment for g++.
  5356. 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
  5357. * frame.c (enum class frame_id_status): New.
  5358. (struct frame_info) <this_id::p>: Change type to frame_id_status.
  5359. (fprintf_frame): Update.
  5360. (compute_frame_id): Set frame id status to "computing" on entry.
  5361. Set it back to "not_computed" on failure and to "computed" on
  5362. success.
  5363. (get_frame_id): Assert the frame id is not being computed.
  5364. (create_sentinel_frame): Use frame_id_status::COMPUTED.
  5365. (create_new_frame): Likewise.
  5366. (frame_cleanup_after_sniffer): Update assert.
  5367. 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
  5368. * regcache.c (pid_ptid_regcache_map): New type.
  5369. (target_ptid_regcache_map): Remove.
  5370. (target_pid_ptid_regcache_map): New type.
  5371. (regcaches): Change type to target_pid_ptid_regcache_map.
  5372. (get_thread_arch_aspace_regcache): Update.
  5373. (regcache_thread_ptid_changed): Update, handle pid-like ptid
  5374. case.
  5375. (regcaches_size): Update.
  5376. (regcache_count): Update.
  5377. (registers_changed_ptid_target_pid_test): New.
  5378. (_initialize_regcache): Register new test.
  5379. 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
  5380. * regcache.c (regcache_count): New.
  5381. (struct regcache_test_data): New.
  5382. (regcache_test_data_up): New.
  5383. (populate_regcaches_for_test): New.
  5384. (regcaches_test): Remove.
  5385. (get_thread_arch_aspace_regcache_test): New.
  5386. (registers_changed_ptid_all_test): New.
  5387. (registers_changed_ptid_target_test): New.
  5388. (registers_changed_ptid_target_ptid_test): New.
  5389. (regcache_thread_ptid_changed): Remove regcache_count lambda.
  5390. (_initialize_regcache): Register new tests.
  5391. 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
  5392. * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
  5393. (get_thread_arch_aspace_regcache_and_check): ... this. Remove
  5394. gdbarch and aspace parameter. Use current inferior's aspace.
  5395. Validate regcache's arch value.
  5396. (regcaches_test): Update.
  5397. 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
  5398. * regcache.c (regcaches_test): Call registers_changed.
  5399. 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  5400. * infrun.c (process_event_stop_test): Fix typo "breapoint".
  5401. 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
  5402. * amd64-tdep.c (amd64_skip_prologue): Using symbol table
  5403. to find the end of prologue for flang compiled binaries.
  5404. * arm-tdep.c (arm_skip_prologue): Likewise.
  5405. * i386-tdep.c (i386_skip_prologue): Likewise.
  5406. * producer.c (producer_is_llvm): New function.
  5407. (producer_parsing_tests): Added new tests for clang/flang.
  5408. * producer.h (producer_is_llvm): New declaration.
  5409. 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
  5410. * linux-nat.c (linux_nat_debug_printf): New function.
  5411. (linux_nat_debug_printf_1): New macro. Use throughout the file.
  5412. 2020-08-18 Aaron Merey <amerey@redhat.com>
  5413. * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
  5414. (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
  5415. (CLIBS): Add DEBUGINFOD_LIBS.
  5416. 2020-08-17 Sergei Trofimovich <siarheit@google.com>
  5417. * ia64-linux-nat.c: Include "gdbarch.h" to declare used
  5418. 'gdbarch_num_regs'.
  5419. 2020-08-17 Tom Tromey <tromey@adacore.com>
  5420. * ada-varobj.c (ada_varobj_decode_var): Handle case where
  5421. ada_get_decoded_value returns NULL.
  5422. 2020-08-17 Tom Tromey <tromey@adacore.com>
  5423. * python/py-inferior.c (infpy_search_memory): Use
  5424. gdb_py_object_from_ulongest.
  5425. * python/py-infevents.c (create_inferior_call_event_object)
  5426. (create_memory_changed_event_object): Use
  5427. gdb_py_object_from_ulongest.
  5428. * python/py-linetable.c (ltpy_entry_get_pc): Use
  5429. gdb_py_object_from_ulongest.
  5430. 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
  5431. * loc.c (class symbol_needs_eval_context): Fix indentation.
  5432. 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
  5433. * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
  5434. bool.
  5435. 2020-08-17 Tom de Vries <tdevries@suse.de>
  5436. PR gdb/26393
  5437. * gdbtypes.c (dump_dynamic_prop): New function.
  5438. (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
  5439. 2020-08-15 Tom de Vries <tdevries@suse.de>
  5440. PR backtrace/26390
  5441. * stack.c (print_frame_args): Temporarily set the selected
  5442. frame to FRAME while printing the frame's arguments.
  5443. 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
  5444. PR breakpoints/26385
  5445. * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
  5446. Always clear watchpoint with PTRACE_SET_DEBUGREG.
  5447. 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
  5448. * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
  5449. (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
  5450. and >= to check return value instead of == -1 and != -1.
  5451. 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
  5452. * utils.h (class gdb_argv) <as_array_view>: New method.
  5453. * utils.c (gdb_argv_as_array_view_test): New.
  5454. (_initialize_utils): Register selftest.
  5455. * maint.c (maintenance_selftest): Use the new method.
  5456. 2020-08-13 Kamil Rytarowski <n54@gmx.com>
  5457. * target.h (supports_dumpcore, dumpcore): New
  5458. function declarations.
  5459. * target.c (supports_dumpcore, dumpcore): New
  5460. functions.
  5461. * target-delegates.c: Rebuild.
  5462. * gcore.c (gcore_command): Use target_supports_dumpcore ()
  5463. and target_dumpcore ().
  5464. 2020-08-13 Aaron Merey <amerey@redhat.com>
  5465. * debuginfod-support.c: Replace global variables with user_data.
  5466. 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
  5467. * maint.c (maintenance_selftest): Split args and pass array_view
  5468. to run_tests.
  5469. 2020-08-12 Luis Machado <luis.machado@linaro.org>
  5470. * value.c (check_type_length_before_alloc): Use ULONGEST to store a
  5471. type's length.
  5472. Use %s and pulongest to print the length.
  5473. 2020-08-12 Pedro Alves <palves@redhat.com>
  5474. * NEWS: Move "Multi-target debugging support" item to the
  5475. "Changes since GDB 9" section.
  5476. 2020-08-12 Pedro Alves <palves@redhat.com>
  5477. PR gdb/26336
  5478. * progspace.c (program_space::remove_objfile): Invalidate the
  5479. frame cache.
  5480. 2020-08-11 Tom de Vries <tdevries@suse.de>
  5481. * MAINTAINERS: Mark ms1 as deleted.
  5482. 2020-08-10 Luis Machado <luis.machado@linaro.org>
  5483. PR gdb/26310
  5484. * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
  5485. act accordingly.
  5486. (aarch64_analyze_prologue_test): Add more unit tests to exercise
  5487. movz/str/stur/stp skipping behavior.
  5488. 2020-08-10 Luis Machado <luis.machado@linaro.org>
  5489. * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
  5490. struct user_sve_header instead of struct sve_context.
  5491. 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
  5492. * read.h (dwarf2_fetch_die_loc_sect_off,
  5493. dwarf2_fetch_die_loc_cu_off): Replace function pointer +
  5494. `void *` parameter with function_view.
  5495. * read.c (dwarf2_fetch_die_loc_sect_off,
  5496. dwarf2_fetch_die_loc_cu_off): Likewise.
  5497. * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
  5498. (per_cu_dwarf_call): Adjust.
  5499. (get_frame_address_in_block_wrapper): Remove.
  5500. (indirect_synthetic_pointer): Adjust.
  5501. (get_ax_pc): Remove.
  5502. (dwarf2_compile_expr_to_ax): Adjust.
  5503. 2020-08-08 Tom de Vries <tdevries@suse.de>
  5504. PR build/26344
  5505. * arch/riscv.c (riscv_lookup_target_description): Use an explicit
  5506. constructor.
  5507. * regcache.c (get_thread_arch_aspace_regcache): Same.
  5508. 2020-08-07 Tom Tromey <tromey@adacore.com>
  5509. * ravenscar-thread.c
  5510. (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
  5511. New method.
  5512. (ravenscar_thread_target::wait): Check
  5513. runtime_initialized.
  5514. (ravenscar_thread_target::prepare_to_store)
  5515. (ravenscar_thread_target::stopped_by_sw_breakpoint)
  5516. (ravenscar_thread_target::stopped_by_hw_breakpoint)
  5517. (ravenscar_thread_target::stopped_by_watchpoint)
  5518. (ravenscar_thread_target::stopped_data_address)
  5519. (ravenscar_thread_target::core_of_thread): Use
  5520. scoped_restore_current_thread and
  5521. set_base_thread_from_ravenscar_task.
  5522. 2020-08-07 Tom Tromey <tromey@adacore.com>
  5523. * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
  5524. 2020-08-07 Tom Tromey <tromey@adacore.com>
  5525. * ravenscar-thread.c (ravenscar_thread_target::wait): Call
  5526. update_inferior_ptid before update_thread_list.
  5527. (temporarily_change_regcache_ptid): New class.
  5528. (ravenscar_thread_target::fetch_registers)
  5529. (ravenscar_thread_target::store_registers)
  5530. (ravenscar_thread_target::prepare_to_store): Use base thread when
  5531. forwarding operation.
  5532. 2020-08-07 Tom Tromey <tromey@adacore.com>
  5533. * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
  5534. "is_pid" case.
  5535. 2020-08-07 Tom Tromey <tromey@adacore.com>
  5536. * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
  5537. New methods.
  5538. (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
  5539. first.
  5540. (ravenscar_thread_target::add_thread): Rename from
  5541. ravenscar_add_thread.
  5542. (ravenscar_thread_target::update_thread_list): Use a lambda.
  5543. (ravenscar_thread_target::xfer_partial): New method.
  5544. 2020-08-07 Tom Tromey <tromey@adacore.com>
  5545. * ada-lang.h (ada_task_list_iterator_ftype): Now a
  5546. gdb::function_view.
  5547. (iterate_over_live_ada_tasks): Change type of argument.
  5548. * ada-tasks.c (iterate_over_live_ada_tasks): Change type
  5549. of argument.
  5550. 2020-08-07 Tom Tromey <tromey@adacore.com>
  5551. * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
  5552. Remove.
  5553. (ravenscar_thread_target::extra_thread_info): Remove.
  5554. (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
  5555. defer to target beneath for non-Ravenscar threads.
  5556. 2020-08-07 Tom Tromey <tromey@adacore.com>
  5557. * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
  5558. get_base_thread_from_ravenscar_task>: Now methods.
  5559. <m_cpu_map>: New member.
  5560. (ravenscar_thread_target::get_thread_base_cpu): Rename from
  5561. ravenscar_get_thread_base_cpu. Check m_cpu_map.
  5562. (ravenscar_thread_target::task_is_currently_active): Update.
  5563. (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
  5564. Now a method.
  5565. (ravenscar_thread_target::add_active_thread): Put initial thread
  5566. into the m_cpu_map.
  5567. 2020-08-07 Tom Tromey <tromey@adacore.com>
  5568. * ravenscar-thread.c (ravenscar_thread_target::wait): Return
  5569. event_ptid.
  5570. 2020-08-07 Tom Tromey <tromey@adacore.com>
  5571. * ravenscar-thread.c (ravenscar_thread_target::wait): Check
  5572. runtime_initialized.
  5573. 2020-08-07 Tom Tromey <tromey@adacore.com>
  5574. * ravenscar-thread.c (ravenscar_thread_target): Don't call
  5575. add_active_thread.
  5576. (ravenscar_thread_target::add_active_thread): Now public.
  5577. (ravenscar_inferior_created): Call add_active_thread after pushing
  5578. the target.
  5579. 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
  5580. * regcache.c (ptid_regcache_map): New type.
  5581. (target_ptid_regcache_map): New type.
  5582. (regcaches): Change type to target_ptid_regcache_map.
  5583. (get_thread_arch_aspace_regcache): Update to regcaches' new
  5584. type.
  5585. (regcache_thread_ptid_changed): Likewise.
  5586. (registers_changed_ptid): Likewise.
  5587. (regcaches_size): Likewise.
  5588. (regcaches_test): Update.
  5589. (regcache_thread_ptid_changed): Update.
  5590. * regcache.h (regcache_up): New type.
  5591. * gdbsupport/ptid.h (hash_ptid): New struct.
  5592. 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
  5593. * observable.h (thread_ptid_changed): Add parameter
  5594. `process_stratum_target *`.
  5595. * infrun.c (infrun_thread_ptid_changed): Add parameter
  5596. `process_stratum_target *` and use it.
  5597. (selftests): New namespace.
  5598. (infrun_thread_ptid_changed): New function.
  5599. (_initialize_infrun): Register selftest.
  5600. * regcache.c (regcache_thread_ptid_changed): Add parameter
  5601. `process_stratum_target *` and use it.
  5602. (regcache_thread_ptid_changed): New function.
  5603. (_initialize_regcache): Register selftest.
  5604. * thread.c (thread_change_ptid): Pass target to
  5605. thread_ptid_changed observable.
  5606. 2020-08-06 Caroline Tice <cmtice@google.com>
  5607. * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
  5608. (struct dwp_sections): Update field comments. Add loclists and
  5609. rnglists fields.
  5610. (struct virtual_v2_dwo_sections): Rename struct to
  5611. 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
  5612. size & offset fields for loclists and rnglists.
  5613. (struct dwp_hash_table): Add a 'v5' struct field to the union section.
  5614. (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
  5615. skipping dummy type units.
  5616. (create_dwp_hash_table): Update the large comment above the function to
  5617. discuss Version 5 DWP files as well, with references. Update all the
  5618. version checks in the function to check for version 5 as well. Add new
  5619. section at the end to create dwp hash table for version 5.
  5620. (create_dwp_v2_section): Rename function to
  5621. 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
  5622. Add V5 to error message text.
  5623. (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
  5624. into calls to create_dwp_v2_or_v5_section.
  5625. (create_dwo_unit_in_dwp_v5): New function.
  5626. (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
  5627. check for version2; add else clause to handle version 5.
  5628. (open_and_init_dwo_file): Add code to check dwarf version & only call
  5629. create_debug_types_hash_table (with sections.types) if version is not 5;
  5630. else call create_debug_type_hash_table, with sections.info.
  5631. (dwarf2_locate_v2_dwp_sections): Update function comment to mention
  5632. version 5.
  5633. (dwarf2_locate_v5_dwp_sections): New function.
  5634. (open_and_init_dwp_file): Add else-if clause for version 5 to call
  5635. bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
  5636. 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
  5637. * regcache.h (class regcache): Remove friend
  5638. registers_changed_ptid.
  5639. <regcache_thread_ptid_changed>: Remove.
  5640. <regcaches>: Remove.
  5641. * regcache.c (regcache::regcaches): Rename to...
  5642. (regcaches): ... this. Make static.
  5643. (get_thread_arch_aspace_regcache): Update.
  5644. (regcache::regcache_thread_ptid_changed): Rename to...
  5645. (regcache_thread_ptid_changed): ... this. Update.
  5646. (class regcache_access): Remove.
  5647. (regcaches_test): Update.
  5648. (_initialize_regcache): Update.
  5649. * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
  5650. <forward_list>.
  5651. 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
  5652. * regcache.h (class regcache) <current_regcache>: Rename to...
  5653. <regcaches>: ... this. Move doc here.
  5654. * regcache.c (regcache::current_regcache) Rename to...
  5655. (regcache::regcaches): ... this. Move doc to header.
  5656. (get_thread_arch_aspace_regcache): Update.
  5657. (regcache::regcache_thread_ptid_changed): Update.
  5658. (registers_changed_ptid): Update.
  5659. (class regcache_access) <current_regcache_size>: Rename to...
  5660. <regcaches_size>: ... this.
  5661. (current_regcache_test): Rename to...
  5662. (regcaches_test): ... this.
  5663. (_initialize_regcache): Update.
  5664. 2020-08-06 Victor Collod <vcollod@nvidia.com>
  5665. * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
  5666. 2020-08-05 Kevin Buettner <kevinb@redhat.com>
  5667. * corelow.c (core_target::build_file_mappings): Don't output
  5668. null pathname in warning.
  5669. 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
  5670. * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
  5671. gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
  5672. gdb.dwarf2/dw2-single-line-discriminators.exp,
  5673. dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
  5674. 2020-08-05 Tom Tromey <tromey@adacore.com>
  5675. PR rust/26197:
  5676. * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
  5677. (quirk_rust_enum): Call alloc_rust_variant for univariant case.
  5678. Fix off-by-one and type size errors in ordinary case.
  5679. 2020-08-05 Tom de Vries <tdevries@suse.de>
  5680. * gdbtypes.c (type_not_allocated, type_not_associated): Use
  5681. "prop->const_val () == 0" instead of "prop->const_val () != 0".
  5682. 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
  5683. * frame.h (frame_id_p): Return bool.
  5684. (frame_id_artificial_p): Return bool.
  5685. (frame_id_eq): Return bool.
  5686. (has_stack_frames): Return bool.
  5687. (get_selected_frame): Fix typo in comment.
  5688. (get_frame_pc_if_available): Return bool.
  5689. (get_frame_address_in_block_if_available): Return bool.
  5690. (get_frame_func_if_available): Return bool.
  5691. (read_frame_register_unsigned): Return bool.
  5692. (get_frame_register_bytes): Return bool.
  5693. (safe_frame_unwind_memory): Return bool.
  5694. (deprecated_frame_register_read): Return bool.
  5695. (frame_unwinder_is): Return bool.
  5696. * frame.c (struct frame_info) <prev_arch::p>: Change type to
  5697. bool.
  5698. <this_id::p>: Likewise.
  5699. <prev_p>: Likewise.
  5700. (frame_stash_add): Return bool.
  5701. (get_frame_id): Use bool.
  5702. (frame_id_build_special) Use bool.
  5703. (frame_id_build_unavailable_stack): Use bool.
  5704. (frame_id_build): Use bool.
  5705. (frame_id_p): Return bool, use true/false instead of 1/0.
  5706. (frame_id_artificial_p): Likewise.
  5707. (frame_id_eq): Likewise.
  5708. (frame_id_inner): Likewise.
  5709. (get_frame_func_if_available): Likewise.
  5710. (read_frame_register_unsigned): Likewise.
  5711. (deprecated_frame_register_read): Likewise.
  5712. (get_frame_register_bytes): Likewise.
  5713. (has_stack_frames): Likewise.
  5714. (inside_main_func): Likewise.
  5715. (inside_entry_func): Likewise.
  5716. (get_frame_pc_if_available): Likewise.
  5717. (get_frame_address_in_block_if_available): Likewise.
  5718. (frame_unwinder_is): Likewise.
  5719. (safe_frame_unwind_memory): Likewise.
  5720. (frame_unwind_arch): Likewise.
  5721. 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
  5722. * frame.c (frame_info) <prev_func> <p>: Rename to status, change
  5723. type to cached_copy_status.
  5724. (fprintf_frame): Adjust.
  5725. (get_frame_func_if_available): Adjust.
  5726. (frame_cleanup_after_sniffer): Adjust.
  5727. 2020-08-04 Mark Wielaard <mark@klomp.org>
  5728. * MAINTAINERS (Write After Approval): Update email address.
  5729. 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
  5730. * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
  5731. dynamic_prop::const_val.
  5732. 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
  5733. * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
  5734. dynamic_prop::kind.
  5735. 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
  5736. * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
  5737. 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
  5738. * configure.tgt: Set gdb_sim for bpf-*-* targets.
  5739. 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
  5740. Jose E. Marchesi <jose.marchesi@oracle.com>
  5741. * configure.tgt: Add entry for bpf-*-*.
  5742. * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
  5743. (ALLDEPFILES): Add bpf-tdep.c.
  5744. * bpf-tdep.c: New file.
  5745. * MAINTAINERS: Add bpf target and maintainer.
  5746. * NEWS: Mention the support for the new target.
  5747. 2020-08-04 Tom de Vries <tdevries@suse.de>
  5748. PR symtab/23270
  5749. * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
  5750. Error.
  5751. 2020-08-03 John Baldwin <jhb@FreeBSD.org>
  5752. * syscalls/freebsd.xml: Regenerate.
  5753. 2020-08-03 John Baldwin <jhb@FreeBSD.org>
  5754. * syscalls/update-freebsd.sh: Fix usage and year range.
  5755. 2020-08-03 Tom de Vries <tdevries@suse.de>
  5756. PR symtab/26333
  5757. * dwarf2/read.c (dwarf_decode_lines_1): Ignore
  5758. DW_LNE_lo_user/DW_LNE_hi_user range.
  5759. 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
  5760. PR ada/26318
  5761. * ada-lang.c (ada_modulus): Return 0 if property is not of const
  5762. kind.
  5763. 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  5764. * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
  5765. 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  5766. * breakpoint.c (set_breakpoint_condition): Update the condition
  5767. expressions after checking that the input condition string parses
  5768. successfully and does not contain junk at the end.
  5769. 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  5770. * breakpoint.c (set_breakpoint_condition): Update the
  5771. condition string after parsing the new condition successfully.
  5772. 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  5773. * proc-api.c (_STRUCTURED_PROC): Don't define.
  5774. * proc-events.c: Likewise.
  5775. * proc-flags.c: Likewise.
  5776. * proc-why.c: Likewise.
  5777. * procfs.c: Likewise.
  5778. * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
  5779. * configure, config.in: Regenerate.
  5780. 2020-07-30 Tom de Vries <tdevries@suse.de>
  5781. PR build/26320
  5782. * ui-style.h (struct ui_file_style::color): Wrap m_value and
  5783. m_red/m_green/m_blue in a union.
  5784. 2020-07-29 Tom de Vries <tdevries@suse.de>
  5785. PR tdep/26280
  5786. * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
  5787. 2020-07-28 Tom Tromey <tromey@adacore.com>
  5788. PR symtab/26270:
  5789. * symtab.h (find_pc_partial_function_sym): Declare.
  5790. * cli/cli-cmds.c (disassemble_command): Use
  5791. find_pc_partial_function_sym. Check asm_demangle.
  5792. * blockframe.c (cache_pc_function_sym): New global.
  5793. (cache_pc_function_name): Remove.
  5794. (clear_pc_function_cache): Update.
  5795. (find_pc_partial_function_sym): New function, from
  5796. find_pc_partial_function.
  5797. (find_pc_partial_function): Rewrite using
  5798. find_pc_partial_function_sym.
  5799. 2020-07-28 Tom Tromey <tromey@adacore.com>
  5800. * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
  5801. help. Add usage.
  5802. 2020-07-28 Tom Tromey <tromey@adacore.com>
  5803. * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
  5804. <DW_OP_GNU_variable_value>: Cast to address type.
  5805. 2020-07-28 Kamil Rytarowski <n54@gmx.com>
  5806. * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
  5807. * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
  5808. * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
  5809. (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
  5810. (nbsd_get_siginfo_type): New.
  5811. (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
  5812. (_initialize_nbsd_tdep): New.
  5813. 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
  5814. PR binutils/26301
  5815. * configure: Regenerated.
  5816. 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
  5817. PR binutils/26301
  5818. * configure: Regenerated.
  5819. 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
  5820. * python/py-frame.c: Remove 'user-regs.h' include.
  5821. (frapy_read_register): Rewrite to make use of
  5822. gdbpy_parse_register_id.
  5823. * python/py-registers.c (gdbpy_parse_register_id): New function,
  5824. moved here from python/py-unwind.c. Updated the return type, and
  5825. also accepts register descriptor objects.
  5826. * python/py-unwind.c: Remove 'user-regs.h' include.
  5827. (pyuw_parse_register_id): Moved to python/py-registers.c.
  5828. (unwind_infopy_add_saved_register): Update to use
  5829. gdbpy_parse_register_id.
  5830. (pending_framepy_read_register): Likewise.
  5831. * python/python-internal.h (gdbpy_parse_register_id): Declare.
  5832. 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
  5833. * python/py-registers.c: Add 'user-regs.h' include.
  5834. (register_descriptor_iter_find): New function.
  5835. (register_descriptor_iterator_object_methods): New static global
  5836. methods array.
  5837. (register_descriptor_iterator_object_type): Add pointer to methods
  5838. array.
  5839. 2020-07-27 John Baldwin <jhb@FreeBSD.org>
  5840. * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
  5841. for all architectures on FreeBSD 11.3 and later.
  5842. 2020-07-27 Tom Tromey <tromey@adacore.com>
  5843. * gcore.h (load_corefile): Don't declare.
  5844. 2020-07-27 Tom de Vries <tdevries@suse.de>
  5845. * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
  5846. * config.in: Regenerate.
  5847. * configure: Regenerate.
  5848. 2020-07-26 Eli Zaretskii <eliz@gnu.org>
  5849. * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
  5850. ws2tcpip.h. When checking whether socklen_t type is defined, use
  5851. ws2tcpip.h if it is available and sys/socket.h isn't.
  5852. * configure: Regenerate.
  5853. * config.in: Regenerate.
  5854. 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
  5855. PR fortran/23051
  5856. PR fortran/26139
  5857. * valops.c (value_ind): Pass address to
  5858. readjust_indirect_value_type.
  5859. * value.c (readjust_indirect_value_type): Make parameter
  5860. non-const, and add extra address parameter. Resolve original type
  5861. before using it.
  5862. * value.h (readjust_indirect_value_type): Update function
  5863. signature and comment.
  5864. 2020-07-25 Tom de Vries <tdevries@suse.de>
  5865. PR symtab/26243
  5866. * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
  5867. entries.
  5868. 2020-07-24 Aaron Merey <amerey@redhat.com>
  5869. * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
  5870. * configure: Rebuild.
  5871. 2020-07-23 Kevin Buettner <kevinb@redhat.com>
  5872. PR corefiles/26294
  5873. * corelow.c (_initialize_corelow): Add period to help text
  5874. for "maintenance print core-file-backed-mappings".
  5875. 2020-07-23 Pedro Alves <pedro@palves.net>
  5876. * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
  5877. touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
  5878. meanwhile.
  5879. * frame.c (frame_cache_generation, get_frame_cache_generation):
  5880. New.
  5881. (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
  5882. (get_prev_frame_if_no_cycle): On exception, don't touch
  5883. PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
  5884. * frame.h (get_frame_cache_generation): Declare.
  5885. 2020-07-23 Tom de Vries <tdevries@suse.de>
  5886. PR tui/26282
  5887. * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
  5888. New default constructor.
  5889. 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
  5890. * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
  5891. exclude non-statement entries.
  5892. 2020-07-22 Kevin Buettner <kevinb@redhat.com>
  5893. * NEWS (New commands): Mention new command
  5894. "maintenance print core-file-backed-mappings".
  5895. 2020-07-22 Kevin Buettner <kevinb@redhat.com>
  5896. * corelow.c (gdbcmd.h): Include.
  5897. (core_target::info_proc_mappings): New method.
  5898. (get_current_core_target): New function.
  5899. (maintenance_print_core_file_backed_mappings): New function.
  5900. (_initialize_corelow): Add core-file-backed-mappings to
  5901. "maint print" commands.
  5902. 2020-07-22 Kevin Buettner <kevinb@redhat.com>
  5903. * linux-tdep.c (dump_note_entry_p): New function.
  5904. (linux_dump_mapping_p_ftype): New typedef.
  5905. (linux_find_memory_regions_full): Add new parameter,
  5906. should_dump_mapping_p.
  5907. (linux_find_memory_regions): Adjust call to
  5908. linux_find_memory_regions_full.
  5909. (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
  5910. call to linux_find_memory_regions_full.
  5911. 2020-07-22 Kevin Buettner <kevinb@redhat.com>
  5912. * corelow.c (solist.h, unordered_map): Include.
  5913. (class core_target): Add field m_core_file_mappings and
  5914. method build_file_mappings.
  5915. (core_target::core_target): Call build_file_mappings.
  5916. (core_target::~core_target): Free memory associated with
  5917. m_core_file_mappings.
  5918. (core_target::build_file_mappings): New method.
  5919. (core_target::xfer_partial): Use m_core_file_mappings
  5920. for memory transfers.
  5921. * linux-tdep.c (linux_read_core_file_mappings): New
  5922. function.
  5923. (linux_core_info_proc_mappings): Rewrite to use
  5924. linux_read_core_file_mappings.
  5925. (linux_init_abi): Register linux_read_core_file_mappings.
  5926. 2020-07-22 Kevin Buettner <kevinb@redhat.com>
  5927. * arch-utils.c (default_read_core_file_mappings): New function.
  5928. * arch-utils.c (default_read_core_file_mappings): Declare.
  5929. * gdbarch.sh (read_core_file_mappings): New gdbarch method.
  5930. * gdbarch.h, gdbarch.c: Regenerate.
  5931. 2020-07-22 Kevin Buettner <kevinb@redhat.com>
  5932. PR corefiles/25631
  5933. * corelow.c (core_target:xfer_partial): Revise
  5934. TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
  5935. case after first checking the stratum beneath the core
  5936. target.
  5937. (has_all_memory): Return true.
  5938. * target.c (raw_memory_xfer_partial): Revise comment
  5939. regarding use of has_all_memory.
  5940. 2020-07-22 Kevin Buettner <kevinb@redhat.com>
  5941. * exec.h (section_table_xfer_memory): Revise declaration,
  5942. replacing section name parameter with an optional callback
  5943. predicate.
  5944. * exec.c (section_table_xfer_memory): Likewise.
  5945. * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
  5946. of section_table_xfer_memory.
  5947. 2020-07-22 Tom Tromey <tromey@adacore.com>
  5948. * mi/mi-cmd-stack.c (list_args_or_locals): Use
  5949. lookup_symbol_search_name.
  5950. 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
  5951. * python/py-registers.c (gdbpy_register_object_data_init): Remove
  5952. redundant local variable.
  5953. (gdbpy_get_register_descriptor): Extract descriptor vector as a
  5954. reference, not pointer, update code accordingly.
  5955. 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
  5956. Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  5957. * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
  5958. * jit.c (jit_breakpoint_re_set_internal): Use the
  5959. `skip_jit_symbol_lookup` field.
  5960. 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
  5961. Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  5962. * jit.c (jit_read_descriptor): Define the descriptor address once,
  5963. use twice.
  5964. (jit_breakpoint_deleted): Move the declaration of the loop variable
  5965. `iter` into the loop header.
  5966. (jit_breakpoint_re_set_internal): Move the declaration of the local
  5967. variable `objf_data` to the first point of definition.
  5968. (jit_event_handler): Move the declaration of local variables
  5969. `code_entry`, `entry_addr`, and `objf` to their first point of use.
  5970. Rename `objf` to `jited`.
  5971. 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
  5972. * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
  5973. Remove.
  5974. * jit.c (get_jiter_objfile_data): Update.
  5975. 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  5976. Simon Marchi <simon.marchi@polymtl.ca>
  5977. * jit.c (struct jit_program_space_data): Remove.
  5978. (jit_program_space_key): Remove.
  5979. (jiter_objfile_data::~jiter_objfile_data): Remove program space
  5980. stuff.
  5981. (get_jit_program_space_data): Remove.
  5982. (jit_breakpoint_deleted): Iterate on all of the program space's
  5983. objfiles.
  5984. (jit_inferior_init): Likewise.
  5985. (jit_breakpoint_re_set_internal): Likewise. Also change return
  5986. type to void.
  5987. (jit_breakpoint_re_set): Pass current_program_space to
  5988. jit_breakpoint_re_set_internal.
  5989. 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
  5990. * jit.h (struct jiter_objfile_data) <cached_code_address,
  5991. jit_breakpoint>: Move to here from ...
  5992. * jit.c (jit_program_space_data): ... here.
  5993. (jiter_objfile_data::~jiter_objfile_data): Update.
  5994. (jit_breakpoint_deleted): Update.
  5995. (jit_breakpoint_re_set_internal): Update.
  5996. 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
  5997. * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
  5998. checks.
  5999. (jit_read_descriptor): Remove NULL check.
  6000. (jit_event_handler): Add an assertion.
  6001. 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
  6002. * jit.h (struct jit_objfile_data): Split into...
  6003. (struct jiter_objfile_data): ... this ...
  6004. (struct jited_objfile_data): ... and this.
  6005. * objfiles.h (struct objfile) <jit_data>: Remove.
  6006. <jiter_data, jited_data>: New fields.
  6007. * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
  6008. (jiter_objfile_data::~jiter_objfile_data): ... this.
  6009. (get_jit_objfile_data): Rename to ...
  6010. (get_jiter_objfile_data): ... this.
  6011. (add_objfile_entry): Update.
  6012. (jit_read_descriptor): Use get_jiter_objfile_data.
  6013. (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
  6014. (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
  6015. (jit_inferior_exit_hook): Use objfile's jited_data field.
  6016. 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
  6017. * jit.h: Forward-declare `struct minimal_symbol`.
  6018. (struct jit_objfile_data): Migrate to here from jit.c; also add a
  6019. constructor, destructor, and an objfile* field.
  6020. * jit.c (jit_objfile_data): Remove.
  6021. (struct jit_objfile_data): Migrate from here to jit.h.
  6022. (jit_objfile_data::~jit_objfile_data): New destructor
  6023. implementation with code moved from free_objfile_data.
  6024. (free_objfile_data): Delete.
  6025. (get_jit_objfile_data): Update to use the jit_data field of objfile.
  6026. (jit_find_objf_with_entry_addr): Ditto.
  6027. (jit_inferior_exit_hook): Ditto.
  6028. (_initialize_jit): Remove the call to
  6029. register_objfile_data_with_cleanup.
  6030. * objfiles.h (struct objfile) <jit_data>: New field.
  6031. 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  6032. * jit.h: Forward-declare `struct objfile`.
  6033. (jit_event_handler): Add a second parameter, the JITer objfile.
  6034. * jit.c (jit_read_descriptor): Change the signature to take the
  6035. JITer objfile as an argument instead of the jit_program_space_data.
  6036. (jit_inferior_init): Update the call to jit_read_descriptor.
  6037. (jit_event_handler): Use the new JITer objfile argument when calling
  6038. jit_read_descriptor.
  6039. * breakpoint.c (handle_jit_event): Update the call to
  6040. jit_event_handler to pass the JITer objfile.
  6041. 2020-07-21 John Baldwin <jhb@FreeBSD.org>
  6042. * gdbarch.c: Regenerate.
  6043. * gdbarch.h: Regenerate.
  6044. * gdbarch.sh (handle_segmentation_fault): Remove method.
  6045. * infrun.c (handle_segmentation_fault): Remove.
  6046. (print_signal_received_reason): Remove call to
  6047. handle_segmentation_fault.
  6048. 2020-07-21 John Baldwin <jhb@FreeBSD.org>
  6049. * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
  6050. Rename to sparc64_linux_report_signal_info and add siggnal
  6051. argument.
  6052. (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
  6053. instead of sparc64_linux_handle_segmentation_fault.
  6054. 2020-07-21 John Baldwin <jhb@FreeBSD.org>
  6055. * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
  6056. i386_linux_report_signal_info instead of
  6057. i386_linux_handle_segmentation_fault.
  6058. * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
  6059. to i386_linux_report_signal_info and add siggnal argument.
  6060. (i386_linux_init_abi): Use i386_linux_report_signal_info instead
  6061. of i386_linux_handle_segmentation_fault.
  6062. * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
  6063. to i386_linux_report_signal_info and add siggnal argument.
  6064. 2020-07-21 John Baldwin <jhb@FreeBSD.org>
  6065. * corelow.c (core_target_open): Invoke gdbarch report_signal_info
  6066. hook if present.
  6067. 2020-07-21 John Baldwin <jhb@FreeBSD.org>
  6068. * gdbarch.c: Regenerate.
  6069. * gdbarch.h: Regenerate.
  6070. * gdbarch.sh (report_signal_info): New method.
  6071. * infrun.c (print_signal_received_reason): Invoke gdbarch
  6072. report_signal_info hook if present.
  6073. 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
  6074. * python/py-registers.c : Add 'unordered_map' include.
  6075. (gdbpy_new_reggroup): Renamed to...
  6076. (gdbpy_get_reggroup): ...this. Update to only create register
  6077. group descriptors when needed.
  6078. (gdbpy_reggroup_iter_next): Update.
  6079. 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
  6080. * python/py-registers.c (gdbpy_register_object_data): New static
  6081. global.
  6082. (gdbpy_register_object_data_init): New function.
  6083. (gdbpy_new_register_descriptor): Renamed to...
  6084. (gdbpy_get_register_descriptor): ...this, and update to reuse
  6085. existing register descriptors where possible.
  6086. (gdbpy_register_descriptor_iter_next): Update.
  6087. (gdbpy_initialize_registers): Register new gdbarch data.
  6088. 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
  6089. * linux-nat.c (stopped_pids): Make static.
  6090. 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
  6091. PR ada/26235
  6092. * gdbtypes.c (ada_discrete_type_low_bound,
  6093. ada_discrete_type_high_bound): Handle undefined bounds.
  6094. 2020-07-21 Kamil Rytarowski <n54@gmx.com>
  6095. * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
  6096. declaration.
  6097. * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
  6098. function.
  6099. 2020-07-20 John Baldwin <jhb@FreeBSD.org>
  6100. * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
  6101. (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
  6102. * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
  6103. * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
  6104. (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
  6105. method.
  6106. 2020-07-20 Ludovic Courtès <ludo@gnu.org>
  6107. * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
  6108. and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
  6109. which are deprecated in Guile 3.0.
  6110. * configure.ac (try_guile_versions): Add "guile-3.0".
  6111. * configure (try_guile_versions): Regenerate.
  6112. * NEWS: Update entry.
  6113. 2020-07-20 Ludovic Courtès <ludo@gnu.org>
  6114. Doug Evans <dje@google.com>
  6115. PR gdb/21104
  6116. * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
  6117. (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
  6118. USING_GUILE_BEFORE_2_2.
  6119. (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
  6120. Change type to 'scm_t_port_type *'.
  6121. (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
  6122. (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
  6123. parameter and honor it. Update callers.
  6124. (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
  6125. (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
  6126. functions.
  6127. (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
  6128. USING_GUILE_BEFORE_2_2.
  6129. (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
  6130. 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
  6131. (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
  6132. (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
  6133. and 'SCM_PORT_TYPE'.
  6134. (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
  6135. (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
  6136. (gdbscm_memory_port_read, gdbscm_memory_port_write)
  6137. (gdbscm_memory_port_seek, gdbscm_memory_port_close)
  6138. [!USING_GUILE_BEFORE_2_2]: New functions.
  6139. (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
  6140. (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
  6141. 'gdbscm_memory_port_read'.
  6142. Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
  6143. 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
  6144. (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
  6145. function.
  6146. (ioscm_init_memory_port): Remove.
  6147. (ioscm_init_memory_port_stream): New function
  6148. (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
  6149. function.
  6150. (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
  6151. Return scm_from_uint (0).
  6152. (gdbscm_set_memory_port_read_buffer_size_x)
  6153. [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
  6154. (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
  6155. Return scm_from_uint (0).
  6156. (gdbscm_set_memory_port_write_buffer_size_x)
  6157. [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
  6158. * configure.ac (try_guile_versions): Add "guile-2.2".
  6159. * configure: Regenerate.
  6160. * NEWS: Add entry.
  6161. 2020-07-18 Tom Tromey <tom@tromey.com>
  6162. * linux-nat.c (linux_multi_process): Remove.
  6163. (linux_nat_target::supports_multi_process): Return true.
  6164. 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
  6165. * arch/riscv.c (riscv_tdesc_cache): Change map type.
  6166. (riscv_lookup_target_description): Return pointer out of
  6167. unique_ptr.
  6168. * target-descriptions.c (allocate_target_description): Add
  6169. comment.
  6170. (target_desc_deleter::operator()): Likewise.
  6171. * target-descriptions.h (struct target_desc_deleter): Moved to
  6172. gdbsupport/tdesc.h.
  6173. (target_desc_up): Likewise.
  6174. 2020-07-17 Tom Tromey <tromey@adacore.com>
  6175. * linux-nat.c (linux_nat_target::supports_non_stop)
  6176. (linux_nat_target::always_non_stop_p): Use "true".
  6177. (linux_nat_target::supports_disable_randomization): Use "true" and
  6178. "false".
  6179. 2020-07-16 Caroline Tice <cmtice@google.com>
  6180. * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
  6181. (RNGLIST_HEADER_SIZE64): New constant definition.
  6182. (struct dwop_section_names): Add rnglists_dwo.
  6183. (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
  6184. (struct loclist_header): Rename to 'loclists_rnglists_header'.
  6185. (struct dwo_sections): Add rnglists field.
  6186. (read_attribut_reprocess): Add tag parameter.
  6187. (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
  6188. (cu_debug_rnglists_section): New function (decl & definition).
  6189. (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
  6190. (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
  6191. die whose range is being checked; get rnglist section from
  6192. cu_debug_rnglists_section, to get from either objfile or dwo file as
  6193. appropriate. Add cases for DW_RLE_base_addressx,
  6194. DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
  6195. the base address to DW_RLE_offset_pairs (not to all ranges), moving
  6196. test inside if-condition and updating complaint message.
  6197. (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
  6198. dwarf2_rnglists_process.
  6199. (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
  6200. dwarf2_ranges_process.
  6201. (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
  6202. need_ranges_base and update comment appropriately. Also pass die tag
  6203. to dwarf2_ranges_read.
  6204. (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
  6205. need_ranges_base and update comment appropriately. Also pass die tag
  6206. to dwarf2_ranges_process.
  6207. (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
  6208. cu->ranges_base. Also pass die tag to read_attribute_reprocess.
  6209. (partial_die_info::read): Check for DW_FORM_rnglistx when setting
  6210. need_ranges_base and update comment appropriately. Also pass die tag
  6211. to read_attribute_reprocess and dwarf2_ranges_read.
  6212. (read_loclist_header): Rename function to read_loclists_rnglists_header,
  6213. and update function comment appropriately.
  6214. (read_loclist_index): Call read_loclists_rnglists_header instead of
  6215. read_loclist_header.
  6216. (read_rnglist_index): New function.
  6217. (read_attribute_reprocess): Add tag parameter. Add code for
  6218. DW_FORM_rnglistx, passing tag to read_rnglist_index.
  6219. (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
  6220. 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
  6221. * f-typeprint.c (f_type_print_base): Allow for dynamic types not
  6222. being resolved.
  6223. 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
  6224. * arch-utils.c (show_architecture): Update formatting of messages.
  6225. 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
  6226. * gdbtypes.h (struct type) <bounds>: Handle array and string
  6227. types.
  6228. * ada-lang.c (assign_aggregate): Use type::bounds on
  6229. array/string type.
  6230. * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
  6231. * c-varobj.c (c_number_of_children): Likewise.
  6232. (c_describe_child): Likewise.
  6233. * eval.c (evaluate_subexp_for_sizeof): Likewise.
  6234. * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
  6235. (f_type_print_base): Likewise.
  6236. * f-valprint.c (f77_array_offset_tbl): Likewise.
  6237. (f77_get_upperbound): Likewise.
  6238. (f77_print_array_1): Likewise.
  6239. * guile/scm-type.c (gdbscm_type_range): Likewise.
  6240. * m2-typeprint.c (m2_array): Likewise.
  6241. (m2_is_long_set_of_type): Likewise.
  6242. * m2-valprint.c (get_long_set_bounds): Likewise.
  6243. * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
  6244. * python/py-type.c (typy_range): Likewise.
  6245. * rust-lang.c (rust_internal_print_type): Likewise.
  6246. * type-stack.c (type_stack::follow_types): Likewise.
  6247. * valarith.c (value_subscripted_rvalue): Likewise.
  6248. * valops.c (value_cast): Likewise.
  6249. 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
  6250. * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
  6251. callers to use the equivalent accessor methods.
  6252. 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
  6253. * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
  6254. (struct type) <bit_stride>: New method.
  6255. (TYPE_BIT_STRIDE): Remove.
  6256. * gdbtypes.c (update_static_array_size): Use type::bit_stride.
  6257. 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
  6258. * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
  6259. TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
  6260. callers to use the equivalent accessor methods instead.
  6261. 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
  6262. * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
  6263. TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
  6264. callers to use the equivalent accessor methods instead.
  6265. 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
  6266. * gdbtypes.h (TYPE_LOW_BOUND_KIND,
  6267. TYPE_HIGH_BOUND_KIND): Remove. Update all callers
  6268. to use dynamic_prop::kind.
  6269. 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
  6270. * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
  6271. TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
  6272. to get the bound property's kind and check against
  6273. PROP_UNDEFINED.
  6274. 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
  6275. * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
  6276. all callers to use type::range_bounds followed by
  6277. dynamic_prop::{low,high}.
  6278. 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
  6279. * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
  6280. const_val, set_const_val, baton, set_locexpr, set_loclist,
  6281. set_addr_offset, variant_parts, set_variant_parts,
  6282. original_type, set_original_type>: New methods.
  6283. <kind>: Rename to...
  6284. <m_kind>: ... this. Update all users to use the new methods
  6285. instead.
  6286. <data>: Rename to...
  6287. <m_data>: ... this. Update all users to use the new methods
  6288. instead.
  6289. 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
  6290. * gdbtypes.c (get_discrete_bounds): Return failure if
  6291. the range type's bounds are not both defined and constant
  6292. values.
  6293. (get_array_bounds): Update comment. Remove undefined bound check.
  6294. 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
  6295. * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
  6296. the type::bounds method directly.
  6297. 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
  6298. * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
  6299. (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
  6300. are used to set the range type's bounds to use set_bounds.
  6301. 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  6302. * exec.c (_initialize_exec): Update exec-file-mismatch help.
  6303. 2020-07-10 Pedro Alves <pedro@palves.net>
  6304. * gdbthread.h (inferior_ref): Define.
  6305. (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
  6306. (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
  6307. * thread.c
  6308. (scoped_restore_current_thread::restore):
  6309. Adjust to gdb::ref_ptr.
  6310. (scoped_restore_current_thread::~scoped_restore_current_thread):
  6311. Remove manual decref handling.
  6312. (scoped_restore_current_thread::scoped_restore_current_thread):
  6313. Adjust to use
  6314. inferior_ref::new_reference/thread_info_ref::new_reference.
  6315. Incref the thread before calling get_frame_id instead of after.
  6316. Let TARGET_CLOSE_ERROR propagate.
  6317. 2020-07-10 Pedro Alves <pedro@palves.net>
  6318. * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
  6319. NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
  6320. NOT_AVAILABLE_ERROR.
  6321. * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
  6322. OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
  6323. 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
  6324. Pedro Alves <pedro@palves.net>
  6325. PR gdb/26199
  6326. * infrun.c (threads_are_resumed_pending_p): Delete.
  6327. (do_target_wait): Remove threads_are_executing and
  6328. threads_are_resumed_pending_p checks from the inferior_matches
  6329. lambda. Update comments.
  6330. 2020-07-10 Pedro Alves <pedro@palves.net>
  6331. PR gdb/26199
  6332. * infrun.c (handle_no_resumed): Transfer terminal to inferior with
  6333. executing threads.
  6334. 2020-07-10 Pedro Alves <pedro@palves.net>
  6335. PR gdb/26199
  6336. * infrun.c (handle_no_resumed): Handle multiple targets.
  6337. 2020-07-10 Pedro Alves <pedro@palves.net>
  6338. PR gdb/26199
  6339. * infrun.c (prepare_to_wait): Check target_can_async_p instead of
  6340. target_is_async_p.
  6341. 2020-07-10 Pedro Alves <pedro@palves.net>
  6342. PR gdb/26199
  6343. * target.c (target_pass_ctrlc): Look at the inferior's non-exited
  6344. threads, not all threads.
  6345. 2020-07-10 Pedro Alves <pedro@palves.net>
  6346. PR gdb/26199
  6347. * remote.c (remote_target::open_1): Pass remote target pointer as
  6348. data to create_async_event_handler.
  6349. (remote_async_inferior_event_handler): Mark async event handler
  6350. before returning if the remote target still has either pending
  6351. events or unacknowledged notifications.
  6352. 2020-07-10 John Baldwin <jhb@FreeBSD.org>
  6353. * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
  6354. declaration.
  6355. * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
  6356. function.
  6357. 2020-07-09 John Baldwin <jhb@FreeBSD.org>
  6358. * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
  6359. inferior_ptid.
  6360. 2020-07-09 John Baldwin <jhb@FreeBSD.org>
  6361. * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
  6362. AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
  6363. AT_FREEBSD_PS_STRINGS.
  6364. 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
  6365. * auto-load.c (auto_load_objfile_script_1): Convert drive part
  6366. of debugfile path on Windows.
  6367. 2020-07-08 John Baldwin <jhb@FreeBSD.org>
  6368. * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
  6369. argument to 'data'.
  6370. 2020-07-08 Tom Tromey <tromey@adacore.com>
  6371. * ada-lang.c (ada_exception_message_1): Use read_memory.
  6372. 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
  6373. PR python/22748
  6374. * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
  6375. special handling for inline frames.
  6376. * findvar.c (value_of_register_lazy): Skip inline frames when
  6377. creating lazy register values.
  6378. * frame.c (frame_id_computed_p): Delete definition.
  6379. * frame.h (frame_id_computed_p): Delete declaration.
  6380. 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
  6381. * NEWS: Mention additions to Python API.
  6382. * python/py-arch.c (archpy_register_groups): New function.
  6383. (arch_object_methods): Add 'register_groups' method.
  6384. * python/py-registers.c (reggroup_iterator_object): New struct.
  6385. (reggroup_object): New struct.
  6386. (gdbpy_new_reggroup): New function.
  6387. (gdbpy_reggroup_to_string): New function.
  6388. (gdbpy_reggroup_name): New function.
  6389. (gdbpy_reggroup_iter): New function.
  6390. (gdbpy_reggroup_iter_next): New function.
  6391. (gdbpy_new_reggroup_iterator): New function
  6392. (gdbpy_initialize_registers): Register new types.
  6393. (reggroup_iterator_object_type): Define new Python type.
  6394. (gdbpy_reggroup_getset): New static global.
  6395. (reggroup_object_type): Define new Python type.
  6396. * python/python-internal.h
  6397. 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
  6398. * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
  6399. * python/py-arch.c (archpy_registers): New function.
  6400. (arch_object_methods): Add 'registers' method.
  6401. * python/py-registers.c: New file.
  6402. * python/python-internal.h
  6403. (gdbpy_new_register_descriptor_iterator): Declare.
  6404. (gdbpy_initialize_registers): Declare.
  6405. * python/python.c (do_start_initialization): Call
  6406. gdbpy_initialize_registers.
  6407. * NEWS: Mention additions to the Python API.
  6408. 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
  6409. * NEWS: Mention new Python API method.
  6410. * python/py-unwind.c (pending_framepy_architecture): New function.
  6411. (pending_frame_object_methods): Add architecture method.
  6412. 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
  6413. * gdbarch.c: Regenerate.
  6414. * gdbarch.h: Regenerate.
  6415. * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
  6416. (gdbarch_data): Use internal_error for the case where
  6417. deprecated_set_gdbarch_data was originally needed.
  6418. * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
  6419. and use passed in obstack.
  6420. (libunwind_frame_set_descr): Should no longer get back NULL from
  6421. gdbarch_data.
  6422. (_initialize_libunwind_frame): Register as a pre-init gdbarch data
  6423. type.
  6424. * user-regs.c (user_regs_init): Update parameters, and use passed
  6425. in obstack.
  6426. (user_reg_add): Should no longer get back NULL from gdbarch_data.
  6427. (_initialize_user_regs): Register as a pre-init gdbarch data type.
  6428. 2020-07-06 Tom de Vries <tdevries@suse.de>
  6429. * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
  6430. End-Of-Sequence in lte_is_less_than.
  6431. * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
  6432. "gdb: Don't reorder line table entries too much when sorting".
  6433. 2020-07-06 Tom de Vries <tdevries@suse.de>
  6434. PR tui/26205
  6435. * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
  6436. 2020-07-05 Tom de Vries <tdevries@suse.de>
  6437. PR build/26187
  6438. * inferior.h (struct infcall_suspend_state_deleter): If available, use
  6439. std::uncaught_exceptions instead of deprecated
  6440. std::uncaught_exception.
  6441. 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
  6442. * macroexp.h (macro_stringify): Return
  6443. gdb::unique_xmalloc_ptr<char>.
  6444. * macroexp.c (macro_stringify): Likewise.
  6445. * macrotab.c (fixup_definition): Update.
  6446. 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
  6447. * c-exp.y (scan_macro_expansion): Don't free `expansion`.
  6448. (lex_one_token): Update.
  6449. * macroexp.c (struct macro_buffer) <release>: Return
  6450. gdb::unique_xmalloc_ptr<char>.
  6451. (macro_stringify): Update.
  6452. (macro_expand): Update.
  6453. (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
  6454. * macroexp.h (macro_expand_next): Likewise.
  6455. 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
  6456. * macroexp.h (macro_lookup_ftype): Remove.
  6457. (macro_expand, macro_expand_once, macro_expand_next): Remove
  6458. lookup function parameters, add scope parameter.
  6459. * macroexp.c (scan, substitute_args, expand, maybe_expand,
  6460. macro_expand, macro_expand_once, macro_expand_next): Likewise.
  6461. * macroscope.h (standard_macro_lookup): Change parameter type
  6462. to macro_scope.
  6463. * macroscope.c (standard_macro_lookup): Likewise.
  6464. * c-exp.y (lex_one_token): Update.
  6465. * macrocmd.c (macro_expand_command): Likewise.
  6466. (macro_expand_once_command): Likewise.
  6467. 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
  6468. * inf-loop.c (inferior_event_handler): Remove client_data param.
  6469. * inf-loop.h (inferior_event_handler): Likewise.
  6470. * infcmd.c (step_1): Adjust.
  6471. * infrun.c (proceed): Adjust.
  6472. (fetch_inferior_event): Remove client_data param.
  6473. (infrun_async_inferior_event_handler): Adjust.
  6474. * infrun.h (fetch_inferior_event): Remove `void *` param.
  6475. * linux-nat.c (handle_target_event): Adjust.
  6476. * record-btrace.c (record_btrace_handle_async_inferior_event):
  6477. Adjust.
  6478. * record-full.c (record_full_async_inferior_event_handler):
  6479. Adjust.
  6480. * remote.c (remote_async_inferior_event_handler): Adjust.
  6481. 2020-07-01 Tom Tromey <tom@tromey.com>
  6482. * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
  6483. * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
  6484. 2020-07-01 Tom Tromey <tom@tromey.com>
  6485. * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
  6486. tui_gen_win_info.
  6487. (tui_win_info::make_window): Merge with
  6488. tui_gen_win_info::make_window.
  6489. (tui_win_info::make_visible): Move from tui_gen_win_info.
  6490. * tui/tui-win.c (tui_win_info::max_width): Move from
  6491. tui_gen_win_info.
  6492. * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
  6493. type.
  6494. <window_factory>: Likewise.
  6495. * tui/tui-layout.c (tui_win_info::resize): Move from
  6496. tui_gen_win_info.
  6497. (make_standard_window): Change return type.
  6498. (get_locator_window, tui_get_window_by_name): Likewise.
  6499. (tui_layout_window::apply): Remove a cast.
  6500. * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
  6501. (struct tui_win_info): Merge with tui_gen_win_info.
  6502. (struct tui_gen_win_info): Remove.
  6503. 2020-07-01 Tom Tromey <tom@tromey.com>
  6504. * tui/tui-stack.h (struct tui_locator_window): Derive from
  6505. tui_win_info.
  6506. <do_scroll_horizontal, do_scroll_vertical>: New methods.
  6507. <can_box>: New method.
  6508. 2020-07-01 Tom Tromey <tom@tromey.com>
  6509. * tui/tui-stack.h (struct tui_locator_window): Remove body.
  6510. 2020-07-01 Tom Tromey <tom@tromey.com>
  6511. * tui/tui-regs.c (tui_data_window::display_registers_from)
  6512. (tui_data_window::display_registers_from)
  6513. (tui_data_window::first_data_item_displayed)
  6514. (tui_data_window::delete_data_content_windows): Update.
  6515. (tui_data_window::refresh_window, tui_data_window::no_refresh):
  6516. Remove.
  6517. (tui_data_window::check_register_values): Update.
  6518. (tui_data_item_window::rerender): Add parameters. Update.
  6519. (tui_data_item_window::refresh_window): Remove.
  6520. * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
  6521. virtual.
  6522. * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
  6523. tui_gen_win_info.
  6524. <refresh_window, max_height, min_height>: Remove.
  6525. <rerender>: Add parameters.
  6526. <x, y, visible>: New members.
  6527. (struct tui_data_window) <refresh_window, no_refresh>: Remove.
  6528. <m_item_width>: New member.
  6529. 2020-07-01 Tom Tromey <tom@tromey.com>
  6530. * tui/tui-regs.c (tui_data_window::show_register_group)
  6531. (tui_data_window::check_register_values): Update.
  6532. * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
  6533. from item_no.
  6534. 2020-07-01 Tom Tromey <tom@tromey.com>
  6535. * tui/tui-regs.c (tui_data_window::show_register_group): Remove
  6536. useless "if".
  6537. 2020-07-01 Tom Tromey <tom@tromey.com>
  6538. * tui/tui-regs.c (tui_data_window::show_register_group): Update.
  6539. * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
  6540. 2020-07-01 Tom Tromey <tom@tromey.com>
  6541. * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
  6542. * tui/tui-winsource.h (enum tui_line_or_address_kind)
  6543. (struct tui_line_or_address): Move from tui-data.h.
  6544. * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
  6545. * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
  6546. (tui_cmd_window, tui_source_window_base, tui_source_window)
  6547. (tui_disasm_window): Don't declare.
  6548. (enum tui_line_or_address_kind, struct tui_line_or_address): Move
  6549. to tui-winsource.h.
  6550. (SINGLE_KEY): Move to tui-stack.c.
  6551. 2020-07-01 Tom Tromey <tom@tromey.com>
  6552. * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
  6553. std::string.
  6554. * tui/tui-regs.c (class tab_expansion_file): New.
  6555. (tab_expansion_file::write): New method.
  6556. (tui_register_format): Change return type. Use
  6557. tab_expansion_file.
  6558. (tui_get_register, tui_data_window::display_registers_from)
  6559. (tui_data_item_window::rerender): Update.
  6560. * tui/tui-io.h (tui_expand_tabs): Don't declare.
  6561. * tui/tui-io.c (tui_expand_tabs): Remove.
  6562. 2020-07-01 Tom Tromey <tom@tromey.com>
  6563. * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
  6564. 2020-07-01 Fangrui Song <maskray@google.com>
  6565. * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
  6566. 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
  6567. * dwarf2/read.c (set_die_type): Removed conditions to restrict
  6568. forms for DW_AT_associated and DW_AT_allocated attributes,
  6569. which is already checked in function attr_to_dynamic_prop.
  6570. 2020-06-30 Tom Tromey <tromey@adacore.com>
  6571. * dwarf2/read.c (quirk_rust_enum): Correctly call
  6572. alloc_rust_variant for default-less enum.
  6573. 2020-06-30 Tom Tromey <tromey@adacore.com>
  6574. PR build/26183:
  6575. * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
  6576. gdb::to_string.
  6577. 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
  6578. * gdbarch.sh (displaced_step_copy_insn): Update doc.
  6579. * gdbarch.h: Re-generate.
  6580. 2020-06-28 Tom Tromey <tom@tromey.com>
  6581. * command.h (cmd_types): Remove.
  6582. (cmd_type): Don't declare.
  6583. * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
  6584. typedef.
  6585. * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
  6586. * cli/cli-decode.c (cmd_type): Remove.
  6587. 2020-06-27 Pedro Alves <palves@redhat.com>
  6588. * fork-child.c (prefork_hook): Adjust.
  6589. * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
  6590. Delete.
  6591. (set_inferior_tty_command, show_inferior_tty_command): Adjust.
  6592. * inferior.c (inferior::set_tty, inferior::tty): New methods.
  6593. * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
  6594. Remove declarations.
  6595. (struct inferior) <set_tty, tty>: New methods.
  6596. (struct inferior) <terminal>: Rename to ...
  6597. (struct inferior) <m_terminal>: ... this and make private.
  6598. * main.c (captured_main_1): Adjust.
  6599. * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
  6600. (mi_cmd_inferior_tty_show): Adjust.
  6601. * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
  6602. * windows-nat.c (windows_nat_target::create_inferior): Adjust.
  6603. 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
  6604. * configure.ac: Add --enable-libctf: handle --disable-static
  6605. properly.
  6606. * acinclude.m4: sinclude ../config/enable.m4.
  6607. * Makefile.in (aclocal_m4_deps): Adjust accordingly.
  6608. (LIBCTF): Substitute in.
  6609. (CTF_DEPS): New, likewise.
  6610. (CLIBS): libctf needs symbols from libbfd: move earlier.
  6611. (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
  6612. flags.
  6613. * ctfread.c: Surround in ENABLE_LIBCTF.
  6614. (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
  6615. * configure: Regenerate.
  6616. * config.in: Likewise.
  6617. 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
  6618. * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
  6619. 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
  6620. * inferior.h (struct inferior) <terminal>: Change type to
  6621. gdb::unique_xmalloc_ptr<char>.
  6622. * inferior.c (inferior::~inferior): Don't free inf->terminal.
  6623. * infcmd.c (set_inferior_io_terminal): Don't free terminal
  6624. field, adjust to unique pointer.
  6625. (get_inferior_io_terminal): Adjust to unique pointer.
  6626. 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
  6627. * riscv-tdep.c (riscv_print_registers_info): Loop over all
  6628. registers, not just the known core set of registers.
  6629. 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
  6630. * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
  6631. fflags, frm, and fcsr registers.
  6632. (riscv_register_reggroup_p): Remove unknown CSRs from save and
  6633. restore groups.
  6634. (riscv_tdesc_unknown_reg): New function.
  6635. (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
  6636. tdesc_use_registers.
  6637. * riscv-tdep.h (struct gdbarch_tdep): Add
  6638. unknown_csrs_first_regnum, unknown_csrs_count,
  6639. duplicate_fflags_regnum, duplicate_frm_regnum, and
  6640. duplicate_fcsr_regnum fields.
  6641. 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
  6642. * target-descriptions.c (tdesc_use_registers): Add new parameter a
  6643. callback, use the callback (when not null) to help number unknown
  6644. registers.
  6645. * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
  6646. (tdesc_use_registers): Add extra parameter to declaration.
  6647. 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
  6648. * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
  6649. in the file.
  6650. (class riscv_pending_register_alias): Likewise.
  6651. (riscv_register_feature::register_info): Change 'required_p' field
  6652. to 'required', and change its type. Add 'check' member function.
  6653. (riscv_register_feature::register_info::check): Define new member
  6654. function.
  6655. (riscv_xreg_feature): Change initialisation of 'required' field.
  6656. (riscv_freg_feature): Likewise.
  6657. (riscv_virtual_feature): Likewise.
  6658. (riscv_csr_feature): Likewise.
  6659. (riscv_check_tdesc_feature): Take extra parameter, the csr
  6660. tdesc_feature, rewrite the function to use the new
  6661. riscv_register_feature::register_info::check function.
  6662. (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
  6663. 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
  6664. * features/Makefile: Remove all references to the deleted files
  6665. below.
  6666. * features/riscv/32bit-csr.c: Deleted.
  6667. * features/riscv/32bit-csr.xml: Deleted.
  6668. * features/riscv/64bit-csr.c: Deleted.
  6669. * features/riscv/64bit-csr.xml: Deleted.
  6670. * features/riscv/rebuild-csr-xml.sh: Deleted.
  6671. 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
  6672. * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
  6673. whitespace error for declaration of names member variable.
  6674. (struct riscv_register_feature): Add new prefer_first_name member
  6675. variable, and fix whitespace error in declaration of registers.
  6676. (riscv_xreg_feature): Initialize prefer_first_name field.
  6677. (riscv_freg_feature): Likewise.
  6678. (riscv_virtual_feature): Likewise.
  6679. (riscv_csr_feature): Likewise.
  6680. (riscv_register_name): Expand on comments. Remove register name
  6681. modifications for CSR and virtual registers.
  6682. 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
  6683. * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
  6684. errors.
  6685. 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
  6686. * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
  6687. riscv-opc.h.
  6688. (class riscv_pending_register_alias): New class.
  6689. (riscv_check_tdesc_feature): Take vector of pending aliases and
  6690. populate it as appropriate.
  6691. (riscv_setup_register_aliases): Delete.
  6692. (riscv_gdbarch_init): Create vector of pending aliases and pass it
  6693. to riscv_check_tdesc_feature in all cases. Use the vector to
  6694. create the register aliases.
  6695. 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  6696. * sol2-tdep.c (sol2_static_transform_name): Remove.
  6697. (sol2_init_abi): Don't register it.
  6698. * gdbarch.sh (static_transform_name): Remove.
  6699. * gdbarch.c, gdbarch.h: Regenerate.
  6700. * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
  6701. gdbarch_static_transform_name.
  6702. * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
  6703. * stabsread.c (define_symbol) <'X'>: Remove.
  6704. (define_symbol) <'S'>: Remove gdbarch_static_transform_name
  6705. handling.
  6706. <'V'>: Likewise.
  6707. * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
  6708. <'S'>: Remove call to gdbarch_static_transform_name.
  6709. 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  6710. * procfs.c (procfs_pre_trace): New function.
  6711. (procfs_target::create_inferior): Pass it to fork_inferior.
  6712. 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  6713. * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
  6714. sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
  6715. <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
  6716. sol2-tdep.o, sparc-sol2-tdep.o.
  6717. * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
  6718. * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
  6719. * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
  6720. * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
  6721. 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  6722. * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
  6723. (amd64_sol2_init_abi): Use sol2_sigtramp_p.
  6724. Call sol2_init_abi.
  6725. Remove calls to set_gdbarch_skip_solib_resolver,
  6726. set_gdbarch_core_pid_to_str.
  6727. * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
  6728. (i386_sol2_static_transform_name): Remove.
  6729. (i386_sol2_init_abi): Call sol2_init_abi.
  6730. Remove calls to set_gdbarch_sofun_address_maybe_missing,
  6731. set_gdbarch_static_transform_name,
  6732. set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
  6733. Use sol2_sigtramp_p.
  6734. * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
  6735. (sol2_sigtramp_p): New function.
  6736. (sol2_static_transform_name): New function.
  6737. (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
  6738. (sol2_init_abi): New function.
  6739. * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
  6740. (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
  6741. * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
  6742. (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
  6743. (sparc_sol2_static_transform_name): Remove.
  6744. (sparc32_sol2_init_abi): Call sol2_init_abi.
  6745. Remove calls to set_gdbarch_sofun_address_maybe_missing,
  6746. set_gdbarch_static_transform_name,
  6747. set_gdbarch_skip_solib_resolver,
  6748. set_gdbarch_core_pid_to_str.
  6749. * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
  6750. (sparc_sol2_static_transform_name): Remove
  6751. * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
  6752. call sol2_sigtramp_p.
  6753. (sparc64_sol2_init_abi): Call sol2_init_abi.
  6754. Remove calls to set_gdbarch_sofun_address_maybe_missing,
  6755. set_gdbarch_static_transform_name,
  6756. set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
  6757. 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  6758. * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
  6759. * exec.c (validate_exec_file): If from_tty, set both
  6760. SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
  6761. * symfile.c (symbol_file_add_with_addrs): if always_confirm
  6762. and from_tty, unconditionally ask a confirmation.
  6763. 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
  6764. * target-descriptions.c (tdesc_architecture_name): Protect against
  6765. NULL pointer dereference.
  6766. (maint_print_xml_tdesc_cmd): New function.
  6767. (_initialize_target_descriptions): Register new 'maint print
  6768. xml-tdesc' command and give it the filename completer.
  6769. * NEWS: Mention new 'maint print xml-tdesc' command.
  6770. 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
  6771. * target-descriptions.c (class tdesc_compatible_info): New class.
  6772. (struct target_desc): Change type of compatible vector.
  6773. (tdesc_compatible_p): Update for change in type of
  6774. target_desc::compatible.
  6775. (tdesc_compatible_info_list): New function.
  6776. (tdesc_compatible_info_arch_name): New function.
  6777. (tdesc_add_compatible): Update for change in type of
  6778. target_desc::compatible.
  6779. (print_c_tdesc::visit_pre): Likewise.
  6780. 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
  6781. * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
  6782. whitespace to underscore.
  6783. (maint_print_c_tdesc_cmd): Use fake filename for target
  6784. descriptions that came from the target.
  6785. (_initialize_target_descriptions): Add filename command completion
  6786. for 'maint print c-tdesc'.
  6787. 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
  6788. * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
  6789. lines.
  6790. 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
  6791. * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
  6792. lines.
  6793. (dwarf2_find_location_expression): Likewise.
  6794. (call_site_parameter_matches): Likewise.
  6795. (dwarf2_compile_expr_to_ax): Likewise.
  6796. (disassemble_dwarf_expression): Likewise.
  6797. (loclist_describe_location): Likewise.
  6798. 2020-06-23 Pedro Alves <palves@redhat.com>
  6799. * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
  6800. progspace-and-thread.h. Include scoped-mock-context.h instead.
  6801. (register_to_value_test): Use scoped_mock_context.
  6802. * regcache.c: Include "scoped-mock-context.h".
  6803. (cooked_read_test): Don't error out if a target is already pushed.
  6804. Use scoped_mock_context. Adjust.
  6805. * scoped-mock-context.h: New file.
  6806. 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
  6807. * ada-lang.c (ada_language_data): Delete la_is_string_type_p
  6808. initializer.
  6809. (ada_language::is_string_type_p): New member function.
  6810. * c-lang.c (c_language_data): Delete la_is_string_type_p
  6811. initializer.
  6812. (cplus_language_data): Likewise.
  6813. (asm_language_data): Likewise.
  6814. (minimal_language_data): Likewise.
  6815. * d-lang.c (d_language_data): Likewise.
  6816. * f-lang.c (f_is_string_type_p): Delete function, implementation
  6817. moved to f_language::is_string_type_p.
  6818. (f_language_data): Delete la_is_string_type_p initializer.
  6819. (f_language::is_string_type_p): New member function,
  6820. implementation from f_is_string_type_p.
  6821. * go-lang.c (go_is_string_type_p): Delete function, implementation
  6822. moved to go_language::is_string_type_p.
  6823. (go_language_data): Delete la_is_string_type_p initializer.
  6824. (go_language::is_string_type_p): New member function,
  6825. implementation from go_is_string_type_p.
  6826. * language.c (language_defn::is_string_type_p): Define new member
  6827. function.
  6828. (default_is_string_type_p): Make static, add comment copied from
  6829. header file.
  6830. (unknown_language_data): Delete la_is_string_type_p initializer.
  6831. (unknown_language::is_string_type_p): New member function.
  6832. (auto_language_data): Delete la_is_string_type_p initializer.
  6833. (auto_language::is_string_type_p): New member function.
  6834. * language.h (language_data): Delete la_is_string_type_p field.
  6835. (language_defn::is_string_type_p): Declare new function.
  6836. (default_is_string_type_p): Delete desclaration, move comment to
  6837. definition.
  6838. * m2-lang.c (m2_is_string_type_p): Delete function, implementation
  6839. moved to m2_language::is_string_type_p.
  6840. (m2_language_data): Delete la_is_string_type_p initializer.
  6841. (m2_language::is_string_type_p): New member function,
  6842. implementation from m2_is_string_type_p.
  6843. * objc-lang.c (objc_language_data): Delete la_is_string_type_p
  6844. initializer.
  6845. * opencl-lang.c (opencl_language_data): Likewise.
  6846. * p-lang.c (pascal_is_string_type_p): Delete function,
  6847. implementation moved to pascal_language::is_string_type_p.
  6848. (pascal_language_data): Delete la_is_string_type_p initializer.
  6849. (pascal_language::is_string_type_p): New member function,
  6850. implementation from pascal_is_string_type_p.
  6851. * rust-lang.c (rust_is_string_type_p): Delete function,
  6852. implementation moved to rust_language::is_string_type_p.
  6853. (rust_language_data): Delete la_is_string_type_p initializer.
  6854. (rust_language::is_string_type_p): New member function,
  6855. implementation from rust_is_string_type_p.
  6856. * valprint.c (val_print_scalar_or_string_type_p): Update call to
  6857. is_string_type_p.
  6858. 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
  6859. * ada-lang.c (ada_language_data): Delete la_print_typedef
  6860. initializer.
  6861. (ada_language::print_typedef): New member function.
  6862. * c-lang.c (c_language_data): Delete la_print_typedef initializer.
  6863. (cplus_language_data): Likewise.
  6864. (asm_language_data): Likewise.
  6865. (minimal_language_data): Likewise.
  6866. * d-lang.c (d_language_data): Likewise.
  6867. * f-lang.c (f_language_data): Likewise.
  6868. (f_language::print_typedef): New member function.
  6869. * go-lang.c (go_language_data): Delete la_print_typedef
  6870. initializer.
  6871. * language.c (language_defn::print_typedef): Define member
  6872. function.
  6873. (unknown_language_data): Delete la_print_typedef initializer.
  6874. (unknown_language::print_typedef): New member function.
  6875. (auto_language_data): Delete la_print_typedef initializer.
  6876. (auto_language::print_typedef): New member function.
  6877. * language.h (language_data): Delete la_print_typedef field.
  6878. (language_defn::print_typedef): Declare new member function.
  6879. (LA_PRINT_TYPEDEF): Update call to print_typedef.
  6880. (default_print_typedef): Delete declaration.
  6881. * m2-lang.c (m2_language_data): Delete la_print_typedef
  6882. initializer.
  6883. (m2_language::print_typedef): New member function.
  6884. * objc-lang.c (objc_language_data): Delete la_print_typedef
  6885. initializer.
  6886. * opencl-lang.c (opencl_language_data): Likewise.
  6887. * p-lang.c (pascal_language_data): Likewise.
  6888. (pascal_language::print_typedef): New member function.
  6889. * rust-lang.c (rust_print_typedef): Delete function,
  6890. implementation moved to rust_language::print_typedef.
  6891. (rust_language): Delete la_print_typedef initializer.
  6892. (rust_language::print_typedef): New member function,
  6893. implementation from rust_print_typedef.
  6894. * typeprint.c (default_print_typedef): Delete.
  6895. 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
  6896. * ada-lang.c (ada_language_data): Delete la_printstr initializer.
  6897. (ada_language::printstr): New member function.
  6898. * c-lang.c (c_language_data): Delete la_printstr initializer.
  6899. (cplus_language_data): Likewise.
  6900. (asm_language_data): Likewise.
  6901. (minimal_language_data): Likewise.
  6902. * d-lang.c (d_language_data): Likewise.
  6903. * f-lang.c (f_printstr): Rename to f_language::printstr.
  6904. (f_language_data): Delete la_printstr initializer.
  6905. (f_language::printstr): New member function, implementation from
  6906. f_printstr.
  6907. * go-lang.c (go_language_data): Delete la_printstr initializer.
  6908. * language.c (language_defn::printstr): Define new member
  6909. function.
  6910. (unk_lang_printstr): Delete.
  6911. (unknown_language_data): Delete la_printstr initializer.
  6912. (unknown_language::printstr): New member function.
  6913. (auto_language_data): Delete la_printstr initializer.
  6914. (auto_language::printstr): New member function.
  6915. * language.h (language_data): Delete la_printstr field.
  6916. (language_defn::printstr): Declare new member function.
  6917. (LA_PRINT_STRING): Update call to printstr.
  6918. * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
  6919. (m2_language_data): Delete la_printstr initializer.
  6920. (m2_language::printstr): New member function, implementation from
  6921. m2_printstr.
  6922. * objc-lang.c (objc_language_data): Delete la_printstr
  6923. initializer.
  6924. * opencl-lang.c (opencl_language_data): Likewise.
  6925. * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
  6926. (pascal_language_data): Delete la_printstr initializer.
  6927. (pascal_language::printstr): New member function, implementation
  6928. from pascal_printstr.
  6929. * p-lang.h (pascal_printstr): Delete declaration.
  6930. * rust-lang.c (rust_printstr): Update header comment.
  6931. (rust_language_data): Delete la_printstr initializer.
  6932. (rust_language::printstr): New member function.
  6933. 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
  6934. * ada-lang.c (ada_language_data): Delete la_printchar initializer.
  6935. (ada_language::printchar): New member function.
  6936. * c-lang.c (c_language_data): Delete la_printchar initializer.
  6937. (cplus_language_data): Likewise.
  6938. (asm_language_data): Likewise.
  6939. (minimal_language_data): Likewise.
  6940. * d-lang.c (d_language_data): Likewise.
  6941. * f-lang.c (f_printchar): Rename to f_language::printchar.
  6942. (f_language_data): Delete la_printchar initializer.
  6943. (f_language::printchar): New member function, implementation from
  6944. f_printchar.
  6945. * go-lang.c (go_language_data): Delete la_printchar initializer.
  6946. * language.c (unk_lang_printchar): Delete.
  6947. (language_defn::printchar): Define new member function.
  6948. (unknown_language_data): Delete la_printchar initializer.
  6949. (unknown_language::printchar): New member function.
  6950. (auto_language_data): Delete la_printchar initializer.
  6951. (auto_language::printchar): New member function.
  6952. * language.h (language_data): Delete la_printchar field.
  6953. (language_defn::printchar): Declare new member function.
  6954. (LA_PRINT_CHAR): Update call to printchar.
  6955. * m2-lang.c (m2_language_data): Delete la_printchar initializer.
  6956. (m2_language::printchar): New member function.
  6957. * objc-lang.c (objc_language_data): Delete la_printchar
  6958. initializer.
  6959. * opencl-lang.c (opencl_language_data): Likewise.
  6960. * p-lang.c (pascal_language_data): Delete la_printchar
  6961. initializer.
  6962. (pascal_language::printchar): New member function.
  6963. * rust-lang.c (rust_printchar): Rename to
  6964. rust_language::printchar.
  6965. (rust_language_data): Delete la_printchar initializer.
  6966. (rust_language::printchar): New member function, implementation
  6967. from rust_printchar.
  6968. 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
  6969. * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
  6970. (ada_language_data): Delete la_emitchar initializer.
  6971. (ada_language::emitchar): New member function, implementation from
  6972. emit_char.
  6973. * c-lang.c (c_language_data): Delete la_emitchar initializer.
  6974. (cplus_language_data): Likewise.
  6975. (asm_language_data): Likewise.
  6976. (minimal_language_data): Likewise.
  6977. * d-lang.c (d_language_data): Likewise.
  6978. * f-lang.c (f_emit_char): Rename to f_language::emitchar.
  6979. (f_language_data): Delete la_emitchar initializer.
  6980. (f_language::emitchar): New member function, implementation from
  6981. f_emit_char.
  6982. * go-lang.c (go_language_data): Delete la_emitchar initializer.
  6983. * language.c (unk_lang_emit_char): Delete.
  6984. (language_defn::emitchar): New member function definition.
  6985. (unknown_language_data): Delete la_emitchar initializer.
  6986. (unknown_language::emitchar): New member function.
  6987. (auto_language_data): Delete la_emitchar initializer.
  6988. (auto_language::emitchar): New member function.
  6989. * language.h (language_data): Delete la_emitchar field.
  6990. (language_defn::emitchar): New member field declaration.
  6991. (LA_EMIT_CHAR): Update call to emitchar.
  6992. * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
  6993. (m2_language_data): Delete la_emitchar initializer.
  6994. (m2_language::emitchar): New member function, implementation from
  6995. m2_emit_char.
  6996. * objc-lang.c (objc_language_data): Delete la_emitchar
  6997. initializer.
  6998. * opencl-lang.c (opencl_language_data): Likewise.
  6999. * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
  7000. (pascal_language_data): Delete la_emitchar initializer.
  7001. (pascal_language::emitchar): New member function, implementation
  7002. from pascal_emit_char.
  7003. * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
  7004. (rust_language_data): Delete la_emitchar initializer.
  7005. (rust_language::emitchar): New member function, implementation
  7006. from rust_emitchar.
  7007. 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
  7008. * ada-lang.c (resolve): Rename to ada_language::post_parser.
  7009. (ada_language_data): Delete la_post_parser initializer.
  7010. (ada_language::post_parser): New member function.
  7011. * c-lang.c (c_language_data): Delete la_post_parser initializer.
  7012. (cplus_language_data): Likewise.
  7013. (asm_language_data): Likewise.
  7014. (minimal_language_data): Likewise.
  7015. * d-lang.c (d_language_data): Likewise.
  7016. * f-lang.c (f_language_data): Likewise.
  7017. * go-lang.c (go_language_data): Likewise.
  7018. * language.c (unknown_language_data): Likewise.
  7019. (auto_language_data): Likewise.
  7020. * language.h (language_data): Delete la_post_parser field.
  7021. (language_defn::post_parser): New member function.
  7022. * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
  7023. * objc-lang.c (objc_language_data): Likewise.
  7024. * opencl-lang.c (opencl_language_data): Likewise.
  7025. * p-lang.c (pascal_language_data): Likewise.
  7026. * parse.c (parse_exp_in_context): Update call to post_parser.
  7027. (null_post_parser): Delete definition.
  7028. * parser-defs.h (null_post_parser): Delete declaration.
  7029. * rust-lang.c (rust_language_data): Delete la_post_parser
  7030. initializer.
  7031. 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
  7032. * ada-lang.c (parse): Rename to ada_language::parser.
  7033. (ada_language_data): Delete la_parser initializer.
  7034. (ada_language::parser): New member function, implementation from
  7035. parse.
  7036. * c-lang.c (c_language_data): Delete la_parser initializer.
  7037. (cplus_language_data): Likewise.
  7038. (asm_language_data): Likewise.
  7039. (minimal_language_data): Likewise.
  7040. * d-lang.c (d_language_data): Likewise.
  7041. (d_language::parser): New member function.
  7042. * f-lang.c (f_language_data): Delete la_parser initializer.
  7043. (f_language::parser): New member function.
  7044. * go-lang.c (go_language_data): Delete la_parser initializer.
  7045. (go_language::parser): New member function.
  7046. * language.c (unk_lang_parser): Delete.
  7047. (language_defn::parser): Define new member function.
  7048. (unknown_language_data): Delete la_parser initializer.
  7049. (unknown_language::parser): New member function.
  7050. (auto_language_data): Delete la_parser initializer.
  7051. (auto_language::parser): New member function.
  7052. * language.h (language_data): Delete la_parser field.
  7053. (language_defn::parser): Declare new member function.
  7054. * m2-lang.c (m2_language_data): Delete la_parser initializer.
  7055. (m2_language::parser): New member function.
  7056. * objc-lang.c (objc_language_data): Delete la_parser initializer.
  7057. * opencl-lang.c (opencl_language_data): Likewise.
  7058. * p-lang.c (pascal_language_data): Likewise.
  7059. (pascal_language::parser): New member function.
  7060. * parse.c (parse_exp_in_context): Update call to parser.
  7061. * rust-lang.c (rust_language_data): Delete la_parser initializer.
  7062. (rust_language::parser): New member function.
  7063. 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
  7064. * top.c (print_gdb_configuration): Print --with-python-libdir
  7065. configuration value.
  7066. 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  7067. * NEWS: Mention change to the alias command.
  7068. 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  7069. * cli/cli-cmds.c (lookup_cmd_for_default_args)
  7070. (alias_command_completer)
  7071. (make_alias_options_def_group): New functions.
  7072. (alias_opts, alias_option_defs): New struct and array.
  7073. (alias_usage_error): Update usage.
  7074. (alias_command): Handles optional DEFAULT-ARGS... arguments.
  7075. Use option framework.
  7076. (_initialize_cli_cmds): Update alias command help.
  7077. Update aliases command help.
  7078. (show_user):
  7079. Add NULL for new default_args lookup_cmd argument.
  7080. (valid_command_p): Rename to validate_aliased_command.
  7081. Add NULL for new default_args lookup_cmd argument. Verify that the
  7082. aliased_command has no default args.
  7083. * cli/cli-decode.c (help_cmd): Show aliases definitions.
  7084. (lookup_cmd_1, lookup_cmd): New argument default_args.
  7085. (add_alias_cmd):
  7086. Add NULL for new default_args lookup_cmd argument.
  7087. (print_help_for_command): Show default args under the layout
  7088. alias some_alias = some_aliased_cmd some_alias_default_arg.
  7089. * cli/cli-decode.h (struct cmd_list_element): New member default_args.
  7090. xfree default_args in destructor.
  7091. * cli/cli-script.c (process_next_line, do_define_command):
  7092. Add NULL for new default_args lookup_cmd argument.
  7093. * command.h: Declare new default_args argument in lookup_cmd
  7094. and lookup_cmd_1.
  7095. * completer.c (complete_line_internal_1):
  7096. Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
  7097. * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
  7098. * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
  7099. Likewise.
  7100. * infcmd.c (_initialize_infcmd): Likewise.
  7101. * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
  7102. * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
  7103. * python/py-param.c (add_setshow_generic): Likewise.
  7104. * remote.c (_initialize_remote): Likewise.
  7105. * top.c (execute_command): Prepend default_args if command has some.
  7106. (set_verbose):
  7107. Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
  7108. * tracepoint.c (validate_actionline, encode_actions_1):
  7109. Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
  7110. 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  7111. * jit.c (jit_read_descriptor): Use bool as the return type.
  7112. (jit_breakpoint_re_set_internal): Use bool as the return type.
  7113. Invert the return value logic; return true if the jit breakpoint
  7114. has been successfully initialized.
  7115. (jit_inferior_init): Update the call to
  7116. jit_breakpoint_re_set_internal.
  7117. 2020-06-22 Pedro Alves <palves@redhat.com>
  7118. PR gdb/25939
  7119. * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
  7120. Use the current inferior instead. Don't return
  7121. TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
  7122. wait again.
  7123. * sol-thread.c (sol_thread_target::wait): Don't reference
  7124. inferior_ptid.
  7125. (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
  7126. (sol_update_thread_list_callback): Use the current inferior's pid
  7127. instead of inferior_ptid.
  7128. 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  7129. * procfs.c: Cleanup many comments.
  7130. (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
  7131. (AFTER_WATCHFLAG): Replace by value.
  7132. (MAIN_PROC_NAME_FORMAT): Inline ...
  7133. (create_procinfo): ... here.
  7134. (procfs_debug_inferior): Remove SYS_exec handling.
  7135. (syscall_is_exec): Likewise.
  7136. (procfs_set_exec_trap): Likewise.
  7137. (syscall_is_lwp_exit): Inline in callers.
  7138. (syscall_is_exit): Likewise.
  7139. (syscall_is_exec): Likewise.
  7140. (syscall_is_lwp_create): Likewise.
  7141. (invalidate_cache): Remove #if 0 code.
  7142. (make_signal_thread_runnable): Remove.
  7143. (procfs_target::resume): Remove #if 0 code.
  7144. 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  7145. PR gdb/25939
  7146. * procfs.c (procfs_target::procfs_init_inferior): Move push_target
  7147. call ...
  7148. (procfs_target::create_inferior): ... here.
  7149. 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  7150. * exec.c (validate_exec_file): Ensure the build-id is up to
  7151. date by calling reopen_exec_file (that checks file timestamp
  7152. to decide to re-read the file).
  7153. 2020-06-18 Pedro Alves <palves@redhat.com>
  7154. PR gdb/25412
  7155. * gdbthread.h (delete_thread, delete_thread_silent)
  7156. (find_thread_ptid): Update comments.
  7157. * thread.c (current_thread_): New global.
  7158. (is_current_thread): Move higher, and reimplement.
  7159. (inferior_thread): Reimplement.
  7160. (set_thread_exited): Use bool. Add assertions.
  7161. (add_thread_silent): Simplify thread-reuse handling by always
  7162. calling delete_thread.
  7163. (delete_thread): Remove intro comment.
  7164. (find_thread_ptid): Skip exited threads.
  7165. (switch_to_thread_no_regs): Write to current_thread_.
  7166. (switch_to_no_thread): Check CURRENT_THREAD_ instead of
  7167. INFERIOR_PTID. Clear current_thread_.
  7168. 2020-06-18 Pedro Alves <palves@redhat.com>
  7169. * aix-thread.c (pd_update): Use switch_to_thread.
  7170. 2020-06-18 Pedro Alves <palves@redhat.com>
  7171. * ravenscar-thread.c (ravenscar_thread_target): Update.
  7172. (ravenscar_thread_target::update_inferior_ptid): Rename to ...
  7173. (ravenscar_thread_target::add_active_thread): ... this. Don't
  7174. set m_base_ptid here. Update to avoid referencing inferior_ptid.
  7175. (ravenscar_thread_target::wait): Don't write to inferior_ptid.
  7176. 2020-06-18 Pedro Alves <palves@redhat.com>
  7177. * nat/windows-nat.c (current_windows_thread): Remove.
  7178. * nat/windows-nat.h (current_windows_thread): Remove.
  7179. * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
  7180. Adjust.
  7181. (display_selectors): Adjust to fetch the current
  7182. windows_thread_info based on inferior_ptid.
  7183. (fake_create_process): No longer write to current_windows_thread.
  7184. (windows_nat_target::get_windows_debug_event):
  7185. Don't set inferior_ptid or current_windows_thread.
  7186. (windows_nat_target::wait): Adjust to not rely on
  7187. current_windows_thread.
  7188. (do_initial_windows_stuff): Now a method of windows_nat_target.
  7189. Switch to the last_ptid thread.
  7190. (windows_nat_target::attach): Adjust.
  7191. (windows_nat_target::detach): Use switch_to_no_thread instead of
  7192. writing to inferior_ptid directly.
  7193. (windows_nat_target::create_inferior): Adjust.
  7194. 2020-06-18 Pedro Alves <palves@redhat.com>
  7195. * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
  7196. 2020-06-18 Pedro Alves <palves@redhat.com>
  7197. * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
  7198. after creating it, instead of writing to inferior_ptid. Don't
  7199. write to inferior_ptid.
  7200. 2020-06-18 Pedro Alves <palves@redhat.com>
  7201. * fork-child.c (postfork_hook): Don't write to inferior_ptid.
  7202. 2020-06-18 Pedro Alves <palves@redhat.com>
  7203. * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
  7204. it, instead of writing to inferior_ptid.
  7205. 2020-06-18 Pedro Alves <palves@redhat.com>
  7206. * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
  7207. to inferior_ptid.
  7208. 2020-06-18 Pedro Alves <palves@redhat.com>
  7209. * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
  7210. instead of writing to inferior_ptid directly.
  7211. 2020-06-18 Pedro Alves <palves@redhat.com>
  7212. * corelow.c (core_target::close): Use switch_to_no_thread instead
  7213. of writing to inferior_ptid directly.
  7214. (add_to_thread_list, core_target_open): Use switch_to_thread
  7215. instead of writing to inferior_ptid directly.
  7216. 2020-06-18 Pedro Alves <palves@redhat.com>
  7217. * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
  7218. inferior_ptid.
  7219. (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
  7220. inferior_ptid.
  7221. (darwin_attach_pid): Use switch_to_no_thread instead of writing to
  7222. inferior_ptid directly.
  7223. (darwin_nat_target::init_thread_list): Switch to thread, instead
  7224. of writing to inferior_ptid.
  7225. (darwin_nat_target::attach): Don't write to inferior_ptid.
  7226. (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
  7227. 2020-06-18 Pedro Alves <palves@redhat.com>
  7228. * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
  7229. thread.
  7230. (gnu_nat_target::attach): Don't write to inferior_ptid directly.
  7231. Instead use switch_to_thread.
  7232. (gnu_nat_target::detach): Use switch_to_no_thread
  7233. instead of writing to inferior_ptid directly. Used passed-in
  7234. inferior instead of looking up the inferior by pid.
  7235. 2020-06-18 Pedro Alves <palves@redhat.com>
  7236. * go32-nat.c (go32_nat_target::create_inferior): Don't write to
  7237. inferior_ptid.
  7238. 2020-06-18 Pedro Alves <palves@redhat.com>
  7239. * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
  7240. inferior_ptid.
  7241. (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
  7242. thread.
  7243. (nto_procfs_target::detach): Avoid referencing
  7244. inferior_ptid. Use switch_to_no_thread instead of writing to
  7245. inferior_ptid directly.
  7246. (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
  7247. instead of writing to inferior_ptid directly.
  7248. (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
  7249. to thread.
  7250. 2020-06-18 Pedro Alves <palves@redhat.com>
  7251. * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
  7252. after creating it, instead of writing to inferior_ptid.
  7253. (gdbsim_target_open): Use switch_to_no_thread instead of writing
  7254. to inferior_ptid directly.
  7255. (gdbsim_target::wait): Don't write to inferior_ptid.
  7256. 2020-06-18 Pedro Alves <palves@redhat.com>
  7257. * remote.c (remote_target::remote_notice_new_inferior): Use
  7258. switch_to_thread instead of writing to inferior_ptid directly.
  7259. (remote_target::add_current_inferior_and_thread): Use
  7260. switch_to_no_thread instead of writing to inferior_ptid directly.
  7261. (extended_remote_target::attach): Use switch_to_inferior_no_thread
  7262. and switch_to_thread instead of using set_current_inferior or
  7263. writing to inferior_ptid directly.
  7264. 2020-06-18 Pedro Alves <palves@redhat.com>
  7265. * tracectf.c (ctf_target_open): Switch to added thread instead of
  7266. writing to inferior_ptid directly.
  7267. (ctf_target::close): Use switch_to_no_thread instead of writing to
  7268. inferior_ptid directly.
  7269. 2020-06-18 Pedro Alves <palves@redhat.com>
  7270. * tracefile-tfile.c (tfile_target_open): Don't write to
  7271. inferior_ptid directly, instead switch to added thread.
  7272. (tfile_target::close): Use switch_to_no_thread instead of writing
  7273. to inferior_ptid directly.
  7274. 2020-06-18 Pedro Alves <palves@redhat.com>
  7275. * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
  7276. (procfs_target::detach): Use switch_to_no_thread
  7277. instead of writing to inferior_ptid directly.
  7278. (do_attach): Change return type to void. Switch to the added
  7279. thread.
  7280. (procfs_target::create_inferior): Switch to the added thread.
  7281. (procfs_do_thread_registers): Don't write to inferior_ptid.
  7282. 2020-06-18 Pedro Alves <palves@redhat.com>
  7283. * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
  7284. of writing to inferior_ptid.
  7285. (scoped_restore_exited_inferior): Delete.
  7286. (handle_vfork_child_exec_or_exit): Simplify using
  7287. scoped_restore_current_pspace_and_thread. Use switch_to_thread
  7288. instead of writing to inferior_ptid.
  7289. (THREAD_STOPPED_BY): Delete.
  7290. (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
  7291. (thread_stopped_by_hw_breakpoint): Delete.
  7292. (save_waitstatus): Use
  7293. scoped_restore_current_thread+switch_to_thread, and call
  7294. target_stopped_by_watchpoint instead of
  7295. thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
  7296. instead of thread_stopped_by_sw_breakpoint, and
  7297. target_stopped_by_hw_breakpoint instead of
  7298. thread_stopped_by_hw_breakpoint.
  7299. (handle_inferior_event)
  7300. <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
  7301. inferior_ptid directly, nor
  7302. set_current_inferior/set_current_program_space. Use
  7303. switch_to_thread / switch_to_inferior_no_thread instead.
  7304. 2020-06-18 Pedro Alves <palves@redhat.com>
  7305. * target.c (generic_mourn_inferior): Use switch_to_no_thread
  7306. instead of writing to inferior_ptid.
  7307. 2020-06-18 Pedro Alves <palves@redhat.com>
  7308. * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
  7309. added thread.
  7310. (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
  7311. to the added thread.
  7312. (inf_ptrace_target::detach_success): Use switch_to_no_thread
  7313. instead of writing to inferior_ptid.
  7314. 2020-06-18 Pedro Alves <palves@redhat.com>
  7315. * gdbarch-selftests.c: Include "progspace-and-thread.h".
  7316. (register_to_value_test): Mock a program_space too. Heap-allocate
  7317. the address space. Don't write to inferior_ptid. Use
  7318. switch_to_thread instead.
  7319. 2020-06-18 Pedro Alves <palves@redhat.com>
  7320. * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
  7321. Delete.
  7322. (find_signalled_thread()): New, factored out from
  7323. linux_make_corefile_notes and adjusted to handle exited threads.
  7324. (linux_make_corefile_notes): Adjust to use the new
  7325. find_signalled_thread.
  7326. 2020-06-18 Pedro Alves <palves@redhat.com>
  7327. * linux-tdep.c (btrace_fetch): Save/restore current thread instead
  7328. of saving/restoring inferior_ptid.
  7329. 2020-06-17 Tom Tromey <tom@tromey.com>
  7330. * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
  7331. (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
  7332. declare.
  7333. * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
  7334. 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
  7335. * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
  7336. of partial symtabs.
  7337. 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
  7338. * regformats/reg-arm.dat: Remove.
  7339. * regformats/reg-bfin.dat: Remove.
  7340. * regformats/reg-cris.dat: Remove.
  7341. * regformats/reg-crisv32.dat: Remove.
  7342. * regformats/reg-m32r.dat: Remove.
  7343. * regformats/reg-tilegx.dat: Remove.
  7344. * regformats/reg-tilegx32.dat: Remove.
  7345. 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
  7346. * features/Makefile (WHICH): Remove arm files.
  7347. * regformats/arm/arm-with-iwmmxt.dat: Remove.
  7348. * regformats/arm/arm-with-neon.dat: Remove.
  7349. * regformats/arm/arm-with-vfpv2.dat: Remove.
  7350. * regformats/arm/arm-with-vfpv3.dat: Remove.
  7351. 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
  7352. * features/Makefile (XMLTOC): Remove rx.xml.
  7353. 2020-06-17 Pedro Alves <palves@redhat.com>
  7354. * gdbthread.h (thread_control_state) <trap_expected> Update
  7355. comments.
  7356. 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
  7357. * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
  7358. ada_language::lookup_symbol_nonlocal.
  7359. (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
  7360. (ada_language::lookup_symbol_nonlocal): New member function,
  7361. implementation from ada_lookup_symbol_nonlocal.
  7362. * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
  7363. initializer.
  7364. (cplus_language_data): Delete la_lookup_symbol_nonlocal
  7365. initializer.
  7366. (cplus_language::lookup_symbol_nonlocal): New member function.
  7367. (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
  7368. (minimal_language_data) Likewise.
  7369. * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
  7370. * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
  7371. initializer.
  7372. (d_language::lookup_symbol_nonlocal): New member function.
  7373. * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
  7374. initializer.
  7375. (f_language::lookup_symbol_nonlocal): New member function.
  7376. * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
  7377. initializer.
  7378. * language.c (unknown_language_data): Likewise.
  7379. (auto_language_data): Likewise.
  7380. * language.h (language_data): Delete la_lookup_symbol_nonlocal
  7381. field.
  7382. (language_defn::lookup_symbol_nonlocal): New member function.
  7383. * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
  7384. initializer.
  7385. * objc-lang.c (objc_language_data): Likewise.
  7386. * opencl-lang.c (opencl_language_data): Likewise.
  7387. * p-lang.c (pascal_language_data): Likewise.
  7388. * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
  7389. rust_language::lookup_symbol_nonlocal.
  7390. (rust_language_data): Delete la_lookup_symbol_nonlocal
  7391. initializer.
  7392. (rust_language::lookup_symbol_nonlocal): New member function,
  7393. implementation from rust_lookup_symbol_nonlocal.
  7394. * symtab.c (lookup_symbol_aux): Update call to
  7395. lookup_symbol_nonlocal.
  7396. (basic_lookup_symbol_nonlocal): Rename to...
  7397. (language_defn::lookup_symbol_nonlocal): ...this, and update
  7398. header comment. Remove language_defn parameter, and replace with
  7399. uses of `this'.
  7400. * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
  7401. 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
  7402. * ada-lang.c (ada_language_data): Delete la_value_print_inner
  7403. initializer.
  7404. (ada_language::value_print_inner): New member function.
  7405. * c-lang.c (c_language_data): Delete la_value_print_inner
  7406. initializer.
  7407. (cplus_language_data): Likewise.
  7408. (asm_language_data): Likewise.
  7409. (minimal_language_data): Likewise.
  7410. * d-lang.c (d_language_data): Likewise.
  7411. (d_language::value_print_inner): New member function.
  7412. * f-lang.c (f_language_data): Delete la_value_print_inner
  7413. initializer.
  7414. (f_language::value_print_inner): New member function.
  7415. * f-lang.h (f_value_print_innner): Rename to...
  7416. (f_value_print_inner): ...this (note spelling of 'inner').
  7417. * f-valprint.c (f_value_print_innner): Rename to...
  7418. (f_value_print_inner): ...this (note spelling of 'inner').
  7419. * go-lang.c (go_language_data): Delete la_value_print_inner
  7420. initializer.
  7421. (go_language::value_print_inner): New member function.
  7422. * language.c (language_defn::value_print_inner): Define new member
  7423. function.
  7424. (unk_lang_value_print_inner): Delete.
  7425. (unknown_language_data): Delete la_value_print_inner initializer.
  7426. (unknown_language::value_print_inner): New member function.
  7427. (auto_language_data): Delete la_value_print_inner initializer.
  7428. (auto_language::value_print_inner): New member function.
  7429. * language.h (language_data): Delete la_value_print_inner field.
  7430. (language_defn::value_print_inner): Delcare new member function.
  7431. * m2-lang.c (m2_language_data): Delete la_value_print_inner
  7432. initializer.
  7433. (m2_language::value_print_inner): New member function.
  7434. * objc-lang.c (objc_language_data): Delete la_value_print_inner
  7435. initializer.
  7436. * opencl-lang.c (opencl_language_data): Likewise.
  7437. * p-lang.c (pascal_language_data): Likewise.
  7438. (pascal_language::value_print_inner): New member function.
  7439. * rust-lang.c (rust_language_data): Delete la_value_print_inner
  7440. initializer.
  7441. (rust_language::value_print_inner): New member function.
  7442. * valprint.c (do_val_print): Update call to value_print_inner.
  7443. 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
  7444. * ada-lang.c (ada_language_data): Delete la_value_print
  7445. initializer.
  7446. (ada_language::value_print): New member function.
  7447. * c-lang.c (c_language_data): Delete la_value_print initializer.
  7448. (cplus_language_data): Likewise.
  7449. (asm_language_data): Likewise.
  7450. (minimal_language_data): Likewise.
  7451. * d-lang.c (d_language_data): Likewise.
  7452. * f-lang.c (f_language_data): Likewise.
  7453. * go-lang.c (go_language_data): Likewise.
  7454. * language.c (unk_lang_value_print): Delete.
  7455. (language_defn::value_print): Define new member function.
  7456. (unknown_language_data): Delete la_value_print initializer.
  7457. (unknown_language::value_print): New member function.
  7458. (auto_language_data): Delete la_value_print initializer.
  7459. (auto_language::value_print): New member function.
  7460. * language.h (language_data): Delete la_value_print field.
  7461. (language_defn::value_print): Declare new member function.
  7462. (LA_VALUE_PRINT): Update call to value_print.
  7463. * m2-lang.c (m2_language_data): Delete la_value_print initializer.
  7464. * objc-lang.c (objc_language_data): Likewise.
  7465. * opencl-lang.c (opencl_language_data): Likewise.
  7466. * p-lang.c (pascal_language_data): Likewise.
  7467. (pascal_language::value_print): New member function.
  7468. * rust-lang.c (rust_language_data): Delete la_value_print
  7469. initializer.
  7470. 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
  7471. * ada-lang.c (ada_watch_location_expression): Rename to
  7472. ada_language::watch_location_expression.
  7473. (ada_language_data): Delete la_watch_location_expression
  7474. initializer.
  7475. (ada_language::watch_location_expression): New member function,
  7476. implementation from ada_watch_location_expression.
  7477. * breakpoint.c (watch_command_1): Update call to
  7478. watch_location_expression.
  7479. * c-lang.c (c_watch_location_expression): Rename to
  7480. language_defn::watch_location_expression.
  7481. (c_language_data): Delete la_watch_location_expression
  7482. initializer.
  7483. (cplus_language_data): Likewise.
  7484. (asm_language_data): Likewise.
  7485. (minimal_language_data): Likewise.
  7486. * c-lang.h (c_watch_location_expression): Delete declaration.
  7487. * d-lang.c (d_language_data): Delete la_watch_location_expression
  7488. initializer.
  7489. * f-lang.c (f_language_data): Likewise.
  7490. * go-lang.c (go_language_data): Likewise.
  7491. * language.c (language_defn::watch_location_expression): Member
  7492. function implementation from c_watch_location_expression.
  7493. (unknown_language_data): Delete la_watch_location_expression
  7494. initializer.
  7495. (auto_language_data): Likewise.
  7496. * language.h (language_data): Delete la_watch_location_expression
  7497. field.
  7498. (language_defn::watch_location_expression): Declare new member
  7499. function.
  7500. * m2-lang.c (m2_language_data): Delete
  7501. la_watch_location_expression initializer.
  7502. * objc-lang.c (objc_language_data): Likewise.
  7503. * opencl-lang.c (opencl_language_data): Likewise.
  7504. * p-lang.c (pascal_language_data): Likewise.
  7505. * rust-lang.c (rust_watch_location_expression): Rename to
  7506. rust_language::watch_location_expression.
  7507. (rust_language_data): Delete la_watch_location_expression
  7508. initializer.
  7509. (rust_language::watch_location_expression): New member function,
  7510. implementation from rust_watch_location_expression.
  7511. 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
  7512. * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
  7513. ada_language::collect_symbol_completion_matches.
  7514. (ada_language_data): Delete la_collect_symbol_completion_matches
  7515. initializer.
  7516. (ada_language::collect_symbol_completion_matches): New member
  7517. function, implementation from
  7518. ada_collect_symbol_completion_matches.
  7519. * c-lang.c (c_language_data): Delete
  7520. la_collect_symbol_completion_matches initializer.
  7521. (cplus_language_data): Likewise.
  7522. (asm_language_data): Likewise.
  7523. (minimal_language_data): Likewise.
  7524. * d-lang.c (d_language_data): Likewise.
  7525. * f-lang.c (f_collect_symbol_completion_matches): Rename to
  7526. f_language::collect_symbol_completion_matches.
  7527. (f_language_data): Delete la_collect_symbol_completion_matches
  7528. initializer.
  7529. (f_language::collect_symbol_completion_matches) New member
  7530. function, implementation from f_collect_symbol_completion_matches.
  7531. * go-lang.c (go_language_data): Delete
  7532. la_collect_symbol_completion_matches initializer.
  7533. * language.c (unknown_language_data): Likewise.
  7534. (auto_language_data): Likewise.
  7535. * language.h (language_data): Delete
  7536. la_collect_symbol_completion_matches field.
  7537. (language_defn::collect_symbol_completion_matches): New member
  7538. function.
  7539. * m2-lang.c (m2_language_data): Delete
  7540. la_collect_symbol_completion_matches initializer.
  7541. * objc-lang.c (objc_language_data): Likewise.
  7542. * opencl-lang.c (opencl_language_data): Likewise.
  7543. * p-lang.c (pascal_language_data): Likewise.
  7544. * rust-lang.c (rust_language_data): Likewise.
  7545. * symtab.c (default_collect_symbol_completion_matches): Delete.
  7546. (collect_symbol_completion_matches): Update call to
  7547. collect_symbol_completion_matches.
  7548. (collect_symbol_completion_matches_type): Likewise.
  7549. * symtab.h (default_collect_symbol_completion_matches): Delete
  7550. declaration.
  7551. 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
  7552. * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
  7553. (ada_language_data): Delete la_word_break_characters initializer.
  7554. (ada_language::word_break_characters): New member function.
  7555. * c-lang.c (c_language_data): Delete la_word_break_characters
  7556. initializer.
  7557. (cplus_language_data): Likewise.
  7558. (asm_language_data): Likewise.
  7559. (minimal_language_data): Likewise.
  7560. * completer.c: Update global comment.
  7561. (advance_to_expression_complete_word_point): Update call to
  7562. word_break_characters.
  7563. (complete_files_symbols): Likewise.
  7564. (complete_line_internal_1): Likewise.
  7565. (default_completer_handle_brkchars): Likewise.
  7566. (skip_quoted_chars): Likewise.
  7567. * d-lang.c (d_language_data): Delete la_word_break_characters
  7568. initializer.
  7569. * f-lang.c (f_word_break_characters): Delete.
  7570. (f_language_data): Delete la_word_break_characters initializer.
  7571. (f_language::word_break_characters): New member function.
  7572. * go-lang.c (go_language_data): Delete la_word_break_characters
  7573. initializer.
  7574. * language.c (unknown_language_data): Likewise.
  7575. (auto_language_data): Likewise.
  7576. * language.h (default_word_break_characters): Move declaration to
  7577. earlier in the file.
  7578. (language_data): Delete la_word_break_characters field.
  7579. (language_defn::word_break_characters): New member function.
  7580. * m2-lang.c (m2_language_data): Delete la_word_break_characters
  7581. initializer.
  7582. * objc-lang.c (objc_language_data): Likewise.
  7583. * opencl-lang.c (opencl_language_data): Likewise.
  7584. * p-lang.c (pascal_language_data): Likewise.
  7585. * rust-lang.c (rust_language_data): Likewise.
  7586. 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
  7587. * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
  7588. (ada_language_data): Delete la_get_symbol_name_matcher
  7589. initializer.
  7590. (language_defn::get_symbol_name_matcher_inner): New member
  7591. function.
  7592. * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
  7593. initializer.
  7594. (cplus_language_data): Likewise.
  7595. (cplus_language::get_symbol_name_matcher_inner): New member
  7596. function.
  7597. (asm_language_data): Delete la_get_symbol_name_matcher initializer.
  7598. (minimal_language_data): Likewise.
  7599. * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
  7600. * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
  7601. initializer.
  7602. * dictionary.c (iter_match_first_hashed): Update call to
  7603. get_symbol_name_matcher.
  7604. (iter_match_next_hashed): Likewise.
  7605. (iter_match_next_linear): Likewise.
  7606. * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
  7607. * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
  7608. initializer.
  7609. (f_language::get_symbol_name_matcher_inner): New member function.
  7610. * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
  7611. initializer.
  7612. * language.c (default_symbol_name_matcher): Update header comment,
  7613. make static.
  7614. (language_defn::get_symbol_name_matcher): New definition.
  7615. (language_defn::get_symbol_name_matcher_inner): Likewise.
  7616. (get_symbol_name_matcher): Delete.
  7617. (unknown_language_data): Delete la_get_symbol_name_matcher
  7618. initializer.
  7619. (auto_language_data): Likewise.
  7620. * language.h (language_data): Delete la_get_symbol_name_matcher
  7621. field.
  7622. (language_defn::get_symbol_name_matcher): New member function.
  7623. (language_defn::get_symbol_name_matcher_inner): Likewise.
  7624. (default_symbol_name_matcher): Delete declaration.
  7625. * linespec.c (find_methods): Update call to
  7626. get_symbol_name_matcher.
  7627. * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
  7628. initializer.
  7629. * minsyms.c (lookup_minimal_symbol): Update call to
  7630. get_symbol_name_matcher.
  7631. (iterate_over_minimal_symbols): Likewise.
  7632. * objc-lang.c (objc_language_data): Delete
  7633. la_get_symbol_name_matcher initializer.
  7634. * opencl-lang.c (opencl_language_data): Likewise.
  7635. * p-lang.c (pascal_language_data): Likewise.
  7636. * psymtab.c (psymbol_name_matches): Update call to
  7637. get_symbol_name_matcher.
  7638. * rust-lang.c (rust_language_data): Delete
  7639. la_get_symbol_name_matcher initializer.
  7640. * symtab.c (symbol_matches_search_name): Update call to
  7641. get_symbol_name_matcher.
  7642. (compare_symbol_name): Likewise.
  7643. 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
  7644. * ada-lang.c (ada_language_data): Delete la_compute_program
  7645. initializer.
  7646. * c-lang.c (c_language_data): Likewise.
  7647. (c_language::compute_program): New member function.
  7648. (cplus_language_data): Delete la_compute_program initializer.
  7649. (cplus_language::compute_program): New member function.
  7650. (asm_language_data): Delete la_compute_program initializer.
  7651. (minimal_language_data): Likewise.
  7652. * c-lang.h (c_compute_program): Update comment.
  7653. (cplus_compute_program): Likewise.
  7654. * compile/compile-c-support.c (c_compute_program): Likewise.
  7655. (cplus_compute_program): Likewise.
  7656. * compile/compile.c (compile_to_object): Update call to
  7657. la_compute_program.
  7658. * d-lang.c (d_language_data): Delete la_compute_program
  7659. initializer.
  7660. * f-lang.c (f_language_data): Likewise.
  7661. * go-lang.c (go_language_data): Likewise.
  7662. * language.c (unknown_language_data): Likewise.
  7663. (auto_language_data): Likewise.
  7664. * language.h (language_data): Delete la_compute_program field.
  7665. (language_defn::compute_program): New member function.
  7666. * m2-lang.c (m2_language_data): Delete la_compute_program
  7667. initializer.
  7668. * objc-lang.c (objc_language_data): Likewise.
  7669. * opencl-lang.c (opencl_language_data): Likewise.
  7670. * p-lang.c (pascal_language_data): Likewise.
  7671. * rust-lang.c (rust_language_data): Likewise.
  7672. 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
  7673. * ada-lang.c (ada_language_data) Delete
  7674. la_class_name_from_physname initializer.
  7675. * c-lang.c (c_language_data): Likewise.
  7676. (cplus_language_data): Likewise.
  7677. (cplus_language::class_name_from_physname): New member function.
  7678. (asm_language_data): Delete la_class_name_from_physname
  7679. initializer.
  7680. (minimal_language_data): Likewise.
  7681. * d-lang.c (d_language_data): Likewise.
  7682. * dwarf2/read.c (guess_partial_die_structure_name): Update to call
  7683. method on language_defn class.
  7684. (guess_full_die_structure_name): Likewise.
  7685. * f-lang.c (f_language_data): Delete la_class_name_from_physname
  7686. initializer.
  7687. * go-lang.c (go_language_data): Likewise.
  7688. * language.c (language_class_name_from_physname): Delete.
  7689. (unk_lang_class_name): Delete.
  7690. (unknown_language_data): Delete la_class_name_from_physname
  7691. initializer.
  7692. (auto_language_data): Likewise.
  7693. * language.h (language_data): Delete la_class_name_from_physname
  7694. field.
  7695. (language_defn::class_name_from_physname): New function.
  7696. (language_class_name_from_physname): Delete declaration.
  7697. * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
  7698. initializer.
  7699. * objc-lang.c (objc_language_data): Likewise.
  7700. * opencl-lang.c (opencl_language_data): Likewise.
  7701. * p-lang.c (pascal_language_data): Likewise.
  7702. * rust-lang.c (rust_language_data): Likewise.
  7703. 2020-06-16 Tom Tromey <tom@tromey.com>
  7704. * tui/tui-data.h (STATUS_NAME): New macro.
  7705. * tui/tui-layout.c (tui_remove_some_windows)
  7706. (initialize_known_windows, tui_register_window)
  7707. (tui_layout_split::remove_windows, initialize_layouts)
  7708. (tui_new_layout_command): Don't use hard-coded window names.
  7709. 2020-06-16 Tom Tromey <tom@tromey.com>
  7710. PR tui/25348:
  7711. * tui/tui.c (tui_ensure_readline_initialized): Rename from
  7712. tui_initialize_readline. Only run once. Call rl_initialize.
  7713. * tui/tui.h (tui_ensure_readline_initialized): Rename from
  7714. tui_initialize_readline.
  7715. * tui/tui-io.c (tui_setup_io): Call
  7716. tui_ensure_readline_initialized.
  7717. * tui/tui-interp.c (tui_interp::init): Update.
  7718. 2020-06-16 Tom Tromey <tom@tromey.com>
  7719. * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
  7720. Also preserve the status window.
  7721. 2020-06-16 Tom Tromey <tom@tromey.com>
  7722. * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
  7723. where m_window==nullptr.
  7724. 2020-06-15 Tom Tromey <tromey@adacore.com>
  7725. * windows-nat.c (windows_nat::handle_output_debug_string):
  7726. Update.
  7727. (windows_nat::handle_ms_vc_exception): Update.
  7728. * target.h (target_read_string): Change API.
  7729. * target.c (target_read_string): Change API.
  7730. * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
  7731. Update.
  7732. * solib-frv.c (frv_current_sos): Update.
  7733. * solib-dsbt.c (dsbt_current_sos): Update.
  7734. * solib-darwin.c (darwin_current_sos): Update.
  7735. * linux-thread-db.c (inferior_has_bug): Update.
  7736. * expprint.c (print_subexp_standard): Update.
  7737. * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
  7738. (ada_exception_message_1): Update.
  7739. 2020-06-15 Tom Tromey <tromey@adacore.com>
  7740. * linux-tdep.c (dump_mapping_p): Use target_read_memory.
  7741. 2020-06-15 Tom Tromey <tromey@adacore.com>
  7742. * valprint.c (read_string): Update comment.
  7743. * target.c (MIN): Remove.
  7744. (target_read_string): Rewrite.
  7745. 2020-06-15 Tom Tromey <tromey@adacore.com>
  7746. * corefile.c (read_memory_string): Remove.
  7747. * ada-valprint.c (ada_value_print_ptr): Update.
  7748. * ada-lang.h (ada_tag_name): Change return type.
  7749. * ada-lang.c (type_from_tag): Update.
  7750. (ada_tag_name_from_tsd): Change return type. Use
  7751. target_read_string.
  7752. (ada_tag_name): Likewise.
  7753. * gdbcore.h (read_memory_string): Don't declare.
  7754. 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
  7755. * symtab.c (rbreak_command): Ignore Windows drive colon.
  7756. 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
  7757. * NEWS: Mention removed GDBserver host support.
  7758. 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
  7759. * features/riscv/rebuild-csr-xml.sh: Updated.
  7760. 2020-06-11 Tom Tromey <tom@tromey.com>
  7761. PR gdb/18318:
  7762. * c-exp.y (lex_one_token): Handle 'p' like 'e'.
  7763. 2020-06-09 Jonny Grant <jg@jguk.org>
  7764. 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
  7765. * main.c (captured_main_1): Don't print new line after help.
  7766. (print_gdb_help): add mailing list and IRC channel information
  7767. to --help. Add new lines between items in the footer. Remove
  7768. quotes around bug url.
  7769. 2020-06-11 Keith Seitz <keiths@redhat.com>
  7770. PR gdb/21356
  7771. * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
  7772. Resolve typedefs for type length calculations.
  7773. 2020-06-10 Tom de Vries <tdevries@suse.de>
  7774. PR ada/24713
  7775. * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
  7776. (write_psymbols): Enable .gdb_index for ada.
  7777. * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
  7778. ada.
  7779. 2020-06-10 Tom de Vries <tdevries@suse.de>
  7780. * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
  7781. (dw2_symtab_iter_init): ... here. Add variant with "offset_type
  7782. namei" instead of "const char *name" argument.
  7783. (dw2_map_matching_symbols): Use "offset_type namei" variant of
  7784. dw2_symtab_iter_init.
  7785. 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
  7786. * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
  7787. to use type::field and field::type instead.
  7788. 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
  7789. * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
  7790. to use field::type instead.
  7791. 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
  7792. * gdbtypes.h (struct field) <type, set_type>: New methods.
  7793. Rename `type` field to...
  7794. <m_type>: ... this. Change references throughout to use type or
  7795. set_type methods.
  7796. (FIELD_TYPE): Use field::type. Change call sites that modify
  7797. the field's type to use field::set_type instead.
  7798. 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
  7799. * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
  7800. to use type::index_type instead.
  7801. 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
  7802. * gdbtypes.h (struct type) <index_type, set_index_type>: New
  7803. methods.
  7804. (TYPE_INDEX_TYPE): Use type::index_type.
  7805. * gdbtypes.c (create_array_type_with_stride): Likewise.
  7806. 2020-06-07 Tom Tromey <tom@tromey.com>
  7807. * valprint.c (generic_val_print_float): Remove "embedded_offset"
  7808. parameter.
  7809. (generic_value_print): Update.
  7810. 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
  7811. Revert commit 982a38f60b0.
  7812. * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
  7813. 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
  7814. * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
  7815. avoid use after free.
  7816. 2020-06-05 Tom de Vries <tdevries@suse.de>
  7817. * NEWS: Fix typos.
  7818. 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
  7819. * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
  7820. the per_bfd object.
  7821. (dwarf2_read_debug_names): Likewise.
  7822. (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
  7823. object when re-using a per_bfd object with an index.
  7824. 2020-06-03 Tom de Vries <tdevries@suse.de>
  7825. PR symtab/26046
  7826. * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
  7827. children for C++.
  7828. (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
  7829. DW_TAG_subprogram.
  7830. 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
  7831. * ada-lang.c (ada_language_data): Delete skip_trampoline
  7832. initializer.
  7833. * c-lang.c (c_language_data): Likewise.
  7834. (cplus_language_data): Likewise.
  7835. (cplus_language::skip_trampoline): New member function.
  7836. (asm_language_data): Delete skip_trampoline initializer.
  7837. (minimal_language_data): Likewise.
  7838. * d-lang.c (d_language_data): Likewise.
  7839. * f-lang.c (f_language_data): Likewise.
  7840. * go-lang.c (go_language_data): Likewise.
  7841. * language.c (unk_lang_trampoline): Delete function.
  7842. (skip_language_trampoline): Update.
  7843. (unknown_language_data): Delete skip_trampoline initializer.
  7844. (auto_language_data): Likewise.
  7845. * language.h (language_data): Delete skip_trampoline field.
  7846. (language_defn::skip_trampoline): New function.
  7847. * m2-lang.c (m2_language_data): Delete skip_trampoline
  7848. initializer.
  7849. * objc-lang.c (objc_skip_trampoline): Delete function, move
  7850. implementation to objc_language::skip_trampoline.
  7851. (objc_language_data): Delete skip_trampoline initializer.
  7852. (objc_language::skip_trampoline): New member function with
  7853. implementation from objc_skip_trampoline.
  7854. * opencl-lang.c (opencl_language_data): Delete skip_trampoline
  7855. initializer.
  7856. * p-lang.c (pascal_language_data): Likewise.
  7857. * rust-lang.c (rust_language_data): Likewise.
  7858. 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
  7859. * ada-lang.c (ada_language_data): Delete la_demangle initializer.
  7860. (ada_language::demangle): New member function.
  7861. * c-lang.c (c_language_data): Delete la_demangle initializer.
  7862. (cplus_language_data): Delete la_demangle initializer.
  7863. (cplus_language::demangle): New member function.
  7864. (asm_language_data): Delete la_demangle initializer.
  7865. (minimal_language_data): Delete la_demangle initializer.
  7866. * d-lang.c (d_language_data): Delete la_demangle initializer.
  7867. (d_language::demangle): New member function.
  7868. * f-lang.c (f_language_data): Delete la_demangle initializer.
  7869. (f_language::demangle): New member function.
  7870. * go-lang.c (go_language_data): Delete la_demangle initializer.
  7871. (go_language::demangle): New member function.
  7872. * language.c (language_demangle): Update.
  7873. (unk_lang_demangle): Delete.
  7874. (unknown_language_data): Delete la_demangle initializer.
  7875. (unknown_language::demangle): New member function.
  7876. (auto_language_data): Delete la_demangle initializer.
  7877. (auto_language::demangle): New member function.
  7878. * language.h (language_data): Delete la_demangle field.
  7879. (language_defn::demangle): New function.
  7880. * m2-lang.c (m2_language_data): Delete la_demangle initializer.
  7881. * objc-lang.c (objc_language_data): Delete la_demangle
  7882. initializer.
  7883. (objc_language::demangle): New member function.
  7884. * opencl-lang.c (opencl_language_data): Delete la_demangle
  7885. initializer.
  7886. * p-lang.c (pascal_language_data): Likewise.
  7887. * rust-lang.c (rust_language_data): Likewise.
  7888. (rust_language::demangle): New member function.
  7889. 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
  7890. * ada-lang.c (ada_language_data): Delete la_print_type
  7891. initializer.
  7892. (ada_language::print_type): New member function.
  7893. * c-lang.c (c_language_data): Delete la_print_type initializer.
  7894. (c_language::print_type): New member function.
  7895. (cplus_language_data): Delete la_print_type initializer.
  7896. (cplus_language::print_type): New member function.
  7897. (asm_language_data): Delete la_print_type initializer.
  7898. (asm_language::print_type): New member function.
  7899. (minimal_language_data): Delete la_print_type initializer.
  7900. (minimal_language::print_type): New member function.
  7901. * d-lang.c (d_language_data): Delete la_print_type initializer.
  7902. (d_language::print_type): New member function.
  7903. * f-lang.c (f_language_data): Delete la_print_type initializer.
  7904. (f_language::print_type): New member function.
  7905. * go-lang.c (go_language_data): Delete la_print_type initializer.
  7906. (go_language::print_type): New member function.
  7907. * language.c (unk_lang_print_type): Delete.
  7908. (unknown_language_data): Delete la_print_type initializer.
  7909. (unknown_language::print_type): New member function.
  7910. (auto_language_data): Delete la_print_type initializer.
  7911. (auto_language::print_type): New member function.
  7912. * language.h (language_data): Delete la_print_type field.
  7913. (language_defn::print_type): New function.
  7914. (LA_PRINT_TYPE): Update.
  7915. * m2-lang.c (m2_language_data): Delete la_print_type initializer.
  7916. (m2_language::print_type): New member function.
  7917. * objc-lang.c (objc_language_data): Delete la_print_type
  7918. initializer.
  7919. (objc_language::print_type): New member function.
  7920. * opencl-lang.c (opencl_print_type): Delete, implementation moved
  7921. to opencl_language::print_type.
  7922. (opencl_language_data): Delete la_print_type initializer.
  7923. (opencl_language::print_type): New member function, implementation
  7924. from opencl_print_type.
  7925. * p-lang.c (pascal_language_data): Delete la_print_type
  7926. initializer.
  7927. (pascal_language::print_type): New member function.
  7928. * rust-lang.c (rust_print_type): Delete, implementation moved to
  7929. rust_language::print_type.
  7930. (rust_language_data): Delete la_print_type initializer.
  7931. (rust_language::print_type): New member function, implementation
  7932. from rust_print_type.
  7933. 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
  7934. * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
  7935. implementation moves to...
  7936. (ada_language::sniff_from_mangled_name): ...here. Update return
  7937. type.
  7938. (ada_language_data): Delete la_sniff_from_mangled_name
  7939. initializer.
  7940. * c-lang.c (c_language_data): Likewise.
  7941. (cplus_language_data): Likewise.
  7942. (cplus_language::sniff_from_mangled_name): New member function,
  7943. implementation taken from gdb_sniff_from_mangled_name.
  7944. (asm_language_data): Delete la_sniff_from_mangled_name
  7945. initializer.
  7946. (minimal_language_data): Likewise.
  7947. * cp-support.c (gdb_sniff_from_mangled_name): Delete,
  7948. implementation moves to cplus_language::sniff_from_mangled_name.
  7949. * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
  7950. * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
  7951. moves to...
  7952. (d_language::sniff_from_mangled_name): ...here.
  7953. (d_language_data): Delete la_sniff_from_mangled_name initializer.
  7954. * f-lang.c (f_language_data): Likewise.
  7955. * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
  7956. moves to...
  7957. (go_language::sniff_from_mangled_name): ...here.
  7958. (go_language_data): Delete la_sniff_from_mangled_name initializer.
  7959. * language.c (language_sniff_from_mangled_name): Delete.
  7960. (unknown_language_data): Delete la_sniff_from_mangled_name
  7961. initializer.
  7962. (auto_language_data): Likewise.
  7963. * language.h (language_data): Delete la_sniff_from_mangled_name
  7964. field.
  7965. (language_defn::sniff_from_mangled_name): New function.
  7966. (language_sniff_from_mangled_name): Delete declaration.
  7967. * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
  7968. field.
  7969. * objc-lang.c (objc_sniff_from_mangled_name): Delete,
  7970. implementation moves to...
  7971. (objc_language::sniff_from_mangled_name): ...here.
  7972. (objc_language_data): Delete la_sniff_from_mangled_name initializer.
  7973. * opencl-lang.c (opencl_language_data): Likewise.
  7974. * p-lang.c (pascal_language_data): Likewise.
  7975. * rust-lang.c (rust_sniff_from_mangled_name): Delete,
  7976. implementation moves to...
  7977. (rust_language::sniff_from_mangled_name): ...here.
  7978. (rust_language_data): Delete la_sniff_from_mangled_name
  7979. initializer.
  7980. * symtab.c (symbol_find_demangled_name): Call
  7981. sniff_from_mangled_name member function.
  7982. 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
  7983. * ada-lang.c (ada_language_data): Delete la_search_name_hash
  7984. initializer.
  7985. * c-lang.c (c_language_data): Likewise.
  7986. (cplus_language_data): Likewise.
  7987. (cplus_language::search_name_hash): New member function.
  7988. (asm_language_data): Delete la_search_name_hash initializer.
  7989. (minimal_language_data): Likewise.
  7990. * d-lang.c (d_language_data): Likewise.
  7991. * dictionary.c (default_search_name_hash): Rename to...
  7992. (language_defn::search_name_hash): ...this.
  7993. * f-lang.c (f_language_data): Likewise.
  7994. (f_language::search_name_hash): New member function.
  7995. * go-lang.c (go_language_data): Delete la_search_name_hash
  7996. initializer.
  7997. * language.c (unknown_language_data): Likewise.
  7998. (auto_language_data): Likewise.
  7999. * language.h (struct language_data): Delete la_search_name_hash
  8000. field.
  8001. (language_defn::search_name_hash): Declare new member function.
  8002. (default_search_name_hash): Delete declaration.
  8003. * m2-lang.c (m2_language_data): Delete la_search_name_hash
  8004. initializer.
  8005. * objc-lang.c (objc_language_data): Likewise.
  8006. * opencl-lang.c (opencl_language_data): Likewise.
  8007. * p-lang.c (pascal_language_data): Likewise.
  8008. * rust-lang.c (rust_language_data): Likewise.
  8009. * symtab.c (search_name_hash): Update call.
  8010. 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
  8011. * ada-lang.c (ada_language_data): Delete la_get_compile_instance
  8012. initializer.
  8013. * c-lang.c (class compile_instance): Declare.
  8014. (c_language_data): Delete la_get_compile_instance initializer.
  8015. (c_language::get_compile_instance): New member function.
  8016. (cplus_language_data): Delete la_get_compile_instance initializer.
  8017. (cplus_language::get_compile_instance): New member function.
  8018. (asm_language_data): Delete la_get_compile_instance initializer.
  8019. (minimal_language_data): Likewise.
  8020. * c-lang.h (c_get_compile_context): Update comment.
  8021. (cplus_get_compile_context): Update comment.
  8022. * compile/compile.c (compile_to_object): Update calls, don't rely
  8023. on function pointer being NULL.
  8024. * d-lang.c (d_language_data): Delete la_get_compile_instance
  8025. initializer.
  8026. * f-lang.c (f_language_data): Likewise.
  8027. * go-lang.c (go_language_data): Likewise.
  8028. * language.c (unknown_language_data): Likewise.
  8029. (auto_language_data): Likewise.
  8030. * language.h (language_data): Delete la_get_compile_instance field.
  8031. (language_defn::get_compile_instance): New member function.
  8032. * m2-lang.c (m2_language_data): Delete la_get_compile_instance
  8033. initializer.
  8034. * objc-lang.c (objc_language_data): Likewise.
  8035. * opencl-lang.c (opencl_language_data): Likewise.
  8036. * p-lang.c (pascal_language_data): Likewise.
  8037. * rust-lang.c (rust_language_data): Likewise.
  8038. 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
  8039. * ada-lang.c (ada_add_all_symbols): Update comment.
  8040. (ada_iterate_over_symbols): Delete, move implementation to...
  8041. (ada_language::iterate_over_symbols): ...here, a new member
  8042. function, rewrite to use range based for loop.
  8043. (ada_language_data): Delete la_iterate_over_symbols initializer.
  8044. * c-lang.c (c_language_data): Likewise.
  8045. (cplus_language_data): Likewise.
  8046. (asm_language_data): Likewise.
  8047. (minimal_language_data): Likewise.
  8048. * d-lang.c (d_language_data): Likewise.
  8049. * f-lang.c (f_language_data): Likewise.
  8050. * go-lang.c (go_language_data): Likewise.
  8051. * language.c (unknown_language_data): Likewise.
  8052. (auto_language_data): Likewise.
  8053. * language.h (language_data): Delete la_iterate_over_symbols field.
  8054. (language_defn::iterate_over_symbols): New member function.
  8055. (LA_ITERATE_OVER_SYMBOLS): Update.
  8056. * linespec.c (iterate_over_all_matching_symtabs): Update.
  8057. * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
  8058. initializer.
  8059. * objc-lang.c (objc_language_data): Likewise.
  8060. * opencl-lang.c (opencl_language_data): Likewise.
  8061. * p-lang.c (pascal_language_data): Likewise.
  8062. * rust-lang.c (rust_language_data): Likewise.
  8063. 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
  8064. * ada-lang.c (ada_language_data): Delete
  8065. la_lookup_transparent_type initializer.
  8066. * c-lang.c (c_language_data): Likewise.
  8067. (cplus_language_data): Likewise.
  8068. (cplus_language::lookup_transparent_type): New member function.
  8069. (asm_language_data): Delete la_lookup_transparent_type
  8070. initializer.
  8071. (minimal_language_data): Likewise.
  8072. * d-lang.c (d_language_data): Likewise.
  8073. * f-lang.c (f_language_data): Likewise.
  8074. * go-lang.c (go_language_data): Likewise.
  8075. * language.c (unknown_language_data): Likewise.
  8076. (auto_language_data): Likewise.
  8077. * language.h (struct language_data): Delete
  8078. la_lookup_transparent_type field.
  8079. (language_defn::lookup_transparent_type): New member function.
  8080. * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
  8081. initializer.
  8082. * objc-lang.c (objc_language_data): Likewise.
  8083. * opencl-lang.c (opencl_language_data): Likewise.
  8084. * p-lang.c (pascal_language_data): Likewise.
  8085. * rust-lang.c (rust_language_data): Likewise.
  8086. * symtab.c (symbol_matches_domain): Update call.
  8087. 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
  8088. * ada-lang.c (ada_language_arch_info): Delete function, move
  8089. implementation to...
  8090. (ada_language::language_arch_info): ...here, a new member
  8091. function.
  8092. (ada_language_data): Delete la_language_arch_info.
  8093. * c-lang.c (c_language_data): Likewise.
  8094. (c_language::language_arch_info): New member function.
  8095. (cplus_language_arch_info): Delete function, move
  8096. implementation to...
  8097. (cplus_language::language_arch_info): ...here, a new member
  8098. function.
  8099. (cplus_language_data): Delete la_language_arch_info.
  8100. (asm_language_data): Likewise.
  8101. (asm_language::language_arch_info): New member function.
  8102. (minimal_language_data): Delete la_language_arch_info.
  8103. (minimal_language::language_arch_info): New member function.
  8104. * d-lang.c (d_language_arch_info): Delete function, move
  8105. implementation to...
  8106. (d_language::language_arch_info): ...here, a new member
  8107. function.
  8108. (d_language_data): Delete la_language_arch_info.
  8109. * f-lang.c (f_language_arch_info): Delete function, move
  8110. implementation to...
  8111. (f_language::language_arch_info): ...here, a new member
  8112. function.
  8113. (f_language_data): Delete la_language_arch_info.
  8114. * go-lang.c (go_language_arch_info): Delete function, move
  8115. implementation to...
  8116. (go_language::language_arch_info): ...here, a new member
  8117. function.
  8118. (go_language_data): Delete la_language_arch_info.
  8119. * language.c (unknown_language_data): Likewise.
  8120. (unknown_language::language_arch_info): New member function.
  8121. (auto_language_data): Delete la_language_arch_info.
  8122. (auto_language::language_arch_info): New member function.
  8123. (language_gdbarch_post_init): Update call to
  8124. la_language_arch_info.
  8125. * language.h (language_data): Delete la_language_arch_info
  8126. function pointer.
  8127. (language_defn::language_arch_info): New function.
  8128. * m2-lang.c (m2_language_arch_info): Delete function, move
  8129. implementation to...
  8130. (m2_language::language_arch_info): ...here, a new member
  8131. function.
  8132. (m2_language_data): Delete la_language_arch_info.
  8133. * objc-lang.c (objc_language_arch_info): Delete function, move
  8134. implementation to...
  8135. (objc_language::language_arch_info): ...here, a new member
  8136. function.
  8137. (objc_language_data): Delete la_language_arch_info.
  8138. * opencl-lang.c (opencl_language_arch_info): Delete function, move
  8139. implementation to...
  8140. (opencl_language::language_arch_info): ...here, a new member
  8141. function.
  8142. (opencl_language_data): Delete la_language_arch_info.
  8143. * p-lang.c (pascal_language_arch_info): Delete function, move
  8144. implementation to...
  8145. (pascal_language::language_arch_info): ...here, a new member
  8146. function.
  8147. (pascal_language_data): Delete la_language_arch_info.
  8148. * rust-lang.c (rust_language_arch_info): Delete function, move
  8149. implementation to...
  8150. (rust_language::language_arch_info): ...here, a new member
  8151. function.
  8152. (rust_language_data): Delete la_language_arch_info.
  8153. 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
  8154. * ada-lang.c (ada_language_data): Delete la_pass_by_reference
  8155. initializer.
  8156. * c-lang.c (c_language_data): Likewise.
  8157. (cplus_language_data): Likewise.
  8158. (cplus_language::pass_by_reference_info): New method.
  8159. (asm_language_data): Delete la_pass_by_reference initializer.
  8160. (minimal_language_data): Likewise.
  8161. * cp-abi.c (cp_pass_by_reference): Remove use of
  8162. default_pass_by_reference.
  8163. * d-lang.c (d_language_data): Likewise.
  8164. * f-lang.c (f_language_data): Likewise.
  8165. * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
  8166. default_pass_by_reference.
  8167. * go-lang.c (go_language_data): Likewise.
  8168. * language.c (language_pass_by_reference): Update.
  8169. (default_pass_by_reference): Delete.
  8170. (unknown_language_data): Delete la_pass_by_reference
  8171. initializer.
  8172. (auto_language_data): Likewise.
  8173. * language.h (struct language_data): Delete la_pass_by_reference
  8174. field.
  8175. (language_defn::pass_by_reference_info): New member function.
  8176. (default_pass_by_reference): Delete declaration.
  8177. * m2-lang.c (m2_language_data): Delete la_pass_by_reference
  8178. initializer.
  8179. * objc-lang.c (objc_language_data): Likewise.
  8180. * opencl-lang.c (opencl_language_data): Likewise.
  8181. * p-lang.c (pascal_language_data): Likewise.
  8182. * rust-lang.c (rust_language_data): Likewise.
  8183. 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
  8184. * ada-lang.c (ada_read_var_value): Delete function, move
  8185. implementation to...
  8186. (ada_language::read_var_value): ...here.
  8187. (ada_language_data): Delete la_read_var_value initializer.
  8188. * c-lang.c (c_language_data): Likewise.
  8189. (cplus_language_data): Likewise.
  8190. (minimal_language_data): Likewise.
  8191. * d-lang.c (d_language_data): Likewise.
  8192. * f-lang.c (f_language_data): Likewise.
  8193. * findvar.c (default_read_var_value): Rename to...
  8194. (language_defn::read_var_value): ...this.
  8195. * findvar.c (read_var_value): Update header comment, and change to
  8196. call member function instead of function pointer.
  8197. * go-lang.c (go_language_data): Likewise.
  8198. * language.c (unknown_language_data): Delete la_read_var_value
  8199. initializer.
  8200. (auto_language_data): Likewise.
  8201. * language.h (struct language_data): Delete la_read_var_value
  8202. field.
  8203. (language_defn::read_var_value): New member function.
  8204. (default_read_var_value): Delete declaration.
  8205. * m2-lang.c (m2_language_data): Delete la_read_var_value
  8206. initializer.
  8207. * objc-lang.c (objc_language_data): Likewise.
  8208. * opencl-lang.c (opencl_language_data): Likewise.
  8209. * p-lang.c (pascal_language_data): Likewise.
  8210. * rust-lang.c (rust_language_data): Likewise.
  8211. * value.h (default_read_var_value): Delete declaration.
  8212. 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
  8213. * ada-lang.c (ada_print_array_index): Delete function, move
  8214. implementation to...
  8215. (ada_language::print_array_index): ...here.
  8216. (ada_language_data): Delete la_print_array_index initializer.
  8217. * c-lang.c (c_language_data): Likewise.
  8218. (cplus_language_data): Likewise.
  8219. (minimal_language_data): Likewise.
  8220. * d-lang.c (d_language_data): Likewise.
  8221. * f-lang.c (f_language_data): Likewise.
  8222. * go-lang.c (go_language_data): Likewise.
  8223. * language.c (default_print_array_index): Delete function, move
  8224. implementation to...
  8225. (language_defn::print_array_index): ...here.
  8226. (unknown_language_data): Delete la_print_array_index initializer.
  8227. (auto_language_data): Likewise.
  8228. * language.h (struct language_data): Delete la_print_array_index
  8229. field.
  8230. (language_defn::print_array_index): New member function.
  8231. (LA_PRINT_ARRAY_INDEX): Update.
  8232. (default_print_array_index): Delete declaration.
  8233. * m2-lang.c (m2_language_data): Delete la_print_array_index
  8234. initializer.
  8235. * objc-lang.c (objc_language_data): Likewise.
  8236. * opencl-lang.c (opencl_language_data): Likewise.
  8237. * p-lang.c (pascal_language_data): Likewise.
  8238. * rust-lang.c (rust_language_data): Likewise.
  8239. 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
  8240. * gdb/ada-lang.c (ada_language_defn): Convert to...
  8241. (ada_language_data): ...this.
  8242. (class ada_language): New class.
  8243. (ada_language_defn): New static global.
  8244. * gdb/c-lang.c (c_language_defn): Convert to...
  8245. (c_language_data): ...this.
  8246. (class c_language): New class.
  8247. (c_language_defn): New static global.
  8248. (cplus_language_defn): Convert to...
  8249. (cplus_language_data): ...this.
  8250. (class cplus_language): New class.
  8251. (cplus_language_defn): New static global.
  8252. (asm_language_defn): Convert to...
  8253. (asm_language_data): ...this.
  8254. (class asm_language): New class.
  8255. (asm_language_defn): New static global.
  8256. (minimal_language_defn): Convert to...
  8257. (minimal_language_data): ...this.
  8258. (class minimal_language): New class.
  8259. (minimal_language_defn): New static global.
  8260. * gdb/d-lang.c (d_language_defn): Convert to...
  8261. (d_language_data): ...this.
  8262. (class d_language): New class.
  8263. (d_language_defn): New static global.
  8264. * gdb/f-lang.c (f_language_defn): Convert to...
  8265. (f_language_data): ...this.
  8266. (class f_language): New class.
  8267. (f_language_defn): New static global.
  8268. * gdb/go-lang.c (go_language_defn): Convert to...
  8269. (go_language_data): ...this.
  8270. (class go_language): New class.
  8271. (go_language_defn): New static global.
  8272. * gdb/language.c (unknown_language_defn): Remove declaration.
  8273. (current_language): Initialize to nullptr, real initialization is
  8274. moved to _initialize_language.
  8275. (languages): Delete global.
  8276. (language_defn::languages): Define.
  8277. (set_language_command): Use language_defn::languages.
  8278. (set_language): Likewise.
  8279. (range_error): Likewise.
  8280. (language_enum): Likewise.
  8281. (language_def): Likewise.
  8282. (add_set_language_command): Use language_def::languages for the
  8283. language list, and language_def to lookup language pointers.
  8284. (skip_language_trampoline): Use language_defn::languages.
  8285. (unknown_language_defn): Convert to...
  8286. (unknown_language_data): ...this.
  8287. (class unknown_language): New class.
  8288. (unknown_language_defn): New static global.
  8289. (auto_language_defn): Convert to...
  8290. (auto_language_data): ...this.
  8291. (class auto_language): New class.
  8292. (auto_language_defn): New static global.
  8293. (language_gdbarch_post_init): Use language_defn::languages.
  8294. (_initialize_language): Initialize current_language.
  8295. * gdb/language.h (struct language_defn): Rename to...
  8296. (struct language_data): ...this.
  8297. (struct language_defn): New.
  8298. (auto_language_defn): Delete.
  8299. (unknown_language_defn): Delete.
  8300. (minimal_language_defn): Delete.
  8301. (ada_language_defn): Delete.
  8302. (asm_language_defn): Delete.
  8303. (c_language_defn): Delete.
  8304. (cplus_language_defn): Delete.
  8305. (d_language_defn): Delete.
  8306. (f_language_defn): Delete.
  8307. (go_language_defn): Delete.
  8308. (m2_language_defn): Delete.
  8309. (objc_language_defn): Delete.
  8310. (opencl_language_defn): Delete.
  8311. (pascal_language_defn): Delete.
  8312. (rust_language_defn): Delete.
  8313. * gdb/m2-lang.c (m2_language_defn): Convert to...
  8314. (m2_language_data): ...this.
  8315. (class m2_language): New class.
  8316. (m2_language_defn): New static global.
  8317. * gdb/objc-lang.c (objc_language_defn): Convert to...
  8318. (objc_language_data): ...this.
  8319. (class objc_language): New class.
  8320. (objc_language_defn): New static global.
  8321. * gdb/opencl-lang.c (opencl_language_defn): Convert to...
  8322. (opencl_language_data): ...this.
  8323. (class opencl_language): New class.
  8324. (opencl_language_defn): New static global.
  8325. * gdb/p-lang.c (pascal_language_defn): Convert to...
  8326. (pascal_language_data): ...this.
  8327. (class pascal_language): New class.
  8328. (pascal_language_defn): New static global.
  8329. * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
  8330. language pointer, update comment format.
  8331. * gdb/rust-lang.c (rust_language_defn): Convert to...
  8332. (rust_language_data): ...this.
  8333. (class rust_language): New class.
  8334. (rust_language_defn): New static global.
  8335. 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
  8336. * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
  8337. member variable.
  8338. <m_stmt_at_address>: New member variable.
  8339. (lnp_state_machine::record_line): Don't record some lines, update
  8340. tracking of is_stmt at the same address.
  8341. (lnp_state_machine::lnp_state_machine): Initialise new member
  8342. variables.
  8343. 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
  8344. * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
  8345. "-include gnu-nat-mig.h".
  8346. * gnu-nat-mig.h: New file.
  8347. * gnu-nat.c: Include "gnu-nat-mig.h".
  8348. (exc_server, msg_reply_server, notify_server,
  8349. process_reply_server): Remove declarations.
  8350. 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
  8351. * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
  8352. steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
  8353. inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
  8354. inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
  8355. inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
  8356. inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
  8357. inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
  8358. proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
  8359. proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
  8360. to gnu_nat_target class.
  8361. * gnu-nat.c: Likewise.
  8362. (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
  8363. set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
  8364. set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
  8365. object.
  8366. (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
  8367. instead of `gnu_target'.
  8368. 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
  8369. * i386-gnu-tdep.c: Include "gdbcore.h"
  8370. (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
  8371. (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
  8372. I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
  8373. (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
  8374. i386_gnu_sigcontext_addr): New functions
  8375. (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
  8376. i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
  8377. tdep.
  8378. 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
  8379. * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
  8380. before fork_inferior call. Avoid calling it if target_is_pushed returns
  8381. true.
  8382. 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
  8383. * gnu-nat.h (gnu_target): New variable declaration.
  8384. * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
  8385. gnu_target.
  8386. * gnu-nat.c (gnu_target): New variable.
  8387. (inf_validate_procs): Pass gnu_target to thread_change_ptid,
  8388. add_thread_silent, and add_thread calls.
  8389. (gnu_nat_target::create_inferior): Pass gnu_target to
  8390. add_thread_silent, thread_change_ptid call.
  8391. (gnu_nat_target::detach): Pass gnu_target to detach_inferior
  8392. call.
  8393. 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
  8394. * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
  8395. (gnu_nat_target::find_memory_regions): Remove unused
  8396. `old_address' variable.
  8397. 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
  8398. * gnu-nat.c: Include "gdbarch.h".
  8399. 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
  8400. * reply_mig_hack.awk (Error return): Cast function through
  8401. void *, to bypass compiler function call check.
  8402. 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
  8403. * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
  8404. $(srcdir)/reply_mig_hack.awk.
  8405. 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
  8406. * gnu-nat.h (gnu_debug_flag): Set type to bool.
  8407. 2020-05-30 Jonny Grant <jg@jguk.org>
  8408. * configure.ac (ACX_BUGURL): change bug URL to https.
  8409. 2020-05-30 Pedro Alves <palves@redhat.com>
  8410. * cp-support.c (replace_typedefs_template): New.
  8411. (replace_typedefs_qualified_name): Handle
  8412. DEMANGLE_COMPONENT_TEMPLATE.
  8413. 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
  8414. * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
  8415. dwarf2/index-cache.h, dwarf2/index-write.c,
  8416. dwarf2/index-write.h, dwarf2/line-header.c,
  8417. dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
  8418. dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
  8419. variables and fields from `dwarf2_per_objfile` to just
  8420. `per_objfile` throughout.
  8421. 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
  8422. * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
  8423. <push_dwarf_reg_entry_value>: Add comment.
  8424. 2020-05-28 Kevin Buettner <kevinb@redhat.com>
  8425. Keith Seitz <keiths@redhat.com>
  8426. * python/python.c (do_start_initialization): Call PyEval_SaveThread
  8427. instead of PyEval_ReleaseLock.
  8428. (class gdbpy_gil): Move to earlier in file.
  8429. (finalize_python): Set gdb_python_initialized.
  8430. (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
  8431. when not initialized.
  8432. 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
  8433. * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
  8434. <push_dwarf_reg_entry_value>: Remove assert. Override
  8435. per_objfile with caller_per_objfile.
  8436. 2020-05-28 Tom de Vries <tdevries@suse.de>
  8437. * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
  8438. PR gold/15646 workaround to symbol kind "type".
  8439. 2020-05-27 Tom Tromey <tromey@adacore.com>
  8440. * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
  8441. 2020-05-27 Tom Tromey <tromey@adacore.com>
  8442. * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
  8443. Use htab_find_with_hash.
  8444. <add_abbrev>: Remove "abbrev_number" parameter.
  8445. * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
  8446. "abbrev_number" parameter. Use htab_find_slot_with_hash.
  8447. (hash_abbrev): Add comment.
  8448. (abbrev_table::lookup_abbrev): Move to header file.
  8449. (abbrev_table::read): Update.
  8450. 2020-05-27 Tom Tromey <tromey@adacore.com>
  8451. * dwarf2/read.c (struct partial_die_info) <name>: Declare new
  8452. method.
  8453. <canonical_name>: New member.
  8454. <raw_name>: Rename from "name".
  8455. (partial_die_info): Initialize canonical_name.
  8456. (scan_partial_symbols): Check raw_name.
  8457. (partial_die_parent_scope, partial_die_full_name)
  8458. (add_partial_symbol, add_partial_subprogram)
  8459. (add_partial_enumeration, load_partial_dies): Use "name" method.
  8460. (partial_die_info::name): New method.
  8461. (partial_die_info::read, guess_partial_die_structure_name)
  8462. (partial_die_info::fixup): Update.
  8463. 2020-05-27 Tom Tromey <tromey@adacore.com>
  8464. * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
  8465. <get_ref_die_offset>: Inline.
  8466. <get_ref_die_offset_complaint>: New method.
  8467. * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
  8468. (attribute::get_ref_die_offset_complaint): Rename from
  8469. get_ref_die_offset. Just issue complaint.
  8470. 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
  8471. * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
  8472. 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
  8473. * exec.c (exec_file_attach): Use errno value of first openp failure.
  8474. 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
  8475. * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
  8476. Don't close thread handle.
  8477. 2020-05-27 Tom Tromey <tom@tromey.com>
  8478. Simon Marchi <simon.marchi@efficios.com>
  8479. * objfiles.h (struct objfile) <partial_symtabs>: Now a
  8480. shared_ptr.
  8481. * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
  8482. member.
  8483. * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
  8484. dwarf2_per_bfd_objfile_data_key>: New globals.
  8485. (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
  8486. (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
  8487. (dwarf2_initialize_objfile): Consider cases where per_bfd can be
  8488. shared.
  8489. (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
  8490. short-circuit when sharing.
  8491. (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
  8492. (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
  8493. 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
  8494. * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
  8495. to...
  8496. (struct dwarf2_per_objfile) <line_header_hash>: ... here.
  8497. * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
  8498. 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
  8499. * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
  8500. build_name_components, find_name_components_bounds>:
  8501. Add per_objfile parameter.
  8502. (struct mapped_index) <symbol_name_at>: Likewise.
  8503. (struct mapped_debug_names): Remove constructor.
  8504. <dwarf2_per_objfile>: Remove field.
  8505. <namei_to_name, symbol_name_at>: Add per_objfile parameter.
  8506. (mapped_index_base::find_name_components_bounds,
  8507. mapped_index_base::build_name_components,
  8508. dw2_expand_symtabs_matching_symbol): Likewise.
  8509. (class mock_mapped_index) <symbol_name_at>: Likewise.
  8510. (check_match): Likewise.
  8511. (check_find_bounds_finds): Likewise.
  8512. (test_mapped_index_find_name_component_bounds): Update.
  8513. (CHECK_MATCH): Update.
  8514. (dw2_expand_symtabs_matching): Update.
  8515. (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
  8516. per_objfile parameter.
  8517. <find_vec_in_debug_names>: Likewise.
  8518. <m_per_objfile>: New field.
  8519. (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
  8520. parameter.
  8521. (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
  8522. (dw2_debug_names_iterator::next): Update.
  8523. (dw2_debug_names_lookup_symbol): Update.
  8524. (dw2_debug_names_expand_symtabs_for_function): Update.
  8525. (dw2_debug_names_map_matching_symbols): Update.
  8526. (dw2_debug_names_expand_symtabs_matching): Update.
  8527. (dwarf2_read_debug_names): Update.
  8528. 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
  8529. * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
  8530. (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
  8531. move to dwarf2_per_objfile.
  8532. <read_in_chain>: Remove.
  8533. (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
  8534. remove_all_cus, age_comp_units>: New methods.
  8535. <m_dwarf2_cus>: New member.
  8536. (struct dwarf2_per_cu_data) <cu>: Remove.
  8537. * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
  8538. (age_cached_comp_units, free_one_cached_comp_unit): Remove,
  8539. moved to methods of dwarf2_per_objfile.
  8540. (dwarf2_clear_marks): Remove.
  8541. (dwarf2_queue_item::~dwarf2_queue_item): Update.
  8542. (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
  8543. (dwarf2_per_bfd::free_cached_comp_units): Remove.
  8544. (dwarf2_per_objfile::remove_all_cus): New.
  8545. (class free_cached_comp_units) <~free_cached_comp_units>:
  8546. Update.
  8547. (load_cu): Update.
  8548. (dw2_do_instantiate_symtab): Adjust.
  8549. (fill_in_sig_entry_from_dwo_entry): Adjust.
  8550. (cutu_reader::init_tu_and_read_dwo_dies): Update.
  8551. (cutu_reader::cutu_reader): Likewise.
  8552. (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
  8553. (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
  8554. (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
  8555. and dwarf2_per_objfile::age_comp_units.
  8556. (load_partial_comp_unit): Update.
  8557. (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
  8558. (process_queue): Likewise.
  8559. (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
  8560. backlink.
  8561. (dwarf2_read_addr_index): Likewise.
  8562. (follow_die_offset): Likewise.
  8563. (dwarf2_fetch_die_loc_sect_off): Likewise.
  8564. (dwarf2_fetch_constant_bytes): Likewise.
  8565. (dwarf2_fetch_die_type_sect_off): Likewise.
  8566. (follow_die_sig_1): Likewise.
  8567. (load_full_type_unit): Likewise.
  8568. (read_signatured_type): Likewise.
  8569. (dwarf2_cu::dwarf2_cu): Don't set cu field.
  8570. (dwarf2_cu::~dwarf2_cu): Remove.
  8571. (dwarf2_per_objfile::get_cu): New.
  8572. (dwarf2_per_objfile::set_cu): New.
  8573. (age_cached_comp_units): Rename to...
  8574. (dwarf2_per_objfile::age_comp_units): ... this. Adjust
  8575. to std::unordered_map.
  8576. (free_one_cached_comp_unit): Rename to...
  8577. (dwarf2_per_objfile::remove_cu): ... this. Adjust
  8578. to std::unordered_map.
  8579. (dwarf2_per_objfile::~dwarf2_per_objfile): New.
  8580. (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
  8581. a dwarf2_per_objfile in data.
  8582. (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
  8583. (dwarf2_clear_marks): Remove.
  8584. 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
  8585. * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
  8586. `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
  8587. (init_tu_and_read_dwo_dies): Likewise.
  8588. (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
  8589. (cutu_reader::cutu_reader): Likewise.
  8590. (load_partial_comp_unit): Likewise.
  8591. (process_psymtab_comp_unit): Update.
  8592. (build_type_psymtabs_1): Update.
  8593. (process_skeletonless_type_unit): Update.
  8594. (load_full_comp_unit): Update.
  8595. (find_partial_die): Update.
  8596. (dwarf2_read_addr_index): Update.
  8597. (read_signatured_type): Update.
  8598. 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
  8599. * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
  8600. m_header_read_in>: New fields.
  8601. <get_header>: New method.
  8602. * dwarf2/read.c (per_cu_header_read_in): Remove.
  8603. (dwarf2_per_cu_data::get_header): New.
  8604. (dwarf2_per_cu_data::addr_size): Update.
  8605. (dwarf2_per_cu_data::offset_size): Update.
  8606. (dwarf2_per_cu_data::ref_addr_size): Update.
  8607. 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
  8608. * dwarf2/read.c (load_cu): Return dwarf2_cu.
  8609. (dw2_do_instantiate_symtab): Update.
  8610. (queue_and_load_all_dwo_tus): Change parameter from
  8611. dwarf2_per_cu_data to dwarf2_cu.
  8612. (dwarf2_fetch_die_loc_sect_off): Update.
  8613. (dwarf2_fetch_constant_bytes): Update.
  8614. (dwarf2_fetch_die_type_sect_off): Update.
  8615. 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
  8616. * dwarf2/read.c (process_full_comp_unit,
  8617. process_full_type_unit): Remove per_cu, per_objfile paramters.
  8618. Add dwarf2_cu parameter.
  8619. (process_queue): Update.
  8620. 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
  8621. * dwarf2/read.c (create_cu_from_index_list): Replace
  8622. dwarf2_per_objfile parameter with dwarf2_per_bfd.
  8623. (create_cus_from_index_list): Likewise.
  8624. (create_cus_from_index): Likewise.
  8625. (create_signatured_type_table_from_index): Likewise.
  8626. (create_cus_from_debug_names_list): Likewise.
  8627. (create_cus_from_debug_names): Likewise.
  8628. (dwarf2_read_gdb_index): Update.
  8629. (dwarf2_read_debug_names): Update.
  8630. 2020-05-27 Tom Tromey <tom@tromey.com>
  8631. Simon Marchi <simon.marchi@efficios.com>
  8632. * dwarf2/read.h (struct dwarf2_per_objfile)
  8633. <get_type_for_signatured_type, set_type_for_signatured_type>:
  8634. New methods.
  8635. <m_type_map>: New member.
  8636. (struct signatured_type) <type>: Remove.
  8637. * dwarf2/read.c
  8638. (dwarf2_per_objfile::get_type_for_signatured_type,
  8639. dwarf2_per_objfile::set_type_for_signatured_type): New.
  8640. (get_signatured_type): Use new methods.
  8641. 2020-05-27 Tom Tromey <tom@tromey.com>
  8642. Simon Marchi <simon.marchi@efficios.com>
  8643. * dwarf2/read.h (struct type_unit_group_unshareable): New.
  8644. (struct dwarf2_per_objfile) <type_units>: New member.
  8645. <get_type_unit_group_unshareable>: New method.
  8646. * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
  8647. num_symtabs, symtabs>: Remove; move to
  8648. type_unit_group_unshareable.
  8649. (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
  8650. (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
  8651. (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
  8652. 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
  8653. * dwarf2/read.h (struct dwarf2_per_cu_data):
  8654. <dwarf2_per_objfile>: Remove.
  8655. * dwarf2/read.c (create_cu_from_index_list): Don't assign
  8656. dwarf2_per_objfile.
  8657. (create_signatured_type_table_from_index): Likewise.
  8658. (create_signatured_type_table_from_debug_names): Likewise.
  8659. (create_debug_type_hash_table): Likewise.
  8660. (fill_in_sig_entry_from_dwo_entry): Likewise.
  8661. (create_type_unit_group): Likewise.
  8662. (read_comp_units_from_section): Likewise.
  8663. (create_cus_hash_table): Likewise.
  8664. 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
  8665. * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
  8666. dwarf2_per_cu_data::dwarf2_per_objfile.
  8667. (compute_compunit_symtab_includes): Likewise.
  8668. (dwarf2_cu::start_symtab): Likewise.
  8669. 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
  8670. * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
  8671. parameter.
  8672. * dwarf2/read.c (get_die_type_at_offset): Likewise.
  8673. (read_namespace_alias): Update.
  8674. (lookup_die_type): Update.
  8675. (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
  8676. * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
  8677. Update.
  8678. (disassemble_dwarf_expression): Update.
  8679. 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
  8680. * dwarf2/read.h (struct dwarf2_queue_item): Add
  8681. dwarf2_per_objfile parameter, assign new parameter.
  8682. <per_objfile>: New field.
  8683. * dwarf2/read.c (free_one_cached_comp_unit): Add
  8684. dwarf2_per_objfile parameter.
  8685. (queue_comp_unit): Likewise.
  8686. (dw2_do_instantiate_symtab): Update.
  8687. (process_psymtab_comp_unit): Update.
  8688. (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
  8689. (process_imported_unit_die): Update.
  8690. (queue_and_load_dwo_tu): Update.
  8691. (follow_die_offset): Update.
  8692. (follow_die_sig_1): Update.
  8693. 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
  8694. * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
  8695. * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
  8696. (read_call_site_scope): Assign per_objfile.
  8697. (dwarf2_per_cu_data::objfile): Remove.
  8698. * gdbtypes.h (struct call_site) <per_objfile>: New member.
  8699. * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
  8700. dwarf2_per_objfile parameter.
  8701. * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
  8702. dwarf2_per_objfile parameter.
  8703. (dwarf_expr_reg_to_entry_parameter): Add output
  8704. dwarf2_per_objfile parameter.
  8705. (locexpr_get_frame_base): Update.
  8706. (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
  8707. <push_dwarf_reg_entry_value>: Update.
  8708. <call_site_to_target_addr>: Update.
  8709. (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
  8710. parameter.
  8711. (value_of_dwarf_reg_entry): Update.
  8712. (rw_pieced_value): Update.
  8713. (indirect_synthetic_pointer): Update.
  8714. (dwarf2_evaluate_property): Update.
  8715. (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
  8716. parameter.
  8717. (locexpr_read_variable): Update.
  8718. (locexpr_get_symbol_read_needs): Update.
  8719. (loclist_read_variable): Update.
  8720. 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
  8721. * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
  8722. dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
  8723. dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
  8724. parameter.
  8725. * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
  8726. dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
  8727. dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
  8728. parameter.
  8729. * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
  8730. sect_variable_value): Add dwarf2_per_objfile parameter.
  8731. (class dwarf_evaluate_loc_desc) <dwarf_call,
  8732. dwarf_variable_value>: Update.
  8733. (fetch_const_value_from_synthetic_pointer): Add
  8734. dwarf2_per_objfile parameter.
  8735. (fetch_const_value_from_synthetic_pointer): Update.
  8736. (coerced_pieced_ref): Update.
  8737. (class symbol_needs_eval_context) <dwarf_call,
  8738. dwarf_variable_value>: Update.
  8739. (dwarf2_compile_expr_to_ax): Update.
  8740. 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
  8741. * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
  8742. parameter.
  8743. (dwarf2_evaluate_loc_desc_full): Update.
  8744. 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
  8745. * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
  8746. parameter.
  8747. * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
  8748. * dwarf2/loc.c (decode_debug_loclists_addresses): Add
  8749. dwarf2_per_objfile parameter.
  8750. (decode_debug_loc_dwo_addresses): Likewise.
  8751. (dwarf2_find_location_expression): Update.
  8752. (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
  8753. (locexpr_describe_location_piece): Add dwarf2_per_objfile
  8754. parameter.
  8755. (disassemble_dwarf_expression): Add dwarf2_per_objfile
  8756. parameter.
  8757. (locexpr_describe_location_1): Likewise.
  8758. (locexpr_describe_location): Update.
  8759. 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
  8760. * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
  8761. Remove.
  8762. * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
  8763. * dwarf2/loc.c (dwarf2_find_location_expression): Update.
  8764. (dwarf2_compile_property_to_c): Update.
  8765. (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
  8766. use text offset from objfile.
  8767. (locexpr_tracepoint_var_ref): Update.
  8768. (locexpr_generate_c_location): Update.
  8769. (loclist_describe_location): Update.
  8770. (loclist_tracepoint_var_ref): Update.
  8771. * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
  8772. dwarf2_per_objfile parameter.
  8773. * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
  8774. use text offset from objfile.
  8775. (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
  8776. 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
  8777. * dwarf2/expr.h (struct dwarf_expr_context)
  8778. <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
  8779. <offset>: Remove.
  8780. <per_objfile>: New member.
  8781. * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
  8782. dwarf2_per_objfile parameter. Don't set offset, set
  8783. per_objfile.
  8784. (dwarf_expr_context::execute_stack_op): Use offset from objfile.
  8785. * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
  8786. a dwarf2_per_objfile object instead of an offset.
  8787. (class dwarf_expr_executor) <dwarf_expr_executor>: Add
  8788. constructor.
  8789. (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
  8790. to dwarf2_expr_executor constructor. Don't set offset.
  8791. (dwarf2_fetch_cfa_info): Update.
  8792. (struct dwarf2_frame_cache) <text_offset>: Remove.
  8793. <per_objfile>: New field.
  8794. (dwarf2_frame_cache): Update.
  8795. (dwarf2_frame_prev_register): Update.
  8796. * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
  8797. <dwarf_evaluate_loc_desc>: Add constructor.
  8798. (dwarf2_evaluate_loc_desc_full): Update.
  8799. (dwarf2_locexpr_baton_eval): Update.
  8800. (class symbol_needs_eval_context) <symbol_needs_eval_context>:
  8801. Add constructor.
  8802. (dwarf2_loc_desc_get_symbol_read_needs): Update.
  8803. 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
  8804. * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
  8805. addr_sized_int_type>: Move to dwarf2_cu.
  8806. <int_type>: Move to dwarf2_per_objfile.
  8807. (struct dwarf2_per_objfile) <int_type>: Move here.
  8808. * dwarf2/read.c (struct dwarf2_cu) <addr_type,
  8809. addr_sized_int_type>: Move here.
  8810. (read_func_scope): Update.
  8811. (read_array_type): Update.
  8812. (read_tag_string_type): Update.
  8813. (attr_to_dynamic_prop): Update.
  8814. (dwarf2_per_cu_data::int_type): Rename to...
  8815. (dwarf2_per_objfile::int_type): ... this.
  8816. (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
  8817. (dwarf2_cu::addr_sized_int_type): ... this.
  8818. (read_subrange_type): Update.
  8819. (dwarf2_per_cu_data::addr_type): Rename to...
  8820. (dwarf2_cu::addr_type): ... this.
  8821. (set_die_type): Update.
  8822. 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
  8823. * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
  8824. data through per_cu->cu.
  8825. 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
  8826. * dwarf2/read.c (lookup_dwo_comp_unit): Change
  8827. dwarf2_per_cu_data parameter fo dwarf2_cu.
  8828. (lookup_dwo_type_unit): Likewise.
  8829. (read_cutu_die_from_dwo): Likewise.
  8830. (lookup_dwo_unit): Likewise.
  8831. (open_and_init_dwo_file): Likewise.
  8832. (lookup_dwo_cutu): Likewise.
  8833. (lookup_dwo_comp_unit): Likewise.
  8834. (lookup_dwo_type_unit): Likewise.
  8835. (cutu_reader::init_tu_and_read_dwo_dies): Update.
  8836. (cutu_reader::cutu_reader): Update.
  8837. 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
  8838. * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
  8839. parameter.
  8840. (process_full_type_unit): Likewise.
  8841. (process_queue): Update.
  8842. 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
  8843. * dwarf2/read.c (recursively_compute_inclusions): Add
  8844. dwarf2_per_objfile parameter.
  8845. (compute_compunit_symtab_includes): Likewise.
  8846. (process_cu_includes): Update.
  8847. 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
  8848. * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
  8849. parameter.
  8850. (create_type_unit_group): Update.
  8851. (process_psymtab_comp_unit_reader): Update.
  8852. (build_type_psymtabs_reader): Update.
  8853. 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
  8854. * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
  8855. object through m_this_cu->cu.
  8856. 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
  8857. * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
  8858. the info parameter.
  8859. (queue_and_load_all_dwo_tus): Pass per_cu->cu.
  8860. 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
  8861. * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
  8862. per_objfile parameter.
  8863. (load_full_type_unit): Add per_objfile parameter.
  8864. (read_signatured_type): Likewise.
  8865. (load_full_comp_unit): Likewise.
  8866. (load_cu): Likewise.
  8867. (dw2_do_instantiate_symtab): Likewise.
  8868. (dw2_get_file_names): Likewise.
  8869. (dw2_map_symtabs_matching_filename): Update.
  8870. (dw_expand_symtabs_matching_file_matcher): Update.
  8871. (dw2_map_symbol_filenames): Update.
  8872. (process_psymtab_comp_unit): Add per_objfile parameter.
  8873. (build_type_psymtabs_1): Update.
  8874. (process_skeletonless_type_unit): Update.
  8875. (dwarf2_build_psymtabs_hard): Update.
  8876. (load_partial_comp_unit): Add per_objfile parameter.
  8877. (scan_partial_symbols): Update.
  8878. (load_full_comp_unit): Add per_objfile parameter.
  8879. (process_imported_unit_die): Update.
  8880. (create_cus_hash_table): Update.
  8881. (find_partial_die): Update.
  8882. (dwarf2_read_addr_index): Update.
  8883. (follow_die_offset): Update.
  8884. (dwarf2_fetch_die_loc_sect_off): Update.
  8885. (dwarf2_fetch_constant_bytes): Update.
  8886. (dwarf2_fetch_die_type_sect_off): Update.
  8887. (follow_die_sig_1): Update.
  8888. (load_full_type_unit): Add per_objfile parameter.
  8889. (read_signatured_type): Likewise.
  8890. 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
  8891. * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
  8892. of objfile_name.
  8893. 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
  8894. * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
  8895. (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
  8896. * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
  8897. field.
  8898. (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
  8899. (create_cus_from_index): Update.
  8900. (dwarf2_read_gdb_index): Update.
  8901. (create_cus_from_debug_names): Update.
  8902. (dwarf2_read_debug_names): Update.
  8903. (get_abbrev_section_for_cu): Update.
  8904. (create_all_comp_units): Update.
  8905. (read_attribute_value): Update.
  8906. (get_debug_line_section): Update.
  8907. * dwarf2/index-cache.c (index_cache::store): Update.
  8908. * dwarf2/index-write.c (save_gdb_index_command): Update.
  8909. * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
  8910. 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
  8911. * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
  8912. member.
  8913. * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
  8914. dwarf2_per_cu_data::per_bfd.
  8915. (dwarf2_per_bfd::allocate_signatured_type): Likewise.
  8916. (create_type_unit_group): Likewise.
  8917. (queue_comp_unit): Remove reference to
  8918. per_cu->dwarf2_per_objfile.
  8919. (maybe_queue_comp_unit): Likewise.
  8920. (fill_in_sig_entry_from_dwo_entry): Assign new field.
  8921. (create_cus_hash_table): Assign new field.
  8922. 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
  8923. * dwarf2/read.c: Replace
  8924. dwarf2_cu->per_cu->dwarf2_per_objfile references with
  8925. dwarf2_cu->per_objfile throughout.
  8926. 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
  8927. * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
  8928. parameter, don't use per_cu->dwarf2_per_objfile.
  8929. (dw2_instantiate_symtab): Likewise.
  8930. (dw2_find_last_source_symtab): Update.
  8931. (dw2_map_expand_apply): Update.
  8932. (dw2_lookup_symbol): Update.
  8933. (dw2_expand_symtabs_for_function): Update.
  8934. (dw2_expand_all_symtabs): Update.
  8935. (dw2_expand_symtabs_with_fullname): Update.
  8936. (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
  8937. don't use per_cu->dwarf2_per_objfile.
  8938. (dw2_expand_marked_cus): Update.
  8939. (dw2_find_pc_sect_compunit_symtab): Update.
  8940. (dw2_debug_names_lookup_symbol): Update.
  8941. (dw2_debug_names_expand_symtabs_for_function): Update.
  8942. (dw2_debug_names_map_matching_symbols): Update.
  8943. (dwarf2_psymtab::expand_psymtab): Update.
  8944. 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
  8945. * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
  8946. <per_objfile>: New member.
  8947. (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
  8948. (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
  8949. call to dwarf2_cu.
  8950. (cutu_reader::cutu_reader): Update.
  8951. (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
  8952. 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
  8953. * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
  8954. struct dwarf2_per_objfile.
  8955. (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
  8956. dwarf2_per_bfd.
  8957. * dwarf2/read.c (set_die_type): Update.
  8958. (get_die_type_at_offset): Update.
  8959. 2020-05-27 Tom Tromey <tom@tromey.com>
  8960. Simon Marchi <simon.marchi@efficios.com>
  8961. * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
  8962. method.
  8963. (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
  8964. get_symtab, set_symtab>: New methods.
  8965. <m_symtabs>: New field.
  8966. (struct dwarf2_psymtab): Derive from partial_symtab.
  8967. <readin_p, get_compunit_symtab>: Declare methods.
  8968. * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
  8969. dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
  8970. New methods.
  8971. (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
  8972. (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
  8973. (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
  8974. (dw2_symtab_iter_next, dw2_print_stats)
  8975. (dw2_expand_symtabs_with_fullname)
  8976. (dw2_expand_symtabs_matching_one)
  8977. (dw_expand_symtabs_matching_file_matcher)
  8978. (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
  8979. (dw2_debug_names_iterator::next)
  8980. (dw2_debug_names_map_matching_symbols)
  8981. (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
  8982. (process_queue, dwarf2_psymtab::expand_psymtab): Update.
  8983. (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
  8984. New methods.
  8985. (get_compunit_symtab, process_full_comp_unit)
  8986. (process_full_type_unit): Update.
  8987. (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
  8988. 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
  8989. * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
  8990. then introduce a new dwarf2_per_objfile type.
  8991. <read_line_string>: Move to the new dwarf2_per_objfile type.
  8992. <objfile>: Likewise.
  8993. (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
  8994. * dwarf2/read.c: Replace references to dwarf2_per_objfile with
  8995. dwarf2_per_objfile->per_bfd.
  8996. (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
  8997. (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
  8998. (dwarf2_per_objfile::free_cached_comp_units): Rename to...
  8999. (dwarf2_per_bfd::free_cached_comp_units): ... this.
  9000. (dwarf2_has_info): Allocate dwarf2_per_bfd.
  9001. (dwarf2_per_objfile::locate_sections): Rename to...
  9002. (dwarf2_per_bfd::locate_sections): ... this.
  9003. (dwarf2_per_objfile::get_cutu): Rename to...
  9004. (dwarf2_per_bfd::get_cutu): ... this.
  9005. (dwarf2_per_objfile::get_cu): Rename to...
  9006. (dwarf2_per_bfd::get_cu): ... this.
  9007. (dwarf2_per_objfile::get_tu): Rename to...
  9008. (dwarf2_per_bfd::get_tu): ... this.
  9009. (dwarf2_per_objfile::allocate_per_cu): Rename to...
  9010. (dwarf2_per_bfd::allocate_per_cu): ... this.
  9011. (dwarf2_per_objfile::allocate_signatured_type): Rename to...
  9012. (dwarf2_per_bfd::allocate_signatured_type): ... this.
  9013. (get_gdb_index_contents_ftype): Change parameter from
  9014. dwarf2_per_objfile to dwarf2_per_bfd.
  9015. * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
  9016. dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
  9017. 2020-05-27 Tom Tromey <tom@tromey.com>
  9018. Simon Marchi <simon.marchi@efficios.com>
  9019. * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
  9020. (allocate_piece_closure): Set "per_objfile" member.
  9021. (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
  9022. (locexpr_describe_location, loclist_describe_location): Use new
  9023. member.
  9024. * dwarf2/read.c (read_call_site_scope)
  9025. (mark_common_block_symbol_computed, attr_to_dynamic_prop)
  9026. (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
  9027. (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
  9028. handle_data_member_location): Set per_objfile member.
  9029. * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
  9030. member.
  9031. (struct dwarf2_loclist_baton) <per_objfile>: New member.
  9032. 2020-05-27 Tom Tromey <tom@tromey.com>
  9033. * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
  9034. allocate_signatured_type>: Declare new methods.
  9035. <m_num_psymtabs>: New member.
  9036. (struct dwarf2_per_cu_data) <index>: New member.
  9037. * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
  9038. (dwarf2_per_objfile::allocate_signatured_type): New methods.
  9039. (create_cu_from_index_list): Use allocate_per_cu.
  9040. (create_signatured_type_table_from_index)
  9041. (create_signatured_type_table_from_debug_names)
  9042. (create_debug_type_hash_table, add_type_unit)
  9043. (read_comp_units_from_section): Use allocate_signatured_type.
  9044. 2020-05-27 Tom Tromey <tom@tromey.com>
  9045. * psymtab.c (partial_map_expand_apply)
  9046. (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
  9047. (psym_lookup_global_symbol_language)
  9048. (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
  9049. (psym_print_stats, psym_expand_symtabs_for_function)
  9050. (psym_map_symbol_filenames, psym_map_matching_symbols)
  9051. (psym_expand_symtabs_matching)
  9052. (partial_symtab::read_dependencies, maintenance_info_psymtabs)
  9053. (maintenance_check_psymtabs): Update.
  9054. * psympriv.h (struct partial_symtab) <readin_p,
  9055. get_compunit_symtab>: Add objfile parameter.
  9056. (struct standard_psymtab) <readin_p, get_compunit_symtab>:
  9057. Likewise.
  9058. * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
  9059. get_compunit_symtab>: Likewise.
  9060. (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
  9061. 2020-05-27 Tom Tromey <tom@tromey.com>
  9062. * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
  9063. member.
  9064. * dwarf2/read.c (delete_file_name_entry): Fix comment.
  9065. (create_cu_from_index_list)
  9066. (create_signatured_type_table_from_index)
  9067. (create_signatured_type_table_from_debug_names)
  9068. (dw2_get_file_names_reader, dwarf2_initialize_objfile)
  9069. (dwarf2_create_include_psymtab)
  9070. (create_debug_type_hash_table, add_type_unit)
  9071. (create_type_unit_group, read_comp_units_from_section)
  9072. (dwarf2_compute_name, create_cus_hash_table)
  9073. (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
  9074. (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
  9075. obstack.
  9076. (dw2_get_real_path): Likewise. Change argument to
  9077. dwarf2_per_objfile.
  9078. 2020-05-27 Luis Machado <luis.machado@linaro.org>
  9079. PR tdep/26000
  9080. * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
  9081. for ldrd (immediate).
  9082. 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  9083. * command.h: Add comment giving the name of class_tui.
  9084. * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
  9085. create the fake command for the help for class_tui.
  9086. 2020-05-26 Tom Tromey <tromey@adacore.com>
  9087. * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
  9088. (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
  9089. (val_atr): New function.
  9090. (value_val_atr): Use it.
  9091. * ada-valprint.c (print_optional_low_bound): Change low bound
  9092. handling for enums.
  9093. (val_print_packed_array_elements): Don't call discrete_position.
  9094. * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
  9095. discrete_position for enum types.
  9096. * language.c (default_print_array_index): Change type.
  9097. * language.h (struct language_defn) <la_print_array_index>: Add
  9098. index_type parameter, change type of index_value.
  9099. (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
  9100. (default_print_array_index): Update.
  9101. * valprint.c (maybe_print_array_index): Don't call
  9102. value_from_longest. Update.
  9103. (value_print_array_elements): Don't call discrete_position.
  9104. 2020-05-26 Tom Tromey <tromey@adacore.com>
  9105. * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
  9106. * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
  9107. 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
  9108. PR gdb/13519
  9109. * avr-tdep.c (avr_integer_to_address): Return data or code
  9110. address accordingly to the second 'type' argument of the
  9111. function.
  9112. 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
  9113. * infcmd.c, inferior.h: (construct_inferior_arguments):
  9114. Moved function from here to gdbsupport/common-inferior.{h,cc}
  9115. 2020-05-23 Tom Tromey <tom@tromey.com>
  9116. Revert commit eca1f90c:
  9117. * NEWS: Remove entry for completion styling.
  9118. * completer.c (_rl_completion_prefix_display_length): Move
  9119. declaration later.
  9120. (gdb_fnprint): Revert.
  9121. (gdb_display_match_list_1): Likewise.
  9122. * cli/cli-style.c (completion_prefix_style)
  9123. (completion_difference_style, completion_suffix_style): Remove.
  9124. (_initialize_cli_style): Revert.
  9125. * cli/cli-style.h (completion_prefix_style)
  9126. (completion_difference_style, completion_suffix_style): Don't
  9127. declare.
  9128. 2020-05-24 Pedro Alves <palves@redhat.com>
  9129. * symtab.c (completion_list_add_name): Return boolean indication
  9130. of whether the symbol matched.
  9131. (completion_list_add_symbol): Don't try to remove C++ aliases if
  9132. the symbol didn't match in the first place.
  9133. * symtab.h (completion_list_add_name): Return bool.
  9134. 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
  9135. * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
  9136. type::field.
  9137. 2020-05-23 Joel Brobecker <brobecker@adacore.com>
  9138. GDB 9.2 released.
  9139. 2020-05-23 Tom Tromey <tom@tromey.com>
  9140. * NEWS: Add entry for completion styling.
  9141. * completer.c (_rl_completion_prefix_display_length): Move
  9142. declaration earlier.
  9143. (gdb_fnprint): Use completion_style.
  9144. (gdb_display_match_list_1): Likewise.
  9145. * cli/cli-style.c (completion_prefix_style)
  9146. (completion_difference_style, completion_suffix_style): New
  9147. globals.
  9148. (_initialize_cli_style): Register new globals.
  9149. * cli/cli-style.h (completion_prefix_style)
  9150. (completion_difference_style, completion_suffix_style): Declare.
  9151. 2020-05-23 Pedro Alves <palves@redhat.com>
  9152. * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
  9153. (parse_escape): Use ISDIGIT instead of isdigit.
  9154. (puts_debug): Use gdb_isprint instead of isprint.
  9155. (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
  9156. (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
  9157. ISSPACE instead of isspace.
  9158. (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
  9159. instead of isspace.
  9160. (strcmp_iw_ordered): Use ISSPACE instead of isspace.
  9161. (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
  9162. instead of isxdigit and ISDIGIT instead of isdigit.
  9163. 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
  9164. * gdbtypes.h (struct type) <field>: New method.
  9165. (TYPE_FIELDS): Remove, replace all uses with either type::fields
  9166. or type::field.
  9167. 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
  9168. * gdbtypes.h (struct type) <fields, set_fields>: New methods.
  9169. (TYPE_FIELDS): Use type::fields. Change all call sites that
  9170. modify the propery to use type::set_fields instead.
  9171. 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
  9172. * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
  9173. type::num_fields instead.
  9174. 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
  9175. * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
  9176. methods.
  9177. (TYPE_NFIELDS): Use type::num_fields. Change all call sites
  9178. that modify the number of fields to use type::set_num_fields
  9179. instead.
  9180. 2020-05-22 Tom Tromey <tromey@adacore.com>
  9181. * compile/compile-object-load.h (munmap_list_free): Don't
  9182. declare.
  9183. 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
  9184. * annotate.c (annotate_source_line): Update return type, add call
  9185. to update current symtab and line.
  9186. * annotate.h (annotate_source_line): Update return type, and
  9187. extend header comment.
  9188. * source.c (info_line_command): Check annotation_level before
  9189. calling annotate_source_line.
  9190. * stack.c (print_frame_info): If calling annotate_source_line
  9191. returns true, then don't print any other source line information.
  9192. 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
  9193. * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
  9194. 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
  9195. * coffread.c (patch_type): Remove NULL check before xfree.
  9196. * corefile.c (set_gnutarget): Likewise.
  9197. * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
  9198. * exec.c (build_section_table): Likewise.
  9199. * remote.c (remote_target::pass_signals): Likewise.
  9200. * utils.c (n_spaces): Likewise.
  9201. * cli/cli-script.c (document_command): Likewise.
  9202. * i386-windows-tdep.c (core_process_module_section): Likewise.
  9203. * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
  9204. 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
  9205. * symfile.c (reread_symbols): Clear objfile's section_offsets
  9206. vector and section indices, re-compute them by calling
  9207. sym_offsets.
  9208. 2020-05-20 Tom Tromey <tromey@adacore.com>
  9209. * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
  9210. (desc_one_bound, desc_index_type): Compute field name.
  9211. 2020-05-20 Tom de Vries <tdevries@suse.de>
  9212. PR symtab/25833
  9213. * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
  9214. 2020-05-20 Alan Modra <amodra@gmail.com>
  9215. PR 25993
  9216. * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
  9217. bfd_set_filename.
  9218. * solib-aix.c (solib_aix_bfd_open): Use std::string for name
  9219. passed to bfd_set_filename.
  9220. * symfile-mem.c (add_vsyscall_page): Likewise for string
  9221. passed to symbol_file_add_from_memory.
  9222. (symbol_file_add_from_memory): Make name param a const char* and
  9223. don't strdup.
  9224. 2020-05-20 Alan Modra <amodra@gmail.com>
  9225. * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
  9226. rather than accessing bfd->filename directly.
  9227. * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
  9228. and use bfd_section_name.
  9229. * dwarf2/frame.c (decode_frame_entry): Likewise.
  9230. * exec.c (exec_set_section_address): Likewise.
  9231. * solib-aix.c (solib_aix_bfd_open): Likewise.
  9232. * stap-probe.c (get_stap_base_address): Likewise.
  9233. * symfile.c (reread_symbols): Likewise.
  9234. 2020-05-19 Tom Tromey <tromey@adacore.com>
  9235. * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
  9236. 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
  9237. * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
  9238. 2020-05-19 Pedro Alves <palves@redhat.com>
  9239. * NEWS (set exec-file-mismatch): Adjust entry.
  9240. * exec.c: Include "build-id.h".
  9241. (validate_exec_file): Try to match build IDs instead of filenames.
  9242. * gdb_bfd.c (struct gdb_bfd_open_closure): New.
  9243. (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
  9244. and pass down 'warn_if_slow'.
  9245. (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
  9246. gdb_bfd_open_closure to pass it down.
  9247. * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
  9248. 2020-05-19 Pedro Alves <palves@redhat.com>
  9249. * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
  9250. * target.c (target_fileio_open_1): Rename to target_fileio_open
  9251. and make extern. Use bool.
  9252. (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
  9253. (target_fileio_read_alloc_1): Adjust.
  9254. * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
  9255. (target_fileio_open_warn_if_slow): Delete declaration.
  9256. 2020-05-19 Pedro Alves <palves@redhat.com>
  9257. * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
  9258. Adjust all callers.
  9259. 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
  9260. * h8300-tdep.c (h8300_is_argument_spill): Change how we check
  9261. whether disp is negative.
  9262. 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
  9263. * symfile.h (struct symfile_segment_data)
  9264. <~symfile_segment_data>: Remove.
  9265. <segment_info>: Change to std::vector.
  9266. * symfile.c (default_symfile_segments): Update.
  9267. * elfread.c (elf_symfile_segments): Update.
  9268. 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
  9269. * symfile.h (struct symfile_segment_data) <struct segment>: New.
  9270. <segments>: New.
  9271. <segment_bases, segment_sizes>: Remove.
  9272. * symfile.c (default_symfile_segments): Update.
  9273. * elfread.c (elf_symfile_segments): Update.
  9274. * remote.c (remote_target::get_offsets): Update.
  9275. * solib-target.c (solib_target_relocate_section_addresses):
  9276. Update.
  9277. 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
  9278. * symfile.h (struct symfile_segment_data): Initialize fields.
  9279. <~symfile_segment_data>: Add.
  9280. (symfile_segment_data_up): New.
  9281. (struct sym_fns) <sym_segments>: Return a
  9282. symfile_segment_data_up.
  9283. (default_symfile_segments): Return a symfile_segment_data_up.
  9284. (free_symfile_segment_data): Remove.
  9285. (get_symfile_segment_data): Return a symfile_segment_data_up.
  9286. * symfile.c (default_symfile_segments): Likewise.
  9287. (get_symfile_segment_data): Likewise.
  9288. (free_symfile_segment_data): Remove.
  9289. (symfile_find_segment_sections): Update.
  9290. * elfread.c (elf_symfile_segments): Return a
  9291. symfile_segment_data_up.
  9292. * remote.c (remote_target::get_offsets): Update.
  9293. * solib-target.c (solib_target_relocate_section_addresses):
  9294. Update.
  9295. * symfile-debug.c (debug_sym_segments): Return a
  9296. symfile_segment_data_up.
  9297. 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  9298. PR build/25981
  9299. * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
  9300. Hardcode register numbers.
  9301. PR build/25981
  9302. * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
  9303. procfs_find_LDT_entry): Remove.
  9304. * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
  9305. procfs_find_LDT_entry): Remove.
  9306. * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
  9307. Remove.
  9308. 2020-05-17 Pedro Alves <palves@redhat.com>
  9309. Andrew Burgess <andrew.burgess@embecosm.com>
  9310. Keno Fischer <keno@juliacomputing.com>
  9311. PR gdb/25741
  9312. * breakpoint.c (build_target_condition_list): Update comments.
  9313. (build_target_command_list): Update comments and skip matching
  9314. locations.
  9315. (insert_bp_location): Move "set breakpoint auto-hw on" handling to
  9316. a separate function. Simplify "set breakpoint auto-hw off"
  9317. handling.
  9318. (insert_breakpoints): Update comment.
  9319. (tracepoint_locations_match): New parameter. For breakpoints,
  9320. compare location types too, if the caller wants to.
  9321. (handle_automatic_hardware_breakpoints): New functions.
  9322. (bp_location_is_less_than): Also sort by location type and
  9323. hardware breakpoint length.
  9324. (update_global_location_list): Handle "set breakpoint auto-hw on"
  9325. here.
  9326. (update_breakpoint_locations): Ask breakpoint_locations_match to
  9327. ignore location types.
  9328. 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
  9329. * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
  9330. type::name instead.
  9331. 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
  9332. * gdbtypes.h (struct type) <name, set_name>: New methods.
  9333. (TYPE_CODE): Use type::name. Change all call sites used to set
  9334. the name to use type::set_name instead.
  9335. 2020-05-16 Tom Tromey <tom@tromey.com>
  9336. * top.c (quit_force): Update.
  9337. * infrun.c (handle_no_resumed): Update.
  9338. * top.h (all_uis): New function.
  9339. (ALL_UIS): Remove.
  9340. 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
  9341. * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
  9342. 2020-05-16 Pedro Alves <palves@redhat.com>
  9343. * ia64-linux-nat.c
  9344. (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
  9345. Declare method.
  9346. (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
  9347. 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
  9348. * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
  9349. (sparc64_adi_info): Likewise.
  9350. 2020-05-15 Tom Tromey <tom@tromey.com>
  9351. * symtab.c (lookup_language_this, lookup_symbol_aux): Use
  9352. block_objfile.
  9353. (lookup_objfile_from_block): Remove.
  9354. (lookup_symbol_in_block, lookup_symbol_in_static_block)
  9355. (lookup_global_symbol): Use block_objfile.
  9356. * symtab.h (lookup_objfile_from_block): Don't declare.
  9357. * printcmd.c (clear_dangling_display_expressions): Use
  9358. block_objfile.
  9359. * parse.c (operator_check_standard): Use block_objfile.
  9360. 2020-05-15 Tom Tromey <tom@tromey.com>
  9361. * language.c (language_alloc_type_symbol): Set
  9362. SYMBOL_SECTION.
  9363. * symtab.c (initialize_objfile_symbol): Remove.
  9364. (allocate_symbol): Remove.
  9365. (allocate_template_symbol): Remove.
  9366. * dwarf2/read.c (fixup_go_packaging): Use "new".
  9367. (new_symbol): Use "new".
  9368. (read_variable): Don't call initialize_objfile_symbol. Use
  9369. "new".
  9370. (read_func_scope): Use "new".
  9371. * xcoffread.c (process_xcoff_symbol): Don't call
  9372. initialize_objfile_symbol.
  9373. (SYMBOL_DUP): Remove.
  9374. * coffread.c (process_coff_symbol, coff_read_enum_type): Use
  9375. "new".
  9376. * symtab.h (allocate_symbol, initialize_objfile_symbol)
  9377. (allocate_template_symbol): Don't declare.
  9378. (struct symbol): Add copy constructor. Change defaults.
  9379. * jit.c (finalize_symtab): Use "new".
  9380. * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
  9381. Use "new".
  9382. * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
  9383. (common_block_end): Use "new".
  9384. * mdebugread.c (parse_symbol): Use "new".
  9385. (new_symbol): Likewise.
  9386. 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  9387. * NEWS: Mention changes to help and apropos.
  9388. 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  9389. * command.h (enum command_class): Improve comments, document
  9390. that class_alias is for user-defined aliases, give the class
  9391. name for each class, remove unused class_xdb.
  9392. * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
  9393. * breakpoint.c (_initialize_breakpoint): Replace class_alias
  9394. by a precise class.
  9395. * infcmd.c (_initialize_infcmd): Likewise.
  9396. * reverse.c (_initialize_reverse): Likewise.
  9397. * stack.c (_initialize_stack): Likewise.
  9398. * symfile.c (_initialize_symfile): Likewise.
  9399. * tracepoint.c (_initialize_tracepoint): Likewise.
  9400. 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  9401. * cli/cli-decode.c (apropos_cmd): Produce output for aliases
  9402. when their aliased command is traversed.
  9403. (help_cmd): Add fput_command_names_styled call to
  9404. output command name and aliases when command has an alias.
  9405. 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  9406. * cli/cli-decode.h (help_cmd_list): Remove declaration.
  9407. * cli/cli-decode.c (help_cmd_list): Declare as static,
  9408. remove prefix argument, use bool for recurse arg, rework to show the aliases of
  9409. a command together with the command.
  9410. (fput_command_name_styled, fput_command_names_styled): New functions.
  9411. (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
  9412. fput_command_name_styled.
  9413. (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
  9414. * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
  9415. 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  9416. * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
  9417. * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
  9418. * command.h (cmd_show_list): Likewise.
  9419. * dwarf2/index-cache.c (show_index_cache_command): Likewise.
  9420. * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
  9421. 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  9422. * unittests/command-def-selftests.c (traverse_command_structure):
  9423. Verify all commands of a list have the same prefix command and
  9424. that only the top cmdlist commands have a null prefix.
  9425. 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  9426. * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
  9427. as prefix, not one of its aliases.
  9428. (set_cmd_prefix): Remove.
  9429. (do_add_cmd): Centralize the setting of the prefix of a command, when
  9430. command is defined after its full chain of prefix commands.
  9431. (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
  9432. (add_setshow_cmd_full): Likewise.
  9433. (update_prefix_field_of_prefixed_commands): New function.
  9434. (add_prefix_cmd): Replace non working call to set_cmd_prefix by
  9435. update_prefix_field_of_prefixed_commands.
  9436. * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
  9437. addresses of remote_set_cmdlist and remote_show_cmdlist given
  9438. as argument, not the address of an argument.
  9439. * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
  9440. * gdb/remote.c (_initialize_remote): Likewise.
  9441. 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  9442. * cli/cli-cmds.c (alias_command): Check for an existing alias
  9443. using lookup_cmd_composition, as valid_command_p is too strict
  9444. and forbids aliases that are the prefix of an existing alias
  9445. or command.
  9446. * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
  9447. command is properly recognised as a valid command.
  9448. 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  9449. * unittests/help-doc-selftests.c: Rename to
  9450. unittests/command-def-selftests.c
  9451. * unittests/command-def-selftests.c (help_doc_tests): Update some
  9452. comments.
  9453. (command_structure_tests, traverse_command_structure): New namespace
  9454. and function.
  9455. (command_structure_invariants_tests): New function.
  9456. (_initialize_command_def_selftests) Renamed from
  9457. _initialize_help_doc_selftests, register command_structure_invariants
  9458. selftest.
  9459. 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  9460. * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
  9461. an alias of 'show'.
  9462. 2020-05-15 Joel Brobecker <brobecker@adacore.com>
  9463. * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
  9464. ada_is_fixed_point_type. Update all callers.
  9465. (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
  9466. all callers.
  9467. * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
  9468. Update all callers.
  9469. * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
  9470. print_fixed_point_type. Update all callers.
  9471. * ada-valprint.c (ada_value_print_num): Replace call to
  9472. ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
  9473. 2020-05-14 Kevin Buettner <kevinb@redhat.com>
  9474. * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
  9475. processors.
  9476. (cpu_supports_bts): Add CV_AMD case.
  9477. 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
  9478. Simon Marchi <simon.marchi@efficios.com>
  9479. * infrun.c (stop_all_threads): Collect multiple wait events at
  9480. each pass.
  9481. 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
  9482. * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
  9483. type::code instead.
  9484. 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
  9485. * gdbtypes.h (struct type) <code, set_code>: New methods.
  9486. (TYPE_CODE): Use type::code. Change all call sites used to set
  9487. the code to use type::set_code instead.
  9488. 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  9489. Tom de Vries <tdevries@suse.de>
  9490. Pedro Alves <palves@redhat.com>
  9491. PR threads/25478
  9492. * infrun.c (stop_all_threads): Do NOT ignore
  9493. TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
  9494. TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
  9495. received.
  9496. (handle_no_resumed): Remove code handling a live inferior with no
  9497. threads.
  9498. * remote.c (has_single_non_exited_thread): New.
  9499. (remote_target::update_thread_list): Do not delete a thread if is
  9500. the last thread of the process.
  9501. * thread.c (thread_select): Call delete_exited_threads instead of
  9502. prune_threads.
  9503. 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  9504. * infrun.c (stop_all_threads): Enable/disable thread events of all
  9505. targets. Move a debug message denoting the end of the function
  9506. into the SCOPED_EXIT block.
  9507. 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  9508. * process-stratum-target.h: Include <set>.
  9509. (all_non_exited_process_targets, switch_to_target_no_thread): New
  9510. function declarations.
  9511. * process-stratum-target.c (all_non_exited_process_targets)
  9512. (switch_to_target_no_thread): New function implementations.
  9513. 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  9514. * infrun.c (handle_inferior_event): Extract out a piece of code
  9515. into...
  9516. (mark_non_executing_threads): ...this new function.
  9517. 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  9518. * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
  9519. use.
  9520. 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  9521. * regcache.c (regcache_read_pc_protected): New function
  9522. implementation that returns 0 if the PC cannot read via
  9523. 'regcache_read_pc'.
  9524. * infrun.c (proceed): Call 'regcache_read_pc_protected'
  9525. instead of 'regcache_read_pc'.
  9526. (keep_going_pass_signal): Ditto.
  9527. 2020-05-13 Tom Tromey <tromey@adacore.com>
  9528. * ada-lang.c (align_value): Remove.
  9529. (ada_template_to_fixed_record_type_1): Use align_up.
  9530. 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  9531. * async-event.c: Update the copyright year.
  9532. * async-event.h: Update the copyright year.
  9533. 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
  9534. * objfiles.h (is_addr_in_objfile,
  9535. shared_objfile_contains_address_p): Return bool.
  9536. * objfile.c (is_addr_in_objfile,
  9537. shared_objfile_contains_address_p): Return bool.
  9538. 2020-05-11 Tom Tromey <tromey@adacore.com>
  9539. * cli/cli-cmds.c (info_command): Restore.
  9540. (_initialize_cli_cmds): Use add_prefix_command for "info".
  9541. * gdb-gdb.gdb.in: Restore breakpoint on info_command.
  9542. 2020-05-11 Tom Tromey <tromey@adacore.com>
  9543. * ada-lang.c (ada_value_primitive_field): Now public.
  9544. * ada-lang.h (ada_value_primitive_field): Declare.
  9545. * ada-valprint.c (print_field_values): Use
  9546. ada_value_primitive_field for wrapper fields.
  9547. 2020-05-11 Tom de Vries <tdevries@suse.de>
  9548. * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
  9549. MODULE_DOMAIN.
  9550. 2020-05-11 Tom de Vries <tdevries@suse.de>
  9551. PR symtab/25941
  9552. * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
  9553. with length 0, if not gdb-produced.
  9554. (cutu_reader::cutu_reader): Set CU length to actual length if 0.
  9555. 2020-05-09 Tom de Vries <tdevries@suse.de>
  9556. PR gdb/25955
  9557. * break-catch-throw.c (check_status_exception_catchpoint): Fix name
  9558. calculation.
  9559. 2020-05-09 Tom Tromey <tom@tromey.com>
  9560. * top.c (server_command): Now bool.
  9561. * top.h (server_command): Now bool.
  9562. 2020-05-08 Tom Tromey <tromey@adacore.com>
  9563. * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
  9564. already being processed.
  9565. 2020-05-08 Tom Tromey <tom@tromey.com>
  9566. * printcmd.c (struct display) <next>: Remove.
  9567. <display>: New constructor.
  9568. <exp_string>: Now a std::string.
  9569. <enabled_p>: Now a bool.
  9570. (display_number): Move definition earlier.
  9571. (displays): Rename from display_chain. Now a std::vector.
  9572. (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
  9573. (display_command): Update.
  9574. (do_one_display, disable_display)
  9575. (enable_disable_display_command, do_enable_disable_display):
  9576. Update.
  9577. (free_display): Remove.
  9578. (clear_displays): Rewrite.
  9579. (delete_display): Update.
  9580. (map_display_numbers): Use function_view. Remove "data"
  9581. parameter. Update.
  9582. (do_delete_display): Remove.
  9583. (undisplay_command): Update.
  9584. (do_one_display, do_displays, disable_display)
  9585. (info_display_command): Update.
  9586. (do_enable_disable_display): Remove.
  9587. (enable_disable_display_command)
  9588. (clear_dangling_display_expressions): Update.
  9589. 2020-05-08 Tom Tromey <tom@tromey.com>
  9590. * symtab.c (set_symbol_cache_size)
  9591. (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
  9592. (maintenance_print_symbol_cache_statistics): Update.
  9593. * symmisc.c (print_symbol_bcache_statistics)
  9594. (print_objfile_statistics, maintenance_print_objfiles)
  9595. (maintenance_info_symtabs, maintenance_check_symtabs)
  9596. (maintenance_expand_symtabs, maintenance_info_line_tables):
  9597. Update.
  9598. * symfile-debug.c (set_debug_symfile): Update.
  9599. * source.c (forget_cached_source_info): Update.
  9600. * python/python.c (gdbpy_progspaces): Update.
  9601. * psymtab.c (maintenance_info_psymtabs): Update.
  9602. * probe.c (parse_probes): Update.
  9603. * linespec.c (iterate_over_all_matching_symtabs)
  9604. (collect_symtabs_from_filename, search_minsyms_for_name): Update.
  9605. * guile/scm-progspace.c (gdbscm_progspaces): Update.
  9606. * exec.c (exec_target::close): Update.
  9607. * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
  9608. * breakpoint.c (print_one_breakpoint_location)
  9609. (create_longjmp_master_breakpoint)
  9610. (create_std_terminate_master_breakpoint): Update.
  9611. * progspace.c (program_spaces): Now a std::vector.
  9612. (maybe_new_address_space): Update.
  9613. (add_program_space): Remove.
  9614. (program_space::program_space): Update.
  9615. (remove_program_space): Update.
  9616. (number_of_program_spaces): Remove.
  9617. (print_program_space, update_address_spaces): Update.
  9618. * progspace.h (program_spaces): Change type.
  9619. (ALL_PSPACES): Remove.
  9620. (number_of_program_spaces): Don't declare.
  9621. (struct program_space) <next>: Remove.
  9622. 2020-05-08 Tom Tromey <tom@tromey.com>
  9623. * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
  9624. * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
  9625. (enable_break): Update.
  9626. * solib-frv.c (frv_fdpic_find_global_pointer): Update.
  9627. (frv_fdpic_find_canonical_descriptor): Update.
  9628. (frv_fetch_objfile_link_map): Update.
  9629. * progspace.c (program_space::free_all_objfiles): Update.
  9630. (program_space::solibs): New method.
  9631. * progspace.h (struct program_space) <solibs>: New method.
  9632. * solist.h (master_so_list): Don't declare.
  9633. (ALL_SO_LIBS): Remove.
  9634. * solib.h (so_list_head): Remove.
  9635. (update_solib_list): Update comment.
  9636. * solib.c (master_so_list): Remove.
  9637. (solib_used, update_solib_list, solib_add)
  9638. (info_sharedlibrary_command, clear_solib)
  9639. (reload_shared_libraries_1, remove_user_added_objfile): Update.
  9640. 2020-05-08 Tom Tromey <tom@tromey.com>
  9641. * extension.c (extension_languages): Now a std::array.
  9642. (ALL_EXTENSION_LANGUAGES): Remove.
  9643. (get_ext_lang_defn, get_ext_lang_of_file)
  9644. (eval_ext_lang_from_control_command): Update.
  9645. (finish_ext_lang_initialization)
  9646. (auto_load_ext_lang_scripts_for_objfile)
  9647. (ext_lang_type_printers::ext_lang_type_printers)
  9648. (apply_ext_lang_type_printers)
  9649. (ext_lang_type_printers::~ext_lang_type_printers)
  9650. (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
  9651. (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
  9652. (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
  9653. (get_matching_xmethod_workers, ext_lang_colorize)
  9654. (ext_lang_before_prompt): Update.
  9655. (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
  9656. 2020-05-08 Tom Tromey <tom@tromey.com>
  9657. * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
  9658. overload.
  9659. <swap_string, m_string>: Remove.
  9660. * symtab.c (demangle_for_lookup, completion_list_add_symbol):
  9661. Update.
  9662. * stabsread.c (define_symbol, read_type): Update.
  9663. * linespec.c (find_linespec_symbols): Update.
  9664. * gnu-v3-abi.c (gnuv3_get_typeid): Update.
  9665. * dwarf2/read.c (dwarf2_canonicalize_name): Update.
  9666. * dbxread.c (read_dbx_symtab): Update.
  9667. * cp-support.h (cp_canonicalize_string_full)
  9668. (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
  9669. Return unique_xmalloc_ptr.
  9670. * cp-support.c (inspect_type): Update.
  9671. (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
  9672. (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
  9673. Likewise.
  9674. * c-typeprint.c (print_name_maybe_canonical): Update.
  9675. * break-catch-throw.c (check_status_exception_catchpoint):
  9676. Update.
  9677. 2020-05-08 Tom de Vries <tdevries@suse.de>
  9678. * infrun.c (follow_fork): Copy current_line and current_symtab to
  9679. child thread.
  9680. 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
  9681. * async-event.c (struct async_signal_handler, struct
  9682. async_event_handler): Reformat, remove typedef.
  9683. 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
  9684. * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
  9685. access thistype->main_type->dyn_prop_list directly.
  9686. 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
  9687. * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
  9688. (remove_dyn_prop): Remove. Update all users to use
  9689. type::remove_dyn_prop.
  9690. * gdbtypes.c (remove_dyn_prop): Rename to...
  9691. (type::remove_dyn_prop): ... this.
  9692. 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
  9693. * gdbtypes.h (struct type) <add_dyn_prop>: New method.
  9694. (add_dyn_prop): Remove. Update all users to use
  9695. type::add_dyn_prop.
  9696. * gdbtypes.c (add_dyn_prop): Rename to...
  9697. (type::add_dyn_prop): ... this.
  9698. 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
  9699. * gdbtypes.h (struct type) <get_dyn_prop>: New method.
  9700. (get_dyn_prop): Remove. Update all users to use
  9701. type::dyn_prop.
  9702. * gdbtypes.c (get_dyn_prop): Rename to...
  9703. (type::dyn_prop): ... this.
  9704. 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
  9705. * gdbtypes.h (struct main_type) <flag_static>: Remove.
  9706. 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
  9707. * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
  9708. instruction, skip it if it's there.
  9709. 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
  9710. * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
  9711. 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
  9712. * gdbtypes.h (TYPE_INCOMPLETE): Remove.
  9713. * gdbtypes.c (recursive_dump_type): Remove use of
  9714. TYPE_INCOMPLETE.
  9715. 2020-05-03 Tom Tromey <tom@tromey.com>
  9716. * breakpoint.c (catch_command, tcatch_command): Remove.
  9717. (_initialize_breakpoint): Use add_basic_prefix_cmd,
  9718. add_show_prefix_cmd.
  9719. (set_breakpoint_cmd, show_breakpoint_cmd): Remove
  9720. * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
  9721. Remove.
  9722. (add_internal_problem_command): Use add_basic_prefix_cmd,
  9723. add_show_prefix_cmd.
  9724. * mips-tdep.c (set_mipsfpu_command): Remove.
  9725. (_initialize_mips_tdep): Use add_basic_prefix_cmd.
  9726. * dwarf2/index-cache.c (set_index_cache_command): Remove.
  9727. (_initialize_index_cache): Use add_basic_prefix_cmd.
  9728. * memattr.c (dummy_cmd): Remove.
  9729. (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
  9730. * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
  9731. (_initialize_tui_win): Use add_basic_prefix_cmd,
  9732. add_show_prefix_cmd.
  9733. * cli/cli-logging.c (set_logging_command): Remove.
  9734. (_initialize_cli_logging): Use add_basic_prefix_cmd,
  9735. add_show_prefix_cmd.
  9736. (show_logging_command): Remove.
  9737. * target.c (target_command): Remove.
  9738. (add_target): Use add_basic_prefix_cmd.
  9739. 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
  9740. * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
  9741. 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  9742. * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
  9743. info_command.
  9744. 2020-04-30 Kamil Rytarowski <n54@gmx.com>
  9745. * nbsd-nat.c (nbsd_enable_proc_events)
  9746. (nbsd_nat_target::post_startup_inferior): Add.
  9747. (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
  9748. (nbsd_nat_target::update_thread_list): Rewrite.
  9749. (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
  9750. "PTRACE_LWP_CREATE".
  9751. * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
  9752. 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  9753. * stack.c (_initialize_stack): Remove duplicated creation
  9754. of "frame" command and "f" alias.
  9755. 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
  9756. PR gdb/18706
  9757. * gdbtypes.c (check_typedef): Calculate size of array of
  9758. stubbed type.
  9759. 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
  9760. PR gdb/15559
  9761. * i386-tdep.c (i386_push_dummy_call): Call
  9762. i386_thiscall_push_dummy_call.
  9763. (i386_thiscall_push_dummy_call): New function.
  9764. * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
  9765. * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
  9766. (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
  9767. 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
  9768. * gdbarch.sh (do_read): Add shellcheck disable directive for
  9769. warning SC2162.
  9770. 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
  9771. * gdbarch.sh: Use ${foo:-} where shellcheck would report a
  9772. "referenced but not assigned" warning.
  9773. 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
  9774. * gdbarch.sh: Remove code that sets fallbackdefault.
  9775. 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
  9776. * gdbarch.sh: Use shell operators && and || instead of
  9777. -a and -o.
  9778. 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
  9779. * gdbarch.sh: Use $(...) instead of `...`.
  9780. 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
  9781. * gdbarch.sh: Use double quotes around variables.
  9782. 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
  9783. * gdbarch.sh: Use %s with printf, instead of variables in the
  9784. format string.
  9785. 2020-04-29 Tom Tromey <tromey@adacore.com>
  9786. PR ada/25875:
  9787. * dwarf2/read.c (update_enumeration_type_from_children): Compute
  9788. type fields here.
  9789. (read_enumeration_type): Call
  9790. update_enumeration_type_from_children later. Update comments.
  9791. (process_enumeration_scope): Don't create type fields.
  9792. 2020-04-29 Kamil Rytarowski <n54@gmx.com>
  9793. * nbsd-tdep.c: Include "xml-syscall.h".
  9794. (nbsd_init_abi): Call `set_xml_syscall_file_name'.
  9795. 2020-04-29 Kamil Rytarowski <n54@gmx.com>
  9796. * nbsd-nat.c: Include "sys/wait.h".
  9797. (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
  9798. (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
  9799. (nbsd_nat_target::remove_exec_catchpoint)
  9800. (nbsd_nat_target::set_syscall_catchpoint): Add.
  9801. * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
  9802. (nbsd_nat_target::insert_exec_catchpoint)
  9803. (nbsd_nat_target::remove_exec_catchpoint)
  9804. (nbsd_nat_target::set_syscall_catchpoint): Add.
  9805. * nbsd-tdep.c (nbsd_get_syscall_number): Add.
  9806. (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
  9807. `nbsd_get_syscall_number'.
  9808. 2020-04-29 Tom Tromey <tom@tromey.com>
  9809. * stack.c (print_block_frame_labels): Remove.
  9810. 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
  9811. PR gdb/17320
  9812. * ada-valprint.c (val_print_packed_array_elements): Move array
  9813. end bracket to new line.
  9814. (ada_val_print_string): Remove extra spaces before first array
  9815. element.
  9816. * c-valprint.c (c_value_print_array): Likewise.
  9817. * m2-valprint.c (m2_print_array_contents): Likewise.
  9818. (m2_value_print_inner): Likewise.
  9819. * p-valprint.c (pascal_value_print_inner): Likewise.
  9820. * valprint.c (generic_val_print_array): Likewise.
  9821. (value_print_array_elements): Move first array element and array
  9822. end bracket to new line.
  9823. 2020-04-29 Tom de Vries <tdevries@suse.de>
  9824. PR symtab/25889
  9825. * linespec.c (find_method): Fix ix calculation.
  9826. 2020-04-28 Kamil Rytarowski <n54@gmx.com>
  9827. * syscalls/update-netbsd.sh: New file.
  9828. * syscalls/netbsd.xml: Regenerate.
  9829. * data-directory/Makefile.in: Register `netbsd.xml' in
  9830. `SYSCALLS_FILES'.
  9831. 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
  9832. * syscalls/update-freebsd.sh: Add double quotes.
  9833. 2020-04-28 Tom Tromey <tom@tromey.com>
  9834. * NEWS: Update.
  9835. * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
  9836. (cmdpy_init): Allow class_tui.
  9837. 2020-04-28 Mark Williams <mark@myosotissp.com>
  9838. PR gdb/24480
  9839. * dwarf2read.c: Add missing assingments to list_in_scope when
  9840. start_symtab was already called.
  9841. 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
  9842. PR gdb/25881
  9843. * dwarf2/read.c (offset_map_type): Use
  9844. gdb:hash_enum<sect_offset> as hash function.
  9845. 2020-04-28 Tom de Vries <tdevries@suse.de>
  9846. * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
  9847. with DW_AT_signature.
  9848. 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
  9849. * configure.ac: Remove check for fs_base/gs_base in
  9850. user_regs_struct.
  9851. * configure: Re-generate.
  9852. * config.in: Re-generate.
  9853. * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
  9854. * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
  9855. amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
  9856. 2020-04-27 Luis Machado <luis.machado@linaro.org>
  9857. * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
  9858. problematic inline frame unwinding situation.
  9859. * frame.c (frame_id_computed_p): New function.
  9860. * frame.h (frame_id_computed_p): New prototype.
  9861. 2020-04-26 Tom Tromey <tom@tromey.com>
  9862. * command.h (enum command_class) <class_pseudo>: Remove.
  9863. 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  9864. * cli/cli-decode.c (lookup_cmd_composition): Fix comments
  9865. and whitespace.
  9866. 2020-04-25 Kamil Rytarowski <n54@gmx.com>
  9867. * inf-ptrace.c (inf_ptrace_target::wait): Remove
  9868. `PT_GET_PROCESS_STATE' block.
  9869. 2020-04-24 Tom Tromey <tom@tromey.com>
  9870. * symtab.h (symbol_get_demangled_name): Don't declare.
  9871. * symtab.c (symbol_get_demangled_name): Remove.
  9872. (general_symbol_info::natural_name)
  9873. (general_symbol_info::demangled_name): Update.
  9874. 2020-04-24 Tom Tromey <tom@tromey.com>
  9875. PR rust/25025:
  9876. * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
  9877. 2020-04-24 Tom Tromey <tom@tromey.com>
  9878. PR symtab/12707:
  9879. * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
  9880. exists.
  9881. (new_symbol): Likewise.
  9882. * compile/compile-object-load.c (get_out_value_type): Use
  9883. symbol_matches_search_name.
  9884. 2020-04-24 Tom Tromey <tom@tromey.com>
  9885. * dwarf2/read.c (add_partial_symbol): Do not call
  9886. compute_and_set_names.
  9887. 2020-04-24 Tom Tromey <tom@tromey.com>
  9888. * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
  9889. overload.
  9890. 2020-04-24 Tom Tromey <tom@tromey.com>
  9891. * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
  9892. (add_psymbol_to_list): New overload. Make old overload call new
  9893. one.
  9894. * psympriv.h (add_psymbol_to_list): New overload.
  9895. 2020-04-24 Tom Tromey <tom@tromey.com>
  9896. * dwarf2/read.c (partial_die_info::read) <case
  9897. DW_AT_linkage_name>: Use value_as_string.
  9898. (dwarf2_string_attr): Use value_as_string.
  9899. * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
  9900. method.
  9901. * dwarf2/attribute.c (attribute::value_as_string): New method.
  9902. 2020-04-24 Tom Tromey <tom@tromey.com>
  9903. * symtab.c (general_symbol_info::natural_name)
  9904. (general_symbol_info::demangled_name): Check for language_rust.
  9905. 2020-04-24 Tom Tromey <tom@tromey.com>
  9906. * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
  9907. (dwarf2_physname): ... from here.
  9908. (partial_die_info::read): Add Rust "{" hack.
  9909. 2020-04-24 Tom Tromey <tom@tromey.com>
  9910. * symtab.h (struct general_symbol_info) <set_demangled_name>: New
  9911. method.
  9912. (symbol_set_demangled_name): Don't declare.
  9913. * symtab.c (general_symbol_info::set_demangled_name): Rename from
  9914. symbol_set_demangled_name.
  9915. (general_symbol_info::set_language)
  9916. (general_symbol_info::compute_and_set_names): Update.
  9917. * minsyms.c (minimal_symbol_reader::install): Update.
  9918. * dwarf2/read.c (new_symbol): Update.
  9919. 2020-04-24 Tom Tromey <tromey@adacore.com>
  9920. PR python/23662:
  9921. * python/py-type.c (convert_field): Handle
  9922. FIELD_LOC_KIND_DWARF_BLOCK.
  9923. (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
  9924. (typy_get_dynamic): Nw function.
  9925. (type_object_getset): Add "dynamic".
  9926. * NEWS: Add entry.
  9927. 2020-04-24 Tom Tromey <tromey@adacore.com>
  9928. * ada-typeprint.c (print_choices, print_variant_part)
  9929. (print_record_field_types_dynamic): New functions.
  9930. (print_record_field_types): Use print_record_field_types_dynamic.
  9931. 2020-04-24 Tom Tromey <tromey@adacore.com>
  9932. * dwarf2/read.c (handle_data_member_location): New overload.
  9933. (dwarf2_add_field): Use it.
  9934. (decode_locdesc): Add "computed" parameter. Update comment.
  9935. * gdbtypes.c (is_dynamic_type_internal): Also look for
  9936. FIELD_LOC_KIND_DWARF_BLOCK.
  9937. (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
  9938. * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
  9939. virtual base classes.
  9940. * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
  9941. FIELD_LOC_KIND_DWARF_BLOCK.
  9942. 2020-04-24 Tom Tromey <tromey@adacore.com>
  9943. * dwarf2/read.c (read_structure_type): Handle dynamic length.
  9944. * gdbtypes.c (is_dynamic_type_internal): Check
  9945. TYPE_HAS_DYNAMIC_LENGTH.
  9946. (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
  9947. * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
  9948. New macros.
  9949. (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
  9950. constant.
  9951. 2020-04-24 Tom Tromey <tromey@adacore.com>
  9952. * dwarf2/read.c (struct variant_field): Rewrite.
  9953. (struct variant_part_builder): New.
  9954. (struct nextfield): Remove "variant" field. Add "offset".
  9955. (struct field_info): Add "current_variant_part" and
  9956. "variant_parts".
  9957. (alloc_discriminant_info): Remove.
  9958. (alloc_rust_variant): New function.
  9959. (quirk_rust_enum): Update.
  9960. (dwarf2_add_field): Set "offset" member. Don't handle
  9961. DW_TAG_variant_part.
  9962. (offset_map_type): New typedef.
  9963. (convert_variant_range, create_one_variant)
  9964. (create_one_variant_part, create_variant_parts)
  9965. (add_variant_property): New functions.
  9966. (dwarf2_attach_fields_to_type): Call add_variant_property.
  9967. (read_structure_type): Don't handle DW_TAG_variant_part.
  9968. (handle_variant_part, handle_variant): New functions.
  9969. (handle_struct_member_die): Use them.
  9970. (process_structure_scope): Don't handle variant parts.
  9971. * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
  9972. (struct discriminant_info): Remove.
  9973. (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
  9974. (struct main_type) <flag_discriminated_union>: Remove.
  9975. * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
  9976. (rust_enum_variant): Return int. Remove "contents". Rewrite.
  9977. (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
  9978. Update.
  9979. * valops.c (value_union_variant): Remove.
  9980. * value.h (value_union_variant): Don't declare.
  9981. 2020-04-24 Tom Tromey <tromey@adacore.com>
  9982. * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
  9983. (ada_value_primitive_packed_val): Update.
  9984. * ada-valprint.c (ada_value_print_1): Update.
  9985. * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
  9986. (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
  9987. just an address. Use evaluate_for_locexpr_baton.
  9988. (dwarf2_evaluate_property): Update.
  9989. * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
  9990. array_view.
  9991. * findvar.c (default_read_var_value): Update.
  9992. * gdbtypes.c (compute_variant_fields_inner)
  9993. (resolve_dynamic_type_internal): Update.
  9994. (resolve_dynamic_type): Change type of valaddr parameter.
  9995. * gdbtypes.h (resolve_dynamic_type): Update.
  9996. * valarith.c (value_subscripted_rvalue): Update.
  9997. * value.c (value_from_contents_and_address): Update.
  9998. 2020-04-24 Tom Tromey <tromey@adacore.com>
  9999. * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
  10000. "push_initial_value" parameter.
  10001. (dwarf2_evaluate_property): Likewise.
  10002. * dwarf2/loc.h (dwarf2_evaluate_property): Update.
  10003. 2020-04-24 Tom Tromey <tromey@adacore.com>
  10004. * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
  10005. (variant::matches, compute_variant_fields_recurse)
  10006. (compute_variant_fields_inner, compute_variant_fields): New
  10007. functions.
  10008. (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
  10009. Use resolved_type after type is made.
  10010. (operator==): Add new cases.
  10011. * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
  10012. (struct discriminant_range, struct variant, struct variant_part):
  10013. New.
  10014. (union dynamic_prop_data) <variant_parts, original_type>: New
  10015. members.
  10016. (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
  10017. (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
  10018. constants.
  10019. * value.c (unpack_bits_as_long): Now public.
  10020. * value.h (unpack_bits_as_long): Declare.
  10021. 2020-04-24 Tom Tromey <tromey@adacore.com>
  10022. * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
  10023. (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
  10024. 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
  10025. * windows-tdep.c (exception_values): Add WOW64 exception numbers.
  10026. 2020-04-24 Kamil Rytarowski <n54@gmx.com>
  10027. * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
  10028. (remove_fork_catchpoint, post_startup_inferior)
  10029. (post_attach): Move...
  10030. * obsd-nat.h (follow_fork, insert_fork_catchpoint)
  10031. (remove_fork_catchpoint, post_startup_inferior)
  10032. (post_attach): ...here.
  10033. * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
  10034. (remove_fork_catchpoint, post_startup_inferior)
  10035. (post_attach): Move...
  10036. * obsd-nat.c (follow_fork, insert_fork_catchpoint)
  10037. (remove_fork_catchpoint, post_startup_inferior)
  10038. (post_attach): ...here.
  10039. 2020-04-24 Tom Tromey <tromey@adacore.com>
  10040. * nat/windows-nat.h (struct windows_thread_info)
  10041. <pc_adjusted>: New member.
  10042. * windows-nat.c (windows_fetch_one_register): Check
  10043. pc_adjusted.
  10044. (windows_nat_target::get_windows_debug_event)
  10045. (windows_nat_target::wait): Set pc_adjusted.
  10046. 2020-04-24 Tom de Vries <tdevries@suse.de>
  10047. * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
  10048. Run gdb-add-index inside temp dir.
  10049. 2020-04-23 Tom Tromey <tromey@adacore.com>
  10050. * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
  10051. in loop.
  10052. 2020-04-23 Luis Machado <luis.machado@linaro.org>
  10053. * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
  10054. get_frame_register instead of gdbarch_unwind_pc.
  10055. 2020-04-23 Tom de Vries <tdevries@suse.de>
  10056. * symtab.c (lookup_global_symbol): Prefer def over decl.
  10057. 2020-04-23 Tom de Vries <tdevries@suse.de>
  10058. PR symtab/25807
  10059. * block.c (best_symbol, better_symbol): Promote to external.
  10060. * block.h (best_symbol, better_symbol): Declare.
  10061. * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
  10062. decl.
  10063. 2020-04-23 Tom Tromey <tromey@adacore.com>
  10064. PR ada/25837:
  10065. * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
  10066. "const char *", not a "const std::string &".
  10067. <name_and_matcher::operator==>: Update.
  10068. * unittests/lookup_name_info-selftests.c: Change type of
  10069. "result".
  10070. 2020-04-23 Tom Tromey <tom@tromey.com>
  10071. * inferior.h (iterate_over_inferiors): Don't declare.
  10072. * inferior.c (iterate_over_inferiors): Remove.
  10073. * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
  10074. Remove.
  10075. (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
  10076. use iterate_over_inferiors.
  10077. (darwin_resume_inferior_it)
  10078. (struct resume_inferior_threads_param)
  10079. (darwin_resume_inferior_threads_it): Remove.
  10080. (darwin_nat_target::resume): Don't use iterate_over_inferiors.
  10081. 2020-04-23 Tom de Vries <tdevries@suse.de>
  10082. * blockframe.c (find_pc_partial_function): Use
  10083. find_pc_sect_compunit_symtab rather than
  10084. objfile->sf->qf->find_pc_sect_compunit_symtab.
  10085. 2020-04-22 Tom de Vries <tdevries@suse.de>
  10086. PR symtab/25764
  10087. * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
  10088. in psymtabs.
  10089. 2020-04-22 Tom de Vries <tdevries@suse.de>
  10090. PR symtab/25801
  10091. * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
  10092. symtabs.
  10093. 2020-04-22 Tom de Vries <tdevries@suse.de>
  10094. PR symtab/25700
  10095. * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
  10096. CU if already created.
  10097. 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  10098. * infrun.c (displaced_step_fixup): Switch to the event_thread
  10099. before calling displaced_step_restore, not after.
  10100. 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
  10101. * record-btrace.c (record_btrace_enable_warn): Ignore thread if
  10102. its inferior is not recorded by us.
  10103. (record_btrace_target_open): Replace call to
  10104. all_non_exited_threads () with call to current_inferior
  10105. ()->non_exited_threads ().
  10106. (record_btrace_target::stop_recording): Likewise.
  10107. (record_btrace_target::close): Likewise.
  10108. (record_btrace_target::wait): Likewise.
  10109. (record_btrace_target::record_stop_replaying): Likewise.
  10110. 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
  10111. * btrace.c (btrace_enable): Throw an error on double enables and
  10112. when enabling recording fails.
  10113. (btrace_disable): Throw an error if the thread is not recorded.
  10114. 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
  10115. * record-btrace.c (record_btrace_target::fetch_registers): Forward
  10116. request if we do not have a thread_info.
  10117. 2020-04-21 Tom de Vries <tdevries@suse.de>
  10118. PR gdb/25471
  10119. * thread.c
  10120. (scoped_restore_current_thread::scoped_restore_current_thread): Catch
  10121. exception in get_frame_id.
  10122. 2020-04-20 Tom Tromey <tromey@adacore.com>
  10123. * python/python.c (struct gdbpy_event): Mark move constructor as
  10124. noexcept.
  10125. * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
  10126. constructor as noexcept.
  10127. * completer.h (struct completion_result): Mark move constructor as
  10128. noexcept.
  10129. * completer.c (completion_result::completion_result): Use
  10130. initialization style. Don't call reset_match_list.
  10131. 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
  10132. * MAINTAINERS (Write After Approval): Add myself.
  10133. 2020-04-18 Tom Tromey <tom@tromey.com>
  10134. * windows-tdep.c (init_w32_command_list)
  10135. (w32_prefix_command_valid): Restore.
  10136. (_initialize_windows_tdep): Call init_w32_command_list.
  10137. 2020-04-18 Tom Tromey <tom@tromey.com>
  10138. * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
  10139. * value.c (value_fn_field): Update.
  10140. * valops.c (find_function_in_inferior)
  10141. (value_allocate_space_in_inferior): Update.
  10142. * tui/tui-winsource.c (tui_update_source_windows_with_line):
  10143. Update.
  10144. * tui/tui-source.c (tui_source_window::set_contents): Update.
  10145. * symtab.c (lookup_global_or_static_symbol)
  10146. (find_function_start_sal_1, skip_prologue_sal)
  10147. (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
  10148. * symmisc.c (dump_msymbols, dump_symtab_1)
  10149. (maintenance_print_one_line_table): Update.
  10150. * symfile.c (init_entry_point_info, section_is_mapped)
  10151. (list_overlays_command, simple_read_overlay_table)
  10152. (simple_overlay_update_1): Update.
  10153. * stap-probe.c (handle_stap_probe): Update.
  10154. * stabsread.c (dbx_init_float_type, define_symbol)
  10155. (read_one_struct_field, read_enum_type, read_range_type): Update.
  10156. * source.c (info_line_command): Update.
  10157. * python/python.c (gdbpy_source_objfile_script)
  10158. (gdbpy_execute_objfile_script): Update.
  10159. * python/py-type.c (save_objfile_types): Update.
  10160. * python/py-objfile.c (py_free_objfile): Update.
  10161. * python/py-inferior.c (python_new_objfile): Update.
  10162. * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
  10163. (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
  10164. (maintenance_check_psymtabs): Update.
  10165. * printcmd.c (info_address_command): Update.
  10166. * objfiles.h (struct objfile) <arch>: New method, from
  10167. get_objfile_arch.
  10168. (get_objfile_arch): Don't declare.
  10169. * objfiles.c (get_objfile_arch): Remove.
  10170. (filter_overlapping_sections): Update.
  10171. * minsyms.c (msymbol_is_function): Update.
  10172. * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
  10173. (output_nondebug_symbol): Update.
  10174. * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
  10175. (mdebug_expand_psymtab): Update.
  10176. * machoread.c (macho_add_oso_symfile): Update.
  10177. * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
  10178. Update.
  10179. * linux-fork.c (checkpoint_command): Update.
  10180. * linespec.c (convert_linespec_to_sals): Update.
  10181. * jit.c (finalize_symtab): Update.
  10182. * infrun.c (insert_exception_resume_from_probe): Update.
  10183. * ia64-tdep.c (ia64_find_unwind_table): Update.
  10184. * hppa-tdep.c (internalize_unwinds): Update.
  10185. * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
  10186. Update.
  10187. * gcore.c (call_target_sbrk): Update.
  10188. * elfread.c (record_minimal_symbol, elf_symtab_read)
  10189. (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
  10190. (elf_gnu_ifunc_resolve_by_got): Update.
  10191. * dwarf2/read.c (create_addrmap_from_index)
  10192. (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
  10193. (read_debug_names_from_section)
  10194. (process_psymtab_comp_unit_reader, add_partial_symbol)
  10195. (add_partial_subprogram, process_full_comp_unit)
  10196. (read_file_scope, read_func_scope, read_lexical_block_scope)
  10197. (read_call_site_scope, dwarf2_ranges_read)
  10198. (dwarf2_record_block_ranges, dwarf2_add_field)
  10199. (mark_common_block_symbol_computed, read_tag_pointer_type)
  10200. (read_tag_string_type, dwarf2_init_float_type)
  10201. (dwarf2_init_complex_target_type, read_base_type)
  10202. (partial_die_info::read, partial_die_info::read)
  10203. (read_attribute_value, dwarf_decode_lines_1, new_symbol)
  10204. (dwarf2_fetch_die_loc_sect_off): Update.
  10205. * dwarf2/loc.c (dwarf2_find_location_expression)
  10206. (class dwarf_evaluate_loc_desc, rw_pieced_value)
  10207. (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
  10208. (dwarf2_loc_desc_get_symbol_read_needs)
  10209. (locexpr_describe_location_piece, locexpr_describe_location_1)
  10210. (loclist_describe_location): Update.
  10211. * dwarf2/index-write.c (write_debug_names): Update.
  10212. * dwarf2/frame.c (dwarf2_build_frame_info): Update.
  10213. * dtrace-probe.c (dtrace_process_dof): Update.
  10214. * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
  10215. (process_one_symbol): Update.
  10216. * ctfread.c (ctf_init_float_type, read_base_type): Update.
  10217. * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
  10218. (coff_read_enum_type): Update.
  10219. * cli/cli-cmds.c (edit_command, list_command): Update.
  10220. * buildsym.c (buildsym_compunit::finish_block_internal): Update.
  10221. * breakpoint.c (create_overlay_event_breakpoint)
  10222. (create_longjmp_master_breakpoint)
  10223. (create_std_terminate_master_breakpoint)
  10224. (create_exception_master_breakpoint, get_sal_arch): Update.
  10225. * block.c (block_gdbarch): Update.
  10226. * annotate.c (annotate_source_line): Update.
  10227. 2020-04-17 Tom Tromey <tromey@adacore.com>
  10228. * auto-load.c (show_auto_load_cmd): Remove.
  10229. (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
  10230. * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
  10231. (maintenance_print_arc_command): Remove.
  10232. * tui/tui-win.c (tui_command): Remove.
  10233. (tui_get_cmd_list): Use add_basic_prefix_cmd.
  10234. * tui/tui-layout.c (tui_layout_command): Remove.
  10235. (_initialize_tui_layout): Use add_basic_prefix_cmd.
  10236. * python/python.c (user_set_python, user_show_python): Remove.
  10237. (_initialize_python): Use add_basic_prefix_cmd,
  10238. add_show_prefix_cmd.
  10239. * guile/guile.c (set_guile_command, show_guile_command): Remove.
  10240. (install_gdb_commands): Use add_basic_prefix_cmd,
  10241. add_show_prefix_cmd.
  10242. (info_guile_command): Remove.
  10243. * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
  10244. (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
  10245. add_show_prefix_cmd.
  10246. * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
  10247. Remove do_set and do_show parameters.
  10248. * cli/cli-style.c (set_style, show_style): Remove.
  10249. (_initialize_cli_style): Use add_basic_prefix_cmd,
  10250. add_show_prefix_cmd.
  10251. (cli_style_option::add_setshow_commands): Remove do_set and
  10252. do_show parameters.
  10253. (cli_style_option::add_setshow_commands): Use
  10254. add_basic_prefix_cmd, add_show_prefix_cmd.
  10255. (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
  10256. (set_style_name): Remove.
  10257. * cli/cli-dump.c (dump_command, append_command): Remove.
  10258. (srec_dump_command, ihex_dump_command, verilog_dump_command)
  10259. (tekhex_dump_command, binary_dump_command)
  10260. (binary_append_command): Remove.
  10261. (_initialize_cli_dump): Use add_basic_prefix_cmd.
  10262. * windows-tdep.c (w32_prefix_command_valid): Remove global.
  10263. (init_w32_command_list): Remove; move into ...
  10264. (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
  10265. * valprint.c (set_print, show_print, set_print_raw)
  10266. (show_print_raw): Remove.
  10267. (_initialize_valprint): Use add_basic_prefix_cmd,
  10268. add_show_prefix_cmd.
  10269. * typeprint.c (set_print_type, show_print_type): Remove.
  10270. (_initialize_typeprint): Use add_basic_prefix_cmd,
  10271. add_show_prefix_cmd.
  10272. * record.c (set_record_command, show_record_command): Remove.
  10273. (_initialize_record): Use add_basic_prefix_cmd,
  10274. add_show_prefix_cmd.
  10275. * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
  10276. add_show_prefix_cmd.
  10277. (info_command, show_command, set_debug, show_debug): Remove.
  10278. * top.h (set_history, show_history): Don't declare.
  10279. * top.c (set_history, show_history): Remove.
  10280. * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
  10281. (unset_tdesc_cmd): Remove.
  10282. (_initialize_target_descriptions): Use add_basic_prefix_cmd,
  10283. add_show_prefix_cmd.
  10284. * symtab.c (info_module_command): Remove.
  10285. (_initialize_symtab): Use add_basic_prefix_cmd.
  10286. * symfile.c (overlay_command): Remove.
  10287. (_initialize_symfile): Use add_basic_prefix_cmd.
  10288. * sparc64-tdep.c (info_adi_command): Remove.
  10289. (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
  10290. * sh-tdep.c (show_sh_command, set_sh_command): Remove.
  10291. (_initialize_sh_tdep): Use add_basic_prefix_cmd,
  10292. add_show_prefix_cmd.
  10293. * serial.c (serial_set_cmd, serial_show_cmd): Remove.
  10294. (_initialize_serial): Use add_basic_prefix_cmd,
  10295. add_show_prefix_cmd.
  10296. * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
  10297. (_initialize_ser_tcp): Use add_basic_prefix_cmd,
  10298. add_show_prefix_cmd.
  10299. * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
  10300. (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
  10301. add_show_prefix_cmd.
  10302. * riscv-tdep.c (show_riscv_command, set_riscv_command)
  10303. (show_debug_riscv_command, set_debug_riscv_command): Remove.
  10304. (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
  10305. add_show_prefix_cmd.
  10306. * remote.c (remote_command, set_remote_cmd): Remove.
  10307. (_initialize_remote): Use add_basic_prefix_cmd.
  10308. * record-full.c (set_record_full_command)
  10309. (show_record_full_command): Remove.
  10310. (_initialize_record_full): Use add_basic_prefix_cmd,
  10311. add_show_prefix_cmd.
  10312. * record-btrace.c (cmd_set_record_btrace)
  10313. (cmd_show_record_btrace, cmd_set_record_btrace_bts)
  10314. (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
  10315. (cmd_show_record_btrace_pt): Remove.
  10316. (_initialize_record_btrace): Use add_basic_prefix_cmd,
  10317. add_show_prefix_cmd.
  10318. * ravenscar-thread.c (set_ravenscar_command)
  10319. (show_ravenscar_command): Remove.
  10320. (_initialize_ravenscar): Use add_basic_prefix_cmd,
  10321. add_show_prefix_cmd.
  10322. * mips-tdep.c (show_mips_command, set_mips_command)
  10323. (_initialize_mips_tdep): Use add_basic_prefix_cmd,
  10324. add_show_prefix_cmd.
  10325. * maint.c (maintenance_command, maintenance_info_command)
  10326. (maintenance_check_command, maintenance_print_command)
  10327. (maintenance_set_cmd, maintenance_show_cmd): Remove.
  10328. (_initialize_maint_cmds): Use add_basic_prefix_cmd,
  10329. add_show_prefix_cmd.
  10330. (show_per_command_cmd): Remove.
  10331. * maint-test-settings.c (maintenance_set_test_settings_cmd):
  10332. Remove.
  10333. (maintenance_show_test_settings_cmd): Remove.
  10334. (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
  10335. add_show_prefix_cmd.
  10336. * maint-test-options.c (maintenance_test_options_command):
  10337. Remove.
  10338. (_initialize_maint_test_options): Use add_basic_prefix_cmd.
  10339. * macrocmd.c (macro_command): Remove
  10340. (_initialize_macrocmd): Use add_basic_prefix_cmd.
  10341. * language.c (set_check, show_check): Remove.
  10342. (_initialize_language): Use add_basic_prefix_cmd,
  10343. add_show_prefix_cmd.
  10344. * infcmd.c (unset_command): Remove.
  10345. (_initialize_infcmd): Use add_basic_prefix_cmd.
  10346. * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
  10347. (_initialize_i386_tdep): Use add_basic_prefix_cmd,
  10348. add_show_prefix_cmd.
  10349. * go32-nat.c (go32_info_dos_command): Remove.
  10350. (_initialize_go32_nat): Use add_basic_prefix_cmd.
  10351. * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
  10352. (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
  10353. * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
  10354. (_initialize_frame): Use add_basic_prefix_cmd,
  10355. add_show_prefix_cmd.
  10356. * dcache.c (set_dcache_command, show_dcache_command): Remove.
  10357. (_initialize_dcache): Use add_basic_prefix_cmd,
  10358. add_show_prefix_cmd.
  10359. * cp-support.c (maint_cplus_command): Remove.
  10360. (_initialize_cp_support): Use add_basic_prefix_cmd.
  10361. * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
  10362. (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
  10363. (maint_btrace_pt_show_cmd, _initialize_btrace): Use
  10364. add_basic_prefix_cmd, add_show_prefix_cmd.
  10365. * breakpoint.c (save_command): Remove.
  10366. (_initialize_breakpoint): Use add_basic_prefix_cmd.
  10367. * arm-tdep.c (set_arm_command, show_arm_command): Remove.
  10368. (_initialize_arm_tdep): Use add_basic_prefix_cmd,
  10369. add_show_prefix_cmd.
  10370. * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
  10371. (set_ada_command, show_ada_command): Remove.
  10372. (_initialize_ada_language): Use add_basic_prefix_cmd,
  10373. add_show_prefix_cmd.
  10374. * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
  10375. 2020-04-16 Kamil Rytarowski <n54@gmx.com>
  10376. * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
  10377. * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
  10378. 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
  10379. * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
  10380. warning messages.
  10381. 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
  10382. * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
  10383. import table is not at beginning of .idata section.
  10384. 2020-04-16 Pedro Alves <palves@redhat.com>
  10385. * inferior.c (delete_inferior): Use delete operator directly
  10386. instead of delete_program_space.
  10387. * progspace.c (add_program_space): New, factored out from
  10388. program_space::program_space.
  10389. (remove_program_space): New, factored out from
  10390. delete_program_space.
  10391. (program_space::program_space): Remove intro comment. Rewrite.
  10392. (program_space::~program_space): Remove intro comment. Call
  10393. remove_program_space.
  10394. (delete_program_space): Delete.
  10395. * progspace.h (program_space::program_space): Make explicit. Move
  10396. intro comment here, adjusted.
  10397. (program_space::~program_space): Move intro comment here,
  10398. adjusted.
  10399. (delete_program_space): Remove.
  10400. 2020-04-16 Tom Tromey <tromey@adacore.com>
  10401. * windows-nat.c (windows_nat::handle_access_violation): New
  10402. function.
  10403. * nat/windows-nat.h (handle_access_violation): Declare.
  10404. * nat/windows-nat.c (handle_exception): Move Cygwin code to
  10405. windows-nat.c. Call handle_access_violation.
  10406. 2020-04-16 Tom de Vries <tdevries@suse.de>
  10407. PR symtab/25791
  10408. * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
  10409. CUs without psymtab.
  10410. 2020-04-16 Kevin Buettner <kevinb@redhat.com>
  10411. * python/python.c (do_start_initialization): Don't call
  10412. PyEval_InitThreads for Python 3.9 and beyond.
  10413. 2020-04-15 Kamil Rytarowski <n54@gmx.com>
  10414. * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
  10415. thread functions.
  10416. (obsd_nat_target::wait): Likewise.
  10417. 2020-04-15 Tom Tromey <tromey@adacore.com>
  10418. * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
  10419. (DEBUG_EXCEPT): Use debug_printf.
  10420. 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
  10421. * completer.c (class completion_tracker::completion_hash_entry)
  10422. <hash_name>: New member function.
  10423. (completion_tracker::discard_completions): New callback to hash a
  10424. completion_hash_entry, pass this to htab_create_alloc.
  10425. 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
  10426. * windows-nat.c (windows_make_so): Warn rather than stopping with
  10427. an error if realpath() fails.
  10428. 2020-04-14 Kamil Rytarowski <n54@gmx.com>
  10429. * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
  10430. (nbsd_nat_target::info_proc): Add do_status.
  10431. 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
  10432. Tom de Vries <tdevries@suse.de>
  10433. PR symtab/25718
  10434. * psympriv.h (struct partial_symtab::read_symtab)
  10435. (struct partial_symtab::expand_psymtab)
  10436. (struct partial_symtab::read_dependencies): Update comments.
  10437. * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
  10438. read_symtab for includer.
  10439. (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
  10440. (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
  10441. (struct dwarf2_include_psymtab::m_readin): Remove.
  10442. (struct dwarf2_include_psymtab::includer): New member function.
  10443. (dwarf2_psymtab::expand_psymtab): Assert !readin.
  10444. 2020-04-14 Tom de Vries <tdevries@suse.de>
  10445. PR symtab/25720
  10446. * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
  10447. with NULL symbol_matcher and lookup_name.
  10448. * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
  10449. and lookup_name.
  10450. * dwarf2/read.c (dw2_expand_symtabs_matching)
  10451. (dw2_debug_names_expand_symtabs_matching): Same.
  10452. * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
  10453. Make lookup_name a pointer. Update comment.
  10454. * symtab.c (global_symbol_searcher::expand_symtabs): Handle
  10455. lookup_name being a pointer.
  10456. * symfile.c (expand_symtabs_matching): Same.
  10457. * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
  10458. * linespec.c (iterate_over_all_matching_symtabs): Same.
  10459. 2020-04-13 Tom Tromey <tom@tromey.com>
  10460. * run-on-main-thread.c: Update include.
  10461. * unittests/main-thread-selftests.c: Update include.
  10462. * tui/tui-win.c: Update include.
  10463. * tui/tui-io.c: Update include.
  10464. * tui/tui-interp.c: Update include.
  10465. * tui/tui-hooks.c: Update include.
  10466. * top.h: Update include.
  10467. * top.c: Update include.
  10468. * ser-base.c: Update include.
  10469. * remote.c: Update include.
  10470. * remote-notif.c: Update include.
  10471. * remote-fileio.c: Update include.
  10472. * record-full.c: Update include.
  10473. * record-btrace.c: Update include.
  10474. * python/python.c: Update include.
  10475. * posix-hdep.c: Update include.
  10476. * mingw-hdep.c: Update include.
  10477. * mi/mi-main.c: Update include.
  10478. * mi/mi-interp.c: Update include.
  10479. * main.c: Update include.
  10480. * linux-nat.c: Update include.
  10481. * interps.c: Update include.
  10482. * infrun.c: Update include.
  10483. * inf-loop.c: Update include.
  10484. * event-top.c: Update include.
  10485. * event-loop.c: Move to ../gdbsupport/.
  10486. * event-loop.h: Move to ../gdbsupport/.
  10487. * async-event.h: Update include.
  10488. * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
  10489. 2020-04-13 Tom Tromey <tom@tromey.com>
  10490. * tui/tui-win.c: Include async-event.h.
  10491. * remote.c: Include async-event.h.
  10492. * remote-notif.c: Include async-event.h.
  10493. * record-full.c: Include async-event.h.
  10494. * record-btrace.c: Include async-event.h.
  10495. * infrun.c: Include async-event.h.
  10496. * event-top.c: Include async-event.h.
  10497. * event-loop.h: Move some declarations to async-event.h.
  10498. * event-loop.c: Don't include ser-event.h or top.h. Move some
  10499. code to async-event.c.
  10500. * async-event.h: New file.
  10501. * async-event.c: New file.
  10502. * Makefile.in (COMMON_SFILES): Add async-event.c.
  10503. (HFILES_NO_SRCDIR): Add async-event.h.
  10504. 2020-04-13 Tom Tromey <tom@tromey.com>
  10505. * utils.c (flush_streams): New function.
  10506. * event-loop.c (gdb_wait_for_event): Call flush_streams.
  10507. 2020-04-13 Tom Tromey <tom@tromey.com>
  10508. * event-loop.c (handle_file_event): Use warning, not
  10509. printf_unfiltered.
  10510. 2020-04-13 Tom Tromey <tom@tromey.com>
  10511. * event-loop.c: Include <chrono>.
  10512. 2020-04-13 Tom Tromey <tom@tromey.com>
  10513. * gdb_select.h: Move to ../gdbsupport/.
  10514. * event-loop.c: Update include path.
  10515. * top.c: Update include path.
  10516. * ser-base.c: Update include path.
  10517. * ui-file.c: Update include path.
  10518. * ser-tcp.c: Update include path.
  10519. * guile/scm-ports.c: Update include path.
  10520. * posix-hdep.c: Update include path.
  10521. * ser-unix.c: Update include path.
  10522. * gdb_usleep.c: Update include path.
  10523. * mingw-hdep.c: Update include path.
  10524. * inflow.c: Update include path.
  10525. * infrun.c: Update include path.
  10526. * event-top.c: Update include path.
  10527. 2020-04-13 Tom Tromey <tom@tromey.com>
  10528. * configure: Rebuild.
  10529. * configure.ac: Remove checks that are now in GDB_AC_COMMON.
  10530. 2020-04-13 Tom Tromey <tom@tromey.com>
  10531. * event-loop.h (start_event_loop): Don't declare.
  10532. * event-loop.c (start_event_loop): Move...
  10533. * main.c (start_event_loop): ...here. Now static.
  10534. 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
  10535. * MAINTAINERS: Update my email address.
  10536. 2020-04-12 Kamil Rytarowski <n54@gmx.com>
  10537. * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
  10538. IP_ALL.
  10539. 2020-04-12 Kamil Rytarowski <n54@gmx.com>
  10540. * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
  10541. (nbsd_nat_target::info_proc): Add do_cmdline.
  10542. 2020-04-12 Kamil Rytarowski <n54@gmx.com>
  10543. * nbsd-nat.c (nbsd_pid_to_cwd): Add.
  10544. (nbsd_nat_target::info_proc): Add do_cwd.
  10545. 2020-04-12 Kamil Rytarowski <n54@gmx.com>
  10546. * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
  10547. 2020-04-11 Kamil Rytarowski <n54@gmx.com>
  10548. * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
  10549. * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
  10550. (nbsd_nat_target::info_proc): New functions.
  10551. * nbsd-nat.c (kinfo_get_vmmap): New function.
  10552. * nbsd-nat.c (nbsd_nat_target::info_proc) Use
  10553. nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
  10554. * nbsd-tdep.c (nbsd_info_proc_mappings_header)
  10555. (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
  10556. functions.
  10557. * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
  10558. (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
  10559. (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
  10560. (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
  10561. (KINFO_VME_FLAG_GROWS_DOWN): New.
  10562. 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
  10563. * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
  10564. bit shift.
  10565. 2020-04-10 Tom Tromey <tromey@adacore.com>
  10566. * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
  10567. 2020-04-10 Tom Tromey <tromey@adacore.com>
  10568. * symtab.c (get_symbol_address, get_msymbol_address): Skip
  10569. separate debug files.
  10570. 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
  10571. * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
  10572. Move to...
  10573. * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
  10574. ... here.
  10575. * windows-nat.c (windows_nat_target::get_windows_debug_event):
  10576. Check for STATUS_WX86_BREAKPOINT.
  10577. (windows_nat_target::wait): Same.
  10578. 2020-04-10 Tom de Vries <tdevries@suse.de>
  10579. PR cli/25808
  10580. * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
  10581. 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
  10582. * MAINTAINERS (Global Maintainers): Add Tom de Vries.
  10583. (Write After Approval): Remove Tom de Vries.
  10584. 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
  10585. revert partially:
  10586. 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
  10587. * buildsym.c (record_line): Fix undefined behavior and preserve
  10588. lines at eof.
  10589. 2020-04-09 Kamil Rytarowski <n54@gmx.com>
  10590. * auxv.h (svr4_auxv_parse): New.
  10591. * auxv.c (default_auxv_parse): Split into default_auxv_parse
  10592. and generic_auxv_parse.
  10593. (svr4_auxv_parse): Add.
  10594. * obsd-tdep.c: Include "auxv.h".
  10595. (obsd_auxv_parse): Remove.
  10596. (obsd_init_abi): Remove comment.
  10597. (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
  10598. from `obsd_auxv_parse' to `svr4_auxv_parse'.
  10599. * nbsd-tdep.c: Include "auxv.h".
  10600. (nbsd_init_abi): Call set_gdbarch_auxv_parse.
  10601. 2020-04-08 Tom Tromey <tromey@adacore.com>
  10602. * nat/windows-nat.h (last_wait_event): Don't declare.
  10603. (wait_for_debug_event): Update comment.
  10604. * nat/windows-nat.c (last_wait_event): Now static.
  10605. 2020-04-08 Tom Tromey <tromey@adacore.com>
  10606. * windows-nat.c (wait_for_debug_event): Move to
  10607. nat/windows-nat.c.
  10608. * nat/windows-nat.h (wait_for_debug_event): Declare.
  10609. * nat/windows-nat.c (wait_for_debug_event): Move from
  10610. windows-nat.c. No longer static.
  10611. 2020-04-08 Tom Tromey <tromey@adacore.com>
  10612. * windows-nat.c (get_windows_debug_event): Use
  10613. fetch_pending_stop.
  10614. * nat/windows-nat.h (fetch_pending_stop): Declare.
  10615. * nat/windows-nat.c (fetch_pending_stop): New function.
  10616. 2020-04-08 Tom Tromey <tromey@adacore.com>
  10617. * windows-nat.c (windows_continue): Use matching_pending_stop and
  10618. continue_last_debug_event.
  10619. * nat/windows-nat.h (matching_pending_stop)
  10620. (continue_last_debug_event): Declare.
  10621. * nat/windows-nat.c (DEBUG_EVENTS): New define.
  10622. (matching_pending_stop, continue_last_debug_event): New
  10623. functions.
  10624. 2020-04-08 Tom Tromey <tromey@adacore.com>
  10625. * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
  10626. (handle_exception_result): Move to nat/windows-nat.h.
  10627. (DEBUG_EXCEPTION_SIMPLE): Remove.
  10628. (windows_nat::handle_ms_vc_exception): New function.
  10629. (handle_exception): Move to nat/windows-nat.c.
  10630. (get_windows_debug_event): Update.
  10631. (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
  10632. nat/windows-nat.c.
  10633. * nat/windows-nat.h (handle_ms_vc_exception): Declare.
  10634. (handle_exception_result): Move from windows-nat.c.
  10635. (handle_exception): Declare.
  10636. * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
  10637. (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
  10638. windows-nat.c.
  10639. 2020-04-08 Tom Tromey <tromey@adacore.com>
  10640. * windows-nat.c (exception_count, event_count): Remove.
  10641. (handle_exception, get_windows_debug_event)
  10642. (do_initial_windows_stuff): Update.
  10643. 2020-04-08 Tom Tromey <tromey@adacore.com>
  10644. * windows-nat.c (windows_nat::handle_load_dll)
  10645. (windows_nat::handle_unload_dll): Rename. No longer static.
  10646. * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
  10647. Declare.
  10648. 2020-04-08 Tom Tromey <tromey@adacore.com>
  10649. * complaints.h (stop_whining): Declare at top-level.
  10650. (complaint): Don't declare stop_whining.
  10651. 2020-04-08 Tom Tromey <tromey@adacore.com>
  10652. * windows-nat.c (windows_nat::handle_output_debug_string):
  10653. Rename. No longer static.
  10654. * nat/windows-nat.h (handle_output_debug_string): Declare.
  10655. 2020-04-08 Tom Tromey <tromey@adacore.com>
  10656. * windows-nat.c (current_process_handle, current_process_id)
  10657. (main_thread_id, last_sig, current_event, last_wait_event)
  10658. (current_windows_thread, desired_stop_thread_id, pending_stops)
  10659. (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
  10660. (display_selectors, fake_create_process)
  10661. (get_windows_debug_event): Update.
  10662. * nat/windows-nat.h (current_process_handle, current_process_id)
  10663. (main_thread_id, last_sig, current_event, last_wait_event)
  10664. (current_windows_thread, desired_stop_thread_id, pending_stops)
  10665. (struct pending_stop, siginfo_er): Move from windows-nat.c.
  10666. * nat/windows-nat.c (current_process_handle, current_process_id)
  10667. (main_thread_id, last_sig, current_event, last_wait_event)
  10668. (current_windows_thread, desired_stop_thread_id, pending_stops)
  10669. (siginfo_er): New globals. Move from windows-nat.c.
  10670. 2020-04-08 Tom Tromey <tromey@adacore.com>
  10671. * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
  10672. (handle_load_dll): Update.
  10673. * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
  10674. 2020-04-08 Tom Tromey <tromey@adacore.com>
  10675. * windows-nat.c (enum thread_disposition_type): Move to
  10676. nat/windows-nat.h.
  10677. (windows_nat::thread_rec): Rename from thread_rec. No longer
  10678. static.
  10679. (windows_add_thread, windows_nat_target::fetch_registers)
  10680. (windows_nat_target::store_registers, handle_exception)
  10681. (windows_nat_target::resume, get_windows_debug_event)
  10682. (windows_nat_target::get_tib_address)
  10683. (windows_nat_target::thread_name)
  10684. (windows_nat_target::thread_alive): Update.
  10685. * nat/windows-nat.h (enum thread_disposition_type): Move from
  10686. windows-nat.c.
  10687. (thread_rec): Declare.
  10688. 2020-04-08 Tom Tromey <tromey@adacore.com>
  10689. * windows-nat.c: Add "using namespace".
  10690. * nat/windows-nat.h: Wrap contents in windows_nat namespace.
  10691. * nat/windows-nat.c: Wrap contents in windows_nat namespace.
  10692. 2020-04-08 Tom Tromey <tromey@adacore.com>
  10693. * nat/windows-nat.h (struct windows_thread_info): Declare
  10694. destructor.
  10695. * nat/windows-nat.c (~windows_thread_info): New.
  10696. 2020-04-08 Tom Tromey <tromey@adacore.com>
  10697. PR gdb/22992
  10698. * windows-nat.c (current_event): Update comment.
  10699. (last_wait_event, desired_stop_thread_id): New globals.
  10700. (struct pending_stop): New.
  10701. (pending_stops): New global.
  10702. (windows_nat_target) <stopped_by_sw_breakpoint>
  10703. <supports_stopped_by_sw_breakpoint>: New methods.
  10704. (windows_fetch_one_register): Add assertions. Adjust PC.
  10705. (windows_continue): Handle pending stops. Suspend other threads
  10706. when stepping. Use last_wait_event
  10707. (wait_for_debug_event): New function.
  10708. (get_windows_debug_event): Use wait_for_debug_event. Handle
  10709. pending stops. Queue spurious stops.
  10710. (windows_nat_target::wait): Set stopped_at_software_breakpoint.
  10711. (windows_nat_target::kill): Use wait_for_debug_event.
  10712. * nat/windows-nat.h (struct windows_thread_info)
  10713. <stopped_at_software_breakpoint>: New field.
  10714. * nat/windows-nat.c (windows_thread_info::resume): Clear
  10715. stopped_at_software_breakpoint.
  10716. 2020-04-08 Tom Tromey <tromey@adacore.com>
  10717. * windows-nat.c (enum thread_disposition_type): New.
  10718. (thread_rec): Replace "get_context" parameter with "disposition";
  10719. change type.
  10720. (windows_add_thread, windows_nat_target::fetch_registers)
  10721. (windows_nat_target::store_registers, handle_exception)
  10722. (windows_nat_target::resume, get_windows_debug_event)
  10723. (windows_nat_target::get_tib_address)
  10724. (windows_nat_target::thread_name)
  10725. (windows_nat_target::thread_alive): Update.
  10726. 2020-04-08 Tom Tromey <tromey@adacore.com>
  10727. * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
  10728. (windows_continue): Use windows_continue::resume.
  10729. * nat/windows-nat.h (struct windows_thread_info) <suspend,
  10730. resume>: Declare new methods.
  10731. * nat/windows-nat.c: New file.
  10732. * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
  10733. 2020-04-08 Tom Tromey <tromey@adacore.com>
  10734. * windows-nat.c (windows_add_thread, windows_delete_thread)
  10735. (windows_nat_target::fetch_registers)
  10736. (windows_nat_target::store_registers, fake_create_process)
  10737. (windows_nat_target::resume, windows_nat_target::resume)
  10738. (get_windows_debug_event, windows_nat_target::wait)
  10739. (windows_nat_target::pid_to_str)
  10740. (windows_nat_target::get_tib_address)
  10741. (windows_nat_target::get_ada_task_ptid)
  10742. (windows_nat_target::thread_name)
  10743. (windows_nat_target::thread_alive): Use lwp, not tid.
  10744. 2020-04-08 Tom Tromey <tromey@adacore.com>
  10745. * windows-nat.c (handle_exception)
  10746. (windows_nat_target::thread_name): Update.
  10747. * nat/windows-nat.h (windows_thread_info): Remove destructor.
  10748. <name>: Now unique_xmalloc_ptr.
  10749. 2020-04-08 Tom Tromey <tromey@adacore.com>
  10750. * windows-nat.c (thread_rec)
  10751. (windows_nat_target::fetch_registers): Update.
  10752. * nat/windows-nat.h (struct windows_thread_info) <suspended>:
  10753. Update comment.
  10754. <debug_registers_changed, reload_context>: Now bool.
  10755. 2020-04-08 Tom Tromey <tromey@adacore.com>
  10756. * windows-nat.c (windows_add_thread): Use new.
  10757. (windows_init_thread_list, windows_delete_thread): Use delete.
  10758. (get_windows_debug_event): Update.
  10759. * nat/windows-nat.h (struct windows_thread_info): Add constructor,
  10760. destructor, and initializers.
  10761. 2020-04-08 Tom Tromey <tromey@adacore.com>
  10762. * windows-nat.c (struct windows_thread_info): Remove.
  10763. * nat/windows-nat.h: New file.
  10764. 2020-04-08 Tom Tromey <tromey@adacore.com>
  10765. * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
  10766. (thread_rec, windows_add_thread, windows_delete_thread)
  10767. (windows_continue): Update.
  10768. 2020-04-08 Tom Tromey <tromey@adacore.com>
  10769. * windows-nat.c (struct windows_thread_info): Remove typedef.
  10770. (thread_head): Remove.
  10771. (thread_list): New global.
  10772. (thread_rec, windows_add_thread, windows_init_thread_list)
  10773. (windows_delete_thread, windows_continue): Update.
  10774. 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
  10775. * windows-tdep.h (windows_init_abi): Add comment.
  10776. (cygwin_init_abi): New declaration.
  10777. * windows-tdep.c: Split signal enumeration in two, one for
  10778. Windows and one for Cygwin.
  10779. (windows_gdb_signal_to_target): Only deal with signal of the
  10780. Windows OS ABI.
  10781. (cygwin_gdb_signal_to_target): New function.
  10782. (windows_init_abi): Rename to windows_init_abi_common, don't set
  10783. gdb_signal_to_target gdbarch method. Add new new function with
  10784. this name.
  10785. (cygwin_init_abi): New function.
  10786. * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
  10787. comment. Don't call windows_init_abi.
  10788. (amd64_windows_init_abi): Add comment, call windows_init_abi.
  10789. (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
  10790. * i386-windows-tdep.c (i386_windows_init_abi): Rename to
  10791. i386_windows_init_abi_common, don't call windows_init_abi. Add
  10792. a new function of this name.
  10793. (i386_cygwin_init_abi): New function.
  10794. (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
  10795. OS ABI Cygwin.
  10796. 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
  10797. * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
  10798. parameter.c.
  10799. (dwarf2_read_gdb_index): Update.
  10800. 2020-04-07 Kamil Rytarowski <n54@gmx.com>
  10801. * nbsd-tdep.c: Include "objfiles.h".
  10802. (nbsd_skip_solib_resolver): New.
  10803. (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
  10804. 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
  10805. * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
  10806. addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
  10807. with DW_LLE_base_addressx are being emitted in DWARFv5.
  10808. Add the newly added kind DW_LOC_OFFSET_PAIR also.
  10809. The length of location description is an unsigned ULEB integer in DWARFv5 instead of
  10810. unsigned integer.
  10811. 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
  10812. * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
  10813. (dwarf2_find_location_expression): Call the function decode_debug_loclists_
  10814. addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
  10815. with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
  10816. Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
  10817. (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
  10818. DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
  10819. 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
  10820. * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
  10821. (read_loclist_index): New function definition.
  10822. (lookup_loclist_base): New function definition.
  10823. (read_loclist_header): New function definition.
  10824. (dwarf2_cu): Add loclist_base and loclist_header field.
  10825. (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
  10826. (read_full_die_1): Read the value of DW_AT_loclists_base.
  10827. (read_attribute_reprocess): Handle DW_FORM_loclistx.
  10828. (read_attribute_value): Handle DW_FORM_loclistx.
  10829. (skip_one_die): Handle DW_FORM_loclistx.
  10830. (loclist_header): New structure declaration.
  10831. * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
  10832. 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
  10833. * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
  10834. constructor. Remove `addr` parameter from other constructor and
  10835. add `per_cu` parameter.
  10836. * dwarf2/read.c (create_partial_symtab): Update.
  10837. 2020-04-07 Tom de Vries <tdevries@suse.de>
  10838. PR symtab/25796
  10839. * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
  10840. (partial_die_info::fixup): Inherit has_const_value.
  10841. 2020-04-07 Tom de Vries <tdevries@suse.de>
  10842. * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
  10843. symbols without address.
  10844. 2020-04-06 Kamil Rytarowski <n54@gmx.com>
  10845. * nbsd-nat.h (struct thread_info): Add forward declaration.
  10846. (nbsd_nat_target::thread_alive): Add.
  10847. (nbsd_nat_target::thread_name): Likewise.
  10848. (nbsd_nat_target::update_thread_list): Likewise.
  10849. (update_thread_list::post_attach): Likewise.
  10850. (post_attach::pid_to_str): Likewise.
  10851. * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
  10852. (nbsd_thread_lister): Add.
  10853. (nbsd_nat_target::thread_alive): Likewise.
  10854. (nbsd_nat_target::thread_name): Likewise.
  10855. (nbsd_add_threads): Likewise.
  10856. (update_thread_list::post_attach): Likewise.
  10857. (nbsd_nat_target::update_thread_list): Likewise.
  10858. (post_attach::pid_to_str): Likewise.
  10859. 2020-04-06 Tom Tromey <tromey@adacore.com>
  10860. * ada-valprint.c (print_variant_part): Extract the variant field.
  10861. (print_field_values): Use the field as the outer value when
  10862. recursing.
  10863. 2020-04-06 Tom Tromey <tromey@adacore.com>
  10864. * sh-nbsd-tdep.c: Include nbsd-tdep.h.
  10865. * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
  10866. * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
  10867. * arm-nbsd-tdep.c: Include nbsd-tdep.h.
  10868. * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
  10869. 2020-04-06 Tom Tromey <tromey@adacore.com>
  10870. * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
  10871. TYPE_CODE_ERROR.
  10872. 2020-04-06 Kamil Rytarowski <n54@gmx.com>
  10873. * nbsd-tdep.c: Include "gdbarch.h".
  10874. Define enum with NetBSD signal numbers.
  10875. (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
  10876. * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
  10877. * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
  10878. * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
  10879. * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
  10880. * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
  10881. * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
  10882. * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
  10883. * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
  10884. * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
  10885. * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
  10886. * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
  10887. 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
  10888. PR gdb/25325
  10889. * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
  10890. 2020-04-03 Tom Tromey <tromey@adacore.com>
  10891. * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
  10892. Read constant block.
  10893. 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
  10894. * gdb_bfd.h: Include gdbsupport/byte-vector.h.
  10895. (gdb_bfd_get_full_section_contents): New declaration.
  10896. * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
  10897. * windows-tdep.c (is_linked_with_cygwin_dll): Use
  10898. gdb_bfd_get_full_section_contents.
  10899. 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
  10900. * exec.c (build_section_table): Replace internal_error with
  10901. gdb_assert.
  10902. (section_table_xfer_memory_partial): Likewise.
  10903. * mdebugread.c (parse_partial_symbols): Likewise.
  10904. * psymtab.c (lookup_partial_symbol): Likewise.
  10905. * utils.c (wrap_here): Likewise.
  10906. 2020-04-02 Tom Tromey <tromey@adacore.com>
  10907. * f-lang.c (build_fortran_types): Use arch_type to initialize
  10908. builtin_complex_s32 in the TYPE_CODE_ERROR case.
  10909. 2020-04-02 Tom Tromey <tromey@adacore.com>
  10910. * dwarf2/read.c (partial_die_info::read): Do not create a vector
  10911. of attributes.
  10912. 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
  10913. Bernd Edlinger <bernd.edlinger@hotmail.de>
  10914. Tom Tromey <tromey@adacore.com>
  10915. * buildsym.c (buildsym_compunit::record_line): Remove
  10916. deduplication code.
  10917. 2020-04-02 Tom de Vries <tdevries@suse.de>
  10918. PR ada/24671
  10919. * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
  10920. 2020-04-02 Tom de Vries <tdevries@suse.de>
  10921. * dwarf2/read.c (dwarf2_gdb_index_functions,
  10922. dwarf2_debug_names_functions): Init lookup_global_symbol_language with
  10923. NULL.
  10924. * psymtab.c (psym_lookup_global_symbol_language): New function.
  10925. (psym_functions): Init psym_lookup_global_symbol_language with
  10926. psym_lookup_global_symbol_language.
  10927. * symfile-debug.c (debug_sym_quick_functions): Init
  10928. lookup_global_symbol_language with NULL.
  10929. * symfile.c (set_initial_language): Remove fixme comment.
  10930. * symfile.h (struct quick_symbol_functions): Add
  10931. lookup_global_symbol_language.
  10932. * symtab.c (find_quick_global_symbol_language): New function.
  10933. (find_main_name): Use find_quick_global_symbol_language.
  10934. 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
  10935. * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
  10936. 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
  10937. * buildsym.c (record_line): Fix undefined behavior and preserve
  10938. lines at eof.
  10939. 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
  10940. * buildsym.c (record_line): Fix the resizing condition.
  10941. 2020-04-01 Tom Tromey <tom@tromey.com>
  10942. * value.h (value_literal_complex): Add comment.
  10943. * valops.c (value_literal_complex): Refer to value.h.
  10944. 2020-04-01 Tom Tromey <tom@tromey.com>
  10945. * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
  10946. (scalar_type): New rule, from typebase.
  10947. (typebase): Use scalar_type. Recognize complex types.
  10948. (field_name): Handle FLOAT_KEYWORD.
  10949. (ident_tokens): Add _Complex and __complex__.
  10950. 2020-04-01 Tom Tromey <tom@tromey.com>
  10951. PR exp/25299:
  10952. * valarith.c (promotion_type, complex_binop): New functions.
  10953. (scalar_binop): Handle complex numbers. Use promotion_type.
  10954. (value_pos, value_neg, value_complement): Handle complex numbers.
  10955. 2020-04-01 Tom Tromey <tom@tromey.com>
  10956. * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
  10957. (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
  10958. (parse_number): Handle complex numbers.
  10959. 2020-04-01 Tom Tromey <tom@tromey.com>
  10960. * c-valprint.c (c_decorations): Change complex suffix to "i".
  10961. 2020-04-01 Tom Tromey <tom@tromey.com>
  10962. * valprint.c (generic_value_print_complex): Use accessors.
  10963. * value.h (value_real_part, value_imaginary_part): Declare.
  10964. * valops.c (value_real_part, value_imaginary_part): New
  10965. functions.
  10966. * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
  10967. 2020-04-01 Tom Tromey <tom@tromey.com>
  10968. * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
  10969. (read_range_type): Update.
  10970. * mdebugread.c (basic_type): Update.
  10971. * go-lang.c (build_go_types): Use init_complex_type.
  10972. * gdbtypes.h (struct main_type) <complex_type>: New member.
  10973. (init_complex_type): Update.
  10974. (arch_complex_type): Don't declare.
  10975. * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
  10976. Make name if none given. Use alloc_type_copy. Look for cached
  10977. complex type.
  10978. (arch_complex_type): Remove.
  10979. (gdbtypes_post_init): Use init_complex_type.
  10980. * f-lang.c (build_fortran_types): Use init_complex_type.
  10981. * dwarf2/read.c (read_base_type): Update.
  10982. * d-lang.c (build_d_types): Use init_complex_type.
  10983. * ctfread.c (read_base_type): Update.
  10984. 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  10985. * infrun.c (stop_all_threads): Update assertion, plus when
  10986. stopping threads, take into account that we might be trying
  10987. to stop an all-stop target.
  10988. (stop_waiting): Call 'stop_all_threads' if there exists a
  10989. non-stop target.
  10990. 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  10991. * target.h (exists_non_stop_target): New function declaration.
  10992. * target.c (exists_non_stop_target): New function.
  10993. 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
  10994. PR gdb/24789
  10995. * eval.c (is_integral_or_integral_reference): New function.
  10996. (evaluate_subexp_standard): Allow integer references in
  10997. pointer arithmetic.
  10998. 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  10999. * remote.c (remote_target::remote_parse_stop_reply): Remove the
  11000. check for no ptid in the stop reply when the target is non-stop.
  11001. 2020-04-01 Tom Tromey <tromey@adacore.com>
  11002. * symtab.h (class lookup_name_info) <lookup_name_info>: Change
  11003. "name" parameter to rvalue reference. Initialize m_name_holder.
  11004. <lookup_name_info>: New overloads.
  11005. <name>: Return gdb::string_view.
  11006. <c_str>: New method.
  11007. <make_ignore_params>: Update.
  11008. <search_name_hash>: Update.
  11009. <language_lookup_name>: Return const char *.
  11010. <m_name>: Change type.
  11011. * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
  11012. (demangle_for_lookup_info::demangle_for_lookup_info): Update.
  11013. (lookup_name_info::match_any): Update.
  11014. * psymtab.c (match_partial_symbol, lookup_partial_symbol):
  11015. Update.
  11016. * minsyms.c (linkage_name_str): Update.
  11017. * language.c (default_symbol_name_matcher): Update.
  11018. * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
  11019. Update.
  11020. * ada-lang.c (ada_fold_name): Change parameter to string_view.
  11021. (ada_lookup_name_info::ada_lookup_name_info): Update.
  11022. (literal_symbol_name_matcher): Update.
  11023. 2020-04-01 Tom Tromey <tromey@adacore.com>
  11024. * psymtab.c (psymtab_search_name): Remove function.
  11025. (psym_lookup_symbol): Create search name and lookup name here.
  11026. (lookup_partial_symbol): Remove "name" parameter; add
  11027. lookup_name.
  11028. (psym_expand_symtabs_for_function): Update.
  11029. 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
  11030. PR tui/25597:
  11031. * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
  11032. 2020-03-31 Tom Tromey <tromey@adacore.com>
  11033. * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
  11034. memcpy.
  11035. 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
  11036. * features/riscv/32bit-csr.xml: Regenerated.
  11037. * features/riscv/64bit-csr.xml: Regenerated.
  11038. 2020-03-30 Tom Tromey <tromey@adacore.com>
  11039. * ada-valprint.c (print_variant_part): Update.
  11040. * ada-lang.h (ada_which_variant_applies): Update.
  11041. * ada-lang.c (ada_which_variant_applies): Remove outer_type and
  11042. outer_valaddr parameters; replace with "outer" value parameter.
  11043. (to_fixed_variant_branch_type): Update.
  11044. 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
  11045. * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
  11046. <list>. Remove inclusion of observable.h.
  11047. (PPC_DEBUG_CURRENT_VERSION): Move up define.
  11048. (struct arch_lwp_info): New struct.
  11049. (class ppc_linux_dreg_interface): New class.
  11050. (struct ppc_linux_process_info): New struct.
  11051. (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
  11052. <low_new_clone, low_forget_process, low_prepare_to_resume>
  11053. <copy_thread_dreg_state, mark_thread_stale>
  11054. <mark_debug_registers_changed, register_hw_breakpoint>
  11055. <clear_hw_breakpoint, register_wp, clear_wp>
  11056. <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
  11057. <num_memory_accesses, get_trigger_type>
  11058. <create_watchpoint_request, hwdebug_point_cmp>
  11059. <init_arch_lwp_info, get_arch_lwp_info>
  11060. <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
  11061. methods.
  11062. <struct ptid_hash>: New inner struct.
  11063. <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
  11064. members.
  11065. (saved_dabr_value, hwdebug_info, max_slots_number)
  11066. (struct hw_break_tuple, struct thread_points, ppc_threads)
  11067. (have_ptrace_hwdebug_interface)
  11068. (hwdebug_find_thread_points_by_tid)
  11069. (hwdebug_insert_point, hwdebug_remove_point): Remove.
  11070. (ppc_linux_nat_target::can_use_hw_breakpoint): Use
  11071. m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
  11072. (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
  11073. use m_dreg_interface.
  11074. (hwdebug_point_cmp): Change to...
  11075. (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
  11076. reference arguments instead of pointers.
  11077. (ppc_linux_nat_target::ranged_break_num_registers): Use
  11078. m_dreg_interface.
  11079. (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
  11080. m_dreg_interface. Call register_hw_breakpoint.
  11081. (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
  11082. m_dreg_interface. Call clear_hw_breakpoint.
  11083. (get_trigger_type): Change to...
  11084. (ppc_linux_nat_target::get_trigger_type): ...this method. Add
  11085. comment.
  11086. (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
  11087. use m_dreg_interface. Call register_hw_breakpoint.
  11088. (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
  11089. use m_dreg_interface. Call clear_hw_breakpoint.
  11090. (can_use_watchpoint_cond_accel): Change to...
  11091. (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
  11092. method. Update comment, use m_dreg_interface and
  11093. m_process_info.
  11094. (calculate_dvc): Change to...
  11095. (ppc_linux_nat_target::calculate_dvc): ...this method. Use
  11096. m_dreg_interface.
  11097. (num_memory_accesses): Change to...
  11098. (ppc_linux_nat_target::num_memory_accesses): ...this method.
  11099. (check_condition): Change to...
  11100. (ppc_linux_nat_target::check_condition): ...this method.
  11101. (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
  11102. comment, use m_dreg_interface.
  11103. (create_watchpoint_request): Change to...
  11104. (ppc_linux_nat_target::create_watchpoint_request): ...this
  11105. method. Use m_dreg_interface.
  11106. (ppc_linux_nat_target::insert_watchpoint): Add comment, use
  11107. m_dreg_interface. Call register_hw_breakpoint or register_wp.
  11108. (ppc_linux_nat_target::remove_watchpoint): Add comment, use
  11109. m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
  11110. (ppc_linux_nat_target::low_forget_process)
  11111. (ppc_linux_nat_target::low_new_fork)
  11112. (ppc_linux_nat_target::low_new_clone)
  11113. (ppc_linux_nat_target::low_delete_thread)
  11114. (ppc_linux_nat_target::low_prepare_to_resume): New methods.
  11115. (ppc_linux_nat_target::low_new_thread): Remove previous logic,
  11116. only call mark_thread_stale.
  11117. (ppc_linux_thread_exit): Remove.
  11118. (ppc_linux_nat_target::stopped_data_address): Change to...
  11119. (ppc_linux_nat_target::low_stopped_data_address): This. Add
  11120. comment, use m_dreg_interface and m_thread_hw_breakpoints.
  11121. (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
  11122. (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
  11123. comment. Call low_stopped_data_address.
  11124. (ppc_linux_nat_target::watchpoint_addr_within_range): Use
  11125. m_dreg_interface.
  11126. (ppc_linux_nat_target::masked_watch_num_registers): Use
  11127. m_dreg_interface.
  11128. (ppc_linux_nat_target::copy_thread_dreg_state)
  11129. (ppc_linux_nat_target::mark_thread_stale)
  11130. (ppc_linux_nat_target::mark_debug_registers_changed)
  11131. (ppc_linux_nat_target::register_hw_breakpoint)
  11132. (ppc_linux_nat_target::clear_hw_breakpoint)
  11133. (ppc_linux_nat_target::register_wp)
  11134. (ppc_linux_nat_target::clear_wp)
  11135. (ppc_linux_nat_target::init_arch_lwp_info)
  11136. (ppc_linux_nat_target::get_arch_lwp_info): New methods.
  11137. (_initialize_ppc_linux_nat): Remove observer callback.
  11138. 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
  11139. * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
  11140. (ppc_linux_nat_target::auxv_parse)
  11141. (ppc_linux_nat_target::read_description)
  11142. (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
  11143. Move up.
  11144. 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
  11145. * linux-nat.h (low_new_clone): New method.
  11146. * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
  11147. 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
  11148. * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
  11149. (dbx_expand_psymtab): ... this.
  11150. (start_psymtab): Update.
  11151. * mdebugread.c (psymtab_to_symtab_1): Rename to...
  11152. (mdebug_expand_psymtab): ... this.
  11153. (parse_partial_symbols): Update.
  11154. (new_psymtab): Update.
  11155. * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
  11156. (xcoff_expand_psymtab): ... this.
  11157. (xcoff_start_psymtab): Update.
  11158. 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
  11159. * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
  11160. <expand_dependencies>: ... this.
  11161. * psymtab.c (partial_symtab::read_dependencies): Rename to...
  11162. (partial_symtab::expand_dependencies): ... this.
  11163. * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
  11164. Update.
  11165. (dwarf2_psymtab::expand_psymtab): Update.
  11166. * dbxread.c (dbx_psymtab_to_symtab_1): Update.
  11167. * mdebugread.c (psymtab_to_symtab_1): Update.
  11168. * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
  11169. 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
  11170. * psympriv.h (discard_psymtab): Remove.
  11171. * dbxread.c (dbx_end_psymtab): Update.
  11172. * xcoffread.c (xcoff_end_psymtab): Update.
  11173. 2020-03-28 Tom Tromey <tom@tromey.com>
  11174. * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
  11175. comment.
  11176. 2020-03-28 Tom Tromey <tom@tromey.com>
  11177. * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
  11178. 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
  11179. * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
  11180. 2020-03-26 John Baldwin <jhb@FreeBSD.org>
  11181. * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
  11182. 2020-03-26 Tom Tromey <tom@tromey.com>
  11183. * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
  11184. (mark_common_block_symbol_computed, read_tag_string_type)
  11185. (attr_to_dynamic_prop, read_subrange_type): Update.
  11186. (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
  11187. to be methods on struct attribute.
  11188. (skip_one_die, process_imported_unit_die, read_namespace_alias)
  11189. (read_call_site_scope, partial_die_info::read)
  11190. (partial_die_info::read, lookup_die_type, follow_die_ref):
  11191. Update.
  11192. * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
  11193. from dwarf2_get_ref_die_offset.
  11194. (attribute::constant_value): New method, from
  11195. dwarf2_get_attr_constant_value.
  11196. * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
  11197. Declare method.
  11198. <constant_value>: New method.
  11199. 2020-03-26 Tom Tromey <tom@tromey.com>
  11200. * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
  11201. (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
  11202. (dwarf_type_encoding_name): Move to stringify.c.
  11203. * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
  11204. * dwarf2/stringify.c: New file.
  11205. * dwarf2/stringify.h: New file.
  11206. 2020-03-26 Tom Tromey <tom@tromey.com>
  11207. * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
  11208. Rewrite.
  11209. 2020-03-26 Tom Tromey <tom@tromey.com>
  11210. * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
  11211. methods.
  11212. * dwarf2/read.c (lookup_addr_base): Move to die.h.
  11213. (lookup_ranges_base): Likewise.
  11214. (read_cutu_die_from_dwo, read_full_die_1): Update.
  11215. 2020-03-26 Tom Tromey <tom@tromey.com>
  11216. * dwarf2/read.c (read_import_statement, read_file_scope)
  11217. (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
  11218. (read_lexical_block_scope, read_call_site_scope)
  11219. (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
  11220. (handle_struct_member_die, process_structure_scope)
  11221. (update_enumeration_type_from_children)
  11222. (process_enumeration_scope, read_array_type, read_common_block)
  11223. (read_namespace, read_module, read_subroutine_type): Update.
  11224. (sibling_die): Remove.
  11225. 2020-03-26 Tom Tromey <tom@tromey.com>
  11226. * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
  11227. (build_type_psymtabs_reader, read_structure_type)
  11228. (read_enumeration_type, read_full_die_1): Update.
  11229. (dwarf2_attr_no_follow): Move to die.h.
  11230. * dwarf2/die.h (struct die_info) <attr>: New method.
  11231. 2020-03-26 Tom Tromey <tom@tromey.com>
  11232. * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
  11233. <base_address>: Now an optional.
  11234. (dwarf2_find_base_address, dwarf2_rnglists_process)
  11235. (dwarf2_ranges_process, fill_in_loclist_baton)
  11236. (dwarf2_symbol_mark_computed): Update.
  11237. 2020-03-26 Tom Tromey <tom@tromey.com>
  11238. * dwarf2/read.c (struct die_info): Move to die.h.
  11239. * dwarf2/die.h: New file.
  11240. 2020-03-26 Tom Tromey <tom@tromey.com>
  11241. * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
  11242. * dwarf2/read.c
  11243. (dwarf2_statement_list_fits_in_line_number_section_complaint):
  11244. Move to line-header.c.
  11245. (read_checked_initial_length_and_offset, read_formatted_entries):
  11246. Likewise.
  11247. (dwarf_decode_line_header): Split into two.
  11248. * dwarf2/line-header.c
  11249. (dwarf2_statement_list_fits_in_line_number_section_complaint):
  11250. Move from read.c.
  11251. (read_checked_initial_length_and_offset, read_formatted_entries):
  11252. Likewise.
  11253. (dwarf_decode_line_header): New function, split from read.c.
  11254. 2020-03-26 Tom Tromey <tom@tromey.com>
  11255. * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
  11256. Declare method.
  11257. * dwarf2/read.c (read_attribute_value): Update.
  11258. (dwarf2_per_objfile::read_line_string): Rename from
  11259. read_indirect_line_string.
  11260. (read_formatted_entries): Update.
  11261. 2020-03-26 Tom Tromey <tom@tromey.com>
  11262. * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
  11263. variable.
  11264. 2020-03-26 Tom Tromey <tom@tromey.com>
  11265. * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
  11266. const.
  11267. * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
  11268. (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
  11269. parameter const.
  11270. 2020-03-26 Tom Tromey <tom@tromey.com>
  11271. * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
  11272. * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
  11273. * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
  11274. (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
  11275. 2020-03-26 Tom Tromey <tom@tromey.com>
  11276. * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
  11277. file_names_size, file_full_name, file_file_name>: Use const.
  11278. <file_name_at, file_names>: Add const overload.
  11279. * dwarf2/line-header.c (line_header::file_file_name)
  11280. (line_header::file_full_name): Update.
  11281. 2020-03-26 Tom Tromey <tom@tromey.com>
  11282. * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
  11283. (macro_start_file, consume_improper_spaces)
  11284. (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
  11285. (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
  11286. (dwarf_decode_macros): Move to macro.c.
  11287. * dwarf2/macro.c: New file.
  11288. * dwarf2/macro.h: New file.
  11289. * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
  11290. 2020-03-26 Tom Tromey <tom@tromey.com>
  11291. * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
  11292. method.
  11293. * dwarf2/section.c: New method. From
  11294. read_indirect_string_at_offset_from.
  11295. * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
  11296. (read_indirect_string_at_offset_from): Move to section.c.
  11297. (read_indirect_string_at_offset): Rewrite.
  11298. (read_indirect_line_string_at_offset): Remove.
  11299. (read_indirect_string, read_indirect_line_string)
  11300. (dwarf_decode_macro_bytes): Update.
  11301. 2020-03-26 Tom Tromey <tom@tromey.com>
  11302. * dwarf2/section.h (struct dwarf2_section_info)
  11303. <overload_complaint>: Declare.
  11304. (dwarf2_section_buffer_overflow_complaint): Don't declare.
  11305. * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
  11306. Rename from dwarf2_section_buffer_overflow_complaint.
  11307. * dwarf2/read.c (skip_one_die, partial_die_info::read)
  11308. (skip_form_bytes, dwarf_decode_macro_bytes): Update.
  11309. 2020-03-26 Tom Tromey <tom@tromey.com>
  11310. * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
  11311. Declare.
  11312. * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
  11313. Move from read.c.
  11314. * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
  11315. to section.c.
  11316. 2020-03-26 Tom Tromey <tom@tromey.com>
  11317. * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
  11318. 2020-03-26 Tom Tromey <tom@tromey.com>
  11319. * dwarf2/read.c (macro_start_file): Change "cu" parameter to
  11320. "builder".
  11321. (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
  11322. parameter.
  11323. (dwarf_decode_macros): Update.
  11324. 2020-03-26 Tom Tromey <tom@tromey.com>
  11325. * dwarf2/read.c (read_attribute_value): Update.
  11326. (read_indirect_string_from_dwz): Move to dwz.c; change into
  11327. method.
  11328. (dwarf_decode_macro_bytes): Update.
  11329. * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
  11330. * dwarf2/dwz.c: New file.
  11331. * Makefile.in (COMMON_SFILES): Add dwz.c.
  11332. 2020-03-26 Tom Tromey <tom@tromey.com>
  11333. * dwarf2/read.h (struct dwz_file): Move to dwz.h.
  11334. * dwarf2/read.c: Add include.
  11335. * dwarf2/index-write.c: Add include.
  11336. * dwarf2/index-cache.c: Add include.
  11337. * dwarf2/dwz.h: New file.
  11338. 2020-03-25 Tom Tromey <tom@tromey.com>
  11339. * compile/compile-object-load.c (get_out_value_type): Mention
  11340. correct symbol name in error message.
  11341. 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
  11342. * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
  11343. 2020-03-25 Tom de Vries <tdevries@suse.de>
  11344. * symtab.h (is_main_symtab_of_compunit_symtab): New function.
  11345. * symmisc.c (dump_symtab_1): Print user and includes fields.
  11346. (maintenance_info_symtabs): Same.
  11347. 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
  11348. PR gdb/25534
  11349. * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
  11350. (riscv_regcache_cooked_write): New function.
  11351. (riscv_push_dummy_call): Use new function.
  11352. (riscv_return_value): Likewise.
  11353. 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
  11354. * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
  11355. * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
  11356. * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
  11357. * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
  11358. * infrun.c (follow_fork): Likewise.
  11359. (follow_fork_inferior): Likewise.
  11360. * linux-nat.c (linux_nat_target::follow_fork): Likewise.
  11361. * linux-nat.h (class linux_nat_target): Likewise.
  11362. * remote.c (class remote_target) <follow_fork>: Likewise.
  11363. (remote_target::follow_fork): Likewise.
  11364. * target-delegates.c: Re-generate.
  11365. * target.c (default_follow_fork): Likewise.
  11366. (target_follow_fork): Likewise.
  11367. * target.h (struct target_ops) <follow_fork>: Likewise.
  11368. (target_follow_fork): Likewise.
  11369. 2020-03-24 Tom de Vries <tdevries@suse.de>
  11370. * psymtab.c (maintenance_info_psymtabs): Print user field.
  11371. 2020-03-20 Tom Tromey <tromey@adacore.com>
  11372. * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
  11373. const.
  11374. * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
  11375. const.
  11376. 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
  11377. * ptrace.m4: Don't check for ptrace declaration.
  11378. * config.in: Re-generate.
  11379. * configure: Re-generate.
  11380. * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
  11381. not defined.
  11382. 2020-03-20 Kamil Rytarowski <n54@gmx.com>
  11383. * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
  11384. `PTRACE_TYPE_RET'.
  11385. * i386-bsd-nat.c (gdb_ptrace): Likewise.
  11386. * sparc-nat.c (gdb_ptrace): Likewise.
  11387. * x86-bsd-nat.c (gdb_ptrace): Likewise.
  11388. 2020-03-20 Tom Tromey <tromey@adacore.com>
  11389. * c-exp.y (lex_one_token): Fix assert.
  11390. 2020-03-20 Tom Tromey <tromey@adacore.com>
  11391. * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
  11392. * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
  11393. strncpy call.
  11394. 2020-03-20 Tom Tromey <tromey@adacore.com>
  11395. * symmisc.c (maintenance_print_one_line_table): Use ui_out.
  11396. 2020-03-20 Tom Tromey <tromey@adacore.com>
  11397. * ada-valprint.c (print_variant_part): Remove parameters; switch
  11398. to value-based API.
  11399. (print_field_values): Likewise.
  11400. (ada_val_print_struct_union): Likewise.
  11401. (ada_value_print_1): Update.
  11402. 2020-03-20 Kamil Rytarowski <n54@gmx.com>
  11403. * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
  11404. nbsd_nat_target instead of inf_ptrace_target.
  11405. * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
  11406. nbsd_nat_target.
  11407. 2020-03-20 Kamil Rytarowski <n54@gmx.com>
  11408. * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
  11409. it to the ptrace call.
  11410. * (store_registers): Likewise.
  11411. 2020-03-20 Kamil Rytarowski <n54@gmx.com>
  11412. * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
  11413. it to the ptrace call.
  11414. * (store_registers): Likewise.
  11415. 2020-03-19 Luis Machado <luis.machado@linaro.org>
  11416. * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
  11417. valid, fetch vg value from ptrace.
  11418. 2020-03-19 Kamil Rytarowski <n54@gmx.com>
  11419. * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
  11420. * inf-ptrace.c: Likewise.
  11421. * (gdb_ptrace): Add.
  11422. * (inf_ptrace_target::resume): Update.
  11423. * (inf_ptrace_target::xfer_partial): Likewise.
  11424. * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
  11425. * (inf_ptrace_peek_poke): Update.
  11426. 2020-03-19 Kamil Rytarowski <n54@gmx.com>
  11427. * x86-bsd-nat.c (gdb_ptrace): New.
  11428. * (x86bsd_dr_set): Add new argument `ptid'.
  11429. * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
  11430. x86bsd_dr_set_addr): Update.
  11431. 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
  11432. * remote.c (remote_target::process_stop_reply): Handle events for
  11433. all threads differently.
  11434. 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
  11435. * completer.c (completion_tracker::remove_completion): Define new
  11436. function.
  11437. * completer.h (completion_tracker::remove_completion): Declare new
  11438. function.
  11439. * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
  11440. when adding a C++ function symbol.
  11441. 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
  11442. * completer.c (completion_tracker::completion_hash_entry): Define
  11443. new class.
  11444. (advance_to_filename_complete_word_point): Call
  11445. recompute_lowest_common_denominator.
  11446. (completion_tracker::completion_tracker): Call discard_completions
  11447. to setup the hash table.
  11448. (completion_tracker::discard_completions): Allow for being called
  11449. from the constructor, pass new equal function, and element deleter
  11450. when constructing the hash table. Initialise new class member
  11451. variables.
  11452. (completion_tracker::maybe_add_completion): Remove use of
  11453. m_entries_vec, and store more information into m_entries_hash.
  11454. (completion_tracker::recompute_lcd_visitor): New function, most
  11455. content taken from...
  11456. (completion_tracker::recompute_lowest_common_denominator):
  11457. ...here, this now just visits each item in the hash calling the
  11458. above visitor.
  11459. (completion_tracker::build_completion_result): Remove use of
  11460. m_entries_vec, call recompute_lowest_common_denominator.
  11461. * completer.h (completion_tracker::have_completions): Remove use
  11462. of m_entries_vec.
  11463. (completion_tracker::completion_hash_entry): Declare new class.
  11464. (completion_tracker::recompute_lowest_common_denominator): Change
  11465. function signature.
  11466. (completion_tracker::recompute_lcd_visitor): Declare new function.
  11467. (completion_tracker::m_entries_vec): Delete.
  11468. (completion_tracker::m_entries_hash): Initialize to NULL.
  11469. (completion_tracker::m_lowest_common_denominator_valid): New
  11470. member variable.
  11471. (completion_tracker::m_lowest_common_denominator_max_length): New
  11472. member variable.
  11473. 2020-03-17 Kamil Rytarowski <n54@gmx.com>
  11474. * regformats/regdef.h: Put reg in gdb namespace.
  11475. 2020-03-17 Kamil Rytarowski <n54@gmx.com>
  11476. * i386-bsd-nat.c (gdb_ptrace): New.
  11477. * (i386bsd_fetch_inferior_registers,
  11478. i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
  11479. * (i386bsd_fetch_inferior_registers,
  11480. i386bsd_store_inferior_registers) Use gdb_ptrace.
  11481. 2020-03-17 Kamil Rytarowski <n54@gmx.com>
  11482. * amd64-bsd-nat.c (gdb_ptrace): New.
  11483. * (amd64bsd_fetch_inferior_registers,
  11484. amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
  11485. * (amd64bsd_fetch_inferior_registers,
  11486. amd64bsd_store_inferior_registers) Use gdb_ptrace.
  11487. 2020-03-17 Kamil Rytarowski <n54@gmx.com>
  11488. * user-regs.c (user_reg::read): Rename to...
  11489. (user_reg::xread): ...this.
  11490. * (append_user_reg): Rename argument `read' to `xread'.
  11491. * (user_reg_add_builtin): Likewise.
  11492. * (user_reg_add): Likewise.
  11493. * (value_of_user_reg): Likewise.
  11494. 2020-03-17 Kamil Rytarowski <n54@gmx.com>
  11495. * sparc-nat.c (gdb_ptrace): New.
  11496. * sparc-nat.c (sparc_fetch_inferior_registers)
  11497. (sparc_store_inferior_registers) Remove obsolete comment.
  11498. * sparc-nat.c (sparc_fetch_inferior_registers)
  11499. (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
  11500. * sparc-nat.c (sparc_fetch_inferior_registers)
  11501. (sparc_store_inferior_registers) Use gdb_ptrace.
  11502. 2020-03-17 Kamil Rytarowski <n54@gmx.com>
  11503. * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
  11504. it to the ptrace call.
  11505. * sh-nbsd-nat.c (store_registers): Likewise.
  11506. 2020-03-17 Kamil Rytarowski <n54@gmx.com>
  11507. * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
  11508. nbsd_nat_target instead of inf_ptrace_target.
  11509. * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
  11510. nbsd_nat_target.
  11511. 2020-03-17 Kamil Rytarowski <n54@gmx.com>
  11512. * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
  11513. 2020-03-17 Kamil Rytarowski <n54@gmx.com>
  11514. * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
  11515. <sys/sysctl.h>.
  11516. * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
  11517. 2020-03-17 Tom de Vries <tdevries@suse.de>
  11518. PR gdb/23710
  11519. * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
  11520. fields.
  11521. * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
  11522. fields.
  11523. (process_imported_unit_die): Skip import of c++ CUs.
  11524. 2020-03-16 Tom Tromey <tom@tromey.com>
  11525. * p-valprint.c (pascal_object_print_value): Initialize
  11526. base_value.
  11527. 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
  11528. Shahab Vahedi <shahab@synopsys.com>
  11529. * Makefile.in: Add arch/arc.o
  11530. * configure.tgt: Likewise.
  11531. * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
  11532. (_initialize_arc_tdep): Don't initialize old target descriptions.
  11533. (arc_read_description): New function to cache target descriptions.
  11534. * arc-tdep.h (arc_read_description): Add proto type.
  11535. * arch/arc.c: New file.
  11536. * arch/arc.h: Likewise.
  11537. * features/Makefile: Replace old target descriptions with new.
  11538. * features/arc-arcompact.c: Remove.
  11539. * features/arc-arcompact.xml: Likewise.
  11540. * features/arc-v2.c: Likewise
  11541. * features/arc-v2.xml: Likewise
  11542. * features/arc/aux-arcompact.xml: New file.
  11543. * features/arc/aux-v2.xml: Likewise.
  11544. * features/arc/core-arcompact.xml: Likewise.
  11545. * features/arc/core-v2.xml: Likewise.
  11546. * features/arc/aux-arcompact.c: Generate.
  11547. * features/arc/aux-v2.c: Likewise.
  11548. * features/arc/core-arcompact.c: Likewise.
  11549. * features/arc/core-v2.c: Likewise.
  11550. * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
  11551. 2020-03-16 Tom Tromey <tromey@adacore.com>
  11552. PR gdb/25663:
  11553. * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
  11554. putting value into bcache.
  11555. 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
  11556. PR gdb/21500
  11557. * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
  11558. to...
  11559. (amd64_windows_init_abi_common): ... this. Don't set size of
  11560. long type.
  11561. (amd64_windows_init_abi): New function.
  11562. (amd64_cygwin_init_abi): New function.
  11563. (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
  11564. the Cygwin OS ABI.
  11565. * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
  11566. comment.
  11567. 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
  11568. * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
  11569. * windows-tdep.c (CYGWIN_DLL_NAME): New.
  11570. (pe_import_directory_entry): New struct type.
  11571. (is_linked_with_cygwin_dll): New function.
  11572. * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
  11573. GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
  11574. * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
  11575. 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
  11576. * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
  11577. i386_cygwin_core_osabi_sniffer.
  11578. 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
  11579. * i386-cygwin-tdep.c: Rename to...
  11580. * i386-windows-tdep.c: ... this.
  11581. * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
  11582. i386-windows-tdep.c.
  11583. * configure.tgt: Likewise.
  11584. 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
  11585. * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
  11586. * osabi.c (gdb_osabi_names): Add "Windows".
  11587. * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
  11588. GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
  11589. (i386_cygwin_core_osabi_sniffer): New function, extracted from
  11590. i386_cygwin_osabi_sniffer.
  11591. (_initialize_i386_cygwin_tdep): Register OS ABI
  11592. GDB_OSABI_WINDOWS for i386.
  11593. * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
  11594. GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
  11595. (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
  11596. for x86-64.
  11597. * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
  11598. when the target matches '*-*-mingw*'.
  11599. 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
  11600. * defs.h (enum gdb_osabi): Move to...
  11601. * osabi.h (enum gdb_osabi): ... here.
  11602. * gdbarch.sh: Include osabi.h in gdbarch.h.
  11603. * gdbarch.h: Re-generate.
  11604. 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
  11605. * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
  11606. function.
  11607. (_initialize_amd64_windows_tdep): Register osabi sniffer.
  11608. 2020-03-14 Tom Tromey <tom@tromey.com>
  11609. * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
  11610. for C++.
  11611. (c_type_print_modifier): Likewise. Add "language" parameter.
  11612. (c_type_print_varspec_prefix, c_type_print_base_struct_union)
  11613. (c_type_print_base_1): Update.
  11614. * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
  11615. constants.
  11616. * type-stack.c (type_stack::insert): Handle tp_atomic and
  11617. tp_restrict.
  11618. (type_stack::follow_type_instance_flags): Likewise.
  11619. (type_stack::follow_types): Likewise. Merge type-following code.
  11620. * c-exp.y (RESTRICT, ATOMIC): New tokens.
  11621. (space_identifier, cv_with_space_id)
  11622. (const_or_volatile_or_space_identifier_noopt)
  11623. (const_or_volatile_or_space_identifier): Remove.
  11624. (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
  11625. rules.
  11626. (ptr_operator, typebase): Update.
  11627. (enum token_flag) <FLAG_C>: New constant.
  11628. (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
  11629. "_Atomic".
  11630. (lex_one_token): Handle FLAG_C.
  11631. 2020-03-14 Kamil Rytarowski <n54@gmx.com>
  11632. * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
  11633. it to the ptrace call.
  11634. * m68k-bsd-nat.c (store_registers): Likewise.
  11635. 2020-03-14 Kamil Rytarowski <n54@gmx.com>
  11636. * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
  11637. gdb_byte *.
  11638. * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
  11639. * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
  11640. * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
  11641. 2020-03-14 Kamil Rytarowski <n54@gmx.com>
  11642. * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
  11643. nbsd_nat_target instead of inf_ptrace_target.
  11644. * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
  11645. nbsd_nat_target.
  11646. 2020-03-14 Kamil Rytarowski <n54@gmx.com>
  11647. * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
  11648. register_t.
  11649. 2020-03-14 Kamil Rytarowski <n54@gmx.com>
  11650. * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
  11651. it to the ptrace call.
  11652. * alpha-bsd-nat.c (store_registers): Likewise.
  11653. 2020-03-14 Kamil Rytarowski <n54@gmx.com>
  11654. * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
  11655. includes.
  11656. * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
  11657. * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
  11658. fill_fpregset): Likewise.
  11659. 2020-03-14 Kamil Rytarowski <n54@gmx.com>
  11660. * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
  11661. nbsd_nat_target instead of inf_ptrace_target.
  11662. * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
  11663. nbsd_nat_target.
  11664. 2020-03-14 Kamil Rytarowski <n54@gmx.com>
  11665. * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
  11666. register_t.
  11667. 2020-03-14 Kamil Rytarowski <n54@gmx.com>
  11668. * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
  11669. it to the ptrace call.
  11670. * arm-nbsd-nat.c (fetch_fp_register): Likewise.
  11671. * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
  11672. * arm-nbsd-nat.c (store_register): Likewise.
  11673. * arm-nbsd-nat.c (store_regs): Likewise.
  11674. * arm-nbsd-nat.c (store_fp_register): Likewise.
  11675. * arm-nbsd-nat.c (store_fp_regs): Likewise.
  11676. 2020-03-14 Kamil Rytarowski <n54@gmx.com>
  11677. * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
  11678. nbsd_nat_target instead of inf_ptrace_target.
  11679. * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
  11680. nbsd_nat_target.
  11681. 2020-03-14 Kamil Rytarowski <n54@gmx.com>
  11682. * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
  11683. it to the ptrace call.
  11684. * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
  11685. 2020-03-14 Kamil Rytarowski <n54@gmx.com>
  11686. * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
  11687. it to the ptrace call.
  11688. * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
  11689. 2020-03-14 Kamil Rytarowski <n54@gmx.com>
  11690. * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
  11691. gdb_byte *.
  11692. * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
  11693. 2020-03-14 Kamil Rytarowski <n54@gmx.com>
  11694. * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
  11695. instead of inf_ptrace_target.
  11696. * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
  11697. nbsd_nat_target.
  11698. 2020-03-14 Kamil Rytarowski <n54@gmx.com>
  11699. * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
  11700. register_t.
  11701. 2020-03-14 Kamil Rytarowski <n54@gmx.com>
  11702. * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
  11703. register_t.
  11704. 2020-03-14 Kamil Rytarowski <n54@gmx.com>
  11705. * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
  11706. register_t.
  11707. 2020-03-13 Tom Tromey <tom@tromey.com>
  11708. * value.h (val_print): Don't declare.
  11709. * valprint.h (val_print_array_elements)
  11710. (val_print_scalar_formatted, generic_val_print): Don't declare.
  11711. * valprint.c (generic_val_print_array): Take a struct value.
  11712. (generic_val_print_ptr, generic_val_print_memberptr)
  11713. (generic_val_print_bool, generic_val_print_int)
  11714. (generic_val_print_char, generic_val_print_complex)
  11715. (generic_val_print): Remove.
  11716. (generic_value_print): Update.
  11717. (do_val_print): Remove unused parameters. Don't call
  11718. la_val_print.
  11719. (val_print): Remove.
  11720. (common_val_print): Update. Don't call value_check_printable.
  11721. (val_print_scalar_formatted, val_print_array_elements): Remove.
  11722. * rust-lang.c (rust_val_print): Remove.
  11723. (rust_language_defn): Update.
  11724. * p-valprint.c (pascal_val_print): Remove.
  11725. (pascal_value_print_inner): Update.
  11726. (pascal_object_print_val_fields, pascal_object_print_val):
  11727. Remove.
  11728. (pascal_object_print_static_field): Update.
  11729. * p-lang.h (pascal_val_print): Don't declare.
  11730. * p-lang.c (pascal_language_defn): Update.
  11731. * opencl-lang.c (opencl_language_defn): Update.
  11732. * objc-lang.c (objc_language_defn): Update.
  11733. * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
  11734. * m2-lang.h (m2_val_print): Don't declare.
  11735. * m2-lang.c (m2_language_defn): Update.
  11736. * language.h (struct language_defn) <la_val_print>: Remove.
  11737. * language.c (unk_lang_value_print_inner): Rename. Change
  11738. argument types.
  11739. (unknown_language_defn, auto_language_defn): Update.
  11740. * go-valprint.c (go_val_print): Remove.
  11741. * go-lang.h (go_val_print): Don't declare.
  11742. * go-lang.c (go_language_defn): Update.
  11743. * f-valprint.c (f_val_print): Remove.
  11744. * f-lang.h (f_value_print): Don't declare.
  11745. * f-lang.c (f_language_defn): Update.
  11746. * d-valprint.c (d_val_print): Remove.
  11747. * d-lang.h (d_value_print): Don't declare.
  11748. * d-lang.c (d_language_defn): Update.
  11749. * cp-valprint.c (cp_print_value_fields)
  11750. (cp_print_value_fields_rtti, cp_print_value): Remove.
  11751. (cp_print_static_field): Update.
  11752. * c-valprint.c (c_val_print_array, c_val_print_ptr)
  11753. (c_val_print_struct, c_val_print_union, c_val_print_int)
  11754. (c_val_print_memberptr, c_val_print): Remove.
  11755. * c-lang.h (c_val_print_array, cp_print_value_fields)
  11756. (cp_print_value_fields_rtti): Don't declare.
  11757. * c-lang.c (c_language_defn, cplus_language_defn)
  11758. (asm_language_defn, minimal_language_defn): Update.
  11759. * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
  11760. (ada_val_print_enum): Take a struct value.
  11761. (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
  11762. (ada_val_print): Remove.
  11763. (ada_value_print_1): Update.
  11764. (printable_val_type): Remove.
  11765. * ada-lang.h (ada_val_print): Don't declare.
  11766. * ada-lang.c (ada_language_defn): Update.
  11767. 2020-03-13 Tom Tromey <tom@tromey.com>
  11768. * valprint.c (do_val_print): Update.
  11769. * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
  11770. a struct value.
  11771. (value_to_value_object_no_release): Declare.
  11772. * python/py-value.c (value_to_value_object_no_release): New
  11773. function.
  11774. * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
  11775. struct value.
  11776. * guile/scm-value.c (vlscm_scm_from_value_no_release): New
  11777. function.
  11778. * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
  11779. a struct value.
  11780. * guile/guile-internal.h (vlscm_scm_from_value_no_release):
  11781. Declare.
  11782. (gdbscm_apply_val_pretty_printer): Take a struct value.
  11783. * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
  11784. value.
  11785. * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
  11786. value.
  11787. * extension-priv.h (struct extension_language_ops)
  11788. <apply_val_pretty_printer>: Take a struct value.
  11789. * cp-valprint.c (cp_print_value): Create a struct value.
  11790. (cp_print_value): Update.
  11791. 2020-03-13 Tom Tromey <tom@tromey.com>
  11792. * ada-valprint.c (print_field_values): Call common_val_print.
  11793. 2020-03-13 Tom Tromey <tom@tromey.com>
  11794. * ada-valprint.c (val_print_packed_array_elements): Remove
  11795. bitoffset and val parameters. Call common_val_print.
  11796. (ada_val_print_string): Remove offset, address, and original_value
  11797. parameters.
  11798. (ada_val_print_array): Update.
  11799. (ada_value_print_array): New function.
  11800. (ada_value_print_1): Call it.
  11801. 2020-03-13 Tom Tromey <tom@tromey.com>
  11802. * ada-valprint.c (ada_value_print): Use common_val_print.
  11803. 2020-03-13 Tom Tromey <tom@tromey.com>
  11804. * ada-valprint.c (ada_val_print_ref): Use common_val_print.
  11805. 2020-03-13 Tom Tromey <tom@tromey.com>
  11806. * ada-valprint.c (ada_value_print_num): New function.
  11807. (ada_value_print_1): Use it.
  11808. 2020-03-13 Tom Tromey <tom@tromey.com>
  11809. * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
  11810. 2020-03-13 Tom Tromey <tom@tromey.com>
  11811. * ada-valprint.c (ada_value_print_ptr): New function.
  11812. (ada_value_print_1): Use it.
  11813. 2020-03-13 Tom Tromey <tom@tromey.com>
  11814. * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
  11815. call common_val_print.
  11816. (ada_val_print_1): Update.
  11817. (ada_value_print_1): New function.
  11818. (ada_value_print_inner): Rewrite.
  11819. 2020-03-13 Tom Tromey <tom@tromey.com>
  11820. * cp-valprint.c (cp_print_value_fields): Update.
  11821. (cp_print_value): New function.
  11822. 2020-03-13 Tom Tromey <tom@tromey.com>
  11823. * m2-valprint.c (m2_value_print_inner): Use
  11824. cp_print_value_fields.
  11825. * cp-valprint.c (cp_print_value_fields): New function.
  11826. * c-valprint.c (c_value_print_struct): New function.
  11827. (c_value_print_inner): Use c_value_print_struct.
  11828. * c-lang.h (cp_print_value_fields): Declare.
  11829. 2020-03-13 Tom Tromey <tom@tromey.com>
  11830. * c-valprint.c (c_value_print_array): New function.
  11831. (c_value_print_inner): Use it.
  11832. 2020-03-13 Tom Tromey <tom@tromey.com>
  11833. * c-valprint.c (c_value_print_memberptr): New function.
  11834. (c_value_print_inner): Use it.
  11835. 2020-03-13 Tom Tromey <tom@tromey.com>
  11836. * c-valprint.c (c_value_print_int): New function.
  11837. (c_value_print_inner): Use it.
  11838. 2020-03-13 Tom Tromey <tom@tromey.com>
  11839. * c-valprint.c (c_value_print_ptr): New function.
  11840. (c_value_print_inner): Use it.
  11841. 2020-03-13 Tom Tromey <tom@tromey.com>
  11842. * c-valprint.c (c_value_print_inner): Rewrite.
  11843. 2020-03-13 Tom Tromey <tom@tromey.com>
  11844. * valprint.c (generic_value_print_complex): New function.
  11845. (generic_value_print): Use it.
  11846. 2020-03-13 Tom Tromey <tom@tromey.com>
  11847. * valprint.c (generic_val_print_float): Don't call
  11848. val_print_scalar_formatted.
  11849. (generic_val_print, generic_value_print): Update.
  11850. 2020-03-13 Tom Tromey <tom@tromey.com>
  11851. * valprint.c (generic_value_print_char): New function
  11852. (generic_value_print): Use it.
  11853. 2020-03-13 Tom Tromey <tom@tromey.com>
  11854. * valprint.c (generic_value_print_int): New function.
  11855. (generic_value_print): Use it.
  11856. 2020-03-13 Tom Tromey <tom@tromey.com>
  11857. * valprint.c (generic_value_print_bool): New function.
  11858. (generic_value_print): Use it.
  11859. 2020-03-13 Tom Tromey <tom@tromey.com>
  11860. * valprint.c (generic_val_print_func): Simplify.
  11861. (generic_val_print, generic_value_print): Update.
  11862. 2020-03-13 Tom Tromey <tom@tromey.com>
  11863. * valprint.c (generic_val_print_flags): Remove.
  11864. (generic_val_print, generic_value_print): Update.
  11865. (val_print_type_code_flags): Add original_value parameter.
  11866. 2020-03-13 Tom Tromey <tom@tromey.com>
  11867. * valprint.c (generic_val_print): Update.
  11868. (generic_value_print): Update.
  11869. * valprint.c (generic_val_print_enum): Don't call
  11870. val_print_scalar_formatted.
  11871. 2020-03-13 Tom Tromey <tom@tromey.com>
  11872. * valprint.c (generic_value_print): Call generic_value_print_ptr.
  11873. * valprint.c (generic_value_print_ptr): New function.
  11874. 2020-03-13 Tom Tromey <tom@tromey.com>
  11875. * valprint.c (generic_value_print): Rewrite.
  11876. 2020-03-13 Tom Tromey <tom@tromey.com>
  11877. * p-valprint.c (pascal_object_print_value_fields)
  11878. (pascal_object_print_value): New functions.
  11879. 2020-03-13 Tom Tromey <tom@tromey.com>
  11880. * p-valprint.c (pascal_value_print_inner): Rewrite.
  11881. 2020-03-13 Tom Tromey <tom@tromey.com>
  11882. * f-valprint.c (f_value_print_innner): Rewrite.
  11883. 2020-03-13 Tom Tromey <tom@tromey.com>
  11884. * m2-valprint.c (m2_print_unbounded_array): New overload.
  11885. (m2_print_unbounded_array): Update.
  11886. (m2_print_array_contents): Take a struct value.
  11887. (m2_value_print_inner): Rewrite.
  11888. 2020-03-13 Tom Tromey <tom@tromey.com>
  11889. * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
  11890. (d_value_print_inner): New function.
  11891. * d-lang.h (d_value_print_inner): Declare.
  11892. * d-lang.c (d_language_defn): Use d_value_print_inner.
  11893. 2020-03-13 Tom Tromey <tom@tromey.com>
  11894. * go-valprint.c (go_value_print_inner): New function.
  11895. * go-lang.h (go_value_print_inner): Declare.
  11896. * go-lang.c (go_language_defn): Use go_value_print_inner.
  11897. 2020-03-13 Tom Tromey <tom@tromey.com>
  11898. * rust-lang.c (val_print_struct, rust_print_enum): Use the value
  11899. API.
  11900. (rust_val_print): Rewrite.
  11901. (rust_value_print_inner): New function, from rust_val_print.
  11902. (rust_language_defn): Use rust_value_print_inner.
  11903. 2020-03-13 Tom Tromey <tom@tromey.com>
  11904. * ada-valprint.c (ada_value_print_inner): New function.
  11905. * ada-lang.h (ada_value_print_inner): Declare.
  11906. * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
  11907. 2020-03-13 Tom Tromey <tom@tromey.com>
  11908. * f-valprint.c (f_value_print_innner): New function.
  11909. * f-lang.h (f_value_print_innner): Declare.
  11910. * f-lang.c (f_language_defn): Use f_value_print_innner.
  11911. 2020-03-13 Tom Tromey <tom@tromey.com>
  11912. * p-valprint.c (pascal_value_print_inner): New function.
  11913. * p-lang.h (pascal_value_print_inner): Declare.
  11914. * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
  11915. 2020-03-13 Tom Tromey <tom@tromey.com>
  11916. * m2-valprint.c (m2_value_print_inner): New function.
  11917. * m2-lang.h (m2_value_print_inner): Declare.
  11918. * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
  11919. 2020-03-13 Tom Tromey <tom@tromey.com>
  11920. * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
  11921. * objc-lang.c (objc_language_defn): Use c_value_print_inner.
  11922. * c-valprint.c (c_value_print_inner): New function.
  11923. * c-lang.h (c_value_print_inner): Declare.
  11924. * c-lang.c (c_language_defn, cplus_language_defn)
  11925. (asm_language_defn, minimal_language_defn): Use
  11926. c_value_print_inner.
  11927. 2020-03-13 Tom Tromey <tom@tromey.com>
  11928. * p-valprint.c (pascal_object_print_value_fields): Now static.
  11929. * p-lang.h (pascal_object_print_value_fields): Don't declare.
  11930. 2020-03-13 Tom Tromey <tom@tromey.com>
  11931. * c-valprint.c (c_val_print_array): Simplify.
  11932. 2020-03-13 Tom Tromey <tom@tromey.com>
  11933. * valprint.c (value_print_array_elements): New function.
  11934. * valprint.h (value_print_array_elements): Declare.
  11935. 2020-03-13 Tom Tromey <tom@tromey.com>
  11936. * printcmd.c (print_formatted): Use value_print_scalar_formatted.
  11937. * mips-tdep.c (mips_print_register): Use
  11938. value_print_scalar_formatted.
  11939. 2020-03-13 Tom Tromey <tom@tromey.com>
  11940. * valprint.h (value_print_scalar_formatted): Declare.
  11941. * valprint.c (value_print_scalar_formatted): New function.
  11942. 2020-03-13 Tom Tromey <tom@tromey.com>
  11943. * valprint.h (generic_value_print): Declare.
  11944. * valprint.c (generic_value_print): New function.
  11945. 2020-03-13 Tom Tromey <tom@tromey.com>
  11946. * valprint.c (do_val_print): Call la_value_print_inner, if
  11947. available.
  11948. * rust-lang.c (rust_language_defn): Update.
  11949. * p-lang.c (pascal_language_defn): Update.
  11950. * opencl-lang.c (opencl_language_defn): Update.
  11951. * objc-lang.c (objc_language_defn): Update.
  11952. * m2-lang.c (m2_language_defn): Update.
  11953. * language.h (struct language_defn) <la_value_print_inner>: New
  11954. member.
  11955. * language.c (unknown_language_defn, auto_language_defn): Update.
  11956. * go-lang.c (go_language_defn): Update.
  11957. * f-lang.c (f_language_defn): Update.
  11958. * d-lang.c (d_language_defn): Update.
  11959. * c-lang.c (c_language_defn, cplus_language_defn)
  11960. (asm_language_defn, minimal_language_defn): Update.
  11961. * ada-lang.c (ada_language_defn): Update.
  11962. 2020-03-13 Tom Tromey <tom@tromey.com>
  11963. * c-valprint.c (c_value_print): Use common_val_print.
  11964. 2020-03-13 Tom Tromey <tom@tromey.com>
  11965. * cp-valprint.c (cp_print_static_field): Use common_val_print.
  11966. 2020-03-13 Tom Tromey <tom@tromey.com>
  11967. * f-valprint.c (f77_print_array_1, f_val_print): Use
  11968. common_val_print.
  11969. 2020-03-13 Tom Tromey <tom@tromey.com>
  11970. * riscv-tdep.c (riscv_print_one_register_info): Use
  11971. common_val_print.
  11972. 2020-03-13 Tom Tromey <tom@tromey.com>
  11973. * mi/mi-main.c (output_register): Use common_val_print.
  11974. 2020-03-13 Tom Tromey <tom@tromey.com>
  11975. * infcmd.c (default_print_one_register_info): Use
  11976. common_val_print.
  11977. 2020-03-13 Tom Tromey <tom@tromey.com>
  11978. * valprint.h (common_val_print_checked): Declare.
  11979. * valprint.c (common_val_print_checked): New function.
  11980. * stack.c (print_frame_arg): Use common_val_print_checked.
  11981. 2020-03-13 Tom Tromey <tom@tromey.com>
  11982. * valprint.c (do_val_print): New function, from val_print.
  11983. (val_print): Use do_val_print.
  11984. (common_val_print): Use do_val_print.
  11985. 2020-03-13 Tom Tromey <tom@tromey.com>
  11986. * valprint.c (value_print): Use scoped_value_mark.
  11987. 2020-03-13 Tom de Vries <tdevries@suse.de>
  11988. PR symtab/25646
  11989. * psymtab.c (partial_symtab::partial_symtab): Don't set
  11990. globals_offset and statics_offset. Push element onto
  11991. current_global_psymbols and current_static_psymbols stacks.
  11992. (concat): New function.
  11993. (end_psymtab_common): Set globals_offset and statics_offset. Pop
  11994. element from current_global_psymbols and current_static_psymbols
  11995. stacks. Concat popped elements to global_psymbols and
  11996. static_symbols.
  11997. (add_psymbol_to_list): Use current_global_psymbols and
  11998. current_static_psymbols stacks.
  11999. * psymtab.h (class psymtab_storage): Add current_global_psymbols and
  12000. current_static_psymbols fields.
  12001. 2020-03-12 Christian Biesinger <cbiesinger@google.com>
  12002. * corelow.c (sniff_core_bfd): Remove.
  12003. (class core_target) <m_core_vec>: Remove.
  12004. (core_target::core_target): Update.
  12005. (core_file_fns): Remove.
  12006. (deprecated_add_core_fns): Remove.
  12007. (default_core_sniffer): Remove.
  12008. (sniff_core_bfd): Remove.
  12009. (default_check_format): Remove.
  12010. (gdb_check_format): Remove.
  12011. (core_target_open): Update.
  12012. (core_target::get_core_register_section): Update.
  12013. (get_core_registers_cb): Update.
  12014. (core_target::fetch_registers): Update.
  12015. * gdbcore.h (struct core_fns): Remove.
  12016. (deprecated_add_core_fns): Remove.
  12017. (default_core_sniffer): Remove.
  12018. (default_check_format): Remove.
  12019. 2020-03-12 Tom Tromey <tom@tromey.com>
  12020. * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
  12021. CORE_ADDR.
  12022. (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
  12023. 2020-03-12 Tom Tromey <tom@tromey.com>
  12024. * remote.c (remote_target::download_tracepoint)
  12025. (remote_target::enable_tracepoint)
  12026. (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
  12027. * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
  12028. sprintf_vma.
  12029. 2020-03-12 Tom Tromey <tom@tromey.com>
  12030. * symfile-mem.c: Update CORE_ADDR size assert.
  12031. 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
  12032. * selftest.m4: Move to gdbsupport/.
  12033. * acinclude.m4: Update path to selftest.m4.
  12034. 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
  12035. * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
  12036. (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
  12037. gdbarch-selfselftests.c and selftest-arch.c.
  12038. (SUBDIR_UNITTESTS_OBS): Rename to...
  12039. (SELFTESTS_OBS): ... this.
  12040. (COMMON_SFILES): Remove disasm-selftests.c and
  12041. gdbarch-selftests.c.
  12042. * configure.ac: Don't add selftest-arch.{c,o} to
  12043. CONFIG_{SRCS,OBS}.
  12044. * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
  12045. preprocessor conditions.
  12046. 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
  12047. * configure.ac: Don't source bfd/development.sh.
  12048. * selftest.m4: Modify comment.
  12049. * configure: Re-generate.
  12050. 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
  12051. * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
  12052. not "true" or "false".
  12053. * configure: Re-generate.
  12054. 2020-03-12 Christian Biesinger <cbiesinger@google.com>
  12055. * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
  12056. * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
  12057. renamed to arm_nbsd_supply_gregset.
  12058. (fetch_register): Update to call arm_nbsd_supply_gregset.
  12059. (fetch_regs): Remove in favor of fetch_register with a -1 regno.
  12060. (arm_netbsd_nat_target::fetch_registers): Update.
  12061. (fetch_elfcore_registers): Removed.
  12062. (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
  12063. * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
  12064. (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
  12065. not require NetBSD system headers.
  12066. (arm_nbsd_regset): New struct.
  12067. (arm_nbsd_iterate_over_regset_sections): New function.
  12068. (arm_netbsd_init_abi_common): Updated to call
  12069. set_gdbarch_iterate_over_regset_sections.
  12070. * arm-nbsd-tdep.h: New file.
  12071. 2020-03-11 Kevin Buettner <kevinb@redhat.com>
  12072. * symtab.c (find_pc_sect_line): Add check which prevents infinite
  12073. recursion.
  12074. 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
  12075. * configure: Re-generate.
  12076. 2020-03-11 Tom Tromey <tromey@adacore.com>
  12077. * ada-typeprint.c (print_choices): Fix comment.
  12078. 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
  12079. * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
  12080. previous item in the list, when the list has no items.
  12081. 2020-03-11 Tom de Vries <tdevries@suse.de>
  12082. * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
  12083. PROP_LOCLIST handling code.
  12084. 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
  12085. * buildsym-legacy.c (record_line): Pass extra parameter to
  12086. record_line.
  12087. * buildsym.c (buildsym_compunit::record_line): Take an extra
  12088. parameter, reduce duplication in the line table, and record the
  12089. is_stmt flag in the line table.
  12090. * buildsym.h (buildsym_compunit::record_line): Add extra
  12091. parameter.
  12092. * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
  12093. non-statement lines.
  12094. * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
  12095. this to the symtab builder.
  12096. (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
  12097. (lnp_state_machine::record_line): Pass a suitable is_stmt flag
  12098. through to dwarf_record_line_1.
  12099. * infrun.c (process_event_stop_test): When stepping, don't stop at
  12100. a non-statement instruction, and only refresh the step info when
  12101. we land in the middle of a line's range. Also add an extra
  12102. comment.
  12103. * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
  12104. field.
  12105. * record-btrace.c (btrace_find_line_range): Only record lines
  12106. marked as is-statement.
  12107. * stack.c (frame_show_address): Show the frame address if we are
  12108. in a non-statement sal.
  12109. * symmisc.c (dump_symtab_1): Print the is_stmt flag.
  12110. (maintenance_print_one_line_table): Print a header for the is_stmt
  12111. column, and include is_stmt information in the output.
  12112. * symtab.c (find_pc_sect_line): Find lines marked as statements in
  12113. preference to non-statements.
  12114. (find_pcs_for_symtab_line): Prefer is-statement entries.
  12115. (find_line_common): Likewise.
  12116. * symtab.h (struct linetable_entry): Add is_stmt field.
  12117. (struct symtab_and_line): Likewise.
  12118. * xcoffread.c (arrange_linetable): Initialise is_stmt field when
  12119. arranging the line table.
  12120. 2020-03-07 Tom de Vries <tdevries@suse.de>
  12121. * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
  12122. DIE.
  12123. 2020-03-07 Tom Tromey <tom@tromey.com>
  12124. * valops.c (value_literal_complex): Remove obsolete comment.
  12125. * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
  12126. comment.
  12127. 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
  12128. * infrun.h: Forward-declare thread_info.
  12129. (set_step_info): Add thread_info parameter, add doc.
  12130. * infrun.c (set_step_info): Add thread_info parameter, move doc
  12131. to header.
  12132. * infrun.c (process_event_stop_test): Pass thread to
  12133. set_step_info call.
  12134. * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
  12135. set_step_info.
  12136. (prepare_one_step): Add thread_info parameter, pass it to
  12137. set_step_frame and prepare_one_step (recursive) call.
  12138. (step_1): Pass thread to prepare_one_step call.
  12139. (step_command_fsm::should_stop): Pass thread to
  12140. prepare_one_step.
  12141. (until_next_fsm): Pass thread to set_step_frame call.
  12142. (finish_command): Pass thread to set_step_info call.
  12143. 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
  12144. * windows-tdep.c (windows_solib_create_inferior_hook):
  12145. Check if inferior is running.
  12146. 2020-03-06 Tom de Vries <tdevries@suse.de>
  12147. * NEWS: Fix "the the".
  12148. * ctfread.c: Same.
  12149. 2020-03-06 Tom de Vries <tdevries@suse.de>
  12150. * psymtab.c (psymtab_to_symtab): Don't print "done.".
  12151. 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
  12152. * .dir-locals.el: Add a comment referencing the other copies of
  12153. this file.
  12154. 2020-03-05 John Baldwin <jhb@FreeBSD.org>
  12155. * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
  12156. psargs.
  12157. 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  12158. * .gitattributes: New file.
  12159. 2020-03-04 Tom Tromey <tom@tromey.com>
  12160. * symmisc.c (print_symbol_bcache_statistics)
  12161. (print_objfile_statistics): Update.
  12162. * symfile.c (allocate_symtab): Use intern.
  12163. * psymtab.c (partial_symtab::partial_symtab): Use intern.
  12164. * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
  12165. macro_cache>: Remove.
  12166. <string_cache>: New member.
  12167. (struct objfile) <intern>: New methods.
  12168. * elfread.c (elf_symtab_read): Use intern.
  12169. * dwarf2/read.c (fixup_go_packaging): Intern package name.
  12170. (dwarf2_compute_name, dwarf2_physname)
  12171. (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
  12172. names.
  12173. (guess_partial_die_structure_name): Update.
  12174. (partial_die_info::fixup): Intern name.
  12175. (dwarf2_canonicalize_name): Change parameter to objfile. Intern
  12176. name.
  12177. (dwarf2_name): Intern name. Update.
  12178. * buildsym.c (buildsym_compunit::get_macro_table): Use
  12179. string_cache.
  12180. 2020-03-04 Tom Tromey <tom@tromey.com>
  12181. * jit.c (bfd_open_from_target_memory): Make "target" const.
  12182. * corefile.c (gnutarget): Now const.
  12183. * gdbcore.h (gnutarget): Now const.
  12184. 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
  12185. * NEWS: Mention support for WOW64 processes.
  12186. * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
  12187. (amd64_windows_segment_register_p): Remove static.
  12188. (_initialize_amd64_windows_nat): Update.
  12189. * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
  12190. * i386-windows-nat.c (context_offset): Update.
  12191. (i386_mappings): Rename and remove static.
  12192. (i386_windows_segment_register_p): Remove static.
  12193. (_initialize_i386_windows_nat): Update.
  12194. * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
  12195. (STATUS_WX86_SINGLE_STEP): New macro.
  12196. (EnumProcessModulesEx): New macro.
  12197. (Wow64SuspendThread): New macro.
  12198. (Wow64GetThreadContext): New macro.
  12199. (Wow64SetThreadContext): New macro.
  12200. (Wow64GetThreadSelectorEntry): New macro.
  12201. (windows_set_context_register_offsets): Add static.
  12202. (windows_set_segment_register_p): Likewise.
  12203. (windows_add_thread): Adapt for WOW64 processes.
  12204. (windows_fetch_one_register): Likewise.
  12205. (windows_nat_target::fetch_registers): Likewise.
  12206. (windows_store_one_register): Likewise.
  12207. (display_selector): Likewise.
  12208. (display_selectors): Likewise.
  12209. (handle_exception): Likewise.
  12210. (windows_continue): Likewise.
  12211. (windows_nat_target::resume): Likewise.
  12212. (windows_add_all_dlls): Likewise.
  12213. (do_initial_windows_stuff): Likewise.
  12214. (windows_nat_target::attach): Likewise.
  12215. (windows_get_exec_module_filename): Likewise.
  12216. (windows_nat_target::create_inferior): Likewise.
  12217. (windows_xfer_siginfo): Likewise.
  12218. (_initialize_loadable): Initialize Wow64SuspendThread,
  12219. Wow64GetThreadContext, Wow64SetThreadContext,
  12220. Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
  12221. * windows-nat.h (windows_set_context_register_offsets):
  12222. Remove declaration.
  12223. (windows_set_segment_register_p): Likewise.
  12224. (i386_windows_segment_register_p): Add declaration.
  12225. (amd64_windows_segment_register_p): Likewise.
  12226. 2020-03-04 Luis Machado <luis.machado@linaro.org>
  12227. Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
  12228. in "info registers" for AArch64/ARM.
  12229. The change caused "info registers" to not print GPR's.
  12230. gdb/ChangeLog:
  12231. 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
  12232. * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
  12233. when reg->group is empty and reggroup is not.
  12234. 2020-03-03 Tom Tromey <tromey@adacore.com>
  12235. * dwarf2/frame.c (struct dwarf2_frame_cache)
  12236. <checked_tailcall_bottom, entry_cfa_sp_offset,
  12237. entry_cfa_sp_offset_p>: Remove members.
  12238. (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
  12239. (dwarf2_frame_prev_register): Don't call
  12240. dwarf2_tailcall_sniffer_first.
  12241. (dwarf2_append_unwinders): Don't append tailcall unwinder.
  12242. * frame-unwind.c (add_unwinder): New fuction.
  12243. (frame_unwind_init): Use it. Add tailcall unwinder.
  12244. 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
  12245. Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
  12246. * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
  12247. value should be printed as true.
  12248. 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
  12249. * windows-tdep.c (windows_solib_create_inferior_hook): New function.
  12250. (windows_init_abi): Set and use windows_so_ops.
  12251. 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
  12252. * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
  12253. when verifying if dealing with a convenience variable.
  12254. 2020-03-03 Luis Machado <luis.machado@linaro.org>
  12255. * auxv.c (default_print_auxv_entry): Add new AUXV entries.
  12256. 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
  12257. * infrun.c (gdbarch_supports_displaced_stepping): New.
  12258. (use_displaced_stepping): Break up conditions in smaller pieces.
  12259. Use gdbarch_supports_displaced_stepping.
  12260. (displaced_step_prepare_throw): Use
  12261. gdbarch_supports_displaced_stepping.
  12262. 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
  12263. * NEWS: Mention new behaviour of the history filename.
  12264. * top.c (write_history_p): Add comment.
  12265. (show_write_history_p): Add header comment, give a different
  12266. message when history writing is on, but the history filename is
  12267. empty.
  12268. (history_filename): Add comment.
  12269. (history_filename_empty): New function.
  12270. (show_history_filename): Add header comment, give a different
  12271. message when the filename is empty.
  12272. (init_history): Compare history_filename against nullptr, and only
  12273. read history if the filename is not empty.
  12274. (set_history_filename): Add header comment, and only make
  12275. non-empty filenames absolute.
  12276. (init_main): Make the filename argument to 'set history filename'
  12277. optional.
  12278. 2020-03-02 Christian Biesinger <cbiesinger@google.com>
  12279. * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
  12280. (arm_supply_vfpregset): ...this, and update to use VFP registers.
  12281. (fetch_fp_register): Update.
  12282. (fetch_fp_regs): Update.
  12283. (store_fp_register): Update.
  12284. (store_fp_regs): Update.
  12285. (arm_netbsd_nat_target::read_description): New function.
  12286. (fetch_elfcore_registers): Update.
  12287. 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
  12288. * remote.c (remote_target::remote_parse_stop_reply): Don't use the
  12289. general_thread if the stop reply is missing a thread-id.
  12290. (remote_target::process_stop_reply): Use the first non-exited
  12291. thread if the target didn't pass a thread-id.
  12292. * infrun.c (do_target_wait): Move call to
  12293. switch_to_inferior_no_thread to ....
  12294. (do_target_wait_1): ... here.
  12295. 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
  12296. * debuginfod-support.c: Include defs.h first.
  12297. 2020-02-28 Tom de Vries <tdevries@suse.de>
  12298. * symfile.c (set_initial_language): Use default language for lookup.
  12299. 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
  12300. * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
  12301. reader variable, pass `this` to read_cutu_die_from_dwo.
  12302. 2020-02-27 Aaron Merey <amerey@redhat.com>
  12303. * source.c (open_source_file): Check for nullptr when computing
  12304. srcpath.
  12305. 2020-02-27 Tom Tromey <tromey@adacore.com>
  12306. * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
  12307. member.
  12308. (dwarf2_add_field): Don't update nfields.
  12309. (dwarf2_attach_fields_to_type, process_structure_scope): Update.
  12310. 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
  12311. * gdbtypes.c (create_array_type_with_stride): Use std::abs not
  12312. abs.
  12313. 2020-02-26 Tom Tromey <tom@tromey.com>
  12314. * dwarf2/read.c (struct dwarf2_include_psymtab): New.
  12315. (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
  12316. (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
  12317. (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
  12318. per_cu_data.
  12319. 2020-02-26 Tom Tromey <tom@tromey.com>
  12320. * dwarf2/index-write.c (psym_index_map): Change type.
  12321. (add_address_entry_worker, write_one_signatured_type)
  12322. (recursively_count_psymbols, recursively_write_psymbols)
  12323. (class debug_names, psyms_seen_size, write_gdbindex)
  12324. (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
  12325. 2020-02-26 Aaron Merey <amerey@redhat.com>
  12326. * Makefile.in: Handle optional debuginfod support.
  12327. * NEWS: Update.
  12328. * README: Add --with-debuginfod summary.
  12329. * config.in: Regenerate.
  12330. * configure: Regenerate.
  12331. * configure.ac: Handle optional debuginfod support.
  12332. * debuginfod-support.c: debuginfod helper functions.
  12333. * debuginfod-support.h: Ditto.
  12334. * doc/gdb.texinfo: Add --with-debuginfod to configure options
  12335. summary.
  12336. * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
  12337. when a dwz file cannot be found.
  12338. * elfread.c (elf_symfile_read): Query debuginfod servers when a
  12339. debuginfo file cannot be found.
  12340. * source.c (open_source_file): Query debuginfod servers when a
  12341. source file cannot be found.
  12342. * top.c (print_gdb_configuration): Include
  12343. --{with,without}-debuginfod in the output.
  12344. 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
  12345. * thread.c (thr_try_catch_cmd): Print thread name.
  12346. 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
  12347. * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
  12348. dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
  12349. dwarf2_fetch_die_type_sect_off): Move to...
  12350. * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
  12351. dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
  12352. dwarf2_fetch_die_type_sect_off): ... here.
  12353. * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
  12354. dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
  12355. dwarf2_fetch_die_type_sect_off): Move doc to header file.
  12356. 2020-02-26 Tom de Vries <tdevries@suse.de>
  12357. PR gdb/25603
  12358. * symfile.c (set_initial_language): Exit-early if
  12359. language_mode == language_mode_manual.
  12360. 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
  12361. * dwarf2/loc.h (dwarf2_read_addr_index): Move...
  12362. * dwarf2/read.h (dwarf2_read_addr_index): ... here.
  12363. * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
  12364. 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
  12365. * gdbtypes.c (create_array_type_with_stride): Handle negative
  12366. array strides.
  12367. * valarith.c (value_subscripted_rvalue): Likewise.
  12368. 2020-02-25 Luis Machado <luis.machado@linaro.org>
  12369. * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
  12370. 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
  12371. * loc.h (dwarf2_get_die_type): Move to...
  12372. * read.h (dwarf2_get_die_type): ... here.
  12373. * read.c (dwarf2_get_die_type): Move doc to header.
  12374. 2020-02-25 Joel Brobecker <brobecker@adacore.com>
  12375. * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
  12376. 'gnulib/Makefile.in' to the list.
  12377. 2020-02-24 Tom Tromey <tom@tromey.com>
  12378. * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
  12379. Remove.
  12380. * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
  12381. XOBNEWVEC.
  12382. 2020-02-24 Tom Tromey <tom@tromey.com>
  12383. * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
  12384. New method.
  12385. * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
  12386. (dw2_do_instantiate_symtab, dw2_get_file_names)
  12387. (build_type_psymtab_dependencies, load_full_type_unit): Update.
  12388. 2020-02-24 Tom Tromey <tom@tromey.com>
  12389. * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
  12390. make_scoped_restore.
  12391. (dwarf2_psymtab::read_symtab): Don't clear
  12392. reading_partial_symbols.
  12393. 2020-02-24 Tom de Vries <tdevries@suse.de>
  12394. PR gdb/25592
  12395. * stack.c (iterate_over_block_locals): Handle LOC_CONST.
  12396. 2020-02-24 Tom de Vries <tdevries@suse.de>
  12397. * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
  12398. commands layout next/prev/regs.
  12399. 2020-02-22 Tom Tromey <tom@tromey.com>
  12400. * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
  12401. * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
  12402. 2020-02-22 Tom Tromey <tom@tromey.com>
  12403. * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
  12404. 2020-02-22 Tom Tromey <tom@tromey.com>
  12405. * tui/tui-win.c (_initialize_tui_win): Add usage text.
  12406. * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
  12407. * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
  12408. * tui/tui.c (_initialize_tui): Add usage text.
  12409. 2020-02-22 Tom Tromey <tom@tromey.com>
  12410. * tui/tui-win.c (tui_set_focus_command)
  12411. (tui_set_win_height_command): Use error_no_arg.
  12412. (_initialize_tui_win): Update help text.
  12413. (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
  12414. 2020-02-22 Tom Tromey <tom@tromey.com>
  12415. * tui/tui-layout.c (extract_display_start_addr): Rewrite.
  12416. * tui/tui-disasm.h (struct tui_disasm_window)
  12417. <display_start_addr>: Declare.
  12418. * tui/tui-source.h (struct tui_source_window)
  12419. <display_start_addr>: Declare.
  12420. * tui/tui-winsource.h (struct tui_source_window_base)
  12421. <show_source_line, display_start_addr>: New methods.
  12422. <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
  12423. Rename and move to protected section.
  12424. * tui/tui-winsource.c (tui_source_window_base::update_source_window)
  12425. (tui_source_window_base::do_erase_source_content): Update.
  12426. (tui_source_window_base::show_source_line): Now a method.
  12427. (tui_source_window_base::show_source_content)
  12428. (tui_source_window_base::tui_source_window_base)
  12429. (tui_source_window_base::rerender)
  12430. (tui_source_window_base::refill)
  12431. (tui_source_window_base::do_scroll_horizontal)
  12432. (tui_source_window_base::set_is_exec_point_at)
  12433. (tui_source_window_base::update_breakpoint_info)
  12434. (tui_source_window_base::update_exec_info): Update.
  12435. * tui/tui-source.c (tui_source_window::set_contents)
  12436. (tui_source_window::showing_source_p)
  12437. (tui_source_window::do_scroll_vertical)
  12438. (tui_source_window::location_matches_p)
  12439. (tui_source_window::line_is_displayed): Update.
  12440. (tui_source_window::display_start_addr): New method.
  12441. * tui/tui-disasm.c (tui_disasm_window::set_contents)
  12442. (tui_disasm_window::do_scroll_vertical)
  12443. (tui_disasm_window::location_matches_p): Update.
  12444. (tui_disasm_window::display_start_addr): New method.
  12445. 2020-02-22 Tom Tromey <tom@tromey.com>
  12446. * NEWS: Add entry for gdb.register_window_type.
  12447. * tui/tui-layout.h (window_factory): New typedef.
  12448. (tui_register_window): Declare.
  12449. * tui/tui-layout.c (saved_tui_windows): New global.
  12450. (tui_apply_current_layout): Use it.
  12451. (tui_register_window): New function.
  12452. * python/python.c (do_start_initialization): Call
  12453. gdbpy_initialize_tui.
  12454. (python_GdbMethods): Add "register_window_type" function.
  12455. * python/python-internal.h (gdbpy_register_tui_window)
  12456. (gdbpy_initialize_tui): Declare.
  12457. * python/py-tui.c: New file.
  12458. * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
  12459. 2020-02-22 Tom Tromey <tom@tromey.com>
  12460. * tui/tui-io.c (do_tui_putc): Don't omit annotations.
  12461. 2020-02-22 Tom Tromey <tom@tromey.com>
  12462. * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
  12463. * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
  12464. * tui/tui-data.c (tui_set_win_with_focus): Remove.
  12465. (tui_set_win_focus_to): Move from tui-win.c.
  12466. 2020-02-22 Tom Tromey <tom@tromey.com>
  12467. * tui/tui-layout.c (make_standard_window, get_locator_window): New
  12468. functions.
  12469. (known_window_types): New global.
  12470. (tui_get_window_by_name): Reimplement.
  12471. (initialize_known_windows): New function.
  12472. (validate_window_name): Rewrite.
  12473. (_initialize_tui_layout): Call initialize_known_windows.
  12474. 2020-02-22 Tom Tromey <tom@tromey.com>
  12475. * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
  12476. Remove constants.
  12477. * tui/tui-winsource.h (struct tui_source_window_base)
  12478. <tui_source_window_base>: Remove parameter.
  12479. * tui/tui-winsource.c
  12480. (tui_source_window_base::tui_source_window_base): Remove
  12481. parameter.
  12482. (tui_source_window_base::refill): Update.
  12483. * tui/tui-stack.h (struct tui_locator_window)
  12484. <tui_locator_window>: Update.
  12485. * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
  12486. Default the constructor.
  12487. * tui/tui-regs.h (struct tui_data_item_window)
  12488. <tui_data_item_window>: Default the constructor.
  12489. (struct tui_data_window) <tui_data_window>: Likewise.
  12490. * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
  12491. Default the constructor.
  12492. * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
  12493. Default the constructor.
  12494. <type>: Remove.
  12495. (struct tui_win_info) <tui_win_info>: Default the constructor.
  12496. * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
  12497. * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
  12498. Default the constructor.
  12499. 2020-02-22 Tom Tromey <tom@tromey.com>
  12500. * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
  12501. * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
  12502. * tui/tui-win.c (tui_resize_all): Don't call
  12503. tui_delete_invisible_windows.
  12504. * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
  12505. done.
  12506. (tui_set_layout): Update.
  12507. (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
  12508. * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
  12509. * tui/tui-data.c (tui_delete_invisible_windows): Remove.
  12510. 2020-02-22 Tom Tromey <tom@tromey.com>
  12511. * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
  12512. correctly.
  12513. 2020-02-22 Tom Tromey <tom@tromey.com>
  12514. * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
  12515. 2020-02-22 Tom Tromey <tom@tromey.com>
  12516. * tui/tui-winsource.h (struct tui_source_window_iterator)
  12517. <inner_iterator>: New etytypedef.
  12518. <tui_source_window_iterator>: Take "end" parameter.
  12519. <tui_source_window_iterator>: Take iterator.
  12520. <operator*, advance>: Update.
  12521. <m_iter>: Change type.
  12522. <m_end>: New field.
  12523. (struct tui_source_windows) <begin, end>: Update.
  12524. * tui/tui-layout.c (tui_windows): New global.
  12525. (tui_apply_current_layout): Clear tui_windows.
  12526. (tui_layout_window::apply): Update tui_windows.
  12527. * tui/tui-data.h (tui_windows): Declare.
  12528. (all_tui_windows): Now inline function.
  12529. (class tui_window_iterator, struct all_tui_windows): Remove.
  12530. 2020-02-22 Tom Tromey <tom@tromey.com>
  12531. PR tui/17850:
  12532. * tui/tui-win.c (tui_gen_win_info::max_width): New method.
  12533. * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
  12534. "height" argument.
  12535. (class tui_layout_window) <get_sizes>: Likewise.
  12536. (class tui_layout_split) <tui_layout_split>: Add "vertical"
  12537. argument.
  12538. <get_sizes>: Add "height" argument.
  12539. <m_vertical>: New field.
  12540. * tui/tui-layout.c (tui_layout_split::clone): Update.
  12541. (tui_layout_split::get_sizes): Add "height" argument.
  12542. (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
  12543. (tui_new_layout_command): Parse "-horizontal".
  12544. (_initialize_tui_layout): Update help string.
  12545. (tui_layout_split::specification): Add "-horizontal" when needed.
  12546. * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
  12547. argument.
  12548. * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
  12549. New methods.
  12550. 2020-02-22 Tom Tromey <tom@tromey.com>
  12551. * tui/tui-layout.h (enum tui_adjust_result): New.
  12552. (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
  12553. (class tui_layout_window) <adjust_size>: Return
  12554. tui_adjust_result. Rewrite.
  12555. (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
  12556. * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
  12557. 2020-02-22 Tom Tromey <tom@tromey.com>
  12558. * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
  12559. parameter and return types.
  12560. (class tui_layout_base) <specification>: Add "depth".
  12561. (class tui_layout_window) <specification>: Add "depth".
  12562. (class tui_layout_split) <specification>: Add "depth".
  12563. * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
  12564. and return types.
  12565. (tui_new_layout_command): Parse sub-layouts.
  12566. (_initialize_tui_layout): Update help string.
  12567. (tui_layout_window::specification): Add "depth".
  12568. (add_layout_command): Update.
  12569. 2020-02-22 Tom Tromey <tom@tromey.com>
  12570. * NEWS: Add "tui new-layout" item.
  12571. * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
  12572. Add new-layout command to help text.
  12573. (validate_window_name): New function.
  12574. (tui_new_layout_command): New function.
  12575. (_initialize_tui_layout): Register "new-layout".
  12576. (tui_layout_window::specification): New method.
  12577. (tui_layout_window::specification): New method.
  12578. * tui/tui-layout.h (class tui_layout_base) <specification>: New
  12579. method.
  12580. (class tui_layout_window) <specification>: New method.
  12581. (class tui_layout_split) <specification>: New method.
  12582. 2020-02-22 Tom Tromey <tom@tromey.com>
  12583. * tui/tui.c (tui_enable): Call tui_set_initial_layout.
  12584. * tui/tui-win.c (window_name_completer): Update comment.
  12585. * tui/tui-layout.h (class tui_layout_base) <replace_window>:
  12586. Declare method.
  12587. (class tui_layout_window) <replace_window>: Likewise.
  12588. (class tui_layout_split) <replace_window>: Likewise.
  12589. (tui_set_layout): Don't declare.
  12590. (tui_set_initial_layout): Declare function.
  12591. * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
  12592. (asm_regs_layout): New globals.
  12593. (tui_current_layout, show_layout): Remove.
  12594. (tui_set_layout, tui_add_win_to_layout): Rewrite.
  12595. (find_layout, tui_apply_layout): New function.
  12596. (layout_completer): Remove.
  12597. (tui_next_layout): Reimplement.
  12598. (tui_next_layout_command): New function.
  12599. (tui_set_initial_layout, tui_prev_layout_command): New functions.
  12600. (tui_regs_layout): Reimplement.
  12601. (tui_regs_layout_command): New function.
  12602. (extract_display_start_addr): Rewrite.
  12603. (next_layout, prev_layout): Remove.
  12604. (tui_layout_window::replace_window): New method.
  12605. (tui_layout_split::replace_window): New method.
  12606. (destroy_layout): New function.
  12607. (layout_list): New global.
  12608. (add_layout_command): New function.
  12609. (initialize_layouts): Update.
  12610. (tui_layout_command): New function.
  12611. (_initialize_tui_layout): Install "layout" commands.
  12612. * tui/tui-data.h (enum tui_layout_type): Remove.
  12613. (tui_current_layout): Don't declare.
  12614. 2020-02-22 Tom Tromey <tom@tromey.com>
  12615. * tui/tui-regs.c (tui_reg_layout): Remove.
  12616. (tui_reg_command): Use tui_regs_layout.
  12617. * tui/tui-layout.h (tui_reg_command): Declare.
  12618. * tui/tui-layout.c (tui_reg_command): New function.
  12619. 2020-02-22 Tom Tromey <tom@tromey.com>
  12620. * tui/tui.c (tui_rl_delete_other_windows): Call
  12621. tui_remove_some_windows.
  12622. * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
  12623. Declare method.
  12624. (class tui_layout_window) <remove_windows>: New method.
  12625. (class tui_layout_split) <remove_windows>: Declare.
  12626. (tui_remove_some_windows): Declare.
  12627. * tui/tui-layout.c (tui_remove_some_windows): New function.
  12628. (tui_layout_split::remove_windows): New method.
  12629. 2020-02-22 Tom Tromey <tom@tromey.com>
  12630. * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
  12631. * tui/tui-layout.h (tui_next_layout): Declare.
  12632. * tui/tui-layout.c (tui_next_layout): New function.
  12633. 2020-02-22 Tom Tromey <tom@tromey.com>
  12634. * tui/tui-regs.c (tui_data_window::display_registers_from): Use
  12635. correct coordinates.
  12636. 2020-02-22 Tom Tromey <tom@tromey.com>
  12637. * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
  12638. * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
  12639. DATA_WIN case.
  12640. 2020-02-22 Tom Tromey <tom@tromey.com>
  12641. * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
  12642. TUI_DISASM_WIN, not tui_win_list.
  12643. 2020-02-22 Tom Tromey <tom@tromey.com>
  12644. * valprint.c (generic_val_print_enum_1)
  12645. (val_print_type_code_flags): Style member names.
  12646. * rust-lang.c (val_print_struct, rust_print_enum)
  12647. (rust_print_struct_def, rust_internal_print_type): Style member
  12648. names.
  12649. * p-valprint.c (pascal_object_print_value_fields): Style member
  12650. names. Only call fprintf_symbol_filtered for static members.
  12651. * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
  12652. * f-valprint.c (f_val_print): Style member names.
  12653. * f-typeprint.c (f_type_print_base): Style member names.
  12654. * cp-valprint.c (cp_print_value_fields): Style member names. Only
  12655. call fprintf_symbol_filtered for static members.
  12656. (cp_print_class_member): Style member names.
  12657. * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
  12658. member names.
  12659. * ada-valprint.c (ada_print_scalar): Style enum names.
  12660. (ada_val_print_enum): Likewise.
  12661. * ada-typeprint.c (print_enum_type): Style enum names.
  12662. 2020-02-21 Tom Tromey <tom@tromey.com>
  12663. * psympriv.h (struct partial_symtab): Update comment.
  12664. 2020-02-21 Tom Tromey <tromey@adacore.com>
  12665. * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
  12666. type is CORE_ADDR.
  12667. 2020-02-21 Tom de Vries <tdevries@suse.de>
  12668. PR gdb/25534
  12669. * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
  12670. if dependencies[i]->user != NULL.
  12671. 2020-02-21 Ali Tamur <tamur@google.com>
  12672. * dwarf2/read.c (dwarf2_name): Add null check.
  12673. 2020-02-20 Tom Tromey <tom@tromey.com>
  12674. * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
  12675. ">=", in binary search.
  12676. (dwarf2_find_containing_comp_unit): New overload.
  12677. (run_test): New self-test.
  12678. (_initialize_dwarf2_read): Register new test.
  12679. 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
  12680. * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
  12681. * riscv-tdep.h: Likewise.
  12682. * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
  12683. rv32-only CSR.
  12684. * features/riscv/64bit-csr.xml: Regenerated.
  12685. 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
  12686. Tom Tromey <tom@tromey.com>
  12687. * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
  12688. of 'fputc_unfiltered'.
  12689. (putchar_unfiltered): Call 'fputc_unfiltered'.
  12690. (fputc_unfiltered): Call 'fputs_unfiltered'.
  12691. 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
  12692. * config.in: Regenerate.
  12693. * configure: Regenerate.
  12694. * configure.ac: Add --with-python-libdir option.
  12695. * main.c: Use WITH_PYTHON_LIBDIR.
  12696. 2020-02-19 Tom Tromey <tom@tromey.com>
  12697. * symtab.c (general_symbol_info::compute_and_set_names): Use
  12698. obstack_strndup. Simplify call to symbol_set_demangled_name.
  12699. 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
  12700. * dwarf2/read.c (allocate_signatured_type_table,
  12701. allocate_dwo_unit_table, allocate_type_unit_groups_table,
  12702. allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
  12703. Remove objfile parameter, update all callers.
  12704. 2020-02-19 Doug Evans <dje@google.com>
  12705. PR rust/25535
  12706. * rust-lang.c (rust_print_enum): Apply embedded_offset to
  12707. rust_enum_variant calculation.
  12708. 2020-02-19 Tom Tromey <tromey@adacore.com>
  12709. * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
  12710. 2020-02-19 Tom Tromey <tromey@adacore.com>
  12711. * ada-lang.c (cache_symbol): Use obstack_strdup.
  12712. 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
  12713. * configure: Regenerate.
  12714. 2020-02-19 Tom Tromey <tromey@adacore.com>
  12715. * python/python.c (do_start_initialization): Use XNEWVEC. Remove
  12716. NULL check.
  12717. 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
  12718. * NEWS: Mention RISC-V GNU/Linux GDBserver support.
  12719. 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
  12720. * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
  12721. if GDBSERVER is not defined.
  12722. (riscv_tdesc_cache): Likewise, also store const target_desc.
  12723. (STATIC_IN_GDB): Define.
  12724. (riscv_create_target_description): Update declaration with
  12725. STATIC_IN_GDB.
  12726. (riscv_lookup_target_description): New function, only define if
  12727. GDBSERVER is not defined.
  12728. * arch/riscv.h (riscv_create_target_description): Declare only
  12729. when GDBSERVER is defined.
  12730. (riscv_lookup_target_description): New declaration when GDBSERVER
  12731. is not defined.
  12732. * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
  12733. (riscv_linux_read_features): ...this, and return
  12734. riscv_gdbarch_features instead of target_desc.
  12735. * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
  12736. (riscv_linux_read_description): Rename to...
  12737. (riscv_linux_read_features): ...this.
  12738. * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
  12739. Update to use riscv_gdbarch_features and
  12740. riscv_lookup_target_description.
  12741. * riscv-tdep.c (riscv_find_default_target_description): Use
  12742. riscv_lookup_target_description instead of
  12743. riscv_create_target_description.
  12744. 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
  12745. * valprint.c (generic_val_print_enum_1): When printing a flag
  12746. enum with value 0 and there is no enumerator with value 0, print
  12747. just "0" instead of "(unknown: 0x0)".
  12748. 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
  12749. * valprint.c (generic_val_print_enum_1): Print unknown part of
  12750. flag enum in hex.
  12751. 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
  12752. * dwarf2/read.c (update_enumeration_type_from_children): Allow
  12753. flag enums to contain duplicate enumerators.
  12754. * valprint.c (generic_val_print_enum_1): Update comment.
  12755. 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
  12756. * dwarf2/read.c: Include "count-one-bits.h".
  12757. (update_enumeration_type_from_children): If an enumerator has
  12758. multiple bits set, don't treat the enumeration as a "flag enum".
  12759. * valprint.c (generic_val_print_enum_1): Assert that enumerators
  12760. of flag enums have 0 or 1 bit set.
  12761. 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
  12762. * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
  12763. conversion.
  12764. * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
  12765. * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
  12766. * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
  12767. * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
  12768. * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
  12769. 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
  12770. * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
  12771. 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
  12772. * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
  12773. displaced_step_closure_up.
  12774. * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
  12775. (struct displaced_step_closure_up):
  12776. * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
  12777. * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
  12778. * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
  12779. Likewise.
  12780. * gdbarch.sh (displaced_step_copy_insn): Likewise.
  12781. * gdbarch.c, gdbarch.h: Re-generate.
  12782. * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
  12783. displaced_step_closure_up.
  12784. * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
  12785. * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
  12786. * infrun.h (displaced_step_closure_up): New type alias.
  12787. (struct displaced_step_inferior_state) <step_closure>: Change
  12788. type to displaced_step_closure_up.
  12789. * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
  12790. displaced_step_closure_up.
  12791. * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
  12792. 2020-02-14 Tom Tromey <tom@tromey.com>
  12793. * minidebug.c (gnu_debug_key): New global.
  12794. (find_separate_debug_file_in_section): Use it.
  12795. 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
  12796. * gdbarch.sh (displaced_step_copy_insn): Change return type to an
  12797. std::unique_ptr.
  12798. * gdbarch.c: Re-generate.
  12799. * gdbarch.h: Re-generate.
  12800. * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
  12801. change.
  12802. * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
  12803. type to std::unique_ptr.
  12804. * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
  12805. * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
  12806. * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
  12807. * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
  12808. * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
  12809. * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
  12810. * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
  12811. * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
  12812. * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
  12813. 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
  12814. * infrun.c (get_displaced_step_closure_by_addr): Adjust to
  12815. std::unique_ptr.
  12816. (displaced_step_clear): Rename to...
  12817. (displaced_step_reset): ... this. Just call displaced->reset ().
  12818. (displaced_step_clear_cleanup): Rename to...
  12819. (displaced_step_reset_cleanup): ... this.
  12820. (displaced_step_prepare_throw): Adjust to std::unique_ptr.
  12821. (displaced_step_fixup): Likewise.
  12822. (resume_1): Likewise.
  12823. (handle_inferior_event): Restore child's memory before calling
  12824. displaced_step_fixup on the parent.
  12825. * infrun.h (displaced_step_inferior_state) <reset>: Adjust
  12826. to std::unique_ptr.
  12827. <step_closure>: Change type to std::unique_ptr.
  12828. 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
  12829. * arm-tdep.c: Include count-one-bits.h.
  12830. (cleanup_block_store_pc): Use count_one_bits.
  12831. (cleanup_block_load_pc): Use count_one_bits.
  12832. (arm_copy_block_xfer): Use count_one_bits.
  12833. (thumb2_copy_block_xfer): Use count_one_bits.
  12834. (thumb_copy_pop_pc_16bit): Use count_one_bits.
  12835. * arch/arm-get-next-pcs.c: Include count-one-bits.h.
  12836. (thumb_get_next_pcs_raw): Use count_one_bits.
  12837. (arm_get_next_pcs_raw): Use count_one_bits_l.
  12838. * arch/arm.c (bitcount): Remove.
  12839. * arch/arm.h (bitcount): Remove.
  12840. 2020-02-14 Tom Tromey <tromey@adacore.com>
  12841. * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
  12842. Update.
  12843. * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
  12844. * dwarf2/loc.c (call_site_find_chain_1): Return
  12845. unique_xmalloc_ptr.
  12846. (call_site_find_chain): Likewise.
  12847. 2020-02-14 Richard Biener <rguenther@suse.de>
  12848. * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
  12849. on expression with division operators.
  12850. 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
  12851. * MAINTAINERS (Write After Approval): Adding myself.
  12852. 2020-02-12 Tom Tromey <tom@tromey.com>
  12853. * event-loop.c (event_data, gdb_event, event_handler_func):
  12854. Remove.
  12855. 2020-02-12 Tom Tromey <tom@tromey.com>
  12856. * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
  12857. (dwarf2_frame_objfile_data): Add comment.
  12858. (find_comp_unit, set_comp_unit): New functions.
  12859. (dwarf2_frame_find_fde): Use find_comp_unit.
  12860. (dwarf2_build_frame_info): Use set_comp_unit.
  12861. 2020-02-12 Tom Tromey <tom@tromey.com>
  12862. * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
  12863. (comp_unit): Don't initialize objfile.
  12864. (execute_cfa_program): Add text_offset parameter.
  12865. (execute_cfa_program_test, dwarf2_fetch_cfa_info)
  12866. (dwarf2_frame_cache): Update.
  12867. (dwarf2_build_frame_info): Don't set "objfile" member.
  12868. 2020-02-12 Tom Tromey <tom@tromey.com>
  12869. * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
  12870. (decode_frame_entry): Likewise.
  12871. (dwarf2_build_frame_info): Update.
  12872. 2020-02-12 Tom Tromey <tom@tromey.com>
  12873. * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
  12874. (decode_frame_entry_1): Use the comp_unit obstack.
  12875. 2020-02-12 Tom Tromey <tom@tromey.com>
  12876. * dwarf2/frame.c (struct comp_unit): Add initializers and
  12877. constructor.
  12878. (dwarf2_frame_objfile_data): Store a comp_unit.
  12879. (dwarf2_frame_find_fde): Update.
  12880. (dwarf2_build_frame_info): Use "new".
  12881. 2020-02-12 Tom Tromey <tom@tromey.com>
  12882. * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
  12883. (dwarf2_fde_table): Typedef for std::vector.
  12884. (dwarf2_frame_objfile_data): Remove the deleter. Now static.
  12885. (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
  12886. (decode_frame_entry): Update.
  12887. (dwarf2_build_frame_info): Use "new".
  12888. 2020-02-12 Christian Biesinger <cbiesinger@google.com>
  12889. * arm-tdep.c (arm_gdbarch_init): Update.
  12890. * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
  12891. have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
  12892. have_neon, is_m>: Change to bool.
  12893. 2020-02-12 Christian Biesinger <cbiesinger@google.com>
  12894. * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
  12895. 2020-02-12 Tom Tromey <tom@tromey.com>
  12896. * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
  12897. 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
  12898. * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
  12899. (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
  12900. 2020-02-11 Tom Tromey <tom@tromey.com>
  12901. * psymtab.h: Update comment.
  12902. 2020-02-11 Tom Tromey <tom@tromey.com>
  12903. * gdb_obstack.h (struct auto_obstack): Use
  12904. DISABLE_COPY_AND_ASSIGN.
  12905. 2020-02-11 Tom Tromey <tom@tromey.com>
  12906. * dwarf2/frame.h (struct objfile): Don't forward declare.
  12907. 2020-02-11 Christian Biesinger <cbiesinger@google.com>
  12908. * cris-tdep.c (cris_supply_gregset): Change signature to match
  12909. what struct regset expects.
  12910. (cris_regset): New struct.
  12911. (fetch_core_registers): Remove.
  12912. (cris_iterate_over_regset_sections): New function.
  12913. (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
  12914. (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
  12915. 2020-02-11 Christian Biesinger <cbiesinger@google.com>
  12916. * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
  12917. registers.
  12918. 2020-02-11 Christian Biesinger <cbiesinger@google.com>
  12919. * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
  12920. 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
  12921. * configure: Re-generate.
  12922. 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
  12923. * configure: Re-generate.
  12924. 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
  12925. * acinclude: Update warning.m4 path.
  12926. * warning.m4: Move to gdbsupport.
  12927. 2020-02-11 Tom Tromey <tromey@adacore.com>
  12928. * remote.c (remote_console_output): Update.
  12929. * printcmd.c (printf_command): Update.
  12930. * event-loop.c (gdb_wait_for_event): Update.
  12931. * linux-nat.c (sigchld_handler): Update.
  12932. * remote-sim.c (gdb_os_write_stdout): Update.
  12933. (gdb_os_flush_stdout): Update.
  12934. (gdb_os_flush_stderr): Update.
  12935. (gdb_os_write_stderr): Update.
  12936. * exceptions.c (print_exception): Update.
  12937. * remote-fileio.c (remote_fileio_func_read): Update.
  12938. (remote_fileio_func_write): Update.
  12939. * tui/tui.c (tui_enable): Update.
  12940. * tui/tui-interp.c (tui_interp::init): Update.
  12941. * utils.c (init_page_info): Update.
  12942. (putchar_unfiltered, fputc_unfiltered): Update.
  12943. (gdb_flush): Update.
  12944. (emit_style_escape): Update.
  12945. (flush_wrap_buffer, fputs_maybe_filtered): Update.
  12946. * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
  12947. (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
  12948. (stderr_file::write): Update.
  12949. (stderr_file::puts): Update.
  12950. * ui-file.h (ui_file_isatty, ui_file_write)
  12951. (ui_file_write_async_safe, ui_file_read, ui_file_flush)
  12952. (ui_file_puts): Don't declare.
  12953. 2020-02-10 Tom de Vries <tdevries@suse.de>
  12954. * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
  12955. sentinel to char *.
  12956. 2020-02-09 Tom de Vries <tdevries@suse.de>
  12957. * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
  12958. filename if it matches "<artificial>".
  12959. 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
  12960. * windows-tdep.c (struct enum_value_name): New struct.
  12961. (create_enum): New function.
  12962. (windows_get_siginfo_type): Create and use enum types.
  12963. 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
  12964. * NEWS: Mention $_siginfo support for Windows.
  12965. * windows-nat.c (handle_exception): Set siginfo_er.
  12966. (windows_nat_target::mourn_inferior): Reset siginfo_er.
  12967. (windows_xfer_siginfo): New function.
  12968. (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
  12969. * windows-tdep.c (struct windows_gdbarch_data): New struct.
  12970. (init_windows_gdbarch_data): New function.
  12971. (get_windows_gdbarch_data): New function.
  12972. (windows_get_siginfo_type): New function.
  12973. (windows_init_abi): Register windows_get_siginfo_type.
  12974. (_initialize_windows_tdep): Register init_windows_gdbarch_data.
  12975. 2020-02-08 Tom Tromey <tom@tromey.com>
  12976. * dwarf2/read.c (class cutu_reader) <cutu_reader,
  12977. init_tu_and_read_dwo_dies>: Remove "keep" parameter.
  12978. <keep>: Declare method.
  12979. <m_keep>: Remove member.
  12980. <~cutu_reader>: Remove.
  12981. (cutu_reader::init_tu_and_read_dwo_dies): Update.
  12982. (cutu_reader::cutu_reader): Update.
  12983. (cutu_reader::keep): Rename from ~cutu_reader.
  12984. (process_psymtab_comp_unit, build_type_psymtabs_1)
  12985. (process_skeletonless_type_unit, load_partial_comp_unit)
  12986. (load_full_comp_unit, dwarf2_read_addr_index)
  12987. (read_signatured_type): Update.
  12988. 2020-02-08 Tom Tromey <tom@tromey.com>
  12989. * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
  12990. "want_partial_unit" parameter.
  12991. (process_psymtab_comp_unit): Change want_partial_unit to bool.
  12992. Inline check for DW_TAG_partial_unit.
  12993. (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
  12994. 2020-02-08 Tom Tromey <tom@tromey.com>
  12995. * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
  12996. read.c.
  12997. * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
  12998. read.c.
  12999. 2020-02-08 Tom Tromey <tom@tromey.com>
  13000. * dwarf2/read.c (read_address): Move to comp-unit.c.
  13001. (dwarf2_rnglists_process, dwarf2_ranges_process)
  13002. (read_attribute_value, dwarf_decode_lines_1)
  13003. (var_decode_location, decode_locdesc): Update.
  13004. * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
  13005. read.c. Remove "cu" parameter.
  13006. * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
  13007. method.
  13008. 2020-02-08 Tom Tromey <tom@tromey.com>
  13009. * dwarf2/read.c (read_attribute_value, read_indirect_string)
  13010. (read_indirect_line_string): Update.
  13011. * dwarf2/comp-unit.c (read_offset): Remove.
  13012. (read_comp_unit_head): Update.
  13013. * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
  13014. method.
  13015. (read_offset): Don't declare.
  13016. 2020-02-08 Tom Tromey <tom@tromey.com>
  13017. * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
  13018. * dwarf2/read.c (struct comp_unit_head): Move to
  13019. dwarf2/comp-unit.h.
  13020. (enum class rcuh_kind): Move to comp-unit.h.
  13021. (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
  13022. (read_comp_unit_head, error_check_comp_unit_head)
  13023. (read_and_check_comp_unit_head): Move to comp-unit.c.
  13024. (read_offset, dwarf_unit_type_name): Likewise.
  13025. (create_debug_type_hash_table, read_cutu_die_from_dwo)
  13026. (cutu_reader::cutu_reader, read_call_site_scope)
  13027. (find_partial_die, follow_die_offset): Update.
  13028. * dwarf2/comp-unit.h: New file, from dwarf2read.c.
  13029. 2020-02-08 Tom Tromey <tom@tromey.com>
  13030. * dwarf2/read.c (read_offset_1): Move to leb.c.
  13031. (read_abbrev_offset, read_offset, dwarf_decode_line_header)
  13032. (dwarf_decode_macro_bytes): Update.
  13033. * dwarf2/leb.c (read_offset): Rename; move from read.c.
  13034. * dwarf2/leb.h (read_offset): Declare.
  13035. 2020-02-08 Tom Tromey <tom@tromey.com>
  13036. * dwarf2/read.c (dwarf2_section_size): Remove.
  13037. (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
  13038. Update.
  13039. * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
  13040. 2020-02-08 Tom Tromey <tom@tromey.com>
  13041. * dwarf2/read.c (read_initial_length): Move to leb.c.
  13042. * dwarf2/leb.h (read_initial_length): Declare.
  13043. * dwarf2/leb.c (read_initial_length): Move from read.c. Add
  13044. handle_nonstd parameter.
  13045. * dwarf2/frame.c (read_initial_length): Remove.
  13046. (decode_frame_entry_1): Update.
  13047. 2020-02-08 Tom Tromey <tom@tromey.com>
  13048. * dwarf2/loc.c (dwarf2_find_location_expression)
  13049. (dwarf_evaluate_loc_desc::get_tls_address)
  13050. (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
  13051. (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
  13052. (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
  13053. (dwarf2_compile_property_to_c)
  13054. (dwarf2_loc_desc_get_symbol_read_needs)
  13055. (dwarf2_compile_expr_to_ax, locexpr_describe_location)
  13056. (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
  13057. (loclist_describe_location, loclist_tracepoint_var_ref)
  13058. (loclist_generate_c_location): Update.
  13059. * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
  13060. * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
  13061. (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
  13062. (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
  13063. * dwarf2/read.c (dwarf2_per_cu_data::objfile)
  13064. (dwarf2_per_cu_data::addr_size)
  13065. (dwarf2_per_cu_data::ref_addr_size)
  13066. (dwarf2_per_cu_data::text_offset)
  13067. (dwarf2_per_cu_data::addr_type): Now methods.
  13068. (per_cu_header_read_in): Make per_cu "const".
  13069. (dwarf2_version): Remove.
  13070. (dwarf2_per_cu_data::int_type): Now a method.
  13071. (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
  13072. (set_die_type, read_array_type, read_subrange_index_type)
  13073. (read_tag_string_type, read_subrange_type): Update.
  13074. * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
  13075. offset_size, ref_addr_size, text_offset, addr_type, version,
  13076. objfile, int_type, addr_sized_int_type>: Declare methods.
  13077. 2020-02-08 Tom Tromey <tom@tromey.com>
  13078. * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
  13079. Move earlier.
  13080. 2020-02-08 Tom Tromey <tom@tromey.com>
  13081. * dwarf2/read.h (dwarf_line_debug): Declare.
  13082. * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
  13083. * dwarf2/read.c: Move line_header code to new files.
  13084. (dwarf_line_debug): No longer static.
  13085. * dwarf2/line-header.c: New file.
  13086. * dwarf2/line-header.h: New file.
  13087. 2020-02-08 Tom Tromey <tom@tromey.com>
  13088. * dwarf2/read.c (struct line_header) <file_full_name,
  13089. file_file_name>: Return unique_xmalloc_ptr.
  13090. (line_header::file_file_name): Update.
  13091. (line_header::file_full_name): Update.
  13092. (dw2_get_file_names_reader): Update.
  13093. (macro_start_file): Update.
  13094. 2020-02-08 Tom Tromey <tom@tromey.com>
  13095. * dwarf2/read.c (struct line_header) <file_full_name,
  13096. file_file_name>: Declare methods.
  13097. (dw2_get_file_names_reader): Update.
  13098. (file_file_name): Now a method.
  13099. (file_full_name): Likewise.
  13100. (macro_start_file): Update.
  13101. 2020-02-08 Tom Tromey <tom@tromey.com>
  13102. * dwarf2/read.c (dwarf_always_disassemble)
  13103. (show_dwarf_always_disassemble): Move to loc.c.
  13104. (_initialize_dwarf2_read): Move "always-disassemble" registration
  13105. to loc.c.
  13106. * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
  13107. * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
  13108. static.
  13109. (show_dwarf_always_disassemble): Move from read.c.
  13110. (_initialize_dwarf2loc): Move always-disassemble from read.c.
  13111. 2020-02-08 Tom Tromey <tom@tromey.com>
  13112. * dwarf2/read.c (~dwarf2_per_objfile): Update.
  13113. (create_quick_file_names_table): Return htab_up.
  13114. (dw2_get_file_names_reader, dw2_forget_cached_source_info):
  13115. Update.
  13116. * dwarf2/read.h (struct dwarf2_per_objfile)
  13117. <quick_file_names_table>: Now htab_up.
  13118. 2020-02-08 Tom Tromey <tom@tromey.com>
  13119. * dwarf2/abbrev.c (abbrev_table::read): Simplify.
  13120. 2020-02-08 Tom Tromey <tom@tromey.com>
  13121. * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
  13122. Rewrite.
  13123. (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
  13124. * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
  13125. (abbrev_table::abbrev_table): No longer inline.
  13126. (ABBREV_HASH_SIZE): Remove.
  13127. (abbrev_table::m_abbrevs): Now an htab_up.
  13128. 2020-02-08 Tom Tromey <tom@tromey.com>
  13129. * dwarf2/read.c (read_cutu_die_from_dwo): Update.
  13130. (cutu_reader): Update.
  13131. (build_type_psymtabs_1): Update.
  13132. * dwarf2/abbrev.c (abbrev_table::read): Rename.
  13133. (abbrev_table::alloc_abbrev): Update.
  13134. * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
  13135. (abbrev_table::read): New static method, renamed from
  13136. abbrev_table_read_table.
  13137. (abbrev_table::alloc_abbrev)
  13138. (abbrev_table::add_abbrev): Now private.
  13139. (abbrev_table::abbrev_table): Now private.
  13140. (abbrev_table::m_abbrev_obstack): Now private. Rename.
  13141. 2020-02-08 Tom Tromey <tom@tromey.com>
  13142. * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
  13143. * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
  13144. htab_up.
  13145. 2020-02-08 Tom Tromey <tom@tromey.com>
  13146. * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
  13147. htab_up.
  13148. (lookup_dwo_unit_in_dwp): Update.
  13149. (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
  13150. on obstack.
  13151. 2020-02-08 Tom Tromey <tom@tromey.com>
  13152. * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
  13153. obstack.
  13154. 2020-02-08 Tom Tromey <tom@tromey.com>
  13155. * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
  13156. line_header_hash.
  13157. (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
  13158. * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
  13159. Change type to htab_up.
  13160. 2020-02-08 Tom Tromey <tom@tromey.com>
  13161. * dwarf2/read.c (allocate_type_unit_groups_table): Return
  13162. htab_up. Don't allocate on obstack.
  13163. (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
  13164. * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
  13165. Change type to htab_up.
  13166. 2020-02-08 Tom Tromey <tom@tromey.com>
  13167. * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
  13168. Change type to htab_up.
  13169. * dwarf2/read.c (create_signatured_type_table_from_index)
  13170. (create_signatured_type_table_from_debug_names)
  13171. (create_all_type_units, add_type_unit)
  13172. (lookup_dwo_signatured_type, lookup_signatured_type)
  13173. (process_skeletonless_type_unit): Update.
  13174. (create_debug_type_hash_table, create_debug_types_hash_table):
  13175. Change type of types_htab.
  13176. (allocate_signatured_type_table, allocate_dwo_unit_table): Return
  13177. htab_up. Don't allocate on obstack.
  13178. (create_cus_hash_table): Change type of cus_htab parameter.
  13179. (struct dwo_file) <cus, tus>: Now htab_up.
  13180. (lookup_dwo_signatured_type, lookup_dwo_cutu)
  13181. (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
  13182. (queue_and_load_all_dwo_tus): Update.
  13183. * dwarf2/index-write.c (write_gdbindex): Update.
  13184. (write_debug_names): Update.
  13185. 2020-02-08 Tom Tromey <tom@tromey.com>
  13186. * dwarf2/read.h (struct dwarf2_queue_item): Move from
  13187. dwarf2/read.c. Remove "next" member. Add constructor ntad
  13188. destructor.
  13189. (struct dwarf2_per_objfile) <queue>: New member.
  13190. * dwarf2/read.c (struct dwarf2_queue_item): Move to
  13191. dwarf2/read.h.
  13192. (dwarf2_queue, dwarf2_queue_tail): Remove.
  13193. (class dwarf2_queue_guard): Add parameter to constructor. Use
  13194. DISABLE_COPY_AND_ASSIGN.
  13195. <m_per_objfile>: New member.
  13196. <~dwarf2_queue_guard>: Rewrite.
  13197. (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
  13198. Update.
  13199. (~dwarf2_queue_item): New.
  13200. 2020-02-08 Tom Tromey <tom@tromey.com>
  13201. * dwarf2/read.c (struct die_info) <has_children>: New member.
  13202. (dw2_get_file_names_reader): Remove has_children.
  13203. (dw2_get_file_names): Update.
  13204. (read_cutu_die_from_dwo): Remove has_children.
  13205. (cutu_reader::init_tu_and_read_dwo_dies)
  13206. (cutu_reader::cutu_reader): Update.
  13207. (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
  13208. Remove has_children.
  13209. (build_type_psymtabs_1, process_skeletonless_type_unit)
  13210. (load_partial_comp_unit, load_full_comp_unit): Update.
  13211. (create_dwo_cu_reader): Remove has_children.
  13212. (create_cus_hash_table, read_die_and_children): Update.
  13213. (read_full_die_1,read_full_die): Remove has_children.
  13214. (read_signatured_type): Update.
  13215. (class cutu_reader) <has_children>: Remove.
  13216. 2020-02-08 Tom Tromey <tom@tromey.com>
  13217. * dwarf2/expr.c: Rename from dwarf2expr.c.
  13218. * dwarf2/expr.h: Rename from dwarf2expr.h.
  13219. * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
  13220. * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
  13221. * dwarf2/frame.c: Rename from dwarf2-frame.c.
  13222. * dwarf2/frame.h: Rename from dwarf2-frame.h.
  13223. * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
  13224. * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
  13225. * dwarf2/index-common.c: Rename from dwarf-index-common.c.
  13226. * dwarf2/index-common.h: Rename from dwarf-index-common.h.
  13227. * dwarf2/index-write.c: Rename from dwarf-index-write.c.
  13228. * dwarf2/index-write.h: Rename from dwarf-index-write.h.
  13229. * dwarf2/loc.c: Rename from dwarf2loc.c.
  13230. * dwarf2/loc.h: Rename from dwarf2loc.h.
  13231. * dwarf2/read.c: Rename from dwarf2read.c.
  13232. * dwarf2/read.h: Rename from dwarf2read.h.
  13233. * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
  13234. amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
  13235. compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
  13236. compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
  13237. gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
  13238. hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
  13239. i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
  13240. m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
  13241. msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
  13242. riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
  13243. s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
  13244. sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
  13245. tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
  13246. Update.
  13247. * Makefile.in (COMMON_SFILES): Update.
  13248. (HFILES_NO_SRCDIR): Update.
  13249. 2020-02-08 Tom Tromey <tom@tromey.com>
  13250. * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
  13251. (init_cu_die_reader, read_cutu_die_from_dwo): Update.
  13252. 2020-02-08 Tom Tromey <tom@tromey.com>
  13253. * dwarf2read.h (struct die_info): Don't declare.
  13254. 2020-02-08 Tom Tromey <tom@tromey.com>
  13255. * dwarf2read.h (die_info_ptr): Remove typedef.
  13256. 2020-02-08 Tom Tromey <tom@tromey.com>
  13257. * dwarf2read.c (read_call_site_scope)
  13258. (handle_data_member_location, dwarf2_add_member_fn)
  13259. (mark_common_block_symbol_computed, read_common_block)
  13260. (attr_to_dynamic_prop, partial_die_info::read)
  13261. (var_decode_location, dwarf2_fetch_die_loc_sect_off)
  13262. (dwarf2_symbol_mark_computed, set_die_type): Update.
  13263. * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
  13264. method.
  13265. (attr_form_is_block): Don't declare.
  13266. * dwarf2/attribute.c (attribute::form_is_block): Now a method.
  13267. 2020-02-08 Tom Tromey <tom@tromey.com>
  13268. * dwarf2read.c (dwarf2_find_base_address, )
  13269. (read_call_site_scope, rust_containing_type)
  13270. (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
  13271. (handle_data_member_location, dwarf2_add_member_fn)
  13272. (get_alignment, read_structure_type, process_structure_scope)
  13273. (mark_common_block_symbol_computed, read_common_block)
  13274. (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
  13275. (partial_die_info::read, read_attribute_value, new_symbol)
  13276. (lookup_die_type, dwarf2_get_ref_die_offset)
  13277. (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
  13278. (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
  13279. (dwarf2_symbol_mark_computed): Update.
  13280. * dwarf2/attribute.h (struct attribute) <value_as_address,
  13281. form_is_section_offset, form_is_constant, form_is_ref>: Declare
  13282. methods.
  13283. (value_as_address, attr_form_is_section_offset)
  13284. (attr_form_is_constant, attr_form_is_ref): Don't declare.
  13285. * dwarf2/attribute.c (attribute::value_as_address)
  13286. (attribute::form_is_section_offset, attribute::form_is_constant)
  13287. (attribute::form_is_ref): Now methods.
  13288. 2020-02-08 Tom Tromey <tom@tromey.com>
  13289. * dwarf2read.c (struct attribute, DW_STRING)
  13290. (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
  13291. (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
  13292. (attr_form_is_block, attr_form_is_section_offset)
  13293. (attr_form_is_constant, attr_form_is_ref): Move.
  13294. * dwarf2/attribute.h: New file.
  13295. * dwarf2/attribute.c: New file, from dwarf2read.c.
  13296. * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
  13297. 2020-02-08 Tom Tromey <tom@tromey.com>
  13298. * dwarf2read.c (abbrev_table_up, struct abbrev_info)
  13299. (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
  13300. Move.
  13301. (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
  13302. (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
  13303. (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
  13304. abbrev.c.
  13305. * dwarf2/abbrev.h: New file.
  13306. * dwarf2/abbrev.c: New file, from dwarf2read.c.
  13307. * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
  13308. 2020-02-08 Tom Tromey <tom@tromey.com>
  13309. * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
  13310. (dwarf2_section_size, dwarf2_get_section_info)
  13311. (create_signatured_type_table_from_debug_names)
  13312. (create_addrmap_from_aranges, read_debug_names_from_section)
  13313. (get_gdb_index_contents_from_section, read_comp_unit_head)
  13314. (error_check_comp_unit_head, read_abbrev_offset)
  13315. (create_debug_type_hash_table, init_cu_die_reader)
  13316. (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
  13317. (read_comp_units_from_section, create_cus_hash_table)
  13318. (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
  13319. (create_dwp_v2_section, dwarf2_rnglists_process)
  13320. (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
  13321. (abbrev_table_read_table, read_indirect_string_at_offset_from)
  13322. (read_indirect_string_from_dwz, read_addr_index_1)
  13323. (read_str_index, dwarf_decode_line_header, skip_form_bytes)
  13324. (dwarf_decode_macro_bytes, dwarf_decode_macros)
  13325. (fill_in_loclist_baton): Update.
  13326. * dwarf2/section.h (struct dwarf2_section_info) <get_name,
  13327. get_containing_section, get_bfd_owner, get_bfd_section,
  13328. get_file_name, get_id, get_flags, empty, read>: Declare methods.
  13329. (dwarf2_read_section, get_section_name, get_section_file_name)
  13330. (get_containing_section, get_section_bfd_owner)
  13331. (get_section_bfd_section, get_section_name, get_section_file_name)
  13332. (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
  13333. declare.
  13334. * dwarf2/section.c (dwarf2_section_info::get_containing_section)
  13335. (dwarf2_section_info::get_bfd_owner)
  13336. (dwarf2_section_info::get_bfd_section)
  13337. (dwarf2_section_info::get_name)
  13338. (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
  13339. (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
  13340. (dwarf2_section_info::read): Now methods.
  13341. * dwarf-index-write.c (class debug_names): Update.
  13342. 2020-02-08 Tom Tromey <tom@tromey.com>
  13343. * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
  13344. Move to dwarf2/section.h.
  13345. * dwarf2read.c (get_containing_section, get_section_bfd_owner)
  13346. (get_section_bfd_section, get_section_name)
  13347. (get_section_file_name, get_section_id, get_section_flags)
  13348. (dwarf2_section_empty_p, dwarf2_read_section): Moe to
  13349. dwarf2/section.c.
  13350. * dwarf2/section.h: New file.
  13351. * dwarf2/section.c: New file, from dwarf2read.c.
  13352. * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
  13353. 2020-02-08 Tom Tromey <tom@tromey.com>
  13354. * dwarf2read.h (read_unsigned_leb128): Don't declare.
  13355. * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
  13356. (read_2_signed_bytes, read_3_bytes, read_4_bytes)
  13357. (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
  13358. (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
  13359. * dwarf2/leb.h: New file, from dwarf2read.c.
  13360. * dwarf2/leb.c: New file, from dwarf2read.c.
  13361. * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
  13362. Remove.
  13363. * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
  13364. (COMMON_SFILES): Add dwarf2/leb.c.
  13365. 2020-02-08 Joel Brobecker <brobecker@adacore.com>
  13366. GDB 9.1 released.
  13367. 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
  13368. PR gdb/25190:
  13369. * gdb/remote-sim.c (gdb_os_write_stderr): Update.
  13370. * gdb/remote.c (remote_console_output): Update.
  13371. * gdb/ui-file.c (fputs_unfiltered): Rename to...
  13372. (ui_file_puts): ...this.
  13373. * gdb/ui-file.h (ui_file_puts): Add declaration.
  13374. * gdb/utils.c (emit_style_escape): Update.
  13375. (flush_wrap_buffer): Update.
  13376. (fputs_maybe_filtered): Update.
  13377. (fputs_unfiltered): Add function.
  13378. 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
  13379. * gdb/event-loop.c (gdb_wait_for_event): Update.
  13380. * gdb/printcmd.c (printf_command): Update.
  13381. * gdb/remote-fileio.c (remote_fileio_func_write): Update.
  13382. * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
  13383. (gdb_os_flush_stderr): Update.
  13384. * gdb/remote.c (remote_console_output): Update.
  13385. * gdb/ui-file.c (gdb_flush): Rename to...
  13386. (ui_file_flush): ...this.
  13387. (stderr_file::write): Update.
  13388. (stderr_file::puts): Update.
  13389. * gdb/ui-file.h (gdb_flush): Rename to...
  13390. (ui_file_flush): ...this.
  13391. * gdb/utils.c (gdb_flush): Add function.
  13392. * gdb/utils.h (gdb_flush): Add declaration.
  13393. 2020-02-07 Tom Tromey <tromey@adacore.com>
  13394. PR breakpoints/24915:
  13395. * source.c (find_and_open_source): Do not check basenames_may_differ.
  13396. 2020-02-07 Tom Tromey <tom@tromey.com>
  13397. * README: Update gdbserver documentation.
  13398. * gdbserver: Move to top level.
  13399. * configure.tgt (build_gdbserver): Remove.
  13400. * configure.ac: Remove --enable-gdbserver.
  13401. * configure: Rebuild.
  13402. * Makefile.in (distclean): Don't mention gdbserver.
  13403. 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
  13404. * source-cache.c (source_cache::ensure): Surround
  13405. get_plain_source_lines with a try/catch.
  13406. (source_cache::get_line_charpos): Get rid of try/catch
  13407. and only check for the return value of "ensure".
  13408. * tui/tui-source.c (tui_source_window::set_contents):
  13409. Simplify "nlines" calculation.
  13410. 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
  13411. * MAINTAINERS (Write After Approval): Add myself.
  13412. 2020-02-05 Christian Biesinger <cbiesinger@google.com>
  13413. * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
  13414. function call.
  13415. 2020-02-05 Christian Biesinger <cbiesinger@google.com>
  13416. * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
  13417. 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
  13418. * nat/riscv-linux-tdesc.h: New file.
  13419. * nat/riscv-linux-tdesc.c: New file, taking code from...
  13420. * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
  13421. ... here.
  13422. * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
  13423. NATDEPFILES.
  13424. 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
  13425. * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
  13426. we don't set the fake simulator ptid to the null_ptid.
  13427. 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
  13428. * fork-child.c (gdb_startup_inferior): Use bool instead of int.
  13429. * gdbthread.h (class thread_info) <resumed>: Likewise.
  13430. * infrun.c (resume_1): Likewise.
  13431. (proceed): Likewise.
  13432. (infrun_thread_stop_requested): Likewise.
  13433. (stop_all_threads): Likewise.
  13434. (handle_inferior_event): Likewise.
  13435. (restart_threads): Likewise.
  13436. (finish_step_over): Likewise.
  13437. (keep_going_stepped_thread): Likewise.
  13438. * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
  13439. (linux_handle_extended_wait): Likewise.
  13440. * record-btrace.c (get_thread_current_frame_id): Likewise.
  13441. * record-full.c (record_full_wait_1): Likewise.
  13442. * remote.c (remote_target::process_initial_stop_replies): Likewise.
  13443. * target.c (target_resume): Likewise.
  13444. * thread.c (set_running_thread): Likewise.
  13445. 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
  13446. * f-valprint.c (f77_print_array_1): Changed datatype of index
  13447. variable to LONGEST from int to enable it to contain bound
  13448. values correctly.
  13449. 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
  13450. * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
  13451. (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
  13452. offsets according to FLEN determined.
  13453. (riscv_linux_nat_target::read_description): Determine FLEN
  13454. dynamically.
  13455. (riscv_linux_nat_target::fetch_registers): Size regset buffer
  13456. according to FLEN determined.
  13457. (riscv_linux_nat_target::store_registers): Likewise.
  13458. 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
  13459. * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
  13460. when reg->group is empty and reggroup is not.
  13461. 2020-01-31 Tom Tromey <tromey@adacore.com>
  13462. * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
  13463. Call beneath target's mourn_inferior after unpushing.
  13464. 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
  13465. PR tui/9765
  13466. * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
  13467. have enough lines to fill the screen, still return the lowest
  13468. address we found.
  13469. 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
  13470. * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
  13471. '-', '<', and '>' commands.
  13472. 2020-01-29 Pedro Alves <palves@redhat.com>
  13473. Sergio Durigan Junior <sergiodj@redhat.com>
  13474. * infcmd.c (construct_inferior_arguments): Assert that
  13475. 'argc' is greater than 0.
  13476. 2020-01-29 Luis Machado <luis.machado@linaro.org>
  13477. * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
  13478. (BRK_INSN_MASK): Define to 0xd4200000.
  13479. (aarch64_program_breakpoint_here_p): New function.
  13480. (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
  13481. * arch-utils.c (default_program_breakpoint_here_p): Moved from
  13482. breakpoint.c.
  13483. * arch-utils.h (default_program_breakpoint_here_p): Moved from
  13484. breakpoint.h
  13485. * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
  13486. call gdbarch_program_breakpoint_here_p.
  13487. (program_breakpoint_here): Moved to arch-utils.c, renamed to
  13488. default_program_breakpoint_here_p, changed return type to bool and
  13489. simplified.
  13490. * breakpoint.h (program_breakpoint_here): Moved prototype to
  13491. arch-utils.h, renamed to default_program_breakpoint_here_p and changed
  13492. return type to bool.
  13493. * gdbarch.c: Regenerate.
  13494. * gdbarch.h: Regenerate.
  13495. * gdbarch.sh (program_breakpoint_here_p): New method.
  13496. * infrun.c (handle_signal_stop): Call
  13497. gdbarch_program_breakpoint_here_p.
  13498. 2020-01-26 Tom Tromey <tom@tromey.com>
  13499. * ctfread.c (struct ctf_fp_info): Reindent.
  13500. (_initialize_ctfread): Remove.
  13501. 2020-01-26 Tom Tromey <tom@tromey.com>
  13502. * psymtab.c (partial_map_expand_apply)
  13503. (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
  13504. (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
  13505. (psym_print_stats, psym_expand_symtabs_for_function)
  13506. (psym_map_symbol_filenames, psym_map_matching_symbols)
  13507. (psym_expand_symtabs_matching)
  13508. (partial_symtab::read_dependencies, maintenance_info_psymtabs)
  13509. (maintenance_check_psymtabs): Use new methods.
  13510. * psympriv.h (struct partial_symtab) <readin_p,
  13511. get_compunit_symtab>: New methods.
  13512. <readin, compunit_symtab>: Remove members.
  13513. (struct standard_psymtab): New.
  13514. (struct legacy_psymtab): Derive from standard_psymtab.
  13515. * dwarf2read.h (struct dwarf2_psymtab): Derive from
  13516. standard_psymtab.
  13517. * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
  13518. 2020-01-26 Tom Tromey <tom@tromey.com>
  13519. * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
  13520. read_dependencies. Add assert.
  13521. * psymtab.c (partial_symtab::read_dependencies): New method.
  13522. * psympriv.h (struct partial_symtab) <read_dependencies>: New
  13523. method.
  13524. * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
  13525. * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
  13526. read_dependencies.
  13527. * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
  13528. Add assert.
  13529. 2020-01-26 Tom Tromey <tom@tromey.com>
  13530. * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
  13531. Call expand_psymtab.
  13532. (xcoff_read_symtab): Call expand_psymtab.
  13533. (xcoff_start_psymtab, xcoff_end_psymtab): Set
  13534. legacy_expand_psymtab.
  13535. * psympriv.h (struct partial_symtab) <expand_psymtab>: New
  13536. method.
  13537. (struct legacy_psymtab) <expand_psymtab>: Implement.
  13538. <legacy_expand_psymtab>: New member.
  13539. * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
  13540. (parse_partial_symbols): Set legacy_expand_psymtab.
  13541. (psymtab_to_symtab_1): Change argument order. Call
  13542. expand_psymtab.
  13543. (new_psymtab): Set legacy_expand_psymtab.
  13544. * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
  13545. * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
  13546. expand_psymtab.
  13547. (dwarf2_psymtab::expand_psymtab): Rename from
  13548. psymtab_to_symtab_1. Call expand_psymtab.
  13549. * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
  13550. (dbx_end_psymtab): Likewise.
  13551. (dbx_psymtab_to_symtab_1): Change argument order. Call
  13552. expand_psymtab.
  13553. (dbx_read_symtab): Call expand_psymtab.
  13554. * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
  13555. (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
  13556. (ctf_psymtab::read_symtab): Call expand_psymtab.
  13557. 2020-01-26 Tom Tromey <tom@tromey.com>
  13558. * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
  13559. * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
  13560. messages.
  13561. * mdebugread.c (mdebug_read_symtab): Remove prints.
  13562. * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
  13563. assert.
  13564. * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
  13565. 2020-01-26 Tom Tromey <tom@tromey.com>
  13566. * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
  13567. (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
  13568. (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
  13569. legacy_symtab.
  13570. * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
  13571. * psymtab.c (psymtab_to_symtab): Call method.
  13572. (dump_psymtab): Update.
  13573. * psympriv.h (struct partial_symtab): Add virtual destructor.
  13574. <read_symtab>: New method.
  13575. (struct legacy_symtab): New.
  13576. * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
  13577. (struct pst_map) <pst>: Now a legacy_psymtab.
  13578. (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
  13579. (new_psymtab): Use legacy_psymtab.
  13580. * dwarf2read.h (struct dwarf2_psymtab): New.
  13581. (struct dwarf2_per_cu_data) <psymtab>: Use it.
  13582. * dwarf2read.c (dwarf2_create_include_psymtab)
  13583. (dwarf2_build_include_psymtabs, create_type_unit_group)
  13584. (create_partial_symtab, process_psymtab_comp_unit_reader)
  13585. (build_type_psymtabs_reader, build_type_psymtab_dependencies)
  13586. (set_partial_user): Use dwarf2_psymtab.
  13587. (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
  13588. (psymtab_to_symtab_1, process_full_comp_unit)
  13589. (process_full_type_unit, dwarf2_ranges_read)
  13590. (dwarf2_get_pc_bounds, psymtab_include_file_name)
  13591. (dwarf_decode_lines): Use dwarf2_psymtab.
  13592. * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
  13593. (add_address_entry_worker, write_one_signatured_type)
  13594. (recursively_count_psymbols, recursively_write_psymbols)
  13595. (write_one_signatured_type, psyms_seen_size, write_gdbindex)
  13596. (write_debug_names): Likewise.
  13597. * dbxread.c (struct header_file_location): Take a legacy_psymtab.
  13598. <pst>: Now a legacy_psymtab.
  13599. (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
  13600. (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
  13601. (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
  13602. * ctfread.c (struct ctf_psymtab): New.
  13603. (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
  13604. ctf_psymtab.
  13605. (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
  13606. (create_partial_symtab): Return a ctf_psymtab.
  13607. (scan_partial_symbols): Update.
  13608. 2020-01-26 Tom Tromey <tom@tromey.com>
  13609. * xcoffread.c (xcoff_start_psymtab): Use new.
  13610. * psymtab.c (partial_symtab::partial_symtab): New constructor,
  13611. renamed from start_psymtab_common.
  13612. * psympriv.h (struct partial_symtab): Add new constructor.
  13613. (start_psymtab_common): Don't declare.
  13614. * mdebugread.c (parse_partial_symbols): Use new.
  13615. * dwarf2read.c (create_partial_symtab): Use new.
  13616. * dbxread.c (start_psymtab): Use new.
  13617. * ctfread.c (create_partial_symtab): Use new.
  13618. 2020-01-26 Tom Tromey <tom@tromey.com>
  13619. * xcoffread.c (xcoff_end_psymtab): Use new.
  13620. * psymtab.c (start_psymtab_common): Use new.
  13621. (partial_symtab::partial_symtab): Rename from allocate_psymtab.
  13622. Update.
  13623. * psympriv.h (struct partial_symtab): Add parameters to
  13624. constructor. Don't inline.
  13625. (allocate_psymtab): Don't declare.
  13626. * mdebugread.c (new_psymtab): Use new.
  13627. * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
  13628. * dbxread.c (dbx_end_psymtab): Use new.
  13629. 2020-01-26 Tom Tromey <tom@tromey.com>
  13630. * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
  13631. allocate_psymtab. Update documentation.
  13632. * psymtab.c (psymtab_storage::install_psymtab): Rename from
  13633. allocate_psymtab. Do not use new.
  13634. (allocate_psymtab): Use new. Update.
  13635. 2020-01-26 Tom Tromey <tom@tromey.com>
  13636. * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
  13637. * psymtab.c (psym_print_stats): Update.
  13638. * psympriv.h (struct partial_symtab) <readin,
  13639. psymtabs_addrmap_supported, anonymous>: Now bool.
  13640. * mdebugread.c (psymtab_to_symtab_1): Update.
  13641. * dwarf2read.c (create_type_unit_group, create_partial_symtab)
  13642. (build_type_psymtabs_reader, psymtab_to_symtab_1)
  13643. (process_full_comp_unit, process_full_type_unit): Update.
  13644. * dbxread.c (dbx_psymtab_to_symtab_1): Update.
  13645. * ctfread.c (psymtab_to_symtab): Update.
  13646. 2020-01-26 Tom Tromey <tom@tromey.com>
  13647. * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
  13648. * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
  13649. * psymtab.c (psymtab_storage): Delete psymtabs.
  13650. (psymtab_storage::allocate_psymtab): Use new.
  13651. (psymtab_storage::discard_psymtab): Use delete.
  13652. * psympriv.h (struct partial_symtab): Add constructor and
  13653. initializers.
  13654. 2020-01-26 Tom Tromey <tom@tromey.com>
  13655. * machoread.c: Do not include psympriv.h.
  13656. 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  13657. * NEWS: Mention the new option and the set/show commands.
  13658. 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  13659. * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
  13660. (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
  13661. (validate_exec_file): New variables, enums, functions.
  13662. (exec_file_locate_attach, print_section_info): Style the filenames.
  13663. (_initialize_exec): Install show_exec_file_mismatch_command and
  13664. set_exec_file_mismatch_command.
  13665. * gdbcore.h (validate_exec_file): Declare.
  13666. * infcmd.c (attach_command): Call validate_exec_file.
  13667. * remote.c ( remote_target::remote_add_inferior): Likewise.
  13668. 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
  13669. * frame.c (find_frame_sal): Move call to get_next_frame into more
  13670. inner scope.
  13671. * inline-frame.c (inilne_state) <inline_state>: Update argument
  13672. types.
  13673. (inilne_state) <skipped_symbol>: Rename to...
  13674. (inilne_state) <skipped_symbols>: ...this, and change to a vector.
  13675. (skip_inline_frames): Build vector of skipped symbols and use this
  13676. to reate the inline_state.
  13677. (inline_skipped_symbol): Add a comment and some assertions, fetch
  13678. skipped symbol from the list.
  13679. 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
  13680. * buildsym.c (lte_is_less_than): Delete.
  13681. (buildsym_compunit::end_symtab_with_blockvector): Create local
  13682. lambda function to sort line table entries, and use
  13683. std::stable_sort instead of std::sort.
  13684. * symtab.c (find_pc_sect_line): Skip backward over end of sequence
  13685. markers when looking for a previous line.
  13686. 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
  13687. * dwarf2read.c (lnp_state_machine::record_line): Include
  13688. end_sequence parameter in debug print out. Record the line if we
  13689. are at an end_sequence marker even if it's not the start of a
  13690. statement.
  13691. * symmisc.c (maintenance_print_one_line_table): Print end of
  13692. sequence markers with 'END' not '0'.
  13693. 2020-01-24 Pedro Alves <palves@redhat.com>
  13694. PR gdb/25410
  13695. * thread.c (scoped_restore_current_thread::restore): Use
  13696. switch_to_inferior_no_thread.
  13697. * exec.c: Include "progspace-and-thread.h".
  13698. (add_target_sections, remove_target_sections):
  13699. scoped_restore_current_pspace_and_thread instead of
  13700. scoped_restore_current_thread.
  13701. * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
  13702. and aspace to the inferior before calling clone_program_space.
  13703. Remove stale comment.
  13704. 2020-01-24 Christian Biesinger <cbiesinger@google.com>
  13705. * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
  13706. (arm_netbsd_nat_target::fetch_registers): ...this.
  13707. (arm_nbsd_nat_target::store_registers): Rename to...
  13708. (arm_netbsd_nat_target::store_registers): ...this.
  13709. 2020-01-24 Christian Biesinger <cbiesinger@google.com>
  13710. * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
  13711. register_t.
  13712. 2020-01-24 Christian Biesinger <cbiesinger@google.com>
  13713. * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
  13714. Update comment.
  13715. * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
  13716. Likewise.
  13717. * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
  13718. * gdbcore.h (deprecated_add_core_fns): Update comment to point to
  13719. the correct replacement (iterate_over_regset_sections).
  13720. * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
  13721. Update comment.
  13722. 2020-01-24 Graham Markall <graham.markall@embecosm.com>
  13723. PR gdb/23718
  13724. * gdb/python/python.c (execute_gdb_command): Call
  13725. async_enable_stdin in catch block.
  13726. 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
  13727. * event-loop.c (start_event_loop): Wrap async_enable_stdin with
  13728. SWITCH_THRU_ALL_UIS.
  13729. 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
  13730. PR tui/9765
  13731. * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
  13732. comment, add extra parameter, and update to store previous symbol
  13733. when appropriate.
  13734. * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
  13735. add extra parameter.
  13736. * tui/tui-disasm.c (tui_disassemble): Update header comment,
  13737. remove unneeded parameter, add try/catch around gdb_print_insn,
  13738. rewrite to add items to asm_lines vector.
  13739. (tui_find_backward_disassembly_start_address): New function.
  13740. (tui_find_disassembly_address): Updated throughout.
  13741. (tui_disasm_window::set_contents): Update for changes to
  13742. tui_disassemble.
  13743. (tui_disasm_window::do_scroll_vertical): No need to adjust the
  13744. number of lines to scroll.
  13745. 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
  13746. * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
  13747. (SECT_OFF_DATA): Likewise.
  13748. (SECT_OFF_RODATA): Likewise.
  13749. (SECT_OFF_TEXT): Likewise.
  13750. (SECT_OFF_BSS): Likewise.
  13751. (struct objfile) <text_section_offset, data_section_offset>: New
  13752. methods.
  13753. * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
  13754. objfile::text_section_offset.
  13755. * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
  13756. * coffread.c (coff_symtab_read): Likewise.
  13757. (enter_linenos): Likewise.
  13758. (process_coff_symbol): Likewise.
  13759. * ctfread.c (get_objfile_text_range): Likewise.
  13760. * dtrace-probe.c (dtrace_probe::get_relocated_address):
  13761. Use objfile::data_section_offset.
  13762. * dwarf2-frame.c (execute_cfa_program): Use
  13763. objfile::text_section_offset.
  13764. (dwarf2_frame_find_fde): Likewise.
  13765. * dwarf2read.c (create_addrmap_from_index): Likewise.
  13766. (create_addrmap_from_aranges): Likewise.
  13767. (dw2_find_pc_sect_compunit_symtab): Likewise.
  13768. (process_psymtab_comp_unit_reader): Likewise.
  13769. (add_partial_symbol): Likewise.
  13770. (add_partial_subprogram): Likewise.
  13771. (process_full_comp_unit): Likewise.
  13772. (read_file_scope): Likewise.
  13773. (read_func_scope): Likewise.
  13774. (read_lexical_block_scope): Likewise.
  13775. (read_call_site_scope): Likewise.
  13776. (dwarf2_rnglists_process): Likewise.
  13777. (dwarf2_ranges_process): Likewise.
  13778. (dwarf2_ranges_read): Likewise.
  13779. (dwarf_decode_lines_1): Likewise.
  13780. (new_symbol): Likewise.
  13781. (dwarf2_fetch_die_loc_sect_off): Likewise.
  13782. (dwarf2_per_cu_text_offset): Likewise.
  13783. * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
  13784. * hppa-tdep.c (read_unwind_info): Likewise.
  13785. * ia64-tdep.c (ia64_find_unwind_table): Likewise.
  13786. * psympriv.h (struct partial_symtab): Likewise.
  13787. * psymtab.c (find_pc_sect_psymtab): Likewise.
  13788. * solib-svr4.c (enable_break): Likewise.
  13789. * stap-probe.c (relocate_address): Use
  13790. objfile::data_section_offset.
  13791. * xcoffread.c (enter_line_range): Use
  13792. objfile::text_section_offset.
  13793. (read_xcoff_symtab): Likewise.
  13794. 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
  13795. * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
  13796. declaration to narrower scopes.
  13797. 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
  13798. * darwin-nat.h (struct darwin_exception_msg, enum
  13799. darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
  13800. Move up.
  13801. (class darwin_nat_target) <wait_1, check_new_threads,
  13802. decode_exception_message, decode_message, stop_inferior,
  13803. init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
  13804. * darwin-nat.c (darwin_check_new_threads): Rename to...
  13805. (darwin_nat_target::check_new_threads): ... this.
  13806. (darwin_suspend_inferior_it): Remove.
  13807. (darwin_decode_exception_message): Rename to...
  13808. (darwin_nat_target::decode_exception_message): ... this.
  13809. (darwin_nat_target::resume): Pass target to find_inferior_ptid.
  13810. (darwin_decode_message): Rename to...
  13811. (darwin_nat_target::decode_message): ... this.
  13812. (cancel_breakpoint): Rename to...
  13813. (darwin_nat_target::cancel_breakpoint): ... this.
  13814. (darwin_wait): Rename to...
  13815. (darwin_nat_target::wait_1): ... this. Use range-based for loop
  13816. instead of iterate_over_inferiors.
  13817. (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
  13818. (darwin_stop_inferior): Rename to...
  13819. (darwin_nat_target::stop_inferior): ... this.
  13820. (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
  13821. (darwin_init_thread_list): Rename to...
  13822. (darwin_nat_target::init_thread_list): ... this.
  13823. (darwin_ptrace_him): Rename to...
  13824. (darwin_nat_target::ptrace_him): ... this.
  13825. (darwin_nat_target::create_inferior): Pass lambda function to
  13826. fork_inferior.
  13827. (darwin_nat_target::detach): Call stop_inferior instead of
  13828. darwin_stop_inferior.
  13829. * fork-inferior.h (fork_inferior): Change init_trace_fun
  13830. parameter to gdb::function_view.
  13831. * fork-inferior.c (fork_inferior): Likewise.
  13832. 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
  13833. * i386-cygwin-tdep.c (core_process_module_section): Update.
  13834. * windows-nat.c (struct lm_info_windows): Add text_offset.
  13835. (windows_xfer_shared_libraries): Update.
  13836. * windows-tdep.c (windows_xfer_shared_library):
  13837. Add text_offset_cached argument.
  13838. * windows-tdep.h (windows_xfer_shared_library): Update.
  13839. 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
  13840. * gdbarch.sh: Add declaration for _initialize_gdbarch.
  13841. 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
  13842. * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
  13843. (get_sim_inferior_data): Remove use of iterate_over_inferiors,
  13844. replace with range-based for.
  13845. (gdbsim_interrupt_inferior): Remove.
  13846. (gdbsim_target::interrupt): Replace iterate_over_inferiors use
  13847. with a range-based for. Inline code from
  13848. gdbsim_interrupt_inferior.
  13849. 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
  13850. * infrun.c (proceed): Fix indentation.
  13851. 2020-01-21 Tom Tromey <tromey@adacore.com>
  13852. * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
  13853. * python/python.c (python_extension_ops): Update.
  13854. (gdbpy_colorize): New function.
  13855. * python/lib/gdb/__init__.py (colorize): New function.
  13856. * extension.h (ext_lang_colorize): Declare.
  13857. * extension.c (ext_lang_colorize): New function.
  13858. * extension-priv.h (struct extension_language_ops) <colorize>: New
  13859. member.
  13860. * cli/cli-style.c (_initialize_cli_style): Update help text.
  13861. 2020-01-21 Luis Machado <luis.machado@linaro.org>
  13862. * aarch64-tdep.c (struct aarch64_displaced_step_closure)
  13863. <cond>: Change type to bool.
  13864. (aarch64_displaced_step_b_cond): Update cond to use bool type.
  13865. (aarch64_displaced_step_cb): Likewise.
  13866. (aarch64_displaced_step_tb): Likewise.
  13867. 2020-01-21 Luis Machado <luis.machado@linaro.org>
  13868. * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
  13869. output.
  13870. 2020-01-21 Luis Machado <luis.machado@linaro.org>
  13871. * aarch64-tdep.c (struct aarch64_displaced_step_closure )
  13872. <pc_adjust>: Adjust the documentation.
  13873. (aarch64_displaced_step_fixup): Check if PC really moved before
  13874. adjusting it.
  13875. 2020-01-19 Tom Tromey <tom@tromey.com>
  13876. * disasm.c (~gdb_disassembler): New destructor.
  13877. (gdb_buffered_insn_length): Call disassemble_free_target.
  13878. * disasm.h (class gdb_disassembler): Declare destructor. Use
  13879. DISABLE_COPY_AND_ASSIGN.
  13880. 2020-01-19 Tom Tromey <tom@tromey.com>
  13881. * dwarf2read.c (abbrev_table_up): Move typedef earlier.
  13882. (die_reader_func_ftype): Remove.
  13883. (cutu_reader): New class.
  13884. (dw2_get_file_names_reader): Remove "data" parameter.
  13885. (dw2_get_file_names): Use cutu_reader.
  13886. (create_debug_type_hash_table): Update.
  13887. (read_cutu_die_from_dwo): Update comment.
  13888. (lookup_dwo_unit): Add dwo_name parameter.
  13889. (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
  13890. die_reader_func_ftype and data parameters.
  13891. (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
  13892. Remove die_reader_func_ftype and data parameters.
  13893. (~cutu_reader): New; from init_cutu_and_read_dies.
  13894. (cutu_reader::cutu_reader): Rename from
  13895. init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
  13896. and data parameters.
  13897. (init_cutu_and_read_dies_simple): Remove.
  13898. (struct process_psymtab_comp_unit_data): Remove.
  13899. (process_psymtab_comp_unit_reader): Remove data parameter; add
  13900. want_partial_unit and pretend_language parameters.
  13901. (process_psymtab_comp_unit): Use cutu_reader.
  13902. (build_type_psymtabs_reader): Remove data parameter.
  13903. (build_type_psymtabs_1): Use cutu_reader.
  13904. (process_skeletonless_type_unit): Likewise.
  13905. (load_partial_comp_unit_reader): Remove.
  13906. (load_partial_comp_unit): Use cutu_reader.
  13907. (load_full_comp_unit_reader): Remove.
  13908. (load_full_comp_unit): Use cutu_reader.
  13909. (struct create_dwo_cu_data): Remove.
  13910. (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
  13911. dwo_unit parameters.
  13912. (create_cus_hash_table): Use cutu_reader.
  13913. (struct dwarf2_read_addr_index_data): Remove.
  13914. (dwarf2_read_addr_index_reader): Remove.
  13915. (dwarf2_read_addr_index): Use cutu_reader.
  13916. (read_signatured_type_reader): Remove.
  13917. (read_signatured_type): Use cutu_reader.
  13918. 2020-01-19 Tom Tromey <tom@tromey.com>
  13919. * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
  13920. * tui/tui-wingeneral.h (class tui_suppress_output): New.
  13921. (tui_wrefresh): Declare.
  13922. * tui/tui-wingeneral.c (suppress_output): New global.
  13923. (tui_suppress_output, ~tui_suppress_output): New constructor and
  13924. destructor.
  13925. (tui_wrefresh): New function.
  13926. (tui_gen_win_info::refresh_window): Use tui_wrefresh.
  13927. (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
  13928. * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
  13929. method.
  13930. * tui/tui-regs.c (tui_data_window::erase_data_content): Call
  13931. tui_wrefresh.
  13932. (tui_data_window::no_refresh): New method.
  13933. (tui_data_item_window::refresh_window): Call tui_wrefresh.
  13934. (tui_reg_command): Use tui_suppress_output
  13935. * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
  13936. * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
  13937. method.
  13938. * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
  13939. 2020-01-19 Tom Tromey <tom@tromey.com>
  13940. * tui/tui-winsource.c (tui_update_source_windows_with_line):
  13941. Handle case where symtab is null.
  13942. 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
  13943. * linux-fork.c (one_fork_p): Simplify.
  13944. 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
  13945. * top.c (struct qt_args): Remove.
  13946. (kill_or_detach): Change return type to void, replace `void *`
  13947. parameter with a proper one.
  13948. (print_inferior_quit_action): Likewise.
  13949. (quit_confirm): Use range-based for loop to iterate over inferiors.
  13950. (quit_force): Likewise.
  13951. 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
  13952. * mi/mi-main.c (run_one_inferior): Change return type to void, replace
  13953. `void *` parameter with proper parameters.
  13954. (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
  13955. (print_one_inferior): Change return type to void, replace `void *`
  13956. parameter with proper parameters.
  13957. (mi_cmd_list_thread_groups): Use range-based loop to iterate over
  13958. inferiors.
  13959. (get_other_inferior): Remove.
  13960. (mi_cmd_remove_inferior): Use range-based loop to iterate over
  13961. inferiors.
  13962. 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
  13963. * mi/mi-interp.c (report_initial_inferior): Remove.
  13964. (mi_interp::init): Use range-based for to iterate over inferiors.
  13965. 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
  13966. * python/py-inferior.c (build_inferior_list): Remove.
  13967. (gdbpy_ref): Use range-based for loop to iterate over inferiors.
  13968. 2020-01-16 Christian Biesinger <cbiesinger@google.com>
  13969. * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
  13970. (btrace_stitch_trace): Likewise.
  13971. * charset.c (intermediate_encoding): Likewise (vaild).
  13972. * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
  13973. * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
  13974. * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
  13975. 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
  13976. * windows-tdep.c (windows_get_tlb_type):
  13977. Add rtl_user_process_parameters type.
  13978. 2020-01-16 Pedro Alves <palves@redhat.com>
  13979. Norbert Lange <nolange79@gmail.com>
  13980. PR build/24805
  13981. * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
  13982. (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
  13983. (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
  13984. (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
  13985. (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
  13986. (ps_plog): Redeclare exported functions with default visibility.
  13987. 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
  13988. * dwarf2loc.c (decode_debug_loclists_addresses): Handle
  13989. DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
  13990. 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
  13991. * infcmd.c (post_create_inferior): Use get_thread_regcache
  13992. instead of get_current_regcache.
  13993. 2020-01-14 Tom Tromey <tom@tromey.com>
  13994. PR symtab/12535:
  13995. * python/python.c (gdbpy_decode_line): Treat empty string the same
  13996. as no argument.
  13997. 2020-01-14 Tom Tromey <tom@tromey.com>
  13998. * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
  13999. 2020-01-14 Tom Tromey <tom@tromey.com>
  14000. * nat/linux-btrace.c: Don't include <config.h>.
  14001. * nat/linux-ptrace.c: Don't include <config.h>.
  14002. * nat/x86-linux-dregs.c: Don't include <config.h>.
  14003. 2020-01-14 Tom Tromey <tom@tromey.com>
  14004. * configure: Rebuild.
  14005. * configure.ac: Move many checks to ../gdbsupport/common.m4.
  14006. 2020-01-14 Tom Tromey <tom@tromey.com>
  14007. * nat/x86-linux-dregs.c: Include configh.h.
  14008. * nat/linux-ptrace.c: Include configh.h.
  14009. * nat/linux-btrace.c: Include configh.h.
  14010. * defs.h: Include config.h, bfd.h.
  14011. * configure.ac: Don't source common.host.
  14012. (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
  14013. * configure: Rebuild.
  14014. * acinclude.m4: Update path.
  14015. * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
  14016. (CONFIG_SRC_SUBDIR): Remove gdbsupport.
  14017. (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
  14018. (CLIBS): Add LIBSUPPORT.
  14019. (CDEPS): Likewise.
  14020. (COMMON_SFILES): Remove gdbsupport files.
  14021. (HFILES_NO_SRCDIR): Likewise.
  14022. (stamp-version): Update path to create-version.sh.
  14023. (ALLDEPFILES): Remove gdbsupport files.
  14024. 2020-01-14 Tom Tromey <tom@tromey.com>
  14025. * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
  14026. USE_WIN32API when needed.
  14027. * configure.ac (USE_WIN32API): Don't define.
  14028. (WIN32LIBS): Use WIN32APILIBS.
  14029. * configure: Rebuild.
  14030. 2020-01-14 Tom Tromey <tom@tromey.com>
  14031. * configure: Rebuild.
  14032. * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
  14033. 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
  14034. * skip.c (skip_function_command): Make skip w/o arguments use the
  14035. name of the inlined function if pc is inside any inlined function.
  14036. 2020-01-14 Luis Machado <luis.machado@linaro.org>
  14037. * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
  14038. * infrun.c (resume_1): Likewise.
  14039. (handle_inferior_event): Remove stale comment.
  14040. * linux-nat.c (linux_nat_target::resume): Update comments.
  14041. (save_stop_reason): Likewise.
  14042. (linux_nat_filter_event): Likewise.
  14043. * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
  14044. 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
  14045. * elfread.c (record_minimal_symbol): Set section index to 0 for
  14046. non-allocatable sections.
  14047. 2020-01-13 Ali Tamur <tamur@google.com>
  14048. * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
  14049. (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
  14050. to gdb::optional. Update comments.
  14051. (dwo_file): Update comments.
  14052. (read_attribute): Update API to take an additional out parameter,
  14053. need_reprocess. This is used to mark attributes that need other
  14054. attributes (e.g. str_offsets_base) for correct computation which may not
  14055. have been read yet.
  14056. (read_attribute_reprocess): New function declaration.
  14057. (read_addr_index): Likewise.
  14058. (read_dwo_str_index): Likewise.
  14059. (read_stub_str_index): Likewise.
  14060. (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
  14061. (lookup_addr_base): New function definition.
  14062. (lookup_ranges_base): Likewise.
  14063. (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
  14064. lookup_ranges_base.
  14065. (init_cutu_and_read_dies): Update comments.
  14066. (init_cutu_and_read_dies_no_follow): Change API to take parent compile
  14067. unit. This is used to inherit parent's str_offsets_base and addr_base.
  14068. Update comments.
  14069. (init_cutu_and_read_dies_simple): Reflect API changes.
  14070. (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
  14071. (create_cus_hash_table): Change API to take parent compile unit.
  14072. Reflect API changes.
  14073. (open_and_init_dwo_file): Reflect API changes.
  14074. (dwarf2_get_pc_bounds): Update comments.
  14075. (dwarf2_record_block_ranges): Likewise.
  14076. (read_full_die_1): Change implementation to reprocess attributes that
  14077. need str_offsets_base and addr_base.
  14078. (partial_die_info::read): Likewise.
  14079. (read_attribute_reprocess): New function definition.
  14080. (read_attribute_value): Change API to take an additional out parameter,
  14081. need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
  14082. when a non-dwo compile unit has index based attributes.
  14083. (read_attribute): Reflect API changes.
  14084. (read_addr_index_1): Reflect API changes. Update comments.
  14085. (dwarf2_read_addr_index_data): Reflect API changes.
  14086. (dwarf2_read_addr_index): Likewise.
  14087. (read_str_index): Change API and implementation. This becomes a helper
  14088. to be used by the new string index related methods. Update error
  14089. message and comments.
  14090. (read_dwo_str_index): New function definition.
  14091. (read_stub_str_index): Likewise.
  14092. * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
  14093. * symfile.h (dwarf2_debug_sections): Likewise.
  14094. * xcoffread.c (dwarf2_debug_sections): Likewise.
  14095. 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
  14096. * gdbcore.h (struct core_fns) <core_read_registers>: Change
  14097. core_reg_sect type to gdb_byte *.
  14098. * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
  14099. * cris-tdep.c (fetch_core_registers): Likewise.
  14100. * corelow.c (core_target::get_core_register_section): Change
  14101. type of `contents` to gdb::byte_vector.
  14102. 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
  14103. * tui/tui-wingeneral.c (box_win): Position the title in the center
  14104. of the border.
  14105. 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
  14106. * corelow.c (core_target::get_core_register_section): Use
  14107. std::vector instead of alloca.
  14108. 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
  14109. * warning.m4: Add -Wmissing-declarations to build_warnings.
  14110. * configure: Re-generate.
  14111. 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
  14112. * python/python.c (init__gdb_module): Add declaration.
  14113. 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
  14114. * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
  14115. * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
  14116. * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
  14117. * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
  14118. * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
  14119. * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
  14120. * ada-exp.y (_initialize_ada_exp): Add declaration.
  14121. * ada-lang.c (_initialize_ada_language): Add declaration.
  14122. * ada-tasks.c (_initialize_tasks): Add declaration.
  14123. * agent.c (_initialize_agent): Add declaration.
  14124. * aix-thread.c (_initialize_aix_thread): Add declaration.
  14125. * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
  14126. * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
  14127. * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
  14128. * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
  14129. * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
  14130. * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
  14131. * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
  14132. * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
  14133. * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
  14134. * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
  14135. * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
  14136. * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
  14137. * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
  14138. * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
  14139. * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
  14140. * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
  14141. * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
  14142. * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
  14143. * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
  14144. * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
  14145. * annotate.c (_initialize_annotate): Add declaration.
  14146. * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
  14147. * arc-tdep.c (_initialize_arc_tdep): Add declaration.
  14148. * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
  14149. * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
  14150. * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
  14151. * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
  14152. * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
  14153. * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
  14154. * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
  14155. * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
  14156. * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
  14157. * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
  14158. * arm-tdep.c (_initialize_arm_tdep): Add declaration.
  14159. * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
  14160. * auto-load.c (_initialize_auto_load): Add declaration.
  14161. * auxv.c (_initialize_auxv): Add declaration.
  14162. * avr-tdep.c (_initialize_avr_tdep): Add declaration.
  14163. * ax-gdb.c (_initialize_ax_gdb): Add declaration.
  14164. * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
  14165. * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
  14166. * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
  14167. * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
  14168. * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
  14169. * breakpoint.c (_initialize_breakpoint): Add declaration.
  14170. * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
  14171. * btrace.c (_initialize_btrace): Add declaration.
  14172. * charset.c (_initialize_charset): Add declaration.
  14173. * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
  14174. * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
  14175. * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
  14176. * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
  14177. * cli/cli-script.c (_initialize_cli_script): Add declaration.
  14178. * cli/cli-style.c (_initialize_cli_style): Add declaration.
  14179. * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
  14180. * coffread.c (_initialize_coffread): Add declaration.
  14181. * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
  14182. * compile/compile.c (_initialize_compile): Add declaration.
  14183. * complaints.c (_initialize_complaints): Add declaration.
  14184. * completer.c (_initialize_completer): Add declaration.
  14185. * copying.c (_initialize_copying): Add declaration.
  14186. * corefile.c (_initialize_core): Add declaration.
  14187. * corelow.c (_initialize_corelow): Add declaration.
  14188. * cp-abi.c (_initialize_cp_abi): Add declaration.
  14189. * cp-namespace.c (_initialize_cp_namespace): Add declaration.
  14190. * cp-support.c (_initialize_cp_support): Add declaration.
  14191. * cp-valprint.c (_initialize_cp_valprint): Add declaration.
  14192. * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
  14193. * cris-tdep.c (_initialize_cris_tdep): Add declaration.
  14194. * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
  14195. * csky-tdep.c (_initialize_csky_tdep): Add declaration.
  14196. * ctfread.c (_initialize_ctfread): Add declaration.
  14197. * d-lang.c (_initialize_d_language): Add declaration.
  14198. * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
  14199. * darwin-nat.c (_initialize_darwin_nat): Add declaration.
  14200. * dbxread.c (_initialize_dbxread): Add declaration.
  14201. * dcache.c (_initialize_dcache): Add declaration.
  14202. * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
  14203. * disasm.c (_initialize_disasm): Add declaration.
  14204. * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
  14205. * dummy-frame.c (_initialize_dummy_frame): Add declaration.
  14206. * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
  14207. * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
  14208. * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
  14209. * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
  14210. * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
  14211. * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
  14212. * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
  14213. * elfread.c (_initialize_elfread): Add declaration.
  14214. * exec.c (_initialize_exec): Add declaration.
  14215. * extension.c (_initialize_extension): Add declaration.
  14216. * f-lang.c (_initialize_f_language): Add declaration.
  14217. * f-valprint.c (_initialize_f_valprint): Add declaration.
  14218. * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
  14219. * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
  14220. * filesystem.c (_initialize_filesystem): Add declaration.
  14221. * findcmd.c (_initialize_mem_search): Add declaration.
  14222. * findvar.c (_initialize_findvar): Add declaration.
  14223. * fork-child.c (_initialize_fork_child): Add declaration.
  14224. * frame-base.c (_initialize_frame_base): Add declaration.
  14225. * frame-unwind.c (_initialize_frame_unwind): Add declaration.
  14226. * frame.c (_initialize_frame): Add declaration.
  14227. * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
  14228. * frv-tdep.c (_initialize_frv_tdep): Add declaration.
  14229. * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
  14230. * gcore.c (_initialize_gcore): Add declaration.
  14231. * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
  14232. * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
  14233. * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
  14234. * gdbarch.c (_initialize_gdbarch): Add declaration.
  14235. * gdbtypes.c (_initialize_gdbtypes): Add declaration.
  14236. * gnu-nat.c (_initialize_gnu_nat): Add declaration.
  14237. * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
  14238. * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
  14239. * go-lang.c (_initialize_go_language): Add declaration.
  14240. * go32-nat.c (_initialize_go32_nat): Add declaration.
  14241. * guile/guile.c (_initialize_guile): Add declaration.
  14242. * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
  14243. * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
  14244. * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
  14245. * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
  14246. * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
  14247. * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
  14248. * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
  14249. * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
  14250. * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
  14251. * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
  14252. * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
  14253. * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
  14254. * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
  14255. * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
  14256. * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
  14257. * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
  14258. * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
  14259. * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
  14260. * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
  14261. * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
  14262. * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
  14263. * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
  14264. * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
  14265. * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
  14266. * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
  14267. * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
  14268. * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
  14269. * i386-tdep.c (_initialize_i386_tdep): Add declaration.
  14270. * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
  14271. * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
  14272. * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
  14273. * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
  14274. * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
  14275. * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
  14276. * infcall.c (_initialize_infcall): Add declaration.
  14277. * infcmd.c (_initialize_infcmd): Add declaration.
  14278. * inflow.c (_initialize_inflow): Add declaration.
  14279. * infrun.c (_initialize_infrun): Add declaration.
  14280. * interps.c (_initialize_interpreter): Add declaration.
  14281. * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
  14282. * jit.c (_initialize_jit): Add declaration.
  14283. * language.c (_initialize_language): Add declaration.
  14284. * linux-fork.c (_initialize_linux_fork): Add declaration.
  14285. * linux-nat.c (_initialize_linux_nat): Add declaration.
  14286. * linux-tdep.c (_initialize_linux_tdep): Add declaration.
  14287. * linux-thread-db.c (_initialize_thread_db): Add declaration.
  14288. * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
  14289. * m2-lang.c (_initialize_m2_language): Add declaration.
  14290. * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
  14291. * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
  14292. * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
  14293. * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
  14294. * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
  14295. * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
  14296. * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
  14297. * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
  14298. * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
  14299. * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
  14300. * machoread.c (_initialize_machoread): Add declaration.
  14301. * macrocmd.c (_initialize_macrocmd): Add declaration.
  14302. * macroscope.c (_initialize_macroscope): Add declaration.
  14303. * maint-test-options.c (_initialize_maint_test_options): Add declaration.
  14304. * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
  14305. * maint.c (_initialize_maint_cmds): Add declaration.
  14306. * mdebugread.c (_initialize_mdebugread): Add declaration.
  14307. * memattr.c (_initialize_mem): Add declaration.
  14308. * mep-tdep.c (_initialize_mep_tdep): Add declaration.
  14309. * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
  14310. * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
  14311. * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
  14312. * mi/mi-main.c (_initialize_mi_main): Add declaration.
  14313. * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
  14314. * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
  14315. * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
  14316. * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
  14317. * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
  14318. * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
  14319. * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
  14320. * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
  14321. * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
  14322. * mips-tdep.c (_initialize_mips_tdep): Add declaration.
  14323. * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
  14324. * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
  14325. * mipsread.c (_initialize_mipsread): Add declaration.
  14326. * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
  14327. * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
  14328. * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
  14329. * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
  14330. * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
  14331. * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
  14332. * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
  14333. * nto-procfs.c (_initialize_procfs): Add declaration.
  14334. * objc-lang.c (_initialize_objc_language): Add declaration.
  14335. * observable.c (_initialize_observer): Add declaration.
  14336. * opencl-lang.c (_initialize_opencl_language): Add declaration.
  14337. * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
  14338. * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
  14339. * osabi.c (_initialize_gdb_osabi): Add declaration.
  14340. * osdata.c (_initialize_osdata): Add declaration.
  14341. * p-valprint.c (_initialize_pascal_valprint): Add declaration.
  14342. * parse.c (_initialize_parse): Add declaration.
  14343. * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
  14344. * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
  14345. * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
  14346. * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
  14347. * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
  14348. * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
  14349. * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
  14350. * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
  14351. * printcmd.c (_initialize_printcmd): Add declaration.
  14352. * probe.c (_initialize_probe): Add declaration.
  14353. * proc-api.c (_initialize_proc_api): Add declaration.
  14354. * proc-events.c (_initialize_proc_events): Add declaration.
  14355. * proc-service.c (_initialize_proc_service): Add declaration.
  14356. * procfs.c (_initialize_procfs): Add declaration.
  14357. * producer.c (_initialize_producer): Add declaration.
  14358. * psymtab.c (_initialize_psymtab): Add declaration.
  14359. * python/python.c (_initialize_python): Add declaration.
  14360. * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
  14361. * record-btrace.c (_initialize_record_btrace): Add declaration.
  14362. * record-full.c (_initialize_record_full): Add declaration.
  14363. * record.c (_initialize_record): Add declaration.
  14364. * regcache-dump.c (_initialize_regcache_dump): Add declaration.
  14365. * regcache.c (_initialize_regcache): Add declaration.
  14366. * reggroups.c (_initialize_reggroup): Add declaration.
  14367. * remote-notif.c (_initialize_notif): Add declaration.
  14368. * remote-sim.c (_initialize_remote_sim): Add declaration.
  14369. * remote.c (_initialize_remote): Add declaration.
  14370. * reverse.c (_initialize_reverse): Add declaration.
  14371. * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
  14372. * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
  14373. * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
  14374. * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
  14375. * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
  14376. * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
  14377. * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
  14378. * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
  14379. Add declaration.
  14380. * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
  14381. * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
  14382. * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
  14383. * rust-exp.y (_initialize_rust_exp): Add declaration.
  14384. * rx-tdep.c (_initialize_rx_tdep): Add declaration.
  14385. * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
  14386. * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
  14387. * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
  14388. * s390-tdep.c (_initialize_s390_tdep): Add declaration.
  14389. * score-tdep.c (_initialize_score_tdep): Add declaration.
  14390. * ser-go32.c (_initialize_ser_dos): Add declaration.
  14391. * ser-mingw.c (_initialize_ser_windows): Add declaration.
  14392. * ser-pipe.c (_initialize_ser_pipe): Add declaration.
  14393. * ser-tcp.c (_initialize_ser_tcp): Add declaration.
  14394. * ser-uds.c (_initialize_ser_socket): Add declaration.
  14395. * ser-unix.c (_initialize_ser_hardwire): Add declaration.
  14396. * serial.c (_initialize_serial): Add declaration.
  14397. * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
  14398. * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
  14399. * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
  14400. * sh-tdep.c (_initialize_sh_tdep): Add declaration.
  14401. * skip.c (_initialize_step_skip): Add declaration.
  14402. * sol-thread.c (_initialize_sol_thread): Add declaration.
  14403. * solib-aix.c (_initialize_solib_aix): Add declaration.
  14404. * solib-darwin.c (_initialize_darwin_solib): Add declaration.
  14405. * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
  14406. * solib-frv.c (_initialize_frv_solib): Add declaration.
  14407. * solib-svr4.c (_initialize_svr4_solib): Add declaration.
  14408. * solib-target.c (_initialize_solib_target): Add declaration.
  14409. * solib.c (_initialize_solib): Add declaration.
  14410. * source-cache.c (_initialize_source_cache): Add declaration.
  14411. * source.c (_initialize_source): Add declaration.
  14412. * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
  14413. * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
  14414. * sparc-nat.c (_initialize_sparc_nat): Add declaration.
  14415. * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
  14416. * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
  14417. * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
  14418. * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
  14419. * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
  14420. * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
  14421. * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
  14422. * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
  14423. * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
  14424. * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
  14425. * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
  14426. * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
  14427. * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
  14428. * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
  14429. * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
  14430. * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
  14431. * stabsread.c (_initialize_stabsread): Add declaration.
  14432. * stack.c (_initialize_stack): Add declaration.
  14433. * stap-probe.c (_initialize_stap_probe): Add declaration.
  14434. * std-regs.c (_initialize_frame_reg): Add declaration.
  14435. * symfile-debug.c (_initialize_symfile_debug): Add declaration.
  14436. * symfile-mem.c (_initialize_symfile_mem): Add declaration.
  14437. * symfile.c (_initialize_symfile): Add declaration.
  14438. * symmisc.c (_initialize_symmisc): Add declaration.
  14439. * symtab.c (_initialize_symtab): Add declaration.
  14440. * target.c (_initialize_target): Add declaration.
  14441. * target-connection.c (_initialize_target_connection): Add
  14442. declaration.
  14443. * target-dcache.c (_initialize_target_dcache): Add declaration.
  14444. * target-descriptions.c (_initialize_target_descriptions): Add declaration.
  14445. * thread.c (_initialize_thread): Add declaration.
  14446. * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
  14447. * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
  14448. * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
  14449. * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
  14450. * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
  14451. * tracectf.c (_initialize_ctf): Add declaration.
  14452. * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
  14453. * tracefile.c (_initialize_tracefile): Add declaration.
  14454. * tracepoint.c (_initialize_tracepoint): Add declaration.
  14455. * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
  14456. * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
  14457. * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
  14458. * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
  14459. * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
  14460. * tui/tui-win.c (_initialize_tui_win): Add declaration.
  14461. * tui/tui.c (_initialize_tui): Add declaration.
  14462. * typeprint.c (_initialize_typeprint): Add declaration.
  14463. * ui-style.c (_initialize_ui_style): Add declaration.
  14464. * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
  14465. * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
  14466. * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
  14467. * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
  14468. * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
  14469. * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
  14470. * unittests/filtered_iterator-selftests.c
  14471. (_initialize_filtered_iterator_selftests): Add declaration.
  14472. * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
  14473. * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
  14474. * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
  14475. * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
  14476. * unittests/main-thread-selftests.c
  14477. (_initialize_main_thread_selftests): Add declaration.
  14478. * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
  14479. * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
  14480. * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
  14481. * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
  14482. * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
  14483. * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
  14484. * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
  14485. * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
  14486. * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
  14487. * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
  14488. * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
  14489. * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
  14490. * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
  14491. * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
  14492. * unittests/tui-selftests.c (_initialize_tui_selftest): Add
  14493. declaration.
  14494. * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
  14495. * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
  14496. * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
  14497. * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
  14498. * user-regs.c (_initialize_user_regs): Add declaration.
  14499. * utils.c (_initialize_utils): Add declaration.
  14500. * v850-tdep.c (_initialize_v850_tdep): Add declaration.
  14501. * valops.c (_initialize_valops): Add declaration.
  14502. * valprint.c (_initialize_valprint): Add declaration.
  14503. * value.c (_initialize_values): Add declaration.
  14504. * varobj.c (_initialize_varobj): Add declaration.
  14505. * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
  14506. * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
  14507. * vax-tdep.c (_initialize_vax_tdep): Add declaration.
  14508. * windows-nat.c (_initialize_windows_nat): Add declaration.
  14509. (_initialize_check_for_gdb_ini): Add declaration.
  14510. (_initialize_loadable): Add declaration.
  14511. * windows-tdep.c (_initialize_windows_tdep): Add declaration.
  14512. * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
  14513. * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
  14514. * xcoffread.c (_initialize_xcoffread): Add declaration.
  14515. * xml-support.c (_initialize_xml_support): Add declaration.
  14516. * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
  14517. * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
  14518. * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
  14519. * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
  14520. 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
  14521. * regformats/regdat.sh: Generate declaration for init function.
  14522. 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
  14523. * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
  14524. up.
  14525. (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
  14526. close_one_inferior>: New methods.
  14527. (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
  14528. pass down target to find_inferior_pid.
  14529. (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
  14530. Pass down target to find_inferior_ptid.
  14531. (gdbsim_target::create_inferior): Pass down target to
  14532. add_thread_silent.
  14533. (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
  14534. target down to find_inferior_ptid and switch_to_thread.
  14535. (gdbsim_target::close): Update to call close_one_inferior.
  14536. (struct resume_data): Remove.
  14537. (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
  14538. directly, rather than through a void pointer.
  14539. (gdbsim_target::resume): Update to call resume_one_inferior.
  14540. 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
  14541. * gdbsupport/gdb_wait.c: Include gdb_wait.h.
  14542. 2020-01-12 Pedro Alves <palves@redhat.com>
  14543. * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
  14544. directly for the current inferior instead of
  14545. discard_all_inferiors.
  14546. (discard_all_inferiors): Delete.
  14547. 2020-01-11 Tom Tromey <tom@tromey.com>
  14548. * tui/tui-wingeneral.c (box_win): Check cli_styling.
  14549. * tui/tui-winsource.c (tui_source_window_base::refill): Use
  14550. deprecated_safe_get_selected_frame.
  14551. 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  14552. * inferior.c (print_inferior): Switch inferior before printing it.
  14553. 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
  14554. Pedro Alves <palves@redhat.com>
  14555. * progspace-and-thread.c (switch_to_program_space_and_thread):
  14556. Assert there's an inferior for PSPACE. Use
  14557. switch_to_inferior_no_thread to switch the inferior too.
  14558. * progspace.c (program_space::~program_space): Call
  14559. clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
  14560. (program_space::free_all_objfiles): Don't call clear_symtab_users
  14561. here.
  14562. * symfile.c (symbol_file_clear): Call clear_symtab_users here.
  14563. 2020-01-10 Pedro Alves <palves@redhat.com>
  14564. * NEWS: Mention multi-target debugging, "info connections", and
  14565. "add-inferior -no-connection".
  14566. 2020-01-10 Pedro Alves <palves@redhat.com>
  14567. * infrun.c: Include "target-connection.h".
  14568. (check_multi_target_resumption): New.
  14569. (proceed): Call it.
  14570. * target-connection.c (make_target_connection_string): Make
  14571. extern.
  14572. * target-connection.h (make_target_connection_string): Declare.
  14573. 2020-01-10 Pedro Alves <palves@redhat.com>
  14574. * Makefile.in (COMMON_SFILES): Add target-connection.c.
  14575. * inferior.c (uiout_field_connection): New function.
  14576. (print_inferior): Add new "connection-id" column.
  14577. (add_inferior_command): Show connection number/string of added
  14578. inferior.
  14579. * process-stratum-target.h
  14580. (process_stratum_target::connection_string): New virtual method.
  14581. (process_stratum_target::connection_number): New field.
  14582. * remote.c (remote_target::connection_string): New override.
  14583. * target-connection.c: New file.
  14584. * target-connection.h: New file.
  14585. * target.c (decref_target): Remove process_stratum targets from
  14586. the connection list.
  14587. (target_stack::push): Add process_stratum targets to the
  14588. connection list.
  14589. 2020-01-10 Pedro Alves <palves@redhat.com>
  14590. Revert:
  14591. 2016-04-12 Pedro Alves <palves@redhat.com>
  14592. * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
  14593. Remove references to name.
  14594. * serial.h (struct serial) <name>: Delete.
  14595. 2020-01-10 Pedro Alves <palves@redhat.com>
  14596. * gdbarch-selftests.c (register_to_value_test): Remove "target
  14597. already pushed" check.
  14598. 2020-01-10 Pedro Alves <palves@redhat.com>
  14599. John Baldwin <jhb@FreeBSD.org>
  14600. * aarch64-linux-nat.c
  14601. (aarch64_linux_nat_target::thread_architecture): Adjust.
  14602. * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
  14603. (task_command_1): Likewise.
  14604. * aix-thread.c (sync_threadlists, aix_thread_target::resume)
  14605. (aix_thread_target::wait, aix_thread_target::fetch_registers)
  14606. (aix_thread_target::store_registers)
  14607. (aix_thread_target::thread_alive): Adjust.
  14608. * amd64-fbsd-tdep.c: Include "inferior.h".
  14609. (amd64fbsd_get_thread_local_address): Pass down target.
  14610. * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
  14611. thread's gdbarch instead of target_gdbarch.
  14612. * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
  14613. get_last_target_status.
  14614. * break-catch-syscall.c (print_it_catch_syscall): Likewise.
  14615. * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
  14616. inferiors.
  14617. (update_inserted_breakpoint_locations): Skip if inferiors with no
  14618. execution.
  14619. (update_global_location_list): When handling moribund locations,
  14620. find representative inferior for location's pspace, and use thread
  14621. count of its process_stratum target.
  14622. * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
  14623. * bsd-uthread.c (bsd_uthread_target::wait): Use
  14624. as_process_stratum_target and adjust thread_change_ptid and
  14625. add_thread calls.
  14626. (bsd_uthread_target::update_thread_list): Use
  14627. as_process_stratum_target and adjust find_thread_ptid,
  14628. thread_change_ptid and add_thread calls.
  14629. * btrace.c (maint_btrace_packet_history_cmd): Adjust
  14630. find_thread_ptid call.
  14631. * corelow.c (add_to_thread_list): Adjust add_thread call.
  14632. (core_target_open): Adjust add_thread_silent and thread_count
  14633. calls.
  14634. (core_target::pid_to_str): Adjust find_inferior_ptid call.
  14635. * ctf.c (ctf_target_open): Adjust add_thread_silent call.
  14636. * event-top.c (async_disconnect): Pop targets from all inferiors.
  14637. * exec.c (add_target_sections): Push exec target on all inferiors
  14638. sharing the program space.
  14639. (remove_target_sections): Remove the exec target from all
  14640. inferiors sharing the program space.
  14641. (exec_on_vfork): New.
  14642. * exec.h (exec_on_vfork): Declare.
  14643. * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
  14644. Pass it down.
  14645. (fbsd_nat_target::update_thread_list): Adjust.
  14646. (fbsd_nat_target::resume): Adjust.
  14647. (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
  14648. down.
  14649. (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
  14650. * fbsd-tdep.c (fbsd_corefile_thread): Adjust
  14651. get_thread_arch_regcache call.
  14652. * fork-child.c (gdb_startup_inferior): Pass target down to
  14653. startup_inferior and set_executing.
  14654. * gdbthread.h (struct process_stratum_target): Forward declare.
  14655. (add_thread, add_thread_silent, add_thread_with_info)
  14656. (in_thread_list): Add process_stratum_target parameter.
  14657. (find_thread_ptid(inferior*, ptid_t)): New overload.
  14658. (find_thread_ptid, thread_change_ptid): Add process_stratum_target
  14659. parameter.
  14660. (all_threads()): Delete overload.
  14661. (all_threads, all_non_exited_threads): Add process_stratum_target
  14662. parameter.
  14663. (all_threads_safe): Use brace initialization.
  14664. (thread_count): Add process_stratum_target parameter.
  14665. (set_resumed, set_running, set_stop_requested, set_executing)
  14666. (threads_are_executing, finish_thread_state): Add
  14667. process_stratum_target parameter.
  14668. (switch_to_thread): Use is_current_thread.
  14669. * i386-fbsd-tdep.c: Include "inferior.h".
  14670. (i386fbsd_get_thread_local_address): Pass down target.
  14671. * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
  14672. * inf-child.c (inf_child_target::maybe_unpush_target): Remove
  14673. have_inferiors check.
  14674. * inf-ptrace.c (inf_ptrace_target::create_inferior)
  14675. (inf_ptrace_target::attach): Adjust.
  14676. * infcall.c (run_inferior_call): Adjust.
  14677. * infcmd.c (run_command_1): Pass target to
  14678. scoped_finish_thread_state.
  14679. (proceed_thread_callback): Skip inferiors with no execution.
  14680. (continue_command): Rename 'all_threads' local to avoid hiding
  14681. 'all_threads' function. Adjust get_last_target_status call.
  14682. (prepare_one_step): Adjust set_running call.
  14683. (signal_command): Use user_visible_resume_target. Compare thread
  14684. pointers instead of inferior_ptid.
  14685. (info_program_command): Adjust to pass down target.
  14686. (attach_command): Mark target's 'thread_executing' flag.
  14687. (stop_current_target_threads_ns): New, factored out from ...
  14688. (interrupt_target_1): ... this. Switch inferior before making
  14689. target calls.
  14690. * inferior-iter.h
  14691. (struct all_inferiors_iterator, struct all_inferiors_range)
  14692. (struct all_inferiors_safe_range)
  14693. (struct all_non_exited_inferiors_range): Filter on
  14694. process_stratum_target too. Remove explicit.
  14695. * inferior.c (inferior::inferior): Push dummy target on target
  14696. stack.
  14697. (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
  14698. Add process_stratum_target parameter, and pass it down.
  14699. (have_live_inferiors): Adjust.
  14700. (switch_to_inferior_and_push_target): New.
  14701. (add_inferior_command, clone_inferior_command): Handle
  14702. "-no-connection" parameter. Use
  14703. switch_to_inferior_and_push_target.
  14704. (_initialize_inferior): Mention "-no-connection" option in
  14705. the help of "add-inferior" and "clone-inferior" commands.
  14706. * inferior.h: Include "process-stratum-target.h".
  14707. (interrupt_target_1): Use bool.
  14708. (struct inferior) <push_target, unpush_target, target_is_pushed,
  14709. find_target_beneath, top_target, process_target, target_at,
  14710. m_stack>: New.
  14711. (discard_all_inferiors): Delete.
  14712. (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
  14713. (all_inferiors, all_non_exited_inferiors): Add
  14714. process_stratum_target parameter.
  14715. * infrun.c: Include "gdb_select.h" and <unordered_map>.
  14716. (target_last_proc_target): New global.
  14717. (follow_fork_inferior): Push target on new inferior. Pass target
  14718. to add_thread_silent. Call exec_on_vfork. Handle target's
  14719. reference count.
  14720. (follow_fork): Adjust get_last_target_status call. Also consider
  14721. target.
  14722. (follow_exec): Push target on new inferior.
  14723. (struct execution_control_state) <target>: New field.
  14724. (user_visible_resume_target): New.
  14725. (do_target_resume): Call target_async.
  14726. (resume_1): Set target's threads_executing flag. Consider resume
  14727. target.
  14728. (commit_resume_all_targets): New.
  14729. (proceed): Also consider resume target. Skip threads of inferiors
  14730. with no execution. Commit resumtion in all targets.
  14731. (start_remote): Pass current inferior to wait_for_inferior.
  14732. (infrun_thread_stop_requested): Consider target as well. Pass
  14733. thread_info pointer to clear_inline_frame_state instead of ptid.
  14734. (infrun_thread_thread_exit): Consider target as well.
  14735. (random_pending_event_thread): New inferior parameter. Use it.
  14736. (do_target_wait): Rename to ...
  14737. (do_target_wait_1): ... this. Add inferior parameter, and pass it
  14738. down.
  14739. (threads_are_resumed_pending_p, do_target_wait): New.
  14740. (prepare_for_detach): Adjust calls.
  14741. (wait_for_inferior): New inferior parameter. Handle it. Use
  14742. do_target_wait_1 instead of do_target_wait.
  14743. (fetch_inferior_event): Adjust. Switch to representative
  14744. inferior. Pass target down.
  14745. (set_last_target_status): Add process_stratum_target parameter.
  14746. Save target in global.
  14747. (get_last_target_status): Add process_stratum_target parameter and
  14748. handle it.
  14749. (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
  14750. (context_switch): Check inferior_ptid == null_ptid before calling
  14751. inferior_thread().
  14752. (get_inferior_stop_soon): Pass down target.
  14753. (wait_one): Rename to ...
  14754. (poll_one_curr_target): ... this.
  14755. (struct wait_one_event): New.
  14756. (wait_one): New.
  14757. (stop_all_threads): Adjust.
  14758. (handle_no_resumed, handle_inferior_event): Adjust to consider the
  14759. event's target.
  14760. (switch_back_to_stepped_thread): Also consider target.
  14761. (print_stop_event): Update.
  14762. (normal_stop): Update. Also consider the resume target.
  14763. * infrun.h (wait_for_inferior): Remove declaration.
  14764. (user_visible_resume_target): New declaration.
  14765. (get_last_target_status, set_last_target_status): New
  14766. process_stratum_target parameter.
  14767. * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
  14768. process_stratum_target parameter, and use it.
  14769. (clear_inline_frame_state (thread_info*)): New.
  14770. * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
  14771. process_stratum_target parameter.
  14772. (clear_inline_frame_state (thread_info*)): Declare.
  14773. * linux-fork.c (delete_checkpoint_command): Pass target down to
  14774. find_thread_ptid.
  14775. (checkpoint_command): Adjust.
  14776. * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
  14777. instead of just tweaking inferior_ptid.
  14778. (linux_nat_switch_fork): Pass target down to thread_change_ptid.
  14779. (exit_lwp): Pass target down to find_thread_ptid.
  14780. (attach_proc_task_lwp_callback): Pass target down to
  14781. add_thread/set_running/set_executing.
  14782. (linux_nat_target::attach): Pass target down to
  14783. thread_change_ptid.
  14784. (get_detach_signal): Pass target down to find_thread_ptid.
  14785. Consider last target status's target.
  14786. (linux_resume_one_lwp_throw, resume_lwp)
  14787. (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
  14788. (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
  14789. (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
  14790. (linux_nat_target::async_wait_fd): New.
  14791. (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
  14792. target down.
  14793. * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
  14794. * linux-tdep.c (get_thread_arch_regcache): Pass target down.
  14795. * linux-thread-db.c (struct thread_db_info::process_target): New
  14796. field.
  14797. (add_thread_db_info): Save target.
  14798. (get_thread_db_info): New process_stratum_target parameter. Also
  14799. match target.
  14800. (delete_thread_db_info): New process_stratum_target parameter.
  14801. Also match target.
  14802. (thread_from_lwp): Adjust to pass down target.
  14803. (thread_db_notice_clone): Pass down target.
  14804. (check_thread_db_callback): Pass down target.
  14805. (try_thread_db_load_1): Always push the thread_db target.
  14806. (try_thread_db_load, record_thread): Pass target down.
  14807. (thread_db_target::detach): Pass target down. Always unpush the
  14808. thread_db target.
  14809. (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
  14810. target down. Always unpush the thread_db target.
  14811. (find_new_threads_callback, thread_db_find_new_threads_2)
  14812. (thread_db_target::update_thread_list): Pass target down.
  14813. (thread_db_target::pid_to_str): Pass current inferior down.
  14814. (thread_db_target::get_thread_local_address): Pass target down.
  14815. (thread_db_target::resume, maintenance_check_libthread_db): Pass
  14816. target down.
  14817. * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
  14818. * procfs.c (procfs_target::procfs_init_inferior): Declare.
  14819. (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
  14820. (procfs_init_inferior): Rename to ...
  14821. (procfs_target::procfs_init_inferior): ... this and adjust.
  14822. (procfs_target::create_inferior, procfs_notice_thread)
  14823. (procfs_do_thread_registers): Adjust.
  14824. * ppc-fbsd-tdep.c: Include "inferior.h".
  14825. (ppcfbsd_get_thread_local_address): Pass down target.
  14826. * proc-service.c (ps_xfer_memory): Switch current inferior and
  14827. program space as well.
  14828. (get_ps_regcache): Pass target down.
  14829. * process-stratum-target.c
  14830. (process_stratum_target::thread_address_space)
  14831. (process_stratum_target::thread_architecture): Pass target down.
  14832. * process-stratum-target.h
  14833. (process_stratum_target::threads_executing): New field.
  14834. (as_process_stratum_target): New.
  14835. * ravenscar-thread.c
  14836. (ravenscar_thread_target::update_inferior_ptid): Pass target down.
  14837. (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
  14838. down.
  14839. * record-btrace.c (record_btrace_target::info_record): Adjust.
  14840. (record_btrace_target::record_method)
  14841. (record_btrace_target::record_is_replaying)
  14842. (record_btrace_target::fetch_registers)
  14843. (get_thread_current_frame_id, record_btrace_target::resume)
  14844. (record_btrace_target::wait, record_btrace_target::stop): Pass
  14845. target down.
  14846. * record-full.c (record_full_wait_1): Switch to event thread.
  14847. Pass target down.
  14848. * regcache.c (regcache::regcache)
  14849. (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
  14850. process_stratum_target parameter and handle it.
  14851. (current_thread_target): New global.
  14852. (get_thread_regcache): Add process_stratum_target parameter and
  14853. handle it. Switch inferior before calling target method.
  14854. (get_thread_regcache): Pass target down.
  14855. (get_thread_regcache_for_ptid): Pass target down.
  14856. (registers_changed_ptid): Add process_stratum_target parameter and
  14857. handle it.
  14858. (registers_changed_thread, registers_changed): Pass target down.
  14859. (test_get_thread_arch_aspace_regcache): New.
  14860. (current_regcache_test): Define a couple local test_target_ops
  14861. instances and use them for testing.
  14862. (readwrite_regcache): Pass process_stratum_target parameter.
  14863. (cooked_read_test, cooked_write_test): Pass mock_target down.
  14864. * regcache.h (get_thread_regcache, get_thread_arch_regcache)
  14865. (get_thread_arch_aspace_regcache): Add process_stratum_target
  14866. parameter.
  14867. (regcache::target): New method.
  14868. (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
  14869. (regcache::registers_changed_ptid): Add process_stratum_target
  14870. parameter.
  14871. (regcache::m_target): New field.
  14872. (registers_changed_ptid): Add process_stratum_target parameter.
  14873. * remote.c (remote_state::supports_vCont_probed): New field.
  14874. (remote_target::async_wait_fd): New method.
  14875. (remote_unpush_and_throw): Add remote_target parameter.
  14876. (get_current_remote_target): Adjust.
  14877. (remote_target::remote_add_inferior): Push target.
  14878. (remote_target::remote_add_thread)
  14879. (remote_target::remote_notice_new_inferior)
  14880. (get_remote_thread_info): Pass target down.
  14881. (remote_target::update_thread_list): Skip threads of inferiors
  14882. bound to other targets. (remote_target::close): Don't discard
  14883. inferiors. (remote_target::add_current_inferior_and_thread)
  14884. (remote_target::process_initial_stop_replies)
  14885. (remote_target::start_remote)
  14886. (remote_target::remote_serial_quit_handler): Pass down target.
  14887. (remote_target::remote_unpush_target): New remote_target
  14888. parameter. Unpush the target from all inferiors.
  14889. (remote_target::remote_unpush_and_throw): New remote_target
  14890. parameter. Pass it down.
  14891. (remote_target::open_1): Check whether the current inferior has
  14892. execution instead of checking whether any inferior is live. Pass
  14893. target down.
  14894. (remote_target::remote_detach_1): Pass down target. Use
  14895. remote_unpush_target.
  14896. (extended_remote_target::attach): Pass down target.
  14897. (remote_target::remote_vcont_probe): Set supports_vCont_probed.
  14898. (remote_target::append_resumption): Pass down target.
  14899. (remote_target::append_pending_thread_resumptions)
  14900. (remote_target::remote_resume_with_hc, remote_target::resume)
  14901. (remote_target::commit_resume): Pass down target.
  14902. (remote_target::remote_stop_ns): Check supports_vCont_probed.
  14903. (remote_target::interrupt_query)
  14904. (remote_target::remove_new_fork_children)
  14905. (remote_target::check_pending_events_prevent_wildcard_vcont)
  14906. (remote_target::remote_parse_stop_reply)
  14907. (remote_target::process_stop_reply): Pass down target.
  14908. (first_remote_resumed_thread): New remote_target parameter. Pass
  14909. it down.
  14910. (remote_target::wait_as): Pass down target.
  14911. (unpush_and_perror): New remote_target parameter. Pass it down.
  14912. (remote_target::readchar, remote_target::remote_serial_write)
  14913. (remote_target::getpkt_or_notif_sane_1)
  14914. (remote_target::kill_new_fork_children, remote_target::kill): Pass
  14915. down target.
  14916. (remote_target::mourn_inferior): Pass down target. Use
  14917. remote_unpush_target.
  14918. (remote_target::core_of_thread)
  14919. (remote_target::remote_btrace_maybe_reopen): Pass down target.
  14920. (remote_target::pid_to_exec_file)
  14921. (remote_target::thread_handle_to_thread_info): Pass down target.
  14922. (remote_target::async_wait_fd): New.
  14923. * riscv-fbsd-tdep.c: Include "inferior.h".
  14924. (riscv_fbsd_get_thread_local_address): Pass down target.
  14925. * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
  14926. * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
  14927. (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
  14928. Adjust.
  14929. * solib-spu.c (spu_skip_standalone_loader): Pass down target.
  14930. * solib-svr4.c (enable_break): Pass down target.
  14931. * spu-multiarch.c (parse_spufs_run): Pass down target.
  14932. * spu-tdep.c (spu2ppu_sniffer): Pass down target.
  14933. * target-delegates.c: Regenerate.
  14934. * target.c (g_target_stack): Delete.
  14935. (current_top_target): Return the current inferior's top target.
  14936. (target_has_execution_1): Refer to the passed-in inferior's top
  14937. target.
  14938. (target_supports_terminal_ours): Check whether the initial
  14939. inferior was already created.
  14940. (decref_target): New.
  14941. (target_stack::push): Incref/decref the target.
  14942. (push_target, push_target, unpush_target): Adjust.
  14943. (target_stack::unpush): Defref target.
  14944. (target_is_pushed): Return bool. Adjust to refer to the current
  14945. inferior's target stack.
  14946. (dispose_inferior): Delete, and inline parts ...
  14947. (target_preopen): ... here. Only dispose of the current inferior.
  14948. (target_detach): Hold strong target reference while detaching.
  14949. Pass target down.
  14950. (target_thread_name): Add assertion.
  14951. (target_resume): Pass down target.
  14952. (target_ops::beneath, find_target_at): Adjust to refer to the
  14953. current inferior's target stack.
  14954. (get_dummy_target): New.
  14955. (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
  14956. has a thread running.
  14957. (initialize_targets): Rename to ...
  14958. (_initialize_target): ... this.
  14959. * target.h: Include "gdbsupport/refcounted-object.h".
  14960. (struct target_ops): Inherit refcounted_object.
  14961. (target_ops::shortname, target_ops::longname): Make const.
  14962. (target_ops::async_wait_fd): New method.
  14963. (decref_target): Declare.
  14964. (struct target_ops_ref_policy): New.
  14965. (target_ops_ref): New typedef.
  14966. (get_dummy_target): Declare function.
  14967. (target_is_pushed): Return bool.
  14968. * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
  14969. (all_matching_threads_iterator::all_matching_threads_iterator):
  14970. Handle filter target.
  14971. * thread-iter.h (struct all_matching_threads_iterator, struct
  14972. all_matching_threads_range, class all_non_exited_threads_range):
  14973. Filter by target too. Remove explicit.
  14974. * thread.c (threads_executing): Delete.
  14975. (inferior_thread): Pass down current inferior.
  14976. (clear_thread_inferior_resources): Pass down thread pointer
  14977. instead of ptid_t.
  14978. (add_thread_silent, add_thread_with_info, add_thread): Add
  14979. process_stratum_target parameter. Use it for thread and inferior
  14980. searches.
  14981. (is_current_thread): New.
  14982. (thread_info::deletable): Use it.
  14983. (find_thread_ptid, thread_count, in_thread_list)
  14984. (thread_change_ptid, set_resumed, set_running): New
  14985. process_stratum_target parameter. Pass it down.
  14986. (set_executing): New process_stratum_target parameter. Pass it
  14987. down. Adjust reference to 'threads_executing'.
  14988. (threads_are_executing): New process_stratum_target parameter.
  14989. Adjust reference to 'threads_executing'.
  14990. (set_stop_requested, finish_thread_state): New
  14991. process_stratum_target parameter. Pass it down.
  14992. (switch_to_thread): Also match inferior.
  14993. (switch_to_thread): New process_stratum_target parameter. Pass it
  14994. down.
  14995. (update_threads_executing): Reimplement.
  14996. * top.c (quit_force): Pop targets from all inferior.
  14997. (gdb_init): Don't call initialize_targets.
  14998. * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
  14999. Declare.
  15000. (windows_add_thread, windows_delete_thread): Adjust.
  15001. (get_windows_debug_event): Rename to ...
  15002. (windows_nat_target::get_windows_debug_event): ... this. Adjust.
  15003. * tracefile-tfile.c (tfile_target_open): Pass down target.
  15004. * gdbsupport/common-gdbthread.h (struct process_stratum_target):
  15005. Forward declare.
  15006. (switch_to_thread): Add process_stratum_target parameter.
  15007. * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
  15008. parameter. Use it.
  15009. (mi_on_resume): Pass target down.
  15010. * nat/fork-inferior.c (startup_inferior): Add
  15011. process_stratum_target parameter. Pass it down.
  15012. * nat/fork-inferior.h (startup_inferior): Add
  15013. process_stratum_target parameter.
  15014. * python/py-threadevent.c (py_get_event_thread): Pass target down.
  15015. 2020-01-10 Pedro Alves <palves@redhat.com>
  15016. * remote.c (remote_target::start_remote): Don't set inferior_ptid
  15017. directly. Instead find the first thread in the thread list and
  15018. use switch_to_thread.
  15019. 2020-01-10 Pedro Alves <palves@redhat.com>
  15020. * remote.c (remote_target::remote_add_inferior): Don't bind a
  15021. process to the current inferior if the current inferior is already
  15022. bound to a process.
  15023. 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  15024. Pedro Alves <palves@redhat.com>
  15025. * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
  15026. If no process is specified, return null_ptid instead of
  15027. inferior_ptid.
  15028. (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
  15029. TARGET_WAITKIND_SIGNALLED with no pid.
  15030. 2020-01-10 Pedro Alves <palves@redhat.com>
  15031. * remote.c (first_remote_resumed_thread): New.
  15032. (remote_target::wait_as): Use it as default event_ptid instead of
  15033. inferior_ptid.
  15034. 2020-01-10 Pedro Alves <palves@redhat.com>
  15035. * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
  15036. 2020-01-10 Pedro Alves <palves@redhat.com>
  15037. * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
  15038. not -1.
  15039. 2020-01-10 Pedro Alves <palves@redhat.com>
  15040. * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
  15041. ptid to get_last_target_status.
  15042. * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
  15043. ptid to get_last_target_status.
  15044. * infcmd.c (continue_command): Don't pass a target_waitstatus to
  15045. get_last_target_status.
  15046. (info_program_command): Don't pass a target_waitstatus to
  15047. get_last_target_status.
  15048. * infrun.c (init_wait_for_inferior): Use
  15049. nullify_last_target_wait_ptid.
  15050. (get_last_target_status): Handle nullptr arguments.
  15051. (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
  15052. (print_stop_event): Don't pass a ptid to get_last_target_status.
  15053. (normal_stop): Don't pass a ptid to get_last_target_status.
  15054. * infrun.h (get_last_target_status, set_last_target_status): Move
  15055. comments here and update.
  15056. (nullify_last_target_wait_ptid): Declare.
  15057. * linux-fork.c (fork_load_infrun_state): Remove local extern
  15058. declaration of nullify_last_target_wait_ptid.
  15059. * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
  15060. to get_last_target_status.
  15061. 2020-01-10 Pedro Alves <palves@redhat.com>
  15062. * gdbthread.h (scoped_restore_current_thread)
  15063. <dont_restore, restore, m_dont_restore>: Declare.
  15064. * thread.c (thread_alive): Add assertion. Return bool.
  15065. (switch_to_thread_if_alive): New.
  15066. (prune_threads): Switch inferior/thread.
  15067. (print_thread_info_1): Switch thread before calling target methods.
  15068. (scoped_restore_current_thread::restore): New, factored out from
  15069. ...
  15070. (scoped_restore_current_thread::~scoped_restore_current_thread):
  15071. ... this.
  15072. (scoped_restore_current_thread::scoped_restore_current_thread):
  15073. Add assertion.
  15074. (thread_apply_all_command, thread_select): Use
  15075. switch_to_thread_if_alive.
  15076. * infrun.c (proceed, restart_threads, handle_signal_stop)
  15077. (switch_back_to_stepped_thread): Switch current thread before
  15078. calling target methods.
  15079. 2020-01-10 Pedro Alves <palves@redhat.com>
  15080. * inferior.c (switch_to_inferior_no_thread): New function,
  15081. factored out from ...
  15082. (inferior_command): ... here.
  15083. * inferior.h (switch_to_inferior_no_thread): Declare.
  15084. * mi/mi-main.c (run_one_inferior): Use
  15085. switch_to_inferior_no_thread.
  15086. 2020-01-10 Pedro Alves <palves@redhat.com>
  15087. * infcmd.c (kill_command): Remove dead code.
  15088. 2020-01-10 Pedro Alves <palves@redhat.com>
  15089. * remote.c (remote_target::mourn_inferior): No longer check
  15090. whether the target is running.
  15091. 2020-01-10 Pedro Alves <palves@redhat.com>
  15092. * corelow.c (core_target::has_execution): Change parameter type to
  15093. inferior pointer.
  15094. * inferior.c (number_of_live_inferiors): Use
  15095. inferior::has_execution instead of target_has_execution_1.
  15096. * inferior.h (inferior::has_execution): New.
  15097. * linux-thread-db.c (thread_db_target::update_thread_list): Use
  15098. inferior::has_execution instead of target_has_execution_1.
  15099. * process-stratum-target.c
  15100. (process_stratum_target::has_execution): Change parameter type to
  15101. inferior pointer. Check the inferior's PID instead of
  15102. inferior_ptid.
  15103. * process-stratum-target.h
  15104. (process_stratum_target::has_execution): Change parameter type to
  15105. inferior pointer.
  15106. * record-full.c (record_full_core_target::has_execution): Change
  15107. parameter type to inferior pointer.
  15108. * target.c (target_has_execution_1): Change parameter type to
  15109. inferior pointer.
  15110. (target_has_execution_current): Adjust.
  15111. * target.h (target_ops::has_execution): Change parameter type to
  15112. inferior pointer.
  15113. (target_has_execution_1): Change parameter type to inferior
  15114. pointer. Change return type to bool.
  15115. * tracefile.h (tracefile_target::has_execution): Change parameter
  15116. type to inferior pointer.
  15117. 2020-01-10 Pedro Alves <palves@redhat.com>
  15118. * exceptions.c (print_flush): Remove current_top_target() check.
  15119. 2020-01-10 Pedro Alves <palves@redhat.com>
  15120. * remote.c (show_remote_exec_file): Show the current inferior's
  15121. exec-file instead of the command variable's value.
  15122. 2020-01-10 Pedro Alves <palves@redhat.com>
  15123. * record-full.c (record_full_resume_ptid): New global.
  15124. (record_full_target::resume): Set it.
  15125. (record_full_wait_1): Use record_full_resume_ptid instead of
  15126. inferior_ptid.
  15127. 2020-01-10 Pedro Alves <palves@redhat.com>
  15128. * gdbthread.h (scoped_restore_current_thread)
  15129. <dont_restore, restore, m_dont_restore>: Declare.
  15130. * thread.c (thread_alive): Add assertion. Return bool.
  15131. (switch_to_thread_if_alive): New.
  15132. (prune_threads): Switch inferior/thread.
  15133. (print_thread_info_1): Switch thread before calling target methods.
  15134. (scoped_restore_current_thread::restore): New, factored out from
  15135. ...
  15136. (scoped_restore_current_thread::~scoped_restore_current_thread):
  15137. ... this.
  15138. (scoped_restore_current_thread::scoped_restore_current_thread):
  15139. Add assertion.
  15140. (thread_apply_all_command, thread_select): Use
  15141. switch_to_thread_if_alive.
  15142. 2020-01-10 George Barrett <bob@bob131.so>
  15143. * stap-probe.c (stap_modify_semaphore): Don't check for null
  15144. semaphores.
  15145. (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
  15146. for null semaphores.
  15147. 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
  15148. * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
  15149. all source windows, and maintain horizontal scroll status while
  15150. doing so.
  15151. 2020-01-09 Tom Tromey <tom@tromey.com>
  15152. PR tui/18932:
  15153. * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
  15154. update_source_window, not print_source_lines.
  15155. 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
  15156. * tui/tui.c (tui_enable): Register tui hooks after calling
  15157. tui_display_main.
  15158. 2020-01-09 Christian Biesinger <cbiesinger@google.com>
  15159. * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
  15160. 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
  15161. * thread.c (print_thread_info_1): Fix indentation.
  15162. 2020-01-09 Christian Biesinger <cbiesinger@google.com>
  15163. * symtab.c (general_symbol_info::compute_and_set_names): Move the
  15164. unique_xmalloc_ptr outside the if to always free the demangled name.
  15165. 2020-01-08 Tom Tromey <tromey@adacore.com>
  15166. * xcoffread.c (enter_line_range, read_xcoff_symtab)
  15167. (process_xcoff_symbol, xcoff_symfile_offsets): Update.
  15168. * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
  15169. (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
  15170. Remove.
  15171. (section_offsets): New typedef.
  15172. * symtab.c (fixup_section, get_msymbol_address): Update.
  15173. * symmisc.c (dump_msymbols): Update.
  15174. * symfile.h (relative_addr_info_to_section_offsets)
  15175. (symfile_map_offsets_to_segments): Update.
  15176. * symfile.c (build_section_addr_info_from_objfile)
  15177. (init_objfile_sect_indices): Update.
  15178. (struct place_section_arg): Change type of "offsets".
  15179. (place_section): Update.
  15180. (relative_addr_info_to_section_offsets): Change type of
  15181. "section_offsets". Remove "num_sections" parameter.
  15182. (default_symfile_offsets, syms_from_objfile_1)
  15183. (set_objfile_default_section_offset): Update.
  15184. (reread_symbols): No need to preserve section offsets by hand.
  15185. (symfile_map_offsets_to_segments): Change type of "offsets".
  15186. * stap-probe.c (relocate_address): Update.
  15187. * stabsread.h (process_one_symbol): Update.
  15188. * solib-target.c (struct lm_info_target) <offsets>: Change type.
  15189. (solib_target_relocate_section_addresses): Update.
  15190. * solib-svr4.c (enable_break, svr4_relocate_main_executable):
  15191. Update.
  15192. * solib-frv.c (frv_relocate_main_executable): Update.
  15193. * solib-dsbt.c (dsbt_relocate_main_executable): Update.
  15194. * solib-aix.c (solib_aix_get_section_offsets): Change return
  15195. type.
  15196. (solib_aix_solib_create_inferior_hook): Update.
  15197. * remote.c (remote_target::get_offsets): Update.
  15198. * psymtab.c (find_pc_sect_psymtab): Update.
  15199. * psympriv.h (struct partial_symbol) <address, text_low,
  15200. text_high>: Update.
  15201. * objfiles.h (obj_section_offset): Update.
  15202. (struct objfile) <section_offsets>: Change type.
  15203. <num_sections>: Remove.
  15204. (objfile_relocate): Update.
  15205. * objfiles.c (entry_point_address_query): Update
  15206. (relocate_one_symbol): Change type of "section_offsets".
  15207. (objfile_relocate1, objfile_relocate1): Change type of
  15208. "new_offsets".
  15209. (objfile_rebase1): Update.
  15210. * mipsread.c (mipscoff_symfile_read): Update.
  15211. (read_alphacoff_dynamic_symtab): Remove "section_offsets"
  15212. parameter.
  15213. * mdebugread.c (parse_symbol): Change type of "section_offsets".
  15214. (parse_external, psymtab_to_symtab_1): Update.
  15215. * machoread.c (macho_symfile_offsets): Update.
  15216. * ia64-tdep.c (ia64_find_unwind_table): Update.
  15217. * hppa-tdep.c (read_unwind_info): Update.
  15218. * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
  15219. * dwarf2read.c (create_addrmap_from_index)
  15220. (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
  15221. (process_psymtab_comp_unit_reader, add_partial_symbol)
  15222. (add_partial_subprogram, process_full_comp_unit)
  15223. (read_file_scope, read_func_scope, read_lexical_block_scope)
  15224. (read_call_site_scope, dwarf2_rnglists_process)
  15225. (dwarf2_ranges_process, dwarf2_ranges_read)
  15226. (dwarf_decode_lines_1, var_decode_location, new_symbol)
  15227. (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
  15228. Update.
  15229. * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
  15230. Update.
  15231. * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
  15232. * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
  15233. (process_one_symbol): Change type of "section_offsets".
  15234. * ctfread.c (get_objfile_text_range): Update.
  15235. * coffread.c (coff_symtab_read, enter_linenos)
  15236. (process_coff_symbol): Update.
  15237. * coff-pe-read.c (add_pe_forwarded_sym): Update.
  15238. * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
  15239. 2020-01-08 Tom Tromey <tromey@adacore.com>
  15240. * dwarf2read.c (parse_macro_definition): Use std::string.
  15241. (parse_macro_definition): Likewise.
  15242. 2020-01-08 Tom Tromey <tromey@adacore.com>
  15243. * dwarf2read.c (abbrev_table_read_table): Use std::vector.
  15244. (ATTR_ALLOC_CHUNK): Remove.
  15245. 2020-01-08 Tom Tromey <tromey@adacore.com>
  15246. * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
  15247. 2020-01-08 Tom Tromey <tromey@adacore.com>
  15248. * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
  15249. (dwarf2_compute_name, open_dwo_file): Likewise.
  15250. (process_enumeration_scope): Use std::vector.
  15251. (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
  15252. (partial_die_info::fixup, dwarf2_start_subfile)
  15253. (guess_full_die_structure_name, dwarf2_name): Likewise.
  15254. (determine_prefix): Update.
  15255. (guess_full_die_structure_name): Make return type const.
  15256. (partial_die_full_name): Return unique_xmalloc_ptr.
  15257. (DW_FIELD_ALLOC_CHUNK): Remove.
  15258. 2020-01-07 Tom Tromey <tromey@adacore.com>
  15259. PR build/24937:
  15260. * stap-probe.c (class stap_static_probe_ops): Add constructor.
  15261. 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
  15262. * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
  15263. 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
  15264. * stack.c (print_frame_info): Move disassemble_next_line code
  15265. inside source_print block.
  15266. 2020-01-06 Eli Zaretskii <eliz@gnu.org>
  15267. * gdbsupport/gdb_wait.c: Include <signal.h> instead of
  15268. gdb/signals.h, as we are now using native signal symbols.
  15269. 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
  15270. * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
  15271. overflow by an early check of content vs threshold.
  15272. * tui/tui-source.c (tui_source_window::line_is_displayed):
  15273. Likewise.
  15274. 2020-01-06 Eli Zaretskii <eliz@gnu.org>
  15275. * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
  15276. 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
  15277. * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
  15278. export table if no section contains it's RVA.
  15279. 2020-01-06 Eli Zaretskii <eliz@gnu.org>
  15280. * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
  15281. 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
  15282. * source.c (print_source_lines_base): Set last_line_listed.
  15283. 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
  15284. * tui/tui-disasm.c: Remove trailing spaces.
  15285. 2020-01-06 Eli Zaretskii <eliz@gnu.org>
  15286. Pedro Alves <palves@redhat.com>
  15287. * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
  15288. * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
  15289. (windows_gdb_signal_to_target): New function, uses the above
  15290. enumeration to convert GDB internal signal codes to equivalent
  15291. Windows codes.
  15292. (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
  15293. * windows-nat.c: Include "gdb_wait.h".
  15294. (get_windows_debug_event): Extract the fatal exception from the
  15295. exit status and convert to the equivalent Posix signal number.
  15296. * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
  15297. possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
  15298. * gdbsupport/gdb_wait.c: New file, implements
  15299. windows_status_to_termsig.
  15300. * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
  15301. (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
  15302. 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
  15303. * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
  15304. show_layout.
  15305. 2020-01-05 Luis Machado <luis.machado@linaro.org>
  15306. * aarch64-linux-nat.c
  15307. (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
  15308. and bfd_mach_aarch64.
  15309. 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  15310. * ui-file.c (stdio_file::can_emit_style_escape)
  15311. (tee_file::can_emit_style_escape): Ensure style is used also on
  15312. gdb_stderr when gdb_stderr is a tty supporting styling, similarly
  15313. to gdb_stdout.
  15314. * main.c (set_gdb_data_directory): Use file style to output the
  15315. warning that the given pathname is not a directory.
  15316. * top.c (show_history_filename, gdb_safe_append_history)
  15317. (show_gdb_datadir): Use file style.
  15318. 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
  15319. * solib-target.c (struct lm_info_target):
  15320. Change offsets to be a unique_xmalloc_ptr.
  15321. (solib_target_relocate_section_addresses): Update.
  15322. 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
  15323. * windows-nat.c (windows_clear_solib): Free so_list linked list.
  15324. 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
  15325. * MAINTAINERS (Write After Approval): Add myself.
  15326. 2020-01-02 Luis Machado <luis.machado@linaro.org>
  15327. * proc-service.c (get_ps_regcache): Remove reference to obsolete
  15328. Cell BE architecture.
  15329. * target.h (struct target_ops) <thread_architecture>: Likewise.
  15330. 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
  15331. * Makefile.in: Use INSTALL_PROGRAM_ENV.
  15332. 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
  15333. * MAINTAINERS (Write After Approval): Add myself.
  15334. 2020-01-01 Joel Brobecker <brobecker@adacore.com>
  15335. * gdbarch.sh: Update copyright year range of generated files.
  15336. 2020-01-01 Joel Brobecker <brobecker@adacore.com>
  15337. Update copyright year range in all GDB files.
  15338. 2020-01-01 Joel Brobecker <brobecker@adacore.com>
  15339. * copyright.py: Convert to Python 3.
  15340. 2020-01-01 Joel Brobecker <brobecker@adacore.com>
  15341. * copyright.py: Adapt after move of gnulib directory from gdb
  15342. directory to toplevel directory.
  15343. 2020-01-01 Joel Brobecker <brobecker@adacore.com>
  15344. * copyright.py (main): Exit if run from the wrong directory.
  15345. 2020-01-01 Joel Brobecker <brobecker@adacore.com>
  15346. * top.c (print_gdb_version): Change copyright year to 2020.
  15347. 2020-01-01 Joel Brobecker <brobecker@adacore.com>
  15348. * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
  15349. For older changes see ChangeLog-2019.
  15350. Local Variables:
  15351. mode: change-log
  15352. left-margin: 8
  15353. fill-column: 74
  15354. version-control: never
  15355. coding: utf-8
  15356. End: