ChangeLog-2021 263 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545
  1. 2021-07-06 Tom de Vries <tdevries@suse.de>
  2. * dwarf2/read.c (scan_partial_symbols): Skip top-level imports of
  3. c++ CU.
  4. * testsuite/gdb.dwarf2/imported-unit-bp.exp: Moved to ...
  5. * testsuite/gdb.dwarf2/imported-unit-bp.exp.tcl: ... here.
  6. * testsuite/gdb.dwarf2/imported-unit-bp-c++.exp: New test.
  7. * testsuite/gdb.dwarf2/imported-unit-bp-c.exp: New test.
  8. * testsuite/gdb.dwarf2/imported-unit.exp: Update.
  9. 2021-07-03 Joel Brobecker <brobecker@adacore.com>
  10. * NEWS: Create a new section for the next release branch.
  11. Rename the section of the current branch, now that it has
  12. been cut.
  13. 2021-07-03 Joel Brobecker <brobecker@adacore.com>
  14. GDB 11 branch created (4b51505e33441c6165e7789fa2b6d21930242927):
  15. * version.in: Bump version to 12.0.50.DATE-git.
  16. 2021-07-03 Tom Tromey <tom@tromey.com>
  17. * dwarf2/read.c (lnp_state_machine::record_line): Use 'true'.
  18. (dwarf_decode_lines): Remove '=='.
  19. 2021-07-02 Tom Tromey <tromey@adacore.com>
  20. * ada-exp.y (chop_selector, chop_separator, write_selectors)
  21. (write_ambiguous_var, get_symbol_field_type): Use const.
  22. 2021-07-02 Pedro Alves <pedro@palves.net>
  23. Hannes Domani <ssbssa@yahoo.de>
  24. * NEWS: Add new "TUI Improvements" section and mention mouse
  25. support and that unrecognized special keys are now passed to
  26. GDB. Mention Python Window.click in the Python improvements
  27. section.
  28. 2021-07-01 Pedro Alves <pedro@palves.net>
  29. PR mi/15729
  30. PR gdb/13463
  31. * linux-nat.c (linux_nat_target::detach): Close the
  32. /proc/<pid>/mem file if it was open for this process.
  33. (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>: Close the
  34. /proc/<pid>/mem file if it was open for this process.
  35. (linux_nat_target::mourn_inferior): Close the /proc/<pid>/mem file
  36. if it was open for this process.
  37. (linux_nat_target::xfer_partial): Adjust. Do not fall back to
  38. inf_ptrace_target::xfer_partial for memory accesses.
  39. (last_proc_mem_file): New.
  40. (maybe_close_proc_mem_file): New.
  41. (linux_proc_xfer_memory_partial_pid): New, with bits factored out
  42. from linux_proc_xfer_partial.
  43. (linux_proc_xfer_partial): Delete.
  44. (linux_proc_xfer_memory_partial): New.
  45. 2021-06-29 Simon Marchi <simon.marchi@polymtl.ca>
  46. * frame.h (FRAME_SCOPED_DEBUG_ENTER_EXIT): New.
  47. * frame.c (compute_frame_id, get_prev_frame_always_1,
  48. get_prev_frame): Use FRAME_SCOPED_DEBUG_ENTER_EXIT.
  49. * frame-unwind.c (frame_unwind_find_by_frame): Likewise.
  50. (frame_unwind_register_value): Likewise.
  51. 2021-06-29 Simon Marchi <simon.marchi@polymtl.ca>
  52. * frame-unwind.h (struct frame_unwind) <name>: New. Update
  53. instances everywhere to include this field.
  54. * frame-unwind.c (frame_unwind_try_unwinder,
  55. frame_unwind_find_by_frame): Add debug messages.
  56. 2021-06-29 Simon Marchi <simon.marchi@polymtl.ca>
  57. * frame.h (frame_debug_printf): New.
  58. * frame.c: Use frame_debug_printf throughout when printing frame
  59. debug messages.
  60. * amd64-windows-tdep.c: Likewise.
  61. * value.c: Likewise.
  62. 2021-06-29 Simon Marchi <simon.marchi@polymtl.ca>
  63. * frame.h (frame_debug): Change type to bool.
  64. * frame.c (frame_debug): Change type to bool.
  65. (_initialize_frame): Adjust.
  66. 2021-06-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  67. * gdbthread.h (find_thread_ptid): Remove the duplicate declaration.
  68. 2021-06-28 Simon Marchi <simon.marchi@polymtl.ca>
  69. PR gdb/28017
  70. * machoread.c (macho_symfile_offsets): Use
  71. gdb_bfd_count_sections to allocate objfile::section_offsets.
  72. 2021-06-28 Simon Marchi <simon.marchi@polymtl.ca>
  73. * objfiles.h (struct obj_section): Move down.
  74. <offset, set_offset, addr, endaddr>: New.
  75. (obj_section_offset, obj_section_addr, obj_section_endaddr),
  76. replace all users to use obj_section methods.
  77. (struct objfile) <section_offset, set_section_offset>: New.
  78. 2021-06-28 Simon Marchi <simon.marchi@polymtl.ca>
  79. * objfiles.h (struct obj_section): Move down.
  80. <offset, set_offset, addr, endaddr>: New.
  81. (obj_section_offset, obj_section_addr, obj_section_endaddr),
  82. replace all users to use obj_section methods.
  83. (struct objfile) <section_offset, set_section_offset>: New.
  84. 2021-06-28 Simon Marchi <simon.marchi@polymtl.ca>
  85. * .flake8: New.
  86. 2021-06-28 Luis Machado <luis.machado@linaro.org>
  87. * aarch64-linux-tdep.c (aarch64_linux_memtag_matches_p): Remove the top
  88. byte.
  89. (aarch64_linux_set_memtags): Likewise.
  90. (aarch64_linux_get_memtag): Likewise.
  91. (aarch64_linux_report_signal_info): Likewise.
  92. 2021-06-28 Luis Machado <luis.machado@linaro.org>
  93. * aarch64-linux-tdep.c
  94. (aarch64_linux_iterate_over_regset_sections): Fix FFR register size.
  95. 2021-06-28 Luis Machado <luis.machado@linaro.org>
  96. * aarch64-linux-tdep.c
  97. (aarch64_linux_iterate_over_regset_sections): Update tag_ctl register
  98. size.
  99. * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_MTE_REGSET): Set to
  100. 8 and update comments.
  101. 2021-06-28 Simon Marchi <simon.marchi@polymtl.ca>
  102. * gdbarch.sh (struct gdbarch_info): Initialize fields, add
  103. constructor.
  104. * gdbarch.h: Re-generate.
  105. * arch-utils.h (gdbarch_info_init): Remove, delete all usages.
  106. * arch-utils.c (gdbarch_info_init): Remove.
  107. 2021-06-28 Simon Marchi <simon.marchi@polymtl.ca>
  108. * gdbarch.sh (struct gdbarch_info) <tdep_info>: Remove.
  109. (gdbarch_find_by_info): Remove print.
  110. * gdbarch.c, gdbarch.h: Re-generate.
  111. 2021-06-28 Andrew Burgess <andrew.burgess@embecosm.com>
  112. * remote.c (remote_target::start_remote): Set 'starting_up' using
  113. boolean values instead of integers.
  114. 2021-06-25 Simon Marchi <simon.marchi@polymtl.ca>
  115. * guile/scm-param.c (struct param_smob) <set_command,
  116. show_command>: Remove.
  117. <commands>: New.
  118. (pascm_is_valid): Adjust.
  119. (add_setshow_generic): Use return values of add_setshow
  120. functions, return a set_show_commands.
  121. (gdbscm_register_parameter_x): Adjust.
  122. 2021-06-25 Simon Marchi <simon.marchi@polymtl.ca>
  123. * command.h (add_setshow_enum_cmd): Remove context parameter.
  124. * cli/cli-decode.c (add_setshow_enum_cmd): Likewise, and don't
  125. set context.
  126. * cli/cli-style.c (cli_style_option::add_setshow_commands): Set
  127. context here.
  128. 2021-06-25 Simon Marchi <simon.marchi@polymtl.ca>
  129. * cli/cli-decode.h (struct cmd_list_element) <set_context>: Add
  130. assert.
  131. 2021-06-25 Simon Marchi <simon.marchi@polymtl.ca>
  132. * cli/cli-decode.h (struct cmd_list_element) <set_context,
  133. context>: New.
  134. <context>: Rename to...
  135. <m_context>: ... this.
  136. * cli/cli-decode.c (set_cmd_context, get_cmd_context): Remove.
  137. * command.h (set_cmd_context, get_cmd_context): Remove, use
  138. cmd_list_element::set_context and cmd_list_element::context
  139. everywhere instead.
  140. 2021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
  141. * NEWS: Mention changes to 'info sources'.
  142. * symtab.c (info_sources_filter::print): Delete.
  143. (struct output_source_filename_data) <print_header>: Delete
  144. declaration. <printed_filename_p>: New member function.
  145. (output_source_filename_data::print_header): Delete.
  146. (info_sources_worker): Update group-by-objfile style output to
  147. make it CLI suitable, simplify non-group-by-objfile now this is
  148. only used from the MI.
  149. (info_sources_command): Make group-by-objfile be the default for
  150. CLI info sources command.
  151. * symtab.h (struct info_sources_filter) <print>: Delete.
  152. 2021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
  153. * NEWS: Mention additions to -file-list-exec-source-files.
  154. * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Add
  155. --group-by-objfile option.
  156. * symtab.c (isrc_flag_option_def): Rename to...
  157. (isrc_match_flag_option_def): ...this.
  158. (info_sources_option_defs): Rename to...
  159. (info_sources_match_option_defs): ...this, and update to rename of
  160. isrc_flag_option_def.
  161. (struct filename_grouping_opts): New struct.
  162. (isrc_grouping_flag_option_def): New type.
  163. (info_sources_grouping_option_defs): New static global.
  164. (make_info_sources_options_def_group): Update to return two option
  165. groups.
  166. (info_sources_command_completer): Update for changes to
  167. make_info_sources_options_def_group.
  168. (info_sources_worker): Add extra parameter, use this to display
  169. alternative output format.
  170. (info_sources_command): Pass extra parameter to
  171. info_sources_worker.
  172. (_initialize_symtab): Update for changes to
  173. make_info_sources_options_def_group.
  174. * symtab.h (info_sources_worker): Add extra parameter.
  175. 2021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
  176. * NEWS: Mention additions to -file-list-exec-source-files.
  177. * mi/mi-cmd-file.c (print_partial_file_name): Delete.
  178. (mi_cmd_file_list_exec_source_files): Rewrite to handle command
  179. options, and make use of info_sources_worker.
  180. * symtab.c (struct info_sources_filter): Moved to symtab.h.
  181. (info_sources_filter::print): Take uiout argument, produce output
  182. through uiout.
  183. (struct output_source_filename_data)
  184. <output_source_filename_data>: Take uiout argument, store into
  185. m_uiout. <output>: Rewrite comment, add additional arguments to
  186. declaration. <operator()>: Send more arguments to
  187. output. <m_uiout>: New member variable.
  188. (output_source_filename_data::output): Take extra arguments,
  189. produce output through m_uiout, and structure for MI.
  190. (output_source_filename_data::print_header): Produce output
  191. through m_uiout.
  192. (info_sources_worker): New function, the implementation is taken
  193. from info_sources_command, but modified so produce output through
  194. a ui_out.
  195. (info_sources_command): The second half of this function has gone
  196. to become info_sources_worker.
  197. * symtab.h (struct info_sources_filter): Moved from symtab.c, add
  198. extra parameter to print member function.
  199. (info_sources_worker): Declare.
  200. 2021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
  201. * symtab.c (struct info_sources_filter): New.
  202. (info_sources_filter::info_sources_filter): New function.
  203. (info_sources_filter::matches): New function.
  204. (info_sources_filter::print): New function.
  205. (struct filename_partial_match_opts): Moved to later in the file
  206. and update the comment.
  207. (struct output_source_filename_data)
  208. <output_source_filename_data>: New constructor. <regexp>: Delete,
  209. this is now in info_sources_filter. <c_regexp>: Delete, this is
  210. now in info_sources_filter. <reset_output>: New member function.
  211. <filename_seen_cache>: Rename to m_filename_seen_cache, change
  212. from being a pointer, to being an actual object. <first>: Rename
  213. to m_first. <print_header>: New member function. <partial_match>:
  214. Delete.
  215. (output_source_filename_data::output): Update now
  216. m_filename_seen_cache is no longer a pointer, and for other member
  217. variable name changes. Add a header comment.
  218. (print_info_sources_header): Renamed to...
  219. (output_source_filename_data::print_header): ...this. Update now
  220. it's a member function and to take account of member variable
  221. renaming.
  222. (info_sources_command): Add a header comment, delete stack local
  223. filename_seen_cache, initialization of output_source_filename_data
  224. is now done by the constructor. Call print_header member function
  225. instead of print_info_sources_header, call reset_output member
  226. function instead of manually performing the reset.
  227. 2021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
  228. * dwarf2/read.c (struct dwarf2_base_index_functions)
  229. <has_unexpanded_symtabs>: Declare.
  230. (dwarf2_base_index_functions::has_unexpanded_symtabs): Define new
  231. function.
  232. * objfiles.h (struct objfile) <has_unexpanded_symtabs>: Declare.
  233. * psympriv.h (struct psymbol_functions) <has_unexpanded_symtabs>:
  234. Declare.
  235. * psymtab.c (psymbol_functions::has_unexpanded_symtabs): Define
  236. new function.
  237. * quick-symbol.h (struct quick_symbol_functions)
  238. <has_unexpanded_symtabs>: Declare.
  239. * symfile-debug.c (objfile::has_unexpanded_symtabs): Define new
  240. function.
  241. 2021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
  242. * infcall.c (call_function_by_hand_dummy): Add missing 'else' when
  243. setting prototyped flag.
  244. 2021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
  245. * ada-lang.c (desc_bounds): Use '{}' instead of NULL to indicate
  246. an empty gdb::optional when calling value_struct_elt.
  247. (desc_data): Likewise.
  248. (desc_one_bound): Likewise.
  249. * eval.c (structop_base_operation::evaluate_funcall): Pass
  250. gdb::array_view, not a gdb::array_view* to value_struct_elt.
  251. (eval_op_structop_struct): Use '{}' instead of NULL to indicate
  252. an empty gdb::optional when calling value_struct_elt.
  253. (eval_op_structop_ptr): Likewise.
  254. * f-lang.c (fortran_structop_operation::evaluate): Likewise.
  255. * guile/scm-value.c (gdbscm_value_field): Likewise.
  256. * m2-lang.c (eval_op_m2_high): Likewise.
  257. (eval_op_m2_subscript): Likewise.
  258. * opencl-lang.c (opencl_structop_operation::evaluate): Likewise.
  259. * python/py-value.c (valpy_getitem): Likewise.
  260. * rust-lang.c (rust_val_print_str): Likewise.
  261. (rust_range): Likewise.
  262. (rust_subscript): Likewise.
  263. (eval_op_rust_structop): Likewise.
  264. (rust_aggregate_operation::evaluate): Likewise.
  265. * valarith.c (value_user_defined_op): Likewise.
  266. * valops.c (search_struct_method): Change parameter type, update
  267. function body accordingly, and update header comment.
  268. (value_struct_elt): Change parameter type, update function body
  269. accordingly.
  270. * value.h (value_struct_elt): Update declaration.
  271. 2021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
  272. PR gdb/27994
  273. * eval.c (structop_base_operation::evaluate_funcall): Pass
  274. array_view instead of array to value_struct_elt.
  275. * valarith.c (value_user_defined_op): Likewise.
  276. * valops.c (typecmp): Change parameter type from array pointer to
  277. array_view. Update header comment, and update body accordingly.
  278. (search_struct_method): Likewise.
  279. (value_struct_elt): Likewise.
  280. * value.h (value_struct_elt): Update declaration.
  281. 2021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
  282. PR gdb/27994
  283. * eval.c (structop_base_operation::evaluate_funcall): Add a
  284. nullptr to the end of the args array, which should not be included
  285. in the argument array_view. Pass all the arguments through to
  286. value_struct_elt.
  287. * valops.c (search_struct_method): Update header comment.
  288. (value_struct_elt): Likewise.
  289. 2021-06-25 Tom Tromey <tom@tromey.com>
  290. * dwarf2/read.c (create_addrmap_from_aranges): Change padding
  291. logic.
  292. 2021-06-25 Tom Tromey <tom@tromey.com>
  293. * dwarf2/read.c (process_psymtab_comp_unit): Don't set 'lang'.
  294. (scan_partial_symbols, partial_die_parent_scope)
  295. (add_partial_symbol, add_partial_subprogram)
  296. (compute_delayed_physnames, rust_union_quirks)
  297. (process_full_comp_unit, process_full_type_unit)
  298. (process_imported_unit_die, process_die, dw2_linkage_name)
  299. (dwarf2_compute_name, dwarf2_physname, read_import_statement)
  300. (read_file_scope, queue_and_load_dwo_tu, read_func_scope)
  301. (read_variable, dwarf2_get_subprogram_pc_bounds)
  302. (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
  303. (dwarf2_attach_fn_fields_to_type)
  304. (quirk_ada_thick_pointer_struct, read_structure_type)
  305. (handle_struct_member_die, process_structure_scope)
  306. (read_array_type, read_array_order, prototyped_function_p)
  307. (read_subroutine_type, dwarf2_init_complex_target_type)
  308. (read_base_type, read_subrange_type, read_unspecified_type)
  309. (load_partial_dies, partial_die_info::fixup, set_cu_language)
  310. (new_symbol, need_gnat_info, determine_prefix, typename_concat)
  311. (dwarf2_canonicalize_name, follow_die_offset)
  312. (prepare_one_comp_unit): Update.
  313. * dwarf2/cu.c (dwarf2_cu::start_symtab): Update.
  314. 2021-06-25 Tom Tromey <tom@tromey.com>
  315. * dwarf2/read.c (read_file_scope): Don't call set_cu_language.
  316. (dwarf_lang_to_enum_language): Rename from set_cu_language. Don't
  317. set language_defn. Handle DW_LANG_OpenCL.
  318. (prepare_one_comp_unit): Check producer and set language_defn.
  319. 2021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
  320. * NEWS: Mention Python BP_CATCHPOINT feature.
  321. * python/py-breakpoint.c (pybp_codes): Add bp_catchpoint support.
  322. (bppy_init): Likewise.
  323. (gdbpy_breakpoint_created): Likewise.
  324. 2021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
  325. * guile/scm-breakpoint.c (bpscm_type_to_string): Handle
  326. bp_catchpoint.
  327. (bpscm_want_scm_wrapper_p): Likewise.
  328. (gdbscm_make_breakpoint): Likewise.
  329. (breakpoint_integer_constants): Likewise.
  330. 2021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
  331. * guile/scm-breakpoint.c (gdbscm_make_breakpoint): Split the error
  332. for invalid breakpoint numbers, and unsupported breakpoint
  333. numbers.
  334. 2021-06-25 Tom Tromey <tom@tromey.com>
  335. * dwarf2/index-write.c (struct addrmap_index_data): Add
  336. initializers.
  337. <operator()>: Declare.
  338. (addrmap_index_data::operator()): Rename from
  339. add_address_entry_worker. Remove 'datap' parameter.
  340. (write_address_map): Update.
  341. * psymtab.c (struct dump_psymtab_addrmap_data): Remove
  342. (dump_psymtab_addrmap_1): Remove 'data' parameter, add other
  343. parameters.
  344. (dump_psymtab_addrmap): Update.
  345. * addrmap.c (struct addrmap_funcs) <foreach>: Remove 'data'
  346. parameter.
  347. (addrmap_foreach, addrmap_fixed_foreach): Likewise.
  348. (struct mutable_foreach_data): Remove.
  349. (addrmap_mutable_foreach_worker): Update.
  350. (addrmap_mutable_foreach): Remove 'data' parameter.
  351. * addrmap.h (addrmap_foreach_fn): Use gdb::function_view.
  352. (addrmap_foreach): Remove 'data' parameter.
  353. 2021-06-25 Tom Tromey <tromey@adacore.com>
  354. * python/py-type.c (typy_get_name): Decode an Ada type name.
  355. 2021-06-25 Tom Tromey <tromey@adacore.com>
  356. * ada-lang.c (ada_decode): Add wrap parameter.
  357. * ada-lang.h (ada_decode): Add wrap parameter.
  358. 2021-06-25 Luis Machado <luis.machado@linaro.org>
  359. * corelow.c (core_target::core_target) Update to read target
  360. description.
  361. 2021-06-22 Simon Marchi <simon.marchi@polymtl.ca>
  362. * python/lib/gdb/__init__.py: Format.
  363. 2021-06-22 Simon Marchi <simon.marchi@polymtl.ca>
  364. * infrun.c (do_target_wait): Remove wait_ptid parameter.
  365. (fetch_inferior_event): Adjust.
  366. 2021-06-22 Simon Marchi <simon.marchi@polymtl.ca>
  367. * python/lib/gdb/__init__.py (_execute_unwinders): Return tuple
  368. with name of chosen unwinder.
  369. * python/py-unwind.c (pyuw_sniffer): Print name of chosen
  370. unwinder in debug message.
  371. 2021-06-22 Andreas Schwab <schwab@suse.de>
  372. PR symtab/27999
  373. * dwarf2/loc.c (decode_debug_loclists_addresses): Support
  374. DW_LLE_start_end.
  375. 2021-06-22 Andrew Burgess <andrew.burgess@embecosm.com>
  376. * breakpoint.c (insert_bp_location): If we catch a
  377. TARGET_CLOSE_ERROR just rethrow it, the breakpoints might have
  378. been deleted.
  379. 2021-06-21 Andrew Burgess <andrew.burgess@embecosm.com>
  380. * NEWS: Mention new target feature name.
  381. * arch/riscv.c (riscv_create_target_description): GDB doesn't
  382. currently create target descriptions containing vector registers.
  383. * arch/riscv.h (struct riscv_gdbarch_features) <vlen>: New member
  384. variable.
  385. <operator==>: Also compare vlen.
  386. <hash>: Also include vlen.
  387. * riscv-tdep.c (riscv_feature_name_vector): New static global.
  388. (struct riscv_vector_feature): New struct.
  389. (riscv_vector_feature): New static global.
  390. (riscv_register_reggroup_p): Ensure vector registers are part of
  391. the 'all' group, and part of the 'vector' group.
  392. (riscv_dwarf_reg_to_regnum): Handle vector registers.
  393. (riscv_gdbarch_init): Check vector register feature.
  394. * riscv-tdep.h: Add vector registers to GDB's internal register
  395. numbers, and to the DWARF register numbers.
  396. 2021-06-21 Andrew Burgess <andrew.burgess@embecosm.com>
  397. * NEWS: Mention the two new methods.
  398. * python/py-frame.c (frapy_level): New function.
  399. (frame_object_methods): Register 'level' method.
  400. * python/py-unwind.c (pending_framepy_level): New function.
  401. (pending_frame_object_methods): Register 'level' method.
  402. 2021-06-21 Andrew Burgess <andrew.burgess@embecosm.com>
  403. * python/py-inferior.c (infpy_get_connection_num): Call
  404. gdb_py_object_from_longest instead of PyLong_FromLong directly.
  405. 2021-06-21 Andrew Burgess <andrew.burgess@embecosm.com>
  406. * python/py-unwind.c (unwind_infopy_add_saved_register): Handle
  407. saving user registers.
  408. 2021-06-19 Mike Frysinger <vapier@gentoo.org>
  409. * acinclude.m4: Delete most m4_include's of ../config files.
  410. * configure.ac: Delete m4_include call and call AC_CONFIG_MACRO_DIR.
  411. * aclocal.m4: Regenerate.
  412. * configure: Regenerate.
  413. 2021-06-17 Pedro Alves <pedro@palves.net>
  414. * scoped_ignore_signal.h (scoped_ignore_signal): Add
  415. ConsumePending template parameter.
  416. (scoped_ignore_signal::~scoped_ignore_signal): Skip calling
  417. sigtimedwait if ConsumePending is false.
  418. (scoped_ignore_sigpipe): Initialize with ConsumePending=true.
  419. * scoped_ignore_sigttou.h (scoped_ignore_sigttou)
  420. <m_ignore_signal>: Initialize with ConsumePending=false.
  421. 2021-06-17 Pedro Alves <pedro@palves.net>
  422. * Makefile.in (SELFTESTS_SRCS): Add
  423. unittests/scoped_ignore_signal-selftests.c.
  424. * unittests/scoped_ignore_signal-selftests.c: New.
  425. 2021-06-17 Pedro Alves <pedro@palves.net>
  426. * gdbsupport/scoped_ignore_signal.h: New.
  427. * compile/compile.c: Include gdbsupport/scoped_ignore_signal.h
  428. instead of <signal.h>. Don't include <unistd.h>.
  429. (scoped_ignore_sigpipe): Remove.
  430. * gdbsupport/scoped_ignore_sigttou.h: Include gdbsupport/scoped_ignore_signal.h
  431. instead of <signal.h>. Don't include <unistd.h>.
  432. (lazy_init): New.
  433. (scoped_ignore_sigttou): Reimplement using scoped_ignore_signal
  434. and lazy_init.
  435. 2021-06-17 Pedro Alves <pedro@palves.net>
  436. * Makefile.in (HFILES_NO_SRCDIR): Remove inflow.h.
  437. * inf-ptrace.c, inflow.c, procfs.c: Don't include "inflow.h".
  438. * inflow.h: Delete, moved to gdbsupport/ under a different name.
  439. * ser-unix.c: Don't include "inflow.h". Include
  440. "gdbsupport/scoped_ignore_sigttou.h".
  441. 2021-06-17 Pedro Alves <pedro@palves.net>
  442. * tui/tui-io.c (tui_dispatch_mouse_event): New, factored out from
  443. ...
  444. (tui_dispatch_ctrl_char): ... this. Move CTRL-L handling to
  445. tui_getc_1.
  446. (cur_seq, start_sequence): New.
  447. (tui_getc_1): Pass key escape sequences for curses control keys to
  448. readline. Handle mouse and ctrl-l here.
  449. (tui_resize_all): Disable/reenable the keypad if the command
  450. window has the focus too.
  451. * tui/tui-win.c (tui_set_focus_command): Don't change keypad
  452. setting.
  453. * tui/tui.c (tui_rl_other_window): Don't change keypad setting.
  454. 2021-06-16 Simon Marchi <simon.marchi@polymtl.ca>
  455. * silent-rules.mk (ECHO_CCLD, ECHO_AR, ECHO_RANLIB): New.
  456. 2021-06-16 Tom de Vries <tdevries@suse.de>
  457. PR symtab/26327
  458. * dwarf2/cu.h (dwarf2_cu::ancestor): Remove.
  459. (dwarf2_cu::get_builder): Declare and move ...
  460. * dwarf2/cu.c (dwarf2_cu::get_builder): ... here. Use sym_cu instead
  461. of ancestor. Assert return value is non-null.
  462. * dwarf2/read.c (read_file_scope): Set per_objfile->sym_cu.
  463. (follow_die_offset, follow_die_sig_1): Remove setting of ancestor.
  464. (dwarf2_per_objfile): Add sym_cu field.
  465. 2021-06-15 Alan Modra <amodra@gmail.com>
  466. * testsuite/lib/gdb.exp (exec_is_pie): Match new PIE readelf output.
  467. 2021-06-14 Mike Frysinger <vapier@gentoo.org>
  468. * Makefile.in (GNULIB_BUILDDIR): Rename to ...
  469. (GNULIB_PARENT_DIR): ... this. Remove "gnulib" from value.
  470. 2021-06-14 John Baldwin <jhb@FreeBSD.org>
  471. * configure.ac: Check for <sys/procctl.h>.
  472. * config.in, configure: Regenerate.
  473. * fbsd-nat.c: Include <sys/procctl.h> if present.
  474. [PROC_ASLR_CTL] (maybe_disable_address_space_randomization): New.
  475. (fbsd_nat_target::create_inferior)
  476. (fbsd_nat_target::supports_disable_randomization): New.
  477. * fbsd-nat.h (fbsd_nat_target::create_inferior)
  478. (fbsd_nat_target::supports_disable_randomization): New.
  479. 2021-06-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
  480. * compile/compile.c: Include missing header signal.h.
  481. 2021-06-12 John Baldwin <jhb@FreeBSD.org>
  482. * remote.c (remote_new_objfile): Fix indentation.
  483. 2021-06-11 Kevin Buettner <kevinb@redhat.com>
  484. * solib.c (libpthread_name_p): Match "libc" in addition
  485. to "libpthread".
  486. * linux-thread-db.c (libpthread_objfile_p): New function.
  487. (libpthread_name_p): Adjust preexisting callers to use
  488. libpthread_objfile_p().
  489. 2021-06-11 Simon Marchi <simon.marchi@polymtl.ca>
  490. * dwarf2/loc.h (struct call_site_stuff): Remove.
  491. 2021-06-11 Tom Tromey <tom@tromey.com>
  492. PR rust/23427
  493. * rust-parse.c (rust_parser::lex_identifier): Handle raw
  494. identifiers.
  495. (rust_lex_tests): Add raw identifier tests.
  496. 2021-06-08 Lancelot Six <lsix@lancelotsix.com>
  497. * python/lib/gdb/FrameDecorator.py (FrameDecorator): Use 'is None'
  498. instead of '== None'.
  499. (FrameVars): Use 'is not None' instead of '!= None'.
  500. * python/lib/gdb/command/frame_filters.py (SetFrameFilterPriority):
  501. Use 'is None' instead of '== None' and 'is not None' instead of '!=
  502. None'.
  503. 2021-06-08 Simon Marchi <simon.marchi@polymtl.ca>
  504. * inferior.h (class inferior) <in_initial_library_scan>: New.
  505. * infcmd.c (post_create_inferior): Set in_initial_library_scan.
  506. * infrun.c (follow_fork_inferior): Likewise.
  507. * linux-thread-db.c (try_thread_db_load): Catch exception thrown
  508. by try_thread_db_load_1
  509. (thread_db_load): Return early if in_initial_library_scan is
  510. set.
  511. * remote.c (remote_new_objfile): Return early if
  512. in_initial_library_scan is set.
  513. 2021-06-07 Pedro Alves <pedro@palves.net>
  514. * dwarf2/read.c (struct partial_die_info): Add defaulted copy
  515. ctor.
  516. * symtab.h (struct symbol): Add defaulted copy assignment
  517. operator.
  518. 2021-06-07 Pedro Alves <pedro@palves.net>
  519. * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
  520. (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): Delete.
  521. (gdb_rl_find_completion_word): Remove write-only 'found_quote'
  522. local.
  523. 2021-06-07 Pedro Alves <pedro@palves.net>
  524. * nat/amd64-linux-siginfo.c (union nat_sigval): Rename to ...
  525. (nat_sigval_t): ... this and remove typedef of same name.
  526. (struct nat_siginfo): Rename to ...
  527. (nat_siginfo_t): ... this and remove typedef of same name.
  528. (struct compat_sigval): Rename to ...
  529. (compat_sigval_t): ... this and remove typedef of same name.
  530. (struct compat_siginfo): Rename to ...
  531. (compat_siginfo_t): ... this and remove typedef of same name.
  532. (struct compat_x32_siginfo): Rename to ...
  533. (compat_x32_siginfo_t): ... this and remove typedef of same name.
  534. (amd64_linux_siginfo_fixup_common): Adjust.
  535. 2021-06-07 Pedro Alves <pedro@palves.net>
  536. * nat/amd64-linux-siginfo.c (compat_x32_siginfo_t): Move
  537. __attribute__ __aligned__ from the typedef to the struct.
  538. 2021-06-07 Andrew Burgess <andrew.burgess@embecosm.com>
  539. PR gdb/27847
  540. * amd64-tdep.c (amd64_has_unaligned_fields): Move call to
  541. type_align, and spot case where the alignment is unknown.
  542. 2021-06-07 Carl Love <cel@us.ibm.com>
  543. * ppc-tdep.h (ppc_insn_prefix_dform): Declare.
  544. * ppc64-tdep.c(insn_md, insn_x, insn_xo): New macros.
  545. (ppc64_plt_pcrel_entry_point, ppc64_pcrel_linkage1_target,
  546. ppc64_pcrel_linkage2_target): New functions.
  547. (ppc64_standard_linkage9, ppc64_standard_linkage10,
  548. ppc64_standard_linkage11, ppc64_standard_linkage12): New ppc
  549. instruction patterns.
  550. (ppc64_standard_linkage9, ppc64_standard_linkage10,
  551. ppc64_standard_linkage11, ppc64_standard_linkage12): New variables
  552. in define MAX expression.
  553. (ppc64_skip_trampoline_code_1): Handle ppc64_standard_linkage9,
  554. ppc64_standard_linkage10, ppc64_standard_linkage11,
  555. ppc64_standard_linkage12.
  556. * (ppc_insn_prefix_dform): New function.
  557. 2021-06-07 Simon Marchi <simon.marchi@polymtl.ca>
  558. PR gdb/27899
  559. * sparc-nat.c (sparc_fetch_inferior_registers): Set
  560. inferior_ptid instead of using switch_to_thread.
  561. (sparc_store_inferior_registers): Likewise.
  562. 2021-06-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
  563. * compile/compile.c (scoped_ignore_sigpipe): New helper class.
  564. (compile_to_object): Ignore SIGPIPE before calling the plugin.
  565. 2021-06-05 Tom Tromey <tom@tromey.com>
  566. * data-directory/Makefile.in (Makefile): Use correct directory
  567. name.
  568. 2021-06-05 Tom Tromey <tom@tromey.com>
  569. * data-directory/Makefile.in (Makefile): Rewrite.
  570. 2021-06-05 Tom Tromey <tromey@adacore.com>
  571. * configure: Rebuild.
  572. * configure.ac: Add ACX_NONCANONICAL_TARGET.
  573. 2021-06-05 Shahab Vahedi <shahab@synopsys.com>
  574. * NEWS: Document 'set disassembler-options' support for the ARC
  575. target.
  576. * arc-tdep.c (arc_gdbarch_init): Set
  577. 'gdbarch_valid_disassembler_options'.
  578. 2021-06-04 Tom Tromey <tromey@adacore.com>
  579. * dwarf2/read.h (dwarf2_fetch_die_type_sect_off): Add 'var_name'
  580. parameter.
  581. * dwarf2/loc.c (dwarf2_evaluate_property) <case
  582. PROP_VARIABLE_NAME>: New case.
  583. (compute_var_value): New function.
  584. (sect_variable_value): Use compute_var_value.
  585. * dwarf2/read.c (attr_to_dynamic_prop): Handle DW_TAG_variable.
  586. (var_decl_name): New function.
  587. (dwarf2_fetch_die_type_sect_off): Add 'var_name' parameter.
  588. * gdbtypes.h (enum dynamic_prop_kind) <PROP_VARIABLE_NAME>: New
  589. constant.
  590. (union dynamic_prop_data) <variable_name>: New member.
  591. (struct dynamic_prop) <variable_name, set_variable_name>: New
  592. methods.
  593. 2021-06-04 Andrew Burgess <andrew.burgess@embecosm.com>
  594. * remote.c (remote_target)
  595. <select_thread_for_ambiguous_stop_reply>: Add additional debug
  596. output.
  597. 2021-06-04 Hannes Domani <ssbssa@yahoo.de>
  598. * python/py-tui.c (class tui_py_window): Add click function.
  599. (tui_py_window::click): Likewise.
  600. 2021-06-04 Hannes Domani <ssbssa@yahoo.de>
  601. * ser-mingw.c (console_select_thread): Handle MOUSE_EVENT.
  602. * tui/tui-data.h (struct tui_win_info): Add click function.
  603. * tui/tui-io.c (tui_prep_terminal): Enable mouse events.
  604. (tui_deprep_terminal): Disable mouse events.
  605. (tui_dispatch_ctrl_char): Handle KEY_MOUSE.
  606. * tui/tui.c (tui_disable): Disable mouse events.
  607. 2021-06-03 Magne Hov <mhov@undo.io>
  608. PR python/27841
  609. * eval.c (expression::evaluate): Check inferior_ptid.
  610. 2021-06-03 Pedro Alves <pedro@palves.net>
  611. * MAINTAINERS (The Official FSF-appointed GDB Maintainers): Remove
  612. affiliation.
  613. (Global Maintainers): Update my address.
  614. (Write After Approval): Remove stale entry.
  615. 2021-06-03 John Baldwin <jhb@FreeBSD.org>
  616. * fbsd-tdep.c (FBSD_SI_USER, FBSD_SI_QUEUE, FBSD_SI_TIMER)
  617. (FBSD_SI_ASYNCIO, FBSD_SI_MESGQ, FBSD_SI_KERNEL, FBSD_SI_LWP)
  618. (FBSD_ILL_ILLOPC, FBSD_ILL_ILLOPN, FBSD_ILL_ILLADR)
  619. (FBSD_ILL_ILLTRP, FBSD_ILL_PRVOPC, FBSD_ILL_PRVREG)
  620. (FBSD_ILL_COPROC, FBSD_ILL_BADSTK, FBSD_BUS_ADRALN)
  621. (FBSD_BUS_ADRERR, FBSD_BUS_OBJERR, FBSD_BUS_OOMERR)
  622. (FBSD_SEGV_MAPERR, FBSD_SEGV_ACCERR, FBSD_SEGV_PKUERR)
  623. (FBSD_FPE_INTOVF, FBSD_FPE_INTDIV, FBSD_FPE_FLTDIV)
  624. (FBSD_FPE_FLTOVF, FBSD_FPE_FLTUND, FBSD_FPE_FLTRES)
  625. (FBSD_FPE_FLTINV, FBSD_FPE_FLTSUB, FBSD_TRAP_BRKPT)
  626. (FBSD_TRAP_TRACE, FBSD_TRAP_DTRACE, FBSD_TRAP_CAP)
  627. (FBSD_CLD_EXITED, FBSD_CLD_KILLED, FBSD_CLD_DUMPED)
  628. (FBSD_CLD_TRAPPED, FBSD_CLD_STOPPED, FBSD_CLD_CONTINUED)
  629. (FBSD_POLL_IN, FBSD_POLL_OUT, FBSD_POLL_MSG, FBSD_POLL_ERR)
  630. (FBSD_POLL_PRI, FBSD_POLL_HUP, fbsd_signal_cause)
  631. (fbsd_report_signal_info): New.
  632. (fbsd_init_abi): Use fbsd_report_signal_info as gdbarch
  633. report_signal_info method.
  634. 2021-06-03 Magne Hov <mhov@undo.io>
  635. * MAINTAINERS (Write After Approval): Add Magne Hov.
  636. 2021-06-03 Hannes Domani <ssbssa@yahoo.de>
  637. * python/py-symbol.c (gdbpy_initialize_symbols): Restore
  638. gdb.SYMBOL_LABEL_DOMAIN constant.
  639. 2021-06-01 John Baldwin <jhb@FreeBSD.org>
  640. * infrun.c (handle_inferior_event): Only call
  641. gdbarch_displaced_step_restore_all_in_ptid if
  642. gdbarch_supports_displaced_stepping is true.
  643. 2021-06-01 Tom Tromey <tromey@adacore.com>
  644. * Makefile.in (all-data-directory): Remove.
  645. (data-directory/Makefile): Remove.
  646. 2021-06-01 Tom Tromey <tromey@adacore.com>
  647. * configure: Rebuild.
  648. * configure.ac: Use AS_HELP_STRING for enable-shared. Fix typo.
  649. 2021-06-01 Tom Tromey <tromey@adacore.com>
  650. * silent-rules.mk (ECHO_CC): New variable.
  651. 2021-06-01 Tom Tromey <tromey@adacore.com>
  652. * Makefile.in (SUBDIRS): Add testsuite.
  653. (all): Don't exclude testsuite.
  654. 2021-06-01 Tom Tromey <tromey@adacore.com>
  655. * configure.ac: Copy some code from testsuite/configure.ac.
  656. (enable_libctf): Subst this, not ENABLE_LIBCTF.
  657. * configure: Rebuild.
  658. 2021-06-01 Tom de Vries <tdevries@suse.de>
  659. PR symtab/26096
  660. * minsyms.c (msymbol_is_cold_clone): New function.
  661. (msymbol_is_function): Use msymbol_is_cold_clone.
  662. 2021-06-01 Fredrik Hederstierna <fredrik@hederstierna.com>
  663. Andrew Burgess <andrew.burgess@embecosm.com>
  664. PR gdb/14383
  665. * Makefile.in (ALL_TARGET_OBS): Add arm-none-tdep.o.
  666. (ALLDEPFILES): Add arm-none-tdep.c
  667. * arm-none-tdep.c: New file.
  668. * configure.tgt (arm*-*-*): Add arm-none-tdep.o to cpu_obs.
  669. 2021-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
  670. Richard Bunt <richard.bunt@arm.com>
  671. * breakpoint.c (check_longjmp_breakpoint_for_call_dummy): Add
  672. check for why the backtrace stopped.
  673. 2021-05-31 Simon Marchi <simon.marchi@polymtl.ca>
  674. * dwarf2/read.h (struct structured_type) <signatured_type>: New.
  675. Update all callers.
  676. (struct dwarf2_per_bfd) <allocate_signatured_type>: Add
  677. signature parameter, update all callers.
  678. * dwar2/read.c (dwarf2_per_bfd::allocate_signatured_type): Add
  679. signature parameter.
  680. 2021-05-31 Simon Marchi <simon.marchi@polymtl.ca>
  681. * dwarf2/read.h (signatured_type_up): New, use where possible.
  682. 2021-05-31 Simon Marchi <simon.marchi@polymtl.ca>
  683. * dwarf2/read.h (signatured_type, dwarf2_per_cu_data): Move up.
  684. 2021-05-30 Tom Tromey <tom@tromey.com>
  685. * dwarf2/read.c (dwarf2_per_bfd::allocate_signatured_type): Set
  686. is_debug_types.
  687. (create_signatured_type_table_from_index)
  688. (create_signatured_type_table_from_debug_names, add_type_unit)
  689. (read_comp_units_from_section): Update.
  690. 2021-05-30 Tom Tromey <tom@tromey.com>
  691. * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs,
  692. m_num_psymtabs>: Remove.
  693. (resize_symtabs): Update.
  694. * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu)
  695. (dwarf2_per_bfd::allocate_signatured_type): Update.
  696. 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
  697. * Fix tab after space indentation issues throughout.
  698. 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
  699. * Fix some indentation mistakes throughout.
  700. 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
  701. * breakpoint.h (iterate_over_bp_locations): Remove. Update
  702. users to use all_bp_locations.
  703. (all_bp_locations): New.
  704. * breakpoint.c (all_bp_locations): Make non-static.
  705. (iterate_over_bp_locations): Remove.
  706. 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
  707. * breakpoint.h (iterate_over_breakpoints): Remove. Update
  708. callers to use all_breakpoints or all_breakpoints_safe.
  709. (breakpoint_range, all_breakpoints, breakpoint_safe_range,
  710. all_breakpoints_safe): Move here.
  711. * breakpoint.c (all_breakpoints, all_breakpoints_safe): Make
  712. non-static.
  713. (iterate_over_breakpoints): Remove.
  714. * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
  715. Return void.
  716. * python/py-breakpoint.c (build_bp_list): Add comment, reverse
  717. return value logic.
  718. * guile/scm-breakpoint.c (bpscm_build_bp_list): Return void.
  719. 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
  720. * breakpoint.c (get_first_locp_gte_addr): Remove.
  721. (ALL_BP_LOCATIONS_AT_ADDR): Remove. Replace all uses with
  722. all_bp_locations_at_addr.
  723. (struct bp_locations_at_addr_range): New.
  724. (all_bp_locations_at_addr): New.
  725. (bp_locations_compare_addrs): New.
  726. 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
  727. * breakpoint.c (ALL_BP_LOCATIONS): Remove, update users to use
  728. all_bp_locations.
  729. (all_bp_locations): New.
  730. 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
  731. * breakpoint.c (bp_locations): Change to std::vector, update all
  732. users.
  733. (bp_locations_count): Remove.
  734. (update_global_location_list): Change to work with indices
  735. rather than bp_location**.
  736. 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
  737. * breakpoint.h (bp_locations_range): New.
  738. (struct breakpoint) <locations>: New. Use where possible.
  739. 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
  740. * breakpoint.h (all_tracepoints): Remove.
  741. (breakpoint_iterator): Move here.
  742. (struct tracepoint_filter): New.
  743. (tracepoint_iterator): New.
  744. (tracepoint_range): New.
  745. (all_tracepoints): New.
  746. * breakpoint.c (ALL_TRACEPOINTS): Remove, replace all users with
  747. all_tracepoints.
  748. (breakpoint_iterator): Move to header.
  749. (all_tracepoints): New.
  750. * tracepoint.c (start_tracing): Adjust.
  751. 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
  752. * breakpoint.c (breakpoint_safe_range): New.
  753. (all_breakpoints_safe): New. Use instead of
  754. ALL_BREAKPOINTS_SAFE where possible.
  755. 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
  756. * breakpoint.c (ALL_BREAKPOINTS): Remove, replace all uses with
  757. all_breakpoints.
  758. (breakpoint_iterator): New.
  759. (breakpoint_range): New.
  760. (all_breakpoints): New.
  761. 2021-05-27 Hannes Domani <ssbssa@yahoo.de>
  762. * python/py-tui.c (tui_py_window::output): Add full_window
  763. argument.
  764. (gdbpy_tui_write): Parse "full_window" argument.
  765. 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
  766. * make-init-c: Add option to reverse function calls.
  767. 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
  768. * Makefile.in (INIT_FILES_FILTER_OUT): New.
  769. (INIT_FILES): Use INIT_FILES_FILTER_OUT.
  770. (stamp-init): Use make-init-c.
  771. * bpf-tdep.c (_initialize_bpf_tdep): Remove "void".
  772. * silent-rules.mk (ECHO_INIT_C): Change.
  773. * make-init-c: New file.
  774. 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
  775. * command.h (add_alias_cmd): Accept target as
  776. cmd_list_element. Update callers.
  777. 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
  778. * command.h (add_info_alias): Accept target as
  779. cmd_list_element. Update callers.
  780. 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
  781. * command.h (add_com_alias): Accept target as
  782. cmd_list_element. Update callers.
  783. 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
  784. * python/py-param.c (add_setshow_generic): Use return values of
  785. add_setshow functions.
  786. 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
  787. * mi/mi-main.c (_initialize_mi_main):
  788. * python/py-auto-load.c (gdbpy_initialize_auto_load):
  789. * remote.c (_initialize_remote):
  790. 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
  791. * command.h (set_show_commands): New.
  792. (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd,
  793. add_setshow_boolean_cmd, add_setshow_filename_cmd,
  794. add_setshow_string_cmd, add_setshow_string_noescape_cmd,
  795. add_setshow_optional_filename_cmd, add_setshow_integer_cmd,
  796. add_setshow_uinteger_cmd, add_setshow_zinteger_cmd,
  797. add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
  798. Return set_show_commands. Adjust callers.
  799. * cli/cli-decode.c (add_setshow_cmd_full): Return
  800. set_show_commands, remove result parameters, adjust callers.
  801. 2021-05-27 Tom de Vries <tdevries@suse.de>
  802. PR symtab/27919
  803. * dwarf2/read.c (process_psymtab_comp_unit):
  804. 2021-05-27 Tom de Vries <tdevries@suse.de>
  805. * dwarf2/read.c (find_partial_die): Fix "Cannot not" typo in dwarf
  806. error.
  807. 2021-05-27 Tom de Vries <tdevries@suse.de>
  808. PR symtab/27898
  809. * dwarf2/cu.c (dwarf2_cu::dwarf2_cu): Add load_all_dies init.
  810. * dwarf2/cu.h (dwarf2_cu): Add load_all_dies field.
  811. * dwarf2/read.c (load_partial_dies, find_partial_die): Update.
  812. * dwarf2/read.h (dwarf2_per_cu_data::dwarf2_per_cu_data): Remove
  813. load_all_dies init.
  814. (dwarf2_per_cu_data): Remove load_all_dies field.
  815. 2021-05-26 Simon Marchi <simon.marchi@efficios.com>
  816. * regcache.c (reg_buffer::reg_buffer): Default-initialize
  817. m_registers array.
  818. 2021-05-26 Tom Tromey <tom@tromey.com>
  819. * dwarf2/read.c (allocate_type_unit_groups_table)
  820. (handle_DW_AT_stmt_list, allocate_dwo_file_hash_table): Use
  821. htab_delete_entry.
  822. (free_line_header_voidp): Remove.
  823. * completer.c
  824. (completion_tracker::completion_hash_entry::deleter): Remove.
  825. (completion_tracker::discard_completions): Use htab_delete_entry.
  826. * utils.h (htab_delete_entry): New template function.
  827. 2021-05-24 Hannes Domani <ssbssa@yahoo.de>
  828. * python/py-tui.c (tui_py_window::refresh_window):
  829. Avoid flickering.
  830. 2021-05-23 Tom de Vries <tdevries@suse.de>
  831. PR tdep/27822
  832. * target.h (struct target_ops): Mention target_thread_architecture in
  833. read_description comment.
  834. * x86-linux-nat.c (x86_linux_nat_target::read_description): Use
  835. pid to determine if process is 64-bit or 32-bit.
  836. * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
  837. Same.
  838. * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Same.
  839. * riscv-linux-nat.c (riscv_linux_nat_target::read_description): Same.
  840. * s390-linux-nat.c (s390_linux_nat_target::read_description): Same.
  841. * arm-linux-nat.c (arm_linux_nat_target::read_description): Same.
  842. Likewise, use pid to determine if kernel supports reading VFP
  843. registers.
  844. 2021-05-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
  845. * main.c (enum cmdarg_kind): Fix option type comments for
  846. CMDARG_EARLYINIT_FILE and CMDARG_EARLYINIT_COMMAND.
  847. 2021-05-21 Tom de Vries <tdevries@suse.de>
  848. PR testsuite/25047
  849. * contrib/cc-with-tweaks.sh: Handle -l.
  850. 2021-05-21 Tom de Vries <tdevries@suse.de>
  851. PR breakpoint/27889
  852. * jit.c (jit_breakpoint_re_set_internal): Skip separate debug
  853. objects. Call get_jiter_objfile_data with the_objfile.
  854. 2021-05-20 Simon Marchi <simon.marchi@polymtl.ca>
  855. * linespec.c (linespec_p): Remove. Replace all uses with
  856. "linespec *".
  857. 2021-05-20 Alexandra Hájková <ahajkova@redhat.com>
  858. Pedro Alves <pedro@palves.net>
  859. * cli/cli-script.h (command_line_up): New unique_ptr typedef.
  860. * cli/cli-script.c (multi_line_command_p): Use unique_ptr
  861. command_line_up instead of struct command_line.
  862. (build_command_line): Likewise.
  863. (get_command_line): Update the cmd function call parameter.
  864. (process_next_line): Use unique_ptr command_line_up instead
  865. of struct command_line.
  866. (recurse_read_control_structure): Change the the type of
  867. next to command_line_up.
  868. (read_command_lines_1): Change type of `next' to be
  869. command_line_up and update all references of `next'
  870. accordingly.
  871. 2021-05-20 Alexandra Hájková <ahajkova@redhat.com>
  872. * MAINTAINERS (Write After Approval): Add myself.
  873. 2021-05-19 John Baldwin <jhb@FreeBSD.org>
  874. * dwarf2/read.c (tu_abbrev_offset::operator<): Mark const.
  875. 2021-05-18 Alexandra Hájková <ahajkova@redhat.com>
  876. * inflow.c (new_tty): Do not leak tty.
  877. 2021-05-17 Tom Tromey <tom@tromey.com>
  878. * dwarf2/read.h: Update include.
  879. * dwarf2/read.c: Update include.
  880. * dwarf2/line-header.c: Update include.
  881. * dwarf2/cu.h: Update include.
  882. * dwarf2/comp-unit-head.h: Rename from comp-unit.h.
  883. * dwarf2/comp-unit-head.c: Rename from comp-unit.c.
  884. * Makefile.in (COMMON_SFILES): Update.
  885. 2021-05-17 Tom Tromey <tom@tromey.com>
  886. * dwarf2/read.c (maybe_queue_comp_unit)
  887. (dwarf2_per_objfile::age_comp_units): Update.
  888. (dwarf2_add_dependence, dwarf2_mark_helper, dwarf2_mark): Move to
  889. dwarf2_cu methods.
  890. * dwarf2/cu.h (struct dwarf2_cu) <mark, clear_mark, is_marked,
  891. add_dependence>: New methods.
  892. <m_dependencies>: Add "m_" prefix. Now private.
  893. <m_mark>: Add "m_" prefix.
  894. * dwarf2/cu.c (dwarf2_cu::dwarf2_cu): Update.
  895. (dwarf2_mark_helper): New function.
  896. (dwarf2_cu::mark, dwarf2_cu::add_dependence): New methods.
  897. 2021-05-17 Tom Tromey <tom@tromey.com>
  898. * dwarf2/read.c (dwarf2_cu::addr_sized_int_type)
  899. (dwarf2_cu::start_symtab, dwarf2_cu::addr_type)
  900. (dwarf2_cu::dwarf2_cu): Move to cu.c.
  901. * dwarf2/cu.c: New file.
  902. * Makefile.in (COMMON_SFILES): Add dwarf2/cu.c.
  903. 2021-05-17 Tom Tromey <tom@tromey.com>
  904. * Makefile.in (HFILES_NO_SRCDIR): Add dwarf2/cu.h.
  905. * dwarf2/read.c (struct delayed_method_info, struct dwarf2_cu):
  906. Move to cu.h.
  907. * dwarf2/cu.h: New file.
  908. 2021-05-17 Andrew Burgess <andrew.burgess@embecosm.com>
  909. * .dir-locals.el: Set sentence-end-double-space for all modes, and
  910. set brace-list-open to 0 for C and C++ modes.
  911. 2021-05-17 Tom Tromey <tromey@adacore.com>
  912. * dwarf2/loc.c (dwarf2_evaluate_loc_desc::get_frame_base): Throw
  913. if frame is null.
  914. 2021-05-17 Tom Tromey <tromey@adacore.com>
  915. * nat/linux-osdata.c (user_from_uid, time_from_time_t)
  916. (group_from_gid): Subtract one from strncpy length.
  917. 2021-05-17 Tom Tromey <tromey@adacore.com>
  918. * source.c (add_path): Check 'p' before using 'p[-1]'.
  919. 2021-05-17 Tom Tromey <tromey@adacore.com>
  920. * dwarf2/read.h (struct dwarf2_per_cu_data_deleter: New.
  921. (dwarf2_per_cu_data_up): New typedef.
  922. (struct dwarf2_per_bfd) <allocate_per_cu>: Change return type.
  923. <all_comp_units>: Use dwarf2_per_cu_data_up.
  924. * dwarf2/read.c (dwarf2_per_cu_data::operator()): New function.
  925. (dwarf2_per_bfd::allocate_per_cu): Return dwarf2_per_cu_data_up.
  926. (create_cu_from_index_list): Likewise.
  927. (create_signatured_type_table_from_index)
  928. (create_cus_from_debug_names_list, add_type_unit)
  929. (read_comp_units_from_section): Update.
  930. (dwarf2_find_containing_comp_unit): Change type of all_comp_units.
  931. (run_test): Update.
  932. 2021-05-17 Tom Tromey <tom@tromey.com>
  933. * dwarf2/read.c (tu_abbrev_offset::operator<): New method.
  934. (sort_tu_by_abbrev_offset): Remove.
  935. (build_type_psymtabs): Update.
  936. 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
  937. * py-project.toml: New.
  938. * gdb-gdb.py.in: Re-format.
  939. 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
  940. * cli/cli-decode.h (cmd_list_element) <is_command_class_help>:
  941. New, use it.
  942. * command.h (cmd_func_p): Remove.
  943. * cli/cli-decode.c (cmd_func_p): Remove.
  944. 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
  945. * cli/cli-decode.h (cmd_list_element) <is_alias>: New, use it.
  946. 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
  947. * cli/cli-decode.h (cmd_list_element) <cmd_pointer>: Rename
  948. to...
  949. <alias_target>: ... this.
  950. (add_alias_cmd): Rename old to target.
  951. (add_info_alias): Rename old_name to target_name.
  952. (add_com_alias): Likewise.
  953. 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
  954. * Rename "prefixlist" parameters to "subcommands" throughout.
  955. * cli/cli-decode.h (cmd_list_element) <prefixlist>: Rename to...
  956. <subcommands>: ... this.
  957. * cli/cli-decode.c (lookup_cmd_for_prefixlist): Rename to...
  958. (lookup_cmd_with_subcommands): ... this.
  959. 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
  960. * cli/cli-decode.c (add_alias_cmd): Don't handle old == 0.
  961. 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
  962. * cli/cli-decode.h (prefixname): Make const, move implementation
  963. to cli/cli-decode.c.
  964. * cli/cli-decode.c (cmd_list_element::prefixname): New.
  965. 2021-05-16 Weimin Pan <weimin.pan@oracle.com>
  966. * ctfread.c (new_symbol): Set function address.
  967. (read_func_kind_type): Remove incorrect type name setting.
  968. Don't copy name returned from ctf_type_ame_raw throughout file.
  969. 2021-05-14 Tom Tromey <tom@tromey.com>
  970. * rust-lang.c (rust_language::val_print_struct)
  971. (rust_language::print_enum): Use common_val_print, not
  972. value_print_inner.
  973. 2021-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  974. * python/py-inferior.c (infpy_get_connection_num): New function.
  975. (inferior_object_getset): Add a new element for 'connection_num'.
  976. * NEWS: Mention the 'connection_num' attribute of Inferior objects.
  977. 2021-05-14 Andrew Burgess <andrew.burgess@embecosm.com>
  978. * remote.c (check_pending_events_prevent_wildcard_vcont): Change
  979. argument type, update and re-wrap, header comment.
  980. (remote_target::commit_resumed): Convert any_process_wildcard and
  981. may_global_wildcard_vcont from int to bool.
  982. 2021-05-14 Kent Cheung <kent.cheung@arm.com>
  983. * cp-valprint.c (cp_print_value): Replaced duplicate code.
  984. * guile/scm-pretty-print.c (ppscm_print_children): Check max_depth
  985. just before printing child values.
  986. (gdbscm_apply_val_pretty_printer): Don't check max_depth before
  987. printing string representation.
  988. * python/py-prettyprint.c (print_children): Check max_depth just
  989. before printing child values.
  990. (gdbpy_apply_val_pretty_printer): Don't check max_depth before
  991. printing string representation.
  992. 2021-05-14 Mike Frysinger <vapier@gentoo.org>
  993. * remote-sim.c: Change gdb/callback.h & gdb/remote-sim.h includes to
  994. sim/callback.h & sim/sim.h.
  995. 2021-05-13 Mike Frysinger <vapier@gentoo.org>
  996. * lm32-tdep.c: Delete gdb/callback.h, gdb/remote-sim.h, and
  997. sim-regno.h include.
  998. 2021-05-13 Simon Marchi <simon.marchi@efficios.com>
  999. * inf-child.h (inf_child_target) <follow_exec>: New.
  1000. * inf-child.c (inf_child_target::follow_exec): New.
  1001. 2021-05-13 Simon Marchi <simon.marchi@efficios.com>
  1002. * target.h (struct target_ops) <follow_exec>: Add ptid_t
  1003. parameter.
  1004. (target_follow_exec): Likewise.
  1005. * target.c (target_follow_exec): Add ptid_t parameter.
  1006. * infrun.c (follow_exec): Adjust call to target_follow_exec,
  1007. don't push target nor create thread.
  1008. * linux-thread-db.c (class thread_db_target) <follow_exec>: New.
  1009. (thread_db_target::wait): Just return on TARGET_WAITKIND_EXECD.
  1010. (thread_db_target::follow_exec): New.
  1011. * remote.c (class remote_target) <follow_exec>: Add ptid_t parameter.
  1012. (remote_target::follow_exec): Call
  1013. process_stratum_target::follow_exec.
  1014. * target-delegates.c: Re-generate.
  1015. 2021-05-13 Simon Marchi <simon.marchi@efficios.com>
  1016. * infrun.c (follow_exec): Call target_follow_fork when
  1017. follow-exec-mode is same.
  1018. * target.h (target_follow_fork): Improve doc.
  1019. 2021-05-13 Simon Marchi <simon.marchi@polymtl.ca>
  1020. * cli/cli-decode.h (struct cmd_list_element) <pre_show_hook>:
  1021. Remove.
  1022. * cli/cli-setshow.c (do_show_command): Adjust.
  1023. 2021-05-13 Luis Machado <luis.machado@linaro.org>
  1024. * arch/aarch64-mte-linux.c (aarch64_mte_get_tag_granules): Don't
  1025. include the last address in the range.
  1026. 2021-05-12 Simon Marchi <simon.marchi@polymtl.ca>
  1027. * python/python-internal.h (gdbpy_parse_command_name): Return
  1028. gdb::unique_xmalloc_ptr.
  1029. * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
  1030. (cmdpy_init): Adjust.
  1031. * python/py-param.c (parmpy_init): Adjust.
  1032. (add_setshow_generic): Take gdb::unique_xmalloc_ptr, release it
  1033. when done.
  1034. 2021-05-12 George Barrett <bob@bob131.so>
  1035. * NEWS (Guile API): Note the addition of the new procedure.
  1036. * guile/scm-value.c (gdbscm_value_const_value): Add
  1037. implementation of value-const-value procedure.
  1038. (value_functions): Add value-const-value procedure.
  1039. 2021-05-12 George Barrett <bob@bob131.so>
  1040. * NEWS (Guile API): Note the addition of new procedures.
  1041. * guile/scm-value.c (gdbscm_reference_value): Add helper function
  1042. for reference value creation.
  1043. (gdbscm_value_reference_value): Add implementation of
  1044. value-reference-value procedure.
  1045. (gdbscm_value_rvalue_reference_value): Add implementation of
  1046. value-rvalue-reference-value procedure.
  1047. (value_functions): Add value-reference-value procedure. Add
  1048. value-rvalue-reference-value procedure.
  1049. 2021-05-12 George Barrett <bob@bob131.so>
  1050. * guile/scm-type.c (type_integer_constants): Add binding for
  1051. TYPE_CODE_RVALUE_REF.
  1052. * guile/scm-value.c (gdbscm_value_referenced_value): Handle
  1053. dereferencing of rvalue references.
  1054. * NEWS (Guile API): Note improvements in rvalue reference support.
  1055. 2021-05-12 Markus Metzger <markus.t.metzger@intel.com>
  1056. * btrace.c (handle_pt_insn_events): Ignore status update enable
  1057. events.
  1058. 2021-05-11 Simon Marchi <simon.marchi@polymtl.ca>
  1059. * arm-tdep.c (arm_record_data_proc_misc_ld_str): Fix
  1060. indentation.
  1061. 2021-05-11 Simon Marchi <simon.marchi@polymtl.ca>
  1062. * cli/cli-decode.h (struct cmd_list_element): Fix indentation.
  1063. 2021-05-10 Lancelot Six <lsix@lancelotsix.com>
  1064. PR gdb/27614
  1065. * contrib/gdb-add-index.sh: Fix when called with a symlink as an
  1066. argument.
  1067. 2021-05-10 Simon Marchi <simon.marchi@polymtl.ca>
  1068. * nat/linux-waitpid.c (status_to_str): Show signal name.
  1069. 2021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
  1070. * python/py-breakpoint.c (pybp_debug): New static global.
  1071. (show_pybp_debug): New function.
  1072. (pybp_debug_printf): Define.
  1073. (PYBP_SCOPED_DEBUG_ENTER_EXIT): Define.
  1074. (gdbpy_breakpoint_created): Add some debugging.
  1075. (gdbpy_breakpoint_deleted): Likewise.
  1076. (gdbpy_breakpoint_modified): Likewise.
  1077. (_initialize_py_breakpoint): New function.
  1078. 2021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
  1079. * python/py-unwind.c (pyuw_debug): Convert to bool.
  1080. (show_pyuw_debug): New function.
  1081. (pyuw_debug_printf): Define.
  1082. (PYUW_SCOPED_DEBUG_ENTER_EXIT): Define.
  1083. (pyuw_this_id): Convert to new debug print macros.
  1084. (pyuw_prev_register): Likewise.
  1085. (pyuw_sniffer): Likewise.
  1086. (pyuw_dealloc_cache): Likewise.
  1087. (_initialize_py_unwind): Update now pyuw_debug is a bool, and add
  1088. show function when registering.
  1089. 2021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
  1090. * dummy-frame.c (fprint_dummy_frames): Convert use of
  1091. fprint_frame_id to use frame_id::to_string.
  1092. * frame.c (fprint_field): Delete.
  1093. (fprint_frame_id): Moved to...
  1094. (frame_id::to_string): ...this, rewritten to return a string.
  1095. (fprint_frame): Convert use of fprint_frame_id to use
  1096. frame_id::to_string.
  1097. (compute_frame_id): Likewise.
  1098. (frame_id_p): Likewise.
  1099. (frame_id_eq): Likewise.
  1100. (frame_id_inner): Likewise.
  1101. * frame.h (struct frame_id) <to_string>: New member function.
  1102. (fprint_frame_id): Delete declaration.
  1103. * guile/scm-frame.c (frscm_print_frame_smob): Convert use of
  1104. fprint_frame_id to use frame_id::to_string.
  1105. * python/py-frame.c (frame_object_to_frame_info): Likewise.
  1106. * python/py-unwind.c (unwind_infopy_str): Likewise.
  1107. (pyuw_this_id): Likewise.
  1108. 2021-05-08 Simon Marchi <simon.marchi@polymtl.ca>
  1109. * nat/linux-waitpid.c (status_to_str): Return std::string.
  1110. * nat/linux-waitpid.h (status_to_str): Likewise.
  1111. * linux-nat.c (linux_nat_post_attach_wait): Adjust.
  1112. (linux_nat_target::attach): Adjust.
  1113. (linux_handle_extended_wait): Adjust.
  1114. (wait_lwp): Adjust.
  1115. (stop_wait_callback): Adjust.
  1116. (linux_nat_filter_event): Adjust.
  1117. (linux_nat_wait_1): Adjust.
  1118. * nat/linux-waitpid.c (status_to_str): Adjust.
  1119. * nat/linux-waitpid.h (status_to_str): Adjust.
  1120. 2021-05-08 Simon Marchi <simon.marchi@polymtl.ca>
  1121. * infrun.h (infrun_debug_printf): Add missing space.
  1122. 2021-05-08 Pedro Alves <pedro@palves.net>
  1123. * linux-nat.c (linux_nat_target::supports_disable_randomization):
  1124. Remove references to HAVE_PERSONALITY.
  1125. * nat/linux-personality.c: Remove references to HAVE_PERSONALITY.
  1126. (maybe_disable_address_space_randomization)
  1127. (~maybe_disable_address_space_randomizatio): Remove references to
  1128. HAVE_PERSONALITY.
  1129. * config.in, configure: Regenerate.
  1130. 2021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
  1131. * cli/cli-cmds.c: Add 'gdbsupport/gdb_tilde_expand.h'
  1132. include.
  1133. (source_script_with_search): Perform tilde expansion.
  1134. 2021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
  1135. * target-descriptions.c (struct target_desc_info) <filename>:
  1136. Make std::string.
  1137. (copy_inferior_target_desc_info): Adjust.
  1138. (target_desc_info_free): Adjust.
  1139. (target_find_description): Adjust.
  1140. (set_tdesc_filename_cmd): Adjust.
  1141. (show_tdesc_filename_cmd): Adjust.
  1142. (unset_tdesc_filename_cmd): Adjust.
  1143. (maint_print_c_tdesc_cmd): Adjust.
  1144. 2021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
  1145. * target-descriptions.c (struct target_desc_info): Initialize
  1146. fields.
  1147. (get_tdesc_info): Use new.
  1148. (target_desc_info_free): Use delete.
  1149. 2021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
  1150. * target-descriptions.c (struct target_desc_info) <fetched>:
  1151. bool.
  1152. (target_find_description): Adjust.
  1153. (target_clear_description): Adjust.
  1154. 2021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
  1155. * target-descriptions.c (struct target_desc_info) <tdesc>:
  1156. Adjust doc.
  1157. (target_desc_fetched): Remove.
  1158. (current_target_desc): Remove.
  1159. (target_description_filename): Remove.
  1160. (target_find_description): Adjust.
  1161. (target_clear_description): Adjust.
  1162. (target_current_description): Adjust.
  1163. (set_tdesc_filename_cmd): Adjust.
  1164. (show_tdesc_filename_cmd): Adjust.
  1165. (unset_tdesc_filename_cmd): Adjust.
  1166. (maint_print_c_tdesc_cmd): Adjust.
  1167. (maint_print_xml_tdesc_cmd): Adjust.
  1168. 2021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
  1169. * infcmd.c (notice_new_inferior): Change parameter type.
  1170. * inferior.h (notice_new_inferior): Change parameter type.
  1171. * remote.c (remote_notice_new_inferior): Change parameter type to
  1172. bool. Also update type of local variable to bool.
  1173. (remote_target::update_thread_list): Change type of local variable
  1174. to bool.
  1175. (remote_target::process_stop_reply): Pass bool instead of int to
  1176. remote_notice_new_inferior.
  1177. 2021-05-07 Simon Marchi <simon.marchi@efficios.com>
  1178. * target.c (target_stack::unpush): Call target_ops::find_beneath
  1179. to get the target beneath `t`.
  1180. 2021-05-07 Simon Marchi <simon.marchi@efficios.com>
  1181. * target.c (target_close): Check in all inferiors that the
  1182. target is not pushed.
  1183. 2021-05-07 Aaron Merey <amerey@redhat.com>
  1184. * debuginfod-support.c (debuginfod_init): Remove.
  1185. (get_debuginfod_client): New function.
  1186. 2021-05-07 Tom Tromey <tom@tromey.com>
  1187. * breakpoint.c (ambiguous_names_p): Use htab_eq_string.
  1188. * utils.c (streq_hash): Remove.
  1189. * utils.h (streq_hash): Don't declare.
  1190. * completer.c (completion_tracker::discard_completions): Update
  1191. comment.
  1192. * ada-lang.c (_initialize_ada_language): Use htab_eq_string.
  1193. 2021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
  1194. * Re-format all Python files using black.
  1195. 2021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
  1196. * guile/guile-internal.h (gdbscm_safe_source_script): Change
  1197. function return type.
  1198. * guile/guile.c (gdbscm_source_script): Update to handle change in
  1199. gdbscm_safe_source_script.
  1200. * guile/scm-objfile.c (gdbscm_source_objfile_script): Likewise.
  1201. * guile/scm-safe-call.c (gdbscm_safe_source_script): Change return
  1202. type.
  1203. 2021-05-06 Simon Marchi <simon.marchi@polymtl.ca>
  1204. * inferior.h (class inferior) <args>: Change type to
  1205. unique_xmalloc_ptr.
  1206. * inferior.c (inferior::~inferior): Don't free args.
  1207. * infcmd.c (get_inferior_args): Adjust.
  1208. (set_inferior_args): Adjust.
  1209. 2021-05-06 Andrew Burgess <andrew.burgess@embecosm.com>
  1210. * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob): Only print
  1211. breakpoint locations when the breakpoint actually has a location.
  1212. 2021-05-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  1213. * mi/mi-cmd-break.c (mi_cmd_break_condition): New function.
  1214. * mi/mi-cmds.c: Change the binding of "-break-condition" to
  1215. mi_cmd_break_condition.
  1216. * mi/mi-cmds.h (mi_cmd_break_condition): Declare.
  1217. * breakpoint.h (set_breakpoint_condition): Declare a new
  1218. overload.
  1219. * breakpoint.c (set_breakpoint_condition): New overloaded function
  1220. extracted out from ...
  1221. (condition_command): ... this.
  1222. * NEWS: Mention the change.
  1223. 2021-05-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  1224. * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Recognize the
  1225. '--force-condition' flag to force the condition in the
  1226. '-break-insert' and '-dprintf-insert' commands.
  1227. * NEWS: Mention the change.
  1228. 2021-05-04 Tom de Vries <tdevries@suse.de>
  1229. PR guile/27806
  1230. * guile/guile.c (gdbscm_initialize): Don't let guile change libgmp
  1231. memory functions.
  1232. 2021-04-30 Tom Tromey <tom@tromey.com>
  1233. * dwarf2/read.c (dwarf2_initialize_objfile): Update.
  1234. (add_signatured_type_cu_to_table): Remove.
  1235. (create_debug_type_hash_table): Assume dwo_file is non-null.
  1236. (create_debug_types_hash_table): Update comment.
  1237. (create_all_type_units): Remove.
  1238. (sort_tu_by_abbrev_offset): Update comment.
  1239. (build_type_psymtabs): Rename from build_type_psymtabs_1.
  1240. (build_type_psymtabs): Remove.
  1241. (process_skeletonless_type_unit, dwarf2_build_psymtabs_hard):
  1242. Update.
  1243. (read_comp_units_from_section): Add types_htab, section_kind
  1244. parameters.
  1245. (create_all_comp_units): Read type units.
  1246. 2021-04-30 Tom Tromey <tom@tromey.com>
  1247. * dwarf2/read.h (struct tu_stats) <nr_tus>: New member.
  1248. (struct dwarf2_per_bfd) <get_cutu, get_tu>: Remove
  1249. <get_cu>: Now inline.
  1250. <all_type_units>: Remove.
  1251. * dwarf2/read.c (dwarf2_per_bfd::~dwarf2_per_bfd): Update.
  1252. (dwarf2_per_bfd::get_cutu, dwarf2_per_bfd::get_cu)
  1253. (dwarf2_per_bfd::get_tu): Remove.
  1254. (dwarf2_per_bfd::allocate_signatured_type): Update nr_tus.
  1255. (create_signatured_type_table_from_index)
  1256. (create_signatured_type_table_from_debug_names)
  1257. (dw2_symtab_iter_next, dwarf2_base_index_functions::print_stats)
  1258. (dwarf2_base_index_functions::expand_all_symtabs)
  1259. (dw2_expand_marked_cus, dw_expand_symtabs_matching_file_matcher)
  1260. (dwarf2_base_index_functions::map_symbol_filenames)
  1261. (dw2_debug_names_iterator::next, dwarf2_initialize_objfile)
  1262. (add_signatured_type_cu_to_table, create_all_type_units)
  1263. (add_type_unit, build_type_psymtabs_1, print_tu_stats)
  1264. (create_all_comp_units): Update.
  1265. * dwarf2/index-write.c (check_dwarf64_offsets, write_gdbindex)
  1266. (write_debug_names): Update.
  1267. 2021-04-30 Tom Tromey <tom@tromey.com>
  1268. * dwarf2/read.h (struct dwarf2_per_bfd) <allocate_per_cu,
  1269. allocate_signatured_type>: Change return type.
  1270. <all_comp_units, all_type_units>: Hold unique pointers.
  1271. (struct dwarf2_per_cu_data): Add constructor and initializers.
  1272. (struct signatured_type): Derive from dwarf2_per_cu_data.
  1273. * dwarf2/read.c (type_unit_group): Derive from
  1274. dwarf2_per_cu_data.
  1275. (dwarf2_per_bfd::get_cutu, dwarf2_per_bfd::get_cu)
  1276. (dwarf2_per_bfd::get_tu)
  1277. (dwarf2_per_bfd::allocate_signatured_type)
  1278. (dwarf2_per_bfd::allocate_signatured_type)
  1279. (create_cu_from_index_list, create_cus_from_index_list)
  1280. (create_signatured_type_table_from_index)
  1281. (create_signatured_type_table_from_debug_names)
  1282. (create_addrmap_from_aranges)
  1283. (dwarf2_base_index_functions::find_last_source_symtab)
  1284. (dw_expand_symtabs_matching_file_matcher)
  1285. (dwarf2_gdb_index::expand_symtabs_matching)
  1286. (dwarf2_base_index_functions::map_symbol_filenames)
  1287. (create_cus_from_debug_names_list)
  1288. (dw2_debug_names_iterator::next)
  1289. (dwarf2_debug_names_index::expand_symtabs_matching)
  1290. (create_debug_type_hash_table, add_type_unit)
  1291. (fill_in_sig_entry_from_dwo_entry, lookup_dwo_signatured_type):
  1292. Update.
  1293. (allocate_type_unit_groups_table): Use delete.
  1294. (create_type_unit_group): Change return type. Use new.
  1295. (get_type_unit_group, build_type_psymtabs_1)
  1296. (build_type_psymtab_dependencies)
  1297. (process_skeletonless_type_unit, set_partial_user)
  1298. (dwarf2_build_psymtabs_hard, read_comp_units_from_section)
  1299. (create_cus_hash_table, queue_and_load_dwo_tu, follow_die_sig_1)
  1300. (read_signatured_type): Update.
  1301. (dwarf2_find_containing_comp_unit): Change type of
  1302. 'all_comp_units'.
  1303. (run_test): Update.
  1304. (dwarf2_per_bfd::allocate_per_cu)
  1305. (dwarf2_per_bfd::allocate_signatured_type): Change return type.
  1306. Use new.
  1307. (add_signatured_type_cu_to_table): Update.
  1308. * dwarf2/index-write.c (write_one_signatured_type)
  1309. (check_dwarf64_offsets, psyms_seen_size, write_gdbindex)
  1310. (write_debug_names): Update.
  1311. 2021-04-30 Tom Tromey <tromey@adacore.com>
  1312. * nat/windows-nat.h (get_image_name): Don't declare.
  1313. * nat/windows-nat.c (get_image_name): Now static.
  1314. 2021-04-30 Tom Tromey <tromey@adacore.com>
  1315. * windows-nat.c (windows_nat::handle_load_dll): Update.
  1316. (windows_nat_target::get_windows_debug_event): Call
  1317. dll_loaded_event.
  1318. (windows_add_all_dlls, windows_add_dll): Move to
  1319. nat/windows-nat.c.
  1320. * nat/windows-nat.h (handle_load_dll): Change parameters.
  1321. (dll_loaded_event, windows_add_all_dlls): Declare.
  1322. * nat/windows-nat.c (windows_add_dll, windows_add_all_dlls): Move
  1323. from windows-nat.c.
  1324. (dll_loaded_event): New function.
  1325. 2021-04-30 Tom Tromey <tromey@adacore.com>
  1326. * nat/windows-nat.h (GenerateConsoleCtrlEvent): New define.
  1327. (GenerateConsoleCtrlEvent_ftype, GenerateConsoleCtrlEvent):
  1328. Declare.
  1329. * nat/windows-nat.c (GenerateConsoleCtrlEvent): Define.
  1330. (initialize_loadable): Initialize GenerateConsoleCtrlEvent.
  1331. 2021-04-30 Tom Tromey <tromey@adacore.com>
  1332. * windows-nat.c: Move code to nat/windows-nat.[ch].
  1333. (_initialize_windows_nat): Call initialize_loadable.
  1334. * nat/windows-nat.h (AdjustTokenPrivileges)
  1335. (DebugActiveProcessStop, DebugBreakProcess)
  1336. (DebugSetProcessKillOnExit, EnumProcessModules)
  1337. (EnumProcessModulesEx, GetModuleInformation)
  1338. (GetModuleFileNameExA, GetModuleFileNameExW)
  1339. (LookupPrivilegeValueA, OpenProcessToken, GetConsoleFontSize)
  1340. (GetCurrentConsoleFont, Wow64SuspendThread)
  1341. (Wow64GetThreadContext, Wow64SetThreadContext)
  1342. (Wow64GetThreadSelectorEntry): Move from windows-nat.c.
  1343. (AdjustTokenPrivileges_ftype)
  1344. (DebugActiveProcessStop_ftype, DebugBreakProcess_ftype)
  1345. (DebugSetProcessKillOnExit_ftype, EnumProcessModules_ftype)
  1346. (EnumProcessModulesEx_ftype, GetModuleInformation_ftype)
  1347. (GetModuleFileNameExA_ftype, GetModuleFileNameExW_ftype)
  1348. (LookupPrivilegeValueA_ftype, OpenProcessToken_ftype)
  1349. (GetConsoleFontSize_ftype)
  1350. (GetCurrentConsoleFont_ftype, Wow64SuspendThread_ftype)
  1351. (Wow64GetThreadContext_ftype, Wow64SetThreadContext_ftype)
  1352. (Wow64GetThreadSelectorEntry_ftype): Likewise.
  1353. (initialize_loadable): Declare.
  1354. * nat/windows-nat.c (AdjustTokenPrivileges)
  1355. (DebugActiveProcessStop, DebugBreakProcess)
  1356. (DebugSetProcessKillOnExit, EnumProcessModules)
  1357. (EnumProcessModulesEx, GetModuleInformation, GetModuleFileNameExA)
  1358. (GetModuleFileNameExW, LookupPrivilegeValueA, OpenProcessToken)
  1359. (GetCurrentConsoleFont, GetConsoleFontSize, Wow64SuspendThread)
  1360. (Wow64GetThreadContext, Wow64SetThreadContext)
  1361. (Wow64GetThreadSelectorEntry): Define.
  1362. (bad, bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): Move
  1363. from windows-nat.c.
  1364. (initialize_loadable): Likewise, and rename.
  1365. 2021-04-30 Tom Tromey <tromey@adacore.com>
  1366. * windows-nat.c (bad_GetModuleFileNameEx): Remove define.
  1367. (bad_DebugActiveProcessStop, bad_DebugBreakProcess)
  1368. (bad_DebugSetProcessKillOnExit, bad_EnumProcessModules)
  1369. (bad_GetModuleFileNameExW, bad_GetModuleFileNameExA)
  1370. (bad_GetModuleInformation, bad_OpenProcessToken): Remove.
  1371. (bad): New template functions.
  1372. (_initialize_loadable): Update.
  1373. 2021-04-30 Tom Tromey <tromey@adacore.com>
  1374. * ada-lang.c (ada_index_type): Use ada_check_typedef.
  1375. 2021-04-29 Simon Marchi <simon.marchi@efficios.com>
  1376. * auto-load.h: Split namespace declaration.
  1377. 2021-04-29 Simon Marchi <simon.marchi@polymtl.ca>
  1378. * infrun.c (save_waitstatus): Move variables to inner scope.
  1379. 2021-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
  1380. * NEWS: Fix typo and stray full stop.
  1381. 2021-04-28 Tom Tromey <tromey@adacore.com>
  1382. * ada-exp.y (primary): Use new type for null pointer.
  1383. * ada-lang.c (ada_type_match): Remove "may_deref"
  1384. parameter. Handle null pointer.
  1385. (ada_args_match): Update.
  1386. * ada-valprint.c (ada_value_print_ptr, ada_value_print):
  1387. Handle null pointer.
  1388. 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
  1389. * NEWS: Mention new commands.
  1390. * python/python.c (python_ignore_environment): New static global.
  1391. (show_python_ignore_environment): New function.
  1392. (set_python_ignore_environment): New function.
  1393. (python_dont_write_bytecode): New static global.
  1394. (show_python_dont_write_bytecode): New function.
  1395. (set_python_dont_write_bytecode): New function.
  1396. (_initialize_python): Register new commands.
  1397. 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
  1398. * extension-priv.h (struct extension_language_ops): Rename
  1399. 'finish_initialization' to 'initialize'.
  1400. * extension.c (finish_ext_lang_initialization): Renamed to...
  1401. (ext_lang_initialization): ...this, update comment, and updated
  1402. the calls to reflect the change in struct extension_language_ops.
  1403. * extension.h (finish_ext_lang_initialization): Renamed to...
  1404. (ext_lang_initialization): ...this.
  1405. * guile/guile.c (gdbscm_finish_initialization): Renamed to...
  1406. (gdbscm_initialize): ...this, update comment at definition.
  1407. (guile_extension_ops): Update.
  1408. * main.c (captured_main_1): Update call to
  1409. finish_ext_lang_initialization.
  1410. * python/python.c (gdbpy_finish_initialization): Rename to...
  1411. (gdbpy_initialize): ...this, update comment at definition, and
  1412. update call to do_finish_initialization.
  1413. (python_extension_ops): Update.
  1414. (do_finish_initialization): Rename to...
  1415. (do_initialize): ...this, and update comment.
  1416. 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
  1417. * main.c (captured_main_1): Add a call to
  1418. finish_ext_lang_initialization.
  1419. * top.c (gdb_init): Remove call to finish_ext_lang_initialization.
  1420. 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
  1421. * guile/guile.c (gdbscm_set_backtrace): Add declaration.
  1422. (gdbscm_finish_initialization): Add code moved from
  1423. _initialize_guile.
  1424. (_initialize_guile): Move code to gdbscm_finish_initialization.
  1425. * guile/scm-arch.c (gdbscm_initialize_arches): Move some code into
  1426. _initialize_scm_arch.
  1427. (_initialize_scm_arch): New function.
  1428. * guile/scm-block.c (gdbscm_initialize_blocks): Move some code
  1429. into _initialize_scm_block.
  1430. (_initialize_scm_block): New function.
  1431. * guile/scm-frame.c (gdbscm_initialize_frames): Move some code
  1432. into _initialize_scm_frame.
  1433. (_initialize_scm_frame): New function.
  1434. * guile/scm-objfile.c (gdbscm_initialize_objfiles): Move some code
  1435. into _initialize_scm_objfile.
  1436. (_initialize_scm_objfile): New function.
  1437. * guile/scm-progspace.c (gdbscm_initialize_pspaces): Move some
  1438. code into _initialize_scm_progspace.
  1439. (_initialize_scm_progspace): New function.
  1440. * guile/scm-symbol.c (gdbscm_initialize_symbols): Move some code
  1441. into _initialize_scm_symbol.
  1442. (_initialize_scm_symbol): New function.
  1443. * guile/scm-symtab.c (gdbscm_initialize_symtabs): Move some code
  1444. into _initialize_scm_symtab.
  1445. (_initialize_scm_symtab): New function.
  1446. * guile/scm-type.c (gdbscm_initialize_types): Move some code into
  1447. _initialize_scm_type.
  1448. (_initialize_scm_type): New function.
  1449. 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
  1450. * python/py-arch.c (_initialize_py_arch): New function.
  1451. (gdbpy_initialize_arch): Move code to _initialize_py_arch.
  1452. * python/py-block.c (_initialize_py_block): New function.
  1453. (gdbpy_initialize_blocks): Move code to _initialize_py_block.
  1454. * python/py-inferior.c (_initialize_py_inferior): New function.
  1455. (gdbpy_initialize_inferior): Move code to _initialize_py_inferior.
  1456. * python/py-objfile.c (_initialize_py_objfile): New function.
  1457. (gdbpy_initialize_objfile): Move code to _initialize_py_objfile.
  1458. * python/py-progspace.c (_initialize_py_progspace): New function.
  1459. (gdbpy_initialize_pspace): Move code to _initialize_py_progspace.
  1460. * python/py-registers.c (_initialize_py_registers): New function.
  1461. (gdbpy_initialize_registers): Move code to
  1462. _initialize_py_registers.
  1463. * python/py-symbol.c (_initialize_py_symbol): New function.
  1464. (gdbpy_initialize_symbols): Move code to _initialize_py_symbol.
  1465. * python/py-symtab.c (_initialize_py_symtab): New function.
  1466. (gdbpy_initialize_symtabs): Move code to _initialize_py_symtab.
  1467. * python/py-type.c (_initialize_py_type): New function.
  1468. (gdbpy_initialize_types): Move code to _initialize_py_type.
  1469. * python/py-unwind.c (_initialize_py_unwind): New function.
  1470. (gdbpy_initialize_unwind): Move code to _initialize_py_unwind.
  1471. * python/python.c (_initialize_python): Move call to
  1472. do_start_initialization to gdbpy_finish_initialization.
  1473. (gdbpy_finish_initialization): Add call to
  1474. do_start_initialization.
  1475. 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
  1476. * extension.c (struct scoped_default_signal): New struct.
  1477. (scoped_default_sigint): New typedef.
  1478. (finish_ext_lang_initialization): Make use of
  1479. scoped_default_sigint.
  1480. 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
  1481. * main.c (captured_main_1): Don't pass argument to gdb_init.
  1482. * top.c (gdb_init): Remove unused argument, and add header
  1483. comment.
  1484. * top.h (gdb_init): Remove argument.
  1485. 2021-04-27 Luis Machado <luis.machado@linaro.org>
  1486. * psymtab.c (psymbol_functions::dump): Output newline.
  1487. Remove wrap.
  1488. * symmisc.c (dump_objfile): Likewise.
  1489. 2021-04-27 Michael Weghorn <m.weghorn@posteo.de>
  1490. Simon Marchi <simon.marchi@polymtl.ca>
  1491. * gdb/auto-load.c (_initialize_auto_load): 'Specify token
  1492. when attaching the 'auto_load_new_objfile' observer, so
  1493. other observers can specify it as a dependency.
  1494. * gdb/auto-load.h (struct token): Declare
  1495. 'auto_load_new_objfile_observer_token' as token to be used
  1496. for the 'auto_load_new_objfile' observer.
  1497. * gdb/python/py-inferior.c (gdbpy_initialize_inferior): Make
  1498. 'python_new_objfile' observer depend on 'auto_load_new_objfile'
  1499. observer, so it gets notified after the latter.
  1500. 2021-04-27 Michael Weghorn <m.weghorn@posteo.de>
  1501. Simon Marchi <simon.marchi@polymtl.ca>
  1502. * unittests/observable-selftests.c (dependency_test_counters):
  1503. New.
  1504. (observer_token0, observer_token1, observer_token2,
  1505. observer_token3, observer_token4, observer_token5): New.
  1506. (struct dependency_observer_data): New struct.
  1507. (observer_dependency_test_callback): New function.
  1508. (test_observers): New.
  1509. (run_dependency_test): New function.
  1510. (test_dependency): New.
  1511. (_initialize_observer_selftest): Register dependency test.
  1512. 2021-04-26 Simon Marchi <simon.marchi@polymtl.ca>
  1513. PR gdb/27773
  1514. * cli/cli-dump.c (dump_binary_file): Check result of
  1515. gdb_fopen_cloexec.
  1516. 2021-04-25 Sergei Trofimovich <siarheit@google.com>
  1517. * sparc-linux-nat.c (sparc_linux_nat_target): fix sparc build
  1518. by passing `process_stratum_target*` parameter.
  1519. 2021-04-25 Lancelot Six <lsix@lancelotsix.com>
  1520. PR gdb/22640
  1521. * typeprint.h (struct type_print_options): Add print_in_hex
  1522. flag.
  1523. (struct print_offset_data): Add print_in_hex flag, add a
  1524. constructor accepting a type_print_options* argument.
  1525. * typeprint.c (type_print_raw_options, default_ptype_flags): Set
  1526. default value for print_in_hex.
  1527. (print_offset_data::indentation): Allow more horizontal space.
  1528. (print_offset_data::print_offset_data): Add ctor.
  1529. (print_offset_data::maybe_print_hole, print_offset_data::update):
  1530. Handle the print_in_hex flag.
  1531. (whatis_exp): Handle 'x' and 'd' flags.
  1532. (print_offsets_and_sizes_in_hex): Declare.
  1533. (set_print_offsets_and_sizes_in_hex): Create.
  1534. (show_print_offsets_and_sizes_in_hex): Create.
  1535. (_initialize_typeprint): Update help message for the ptype
  1536. command, register the 'set print type hex' and 'show print type
  1537. hex' commands.
  1538. * c-typeprint.c (c_print_type, c_type_print_base_struct_union)
  1539. (c_type_print_base): Construct the print_offset_data
  1540. object using the type_print_optons parameter.
  1541. * rust-lang.c (rust_language::print_type): Construct the
  1542. print_offset_data object using the type_print_optons parameter.
  1543. * NEWS: Mention the new flags of the ptype command.
  1544. 2021-04-25 Lancelot Six <lsix@lancelotsix.com>
  1545. * typeprint.h (struct type_print_options): Move before
  1546. print_offset_data.
  1547. 2021-04-25 Joel Brobecker <brobecker@adacore.com>
  1548. GDB 10.2 released.
  1549. 2021-04-23 Simon Marchi <simon.marchi@polymtl.ca>
  1550. * observable.c (observer_debug): Change to bool.
  1551. 2021-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
  1552. * dwarf2/read.c: Add 'unordered_set' include.
  1553. (dwarf2_base_index_functions::map_symbol_filenames): Replace
  1554. 'visited' hash table with 'qfn_cache' unordered_set. Remove use
  1555. of per_Bfd->filenames_cache cache, and use function local
  1556. filenames_cache instead. Reindent.
  1557. * dwarf2/read.h (struct dwarf2_per_bfd) <filenames_cache>: Delete.
  1558. 2021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
  1559. * breakpoint.c (iterate_over_bp_locations): Change callback to
  1560. function view, remove data parameter.
  1561. * breakpoint.h (iterate_over_bp_locations): Likewise.
  1562. * record-full.c (record_full_sync_record_breakpoints): Remove
  1563. data parameter.
  1564. 2021-04-22 Tom Tromey <tom@tromey.com>
  1565. * c-typeprint.c (c_type_print_base_struct_union): Use
  1566. print_spaces_filtered_with_print_options.
  1567. 2021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
  1568. PR gdb/27757
  1569. * python/py-type.c (typy_range): Check that bounds are constant
  1570. before accessing them as such.
  1571. * guile/scm-type.c (gdbscm_type_range): Likewise.
  1572. 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  1573. * Makefile.in (COMMON_SFILES): Remove continuations.c.
  1574. * inferior.c (inferior::add_continuation): New method, adapted
  1575. from 'add_inferior_continuation'.
  1576. (inferior::do_all_continuations): New method, adapted from
  1577. 'do_all_inferior_continuations'.
  1578. (inferior::~inferior): Clear the list of continuations directly.
  1579. * inferior.h (class inferior) <continuations>: Rename into...
  1580. <m_continuations>: ...this and make private.
  1581. * continuations.c: Remove.
  1582. * continuations.h: Remove.
  1583. * event-top.c: Don't include "continuations.h".
  1584. Update the users below.
  1585. * inf-loop.c (inferior_event_handler)
  1586. * infcmd.c (attach_command)
  1587. (notice_new_inferior): Update.
  1588. 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  1589. * inferior.h (class inferior) <continuations>: Change the type
  1590. to be an std::list of std::function's.
  1591. Update the references and uses below.
  1592. * continuations.c (struct continuation): Delete.
  1593. (make_continuation): Delete.
  1594. (do_my_continuations_1): Delete.
  1595. (do_my_continuations): Delete.
  1596. (discard_my_continuations_1): Delete.
  1597. (discard_my_continuations): Delete.
  1598. (add_inferior_continuation): Update.
  1599. (do_all_inferior_continuations): Update.
  1600. (discard_all_inferior_continuations): Update.
  1601. * continuations.h (add_inferior_continuation): Update to take
  1602. an std::function as the parameter.
  1603. * infcmd.c (struct attach_command_continuation_args): Delete.
  1604. (attach_command_continuation): Delete.
  1605. (attach_command_continuation_free_args): Delete.
  1606. (attach_command): Update.
  1607. (notice_new_inferior): Update.
  1608. 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  1609. * continuations.h: Update the general comment.
  1610. * inferior.h (class inferior) <continuations>: Update the comment.
  1611. * interps.c: Do not include "continuations.h".
  1612. 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  1613. * continuations.h (do_all_inferior_continuations): Remove the 'err'
  1614. parameter. Update the references below.
  1615. * continuations.c (do_my_continuations_1)
  1616. (do_my_continuations)
  1617. (do_all_inferior_continuations): Update.
  1618. * inf-loop.c (inferior_event_handler): Update.
  1619. * infcmd.c (attach_command_continuation): Update.
  1620. 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  1621. * infcmd.c (attach_post_wait): Update the function comment.
  1622. 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  1623. * infcmd.c (attach_post_wait): Remove the unused parameter 'args'.
  1624. Update the references below.
  1625. (struct attach_command_continuation_args)
  1626. (attach_command_continuation)
  1627. (attach_command_continuation_free_args)
  1628. (attach_command)
  1629. (notice_new_inferior): Update to remove the reference to 'args'.
  1630. 2021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
  1631. Tom de Vries <tdevries@suse.de>
  1632. PR remote/27710
  1633. * remote.c (remote_target_is_non_stop_p): New function.
  1634. * remote.h (remote_target_is_non_stop_p): Declare.
  1635. * remote-notif.c (remote_async_get_pending_events_handler): Fix assert
  1636. to check non-stopness using notif_state->remote rather current target.
  1637. 2021-04-22 Tom Tromey <tom@tromey.com>
  1638. * rust-parse.c (rust_parser::parse_sizeof): Remove KW_MUT code.
  1639. (struct typed_val_int) <val>: Now ULONGEST.
  1640. (rust_parser::parse_array_type): Remove negative check.
  1641. (rust_lex_int_test): Change 'value' to ULONGEST.
  1642. 2021-04-22 Andrew Burgess <andrew.burgess@embecosm.com>
  1643. * arch-utils.c (default_addressable_memory_unit_size): Return a
  1644. value based on bfd's bits per byte.
  1645. 2021-04-21 Tom Tromey <tom@tromey.com>
  1646. * dwarf2/read.h (struct dwarf2_per_cu_data) <dwarf_version>: Now
  1647. unsigned char.
  1648. (struct dwarf2_per_cu_data): Rearrange.
  1649. * dwarf2/comp-unit.h (struct comp_unit_head) <version>: Now
  1650. unsigned char.
  1651. (struct comp_unit_head): Rearrange.
  1652. * dwarf2/comp-unit.c (read_comp_unit_head): Update.
  1653. 2021-04-21 Tom de Vries <tdevries@suse.de>
  1654. PR build/27681
  1655. * configure.ac: Remove --without-included-regex/--with-included-regex.
  1656. * config.in: Regenerate.
  1657. * configure: Regenerate.
  1658. * gdb_regex.h: Assume USE_INCLUDED_REGEX is defined.
  1659. 2021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  1660. * breakpoint.h (create_breakpoint): Add a new parameter,
  1661. 'force_condition'.
  1662. * breakpoint.c (create_breakpoint): Use the 'force_condition'
  1663. argument when 'parse_extra' is false to check if the condition
  1664. is invalid at all of the breakpoint locations.
  1665. Update the users below.
  1666. (break_command_1)
  1667. (dprintf_command)
  1668. (trace_command)
  1669. (ftrace_command)
  1670. (strace_command)
  1671. (create_tracepoint_from_upload): Update.
  1672. * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
  1673. * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
  1674. * python/py-breakpoint.c (bppy_init): Update.
  1675. * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
  1676. 2021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  1677. * breakpoint.c (print_one_breakpoint_location): Display "N" for
  1678. disabled-by-condition locations on MI-like output.
  1679. (breakpoint_1): Do not display the disabled-by-condition footnote
  1680. if the output is MI-like.
  1681. 2021-04-21 Frederic Cambus <fred@statdns.com>
  1682. * syscalls/update-netbsd.sh: Fix script name display in usage, and
  1683. update year range in generated copyright notices.
  1684. 2021-04-20 Felix Willgerodt <felix.willgerodt@intel.com>
  1685. * c-exp.y (qualifier_seq_noopt): Replace qualifier_seq with
  1686. qualifier_seq_noopt.
  1687. 2021-04-20 Felix Willgerodt <felix.willgerodt@intel.com>
  1688. * c-exp.y (single_qualifier): Handle UNKNOWN_CPP_NAME.
  1689. 2021-04-19 Andrew Burgess <andrew.burgess@embecosm.com>
  1690. * producer.c: Replace 'regex' include with 'gdb_regex.h'.
  1691. (producer_is_icc): Replace use of std::regex with gdb's
  1692. compiled_regex.
  1693. 2021-04-17 Tom Tromey <tom@tromey.com>
  1694. PR gdb/23743:
  1695. * dwarf2/read.c (class offset_view): New.
  1696. (struct symbol_table_slot): Remove.
  1697. (struct mapped_index) <symbol_table, constant_pool>: Change type.
  1698. <symbol_name_index, symbol_vec_index>: New methods.
  1699. <symbol_name_slot_invalid, symbol_name_at, symbol_name_count>:
  1700. Rewrite.
  1701. (read_gdb_index_from_buffer): Update.
  1702. (struct dw2_symtab_iterator) <vec>: Change type.
  1703. (dw2_symtab_iter_init_common, dw2_symtab_iter_init)
  1704. (dw2_symtab_iter_next, dw2_expand_marked_cus): Update.
  1705. * dwarf2/index-write.c (class data_buf) <append_data>: Remove.
  1706. <append_array, append_offset>: New methods.
  1707. (write_hash_table, add_address_entry, write_gdbindex_1)
  1708. (write_debug_names): Update.
  1709. * dwarf2/index-common.h (byte_swap, MAYBE_SWAP): Remove.
  1710. 2021-04-17 Tom Tromey <tom@tromey.com>
  1711. * dwarf2/index-write.c (write_psymtabs_to_index): Check
  1712. partial_symtabs.
  1713. 2021-04-17 Tom Tromey <tom@tromey.com>
  1714. * psymtab.c (psymbol_functions::expand_matching_symbols): Rename
  1715. from map_matching_symbols. Change parameters.
  1716. * psympriv.h (struct psymbol_functions) <expand_matching_symbols>:
  1717. Rename from map_matching_symbols. Change parameters.
  1718. * dwarf2/read.c (struct dwarf2_gdb_index)
  1719. <expand_matching_symbols>: Rename from map_matching_symbols.
  1720. Change parameters.
  1721. (struct dwarf2_debug_names_index) <expand_matching_symbols>:
  1722. Rename from map_matching_symbols. Change parameters.
  1723. (dwarf2_gdb_index::expand_matching_symbols): Rename from
  1724. dw2_map_matching_symbols. Change parameters.
  1725. (dwarf2_gdb_index::expand_matching_symbols): Remove old
  1726. implementation.
  1727. (dwarf2_debug_names_index::expand_matching_symbols): Rename from
  1728. map_matching_symbols. Change parameters.
  1729. * objfiles.h (struct objfile) <expand_matching_symbols>: Rename
  1730. from map_matching_symbols. Change parameters.
  1731. * symfile-debug.c (objfile::expand_matching_symbols): Rename from
  1732. map_matching_symbols. Change parameters.
  1733. * ada-lang.c (map_matching_symbols): New function.
  1734. (add_nonlocal_symbols): Update.
  1735. 2021-04-17 Tom Tromey <tom@tromey.com>
  1736. * quick-symbol.h (struct quick_symbol_functions)
  1737. <expand_symtabs_with_fullname>: Remove.
  1738. * psymtab.c (psymbol_functions::expand_symtabs_with_fullname):
  1739. Remove.
  1740. * psympriv.h (struct psymbol_functions)
  1741. <expand_symtabs_with_fullname>: Remove.
  1742. * dwarf2/read.c (struct dwarf2_base_index_functions)
  1743. <expand_symtabs_with_fullname>: Remove.
  1744. (dwarf2_base_index_functions::expand_symtabs_with_fullname):
  1745. Remove.
  1746. * objfiles.h (struct objfile) <expand_symtabs_with_fullname>:
  1747. Update comment.
  1748. * symfile-debug.c (objfile::expand_symtabs_with_fullname):
  1749. Rewrite.
  1750. 2021-04-17 Tom Tromey <tom@tromey.com>
  1751. * symfile-debug.c (objfile::expand_symtabs_for_function):
  1752. Rewrite.
  1753. * quick-symbol.h (struct quick_symbol_functions)
  1754. <expand_symtabs_for_function>: Remove.
  1755. * psymtab.c (psymbol_functions::expand_symtabs_for_function):
  1756. Remove.
  1757. * psympriv.h (struct psymbol_functions)
  1758. <expand_symtabs_for_function>: Remove.
  1759. * objfiles.h (struct objfile) <expand_symtabs_for_function>:
  1760. Update comment.
  1761. * dwarf2/read.c (struct dwarf2_gdb_index)
  1762. <expand_symtabs_for_function>: Remove.
  1763. (struct dwarf2_debug_names_index) <expand_symtabs_for_function>:
  1764. Remove.
  1765. (find_slot_in_mapped_hash): Remove.
  1766. (dw2_symtab_iter_init_common): Merge with dw2_symtab_iter_init.
  1767. (dw2_symtab_iter_init): Remove one overload.
  1768. (dwarf2_gdb_index::expand_symtabs_for_function)
  1769. (dwarf2_debug_names_index::expand_symtabs_for_function): Remove.
  1770. 2021-04-17 Tom Tromey <tom@tromey.com>
  1771. * symfile-debug.c (objfile::map_symtabs_matching_filename):
  1772. Rewrite.
  1773. * quick-symbol.h (struct quick_symbol_functions)
  1774. <map_symtabs_matching_filename>: Remove.
  1775. * psymtab.c (partial_map_expand_apply)
  1776. (psymbol_functions::map_symtabs_matching_filename): Remove.
  1777. * psympriv.h (struct psymbol_functions)
  1778. <map_symtabs_matching_filename>: Remove.
  1779. * objfiles.h (struct objfile) <map_symtabs_matching_filename>:
  1780. Update comment.
  1781. * dwarf2/read.c (struct dwarf2_base_index_functions)
  1782. <map_symtabs_matching_filename>: Remove.
  1783. (dw2_map_expand_apply)
  1784. (dwarf2_base_index_functions::map_symtabs_matching_filename):
  1785. Remove.
  1786. 2021-04-17 Tom Tromey <tom@tromey.com>
  1787. * symfile-debug.c (objfile::lookup_symbol): Rewrite.
  1788. * quick-symbol.h (struct quick_symbol_functions) <lookup_symbol>:
  1789. Remove.
  1790. * psymtab.c (psymbol_functions::lookup_symbol): Remove.
  1791. * psympriv.h (struct psymbol_functions) <lookup_symbol>: Remove.
  1792. * objfiles.h (struct objfile) <lookup_symbol>: Add comment.
  1793. * dwarf2/read.c (struct dwarf2_gdb_index) <lookup_symbol>:
  1794. Remove.
  1795. (struct dwarf2_debug_names_index) <lookup_symbol>: Remove.
  1796. (dwarf2_gdb_index::lookup_symbol)
  1797. (dwarf2_debug_names_index::lookup_symbol): Remove.
  1798. 2021-04-17 Tom Tromey <tom@tromey.com>
  1799. * symtab.c (global_symbol_searcher::expand_symtabs): Update.
  1800. * symmisc.c (maintenance_expand_symtabs): Update.
  1801. * symfile.c (expand_symtabs_matching): Update.
  1802. * symfile-debug.c (objfile::expand_symtabs_matching): Add 'domain'
  1803. parameter.
  1804. * quick-symbol.h (struct quick_symbol_functions)
  1805. <expand_symtabs_matching>: Add 'domain' parameter.
  1806. * psymtab.c (recursively_search_psymtabs)
  1807. (psymbol_functions::expand_symtabs_matching): Add 'domain'
  1808. parameter.
  1809. * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
  1810. Add 'domain' parameter.
  1811. * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
  1812. 'domain' parameter.
  1813. * linespec.c (iterate_over_all_matching_symtabs): Update.
  1814. * dwarf2/read.c (struct dwarf2_gdb_index)
  1815. <expand_symtabs_matching>: Add 'domain' parameter.
  1816. (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
  1817. 'domain' parameter.
  1818. (dw2_expand_symtabs_matching)
  1819. (dwarf2_gdb_index::expand_symtabs_matching)
  1820. (dw2_debug_names_iterator)
  1821. (dwarf2_debug_names_index::expand_symtabs_matching): Add 'domain'
  1822. parameter.
  1823. 2021-04-17 Tom Tromey <tom@tromey.com>
  1824. * symtab.c (global_symbol_searcher::expand_symtabs)
  1825. (default_collect_symbol_completion_matches_break_on): Update.
  1826. * symmisc.c (maintenance_expand_symtabs): Update.
  1827. * symfile.h (expand_symtabs_matching): Add search_flags
  1828. parameter.
  1829. * symfile.c (expand_symtabs_matching): Add search_flags
  1830. parameter.
  1831. * symfile-debug.c (objfile::expand_symtabs_matching): Add
  1832. search_flags parameter.
  1833. * quick-symbol.h (struct quick_symbol_functions)
  1834. <expand_symtabs_matching>: Add search_flags parameter.
  1835. * python/py-symbol.c (gdbpy_lookup_static_symbols): Update.
  1836. * psymtab.c (recursively_search_psymtabs)
  1837. (psymbol_functions::expand_symtabs_matching): Add search_flags
  1838. parameter.
  1839. * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
  1840. Add search_flags parameter.
  1841. * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
  1842. search_flags parameter.
  1843. * linespec.c (iterate_over_all_matching_symtabs): Update.
  1844. * dwarf2/read.c (struct dwarf2_gdb_index)
  1845. <expand_symtabs_matching>: Add search_flags parameter.
  1846. (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
  1847. search_flags parameter.
  1848. (dw2_map_matching_symbols): Update.
  1849. (dw2_expand_marked_cus, dw2_expand_symtabs_matching)
  1850. (dwarf2_gdb_index::expand_symtabs_matching): Add search_flags
  1851. parameter.
  1852. (dw2_debug_names_iterator): Change block_index to search flags.
  1853. <m_block_index>: Likewise.
  1854. (dw2_debug_names_iterator::next)
  1855. (dwarf2_debug_names_index::lookup_symbol)
  1856. (dwarf2_debug_names_index::expand_symtabs_for_function)
  1857. (dwarf2_debug_names_index::map_matching_symbols)
  1858. (dwarf2_debug_names_index::map_matching_symbols): Update.
  1859. (dwarf2_debug_names_index::expand_symtabs_matching): Add
  1860. search_flags parameter.
  1861. * ada-lang.c (ada_add_global_exceptions)
  1862. (collect_symbol_completion_matches): Update.
  1863. 2021-04-17 Tom Tromey <tom@tromey.com>
  1864. * symtab.c (default_collect_symbol_completion_matches_break_on):
  1865. Update.
  1866. * symfile.h (expand_symtabs_matching): Return bool.
  1867. * symfile.c (expand_symtabs_matching): Return bool.
  1868. * symfile-debug.c (objfile::expand_symtabs_matching): Return
  1869. bool.
  1870. * quick-symbol.h (expand_symtabs_exp_notify_ftype): Return bool.
  1871. (struct quick_symbol_functions) <expand_symtabs_matching>: Return
  1872. bool.
  1873. * psymtab.c (psymbol_functions::expand_symtabs_matching): Return
  1874. bool.
  1875. * psympriv.h (struct psymbol_functions)
  1876. <expand_symtabs_matching>: Return bool.
  1877. * objfiles.h (struct objfile) <expand_symtabs_matching>: Return
  1878. bool.
  1879. * dwarf2/read.c (struct dwarf2_gdb_index)
  1880. <expand_symtabs_matching>: Return bool.
  1881. (struct dwarf2_debug_names_index) <expand_symtabs_matching>:
  1882. Return bool.
  1883. (dw2_expand_symtabs_matching_symbol): Return bool.
  1884. (dw2_expand_symtabs_matching_one, dw2_expand_marked_cus)
  1885. (dw2_expand_symtabs_matching)
  1886. (dwarf2_gdb_index::expand_symtabs_matching)
  1887. (dwarf2_debug_names_index::expand_symtabs_matching)
  1888. (dwarf2_debug_names_index::expand_symtabs_matching): Return bool.
  1889. 2021-04-17 Tom Tromey <tom@tromey.com>
  1890. * quick-symbol.h (enum block_search_flag_values): New.
  1891. (block_search_flags): New enum flags type.
  1892. 2021-04-16 Tom Tromey <tom@tromey.com>
  1893. * rust-parse.c: New file.
  1894. * rust-exp.y: Remove.
  1895. * Makefile.in (COMMON_SFILES): Add rust-parse.c.
  1896. (SFILES): Remove rust-exp.y.
  1897. (YYFILES, local-maintainer-clean): Remove rust-exp.c.
  1898. 2021-04-16 Luis Machado <luis.machado@linaro.org>
  1899. * arch-utils.c (default_floatformat_for_type): Handle bfloat16.
  1900. 2021-04-15 John Baldwin <jhb@FreeBSD.org>
  1901. * fbsd-nat.c (fbsd_lwp_debug_printf, fbsd_nat_debug_printf): New,
  1902. use throughout file.
  1903. 2021-04-15 Tom Tromey <tromey@adacore.com>
  1904. * ada-valprint.c (ada_value_print_array): Handle optimized-out
  1905. arrays.
  1906. 2021-04-15 Tom Tromey <tromey@adacore.com>
  1907. * printcmd.c (print_variable_and_value): Use
  1908. common_val_print_checked.
  1909. 2021-04-15 Tom Tromey <tromey@adacore.com>
  1910. * rust-exp.y (rust_parser::convert_ast_to_expression): Update.
  1911. * parse.c (parser_state::push_symbol, parser_state::push_dollar):
  1912. Update.
  1913. * p-exp.y (variable): Update.
  1914. * m2-exp.y (variable): Update.
  1915. * go-exp.y (variable): Update.
  1916. * expprint.c (dump_for_expression): New overload.
  1917. * expop.h (check_objfile): New overload.
  1918. (check_constant): New overload.
  1919. (class var_value_operation): Use block_symbol.
  1920. <get_symbol>: Rewrite.
  1921. * eval.c (var_value_operation::evaluate)
  1922. (var_value_operation::evaluate_funcall)
  1923. (var_value_operation::evaluate_for_address)
  1924. (var_value_operation::evaluate_for_address)
  1925. (var_value_operation::evaluate_with_coercion)
  1926. (var_value_operation::evaluate_for_sizeof)
  1927. (var_value_operation::evaluate_for_cast): Update.
  1928. * d-exp.y (PrimaryExpression): Update.
  1929. * c-exp.y (variable): Update.
  1930. * ax-gdb.c (var_value_operation::do_generate_ax): Update.
  1931. * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
  1932. (ada_var_value_operation::evaluate)
  1933. (ada_var_value_operation::resolve)
  1934. (ada_funcall_operation::resolve): Update.
  1935. * ada-exp.y (write_var_from_sym, write_object_renaming)
  1936. (write_ambiguous_var, write_var_or_type, write_name_assoc)
  1937. (maybe_overload): Update.
  1938. * ada-exp.h (class ada_var_value_operation) <get_block>: Rewrite.
  1939. 2021-04-15 Tom Tromey <tom@tromey.com>
  1940. Andrew Burgess <andrew.burgess@embecosm.com>
  1941. * NEWS: Add entry.
  1942. * main.c (captured_main_1): Call check_quiet_mode.
  1943. * top.c (startup_quiet): New global.
  1944. (check_quiet_mode): New function.
  1945. (show_startup_quiet): New function.
  1946. (init_main): Register new command.
  1947. * top.h (check_quiet_mode): Declare.
  1948. 2021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
  1949. PR cli/25956
  1950. * NEWS: Mention new early init files and command line options.
  1951. * config.in: Regenerate.
  1952. * configure: Regenerate.
  1953. * configure.ac: Define GDBEARLYINIT.
  1954. * main.c (get_earlyinit_files): New function.
  1955. (enum cmdarg_kind): Add CMDARG_EARLYINIT_FILE and
  1956. CMDARG_EARLYINIT_COMMAND.
  1957. (captured_main_1): Add support for new command line flags, and for
  1958. processing startup files.
  1959. (print_gdb_help): Include startup files in the output.
  1960. 2021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
  1961. * main.c (relocate_gdbinit_path_maybe_in_datadir): Rename to...
  1962. (relocate_file_path_maybe_in_datadir): ...this.
  1963. (class gdb_initfile_finder): New class.
  1964. (get_init_files): Now uses gdb_initfile_finder.
  1965. (print_gdb_help): Print 'None found' when there are no init files.
  1966. 2021-04-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  1967. * dwarf2/read.c (inherit_abstract_dies): Keep a reference to the
  1968. corresponding child of the abstract DIE when iterating the
  1969. children of the concrete DIE.
  1970. 2021-04-13 Tom de Vries <tdevries@suse.de>
  1971. * ui-style.c (read_semi_number, extended_color): Change idx parameter
  1972. type to regoff_t *.
  1973. 2021-04-13 Luis Machado <luis.machado@linaro.org>
  1974. * rs6000-tdep.c (ppc_displaced_step_fixup): Use %s to print
  1975. hex values.
  1976. 2021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
  1977. * rs6000-tdep.c: Add support for single-stepping of
  1978. prefixed instructions.
  1979. 2021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
  1980. PR gdb/27525
  1981. * gdb/rs6000-tdep.c (ppc_displaced_step_fixup): Update to
  1982. handle the addpcis/lnia instruction.
  1983. 2021-04-05 Will Schmidt <will_schmidt@vnet.ibm.com>
  1984. * MAINTAINERS (Write After Approval): Add myself.
  1985. 2021-4-12 Carl Love <cel@us.ibm.com>
  1986. * rs6000-tdep.c (rs6000_builtin_type_vec128): Add t_float128 variable.
  1987. (rs6000_builtin_type_vec128): Add append_composite_type_field for
  1988. float128.
  1989. 2021-04-12 Simon Marchi <simon.marchi@polymtl.ca>
  1990. * nat/windows-nat.c: Remove all code guarded by _WIN32_WCE.
  1991. * nat/windows-nat.h: Likewise.
  1992. 2021-04-10 Eli Zaretskii <eliz@gnu.org>
  1993. * windows-nat.c (windows_nat::handle_load_dll): Call
  1994. windows_add_dll if get_image_name failed to glean the name of the
  1995. DLL by using the lpImageName pointer.
  1996. (windows_add_all_dlls): Now a thin wrapper around windows_add_dll.
  1997. (windows_add_dll): Now does what windows_add_all_dlls did before,
  1998. but also accepts an argument LOAD_ADDR, which, if non-NULL,
  1999. specifies the address where the DLL was loaded into the inferior,
  2000. and looks for the single DLL loaded at that address.
  2001. 2021-04-09 Luis Machado <luis.machado@linaro.org>
  2002. * nat/aarch64-mte-linux-ptrace.c: Update include file order.
  2003. 2021-04-08 Dominique Quatravaux <dominique.quatravaux@epfl.ch>
  2004. * darwin-nat.c (darwin_nat_target::resume): Remove status
  2005. variable.
  2006. 2021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
  2007. * i386-tdep.c (i386_skip_prologue): Use symbol table to find the
  2008. prologue end for Intel compilers.
  2009. * amd64-tdep.c (amd64_skip_prologue): Likewise.
  2010. * producer.c (producer_is_icc_ge_19): New function.
  2011. * producer.h (producer_is_icc_ge_19): New declaration.
  2012. 2021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
  2013. * producer.c: (producer_is_icc): Update for new version scheme.
  2014. (producer_parsing_tests): Update names and expected results.
  2015. * producer.h: (producer_is_icc): Update comment accordingly.
  2016. 2021-04-07 Simon Marchi <simon.marchi@polymtl.ca>
  2017. * target.h (struct target_ops) <follow_fork>: Return void.
  2018. (target_follow_fork): Likewise.
  2019. * target.c (default_follow_fork): Likewise.
  2020. (target_follow_fork): Likewise.
  2021. * infrun.c (follow_fork_inferior): Adjust.
  2022. * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Return void.
  2023. * fbsd-nat.c (fbsd_nat_target:::follow_fork): Likewise.
  2024. * linux-nat.h (class linux_nat_target) <follow_fork>: Likewise.
  2025. * linux-nat.c (linux_nat_target::follow_fork): Return void.
  2026. * obsd-nat.h (class obsd_nat_target) <follow_fork>: Return void.
  2027. * obsd-nat.c (obsd_nat_target::follow_fork): Likewise.
  2028. * remote.c (class remote_target) <follow_fork>: Likewise.
  2029. (remote_target::follow_fork): Likewise.
  2030. * target-delegates.c: Re-generate.
  2031. 2021-04-07 Weimin Pan <weimin.pan@oracle.com>
  2032. * ctfread.c (fetch_tid_type): New function, use throughout file.
  2033. (read_forward_type): New function.
  2034. (read_type_record): Call read_forward_type.
  2035. 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
  2036. * f-exp.h (class fortran_structop_operation): New class.
  2037. * f-exp.y (exp): Create fortran_structop_operation instead of the
  2038. generic structop_operation.
  2039. * f-lang.c (fortran_undetermined::evaluate): Re-evaluate
  2040. expression as EVAL_NORMAL if the result type was dynamic so we can
  2041. extract the actual array bounds.
  2042. (fortran_structop_operation::evaluate): New function.
  2043. 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
  2044. * eval.c (evaluate_subexp_standard): Remove
  2045. EVAL_AVOID_SIDE_EFFECTS handling from STRUCTOP_STRUCT and
  2046. STRUCTOP_PTR.
  2047. 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
  2048. * valops.c (value_cast): Call value_deeply_equal before performing
  2049. any cast.
  2050. 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
  2051. * gdbtypes.c (types_equal): Move pointer equality check earlier in
  2052. the function.
  2053. 2021-04-07 Caroline Tice <cmtice@google.com>
  2054. * dwarf2/read.c (try_open_dwop_file): Add path for the binary to
  2055. the search paths used resolve relative location of .dwo file.
  2056. 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
  2057. * dwarf2/section.c (dwarf2_section_info::get_bfd_owner): Add an
  2058. assert.
  2059. (dwarf2_section_info::get_file_name): Add an assert.
  2060. (dwarf2_section_info::read_string): Display a minimal, sane error
  2061. when the dwarf2_section_info is not associated with a bfd section.
  2062. 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
  2063. * top.c (staged_gdb_datadir): Update comment.
  2064. (set_gdb_datadir): Copy the value of gdb_datadir back into
  2065. staged_datadir.
  2066. (init_main): Initialise staged_gdb_datadir.
  2067. 2021-04-06 Tom de Vries <tdevries@suse.de>
  2068. PR breakpoints/25884
  2069. * infcmd.c (prepare_one_step): Using inline frame info to narrow
  2070. stepping range.
  2071. 2021-04-06 Tom de Vries <tdevries@suse.de>
  2072. PR tui/27680
  2073. * tui/tui-disasm.c (len_without_escapes): Pass ptr pointing at escape
  2074. to style.parse.
  2075. 2021-04-04 Simon Marchi <simon.marchi@polymtl.ca>
  2076. * avr-tdep.c (avr_frame_unwind_cache): Use
  2077. trad_frame_saved_reg::is_addr.
  2078. 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
  2079. * objfiles.c (get_objfile_bfd_data): Remove objfile parameter,
  2080. adjust callers.
  2081. 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
  2082. * psympriv.h (struct partial_symtab) <partial_symtab>: Change
  2083. objfile parameter for objfile_per_bfd_storage, adjust callers.
  2084. (struct standard_psymtab) <standard_psymtab>: Likewise.
  2085. (struct legacy_psymtab) <legacy_psymtab>: Likewise.
  2086. * psymtab.c (partial_symtab::partial_symtab): Likewise.
  2087. * ctfread.c (struct ctf_psymtab): Likewise.
  2088. * dwarf2/read.h (struct dwarf2_psymtab): Likewise.
  2089. * dwarf2/read.c (struct dwarf2_include_psymtab): Likewise.
  2090. (dwarf2_create_include_psymtab): Likewise.
  2091. * objfiles.h (struct objfile_per_bfd_storage)
  2092. <objfile_per_bfd_storage>: Add bfd parameter, adjust callers.
  2093. <get_bfd>: New method.
  2094. <m_bfd>: New field.
  2095. * objfiles.c (get_objfile_bfd_data): Adjust.
  2096. 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
  2097. * psymtab.c (partial_symtab::partial_symtab): Change
  2098. last_objfile_name to be an std::string.
  2099. * symfile.c (allocate_symtab): Likewise.
  2100. 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
  2101. * objfiles.h (struct objfile_per_bfd_storage) <intern>: New
  2102. methods.
  2103. (struct objfile) <intern>: Use
  2104. objfile::objfile_per_bfd_storage::intern.
  2105. 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
  2106. * gdbtypes.h (TYPE_FLAG_ENUM): Remove, replace all uses
  2107. with type::is_flag_enum.
  2108. 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
  2109. * gdbtypes.h (struct type) <is_flag_enum,
  2110. set_is_flag_enum>: New methods.
  2111. (TYPE_FLAG_ENUM): Use type::is_flag_enum, change all
  2112. write call sites to use type::set_is_flag_enum.
  2113. 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
  2114. * gdbtypes.h (TYPE_DECLARED_CLASS): Remove, replace all uses
  2115. with type::is_declared_class.
  2116. 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
  2117. * gdbtypes.h (struct type) <is_declared_class,
  2118. set_is_declared_class>: New methods.
  2119. (TYPE_DECLARED_CLASS): Use type::is_declared_class, change all
  2120. write call sites to use type::set_is_declared_class.
  2121. 2021-02-28 Boris Staletic <boris.staletic@gmail.com>
  2122. * gdb/python/lib/gdb/__init__.py: Use importlib on python 3.4+
  2123. to avoid deprecation warnings.
  2124. 2021-04-01 Martin Liska <mliska@suse.cz>
  2125. * cp-name-parser.y: Use startswith instead of strncmp.
  2126. * m2-exp.y: Likewise.
  2127. * macroexp.c (substitute_args): Likewise.
  2128. * mi/mi-main.c (command_notifies_uscc_observer): Likewise.
  2129. * rust-exp.y: Likewise.
  2130. 2021-03-31 Tom Tromey <tom@tromey.com>
  2131. * dwarf2/read.c (dwarf2_gdb_index::map_matching_symbols): Merge
  2132. with dw2_map_matching_symbols.
  2133. (dwarf2_gdb_index::expand_symtabs_matching): Merge with
  2134. dw2_expand_symtabs_matching.
  2135. 2021-03-31 Tom Tromey <tromey@adacore.com>
  2136. * dwarf2/stringify.h: Fix typo.
  2137. 2021-03-30 Simon Marchi <simon.marchi@polymtl.ca>
  2138. PR gdb/27541
  2139. * dwarf2/read.c (dwarf2_has_info): Don't share dwarf2_per_bfd
  2140. with objfiles using READNOW.
  2141. 2021-03-29 Tom Tromey <tromey@adacore.com>
  2142. * top.c (check_frame_language_change): Update.
  2143. * language.c (language_info): Remove parameter.
  2144. * language.h (language_info): Remove parameter.
  2145. 2021-03-29 Luis Machado <luis.machado@linaro.org>
  2146. * compile/compile.c (get_args): Don't add empty argv entries.
  2147. 2021-03-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  2148. gdb:
  2149. * procfs.c (procfs_target::attach): Define inf.
  2150. Use it.
  2151. (procfs_target::create_inferior): Likewise.
  2152. 2021-03-28 Tom Tromey <tom@tromey.com>
  2153. * elfread.c (can_lazily_read_symbols): Move to dwarf2/read.c.
  2154. (elf_symfile_read): Simplify.
  2155. * dwarf2/read.c (struct lazy_dwarf_reader): Move from elfread.c.
  2156. (make_lazy_dwarf_reader): New function.
  2157. (make_dwarf_gdb_index, make_dwarf_debug_names): Now static.
  2158. (dwarf2_initialize_objfile): Return void. Remove index_kind
  2159. parameter. Push on 'qf' list.
  2160. * dwarf2/public.h (dwarf2_initialize_objfile): Change return
  2161. type. Remove 'index_kind' parameter.
  2162. (make_dwarf_gdb_index, make_dwarf_debug_names): Don't declare.
  2163. 2021-03-27 Tom Tromey <tom@tromey.com>
  2164. * elfread.c (elf_sym_fns_lazy_psyms): Don't declare.
  2165. 2021-03-27 Tom Tromey <tom@tromey.com>
  2166. * elfread.c (elf_symfile_read): Don't clear 'qf'.
  2167. 2021-03-26 Lancelot Six <lsix@lancelotsix.com>
  2168. * contrib/gdb-add-index.sh: Avoid variable shadowing and get
  2169. rid of 'local'.
  2170. 2021-03-26 Tom Tromey <tom@tromey.com>
  2171. * symtab.c (struct output_source_filename_data): Add 'output'
  2172. method and operator().
  2173. (output_source_filename_data::output): Rename from
  2174. output_source_filename.
  2175. (output_partial_symbol_filename): Remove.
  2176. (info_sources_command): Update.
  2177. (struct add_partial_filename_data): Add operator().
  2178. (add_partial_filename_data::operator()): Rename from
  2179. maybe_add_partial_symtab_filename.
  2180. (make_source_files_completion_list): Update.
  2181. * symfile.c (quick_symbol_functions): Update.
  2182. * symfile-debug.c (objfile::map_symbol_filenames): Update.
  2183. * quick-symbol.h (symbol_filename_ftype): Change type of 'fun' and
  2184. 'need_fullname'. Remove 'data' parameter.
  2185. (struct quick_symbol_functions) <map_symbol_filenames>: Likewise.
  2186. * psymtab.c (psymbol_functions::map_symbol_filenames): Update.
  2187. * psympriv.h (struct psymbol_functions) <map_symbol_filenames>:
  2188. Change type of 'fun' and 'need_fullname'. Remove 'data'
  2189. parameter.
  2190. * objfiles.h (struct objfile) <map_symbol_filenames>: Change type
  2191. of 'fun' and 'need_fullname'. Remove 'data' parameter.
  2192. * mi/mi-cmd-file.c (print_partial_file_name): Remove 'ignore'
  2193. parameter.
  2194. (mi_cmd_file_list_exec_source_files): Update.
  2195. * dwarf2/read.c
  2196. (dwarf2_base_index_functions::map_symbol_filenames): Update.
  2197. 2021-03-26 Tom Tromey <tom@tromey.com>
  2198. * ada-lang.c (struct match_data): Add operator().
  2199. (match_data::operator()): Rename from aux_add_nonlocal_symbols.
  2200. (callback): Remove 'callback'.
  2201. 2021-03-26 Tom Tromey <tom@tromey.com>
  2202. * psymtab.c (psymbol_functions::expand_symtabs_matching): Only
  2203. call make_ignore_params once.
  2204. 2021-03-26 Tom Tromey <tom@tromey.com>
  2205. * psymtab.c (psymbol_functions::expand_symtabs_matching): Remove
  2206. "user" check.
  2207. 2021-03-26 Simon Marchi <simon.marchi@efficios.com>
  2208. Pedro Alves <pedro@palves.net>
  2209. * async-event.c: Include "infrun.h".
  2210. (async_event_handler_marked): New.
  2211. * async-event.h (async_event_handler_marked): Declare.
  2212. * infrun.c (maybe_set_commit_resumed_all_targets): Switch to
  2213. inferior before calling target method. Don't commit-resumed if
  2214. target_has_pending_events is true.
  2215. * remote.c (remote_target::has_pending_events): New.
  2216. * target-delegates.c: Regenerate.
  2217. * target.c (target_has_pending_events): New.
  2218. * target.h (target_ops::has_pending_events): New target method.
  2219. (target_has_pending_events): New.
  2220. 2021-03-26 Simon Marchi <simon.marchi@efficios.com>
  2221. Pedro Alves <pedro@palves.net>
  2222. * infcmd.c (run_command_1, attach_command, detach_command)
  2223. (interrupt_target_1): Use scoped_disable_commit_resumed.
  2224. * infrun.c (do_target_resume): Remove
  2225. target_commit_resume call.
  2226. (commit_resume_all_targets): Remove.
  2227. (maybe_set_commit_resumed_all_targets): New.
  2228. (maybe_call_commit_resumed_all_targets): New.
  2229. (enable_commit_resumed): New.
  2230. (scoped_disable_commit_resumed::scoped_disable_commit_resumed)
  2231. (scoped_disable_commit_resumed::~scoped_disable_commit_resumed)
  2232. (scoped_disable_commit_resumed::reset)
  2233. (scoped_disable_commit_resumed::reset_and_commit)
  2234. (scoped_enable_commit_resumed::scoped_enable_commit_resumed)
  2235. (scoped_enable_commit_resumed::~scoped_enable_commit_resumed):
  2236. New.
  2237. (proceed): Use scoped_disable_commit_resumed and
  2238. maybe_call_commit_resumed_all_targets.
  2239. (fetch_inferior_event): Use scoped_disable_commit_resumed.
  2240. * infrun.h (struct scoped_disable_commit_resumed): New.
  2241. (maybe_call_commit_resumed_all_process_targets): New.
  2242. (struct scoped_enable_commit_resumed): New.
  2243. * mi/mi-main.c (exec_continue): Use scoped_disable_commit_resumed.
  2244. * process-stratum-target.h (class process_stratum_target):
  2245. <commit_resumed_state>: New.
  2246. * record-full.c (record_full_wait_1): Change commit_resumed_state
  2247. around calling commit_resumed.
  2248. * remote.c (class remote_target) <commit_resume>: Rename to...
  2249. <commit_resumed>: ... this.
  2250. (struct stop_reply): Move up.
  2251. (remote_target::commit_resume): Rename to...
  2252. (remote_target::commit_resumed): ... this. Check if there is any
  2253. thread pending vCont resume.
  2254. (remote_target::remote_stop_ns): Generate stop replies for resumed
  2255. but pending vCont threads.
  2256. (remote_target::wait_ns): Add gdb_assert.
  2257. * target-delegates.c: Regenerate.
  2258. * target.c (target_wait, target_resume): Assert that the current
  2259. process_stratum target isn't in commit-resumed state.
  2260. (defer_target_commit_resume): Remove.
  2261. (target_commit_resume): Remove.
  2262. (target_commit_resumed): New.
  2263. (make_scoped_defer_target_commit_resume): Remove.
  2264. (target_stop): Assert that the current process_stratum target
  2265. isn't in commit-resumed state.
  2266. * target.h (struct target_ops) <commit_resume>: Rename to ...
  2267. <commit_resumed>: ... this.
  2268. (target_commit_resume): Remove.
  2269. (target_commit_resumed): New.
  2270. (make_scoped_defer_target_commit_resume): Remove.
  2271. * top.c (wait_sync_command_done): Use
  2272. scoped_enable_commit_resumed.
  2273. 2021-03-26 Pedro Alves <pedro@palves.net>
  2274. * target.c (target_always_non_stop_p): Also check whether the
  2275. target can async.
  2276. 2021-03-26 Tom Tromey <tom@tromey.com>
  2277. * dwarf2/read.c (dwarf2_read_debug_names)
  2278. (dwarf2_build_psymtabs_hard, create_addrmap_from_aranges)
  2279. (dw2_debug_names_iterator::next, create_type_unit_group):
  2280. Simplify.
  2281. 2021-03-25 Pedro Alves <pedro@palves.net>
  2282. * gdb.server/bkpt-other-inferior.exp: Only enable remote output
  2283. around setting the breakpoint.
  2284. 2021-03-25 Pedro Alves <pedro@palves.net>
  2285. * remote.c
  2286. (remote_target::check_pending_events_prevent_wildcard_vcont):
  2287. Check whether the event's ptid is not null_ptid before looking up
  2288. the corresponding inferior.
  2289. 2021-03-24 Changbin Du <changbin.du@gmail.com>
  2290. * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Remove call to
  2291. read_code.
  2292. 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
  2293. * target.h (current_top_target): Remove, make callers use the
  2294. current inferior instead.
  2295. * target.c (current_top_target): Remove.
  2296. 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
  2297. * target.h (target_shortname): Change to function declaration.
  2298. (target_longname): Likewise.
  2299. (target_attach_no_wait): Likewise.
  2300. (target_post_attach): Likewise.
  2301. (target_prepare_to_store): Likewise.
  2302. (target_supports_enable_disable_tracepoint): Likewise.
  2303. (target_supports_string_tracing): Likewise.
  2304. (target_supports_evaluation_of_breakpoint_conditions): Likewise.
  2305. (target_supports_dumpcore): Likewise.
  2306. (target_dumpcore): Likewise.
  2307. (target_can_run_breakpoint_commands): Likewise.
  2308. (target_files_info): Likewise.
  2309. (target_post_startup_inferior): Likewise.
  2310. (target_insert_fork_catchpoint): Likewise.
  2311. (target_remove_fork_catchpoint): Likewise.
  2312. (target_insert_vfork_catchpoint): Likewise.
  2313. (target_remove_vfork_catchpoint): Likewise.
  2314. (target_insert_exec_catchpoint): Likewise.
  2315. (target_remove_exec_catchpoint): Likewise.
  2316. (target_set_syscall_catchpoint): Likewise.
  2317. (target_rcmd): Likewise.
  2318. (target_can_lock_scheduler): Likewise.
  2319. (target_can_async_p): Likewise.
  2320. (target_is_async_p): Likewise.
  2321. (target_execution_direction): Likewise.
  2322. (target_extra_thread_info): Likewise.
  2323. (target_pid_to_exec_file): Likewise.
  2324. (target_thread_architecture): Likewise.
  2325. (target_find_memory_regions): Likewise.
  2326. (target_make_corefile_notes): Likewise.
  2327. (target_get_bookmark): Likewise.
  2328. (target_goto_bookmark): Likewise.
  2329. (target_stopped_by_watchpoint): Likewise.
  2330. (target_stopped_by_sw_breakpoint): Likewise.
  2331. (target_supports_stopped_by_sw_breakpoint): Likewise.
  2332. (target_stopped_by_hw_breakpoint): Likewise.
  2333. (target_supports_stopped_by_hw_breakpoint): Likewise.
  2334. (target_have_steppable_watchpoint): Likewise.
  2335. (target_can_use_hardware_watchpoint): Likewise.
  2336. (target_region_ok_for_hw_watchpoint): Likewise.
  2337. (target_can_do_single_step): Likewise.
  2338. (target_insert_watchpoint): Likewise.
  2339. (target_remove_watchpoint): Likewise.
  2340. (target_insert_hw_breakpoint): Likewise.
  2341. (target_remove_hw_breakpoint): Likewise.
  2342. (target_can_accel_watchpoint_condition): Likewise.
  2343. (target_can_execute_reverse): Likewise.
  2344. (target_get_ada_task_ptid): Likewise.
  2345. (target_filesystem_is_local): Likewise.
  2346. (target_trace_init): Likewise.
  2347. (target_download_tracepoint): Likewise.
  2348. (target_can_download_tracepoint): Likewise.
  2349. (target_download_trace_state_variable): Likewise.
  2350. (target_enable_tracepoint): Likewise.
  2351. (target_disable_tracepoint): Likewise.
  2352. (target_trace_start): Likewise.
  2353. (target_trace_set_readonly_regions): Likewise.
  2354. (target_get_trace_status): Likewise.
  2355. (target_get_tracepoint_status): Likewise.
  2356. (target_trace_stop): Likewise.
  2357. (target_trace_find): Likewise.
  2358. (target_get_trace_state_variable_value): Likewise.
  2359. (target_save_trace_data): Likewise.
  2360. (target_upload_tracepoints): Likewise.
  2361. (target_upload_trace_state_variables): Likewise.
  2362. (target_get_raw_trace_data): Likewise.
  2363. (target_get_min_fast_tracepoint_insn_len): Likewise.
  2364. (target_set_disconnected_tracing): Likewise.
  2365. (target_set_circular_trace_buffer): Likewise.
  2366. (target_set_trace_buffer_size): Likewise.
  2367. (target_set_trace_notes): Likewise.
  2368. (target_get_tib_address): Likewise.
  2369. (target_set_permissions): Likewise.
  2370. (target_static_tracepoint_marker_at): Likewise.
  2371. (target_static_tracepoint_markers_by_strid): Likewise.
  2372. (target_traceframe_info): Likewise.
  2373. (target_use_agent): Likewise.
  2374. (target_can_use_agent): Likewise.
  2375. (target_augmented_libraries_svr4_read): Likewise.
  2376. (target_log_command): Likewise.
  2377. * target.c (target_shortname): New.
  2378. (target_longname): New.
  2379. (target_attach_no_wait): New.
  2380. (target_post_attach): New.
  2381. (target_prepare_to_store): New.
  2382. (target_supports_enable_disable_tracepoint): New.
  2383. (target_supports_string_tracing): New.
  2384. (target_supports_evaluation_of_breakpoint_conditions): New.
  2385. (target_supports_dumpcore): New.
  2386. (target_dumpcore): New.
  2387. (target_can_run_breakpoint_commands): New.
  2388. (target_files_info): New.
  2389. (target_post_startup_inferior): New.
  2390. (target_insert_fork_catchpoint): New.
  2391. (target_remove_fork_catchpoint): New.
  2392. (target_insert_vfork_catchpoint): New.
  2393. (target_remove_vfork_catchpoint): New.
  2394. (target_insert_exec_catchpoint): New.
  2395. (target_remove_exec_catchpoint): New.
  2396. (target_set_syscall_catchpoint): New.
  2397. (target_rcmd): New.
  2398. (target_can_lock_scheduler): New.
  2399. (target_can_async_p): New.
  2400. (target_is_async_p): New.
  2401. (target_execution_direction): New.
  2402. (target_extra_thread_info): New.
  2403. (target_pid_to_exec_file): New.
  2404. (target_thread_architecture): New.
  2405. (target_find_memory_regions): New.
  2406. (target_make_corefile_notes): New.
  2407. (target_get_bookmark): New.
  2408. (target_goto_bookmark): New.
  2409. (target_stopped_by_watchpoint): New.
  2410. (target_stopped_by_sw_breakpoint): New.
  2411. (target_supports_stopped_by_sw_breakpoint): New.
  2412. (target_stopped_by_hw_breakpoint): New.
  2413. (target_supports_stopped_by_hw_breakpoint): New.
  2414. (target_have_steppable_watchpoint): New.
  2415. (target_can_use_hardware_watchpoint): New.
  2416. (target_region_ok_for_hw_watchpoint): New.
  2417. (target_can_do_single_step): New.
  2418. (target_insert_watchpoint): New.
  2419. (target_remove_watchpoint): New.
  2420. (target_insert_hw_breakpoint): New.
  2421. (target_remove_hw_breakpoint): New.
  2422. (target_can_accel_watchpoint_condition): New.
  2423. (target_can_execute_reverse): New.
  2424. (target_get_ada_task_ptid): New.
  2425. (target_filesystem_is_local): New.
  2426. (target_trace_init): New.
  2427. (target_download_tracepoint): New.
  2428. (target_can_download_tracepoint): New.
  2429. (target_download_trace_state_variable): New.
  2430. (target_enable_tracepoint): New.
  2431. (target_disable_tracepoint): New.
  2432. (target_trace_start): New.
  2433. (target_trace_set_readonly_regions): New.
  2434. (target_get_trace_status): New.
  2435. (target_get_tracepoint_status): New.
  2436. (target_trace_stop): New.
  2437. (target_trace_find): New.
  2438. (target_get_trace_state_variable_value): New.
  2439. (target_save_trace_data): New.
  2440. (target_upload_tracepoints): New.
  2441. (target_upload_trace_state_variables): New.
  2442. (target_get_raw_trace_data): New.
  2443. (target_get_min_fast_tracepoint_insn_len): New.
  2444. (target_set_disconnected_tracing): New.
  2445. (target_set_circular_trace_buffer): New.
  2446. (target_set_trace_buffer_size): New.
  2447. (target_set_trace_notes): New.
  2448. (target_get_tib_address): New.
  2449. (target_set_permissions): New.
  2450. (target_static_tracepoint_marker_at): New.
  2451. (target_static_tracepoint_markers_by_strid): New.
  2452. (target_traceframe_info): New.
  2453. (target_use_agent): New.
  2454. (target_can_use_agent): New.
  2455. (target_augmented_libraries_svr4_read): New.
  2456. (target_log_command): New.
  2457. * bfin-tdep.c (bfin_sw_breakpoint_from_kind): Adjust.
  2458. * infrun.c (set_schedlock_func): Adjust.
  2459. * mi/mi-main.c (exec_reverse_continue): Adjust.
  2460. * reverse.c (exec_reverse_once): Adjust.
  2461. * sh-tdep.c (sh_sw_breakpoint_from_kind): Adjust.
  2462. * tui/tui-stack.c (tui_locator_window::make_status_line): Adjust.
  2463. * remote-sim.c (gdbsim_target::detach): Adjust.
  2464. (gdbsim_target::files_info): Adjust.
  2465. 2021-03-24 Tom Tromey <tom@tromey.com>
  2466. * dwarf2/read.c (dw2_map_matching_symbols): Update.
  2467. (dw2_expand_symtabs_matching_symbol): Remove 'kind' parameter.
  2468. (check_match, dw2_expand_symtabs_matching)
  2469. (dwarf2_debug_names_index::map_matching_symbols)
  2470. (dwarf2_debug_names_index::expand_symtabs_matching): Update.
  2471. 2021-03-24 Keith Seitz <keiths@redhat.com>
  2472. * compile/compile-cplus-types.c
  2473. (compile_cplus_convert_struct_or_union): Fix TYPE_DECLARED_CLASS
  2474. thinko.
  2475. 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
  2476. * gdbarch.sh (gdbarch_data_registry): Make static.
  2477. * gdbarch.c: Re-generate.
  2478. 2021-03-24 Luis Machado <luis.machado@linaro.org>
  2479. * NEWS: Mention memory tagging changes.
  2480. 2021-03-24 Luis Machado <luis.machado@linaro.org>
  2481. * printcmd.c (decode_format): Handle the 'm' modifier.
  2482. (do_examine): Display allocation tags when required/supported.
  2483. (should_validate_memtags): New function.
  2484. (print_command_1): Display memory tag mismatches.
  2485. * valprint.c (show_memory_tag_violations): New function.
  2486. (value_print_option_defs): Add new option "memory-tag-violations".
  2487. (user_print_options) <memory_tag_violations>: Initialize to 1.
  2488. * valprint.h (struct format_data) <print_tags>: New field.
  2489. (value_print_options) <memory_tag_violations>: New field.
  2490. 2021-03-24 Luis Machado <luis.machado@linaro.org>
  2491. * printcmd.c: Include gdbsupport/rsp-low.h.
  2492. (memory_tag_list): New static global.
  2493. (process_print_command_args): Factored out of
  2494. print_command_1.
  2495. (print_command_1): Use process_print_command_args.
  2496. (show_addr_not_tagged, show_memory_tagging_unsupported)
  2497. (memory_tag_command, memory_tag_print_tag_command)
  2498. (memory_tag_print_logical_tag_command)
  2499. (memory_tag_print_allocation_tag_command, parse_with_logical_tag_input)
  2500. (memory_tag_with_logical_tag_command, parse_set_allocation_tag_input)
  2501. (memory_tag_set_allocation_tag_command, memory_tag_check_command): New
  2502. functions.
  2503. (_initialize_printcmd): Add "memory-tag" prefix and subcommands.
  2504. 2021-03-24 Luis Machado <luis.machado@linaro.org>
  2505. * aarch64-linux-tdep.c
  2506. (aarch64_linux_iterate_over_regset_sections): Handle MTE register set.
  2507. * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_MTE_REGSET): Define.
  2508. 2021-03-24 Luis Machado <luis.machado@linaro.org>
  2509. * aarch64-linux-tdep.c
  2510. (aarch64_linux_report_signal_info): New function.
  2511. (aarch64_linux_init_abi): Register
  2512. aarch64_linux_report_signal_info as the report_signal_info hook.
  2513. * arch/aarch64-linux.h (SEGV_MTEAERR): Define.
  2514. (SEGV_MTESERR): Define.
  2515. 2021-03-24 Luis Machado <luis.machado@linaro.org>
  2516. * aarch64-linux-tdep.c: Include gdbsupport/selftest.h.
  2517. (aarch64_linux_ltag_tests): New function.
  2518. (_initialize_aarch64_linux_tdep): Register aarch64_linux_ltag_tests.
  2519. 2021-03-24 Luis Machado <luis.machado@linaro.org>
  2520. * aarch64-linux-tdep.c: Include target.h, arch-utils.h, value.h.
  2521. (aarch64_mte_get_atag, aarch64_linux_tagged_address_p)
  2522. (aarch64_linux_memtag_mismatch_p, aarch64_linux_set_memtags)
  2523. (aarch64_linux_get_memtag, aarch64_linux_memtag_to_string): New
  2524. functions.
  2525. (aarch64_linux_init_abi): Initialize MTE-related gdbarch hooks.
  2526. * arch/aarch64-mte-linux.c (aarch64_mte_make_ltag_bits)
  2527. (aarch64_mte_make_ltag, aarch64_linux_set_ltag)
  2528. (aarch64_linux_get_ltag): New functions.
  2529. * arch/aarch64-mte-linux.h (AARCH64_MTE_LOGICAL_TAG_START_BIT)
  2530. (AARCH64_MTE_LOGICAL_MAX_VALUE): Define.
  2531. (aarch64_mte_make_ltag_bits, aarch64_mte_make_ltag)
  2532. (aarch64_mte_set_ltag, aarch64_mte_get_ltag): New prototypes.
  2533. 2021-03-24 Luis Machado <luis.machado@linaro.org>
  2534. * linux-tdep.c (struct smaps_vmflags) <memory_tagging>: New flag
  2535. bit.
  2536. (struct smaps_data): New struct.
  2537. (decode_vmflags): Handle the 'mt' flag.
  2538. (parse_smaps_data): New function, refactored from
  2539. linux_find_memory_regions_full.
  2540. (linux_address_in_memtag_page): New function.
  2541. (linux_find_memory_regions_full): Refactor into parse_smaps_data.
  2542. * linux-tdep.h (linux_address_in_memtag_page): New prototype.
  2543. 2021-03-24 Luis Machado <luis.machado@linaro.org>
  2544. * linux-tdep.c (linux_find_memory_regions_full): Use std::string
  2545. instead of char arrays.
  2546. 2021-03-24 Luis Machado <luis.machado@linaro.org>
  2547. * Makefile.in (ALL_64_TARGET_OBS): Add arch/aarch64-mte-linux.o.
  2548. (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h and
  2549. nat/aarch64-mte-linux-ptrace.h.
  2550. * aarch64-linux-nat.c: Include nat/aarch64-mte-linux-ptrace.h.
  2551. (aarch64_linux_nat_target) <supports_memory_tagging>: New method
  2552. override.
  2553. <fetch_memtags>: New method override.
  2554. <store_memtags>: New method override.
  2555. (aarch64_linux_nat_target::supports_memory_tagging): New method.
  2556. (aarch64_linux_nat_target::fetch_memtags): New method.
  2557. (aarch64_linux_nat_target::store_memtags): New method.
  2558. * arch/aarch64-mte-linux.c: New file.
  2559. * arch/aarch64-mte-linux.h: Include gdbsupport/common-defs.h.
  2560. (AARCH64_MTE_GRANULE_SIZE): Define.
  2561. (aarch64_memtag_type): New enum.
  2562. (aarch64_mte_get_tag_granules): New prototype.
  2563. * configure.nat (NATDEPFILES): Add nat/aarch64-mte-linux-ptrace.o.
  2564. * configure.tgt (aarch64*-*-linux*): Add arch/aarch64-mte-linux.o.
  2565. * nat/aarch64-mte-linux-ptrace.c: New file.
  2566. * nat/aarch64-mte-linux-ptrace.h: New file.
  2567. 2021-03-24 Luis Machado <luis.machado@linaro.org>
  2568. * Makefile.in (HFILES_NO_SRCDIR): Add nat/aarch64-mte-linux-ptrace.h.
  2569. * nat/aarch64-mte-linux-ptrace.h: New file.
  2570. 2021-03-24 Luis Machado <luis.machado@linaro.org>
  2571. * aarch64-linux-nat.c (fetch_mteregs_from_thread): New function.
  2572. (store_mteregs_to_thread): New function.
  2573. (aarch64_linux_nat_target::fetch_registers): Update to call
  2574. fetch_mteregs_from_thread.
  2575. (aarch64_linux_nat_target::store_registers): Update to call
  2576. store_mteregs_to_thread.
  2577. * aarch64-tdep.c (aarch64_mte_register_names): New struct.
  2578. (aarch64_cannot_store_register): Handle MTE registers.
  2579. (aarch64_gdbarch_init): Initialize and setup MTE registers.
  2580. * aarch64-tdep.h (gdbarch_tdep) <mte_reg_base>: New field.
  2581. <has_mte>: New method.
  2582. * arch/aarch64-linux.h (AARCH64_LINUX_SIZEOF_MTE): Define.
  2583. 2021-03-24 Luis Machado <luis.machado@linaro.org>
  2584. * aarch64-linux-nat.c
  2585. (aarch64_linux_nat_target::read_description): Take MTE flag into
  2586. account.
  2587. Slight refactor to hwcap flag checking.
  2588. * aarch64-linux-tdep.c
  2589. (aarch64_linux_core_read_description): Likewise.
  2590. * aarch64-tdep.c (tdesc_aarch64_list): Add one more dimension for
  2591. MTE.
  2592. (aarch64_read_description): Add mte_p parameter and update to use it.
  2593. Update the documentation.
  2594. (aarch64_gdbarch_init): Update call to aarch64_read_description.
  2595. * aarch64-tdep.h (aarch64_read_description): Add mte_p parameter.
  2596. * arch/aarch64.c: Include ../features/aarch64-mte.c.
  2597. (aarch64_create_target_description): Add mte_p parameter and update
  2598. the code to use it.
  2599. * arch/aarch64.h (aarch64_create_target_description): Add mte_p
  2600. parameter.
  2601. * features/Makefile (FEATURE_XMLFILES): Add aarch64-mte.xml.
  2602. * features/aarch64-mte.c: New file, generated.
  2603. * features/aarch64-mte.xml: New file.
  2604. 2021-03-24 Luis Machado <luis.machado@linaro.org>
  2605. * Makefile.in (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h.
  2606. * aarch64-linux-nat.c: Include arch/aarch64-mte-linux.h.
  2607. * aarch64-linux-tdep.c: Likewise
  2608. * arch/aarch64-mte-linux.h: New file.
  2609. 2021-03-24 Luis Machado <luis.machado@linaro.org>
  2610. * remote: Include gdbsupport/selftest.h.
  2611. (test_memory_tagging_functions): New function.
  2612. (_initialize_remote): Register test_memory_tagging_functions.
  2613. 2021-03-24 Luis Machado <luis.machado@linaro.org>
  2614. * remote.c (PACKET_memory_tagging_feature): New enum.
  2615. (remote_memory_tagging_p): New function.
  2616. (remote_protocol_features): New "memory-tagging" entry.
  2617. (remote_target::remote_query_supported): Handle memory tagging
  2618. support.
  2619. (remote_target::supports_memory_tagging): Implement.
  2620. (create_fetch_memtags_request, parse_fetch_memtags_reply)
  2621. (create_store_memtags_request): New functions.
  2622. (remote_target::fetch_memtags): Implement.
  2623. (remote_target::store_memtags): Implement.
  2624. (_initialize_remote): Add new "memory-tagging-feature"
  2625. config command.
  2626. 2021-03-24 Luis Machado <luis.machado@linaro.org>
  2627. * arch-utils.c (default_memtag_to_string, default_tagged_address_p)
  2628. (default_memtag_matches_p, default_set_memtags)
  2629. (default_get_memtag): New functions.
  2630. * arch-utils.h (default_memtag_to_string, default_tagged_address_p)
  2631. (default_memtag_matches_p, default_set_memtags)
  2632. (default_get_memtag): New prototypes.
  2633. * gdbarch.c: Regenerate.
  2634. * gdbarch.h: Regenerate.
  2635. * gdbarch.sh (memtag_to_string, tagged_address_p, memtag_matches_p)
  2636. (set_memtags, get_memtag, memtag_granule_size): New gdbarch hooks.
  2637. (enum memtag_type): New enum.
  2638. 2021-03-24 Luis Machado <luis.machado@linaro.org>
  2639. * remote.c (remote_target) <supports_memory_tagging>: New method
  2640. override.
  2641. <fetch_memtags>: New method override.
  2642. <store_memtags>: New method override.
  2643. (remote_target::supports_memory_tagging): New method.
  2644. (remote_target::fetch_memtags): New method.
  2645. (remote_target::store_memtags): New method.
  2646. * target-delegates.c: Regenerate.
  2647. * target.h (struct target_ops) <supports_memory_tagging>: New virtual
  2648. method.
  2649. <fetch_memtags>: New virtual method.
  2650. <store_memtags>: New virtual method.
  2651. (target_supports_memory_tagging): Define.
  2652. (target_fetch_memtags): Define.
  2653. (target_store_memtags): Define.
  2654. * target-debug.h (target_debug_print_size_t)
  2655. (target_debug_print_const_gdb_byte_vector_r)
  2656. (target_debug_print_gdb_byte_vector_r): New functions.
  2657. 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
  2658. * target.h (target_longname): Remove.
  2659. 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
  2660. * target.h (target_is_pushed): Remove, update callers to use
  2661. inferior::target_is_pushed instead.
  2662. * target.c (target_is_pushed): Remove.
  2663. 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
  2664. * target.h (push_target): Remove, update callers to use
  2665. inferior::push_target.
  2666. * target.c (push_target): Remove.
  2667. * inferior.h (class inferior) <push_target>: New overload.
  2668. 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
  2669. * target.h (unpush_target): Remove, update all callers
  2670. to use `inferior::unpush_target` instead.
  2671. (struct target_unpusher) <operator()>: Just declare.
  2672. * target.c (unpush_target): Remove.
  2673. (target_unpusher::operator()): New.
  2674. 2021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
  2675. * dwarf2/read.c (process_psymtab_comp_unit): Replace abort with an
  2676. error.
  2677. (process_full_comp_unit): Validate the top-level tag before
  2678. processing the first DIE.
  2679. (read_func_scope): Ensure we have a valid builder.
  2680. 2021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
  2681. * objc-lang.c (objc_demangle): Renamed to
  2682. objc_language::demangle_symbol, and moved later in the file.
  2683. (objc_language::sniff_from_mangled_name): Call demangle_symbol
  2684. member function.
  2685. (objc_language::demangle_symbol): Defined outside of class
  2686. declaration. The definition is the old objc_demangle with NULL
  2687. changed to nullptr, and if conditions relating to nullptr pointers
  2688. or null character checks made explicit.
  2689. * objc-lang.h (objc_demangle): Delete declaration.
  2690. 2021-03-22 Martin Liska <mliska@suse.cz>
  2691. * arm-tdep.c (show_disassembly_style_sfunc): Replace usage of CONST_STRNEQ with startswith.
  2692. (_initialize_arm_tdep): Likewise.
  2693. 2021-03-20 Tom Tromey <tom@tromey.com>
  2694. * xcoffread.c (xcoff_initial_scan): Create partial symtabs.
  2695. * symfile.c (syms_from_objfile_1, reread_symbols): Update.
  2696. * psymtab.h (make_psymbol_functions): Don't declare.
  2697. * psymtab.c (make_psymbol_functions): Remove.
  2698. (maintenance_print_psymbols): Update.
  2699. * psympriv.h (struct psymbol_functions): Add no-argument
  2700. constructor.
  2701. * objfiles.h (struct objfile) <reset_psymtabs>: Remove.
  2702. <partial_symtabs>: Remove.
  2703. * mdebugread.c (mdebug_build_psymtabs): Create partial symtabs.
  2704. * elfread.c (read_partial_symbols): Update.
  2705. (elf_symfile_read): Remove check for existing partial symbols.
  2706. Don't clear "qf".
  2707. * dwarf2/read.c (dwarf2_has_info): Remove check for existing
  2708. partial symbols.
  2709. (dwarf2_build_psymtabs): Add psymbol_functions parameter. Create
  2710. partial symtabs.
  2711. * dwarf2/public.h (dwarf2_build_psymtabs): Add psymbol_functions
  2712. parameter.
  2713. * dbxread.c (dbx_symfile_read): Create partial symtabs.
  2714. * ctfread.c (elfctf_build_psymtabs): Create partial symtabs.
  2715. 2021-03-20 Tom Tromey <tom@tromey.com>
  2716. * dwarf2/read.c (dwarf2_build_psymtabs): Update.
  2717. * symfile.c (syms_from_objfile_1, reread_symbols): Update.
  2718. * symfile-debug.c (objfile::has_partial_symbols)
  2719. (objfile::find_last_source_symtab)
  2720. (objfile::forget_cached_source_info)
  2721. (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
  2722. (objfile::print_stats, objfile::dump)
  2723. (objfile::expand_symtabs_for_function)
  2724. (objfile::expand_all_symtabs)
  2725. (objfile::expand_symtabs_with_fullname)
  2726. (objfile::map_matching_symbols)
  2727. (objfile::expand_symtabs_matching)
  2728. (objfile::find_pc_sect_compunit_symtab)
  2729. (objfile::map_symbol_filenames)
  2730. (objfile::find_compunit_symtab_by_address)
  2731. (objfile::lookup_global_symbol_language)
  2732. (objfile::require_partial_symbols): Update.
  2733. * psymtab.c (maintenance_print_psymbols)
  2734. (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
  2735. * objfiles.h (struct objfile) <qf>: Now a forward_list.
  2736. * objfiles.c (objfile_relocate1): Update.
  2737. * elfread.c (elf_symfile_read): Update.
  2738. 2021-03-20 Tom Tromey <tom@tromey.com>
  2739. * objfiles.h (struct objfile) <psymtabs>: Remove method.
  2740. 2021-03-20 Tom Tromey <tom@tromey.com>
  2741. * psymtab.c (psymbol_functions::count_psyms): Rename.
  2742. (psymbol_functions::print_stats): Update.
  2743. * psympriv.h (struct psymbol_functions) <count_psyms>: Declare
  2744. method.
  2745. 2021-03-20 Tom Tromey <tom@tromey.com>
  2746. * psymtab.c (psymbol_functions::require_partial_symbols): Rename.
  2747. (psymbol_functions::find_pc_sect_psymtab): Rename.
  2748. (psymbol_functions::find_pc_sect_compunit_symtab)
  2749. (maintenance_print_psymbols, maintenance_check_psymtabs): Update.
  2750. * psympriv.h (struct psymbol_functions) <require_partial_symbols>:
  2751. Declare new method.
  2752. <get_partial_symtabs, find_pc_sect_psymtab>: Likewise.
  2753. 2021-03-20 Tom Tromey <tom@tromey.com>
  2754. * xcoffread.c (xcoff_start_psymtab): Add partial_symtabs parameter.
  2755. (xcoff_end_psymtab, scan_xcoff_symtab): Update.
  2756. * psymtab.c (partial_symtab::partial_symtab): Add partial_symtabs
  2757. parameter.
  2758. (add_psymbol_to_bcache): Remove.
  2759. (partial_symtab::add_psymbol): Add partial_symtabs parameter.
  2760. (partial_symtab::add_psymbol, partial_symtab::partial_symtab):
  2761. Likewise.
  2762. * psympriv.h (partial_symtab): Add partial_symtabs parameter.
  2763. <add_psymbol>: Likewise.
  2764. (standard_psymtab, legacy_psymtab): Likewise.
  2765. * mdebugread.c (parse_partial_symbols): Update.
  2766. (handle_psymbol_enumerators): Add partial_symtabs parameter.
  2767. (handle_psymbol_enumerators): Update.
  2768. (new_psymtab): Add partial_symtabs parameter.
  2769. * dwarf2/read.h (dwarf2_psymtab): Add partial_symtabs parameter.
  2770. * dwarf2/read.c (dwarf2_include_psymtab): Add partial_symtabs
  2771. parameter.
  2772. (dwarf2_create_include_psymtab): Add partial_symtabs parameter.
  2773. (create_partial_symtab, add_partial_symbol, dwarf_decode_lines):
  2774. Update.
  2775. * dbxread.c (read_dbx_symtab): Update.
  2776. (start_psymtab): Add partial_symtabs parameter.
  2777. (dbx_end_psymtab): Update.
  2778. * ctfread.c (struct ctf_context) <partial_symtabs>: New member.
  2779. (ctf_psymtab): Add partial_symtabs parameter.
  2780. (create_partial_symtab, ctf_psymtab_type_cb, ctf_psymtab_var_cb):
  2781. Update.
  2782. (scan_partial_symbols): Add partial_symtabs parameter.
  2783. (scan_partial_symbols, elfctf_build_psymtabs)
  2784. (ctf_psymtab_add_enums): Update.
  2785. 2021-03-20 Tom Tromey <tom@tromey.com>
  2786. * symfile.c (read_symbols): Use objfile method.
  2787. * symfile-debug.c (objfile::require_partial_symbols): New method.
  2788. * psymtab.h (require_partial_symbols): Don't declare.
  2789. * psymtab.c (require_partial_symbols): Use objfile method. Now
  2790. static.
  2791. (psymbol_functions::map_symtabs_matching_filename, OBJFILE)
  2792. (psymbol_functions::lookup_symbol)
  2793. (psymbol_functions::lookup_global_symbol_language)
  2794. (psymbol_functions::find_last_source_symtab)
  2795. (psymbol_functions::forget_cached_source_info)
  2796. (psymbol_functions::print_stats)
  2797. (psymbol_functions::expand_symtabs_for_function)
  2798. (psymbol_functions::expand_all_symtabs)
  2799. (psymbol_functions::expand_symtabs_with_fullname)
  2800. (psymbol_functions::map_symbol_filenames)
  2801. (psymbol_functions::map_matching_symbols)
  2802. (psymbol_functions::expand_symtabs_matching)
  2803. (psymbol_functions::find_compunit_symtab_by_address)
  2804. (maintenance_print_psymbols, maintenance_info_psymtabs)
  2805. (maintenance_check_psymtabs): Update.
  2806. * objfiles.h (struct objfile) <require_partial_symbols>: Declare
  2807. new method.
  2808. 2021-03-20 Tom Tromey <tom@tromey.com>
  2809. * xcoffread.c (xcoff_sym_fns): Update.
  2810. * symfile.h (struct sym_fns) <sym_read_psymbols>: Remove.
  2811. * symfile-debug.c (objfile::has_partial_symbols): Use
  2812. can_lazily_read_symbols.
  2813. (debug_sym_read_psymbols): Remove.
  2814. (debug_sym_fns, install_symfile_debug_logging): Update.
  2815. * quick-symbol.h (struct quick_symbol_functions)
  2816. <can_lazily_read_symbols, read_partial_symbols>: New methods.
  2817. * psymtab.c (require_partial_symbols): Use new 'qf' methods.
  2818. * mipsread.c (ecoff_sym_fns): Update.
  2819. * machoread.c (macho_sym_fns): Update.
  2820. * elfread.c (struct lazy_dwarf_reader): New.
  2821. (elf_symfile_read): Update.
  2822. (read_psyms): Now a method of lazy_dwarf_reader.
  2823. (elf_sym_fns): Update.
  2824. (elf_sym_fns_lazy_psyms): Remove.
  2825. * dbxread.c (aout_sym_fns): Update.
  2826. * coffread.c (coff_sym_fns): Update.
  2827. 2021-03-20 Tom Tromey <tom@tromey.com>
  2828. * symfile.c (syms_from_objfile_1): Call reset_psymtabs.
  2829. (reread_symbols): Move reset_psymtabs call later.
  2830. * objfiles.c (objfile::objfile): Don't initialize
  2831. partial_symtabs.
  2832. 2021-03-20 Tom Tromey <tom@tromey.com>
  2833. * dwarf2/read.c (dwarf2_build_psymtabs): Call
  2834. set_partial_symtabs.
  2835. * symfile.c (syms_from_objfile_1, reread_symbols): Update.
  2836. * psymtab.h (make_psymbol_functions): Add partial_symtabs
  2837. parameter.
  2838. * psymtab.c (find_pc_sect_psymtab): Add partial_symtabs
  2839. parameter.
  2840. (psymbol_functions::find_pc_sect_compunit_symtab)
  2841. (psymbol_functions::print_stats, psymbol_functions::dump)
  2842. (psymbol_functions::has_symbols): Update.
  2843. (make_psymbol_functions, dump_psymtab_addrmap): Add
  2844. partial_symtabs parameter.
  2845. (maintenance_print_psymbols): Update.
  2846. (psymbol_functions::expand_symtabs_matching): Update.
  2847. * psympriv.h (struct psymbol_functions): Add constructor.
  2848. <m_partial_symtabs>: New member.
  2849. <set_partial_symtabs>: New method.
  2850. 2021-03-20 Tom Tromey <tom@tromey.com>
  2851. * dwarf2/read.c (dwarf2_create_include_psymtab): Add per_bfd
  2852. parameter.
  2853. (process_psymtab_comp_unit_reader)
  2854. (build_type_psymtab_dependencies, dwarf2_build_psymtabs_hard)
  2855. (add_partial_subprogram, dwarf2_ranges_read, dwarf_decode_lines):
  2856. Reference psymtabs via per_bfd.
  2857. 2021-03-20 Tom Tromey <tom@tromey.com>
  2858. * dwarf2/index-write.c (struct addrmap_index_data) <objfile>:
  2859. Remove.
  2860. (add_address_entry): Remove objfile parameter.
  2861. (add_address_entry_worker): Update.
  2862. (write_address_map): Replace objfile parameter with per_bfd.
  2863. (write_gdbindex, write_psymtabs_to_index): Update.
  2864. 2021-03-20 Tom Tromey <tom@tromey.com>
  2865. * dwarf2/read.c (dwarf2_base_index_functions::print_stats): Add
  2866. print_bcache parameter.
  2867. * symfile-debug.c (objfile::print_stats): Add print_bcache
  2868. parameter.
  2869. * quick-symbol.h (struct quick_symbol_functions)
  2870. <print_stats>: Add print_bcache parameter.
  2871. * symmisc.c (print_symbol_bcache_statistics, count_psyms): Move
  2872. code to psymtab.c.
  2873. (print_objfile_statistics): Move psymtab code to psymtab.c.
  2874. * psymtab.c (count_psyms): Move from symmisc.c.
  2875. (psymbol_functions::print_stats): Print partial symbol and bcache
  2876. statistics. Add print_bcache parameter.
  2877. * objfiles.h (print_symbol_bcache_statistics): Don't declare.
  2878. (struct objfile) <print_stats>: Add print_bcache parameter.
  2879. * maint.c (maintenance_print_statistics): Update.
  2880. 2021-03-20 Tom Tromey <tom@tromey.com>
  2881. * dwarf2/read.h (struct dwarf2_per_bfd) <psymtabs_addrmap>: New
  2882. member.
  2883. * dwarf2/read.c (create_addrmap_from_index)
  2884. (create_addrmap_from_aranges): Set per_bfd addrmap.
  2885. (dwarf2_read_gdb_index): Don't set partial_symtabs.
  2886. (dwarf2_base_index_functions::find_pc_sect_compunit_symtab): Use
  2887. per_bfd addrmap.
  2888. (dwarf2_read_debug_names): Don't set partial_symtabs.
  2889. (dwarf2_initialize_objfile): Likewise.
  2890. 2021-03-20 Tom Tromey <tom@tromey.com>
  2891. * dwarf2/read.c (dwarf2_build_psymtabs): Set partial_symtabs
  2892. earlier.
  2893. 2021-03-20 Tom Tromey <tom@tromey.com>
  2894. * psympriv.h (psymtab_discarder): Take psymtab_storage parameter.
  2895. (~psymtab_discarder, keep): Update.
  2896. <m_objfile>: Remove.
  2897. <m_partial_symtabs>: New member.
  2898. * dwarf2/read.c (dwarf2_build_psymtabs): Update.
  2899. 2021-03-20 Tom Tromey <tom@tromey.com>
  2900. * xcoffread.c (xcoff_end_psymtab): Add partial_symtabs parameter.
  2901. (xcoff_end_psymtab): Update.
  2902. (scan_xcoff_symtab): Add partial_symtabs parameter.
  2903. (xcoff_initial_scan): Update.
  2904. * stabsread.h (dbx_end_psymtab): Add partial_symtabs parameter.
  2905. * mdebugread.c (mdebug_build_psymtabs): Update.
  2906. (parse_partial_symbols): Add partial_symtabs parameter.
  2907. * dbxread.c (dbx_symfile_read): Update.
  2908. (read_dbx_symtab): Add partial_symtabs parameter.
  2909. (read_dbx_symtab): Update.
  2910. (dbx_end_psymtab): Add partial_symtabs parameter.
  2911. 2021-03-20 Tom Tromey <tom@tromey.com>
  2912. * quick-symbol.h (struct quick_symbol_functions)
  2913. <relocated>: New method.
  2914. * psymtab.h (struct psymbol_functions) <relocated>: New
  2915. method.
  2916. <fill_psymbol_map>: Declare method.
  2917. <m_psymbol_map>: New member.
  2918. * psymtab.c (psymbol_functions::fill_psymbol_map): Rename.
  2919. (psymbol_functions::find_compunit_symtab_by_address): Update.
  2920. * objfiles.h (reset_psymtabs): Don't clear psymbol_map.
  2921. (struct objfile) <psymbol_map>: Remove.
  2922. * objfiles.c (objfile_relocate1): Update.
  2923. 2021-03-20 Tom Tromey <tom@tromey.com>
  2924. * psympriv.h (struct psymbol_functions): New.
  2925. * symfile.c (syms_from_objfile_1, reread_symbols): Update.
  2926. * symfile-debug.c (objfile::find_compunit_symtab_by_address)
  2927. (objfile::lookup_global_symbol_language): Update.
  2928. * quick-symbol.h (struct quick_symbol_functions): Convert function
  2929. pointers to methods. Add virtual destructor.
  2930. (quick_symbol_functions_up): New typedef.
  2931. * psymtab.h (psym_functions, dwarf2_gdb_index_functions)
  2932. (dwarf2_debug_names_functions): Don't declare.
  2933. (make_psymbol_functions): Declare.
  2934. * psymtab.c (psymbol_functions::map_symtabs_matching_filename)
  2935. (psymbol_functions::find_pc_sect_compunit_symtab)
  2936. (psymbol_functions::lookup_symbol)
  2937. (psymbol_functions::lookup_global_symbol_language)
  2938. (psymbol_functions::find_last_source_symtab)
  2939. (psymbol_functions::forget_cached_source_info)
  2940. (psymbol_functions::print_stats, psymbol_functions::dump)
  2941. (psymbol_functions::expand_symtabs_for_function)
  2942. (psymbol_functions::expand_all_symtabs)
  2943. (psymbol_functions::expand_symtabs_with_fullname)
  2944. (psymbol_functions::map_symbol_filenames)
  2945. (psymbol_functions::map_matching_symbols)
  2946. (psymbol_functions::expand_symtabs_matching)
  2947. (psymbol_functions::has_symbols)
  2948. (psymbol_functions::find_compunit_symtab_by_address): Rename.
  2949. (psym_functions): Remove.
  2950. (make_psymbol_functions): New function.
  2951. * objfiles.h (struct objfile) <qf>: Change type.
  2952. * elfread.c (elf_symfile_read): Update.
  2953. * dwarf2/read.c (struct dwarf2_base_index_functions)
  2954. (struct dwarf2_gdb_index, struct dwarf2_debug_names_index): New.
  2955. (make_dwarf_gdb_index, make_dwarf_debug_names): New functions.
  2956. (dwarf2_base_index_functions::find_last_source_symtab)
  2957. (dwarf2_base_index_functions::forget_cached_source_info)
  2958. (dwarf2_base_index_functions::map_symtabs_matching_filename)
  2959. (dwarf2_gdb_index::lookup_symbol)
  2960. (dwarf2_base_index_functions::print_stats)
  2961. (dwarf2_gdb_index::dump)
  2962. (dwarf2_gdb_index::expand_symtabs_for_function)
  2963. (dwarf2_base_index_functions::expand_all_symtabs)
  2964. (dwarf2_base_index_functions::expand_symtabs_with_fullname):
  2965. Rename.
  2966. (dwarf2_gdb_index::map_matching_symbols): New method.
  2967. (dwarf2_gdb_index::expand_symtabs_matching): New method.
  2968. (dwarf2_base_index_functions::find_pc_sect_compunit_symtab)
  2969. (dwarf2_base_index_functions::map_symbol_filenames)
  2970. (dwarf2_base_index_functions::has_symbols): Rename.
  2971. (dwarf2_gdb_index_functions): Remove.
  2972. (dwarf2_debug_names_index::lookup_symbol)
  2973. (dwarf2_debug_names_index::dump)
  2974. (dwarf2_debug_names_index::expand_symtabs_for_function)
  2975. (dwarf2_debug_names_index::map_matching_symbols)
  2976. (dwarf2_debug_names_index::expand_symtabs_matching): Rename.
  2977. (dwarf2_debug_names_functions): Remove.
  2978. * dwarf2/public.h (make_dwarf_gdb_index, make_dwarf_debug_names):
  2979. Declare.
  2980. 2021-03-20 Tom Tromey <tom@tromey.com>
  2981. * psymtab.c (require_partial_symbols): Check that 'sf' is not
  2982. null.
  2983. * xcoffread.c (xcoff_sym_fns): Update.
  2984. * symfile.h (struct sym_fns) <qf>: Remove.
  2985. * symfile.c (syms_from_objfile_1, reread_symbols): Update.
  2986. * symfile-debug.c (objfile::has_partial_symbols)
  2987. (objfile::find_last_source_symtab)
  2988. (objfile::forget_cached_source_info)
  2989. (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
  2990. (objfile::print_stats, objfile::dump)
  2991. (objfile::expand_symtabs_for_function)
  2992. (objfile::expand_all_symtabs)
  2993. (objfile::expand_symtabs_with_fullname)
  2994. (objfile::map_matching_symbols)
  2995. (objfile::expand_symtabs_matching)
  2996. (objfile::find_pc_sect_compunit_symtab)
  2997. (objfile::map_symbol_filenames)
  2998. (objfile::find_compunit_symtab_by_address)
  2999. (objfile::lookup_global_symbol_language, debug_sym_fns)
  3000. (install_symfile_debug_logging): Update.
  3001. * objfiles.h (struct objfile) <qf>: New member.
  3002. * mipsread.c (ecoff_sym_fns): Update.
  3003. * machoread.c (macho_sym_fns): Update.
  3004. * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_debug_names):
  3005. Don't declare.
  3006. (elf_symfile_read, elf_sym_fns, elf_sym_fns_lazy_psyms): Update.
  3007. * dbxread.c (aout_sym_fns): Update.
  3008. * coffread.c (coff_sym_fns): Update.
  3009. 2021-03-20 Tom Tromey <tom@tromey.com>
  3010. * symfile.h (symbol_compare_ftype, symbol_filename_ftype)
  3011. (expand_symtabs_file_matcher_ftype)
  3012. (expand_symtabs_symbol_matcher_ftype)
  3013. (expand_symtabs_exp_notify_ftype, struct quick_symbol_functions):
  3014. Move to quick-symbol.h.
  3015. * quick-symbol.h: New file.
  3016. 2021-03-20 Tom Tromey <tom@tromey.com>
  3017. * symtab.c (iterate_over_symtabs, expand_symtab_containing_pc)
  3018. (lookup_symbol_via_quick_fns, find_quick_global_symbol_language)
  3019. (basic_lookup_transparent_type_quick)
  3020. (find_pc_sect_compunit_symtab, find_symbol_at_address)
  3021. (find_line_symtab, global_symbol_searcher::expand_symtabs):
  3022. Update.
  3023. * symmisc.c (print_objfile_statistics, dump_objfile)
  3024. (maintenance_expand_symtabs): Update.
  3025. * symfile.c (symbol_file_add_with_addrs)
  3026. (expand_symtabs_matching, map_symbol_filenames): Update.
  3027. * symfile-debug.c (objfile::has_partial_symbols)
  3028. (objfile::find_last_source_symtab)
  3029. (objfile::forget_cached_source_info)
  3030. (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
  3031. (objfile::print_stats, objfile::dump)
  3032. (objfile::expand_symtabs_for_function)
  3033. (objfile::expand_all_symtabs)
  3034. (objfile::expand_symtabs_with_fullname)
  3035. (objfile::map_matching_symbols)
  3036. (objfile::expand_symtabs_matching)
  3037. (objfile::find_pc_sect_compunit_symtab)
  3038. (objfile::map_symbol_filenames)
  3039. (objfile::find_compunit_symtab_by_address)
  3040. (objfile::lookup_global_symbol_language): New methods.
  3041. (debug_sym_quick_functions): Remove.
  3042. (debug_sym_fns, install_symfile_debug_logging): Update.
  3043. * source.c (forget_cached_source_info_for_objfile)
  3044. (select_source_symtab): Update.
  3045. * objfiles.h (struct objfile): Add methods corresponding to
  3046. quick_symbol_functions.
  3047. * objfiles.c (objfile::has_partial_symbols): Move to
  3048. symfile-debug.c.
  3049. * linespec.c (iterate_over_all_matching_symtabs): Update.
  3050. * cp-support.c (add_symbol_overload_list_qualified): Update.
  3051. * ada-lang.c (add_nonlocal_symbols): Update.
  3052. 2021-03-20 Tom Tromey <tom@tromey.com>
  3053. * objfiles.h (struct objfile) <has_partial_symbols>: Return bool.
  3054. * symfile.h (struct quick_symbol_functions) <has_symbols>: Return
  3055. bool.
  3056. * symfile-debug.c (debug_qf_has_symbols): Return bool.
  3057. * psymtab.c (psym_has_symbols): Return bool.
  3058. * objfiles.c (objfile::has_partial_symbols): Return bool.
  3059. * dwarf2/read.c (dw2_has_symbols): Return bool.
  3060. 2021-03-20 Tom Tromey <tom@tromey.com>
  3061. * symfile.c (read_symbols): Update.
  3062. * objfiles.h (struct objfile) <has_partial_symbols>: New method.
  3063. (objfile_has_partial_symbols): Don't declare.
  3064. * objfiles.c (objfile::has_partial_symbols): Rename from
  3065. objfile_has_partial_symbols.
  3066. (objfile_has_symbols, have_partial_symbols): Update.
  3067. * elfread.c (elf_symfile_read): Update.
  3068. * dwarf2/read.c (dwarf2_has_info): Update.
  3069. * coffread.c (coff_symfile_read): Update.
  3070. 2021-03-20 Tom Tromey <tom@tromey.com>
  3071. * coffread.c: Include dwarf2/public.h.
  3072. * dwarf2/frame.c: Include dwarf2/public.h.
  3073. * dwarf2/index-write.h: Include dwarf2/public.h, not symfile.h.
  3074. * dwarf2/public.h: New file.
  3075. * dwarf2/read.c: Include dwarf2/public.h.
  3076. * elfread.c: Include dwarf2/public.h.
  3077. * machoread.c: Include dwarf2/public.h.
  3078. * symfile.h (dwarf2_has_info, enum dw_index_kind)
  3079. (dwarf2_initialize_objfile, dwarf2_build_psymtabs)
  3080. (dwarf2_build_frame_info): Move to dwarf2/public.h.
  3081. * xcoffread.c: Include dwarf2/public.h.
  3082. 2021-03-20 Tom Tromey <tom@tromey.com>
  3083. * symfile.h (enum dwarf2_section_enum)
  3084. (dwarf2_get_section_info): Move to dwarf2/read.h.
  3085. * dwarf2/read.h (enum dwarf2_section_enum)
  3086. (dwarf2_get_section_info): Move from symfile.h.
  3087. 2021-03-19 Pedro Alves <pedro@palves.net>
  3088. * thread.c (any_thread_of_inferior): Check if there's a selected
  3089. thread before calling inferior_thread().
  3090. 2021-03-18 Tom Tromey <tromey@adacore.com>
  3091. * dwarf2/stringify.c (dwarf_unit_type_name): New function. Use
  3092. get_DW_UT_name.
  3093. * dwarf2/stringify.h (dwarf_unit_type_name): Declare.
  3094. * dwarf2/comp-unit.c (dwarf_unit_type_name): Remove.
  3095. 2021-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
  3096. * python/py-param.c (get_set_value): Update header comment.
  3097. 2021-03-17 Simon Marchi <simon.marchi@polymtl.ca>
  3098. * infrun.c (check_multi_target_resumption): Remove argument to
  3099. all_non_exited_inferiors.
  3100. 2021-03-16 Christian Biesinger <cbiesinger@google.com>
  3101. * windows-nat.c (windows_init_thread_list): Add message to
  3102. debug log.
  3103. 2021-03-16 Andrew Burgess <andrew.burgess@embecosm.com>
  3104. * python/py-framefilter.c (py_print_frame): Use PyInt_Check as
  3105. well as PyLong_Check for Python 2.
  3106. 2021-03-15 Tom Tromey <tromey@adacore.com>
  3107. PR build/27579:
  3108. * rust-exp.y (maker_map): Use gdb::hash_enum.
  3109. * stap-probe.c (stap_maker_map): Use gdb::hash_enum.
  3110. 2021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
  3111. * dwarf2/read.c (create_debug_type_hash_table): Remove colon at
  3112. end of debug print.
  3113. 2021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
  3114. * dwarf2/read.c (dw2_get_file_names_reader): Remove info_ptr
  3115. parameter, adjust caller.
  3116. 2021-03-15 Tom Tromey <tromey@adacore.com>
  3117. * ada-exp.y (simple_exp): Always push a result for unary '+'.
  3118. 2021-03-15 Tom Tromey <tromey@adacore.com>
  3119. * ada-lang.c (ada_unop_ind_operation::evaluate): Call
  3120. ada_ensure_varsize_limit.
  3121. 2021-03-15 Tom Tromey <tromey@adacore.com>
  3122. * ada-lang.c (numeric_type_p, integer_type_p): Return true for
  3123. fixed-point.
  3124. * ada-exp.y (maybe_overload): New function.
  3125. (ada_wrap_overload): New function.
  3126. (ada_un_wrap2, ada_wrap2, ada_wrap_op): Use maybe_overload.
  3127. (exp1, simple_exp, relation, and_exp, and_then_exp, or_exp)
  3128. (or_else_exp, xor_exp, primary): Update.
  3129. 2021-03-15 Tom Tromey <tromey@adacore.com>
  3130. PR ada/27545:
  3131. * ada-lang.c (ada_var_value_operation::evaluate): Use recursive
  3132. call for tagged type.
  3133. 2021-03-15 Tom Tromey <tromey@adacore.com>
  3134. * ada-exp.y (exp1): Handle resolution of the right hand side of an
  3135. assignment.
  3136. 2021-03-15 Tom Tromey <tromey@adacore.com>
  3137. * ada-lang.c (ada_aggregate_operation::assign_aggregate): Return
  3138. container.
  3139. (ada_assign_operation::evaluate): Update.
  3140. * ada-exp.h (class ada_aggregate_operation) <assign_aggregate>:
  3141. Change return type.
  3142. 2021-03-15 Felix Willgerodt <felix.willgerodt@intel.com>
  3143. * i386-tdep.c (i386_floatformat_for_type): Add COMPLEX*32 and REAL*16.
  3144. 2021-03-15 Andrew Burgess <andrew.burgess@embecosm.com>
  3145. * python/python.c (gdbpy_source_objfile_script): Use
  3146. make_scoped_restore to restore gdbpy_current_objfile.
  3147. (gdbpy_execute_objfile_script): Likewise.
  3148. 2021-03-14 Tom Tromey <tom@tromey.com>
  3149. * dwarf2/read.c (read_attribute_value): Use cu_header
  3150. consistently.
  3151. 2021-03-14 Tom Tromey <tom@tromey.com>
  3152. * dwarf2/read.c (struct die_reader_specs) <abfd>: Fix formatting.
  3153. (peek_die_abbrev): Use reader.abfd.
  3154. 2021-03-14 Tom Tromey <tom@tromey.com>
  3155. * dwarf2/read.c (dwarf2_per_cu_data::get_header): Set
  3156. m_header_read_in.
  3157. 2021-03-13 Tom Tromey <tom@tromey.com>
  3158. * dwarf2/read.c (struct partial_die_info): Update.
  3159. (peek_die_abbrev, skip_children, skip_one_die, read_full_die_1)
  3160. (load_partial_dies, partial_die_info::partial_die_info): Update.
  3161. * dwarf2/abbrev.h (lookup_abbrev): Constify.
  3162. 2021-03-13 Tom Tromey <tom@tromey.com>
  3163. * dwarf2/abbrev.c (abbrev_table::read): Remove Irix 6 workaround.
  3164. 2021-03-12 Christian Biesinger <cbiesinger@google.com>
  3165. PR threads/27239
  3166. * cp-support.c: Use scoped_segv_handler_restore.
  3167. * event-top.c (thread_local_segv_handler): Made static.
  3168. (scoped_segv_handler_restore::scoped_segv_handler_restore):
  3169. New function.
  3170. (scoped_segv_handler_restore::~scoped_segv_handler_restore): New
  3171. function.
  3172. * event-top.h (class scoped_segv_handler_restore): New class.
  3173. (thread_local_segv_handler): Removed.
  3174. 2021-03-10 Tom Tromey <tromey@adacore.com>
  3175. * parser-defs.h (parser_state): Change completion to bool.
  3176. <parse_completion>: Likewise.
  3177. * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
  3178. (ada_resolve_variable, ada_resolve_function): Update.
  3179. * ada-lang.c (ada_find_operator_symbol): Change
  3180. parse_completion to bool.
  3181. (ada_resolve_funcall, ada_resolve_variable)
  3182. (ada_resolve_function): Likewise.
  3183. 2021-03-09 Tom Tromey <tromey@adacore.com>
  3184. * eval.c (operation::evaluate_funcall): Use function formal
  3185. parameter types when evaluating.
  3186. 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
  3187. * gdb-gdb.py.in (StructMainTypePrettyPrinter) <owner_to_string>:
  3188. Updated fields names flag_objfile_owned to m_flag_objfile_owned,
  3189. and owner to m_owner.
  3190. 2021-03-09 Felix Willgerodt <felix.willgerodt@intel.com>
  3191. * f-exp.h (eval_op_f_loc): Declare.
  3192. (expr::fortran_loc_operation): New typedef.
  3193. * f-exp.y (exp): Handle UNOP_FORTRAN_LOC after parsing an
  3194. UNOP_INTRINSIC.
  3195. (f77_keywords): Add LOC keyword.
  3196. * f-lang.c (eval_op_f_loc): New function.
  3197. * std-operator.def (UNOP_FORTRAN_LOC): New operator.
  3198. 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
  3199. * f-exp.h (eval_op_f_array_shape): Declare.
  3200. (fortran_array_shape_operation): New type.
  3201. * f-exp.y (exp): Handle UNOP_FORTRAN_SHAPE after parsing
  3202. UNOP_INTRINSIC.
  3203. (f77_keywords): Add "shape" keyword.
  3204. * f-lang.c (fortran_array_shape): New function.
  3205. (eval_op_f_array_shape): New function.
  3206. * std-operator.def (UNOP_FORTRAN_SHAPE): New operator.
  3207. 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
  3208. * f-exp.y (eval_op_f_array_size): Declare 1 and 2 argument forms
  3209. of this function.
  3210. (expr::fortran_array_size_1arg): New type.
  3211. (expr::fortran_array_size_2arg): Likewise.
  3212. * f-exp.y (exp): Handle FORTRAN_ARRAY_SIZE after parsing
  3213. UNOP_OR_BINOP_INTRINSIC.
  3214. (f77_keywords): Add "size" keyword.
  3215. * f-lang.c (fortran_array_size): New function.
  3216. (eval_op_f_array_size): New function, has a 1 arg and 2 arg form.
  3217. * std-operator.def (FORTRAN_ARRAY_SIZE): New operator.
  3218. 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
  3219. * f-exp.h (eval_op_f_rank): Declare.
  3220. (expr::fortran_rank_operation): New typedef.
  3221. * f-exp.y (exp): Handle UNOP_FORTRAN_RANK after parsing an
  3222. UNOP_INTRINSIC.
  3223. (f77_keywords): Add "rank" keyword.
  3224. * f-lang.c (eval_op_f_rank): New function.
  3225. * std-operator.def (UNOP_FORTRAN_RANK): New operator.
  3226. 2021-03-08 Tom Tromey <tom@tromey.com>
  3227. * printcmd.c (set_command): Remove null check.
  3228. * value.c (init_if_undefined_command): Remove null check.
  3229. 2021-03-08 Tom Tromey <tom@tromey.com>
  3230. * parse.c (parser_state::push_symbol, parser_state::push_dollar):
  3231. Update.
  3232. * p-exp.y (variable): Update.
  3233. * go-exp.y (variable): Update.
  3234. * expprint.c (dump_for_expression): Use bound_minimal_symbol.
  3235. Remove overload for objfile.
  3236. * expop.h (eval_op_var_msym_value): Use bound_minimal_symbol
  3237. parameter.
  3238. (check_objfile): Likewise.
  3239. (dump_for_expression): Likewise. Remove overload for objfile.
  3240. (class var_msym_value_operation): Use bound_minimal_symbol.
  3241. * eval.c (eval_op_var_msym_value): Use bound_minimal_symbol
  3242. parameter.
  3243. (var_msym_value_operation::evaluate_for_address)
  3244. (var_msym_value_operation::evaluate_for_sizeof)
  3245. (var_msym_value_operation::evaluate_for_cast): Update.
  3246. * d-exp.y (PrimaryExpression): Update.
  3247. * c-exp.y (variable): Update.
  3248. * ax-gdb.c (var_msym_value_operation::do_generate_ax): Update.
  3249. * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
  3250. Update.
  3251. * ada-exp.y (write_var_or_type): Update.
  3252. 2021-03-08 Tom Tromey <tom@tromey.com>
  3253. * parser-defs.h (exp_uses_objfile): Return bool.
  3254. * parse.c (exp_uses_objfile): Return bool.
  3255. 2021-03-08 Tom Tromey <tom@tromey.com>
  3256. * value.h (eval_skip_value): Don't declare.
  3257. * opencl-lang.c (eval_opencl_assign): Update.
  3258. * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): Update.
  3259. * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
  3260. (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx): Remove.
  3261. * expression.h (enum noside) <EVAL_SKIP>: Remove.
  3262. * expop.h (typeof_operation::evaluate)
  3263. (decltype_operation::evaluate, unop_addr_operation::evaluate)
  3264. (unop_sizeof_operation::evaluate, assign_operation::evaluate)
  3265. (cxx_cast_operation::evaluate): Update.
  3266. * eval.c (eval_skip_value): Remove.
  3267. (eval_op_scope, eval_op_var_entry_value)
  3268. (eval_op_func_static_var, eval_op_string, eval_op_objc_selector)
  3269. (eval_op_concat, eval_op_ternop, eval_op_structop_struct)
  3270. (eval_op_structop_ptr, eval_op_member, eval_op_add, eval_op_sub)
  3271. (eval_op_binary, eval_op_subscript, eval_op_equal)
  3272. (eval_op_notequal, eval_op_less, eval_op_gtr, eval_op_geq)
  3273. (eval_op_leq, eval_op_repeat, eval_op_plus, eval_op_neg)
  3274. (eval_op_complement, eval_op_lognot, eval_op_ind)
  3275. (eval_op_memval, eval_op_preinc, eval_op_predec)
  3276. (eval_op_postinc, eval_op_postdec, eval_op_type)
  3277. (eval_binop_assign_modify, eval_op_objc_msgcall)
  3278. (eval_multi_subscript, logical_and_operation::evaluate)
  3279. (logical_or_operation::evaluate, array_operation::evaluate)
  3280. (operation::evaluate_for_cast)
  3281. (var_msym_value_operation::evaluate_for_cast)
  3282. (var_value_operation::evaluate_for_cast): Update.
  3283. * c-lang.c (c_string_operation::evaluate): Update.
  3284. * c-exp.h (objc_nsstring_operation::evaluate)
  3285. (objc_selector_operation::evaluate): Update.
  3286. * ada-lang.c (ada_assign_operation::evaluate)
  3287. (eval_ternop_in_range, ada_unop_neg, ada_unop_in_range)
  3288. (ada_atr_size): Update.
  3289. 2021-03-08 Tom Tromey <tom@tromey.com>
  3290. * eval.c: Merge "namespace" scopes.
  3291. 2021-03-08 Tom Tromey <tom@tromey.com>
  3292. * parser-defs.h (struct expr_builder) <expr_builder>: Inline.
  3293. <release>: Inline.
  3294. * parse.c (expr_builder::expr_builder, expr_builder::release):
  3295. Remove.
  3296. 2021-03-08 Tom Tromey <tom@tromey.com>
  3297. * parse.c (expression::expression, expression::~expression):
  3298. Remove.
  3299. * expression.h (struct expression): Inline constructor. Remove
  3300. destructor.
  3301. 2021-03-08 Tom Tromey <tom@tromey.com>
  3302. * std-operator.def (BINOP_END): Remove.
  3303. * p-exp.y (tokentab3, tokentab2): Use OP_NULL, not BINOP_END.
  3304. * go-exp.y (tokentab2): Use OP_NULL, not BINOP_END.
  3305. * f-exp.y (dot_ops, f77_keywords): Use OP_NULL, not BINOP_END.
  3306. * d-exp.y (tokentab2, ident_tokens): Use OP_NULL, not BINOP_END.
  3307. * c-exp.y (tokentab3, tokentab2, ident_tokens): Use OP_NULL, not
  3308. BINOP_END.
  3309. 2021-03-08 Tom Tromey <tom@tromey.com>
  3310. * expression.h (enum exp_opcode) <OP_UNUSED_LAST>: Remove.
  3311. 2021-03-08 Tom Tromey <tom@tromey.com>
  3312. * std-operator.def (OP_EXTENDED0): Remove.
  3313. 2021-03-08 Tom Tromey <tom@tromey.com>
  3314. * std-operator.def (OP_NAME, OP_ATR_IMAGE, OP_ATR_MODULUS)
  3315. (OP_OTHERS, OP_CHOICES, OP_POSITIONAL, OP_DISCRETE_RANGE):
  3316. Remove.
  3317. 2021-03-08 Tom Tromey <tom@tromey.com>
  3318. * std-operator.def (UNOP_CAP, UNOP_CHR, UNOP_ORD, UNOP_FLOAT)
  3319. (UNOP_MAX, UNOP_MIN, UNOP_ODD, UNOP_TRUNC, OP_M2_STRING): Remove.
  3320. 2021-03-08 Tom Tromey <tom@tromey.com>
  3321. * std-operator.def (OP_ATR_MIN, OP_ATR_MAX): Remove.
  3322. * ada-lang.c (ada_binop_minmax): Update.
  3323. * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
  3324. Use BINOP_MIN and BINOP_MAX.
  3325. 2021-03-08 Tom Tromey <tom@tromey.com>
  3326. * value.h (evaluate_subexp_with_coercion): Don't declare.
  3327. * parse.c (exp_descriptor_standard): Remove.
  3328. (expr_builder::expr_builder, expr_builder::release): Update.
  3329. (expression::expression): Remove size_t parameter.
  3330. (expression::~expression): Simplify.
  3331. (expression::resize): Remove.
  3332. (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
  3333. (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
  3334. (write_exp_elt_longcst, write_exp_elt_floatcst)
  3335. (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
  3336. (write_exp_string_vector, write_exp_bitstring): Remove.
  3337. * p-lang.h (class pascal_language) <opcode_print_table,
  3338. op_print_tab>: Remove.
  3339. * p-lang.c (pascal_language::op_print_tab): Remove.
  3340. * opencl-lang.c (class opencl_language) <opcode_print_table>:
  3341. Remove.
  3342. * objc-lang.c (objc_op_print_tab): Remove.
  3343. (class objc_language) <opcode_print_table>: Remove.
  3344. * m2-lang.h (class m2_language) <opcode_print_table,
  3345. op_print_tab>: Remove.
  3346. * m2-lang.c (m2_language::op_print_tab): Remove.
  3347. * language.h (struct language_defn) <post_parser, expression_ops,
  3348. opcode_print_table>: Remove.
  3349. * language.c (language_defn::expression_ops)
  3350. (auto_or_unknown_language::opcode_print_table): Remove.
  3351. * go-lang.h (class go_language) <opcode_print_table,
  3352. op_print_tab>: Remove.
  3353. * go-lang.c (go_language::op_print_tab): Remove.
  3354. * f-lang.h (class f_language) <opcode_print_table>: Remove
  3355. <op_print_tab>: Remove.
  3356. * f-lang.c (f_language::op_print_tab): Remove.
  3357. * expression.h (union exp_element): Remove.
  3358. (struct expression): Remove size_t parameter from constructor.
  3359. <resize>: Remove.
  3360. <first_opcode>: Update.
  3361. <nelts, elts>: Remove.
  3362. (EXP_ELEM_TO_BYTES, BYTES_TO_EXP_ELEM): Remove.
  3363. (evaluate_subexp_standard, print_expression, op_string)
  3364. (dump_raw_expression): Don't declare.
  3365. * expprint.c (print_expression, print_subexp)
  3366. (print_subexp_funcall, print_subexp_standard, op_string)
  3367. (dump_raw_expression, dump_subexp, dump_subexp_body)
  3368. (dump_subexp_body_funcall, dump_subexp_body_standard): Remove.
  3369. (dump_prefix_expression): Update.
  3370. * eval.c (evaluate_subexp): Remove.
  3371. (evaluate_expression, evaluate_type): Update.
  3372. (evaluate_subexpression_type): Remove.
  3373. (fetch_subexp_value): Remove "pc" parameter. Update.
  3374. (extract_field_op, evaluate_struct_tuple, evaluate_funcall)
  3375. (evaluate_subexp_standard, evaluate_subexp_for_address)
  3376. (evaluate_subexp_with_coercion, evaluate_subexp_for_sizeof)
  3377. (evaluate_subexp_for_cast): Remove.
  3378. (parse_and_eval_type): Update.
  3379. * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
  3380. * d-lang.c (d_op_print_tab): Remove.
  3381. (class d_language) <opcode_print_table>: Remove.
  3382. * c-lang.h (c_op_print_tab): Don't declare.
  3383. * c-lang.c (c_op_print_tab): Remove.
  3384. (class c_language, class cplus_language, class asm_language, class
  3385. minimal_language) <opcode_print_table>: Remove.
  3386. * breakpoint.c (update_watchpoint, watchpoint_check)
  3387. (watchpoint_exp_is_const, watch_command_1): Update.
  3388. * ax-gdb.h (union exp_element): Don't declare.
  3389. * ax-gdb.c (const_var_ref, const_expr, maybe_const_expr)
  3390. (gen_repeat, gen_sizeof, gen_expr_for_cast, gen_expr)
  3391. (gen_expr_binop_rest): Remove.
  3392. (gen_trace_for_expr, gen_eval_for_expr, gen_printf): Update.
  3393. * ada-lang.c (ada_op_print_tab): Remove.
  3394. (class ada_language) <post_parser, opcode_print_table>: Remove.
  3395. 2021-03-08 Tom Tromey <tom@tromey.com>
  3396. * go-lang.c (go_language::expression_ops): Don't declare.
  3397. * go-lang.h (class go_language) <expression_ops>: Remove.
  3398. * opencl-lang.c (evaluate_subexp_opencl, exp_descriptor_opencl):
  3399. Remove.
  3400. (class opencl_language) <expression_ops>: Remove.
  3401. * d-lang.c (class d_language) <expression_ops>: Remove.
  3402. * c-lang.h (evaluate_subexp_c, exp_descriptor_c): Don't declare.
  3403. * c-lang.c (evaluate_subexp_c, exp_descriptor_c): Remove.
  3404. (class c_language, class cplus_language, class asm_language)
  3405. (class minimal_language) <expression_ops>: Remove.
  3406. 2021-03-08 Tom Tromey <tom@tromey.com>
  3407. * ada-lang.c (resolve_subexp, replace_operator_with_call)
  3408. (evaluate_subexp_type, assign_aggregate)
  3409. (aggregate_assign_positional, aggregate_assign_from_choices)
  3410. (aggregate_assign_others, ada_evaluate_subexp_for_cast)
  3411. (ada_evaluate_subexp, ADA_OPERATORS, ada_operator_length)
  3412. (ada_operator_check, ada_forward_operator_length)
  3413. (ada_dump_subexp_body, ada_print_subexp, ada_exp_descriptor):
  3414. Remove.
  3415. (post_parser): Update.
  3416. (class ada_language) <expresssion_ops>: Remove.
  3417. 2021-03-08 Tom Tromey <tom@tromey.com>
  3418. * m2-lang.h (class m2_language) <expresssion_ops,
  3419. exp_descriptor_modula2>: Remove.
  3420. * m2-lang.c (evaluate_subexp_modula2)
  3421. (m2_language::exp_descriptor_modula2): Remove.
  3422. 2021-03-08 Tom Tromey <tom@tromey.com>
  3423. * f-lang.h (class f_language) <expresssion_ops>: Remove.
  3424. <exp_descriptor_tab>: Remove.
  3425. * f-lang.c (fortran_value_subarray, evaluate_subexp_f)
  3426. (operator_length_f, print_unop_subexp_f, print_binop_subexp_f)
  3427. (print_subexp_f, dump_subexp_body_f, operator_check_f)
  3428. (f_language::exp_descriptor_tab, fortran_prepare_argument):
  3429. Remove.
  3430. 2021-03-08 Tom Tromey <tom@tromey.com>
  3431. * rust-lang.h (class rust_language) <expression_ops,
  3432. exp_descriptor_tab>: Remove.
  3433. * rust-lang.c (rust_evaluate_funcall): Remove.
  3434. (rust_range, rust_subscript, eval_op_rust_complement): Don't use
  3435. EVAL_SKIP.
  3436. (rust_evaluate_subexp): Remove.
  3437. (rust_aggregate_operation::evaluate): Don't use EVAL_SKIP.
  3438. (rust_operator_length, rust_dump_subexp_body, rust_print_subexp)
  3439. (rust_operator_check, rust_language::exp_descriptor_tab): Remove.
  3440. 2021-03-08 Tom Tromey <tom@tromey.com>
  3441. * ada-exp.y: Create operations.
  3442. (empty_stoken): Remove.
  3443. (ada_pop, ada_wrap, ada_addrof, ada_un_wrap2, ada_wrap2)
  3444. (ada_wrap_op, ada_wrap3, ada_funcall): New functions.
  3445. (components): New global.
  3446. (push_component, choice_component, pop_component, pop_components):
  3447. New functions.
  3448. (associations): New global
  3449. (push_association, pop_association, pop_associations): New
  3450. functions.
  3451. (ada_parse): Update.
  3452. (write_var_from_sym, write_int): Create operations.
  3453. (write_exp_op_with_string): Remove.
  3454. (write_object_renaming, write_selectors, write_ambiguous_var)
  3455. (write_var_or_type, write_name_assoc): Create operations.
  3456. * ada-lang.h (ada_index_type): Declare.
  3457. * ada-lang.c (ada_index_type): No longer static.
  3458. 2021-03-08 Tom Tromey <tom@tromey.com>
  3459. * f-exp.y: Create operations.
  3460. (f_language::parser): Update.
  3461. 2021-03-08 Tom Tromey <tom@tromey.com>
  3462. * m2-exp.y: Create operations.
  3463. (m2_language::parser): Update.
  3464. 2021-03-08 Tom Tromey <tom@tromey.com>
  3465. * p-exp.y: Create operations.
  3466. (pascal_language::parser): Update.
  3467. 2021-03-08 Tom Tromey <tom@tromey.com>
  3468. * d-exp.y: Create operations.
  3469. (d_parse): Update.
  3470. 2021-03-08 Tom Tromey <tom@tromey.com>
  3471. * go-exp.y: Create operations.
  3472. (go_language::parser): Update.
  3473. 2021-03-08 Tom Tromey <tom@tromey.com>
  3474. * objc-lang.c (end_msglist): Create operations.
  3475. * c-exp.y: Change parser to create operations.
  3476. (write_destructor_name): Remove.
  3477. (c_parse): Update.
  3478. 2021-03-08 Tom Tromey <tom@tromey.com>
  3479. * rust-exp.y: Create operations.
  3480. (rust_parser::convert_params_to_expression): Change return type.
  3481. (binop_maker_ftype): New typedef.
  3482. (maker_map): New global.
  3483. (rust_parser::convert_ast_to_expression): Change return type.
  3484. (rust_language::parser): Update.
  3485. (_initialize_rust_exp): Initialize maker_map.
  3486. 2021-03-08 Tom Tromey <tom@tromey.com>
  3487. * stap-probe.c (binop_maker_ftype): New typedef.
  3488. (stap_maker_map): New global.
  3489. (stap_make_binop): New function.
  3490. (stap_parse_register_operand): Return operation_up.
  3491. (stap_parse_single_operand, stap_parse_argument_conditionally)
  3492. (stap_parse_argument_1): Likewise.
  3493. (stap_parse_argument): Create operations.
  3494. (stap_probe::parse_arguments): Update.
  3495. (_initialize_stap_probe): Initialize stap_maker_map.
  3496. * ppc-linux-tdep.c (ppc_stap_parse_special_token): Change return
  3497. type.
  3498. * i386-tdep.h (i386_stap_parse_special_token): Change return
  3499. type.
  3500. * i386-tdep.c (i386_stap_parse_special_token_triplet)
  3501. (i386_stap_parse_special_token_three_arg_disp)
  3502. (i386_stap_parse_special_token): Change return type.
  3503. * gdbarch.sh (stap_parse_special_token): Change return type.
  3504. * gdbarch.c: Rebuild.
  3505. * gdbarch.h: Rebuild.
  3506. * arm-linux-tdep.c (arm_stap_parse_special_token): Change return
  3507. type.
  3508. * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Change
  3509. return type.
  3510. 2021-03-08 Tom Tromey <tom@tromey.com>
  3511. * gdbarch.sh (dtrace_parse_probe_argument): Change return type.
  3512. * gdbarch.h: Rebuild.
  3513. * gdbarch.c: Rebuild.
  3514. * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
  3515. * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Change
  3516. return type.
  3517. (amd64_dtrace_parse_probe_argument): Update.
  3518. 2021-03-08 Tom Tromey <tom@tromey.com>
  3519. * parser-defs.h (struct parser_state) <push, push_new,
  3520. push_c_string, push_symbol, push_dollar, pop, pop_vector, wrap,
  3521. wrap2>: New methods.
  3522. <m_operations>: New member.
  3523. * parse.c (parser_state::push_c_string)
  3524. (parser_state::push_symbol, parser_state::push_dollar): New
  3525. methods.
  3526. 2021-03-08 Tom Tromey <tom@tromey.com>
  3527. * parser-defs.h (struct expr_completion_state) <expout_last_op>:
  3528. New member.
  3529. (struct parser_state) <mark_struct_expression>: New method.
  3530. * parse.c (parser_state::mark_struct_expression): Update assert.
  3531. (parser_state::mark_struct_expression): New method.
  3532. (parser_state::mark_completion_tag): Update assert.
  3533. (parse_expression_for_completion): Handle expout_last_op.
  3534. 2021-03-08 Tom Tromey <tom@tromey.com>
  3535. * ada-exp.h (class ada_var_value_operation) <get_symbol>: Remove;
  3536. now in superclass.
  3537. * value.h (fetch_subexp_value): Add "op" parameter.
  3538. * value.c (init_if_undefined_command): Update.
  3539. * tracepoint.c (validate_actionline, encode_actions_1): Update.
  3540. * stap-probe.c (stap_probe::compile_to_ax): Update.
  3541. * printcmd.c (set_command): Update.
  3542. * ppc-linux-nat.c (ppc_linux_nat_target::check_condition):
  3543. Update.
  3544. * parser-defs.h (struct expr_builder) <set_operation>: New
  3545. method.
  3546. * parse.c (parse_exp_in_context, exp_uses_objfile): Update.
  3547. * expression.h (struct expression) <first_opcode>: Update.
  3548. <op>: New member.
  3549. * expprint.c (dump_raw_expression, dump_prefix_expression):
  3550. Update.
  3551. * expop.h (class var_value_operation) <get_symbol>: New method.
  3552. (class register_operation) <get_name>: New method.
  3553. (class equal_operation): No longer a typedef, now a subclass.
  3554. (class unop_memval_operation) <get_type>: New method.
  3555. (class assign_operation) <get_lhs>: New method.
  3556. (class unop_cast_operation) <get_type>: New method.
  3557. * eval.c (evaluate_expression, evaluate_type)
  3558. (evaluate_subexpression_type): Update.
  3559. (fetch_subexp_value): Add "op" parameter.
  3560. (parse_and_eval_type): Update.
  3561. * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
  3562. * breakpoint.c (update_watchpoint, watchpoint_check)
  3563. (watchpoint_exp_is_const, watch_command_1): Update.
  3564. * ax-gdb.c (gen_trace_for_expr, gen_eval_for_expr, gen_printf):
  3565. Update.
  3566. 2021-03-08 Tom Tromey <tom@tromey.com>
  3567. * ada-lang.c (ada_value_binop): Do not use op_string.
  3568. 2021-03-08 Tom Tromey <tom@tromey.com>
  3569. * expprint.c (dump_for_expression): New overload.
  3570. * expop.h (check_objfile, dump_for_expression): Declare new
  3571. overloads.
  3572. * ada-lang.c (check_objfile): New overload.
  3573. (assign_component, ada_aggregate_component::uses_objfile)
  3574. (ada_aggregate_component::dump, ada_aggregate_component::assign)
  3575. (ada_aggregate_component::assign_aggregate)
  3576. (ada_positional_component::uses_objfile)
  3577. (ada_positional_component::dump, ada_positional_component::assign)
  3578. (ada_discrete_range_association::uses_objfile)
  3579. (ada_discrete_range_association::dump)
  3580. (ada_discrete_range_association::assign)
  3581. (ada_name_association::uses_objfile, ada_name_association::dump)
  3582. (ada_name_association::assign)
  3583. (ada_choices_component::uses_objfile, ada_choices_component::dump)
  3584. (ada_choices_component::assign)
  3585. (ada_others_component::uses_objfile, ada_others_component::dump)
  3586. (ada_others_component::assign, ada_assign_operation::evaluate):
  3587. New methods.
  3588. * ada-exp.h (ada_string_operation) <get_name>: New method.
  3589. (class ada_assign_operation): New.
  3590. (class ada_component): New.
  3591. (ada_component_up): New typedef.
  3592. (class ada_aggregate_operation, class ada_aggregate_component)
  3593. (class ada_positional_component, class ada_others_component)
  3594. (class ada_association): New.
  3595. (ada_association_up): New typedef.
  3596. (class ada_choices_component)
  3597. (class ada_discrete_range_association)
  3598. (class ada_name_association): New.
  3599. 2021-03-08 Tom Tromey <tom@tromey.com>
  3600. * ada-lang.c (ada_var_value_operation::resolve)
  3601. (ada_funcall_operation::resolve)
  3602. (ada_ternop_slice_operation::resolve): New methods.
  3603. * ada-exp.h (struct ada_resolvable): New.
  3604. (class ada_var_value_operation): Derive from ada_resolvable.
  3605. <get_block, resolve>: New methods.
  3606. (class ada_funcall_operation): Derive from ada_resolvable.
  3607. <resolve>: New method.
  3608. (class ada_ternop_slice_operation): Derive from ada_resolvable.
  3609. <resolve>: New method.
  3610. 2021-03-08 Tom Tromey <tom@tromey.com>
  3611. * ada-lang.c (ada_funcall_operation::evaluate): New method.
  3612. * ada-exp.h (class ada_var_msym_value_operation) <get_symbol>: New
  3613. method.
  3614. (class ada_funcall_operation): New.
  3615. 2021-03-08 Tom Tromey <tom@tromey.com>
  3616. * ada-lang.c (ada_structop_operation::evaluate): New method.
  3617. * ada-exp.h (class ada_structop_operation): New.
  3618. 2021-03-08 Tom Tromey <tom@tromey.com>
  3619. * ada-lang.c (ada_unop_ind_operation::evaluate): New method.
  3620. * ada-exp.h (class ada_unop_ind_operation): New.
  3621. 2021-03-08 Tom Tromey <tom@tromey.com>
  3622. * ada-lang.c (ada_binop_exp): No longer static.
  3623. * ada-exp.h (ada_binop_exp_operation): New typedef.
  3624. 2021-03-08 Tom Tromey <tom@tromey.com>
  3625. * ada-lang.c (ada_val_atr): No longer static.
  3626. (ada_atr_val_operation::evaluate): New method.
  3627. * ada-exp.h (class ada_atr_val_operation): New.
  3628. 2021-03-08 Tom Tromey <tom@tromey.com>
  3629. * ada-lang.c (ada_pos_atr): No longer static.
  3630. * ada-exp.h (ada_pos_operation): New typedef.
  3631. 2021-03-08 Tom Tromey <tom@tromey.com>
  3632. * ada-lang.c (ada_pos_atr): Rename from value_pos_atr. Change
  3633. parameters.
  3634. (ada_evaluate_subexp): Use it.
  3635. 2021-03-08 Tom Tromey <tom@tromey.com>
  3636. * ada-lang.c (ada_binop_minmax): No longer static.
  3637. * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
  3638. New typedefs.
  3639. 2021-03-08 Tom Tromey <tom@tromey.com>
  3640. * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
  3641. New method.
  3642. * ada-exp.h (class ada_var_msym_value_operation): New.
  3643. 2021-03-08 Tom Tromey <tom@tromey.com>
  3644. * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
  3645. (ada_var_value_operation::evaluate): New methods.
  3646. * ada-exp.h (class ada_var_value_operation): New.
  3647. 2021-03-08 Tom Tromey <tom@tromey.com>
  3648. * ada-lang.c (ada_unop_atr_operation::evaluate): New method.
  3649. * ada-exp.h (class ada_unop_atr_operation): New.
  3650. 2021-03-08 Tom Tromey <tom@tromey.com>
  3651. * ada-lang.c (ada_binop_in_bounds): No longer static.
  3652. * ada-exp.h (class ada_binop_in_bounds_operation): New.
  3653. 2021-03-08 Tom Tromey <tom@tromey.com>
  3654. * ada-lang.c (ada_ternop_slice): No longer static.
  3655. * ada-exp.h (class ada_ternop_slice_operation): New.
  3656. 2021-03-08 Tom Tromey <tom@tromey.com>
  3657. * ada-exp.h (ada_bitwise_operation): New template class.
  3658. (ada_bitwise_and_operation, ada_bitwise_ior_operation)
  3659. (ada_bitwise_xor_operation): New typedefs.
  3660. 2021-03-08 Tom Tromey <tom@tromey.com>
  3661. * ada-lang.c (ada_equal_binop): No longer static.
  3662. * ada-exp.h (class ada_binop_equal_operation): New.
  3663. 2021-03-08 Tom Tromey <tom@tromey.com>
  3664. * ada-lang.c (ada_mult_binop): No longer static.
  3665. * ada-exp.h (ada_binop_mul_operation ada_binop_div_operation)
  3666. (ada_binop_rem_operation, ada_binop_mod_operation): New typedefs.
  3667. 2021-03-08 Tom Tromey <tom@tromey.com>
  3668. * ada-lang.c (ada_binop_addsub_operation::evaluate): New method.
  3669. * ada-exp.h (class ada_binop_addsub_operation): New.
  3670. 2021-03-08 Tom Tromey <tom@tromey.com>
  3671. * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
  3672. (ada_resolve_variable): Declare.
  3673. * ada-lang.c (ada_find_operator_symbol, ada_resolve_funcall)
  3674. (ada_resolve_variable): New functions.
  3675. (resolve_subexp): Update.
  3676. 2021-03-08 Tom Tromey <tom@tromey.com>
  3677. * opencl-lang.c (opencl_ternop_cond_operation::evaluate): New
  3678. method.
  3679. * c-exp.h (class opencl_ternop_cond_operation): New.
  3680. 2021-03-08 Tom Tromey <tom@tromey.com>
  3681. * opencl-lang.c (opencl_logical_binop_operation::evaluate): New
  3682. method.
  3683. * c-exp.h (class opencl_logical_binop_operation): New.
  3684. 2021-03-08 Tom Tromey <tom@tromey.com>
  3685. * opencl-lang.c (opencl_structop_operation::evaluate): New
  3686. method.
  3687. * c-exp.h (class opencl_structop_operation): New.
  3688. 2021-03-08 Tom Tromey <tom@tromey.com>
  3689. * opencl-lang.c (opencl_logical_not): No longer static. Change
  3690. parameters.
  3691. (evaluate_subexp_opencl): Update.
  3692. * c-exp.h (opencl_notequal_operation): New typedef.
  3693. 2021-03-08 Tom Tromey <tom@tromey.com>
  3694. * opencl-lang.c (opencl_relop, eval_opencl_assign): No longer
  3695. static. Change parameters.
  3696. (eval_opencl_assign): No longer static. Add "op" parameter.
  3697. (evaluate_subexp_opencl): Update.
  3698. * c-exp.h (opencl_binop_operation): New template class.
  3699. (opencl_assign_operation, opencl_equal_operation)
  3700. (opencl_notequal_operation, opencl_less_operation)
  3701. (opencl_gtr_operation, opencl_geq_operation)
  3702. (opencl_leq_operation): New typedefs.
  3703. 2021-03-08 Tom Tromey <tom@tromey.com>
  3704. * opencl-lang.c (opencl_value_cast): No longer static.
  3705. * c-exp.h (opencl_cast_type_operation): New typedef.
  3706. 2021-03-08 Tom Tromey <tom@tromey.com>
  3707. * f-exp.h (eval_op_f_allocated): Declare.
  3708. (fortran_allocated_operation): New typedef.
  3709. * f-lang.c (eval_op_f_allocated): No longer static.
  3710. 2021-03-08 Tom Tromey <tom@tromey.com>
  3711. * f-lang.c (eval_op_f_associated): New functions.
  3712. * f-exp.h (fortran_associated_1arg, fortran_associated_2arg): New
  3713. typedefs.
  3714. 2021-03-08 Tom Tromey <tom@tromey.com>
  3715. * f-lang.c (fortran_bound_1arg::evaluate)
  3716. (fortran_bound_2arg::evaluate): New methods.
  3717. * f-exp.h (class fortran_bound_1arg, class fortran_bound_2arg):
  3718. New.
  3719. 2021-03-08 Tom Tromey <tom@tromey.com>
  3720. * expop.h (class unop_addr_operation) <get_expression>: New
  3721. method.
  3722. * f-lang.c (fortran_undetermined::value_subarray)
  3723. (fortran_undetermined::evaluate): New methods.
  3724. (fortran_prepare_argument): New overload.
  3725. * f-exp.h (class fortran_range_operation)
  3726. (class fortran_undetermined): New classes.
  3727. 2021-03-08 Tom Tromey <tom@tromey.com>
  3728. * rust-lang.c (rust_structop::evaluate_funcall): New method.
  3729. * rust-exp.h (class rust_structop) <evaluate_funcall>: Declare
  3730. method.
  3731. 2021-03-08 Tom Tromey <tom@tromey.com>
  3732. * expression.h (class operation) <evaluate_funcall>: New methods.
  3733. * expop.h (class scope_operation) <evaluate_funcall>: New method.
  3734. (class var_value_operation) <evaluate_funcall>: New method.
  3735. (class structop_base_operation) <evaluate_funcall>: New method.
  3736. (class var_msym_value_operation) <evaluate_funcall>: New method.
  3737. (class structop_member_base): New class.
  3738. (class structop_member_operation): Derive from
  3739. structop_member_base.
  3740. (class structop_mptr_operation): Derive from
  3741. structop_member_base.
  3742. (class funcall_operation): New class.
  3743. * eval.c (operation::evaluate_funcall)
  3744. (var_value_operation::evaluate_funcall)
  3745. (scope_operation::evaluate_funcall)
  3746. (structop_member_base::evaluate_funcall)
  3747. (structop_base_operation::evaluate_funcall): New methods.
  3748. 2021-03-08 Tom Tromey <tom@tromey.com>
  3749. * expop.h (class array_operation): New.
  3750. * eval.c (array_operation::evaluate_struct_tuple)
  3751. (array_operation::evaluate): New methods.
  3752. 2021-03-08 Tom Tromey <tom@tromey.com>
  3753. * expop.h (class adl_func_operation): New.
  3754. * eval.c (adl_func_operation::evaluate): New method.
  3755. 2021-03-08 Tom Tromey <tom@tromey.com>
  3756. * ada-lang.c (ada_unop_in_range): No longer static.
  3757. * ada-exp.h (class ada_unop_range_operation): New.
  3758. 2021-03-08 Tom Tromey <tom@tromey.com>
  3759. * ada-lang.c (ada_unop_neg, ada_atr_tag, ada_atr_size, ada_abs):
  3760. No longer static.
  3761. * ada-exp.h (ada_neg_operation, ada_atr_tag_operation)
  3762. (ada_atr_size_operation, ada_abs_operation): New typedefs.
  3763. 2021-03-08 Tom Tromey <tom@tromey.com>
  3764. * expop.h (class logical_and_operation)
  3765. (class logical_or_operation): New.
  3766. * eval.c (logical_and_operation::evaluate)
  3767. (logical_or_operation::evaluate): New methods.
  3768. * ax-gdb.c (logical_and_operation::do_generate_ax)
  3769. (logical_or_operation::do_generate_ax): New methods.
  3770. 2021-03-08 Tom Tromey <tom@tromey.com>
  3771. * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): No longer
  3772. static.
  3773. * m2-exp.h: New file.
  3774. 2021-03-08 Tom Tromey <tom@tromey.com>
  3775. * rust-lang.c (rust_aggregate_operation::evaluate): New method.
  3776. * rust-exp.h (class rust_aggregate_operation): New.
  3777. 2021-03-08 Tom Tromey <tom@tromey.com>
  3778. * rust-lang.c (eval_op_rust_struct_anon, eval_op_rust_structop):
  3779. No longer static.
  3780. * rust-exp.h (class rust_struct_anon): New.
  3781. (class rust_structop): New.
  3782. 2021-03-08 Tom Tromey <tom@tromey.com>
  3783. * rust-lang.c (rust_range): No longer static.
  3784. * rust-exp.h (class rust_range_operation): New.
  3785. 2021-03-08 Tom Tromey <tom@tromey.com>
  3786. * rust-lang.c (rust_subscript): No longer static.
  3787. * rust-exp.h (class rust_subscript_operation): New.
  3788. 2021-03-08 Tom Tromey <tom@tromey.com>
  3789. * rust-lang.c (eval_op_rust_ind): No longer static. Add "opcode"
  3790. parameter.
  3791. (rust_evaluate_subexp): Update.
  3792. * rust-exp.h (class rust_unop_ind_operation): New.
  3793. 2021-03-08 Tom Tromey <tom@tromey.com>
  3794. * rust-lang.c (eval_op_rust_complement, eval_op_rust_array): No
  3795. longer static. Add "opcode" parameter.
  3796. (rust_evaluate_subexp): Update.
  3797. * rust-exp.h: New file.
  3798. 2021-03-08 Tom Tromey <tom@tromey.com>
  3799. * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
  3800. (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx)
  3801. (eval_op_f_kind): No longer static. Add "opcode" parameter.
  3802. (evaluate_subexp_f): Update.
  3803. * f-exp.h: New file.
  3804. 2021-03-08 Tom Tromey <tom@tromey.com>
  3805. * ada-lang.c (ada_ternop_range_operation::evaluate): New method.
  3806. * ada-exp.h (class ada_ternop_range_operation): New.
  3807. 2021-03-08 Tom Tromey <tom@tromey.com>
  3808. * ada-lang.c (ada_qual_operation::evaluate): New method.
  3809. * ada-exp.h (class ada_qual_operation): New.
  3810. 2021-03-08 Tom Tromey <tom@tromey.com>
  3811. * ada-lang.c (ada_string_operation::evaluate): New method.
  3812. * ada-exp.h (class ada_string_operation): New.
  3813. 2021-03-08 Tom Tromey <tom@tromey.com>
  3814. * ada-lang.c (ada_wrapped_operation::evaluate): New method.
  3815. * ada-exp.h: New file.
  3816. 2021-03-08 Tom Tromey <tom@tromey.com>
  3817. * expop.h (class multi_subscript_operation): New.
  3818. * eval.c (multi_subscript_operation::evaluate): New method.
  3819. 2021-03-08 Tom Tromey <tom@tromey.com>
  3820. * eval.c (objc_msgcall_operation::evaluate): New method.
  3821. * c-exp.h (class objc_msgcall_operation): New.
  3822. 2021-03-08 Tom Tromey <tom@tromey.com>
  3823. * expop.h (class var_value_operation): New.
  3824. * eval.c (var_value_operation::evaluate)
  3825. (var_value_operation::evaluate_for_address)
  3826. (var_value_operation::evaluate_with_coercion)
  3827. (var_value_operation::evaluate_for_sizeof)
  3828. (var_value_operation::evaluate_for_cast): New methods.
  3829. * ax-gdb.c (var_value_operation::do_generate_ax): New method.
  3830. 2021-03-08 Tom Tromey <tom@tromey.com>
  3831. * expop.h (cxx_cast_ftype): New typedef.
  3832. (cxx_cast_operation): New template.
  3833. (dynamic_cast_operation, reinterpret_cast_operation): New
  3834. typedefs.
  3835. 2021-03-08 Tom Tromey <tom@tromey.com>
  3836. * expop.h (class unop_cast_type_operation): New.
  3837. * ax-gdb.c (unop_cast_type_operation::do_generate_ax): New
  3838. method.
  3839. 2021-03-08 Tom Tromey <tom@tromey.com>
  3840. * expop.h (class unop_cast_operation): New.
  3841. * ax-gdb.c (unop_cast_operation::do_generate_ax): New method.
  3842. 2021-03-08 Tom Tromey <tom@tromey.com>
  3843. * expop.h (class assign_modify_operation): New.
  3844. * eval.c (eval_binop_assign_modify): No longer static.
  3845. * ax-gdb.c (assign_modify_operation::do_generate_ax): New method.
  3846. 2021-03-08 Tom Tromey <tom@tromey.com>
  3847. * expop.h (class assign_operation): New.
  3848. * ax-gdb.c (assign_operation::do_generate_ax): New method.
  3849. 2021-03-08 Tom Tromey <tom@tromey.com>
  3850. * expop.h (class type_instance_operation): New.
  3851. * eval.c (type_instance_operation::evaluate): New method.
  3852. 2021-03-08 Tom Tromey <tom@tromey.com>
  3853. * expop.h (class op_this_operation): New.
  3854. * ax-gdb.c (op_this_operation::do_generate_ax): New method.
  3855. 2021-03-08 Tom Tromey <tom@tromey.com>
  3856. * expop.h (class unop_memval_operation)
  3857. (class unop_memval_type_operation): New.
  3858. * eval.c (eval_op_memval): No longer static.
  3859. (unop_memval_operation::evaluate_for_address)
  3860. (unop_memval_type_operation::evaluate_for_address)
  3861. (unop_memval_operation::evaluate_for_sizeof)
  3862. (unop_memval_type_operation::evaluate_for_sizeof): New methods.
  3863. * ax-gdb.c (unop_memval_operation::do_generate_ax)
  3864. (unop_memval_type_operation::do_generate_ax): New methods.
  3865. 2021-03-08 Tom Tromey <tom@tromey.com>
  3866. * expop.h (class unop_alignof_operation): New.
  3867. * eval.c (eval_op_alignof): No longer static.
  3868. 2021-03-08 Tom Tromey <tom@tromey.com>
  3869. * expop.h (class unop_sizeof_operation): New.
  3870. * ax-gdb.c (unop_sizeof_operation::do_generate_ax): New method.
  3871. 2021-03-08 Tom Tromey <tom@tromey.com>
  3872. * expop.h (class unop_addr_operation): New.
  3873. * ax-gdb.c (gen_expr_unop) <case UNOP_ADDR>: New.
  3874. 2021-03-08 Tom Tromey <tom@tromey.com>
  3875. * expop.h (class typeid_operation): New.
  3876. 2021-03-08 Tom Tromey <tom@tromey.com>
  3877. * expop.h (class decltype_operation): New.
  3878. 2021-03-08 Tom Tromey <tom@tromey.com>
  3879. * expop.h (class typeof_operation): New.
  3880. 2021-03-08 Tom Tromey <tom@tromey.com>
  3881. * expop.h (class type_operation): New.
  3882. * eval.c (eval_op_type): No longer static.
  3883. 2021-03-08 Tom Tromey <tom@tromey.com>
  3884. * expop.h (class unop_ind_base_operation)
  3885. (class unop_ind_operation): New.
  3886. * eval.c (eval_op_ind): No longer static. Remove "op" parameter.
  3887. (unop_ind_base_operation::evaluate_for_address)
  3888. (unop_ind_base_operation::evaluate_for_sizeof): New method.
  3889. * ax-gdb.c (gen_expr_unop) <case UNOP_IND>: New.
  3890. 2021-03-08 Tom Tromey <tom@tromey.com>
  3891. * expop.h (unop_incr_operation): New template.
  3892. (preinc_operation, predec_operation, postinc_operation)
  3893. (postdec_operation): New typedefs.
  3894. * eval.c (eval_op_preinc, eval_op_predec, eval_op_postinc)
  3895. (eval_op_postdec): No longer static.
  3896. 2021-03-08 Tom Tromey <tom@tromey.com>
  3897. * expop.h (unary_ftype): New typedef.
  3898. (unop_operation, usual_ax_binop_operation): New templates.
  3899. (unary_plus_operation, unary_neg_operation)
  3900. (unary_complement_operation, unary_logical_not_operation): New
  3901. typedefs.
  3902. * eval.c (eval_op_plus, eval_op_neg, eval_op_complement)
  3903. (eval_op_lognot): No longer static.
  3904. * ax-gdb.c (gen_expr_unop): New function.
  3905. 2021-03-08 Tom Tromey <tom@tromey.com>
  3906. * ax-gdb.c (comma_operation::do_generate_ax): New method.
  3907. 2021-03-08 Tom Tromey <tom@tromey.com>
  3908. * expop.h (class repeat_operation): New.
  3909. * eval.c (eval_op_repeat): No longer static. Remove "op"
  3910. parameter.
  3911. (evaluate_subexp_standard): Update.
  3912. * ax-gdb.c (repeat_operation::do_generate_ax): New method.
  3913. 2021-03-08 Tom Tromey <tom@tromey.com>
  3914. * expop.h (class comparison_operation): New.
  3915. (equal_operation, notequal_operation, less_operation)
  3916. (gtr_operation, geq_operation, leq_operation): New typedefs.
  3917. * eval.c (eval_op_equal, eval_op_notequal, eval_op_less)
  3918. (eval_op_gtr, eval_op_geq, eval_op_leq): No longer static.
  3919. 2021-03-08 Tom Tromey <tom@tromey.com>
  3920. * expop.h (class subscript_operation): New.
  3921. * eval.c (eval_op_subscript): No longer static.
  3922. 2021-03-08 Tom Tromey <tom@tromey.com>
  3923. * expop.h (class binop_operation, class usual_ax_binop_operation):
  3924. New.
  3925. (exp_operation, intdiv_operation, mod_operation, mul_operation)
  3926. (div_operation, rem_operation, lsh_operation, rsh_operation)
  3927. (bitwise_and_operation, bitwise_ior_operation)
  3928. (bitwise_xor_operation): New typedefs.
  3929. * eval.c (eval_op_binary): No longer static.
  3930. 2021-03-08 Tom Tromey <tom@tromey.com>
  3931. * expop.h (class sub_operation): New.
  3932. * eval.c (eval_op_sub): No longer static. Remove "op" parameter.
  3933. (evaluate_subexp_standard): Update.
  3934. 2021-03-08 Tom Tromey <tom@tromey.com>
  3935. * expop.h (class add_operation): New.
  3936. * eval.c (eval_op_add): No longer static. Remove "op" parameter.
  3937. (evaluate_subexp_standard): Update.
  3938. 2021-03-08 Tom Tromey <tom@tromey.com>
  3939. * expop.h (class concat_operation): New.
  3940. * eval.c (eval_op_concat): No longer static. Remove "op"
  3941. parameter.
  3942. (evaluate_subexp_standard): Update.
  3943. 2021-03-08 Tom Tromey <tom@tromey.com>
  3944. * expop.h (class structop_member_operation)
  3945. (class structop_mptr_operation): New.
  3946. * eval.c (eval_op_member): No longer static.
  3947. 2021-03-08 Tom Tromey <tom@tromey.com>
  3948. * expop.h (class structop_ptr_operation): New.
  3949. * eval.c (eval_op_structop_ptr): No longer static. Remove "op"
  3950. parameter.
  3951. 2021-03-08 Tom Tromey <tom@tromey.com>
  3952. * expop.h (class structop_base_operation)
  3953. (class structop_operation): New.
  3954. * eval.c (eval_op_structop_struct): No longer static.
  3955. 2021-03-08 Tom Tromey <tom@tromey.com>
  3956. * expop.h (class complex_operation): New.
  3957. 2021-03-08 Tom Tromey <tom@tromey.com>
  3958. * eval.c (eval_op_objc_selector): No longer static.
  3959. * c-exp.h (class objc_selector_operation): New.
  3960. 2021-03-08 Tom Tromey <tom@tromey.com>
  3961. * eval.c: Include c-exp.h.
  3962. * c-exp.h (class objc_nsstring_operation): New.
  3963. 2021-03-08 Tom Tromey <tom@tromey.com>
  3964. * c-lang.c (c_string_operation::evaluate): New method.
  3965. * c-exp.h: New file.
  3966. 2021-03-08 Tom Tromey <tom@tromey.com>
  3967. * expop.h (class ternop_cond_operation): New.
  3968. * ax-gdb.c (ternop_cond_operation::do_generate_ax): New method.
  3969. 2021-03-08 Tom Tromey <tom@tromey.com>
  3970. * expop.h (class ternop_slice_operation): New.
  3971. * eval.c (eval_op_ternop): No longer static.
  3972. 2021-03-08 Tom Tromey <tom@tromey.com>
  3973. * expop.h (class string_operation): New.
  3974. * eval.c (eval_op_string): No longer static.
  3975. 2021-03-08 Tom Tromey <tom@tromey.com>
  3976. * expop.h (class internalvar_operation): New.
  3977. * ax-gdb.c (internalvar_operation::do_generate_ax): New method.
  3978. 2021-03-08 Tom Tromey <tom@tromey.com>
  3979. * expop.h (class bool_operation): New.
  3980. 2021-03-08 Tom Tromey <tom@tromey.com>
  3981. * expop.h (class register_operation): New.
  3982. * eval.c (eval_op_register): No longer static.
  3983. * ax-gdb.c (register_operation::do_generate_ax): New method.
  3984. 2021-03-08 Tom Tromey <tom@tromey.com>
  3985. * expop.h (class last_operation): New.
  3986. 2021-03-08 Tom Tromey <tom@tromey.com>
  3987. * expop.h (class func_static_var_operation): New.
  3988. * eval.c (eval_op_func_static_var): No longer static.
  3989. 2021-03-08 Tom Tromey <tom@tromey.com>
  3990. * expop.h (class var_entry_value_operation): New.
  3991. * eval.c (eval_op_var_entry_value): No longer static.
  3992. 2021-03-08 Tom Tromey <tom@tromey.com>
  3993. * expression.h (class operation) <set_outermost>: New method.
  3994. * expop.h (class var_msym_value_operation): New.
  3995. * eval.c (eval_op_var_msym_value): No longer static.
  3996. (var_msym_value_operation::evaluate_for_address)
  3997. (var_msym_value_operation::evaluate_for_sizeof)
  3998. (var_msym_value_operation::evaluate_for_cast): New methods.
  3999. * ax-gdb.c (var_msym_value_operation::do_generate_ax): New
  4000. method.
  4001. 2021-03-08 Tom Tromey <tom@tromey.com>
  4002. * expop.h (class long_const_operation): New.
  4003. * ax-gdb.c (long_const_operation::do_generate_ax): New method.
  4004. 2021-03-08 Tom Tromey <tom@tromey.com>
  4005. * expop.h (class scope_operation): New.
  4006. * eval.c (eval_op_scope): No longer static.
  4007. (scope_operation::evaluate_for_address): New method.
  4008. * ax-gdb.c (scope_operation::do_generate_ax): New method.
  4009. 2021-03-08 Tom Tromey <tom@tromey.com>
  4010. * expprint.c (float_const_operation::dump): New method.
  4011. * expop.h (float_data): New typedef.
  4012. (class float_const_operation): New.
  4013. 2021-03-08 Tom Tromey <tom@tromey.com>
  4014. * expop.h (gen_expr_binop, gen_expr_structop): Declare.
  4015. * ax-gdb.c (gen_expr_binop): New function.
  4016. (gen_expr_structop): Likewise.
  4017. 2021-03-08 Tom Tromey <tom@tromey.com>
  4018. * expprint.c (expr::dump_for_expression): New functions.
  4019. * expop.h (dump_for_expression): New overloads.
  4020. (tuple_holding_operation::dump, tuple_holding_operation::do_dump):
  4021. Update.
  4022. 2021-03-08 Tom Tromey <tom@tromey.com>
  4023. * expression.h (expr::operation): New class.
  4024. (expr::make_operation): New function.
  4025. (expr::operation_up): New typedef.
  4026. * expop.h: New file.
  4027. * eval.c (operation::evaluate_for_cast)
  4028. (operation::evaluate_for_address, operation::evaluate_for_sizeof):
  4029. New methods.
  4030. * ax-gdb.c (operation::generate_ax): New method.
  4031. 2021-03-08 Tom Tromey <tom@tromey.com>
  4032. * ax-gdb.c (gen_expr_binop_rest): Remove "pc" parameter.
  4033. (gen_expr_binop_rest): New overload.
  4034. 2021-03-08 Tom Tromey <tom@tromey.com>
  4035. * eval.c (eval_multi_subscript): New function.
  4036. (evaluate_subexp_standard): Use it.
  4037. 2021-03-08 Tom Tromey <tom@tromey.com>
  4038. * ada-lang.c (ada_binop_exp): New function.
  4039. (ada_evaluate_subexp): Use it.
  4040. 2021-03-08 Tom Tromey <tom@tromey.com>
  4041. * ada-lang.c (ada_val_atr): Rename from value_val_atr. Change
  4042. parameters.
  4043. (ada_evaluate_subexp): Use it.
  4044. 2021-03-08 Tom Tromey <tom@tromey.com>
  4045. * ada-lang.c (ada_binop_minmax): New function.
  4046. (ada_evaluate_subexp): Use it.
  4047. 2021-03-08 Tom Tromey <tom@tromey.com>
  4048. * ada-lang.c (ada_unop_atr): New function.
  4049. (ada_evaluate_subexp): Use it.
  4050. 2021-03-08 Tom Tromey <tom@tromey.com>
  4051. * ada-lang.c (ada_binop_in_bounds): New function.
  4052. (ada_evaluate_subexp): Use it.
  4053. 2021-03-08 Tom Tromey <tom@tromey.com>
  4054. * ada-lang.c (ada_ternop_slice): New function.
  4055. (ada_evaluate_subexp): Use it.
  4056. 2021-03-08 Tom Tromey <tom@tromey.com>
  4057. * ada-lang.c (ada_equal_binop): New function.
  4058. (ada_evaluate_subexp): Use it.
  4059. 2021-03-08 Tom Tromey <tom@tromey.com>
  4060. * ada-lang.c (ada_mult_binop): New function.
  4061. (ada_evaluate_subexp): Use it.
  4062. 2021-03-08 Tom Tromey <tom@tromey.com>
  4063. * ada-lang.c (ada_abs): New function.
  4064. (ada_evaluate_subexp): Use it.
  4065. 2021-03-08 Tom Tromey <tom@tromey.com>
  4066. * ada-lang.c (ada_atr_size): New function.
  4067. (ada_evaluate_subexp): Use it.
  4068. 2021-03-08 Tom Tromey <tom@tromey.com>
  4069. * ada-lang.c (ada_atr_tag): New function.
  4070. (ada_evaluate_subexp): Use it.
  4071. 2021-03-08 Tom Tromey <tom@tromey.com>
  4072. * ada-lang.c (ada_unop_in_range): New function.
  4073. (ada_evaluate_subexp): Use it.
  4074. 2021-03-08 Tom Tromey <tom@tromey.com>
  4075. * ada-lang.c (ada_unop_neg): New function.
  4076. (ada_evaluate_subexp): Use it.
  4077. 2021-03-08 Tom Tromey <tom@tromey.com>
  4078. * ada-lang.c (eval_ternop_in_range): New function.
  4079. (ada_evaluate_subexp): Use it.
  4080. 2021-03-08 Tom Tromey <tom@tromey.com>
  4081. * opencl-lang.c (eval_opencl_assign): New function.
  4082. (evaluate_subexp_opencl): Use it.
  4083. 2021-03-08 Tom Tromey <tom@tromey.com>
  4084. * eval.c (eval_op_objc_msgcall): New function.
  4085. (evaluate_subexp_standard): Use it.
  4086. 2021-03-08 Tom Tromey <tom@tromey.com>
  4087. * eval.c (eval_binop_assign_modify): New function.
  4088. (evaluate_subexp_standard): Use it.
  4089. 2021-03-08 Tom Tromey <tom@tromey.com>
  4090. * m2-lang.c (eval_op_m2_subscript): New function.
  4091. (evaluate_subexp_modula2): Use it.
  4092. 2021-03-08 Tom Tromey <tom@tromey.com>
  4093. * m2-lang.c (eval_op_m2_high): New function.
  4094. (evaluate_subexp_modula2): Use it.
  4095. 2021-03-08 Tom Tromey <tom@tromey.com>
  4096. * eval.c (evaluate_subexp_for_address_base): New function.
  4097. (evaluate_subexp_for_address): Use it.
  4098. (evaluate_subexp_for_sizeof_base): New function.
  4099. (evaluate_subexp_for_sizeof): Use it.
  4100. 2021-03-08 Tom Tromey <tom@tromey.com>
  4101. * rust-lang.c (eval_op_rust_structop): New function.
  4102. (rust_evaluate_subexp): Use it.
  4103. 2021-03-08 Tom Tromey <tom@tromey.com>
  4104. * rust-lang.c (eval_op_rust_struct_anon): New function.
  4105. (rust_evaluate_subexp): Use it.
  4106. 2021-03-08 Tom Tromey <tom@tromey.com>
  4107. * rust-lang.c (eval_op_rust_array): New function.
  4108. (rust_evaluate_subexp): Use it.
  4109. 2021-03-08 Tom Tromey <tom@tromey.com>
  4110. * rust-lang.c (eval_op_rust_complement): New function.
  4111. (rust_evaluate_subexp): Use it.
  4112. 2021-03-08 Tom Tromey <tom@tromey.com>
  4113. * rust-lang.c (eval_op_rust_ind): New function.
  4114. (rust_evaluate_subexp): Use it.
  4115. 2021-03-08 Tom Tromey <tom@tromey.com>
  4116. * rust-lang.c (rust_subscript): Change parameters.
  4117. (rust_evaluate_subexp): Update.
  4118. 2021-03-08 Tom Tromey <tom@tromey.com>
  4119. * rust-lang.c (rust_range): Change parameters.
  4120. (rust_evaluate_subexp): Update.
  4121. 2021-03-08 Tom Tromey <tom@tromey.com>
  4122. * f-lang.c (eval_op_f_allocated): New function.
  4123. (evaluate_subexp_f): Use it.
  4124. 2021-03-08 Tom Tromey <tom@tromey.com>
  4125. * f-lang.c (fortran_require_array): New function.
  4126. (evaluate_subexp_f): Use it.
  4127. 2021-03-08 Tom Tromey <tom@tromey.com>
  4128. * f-lang.c (eval_op_f_kind): New function.
  4129. (evaluate_subexp_f): Use it.
  4130. 2021-03-08 Tom Tromey <tom@tromey.com>
  4131. * f-lang.c (eval_op_f_cmplx): New function.
  4132. (evaluate_subexp_f): Use it.
  4133. 2021-03-08 Tom Tromey <tom@tromey.com>
  4134. * f-lang.c (eval_op_f_modulo): New function.
  4135. (evaluate_subexp_f): Use it.
  4136. 2021-03-08 Tom Tromey <tom@tromey.com>
  4137. * f-lang.c (eval_op_f_floor): New function.
  4138. (evaluate_subexp_f): Use it.
  4139. 2021-03-08 Tom Tromey <tom@tromey.com>
  4140. * f-lang.c (eval_op_f_ceil): New function.
  4141. (evaluate_subexp_f): Use it.
  4142. 2021-03-08 Tom Tromey <tom@tromey.com>
  4143. * f-lang.c (eval_op_f_mod): New function.
  4144. (evaluate_subexp_f): Use it.
  4145. 2021-03-08 Tom Tromey <tom@tromey.com>
  4146. * f-lang.c (eval_op_f_abs): New function.
  4147. (evaluate_subexp_f): Use it.
  4148. 2021-03-08 Tom Tromey <tom@tromey.com>
  4149. * eval.c (eval_op_type): New function.
  4150. (evaluate_subexp_standard): Use it.
  4151. 2021-03-08 Tom Tromey <tom@tromey.com>
  4152. * eval.c (eval_op_postdec): New function.
  4153. (evaluate_subexp_standard): Use it.
  4154. 2021-03-08 Tom Tromey <tom@tromey.com>
  4155. * eval.c (eval_op_postinc): New function.
  4156. (evaluate_subexp_standard): Use it.
  4157. 2021-03-08 Tom Tromey <tom@tromey.com>
  4158. * eval.c (eval_op_predec): New file.
  4159. (evaluate_subexp_standard): Use it.
  4160. 2021-03-08 Tom Tromey <tom@tromey.com>
  4161. * eval.c (eval_op_preinc): New function.
  4162. (evaluate_subexp_standard): Use it.
  4163. 2021-03-08 Tom Tromey <tom@tromey.com>
  4164. * eval.c (eval_op_memval): New function.
  4165. (evaluate_subexp_standard): Use it.
  4166. 2021-03-08 Tom Tromey <tom@tromey.com>
  4167. * eval.c (eval_op_alignof): New function.
  4168. (evaluate_subexp_standard): Use it.
  4169. 2021-03-08 Tom Tromey <tom@tromey.com>
  4170. * eval.c (eval_op_ind): New function.
  4171. (evaluate_subexp_standard): Use it.
  4172. 2021-03-08 Tom Tromey <tom@tromey.com>
  4173. * eval.c (eval_op_lognot): New function.
  4174. (evaluate_subexp_standard): Use it.
  4175. 2021-03-08 Tom Tromey <tom@tromey.com>
  4176. * eval.c (eval_op_complement): New function.
  4177. (evaluate_subexp_standard): Use it.
  4178. 2021-03-08 Tom Tromey <tom@tromey.com>
  4179. * eval.c (eval_op_neg): New function.
  4180. (evaluate_subexp_standard): Use it.
  4181. 2021-03-08 Tom Tromey <tom@tromey.com>
  4182. * eval.c (eval_op_plus): New function.
  4183. (evaluate_subexp_standard): Use it.
  4184. 2021-03-08 Tom Tromey <tom@tromey.com>
  4185. * eval.c (eval_op_repeat): New function.
  4186. (evaluate_subexp_standard): Use it.
  4187. 2021-03-08 Tom Tromey <tom@tromey.com>
  4188. * eval.c (eval_op_leq): New function.
  4189. (evaluate_subexp_standard): Use it.
  4190. 2021-03-08 Tom Tromey <tom@tromey.com>
  4191. * eval.c (eval_op_geq): New function.
  4192. (evaluate_subexp_standard): Use it.
  4193. 2021-03-08 Tom Tromey <tom@tromey.com>
  4194. * eval.c (eval_op_gtr): New function.
  4195. (evaluate_subexp_standard): Use it.
  4196. 2021-03-08 Tom Tromey <tom@tromey.com>
  4197. * eval.c (eval_op_less): New function.
  4198. (evaluate_subexp_standard): Use it.
  4199. 2021-03-08 Tom Tromey <tom@tromey.com>
  4200. * eval.c (eval_op_notequal): New function.
  4201. (evaluate_subexp_standard): Use it.
  4202. 2021-03-08 Tom Tromey <tom@tromey.com>
  4203. * eval.c (eval_op_equal): New function.
  4204. (evaluate_subexp_standard): Use it.
  4205. 2021-03-08 Tom Tromey <tom@tromey.com>
  4206. * eval.c (eval_op_subscript): New function.
  4207. (evaluate_subexp_standard): Use it.
  4208. 2021-03-08 Tom Tromey <tom@tromey.com>
  4209. * eval.c (eval_op_binary): New function.
  4210. (evaluate_subexp_standard): Use it.
  4211. 2021-03-08 Tom Tromey <tom@tromey.com>
  4212. * eval.c (eval_op_sub): New function.
  4213. (evaluate_subexp_standard): Use it.
  4214. 2021-03-08 Tom Tromey <tom@tromey.com>
  4215. * eval.c (eval_op_add): New function.
  4216. (evaluate_subexp_standard): Use it.
  4217. 2021-03-08 Tom Tromey <tom@tromey.com>
  4218. * eval.c (eval_op_member): New function.
  4219. (evaluate_subexp_standard): Use it.
  4220. 2021-03-08 Tom Tromey <tom@tromey.com>
  4221. * eval.c (eval_op_structop_ptr): New function.
  4222. (evaluate_subexp_standard): Use it.
  4223. 2021-03-08 Tom Tromey <tom@tromey.com>
  4224. * eval.c (eval_op_structop_struct): New function.
  4225. (evaluate_subexp_standard): Use it.
  4226. 2021-03-08 Tom Tromey <tom@tromey.com>
  4227. * eval.c (eval_op_ternop): New function.
  4228. (evaluate_subexp_standard): Use it.
  4229. 2021-03-08 Tom Tromey <tom@tromey.com>
  4230. * eval.c (eval_op_concat): New function.
  4231. (evaluate_subexp_standard): Use it.
  4232. 2021-03-08 Tom Tromey <tom@tromey.com>
  4233. * eval.c (eval_op_objc_selector): New function.
  4234. (evaluate_subexp_standard): Use it.
  4235. 2021-03-08 Tom Tromey <tom@tromey.com>
  4236. * eval.c (eval_op_string): New function.
  4237. (evaluate_subexp_standard): Use it.
  4238. 2021-03-08 Tom Tromey <tom@tromey.com>
  4239. * eval.c (eval_op_register): New function.
  4240. (evaluate_subexp_standard): Use it.
  4241. 2021-03-08 Tom Tromey <tom@tromey.com>
  4242. * eval.c (eval_op_func_static_var): New function.
  4243. (evaluate_subexp_standard): Use it.
  4244. 2021-03-08 Tom Tromey <tom@tromey.com>
  4245. * eval.c (eval_op_var_msym_value): New function.
  4246. (evaluate_subexp_standard): Use it.
  4247. 2021-03-08 Tom Tromey <tom@tromey.com>
  4248. * eval.c (eval_op_var_entry_value): New function.
  4249. (evaluate_subexp_standard): Use it.
  4250. 2021-03-08 Tom Tromey <tom@tromey.com>
  4251. * eval.c (eval_op_scope): New function.
  4252. (evaluate_subexp_standard): Use it.
  4253. 2021-03-06 Chernov Sergey <klen_s@mail.ru>
  4254. PR gdb/27528:
  4255. * ada-lang.c (ada_fold_name): Use gdb::to_string.
  4256. 2021-03-06 Tom Tromey <tom@tromey.com>
  4257. * dwarf2/sect-names.h (dwarf2_elf_names): Declare.
  4258. * dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h.
  4259. * dwarf2/read.c (dwarf2_elf_names): No longer static.
  4260. (locate_dwz_sections, dwz_search_other_debugdirs)
  4261. (dwarf2_get_dwz_file): Move to dwz.c.
  4262. * dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from
  4263. read.h.
  4264. * dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs)
  4265. (dwarf2_get_dwz_file): Move from read.c.
  4266. 2021-03-06 Tom Tromey <tom@tromey.com>
  4267. * debuginfod-support.h: Include scoped_fd.h.
  4268. 2021-03-06 Tom Tromey <tom@tromey.com>
  4269. * dwarf2/read.h (dwarf2_get_dwz_file): Add 'require' parameter.
  4270. * dwarf2/read.c (dwarf2_get_dwz_file): Add 'require' parameter.
  4271. (get_abbrev_section_for_cu, read_attribute_value)
  4272. (get_debug_line_section): Update.
  4273. * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
  4274. 2021-03-06 Tom Tromey <tom@tromey.com>
  4275. * dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New
  4276. method.
  4277. * dwarf2/read.c (section_is_p): Remove.
  4278. (dwarf2_per_bfd::locate_sections)
  4279. (dwarf2_per_bfd::locate_sections, locate_dwz_sections)
  4280. (locate_v1_virtual_dwo_sections, dwarf2_locate_dwo_sections)
  4281. (dwarf2_locate_common_dwp_sections)
  4282. (dwarf2_locate_v2_dwp_sections, dwarf2_locate_v5_dwp_sections):
  4283. Update.
  4284. 2021-03-06 Tom Tromey <tom@tromey.com>
  4285. * xcoffread.c: Include sect-names.h.
  4286. * symfile.h (struct dwarf2_section_names, struct
  4287. dwarf2_debug_sections): Move to dwarf2/sect-names.h.
  4288. * dwarf2/sect-names.h: New file, from symfile.h.
  4289. * dwarf2/read.c: Include sect-names.h.
  4290. 2021-03-06 Tom Tromey <tom@tromey.com>
  4291. * dwarf2/read.c (read_attribute): Make 'abbrev' const.
  4292. * dwarf2/abbrev.c (abbrev_table::alloc_abbrev): Remove.
  4293. (abbrev_table::read): Update.
  4294. * dwarf2/abbrev.h (struct attr_abbrev): Move earlier.
  4295. (struct abbrev_info): Reformat.
  4296. <attrs>: Now an array.
  4297. (struct abbrev_table) <alloc_abbrev>: Remove.
  4298. 2021-03-06 Weimin Pan <weimin.pan@oracle.com>
  4299. * ctfread.c (ctf_psymtab_add_enums): New function.
  4300. (ctf_psymtab_type_cb): call ctf_psymtab_add_enums.
  4301. 2021-03-06 Weimin Pan <weimin.pan@oracle.com>
  4302. * ctfread.c (read_func_kind_type): Set up function arguments.
  4303. 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
  4304. Andrew Burgess <andrew.burgess@embecosm.com>
  4305. * riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h'
  4306. includes.
  4307. (riscv_csrset): New static global.
  4308. (riscv_update_csrmap): New function.
  4309. (riscv_iterate_over_regset_sections): Process CSRs.
  4310. 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
  4311. * riscv-tdep.c (riscv_feature_name_csr): Define.
  4312. (riscv_feature_name_cpu): Define.
  4313. (riscv_feature_name_fpu): Define.
  4314. (riscv_feature_name_virtual): Define.
  4315. (riscv_xreg_feature): Use riscv_feature_name_cpu.
  4316. (riscv_freg_feature): Use riscv_feature_name_fpu.
  4317. (riscv_virtual_feature): Use riscv_feature_name_virtual.
  4318. (riscv_csr_feature): Use riscv_feature_name_csr.
  4319. * riscv-tdep.h (riscv_feature_name_csr): Declare.
  4320. 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
  4321. Craig Blackmore <craig.blackmore@embecosm.com>
  4322. * Makefile.in (ALL_TARGET_OBS): Add riscv-none-tdep.o.
  4323. (ALLDEPFILES): Add riscv-none-tdep.c.
  4324. * configure: Regenerate.
  4325. * configure.ac (CONFIG_OBS): Add elf-none-tdep.o when BFD has ELF
  4326. support.
  4327. * configure.tgt (riscv*-*-*): Include riscv-none-tdep.c.
  4328. * elf-none-tdep.c: New file.
  4329. * elf-none-tdep.h: New file.
  4330. * riscv-none-tdep.c: New file.
  4331. 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
  4332. Andrew Burgess <andrew.burgess@embecosm.com>
  4333. * corelow.c: Add 'xml-tdesc.h' include.
  4334. (core_target::read_description): Load the target description from
  4335. the core file when possible.
  4336. * fbsd-tdep.c (fbsd_make_corefile_notes): Add target description
  4337. note.
  4338. * gcore-elf.c: Add 'gdbsupport/tdesc.h' include.
  4339. (gcore_elf_make_tdesc_note): New function.
  4340. * gcore-elf.h (gcore_elf_make_tdesc_note): Declare.
  4341. * linux-tdep.c (linux_make_corefile_notes): Add target description
  4342. note.
  4343. 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
  4344. * Makefile.in (SFILES): Add gcore-elf.c.
  4345. (HFILES_NO_SRCDIR): Add gcore-elf.h
  4346. * configure: Regenerate.
  4347. * configure.ac: Add gcore-elf.o to CONFIG_OBS if we have ELF
  4348. support.
  4349. * fbsd-tdep.c: Add 'gcore-elf.h' include.
  4350. (struct fbsd_collect_regset_section_cb_data): Delete.
  4351. (fbsd_collect_regset_section_cb): Delete.
  4352. (fbsd_collect_thread_registers): Delete.
  4353. (struct fbsd_corefile_thread_data): Delete.
  4354. (fbsd_corefile_thread): Delete.
  4355. (fbsd_make_corefile_notes): Call
  4356. gcore_elf_build_thread_register_notes instead of the now deleted
  4357. FreeBSD code.
  4358. * gcore-elf.c: New file, the content was moved here from
  4359. linux-tdep.c, functions were renamed and given minor cleanup.
  4360. * gcore-elf.h: New file.
  4361. * gcore.c (gcore_find_signalled_thread): Moved here from
  4362. linux-tdep.c and given a new name. Minor cleanups.
  4363. * gcore.h (gcore_find_signalled_thread): Declare.
  4364. * linux-tdep.c: Add 'gcore.h' and 'gcore-elf.h' includes.
  4365. (struct linux_collect_regset_section_cb_data): Delete.
  4366. (linux_collect_regset_section_cb): Delete.
  4367. (linux_collect_thread_registers): Delete.
  4368. (linux_corefile_thread): Call
  4369. gcore_elf_build_thread_register_notes.
  4370. (find_signalled_thread): Delete.
  4371. (linux_make_corefile_notes): Call gcore_find_signalled_thread.
  4372. 2021-03-04 Simon Marchi <simon.marchi@polymtl.ca>
  4373. PR gdb/27147
  4374. * sparc-nat.h (sparc_fetch_inferior_registers): Add
  4375. process_stratum_target parameter,
  4376. sparc_store_inferior_registers): update callers.
  4377. * sparc-nat.c (sparc_fetch_inferior_registers,
  4378. sparc_store_inferior_registers): Add process_stratum_target
  4379. parameter. Switch current thread before calling
  4380. sparc_supply_gregset / sparc_collect_rwindow.
  4381. (sparc_store_inferior_registers): Likewise.
  4382. * sparc-obsd-tdep.c (sparc32obsd_supply_uthread): Add assertion.
  4383. (sparc32obsd_collect_uthread): Likewise.
  4384. * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
  4385. Add assertion.
  4386. * sparc64-obsd-tdep.c (sparc64obsd_collect_uthread,
  4387. sparc64obsd_supply_uthread): Add assertion.
  4388. 2021-03-04 Tom Tromey <tromey@adacore.com>
  4389. * ada-lang.c (struct match_data) <found_sym>: Now bool.
  4390. (aux_add_nonlocal_symbols): Update.
  4391. (ada_add_block_symbols): Change "found_sym" to bool.
  4392. 2021-03-03 Tom Tromey <tromey@adacore.com>
  4393. * ada-lang.c (ada_resolve_function): Update comment.
  4394. (is_nonfunction, add_symbols_from_enclosing_procs)
  4395. (remove_extra_symbols): Likewise.
  4396. (struct match_data): Add constructor, initializers.
  4397. (add_nonlocal_symbols): Remove memset.
  4398. (aux_add_nonlocal_symbols): Update comment.
  4399. (ada_add_block_renamings, add_nonlocal_symbols)
  4400. (ada_add_all_symbols): Likewise.
  4401. * ada-exp.y (write_var_or_type): Clean up trailing whitespace.
  4402. 2021-03-02 Tom Tromey <tromey@adacore.com>
  4403. * ada-lang.c (cast_from_gnat_encoded_fixed_point_type)
  4404. (cast_to_gnat_encoded_fixed_point_type): Remove.
  4405. (ada_value_cast, ada_evaluate_subexp): Update.
  4406. (gnat_encoded_fixed_point_type_info)
  4407. (ada_is_gnat_encoded_fixed_point_type)
  4408. (gnat_encoded_fixed_point_delta)
  4409. (gnat_encoded_fixed_point_scaling_factor): Remove.
  4410. * ada-lang.h (ada_is_gnat_encoded_fixed_point_type)
  4411. (gnat_encoded_fixed_point_delta)
  4412. (gnat_encoded_fixed_point_scaling_factor): Don't declare.
  4413. * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Remove.
  4414. (ada_print_type): Update.
  4415. * ada-valprint.c (ada_value_print_num): Update.
  4416. * dwarf2/read.c (ada_get_gnat_encoded_number)
  4417. (ada_get_gnat_encoded_ratio): New functions.
  4418. (finish_fixed_point_type): Use them. Add parameters.
  4419. (GNAT_FIXED_POINT_SUFFIX): New define.
  4420. (gnat_encoded_fixed_point_type_info): New function.
  4421. (read_base_type): Handle gnat encodings.
  4422. 2021-03-02 Tom Tromey <tromey@adacore.com>
  4423. * ada-lang.c (ada_fold_name, ada_variant_discrim_name)
  4424. (ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use
  4425. std::string.
  4426. (GROW_VECT): Remove.
  4427. (grow_vect): Remove.
  4428. 2021-03-02 Tom Tromey <tromey@adacore.com>
  4429. * ada-lang.h (ada_lookup_symbol_list): Return a vector.
  4430. * ada-lang.c (resolve_subexp): Update.
  4431. (ada_resolve_function): Accept a vector.
  4432. (is_nonfunction, add_defn_to_vec)
  4433. (add_symbols_from_enclosing_procs): Likewise.
  4434. (num_defns_collected, defns_collected): Remove.
  4435. (remove_extra_symbols): Return a vector.
  4436. (remove_irrelevant_renamings): Return void.
  4437. (ada_add_local_symbols): Accept a vector.
  4438. (struct match_data) <obstackp>: Remove.
  4439. <resultp>: New member.
  4440. (aux_add_nonlocal_symbols): Update.
  4441. (ada_add_block_renamings, add_nonlocal_symbols)
  4442. (ada_add_all_symbols): Accept a vector.
  4443. (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Return a
  4444. vector.
  4445. (ada_lookup_symbol): Update.
  4446. (ada_add_block_symbols): Accept a vector.
  4447. (get_var_value, iterate_over_symbols): Update.
  4448. * ada-exp.y (block_lookup, write_var_or_type, write_name_assoc):
  4449. Update.
  4450. 2021-03-02 Tom Tromey <tromey@adacore.com>
  4451. * ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom.
  4452. 2021-03-02 Tom Tromey <tromey@adacore.com>
  4453. * ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an
  4454. auto_obstack.
  4455. <root>: Initialize.
  4456. (ada_pspace_data): Remove destructor.
  4457. <sym_cache>: Now a unique_ptr.
  4458. (ada_init_symbol_cache, ada_free_symbol_cache): Remove.
  4459. (ada_get_symbol_cache): Use 'new'.
  4460. (ada_clear_symbol_cache): Rewrite.
  4461. 2021-03-02 Tom Tromey <tromey@adacore.com>
  4462. * ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf
  4463. is null.
  4464. 2021-02-27 Lancelot Six <lsix@lancelotsix.com>
  4465. PR gdb/27393
  4466. * source.c (add_path): Skip empty dirnames.
  4467. 2021-02-25 Kevin Buettner <kevinb@redhat.com>
  4468. * nat/aarch64-sve-linux-ptrace.h: Add comment regarding
  4469. include order for <sys/ptrace.h> and <asm/ptrace.h>.
  4470. 2021-02-25 Simon Marchi <simon.marchi@polymtl.ca>
  4471. PR gdb/26861
  4472. * target.c (target_mourn_inferior): Only compare pids in
  4473. target_mourn_inferior.
  4474. 2021-02-25 Jan Matyas <jmatyas@codasip.com>
  4475. PR gdb/26819
  4476. * remote.c (remote_target::start_remote): Ensure the single
  4477. thread, automatically added for remote targets without the
  4478. concept of threading, is initially in set to the "resumed"
  4479. state.
  4480. * remote.c (remote_target::add_current_inferior_and_thread):
  4481. Add return value - return the main thread.
  4482. 2021-02-25 Jan Vrany <jan.vrany@labware.com>
  4483. * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output.
  4484. (mi_tsv_created): Likewise.
  4485. (mi_tsv_deleted): Likewise.
  4486. 2021-02-25 Tom de Vries <tdevries@suse.de>
  4487. PR symtab/27354
  4488. * dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as
  4489. section_kind for &dwo_file->sections.info.
  4490. 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
  4491. PR fortran/26155
  4492. * f-lang.c (fortran_argument_convert): Delete declaration.
  4493. (fortran_prepare_argument): New function.
  4494. (evaluate_subexp_f): Move logic to new function
  4495. fortran_prepare_argument.
  4496. 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
  4497. * f-exp.y (f77_keywords): Add 'associated'.
  4498. * f-lang.c (fortran_associated): New function.
  4499. (evaluate_subexp_f): Handle FORTRAN_ASSOCIATED.
  4500. (operator_length_f): Likewise.
  4501. (print_unop_or_binop_subexp_f): New function.
  4502. (print_subexp_f): Make use of print_unop_or_binop_subexp_f for
  4503. FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND.
  4504. (dump_subexp_body_f): Handle FORTRAN_ASSOCIATED.
  4505. (operator_check_f): Likewise.
  4506. * std-operator.def: Add FORTRAN_ASSOCIATED.
  4507. 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
  4508. * f-exp.y (fortran_operators): Add ".xor.".
  4509. 2021-02-24 Tom de Vries <tdevries@suse.de>
  4510. PR symtab/27336
  4511. * dwarf2/attribute.c (attribute::form_is_signed): New function
  4512. factored out of ...
  4513. * dwarf2/attribute.h (attribute::as_signed): ... here.
  4514. (attribute::is_nonnegative, attribute::as_nonnegative): New function.
  4515. (attribute::form_is_signed): Declare.
  4516. * dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative
  4517. for DW_AT_decl_file.
  4518. 2021-02-24 Kevin Buettner <kevinb@redhat.com>
  4519. * nat/aarch64-linux-hw-point.c: Add comment regarding include
  4520. order for <sys/ptrace.h> and <asm/ptrace.h>.
  4521. 2021-02-24 Kevin Buettner <kevinb@redhat.com>
  4522. * nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after
  4523. <sys/ptrace.h>.
  4524. 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
  4525. * exec.c (set_section_command): Move variable declarations into
  4526. the function body, and use std::string instead of a fixed size
  4527. buffer.
  4528. 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
  4529. * exec.c (exec_target::get_section_table): Delete member function.
  4530. (section_table_read_available_memory): Use current_top_target, not
  4531. just the exec_ops target.
  4532. * target-delegates.c: Regenerate.
  4533. * target.c (default_get_section_table): New function.
  4534. * target.h (target_ops::get_section_table): Change default
  4535. behaviour to call default_get_section_table.
  4536. (default_get_section_table): Declare.
  4537. 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
  4538. * exec.c (exec_target::close): Call new clear_target_sections
  4539. function.
  4540. (program_space::add_target_sections): Update name of member
  4541. variable.
  4542. (program_space::add_target_sections): Update name of member
  4543. variable.
  4544. (program_space::remove_target_sections): Likewise.
  4545. (exec_one_fork): Use new target_sections member function.
  4546. (exec_target::get_section_table): Likewise.
  4547. (exec_target::files_info): Likewise.
  4548. (set_section_command): Likewise.
  4549. (exec_set_section_address): Likewise.
  4550. (exec_target::has_memory): Use new target_sections member
  4551. function.
  4552. * progspace.h (program_space::clear_target_sections): New member
  4553. function.
  4554. (program_space::target_sections): Rename member variable to
  4555. m_target_sections, replace with a new member function.
  4556. (program_space::m_target_sections): New member variable.
  4557. * solib-dsbt.c (scan_dyntag): Use new member function.
  4558. * solib-svr4.c (scan_dyntag): Likewise.
  4559. 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
  4560. * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
  4561. return type const.
  4562. * gdb/exec.c (struct exec_target) <get_section_table>: Likewise.
  4563. (section_table_read_available_memory): Make local const.
  4564. (exec_target::xfer_partial): Make local const.
  4565. (print_section_info): Make parameter const.
  4566. * gdb/exec.h (print_section_info): Likewise.
  4567. * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local
  4568. const.
  4569. * gdb/record-btrace.c (record_btrace_target::xfer_partial):
  4570. Likewise.
  4571. * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
  4572. Likewise.
  4573. * gdb/s390-tdep.c (s390_load): Likewise.
  4574. * gdb/solib-dsbt.c (scan_dyntag): Likewise.
  4575. * gdb/solib-svr4.c (scan_dyntag): Likewise.
  4576. * gdb/target-debug.h (target_debug_print_target_section_table_p):
  4577. Rename to...
  4578. (target_debug_print_const_target_section_table_p): ...this.
  4579. * gdb/target-delegates.c: Regenerate.
  4580. * gdb/target.c (target_get_section_table): Make return type const.
  4581. (target_section_by_addr): Likewise. Also make some locals const.
  4582. (memory_xfer_partial_1): Make some locals const.
  4583. * gdb/target.h (struct target_ops) <get_section_table>: Make
  4584. return type const.
  4585. (target_section_by_addr): Likewise.
  4586. (target_get_section_table): Likewise.
  4587. 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
  4588. * NEWS: Mention new 'maint info target-sections' command.
  4589. * maint.c (maintenance_info_target_sections): New function.
  4590. (_initialize_maint_cmds): Register new command.
  4591. 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
  4592. * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to...
  4593. (riscv_features_from_bfd): ...this. Change parameter type to
  4594. 'bfd*', and update as required.
  4595. (riscv_find_default_target_description): Update call to
  4596. riscv_features_from_bfd. Select a default xlen based on
  4597. info.bfd_arch_info.
  4598. (riscv_gdbarch_init): Update call to riscv_features_from_bfd.
  4599. 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
  4600. * eval.c (evaluate_subexp_standard): Call value_ind for points to
  4601. dynamic types in UNOP_IND.
  4602. 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
  4603. PR gdb/26828
  4604. * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
  4605. Instantiate queue.
  4606. (~dwarf2_queue_guard): Clear queue.
  4607. (queue_comp_unit): Assert that queue is
  4608. instantiated.
  4609. (process_queue): Adjust.
  4610. * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
  4611. 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
  4612. PR gdb/26828
  4613. * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded
  4614. to decide whether or not to enqueue it for expansion.
  4615. (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs
  4616. after calling maybe_queue_comp_unit.
  4617. 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
  4618. * linux-nat.c (linux_nat_filter_event): Return void.
  4619. 2021-02-22 Tom Tromey <tromey@adacore.com>
  4620. * solib-svr4.c (enable_break): Update.
  4621. * bfd-target.c (class target_bfd) <target_bfd>: Change parameter
  4622. type.
  4623. (target_bfd_reopen): Change parameter type.
  4624. * bfd-target.h (target_bfd_reopen): Change parameter type.
  4625. 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
  4626. * thread.c (add_thread_silent): Add assert.
  4627. (find_thread_ptid): Add assert.
  4628. 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
  4629. PR gdb/27435
  4630. * inf-ptrace.c (struct target_unpusher): Move to target.h.
  4631. (target_unpush_up): Likewise.
  4632. * procfs.c (procfs_target::attach): Push target early. Use
  4633. target_unpush_up to unpush target in case of error.
  4634. * target.h (struct target_unpusher): Move here.
  4635. (target_unpush_up): Likewise.
  4636. 2021-02-19 Kevin Buettner <kevinb@redhat.com>
  4637. * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
  4638. (which in turn includes <gnulib/config.h>) before include
  4639. of <signal.h>.
  4640. 2021-02-19 Nelson Chu <nelson.chu@sifive.com>
  4641. PR 27158
  4642. * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
  4643. (decode_j_type_insn): Likewise.
  4644. (decode_cj_type_insn): Likewise.
  4645. (decode_b_type_insn): Likewise.
  4646. (decode): Likewise.
  4647. 2021-02-18 Tom Tromey <tom@tromey.com>
  4648. * expression.h (struct expression) <evaluate>: Declare method.
  4649. * eval.c (evaluate_subexp): Simplify.
  4650. (expression::evaluate): New method.
  4651. (evaluate_expression, evaluate_type): Use expression::evaluate.
  4652. 2021-02-17 Kevin Buettner <kevinb@redhat.com>
  4653. * ada-lang.c (ada_fold_name): Check for non-empty string prior
  4654. to accessing it.
  4655. (ada_lookup_name_info): Likewise.
  4656. 2021-02-13 Mike Frysinger <vapier@gentoo.org>
  4657. * aclocal.m4: Regenerate.
  4658. 2021-02-12 Tom de Vries <tdevries@suse.de>
  4659. PR threads/26228
  4660. * linux-nat.c (lin_thread_get_thread_signals): Remove.
  4661. (lin_thread_signals): New static var.
  4662. (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
  4663. New function.
  4664. * linux-nat.h (lin_thread_get_thread_signals): Remove.
  4665. (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
  4666. Declare.
  4667. * linux-thread-db.c (check_thread_signals): Use
  4668. lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
  4669. 2021-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
  4670. * f-exp.y (f77_keywords): Add allocated.
  4671. * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
  4672. (operator_length_f): Likewise.
  4673. (print_subexp_f): Likewise.
  4674. (dump_subexp_body_f): Likewise.
  4675. (operator_check_f): Likewise.
  4676. * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.
  4677. 2021-02-11 Tom de Vries <tdevries@suse.de>
  4678. PR symtab/27353
  4679. * dwarf2/attribute.c (attribute::form_requires_reprocessing):
  4680. Return true for DW_FORM_strx.
  4681. 2021-02-11 Tom Tromey <tromey@adacore.com>
  4682. PR gdb/27383:
  4683. * parse.c (write_exp_symbol_reference): Write sym.block.
  4684. 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
  4685. * NEWS: Mention changes to 'maint info sections'.
  4686. * maint.c (match_substring): Return a bool, fix whitespace issue.
  4687. (struct single_bfd_flag_info): New struct.
  4688. (bfd_flag_info): New static global.
  4689. (match_bfd_flags): Return a bool, use bfd_flag_info.
  4690. (print_bfd_flags): Use bfd_flag_info.
  4691. (maint_print_section_info): Delete trailing whitespace.
  4692. (struct maint_info_sections_opts): New struct.
  4693. (maint_info_sections_option_defs): New static global.
  4694. (maint_info_sections_completer): New function.
  4695. (maintenance_info_sections): Use option parsing mechanism.
  4696. (_initialize_maint_cmds): Update command help text for 'maint info
  4697. sections' and register a command completer.
  4698. 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
  4699. * maint.c (print_bfd_section_info_maybe_relocated): Delete,
  4700. functionality merged into...
  4701. (maint_print_all_sections): ...this new function.
  4702. (maintenance_info_sections): Make use of maint_print_all_sections,
  4703. allow all objects to be printed even where there's no executable.
  4704. 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
  4705. * breakpoint.c (resolve_sal_pc): Make use of
  4706. bound_minimal_symbol::obj_section.
  4707. * maint.c (maintenance_translate_address): Likewise.
  4708. * minsyms.c (minimal_symbol_upper_bound): Likewise.
  4709. * minsyms.h (struct bound_minimal_symbol) <obj_section>: New
  4710. member function.
  4711. * printcmd.c (info_address_command): Make use of
  4712. bound_minimal_symbol::obj_section.
  4713. 2021-02-11 Alan Modra <amodra@gmail.com>
  4714. * arm-symbian-tdep.c: Delete.
  4715. * NEWS: Mention arm-symbian removal.
  4716. * Makefile.in: Remove arm-symbian-tdep entries.
  4717. * configure.tgt: Remove arm*-*-symbianelf*.
  4718. * doc/gdb.texinfo: Remove mention of SymbianOS.
  4719. * osabi.c (gdb_osabi_names): Remove "Symbian".
  4720. * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN.
  4721. * testsuite/gdb.base/ending-run.exp: Remove E32Main handling.
  4722. * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf*
  4723. handling.
  4724. * testsuite/gdb.base/dup-sect.exp: Likewise.
  4725. * testsuite/gdb.base/long_long.exp: Likewise.
  4726. * testsuite/gdb.base/solib-weak.exp: Likewise.
  4727. * testsuite/gdb.guile/scm-section-script.exp: Likewise.
  4728. * testsuite/gdb.python/py-section-script.exp: Likewise.
  4729. * testsuite/lib/dwarf.exp: Likewise.
  4730. * testsuite/lib/gdb.exp: Likewise.
  4731. 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
  4732. * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token.
  4733. (exp): New pattern using UNOP_OR_BINOP_INTRINSIC.
  4734. (one_or_two_args): New pattern.
  4735. (f77_keywords): Add lbound and ubound.
  4736. * f-lang.c (fortran_bounds_all_dims): New function.
  4737. (fortran_bounds_for_dimension): New function.
  4738. (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND.
  4739. (operator_length_f): Likewise.
  4740. (print_subexp_f): Likewise.
  4741. (dump_subexp_body_f): Likewise.
  4742. (operator_check_f): Likewise.
  4743. * std-operator.def (FORTRAN_LBOUND): Define.
  4744. (FORTRAN_UBOUND): Define.
  4745. 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
  4746. * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index
  4747. and set_section_index member functions where appropriate.
  4748. * coffread.c (coff_symtab_read): Likewise.
  4749. (process_coff_symbol): Likewise.
  4750. * ctfread.c (set_symbol_address): Likewise.
  4751. * dwarf2/read.c (add_partial_symbol): Likewise.
  4752. (var_decode_location): Likewise.
  4753. * language.c: Likewise.
  4754. * minsyms.c (minimal_symbol_reader::record_full): Likewise.
  4755. (compact_minimal_symbols): Likewise.
  4756. (minimal_symbol_upper_bound): Likewise.
  4757. * objfiles.c (relocate_one_symbol): Likewise.
  4758. * psympriv.h (partial_symbol::obj_section): Likewise.
  4759. (partial_symbol::address): Likewise.
  4760. * psymtab.c (partial_symtab::add_psymbol): Likewise.
  4761. * stabsread.c (scan_file_globals): Likewise.
  4762. * symmisc.c (dump_msymbols): Likewise.
  4763. * symtab.c (general_symbol_info::obj_section): Likewise.
  4764. (fixup_section): Likewise.
  4765. (get_msymbol_address): Likewise.
  4766. * symtab.h (general_symbol_info::section): Rename to...
  4767. (general_symbol_info::m_section): ...this.
  4768. (general_symbol_info::set_section_index): New member function.
  4769. (general_symbol_info::section_index): Likewise.
  4770. (SYMBOL_SECTION): Delete.
  4771. (MSYMBOL_VALUE_ADDRESS): Make use of section_index and
  4772. set_section_index member functions where appropriate.
  4773. (MSYMBOL_SECTION): Delete.
  4774. (symbol::symbol): Update to initialize 'm_section'.
  4775. * xcoffread.c (read_xcoff_symtab): Make use of set_section_index.
  4776. (process_xcoff_symbol): Likewise.
  4777. 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
  4778. * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and
  4779. MSYMBOL_OBJ_SECTION.
  4780. * findvar.c (language_defn::read_var_value): Likewise.
  4781. * infcmd.c (jump_command): Likewise.
  4782. * linespec.c (minsym_found): Likewise.
  4783. * maint.c (maintenance_translate_address): Likewise.
  4784. * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
  4785. (minimal_symbol_upper_bound): Likewise.
  4786. * parse.c (find_minsym_type_and_address): Likewise.
  4787. (operator_check_standard): Likewise.
  4788. * printcmd.c (info_address_command): Likewise.
  4789. * symmisc.c (dump_msymbols): Likewise.
  4790. (print_symbol): Likewise.
  4791. * symtab.c (general_symbol_info::obj_section): Define new
  4792. function.
  4793. (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION.
  4794. (find_pc_sect_compunit_symtab): Likewise.
  4795. (find_function_start_sal): Likewise.
  4796. (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and
  4797. MSYMBOL_OBJ_SECTION.
  4798. * symtab.h (struct general_symbol_info) <obj_section>: Declare new
  4799. function.
  4800. (SYMBOL_OBJ_SECTION): Delete.
  4801. (MSYMBOL_OBJ_SECTION): Delete.
  4802. 2021-02-09 Tom Tromey <tom@tromey.com>
  4803. * stap-probe.c (stap_parse_argument_conditionally): Fix typo.
  4804. 2021-02-09 Tom de Vries <tdevries@suse.de>
  4805. PR symtab/27341
  4806. * dwarf2/read.c (read_array_type): Return NULL when not being able to
  4807. construct an array type. Add assert to ensure that element_type is
  4808. not being modified.
  4809. 2021-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
  4810. * gcore.c (struct gcore_collect_regset_section_cb_data): Delete.
  4811. (gcore_collect_regset_section_cb): Delete.
  4812. (gcore_collect_thread_registers): Delete.
  4813. (gcore_build_thread_register_notes): Delete.
  4814. (gcore_find_signalled_thread): Delete.
  4815. * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete
  4816. 'gdbarch' and 'thread_info' declarations.
  4817. (gcore_build_thread_register_notes): Delete declaration.
  4818. (gcore_find_signalled_thread): Likewise.
  4819. * fbsd-tdep.c: Remove 'gcore.h' include.
  4820. (struct fbsd_collect_regset_section_cb_data): New struct.
  4821. (fbsd_collect_regset_section_cb): New function.
  4822. (fbsd_collect_thread_registers): New function.
  4823. (struct fbsd_corefile_thread_data): New struct.
  4824. (fbsd_corefile_thread): New function.
  4825. (fbsd_make_corefile_notes): Call FreeBSD specific code.
  4826. * linux-tdep.c: Remove 'gcore.h' include.
  4827. (struct linux_collect_regset_section_cb_data): New struct.
  4828. (linux_collect_regset_section_cb): New function.
  4829. (linux_collect_thread_registers): New function.
  4830. (linux_corefile_thread): Call Linux specific code.
  4831. (find_signalled_thread): New function.
  4832. (linux_make_corefile_notes): Call find_signalled_thread.
  4833. 2021-02-09 Tom Tromey <tromey@adacore.com>
  4834. * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
  4835. not_lval value.
  4836. * value.c (value_contents_copy_raw): Now static.
  4837. * value.h (value_contents_copy_raw): Don't declare.
  4838. 2021-02-09 Tom Tromey <tromey@adacore.com>
  4839. * gdbtypes.c (resolve_dynamic_struct): Handle structure with no
  4840. fields.
  4841. 2021-02-08 Shahab Vahedi <shahab@synopsys.com>
  4842. PR tdep/27369
  4843. * arc-linux-tdep.c (handle_atomic_sequence): New.
  4844. (arc_linux_software_single_step): Call handle_atomic_sequence().
  4845. 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
  4846. * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
  4847. function.
  4848. (REQUIRE_WINDOW): Call is_valid member function.
  4849. (REQUIRE_WINDOW_FOR_SETTER): New define.
  4850. (gdbpy_tui_is_valid): Call is_valid member function.
  4851. (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
  4852. * tui/tui-data.h (struct tui_win_info) <is_visible>: Check
  4853. tui_active too.
  4854. * tui/tui-layout.c (tui_apply_current_layout): Add an assert.
  4855. * tui/tui.c (tui_enable): Move setting of tui_active earlier in
  4856. the function.
  4857. 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
  4858. * python/py-tui.c (gdbpy_tui_set_title): Check that the new value
  4859. for the title is not nullptr.
  4860. 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
  4861. * tui-layout.c (saved_tui_windows): Delete.
  4862. (tui_apply_current_layout): Don't make use of saved_tui_windows,
  4863. call new get_windows member function instead.
  4864. (tui_get_window_by_name): Check in tui_windows.
  4865. (tui_layout_window::apply): Don't add to tui_windows.
  4866. * tui-layout.h (tui_layout_base::get_windows): New member function.
  4867. (tui_layout_window::get_windows): Likewise.
  4868. (tui_layout_split::get_windows): Likewise.
  4869. 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
  4870. * tui/tui-layout.c (tui_apply_current_layout): Restore the delete
  4871. of the window objects.
  4872. 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
  4873. * python/python.c (gdbpy_print_stack): Reformat an error message.
  4874. 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
  4875. * tui/tui-interp.c (tui_command_line_handler): New function.
  4876. (tui_interp::resume): Register tui_command_line_handler as the
  4877. input_handler.
  4878. * tui/tui-io.c (tui_inject_newline_into_command_window): New
  4879. function.
  4880. (tui_getc_1): Delete handling of '\n' and '\r'.
  4881. * tui-io.h (tui_inject_newline_into_command_window): Declare.
  4882. 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
  4883. * tui/tui-regs.c (tui_data_window::display_registers_from):
  4884. Mark invisible register sub windows.
  4885. (tui_data_window::check_register_values): Ignore invisible
  4886. register sub windows.
  4887. 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
  4888. * tui/tui-regs.c (tui_data_item_window::rerender): Don't call
  4889. n_spaces with a negative value.
  4890. 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
  4891. * tui/tui-regs.c (tui_data_window::display_registers_from):
  4892. Add refresh_window call.
  4893. 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
  4894. * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
  4895. 2021-02-05 Simon Marchi <simon.marchi@polymtl.ca>
  4896. * symmisc.c (std_in, std_out, std_err): Remove.
  4897. (_initialize_symmisc): Don't set std_in, std_out and std_err.
  4898. 2021-02-05 Tom de Vries <tdevries@suse.de>
  4899. PR breakpoints/27330
  4900. * breakpoint.c (create_exception_master_breakpoint): Handle case that
  4901. glibc object file has debug info.
  4902. 2021-02-05 Tom de Vries <tdevries@suse.de>
  4903. PR symtab/27333
  4904. * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
  4905. 2021-02-05 Tom de Vries <tdevries@suse.de>
  4906. PR breakpoints/27313
  4907. * break-catch-syscall.c (catch_syscall_split_args): Reject negative
  4908. syscall numbers.
  4909. 2021-02-05 Tom Tromey <tom@tromey.com>
  4910. * compile/compile-c-support.c (get_compile_context)
  4911. (c_get_compile_context, cplus_get_compile_context): Change return
  4912. type.
  4913. * language.c (language_defn::get_compile_instance): New method.
  4914. * language.h (language_defn::get_compile_instance): Change return
  4915. type. No longer inline.
  4916. * c-lang.c (c_language::get_compile_instance): Change return type.
  4917. (cplus_language::get_compile_instance): Change return type.
  4918. * c-lang.h (c_get_compile_context, cplus_get_compile_context):
  4919. Change return type.
  4920. * compile/compile.c (compile_to_object): Update.
  4921. 2021-02-05 Tom Tromey <tom@tromey.com>
  4922. * parser-defs.h (write_exp_symbol_reference): Declare.
  4923. * parse.c (write_exp_symbol_reference): New function.
  4924. * p-exp.y (variable): Use write_exp_symbol_reference.
  4925. * m2-exp.y (variable): Use write_exp_symbol_reference.
  4926. * f-exp.y (variable): Use write_exp_symbol_reference.
  4927. * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
  4928. * c-exp.y (variable): Use write_exp_symbol_reference.
  4929. 2021-02-05 Tom de Vries <tdevries@suse.de>
  4930. PR exp/27265
  4931. * valarith.c (complex_binop): Throw an error if complex type can't
  4932. be created.
  4933. 2021-02-05 Tom de Vries <tdevries@suse.de>
  4934. PR symtab/27307
  4935. * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
  4936. return.
  4937. 2021-02-05 Tom de Vries <tdevries@suse.de>
  4938. * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
  4939. 2021-02-04 Mike Frysinger <vapier@gentoo.org>
  4940. * configure.tgt (riscv*-*-*): Set gdb_sim.
  4941. 2021-02-04 Simon Marchi <simon.marchi@polymtl.ca>
  4942. * target.c (target_is_non_stop_p): Return bool.
  4943. * target.h (target_is_non_stop_p): Return bool.
  4944. 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
  4945. * record-full.c (record_full_async_inferior_event_handler):
  4946. Don't clear async event handler.
  4947. (record_full_base_target::wait): Clear async event handler at
  4948. beginning.
  4949. 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
  4950. * record-btrace.c (record_btrace_handle_async_inferior_event):
  4951. Don't clear async event handler.
  4952. (record_btrace_target::wait): Clear async event handler at
  4953. beginning.
  4954. 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
  4955. * remote.c (remote_target::wait): Clear async event handler at
  4956. beginning, mark if needed at the end.
  4957. (remote_async_inferior_event_handler): Don't set or clear async
  4958. event handler.
  4959. 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
  4960. * async-event.h (async_event_handler_func): Add documentation.
  4961. * async-event.c (check_async_event_handlers): Don't clear
  4962. async_event_handler ready flag.
  4963. * infrun.c (infrun_async_inferior_event_handler): Clear ready
  4964. flag.
  4965. * record-btrace.c (record_btrace_handle_async_inferior_event):
  4966. Likewise.
  4967. * record-full.c (record_full_async_inferior_event_handler):
  4968. Likewise.
  4969. * remote-notif.c (remote_async_get_pending_events_handler):
  4970. Likewise.
  4971. * remote.c (remote_async_inferior_event_handler): Likewise.
  4972. 2021-02-03 Simon Marchi <simon.marchi@polymtl.ca>
  4973. * infrun.c (handle_inferior_event): Move stop_soon variable to
  4974. inner scope.
  4975. 2021-02-03 Pedro Alves <pedro@palves.net>
  4976. * infcmd.c (detach_command): Hold strong reference to target, and
  4977. if all-stop on entry, restart threads on exit.
  4978. * infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
  4979. (restart_stepped_thread): ... this new function. Also handle
  4980. trap_expected.
  4981. (restart_after_all_stop_detach): New function.
  4982. * infrun.h (restart_after_all_stop_detach): Declare.
  4983. 2021-02-03 Pedro Alves <pedro@palves.net>
  4984. * infrun.c (struct step_over_info): Initialize fields.
  4985. (prepare_for_detach): Handle ongoing in-line step over.
  4986. 2021-02-03 Pedro Alves <pedro@palves.net>
  4987. * linux-nat.c (linux_nat_target::detach): Remove breakpoints
  4988. here...
  4989. * remote.c (remote_target::remote_detach_1): ... and here ...
  4990. * target.c (target_detach): ... instead of here.
  4991. * target.h (target_ops::detach): Add comment.
  4992. 2021-02-03 Pedro Alves <pedro@palves.net>
  4993. * infrun.c (struct wait_one_event): Move higher up.
  4994. (prepare_for_detach): Abort in-progress displaced steps instead of
  4995. letting them complete.
  4996. (handle_one): If the inferior is detaching, don't add the thread
  4997. back to the global step-over chain.
  4998. (restart_threads): Don't restart threads if detaching.
  4999. (handle_signal_stop): Remove inferior::detaching reference.
  5000. 2021-02-03 Pedro Alves <pedro@palves.net>
  5001. * infrun.c (prepare_for_detach): Don't release scoped_restore
  5002. before returning.
  5003. 2021-02-03 Pedro Alves <pedro@palves.net>
  5004. * infrun.c (handle_one): New function, factored out from ...
  5005. (stop_all_threads): ... here.
  5006. 2021-02-03 Pedro Alves <pedro@palves.net>
  5007. * remote.c (remote_notif_stop_ack): Don't error out on
  5008. TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
  5009. (remote_target::discard_pending_stop_replies): Don't delete
  5010. in-flight notification; instead, clear its contents.
  5011. 2021-02-03 Pedro Alves <pedro@palves.net>
  5012. * remote.c (extended_remote_target::attach): Set target async in
  5013. the target-non-stop path too.
  5014. 2021-02-03 Pedro Alves <pedro@palves.net>
  5015. PR gdb/27055
  5016. * infrun.c (handle_signal_stop): Move main context_switch call
  5017. earlier, before STOP_QUIETLY_NO_SIGSTOP.
  5018. 2021-02-02 Lancelot SIX <lsix@lancelotsix.com>
  5019. * NEWS (Changed commands): Add entry for the behavior change of
  5020. the inferior command.
  5021. * inferior.c (inferior_command): When no argument is given to the
  5022. inferior command, display info about the currently selected
  5023. inferior.
  5024. 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
  5025. * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
  5026. a sect_offset.
  5027. (read_attribute_reprocess): Adjust.
  5028. 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
  5029. * dwarf2/die.h (struct die_info) <ranges_base>: Split in...
  5030. <gnu_ranges_base>: ... this...
  5031. <rnglists_base>: ... and this.
  5032. * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
  5033. <gnu_ranges_base>: ... this...
  5034. <rnglists_base>: ... and this.
  5035. (read_cutu_die_from_dwo): Adjust
  5036. (dwarf2_get_pc_bounds): Adjust
  5037. (dwarf2_record_block_ranges): Adjust.
  5038. (read_full_die_1): Adjust
  5039. (partial_die_info::read): Adjust.
  5040. (read_rnglist_index): Adjust.
  5041. 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
  5042. PR gdb/26813
  5043. * dwarf2/read.c (read_loclists_rnglists_header): Add
  5044. header_offset parameter and use it.
  5045. (read_loclist_index): Read header of the current contribution,
  5046. not the one at the beginning of the section.
  5047. (read_rnglist_index): Likewise.
  5048. 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
  5049. PR gdb/26813
  5050. * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
  5051. requires_reprocessing flag.
  5052. * dwarf2/attribute.c (attribute::form_is_unsigned): Handle
  5053. DW_FORM_loclistx.
  5054. (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
  5055. and DW_FORM_loclistx.
  5056. * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
  5057. instead of set_address for DW_FORM_loclistx and
  5058. DW_FORM_rnglistx.
  5059. 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
  5060. * dwarf2/read.c (read_loclist_index): Remove bound check for
  5061. start of offset.
  5062. (read_rnglist_index): Likewise.
  5063. 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
  5064. * dwarf2/read.c (read_loclist_index): Add bound check for the end
  5065. of the offset.
  5066. 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
  5067. * dwarf2/read.c (read_rnglist_index): Fix bound check.
  5068. 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
  5069. * dwarf2/read.c (read_loclist_index): Change complaints into
  5070. errors.
  5071. 2021-02-02 Tom de Vries <tdevries@suse.de>
  5072. PR symtab/24620
  5073. * dwarf2/index-write.c (write_one_signatured_type): Skip if
  5074. psymtab == nullptr.
  5075. 2021-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
  5076. * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
  5077. * gcore.c (struct gcore_collect_regset_section_cb_data): Moved
  5078. here from linux-tdep.c and given a new name. Minor cleanups.
  5079. (gcore_collect_regset_section_cb): Likewise.
  5080. (gcore_collect_thread_registers): Likewise.
  5081. (gcore_build_thread_register_notes): Likewise.
  5082. (gcore_find_signalled_thread): Likewise.
  5083. * gcore.h (gcore_build_thread_register_notes): Declare.
  5084. (gcore_find_signalled_thread): Declare.
  5085. * fbsd-tdep.c: Add 'gcore.h' include.
  5086. (struct fbsd_collect_regset_section_cb_data): Delete.
  5087. (fbsd_collect_regset_section_cb): Delete.
  5088. (fbsd_collect_thread_registers): Delete.
  5089. (struct fbsd_corefile_thread_data): Delete.
  5090. (fbsd_corefile_thread): Delete.
  5091. (fbsd_make_corefile_notes): Call
  5092. gcore_build_thread_register_notes instead of the now deleted
  5093. FreeBSD code.
  5094. * linux-tdep.c: Add 'gcore.h' include.
  5095. (struct linux_collect_regset_section_cb_data): Delete.
  5096. (linux_collect_regset_section_cb): Delete.
  5097. (linux_collect_thread_registers): Delete.
  5098. (linux_corefile_thread): Call
  5099. gcore_build_thread_register_notes.
  5100. (find_signalled_thread): Delete.
  5101. (linux_make_corefile_notes): Call gcore_find_signalled_thread.
  5102. 2021-01-29 Tom de Vries <tdevries@suse.de>
  5103. PR breakpoints/26063
  5104. * infrun.c (process_event_stop_test): Reset
  5105. ecs->event_thread->current_line to 0 if is-stmt=n and frame has
  5106. changed.
  5107. 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
  5108. * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
  5109. assert. Extend the header comment.
  5110. 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
  5111. * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
  5112. (HFILES_NO_SRCDIR): Add tui/tui-location.h.
  5113. * tui/tui-data.h (TUI_STATUS_WIN): Define.
  5114. (tui_locator_win_info_ptr): Delete declaration.
  5115. * tui/tui-disasm.c: Add 'tui/tui-location.h' include.
  5116. (tui_disasm_window::set_contents): Fetch state from tui_location
  5117. global.
  5118. (tui_get_begin_asm_address): Likewise.
  5119. * tui/tui-layout.c (tui_apply_current_layout): Remove special case
  5120. for locator window.
  5121. (get_locator_window): Delete.
  5122. (initialize_known_windows): Treat locator window just like all the
  5123. rest.
  5124. * tui/tui-source.c: Add 'tui/tui-location.h' include.
  5125. (tui_source_window::set_contents): Fetch state from tui_location
  5126. global.
  5127. (tui_source_window::showing_source_p): Likewise.
  5128. * tui/tui-stack.c: Add 'tui/tui-location.h' include.
  5129. (_locator): Delete.
  5130. (tui_locator_win_info_ptr): Delete.
  5131. (tui_locator_window::make_status_line): Fetch state from
  5132. tui_location global.
  5133. (tui_locator_window::rerender): Remove check of 'handle',
  5134. reindent function body.
  5135. (tui_locator_window::set_locator_fullname): Delete.
  5136. (tui_locator_window::set_locator_info): Delete.
  5137. (tui_update_locator_fullname): Delete.
  5138. (tui_show_frame_info): Likewise.
  5139. (tui_show_locator_content): Access window through TUI_STATUS_WIN.
  5140. * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
  5141. tui/tui-location.h and renamed to
  5142. tui_location_tracker::set_location.
  5143. (tui_locator_window::set_locator_fullname): Moved to
  5144. tui/tui-location.h and renamed to
  5145. tui_location_tracker::set_fullname.
  5146. (tui_locator_window::full_name): Delete.
  5147. (tui_locator_window::proc_name): Delete.
  5148. (tui_locator_window::line_no): Delete.
  5149. (tui_locator_window::addr): Delete.
  5150. (tui_locator_window::gdbarch): Delete.
  5151. (tui_update_locator_fullname): Delete declaration.
  5152. * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
  5153. for locator window.
  5154. * tui/tui-winsource.c: Add 'tui/tui-location.h' include.
  5155. (tui_display_main): Call function on tui_location directly.
  5156. * tui/tui.h (enum tui_win_type): Add STATUS_WIN.
  5157. * tui/tui-location.c: New file.
  5158. * tui/tui-location.h: New file.
  5159. 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
  5160. * gdbtypes.h (get_type_arch): Rename to...
  5161. (struct type) <arch>: ... this, update all users.
  5162. 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
  5163. * gdbtypes.h (struct type) <arch>: Rename to...
  5164. <arch_owner>: ... this, update all users.
  5165. <objfile>: Rename to...
  5166. <objfile_owner>: ... this, update all users.
  5167. 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
  5168. * gdbcmd.h (execute_command_to_string): Update comment.
  5169. * top.c (execute_command_to_string): Update header comment.
  5170. 2021-01-28 Tom de Vries <tdevries@suse.de>
  5171. PR breakpoints/27205
  5172. * breakpoint.c (create_longjmp_master_breakpoint_probe)
  5173. (create_longjmp_master_breakpoint_names): New function, factored out
  5174. of ...
  5175. (create_longjmp_master_breakpoint): ... here. Only try to install
  5176. longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
  5177. breakpoint in libc.so failed.
  5178. 2021-01-27 Lancelot SIX <lsix@lancelotsix.com>
  5179. PR gdb/27133
  5180. * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
  5181. unique_ptr is released when the wrapped pointer is kept for later
  5182. use.
  5183. 2021-01-27 Matthew Malcomson <matthew.malcomson@arm.com>
  5184. * aarch64-tdep.c (aarch64_displaced_step_others): Account for
  5185. BLR and BR instructions.
  5186. * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
  5187. (enum aarch64_masks): New.
  5188. 2021-01-26 Tom Tromey <tromey@adacore.com>
  5189. * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
  5190. (DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
  5191. (windows_init_thread_list, windows_nat::handle_load_dll)
  5192. (windows_nat::handle_unload_dll, windows_nat_target::resume)
  5193. (windows_nat_target::resume)
  5194. (windows_nat_target::get_windows_debug_event)
  5195. (windows_nat_target::interrupt, windows_xfer_memory)
  5196. (windows_nat_target::close): Update.
  5197. * nat/windows-nat.c (DEBUG_EVENTS): Use
  5198. debug_prefixed_printf_cond.
  5199. (matching_pending_stop, fetch_pending_stop)
  5200. (continue_last_debug_event): Update.
  5201. 2020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
  5202. * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
  5203. elfcore_write_file_note.
  5204. 2021-01-26 Shahab Vahedi <shahab@synopsys.com>
  5205. * arc-tdep.c (arc_add_reggroups): New function.
  5206. (arc_gdbarch_init): Call arc_add_reggroups.
  5207. 2021-01-26 Anton Kolesov <anton.kolesov@synopsys.com>
  5208. * arc-tdep.c (arc_skip_prologue): Log "pc" address.
  5209. 2021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
  5210. Simon Marchi <simon.marchi@polymtl.ca>
  5211. Tom de Vries <tdevries@suse.de>
  5212. * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
  5213. DW_AT_ranges.
  5214. 2021-01-25 Tom Tromey <tromey@adacore.com>
  5215. * dwarf2/read.c (get_mpz): New function.
  5216. (get_dwarf2_rational_constant): Use it.
  5217. 2021-01-25 Tom Tromey <tromey@adacore.com>
  5218. * ada-lang.c (resolve_subexp): Handle array context.
  5219. 2021-01-23 Tom Tromey <tom@tromey.com>
  5220. PR compile/25575
  5221. * compile/compile-loc2c.c (note_register): New function.
  5222. (pushf_register_address, pushf_register): Use it.
  5223. 2021-01-23 Tom Tromey <tom@tromey.com>
  5224. * symtab.h (struct symbol_computed_ops) <generate_c_location>:
  5225. Change type of "registers_used".
  5226. * dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
  5227. * dwarf2/loc.c (dwarf2_compile_property_to_c)
  5228. (locexpr_generate_c_location, loclist_generate_c_location): Change
  5229. type of "registers_used".
  5230. * compile/compile.h (compile_dwarf_expr_to_c)
  5231. (compile_dwarf_bounds_to_c): Update.
  5232. * compile/compile-loc2c.c (pushf_register_address)
  5233. (pushf_register, do_compile_dwarf_expr_to_c)
  5234. (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
  5235. of "registers_used".
  5236. * compile/compile-c.h (generate_c_for_variable_locations):
  5237. Update.
  5238. * compile/compile-c-symbols.c (generate_vla_size)
  5239. (generate_c_for_for_one_variable): Change type of
  5240. "registers_used".
  5241. (generate_c_for_variable_locations): Return std::vector.
  5242. * compile/compile-c-support.c (generate_register_struct): Change
  5243. type of "registers_used".
  5244. (compute): Update.
  5245. 2021-01-23 Tom Tromey <tom@tromey.com>
  5246. * compile/compile-internal.h (class compile_instance)
  5247. <set_arguments>: Change return type.
  5248. * compile/compile.c (compile_to_object): Remove call to reset.
  5249. (compile_instance::set_arguments): Change return type.
  5250. 2021-01-23 Simon Marchi <simon.marchi@polymtl.ca>
  5251. * gdbtypes.c (copy_type_recursive): Use get_type_arch.
  5252. * gdbtypes.h (struct type) <set_owner>: Add asserts.
  5253. 2021-01-23 Lancelot SIX <lsix@lancelotsix.com>
  5254. * Makefile.in (SELFTESTS_SRCS): Add
  5255. unittests/gdb_tilde_expand-selftests.c.
  5256. * unittests/gdb_tilde_expand-selftests.c: New file.
  5257. 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
  5258. PR cli/25956
  5259. * NEWS: Mention new command.
  5260. * cli/cli-style.c: Add 'cli/cli-setshow.h' include.
  5261. (version_style): Define.
  5262. (cli_style_option::cli_style_option): Add intensity parameter, and
  5263. use as appropriate.
  5264. (_initialize_cli_style): Register version style set/show commands.
  5265. * cli/cli-style.h (cli_style_option): Add intensity parameter.
  5266. (version_style): Declare.
  5267. * top.c (print_gdb_version): Use version_stype, and styled_string
  5268. to print the GDB version string.
  5269. 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
  5270. * utils.c (emit_style_escape): Only emit an escape sequence if the
  5271. requested style is different than the current applied style.
  5272. (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
  5273. current applied_style.
  5274. (fputs_styled): Remove is_default check.
  5275. (fputs_styled_unfiltered): Likewise.
  5276. (vfprintf_styled_no_gdbfmt): Likewise.
  5277. 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
  5278. * remote.h (remote_debug_printf): New.
  5279. (remote_debug_printf_nofunc): New.
  5280. (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
  5281. * remote.c: Use above macros throughout file.
  5282. 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
  5283. * remote.h (remote_debug): Change to bool.
  5284. * remote.c (remote_debug): Change to bool.
  5285. (_initialize_remote): Adjust.
  5286. 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
  5287. * target.h (remote_debug): Move to...
  5288. * remote.h (remote_debug): ... here.
  5289. * top.c (remote_debug): Move to...
  5290. * remote.c (remote_debug): ... here.
  5291. * remote-sim.c: Include remote.h.
  5292. 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
  5293. * cli/cli-cmds.c (show_remote_debug): Remove.
  5294. (show_remote_timeout): Remove.
  5295. (_initialize_cli_cmds): Don't register commands.
  5296. * remote.c (show_remote_debug): Move here.
  5297. (show_remote_timeout): Move here.
  5298. (_initialize_remote): Register commands.
  5299. 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
  5300. * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
  5301. type::objfile method instead.
  5302. 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
  5303. * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
  5304. use the type::is_objfile_owned method.
  5305. 2021-01-22 Simon Marchi <simon.marchi@efficios.com>
  5306. * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
  5307. (TYPE_OWNER): Remove.
  5308. (TYPE_OBJFILE): Adjust.
  5309. (struct main_type) <flag_objfile_owned>: Rename to...
  5310. <m_flag_objfile_owned>: ... this.
  5311. <owner>: Rename to...
  5312. <m_owner>: ... this.
  5313. (struct type) <is_objfile_owned, set_owner, objfile, arch>: New
  5314. methods.
  5315. (TYPE_ALLOC): Adjust.
  5316. * gdbtypes.c (alloc_type): Adjust.
  5317. (alloc_type_arch): Adjust.
  5318. (alloc_type_copy): Adjust.
  5319. (get_type_arch): Adjust.
  5320. (smash_type): Adjust.
  5321. (lookup_array_range_type): Adjust.
  5322. (recursive_dump_type): Adjust.
  5323. (copy_type_recursive): Adjust.
  5324. * compile/compile-c-types.c (convert_func): Adjust.
  5325. (convert_type_basic): Adjust.
  5326. * compile/compile-cplus-types.c (compile_cplus_convert_func):
  5327. Adjust.
  5328. * language.c
  5329. (language_arch_info::type_and_symbol::alloc_type_symbol):
  5330. Adjust.
  5331. 2021-01-21 Luis Machado <luis.machado@linaro.org>
  5332. * coffread.c (enter_linenos): Passing string to complaint.
  5333. * valops.c (value_assign): Make array view.
  5334. 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
  5335. * auto-load.h (debug_auto_load): Move here.
  5336. (auto_load_debug_printf): New.
  5337. * auto-load.c: Use auto_load_debug_printf.
  5338. (debug_auto_load): Move to header.
  5339. * linux-thread-db.c (try_thread_db_load): Use
  5340. auto_load_debug_printf.
  5341. * main.c (captured_main_1): Likewise.
  5342. 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
  5343. * f-valprint.c (f77_array_offset_tbl): Remove.
  5344. 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
  5345. * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
  5346. 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
  5347. * ser-tcp.c (wait_for_connect): Use interruptible_select instead
  5348. of gdb_select.
  5349. 2021-01-21 Hannes Domani <ssbssa@yahoo.de>
  5350. PR python/19151
  5351. * python/py-breakpoint.c (bppy_get_location): Handle
  5352. bp_hardware_breakpoint.
  5353. (bppy_init): Likewise.
  5354. (gdbpy_breakpoint_created): Likewise.
  5355. 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
  5356. * arm-tdep.c (arm_debug_printf): Add and use throughout file.
  5357. 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
  5358. * gdb_bfd.c (debug_bfd_cache): Change type to bool.
  5359. (_initialize_gdb_bfd): Adjust.
  5360. 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
  5361. PR gdb/26828
  5362. * dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
  5363. 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
  5364. * dwarf2/read.c (follow_die_offset): Add logging.
  5365. (dwarf2_per_objfile::age_comp_units): Add logging.
  5366. 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
  5367. * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
  5368. * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
  5369. aarch64_stub_unwind, aarch64_normal_base, ): Make static.
  5370. * arm-linux-tdep.c (arm_prologue_unwind): Make static.
  5371. * arm-tdep.c (struct frame_unwind): Make static.
  5372. * auto-load.c (auto_load_safe_path_vec): Make static.
  5373. * csky-tdep.c (csky_stub_unwind): Make static.
  5374. * gdbarch.c (gdbarch_data_registry): Make static.
  5375. * gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
  5376. * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
  5377. * i386-tdep.c (i386_frame_setup_skip_insns,
  5378. i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
  5379. Make static.
  5380. * infrun.c (observer_mode): Make static.
  5381. * linux-nat.c (sigchld_action): Make static.
  5382. * linux-thread-db.c (thread_db_list): Make static.
  5383. * maint-test-options.c (maintenance_test_options_list):
  5384. * mep-tdep.c (mep_csr_registers): Make static.
  5385. * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
  5386. (stats): Make static.
  5387. * nat/linux-osdata.c (struct osdata_type): Make static.
  5388. * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
  5389. * progspace.c (last_program_space_num): Make static.
  5390. * python/py-param.c (struct parm_constant): Remove struct type
  5391. name.
  5392. (parm_constants): Make static.
  5393. * python/py-record-btrace.c (btpy_list_methods): Make static.
  5394. * python/py-record.c (recpy_gap_type): Make static.
  5395. * record.c (record_goto_cmdlist): Make static.
  5396. * regcache.c (regcache_descr_handle): Make static.
  5397. * registry.h (DEFINE_REGISTRY): Make definition static.
  5398. * symmisc.c (std_in, std_out, std_err): Make static.
  5399. * top.c (previous_saved_command_line): Make static.
  5400. * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
  5401. static.
  5402. * unittests/command-def-selftests.c (nr_duplicates,
  5403. nr_invalid_prefixcmd, lists): Make static.
  5404. * unittests/observable-selftests.c (test_notification): Make
  5405. static.
  5406. * unittests/optional/assignment/1.cc (counter): Make static.
  5407. * unittests/optional/assignment/2.cc (counter): Make static.
  5408. * unittests/optional/assignment/3.cc (counter): Make static.
  5409. * unittests/optional/assignment/4.cc (counter): Make static.
  5410. * unittests/optional/assignment/5.cc (counter): Make static.
  5411. * unittests/optional/assignment/6.cc (counter): Make static.
  5412. 2021-01-20 Joel Sherrill <joel@rtems.org>
  5413. PR gdb/27219
  5414. * remote.c (struct remote_thread_info) <resume_state>: Rename
  5415. to...
  5416. <get_resume_state>: ... this.
  5417. (remote_target::resume): Adjust.
  5418. (remote_target::commit_resume): Adjust.
  5419. (remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
  5420. 2021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
  5421. Tom Tromey <tom@tromey.com>
  5422. * stap-probe.c (stap_parse_single_operand): Handle '!'
  5423. operator.
  5424. (stap_parse_argument_conditionally): Likewise.
  5425. Skip spaces after processing open-parenthesis sub-expression.
  5426. (stap_parse_argument_1): Skip spaces after call to
  5427. stap_parse_argument_conditionally.
  5428. Handle case when right-side expression is a parenthesized
  5429. sub-expression.
  5430. Skip spaces after call to stap_parse_argument_1.
  5431. 2021-01-19 Lancelot SIX <lsix@lancelotsix.com>
  5432. * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
  5433. 2021-01-19 Luis Machado <luis.machado@linaro.org>
  5434. * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
  5435. memory and save data.
  5436. (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
  5437. (trad_frame_set_unknown, trad_frame_set_value_bytes)
  5438. (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
  5439. (trad_frame_value_bytes_p): Remove.
  5440. (trad_frame_reset_saved_regs): Adjust documentation.
  5441. * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
  5442. constructor and reset the state of the registers.
  5443. (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
  5444. (trad_frame_value_bytes_p, trad_frame_set_value)
  5445. (trad_frame_set_realreg, trad_frame_set_addr)
  5446. (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
  5447. (trad_frame_set_reg_realreg): Update to call member function.
  5448. (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
  5449. (trad_frame_get_prev_register): Likewise.
  5450. * aarch64-tdep.c (aarch64_analyze_prologue)
  5451. (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
  5452. (aarch64_prologue_prev_register): Update to use member functions.
  5453. * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
  5454. * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
  5455. * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
  5456. * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
  5457. (arm_make_epilogue_frame_cache): Likewise.
  5458. * avr-tdep.c (avr_frame_unwind_cache)
  5459. (avr_frame_prev_register): Likewise.
  5460. * cris-tdep.c (cris_scan_prologue): Likewise.
  5461. * csky-tdep.c (csky_frame_unwind_cache): Likewise.
  5462. * frv-tdep.c (frv_analyze_prologue): Likewise.
  5463. * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
  5464. * lm32-tdep.c (lm32_frame_cache): Likewise.
  5465. * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
  5466. * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
  5467. * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
  5468. (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
  5469. (reset_saved_regs): Adjust to set realreg.
  5470. * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
  5471. call member functions.
  5472. * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
  5473. * s390-tdep.c (s390_prologue_frame_unwind_cache)
  5474. (s390_backchain_frame_unwind_cache): Likewise.
  5475. * score-tdep.c (score7_analyze_prologue)
  5476. (score3_analyze_prologue, score_make_prologue_cache): Likewise.
  5477. * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
  5478. * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
  5479. * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
  5480. * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
  5481. * tilegx-tdep.c (tilegx_analyze_prologue)
  5482. (tilegx_frame_cache): Likewise.
  5483. * v850-tdep.c (v850_frame_cache): Likewise.
  5484. * vax-tdep.c (vax_frame_cache): Likewise.
  5485. 2021-01-19 Luis Machado <luis.machado@linaro.org>
  5486. * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
  5487. of buffer + length.
  5488. (put_frame_register_bytes): Likewise.
  5489. Adjust documentation.
  5490. (get_frame_memory): Pass a gdb::array_view instead of buffer + length.
  5491. (safe_frame_unwind_memory): Likewise.
  5492. * frame.c (get_frame_register_bytes, put_frame_register_bytes)
  5493. (get_frame_memory, safe_frame_unwind_memory): Adjust to use
  5494. gdb::array_view.
  5495. * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
  5496. * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
  5497. * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
  5498. * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
  5499. * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
  5500. * dwarf2/loc.c (rw_pieced_value): Likewise.
  5501. * hppa-tdep.c (hppa_frame_cache): Likewise.
  5502. * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
  5503. * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
  5504. * i386-linux-tdep.c (i386_linux_sigtramp_start)
  5505. (i386_linux_rt_sigtramp_start): Likewise.
  5506. * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
  5507. * i386-tdep.c (i386_register_to_value): Likewise.
  5508. * i387-tdep.c (i387_register_to_value): Likewise.
  5509. * ia64-tdep.c (ia64_register_to_value): Likewise.
  5510. * m32r-linux-tdep.c (m32r_linux_sigtramp_start)
  5511. (m32r_linux_rt_sigtramp_start): Likewise.
  5512. * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
  5513. * m68k-tdep.c (m68k_register_to_value): Likewise.
  5514. * mips-tdep.c (mips_register_to_value)
  5515. (mips_value_to_register): Likewise.
  5516. * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
  5517. (ppcfbsd_sigtramp_frame_cache): Likewise.
  5518. * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
  5519. (ppcobsd_sigtramp_frame_cache): Likewise.
  5520. * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
  5521. (rs6000_register_to_value): Likewise.
  5522. * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
  5523. * tramp-frame.c (tramp_frame_start): Likewise.
  5524. * valops.c (value_assign): Likewise.
  5525. 2021-01-19 Luis Machado <luis.machado@linaro.org>
  5526. * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
  5527. array_view.
  5528. * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
  5529. instead of buffer and size.
  5530. (trad_frame_set_reg_value_bytes): Likewise.
  5531. * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
  5532. (trad_frame_set_value_bytes): Likewise.
  5533. 2021-01-18 Mike Frysinger <vapier@gentoo.org>
  5534. * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
  5535. 2021-01-18 Andrew Burgess <andrew.burgess@embecosm.com>
  5536. * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
  5537. (riscv_fbsd_gregset): Use riscv_supply_regset.
  5538. (riscv_fbsd_fpregset): Likewise.
  5539. * riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
  5540. (riscv_linux_fregset): Likewise.
  5541. * riscv-tdep.c (riscv_supply_regset): Define new function.
  5542. * riscv-tdep.h (riscv_supply_regset): Declare new function.
  5543. 2021-01-18 Tom de Vries <tdevries@suse.de>
  5544. PR tdep/27172
  5545. * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
  5546. New macro.
  5547. (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
  5548. for SEGV_BNDERR.
  5549. 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
  5550. * remote.c (class remote_target) <remote_hostio_send_command,
  5551. remote_hostio_parse_result>: Constify parameter.
  5552. (remote_hostio_parse_result): Likewise.
  5553. (remote_target::remote_hostio_send_command): Adjust.
  5554. (remote_target::remote_hostio_pread_vFile): Adjust.
  5555. (remote_target::fileio_readlink): Adjust.
  5556. (remote_target::fileio_fstat): Adjust.
  5557. 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
  5558. * remote.c (remote_target::start_remote): Move wait_status to
  5559. narrower scope.
  5560. 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
  5561. * remote.c (class remote_target):
  5562. <add_current_inferior_and_thread>: Constify parameter.
  5563. (stop_reply_extract_thread): Likewise.
  5564. (remote_target::get_current_thread): Likewise.
  5565. (remote_target::add_current_inferior_and_thread): Likewise.
  5566. 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
  5567. * remote.c (class remote_target)
  5568. <remote_unpack_thread_info_response,
  5569. parse_threadlist_response>: Constify parameter and/or return
  5570. value and or local variable.
  5571. (stub_unpack_int): Likewise.
  5572. (unpack_nibble): Likewise.
  5573. (unpack_byte): Likewise.
  5574. (unpack_int): Likewise.
  5575. (unpack_string): Likewise.
  5576. (unpack_threadid): Likewise.
  5577. (remote_target::remote_unpack_thread_info_response): Likewise.
  5578. (remote_target::parse_threadlist_response): Likewise.
  5579. 2021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
  5580. * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
  5581. 2021-01-14 Lancelot Six <lsix@lancelotsix.com>
  5582. * MAINTAINERS (Write After Approval): Add myself.
  5583. 2021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
  5584. * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
  5585. because is_trivially_default_constructible was first implemented with
  5586. gcc-5.
  5587. 2021-01-14 Tom de Vries <tdevries@suse.de>
  5588. PR breakpoints/27151
  5589. * objfiles.h (in_plt_section): Handle .plt.sec.
  5590. 2021-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
  5591. PR gdb/26819
  5592. * remote.c
  5593. (remote_target::select_thread_for_ambiguous_stop_reply): New
  5594. member function.
  5595. (remote_target::process_stop_reply): Call
  5596. select_thread_for_ambiguous_stop_reply.
  5597. 2021-01-13 Simon Marchi <simon.marchi@efficios.com>
  5598. * record-btrace.c (class record_btrace_target): Remove.
  5599. (record_btrace_target::commit_resume): Remove.
  5600. * record-full.c (class record_full_target): Remove.
  5601. (record_full_target::commit_resume): Remove.
  5602. 2021-01-13 Simon Marchi <simon.marchi@efficios.com>
  5603. * remote.c (enum class resume_state): New.
  5604. (struct resumed_pending_vcont_info): New.
  5605. (struct remote_thread_info) <resume_state, set_not_resumed,
  5606. set_resumed_pending_vcont, resumed_pending_vcont_info,
  5607. set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
  5608. New.
  5609. <last_resume_step, last_resume_sig, vcont_resumed>: Remove.
  5610. (remote_target::remote_add_thread): Adjust.
  5611. (remote_target::process_initial_stop_replies): Adjust.
  5612. (remote_target::resume): Adjust.
  5613. (remote_target::commit_resume): Rely on state in
  5614. remote_thread_info and not on tp->executing.
  5615. (remote_target::process_stop_reply): Adjust.
  5616. 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
  5617. * arc-tdep.h (arc_debug_printf): New.
  5618. * arc-tdep.c: Use arc_debug_printf.
  5619. * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
  5620. * arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
  5621. * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
  5622. 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
  5623. * arc-tdep.h (arc_debug): Change type to bool.
  5624. * arc-tdep.c (arc_debug): Change type to bool.
  5625. (arc_analyze_prologue): Adjust.
  5626. (_initialize_arc_tdep): Use add_setshow_boolean_cmd.
  5627. * arc-linux-nat.c (ps_get_thread_area): Adjust.
  5628. 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
  5629. * auto-load.c (auto_load_objfile_script_1): Use bool.
  5630. (execute_script_contents): Use bool.
  5631. 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
  5632. * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
  5633. comment here.
  5634. * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
  5635. comment to header.
  5636. * extension-priv.h (struct extension_language_script_ops)
  5637. <auto_load_enabled>: Return bool.
  5638. * extension.h (ext_lang_auto_load_enabled): Return bool, move
  5639. comment here.
  5640. * extension.c (ext_lang_auto_load_enabled): Return bool, move
  5641. comment to header.
  5642. * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
  5643. move comment here.
  5644. * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
  5645. move comment to header.
  5646. * python/python-header.h (gdbpy_auto_load_enabled): Return bool,
  5647. move comment here.
  5648. * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
  5649. move comment to header.
  5650. 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
  5651. * auto-load.h (file_is_auto_load_safe): Change return type to
  5652. bool, move comment here.
  5653. * auto-load.c (file_is_auto_load_safe): Change return type and
  5654. advice_printed to bool. Move comment to header.
  5655. 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
  5656. * jit.c (jit_debug_printf): New, use throughout file.
  5657. 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
  5658. * infrun.c (normal_stop): Fix indentation.
  5659. 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
  5660. * top.h (readnow_symbol_files, readnever_symbol_files): Move
  5661. declarations to ...
  5662. * symfile.h: ... here.
  5663. * symfile.c: Update doc.
  5664. 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
  5665. * target.h (baud_rate, serial_parity): Move declarations...
  5666. * serial.h: ... here.
  5667. * main.c: Include serial.h.
  5668. * serial.c (baud_rate, serial_parity): Update doc.
  5669. 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
  5670. * top.c (pre_init_ui_hook): Remove.
  5671. 2021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
  5672. * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
  5673. (aarch64_vnv_type): Add "bf" type in h field of v registers.
  5674. * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
  5675. * features/aarch64-fpu.xml: Add bfloat16 type.
  5676. 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
  5677. * expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
  5678. 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
  5679. * f-exp.y (dot_ops): Rename to...
  5680. (fortran_operators): ...this. Add a header comment. Add symbol
  5681. based operators.
  5682. (yylex): Update to use fortran_operators not dot_ops. Remove
  5683. special handling for '**', this is now included in
  5684. fortran_operators.
  5685. 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
  5686. * arch/aarch64-insn.h (aarch64_debug_printf): New.
  5687. * arch/aarch64-insn.c: Use aarch64_debug_printf.
  5688. * aarch64-tdep.c: Use aarch64_debug_printf.
  5689. 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
  5690. * solib-aix.c (solib_aix_debug_printf): New, use throughout
  5691. file.
  5692. 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
  5693. * jit.c (jit_debug): Change type to bool.
  5694. (_initialize_jit): Adjust.
  5695. 2021-01-09 Tom Tromey <tom@tromey.com>
  5696. PR compile/23672
  5697. * compile/compile.c (compile_to_object): Avoid crash when
  5698. osabi_triplet_regexp returns NULL.
  5699. 2021-01-09 Tom Tromey <tom@tromey.com>
  5700. * tracepoint.h (class collection_list) <append_exp>: Take a
  5701. std::string.
  5702. * tracepoint.c (collection_list::append_exp): Take a std::string.
  5703. (encode_actions_1): Update.
  5704. 2021-01-08 Tom Tromey <tromey@adacore.com>
  5705. * parse.c (parse_expression): Add void_context_p parameter. Use
  5706. parse_exp_in_context.
  5707. * printcmd.c (print_command_1): Change voidprint to bool. Pass to
  5708. parse_expression.
  5709. (print_command, call_command): Update.
  5710. * expression.h (parse_expression): Add void_context_p parameter.
  5711. 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
  5712. * value.c (set_value_component_location): Adjust the VALUE_LVAL
  5713. for internalvar components that have a dynamic location.
  5714. 2021-01-08 Tom de Vries <tdevries@suse.de>
  5715. PR gdb/26881
  5716. * breakpoint.c (create_exception_master_breakpoint_probe)
  5717. (create_exception_master_breakpoint_hook): Factor out
  5718. of ...
  5719. (create_exception_master_breakpoint): ... here. Only try to install
  5720. the master exception breakpoint in objfile.debug using the
  5721. _Unwind_DebugHook method, if the install using probes in objfile
  5722. failed.
  5723. 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
  5724. * f-lang.c (fortran_value_subarray): Call value_from_component.
  5725. 2021-01-07 Mike Frysinger <vapier@gentoo.org>
  5726. * remote-sim.c: Include memory-map.h.
  5727. (gdbsim_target): Define memory_map override.
  5728. (gdbsim_target::memory_map): Define.
  5729. 2021-01-07 Tom Tromey <tromey@adacore.com>
  5730. * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
  5731. 2021-01-07 Tom Tromey <tromey@adacore.com>
  5732. * ada-lang.c (add_component_interval): Start loop using vector's
  5733. updated size.
  5734. 2021-01-06 Tom Tromey <tromey@adacore.com>
  5735. * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
  5736. Do not cast result.
  5737. * valarith.c (fixed_point_binop): Handle multiplication
  5738. and division specially.
  5739. * valops.c (value_to_gdb_mpq): New function.
  5740. (value_cast_to_fixed_point): Use it.
  5741. 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
  5742. * tui/tui-winsource.c (tui_source_window_base::refresh_window):
  5743. Call wnoutrefresh instead of tui_win_info::refresh_window.
  5744. 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
  5745. * tui/tui-source.c (tui_source_window::show_line_number):
  5746. Redraw second space after line number.
  5747. 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
  5748. PR tui/26927
  5749. * tui/tui-winsource.c (tui_source_window_base::refresh_window):
  5750. Fix source pad size in prefresh.
  5751. (tui_source_window_base::show_source_content): Grow source pad
  5752. if necessary.
  5753. 2021-01-04 Mike Frysinger <vapier@gentoo.org>
  5754. * bfin-tdep.c (bfin_push_dummy_call): Use align_up.
  5755. (bfin_frame_align): Use align_down.
  5756. 2021-01-04 Tom de Vries <tdevries@suse.de>
  5757. * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
  5758. terminators that do not terminate anything.
  5759. 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
  5760. * debug.c (debug_print_depth): New.
  5761. * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
  5762. (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
  5763. * infrun.c (start_step_over): Use
  5764. INFRUN_SCOPED_DEBUG_ENTER_EXIT.
  5765. (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
  5766. INFRUN_SCOPED_DEBUG_START_END.
  5767. (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
  5768. 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
  5769. * infrun.c (print_target_wait_results): Use infrun_debug_printf.
  5770. 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
  5771. * utils.c (vfprintf_unfiltered): Print timestamp only when
  5772. previous debug output ended with a newline.
  5773. 2021-01-04 Luis Machado <luis.machado@linaro.org>
  5774. Update all users of trad_frame_saved_reg to use the new member
  5775. functions.
  5776. Remote all struct keywords from declarations of trad_frame_saved_reg
  5777. types, except on forward declarations.
  5778. * aarch64-tdep.c: Update.
  5779. * alpha-mdebug-tdep.c: Update.
  5780. * alpha-tdep.c: Update.
  5781. * arc-tdep.c: Update.
  5782. * arm-tdep.c: Update.
  5783. * avr-tdep.c: Update.
  5784. * cris-tdep.c: Update.
  5785. * csky-tdep.c: Update.
  5786. * frv-tdep.c: Update.
  5787. * hppa-linux-tdep.c: Update.
  5788. * hppa-tdep.c: Update.
  5789. * hppa-tdep.h: Update.
  5790. * lm32-tdep.c: Update.
  5791. * m32r-linux-tdep.c: Update.
  5792. * m32r-tdep.c: Update.
  5793. * m68hc11-tdep.c: Update.
  5794. * mips-tdep.c: Update.
  5795. * moxie-tdep.c: Update.
  5796. * riscv-tdep.c: Update.
  5797. * rs6000-tdep.c: Update.
  5798. * s390-linux-tdep.c: Update.
  5799. * s390-tdep.c: Update.
  5800. * score-tdep.c: Update.
  5801. * sparc-netbsd-tdep.c: Update.
  5802. * sparc-sol2-tdep.c: Update.
  5803. * sparc64-fbsd-tdep.c: Update.
  5804. * sparc64-netbsd-tdep.c: Update.
  5805. * sparc64-obsd-tdep.c: Update.
  5806. * sparc64-sol2-tdep.c: Update.
  5807. * tilegx-tdep.c: Update.
  5808. * v850-tdep.c: Update.
  5809. * vax-tdep.c: Update.
  5810. * frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
  5811. * frame-unwind.h (frame_unwind_got_bytes): Likewise.
  5812. * trad-frame.c: Update.
  5813. Remove TF_REG_* enum.
  5814. (trad_frame_alloc_saved_regs): Add a static assertion to check for
  5815. a trivially-constructible struct.
  5816. (trad_frame_reset_saved_regs): Adjust to use member function.
  5817. (trad_frame_value_p): Likewise.
  5818. (trad_frame_addr_p): Likewise.
  5819. (trad_frame_realreg_p): Likewise.
  5820. (trad_frame_value_bytes_p): Likewise.
  5821. (trad_frame_set_value): Likewise.
  5822. (trad_frame_set_realreg): Likewise.
  5823. (trad_frame_set_addr): Likewise.
  5824. (trad_frame_set_unknown): Likewise.
  5825. (trad_frame_set_value_bytes): Likewise.
  5826. (trad_frame_get_prev_register): Likewise.
  5827. * trad-frame.h: Update.
  5828. (trad_frame_saved_reg_kind): New enum.
  5829. (struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
  5830. <m_kind, m_reg>: New member fields.
  5831. <set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
  5832. <kind, value, realreg, addr, value_bytes, is_value, is_realreg>
  5833. <is_addr, is_unknown, is_value_bytes>: New member functions.
  5834. 2021-01-02 Simon Marchi <simon.marchi@polymtl.ca>
  5835. * target-float.c: Fix typos.
  5836. 2021-01-02 Hannes Domani <ssbssa@yahoo.de>
  5837. * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
  5838. 2021-01-01 Joel Brobecker <brobecker@adacore.com>
  5839. * gdbarch.sh: Update copyright year range.
  5840. 2021-01-01 Joel Brobecker <brobecker@adacore.com>
  5841. Update copyright year range in copyright header of all GDB files.
  5842. 2021-01-01 Joel Brobecker <brobecker@adacore.com>
  5843. * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
  5844. to the list of directories to update.
  5845. 2021-01-01 Joel Brobecker <brobecker@adacore.com>
  5846. * top.c (print_gdb_version): Update copyright year.
  5847. 2021-01-01, 21 Joel Brobecker <brobecker@adacore.com>
  5848. * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
  5849. For older changes see ChangeLog-2020.
  5850. Local Variables:
  5851. mode: change-log
  5852. left-margin: 8
  5853. fill-column: 74
  5854. version-control: never
  5855. coding: utf-8
  5856. End: