NEWS 306 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569
  1. What has changed in GDB?
  2. (Organized release by release)
  3. *** Changes since GDB 12
  4. * GDB now supports hardware watchpoints on FreeBSD/Aarch64.
  5. * Remove support for building against Python 2, it is now only possible to
  6. build GDB against Python 3.
  7. * DBX mode has been removed.
  8. * GDB now honours the DWARF prologue_end line-table entry flag the compiler can
  9. emit to indicate where a breakpoint should be placed to break in a function
  10. past its prologue.
  11. * New commands
  12. maintenance set ignore-prologue-end-flag on|off
  13. maintenance show ignore-prologue-end-flag
  14. This setting, which is off by default, controls whether GDB ignores the
  15. PROLOGUE-END flag from the line-table when skipping prologue. This can be
  16. used to force GDB to use prologue analyzers if the line-table is constructed
  17. from erroneous debug information.
  18. * Changed commands
  19. maintenance info line-table
  20. Add a PROLOGUE-END column to the output which indicates that an
  21. entry corresponds to an address where a breakpoint should be placed
  22. to be at the first instruction past a function's prologue.
  23. * Python API
  24. ** New function gdb.format_address(ADDRESS, PROGSPACE, ARCHITECTURE),
  25. that formats ADDRESS as 'address <symbol+offset>', where symbol is
  26. looked up in PROGSPACE, and ARCHITECTURE is used to format address.
  27. This is the same format that GDB uses when printing address, symbol,
  28. and offset information from the disassembler.
  29. *** Changes in GDB 12
  30. * DBX mode is deprecated, and will be removed in GDB 13
  31. * GDB 12 is the last release of GDB that will support building against
  32. Python 2. From GDB 13, it will only be possible to build GDB itself
  33. with Python 3 support.
  34. * Improved C++ template support
  35. GDB now treats functions/types involving C++ templates like it does function
  36. overloads. Users may omit parameter lists to set breakpoints on families of
  37. template functions, including types/functions composed of multiple template types:
  38. (gdb) break template_func(template_1, int)
  39. The above will set breakpoints at every function `template_func' where
  40. the first function parameter is any template type named `template_1' and
  41. the second function parameter is `int'.
  42. TAB completion also gains similar improvements.
  43. * The FreeBSD native target now supports async mode.
  44. * Configure changes
  45. --enable-threading
  46. Enable or disable multithreaded symbol loading. This is enabled
  47. by default, but passing --disable-threading or --enable-threading=no
  48. to configure will disable it.
  49. Disabling this can cause a performance penalty when there are a lot of
  50. symbols to load, but is useful for debugging purposes.
  51. * New commands
  52. maint set backtrace-on-fatal-signal on|off
  53. maint show backtrace-on-fatal-signal
  54. This setting is 'on' by default. When 'on' GDB will print a limited
  55. backtrace to stderr in the situation where GDB terminates with a
  56. fatal signal. This only supported on some platforms where the
  57. backtrace and backtrace_symbols_fd functions are available.
  58. set source open on|off
  59. show source open
  60. This setting, which is on by default, controls whether GDB will try
  61. to open source code files. Switching this off will stop GDB trying
  62. to open and read source code files, which can be useful if the files
  63. are located over a slow network connection.
  64. set varsize-limit
  65. show varsize-limit
  66. These are now deprecated aliases for "set max-value-size" and
  67. "show max-value-size".
  68. task apply [all | TASK-IDS...] [FLAG]... COMMAND
  69. Like "thread apply", but applies COMMAND to Ada tasks.
  70. watch [...] task ID
  71. Watchpoints can now be restricted to a specific Ada task.
  72. maint set internal-error backtrace on|off
  73. maint show internal-error backtrace
  74. maint set internal-warning backtrace on|off
  75. maint show internal-warning backtrace
  76. GDB can now print a backtrace of itself when it encounters either an
  77. internal-error, or an internal-warning. This is on by default for
  78. internal-error and off by default for internal-warning.
  79. set logging on|off
  80. Deprecated and replaced by "set logging enabled on|off".
  81. set logging enabled on|off
  82. show logging enabled
  83. These commands set or show whether logging is enabled or disabled.
  84. exit
  85. You can now exit GDB by using the new command "exit", in addition to
  86. the existing "quit" command.
  87. set debug threads on|off
  88. show debug threads
  89. Print additional debug messages about thread creation and deletion.
  90. set debug linux-nat on|off
  91. show debug linux-nat
  92. These new commands replaced the old 'set debug lin-lwp' and 'show
  93. debug lin-lwp' respectively. Turning this setting on prints debug
  94. messages relating to GDB's handling of native Linux inferiors.
  95. maint flush source-cache
  96. Flush the contents of the source code cache.
  97. maint set gnu-source-highlight enabled on|off
  98. maint show gnu-source-highlight enabled
  99. Whether GDB should use the GNU Source Highlight library for adding
  100. styling to source code. When off, the library will not be used, even
  101. when available. When GNU Source Highlight isn't used, or can't add
  102. styling to a particular source file, then the Python Pygments
  103. library will be used instead.
  104. set suppress-cli-notifications (on|off)
  105. show suppress-cli-notifications
  106. This controls whether printing the notifications is suppressed for CLI.
  107. CLI notifications occur when you change the selected context
  108. (i.e., the current inferior, thread and/or the frame), or when
  109. the program being debugged stops (e.g., because of hitting a
  110. breakpoint, completing source-stepping, an interrupt, etc.).
  111. set style disassembler enabled on|off
  112. show style disassembler enabled
  113. If GDB is compiled with Python support, and the Python Pygments
  114. package is available, then, when this setting is on, disassembler
  115. output will have styling applied.
  116. set ada source-charset
  117. show ada source-charset
  118. Set the character set encoding that is assumed for Ada symbols. Valid
  119. values for this follow the values that can be passed to the GNAT
  120. compiler via the '-gnati' option. The default is ISO-8859-1.
  121. tui layout
  122. tui focus
  123. tui refresh
  124. tui window height
  125. These are the new names for the old 'layout', 'focus', 'refresh',
  126. and 'winheight' tui commands respectively. The old names still
  127. exist as aliases to these new commands.
  128. tui window width
  129. winwidth
  130. The new command 'tui window width', and the alias 'winwidth' allow
  131. the width of a tui window to be adjusted when windows are laid out
  132. in horizontal mode.
  133. set debug tui on|off
  134. show debug tui
  135. Control the display of debug output about GDB's tui.
  136. * Changed commands
  137. print
  138. Printing of floating-point values with base-modifying formats like
  139. /x has been changed to display the underlying bytes of the value in
  140. the desired base. This was GDB's documented behavior, but was never
  141. implemented correctly.
  142. maint packet
  143. This command can now print a reply, if the reply includes
  144. non-printable characters. Any non-printable characters are printed
  145. as escaped hex, e.g. \x?? where '??' is replaces with the value of
  146. the non-printable character.
  147. clone-inferior
  148. The clone-inferior command now ensures that the TTY, CMD and ARGS
  149. settings are copied from the original inferior to the new one.
  150. All modifications to the environment variables done using the 'set
  151. environment' or 'unset environment' commands are also copied to the new
  152. inferior.
  153. set debug lin-lwp on|off
  154. show debug lin-lwp
  155. These commands have been removed from GDB. The new command 'set
  156. debug linux-nat' and 'show debug linux-nat' should be used
  157. instead.
  158. info win
  159. This command now includes information about the width of the tui
  160. windows in its output.
  161. layout
  162. focus
  163. refresh
  164. winheight
  165. These commands are now aliases for the 'tui layout', 'tui focus',
  166. 'tui refresh', and 'tui window height' commands respectively.
  167. * GDB's Ada parser now supports an extension for specifying the exact
  168. byte contents of a floating-point literal. This can be useful for
  169. setting floating-point registers to a precise value without loss of
  170. precision. The syntax is an extension of the based literal syntax.
  171. Use, e.g., "16lf#0123abcd#" -- the number of "l"s controls the width
  172. of the floating-point type, and the "f" is the marker for floating
  173. point.
  174. * MI changes
  175. ** The '-add-inferior' with no option flags now inherits the
  176. connection of the current inferior, this restores the behaviour of
  177. GDB as it was prior to GDB 10.
  178. ** The '-add-inferior' command now accepts a '--no-connection'
  179. option, which causes the new inferior to start without a
  180. connection.
  181. * New targets
  182. GNU/Linux/LoongArch loongarch*-*-linux*
  183. * Removed targets
  184. S+core score-*-*
  185. * Python API
  186. ** New function gdb.add_history(), which takes a gdb.Value object
  187. and adds the value it represents to GDB's history list. An
  188. integer, the index of the new item in the history list, is
  189. returned.
  190. ** New function gdb.history_count(), which returns the number of
  191. values in GDB's value history.
  192. ** New gdb.events.gdb_exiting event. This event is called with a
  193. gdb.GdbExitingEvent object which has the read-only attribute
  194. 'exit_code', which contains the value of the GDB exit code. This
  195. event is triggered once GDB decides it is going to exit, but
  196. before GDB starts to clean up its internal state.
  197. ** New function gdb.architecture_names(), which returns a list
  198. containing all of the possible Architecture.name() values. Each
  199. entry is a string.
  200. ** New function gdb.Architecture.integer_type(), which returns an
  201. integer type given a size and a signed-ness.
  202. ** New gdb.TargetConnection object type that represents a connection
  203. (as displayed by the 'info connections' command). A sub-class,
  204. gdb.RemoteTargetConnection, is used to represent 'remote' and
  205. 'extended-remote' connections.
  206. ** The gdb.Inferior type now has a 'connection' property which is an
  207. instance of gdb.TargetConnection, the connection used by this
  208. inferior. This can be None if the inferior has no connection.
  209. ** New 'gdb.events.connection_removed' event registry, which emits a
  210. 'gdb.ConnectionEvent' when a connection is removed from GDB.
  211. This event has a 'connection' property, a gdb.TargetConnection
  212. object for the connection being removed.
  213. ** New gdb.connections() function that returns a list of all
  214. currently active connections.
  215. ** New gdb.RemoteTargetConnection.send_packet(PACKET) method. This
  216. is equivalent to the existing 'maint packet' CLI command; it
  217. allows a user specified packet to be sent to the remote target.
  218. ** New function gdb.host_charset(), returns a string, which is the
  219. name of the current host charset.
  220. ** New gdb.set_parameter(NAME, VALUE). This sets the gdb parameter
  221. NAME to VALUE.
  222. ** New gdb.with_parameter(NAME, VALUE). This returns a context
  223. manager that temporarily sets the gdb parameter NAME to VALUE,
  224. then resets it when the context is exited.
  225. ** The gdb.Value.format_string method now takes a 'styling'
  226. argument, which is a boolean. When true, the returned string can
  227. include escape sequences to apply styling. The styling will only
  228. be present if styling is otherwise turned on in GDB (see 'help
  229. set styling'). When false, which is the default if the argument
  230. is not given, then no styling is applied to the returned string.
  231. ** New read-only attribute gdb.InferiorThread.details, which is
  232. either a string, containing additional, target specific thread
  233. state information, or None, if there is no such additional
  234. information.
  235. ** New read-only attribute gdb.Type.is_scalar, which is True for
  236. scalar types, and False for all other types.
  237. ** New read-only attribute gdb.Type.is_signed. This attribute
  238. should only be read when Type.is_scalar is True, and will be True
  239. for signed types, and False for all other types. Attempting to
  240. read this attribute for non-scalar types will raise a ValueError.
  241. ** It is now possible to add GDB/MI commands implemented in Python.
  242. * New features in the GDB remote stub, GDBserver
  243. ** GDBserver is now supported on OpenRISC GNU/Linux.
  244. * New native configurations
  245. GNU/Linux/OpenRISC or1k*-*-linux*
  246. *** Changes in GDB 11
  247. * The 'set disassembler-options' command now supports specifying options
  248. for the ARC target.
  249. * GDB now supports general memory tagging functionality if the underlying
  250. architecture supports the proper primitives and hooks. Currently this is
  251. enabled only for AArch64 MTE.
  252. This includes:
  253. - Additional information when the inferior crashes with a SIGSEGV caused by
  254. a memory tag violation.
  255. - A new modifier 'm' for the "x" command, which displays allocation tags for a
  256. particular memory range.
  257. - Display of memory tag mismatches by "print", for addresses and
  258. pointers, if memory tagging is supported by the architecture.
  259. * Building GDB now requires GMP (The GNU Multiple Precision Arithmetic
  260. Library).
  261. * MI changes
  262. ** '-break-insert --qualified' and '-dprintf-insert --qualified'
  263. The MI -break-insert and -dprintf-insert commands now support a
  264. new "--qualified" option that makes GDB interpret a specified
  265. function name as a complete fully-qualified name. This is the
  266. equivalent of the CLI's "break -qualified" and "dprintf
  267. -qualified".
  268. ** '-break-insert --force-condition' and '-dprintf-insert --force-condition'
  269. The MI -break-insert and -dprintf-insert commands now support a
  270. '--force-condition' flag to forcibly define a condition even when
  271. the condition is invalid at all locations of the breakpoint. This
  272. is equivalent to the '-force-condition' flag of the CLI's "break"
  273. command.
  274. ** '-break-condition --force'
  275. The MI -break-condition command now supports a '--force' flag to
  276. forcibly define a condition even when the condition is invalid at
  277. all locations of the selected breakpoint. This is equivalent to
  278. the '-force' flag of the CLI's "cond" command.
  279. ** '-file-list-exec-source-files [--group-by-objfile]
  280. [--basename | --dirname]
  281. [--] [REGEXP]'
  282. The existing -file-list-exec-source-files command now takes an
  283. optional REGEXP which is used to filter the source files that are
  284. included in the results.
  285. By default REGEXP is matched against the full filename of the
  286. source file. When one of --basename or --dirname is given then
  287. REGEXP is only matched against the specified part of the full
  288. source filename.
  289. When the optional --group-by-objfile flag is used the output
  290. format is changed, the results are now a list of object files
  291. (executable and libraries) with the source files that are
  292. associated with each object file.
  293. The results from -file-list-exec-source-files now include a
  294. 'debug-fully-read' field which takes the value 'true' or 'false'.
  295. A 'true' value indicates the source file is from a compilation
  296. unit that has had its debug information fully read in by GDB, a
  297. value of 'false' indicates GDB has only performed a partial scan
  298. of the debug information so far.
  299. * GDB now supports core file debugging for x86_64 Cygwin programs.
  300. * GDB will now look for the .gdbinit file in a config directory before
  301. looking for ~/.gdbinit. The file is searched for in the following
  302. locations: $XDG_CONFIG_HOME/gdb/gdbinit, $HOME/.config/gdb/gdbinit,
  303. $HOME/.gdbinit. On Apple hosts the search order is instead:
  304. $HOME/Library/Preferences/gdb/gdbinit, $HOME/.gdbinit.
  305. * GDB now supports fixed point types which are described in DWARF
  306. as base types with a fixed-point encoding. Additionally, support
  307. for the DW_AT_GNU_numerator and DW_AT_GNU_denominator has also
  308. been added.
  309. For Ada, this allows support for fixed point types without requiring
  310. the use of the GNAT encoding (based on information added to the type's
  311. name following a GNAT-specific format).
  312. * GDB will now load and process commands from ~/.config/gdb/gdbearlyinit
  313. or ~/.gdbearlyinit if these files are present. These files are
  314. processed earlier than any of the other initialization files and
  315. can affect parts of GDB's startup that previously had already been
  316. completed before the initialization files were read, for example
  317. styling of the initial GDB greeting.
  318. * GDB now has two new options "--early-init-command" and
  319. "--early-init-eval-command" with corresponding short options "-eix"
  320. and "-eiex" that allow options (that would normally appear in a
  321. gdbearlyinit file) to be passed on the command line.
  322. * For RISC-V targets, the target feature "org.gnu.gdb.riscv.vector" is
  323. now understood by GDB, and can be used to describe the vector
  324. registers of a target. The precise requirements of this register
  325. feature are documented in the GDB manual.
  326. * For ARM targets, the "org.gnu.gdb.arm.m-profile-mve" feature is now
  327. supported by GDB and describes a new VPR register from the ARM MVE
  328. (Helium) extension. See the GDB manual for more information.
  329. * TUI improvements
  330. ** TUI windows now support mouse actions. The mouse wheel scrolls
  331. the appropriate window.
  332. ** Key combinations that do not have a specific action on the
  333. focused window are passed to GDB. For example, you now can use
  334. Ctrl-Left/Ctrl-Right to move between words in the command window
  335. regardless of which window is in focus. Previously you would
  336. need to focus on the command window for such key combinations to
  337. work.
  338. * New commands
  339. set debug event-loop
  340. show debug event-loop
  341. Control the display of debug output about GDB's event loop.
  342. set print memory-tag-violations
  343. show print memory-tag-violations
  344. Control whether to display additional information about memory tag violations
  345. when printing pointers and addresses. Architecture support for memory
  346. tagging is required for this option to have an effect.
  347. maintenance flush symbol-cache
  348. maintenance flush register-cache
  349. These new commands are equivalent to the already existing commands
  350. 'maintenance flush-symbol-cache' and 'flushregs' respectively.
  351. maintenance flush dcache
  352. A new command to flush the dcache.
  353. maintenance info target-sections
  354. Print GDB's internal target sections table.
  355. maintenance info jit
  356. Print the JIT code objects in the inferior known to GDB.
  357. memory-tag show-logical-tag POINTER
  358. Print the logical tag for POINTER.
  359. memory-tag with-logical-tag POINTER TAG
  360. Print POINTER with logical tag TAG.
  361. memory-tag show-allocation-tag ADDRESS
  362. Print the allocation tag for ADDRESS.
  363. memory-tag set-allocation-tag ADDRESS LENGTH TAGS
  364. Set the allocation tag for [ADDRESS, ADDRESS + LENGTH) to TAGS.
  365. memory-tag check POINTER
  366. Validate that POINTER's logical tag matches the allocation tag.
  367. set startup-quietly on|off
  368. show startup-quietly
  369. When 'on', this causes GDB to act as if "-silent" were passed on the
  370. command line. This command needs to be added to an early
  371. initialization file (e.g. ~/.config/gdb/gdbearlyinit) in order to
  372. affect GDB.
  373. set print type hex on|off
  374. show print type hex
  375. When 'on', the 'ptype' command uses hexadecimal notation to print sizes
  376. and offsets of struct members. When 'off', decimal notation is used.
  377. set python ignore-environment on|off
  378. show python ignore-environment
  379. When 'on', this causes GDB's builtin Python to ignore any
  380. environment variables that would otherwise affect how Python
  381. behaves. This command needs to be added to an early initialization
  382. file (e.g. ~/.config/gdb/gdbearlyinit) in order to affect GDB.
  383. set python dont-write-bytecode auto|on|off
  384. show python dont-write-bytecode
  385. When 'on', this causes GDB's builtin Python to not write any
  386. byte-code (.pyc files) to disk. This command needs to be added to
  387. an early initialization file (e.g. ~/.config/gdb/gdbearlyinit) in
  388. order to affect GDB. When 'off' byte-code will always be written.
  389. When set to 'auto' (the default) Python will check the
  390. PYTHONDONTWRITEBYTECODE environment variable.
  391. * Changed commands
  392. break [PROBE_MODIFIER] [LOCATION] [thread THREADNUM]
  393. [-force-condition] [if CONDITION]
  394. This command would previously refuse setting a breakpoint if the
  395. CONDITION expression is invalid at a location. It now accepts and
  396. defines the breakpoint if there is at least one location at which
  397. the CONDITION is valid. The locations for which the CONDITION is
  398. invalid, are automatically disabled. If CONDITION is invalid at all
  399. of the locations, setting the breakpoint is still rejected. However,
  400. the '-force-condition' flag can be used in this case for forcing GDB to
  401. define the breakpoint, making all the current locations automatically
  402. disabled. This may be useful if the user knows the condition will
  403. become meaningful at a future location, e.g. due to a shared library
  404. load.
  405. condition [-force] N COND
  406. The behavior of this command is changed the same way for the 'break'
  407. command as explained above. The '-force' flag can be used to force
  408. GDB into defining the condition even when COND is invalid for all the
  409. current locations of breakpoint N.
  410. flushregs
  411. maintenance flush-symbol-cache
  412. These commands are deprecated in favor of the new commands
  413. 'maintenance flush register-cache' and 'maintenance flush
  414. symbol-cache' respectively.
  415. set style version foreground COLOR
  416. set style version background COLOR
  417. set style version intensity VALUE
  418. Control the styling of GDB's version number text.
  419. inferior [ID]
  420. When the ID parameter is omitted, then this command prints information
  421. about the current inferior. When the ID parameter is present, the
  422. behavior of the command is unchanged and have the inferior ID become
  423. the current inferior.
  424. maintenance info sections
  425. The ALLOBJ keyword has been replaced with an -all-objects command
  426. line flag. It is now possible to filter which sections are printed
  427. even when -all-objects is passed.
  428. ptype[/FLAGS] TYPE | EXPRESSION
  429. The 'ptype' command has two new flags. When '/x' is set, hexadecimal
  430. notation is used when printing sizes and offsets of struct members.
  431. When '/d' is set, decimal notation is used when printing sizes and
  432. offsets of struct members. Default behavior is given by 'show print
  433. type hex'.
  434. info sources
  435. The info sources command output has been restructured. The results
  436. are now based around a list of objfiles (executable and libraries),
  437. and for each objfile the source files that are part of that objfile
  438. are listed.
  439. * Removed targets and native configurations
  440. ARM Symbian arm*-*-symbianelf*
  441. * New remote packets
  442. qMemTags
  443. Request the remote to send allocation tags for a particular memory range.
  444. QMemTags
  445. Request the remote to store the specified allocation tags to the requested
  446. memory range.
  447. * Guile API
  448. ** Improved support for rvalue reference values:
  449. TYPE_CODE_RVALUE_REF is now exported as part of the API and the
  450. value-referenced-value procedure now handles rvalue reference
  451. values.
  452. ** New procedures for obtaining value variants:
  453. value-reference-value, value-rvalue-reference-value and
  454. value-const-value.
  455. ** Temporary breakpoints can now be created with make-breakpoint and
  456. tested for using breakpoint-temporary?.
  457. * Python API
  458. ** Inferior objects now contain a read-only 'connection_num' attribute that
  459. gives the connection number as seen in 'info connections' and
  460. 'info inferiors'.
  461. ** New method gdb.Frame.level() which returns the stack level of the
  462. frame object.
  463. ** New method gdb.PendingFrame.level() which returns the stack level
  464. of the frame object.
  465. ** When hitting a catchpoint, the Python API will now emit a
  466. gdb.BreakpointEvent rather than a gdb.StopEvent. The
  467. gdb.Breakpoint attached to the event will have type BP_CATCHPOINT.
  468. ** Python TUI windows can now receive mouse click events. If the
  469. Window object implements the click method, it is called for each
  470. mouse click event in this window.
  471. *** Changes in GDB 10
  472. * There are new feature names for ARC targets: "org.gnu.gdb.arc.core"
  473. and "org.gnu.gdb.arc.aux". The old names are still supported but
  474. must be considered obsolete. They will be deprecated after some
  475. grace period.
  476. * Help and apropos commands will now show the documentation of a
  477. command only once, even if that command has one or more aliases.
  478. These commands now show the command name, then all of its aliases,
  479. and finally the description of the command.
  480. * 'help aliases' now shows only the user defined aliases. GDB predefined
  481. aliases are shown together with their aliased command.
  482. * GDB now supports debuginfod, an HTTP server for distributing ELF/DWARF
  483. debugging information as well as source code.
  484. When built with debuginfod, GDB can automatically query debuginfod
  485. servers for the separate debug files and source code of the executable
  486. being debugged.
  487. To build GDB with debuginfod, pass --with-debuginfod to configure (this
  488. requires libdebuginfod, the debuginfod client library).
  489. debuginfod is distributed with elfutils, starting with version 0.178.
  490. You can get the latest version from https://sourceware.org/elfutils.
  491. * Multi-target debugging support
  492. GDB now supports debugging multiple target connections
  493. simultaneously. For example, you can now have each inferior
  494. connected to different remote servers running in different machines,
  495. or have one inferior debugging a local native process, an inferior
  496. debugging a core dump, etc.
  497. This support is experimental and comes with some limitations -- you
  498. can only resume multiple targets simultaneously if all targets
  499. support non-stop mode, and all remote stubs or servers must support
  500. the same set of remote protocol features exactly. See also "info
  501. connections" and "add-inferior -no-connection" below, and "maint set
  502. target-non-stop" in the user manual.
  503. * New features in the GDB remote stub, GDBserver
  504. ** GDBserver is now supported on ARC GNU/Linux.
  505. ** GDBserver is now supported on RISC-V GNU/Linux.
  506. ** GDBserver no longer supports these host triplets:
  507. i[34567]86-*-lynxos*
  508. powerpc-*-lynxos*
  509. i[34567]86-*-nto*
  510. bfin-*-*linux*
  511. crisv32-*-linux*
  512. cris-*-linux*
  513. m32r*-*-linux*
  514. tilegx-*-linux*
  515. arm*-*-mingw32ce*
  516. i[34567]86-*-mingw32ce*
  517. * Debugging MS-Windows processes now sets $_exitsignal when the
  518. inferior is terminated by a signal, instead of setting $_exitcode.
  519. * Multithreaded symbol loading has now been enabled by default on systems
  520. that support it (see entry for GDB 9, below), providing faster
  521. performance for programs with many symbols.
  522. * The $_siginfo convenience variable now also works on Windows targets,
  523. and will display the EXCEPTION_RECORD of the last handled exception.
  524. * TUI windows can now be arranged horizontally.
  525. * The command history filename can now be set to the empty string
  526. either using 'set history filename' or by setting 'GDBHISTFILE=' in
  527. the environment. The effect of setting this filename to the empty
  528. string is that GDB will not try to load any previous command
  529. history.
  530. * On Windows targets, it is now possible to debug 32-bit programs with a
  531. 64-bit GDB.
  532. * New commands
  533. set exec-file-mismatch -- Set exec-file-mismatch handling (ask|warn|off).
  534. show exec-file-mismatch -- Show exec-file-mismatch handling (ask|warn|off).
  535. Set or show the option 'exec-file-mismatch'. When GDB attaches to a
  536. running process, this new option indicates whether to detect
  537. a mismatch between the current executable file loaded by GDB and the
  538. executable file used to start the process. If 'ask', the default,
  539. display a warning and ask the user whether to load the process
  540. executable file; if 'warn', just display a warning; if 'off', don't
  541. attempt to detect a mismatch.
  542. tui new-layout NAME WINDOW WEIGHT [WINDOW WEIGHT]...
  543. Define a new TUI layout, specifying its name and the windows that
  544. will be displayed.
  545. maintenance print xml-tdesc [FILE]
  546. Prints the current target description as an XML document. If the
  547. optional FILE is provided (which is an XML target description) then
  548. the target description is read from FILE into GDB, and then
  549. reprinted.
  550. maintenance print core-file-backed-mappings
  551. Prints file-backed mappings loaded from a core file's note section.
  552. Output is expected to be similar to that of "info proc mappings".
  553. set debug fortran-array-slicing on|off
  554. show debug fortran-array-slicing
  555. Print debugging when taking slices of Fortran arrays.
  556. set fortran repack-array-slices on|off
  557. show fortran repack-array-slices
  558. When taking slices from Fortran arrays and strings, if the slice is
  559. non-contiguous within the original value then, when this option is
  560. on, the new value will be repacked into a single contiguous value.
  561. When this option is off, then the value returned will consist of a
  562. descriptor that describes the slice within the memory of the
  563. original parent value.
  564. * Changed commands
  565. alias [-a] [--] ALIAS = COMMAND [DEFAULT-ARGS...]
  566. The alias command can now specify default args for an alias.
  567. GDB automatically prepends the alias default args to the argument list
  568. provided explicitly by the user.
  569. For example, to have a backtrace with full details, you can define
  570. an alias 'bt_ALL' as
  571. 'alias bt_ALL = backtrace -entry-values both -frame-arg all
  572. -past-main -past-entry -full'.
  573. Alias default arguments can also use a set of nested 'with' commands,
  574. e.g. 'alias pp10 = with print pretty -- with print elem 10 -- print'
  575. defines the alias pp10 that will pretty print a maximum of 10 elements
  576. of the given expression (if the expression is an array).
  577. * New targets
  578. GNU/Linux/RISC-V (gdbserver) riscv*-*-linux*
  579. BPF bpf-unknown-none
  580. Z80 z80-unknown-*
  581. * Python API
  582. ** gdb.register_window_type can be used to implement new TUI windows
  583. in Python.
  584. ** Dynamic types can now be queried. gdb.Type has a new attribute,
  585. "dynamic", and gdb.Type.sizeof can be None for a dynamic type. A
  586. field of a dynamic type may have None for its "bitpos" attribute
  587. as well.
  588. ** Commands written in Python can be in the "TUI" help class by
  589. registering with the new constant gdb.COMMAND_TUI.
  590. ** New method gdb.PendingFrame.architecture () to retrieve the
  591. architecture of the pending frame.
  592. ** New gdb.Architecture.registers method that returns a
  593. gdb.RegisterDescriptorIterator object, an iterator that returns
  594. gdb.RegisterDescriptor objects. The new RegisterDescriptor is a
  595. way to query the registers available for an architecture.
  596. ** New gdb.Architecture.register_groups method that returns a
  597. gdb.RegisterGroupIterator object, an iterator that returns
  598. gdb.RegisterGroup objects. The new RegisterGroup is a way to
  599. discover the available register groups.
  600. * Guile API
  601. ** GDB can now be built with GNU Guile 3.0 and 2.2 in addition to 2.0.
  602. ** Procedures 'memory-port-read-buffer-size',
  603. 'set-memory-port-read-buffer-size!', 'memory-port-write-buffer-size',
  604. and 'set-memory-port-write-buffer-size!' are deprecated. When
  605. using Guile 2.2 and later, users who need to control the size of
  606. a memory port's internal buffer can use the 'setvbuf' procedure.
  607. *** Changes in GDB 9
  608. * 'thread-exited' event is now available in the annotations interface.
  609. * New built-in convenience variables $_gdb_major and $_gdb_minor
  610. provide the GDB version. They are handy for conditionally using
  611. features available only in or since specific GDB versions, in
  612. scripts that should work error-free with many different versions,
  613. such as in system-wide init files.
  614. * New built-in convenience functions $_gdb_setting, $_gdb_setting_str,
  615. $_gdb_maint_setting and $_gdb_maint_setting_str provide access to values
  616. of the GDB settings and the GDB maintenance settings. They are handy
  617. for changing the logic of user defined commands depending on the
  618. current GDB settings.
  619. * GDB now supports Thread Local Storage (TLS) variables on several
  620. FreeBSD architectures (amd64, i386, powerpc, riscv). Other
  621. architectures require kernel changes. TLS is not yet supported for
  622. amd64 and i386 process core dumps.
  623. * Support for Pointer Authentication (PAC) on AArch64 Linux. Return
  624. addresses that required unmasking are shown in the backtrace with the
  625. postfix [PAC].
  626. * Two new convenience functions $_cimag and $_creal that extract the
  627. imaginary and real parts respectively from complex numbers.
  628. * New built-in convenience variables $_shell_exitcode and $_shell_exitsignal
  629. provide the exitcode or exit status of the shell commands launched by
  630. GDB commands such as "shell", "pipe" and "make".
  631. * The command define-prefix can now define user defined prefix commands.
  632. User defined commands can now be defined using these user defined prefix
  633. commands.
  634. * Command names can now use the . character.
  635. * The RX port now supports XML target descriptions.
  636. * GDB now shows the Ada task names at more places, e.g. in task switching
  637. messages.
  638. * GDB can now be compiled with Python 3 on Windows.
  639. * New convenience variable $_ada_exception holds the address of the
  640. Ada exception being thrown. This is set by Ada-related catchpoints.
  641. * GDB can now place breakpoints on nested functions and subroutines in
  642. Fortran code. The '::' operator can be used between parent and
  643. child scopes when placing breakpoints, for example:
  644. (gdb) break outer_function::inner_function
  645. The 'outer_function::' prefix is only needed if 'inner_function' is
  646. not visible in the current scope.
  647. * In addition to the system-wide gdbinit file, if configured with
  648. --with-system-gdbinit-dir, GDB will now also load files in that directory
  649. as system gdbinit files, unless the -nx or -n flag is provided. Files
  650. with extensions .gdb, .py and .scm are supported as long as GDB was
  651. compiled with support for that language.
  652. * GDB now supports multithreaded symbol loading for higher performance.
  653. This feature is still in testing, so it is disabled by default. You
  654. can turn it on using 'maint set worker-threads unlimited'.
  655. * Python API
  656. ** The gdb.Value type has a new method 'format_string' which returns a
  657. string representing the value. The formatting is controlled by the
  658. optional keyword arguments: 'raw', 'pretty_arrays', 'pretty_structs',
  659. 'array_indexes', 'symbols', 'unions', 'deref_refs', 'actual_objects',
  660. 'static_members', 'max_elements', 'repeat_threshold', and 'format'.
  661. ** gdb.Type has a new property 'objfile' which returns the objfile the
  662. type was defined in.
  663. ** The frame information printed by the python frame filtering code
  664. is now consistent with what the 'backtrace' command prints when
  665. there are no filters, or when the 'backtrace' '-no-filters' option
  666. is given.
  667. ** The new function gdb.lookup_static_symbol can be used to look up
  668. symbols with static linkage.
  669. ** The new function gdb.lookup_static_symbols can be used to look up
  670. all static symbols with static linkage.
  671. ** gdb.Objfile has new methods 'lookup_global_symbol' and
  672. 'lookup_static_symbol' to lookup a symbol from this objfile only.
  673. ** gdb.Block now supports the dictionary syntax for accessing symbols in
  674. this block (e.g. block['local_variable']).
  675. * New commands
  676. | [COMMAND] | SHELL_COMMAND
  677. | -d DELIM COMMAND DELIM SHELL_COMMAND
  678. pipe [COMMAND] | SHELL_COMMAND
  679. pipe -d DELIM COMMAND DELIM SHELL_COMMAND
  680. Executes COMMAND and sends its output to SHELL_COMMAND.
  681. With no COMMAND, repeat the last executed command
  682. and send its output to SHELL_COMMAND.
  683. define-prefix COMMAND
  684. Define or mark a command as a user-defined prefix command.
  685. with SETTING [VALUE] [-- COMMAND]
  686. w SETTING [VALUE] [-- COMMAND]
  687. Temporarily set SETTING, run COMMAND, and restore SETTING.
  688. Usage: with SETTING -- COMMAND
  689. With no COMMAND, repeats the last executed command.
  690. SETTING is any GDB setting you can change with the "set"
  691. subcommands. For example, 'with language c -- print someobj'
  692. temporarily switches to the C language in order to print someobj.
  693. Settings can be combined: 'w lang c -- w print elements unlimited --
  694. usercmd' switches to the C language and runs usercmd with no limit
  695. of array elements to print.
  696. maint with SETTING [VALUE] [-- COMMAND]
  697. Like "with", but works with "maintenance set" settings.
  698. set may-call-functions [on|off]
  699. show may-call-functions
  700. This controls whether GDB will attempt to call functions in
  701. the program, such as with expressions in the print command. It
  702. defaults to on. Calling functions in the program being debugged
  703. can have undesired side effects. It is now possible to forbid
  704. such function calls. If function calls are forbidden, GDB will throw
  705. an error when a command (such as print expression) calls a function
  706. in the program.
  707. set print finish [on|off]
  708. show print finish
  709. This controls whether the `finish' command will display the value
  710. that is returned by the current function. When `off', the value is
  711. still entered into the value history, but it is not printed. The
  712. default is `on'.
  713. set print max-depth
  714. show print max-depth
  715. Allows deeply nested structures to be simplified when printing by
  716. replacing deeply nested parts (beyond the max-depth) with ellipses.
  717. The default max-depth is 20, but this can be set to unlimited to get
  718. the old behavior back.
  719. set print raw-values [on|off]
  720. show print raw-values
  721. By default, GDB applies the enabled pretty printers when printing a
  722. value. This allows to ignore the enabled pretty printers for a series
  723. of commands. The default is 'off'.
  724. set logging debugredirect [on|off]
  725. By default, GDB debug output will go to both the terminal and the logfile.
  726. Set if you want debug output to go only to the log file.
  727. set style title foreground COLOR
  728. set style title background COLOR
  729. set style title intensity VALUE
  730. Control the styling of titles.
  731. set style highlight foreground COLOR
  732. set style highlight background COLOR
  733. set style highlight intensity VALUE
  734. Control the styling of highlightings.
  735. maint set worker-threads
  736. maint show worker-threads
  737. Control the number of worker threads that can be used by GDB. The
  738. default is 0. "unlimited" lets GDB choose a number that is
  739. reasonable. Currently worker threads are only used when demangling
  740. the names of linker symbols.
  741. set style tui-border foreground COLOR
  742. set style tui-border background COLOR
  743. Control the styling of TUI borders.
  744. set style tui-active-border foreground COLOR
  745. set style tui-active-border background COLOR
  746. Control the styling of the active TUI border.
  747. maint set test-settings KIND
  748. maint show test-settings KIND
  749. A set of commands used by the testsuite for exercising the settings
  750. infrastructure.
  751. maint set tui-resize-message [on|off]
  752. maint show tui-resize-message
  753. Control whether GDB prints a message each time the terminal is
  754. resized when in TUI mode. This is primarily useful for testing the
  755. TUI.
  756. set print frame-info [short-location|location|location-and-address
  757. |source-and-location|source-line|auto]
  758. show print frame-info
  759. This controls what frame information is printed by the commands printing
  760. a frame. This setting will e.g. influence the behaviour of 'backtrace',
  761. 'frame', 'stepi'. The python frame filtering also respect this setting.
  762. The 'backtrace' '-frame-info' option can override this global setting.
  763. set tui compact-source
  764. show tui compact-source
  765. Enable the "compact" display mode for the TUI source window. The
  766. compact display uses only as much space as is needed for the line
  767. numbers in the current file, and only a single space to separate the
  768. line numbers from the source.
  769. info modules [-q] [REGEXP]
  770. Return a list of Fortran modules matching REGEXP, or all modules if
  771. no REGEXP is given.
  772. info module functions [-q] [-m MODULE_REGEXP] [-t TYPE_REGEXP] [REGEXP]
  773. Return a list of functions within all modules, grouped by module.
  774. The list of functions can be restricted with the optional regular
  775. expressions. MODULE_REGEXP matches against the module name,
  776. TYPE_REGEXP matches against the function type signature, and REGEXP
  777. matches against the function name.
  778. info module variables [-q] [-m MODULE_REGEXP] [-t TYPE_REGEXP] [REGEXP]
  779. Return a list of variables within all modules, grouped by module.
  780. The list of variables can be restricted with the optional regular
  781. expressions. MODULE_REGEXP matches against the module name,
  782. TYPE_REGEXP matches against the variable type, and REGEXP matches
  783. against the variable name.
  784. set debug remote-packet-max-chars
  785. show debug remote-packet-max-chars
  786. Controls the number of characters to output in a remote packet when using
  787. "set debug remote".
  788. The default is 512 bytes.
  789. info connections
  790. Lists the target connections currently in use.
  791. * Changed commands
  792. help
  793. The "help" command uses the title style to enhance the
  794. readibility of its output by styling the classes and
  795. command names.
  796. apropos [-v] REGEXP
  797. Similarly to "help", the "apropos" command also uses the
  798. title style for the command names. "apropos" accepts now
  799. a flag "-v" (verbose) to show the full documentation
  800. of matching commands and to use the highlight style to mark
  801. the documentation parts matching REGEXP.
  802. printf
  803. eval
  804. The GDB printf and eval commands can now print C-style and Ada-style
  805. string convenience variables without calling functions in the program.
  806. This allows to do formatted printing of strings without having
  807. a running inferior, or when debugging a core dump.
  808. info sources [-dirname | -basename] [--] [REGEXP]
  809. This command has now optional arguments to only print the files
  810. whose names match REGEXP. The arguments -dirname and -basename
  811. allow to restrict matching respectively to the dirname and basename
  812. parts of the files.
  813. show style
  814. The "show style" and its subcommands are now styling
  815. a style name in their output using its own style, to help
  816. the user visualize the different styles.
  817. set print frame-arguments
  818. The new value 'presence' indicates to only indicate the presence of
  819. arguments using ..., instead of printing argument names and values.
  820. set print raw-frame-arguments
  821. show print raw-frame-arguments
  822. These commands replace the similarly-named "set/show print raw
  823. frame-arguments" commands (now with a dash instead of a space). The
  824. old commands are now deprecated and may be removed in a future
  825. release.
  826. add-inferior [-no-connection]
  827. The add-inferior command now supports a "-no-connection" flag that
  828. makes the new inferior start with no target connection associated.
  829. By default, the new inferior inherits the target connection of the
  830. current inferior. See also "info connections".
  831. info inferior
  832. This command's output now includes a new "Connection" column
  833. indicating which target connection an inferior is bound to. See
  834. "info connections" above.
  835. maint test-options require-delimiter
  836. maint test-options unknown-is-error
  837. maint test-options unknown-is-operand
  838. maint show test-options-completion-result
  839. Commands used by the testsuite to validate the command options
  840. framework.
  841. focus, winheight, +, -, >, <
  842. These commands are now case-sensitive.
  843. * New command options, command completion
  844. GDB now has a standard infrastructure to support dash-style command
  845. options ('-OPT'). One benefit is that commands that use it can
  846. easily support completion of command line arguments. Try "CMD
  847. -[TAB]" or "help CMD" to find options supported by a command. Over
  848. time, we intend to migrate most commands to this infrastructure. A
  849. number of commands got support for new command options in this
  850. release:
  851. ** The "print" and "compile print" commands now support a number of
  852. options that allow overriding relevant global print settings as
  853. set by "set print" subcommands:
  854. -address [on|off]
  855. -array [on|off]
  856. -array-indexes [on|off]
  857. -elements NUMBER|unlimited
  858. -null-stop [on|off]
  859. -object [on|off]
  860. -pretty [on|off]
  861. -raw-values [on|off]
  862. -repeats NUMBER|unlimited
  863. -static-members [on|off]
  864. -symbol [on|off]
  865. -union [on|off]
  866. -vtbl [on|off]
  867. Note that because the "print"/"compile print" commands accept
  868. arbitrary expressions which may look like options (including
  869. abbreviations), if you specify any command option, then you must
  870. use a double dash ("--") to mark the end of argument processing.
  871. ** The "backtrace" command now supports a number of options that
  872. allow overriding relevant global print settings as set by "set
  873. backtrace" and "set print" subcommands:
  874. -entry-values no|only|preferred|if-needed|both|compact|default
  875. -frame-arguments all|scalars|none
  876. -raw-frame-arguments [on|off]
  877. -frame-info auto|source-line|location|source-and-location
  878. |location-and-address|short-location
  879. -past-main [on|off]
  880. -past-entry [on|off]
  881. In addition, the full/no-filters/hide qualifiers are now also
  882. exposed as command options too:
  883. -full
  884. -no-filters
  885. -hide
  886. ** The "frame apply", "tfaas" and "faas" commands similarly now
  887. support the following options:
  888. -past-main [on|off]
  889. -past-entry [on|off]
  890. ** The new "info sources" options -dirname and -basename options
  891. are using the standard '-OPT' infrastructure.
  892. All options above can also be abbreviated. The argument of boolean
  893. (on/off) options can be 0/1 too, and also the argument is assumed
  894. "on" if omitted. This allows writing compact command invocations,
  895. like for example:
  896. (gdb) p -ra -p -o 0 -- *myptr
  897. The above is equivalent to:
  898. (gdb) print -raw-values -pretty -object off -- *myptr
  899. ** The "info types" command now supports the '-q' flag to disable
  900. printing of some header information in a similar fashion to "info
  901. variables" and "info functions".
  902. ** The "info variables", "info functions", and "whereis" commands
  903. now take a '-n' flag that excludes non-debug symbols (symbols
  904. from the symbol table, not from the debug info such as DWARF)
  905. from the results.
  906. * Completion improvements
  907. ** GDB can now complete the options of the "thread apply all" and
  908. "taas" commands, and their "-ascending" option can now be
  909. abbreviated.
  910. ** GDB can now complete the options of the "info threads", "info
  911. functions", "info variables", "info locals", and "info args"
  912. commands.
  913. ** GDB can now complete the options of the "compile file" and
  914. "compile code" commands. The "compile file" command now
  915. completes on filenames.
  916. ** GDB can now complete the backtrace command's
  917. "full/no-filters/hide" qualifiers.
  918. * In settings, you can now abbreviate "unlimited".
  919. E.g., "set print elements u" is now equivalent to "set print
  920. elements unlimited".
  921. * New MI commands
  922. -complete
  923. This lists all the possible completions for the rest of the line, if it
  924. were to be given as a command itself. This is intended for use by MI
  925. frontends in cases when separate CLI and MI channels cannot be used.
  926. -catch-throw, -catch-rethrow, and -catch-catch
  927. These can be used to catch C++ exceptions in a similar fashion to
  928. the CLI commands 'catch throw', 'catch rethrow', and 'catch catch'.
  929. -symbol-info-functions, -symbol-info-types, and -symbol-info-variables
  930. These commands are the MI equivalent of the CLI commands 'info
  931. functions', 'info types', and 'info variables' respectively.
  932. -symbol-info-modules, this is the MI equivalent of the CLI 'info
  933. modules' command.
  934. -symbol-info-module-functions and -symbol-info-module-variables.
  935. These commands are the MI equivalent of the CLI commands 'info
  936. module functions' and 'info module variables'.
  937. * Other MI changes
  938. ** The default version of the MI interpreter is now 3 (-i=mi3).
  939. ** The output of information about multi-location breakpoints (which is
  940. syntactically incorrect in MI 2) has changed in MI 3. This affects
  941. the following commands and events:
  942. - -break-insert
  943. - -break-info
  944. - =breakpoint-created
  945. - =breakpoint-modified
  946. The -fix-multi-location-breakpoint-output command can be used to enable
  947. this behavior with previous MI versions.
  948. ** Backtraces and frames include a new optional field addr_flags which is
  949. given after the addr field. On AArch64 this contains PAC if the address
  950. has been masked in the frame. On all other targets the field is not
  951. present.
  952. * Testsuite
  953. The testsuite now creates the files gdb.cmd (containing the arguments
  954. used to launch GDB) and gdb.in (containing all the commands sent to
  955. GDB) in the output directory for each test script. Multiple invocations
  956. are appended with .1, .2, .3 etc.
  957. * Building GDB and GDBserver now requires GNU make >= 3.82.
  958. Using another implementation of the make program or an earlier version of
  959. GNU make to build GDB or GDBserver is not supported.
  960. * Building GDB now requires GNU readline >= 7.0.
  961. GDB now bundles GNU readline 8.0, but if you choose to use
  962. --with-system-readline, only readline >= 7.0 can be used.
  963. * The TUI SingleKey keymap is now named "SingleKey". This can be used
  964. from .inputrc to bind keys in this keymap. This feature is only
  965. available when gdb is built against GNU readline 8.0 or later.
  966. * Removed targets and native configurations
  967. GDB no longer supports debugging the Cell Broadband Engine. This includes
  968. both debugging standalone Cell/B.E. SPU applications and integrated debugging
  969. of Cell/B.E. applications that use both the PPU and SPU architectures.
  970. * New Simulators
  971. TI PRU pru-*-elf
  972. * Removed targets and native configurations
  973. Solaris 10 i?86-*-solaris2.10, x86_64-*-solaris2.10,
  974. sparc*-*-solaris2.10
  975. *** Changes in GDB 8.3
  976. * GDB and GDBserver now support access to additional registers on
  977. PowerPC GNU/Linux targets: PPR, DSCR, TAR, EBB/PMU registers, and
  978. HTM registers.
  979. * GDB now has experimental support for the compilation and injection of
  980. C++ source code into the inferior. This beta release does not include
  981. support for several language features, such as templates, constructors,
  982. and operators.
  983. This feature requires GCC 7.1 or higher built with libcp1.so
  984. (the C++ plug-in).
  985. * GDB and GDBserver now support IPv6 connections. IPv6 addresses
  986. can be passed using the '[ADDRESS]:PORT' notation, or the regular
  987. 'ADDRESS:PORT' method.
  988. * DWARF index cache: GDB can now automatically save indices of DWARF
  989. symbols on disk to speed up further loading of the same binaries.
  990. * Ada task switching is now supported on aarch64-elf targets when
  991. debugging a program using the Ravenscar Profile. For more information,
  992. see the "Tasking Support when using the Ravenscar Profile" section
  993. in the GDB user manual.
  994. * GDB in batch mode now exits with status 1 if the last command to be
  995. executed failed.
  996. * The RISC-V target now supports target descriptions.
  997. * System call catchpoints now support system call aliases on FreeBSD.
  998. When the ABI of a system call changes in FreeBSD, this is
  999. implemented by leaving a compatibility system call using the old ABI
  1000. at the existing number and allocating a new system call number for
  1001. the new ABI. For example, FreeBSD 12 altered the layout of 'struct
  1002. kevent' used by the 'kevent' system call. As a result, FreeBSD 12
  1003. kernels ship with both 'kevent' and 'freebsd11_kevent' system calls.
  1004. The 'freebsd11_kevent' system call is assigned an alias of 'kevent'
  1005. so that a system call catchpoint for the 'kevent' system call will
  1006. catch invocations of both the 'kevent' and 'freebsd11_kevent'
  1007. binaries. This ensures that 'kevent' system calls are caught for
  1008. binaries using either the old or new ABIs.
  1009. * Terminal styling is now available for the CLI and the TUI. GNU
  1010. Source Highlight can additionally be used to provide styling of
  1011. source code snippets. See the "set style" commands, below, for more
  1012. information.
  1013. * Removed support for old demangling styles arm, edg, gnu, hp and
  1014. lucid.
  1015. * New commands
  1016. set debug compile-cplus-types
  1017. show debug compile-cplus-types
  1018. Control the display of debug output about type conversion in the
  1019. C++ compile feature. Commands have no effect while compiling
  1020. for other languages.
  1021. set debug skip
  1022. show debug skip
  1023. Control whether debug output about files/functions skipping is
  1024. displayed.
  1025. frame apply [all | COUNT | -COUNT | level LEVEL...] [FLAG]... COMMAND
  1026. Apply a command to some frames.
  1027. FLAG arguments allow to control what output to produce and how to handle
  1028. errors raised when applying COMMAND to a frame.
  1029. taas COMMAND
  1030. Apply a command to all threads (ignoring errors and empty output).
  1031. Shortcut for 'thread apply all -s COMMAND'.
  1032. faas COMMAND
  1033. Apply a command to all frames (ignoring errors and empty output).
  1034. Shortcut for 'frame apply all -s COMMAND'.
  1035. tfaas COMMAND
  1036. Apply a command to all frames of all threads (ignoring errors and empty
  1037. output).
  1038. Shortcut for 'thread apply all -s frame apply all -s COMMAND'.
  1039. maint set dwarf unwinders (on|off)
  1040. maint show dwarf unwinders
  1041. Control whether DWARF unwinders can be used.
  1042. info proc files
  1043. Display a list of open files for a process.
  1044. * Changed commands
  1045. Changes to the "frame", "select-frame", and "info frame" CLI commands.
  1046. These commands all now take a frame specification which
  1047. is either a frame level, or one of the keywords 'level', 'address',
  1048. 'function', or 'view' followed by a parameter. Selecting a frame by
  1049. address, or viewing a frame outside the current backtrace now
  1050. requires the use of a keyword. Selecting a frame by level is
  1051. unchanged. The MI comment "-stack-select-frame" is unchanged.
  1052. target remote FILENAME
  1053. target extended-remote FILENAME
  1054. If FILENAME is a Unix domain socket, GDB will attempt to connect
  1055. to this socket instead of opening FILENAME as a character device.
  1056. info args [-q] [-t TYPEREGEXP] [NAMEREGEXP]
  1057. info functions [-q] [-t TYPEREGEXP] [NAMEREGEXP]
  1058. info locals [-q] [-t TYPEREGEXP] [NAMEREGEXP]
  1059. info variables [-q] [-t TYPEREGEXP] [NAMEREGEXP]
  1060. These commands can now print only the searched entities
  1061. matching the provided regexp(s), giving a condition
  1062. on the entity names or entity types. The flag -q disables
  1063. printing headers or informations messages.
  1064. info functions
  1065. info types
  1066. info variables
  1067. rbreak
  1068. These commands now determine the syntax for the shown entities
  1069. according to the language chosen by `set language'. In particular,
  1070. `set language auto' means to automatically choose the language of
  1071. the shown entities.
  1072. thread apply [all | COUNT | -COUNT] [FLAG]... COMMAND
  1073. The 'thread apply' command accepts new FLAG arguments.
  1074. FLAG arguments allow to control what output to produce and how to handle
  1075. errors raised when applying COMMAND to a thread.
  1076. set tui tab-width NCHARS
  1077. show tui tab-width NCHARS
  1078. "set tui tab-width" replaces the "tabset" command, which has been deprecated.
  1079. set style enabled [on|off]
  1080. show style enabled
  1081. Enable or disable terminal styling. Styling is enabled by default
  1082. on most hosts, but disabled by default when in batch mode.
  1083. set style sources [on|off]
  1084. show style sources
  1085. Enable or disable source code styling. Source code styling is
  1086. enabled by default, but only takes effect if styling in general is
  1087. enabled, and if GDB was linked with GNU Source Highlight.
  1088. set style filename foreground COLOR
  1089. set style filename background COLOR
  1090. set style filename intensity VALUE
  1091. Control the styling of file names.
  1092. set style function foreground COLOR
  1093. set style function background COLOR
  1094. set style function intensity VALUE
  1095. Control the styling of function names.
  1096. set style variable foreground COLOR
  1097. set style variable background COLOR
  1098. set style variable intensity VALUE
  1099. Control the styling of variable names.
  1100. set style address foreground COLOR
  1101. set style address background COLOR
  1102. set style address intensity VALUE
  1103. Control the styling of addresses.
  1104. * MI changes
  1105. ** The '-data-disassemble' MI command now accepts an '-a' option to
  1106. disassemble the whole function surrounding the given program
  1107. counter value or function name. Support for this feature can be
  1108. verified by using the "-list-features" command, which should
  1109. contain "data-disassemble-a-option".
  1110. ** Command responses and notifications that include a frame now include
  1111. the frame's architecture in a new "arch" attribute.
  1112. * New native configurations
  1113. GNU/Linux/RISC-V riscv*-*-linux*
  1114. FreeBSD/riscv riscv*-*-freebsd*
  1115. * New targets
  1116. GNU/Linux/RISC-V riscv*-*-linux*
  1117. CSKY ELF csky*-*-elf
  1118. CSKY GNU/LINUX csky*-*-linux
  1119. FreeBSD/riscv riscv*-*-freebsd*
  1120. NXP S12Z s12z-*-elf
  1121. GNU/Linux/OpenRISC or1k*-*-linux*
  1122. * Removed targets
  1123. GDB no longer supports native debugging on versions of MS-Windows
  1124. before Windows XP.
  1125. * Python API
  1126. ** GDB no longer supports Python versions less than 2.6.
  1127. ** The gdb.Inferior type has a new 'progspace' property, which is the program
  1128. space associated to that inferior.
  1129. ** The gdb.Progspace type has a new 'objfiles' method, which returns the list
  1130. of objfiles associated to that program space.
  1131. ** gdb.SYMBOL_LOC_COMMON_BLOCK, gdb.SYMBOL_MODULE_DOMAIN, and
  1132. gdb.SYMBOL_COMMON_BLOCK_DOMAIN were added to reflect changes to
  1133. the gdb core.
  1134. ** gdb.SYMBOL_VARIABLES_DOMAIN, gdb.SYMBOL_FUNCTIONS_DOMAIN, and
  1135. gdb.SYMBOL_TYPES_DOMAIN are now deprecated. These were never
  1136. correct and did not work properly.
  1137. ** The gdb.Value type has a new constructor, which is used to construct a
  1138. gdb.Value from a Python buffer object and a gdb.Type.
  1139. * Configure changes
  1140. --enable-ubsan
  1141. Enable or disable the undefined behavior sanitizer. This is
  1142. disabled by default, but passing --enable-ubsan=yes or
  1143. --enable-ubsan=auto to configure will enable it. Enabling this can
  1144. cause a performance penalty. The undefined behavior sanitizer was
  1145. first introduced in GCC 4.9.
  1146. *** Changes in GDB 8.2
  1147. * The 'set disassembler-options' command now supports specifying options
  1148. for the MIPS target.
  1149. * The 'symbol-file' command now accepts an '-o' option to add a relative
  1150. offset to all sections.
  1151. * Similarly, the 'add-symbol-file' command also accepts an '-o' option to add
  1152. a relative offset to all sections, but it allows to override the load
  1153. address of individual sections using '-s'.
  1154. * The 'add-symbol-file' command no longer requires the second argument
  1155. (address of the text section).
  1156. * The endianness used with the 'set endian auto' mode in the absence of
  1157. an executable selected for debugging is now the last endianness chosen
  1158. either by one of the 'set endian big' and 'set endian little' commands
  1159. or by inferring from the last executable used, rather than the startup
  1160. default.
  1161. * The pager now allows a "c" response, meaning to disable the pager
  1162. for the rest of the current command.
  1163. * The commands 'info variables/functions/types' now show the source line
  1164. numbers of symbol definitions when available.
  1165. * 'info proc' now works on running processes on FreeBSD systems and core
  1166. files created on FreeBSD systems.
  1167. * C expressions can now use _Alignof, and C++ expressions can now use
  1168. alignof.
  1169. * Support for SVE on AArch64 Linux. Note that GDB does not detect changes to
  1170. the vector length while the process is running.
  1171. * New commands
  1172. set debug fbsd-nat
  1173. show debug fbsd-nat
  1174. Control display of debugging info regarding the FreeBSD native target.
  1175. set|show varsize-limit
  1176. This new setting allows the user to control the maximum size of Ada
  1177. objects being printed when those objects have a variable type,
  1178. instead of that maximum size being hardcoded to 65536 bytes.
  1179. set|show record btrace cpu
  1180. Controls the processor to be used for enabling errata workarounds for
  1181. branch trace decode.
  1182. maint check libthread-db
  1183. Run integrity checks on the current inferior's thread debugging
  1184. library
  1185. maint set check-libthread-db (on|off)
  1186. maint show check-libthread-db
  1187. Control whether to run integrity checks on inferior specific thread
  1188. debugging libraries as they are loaded. The default is not to
  1189. perform such checks.
  1190. * Python API
  1191. ** Type alignment is now exposed via the "align" attribute of a gdb.Type.
  1192. ** The commands attached to a breakpoint can be set by assigning to
  1193. the breakpoint's "commands" field.
  1194. ** gdb.execute can now execute multi-line gdb commands.
  1195. ** The new functions gdb.convenience_variable and
  1196. gdb.set_convenience_variable can be used to get and set the value
  1197. of convenience variables.
  1198. ** A gdb.Parameter will no longer print the "set" help text on an
  1199. ordinary "set"; instead by default a "set" will be silent unless
  1200. the get_set_string method returns a non-empty string.
  1201. * New targets
  1202. RiscV ELF riscv*-*-elf
  1203. * Removed targets and native configurations
  1204. m88k running OpenBSD m88*-*-openbsd*
  1205. SH-5/SH64 ELF sh64-*-elf*, SH-5/SH64 support in sh*
  1206. SH-5/SH64 running GNU/Linux SH-5/SH64 support in sh*-*-linux*
  1207. SH-5/SH64 running OpenBSD SH-5/SH64 support in sh*-*-openbsd*
  1208. * Aarch64/Linux hardware watchpoints improvements
  1209. Hardware watchpoints on unaligned addresses are now properly
  1210. supported when running Linux kernel 4.10 or higher: read and access
  1211. watchpoints are no longer spuriously missed, and all watchpoints
  1212. lengths between 1 and 8 bytes are supported. On older kernels,
  1213. watchpoints set on unaligned addresses are no longer missed, with
  1214. the tradeoff that there is a possibility of false hits being
  1215. reported.
  1216. * Configure changes
  1217. --enable-codesign=CERT
  1218. This can be used to invoke "codesign -s CERT" after building gdb.
  1219. This option is useful on macOS, where code signing is required for
  1220. gdb to work properly.
  1221. --disable-gdbcli has been removed
  1222. This is now silently accepted, but does nothing.
  1223. *** Changes in GDB 8.1
  1224. * GDB now supports dynamically creating arbitrary register groups specified
  1225. in XML target descriptions. This allows for finer grain grouping of
  1226. registers on systems with a large amount of registers.
  1227. * The 'ptype' command now accepts a '/o' flag, which prints the
  1228. offsets and sizes of fields in a struct, like the pahole(1) tool.
  1229. * New "--readnever" command line option instructs GDB to not read each
  1230. symbol file's symbolic debug information. This makes startup faster
  1231. but at the expense of not being able to perform symbolic debugging.
  1232. This option is intended for use cases where symbolic debugging will
  1233. not be used, e.g., when you only need to dump the debuggee's core.
  1234. * GDB now uses the GNU MPFR library, if available, to emulate target
  1235. floating-point arithmetic during expression evaluation when the target
  1236. uses different floating-point formats than the host. At least version
  1237. 3.1 of GNU MPFR is required.
  1238. * GDB now supports access to the guarded-storage-control registers and the
  1239. software-based guarded-storage broadcast control registers on IBM z14.
  1240. * On Unix systems, GDB now supports transmitting environment variables
  1241. that are to be set or unset to GDBserver. These variables will
  1242. affect the environment to be passed to the remote inferior.
  1243. To inform GDB of environment variables that are to be transmitted to
  1244. GDBserver, use the "set environment" command. Only user set
  1245. environment variables are sent to GDBserver.
  1246. To inform GDB of environment variables that are to be unset before
  1247. the remote inferior is started by the GDBserver, use the "unset
  1248. environment" command.
  1249. * Completion improvements
  1250. ** GDB can now complete function parameters in linespecs and
  1251. explicit locations without quoting. When setting breakpoints,
  1252. quoting around functions names to help with TAB-completion is
  1253. generally no longer necessary. For example, this now completes
  1254. correctly:
  1255. (gdb) b function(in[TAB]
  1256. (gdb) b function(int)
  1257. Related, GDB is no longer confused with completing functions in
  1258. C++ anonymous namespaces:
  1259. (gdb) b (anon[TAB]
  1260. (gdb) b (anonymous namespace)::[TAB][TAB]
  1261. (anonymous namespace)::a_function()
  1262. (anonymous namespace)::b_function()
  1263. ** GDB now has much improved linespec and explicit locations TAB
  1264. completion support, that better understands what you're
  1265. completing and offers better suggestions. For example, GDB no
  1266. longer offers data symbols as possible completions when you're
  1267. setting a breakpoint.
  1268. ** GDB now TAB-completes label symbol names.
  1269. ** The "complete" command now mimics TAB completion accurately.
  1270. * New command line options (gcore)
  1271. -a
  1272. Dump all memory mappings.
  1273. * Breakpoints on C++ functions are now set on all scopes by default
  1274. By default, breakpoints on functions/methods are now interpreted as
  1275. specifying all functions with the given name ignoring missing
  1276. leading scopes (namespaces and classes).
  1277. For example, assuming a C++ program with symbols named:
  1278. A::B::func()
  1279. B::func()
  1280. both commands "break func()" and "break B::func()" set a breakpoint
  1281. on both symbols.
  1282. You can use the new flag "-qualified" to override this. This makes
  1283. GDB interpret the specified function name as a complete
  1284. fully-qualified name instead. For example, using the same C++
  1285. program, the "break -q B::func" command sets a breakpoint on
  1286. "B::func", only. A parameter has been added to the Python
  1287. gdb.Breakpoint constructor to achieve the same result when creating
  1288. a breakpoint from Python.
  1289. * Breakpoints on functions marked with C++ ABI tags
  1290. GDB can now set breakpoints on functions marked with C++ ABI tags
  1291. (e.g., [abi:cxx11]). See here for a description of ABI tags:
  1292. https://developers.redhat.com/blog/2015/02/05/gcc5-and-the-c11-abi/
  1293. Functions with a C++11 abi tag are demangled/displayed like this:
  1294. function[abi:cxx11](int)
  1295. ^^^^^^^^^^^
  1296. You can now set a breakpoint on such functions simply as if they had
  1297. no tag, like:
  1298. (gdb) b function(int)
  1299. Or if you need to disambiguate between tags, like:
  1300. (gdb) b function[abi:other_tag](int)
  1301. Tab completion was adjusted accordingly as well.
  1302. * Python Scripting
  1303. ** New events gdb.new_inferior, gdb.inferior_deleted, and
  1304. gdb.new_thread are emitted. See the manual for further
  1305. description of these.
  1306. ** A new function, "gdb.rbreak" has been added to the Python API.
  1307. This function allows the setting of a large number of breakpoints
  1308. via a regex pattern in Python. See the manual for further details.
  1309. ** Python breakpoints can now accept explicit locations. See the
  1310. manual for a further description of this feature.
  1311. * New features in the GDB remote stub, GDBserver
  1312. ** GDBserver is now able to start inferior processes with a
  1313. specified initial working directory.
  1314. The user can set the desired working directory to be used from
  1315. GDB using the new "set cwd" command.
  1316. ** New "--selftest" command line option runs some GDBserver self
  1317. tests. These self tests are disabled in releases.
  1318. ** On Unix systems, GDBserver now does globbing expansion and variable
  1319. substitution in inferior command line arguments.
  1320. This is done by starting inferiors using a shell, like GDB does.
  1321. See "set startup-with-shell" in the user manual for how to disable
  1322. this from GDB when using "target extended-remote". When using
  1323. "target remote", you can disable the startup with shell by using the
  1324. new "--no-startup-with-shell" GDBserver command line option.
  1325. ** On Unix systems, GDBserver now supports receiving environment
  1326. variables that are to be set or unset from GDB. These variables
  1327. will affect the environment to be passed to the inferior.
  1328. * When catching an Ada exception raised with a message, GDB now prints
  1329. the message in the catchpoint hit notification. In GDB/MI mode, that
  1330. information is provided as an extra field named "exception-message"
  1331. in the *stopped notification.
  1332. * Trait objects can now be inspected When debugging Rust code. This
  1333. requires compiler support which will appear in Rust 1.24.
  1334. * New remote packets
  1335. QEnvironmentHexEncoded
  1336. Inform GDBserver of an environment variable that is to be passed to
  1337. the inferior when starting it.
  1338. QEnvironmentUnset
  1339. Inform GDBserver of an environment variable that is to be unset
  1340. before starting the remote inferior.
  1341. QEnvironmentReset
  1342. Inform GDBserver that the environment should be reset (i.e.,
  1343. user-set environment variables should be unset).
  1344. QStartupWithShell
  1345. Indicates whether the inferior must be started with a shell or not.
  1346. QSetWorkingDir
  1347. Tell GDBserver that the inferior to be started should use a specific
  1348. working directory.
  1349. * The "maintenance print c-tdesc" command now takes an optional
  1350. argument which is the file name of XML target description.
  1351. * The "maintenance selftest" command now takes an optional argument to
  1352. filter the tests to be run.
  1353. * The "enable", and "disable" commands now accept a range of
  1354. breakpoint locations, e.g. "enable 1.3-5".
  1355. * New commands
  1356. set|show cwd
  1357. Set and show the current working directory for the inferior.
  1358. set|show compile-gcc
  1359. Set and show compilation command used for compiling and injecting code
  1360. with the 'compile' commands.
  1361. set debug separate-debug-file
  1362. show debug separate-debug-file
  1363. Control the display of debug output about separate debug file search.
  1364. set dump-excluded-mappings
  1365. show dump-excluded-mappings
  1366. Control whether mappings marked with the VM_DONTDUMP flag should be
  1367. dumped when generating a core file.
  1368. maint info selftests
  1369. List the registered selftests.
  1370. starti
  1371. Start the debugged program stopping at the first instruction.
  1372. set|show debug or1k
  1373. Control display of debugging messages related to OpenRISC targets.
  1374. set|show print type nested-type-limit
  1375. Set and show the limit of nesting level for nested types that the
  1376. type printer will show.
  1377. * TUI Single-Key mode now supports two new shortcut keys: `i' for stepi and
  1378. `o' for nexti.
  1379. * Safer/improved support for debugging with no debug info
  1380. GDB no longer assumes functions with no debug information return
  1381. 'int'.
  1382. This means that GDB now refuses to call such functions unless you
  1383. tell it the function's type, by either casting the call to the
  1384. declared return type, or by casting the function to a function
  1385. pointer of the right type, and calling that:
  1386. (gdb) p getenv ("PATH")
  1387. 'getenv' has unknown return type; cast the call to its declared return type
  1388. (gdb) p (char *) getenv ("PATH")
  1389. $1 = 0x7fffffffe "/usr/local/bin:/"...
  1390. (gdb) p ((char * (*) (const char *)) getenv) ("PATH")
  1391. $2 = 0x7fffffffe "/usr/local/bin:/"...
  1392. Similarly, GDB no longer assumes that global variables with no debug
  1393. info have type 'int', and refuses to print the variable's value
  1394. unless you tell it the variable's type:
  1395. (gdb) p var
  1396. 'var' has unknown type; cast it to its declared type
  1397. (gdb) p (float) var
  1398. $3 = 3.14
  1399. * New native configurations
  1400. FreeBSD/aarch64 aarch64*-*-freebsd*
  1401. FreeBSD/arm arm*-*-freebsd*
  1402. * New targets
  1403. FreeBSD/aarch64 aarch64*-*-freebsd*
  1404. FreeBSD/arm arm*-*-freebsd*
  1405. OpenRISC ELF or1k*-*-elf
  1406. * Removed targets and native configurations
  1407. Solaris 2.0-9 i?86-*-solaris2.[0-9], sparc*-*-solaris2.[0-9]
  1408. *** Changes in GDB 8.0
  1409. * GDB now supports access to the PKU register on GNU/Linux. The register is
  1410. added by the Memory Protection Keys for Userspace feature which will be
  1411. available in future Intel CPUs.
  1412. * GDB now supports C++11 rvalue references.
  1413. * Python Scripting
  1414. ** New functions to start, stop and access a running btrace recording.
  1415. ** Rvalue references are now supported in gdb.Type.
  1416. * GDB now supports recording and replaying rdrand and rdseed Intel 64
  1417. instructions.
  1418. * Building GDB and GDBserver now requires a C++11 compiler.
  1419. For example, GCC 4.8 or later.
  1420. It is no longer possible to build GDB or GDBserver with a C
  1421. compiler. The --disable-build-with-cxx configure option has been
  1422. removed.
  1423. * Building GDB and GDBserver now requires GNU make >= 3.81.
  1424. It is no longer supported to build GDB or GDBserver with another
  1425. implementation of the make program or an earlier version of GNU make.
  1426. * Native debugging on MS-Windows supports command-line redirection
  1427. Command-line arguments used for starting programs on MS-Windows can
  1428. now include redirection symbols supported by native Windows shells,
  1429. such as '<', '>', '>>', '2>&1', etc. This affects GDB commands such
  1430. as "run", "start", and "set args", as well as the corresponding MI
  1431. features.
  1432. * Support for thread names on MS-Windows.
  1433. GDB now catches and handles the special exception that programs
  1434. running on MS-Windows use to assign names to threads in the
  1435. debugger.
  1436. * Support for Java programs compiled with gcj has been removed.
  1437. * User commands now accept an unlimited number of arguments.
  1438. Previously, only up to 10 was accepted.
  1439. * The "eval" command now expands user-defined command arguments.
  1440. This makes it easier to process a variable number of arguments:
  1441. define mycommand
  1442. set $i = 0
  1443. while $i < $argc
  1444. eval "print $arg%d", $i
  1445. set $i = $i + 1
  1446. end
  1447. end
  1448. * Target descriptions can now describe registers for sparc32 and sparc64.
  1449. * GDB now supports DWARF version 5 (debug information format).
  1450. Its .debug_names index is not yet supported.
  1451. * New native configurations
  1452. FreeBSD/mips mips*-*-freebsd
  1453. * New targets
  1454. Synopsys ARC arc*-*-elf32
  1455. FreeBSD/mips mips*-*-freebsd
  1456. * Removed targets and native configurations
  1457. Alpha running FreeBSD alpha*-*-freebsd*
  1458. Alpha running GNU/kFreeBSD alpha*-*-kfreebsd*-gnu
  1459. * New commands
  1460. flash-erase
  1461. Erases all the flash memory regions reported by the target.
  1462. maint print arc arc-instruction address
  1463. Print internal disassembler information about instruction at a given address.
  1464. * New options
  1465. set disassembler-options
  1466. show disassembler-options
  1467. Controls the passing of target specific information to the disassembler.
  1468. If it is necessary to specify more than one disassembler option then
  1469. multiple options can be placed together into a comma separated list.
  1470. The default value is the empty string. Currently, the only supported
  1471. targets are ARM, PowerPC and S/390.
  1472. * New MI commands
  1473. -target-flash-erase
  1474. Erases all the flash memory regions reported by the target. This is
  1475. equivalent to the CLI command flash-erase.
  1476. -file-list-shared-libraries
  1477. List the shared libraries in the program. This is
  1478. equivalent to the CLI command "info shared".
  1479. -catch-handlers
  1480. Catchpoints stopping the program when Ada exceptions are
  1481. handled. This is equivalent to the CLI command "catch handlers".
  1482. *** Changes in GDB 7.12
  1483. * GDB and GDBserver now build with a C++ compiler by default.
  1484. The --enable-build-with-cxx configure option is now enabled by
  1485. default. One must now explicitly configure with
  1486. --disable-build-with-cxx in order to build with a C compiler. This
  1487. option will be removed in a future release.
  1488. * GDBserver now supports recording btrace without maintaining an active
  1489. GDB connection.
  1490. * GDB now supports a negative repeat count in the 'x' command to examine
  1491. memory backward from the given address. For example:
  1492. (gdb) bt
  1493. #0 Func1 (n=42, p=0x40061c "hogehoge") at main.cpp:4
  1494. #1 0x400580 in main (argc=1, argv=0x7fffffffe5c8) at main.cpp:8
  1495. (gdb) x/-5i 0x0000000000400580
  1496. 0x40056a <main(int, char**)+8>: mov %edi,-0x4(%rbp)
  1497. 0x40056d <main(int, char**)+11>: mov %rsi,-0x10(%rbp)
  1498. 0x400571 <main(int, char**)+15>: mov $0x40061c,%esi
  1499. 0x400576 <main(int, char**)+20>: mov $0x2a,%edi
  1500. 0x40057b <main(int, char**)+25>:
  1501. callq 0x400536 <Func1(int, char const*)>
  1502. * Fortran: Support structures with fields of dynamic types and
  1503. arrays of dynamic types.
  1504. * The symbol dumping maintenance commands have new syntax.
  1505. maint print symbols [-pc address] [--] [filename]
  1506. maint print symbols [-objfile objfile] [-source source] [--] [filename]
  1507. maint print psymbols [-objfile objfile] [-pc address] [--] [filename]
  1508. maint print psymbols [-objfile objfile] [-source source] [--] [filename]
  1509. maint print msymbols [-objfile objfile] [--] [filename]
  1510. * GDB now supports multibit bitfields and enums in target register
  1511. descriptions.
  1512. * New Python-based convenience function $_as_string(val), which returns
  1513. the textual representation of a value. This function is especially
  1514. useful to obtain the text label of an enum value.
  1515. * Intel MPX bound violation handling.
  1516. Segmentation faults caused by a Intel MPX boundary violation
  1517. now display the kind of violation (upper or lower), the memory
  1518. address accessed and the memory bounds, along with the usual
  1519. signal received and code location.
  1520. For example:
  1521. Program received signal SIGSEGV, Segmentation fault
  1522. Upper bound violation while accessing address 0x7fffffffc3b3
  1523. Bounds: [lower = 0x7fffffffc390, upper = 0x7fffffffc3a3]
  1524. 0x0000000000400d7c in upper () at i386-mpx-sigsegv.c:68
  1525. * Rust language support.
  1526. GDB now supports debugging programs written in the Rust programming
  1527. language. See https://www.rust-lang.org/ for more information about
  1528. Rust.
  1529. * Support for running interpreters on specified input/output devices
  1530. GDB now supports a new mechanism that allows frontends to provide
  1531. fully featured GDB console views, as a better alternative to
  1532. building such views on top of the "-interpreter-exec console"
  1533. command. See the new "new-ui" command below. With that command,
  1534. frontends can now start GDB in the traditional command-line mode
  1535. running in an embedded terminal emulator widget, and create a
  1536. separate MI interpreter running on a specified i/o device. In this
  1537. way, GDB handles line editing, history, tab completion, etc. in the
  1538. console all by itself, and the GUI uses the separate MI interpreter
  1539. for its own control and synchronization, invisible to the command
  1540. line.
  1541. * The "catch syscall" command catches groups of related syscalls.
  1542. The "catch syscall" command now supports catching a group of related
  1543. syscalls using the 'group:' or 'g:' prefix.
  1544. * New commands
  1545. skip -file file
  1546. skip -gfile file-glob-pattern
  1547. skip -function function
  1548. skip -rfunction regular-expression
  1549. A generalized form of the skip command, with new support for
  1550. glob-style file names and regular expressions for function names.
  1551. Additionally, a file spec and a function spec may now be combined.
  1552. maint info line-table REGEXP
  1553. Display the contents of GDB's internal line table data structure.
  1554. maint selftest
  1555. Run any GDB unit tests that were compiled in.
  1556. new-ui INTERP TTY
  1557. Start a new user interface instance running INTERP as interpreter,
  1558. using the TTY file for input/output.
  1559. * Python Scripting
  1560. ** gdb.Breakpoint objects have a new attribute "pending", which
  1561. indicates whether the breakpoint is pending.
  1562. ** Three new breakpoint-related events have been added:
  1563. gdb.breakpoint_created, gdb.breakpoint_modified, and
  1564. gdb.breakpoint_deleted.
  1565. signal-event EVENTID
  1566. Signal ("set") the given MS-Windows event object. This is used in
  1567. conjunction with the Windows JIT debugging (AeDebug) support, where
  1568. the OS suspends a crashing process until a debugger can attach to
  1569. it. Resuming the crashing process, in order to debug it, is done by
  1570. signalling an event.
  1571. * Support for tracepoints and fast tracepoints on s390-linux and s390x-linux
  1572. was added in GDBserver, including JIT compiling fast tracepoint's
  1573. conditional expression bytecode into native code.
  1574. * Support for various remote target protocols and ROM monitors has
  1575. been removed:
  1576. target m32rsdi Remote M32R debugging over SDI
  1577. target mips MIPS remote debugging protocol
  1578. target pmon PMON ROM monitor
  1579. target ddb NEC's DDB variant of PMON for Vr4300
  1580. target rockhopper NEC RockHopper variant of PMON
  1581. target lsi LSI variant of PMO
  1582. * Support for tracepoints and fast tracepoints on powerpc-linux,
  1583. powerpc64-linux, and powerpc64le-linux was added in GDBserver,
  1584. including JIT compiling fast tracepoint's conditional expression
  1585. bytecode into native code.
  1586. * MI async record =record-started now includes the method and format used for
  1587. recording. For example:
  1588. =record-started,thread-group="i1",method="btrace",format="bts"
  1589. * MI async record =thread-selected now includes the frame field. For example:
  1590. =thread-selected,id="3",frame={level="0",addr="0x00000000004007c0"}
  1591. * New targets
  1592. Andes NDS32 nds32*-*-elf
  1593. *** Changes in GDB 7.11
  1594. * GDB now supports debugging kernel-based threads on FreeBSD.
  1595. * Per-inferior thread numbers
  1596. Thread numbers are now per inferior instead of global. If you're
  1597. debugging multiple inferiors, GDB displays thread IDs using a
  1598. qualified INF_NUM.THR_NUM form. For example:
  1599. (gdb) info threads
  1600. Id Target Id Frame
  1601. 1.1 Thread 0x7ffff7fc2740 (LWP 8155) (running)
  1602. 1.2 Thread 0x7ffff7fc1700 (LWP 8168) (running)
  1603. * 2.1 Thread 0x7ffff7fc2740 (LWP 8157) (running)
  1604. 2.2 Thread 0x7ffff7fc1700 (LWP 8190) (running)
  1605. As consequence, thread numbers as visible in the $_thread
  1606. convenience variable and in Python's InferiorThread.num attribute
  1607. are no longer unique between inferiors.
  1608. GDB now maintains a second thread ID per thread, referred to as the
  1609. global thread ID, which is the new equivalent of thread numbers in
  1610. previous releases. See also $_gthread below.
  1611. For backwards compatibility, MI's thread IDs always refer to global
  1612. IDs.
  1613. * Commands that accept thread IDs now accept the qualified
  1614. INF_NUM.THR_NUM form as well. For example:
  1615. (gdb) thread 2.1
  1616. [Switching to thread 2.1 (Thread 0x7ffff7fc2740 (LWP 8157))] (running)
  1617. (gdb)
  1618. * In commands that accept a list of thread IDs, you can now refer to
  1619. all threads of an inferior using a star wildcard. GDB accepts
  1620. "INF_NUM.*", to refer to all threads of inferior INF_NUM, and "*" to
  1621. refer to all threads of the current inferior. For example, "info
  1622. threads 2.*".
  1623. * You can use "info threads -gid" to display the global thread ID of
  1624. all threads.
  1625. * The new convenience variable $_gthread holds the global number of
  1626. the current thread.
  1627. * The new convenience variable $_inferior holds the number of the
  1628. current inferior.
  1629. * GDB now displays the ID and name of the thread that hit a breakpoint
  1630. or received a signal, if your program is multi-threaded. For
  1631. example:
  1632. Thread 3 "bar" hit Breakpoint 1 at 0x40087a: file program.c, line 20.
  1633. Thread 1 "main" received signal SIGINT, Interrupt.
  1634. * Record btrace now supports non-stop mode.
  1635. * Support for tracepoints on aarch64-linux was added in GDBserver.
  1636. * The 'record instruction-history' command now indicates speculative execution
  1637. when using the Intel Processor Trace recording format.
  1638. * GDB now allows users to specify explicit locations, bypassing
  1639. the linespec parser. This feature is also available to GDB/MI
  1640. clients.
  1641. * Multi-architecture debugging is supported on AArch64 GNU/Linux.
  1642. GDB now is able to debug both AArch64 applications and ARM applications
  1643. at the same time.
  1644. * Support for fast tracepoints on aarch64-linux was added in GDBserver,
  1645. including JIT compiling fast tracepoint's conditional expression bytecode
  1646. into native code.
  1647. * GDB now supports displaced stepping on AArch64 GNU/Linux.
  1648. * "info threads", "info inferiors", "info display", "info checkpoints"
  1649. and "maint info program-spaces" now list the corresponding items in
  1650. ascending ID order, for consistency with all other "info" commands.
  1651. * In Ada, the overloads selection menu has been enhanced to display the
  1652. parameter types and the return types for the matching overloaded subprograms.
  1653. * New commands
  1654. maint set target-non-stop (on|off|auto)
  1655. maint show target-non-stop
  1656. Control whether GDB targets always operate in non-stop mode even if
  1657. "set non-stop" is "off". The default is "auto", meaning non-stop
  1658. mode is enabled if supported by the target.
  1659. maint set bfd-sharing
  1660. maint show bfd-sharing
  1661. Control the reuse of bfd objects.
  1662. set debug bfd-cache
  1663. show debug bfd-cache
  1664. Control display of debugging info regarding bfd caching.
  1665. set debug fbsd-lwp
  1666. show debug fbsd-lwp
  1667. Control display of debugging info regarding FreeBSD threads.
  1668. set remote multiprocess-extensions-packet
  1669. show remote multiprocess-extensions-packet
  1670. Set/show the use of the remote protocol multiprocess extensions.
  1671. set remote thread-events
  1672. show remote thread-events
  1673. Set/show the use of thread create/exit events.
  1674. set ada print-signatures on|off
  1675. show ada print-signatures"
  1676. Control whether parameter types and return types are displayed in overloads
  1677. selection menus. It is activated (@code{on}) by default.
  1678. set max-value-size
  1679. show max-value-size
  1680. Controls the maximum size of memory, in bytes, that GDB will
  1681. allocate for value contents. Prevents incorrect programs from
  1682. causing GDB to allocate overly large buffers. Default is 64k.
  1683. * The "disassemble" command accepts a new modifier: /s.
  1684. It prints mixed source+disassembly like /m with two differences:
  1685. - disassembled instructions are now printed in program order, and
  1686. - and source for all relevant files is now printed.
  1687. The "/m" option is now considered deprecated: its "source-centric"
  1688. output hasn't proved useful in practice.
  1689. * The "record instruction-history" command accepts a new modifier: /s.
  1690. It behaves exactly like /m and prints mixed source+disassembly.
  1691. * The "set scheduler-locking" command supports a new mode "replay".
  1692. It behaves like "off" in record mode and like "on" in replay mode.
  1693. * Support for various ROM monitors has been removed:
  1694. target dbug dBUG ROM monitor for Motorola ColdFire
  1695. target picobug Motorola picobug monitor
  1696. target dink32 DINK32 ROM monitor for PowerPC
  1697. target m32r Renesas M32R/D ROM monitor
  1698. target mon2000 mon2000 ROM monitor
  1699. target ppcbug PPCBUG ROM monitor for PowerPC
  1700. * Support for reading/writing memory and extracting values on architectures
  1701. whose memory is addressable in units of any integral multiple of 8 bits.
  1702. catch handlers
  1703. Allows to break when an Ada exception is handled.
  1704. * New remote packets
  1705. exec stop reason
  1706. Indicates that an exec system call was executed.
  1707. exec-events feature in qSupported
  1708. The qSupported packet allows GDB to request support for exec
  1709. events using the new 'gdbfeature' exec-event, and the qSupported
  1710. response can contain the corresponding 'stubfeature'. Set and
  1711. show commands can be used to display whether these features are enabled.
  1712. vCtrlC
  1713. Equivalent to interrupting with the ^C character, but works in
  1714. non-stop mode.
  1715. thread created stop reason (T05 create:...)
  1716. Indicates that the thread was just created and is stopped at entry.
  1717. thread exit stop reply (w exitcode;tid)
  1718. Indicates that the thread has terminated.
  1719. QThreadEvents
  1720. Enables/disables thread create and exit event reporting. For
  1721. example, this is used in non-stop mode when GDB stops a set of
  1722. threads and synchronously waits for the their corresponding stop
  1723. replies. Without exit events, if one of the threads exits, GDB
  1724. would hang forever not knowing that it should no longer expect a
  1725. stop for that same thread.
  1726. N stop reply
  1727. Indicates that there are no resumed threads left in the target (all
  1728. threads are stopped). The remote stub reports support for this stop
  1729. reply to GDB's qSupported query.
  1730. QCatchSyscalls
  1731. Enables/disables catching syscalls from the inferior process.
  1732. The remote stub reports support for this packet to GDB's qSupported query.
  1733. syscall_entry stop reason
  1734. Indicates that a syscall was just called.
  1735. syscall_return stop reason
  1736. Indicates that a syscall just returned.
  1737. * Extended-remote exec events
  1738. ** GDB now has support for exec events on extended-remote Linux targets.
  1739. For such targets with Linux kernels 2.5.46 and later, this enables
  1740. follow-exec-mode and exec catchpoints.
  1741. set remote exec-event-feature-packet
  1742. show remote exec-event-feature-packet
  1743. Set/show the use of the remote exec event feature.
  1744. * Thread names in remote protocol
  1745. The reply to qXfer:threads:read may now include a name attribute for each
  1746. thread.
  1747. * Target remote mode fork and exec events
  1748. ** GDB now has support for fork and exec events on target remote mode
  1749. Linux targets. For such targets with Linux kernels 2.5.46 and later,
  1750. this enables follow-fork-mode, detach-on-fork, follow-exec-mode, and
  1751. fork and exec catchpoints.
  1752. * Remote syscall events
  1753. ** GDB now has support for catch syscall on remote Linux targets,
  1754. currently enabled on x86/x86_64 architectures.
  1755. set remote catch-syscall-packet
  1756. show remote catch-syscall-packet
  1757. Set/show the use of the remote catch syscall feature.
  1758. * MI changes
  1759. ** The -var-set-format command now accepts the zero-hexadecimal
  1760. format. It outputs data in hexadecimal format with zero-padding on the
  1761. left.
  1762. * Python Scripting
  1763. ** gdb.InferiorThread objects have a new attribute "global_num",
  1764. which refers to the thread's global thread ID. The existing
  1765. "num" attribute now refers to the thread's per-inferior number.
  1766. See "Per-inferior thread numbers" above.
  1767. ** gdb.InferiorThread objects have a new attribute "inferior", which
  1768. is the Inferior object the thread belongs to.
  1769. *** Changes in GDB 7.10
  1770. * Support for process record-replay and reverse debugging on aarch64*-linux*
  1771. targets has been added. GDB now supports recording of A64 instruction set
  1772. including advance SIMD instructions.
  1773. * Support for Sun's version of the "stabs" debug file format has been removed.
  1774. * GDB now honors the content of the file /proc/PID/coredump_filter
  1775. (PID is the process ID) on GNU/Linux systems. This file can be used
  1776. to specify the types of memory mappings that will be included in a
  1777. corefile. For more information, please refer to the manual page of
  1778. "core(5)". GDB also has a new command: "set use-coredump-filter
  1779. on|off". It allows to set whether GDB will read the content of the
  1780. /proc/PID/coredump_filter file when generating a corefile.
  1781. * The "info os" command on GNU/Linux can now display information on
  1782. cpu information :
  1783. "info os cpus" Listing of all cpus/cores on the system
  1784. * GDB has two new commands: "set serial parity odd|even|none" and
  1785. "show serial parity". These allows to set or show parity for the
  1786. remote serial I/O.
  1787. * The "info source" command now displays the producer string if it was
  1788. present in the debug info. This typically includes the compiler version
  1789. and may include things like its command line arguments.
  1790. * The "info dll", an alias of the "info sharedlibrary" command,
  1791. is now available on all platforms.
  1792. * Directory names supplied to the "set sysroot" commands may be
  1793. prefixed with "target:" to tell GDB to access shared libraries from
  1794. the target system, be it local or remote. This replaces the prefix
  1795. "remote:". The default sysroot has been changed from "" to
  1796. "target:". "remote:" is automatically converted to "target:" for
  1797. backward compatibility.
  1798. * The system root specified by "set sysroot" will be prepended to the
  1799. filename of the main executable (if reported to GDB as absolute by
  1800. the operating system) when starting processes remotely, and when
  1801. attaching to already-running local or remote processes.
  1802. * GDB now supports automatic location and retrieval of executable
  1803. files from remote targets. Remote debugging can now be initiated
  1804. using only a "target remote" or "target extended-remote" command
  1805. (no "set sysroot" or "file" commands are required). See "New remote
  1806. packets" below.
  1807. * The "dump" command now supports verilog hex format.
  1808. * GDB now supports the vector ABI on S/390 GNU/Linux targets.
  1809. * On GNU/Linux, GDB and gdbserver are now able to access executable
  1810. and shared library files without a "set sysroot" command when
  1811. attaching to processes running in different mount namespaces from
  1812. the debugger. This makes it possible to attach to processes in
  1813. containers as simply as "gdb -p PID" or "gdbserver --attach PID".
  1814. See "New remote packets" below.
  1815. * The "tui reg" command now provides completion for all of the
  1816. available register groups, including target specific groups.
  1817. * The HISTSIZE environment variable is no longer read when determining
  1818. the size of GDB's command history. GDB now instead reads the dedicated
  1819. GDBHISTSIZE environment variable. Setting GDBHISTSIZE to "-1" or to "" now
  1820. disables truncation of command history. Non-numeric values of GDBHISTSIZE
  1821. are ignored.
  1822. * Guile Scripting
  1823. ** Memory ports can now be unbuffered.
  1824. * Python Scripting
  1825. ** gdb.Objfile objects have a new attribute "username",
  1826. which is the name of the objfile as specified by the user,
  1827. without, for example, resolving symlinks.
  1828. ** You can now write frame unwinders in Python.
  1829. ** gdb.Type objects have a new method "optimized_out",
  1830. returning optimized out gdb.Value instance of this type.
  1831. ** gdb.Value objects have new methods "reference_value" and
  1832. "const_value" which return a reference to the value and a
  1833. "const" version of the value respectively.
  1834. * New commands
  1835. maint print symbol-cache
  1836. Print the contents of the symbol cache.
  1837. maint print symbol-cache-statistics
  1838. Print statistics of symbol cache usage.
  1839. maint flush-symbol-cache
  1840. Flush the contents of the symbol cache.
  1841. record btrace bts
  1842. record bts
  1843. Start branch trace recording using Branch Trace Store (BTS) format.
  1844. compile print
  1845. Evaluate expression by using the compiler and print result.
  1846. tui enable
  1847. tui disable
  1848. Explicit commands for enabling and disabling tui mode.
  1849. show mpx bound
  1850. set mpx bound on i386 and amd64
  1851. Support for bound table investigation on Intel MPX enabled applications.
  1852. record btrace pt
  1853. record pt
  1854. Start branch trace recording using Intel Processor Trace format.
  1855. maint info btrace
  1856. Print information about branch tracing internals.
  1857. maint btrace packet-history
  1858. Print the raw branch tracing data.
  1859. maint btrace clear-packet-history
  1860. Discard the stored raw branch tracing data.
  1861. maint btrace clear
  1862. Discard all branch tracing data. It will be fetched and processed
  1863. anew by the next "record" command.
  1864. * New options
  1865. set debug dwarf-die
  1866. Renamed from "set debug dwarf2-die".
  1867. show debug dwarf-die
  1868. Renamed from "show debug dwarf2-die".
  1869. set debug dwarf-read
  1870. Renamed from "set debug dwarf2-read".
  1871. show debug dwarf-read
  1872. Renamed from "show debug dwarf2-read".
  1873. maint set dwarf always-disassemble
  1874. Renamed from "maint set dwarf2 always-disassemble".
  1875. maint show dwarf always-disassemble
  1876. Renamed from "maint show dwarf2 always-disassemble".
  1877. maint set dwarf max-cache-age
  1878. Renamed from "maint set dwarf2 max-cache-age".
  1879. maint show dwarf max-cache-age
  1880. Renamed from "maint show dwarf2 max-cache-age".
  1881. set debug dwarf-line
  1882. show debug dwarf-line
  1883. Control display of debugging info regarding DWARF line processing.
  1884. set max-completions
  1885. show max-completions
  1886. Set the maximum number of candidates to be considered during
  1887. completion. The default value is 200. This limit allows GDB
  1888. to avoid generating large completion lists, the computation of
  1889. which can cause the debugger to become temporarily unresponsive.
  1890. set history remove-duplicates
  1891. show history remove-duplicates
  1892. Control the removal of duplicate history entries.
  1893. maint set symbol-cache-size
  1894. maint show symbol-cache-size
  1895. Control the size of the symbol cache.
  1896. set|show record btrace bts buffer-size
  1897. Set and show the size of the ring buffer used for branch tracing in
  1898. BTS format.
  1899. The obtained size may differ from the requested size. Use "info
  1900. record" to see the obtained buffer size.
  1901. set debug linux-namespaces
  1902. show debug linux-namespaces
  1903. Control display of debugging info regarding Linux namespaces.
  1904. set|show record btrace pt buffer-size
  1905. Set and show the size of the ring buffer used for branch tracing in
  1906. Intel Processor Trace format.
  1907. The obtained size may differ from the requested size. Use "info
  1908. record" to see the obtained buffer size.
  1909. maint set|show btrace pt skip-pad
  1910. Set and show whether PAD packets are skipped when computing the
  1911. packet history.
  1912. * The command 'thread apply all' can now support new option '-ascending'
  1913. to call its specified command for all threads in ascending order.
  1914. * Python/Guile scripting
  1915. ** GDB now supports auto-loading of Python/Guile scripts contained in the
  1916. special section named `.debug_gdb_scripts'.
  1917. * New remote packets
  1918. qXfer:btrace-conf:read
  1919. Return the branch trace configuration for the current thread.
  1920. Qbtrace-conf:bts:size
  1921. Set the requested ring buffer size for branch tracing in BTS format.
  1922. Qbtrace:pt
  1923. Enable Intel Processor Trace-based branch tracing for the current
  1924. process. The remote stub reports support for this packet to GDB's
  1925. qSupported query.
  1926. Qbtrace-conf:pt:size
  1927. Set the requested ring buffer size for branch tracing in Intel Processor
  1928. Trace format.
  1929. swbreak stop reason
  1930. Indicates a memory breakpoint instruction was executed, irrespective
  1931. of whether it was GDB that planted the breakpoint or the breakpoint
  1932. is hardcoded in the program. This is required for correct non-stop
  1933. mode operation.
  1934. hwbreak stop reason
  1935. Indicates the target stopped for a hardware breakpoint. This is
  1936. required for correct non-stop mode operation.
  1937. vFile:fstat:
  1938. Return information about files on the remote system.
  1939. qXfer:exec-file:read
  1940. Return the full absolute name of the file that was executed to
  1941. create a process running on the remote system.
  1942. vFile:setfs:
  1943. Select the filesystem on which vFile: operations with filename
  1944. arguments will operate. This is required for GDB to be able to
  1945. access files on remote targets where the remote stub does not
  1946. share a common filesystem with the inferior(s).
  1947. fork stop reason
  1948. Indicates that a fork system call was executed.
  1949. vfork stop reason
  1950. Indicates that a vfork system call was executed.
  1951. vforkdone stop reason
  1952. Indicates that a vfork child of the specified process has executed
  1953. an exec or exit, allowing the vfork parent to resume execution.
  1954. fork-events and vfork-events features in qSupported
  1955. The qSupported packet allows GDB to request support for fork and
  1956. vfork events using new 'gdbfeatures' fork-events and vfork-events,
  1957. and the qSupported response can contain the corresponding
  1958. 'stubfeatures'. Set and show commands can be used to display
  1959. whether these features are enabled.
  1960. * Extended-remote fork events
  1961. ** GDB now has support for fork events on extended-remote Linux
  1962. targets. For targets with Linux kernels 2.5.60 and later, this
  1963. enables follow-fork-mode and detach-on-fork for both fork and
  1964. vfork, as well as fork and vfork catchpoints.
  1965. * The info record command now shows the recording format and the
  1966. branch tracing configuration for the current thread when using
  1967. the btrace record target.
  1968. For the BTS format, it shows the ring buffer size.
  1969. * GDB now has support for DTrace USDT (Userland Static Defined
  1970. Tracing) probes. The supported targets are x86_64-*-linux-gnu.
  1971. * GDB now supports access to vector registers on S/390 GNU/Linux
  1972. targets.
  1973. * Removed command line options
  1974. -xdb HP-UX XDB compatibility mode.
  1975. * Removed targets and native configurations
  1976. HP/PA running HP-UX hppa*-*-hpux*
  1977. Itanium running HP-UX ia64-*-hpux*
  1978. * New configure options
  1979. --with-intel-pt
  1980. This configure option allows the user to build GDB with support for
  1981. Intel Processor Trace (default: auto). This requires libipt.
  1982. --with-libipt-prefix=PATH
  1983. Specify the path to the version of libipt that GDB should use.
  1984. $PATH/include should contain the intel-pt.h header and
  1985. $PATH/lib should contain the libipt.so library.
  1986. *** Changes in GDB 7.9.1
  1987. * Python Scripting
  1988. ** Xmethods can now specify a result type.
  1989. *** Changes in GDB 7.9
  1990. * GDB now supports hardware watchpoints on x86 GNU Hurd.
  1991. * Python Scripting
  1992. ** You can now access frame registers from Python scripts.
  1993. ** New attribute 'producer' for gdb.Symtab objects.
  1994. ** gdb.Objfile objects have a new attribute "progspace",
  1995. which is the gdb.Progspace object of the containing program space.
  1996. ** gdb.Objfile objects have a new attribute "owner".
  1997. ** gdb.Objfile objects have a new attribute "build_id",
  1998. which is the build ID generated when the file was built.
  1999. ** gdb.Objfile objects have a new method "add_separate_debug_file".
  2000. ** A new event "gdb.clear_objfiles" has been added, triggered when
  2001. selecting a new file to debug.
  2002. ** You can now add attributes to gdb.Objfile and gdb.Progspace objects.
  2003. ** New function gdb.lookup_objfile.
  2004. New events which are triggered when GDB modifies the state of the
  2005. inferior.
  2006. ** gdb.events.inferior_call_pre: Function call is about to be made.
  2007. ** gdb.events.inferior_call_post: Function call has just been made.
  2008. ** gdb.events.memory_changed: A memory location has been altered.
  2009. ** gdb.events.register_changed: A register has been altered.
  2010. * New Python-based convenience functions:
  2011. ** $_caller_is(name [, number_of_frames])
  2012. ** $_caller_matches(regexp [, number_of_frames])
  2013. ** $_any_caller_is(name [, number_of_frames])
  2014. ** $_any_caller_matches(regexp [, number_of_frames])
  2015. * GDB now supports the compilation and injection of source code into
  2016. the inferior. GDB will use GCC 5.0 or higher built with libcc1.so
  2017. to compile the source code to object code, and if successful, inject
  2018. and execute that code within the current context of the inferior.
  2019. Currently the C language is supported. The commands used to
  2020. interface with this new feature are:
  2021. compile code [-raw|-r] [--] [source code]
  2022. compile file [-raw|-r] filename
  2023. * New commands
  2024. demangle [-l language] [--] name
  2025. Demangle "name" in the specified language, or the current language
  2026. if elided. This command is renamed from the "maint demangle" command.
  2027. The latter is kept as a no-op to avoid "maint demangle" being interpreted
  2028. as "maint demangler-warning".
  2029. queue-signal signal-name-or-number
  2030. Queue a signal to be delivered to the thread when it is resumed.
  2031. add-auto-load-scripts-directory directory
  2032. Add entries to the list of directories from which to load auto-loaded
  2033. scripts.
  2034. maint print user-registers
  2035. List all currently available "user" registers.
  2036. compile code [-r|-raw] [--] [source code]
  2037. Compile, inject, and execute in the inferior the executable object
  2038. code produced by compiling the provided source code.
  2039. compile file [-r|-raw] filename
  2040. Compile and inject into the inferior the executable object code
  2041. produced by compiling the source code stored in the filename
  2042. provided.
  2043. * On resume, GDB now always passes the signal the program had stopped
  2044. for to the thread the signal was sent to, even if the user changed
  2045. threads before resuming. Previously GDB would often (but not
  2046. always) deliver the signal to the thread that happens to be current
  2047. at resume time.
  2048. * Conversely, the "signal" command now consistently delivers the
  2049. requested signal to the current thread. GDB now asks for
  2050. confirmation if the program had stopped for a signal and the user
  2051. switched threads meanwhile.
  2052. * "breakpoint always-inserted" modes "off" and "auto" merged.
  2053. Now, when 'breakpoint always-inserted mode' is set to "off", GDB
  2054. won't remove breakpoints from the target until all threads stop,
  2055. even in non-stop mode. The "auto" mode has been removed, and "off"
  2056. is now the default mode.
  2057. * New options
  2058. set debug symbol-lookup
  2059. show debug symbol-lookup
  2060. Control display of debugging info regarding symbol lookup.
  2061. * MI changes
  2062. ** The -list-thread-groups command outputs an exit-code field for
  2063. inferiors that have exited.
  2064. * New targets
  2065. MIPS SDE mips*-sde*-elf*
  2066. * Removed targets
  2067. Support for these obsolete configurations has been removed.
  2068. Alpha running OSF/1 (or Tru64) alpha*-*-osf*
  2069. SGI Irix-5.x mips-*-irix5*
  2070. SGI Irix-6.x mips-*-irix6*
  2071. VAX running (4.2 - 4.3 Reno) BSD vax-*-bsd*
  2072. VAX running Ultrix vax-*-ultrix*
  2073. * The "dll-symbols" command, and its two aliases ("add-shared-symbol-files"
  2074. and "assf"), have been removed. Use the "sharedlibrary" command, or
  2075. its alias "share", instead.
  2076. *** Changes in GDB 7.8
  2077. * New command line options
  2078. -D data-directory
  2079. This is an alias for the --data-directory option.
  2080. * GDB supports printing and modifying of variable length automatic arrays
  2081. as specified in ISO C99.
  2082. * The ARM simulator now supports instruction level tracing
  2083. with or without disassembly.
  2084. * Guile scripting
  2085. GDB now has support for scripting using Guile. Whether this is
  2086. available is determined at configure time.
  2087. Guile version 2.0 or greater is required.
  2088. Guile version 2.0.9 is well tested, earlier 2.0 versions are not.
  2089. * New commands (for set/show, see "New options" below)
  2090. guile [code]
  2091. gu [code]
  2092. Invoke CODE by passing it to the Guile interpreter.
  2093. guile-repl
  2094. gr
  2095. Start a Guile interactive prompt (or "repl" for "read-eval-print loop").
  2096. info auto-load guile-scripts [regexp]
  2097. Print the list of automatically loaded Guile scripts.
  2098. * The source command is now capable of sourcing Guile scripts.
  2099. This feature is dependent on the debugger being built with Guile support.
  2100. * New options
  2101. set print symbol-loading (off|brief|full)
  2102. show print symbol-loading
  2103. Control whether to print informational messages when loading symbol
  2104. information for a file. The default is "full", but when debugging
  2105. programs with large numbers of shared libraries the amount of output
  2106. becomes less useful.
  2107. set guile print-stack (none|message|full)
  2108. show guile print-stack
  2109. Show a stack trace when an error is encountered in a Guile script.
  2110. set auto-load guile-scripts (on|off)
  2111. show auto-load guile-scripts
  2112. Control auto-loading of Guile script files.
  2113. maint ada set ignore-descriptive-types (on|off)
  2114. maint ada show ignore-descriptive-types
  2115. Control whether the debugger should ignore descriptive types in Ada
  2116. programs. The default is not to ignore the descriptive types. See
  2117. the user manual for more details on descriptive types and the intended
  2118. usage of this option.
  2119. set auto-connect-native-target
  2120. Control whether GDB is allowed to automatically connect to the
  2121. native target for the run, attach, etc. commands when not connected
  2122. to any target yet. See also "target native" below.
  2123. set record btrace replay-memory-access (read-only|read-write)
  2124. show record btrace replay-memory-access
  2125. Control what memory accesses are allowed during replay.
  2126. maint set target-async (on|off)
  2127. maint show target-async
  2128. This controls whether GDB targets operate in synchronous or
  2129. asynchronous mode. Normally the default is asynchronous, if it is
  2130. available; but this can be changed to more easily debug problems
  2131. occurring only in synchronous mode.
  2132. set mi-async (on|off)
  2133. show mi-async
  2134. Control whether MI asynchronous mode is preferred. This supersedes
  2135. "set target-async" of previous GDB versions.
  2136. * "set target-async" is deprecated as a CLI option and is now an alias
  2137. for "set mi-async" (only puts MI into async mode).
  2138. * Background execution commands (e.g., "c&", "s&", etc.) are now
  2139. possible ``out of the box'' if the target supports them. Previously
  2140. the user would need to explicitly enable the possibility with the
  2141. "set target-async on" command.
  2142. * New features in the GDB remote stub, GDBserver
  2143. ** New option --debug-format=option1[,option2,...] allows one to add
  2144. additional text to each output. At present only timestamps
  2145. are supported: --debug-format=timestamps.
  2146. Timestamps can also be turned on with the
  2147. "monitor set debug-format timestamps" command from GDB.
  2148. * The 'record instruction-history' command now starts counting instructions
  2149. at one. This also affects the instruction ranges reported by the
  2150. 'record function-call-history' command when given the /i modifier.
  2151. * The command 'record function-call-history' supports a new modifier '/c' to
  2152. indent the function names based on their call stack depth.
  2153. The fields for the '/i' and '/l' modifier have been reordered.
  2154. The source line range is now prefixed with 'at'.
  2155. The instruction range is now prefixed with 'inst'.
  2156. Both ranges are now printed as '<from>, <to>' to allow copy&paste to the
  2157. "record instruction-history" and "list" commands.
  2158. * The ranges given as arguments to the 'record function-call-history' and
  2159. 'record instruction-history' commands are now inclusive.
  2160. * The btrace record target now supports the 'record goto' command.
  2161. For locations inside the execution trace, the back trace is computed
  2162. based on the information stored in the execution trace.
  2163. * The btrace record target supports limited reverse execution and replay.
  2164. The target does not record data and therefore does not allow reading
  2165. memory or registers.
  2166. * The "catch syscall" command now works on s390*-linux* targets.
  2167. * The "compare-sections" command is no longer specific to target
  2168. remote. It now works with all targets.
  2169. * All native targets are now consistently called "native".
  2170. Consequently, the "target child", "target GNU", "target djgpp",
  2171. "target procfs" (Solaris/Irix/OSF/AIX) and "target darwin-child"
  2172. commands have been replaced with "target native". The QNX/NTO port
  2173. leaves the "procfs" target in place and adds a "native" target for
  2174. consistency with other ports. The impact on users should be minimal
  2175. as these commands previously either throwed an error, or were
  2176. no-ops. The target's name is visible in the output of the following
  2177. commands: "help target", "info target", "info files", "maint print
  2178. target-stack".
  2179. * The "target native" command now connects to the native target. This
  2180. can be used to launch native programs even when "set
  2181. auto-connect-native-target" is set to off.
  2182. * GDB now supports access to Intel MPX registers on GNU/Linux.
  2183. * Support for Intel AVX-512 registers on GNU/Linux.
  2184. Support displaying and modifying Intel AVX-512 registers
  2185. $zmm0 - $zmm31 and $k0 - $k7 on GNU/Linux.
  2186. * New remote packets
  2187. qXfer:btrace:read's annex
  2188. The qXfer:btrace:read packet supports a new annex 'delta' to read
  2189. branch trace incrementally.
  2190. * Python Scripting
  2191. ** Valid Python operations on gdb.Value objects representing
  2192. structs/classes invoke the corresponding overloaded operators if
  2193. available.
  2194. ** New `Xmethods' feature in the Python API. Xmethods are
  2195. additional methods or replacements for existing methods of a C++
  2196. class. This feature is useful for those cases where a method
  2197. defined in C++ source code could be inlined or optimized out by
  2198. the compiler, making it unavailable to GDB.
  2199. * New targets
  2200. PowerPC64 GNU/Linux little-endian powerpc64le-*-linux*
  2201. * The "dll-symbols" command, and its two aliases ("add-shared-symbol-files"
  2202. and "assf"), have been deprecated. Use the "sharedlibrary" command, or
  2203. its alias "share", instead.
  2204. * The commands "set remotebaud" and "show remotebaud" are no longer
  2205. supported. Use "set serial baud" and "show serial baud" (respectively)
  2206. instead.
  2207. * MI changes
  2208. ** A new option "-gdb-set mi-async" replaces "-gdb-set
  2209. target-async". The latter is left as a deprecated alias of the
  2210. former for backward compatibility. If the target supports it,
  2211. CLI background execution commands are now always possible by
  2212. default, independently of whether the frontend stated a
  2213. preference for asynchronous execution with "-gdb-set mi-async".
  2214. Previously "-gdb-set target-async off" affected both MI execution
  2215. commands and CLI execution commands.
  2216. *** Changes in GDB 7.7
  2217. * Improved support for process record-replay and reverse debugging on
  2218. arm*-linux* targets. Support for thumb32 and syscall instruction
  2219. recording has been added.
  2220. * GDB now supports SystemTap SDT probes on AArch64 GNU/Linux.
  2221. * GDB now supports Fission DWP file format version 2.
  2222. http://gcc.gnu.org/wiki/DebugFission
  2223. * New convenience function "$_isvoid", to check whether an expression
  2224. is void. A void expression is an expression where the type of the
  2225. result is "void". For example, some convenience variables may be
  2226. "void" when evaluated (e.g., "$_exitcode" before the execution of
  2227. the program being debugged; or an undefined convenience variable).
  2228. Another example, when calling a function whose return type is
  2229. "void".
  2230. * The "maintenance print objfiles" command now takes an optional regexp.
  2231. * The "catch syscall" command now works on arm*-linux* targets.
  2232. * GDB now consistently shows "<not saved>" when printing values of
  2233. registers the debug info indicates have not been saved in the frame
  2234. and there's nowhere to retrieve them from
  2235. (callee-saved/call-clobbered registers):
  2236. (gdb) p $rax
  2237. $1 = <not saved>
  2238. (gdb) info registers rax
  2239. rax <not saved>
  2240. Before, the former would print "<optimized out>", and the latter
  2241. "*value not available*".
  2242. * New script contrib/gdb-add-index.sh for adding .gdb_index sections
  2243. to binaries.
  2244. * Python scripting
  2245. ** Frame filters and frame decorators have been added.
  2246. ** Temporary breakpoints are now supported.
  2247. ** Line tables representation has been added.
  2248. ** New attribute 'parent_type' for gdb.Field objects.
  2249. ** gdb.Field objects can be used as subscripts on gdb.Value objects.
  2250. ** New attribute 'name' for gdb.Type objects.
  2251. * New targets
  2252. Nios II ELF nios2*-*-elf
  2253. Nios II GNU/Linux nios2*-*-linux
  2254. Texas Instruments MSP430 msp430*-*-elf
  2255. * Removed native configurations
  2256. Support for these a.out NetBSD and OpenBSD obsolete configurations has
  2257. been removed. ELF variants of these configurations are kept supported.
  2258. arm*-*-netbsd* but arm*-*-netbsdelf* is kept supported.
  2259. i[34567]86-*-netbsd* but i[34567]86-*-netbsdelf* is kept supported.
  2260. i[34567]86-*-openbsd[0-2].* but i[34567]86-*-openbsd* is kept supported.
  2261. i[34567]86-*-openbsd3.[0-3]
  2262. m68*-*-netbsd* but m68*-*-netbsdelf* is kept supported.
  2263. sparc-*-netbsd* but sparc-*-netbsdelf* is kept supported.
  2264. vax-*-netbsd* but vax-*-netbsdelf* is kept supported.
  2265. * New commands:
  2266. catch rethrow
  2267. Like "catch throw", but catches a re-thrown exception.
  2268. maint check-psymtabs
  2269. Renamed from old "maint check-symtabs".
  2270. maint check-symtabs
  2271. Perform consistency checks on symtabs.
  2272. maint expand-symtabs
  2273. Expand symtabs matching an optional regexp.
  2274. show configuration
  2275. Display the details of GDB configure-time options.
  2276. maint set|show per-command
  2277. maint set|show per-command space
  2278. maint set|show per-command time
  2279. maint set|show per-command symtab
  2280. Enable display of per-command gdb resource usage.
  2281. remove-symbol-file FILENAME
  2282. remove-symbol-file -a ADDRESS
  2283. Remove a symbol file added via add-symbol-file. The file to remove
  2284. can be identified by its filename or by an address that lies within
  2285. the boundaries of this symbol file in memory.
  2286. info exceptions
  2287. info exceptions REGEXP
  2288. Display the list of Ada exceptions defined in the program being
  2289. debugged. If provided, only the exceptions whose names match REGEXP
  2290. are listed.
  2291. * New options
  2292. set debug symfile off|on
  2293. show debug symfile
  2294. Control display of debugging info regarding reading symbol files and
  2295. symbol tables within those files
  2296. set print raw frame-arguments
  2297. show print raw frame-arguments
  2298. Set/show whether to print frame arguments in raw mode,
  2299. disregarding any defined pretty-printers.
  2300. set remote trace-status-packet
  2301. show remote trace-status-packet
  2302. Set/show the use of remote protocol qTStatus packet.
  2303. set debug nios2
  2304. show debug nios2
  2305. Control display of debugging messages related to Nios II targets.
  2306. set range-stepping
  2307. show range-stepping
  2308. Control whether target-assisted range stepping is enabled.
  2309. set startup-with-shell
  2310. show startup-with-shell
  2311. Specifies whether Unix child processes are started via a shell or
  2312. directly.
  2313. set code-cache
  2314. show code-cache
  2315. Use the target memory cache for accesses to the code segment. This
  2316. improves performance of remote debugging (particularly disassembly).
  2317. * You can now use a literal value 'unlimited' for options that
  2318. interpret 0 or -1 as meaning "unlimited". E.g., "set
  2319. trace-buffer-size unlimited" is now an alias for "set
  2320. trace-buffer-size -1" and "set height unlimited" is now an alias for
  2321. "set height 0".
  2322. * The "set debug symtab-create" debugging option of GDB has been changed to
  2323. accept a verbosity level. 0 means "off", 1 provides basic debugging
  2324. output, and values of 2 or greater provides more verbose output.
  2325. * New command-line options
  2326. --configuration
  2327. Display the details of GDB configure-time options.
  2328. * The command 'tsave' can now support new option '-ctf' to save trace
  2329. buffer in Common Trace Format.
  2330. * Newly installed $prefix/bin/gcore acts as a shell interface for the
  2331. GDB command gcore.
  2332. * GDB now implements the C++ 'typeid' operator.
  2333. * The new convenience variable $_exception holds the exception being
  2334. thrown or caught at an exception-related catchpoint.
  2335. * The exception-related catchpoints, like "catch throw", now accept a
  2336. regular expression which can be used to filter exceptions by type.
  2337. * The new convenience variable $_exitsignal is automatically set to
  2338. the terminating signal number when the program being debugged dies
  2339. due to an uncaught signal.
  2340. * MI changes
  2341. ** All MI commands now accept an optional "--language" option.
  2342. Support for this feature can be verified by using the "-list-features"
  2343. command, which should contain "language-option".
  2344. ** The new command -info-gdb-mi-command allows the user to determine
  2345. whether a GDB/MI command is supported or not.
  2346. ** The "^error" result record returned when trying to execute an undefined
  2347. GDB/MI command now provides a variable named "code" whose content is the
  2348. "undefined-command" error code. Support for this feature can be verified
  2349. by using the "-list-features" command, which should contain
  2350. "undefined-command-error-code".
  2351. ** The -trace-save MI command can optionally save trace buffer in Common
  2352. Trace Format now.
  2353. ** The new command -dprintf-insert sets a dynamic printf breakpoint.
  2354. ** The command -data-list-register-values now accepts an optional
  2355. "--skip-unavailable" option. When used, only the available registers
  2356. are displayed.
  2357. ** The new command -trace-frame-collected dumps collected variables,
  2358. computed expressions, tvars, memory and registers in a traceframe.
  2359. ** The commands -stack-list-locals, -stack-list-arguments and
  2360. -stack-list-variables now accept an option "--skip-unavailable".
  2361. When used, only the available locals or arguments are displayed.
  2362. ** The -exec-run command now accepts an optional "--start" option.
  2363. When used, the command follows the same semantics as the "start"
  2364. command, stopping the program's execution at the start of its
  2365. main subprogram. Support for this feature can be verified using
  2366. the "-list-features" command, which should contain
  2367. "exec-run-start-option".
  2368. ** The new commands -catch-assert and -catch-exceptions insert
  2369. catchpoints stopping the program when Ada exceptions are raised.
  2370. ** The new command -info-ada-exceptions provides the equivalent of
  2371. the new "info exceptions" command.
  2372. * New system-wide configuration scripts
  2373. A GDB installation now provides scripts suitable for use as system-wide
  2374. configuration scripts for the following systems:
  2375. ** ElinOS
  2376. ** Wind River Linux
  2377. * GDB now supports target-assigned range stepping with remote targets.
  2378. This improves the performance of stepping source lines by reducing
  2379. the number of control packets from/to GDB. See "New remote packets"
  2380. below.
  2381. * GDB now understands the element 'tvar' in the XML traceframe info.
  2382. It has the id of the collected trace state variables.
  2383. * On S/390 targets that provide the transactional-execution feature,
  2384. the program interruption transaction diagnostic block (TDB) is now
  2385. represented as a number of additional "registers" in GDB.
  2386. * New remote packets
  2387. vCont;r
  2388. The vCont packet supports a new 'r' action, that tells the remote
  2389. stub to step through an address range itself, without GDB
  2390. involvemement at each single-step.
  2391. qXfer:libraries-svr4:read's annex
  2392. The previously unused annex of the qXfer:libraries-svr4:read packet
  2393. is now used to support passing an argument list. The remote stub
  2394. reports support for this argument list to GDB's qSupported query.
  2395. The defined arguments are "start" and "prev", used to reduce work
  2396. necessary for library list updating, resulting in significant
  2397. speedup.
  2398. * New features in the GDB remote stub, GDBserver
  2399. ** GDBserver now supports target-assisted range stepping. Currently
  2400. enabled on x86/x86_64 GNU/Linux targets.
  2401. ** GDBserver now adds element 'tvar' in the XML in the reply to
  2402. 'qXfer:traceframe-info:read'. It has the id of the collected
  2403. trace state variables.
  2404. ** GDBserver now supports hardware watchpoints on the MIPS GNU/Linux
  2405. target.
  2406. * New 'z' formatter for printing and examining memory, this displays the
  2407. value as hexadecimal zero padded on the left to the size of the type.
  2408. * GDB can now use Windows x64 unwinding data.
  2409. * The "set remotebaud" command has been replaced by "set serial baud".
  2410. Similarly, "show remotebaud" has been replaced by "show serial baud".
  2411. The "set remotebaud" and "show remotebaud" commands are still available
  2412. to provide backward compatibility with older versions of GDB.
  2413. *** Changes in GDB 7.6
  2414. * Target record has been renamed to record-full.
  2415. Record/replay is now enabled with the "record full" command.
  2416. This also affects settings that are associated with full record/replay
  2417. that have been moved from "set/show record" to "set/show record full":
  2418. set|show record full insn-number-max
  2419. set|show record full stop-at-limit
  2420. set|show record full memory-query
  2421. * A new record target "record-btrace" has been added. The new target
  2422. uses hardware support to record the control-flow of a process. It
  2423. does not support replaying the execution, but it implements the
  2424. below new commands for investigating the recorded execution log.
  2425. This new recording method can be enabled using:
  2426. record btrace
  2427. The "record-btrace" target is only available on Intel Atom processors
  2428. and requires a Linux kernel 2.6.32 or later.
  2429. * Two new commands have been added for record/replay to give information
  2430. about the recorded execution without having to replay the execution.
  2431. The commands are only supported by "record btrace".
  2432. record instruction-history prints the execution history at
  2433. instruction granularity
  2434. record function-call-history prints the execution history at
  2435. function granularity
  2436. * New native configurations
  2437. ARM AArch64 GNU/Linux aarch64*-*-linux-gnu
  2438. FreeBSD/powerpc powerpc*-*-freebsd
  2439. x86_64/Cygwin x86_64-*-cygwin*
  2440. Tilera TILE-Gx GNU/Linux tilegx*-*-linux-gnu
  2441. * New targets
  2442. ARM AArch64 aarch64*-*-elf
  2443. ARM AArch64 GNU/Linux aarch64*-*-linux
  2444. Lynx 178 PowerPC powerpc-*-lynx*178
  2445. x86_64/Cygwin x86_64-*-cygwin*
  2446. Tilera TILE-Gx GNU/Linux tilegx*-*-linux
  2447. * If the configured location of system.gdbinit file (as given by the
  2448. --with-system-gdbinit option at configure time) is in the
  2449. data-directory (as specified by --with-gdb-datadir at configure
  2450. time) or in one of its subdirectories, then GDB will look for the
  2451. system-wide init file in the directory specified by the
  2452. --data-directory command-line option.
  2453. * New command line options:
  2454. -nh Disables auto-loading of ~/.gdbinit, but still executes all the
  2455. other initialization files, unlike -nx which disables all of them.
  2456. * Removed command line options
  2457. -epoch This was used by the gdb mode in Epoch, an ancient fork of
  2458. Emacs.
  2459. * The 'ptype' and 'whatis' commands now accept an argument to control
  2460. type formatting.
  2461. * 'info proc' now works on some core files.
  2462. * Python scripting
  2463. ** Vectors can be created with gdb.Type.vector.
  2464. ** Python's atexit.register now works in GDB.
  2465. ** Types can be pretty-printed via a Python API.
  2466. ** Python 3 is now supported (in addition to Python 2.4 or later)
  2467. ** New class gdb.Architecture exposes GDB's internal representation
  2468. of architecture in the Python API.
  2469. ** New method Frame.architecture returns the gdb.Architecture object
  2470. corresponding to the frame's architecture.
  2471. * New Python-based convenience functions:
  2472. ** $_memeq(buf1, buf2, length)
  2473. ** $_streq(str1, str2)
  2474. ** $_strlen(str)
  2475. ** $_regex(str, regex)
  2476. * The 'cd' command now defaults to using '~' (the home directory) if not
  2477. given an argument.
  2478. * The C++ ABI now defaults to the GNU v3 ABI. This has been the
  2479. default for GCC since November 2000.
  2480. * The command 'forward-search' can now be abbreviated as 'fo'.
  2481. * The command 'info tracepoints' can now display 'installed on target'
  2482. or 'not installed on target' for each non-pending location of tracepoint.
  2483. * New configure options
  2484. --enable-libmcheck/--disable-libmcheck
  2485. By default, development versions are built with -lmcheck on hosts
  2486. that support it, in order to help track memory corruption issues.
  2487. Release versions, on the other hand, are built without -lmcheck
  2488. by default. The --enable-libmcheck/--disable-libmcheck configure
  2489. options allow the user to override that default.
  2490. --with-babeltrace/--with-babeltrace-include/--with-babeltrace-lib
  2491. This configure option allows the user to build GDB with
  2492. libbabeltrace using which GDB can read Common Trace Format data.
  2493. * New commands (for set/show, see "New options" below)
  2494. catch signal
  2495. Catch signals. This is similar to "handle", but allows commands and
  2496. conditions to be attached.
  2497. maint info bfds
  2498. List the BFDs known to GDB.
  2499. python-interactive [command]
  2500. pi [command]
  2501. Start a Python interactive prompt, or evaluate the optional command
  2502. and print the result of expressions.
  2503. py [command]
  2504. "py" is a new alias for "python".
  2505. enable type-printer [name]...
  2506. disable type-printer [name]...
  2507. Enable or disable type printers.
  2508. * Removed commands
  2509. ** For the Renesas Super-H architecture, the "regs" command has been removed
  2510. (has been deprecated in GDB 7.5), and "info all-registers" should be used
  2511. instead.
  2512. * New options
  2513. set print type methods (on|off)
  2514. show print type methods
  2515. Control whether method declarations are displayed by "ptype".
  2516. The default is to show them.
  2517. set print type typedefs (on|off)
  2518. show print type typedefs
  2519. Control whether typedef definitions are displayed by "ptype".
  2520. The default is to show them.
  2521. set filename-display basename|relative|absolute
  2522. show filename-display
  2523. Control the way in which filenames is displayed.
  2524. The default is "relative", which preserves previous behavior.
  2525. set trace-buffer-size
  2526. show trace-buffer-size
  2527. Request target to change the size of trace buffer.
  2528. set remote trace-buffer-size-packet auto|on|off
  2529. show remote trace-buffer-size-packet
  2530. Control the use of the remote protocol `QTBuffer:size' packet.
  2531. set debug aarch64
  2532. show debug aarch64
  2533. Control display of debugging messages related to ARM AArch64.
  2534. The default is off.
  2535. set debug coff-pe-read
  2536. show debug coff-pe-read
  2537. Control display of debugging messages related to reading of COFF/PE
  2538. exported symbols.
  2539. set debug mach-o
  2540. show debug mach-o
  2541. Control display of debugging messages related to Mach-O symbols
  2542. processing.
  2543. set debug notification
  2544. show debug notification
  2545. Control display of debugging info for async remote notification.
  2546. * MI changes
  2547. ** Command parameter changes are now notified using new async record
  2548. "=cmd-param-changed".
  2549. ** Trace frame changes caused by command "tfind" are now notified using
  2550. new async record "=traceframe-changed".
  2551. ** The creation, deletion and modification of trace state variables
  2552. are now notified using new async records "=tsv-created",
  2553. "=tsv-deleted" and "=tsv-modified".
  2554. ** The start and stop of process record are now notified using new
  2555. async record "=record-started" and "=record-stopped".
  2556. ** Memory changes are now notified using new async record
  2557. "=memory-changed".
  2558. ** The data-disassemble command response will include a "fullname" field
  2559. containing the absolute file name when source has been requested.
  2560. ** New optional parameter COUNT added to the "-data-write-memory-bytes"
  2561. command, to allow pattern filling of memory areas.
  2562. ** New commands "-catch-load"/"-catch-unload" added for intercepting
  2563. library load/unload events.
  2564. ** The response to breakpoint commands and breakpoint async records
  2565. includes an "installed" field containing a boolean state about each
  2566. non-pending tracepoint location is whether installed on target or not.
  2567. ** Output of the "-trace-status" command includes a "trace-file" field
  2568. containing the name of the trace file being examined. This field is
  2569. optional, and only present when examining a trace file.
  2570. ** The "fullname" field is now always present along with the "file" field,
  2571. even if the file cannot be found by GDB.
  2572. * GDB now supports the "mini debuginfo" section, .gnu_debugdata.
  2573. You must have the LZMA library available when configuring GDB for this
  2574. feature to be enabled. For more information, see:
  2575. http://fedoraproject.org/wiki/Features/MiniDebugInfo
  2576. * New remote packets
  2577. QTBuffer:size
  2578. Set the size of trace buffer. The remote stub reports support for this
  2579. packet to gdb's qSupported query.
  2580. Qbtrace:bts
  2581. Enable Branch Trace Store (BTS)-based branch tracing for the current
  2582. thread. The remote stub reports support for this packet to gdb's
  2583. qSupported query.
  2584. Qbtrace:off
  2585. Disable branch tracing for the current thread. The remote stub reports
  2586. support for this packet to gdb's qSupported query.
  2587. qXfer:btrace:read
  2588. Read the traced branches for the current thread. The remote stub
  2589. reports support for this packet to gdb's qSupported query.
  2590. *** Changes in GDB 7.5
  2591. * GDB now supports x32 ABI. Visit <http://sites.google.com/site/x32abi/>
  2592. for more x32 ABI info.
  2593. * GDB now supports access to MIPS DSP registers on Linux targets.
  2594. * GDB now supports debugging microMIPS binaries.
  2595. * The "info os" command on GNU/Linux can now display information on
  2596. several new classes of objects managed by the operating system:
  2597. "info os procgroups" lists process groups
  2598. "info os files" lists file descriptors
  2599. "info os sockets" lists internet-domain sockets
  2600. "info os shm" lists shared-memory regions
  2601. "info os semaphores" lists semaphores
  2602. "info os msg" lists message queues
  2603. "info os modules" lists loaded kernel modules
  2604. * GDB now has support for SDT (Static Defined Tracing) probes. Currently,
  2605. the only implemented backend is for SystemTap probes (<sys/sdt.h>). You
  2606. can set a breakpoint using the new "-probe, "-pstap" or "-probe-stap"
  2607. options and inspect the probe arguments using the new $_probe_arg family
  2608. of convenience variables. You can obtain more information about SystemTap
  2609. in <http://sourceware.org/systemtap/>.
  2610. * GDB now supports reversible debugging on ARM, it allows you to
  2611. debug basic ARM and THUMB instructions, and provides
  2612. record/replay support.
  2613. * The option "symbol-reloading" has been deleted as it is no longer used.
  2614. * Python scripting
  2615. ** GDB commands implemented in Python can now be put in command class
  2616. "gdb.COMMAND_USER".
  2617. ** The "maint set python print-stack on|off" is now deleted.
  2618. ** A new class, gdb.printing.FlagEnumerationPrinter, can be used to
  2619. apply "flag enum"-style pretty-printing to any enum.
  2620. ** gdb.lookup_symbol can now work when there is no current frame.
  2621. ** gdb.Symbol now has a 'line' attribute, holding the line number in
  2622. the source at which the symbol was defined.
  2623. ** gdb.Symbol now has the new attribute 'needs_frame' and the new
  2624. method 'value'. The former indicates whether the symbol needs a
  2625. frame in order to compute its value, and the latter computes the
  2626. symbol's value.
  2627. ** A new method 'referenced_value' on gdb.Value objects which can
  2628. dereference pointer as well as C++ reference values.
  2629. ** New methods 'global_block' and 'static_block' on gdb.Symtab objects
  2630. which return the global and static blocks (as gdb.Block objects),
  2631. of the underlying symbol table, respectively.
  2632. ** New function gdb.find_pc_line which returns the gdb.Symtab_and_line
  2633. object associated with a PC value.
  2634. ** gdb.Symtab_and_line has new attribute 'last' which holds the end
  2635. of the address range occupied by code for the current source line.
  2636. * Go language support.
  2637. GDB now supports debugging programs written in the Go programming
  2638. language.
  2639. * GDBserver now supports stdio connections.
  2640. E.g. (gdb) target remote | ssh myhost gdbserver - hello
  2641. * The binary "gdbtui" can no longer be built or installed.
  2642. Use "gdb -tui" instead.
  2643. * GDB will now print "flag" enums specially. A flag enum is one where
  2644. all the enumerator values have no bits in common when pairwise
  2645. "and"ed. When printing a value whose type is a flag enum, GDB will
  2646. show all the constants, e.g., for enum E { ONE = 1, TWO = 2}:
  2647. (gdb) print (enum E) 3
  2648. $1 = (ONE | TWO)
  2649. * The filename part of a linespec will now match trailing components
  2650. of a source file name. For example, "break gcc/expr.c:1000" will
  2651. now set a breakpoint in build/gcc/expr.c, but not
  2652. build/libcpp/expr.c.
  2653. * The "info proc" and "generate-core-file" commands will now also
  2654. work on remote targets connected to GDBserver on Linux.
  2655. * The command "info catch" has been removed. It has been disabled
  2656. since December 2007.
  2657. * The "catch exception" and "catch assert" commands now accept
  2658. a condition at the end of the command, much like the "break"
  2659. command does. For instance:
  2660. (gdb) catch exception Constraint_Error if Barrier = True
  2661. Previously, it was possible to add a condition to such catchpoints,
  2662. but it had to be done as a second step, after the catchpoint had been
  2663. created, using the "condition" command.
  2664. * The "info static-tracepoint-marker" command will now also work on
  2665. native Linux targets with in-process agent.
  2666. * GDB can now set breakpoints on inlined functions.
  2667. * The .gdb_index section has been updated to include symbols for
  2668. inlined functions. GDB will ignore older .gdb_index sections by
  2669. default, which could cause symbol files to be loaded more slowly
  2670. until their .gdb_index sections can be recreated. The new command
  2671. "set use-deprecated-index-sections on" will cause GDB to use any older
  2672. .gdb_index sections it finds. This will restore performance, but the
  2673. ability to set breakpoints on inlined functions will be lost in symbol
  2674. files with older .gdb_index sections.
  2675. The .gdb_index section has also been updated to record more information
  2676. about each symbol. This speeds up the "info variables", "info functions"
  2677. and "info types" commands when used with programs having the .gdb_index
  2678. section, as well as speeding up debugging with shared libraries using
  2679. the .gdb_index section.
  2680. * Ada support for GDB/MI Variable Objects has been added.
  2681. * GDB can now support 'breakpoint always-inserted mode' in 'record'
  2682. target.
  2683. * MI changes
  2684. ** New command -info-os is the MI equivalent of "info os".
  2685. ** Output logs ("set logging" and related) now include MI output.
  2686. * New commands
  2687. ** "set use-deprecated-index-sections on|off"
  2688. "show use-deprecated-index-sections on|off"
  2689. Controls the use of deprecated .gdb_index sections.
  2690. ** "catch load" and "catch unload" can be used to stop when a shared
  2691. library is loaded or unloaded, respectively.
  2692. ** "enable count" can be used to auto-disable a breakpoint after
  2693. several hits.
  2694. ** "info vtbl" can be used to show the virtual method tables for
  2695. C++ and Java objects.
  2696. ** "explore" and its sub commands "explore value" and "explore type"
  2697. can be used to recursively explore values and types of
  2698. expressions. These commands are available only if GDB is
  2699. configured with '--with-python'.
  2700. ** "info auto-load" shows status of all kinds of auto-loaded files,
  2701. "info auto-load gdb-scripts" shows status of auto-loading GDB canned
  2702. sequences of commands files, "info auto-load python-scripts"
  2703. shows status of auto-loading Python script files,
  2704. "info auto-load local-gdbinit" shows status of loading init file
  2705. (.gdbinit) from current directory and "info auto-load libthread-db" shows
  2706. status of inferior specific thread debugging shared library loading.
  2707. ** "info auto-load-scripts", "set auto-load-scripts on|off"
  2708. and "show auto-load-scripts" commands have been deprecated, use their
  2709. "info auto-load python-scripts", "set auto-load python-scripts on|off"
  2710. and "show auto-load python-scripts" counterparts instead.
  2711. ** "dprintf location,format,args..." creates a dynamic printf, which
  2712. is basically a breakpoint that does a printf and immediately
  2713. resumes your program's execution, so it is like a printf that you
  2714. can insert dynamically at runtime instead of at compiletime.
  2715. ** "set print symbol"
  2716. "show print symbol"
  2717. Controls whether GDB attempts to display the symbol, if any,
  2718. corresponding to addresses it prints. This defaults to "on", but
  2719. you can set it to "off" to restore GDB's previous behavior.
  2720. * Deprecated commands
  2721. ** For the Renesas Super-H architecture, the "regs" command has been
  2722. deprecated, and "info all-registers" should be used instead.
  2723. * New targets
  2724. Renesas RL78 rl78-*-elf
  2725. HP OpenVMS ia64 ia64-hp-openvms*
  2726. * GDBserver supports evaluation of breakpoint conditions. When
  2727. support is advertised by GDBserver, GDB may be told to send the
  2728. breakpoint conditions in bytecode form to GDBserver. GDBserver
  2729. will only report the breakpoint trigger to GDB when its condition
  2730. evaluates to true.
  2731. * New options
  2732. set mips compression
  2733. show mips compression
  2734. Select the compressed ISA encoding used in functions that have no symbol
  2735. information available. The encoding can be set to either of:
  2736. mips16
  2737. micromips
  2738. and is updated automatically from ELF file flags if available.
  2739. set breakpoint condition-evaluation
  2740. show breakpoint condition-evaluation
  2741. Control whether breakpoint conditions are evaluated by GDB ("host") or by
  2742. GDBserver ("target"). Default option "auto" chooses the most efficient
  2743. available mode.
  2744. This option can improve debugger efficiency depending on the speed of the
  2745. target.
  2746. set auto-load off
  2747. Disable auto-loading globally.
  2748. show auto-load
  2749. Show auto-loading setting of all kinds of auto-loaded files.
  2750. set auto-load gdb-scripts on|off
  2751. show auto-load gdb-scripts
  2752. Control auto-loading of GDB canned sequences of commands files.
  2753. set auto-load python-scripts on|off
  2754. show auto-load python-scripts
  2755. Control auto-loading of Python script files.
  2756. set auto-load local-gdbinit on|off
  2757. show auto-load local-gdbinit
  2758. Control loading of init file (.gdbinit) from current directory.
  2759. set auto-load libthread-db on|off
  2760. show auto-load libthread-db
  2761. Control auto-loading of inferior specific thread debugging shared library.
  2762. set auto-load scripts-directory <dir1>[:<dir2>...]
  2763. show auto-load scripts-directory
  2764. Set a list of directories from which to load auto-loaded scripts.
  2765. Automatically loaded Python scripts and GDB scripts are located in one
  2766. of the directories listed by this option.
  2767. The delimiter (':' above) may differ according to the host platform.
  2768. set auto-load safe-path <dir1>[:<dir2>...]
  2769. show auto-load safe-path
  2770. Set a list of directories from which it is safe to auto-load files.
  2771. The delimiter (':' above) may differ according to the host platform.
  2772. set debug auto-load on|off
  2773. show debug auto-load
  2774. Control display of debugging info for auto-loading the files above.
  2775. set dprintf-style gdb|call|agent
  2776. show dprintf-style
  2777. Control the way in which a dynamic printf is performed; "gdb"
  2778. requests a GDB printf command, while "call" causes dprintf to call a
  2779. function in the inferior. "agent" requests that the target agent
  2780. (such as GDBserver) do the printing.
  2781. set dprintf-function <expr>
  2782. show dprintf-function
  2783. set dprintf-channel <expr>
  2784. show dprintf-channel
  2785. Set the function and optional first argument to the call when using
  2786. the "call" style of dynamic printf.
  2787. set disconnected-dprintf on|off
  2788. show disconnected-dprintf
  2789. Control whether agent-style dynamic printfs continue to be in effect
  2790. after GDB disconnects.
  2791. * New configure options
  2792. --with-auto-load-dir
  2793. Configure default value for the 'set auto-load scripts-directory'
  2794. setting above. It defaults to '$debugdir:$datadir/auto-load',
  2795. $debugdir representing global debugging info directories (available
  2796. via 'show debug-file-directory') and $datadir representing GDB's data
  2797. directory (available via 'show data-directory').
  2798. --with-auto-load-safe-path
  2799. Configure default value for the 'set auto-load safe-path' setting
  2800. above. It defaults to the --with-auto-load-dir setting.
  2801. --without-auto-load-safe-path
  2802. Set 'set auto-load safe-path' to '/', effectively disabling this
  2803. security feature.
  2804. * New remote packets
  2805. z0/z1 conditional breakpoints extension
  2806. The z0/z1 breakpoint insertion packets have been extended to carry
  2807. a list of conditional expressions over to the remote stub depending on the
  2808. condition evaluation mode. The use of this extension can be controlled
  2809. via the "set remote conditional-breakpoints-packet" command.
  2810. QProgramSignals:
  2811. Specify the signals which the remote stub may pass to the debugged
  2812. program without GDB involvement.
  2813. * New command line options
  2814. --init-command=FILE, -ix Like --command, -x but execute it
  2815. before loading inferior.
  2816. --init-eval-command=COMMAND, -iex Like --eval-command=COMMAND, -ex but
  2817. execute it before loading inferior.
  2818. *** Changes in GDB 7.4
  2819. * GDB now handles ambiguous linespecs more consistently; the existing
  2820. FILE:LINE support has been expanded to other types of linespecs. A
  2821. breakpoint will now be set on all matching locations in all
  2822. inferiors, and locations will be added or removed according to
  2823. inferior changes.
  2824. * GDB now allows you to skip uninteresting functions and files when
  2825. stepping with the "skip function" and "skip file" commands.
  2826. * GDB has two new commands: "set remote hardware-watchpoint-length-limit"
  2827. and "show remote hardware-watchpoint-length-limit". These allows to
  2828. set or show the maximum length limit (in bytes) of a remote
  2829. target hardware watchpoint.
  2830. This allows e.g. to use "unlimited" hardware watchpoints with the
  2831. gdbserver integrated in Valgrind version >= 3.7.0. Such Valgrind
  2832. watchpoints are slower than real hardware watchpoints but are
  2833. significantly faster than gdb software watchpoints.
  2834. * Python scripting
  2835. ** The register_pretty_printer function in module gdb.printing now takes
  2836. an optional `replace' argument. If True, the new printer replaces any
  2837. existing one.
  2838. ** The "maint set python print-stack on|off" command has been
  2839. deprecated and will be deleted in GDB 7.5.
  2840. A new command: "set python print-stack none|full|message" has
  2841. replaced it. Additionally, the default for "print-stack" is
  2842. now "message", which just prints the error message without
  2843. the stack trace.
  2844. ** A prompt substitution hook (prompt_hook) is now available to the
  2845. Python API.
  2846. ** A new Python module, gdb.prompt has been added to the GDB Python
  2847. modules library. This module provides functionality for
  2848. escape sequences in prompts (used by set/show
  2849. extended-prompt). These escape sequences are replaced by their
  2850. corresponding value.
  2851. ** Python commands and convenience-functions located in
  2852. 'data-directory'/python/gdb/command and
  2853. 'data-directory'/python/gdb/function are now automatically loaded
  2854. on GDB start-up.
  2855. ** Blocks now provide four new attributes. global_block and
  2856. static_block will return the global and static blocks
  2857. respectively. is_static and is_global are boolean attributes
  2858. that indicate if the block is one of those two types.
  2859. ** Symbols now provide the "type" attribute, the type of the symbol.
  2860. ** The "gdb.breakpoint" function has been deprecated in favor of
  2861. "gdb.breakpoints".
  2862. ** A new class "gdb.FinishBreakpoint" is provided to catch the return
  2863. of a function. This class is based on the "finish" command
  2864. available in the CLI.
  2865. ** Type objects for struct and union types now allow access to
  2866. the fields using standard Python dictionary (mapping) methods.
  2867. For example, "some_type['myfield']" now works, as does
  2868. "some_type.items()".
  2869. ** A new event "gdb.new_objfile" has been added, triggered by loading a
  2870. new object file.
  2871. ** A new function, "deep_items" has been added to the gdb.types
  2872. module in the GDB Python modules library. This function returns
  2873. an iterator over the fields of a struct or union type. Unlike
  2874. the standard Python "iteritems" method, it will recursively traverse
  2875. any anonymous fields.
  2876. * MI changes
  2877. ** "*stopped" events can report several new "reason"s, such as
  2878. "solib-event".
  2879. ** Breakpoint changes are now notified using new async records, like
  2880. "=breakpoint-modified".
  2881. ** New command -ada-task-info.
  2882. * libthread-db-search-path now supports two special values: $sdir and $pdir.
  2883. $sdir specifies the default system locations of shared libraries.
  2884. $pdir specifies the directory where the libpthread used by the application
  2885. lives.
  2886. GDB no longer looks in $sdir and $pdir after it has searched the directories
  2887. mentioned in libthread-db-search-path. If you want to search those
  2888. directories, they must be specified in libthread-db-search-path.
  2889. The default value of libthread-db-search-path on GNU/Linux and Solaris
  2890. systems is now "$sdir:$pdir".
  2891. $pdir is not supported by gdbserver, it is currently ignored.
  2892. $sdir is supported by gdbserver.
  2893. * New configure option --with-iconv-bin.
  2894. When using the internationalization support like the one in the GNU C
  2895. library, GDB will invoke the "iconv" program to get a list of supported
  2896. character sets. If this program lives in a non-standard location, one can
  2897. use this option to specify where to find it.
  2898. * When natively debugging programs on PowerPC BookE processors running
  2899. a Linux kernel version 2.6.34 or later, GDB supports masked hardware
  2900. watchpoints, which specify a mask in addition to an address to watch.
  2901. The mask specifies that some bits of an address (the bits which are
  2902. reset in the mask) should be ignored when matching the address accessed
  2903. by the inferior against the watchpoint address. See the "PowerPC Embedded"
  2904. section in the user manual for more details.
  2905. * The new option --once causes GDBserver to stop listening for connections once
  2906. the first connection is made. The listening port used by GDBserver will
  2907. become available after that.
  2908. * New commands "info macros" and "alias" have been added.
  2909. * New function parameters suffix @entry specifies value of function parameter
  2910. at the time the function got called. Entry values are available only since
  2911. gcc version 4.7.
  2912. * New commands
  2913. !SHELL COMMAND
  2914. "!" is now an alias of the "shell" command.
  2915. Note that no space is needed between "!" and SHELL COMMAND.
  2916. * Changed commands
  2917. watch EXPRESSION mask MASK_VALUE
  2918. The watch command now supports the mask argument which allows creation
  2919. of masked watchpoints, if the current architecture supports this feature.
  2920. info auto-load-scripts [REGEXP]
  2921. This command was formerly named "maintenance print section-scripts".
  2922. It is now generally useful and is no longer a maintenance-only command.
  2923. info macro [-all] [--] MACRO
  2924. The info macro command has new options `-all' and `--'. The first for
  2925. printing all definitions of a macro. The second for explicitly specifying
  2926. the end of arguments and the beginning of the macro name in case the macro
  2927. name starts with a hyphen.
  2928. collect[/s] EXPRESSIONS
  2929. The tracepoint collect command now takes an optional modifier "/s"
  2930. that directs it to dereference pointer-to-character types and
  2931. collect the bytes of memory up to a zero byte. The behavior is
  2932. similar to what you see when you use the regular print command on a
  2933. string. An optional integer following the "/s" sets a bound on the
  2934. number of bytes that will be collected.
  2935. tstart [NOTES]
  2936. The trace start command now interprets any supplied arguments as a
  2937. note to be recorded with the trace run, with an effect similar to
  2938. setting the variable trace-notes.
  2939. tstop [NOTES]
  2940. The trace stop command now interprets any arguments as a note to be
  2941. mentioned along with the tstatus report that the trace was stopped
  2942. with a command. The effect is similar to setting the variable
  2943. trace-stop-notes.
  2944. * Tracepoints can now be enabled and disabled at any time after a trace
  2945. experiment has been started using the standard "enable" and "disable"
  2946. commands. It is now possible to start a trace experiment with no enabled
  2947. tracepoints; GDB will display a warning, but will allow the experiment to
  2948. begin, assuming that tracepoints will be enabled as needed while the trace
  2949. is running.
  2950. * Fast tracepoints on 32-bit x86-architectures can now be placed at
  2951. locations with 4-byte instructions, when they were previously
  2952. limited to locations with instructions of 5 bytes or longer.
  2953. * New options
  2954. set debug dwarf2-read
  2955. show debug dwarf2-read
  2956. Turns on or off display of debugging messages related to reading
  2957. DWARF debug info. The default is off.
  2958. set debug symtab-create
  2959. show debug symtab-create
  2960. Turns on or off display of debugging messages related to symbol table
  2961. creation. The default is off.
  2962. set extended-prompt
  2963. show extended-prompt
  2964. Set the GDB prompt, and allow escape sequences to be inserted to
  2965. display miscellaneous information (see 'help set extended-prompt'
  2966. for the list of sequences). This prompt (and any information
  2967. accessed through the escape sequences) is updated every time the
  2968. prompt is displayed.
  2969. set print entry-values (both|compact|default|if-needed|no|only|preferred)
  2970. show print entry-values
  2971. Set printing of frame argument values at function entry. In some cases
  2972. GDB can determine the value of function argument which was passed by the
  2973. function caller, even if the value was modified inside the called function.
  2974. set debug entry-values
  2975. show debug entry-values
  2976. Control display of debugging info for determining frame argument values at
  2977. function entry and virtual tail call frames.
  2978. set basenames-may-differ
  2979. show basenames-may-differ
  2980. Set whether a source file may have multiple base names.
  2981. (A "base name" is the name of a file with the directory part removed.
  2982. Example: The base name of "/home/user/hello.c" is "hello.c".)
  2983. If set, GDB will canonicalize file names (e.g., expand symlinks)
  2984. before comparing them. Canonicalization is an expensive operation,
  2985. but it allows the same file be known by more than one base name.
  2986. If not set (the default), all source files are assumed to have just
  2987. one base name, and gdb will do file name comparisons more efficiently.
  2988. set trace-user
  2989. show trace-user
  2990. set trace-notes
  2991. show trace-notes
  2992. Set a user name and notes for the current and any future trace runs.
  2993. This is useful for long-running and/or disconnected traces, to
  2994. inform others (or yourself) as to who is running the trace, supply
  2995. contact information, or otherwise explain what is going on.
  2996. set trace-stop-notes
  2997. show trace-stop-notes
  2998. Set a note attached to the trace run, that is displayed when the
  2999. trace has been stopped by a tstop command. This is useful for
  3000. instance as an explanation, if you are stopping a trace run that was
  3001. started by someone else.
  3002. * New remote packets
  3003. QTEnable
  3004. Dynamically enable a tracepoint in a started trace experiment.
  3005. QTDisable
  3006. Dynamically disable a tracepoint in a started trace experiment.
  3007. QTNotes
  3008. Set the user and notes of the trace run.
  3009. qTP
  3010. Query the current status of a tracepoint.
  3011. qTMinFTPILen
  3012. Query the minimum length of instruction at which a fast tracepoint may
  3013. be placed.
  3014. * Dcache size (number of lines) and line-size are now runtime-configurable
  3015. via "set dcache line" and "set dcache line-size" commands.
  3016. * New targets
  3017. Texas Instruments TMS320C6x tic6x-*-*
  3018. * New Simulators
  3019. Renesas RL78 rl78-*-elf
  3020. *** Changes in GDB 7.3.1
  3021. * The build failure for NetBSD and OpenBSD targets have now been fixed.
  3022. *** Changes in GDB 7.3
  3023. * GDB has a new command: "thread find [REGEXP]".
  3024. It finds the thread id whose name, target id, or thread extra info
  3025. matches the given regular expression.
  3026. * The "catch syscall" command now works on mips*-linux* targets.
  3027. * The -data-disassemble MI command now supports modes 2 and 3 for
  3028. dumping the instruction opcodes.
  3029. * New command line options
  3030. -data-directory DIR Specify DIR as the "data-directory".
  3031. This is mostly for testing purposes.
  3032. * The "maint set python auto-load on|off" command has been renamed to
  3033. "set auto-load-scripts on|off".
  3034. * GDB has a new command: "set directories".
  3035. It is like the "dir" command except that it replaces the
  3036. source path list instead of augmenting it.
  3037. * GDB now understands thread names.
  3038. On GNU/Linux, "info threads" will display the thread name as set by
  3039. prctl or pthread_setname_np.
  3040. There is also a new command, "thread name", which can be used to
  3041. assign a name internally for GDB to display.
  3042. * OpenCL C
  3043. Initial support for the OpenCL C language (http://www.khronos.org/opencl)
  3044. has been integrated into GDB.
  3045. * Python scripting
  3046. ** The function gdb.Write now accepts an optional keyword 'stream'.
  3047. This keyword, when provided, will direct the output to either
  3048. stdout, stderr, or GDB's logging output.
  3049. ** Parameters can now be be sub-classed in Python, and in particular
  3050. you may implement the get_set_doc and get_show_doc functions.
  3051. This improves how Parameter set/show documentation is processed
  3052. and allows for more dynamic content.
  3053. ** Symbols, Symbol Table, Symbol Table and Line, Object Files,
  3054. Inferior, Inferior Thread, Blocks, and Block Iterator APIs now
  3055. have an is_valid method.
  3056. ** Breakpoints can now be sub-classed in Python, and in particular
  3057. you may implement a 'stop' function that is executed each time
  3058. the inferior reaches that breakpoint.
  3059. ** New function gdb.lookup_global_symbol looks up a global symbol.
  3060. ** GDB values in Python are now callable if the value represents a
  3061. function. For example, if 'some_value' represents a function that
  3062. takes two integer parameters and returns a value, you can call
  3063. that function like so:
  3064. result = some_value (10,20)
  3065. ** Module gdb.types has been added.
  3066. It contains a collection of utilities for working with gdb.Types objects:
  3067. get_basic_type, has_field, make_enum_dict.
  3068. ** Module gdb.printing has been added.
  3069. It contains utilities for writing and registering pretty-printers.
  3070. New classes: PrettyPrinter, SubPrettyPrinter,
  3071. RegexpCollectionPrettyPrinter.
  3072. New function: register_pretty_printer.
  3073. ** New commands "info pretty-printers", "enable pretty-printer" and
  3074. "disable pretty-printer" have been added.
  3075. ** gdb.parameter("directories") is now available.
  3076. ** New function gdb.newest_frame returns the newest frame in the
  3077. selected thread.
  3078. ** The gdb.InferiorThread class has a new "name" attribute. This
  3079. holds the thread's name.
  3080. ** Python Support for Inferior events.
  3081. Python scripts can add observers to be notified of events
  3082. occurring in the process being debugged.
  3083. The following events are currently supported:
  3084. - gdb.events.cont Continue event.
  3085. - gdb.events.exited Inferior exited event.
  3086. - gdb.events.stop Signal received, and Breakpoint hit events.
  3087. * C++ Improvements:
  3088. ** GDB now puts template parameters in scope when debugging in an
  3089. instantiation. For example, if you have:
  3090. template<int X> int func (void) { return X; }
  3091. then if you step into func<5>, "print X" will show "5". This
  3092. feature requires proper debuginfo support from the compiler; it
  3093. was added to GCC 4.5.
  3094. ** The motion commands "next", "finish", "until", and "advance" now
  3095. work better when exceptions are thrown. In particular, GDB will
  3096. no longer lose control of the inferior; instead, the GDB will
  3097. stop the inferior at the point at which the exception is caught.
  3098. This functionality requires a change in the exception handling
  3099. code that was introduced in GCC 4.5.
  3100. * GDB now follows GCC's rules on accessing volatile objects when
  3101. reading or writing target state during expression evaluation.
  3102. One notable difference to prior behavior is that "print x = 0"
  3103. no longer generates a read of x; the value of the assignment is
  3104. now always taken directly from the value being assigned.
  3105. * GDB now has some support for using labels in the program's source in
  3106. linespecs. For instance, you can use "advance label" to continue
  3107. execution to a label.
  3108. * GDB now has support for reading and writing a new .gdb_index
  3109. section. This section holds a fast index of DWARF debugging
  3110. information and can be used to greatly speed up GDB startup and
  3111. operation. See the documentation for `save gdb-index' for details.
  3112. * The "watch" command now accepts an optional "-location" argument.
  3113. When used, this causes GDB to watch the memory referred to by the
  3114. expression. Such a watchpoint is never deleted due to it going out
  3115. of scope.
  3116. * GDB now supports thread debugging of core dumps on GNU/Linux.
  3117. GDB now activates thread debugging using the libthread_db library
  3118. when debugging GNU/Linux core dumps, similarly to when debugging
  3119. live processes. As a result, when debugging a core dump file, GDB
  3120. is now able to display pthread_t ids of threads. For example, "info
  3121. threads" shows the same output as when debugging the process when it
  3122. was live. In earlier releases, you'd see something like this:
  3123. (gdb) info threads
  3124. * 1 LWP 6780 main () at main.c:10
  3125. While now you see this:
  3126. (gdb) info threads
  3127. * 1 Thread 0x7f0f5712a700 (LWP 6780) main () at main.c:10
  3128. It is also now possible to inspect TLS variables when debugging core
  3129. dumps.
  3130. When debugging a core dump generated on a machine other than the one
  3131. used to run GDB, you may need to point GDB at the correct
  3132. libthread_db library with the "set libthread-db-search-path"
  3133. command. See the user manual for more details on this command.
  3134. * When natively debugging programs on PowerPC BookE processors running
  3135. a Linux kernel version 2.6.34 or later, GDB supports ranged breakpoints,
  3136. which stop execution of the inferior whenever it executes an instruction
  3137. at any address within the specified range. See the "PowerPC Embedded"
  3138. section in the user manual for more details.
  3139. * New features in the GDB remote stub, GDBserver
  3140. ** GDBserver is now supported on PowerPC LynxOS (versions 4.x and 5.x),
  3141. and i686 LynxOS (version 5.x).
  3142. ** GDBserver is now supported on Blackfin Linux.
  3143. * New native configurations
  3144. ia64 HP-UX ia64-*-hpux*
  3145. * New targets:
  3146. Analog Devices, Inc. Blackfin Processor bfin-*
  3147. * Ada task switching is now supported on sparc-elf targets when
  3148. debugging a program using the Ravenscar Profile. For more information,
  3149. see the "Tasking Support when using the Ravenscar Profile" section
  3150. in the GDB user manual.
  3151. * Guile support was removed.
  3152. * New features in the GNU simulator
  3153. ** The --map-info flag lists all known core mappings.
  3154. ** CFI flashes may be simulated via the "cfi" device.
  3155. *** Changes in GDB 7.2
  3156. * Shared library support for remote targets by default
  3157. When GDB is configured for a generic, non-OS specific target, like
  3158. for example, --target=arm-eabi or one of the many *-*-elf targets,
  3159. GDB now queries remote stubs for loaded shared libraries using the
  3160. `qXfer:libraries:read' packet. Previously, shared library support
  3161. was always disabled for such configurations.
  3162. * C++ Improvements:
  3163. ** Argument Dependent Lookup (ADL)
  3164. In C++ ADL lookup directs function search to the namespaces of its
  3165. arguments even if the namespace has not been imported.
  3166. For example:
  3167. namespace A
  3168. {
  3169. class B { };
  3170. void foo (B) { }
  3171. }
  3172. ...
  3173. A::B b
  3174. foo(b)
  3175. Here the compiler will search for `foo' in the namespace of 'b'
  3176. and find A::foo. GDB now supports this. This construct is commonly
  3177. used in the Standard Template Library for operators.
  3178. ** Improved User Defined Operator Support
  3179. In addition to member operators, GDB now supports lookup of operators
  3180. defined in a namespace and imported with a `using' directive, operators
  3181. defined in the global scope, operators imported implicitly from an
  3182. anonymous namespace, and the ADL operators mentioned in the previous
  3183. entry.
  3184. GDB now also supports proper overload resolution for all the previously
  3185. mentioned flavors of operators.
  3186. ** static const class members
  3187. Printing of static const class members that are initialized in the
  3188. class definition has been fixed.
  3189. * Windows Thread Information Block access.
  3190. On Windows targets, GDB now supports displaying the Windows Thread
  3191. Information Block (TIB) structure. This structure is visible either
  3192. by using the new command `info w32 thread-information-block' or, by
  3193. dereferencing the new convenience variable named `$_tlb', a
  3194. thread-specific pointer to the TIB. This feature is also supported
  3195. when remote debugging using GDBserver.
  3196. * Static tracepoints
  3197. Static tracepoints are calls in the user program into a tracing
  3198. library. One such library is a port of the LTTng kernel tracer to
  3199. userspace --- UST (LTTng Userspace Tracer, http://lttng.org/ust).
  3200. When debugging with GDBserver, GDB now supports combining the GDB
  3201. tracepoint machinery with such libraries. For example: the user can
  3202. use GDB to probe a static tracepoint marker (a call from the user
  3203. program into the tracing library) with the new "strace" command (see
  3204. "New commands" below). This creates a "static tracepoint" in the
  3205. breakpoint list, that can be manipulated with the same feature set
  3206. as fast and regular tracepoints. E.g., collect registers, local and
  3207. global variables, collect trace state variables, and define
  3208. tracepoint conditions. In addition, the user can collect extra
  3209. static tracepoint marker specific data, by collecting the new
  3210. $_sdata internal variable. When analyzing the trace buffer, you can
  3211. inspect $_sdata like any other variable available to GDB. For more
  3212. information, see the "Tracepoints" chapter in GDB user manual. New
  3213. remote packets have been defined to support static tracepoints, see
  3214. the "New remote packets" section below.
  3215. * Better reconstruction of tracepoints after disconnected tracing
  3216. GDB will attempt to download the original source form of tracepoint
  3217. definitions when starting a trace run, and then will upload these
  3218. upon reconnection to the target, resulting in a more accurate
  3219. reconstruction of the tracepoints that are in use on the target.
  3220. * Observer mode
  3221. You can now exercise direct control over the ways that GDB can
  3222. affect your program. For instance, you can disallow the setting of
  3223. breakpoints, so that the program can run continuously (assuming
  3224. non-stop mode). In addition, the "observer" variable is available
  3225. to switch all of the different controls; in observer mode, GDB
  3226. cannot affect the target's behavior at all, which is useful for
  3227. tasks like diagnosing live systems in the field.
  3228. * The new convenience variable $_thread holds the number of the
  3229. current thread.
  3230. * New remote packets
  3231. qGetTIBAddr
  3232. Return the address of the Windows Thread Information Block of a given thread.
  3233. qRelocInsn
  3234. In response to several of the tracepoint packets, the target may now
  3235. also respond with a number of intermediate `qRelocInsn' request
  3236. packets before the final result packet, to have GDB handle
  3237. relocating an instruction to execute at a different address. This
  3238. is particularly useful for stubs that support fast tracepoints. GDB
  3239. reports support for this feature in the qSupported packet.
  3240. qTfSTM, qTsSTM
  3241. List static tracepoint markers in the target program.
  3242. qTSTMat
  3243. List static tracepoint markers at a given address in the target
  3244. program.
  3245. qXfer:statictrace:read
  3246. Read the static trace data collected (by a `collect $_sdata'
  3247. tracepoint action). The remote stub reports support for this packet
  3248. to gdb's qSupported query.
  3249. QAllow
  3250. Send the current settings of GDB's permission flags.
  3251. QTDPsrc
  3252. Send part of the source (textual) form of a tracepoint definition,
  3253. which includes location, conditional, and action list.
  3254. * The source command now accepts a -s option to force searching for the
  3255. script in the source search path even if the script name specifies
  3256. a directory.
  3257. * New features in the GDB remote stub, GDBserver
  3258. - GDBserver now support tracepoints (including fast tracepoints, and
  3259. static tracepoints). The feature is currently supported by the
  3260. i386-linux and amd64-linux builds. See the "Tracepoints support
  3261. in gdbserver" section in the manual for more information.
  3262. GDBserver JIT compiles the tracepoint's conditional agent
  3263. expression bytecode into native code whenever possible for low
  3264. overhead dynamic tracepoints conditionals. For such tracepoints,
  3265. an expression that examines program state is evaluated when the
  3266. tracepoint is reached, in order to determine whether to capture
  3267. trace data. If the condition is simple and false, processing the
  3268. tracepoint finishes very quickly and no data is gathered.
  3269. GDBserver interfaces with the UST (LTTng Userspace Tracer) library
  3270. for static tracepoints support.
  3271. - GDBserver now supports x86_64 Windows 64-bit debugging.
  3272. * GDB now sends xmlRegisters= in qSupported packet to indicate that
  3273. it understands register description.
  3274. * The --batch flag now disables pagination and queries.
  3275. * X86 general purpose registers
  3276. GDB now supports reading/writing byte, word and double-word x86
  3277. general purpose registers directly. This means you can use, say,
  3278. $ah or $ax to refer, respectively, to the byte register AH and
  3279. 16-bit word register AX that are actually portions of the 32-bit
  3280. register EAX or 64-bit register RAX.
  3281. * The `commands' command now accepts a range of breakpoints to modify.
  3282. A plain `commands' following a command that creates multiple
  3283. breakpoints affects all the breakpoints set by that command. This
  3284. applies to breakpoints set by `rbreak', and also applies when a
  3285. single `break' command creates multiple breakpoints (e.g.,
  3286. breakpoints on overloaded c++ functions).
  3287. * The `rbreak' command now accepts a filename specification as part of
  3288. its argument, limiting the functions selected by the regex to those
  3289. in the specified file.
  3290. * Support for remote debugging Windows and SymbianOS shared libraries
  3291. from Unix hosts has been improved. Non Windows GDB builds now can
  3292. understand target reported file names that follow MS-DOS based file
  3293. system semantics, such as file names that include drive letters and
  3294. use the backslash character as directory separator. This makes it
  3295. possible to transparently use the "set sysroot" and "set
  3296. solib-search-path" on Unix hosts to point as host copies of the
  3297. target's shared libraries. See the new command "set
  3298. target-file-system-kind" described below, and the "Commands to
  3299. specify files" section in the user manual for more information.
  3300. * New commands
  3301. eval template, expressions...
  3302. Convert the values of one or more expressions under the control
  3303. of the string template to a command line, and call it.
  3304. set target-file-system-kind unix|dos-based|auto
  3305. show target-file-system-kind
  3306. Set or show the assumed file system kind for target reported file
  3307. names.
  3308. save breakpoints <filename>
  3309. Save all current breakpoint definitions to a file suitable for use
  3310. in a later debugging session. To read the saved breakpoint
  3311. definitions, use the `source' command.
  3312. `save tracepoints' is a new alias for `save-tracepoints'. The latter
  3313. is now deprecated.
  3314. info static-tracepoint-markers
  3315. Display information about static tracepoint markers in the target.
  3316. strace FN | FILE:LINE | *ADDR | -m MARKER_ID
  3317. Define a static tracepoint by probing a marker at the given
  3318. function, line, address, or marker ID.
  3319. set observer on|off
  3320. show observer
  3321. Enable and disable observer mode.
  3322. set may-write-registers on|off
  3323. set may-write-memory on|off
  3324. set may-insert-breakpoints on|off
  3325. set may-insert-tracepoints on|off
  3326. set may-insert-fast-tracepoints on|off
  3327. set may-interrupt on|off
  3328. Set individual permissions for GDB effects on the target. Note that
  3329. some of these settings can have undesirable or surprising
  3330. consequences, particularly when changed in the middle of a session.
  3331. For instance, disabling the writing of memory can prevent
  3332. breakpoints from being inserted, cause single-stepping to fail, or
  3333. even crash your program, if you disable after breakpoints have been
  3334. inserted. However, GDB should not crash.
  3335. set record memory-query on|off
  3336. show record memory-query
  3337. Control whether to stop the inferior if memory changes caused
  3338. by an instruction cannot be recorded.
  3339. * Changed commands
  3340. disassemble
  3341. The disassemble command now supports "start,+length" form of two arguments.
  3342. * Python scripting
  3343. ** GDB now provides a new directory location, called the python directory,
  3344. where Python scripts written for GDB can be installed. The location
  3345. of that directory is <data-directory>/python, where <data-directory>
  3346. is the GDB data directory. For more details, see section `Scripting
  3347. GDB using Python' in the manual.
  3348. ** The GDB Python API now has access to breakpoints, symbols, symbol
  3349. tables, program spaces, inferiors, threads and frame's code blocks.
  3350. Additionally, GDB Parameters can now be created from the API, and
  3351. manipulated via set/show in the CLI.
  3352. ** New functions gdb.target_charset, gdb.target_wide_charset,
  3353. gdb.progspaces, gdb.current_progspace, and gdb.string_to_argv.
  3354. ** New exception gdb.GdbError.
  3355. ** Pretty-printers are now also looked up in the current program space.
  3356. ** Pretty-printers can now be individually enabled and disabled.
  3357. ** GDB now looks for names of Python scripts to auto-load in a
  3358. special section named `.debug_gdb_scripts', in addition to looking
  3359. for a OBJFILE-gdb.py script when OBJFILE is read by the debugger.
  3360. * Tracepoint actions were unified with breakpoint commands. In particular,
  3361. there are no longer differences in "info break" output for breakpoints and
  3362. tracepoints and the "commands" command can be used for both tracepoints and
  3363. regular breakpoints.
  3364. * New targets
  3365. ARM Symbian arm*-*-symbianelf*
  3366. * D language support.
  3367. GDB now supports debugging programs written in the D programming
  3368. language.
  3369. * GDB now supports the extended ptrace interface for PowerPC which is
  3370. available since Linux kernel version 2.6.34. This automatically enables
  3371. any hardware breakpoints and additional hardware watchpoints available in
  3372. the processor. The old ptrace interface exposes just one hardware
  3373. watchpoint and no hardware breakpoints.
  3374. * GDB is now able to use the Data Value Compare (DVC) register available on
  3375. embedded PowerPC processors to implement in hardware simple watchpoint
  3376. conditions of the form:
  3377. watch ADDRESS|VARIABLE if ADDRESS|VARIABLE == CONSTANT EXPRESSION
  3378. This works in native GDB running on Linux kernels with the extended ptrace
  3379. interface mentioned above.
  3380. *** Changes in GDB 7.1
  3381. * C++ Improvements
  3382. ** Namespace Support
  3383. GDB now supports importing of namespaces in C++. This enables the
  3384. user to inspect variables from imported namespaces. Support for
  3385. namepace aliasing has also been added. So, if a namespace is
  3386. aliased in the current scope (e.g. namepace C=A; ) the user can
  3387. print variables using the alias (e.g. (gdb) print C::x).
  3388. ** Bug Fixes
  3389. All known bugs relating to the printing of virtual base class were
  3390. fixed. It is now possible to call overloaded static methods using a
  3391. qualified name.
  3392. ** Cast Operators
  3393. The C++ cast operators static_cast<>, dynamic_cast<>, const_cast<>,
  3394. and reinterpret_cast<> are now handled by the C++ expression parser.
  3395. * New targets
  3396. Xilinx MicroBlaze microblaze-*-*
  3397. Renesas RX rx-*-elf
  3398. * New Simulators
  3399. Xilinx MicroBlaze microblaze
  3400. Renesas RX rx
  3401. * Multi-program debugging.
  3402. GDB now has support for multi-program (a.k.a. multi-executable or
  3403. multi-exec) debugging. This allows for debugging multiple inferiors
  3404. simultaneously each running a different program under the same GDB
  3405. session. See "Debugging Multiple Inferiors and Programs" in the
  3406. manual for more information. This implied some user visible changes
  3407. in the multi-inferior support. For example, "info inferiors" now
  3408. lists inferiors that are not running yet or that have exited
  3409. already. See also "New commands" and "New options" below.
  3410. * New tracing features
  3411. GDB's tracepoint facility now includes several new features:
  3412. ** Trace state variables
  3413. GDB tracepoints now include support for trace state variables, which
  3414. are variables managed by the target agent during a tracing
  3415. experiment. They are useful for tracepoints that trigger each
  3416. other, so for instance one tracepoint can count hits in a variable,
  3417. and then a second tracepoint has a condition that is true when the
  3418. count reaches a particular value. Trace state variables share the
  3419. $-syntax of GDB convenience variables, and can appear in both
  3420. tracepoint actions and condition expressions. Use the "tvariable"
  3421. command to create, and "info tvariables" to view; see "Trace State
  3422. Variables" in the manual for more detail.
  3423. ** Fast tracepoints
  3424. GDB now includes an option for defining fast tracepoints, which
  3425. targets may implement more efficiently, such as by installing a jump
  3426. into the target agent rather than a trap instruction. The resulting
  3427. speedup can be by two orders of magnitude or more, although the
  3428. tradeoff is that some program locations on some target architectures
  3429. might not allow fast tracepoint installation, for instance if the
  3430. instruction to be replaced is shorter than the jump. To request a
  3431. fast tracepoint, use the "ftrace" command, with syntax identical to
  3432. the regular trace command.
  3433. ** Disconnected tracing
  3434. It is now possible to detach GDB from the target while it is running
  3435. a trace experiment, then reconnect later to see how the experiment
  3436. is going. In addition, a new variable disconnected-tracing lets you
  3437. tell the target agent whether to continue running a trace if the
  3438. connection is lost unexpectedly.
  3439. ** Trace files
  3440. GDB now has the ability to save the trace buffer into a file, and
  3441. then use that file as a target, similarly to you can do with
  3442. corefiles. You can select trace frames, print data that was
  3443. collected in them, and use tstatus to display the state of the
  3444. tracing run at the moment that it was saved. To create a trace
  3445. file, use "tsave <filename>", and to use it, do "target tfile
  3446. <name>".
  3447. ** Circular trace buffer
  3448. You can ask the target agent to handle the trace buffer as a
  3449. circular buffer, discarding the oldest trace frames to make room for
  3450. newer ones, by setting circular-trace-buffer to on. This feature may
  3451. not be available for all target agents.
  3452. * Changed commands
  3453. disassemble
  3454. The disassemble command, when invoked with two arguments, now requires
  3455. the arguments to be comma-separated.
  3456. info variables
  3457. The info variables command now displays variable definitions. Files
  3458. which only declare a variable are not shown.
  3459. source
  3460. The source command is now capable of sourcing Python scripts.
  3461. This feature is dependent on the debugger being build with Python
  3462. support.
  3463. Related to this enhancement is also the introduction of a new command
  3464. "set script-extension" (see below).
  3465. * New commands (for set/show, see "New options" below)
  3466. record save [<FILENAME>]
  3467. Save a file (in core file format) containing the process record
  3468. execution log for replay debugging at a later time.
  3469. record restore <FILENAME>
  3470. Restore the process record execution log that was saved at an
  3471. earlier time, for replay debugging.
  3472. add-inferior [-copies <N>] [-exec <FILENAME>]
  3473. Add a new inferior.
  3474. clone-inferior [-copies <N>] [ID]
  3475. Make a new inferior ready to execute the same program another
  3476. inferior has loaded.
  3477. remove-inferior ID
  3478. Remove an inferior.
  3479. maint info program-spaces
  3480. List the program spaces loaded into GDB.
  3481. set remote interrupt-sequence [Ctrl-C | BREAK | BREAK-g]
  3482. show remote interrupt-sequence
  3483. Allow the user to select one of ^C, a BREAK signal or BREAK-g
  3484. as the sequence to the remote target in order to interrupt the execution.
  3485. Ctrl-C is a default. Some system prefers BREAK which is high level of
  3486. serial line for some certain time. Linux kernel prefers BREAK-g, a.k.a
  3487. Magic SysRq g. It is BREAK signal and character 'g'.
  3488. set remote interrupt-on-connect [on | off]
  3489. show remote interrupt-on-connect
  3490. When interrupt-on-connect is ON, gdb sends interrupt-sequence to
  3491. remote target when gdb connects to it. This is needed when you debug
  3492. Linux kernel.
  3493. set remotebreak [on | off]
  3494. show remotebreak
  3495. Deprecated. Use "set/show remote interrupt-sequence" instead.
  3496. tvariable $NAME [ = EXP ]
  3497. Create or modify a trace state variable.
  3498. info tvariables
  3499. List trace state variables and their values.
  3500. delete tvariable $NAME ...
  3501. Delete one or more trace state variables.
  3502. teval EXPR, ...
  3503. Evaluate the given expressions without collecting anything into the
  3504. trace buffer. (Valid in tracepoint actions only.)
  3505. ftrace FN / FILE:LINE / *ADDR
  3506. Define a fast tracepoint at the given function, line, or address.
  3507. * New expression syntax
  3508. GDB now parses the 0b prefix of binary numbers the same way as GCC does.
  3509. GDB now parses 0b101010 identically with 42.
  3510. * New options
  3511. set follow-exec-mode new|same
  3512. show follow-exec-mode
  3513. Control whether GDB reuses the same inferior across an exec call or
  3514. creates a new one. This is useful to be able to restart the old
  3515. executable after the inferior having done an exec call.
  3516. set default-collect EXPR, ...
  3517. show default-collect
  3518. Define a list of expressions to be collected at each tracepoint.
  3519. This is a useful way to ensure essential items are not overlooked,
  3520. such as registers or a critical global variable.
  3521. set disconnected-tracing
  3522. show disconnected-tracing
  3523. If set to 1, the target is instructed to continue tracing if it
  3524. loses its connection to GDB. If 0, the target is to stop tracing
  3525. upon disconnection.
  3526. set circular-trace-buffer
  3527. show circular-trace-buffer
  3528. If set to on, the target is instructed to use a circular trace buffer
  3529. and discard the oldest trace frames instead of stopping the trace due
  3530. to a full trace buffer. If set to off, the trace stops when the buffer
  3531. fills up. Some targets may not support this.
  3532. set script-extension off|soft|strict
  3533. show script-extension
  3534. If set to "off", the debugger does not perform any script language
  3535. recognition, and all sourced files are assumed to be GDB scripts.
  3536. If set to "soft" (the default), files are sourced according to
  3537. filename extension, falling back to GDB scripts if the first
  3538. evaluation failed.
  3539. If set to "strict", files are sourced according to filename extension.
  3540. set ada trust-PAD-over-XVS on|off
  3541. show ada trust-PAD-over-XVS
  3542. If off, activate a workaround against a bug in the debugging information
  3543. generated by the compiler for PAD types (see gcc/exp_dbug.ads in
  3544. the GCC sources for more information about the GNAT encoding and
  3545. PAD types in particular). It is always safe to set this option to
  3546. off, but this introduces a slight performance penalty. The default
  3547. is on.
  3548. * Python API Improvements
  3549. ** GDB provides the new class gdb.LazyString. This is useful in
  3550. some pretty-printing cases. The new method gdb.Value.lazy_string
  3551. provides a simple way to create objects of this type.
  3552. ** The fields returned by gdb.Type.fields now have an
  3553. `is_base_class' attribute.
  3554. ** The new method gdb.Type.range returns the range of an array type.
  3555. ** The new method gdb.parse_and_eval can be used to parse and
  3556. evaluate an expression.
  3557. * New remote packets
  3558. QTDV
  3559. Define a trace state variable.
  3560. qTV
  3561. Get the current value of a trace state variable.
  3562. QTDisconnected
  3563. Set desired tracing behavior upon disconnection.
  3564. QTBuffer:circular
  3565. Set the trace buffer to be linear or circular.
  3566. qTfP, qTsP
  3567. Get data about the tracepoints currently in use.
  3568. * Bug fixes
  3569. Process record now works correctly with hardware watchpoints.
  3570. Multiple bug fixes have been made to the mips-irix port, making it
  3571. much more reliable. In particular:
  3572. - Debugging threaded applications is now possible again. Previously,
  3573. GDB would hang while starting the program, or while waiting for
  3574. the program to stop at a breakpoint.
  3575. - Attaching to a running process no longer hangs.
  3576. - An error occurring while loading a core file has been fixed.
  3577. - Changing the value of the PC register now works again. This fixes
  3578. problems observed when using the "jump" command, or when calling
  3579. a function from GDB, or even when assigning a new value to $pc.
  3580. - With the "finish" and "return" commands, the return value for functions
  3581. returning a small array is now correctly printed.
  3582. - It is now possible to break on shared library code which gets executed
  3583. during a shared library init phase (code executed while executing
  3584. their .init section). Previously, the breakpoint would have no effect.
  3585. - GDB is now able to backtrace through the signal handler for
  3586. non-threaded programs.
  3587. PIE (Position Independent Executable) programs debugging is now supported.
  3588. This includes debugging execution of PIC (Position Independent Code) shared
  3589. libraries although for that, it should be possible to run such libraries as an
  3590. executable program.
  3591. *** Changes in GDB 7.0
  3592. * GDB now has an interface for JIT compilation. Applications that
  3593. dynamically generate code can create symbol files in memory and register
  3594. them with GDB. For users, the feature should work transparently, and
  3595. for JIT developers, the interface is documented in the GDB manual in the
  3596. "JIT Compilation Interface" chapter.
  3597. * Tracepoints may now be conditional. The syntax is as for
  3598. breakpoints; either an "if" clause appended to the "trace" command,
  3599. or the "condition" command is available. GDB sends the condition to
  3600. the target for evaluation using the same bytecode format as is used
  3601. for tracepoint actions.
  3602. * The disassemble command now supports: an optional /r modifier, print the
  3603. raw instructions in hex as well as in symbolic form, and an optional /m
  3604. modifier to print mixed source+assembly.
  3605. * Process record and replay
  3606. In a architecture environment that supports ``process record and
  3607. replay'', ``process record and replay'' target can record a log of
  3608. the process execution, and replay it with both forward and reverse
  3609. execute commands.
  3610. * Reverse debugging: GDB now has new commands reverse-continue, reverse-
  3611. step, reverse-next, reverse-finish, reverse-stepi, reverse-nexti, and
  3612. set execution-direction {forward|reverse}, for targets that support
  3613. reverse execution.
  3614. * GDB now supports hardware watchpoints on MIPS/Linux systems. This
  3615. feature is available with a native GDB running on kernel version
  3616. 2.6.28 or later.
  3617. * GDB now has support for multi-byte and wide character sets on the
  3618. target. Strings whose character type is wchar_t, char16_t, or
  3619. char32_t are now correctly printed. GDB supports wide- and unicode-
  3620. literals in C, that is, L'x', L"string", u'x', u"string", U'x', and
  3621. U"string" syntax. And, GDB allows the "%ls" and "%lc" formats in
  3622. `printf'. This feature requires iconv to work properly; if your
  3623. system does not have a working iconv, GDB can use GNU libiconv. See
  3624. the installation instructions for more information.
  3625. * GDB now supports automatic retrieval of shared library files from
  3626. remote targets. To use this feature, specify a system root that begins
  3627. with the `remote:' prefix, either via the `set sysroot' command or via
  3628. the `--with-sysroot' configure-time option.
  3629. * "info sharedlibrary" now takes an optional regex of libraries to show,
  3630. and it now reports if a shared library has no debugging information.
  3631. * Commands `set debug-file-directory', `set solib-search-path' and `set args'
  3632. now complete on file names.
  3633. * When completing in expressions, gdb will attempt to limit
  3634. completions to allowable structure or union fields, where appropriate.
  3635. For instance, consider:
  3636. # struct example { int f1; double f2; };
  3637. # struct example variable;
  3638. (gdb) p variable.
  3639. If the user types TAB at the end of this command line, the available
  3640. completions will be "f1" and "f2".
  3641. * Inlined functions are now supported. They show up in backtraces, and
  3642. the "step", "next", and "finish" commands handle them automatically.
  3643. * GDB now supports the token-splicing (##) and stringification (#)
  3644. operators when expanding macros. It also supports variable-arity
  3645. macros.
  3646. * GDB now supports inspecting extra signal information, exported by
  3647. the new $_siginfo convenience variable. The feature is currently
  3648. implemented on linux ARM, i386 and amd64.
  3649. * GDB can now display the VFP floating point registers and NEON vector
  3650. registers on ARM targets. Both ARM GNU/Linux native GDB and gdbserver
  3651. can provide these registers (requires Linux 2.6.30 or later). Remote
  3652. and simulator targets may also provide them.
  3653. * New remote packets
  3654. qSearch:memory:
  3655. Search memory for a sequence of bytes.
  3656. QStartNoAckMode
  3657. Turn off `+'/`-' protocol acknowledgments to permit more efficient
  3658. operation over reliable transport links. Use of this packet is
  3659. controlled by the `set remote noack-packet' command.
  3660. vKill
  3661. Kill the process with the specified process ID. Use this in preference
  3662. to `k' when multiprocess protocol extensions are supported.
  3663. qXfer:osdata:read
  3664. Obtains additional operating system information
  3665. qXfer:siginfo:read
  3666. qXfer:siginfo:write
  3667. Read or write additional signal information.
  3668. * Removed remote protocol undocumented extension
  3669. An undocumented extension to the remote protocol's `S' stop reply
  3670. packet that permitted the stub to pass a process id was removed.
  3671. Remote servers should use the `T' stop reply packet instead.
  3672. * GDB now supports multiple function calling conventions according to the
  3673. DWARF-2 DW_AT_calling_convention function attribute.
  3674. * The SH target utilizes the aforementioned change to distinguish between gcc
  3675. and Renesas calling convention. It also adds the new CLI commands
  3676. `set/show sh calling-convention'.
  3677. * GDB can now read compressed debug sections, as produced by GNU gold
  3678. with the --compress-debug-sections=zlib flag.
  3679. * 64-bit core files are now supported on AIX.
  3680. * Thread switching is now supported on Tru64.
  3681. * Watchpoints can now be set on unreadable memory locations, e.g. addresses
  3682. which will be allocated using malloc later in program execution.
  3683. * The qXfer:libraries:read remote protocol packet now allows passing a
  3684. list of section offsets.
  3685. * On GNU/Linux, GDB can now attach to stopped processes. Several race
  3686. conditions handling signals delivered during attach or thread creation
  3687. have also been fixed.
  3688. * GDB now supports the use of DWARF boolean types for Ada's type Boolean.
  3689. From the user's standpoint, all unqualified instances of True and False
  3690. are treated as the standard definitions, regardless of context.
  3691. * GDB now parses C++ symbol and type names more flexibly. For
  3692. example, given:
  3693. template<typename T> class C { };
  3694. C<char const *> c;
  3695. GDB will now correctly handle all of:
  3696. ptype C<char const *>
  3697. ptype C<char const*>
  3698. ptype C<const char *>
  3699. ptype C<const char*>
  3700. * New features in the GDB remote stub, gdbserver
  3701. - The "--wrapper" command-line argument tells gdbserver to use a
  3702. wrapper program to launch programs for debugging.
  3703. - On PowerPC and S/390 targets, it is now possible to use a single
  3704. gdbserver executable to debug both 32-bit and 64-bit programs.
  3705. (This requires gdbserver itself to be built as a 64-bit executable.)
  3706. - gdbserver uses the new noack protocol mode for TCP connections to
  3707. reduce communications latency, if also supported and enabled in GDB.
  3708. - Support for the sparc64-linux-gnu target is now included in
  3709. gdbserver.
  3710. - The amd64-linux build of gdbserver now supports debugging both
  3711. 32-bit and 64-bit programs.
  3712. - The i386-linux, amd64-linux, and i386-win32 builds of gdbserver
  3713. now support hardware watchpoints, and will use them automatically
  3714. as appropriate.
  3715. * Python scripting
  3716. GDB now has support for scripting using Python. Whether this is
  3717. available is determined at configure time.
  3718. New GDB commands can now be written in Python.
  3719. * Ada tasking support
  3720. Ada tasks can now be inspected in GDB. The following commands have
  3721. been introduced:
  3722. info tasks
  3723. Print the list of Ada tasks.
  3724. info task N
  3725. Print detailed information about task number N.
  3726. task
  3727. Print the task number of the current task.
  3728. task N
  3729. Switch the context of debugging to task number N.
  3730. * Support for user-defined prefixed commands. The "define" command can
  3731. add new commands to existing prefixes, e.g. "target".
  3732. * Multi-inferior, multi-process debugging.
  3733. GDB now has generalized support for multi-inferior debugging. See
  3734. "Debugging Multiple Inferiors" in the manual for more information.
  3735. Although availability still depends on target support, the command
  3736. set is more uniform now. The GNU/Linux specific multi-forks support
  3737. has been migrated to this new framework. This implied some user
  3738. visible changes; see "New commands" and also "Removed commands"
  3739. below.
  3740. * Target descriptions can now describe the target OS ABI. See the
  3741. "Target Description Format" section in the user manual for more
  3742. information.
  3743. * Target descriptions can now describe "compatible" architectures
  3744. to indicate that the target can execute applications for a different
  3745. architecture in addition to those for the main target architecture.
  3746. See the "Target Description Format" section in the user manual for
  3747. more information.
  3748. * Multi-architecture debugging.
  3749. GDB now includes general supports for debugging applications on
  3750. hybrid systems that use more than one single processor architecture
  3751. at the same time. Each such hybrid architecture still requires
  3752. specific support to be added. The only hybrid architecture supported
  3753. in this version of GDB is the Cell Broadband Engine.
  3754. * GDB now supports integrated debugging of Cell/B.E. applications that
  3755. use both the PPU and SPU architectures. To enable support for hybrid
  3756. Cell/B.E. debugging, you need to configure GDB to support both the
  3757. powerpc-linux or powerpc64-linux and the spu-elf targets, using the
  3758. --enable-targets configure option.
  3759. * Non-stop mode debugging.
  3760. For some targets, GDB now supports an optional mode of operation in
  3761. which you can examine stopped threads while other threads continue
  3762. to execute freely. This is referred to as non-stop mode, with the
  3763. old mode referred to as all-stop mode. See the "Non-Stop Mode"
  3764. section in the user manual for more information.
  3765. To be able to support remote non-stop debugging, a remote stub needs
  3766. to implement the non-stop mode remote protocol extensions, as
  3767. described in the "Remote Non-Stop" section of the user manual. The
  3768. GDB remote stub, gdbserver, has been adjusted to support these
  3769. extensions on linux targets.
  3770. * New commands (for set/show, see "New options" below)
  3771. catch syscall [NAME(S) | NUMBER(S)]
  3772. Catch system calls. Arguments, which should be names of system
  3773. calls or their numbers, mean catch only those syscalls. Without
  3774. arguments, every syscall will be caught. When the inferior issues
  3775. any of the specified syscalls, GDB will stop and announce the system
  3776. call, both when it is called and when its call returns. This
  3777. feature is currently available with a native GDB running on the
  3778. Linux Kernel, under the following architectures: x86, x86_64,
  3779. PowerPC and PowerPC64.
  3780. find [/size-char] [/max-count] start-address, end-address|+search-space-size,
  3781. val1 [, val2, ...]
  3782. Search memory for a sequence of bytes.
  3783. maint set python print-stack
  3784. maint show python print-stack
  3785. Show a stack trace when an error is encountered in a Python script.
  3786. python [CODE]
  3787. Invoke CODE by passing it to the Python interpreter.
  3788. macro define
  3789. macro list
  3790. macro undef
  3791. These allow macros to be defined, undefined, and listed
  3792. interactively.
  3793. info os processes
  3794. Show operating system information about processes.
  3795. info inferiors
  3796. List the inferiors currently under GDB's control.
  3797. inferior NUM
  3798. Switch focus to inferior number NUM.
  3799. detach inferior NUM
  3800. Detach from inferior number NUM.
  3801. kill inferior NUM
  3802. Kill inferior number NUM.
  3803. * New options
  3804. set spu stop-on-load
  3805. show spu stop-on-load
  3806. Control whether to stop for new SPE threads during Cell/B.E. debugging.
  3807. set spu auto-flush-cache
  3808. show spu auto-flush-cache
  3809. Control whether to automatically flush the software-managed cache
  3810. during Cell/B.E. debugging.
  3811. set sh calling-convention
  3812. show sh calling-convention
  3813. Control the calling convention used when calling SH target functions.
  3814. set debug timestamp
  3815. show debug timestamp
  3816. Control display of timestamps with GDB debugging output.
  3817. set disassemble-next-line
  3818. show disassemble-next-line
  3819. Control display of disassembled source lines or instructions when
  3820. the debuggee stops.
  3821. set remote noack-packet
  3822. show remote noack-packet
  3823. Set/show the use of remote protocol QStartNoAckMode packet. See above
  3824. under "New remote packets."
  3825. set remote query-attached-packet
  3826. show remote query-attached-packet
  3827. Control use of remote protocol `qAttached' (query-attached) packet.
  3828. set remote read-siginfo-object
  3829. show remote read-siginfo-object
  3830. Control use of remote protocol `qXfer:siginfo:read' (read-siginfo-object)
  3831. packet.
  3832. set remote write-siginfo-object
  3833. show remote write-siginfo-object
  3834. Control use of remote protocol `qXfer:siginfo:write' (write-siginfo-object)
  3835. packet.
  3836. set remote reverse-continue
  3837. show remote reverse-continue
  3838. Control use of remote protocol 'bc' (reverse-continue) packet.
  3839. set remote reverse-step
  3840. show remote reverse-step
  3841. Control use of remote protocol 'bs' (reverse-step) packet.
  3842. set displaced-stepping
  3843. show displaced-stepping
  3844. Control displaced stepping mode. Displaced stepping is a way to
  3845. single-step over breakpoints without removing them from the debuggee.
  3846. Also known as "out-of-line single-stepping".
  3847. set debug displaced
  3848. show debug displaced
  3849. Control display of debugging info for displaced stepping.
  3850. maint set internal-error
  3851. maint show internal-error
  3852. Control what GDB does when an internal error is detected.
  3853. maint set internal-warning
  3854. maint show internal-warning
  3855. Control what GDB does when an internal warning is detected.
  3856. set exec-wrapper
  3857. show exec-wrapper
  3858. unset exec-wrapper
  3859. Use a wrapper program to launch programs for debugging.
  3860. set multiple-symbols (all|ask|cancel)
  3861. show multiple-symbols
  3862. The value of this variable can be changed to adjust the debugger behavior
  3863. when an expression or a breakpoint location contains an ambiguous symbol
  3864. name (an overloaded function name, for instance).
  3865. set breakpoint always-inserted
  3866. show breakpoint always-inserted
  3867. Keep breakpoints always inserted in the target, as opposed to inserting
  3868. them when resuming the target, and removing them when the target stops.
  3869. This option can improve debugger performance on slow remote targets.
  3870. set arm fallback-mode (arm|thumb|auto)
  3871. show arm fallback-mode
  3872. set arm force-mode (arm|thumb|auto)
  3873. show arm force-mode
  3874. These commands control how ARM GDB determines whether instructions
  3875. are ARM or Thumb. The default for both settings is auto, which uses
  3876. the current CPSR value for instructions without symbols; previous
  3877. versions of GDB behaved as if "set arm fallback-mode arm".
  3878. set disable-randomization
  3879. show disable-randomization
  3880. Standalone programs run with the virtual address space randomization enabled
  3881. by default on some platforms. This option keeps the addresses stable across
  3882. multiple debugging sessions.
  3883. set non-stop
  3884. show non-stop
  3885. Control whether other threads are stopped or not when some thread hits
  3886. a breakpoint.
  3887. set target-async
  3888. show target-async
  3889. Requests that asynchronous execution is enabled in the target, if available.
  3890. In this case, it's possible to resume target in the background, and interact
  3891. with GDB while the target is running. "show target-async" displays the
  3892. current state of asynchronous execution of the target.
  3893. set target-wide-charset
  3894. show target-wide-charset
  3895. The target-wide-charset is the name of the character set that GDB
  3896. uses when printing characters whose type is wchar_t.
  3897. set tcp auto-retry (on|off)
  3898. show tcp auto-retry
  3899. set tcp connect-timeout
  3900. show tcp connect-timeout
  3901. These commands allow GDB to retry failed TCP connections to a remote stub
  3902. with a specified timeout period; this is useful if the stub is launched
  3903. in parallel with GDB but may not be ready to accept connections immediately.
  3904. set libthread-db-search-path
  3905. show libthread-db-search-path
  3906. Control list of directories which GDB will search for appropriate
  3907. libthread_db.
  3908. set schedule-multiple (on|off)
  3909. show schedule-multiple
  3910. Allow GDB to resume all threads of all processes or only threads of
  3911. the current process.
  3912. set stack-cache
  3913. show stack-cache
  3914. Use more aggressive caching for accesses to the stack. This improves
  3915. performance of remote debugging (particularly backtraces) without
  3916. affecting correctness.
  3917. set interactive-mode (on|off|auto)
  3918. show interactive-mode
  3919. Control whether GDB runs in interactive mode (on) or not (off).
  3920. When in interactive mode, GDB waits for the user to answer all
  3921. queries. Otherwise, GDB does not wait and assumes the default
  3922. answer. When set to auto (the default), GDB determines which
  3923. mode to use based on the stdin settings.
  3924. * Removed commands
  3925. info forks
  3926. For program forks, this is replaced by the new more generic `info
  3927. inferiors' command. To list checkpoints, you can still use the
  3928. `info checkpoints' command, which was an alias for the `info forks'
  3929. command.
  3930. fork NUM
  3931. Replaced by the new `inferior' command. To switch between
  3932. checkpoints, you can still use the `restart' command, which was an
  3933. alias for the `fork' command.
  3934. process PID
  3935. This is removed, since some targets don't have a notion of
  3936. processes. To switch between processes, you can still use the
  3937. `inferior' command using GDB's own inferior number.
  3938. delete fork NUM
  3939. For program forks, this is replaced by the new more generic `kill
  3940. inferior' command. To delete a checkpoint, you can still use the
  3941. `delete checkpoint' command, which was an alias for the `delete
  3942. fork' command.
  3943. detach fork NUM
  3944. For program forks, this is replaced by the new more generic `detach
  3945. inferior' command. To detach a checkpoint, you can still use the
  3946. `detach checkpoint' command, which was an alias for the `detach
  3947. fork' command.
  3948. * New native configurations
  3949. x86/x86_64 Darwin i[34567]86-*-darwin*
  3950. x86_64 MinGW x86_64-*-mingw*
  3951. * New targets
  3952. Lattice Mico32 lm32-*
  3953. x86 DICOS i[34567]86-*-dicos*
  3954. x86_64 DICOS x86_64-*-dicos*
  3955. S+core 3 score-*-*
  3956. * The GDB remote stub, gdbserver, now supports x86 Windows CE
  3957. (mingw32ce) debugging.
  3958. * Removed commands
  3959. catch load
  3960. catch unload
  3961. These commands were actually not implemented on any target.
  3962. *** Changes in GDB 6.8
  3963. * New native configurations
  3964. NetBSD/hppa hppa*-*netbsd*
  3965. Xtensa GNU/Linux xtensa*-*-linux*
  3966. * New targets
  3967. NetBSD/hppa hppa*-*-netbsd*
  3968. Xtensa GNU/Linux xtensa*-*-linux*
  3969. * Change in command line behavior -- corefiles vs. process ids.
  3970. When the '-p NUMBER' or '--pid NUMBER' options are used, and
  3971. attaching to process NUMBER fails, GDB no longer attempts to open a
  3972. core file named NUMBER. Attaching to a program using the -c option
  3973. is no longer supported. Instead, use the '-p' or '--pid' options.
  3974. * GDB can now be built as a native debugger for debugging Windows x86
  3975. (mingw32) Portable Executable (PE) programs.
  3976. * Pending breakpoints no longer change their number when their address
  3977. is resolved.
  3978. * GDB now supports breakpoints with multiple locations,
  3979. including breakpoints on C++ constructors, inside C++ templates,
  3980. and in inlined functions.
  3981. * GDB's ability to debug optimized code has been improved. GDB more
  3982. accurately identifies function bodies and lexical blocks that occupy
  3983. more than one contiguous range of addresses.
  3984. * Target descriptions can now describe registers for PowerPC.
  3985. * The GDB remote stub, gdbserver, now supports the AltiVec and SPE
  3986. registers on PowerPC targets.
  3987. * The GDB remote stub, gdbserver, now supports thread debugging on GNU/Linux
  3988. targets even when the libthread_db library is not available.
  3989. * The GDB remote stub, gdbserver, now supports the new file transfer
  3990. commands (remote put, remote get, and remote delete).
  3991. * The GDB remote stub, gdbserver, now supports run and attach in
  3992. extended-remote mode.
  3993. * hppa*64*-*-hpux11* target broken
  3994. The debugger is unable to start a program and fails with the following
  3995. error: "Error trying to get information about dynamic linker".
  3996. The gdb-6.7 release is also affected.
  3997. * GDB now supports the --enable-targets= configure option to allow
  3998. building a single GDB executable that supports multiple remote
  3999. target architectures.
  4000. * GDB now supports debugging C and C++ programs which use the
  4001. Decimal Floating Point extension. In addition, the PowerPC target
  4002. now has a set of pseudo-registers to inspect decimal float values
  4003. stored in two consecutive float registers.
  4004. * The -break-insert MI command can optionally create pending
  4005. breakpoints now.
  4006. * Improved support for debugging Ada
  4007. Many improvements to the Ada language support have been made. These
  4008. include:
  4009. - Better support for Ada2005 interface types
  4010. - Improved handling of arrays and slices in general
  4011. - Better support for Taft-amendment types
  4012. - The '{type} ADDRESS' expression is now allowed on the left hand-side
  4013. of an assignment
  4014. - Improved command completion in Ada
  4015. - Several bug fixes
  4016. * GDB on GNU/Linux and HP/UX can now debug through "exec" of a new
  4017. process.
  4018. * New commands
  4019. set print frame-arguments (all|scalars|none)
  4020. show print frame-arguments
  4021. The value of this variable can be changed to control which argument
  4022. values should be printed by the debugger when displaying a frame.
  4023. remote put
  4024. remote get
  4025. remote delete
  4026. Transfer files to and from a remote target, and delete remote files.
  4027. * New MI commands
  4028. -target-file-put
  4029. -target-file-get
  4030. -target-file-delete
  4031. Transfer files to and from a remote target, and delete remote files.
  4032. * New remote packets
  4033. vFile:open:
  4034. vFile:close:
  4035. vFile:pread:
  4036. vFile:pwrite:
  4037. vFile:unlink:
  4038. Open, close, read, write, and delete files on the remote system.
  4039. vAttach
  4040. Attach to an existing process on the remote system, in extended-remote
  4041. mode.
  4042. vRun
  4043. Run a new process on the remote system, in extended-remote mode.
  4044. *** Changes in GDB 6.7
  4045. * Resolved 101 resource leaks, null pointer dereferences, etc. in gdb,
  4046. bfd, libiberty and opcodes, as revealed by static analysis donated by
  4047. Coverity, Inc. (http://scan.coverity.com).
  4048. * When looking up multiply-defined global symbols, GDB will now prefer the
  4049. symbol definition in the current shared library if it was built using the
  4050. -Bsymbolic linker option.
  4051. * When the Text User Interface (TUI) is not configured, GDB will now
  4052. recognize the -tui command-line option and print a message that the TUI
  4053. is not supported.
  4054. * The GDB remote stub, gdbserver, now has lower overhead for high
  4055. frequency signals (e.g. SIGALRM) via the QPassSignals packet.
  4056. * GDB for MIPS targets now autodetects whether a remote target provides
  4057. 32-bit or 64-bit register values.
  4058. * Support for C++ member pointers has been improved.
  4059. * GDB now understands XML target descriptions, which specify the
  4060. target's overall architecture. GDB can read a description from
  4061. a local file or over the remote serial protocol.
  4062. * Vectors of single-byte data use a new integer type which is not
  4063. automatically displayed as character or string data.
  4064. * The /s format now works with the print command. It displays
  4065. arrays of single-byte integers and pointers to single-byte integers
  4066. as strings.
  4067. * Target descriptions can now describe target-specific registers,
  4068. for architectures which have implemented the support (currently
  4069. only ARM, M68K, and MIPS).
  4070. * GDB and the GDB remote stub, gdbserver, now support the XScale
  4071. iWMMXt coprocessor.
  4072. * The GDB remote stub, gdbserver, has been updated to support
  4073. ARM Windows CE (mingw32ce) debugging, and GDB Windows CE support
  4074. has been rewritten to use the standard GDB remote protocol.
  4075. * GDB can now step into C++ functions which are called through thunks.
  4076. * GDB for the Cell/B.E. SPU now supports overlay debugging.
  4077. * The GDB remote protocol "qOffsets" packet can now honor ELF segment
  4078. layout. It also supports a TextSeg= and DataSeg= response when only
  4079. segment base addresses (rather than offsets) are available.
  4080. * The /i format now outputs any trailing branch delay slot instructions
  4081. immediately following the last instruction within the count specified.
  4082. * The GDB remote protocol "T" stop reply packet now supports a
  4083. "library" response. Combined with the new "qXfer:libraries:read"
  4084. packet, this response allows GDB to debug shared libraries on targets
  4085. where the operating system manages the list of loaded libraries (e.g.
  4086. Windows and SymbianOS).
  4087. * The GDB remote stub, gdbserver, now supports dynamic link libraries
  4088. (DLLs) on Windows and Windows CE targets.
  4089. * GDB now supports a faster verification that a .debug file matches its binary
  4090. according to its build-id signature, if the signature is present.
  4091. * New commands
  4092. set remoteflow
  4093. show remoteflow
  4094. Enable or disable hardware flow control (RTS/CTS) on the serial port
  4095. when debugging using remote targets.
  4096. set mem inaccessible-by-default
  4097. show mem inaccessible-by-default
  4098. If the target supplies a memory map, for instance via the remote
  4099. protocol's "qXfer:memory-map:read" packet, setting this variable
  4100. prevents GDB from accessing memory outside the memory map. This
  4101. is useful for targets with memory mapped registers or which react
  4102. badly to accesses of unmapped address space.
  4103. set breakpoint auto-hw
  4104. show breakpoint auto-hw
  4105. If the target supplies a memory map, for instance via the remote
  4106. protocol's "qXfer:memory-map:read" packet, setting this variable
  4107. lets GDB use hardware breakpoints automatically for memory regions
  4108. where it can not use software breakpoints. This covers both the
  4109. "break" command and internal breakpoints used for other commands
  4110. including "next" and "finish".
  4111. catch exception
  4112. catch exception unhandled
  4113. Stop the program execution when Ada exceptions are raised.
  4114. catch assert
  4115. Stop the program execution when an Ada assertion failed.
  4116. set sysroot
  4117. show sysroot
  4118. Set an alternate system root for target files. This is a more
  4119. general version of "set solib-absolute-prefix", which is now
  4120. an alias to "set sysroot".
  4121. info spu
  4122. Provide extended SPU facility status information. This set of
  4123. commands is available only when debugging the Cell/B.E. SPU
  4124. architecture.
  4125. * New native configurations
  4126. OpenBSD/sh sh*-*openbsd*
  4127. set tdesc filename
  4128. unset tdesc filename
  4129. show tdesc filename
  4130. Use the specified local file as an XML target description, and do
  4131. not query the target for its built-in description.
  4132. * New targets
  4133. OpenBSD/sh sh*-*-openbsd*
  4134. MIPS64 GNU/Linux (gdbserver) mips64-linux-gnu
  4135. Toshiba Media Processor mep-elf
  4136. * New remote packets
  4137. QPassSignals:
  4138. Ignore the specified signals; pass them directly to the debugged program
  4139. without stopping other threads or reporting them to GDB.
  4140. qXfer:features:read:
  4141. Read an XML target description from the target, which describes its
  4142. features.
  4143. qXfer:spu:read:
  4144. qXfer:spu:write:
  4145. Read or write contents of an spufs file on the target system. These
  4146. packets are available only on the Cell/B.E. SPU architecture.
  4147. qXfer:libraries:read:
  4148. Report the loaded shared libraries. Combined with new "T" packet
  4149. response, this packet allows GDB to debug shared libraries on
  4150. targets where the operating system manages the list of loaded
  4151. libraries (e.g. Windows and SymbianOS).
  4152. * Removed targets
  4153. Support for these obsolete configurations has been removed.
  4154. alpha*-*-osf1*
  4155. alpha*-*-osf2*
  4156. d10v-*-*
  4157. hppa*-*-hiux*
  4158. i[34567]86-ncr-*
  4159. i[34567]86-*-dgux*
  4160. i[34567]86-*-lynxos*
  4161. i[34567]86-*-netware*
  4162. i[34567]86-*-sco3.2v5*
  4163. i[34567]86-*-sco3.2v4*
  4164. i[34567]86-*-sco*
  4165. i[34567]86-*-sysv4.2*
  4166. i[34567]86-*-sysv4*
  4167. i[34567]86-*-sysv5*
  4168. i[34567]86-*-unixware2*
  4169. i[34567]86-*-unixware*
  4170. i[34567]86-*-sysv*
  4171. i[34567]86-*-isc*
  4172. m68*-cisco*-*
  4173. m68*-tandem-*
  4174. mips*-*-pe
  4175. rs6000-*-lynxos*
  4176. sh*-*-pe
  4177. * Other removed features
  4178. target abug
  4179. target cpu32bug
  4180. target est
  4181. target rom68k
  4182. Various m68k-only ROM monitors.
  4183. target hms
  4184. target e7000
  4185. target sh3
  4186. target sh3e
  4187. Various Renesas ROM monitors and debugging interfaces for SH and
  4188. H8/300.
  4189. target ocd
  4190. Support for a Macraigor serial interface to on-chip debugging.
  4191. GDB does not directly support the newer parallel or USB
  4192. interfaces.
  4193. DWARF 1 support
  4194. A debug information format. The predecessor to DWARF 2 and
  4195. DWARF 3, which are still supported.
  4196. Support for the HP aCC compiler on HP-UX/PA-RISC
  4197. SOM-encapsulated symbolic debugging information, automatic
  4198. invocation of pxdb, and the aCC custom C++ ABI. This does not
  4199. affect HP-UX for Itanium or GCC for HP-UX/PA-RISC. Code compiled
  4200. with aCC can still be debugged on an assembly level.
  4201. MIPS ".pdr" sections
  4202. A MIPS-specific format used to describe stack frame layout
  4203. in debugging information.
  4204. Scheme support
  4205. GDB could work with an older version of Guile to debug
  4206. the interpreter and Scheme programs running in it.
  4207. set mips stack-arg-size
  4208. set mips saved-gpreg-size
  4209. Use "set mips abi" to control parameter passing for MIPS.
  4210. *** Changes in GDB 6.6
  4211. * New targets
  4212. Xtensa xtensa-elf
  4213. Cell Broadband Engine SPU spu-elf
  4214. * GDB can now be configured as a cross-debugger targeting native Windows
  4215. (mingw32) or Cygwin. It can communicate with a remote debugging stub
  4216. running on a Windows system over TCP/IP to debug Windows programs.
  4217. * The GDB remote stub, gdbserver, has been updated to support Windows and
  4218. Cygwin debugging. Both single-threaded and multi-threaded programs are
  4219. supported.
  4220. * The "set trust-readonly-sections" command works again. This command was
  4221. broken in GDB 6.3, 6.4, and 6.5.
  4222. * The "load" command now supports writing to flash memory, if the remote
  4223. stub provides the required support.
  4224. * Support for GNU/Linux Thread Local Storage (TLS, per-thread variables) no
  4225. longer requires symbolic debug information (e.g. DWARF-2).
  4226. * New commands
  4227. set substitute-path
  4228. unset substitute-path
  4229. show substitute-path
  4230. Manage a list of substitution rules that GDB uses to rewrite the name
  4231. of the directories where the sources are located. This can be useful
  4232. for instance when the sources were moved to a different location
  4233. between compilation and debugging.
  4234. set trace-commands
  4235. show trace-commands
  4236. Print each CLI command as it is executed. Each command is prefixed with
  4237. a number of `+' symbols representing the nesting depth.
  4238. The source command now has a `-v' option to enable the same feature.
  4239. * REMOVED features
  4240. The ARM Demon monitor support (RDP protocol, "target rdp").
  4241. Kernel Object Display, an embedded debugging feature which only worked with
  4242. an obsolete version of Cisco IOS.
  4243. The 'set download-write-size' and 'show download-write-size' commands.
  4244. * New remote packets
  4245. qSupported:
  4246. Tell a stub about GDB client features, and request remote target features.
  4247. The first feature implemented is PacketSize, which allows the target to
  4248. specify the size of packets it can handle - to minimize the number of
  4249. packets required and improve performance when connected to a remote
  4250. target.
  4251. qXfer:auxv:read:
  4252. Fetch an OS auxilliary vector from the remote stub. This packet is a
  4253. more efficient replacement for qPart:auxv:read.
  4254. qXfer:memory-map:read:
  4255. Fetch a memory map from the remote stub, including information about
  4256. RAM, ROM, and flash memory devices.
  4257. vFlashErase:
  4258. vFlashWrite:
  4259. vFlashDone:
  4260. Erase and program a flash memory device.
  4261. * Removed remote packets
  4262. qPart:auxv:read:
  4263. This packet has been replaced by qXfer:auxv:read. Only GDB 6.4 and 6.5
  4264. used it, and only gdbserver implemented it.
  4265. *** Changes in GDB 6.5
  4266. * New targets
  4267. Renesas M32C/M16C m32c-elf
  4268. Morpho Technologies ms1 ms1-elf
  4269. * New commands
  4270. init-if-undefined Initialize a convenience variable, but
  4271. only if it doesn't already have a value.
  4272. The following commands are presently only implemented for native GNU/Linux:
  4273. checkpoint Save a snapshot of the program state.
  4274. restart <n> Return the program state to a
  4275. previously saved state.
  4276. info checkpoints List currently saved checkpoints.
  4277. delete-checkpoint <n> Delete a previously saved checkpoint.
  4278. set|show detach-on-fork Tell gdb whether to detach from a newly
  4279. forked process, or to keep debugging it.
  4280. info forks List forks of the user program that
  4281. are available to be debugged.
  4282. fork <n> Switch to debugging one of several
  4283. forks of the user program that are
  4284. available to be debugged.
  4285. delete-fork <n> Delete a fork from the list of forks
  4286. that are available to be debugged (and
  4287. kill the forked process).
  4288. detach-fork <n> Delete a fork from the list of forks
  4289. that are available to be debugged (and
  4290. allow the process to continue).
  4291. * New architecture
  4292. Morpho Technologies ms2 ms1-elf
  4293. * Improved Windows host support
  4294. GDB now builds as a cross debugger hosted on i686-mingw32, including
  4295. native console support, and remote communications using either
  4296. network sockets or serial ports.
  4297. * Improved Modula-2 language support
  4298. GDB can now print most types in the Modula-2 syntax. This includes:
  4299. basic types, set types, record types, enumerated types, range types,
  4300. pointer types and ARRAY types. Procedure var parameters are correctly
  4301. printed and hexadecimal addresses and character constants are also
  4302. written in the Modula-2 syntax. Best results can be obtained by using
  4303. GNU Modula-2 together with the -gdwarf-2 command line option.
  4304. * REMOVED features
  4305. The ARM rdi-share module.
  4306. The Netware NLM debug server.
  4307. *** Changes in GDB 6.4
  4308. * New native configurations
  4309. OpenBSD/arm arm*-*-openbsd*
  4310. OpenBSD/mips64 mips64-*-openbsd*
  4311. * New targets
  4312. Morpho Technologies ms1 ms1-elf
  4313. * New command line options
  4314. --batch-silent As for --batch, but totally silent.
  4315. --return-child-result The debugger will exist with the same value
  4316. the child (debugged) program exited with.
  4317. --eval-command COMMAND, -ex COMMAND
  4318. Execute a single GDB CLI command. This may be
  4319. specified multiple times and in conjunction
  4320. with the --command (-x) option.
  4321. * Deprecated commands removed
  4322. The following commands, that were deprecated in 2000, have been
  4323. removed:
  4324. Command Replacement
  4325. set|show arm disassembly-flavor set|show arm disassembler
  4326. othernames set arm disassembler
  4327. set|show remotedebug set|show debug remote
  4328. set|show archdebug set|show debug arch
  4329. set|show eventdebug set|show debug event
  4330. regs info registers
  4331. * New BSD user-level threads support
  4332. It is now possible to debug programs using the user-level threads
  4333. library on OpenBSD and FreeBSD. Currently supported (target)
  4334. configurations are:
  4335. FreeBSD/amd64 x86_64-*-freebsd*
  4336. FreeBSD/i386 i386-*-freebsd*
  4337. OpenBSD/i386 i386-*-openbsd*
  4338. Note that the new kernel threads libraries introduced in FreeBSD 5.x
  4339. are not yet supported.
  4340. * New support for Matsushita MN10300 w/sim added
  4341. (Work in progress). mn10300-elf.
  4342. * REMOVED configurations and files
  4343. VxWorks and the XDR protocol *-*-vxworks
  4344. Motorola MCORE mcore-*-*
  4345. National Semiconductor NS32000 ns32k-*-*
  4346. * New "set print array-indexes" command
  4347. After turning this setting "on", GDB prints the index of each element
  4348. when displaying arrays. The default is "off" to preserve the previous
  4349. behavior.
  4350. * VAX floating point support
  4351. GDB now supports the not-quite-ieee VAX F and D floating point formats.
  4352. * User-defined command support
  4353. In addition to using $arg0..$arg9 for argument passing, it is now possible
  4354. to use $argc to determine now many arguments have been passed. See the
  4355. section on user-defined commands in the user manual for more information.
  4356. *** Changes in GDB 6.3:
  4357. * New command line option
  4358. GDB now accepts -l followed by a number to set the timeout for remote
  4359. debugging.
  4360. * GDB works with GCC -feliminate-dwarf2-dups
  4361. GDB now supports a more compact representation of DWARF-2 debug
  4362. information using DW_FORM_ref_addr references. These are produced
  4363. by GCC with the option -feliminate-dwarf2-dups and also by some
  4364. proprietary compilers. With GCC, you must use GCC 3.3.4 or later
  4365. to use -feliminate-dwarf2-dups.
  4366. * Internationalization
  4367. When supported by the host system, GDB will be built with
  4368. internationalization (libintl). The task of marking up the sources is
  4369. continued, we're looking forward to our first translation.
  4370. * Ada
  4371. Initial support for debugging programs compiled with the GNAT
  4372. implementation of the Ada programming language has been integrated
  4373. into GDB. In this release, support is limited to expression evaluation.
  4374. * New native configurations
  4375. GNU/Linux/m32r m32r-*-linux-gnu
  4376. * Remote 'p' packet
  4377. GDB's remote protocol now includes support for the 'p' packet. This
  4378. packet is used to fetch individual registers from a remote inferior.
  4379. * END-OF-LIFE registers[] compatibility module
  4380. GDB's internal register infrastructure has been completely rewritten.
  4381. The new infrastructure making possible the implementation of key new
  4382. features including 32x64 (e.g., 64-bit amd64 GDB debugging a 32-bit
  4383. i386 application).
  4384. GDB 6.3 will be the last release to include the registers[]
  4385. compatibility module that allowed out-of-date configurations to
  4386. continue to work. This change directly impacts the following
  4387. configurations:
  4388. hppa-*-hpux
  4389. ia64-*-aix
  4390. mips-*-irix*
  4391. *-*-lynx
  4392. mips-*-linux-gnu
  4393. sds protocol
  4394. xdr protocol
  4395. powerpc bdm protocol
  4396. Unless there is activity to revive these configurations, they will be
  4397. made OBSOLETE in GDB 6.4, and REMOVED from GDB 6.5.
  4398. * OBSOLETE configurations and files
  4399. Configurations that have been declared obsolete in this release have
  4400. been commented out. Unless there is activity to revive these
  4401. configurations, the next release of GDB will have their sources
  4402. permanently REMOVED.
  4403. h8300-*-*
  4404. mcore-*-*
  4405. mn10300-*-*
  4406. ns32k-*-*
  4407. sh64-*-*
  4408. v850-*-*
  4409. *** Changes in GDB 6.2.1:
  4410. * MIPS `break main; run' gave an heuristic-fence-post warning
  4411. When attempting to run even a simple program, a warning about
  4412. heuristic-fence-post being hit would be reported. This problem has
  4413. been fixed.
  4414. * MIPS IRIX 'long double' crashed GDB
  4415. When examining a long double variable, GDB would get a segmentation
  4416. fault. The crash has been fixed (but GDB 6.2 cannot correctly examine
  4417. IRIX long double values).
  4418. * VAX and "next"
  4419. A bug in the VAX stack code was causing problems with the "next"
  4420. command. This problem has been fixed.
  4421. *** Changes in GDB 6.2:
  4422. * Fix for ``many threads''
  4423. On GNU/Linux systems that use the NPTL threads library, a program
  4424. rapidly creating and deleting threads would confuse GDB leading to the
  4425. error message:
  4426. ptrace: No such process.
  4427. thread_db_get_info: cannot get thread info: generic error
  4428. This problem has been fixed.
  4429. * "-async" and "-noasync" options removed.
  4430. Support for the broken "-noasync" option has been removed (it caused
  4431. GDB to dump core).
  4432. * New ``start'' command.
  4433. This command runs the program until the beginning of the main procedure.
  4434. * New BSD Kernel Data Access Library (libkvm) interface
  4435. Using ``target kvm'' it is now possible to debug kernel core dumps and
  4436. live kernel memory images on various FreeBSD, NetBSD and OpenBSD
  4437. platforms. Currently supported (native-only) configurations are:
  4438. FreeBSD/amd64 x86_64-*-freebsd*
  4439. FreeBSD/i386 i?86-*-freebsd*
  4440. NetBSD/i386 i?86-*-netbsd*
  4441. NetBSD/m68k m68*-*-netbsd*
  4442. NetBSD/sparc sparc-*-netbsd*
  4443. OpenBSD/amd64 x86_64-*-openbsd*
  4444. OpenBSD/i386 i?86-*-openbsd*
  4445. OpenBSD/m68k m68*-openbsd*
  4446. OpenBSD/sparc sparc-*-openbsd*
  4447. * Signal trampoline code overhauled
  4448. Many generic problems with GDB's signal handling code have been fixed.
  4449. These include: backtraces through non-contiguous stacks; recognition
  4450. of sa_sigaction signal trampolines; backtrace from a NULL pointer
  4451. call; backtrace through a signal trampoline; step into and out of
  4452. signal handlers; and single-stepping in the signal trampoline.
  4453. Please note that kernel bugs are a limiting factor here. These
  4454. features have been shown to work on an s390 GNU/Linux system that
  4455. include a 2.6.8-rc1 kernel. Ref PR breakpoints/1702.
  4456. * Cygwin support for DWARF 2 added.
  4457. * New native configurations
  4458. GNU/Linux/hppa hppa*-*-linux*
  4459. OpenBSD/hppa hppa*-*-openbsd*
  4460. OpenBSD/m68k m68*-*-openbsd*
  4461. OpenBSD/m88k m88*-*-openbsd*
  4462. OpenBSD/powerpc powerpc-*-openbsd*
  4463. NetBSD/vax vax-*-netbsd*
  4464. OpenBSD/vax vax-*-openbsd*
  4465. * END-OF-LIFE frame compatibility module
  4466. GDB's internal frame infrastructure has been completely rewritten.
  4467. The new infrastructure making it possible to support key new features
  4468. including DWARF 2 Call Frame Information. To aid in the task of
  4469. migrating old configurations to this new infrastructure, a
  4470. compatibility module, that allowed old configurations to continue to
  4471. work, was also included.
  4472. GDB 6.2 will be the last release to include this frame compatibility
  4473. module. This change directly impacts the following configurations:
  4474. h8300-*-*
  4475. mcore-*-*
  4476. mn10300-*-*
  4477. ns32k-*-*
  4478. sh64-*-*
  4479. v850-*-*
  4480. xstormy16-*-*
  4481. Unless there is activity to revive these configurations, they will be
  4482. made OBSOLETE in GDB 6.3, and REMOVED from GDB 6.4.
  4483. * REMOVED configurations and files
  4484. Sun 3, running SunOS 3 m68*-*-sunos3*
  4485. Sun 3, running SunOS 4 m68*-*-sunos4*
  4486. Sun 2, running SunOS 3 m68000-*-sunos3*
  4487. Sun 2, running SunOS 4 m68000-*-sunos4*
  4488. Motorola 680x0 running LynxOS m68*-*-lynxos*
  4489. AT&T 3b1/Unix pc m68*-att-*
  4490. Bull DPX2 (68k, System V release 3) m68*-bull-sysv*
  4491. decstation mips-dec-* mips-little-*
  4492. riscos mips-*-riscos* mips-*-sysv*
  4493. sonymips mips-sony-*
  4494. sysv mips*-*-sysv4* (IRIX 5/6 not included)
  4495. *** Changes in GDB 6.1.1:
  4496. * TUI (Text-mode User Interface) built-in (also included in GDB 6.1)
  4497. The TUI (Text-mode User Interface) is now built as part of a default
  4498. GDB configuration. It is enabled by either selecting the TUI with the
  4499. command line option "-i=tui" or by running the separate "gdbtui"
  4500. program. For more information on the TUI, see the manual "Debugging
  4501. with GDB".
  4502. * Pending breakpoint support (also included in GDB 6.1)
  4503. Support has been added to allow you to specify breakpoints in shared
  4504. libraries that have not yet been loaded. If a breakpoint location
  4505. cannot be found, and the "breakpoint pending" option is set to auto,
  4506. GDB queries you if you wish to make the breakpoint pending on a future
  4507. shared-library load. If and when GDB resolves the breakpoint symbol,
  4508. the pending breakpoint is removed as one or more regular breakpoints
  4509. are created.
  4510. Pending breakpoints are very useful for GCJ Java debugging.
  4511. * Fixed ISO-C build problems
  4512. The files bfd/elf-bfd.h, gdb/dictionary.c and gdb/types.c contained
  4513. non ISO-C code that stopped them being built using a more strict ISO-C
  4514. compiler (e.g., IBM's C compiler).
  4515. * Fixed build problem on IRIX 5
  4516. Due to header problems with <sys/proc.h>, the file gdb/proc-api.c
  4517. wasn't able to compile compile on an IRIX 5 system.
  4518. * Added execute permission to gdb/gdbserver/configure
  4519. The shell script gdb/testsuite/gdb.stabs/configure lacked execute
  4520. permission. This bug would cause configure to fail on a number of
  4521. systems (Solaris, IRIX). Ref: server/519.
  4522. * Fixed build problem on hpux2.0w-hp-hpux11.00 using the HP ANSI C compiler
  4523. Older HPUX ANSI C compilers did not accept variable array sizes. somsolib.c
  4524. has been updated to use constant array sizes.
  4525. * Fixed a panic in the DWARF Call Frame Info code on Solaris 2.7
  4526. GCC 3.3.2, on Solaris 2.7, includes the DW_EH_PE_funcrel encoding in
  4527. its generated DWARF Call Frame Info. This encoding was causing GDB to
  4528. panic, that panic has been fixed. Ref: gdb/1628.
  4529. * Fixed a problem when examining parameters in shared library code.
  4530. When examining parameters in optimized shared library code generated
  4531. by a mainline GCC, GDB would incorrectly report ``Variable "..." is
  4532. not available''. GDB now correctly displays the variable's value.
  4533. *** Changes in GDB 6.1:
  4534. * Removed --with-mmalloc
  4535. Support for the mmalloc memory manager has been removed, as it
  4536. conflicted with the internal gdb byte cache.
  4537. * Changes in AMD64 configurations
  4538. The AMD64 target now includes the %cs and %ss registers. As a result
  4539. the AMD64 remote protocol has changed; this affects the floating-point
  4540. and SSE registers. If you rely on those registers for your debugging,
  4541. you should upgrade gdbserver on the remote side.
  4542. * Revised SPARC target
  4543. The SPARC target has been completely revised, incorporating the
  4544. FreeBSD/sparc64 support that was added for GDB 6.0. As a result
  4545. support for LynxOS and SunOS 4 has been dropped. Calling functions
  4546. from within GDB on operating systems with a non-executable stack
  4547. (Solaris, OpenBSD) now works.
  4548. * New C++ demangler
  4549. GDB has a new C++ demangler which does a better job on the mangled
  4550. names generated by current versions of g++. It also runs faster, so
  4551. with this and other changes gdb should now start faster on large C++
  4552. programs.
  4553. * DWARF 2 Location Expressions
  4554. GDB support for location expressions has been extended to support function
  4555. arguments and frame bases. Older versions of GDB could crash when they
  4556. encountered these.
  4557. * C++ nested types and namespaces
  4558. GDB's support for nested types and namespaces in C++ has been
  4559. improved, especially if you use the DWARF 2 debugging format. (This
  4560. is the default for recent versions of GCC on most platforms.)
  4561. Specifically, if you have a class "Inner" defined within a class or
  4562. namespace "Outer", then GDB realizes that the class's name is
  4563. "Outer::Inner", not simply "Inner". This should greatly reduce the
  4564. frequency of complaints about not finding RTTI symbols. In addition,
  4565. if you are stopped at inside of a function defined within a namespace,
  4566. GDB modifies its name lookup accordingly.
  4567. * New native configurations
  4568. NetBSD/amd64 x86_64-*-netbsd*
  4569. OpenBSD/amd64 x86_64-*-openbsd*
  4570. OpenBSD/alpha alpha*-*-openbsd*
  4571. OpenBSD/sparc sparc-*-openbsd*
  4572. OpenBSD/sparc64 sparc64-*-openbsd*
  4573. * New debugging protocols
  4574. M32R with SDI protocol m32r-*-elf*
  4575. * "set prompt-escape-char" command deleted.
  4576. The command "set prompt-escape-char" has been deleted. This command,
  4577. and its very obscure effect on GDB's prompt, was never documented,
  4578. tested, nor mentioned in the NEWS file.
  4579. * OBSOLETE configurations and files
  4580. Configurations that have been declared obsolete in this release have
  4581. been commented out. Unless there is activity to revive these
  4582. configurations, the next release of GDB will have their sources
  4583. permanently REMOVED.
  4584. Sun 3, running SunOS 3 m68*-*-sunos3*
  4585. Sun 3, running SunOS 4 m68*-*-sunos4*
  4586. Sun 2, running SunOS 3 m68000-*-sunos3*
  4587. Sun 2, running SunOS 4 m68000-*-sunos4*
  4588. Motorola 680x0 running LynxOS m68*-*-lynxos*
  4589. AT&T 3b1/Unix pc m68*-att-*
  4590. Bull DPX2 (68k, System V release 3) m68*-bull-sysv*
  4591. decstation mips-dec-* mips-little-*
  4592. riscos mips-*-riscos* mips-*-sysv*
  4593. sonymips mips-sony-*
  4594. sysv mips*-*-sysv4* (IRIX 5/6 not included)
  4595. * REMOVED configurations and files
  4596. SGI Irix-4.x mips-sgi-irix4 or iris4
  4597. SGI Iris (MIPS) running Irix V3: mips-sgi-irix or iris
  4598. Z8000 simulator z8k-zilog-none or z8ksim
  4599. Matsushita MN10200 w/simulator mn10200-*-*
  4600. H8/500 simulator h8500-hitachi-hms or h8500hms
  4601. HP/PA running BSD hppa*-*-bsd*
  4602. HP/PA running OSF/1 hppa*-*-osf*
  4603. HP/PA Pro target hppa*-*-pro*
  4604. PMAX (MIPS) running Mach 3.0 mips*-*-mach3*
  4605. 386BSD i[3456]86-*-bsd*
  4606. Sequent family i[3456]86-sequent-sysv4*
  4607. i[3456]86-sequent-sysv*
  4608. i[3456]86-sequent-bsd*
  4609. SPARC running LynxOS sparc-*-lynxos*
  4610. SPARC running SunOS 4 sparc-*-sunos4*
  4611. Tsqware Sparclet sparclet-*-*
  4612. Fujitsu SPARClite sparclite-fujitsu-none or sparclite
  4613. *** Changes in GDB 6.0:
  4614. * Objective-C
  4615. Support for debugging the Objective-C programming language has been
  4616. integrated into GDB.
  4617. * New backtrace mechanism (includes DWARF 2 Call Frame Information).
  4618. DWARF 2's Call Frame Information makes available compiler generated
  4619. information that more exactly describes the program's run-time stack.
  4620. By using this information, GDB is able to provide more robust stack
  4621. backtraces.
  4622. The i386, amd64 (nee, x86-64), Alpha, m68hc11, ia64, and m32r targets
  4623. have been updated to use a new backtrace mechanism which includes
  4624. DWARF 2 CFI support.
  4625. * Hosted file I/O.
  4626. GDB's remote protocol has been extended to include support for hosted
  4627. file I/O (where the remote target uses GDB's file system). See GDB's
  4628. remote protocol documentation for details.
  4629. * All targets using the new architecture framework.
  4630. All of GDB's targets have been updated to use the new internal
  4631. architecture framework. The way is now open for future GDB releases
  4632. to include cross-architecture native debugging support (i386 on amd64,
  4633. ppc32 on ppc64).
  4634. * GNU/Linux's Thread Local Storage (TLS)
  4635. GDB now includes support for for the GNU/Linux implementation of
  4636. per-thread variables.
  4637. * GNU/Linux's Native POSIX Thread Library (NPTL)
  4638. GDB's thread code has been updated to work with either the new
  4639. GNU/Linux NPTL thread library or the older "LinuxThreads" library.
  4640. * Separate debug info.
  4641. GDB, in conjunction with BINUTILS, now supports a mechanism for
  4642. automatically loading debug information from a separate file. Instead
  4643. of shipping full debug and non-debug versions of system libraries,
  4644. system integrators can now instead ship just the stripped libraries
  4645. and optional debug files.
  4646. * DWARF 2 Location Expressions
  4647. DWARF 2 Location Expressions allow the compiler to more completely
  4648. describe the location of variables (even in optimized code) to the
  4649. debugger.
  4650. GDB now includes preliminary support for location expressions (support
  4651. for DW_OP_piece is still missing).
  4652. * Java
  4653. A number of long standing bugs that caused GDB to die while starting a
  4654. Java application have been fixed. GDB's Java support is now
  4655. considered "useable".
  4656. * GNU/Linux support for fork, vfork, and exec.
  4657. The "catch fork", "catch exec", "catch vfork", and "set follow-fork-mode"
  4658. commands are now implemented for GNU/Linux. They require a 2.5.x or later
  4659. kernel.
  4660. * GDB supports logging output to a file
  4661. There are two new commands, "set logging" and "show logging", which can be
  4662. used to capture GDB's output to a file.
  4663. * The meaning of "detach" has changed for gdbserver
  4664. The "detach" command will now resume the application, as documented. To
  4665. disconnect from gdbserver and leave it stopped, use the new "disconnect"
  4666. command.
  4667. * d10v, m68hc11 `regs' command deprecated
  4668. The `info registers' command has been updated so that it displays the
  4669. registers using a format identical to the old `regs' command.
  4670. * Profiling support
  4671. A new command, "maint set profile on/off", has been added. This command can
  4672. be used to enable or disable profiling while running GDB, to profile a
  4673. session or a set of commands. In addition there is a new configure switch,
  4674. "--enable-profiling", which will cause GDB to be compiled with profiling
  4675. data, for more informative profiling results.
  4676. * Default MI syntax changed to "mi2".
  4677. The default MI (machine interface) syntax, enabled by the command line
  4678. option "-i=mi", has been changed to "mi2". The previous MI syntax,
  4679. "mi1", can be enabled by specifying the option "-i=mi1".
  4680. Support for the original "mi0" syntax (included in GDB 5.0) has been
  4681. removed.
  4682. Fix for gdb/192: removed extraneous space when displaying frame level.
  4683. Fix for gdb/672: update changelist is now output in mi list format.
  4684. Fix for gdb/702: a -var-assign that updates the value now shows up
  4685. in a subsequent -var-update.
  4686. * New native configurations.
  4687. FreeBSD/amd64 x86_64-*-freebsd*
  4688. * Multi-arched targets.
  4689. HP/PA HPUX11 hppa*-*-hpux*
  4690. Renesas M32R/D w/simulator m32r-*-elf*
  4691. * OBSOLETE configurations and files
  4692. Configurations that have been declared obsolete in this release have
  4693. been commented out. Unless there is activity to revive these
  4694. configurations, the next release of GDB will have their sources
  4695. permanently REMOVED.
  4696. Z8000 simulator z8k-zilog-none or z8ksim
  4697. Matsushita MN10200 w/simulator mn10200-*-*
  4698. H8/500 simulator h8500-hitachi-hms or h8500hms
  4699. HP/PA running BSD hppa*-*-bsd*
  4700. HP/PA running OSF/1 hppa*-*-osf*
  4701. HP/PA Pro target hppa*-*-pro*
  4702. PMAX (MIPS) running Mach 3.0 mips*-*-mach3*
  4703. Sequent family i[3456]86-sequent-sysv4*
  4704. i[3456]86-sequent-sysv*
  4705. i[3456]86-sequent-bsd*
  4706. Tsqware Sparclet sparclet-*-*
  4707. Fujitsu SPARClite sparclite-fujitsu-none or sparclite
  4708. * REMOVED configurations and files
  4709. V850EA ISA
  4710. Motorola Delta 88000 running Sys V m88k-motorola-sysv or delta88
  4711. IBM AIX PS/2 i[3456]86-*-aix
  4712. i386 running Mach 3.0 i[3456]86-*-mach3*
  4713. i386 running Mach i[3456]86-*-mach*
  4714. i386 running OSF/1 i[3456]86-*osf1mk*
  4715. HP/Apollo 68k Family m68*-apollo*-sysv*,
  4716. m68*-apollo*-bsd*,
  4717. m68*-hp-bsd*, m68*-hp-hpux*
  4718. Argonaut Risc Chip (ARC) arc-*-*
  4719. Mitsubishi D30V d30v-*-*
  4720. Fujitsu FR30 fr30-*-elf*
  4721. OS/9000 i[34]86-*-os9k
  4722. I960 with MON960 i960-*-coff
  4723. * MIPS $fp behavior changed
  4724. The convenience variable $fp, for the MIPS, now consistently returns
  4725. the address of the current frame's base. Previously, depending on the
  4726. context, $fp could refer to either $sp or the current frame's base
  4727. address. See ``8.10 Registers'' in the manual ``Debugging with GDB:
  4728. The GNU Source-Level Debugger''.
  4729. *** Changes in GDB 5.3:
  4730. * GNU/Linux shared library multi-threaded performance improved.
  4731. When debugging a multi-threaded application on GNU/Linux, GDB now uses
  4732. `/proc', in preference to `ptrace' for memory reads. This may result
  4733. in an improvement in the start-up time of multi-threaded, shared
  4734. library applications when run under GDB. One GDB user writes: ``loads
  4735. shared libs like mad''.
  4736. * ``gdbserver'' now supports multi-threaded applications on some targets
  4737. Support for debugging multi-threaded applications which use
  4738. the GNU/Linux LinuxThreads package has been added for
  4739. arm*-*-linux*-gnu*, i[3456]86-*-linux*-gnu*, mips*-*-linux*-gnu*,
  4740. powerpc*-*-linux*-gnu*, and sh*-*-linux*-gnu*.
  4741. * GDB now supports C/C++ preprocessor macros.
  4742. GDB now expands preprocessor macro invocations in C/C++ expressions,
  4743. and provides various commands for showing macro definitions and how
  4744. they expand.
  4745. The new command `macro expand EXPRESSION' expands any macro
  4746. invocations in expression, and shows the result.
  4747. The new command `show macro MACRO-NAME' shows the definition of the
  4748. macro named MACRO-NAME, and where it was defined.
  4749. Most compilers don't include information about macros in the debugging
  4750. information by default. In GCC 3.1, for example, you need to compile
  4751. your program with the options `-gdwarf-2 -g3'. If the macro
  4752. information is present in the executable, GDB will read it.
  4753. * Multi-arched targets.
  4754. DEC Alpha (partial) alpha*-*-*
  4755. DEC VAX (partial) vax-*-*
  4756. NEC V850 v850-*-*
  4757. National Semiconductor NS32000 (partial) ns32k-*-*
  4758. Motorola 68000 (partial) m68k-*-*
  4759. Motorola MCORE mcore-*-*
  4760. * New targets.
  4761. Fujitsu FRV architecture added by Red Hat frv*-*-*
  4762. * New native configurations
  4763. Alpha NetBSD alpha*-*-netbsd*
  4764. SH NetBSD sh*-*-netbsdelf*
  4765. MIPS NetBSD mips*-*-netbsd*
  4766. UltraSPARC NetBSD sparc64-*-netbsd*
  4767. * OBSOLETE configurations and files
  4768. Configurations that have been declared obsolete in this release have
  4769. been commented out. Unless there is activity to revive these
  4770. configurations, the next release of GDB will have their sources
  4771. permanently REMOVED.
  4772. Mitsubishi D30V d30v-*-*
  4773. OS/9000 i[34]86-*-os9k
  4774. IBM AIX PS/2 i[3456]86-*-aix
  4775. Fujitsu FR30 fr30-*-elf*
  4776. Motorola Delta 88000 running Sys V m88k-motorola-sysv or delta88
  4777. Argonaut Risc Chip (ARC) arc-*-*
  4778. i386 running Mach 3.0 i[3456]86-*-mach3*
  4779. i386 running Mach i[3456]86-*-mach*
  4780. i386 running OSF/1 i[3456]86-*osf1mk*
  4781. HP/Apollo 68k Family m68*-apollo*-sysv*,
  4782. m68*-apollo*-bsd*,
  4783. m68*-hp-bsd*, m68*-hp-hpux*
  4784. I960 with MON960 i960-*-coff
  4785. * OBSOLETE languages
  4786. CHILL, a Pascal like language used by telecommunications companies.
  4787. * REMOVED configurations and files
  4788. AMD 29k family via UDI a29k-amd-udi, udi29k
  4789. A29K VxWorks a29k-*-vxworks
  4790. AMD 29000 embedded, using EBMON a29k-none-none
  4791. AMD 29000 embedded with COFF a29k-none-coff
  4792. AMD 29000 embedded with a.out a29k-none-aout
  4793. testsuite/gdb.hp/gdb.threads-hp/ directory
  4794. * New command "set max-user-call-depth <nnn>"
  4795. This command allows the user to limit the call depth of user-defined
  4796. commands. The default is 1024.
  4797. * Changes in FreeBSD/i386 native debugging.
  4798. Support for the "generate-core-file" has been added.
  4799. * New commands "dump", "append", and "restore".
  4800. These commands allow data to be copied from target memory
  4801. to a bfd-format or binary file (dump and append), and back
  4802. from a file into memory (restore).
  4803. * Improved "next/step" support on multi-processor Alpha Tru64.
  4804. The previous single-step mechanism could cause unpredictable problems,
  4805. including the random appearance of SIGSEGV or SIGTRAP signals. The use
  4806. of a software single-step mechanism prevents this.
  4807. *** Changes in GDB 5.2.1:
  4808. * New targets.
  4809. Atmel AVR avr*-*-*
  4810. * Bug fixes
  4811. gdb/182: gdb/323: gdb/237: On alpha, gdb was reporting:
  4812. mdebugread.c:2443: gdb-internal-error: sect_index_data not initialized
  4813. Fix, by Joel Brobecker imported from mainline.
  4814. gdb/439: gdb/291: On some ELF object files, gdb was reporting:
  4815. dwarf2read.c:1072: gdb-internal-error: sect_index_text not initialize
  4816. Fix, by Fred Fish, imported from mainline.
  4817. Dwarf2 .debug_frame & .eh_frame handler improved in many ways.
  4818. Surprisingly enough, it works now.
  4819. By Michal Ludvig, imported from mainline.
  4820. i386 hardware watchpoint support:
  4821. avoid misses on second run for some targets.
  4822. By Pierre Muller, imported from mainline.
  4823. *** Changes in GDB 5.2:
  4824. * New command "set trust-readonly-sections on[off]".
  4825. This command is a hint that tells gdb that read-only sections
  4826. really are read-only (ie. that their contents will not change).
  4827. In this mode, gdb will go to the object file rather than the
  4828. target to read memory from read-only sections (such as ".text").
  4829. This can be a significant performance improvement on some
  4830. (notably embedded) targets.
  4831. * New command "generate-core-file" (or "gcore").
  4832. This new gdb command allows the user to drop a core file of the child
  4833. process state at any time. So far it's been implemented only for
  4834. GNU/Linux and Solaris, but should be relatively easily ported to other
  4835. hosts. Argument is core file name (defaults to core.<pid>).
  4836. * New command line option
  4837. GDB now accepts --pid or -p followed by a process id.
  4838. * Change in command line behavior -- corefiles vs. process ids.
  4839. There is a subtle behavior in the way in which GDB handles
  4840. command line arguments. The first non-flag argument is always
  4841. a program to debug, but the second non-flag argument may either
  4842. be a corefile or a process id. Previously, GDB would attempt to
  4843. open the second argument as a corefile, and if that failed, would
  4844. issue a superfluous error message and then attempt to attach it as
  4845. a process. Now, if the second argument begins with a non-digit,
  4846. it will be treated as a corefile. If it begins with a digit,
  4847. GDB will attempt to attach it as a process, and if no such process
  4848. is found, will then attempt to open it as a corefile.
  4849. * Changes in ARM configurations.
  4850. Multi-arch support is enabled for all ARM configurations. The ARM/NetBSD
  4851. configuration is fully multi-arch.
  4852. * New native configurations
  4853. ARM NetBSD arm*-*-netbsd*
  4854. x86 OpenBSD i[3456]86-*-openbsd*
  4855. AMD x86-64 running GNU/Linux x86_64-*-linux-*
  4856. Sparc64 running FreeBSD sparc64-*-freebsd*
  4857. * New targets
  4858. Sanyo XStormy16 xstormy16-elf
  4859. * OBSOLETE configurations and files
  4860. Configurations that have been declared obsolete in this release have
  4861. been commented out. Unless there is activity to revive these
  4862. configurations, the next release of GDB will have their sources
  4863. permanently REMOVED.
  4864. AMD 29k family via UDI a29k-amd-udi, udi29k
  4865. A29K VxWorks a29k-*-vxworks
  4866. AMD 29000 embedded, using EBMON a29k-none-none
  4867. AMD 29000 embedded with COFF a29k-none-coff
  4868. AMD 29000 embedded with a.out a29k-none-aout
  4869. testsuite/gdb.hp/gdb.threads-hp/ directory
  4870. * REMOVED configurations and files
  4871. TI TMS320C80 tic80-*-*
  4872. WDC 65816 w65-*-*
  4873. PowerPC Solaris powerpcle-*-solaris*
  4874. PowerPC Windows NT powerpcle-*-cygwin32
  4875. PowerPC Netware powerpc-*-netware*
  4876. Harris/CXUX m88k m88*-harris-cxux*
  4877. Most ns32k hosts and targets ns32k-*-mach3* ns32k-umax-*
  4878. ns32k-utek-sysv* ns32k-utek-*
  4879. SunOS 4.0.Xi on i386 i[3456]86-*-sunos*
  4880. Ultracomputer (29K) running Sym1 a29k-nyu-sym1 a29k-*-kern*
  4881. Sony NEWS (68K) running NEWSOS 3.x m68*-sony-sysv news
  4882. ISI Optimum V (3.05) under 4.3bsd. m68*-isi-*
  4883. Apple Macintosh (MPW) host and target N/A host, powerpc-*-macos*
  4884. * Changes to command line processing
  4885. The new `--args' feature can be used to specify command-line arguments
  4886. for the inferior from gdb's command line.
  4887. * Changes to key bindings
  4888. There is a new `operate-and-get-next' function bound to `C-o'.
  4889. *** Changes in GDB 5.1.1
  4890. Fix compile problem on DJGPP.
  4891. Fix a problem with floating-point registers on the i386 being
  4892. corrupted.
  4893. Fix to stop GDB crashing on .debug_str debug info.
  4894. Numerous documentation fixes.
  4895. Numerous testsuite fixes.
  4896. *** Changes in GDB 5.1:
  4897. * New native configurations
  4898. Alpha FreeBSD alpha*-*-freebsd*
  4899. x86 FreeBSD 3.x and 4.x i[3456]86*-freebsd[34]*
  4900. MIPS GNU/Linux mips*-*-linux*
  4901. MIPS SGI Irix 6.x mips*-sgi-irix6*
  4902. ia64 AIX ia64-*-aix*
  4903. s390 and s390x GNU/Linux {s390,s390x}-*-linux*
  4904. * New targets
  4905. Motorola 68HC11 and 68HC12 m68hc11-elf
  4906. CRIS cris-axis
  4907. UltraSparc running GNU/Linux sparc64-*-linux*
  4908. * OBSOLETE configurations and files
  4909. x86 FreeBSD before 2.2 i[3456]86*-freebsd{1,2.[01]}*,
  4910. Harris/CXUX m88k m88*-harris-cxux*
  4911. Most ns32k hosts and targets ns32k-*-mach3* ns32k-umax-*
  4912. ns32k-utek-sysv* ns32k-utek-*
  4913. TI TMS320C80 tic80-*-*
  4914. WDC 65816 w65-*-*
  4915. Ultracomputer (29K) running Sym1 a29k-nyu-sym1 a29k-*-kern*
  4916. PowerPC Solaris powerpcle-*-solaris*
  4917. PowerPC Windows NT powerpcle-*-cygwin32
  4918. PowerPC Netware powerpc-*-netware*
  4919. SunOS 4.0.Xi on i386 i[3456]86-*-sunos*
  4920. Sony NEWS (68K) running NEWSOS 3.x m68*-sony-sysv news
  4921. ISI Optimum V (3.05) under 4.3bsd. m68*-isi-*
  4922. Apple Macintosh (MPW) host N/A
  4923. stuff.c (Program to stuff files into a specially prepared space in kdb)
  4924. kdb-start.c (Main loop for the standalone kernel debugger)
  4925. Configurations that have been declared obsolete in this release have
  4926. been commented out. Unless there is activity to revive these
  4927. configurations, the next release of GDB will have their sources
  4928. permanently REMOVED.
  4929. * REMOVED configurations and files
  4930. Altos 3068 m68*-altos-*
  4931. Convex c1-*-*, c2-*-*
  4932. Pyramid pyramid-*-*
  4933. ARM RISCix arm-*-* (as host)
  4934. Tahoe tahoe-*-*
  4935. ser-ocd.c *-*-*
  4936. * GDB has been converted to ISO C.
  4937. GDB's source code has been converted to ISO C. In particular, the
  4938. sources are fully protoized, and rely on standard headers being
  4939. present.
  4940. * Other news:
  4941. * "info symbol" works on platforms which use COFF, ECOFF, XCOFF, and NLM.
  4942. * The MI enabled by default.
  4943. The new machine oriented interface (MI) introduced in GDB 5.0 has been
  4944. revised and enabled by default. Packages which use GDB as a debugging
  4945. engine behind a UI or another front end are encouraged to switch to
  4946. using the GDB/MI interface, instead of the old annotations interface
  4947. which is now deprecated.
  4948. * Support for debugging Pascal programs.
  4949. GDB now includes support for debugging Pascal programs. The following
  4950. main features are supported:
  4951. - Pascal-specific data types such as sets;
  4952. - automatic recognition of Pascal sources based on file-name
  4953. extension;
  4954. - Pascal-style display of data types, variables, and functions;
  4955. - a Pascal expression parser.
  4956. However, some important features are not yet supported.
  4957. - Pascal string operations are not supported at all;
  4958. - there are some problems with boolean types;
  4959. - Pascal type hexadecimal constants are not supported
  4960. because they conflict with the internal variables format;
  4961. - support for Pascal objects and classes is not full yet;
  4962. - unlike Pascal, GDB is case-sensitive for symbol names.
  4963. * Changes in completion.
  4964. Commands such as `shell', `run' and `set args', which pass arguments
  4965. to inferior programs, now complete on file names, similar to what
  4966. users expect at the shell prompt.
  4967. Commands which accept locations, such as `disassemble', `print',
  4968. `breakpoint', `until', etc. now complete on filenames as well as
  4969. program symbols. Thus, if you type "break foob TAB", and the source
  4970. files linked into the programs include `foobar.c', that file name will
  4971. be one of the candidates for completion. However, file names are not
  4972. considered for completion after you typed a colon that delimits a file
  4973. name from a name of a function in that file, as in "break foo.c:bar".
  4974. `set demangle-style' completes on available demangling styles.
  4975. * New platform-independent commands:
  4976. It is now possible to define a post-hook for a command as well as a
  4977. hook that runs before the command. For more details, see the
  4978. documentation of `hookpost' in the GDB manual.
  4979. * Changes in GNU/Linux native debugging.
  4980. Support for debugging multi-threaded programs has been completely
  4981. revised for all platforms except m68k and sparc. You can now debug as
  4982. many threads as your system allows you to have.
  4983. Attach/detach is supported for multi-threaded programs.
  4984. Support for SSE registers was added for x86. This doesn't work for
  4985. multi-threaded programs though.
  4986. * Changes in MIPS configurations.
  4987. Multi-arch support is enabled for all MIPS configurations.
  4988. GDB can now be built as native debugger on SGI Irix 6.x systems for
  4989. debugging n32 executables. (Debugging 64-bit executables is not yet
  4990. supported.)
  4991. * Unified support for hardware watchpoints in all x86 configurations.
  4992. Most (if not all) native x86 configurations support hardware-assisted
  4993. breakpoints and watchpoints in a unified manner. This support
  4994. implements debug register sharing between watchpoints, which allows to
  4995. put a virtually infinite number of watchpoints on the same address,
  4996. and also supports watching regions up to 16 bytes with several debug
  4997. registers.
  4998. The new maintenance command `maintenance show-debug-regs' toggles
  4999. debugging print-outs in functions that insert, remove, and test
  5000. watchpoints and hardware breakpoints.
  5001. * Changes in the DJGPP native configuration.
  5002. New command ``info dos sysinfo'' displays assorted information about
  5003. the CPU, OS, memory, and DPMI server.
  5004. New commands ``info dos gdt'', ``info dos ldt'', and ``info dos idt''
  5005. display information about segment descriptors stored in GDT, LDT, and
  5006. IDT.
  5007. New commands ``info dos pde'' and ``info dos pte'' display entries
  5008. from Page Directory and Page Tables (for now works with CWSDPMI only).
  5009. New command ``info dos address-pte'' displays the Page Table entry for
  5010. a given linear address.
  5011. GDB can now pass command lines longer than 126 characters to the
  5012. program being debugged (requires an update to the libdbg.a library
  5013. which is part of the DJGPP development kit).
  5014. DWARF2 debug info is now supported.
  5015. It is now possible to `step' and `next' through calls to `longjmp'.
  5016. * Changes in documentation.
  5017. All GDB documentation was converted to GFDL, the GNU Free
  5018. Documentation License.
  5019. Tracepoints-related commands are now fully documented in the GDB
  5020. manual.
  5021. TUI, the Text-mode User Interface, is now documented in the manual.
  5022. Tracepoints-related commands are now fully documented in the GDB
  5023. manual.
  5024. The "GDB Internals" manual now has an index. It also includes
  5025. documentation of `ui_out' functions, GDB coding standards, x86
  5026. hardware watchpoints, and memory region attributes.
  5027. * GDB's version number moved to ``version.in''
  5028. The Makefile variable VERSION has been replaced by the file
  5029. ``version.in''. People creating GDB distributions should update the
  5030. contents of this file.
  5031. * gdba.el deleted
  5032. GUD support is now a standard part of the EMACS distribution.
  5033. *** Changes in GDB 5.0:
  5034. * Improved support for debugging FP programs on x86 targets
  5035. Unified and much-improved support for debugging floating-point
  5036. programs on all x86 targets. In particular, ``info float'' now
  5037. displays the FP registers in the same format on all x86 targets, with
  5038. greater level of detail.
  5039. * Improvements and bugfixes in hardware-assisted watchpoints
  5040. It is now possible to watch array elements, struct members, and
  5041. bitfields with hardware-assisted watchpoints. Data-read watchpoints
  5042. on x86 targets no longer erroneously trigger when the address is
  5043. written.
  5044. * Improvements in the native DJGPP version of GDB
  5045. The distribution now includes all the scripts and auxiliary files
  5046. necessary to build the native DJGPP version on MS-DOS/MS-Windows
  5047. machines ``out of the box''.
  5048. The DJGPP version can now debug programs that use signals. It is
  5049. possible to catch signals that happened in the debuggee, deliver
  5050. signals to it, interrupt it with Ctrl-C, etc. (Previously, a signal
  5051. would kill the program being debugged.) Programs that hook hardware
  5052. interrupts (keyboard, timer, etc.) can also be debugged.
  5053. It is now possible to debug DJGPP programs that redirect their
  5054. standard handles or switch them to raw (as opposed to cooked) mode, or
  5055. even close them. The command ``run < foo > bar'' works as expected,
  5056. and ``info terminal'' reports useful information about the debuggee's
  5057. terminal, including raw/cooked mode, redirection, etc.
  5058. The DJGPP version now uses termios functions for console I/O, which
  5059. enables debugging graphics programs. Interrupting GDB with Ctrl-C
  5060. also works.
  5061. DOS-style file names with drive letters are now fully supported by
  5062. GDB.
  5063. It is now possible to debug DJGPP programs that switch their working
  5064. directory. It is also possible to rerun the debuggee any number of
  5065. times without restarting GDB; thus, you can use the same setup,
  5066. breakpoints, etc. for many debugging sessions.
  5067. * New native configurations
  5068. ARM GNU/Linux arm*-*-linux*
  5069. PowerPC GNU/Linux powerpc-*-linux*
  5070. * New targets
  5071. Motorola MCore mcore-*-*
  5072. x86 VxWorks i[3456]86-*-vxworks*
  5073. PowerPC VxWorks powerpc-*-vxworks*
  5074. TI TMS320C80 tic80-*-*
  5075. * OBSOLETE configurations
  5076. Altos 3068 m68*-altos-*
  5077. Convex c1-*-*, c2-*-*
  5078. Pyramid pyramid-*-*
  5079. ARM RISCix arm-*-* (as host)
  5080. Tahoe tahoe-*-*
  5081. Configurations that have been declared obsolete will be commented out,
  5082. but the code will be left in place. If there is no activity to revive
  5083. these configurations before the next release of GDB, the sources will
  5084. be permanently REMOVED.
  5085. * Gould support removed
  5086. Support for the Gould PowerNode and NP1 has been removed.
  5087. * New features for SVR4
  5088. On SVR4 native platforms (such as Solaris), if you attach to a process
  5089. without first loading a symbol file, GDB will now attempt to locate and
  5090. load symbols from the running process's executable file.
  5091. * Many C++ enhancements
  5092. C++ support has been greatly improved. Overload resolution now works properly
  5093. in almost all cases. RTTI support is on the way.
  5094. * Remote targets can connect to a sub-program
  5095. A popen(3) style serial-device has been added. This device starts a
  5096. sub-process (such as a stand-alone simulator) and then communicates
  5097. with that. The sub-program to run is specified using the syntax
  5098. ``|<program> <args>'' vis:
  5099. (gdb) set remotedebug 1
  5100. (gdb) target extended-remote |mn10300-elf-sim program-args
  5101. * MIPS 64 remote protocol
  5102. A long standing bug in the mips64 remote protocol where by GDB
  5103. expected certain 32 bit registers (ex SR) to be transfered as 32
  5104. instead of 64 bits has been fixed.
  5105. The command ``set remote-mips64-transfers-32bit-regs on'' has been
  5106. added to provide backward compatibility with older versions of GDB.
  5107. * ``set remotebinarydownload'' replaced by ``set remote X-packet''
  5108. The command ``set remotebinarydownload'' command has been replaced by
  5109. ``set remote X-packet''. Other commands in ``set remote'' family
  5110. include ``set remote P-packet''.
  5111. * Breakpoint commands accept ranges.
  5112. The breakpoint commands ``enable'', ``disable'', and ``delete'' now
  5113. accept a range of breakpoints, e.g. ``5-7''. The tracepoint command
  5114. ``tracepoint passcount'' also accepts a range of tracepoints.
  5115. * ``apropos'' command added.
  5116. The ``apropos'' command searches through command names and
  5117. documentation strings, printing out matches, making it much easier to
  5118. try to find a command that does what you are looking for.
  5119. * New MI interface
  5120. A new machine oriented interface (MI) has been added to GDB. This
  5121. interface is designed for debug environments running GDB as a separate
  5122. process. This is part of the long term libGDB project. See the
  5123. "GDB/MI" chapter of the GDB manual for further information. It can be
  5124. enabled by configuring with:
  5125. .../configure --enable-gdbmi
  5126. *** Changes in GDB-4.18:
  5127. * New native configurations
  5128. HP-UX 10.20 hppa*-*-hpux10.20
  5129. HP-UX 11.x hppa*-*-hpux11.0*
  5130. M68K GNU/Linux m68*-*-linux*
  5131. * New targets
  5132. Fujitsu FR30 fr30-*-elf*
  5133. Intel StrongARM strongarm-*-*
  5134. Mitsubishi D30V d30v-*-*
  5135. * OBSOLETE configurations
  5136. Gould PowerNode, NP1 np1-*-*, pn-*-*
  5137. Configurations that have been declared obsolete will be commented out,
  5138. but the code will be left in place. If there is no activity to revive
  5139. these configurations before the next release of GDB, the sources will
  5140. be permanently REMOVED.
  5141. * ANSI/ISO C
  5142. As a compatibility experiment, GDB's source files buildsym.h and
  5143. buildsym.c have been converted to pure standard C, no longer
  5144. containing any K&R compatibility code. We believe that all systems in
  5145. use today either come with a standard C compiler, or have a GCC port
  5146. available. If this is not true, please report the affected
  5147. configuration to bug-gdb@gnu.org immediately. See the README file for
  5148. information about getting a standard C compiler if you don't have one
  5149. already.
  5150. * Readline 2.2
  5151. GDB now uses readline 2.2.
  5152. * set extension-language
  5153. You can now control the mapping between filename extensions and source
  5154. languages by using the `set extension-language' command. For instance,
  5155. you can ask GDB to treat .c files as C++ by saying
  5156. set extension-language .c c++
  5157. The command `info extensions' lists all of the recognized extensions
  5158. and their associated languages.
  5159. * Setting processor type for PowerPC and RS/6000
  5160. When GDB is configured for a powerpc*-*-* or an rs6000*-*-* target,
  5161. you can use the `set processor' command to specify what variant of the
  5162. PowerPC family you are debugging. The command
  5163. set processor NAME
  5164. sets the PowerPC/RS6000 variant to NAME. GDB knows about the
  5165. following PowerPC and RS6000 variants:
  5166. ppc-uisa PowerPC UISA - a PPC processor as viewed by user-level code
  5167. rs6000 IBM RS6000 ("POWER") architecture, user-level view
  5168. 403 IBM PowerPC 403
  5169. 403GC IBM PowerPC 403GC
  5170. 505 Motorola PowerPC 505
  5171. 860 Motorola PowerPC 860 or 850
  5172. 601 Motorola PowerPC 601
  5173. 602 Motorola PowerPC 602
  5174. 603 Motorola/IBM PowerPC 603 or 603e
  5175. 604 Motorola PowerPC 604 or 604e
  5176. 750 Motorola/IBM PowerPC 750 or 750
  5177. At the moment, this command just tells GDB what to name the
  5178. special-purpose processor registers. Since almost all the affected
  5179. registers are inaccessible to user-level programs, this command is
  5180. only useful for remote debugging in its present form.
  5181. * HP-UX support
  5182. Thanks to a major code donation from Hewlett-Packard, GDB now has much
  5183. more extensive support for HP-UX. Added features include shared
  5184. library support, kernel threads and hardware watchpoints for 11.00,
  5185. support for HP's ANSI C and C++ compilers, and a compatibility mode
  5186. for xdb and dbx commands.
  5187. * Catchpoints
  5188. HP's donation includes the new concept of catchpoints, which is a
  5189. generalization of the old catch command. On HP-UX, it is now possible
  5190. to catch exec, fork, and vfork, as well as library loading.
  5191. This means that the existing catch command has changed; its first
  5192. argument now specifies the type of catch to be set up. See the
  5193. output of "help catch" for a list of catchpoint types.
  5194. * Debugging across forks
  5195. On HP-UX, you can choose which process to debug when a fork() happens
  5196. in the inferior.
  5197. * TUI
  5198. HP has donated a curses-based terminal user interface (TUI). To get
  5199. it, build with --enable-tui. Although this can be enabled for any
  5200. configuration, at present it only works for native HP debugging.
  5201. * GDB remote protocol additions
  5202. A new protocol packet 'X' that writes binary data is now available.
  5203. Default behavior is to try 'X', then drop back to 'M' if the stub
  5204. fails to respond. The settable variable `remotebinarydownload'
  5205. allows explicit control over the use of 'X'.
  5206. For 64-bit targets, the memory packets ('M' and 'm') can now contain a
  5207. full 64-bit address. The command
  5208. set remoteaddresssize 32
  5209. can be used to revert to the old behaviour. For existing remote stubs
  5210. the change should not be noticed, as the additional address information
  5211. will be discarded.
  5212. In order to assist in debugging stubs, you may use the maintenance
  5213. command `packet' to send any text string to the stub. For instance,
  5214. maint packet heythere
  5215. sends the packet "$heythere#<checksum>". Note that it is very easy to
  5216. disrupt a debugging session by sending the wrong packet at the wrong
  5217. time.
  5218. The compare-sections command allows you to compare section data on the
  5219. target to what is in the executable file without uploading or
  5220. downloading, by comparing CRC checksums.
  5221. * Tracing can collect general expressions
  5222. You may now collect general expressions at tracepoints. This requires
  5223. further additions to the target-side stub; see tracepoint.c and
  5224. doc/agentexpr.texi for further details.
  5225. * mask-address variable for Mips
  5226. For Mips targets, you may control the zeroing of the upper 32 bits of
  5227. a 64-bit address by entering `set mask-address on'. This is mainly
  5228. of interest to users of embedded R4xxx and R5xxx processors.
  5229. * Higher serial baud rates
  5230. GDB's serial code now allows you to specify baud rates 57600, 115200,
  5231. 230400, and 460800 baud. (Note that your host system may not be able
  5232. to achieve all of these rates.)
  5233. * i960 simulator
  5234. The i960 configuration now includes an initial implementation of a
  5235. builtin simulator, contributed by Jim Wilson.
  5236. *** Changes in GDB-4.17:
  5237. * New native configurations
  5238. Alpha GNU/Linux alpha*-*-linux*
  5239. Unixware 2.x i[3456]86-unixware2*
  5240. Irix 6.x mips*-sgi-irix6*
  5241. PowerPC GNU/Linux powerpc-*-linux*
  5242. PowerPC Solaris powerpcle-*-solaris*
  5243. Sparc GNU/Linux sparc-*-linux*
  5244. Motorola sysV68 R3V7.1 m68k-motorola-sysv
  5245. * New targets
  5246. Argonaut Risc Chip (ARC) arc-*-*
  5247. Hitachi H8/300S h8300*-*-*
  5248. Matsushita MN10200 w/simulator mn10200-*-*
  5249. Matsushita MN10300 w/simulator mn10300-*-*
  5250. MIPS NEC VR4100 mips64*vr4100*{,el}-*-elf*
  5251. MIPS NEC VR5000 mips64*vr5000*{,el}-*-elf*
  5252. MIPS Toshiba TX39 mips64*tx39*{,el}-*-elf*
  5253. Mitsubishi D10V w/simulator d10v-*-*
  5254. Mitsubishi M32R/D w/simulator m32r-*-elf*
  5255. Tsqware Sparclet sparclet-*-*
  5256. NEC V850 w/simulator v850-*-*
  5257. * New debugging protocols
  5258. ARM with RDI protocol arm*-*-*
  5259. M68K with dBUG monitor m68*-*-{aout,coff,elf}
  5260. DDB and LSI variants of PMON protocol mips*-*-*
  5261. PowerPC with DINK32 monitor powerpc{,le}-*-eabi
  5262. PowerPC with SDS protocol powerpc{,le}-*-eabi
  5263. Macraigor OCD (Wiggler) devices powerpc{,le}-*-eabi
  5264. * DWARF 2
  5265. All configurations can now understand and use the DWARF 2 debugging
  5266. format. The choice is automatic, if the symbol file contains DWARF 2
  5267. information.
  5268. * Java frontend
  5269. GDB now includes basic Java language support. This support is
  5270. only useful with Java compilers that produce native machine code.
  5271. * solib-absolute-prefix and solib-search-path
  5272. For SunOS and SVR4 shared libraries, you may now set the prefix for
  5273. loading absolute shared library symbol files, and the search path for
  5274. locating non-absolute shared library symbol files.
  5275. * Live range splitting
  5276. GDB can now effectively debug code for which GCC has performed live
  5277. range splitting as part of its optimization. See gdb/doc/LRS for
  5278. more details on the expected format of the stabs information.
  5279. * Hurd support
  5280. GDB's support for the GNU Hurd, including thread debugging, has been
  5281. updated to work with current versions of the Hurd.
  5282. * ARM Thumb support
  5283. GDB's ARM target configuration now handles the ARM7T (Thumb) 16-bit
  5284. instruction set. ARM GDB automatically detects when Thumb
  5285. instructions are in use, and adjusts disassembly and backtracing
  5286. accordingly.
  5287. * MIPS16 support
  5288. GDB's MIPS target configurations now handle the MIP16 16-bit
  5289. instruction set.
  5290. * Overlay support
  5291. GDB now includes support for overlays; if an executable has been
  5292. linked such that multiple sections are based at the same address, GDB
  5293. will decide which section to use for symbolic info. You can choose to
  5294. control the decision manually, using overlay commands, or implement
  5295. additional target-side support and use "overlay load-target" to bring
  5296. in the overlay mapping. Do "help overlay" for more detail.
  5297. * info symbol
  5298. The command "info symbol <address>" displays information about
  5299. the symbol at the specified address.
  5300. * Trace support
  5301. The standard remote protocol now includes an extension that allows
  5302. asynchronous collection and display of trace data. This requires
  5303. extensive support in the target-side debugging stub. Tracing mode
  5304. includes a new interaction mode in GDB and new commands: see the
  5305. file tracepoint.c for more details.
  5306. * MIPS simulator
  5307. Configurations for embedded MIPS now include a simulator contributed
  5308. by Cygnus Solutions. The simulator supports the instruction sets
  5309. of most MIPS variants.
  5310. * Sparc simulator
  5311. Sparc configurations may now include the ERC32 simulator contributed
  5312. by the European Space Agency. The simulator is not built into
  5313. Sparc targets by default; configure with --enable-sim to include it.
  5314. * set architecture
  5315. For target configurations that may include multiple variants of a
  5316. basic architecture (such as MIPS and SH), you may now set the
  5317. architecture explicitly. "set arch" sets, "info arch" lists
  5318. the possible architectures.
  5319. *** Changes in GDB-4.16:
  5320. * New native configurations
  5321. Windows 95, x86 Windows NT i[345]86-*-cygwin32
  5322. M68K NetBSD m68k-*-netbsd*
  5323. PowerPC AIX 4.x powerpc-*-aix*
  5324. PowerPC MacOS powerpc-*-macos*
  5325. PowerPC Windows NT powerpcle-*-cygwin32
  5326. RS/6000 AIX 4.x rs6000-*-aix4*
  5327. * New targets
  5328. ARM with RDP protocol arm-*-*
  5329. I960 with MON960 i960-*-coff
  5330. MIPS VxWorks mips*-*-vxworks*
  5331. MIPS VR4300 with PMON mips64*vr4300{,el}-*-elf*
  5332. PowerPC with PPCBUG monitor powerpc{,le}-*-eabi*
  5333. Hitachi SH3 sh-*-*
  5334. Matra Sparclet sparclet-*-*
  5335. * PowerPC simulator
  5336. The powerpc-eabi configuration now includes the PSIM simulator,
  5337. contributed by Andrew Cagney, with assistance from Mike Meissner.
  5338. PSIM is a very elaborate model of the PowerPC, including not only
  5339. basic instruction set execution, but also details of execution unit
  5340. performance and I/O hardware. See sim/ppc/README for more details.
  5341. * Solaris 2.5
  5342. GDB now works with Solaris 2.5.
  5343. * Windows 95/NT native
  5344. GDB will now work as a native debugger on Windows 95 and Windows NT.
  5345. To build it from source, you must use the "gnu-win32" environment,
  5346. which uses a DLL to emulate enough of Unix to run the GNU tools.
  5347. Further information, binaries, and sources are available at
  5348. ftp.cygnus.com, under pub/gnu-win32.
  5349. * dont-repeat command
  5350. If a user-defined command includes the command `dont-repeat', then the
  5351. command will not be repeated if the user just types return. This is
  5352. useful if the command is time-consuming to run, so that accidental
  5353. extra keystrokes don't run the same command many times.
  5354. * Send break instead of ^C
  5355. The standard remote protocol now includes an option to send a break
  5356. rather than a ^C to the target in order to interrupt it. By default,
  5357. GDB will send ^C; to send a break, set the variable `remotebreak' to 1.
  5358. * Remote protocol timeout
  5359. The standard remote protocol includes a new variable `remotetimeout'
  5360. that allows you to set the number of seconds before GDB gives up trying
  5361. to read from the target. The default value is 2.
  5362. * Automatic tracking of dynamic object loading (HPUX and Solaris only)
  5363. By default GDB will automatically keep track of objects as they are
  5364. loaded and unloaded by the dynamic linker. By using the command `set
  5365. stop-on-solib-events 1' you can arrange for GDB to stop the inferior
  5366. when shared library events occur, thus allowing you to set breakpoints
  5367. in shared libraries which are explicitly loaded by the inferior.
  5368. Note this feature does not work on hpux8. On hpux9 you must link
  5369. /usr/lib/end.o into your program. This feature should work
  5370. automatically on hpux10.
  5371. * Irix 5.x hardware watchpoint support
  5372. Irix 5 configurations now support the use of hardware watchpoints.
  5373. * Mips protocol "SYN garbage limit"
  5374. When debugging a Mips target using the `target mips' protocol, you
  5375. may set the number of characters that GDB will ignore by setting
  5376. the `syn-garbage-limit'. A value of -1 means that GDB will ignore
  5377. every character. The default value is 1050.
  5378. * Recording and replaying remote debug sessions
  5379. If you set `remotelogfile' to the name of a file, gdb will write to it
  5380. a recording of a remote debug session. This recording may then be
  5381. replayed back to gdb using "gdbreplay". See gdbserver/README for
  5382. details. This is useful when you have a problem with GDB while doing
  5383. remote debugging; you can make a recording of the session and send it
  5384. to someone else, who can then recreate the problem.
  5385. * Speedups for remote debugging
  5386. GDB includes speedups for downloading and stepping MIPS systems using
  5387. the IDT monitor, fast downloads to the Hitachi SH E7000 emulator,
  5388. and more efficient S-record downloading.
  5389. * Memory use reductions and statistics collection
  5390. GDB now uses less memory and reports statistics about memory usage.
  5391. Try the `maint print statistics' command, for example.
  5392. *** Changes in GDB-4.15:
  5393. * Psymtabs for XCOFF
  5394. The symbol reader for AIX GDB now uses partial symbol tables. This
  5395. can greatly improve startup time, especially for large executables.
  5396. * Remote targets use caching
  5397. Remote targets now use a data cache to speed up communication with the
  5398. remote side. The data cache could lead to incorrect results because
  5399. it doesn't know about volatile variables, thus making it impossible to
  5400. debug targets which use memory mapped I/O devices. `set remotecache
  5401. off' turns the data cache off.
  5402. * Remote targets may have threads
  5403. The standard remote protocol now includes support for multiple threads
  5404. in the target system, using new protocol commands 'H' and 'T'. See
  5405. gdb/remote.c for details.
  5406. * NetROM support
  5407. If GDB is configured with `--enable-netrom', then it will include
  5408. support for the NetROM ROM emulator from XLNT Designs. The NetROM
  5409. acts as though it is a bank of ROM on the target board, but you can
  5410. write into it over the network. GDB's support consists only of
  5411. support for fast loading into the emulated ROM; to debug, you must use
  5412. another protocol, such as standard remote protocol. The usual
  5413. sequence is something like
  5414. target nrom <netrom-hostname>
  5415. load <prog>
  5416. target remote <netrom-hostname>:1235
  5417. * Macintosh host
  5418. GDB now includes support for the Apple Macintosh, as a host only. It
  5419. may be run as either an MPW tool or as a standalone application, and
  5420. it can debug through the serial port. All the usual GDB commands are
  5421. available, but to the target command, you must supply "serial" as the
  5422. device type instead of "/dev/ttyXX". See mpw-README in the main
  5423. directory for more information on how to build. The MPW configuration
  5424. scripts */mpw-config.in support only a few targets, and only the
  5425. mips-idt-ecoff target has been tested.
  5426. * Autoconf
  5427. GDB configuration now uses autoconf. This is not user-visible,
  5428. but does simplify configuration and building.
  5429. * hpux10
  5430. GDB now supports hpux10.
  5431. *** Changes in GDB-4.14:
  5432. * New native configurations
  5433. x86 FreeBSD i[345]86-*-freebsd
  5434. x86 NetBSD i[345]86-*-netbsd
  5435. NS32k NetBSD ns32k-*-netbsd
  5436. Sparc NetBSD sparc-*-netbsd
  5437. * New targets
  5438. A29K VxWorks a29k-*-vxworks
  5439. HP PA PRO embedded (WinBond W89K & Oki OP50N) hppa*-*-pro*
  5440. CPU32 EST-300 emulator m68*-*-est*
  5441. PowerPC ELF powerpc-*-elf
  5442. WDC 65816 w65-*-*
  5443. * Alpha OSF/1 support for procfs
  5444. GDB now supports procfs under OSF/1-2.x and higher, which makes it
  5445. possible to attach to running processes. As the mounting of the /proc
  5446. filesystem is optional on the Alpha, GDB automatically determines
  5447. the availability of /proc during startup. This can lead to problems
  5448. if /proc is unmounted after GDB has been started.
  5449. * Arguments to user-defined commands
  5450. User commands may accept up to 10 arguments separated by whitespace.
  5451. Arguments are accessed within the user command via $arg0..$arg9. A
  5452. trivial example:
  5453. define adder
  5454. print $arg0 + $arg1 + $arg2
  5455. To execute the command use:
  5456. adder 1 2 3
  5457. Defines the command "adder" which prints the sum of its three arguments.
  5458. Note the arguments are text substitutions, so they may reference variables,
  5459. use complex expressions, or even perform inferior function calls.
  5460. * New `if' and `while' commands
  5461. This makes it possible to write more sophisticated user-defined
  5462. commands. Both commands take a single argument, which is the
  5463. expression to evaluate, and must be followed by the commands to
  5464. execute, one per line, if the expression is nonzero, the list being
  5465. terminated by the word `end'. The `if' command list may include an
  5466. `else' word, which causes the following commands to be executed only
  5467. if the expression is zero.
  5468. * Fortran source language mode
  5469. GDB now includes partial support for Fortran 77. It will recognize
  5470. Fortran programs and can evaluate a subset of Fortran expressions, but
  5471. variables and functions may not be handled correctly. GDB will work
  5472. with G77, but does not yet know much about symbols emitted by other
  5473. Fortran compilers.
  5474. * Better HPUX support
  5475. Most debugging facilities now work on dynamic executables for HPPAs
  5476. running hpux9 or later. You can attach to running dynamically linked
  5477. processes, but by default the dynamic libraries will be read-only, so
  5478. for instance you won't be able to put breakpoints in them. To change
  5479. that behavior do the following before running the program:
  5480. adb -w a.out
  5481. __dld_flags?W 0x5
  5482. control-d
  5483. This will cause the libraries to be mapped private and read-write.
  5484. To revert to the normal behavior, do this:
  5485. adb -w a.out
  5486. __dld_flags?W 0x4
  5487. control-d
  5488. You cannot set breakpoints or examine data in the library until after
  5489. the library is loaded if the function/data symbols do not have
  5490. external linkage.
  5491. GDB can now also read debug symbols produced by the HP C compiler on
  5492. HPPAs (sorry, no C++, Fortran or 68k support).
  5493. * Target byte order now dynamically selectable
  5494. You can choose which byte order to use with a target system, via the
  5495. commands "set endian big" and "set endian little", and you can see the
  5496. current setting by using "show endian". You can also give the command
  5497. "set endian auto", in which case GDB will use the byte order
  5498. associated with the executable. Currently, only embedded MIPS
  5499. configurations support dynamic selection of target byte order.
  5500. * New DOS host serial code
  5501. This version uses DPMI interrupts to handle buffered I/O, so you
  5502. no longer need to run asynctsr when debugging boards connected to
  5503. a PC's serial port.
  5504. *** Changes in GDB-4.13:
  5505. * New "complete" command
  5506. This lists all the possible completions for the rest of the line, if it
  5507. were to be given as a command itself. This is intended for use by emacs.
  5508. * Trailing space optional in prompt
  5509. "set prompt" no longer adds a space for you after the prompt you set. This
  5510. allows you to set a prompt which ends in a space or one that does not.
  5511. * Breakpoint hit counts
  5512. "info break" now displays a count of the number of times the breakpoint
  5513. has been hit. This is especially useful in conjunction with "ignore"; you
  5514. can ignore a large number of breakpoint hits, look at the breakpoint info
  5515. to see how many times the breakpoint was hit, then run again, ignoring one
  5516. less than that number, and this will get you quickly to the last hit of
  5517. that breakpoint.
  5518. * Ability to stop printing at NULL character
  5519. "set print null-stop" will cause GDB to stop printing the characters of
  5520. an array when the first NULL is encountered. This is useful when large
  5521. arrays actually contain only short strings.
  5522. * Shared library breakpoints
  5523. In SunOS 4.x, SVR4, and Alpha OSF/1 configurations, you can now set
  5524. breakpoints in shared libraries before the executable is run.
  5525. * Hardware watchpoints
  5526. There is a new hardware breakpoint for the watch command for sparclite
  5527. targets. See gdb/sparclite/hw_breakpoint.note.
  5528. Hardware watchpoints are also now supported under GNU/Linux.
  5529. * Annotations
  5530. Annotations have been added. These are for use with graphical interfaces,
  5531. and are still experimental. Currently only gdba.el uses these.
  5532. * Improved Irix 5 support
  5533. GDB now works properly with Irix 5.2.
  5534. * Improved HPPA support
  5535. GDB now works properly with the latest GCC and GAS.
  5536. * New native configurations
  5537. Sequent PTX4 i[34]86-sequent-ptx4
  5538. HPPA running OSF/1 hppa*-*-osf*
  5539. Atari TT running SVR4 m68*-*-sysv4*
  5540. RS/6000 LynxOS rs6000-*-lynxos*
  5541. * New targets
  5542. OS/9000 i[34]86-*-os9k
  5543. MIPS R4000 mips64*{,el}-*-{ecoff,elf}
  5544. Sparc64 sparc64-*-*
  5545. * Hitachi SH7000 and E7000-PC ICE support
  5546. There is now support for communicating with the Hitachi E7000-PC ICE.
  5547. This is available automatically when GDB is configured for the SH.
  5548. * Fixes
  5549. As usual, a variety of small fixes and improvements, both generic
  5550. and configuration-specific. See the ChangeLog for more detail.
  5551. *** Changes in GDB-4.12:
  5552. * Irix 5 is now supported
  5553. * HPPA support
  5554. GDB-4.12 on the HPPA has a number of changes which make it unable
  5555. to debug the output from the currently released versions of GCC and
  5556. GAS (GCC 2.5.8 and GAS-2.2 or PAGAS-1.36). Until the next major release
  5557. of GCC and GAS, versions of these tools designed to work with GDB-4.12
  5558. can be retrieved via anonymous ftp from jaguar.cs.utah.edu:/dist.
  5559. *** Changes in GDB-4.11:
  5560. * User visible changes:
  5561. * Remote Debugging
  5562. The "set remotedebug" option is now consistent between the mips remote
  5563. target, remote targets using the gdb-specific protocol, UDI (AMD's
  5564. debug protocol for the 29k) and the 88k bug monitor. It is now an
  5565. integer specifying a debug level (normally 0 or 1, but 2 means more
  5566. debugging info for the mips target).
  5567. * DEC Alpha native support
  5568. GDB now works on the DEC Alpha. GCC 2.4.5 does not produce usable
  5569. debug info, but GDB works fairly well with the DEC compiler and should
  5570. work with a future GCC release. See the README file for a few
  5571. Alpha-specific notes.
  5572. * Preliminary thread implementation
  5573. GDB now has preliminary thread support for both SGI/Irix and LynxOS.
  5574. * LynxOS native and target support for 386
  5575. This release has been hosted on LynxOS 2.2, and also can be configured
  5576. to remotely debug programs running under LynxOS (see gdb/gdbserver/README
  5577. for details).
  5578. * Improvements in C++ mangling/demangling.
  5579. This release has much better g++ debugging, specifically in name
  5580. mangling/demangling, virtual function calls, print virtual table,
  5581. call methods, ...etc.
  5582. *** Changes in GDB-4.10:
  5583. * User visible changes:
  5584. Remote debugging using the GDB-specific (`target remote') protocol now
  5585. supports the `load' command. This is only useful if you have some
  5586. other way of getting the stub to the target system, and you can put it
  5587. somewhere in memory where it won't get clobbered by the download.
  5588. Filename completion now works.
  5589. When run under emacs mode, the "info line" command now causes the
  5590. arrow to point to the line specified. Also, "info line" prints
  5591. addresses in symbolic form (as well as hex).
  5592. All vxworks based targets now support a user settable option, called
  5593. vxworks-timeout. This option represents the number of seconds gdb
  5594. should wait for responses to rpc's. You might want to use this if
  5595. your vxworks target is, perhaps, a slow software simulator or happens
  5596. to be on the far side of a thin network line.
  5597. * DEC alpha support
  5598. This release contains support for using a DEC alpha as a GDB host for
  5599. cross debugging. Native alpha debugging is not supported yet.
  5600. *** Changes in GDB-4.9:
  5601. * Testsuite
  5602. This is the first GDB release which is accompanied by a matching testsuite.
  5603. The testsuite requires installation of dejagnu, which should be available
  5604. via ftp from most sites that carry GNU software.
  5605. * C++ demangling
  5606. 'Cfront' style demangling has had its name changed to 'ARM' style, to
  5607. emphasize that it was written from the specifications in the C++ Annotated
  5608. Reference Manual, not necessarily to be compatible with AT&T cfront. Despite
  5609. disclaimers, it still generated too much confusion with users attempting to
  5610. use gdb with AT&T cfront.
  5611. * Simulators
  5612. GDB now uses a standard remote interface to a simulator library.
  5613. So far, the library contains simulators for the Zilog Z8001/2, the
  5614. Hitachi H8/300, H8/500 and Super-H.
  5615. * New targets supported
  5616. H8/300 simulator h8300-hitachi-hms or h8300hms
  5617. H8/500 simulator h8500-hitachi-hms or h8500hms
  5618. SH simulator sh-hitachi-hms or sh
  5619. Z8000 simulator z8k-zilog-none or z8ksim
  5620. IDT MIPS board over serial line mips-idt-ecoff
  5621. Cross-debugging to GO32 targets is supported. It requires a custom
  5622. version of the i386-stub.c module which is integrated with the
  5623. GO32 memory extender.
  5624. * New remote protocols
  5625. MIPS remote debugging protocol.
  5626. * New source languages supported
  5627. This version includes preliminary support for Chill, a Pascal like language
  5628. used by telecommunications companies. Chill support is also being integrated
  5629. into the GNU compiler, but we don't know when it will be publically available.
  5630. *** Changes in GDB-4.8:
  5631. * HP Precision Architecture supported
  5632. GDB now supports HP PA-RISC machines running HPUX. A preliminary
  5633. version of this support was available as a set of patches from the
  5634. University of Utah. GDB does not support debugging of programs
  5635. compiled with the HP compiler, because HP will not document their file
  5636. format. Instead, you must use GCC (version 2.3.2 or later) and PA-GAS
  5637. (as available from jaguar.cs.utah.edu:/dist/pa-gas.u4.tar.Z).
  5638. Many problems in the preliminary version have been fixed.
  5639. * Faster and better demangling
  5640. We have improved template demangling and fixed numerous bugs in the GNU style
  5641. demangler. It can now handle type modifiers such as `static' or `const'. Wide
  5642. character types (wchar_t) are now supported. Demangling of each symbol is now
  5643. only done once, and is cached when the symbol table for a file is read in.
  5644. This results in a small increase in memory usage for C programs, a moderate
  5645. increase in memory usage for C++ programs, and a fantastic speedup in
  5646. symbol lookups.
  5647. `Cfront' style demangling still doesn't work with AT&T cfront. It was written
  5648. from the specifications in the Annotated Reference Manual, which AT&T's
  5649. compiler does not actually implement.
  5650. * G++ multiple inheritance compiler problem
  5651. In the 2.3.2 release of gcc/g++, how the compiler resolves multiple
  5652. inheritance lattices was reworked to properly discover ambiguities. We
  5653. recently found an example which causes this new algorithm to fail in a
  5654. very subtle way, producing bad debug information for those classes.
  5655. The file 'gcc.patch' (in this directory) can be applied to gcc to
  5656. circumvent the problem. A future GCC release will contain a complete
  5657. fix.
  5658. The previous G++ debug info problem (mentioned below for the gdb-4.7
  5659. release) is fixed in gcc version 2.3.2.
  5660. * Improved configure script
  5661. The `configure' script will now attempt to guess your system type if
  5662. you don't supply a host system type. The old scheme of supplying a
  5663. host system triplet is preferable over using this. All the magic is
  5664. done in the new `config.guess' script. Examine it for details.
  5665. We have also brought our configure script much more in line with the FSF's
  5666. version. It now supports the --with-xxx options. In particular,
  5667. `--with-minimal-bfd' can be used to make the GDB binary image smaller.
  5668. The resulting GDB will not be able to read arbitrary object file formats --
  5669. only the format ``expected'' to be used on the configured target system.
  5670. We hope to make this the default in a future release.
  5671. * Documentation improvements
  5672. There's new internal documentation on how to modify GDB, and how to
  5673. produce clean changes to the code. We implore people to read it
  5674. before submitting changes.
  5675. The GDB manual uses new, sexy Texinfo conditionals, rather than arcane
  5676. M4 macros. The new texinfo.tex is provided in this release. Pre-built
  5677. `info' files are also provided. To build `info' files from scratch,
  5678. you will need the latest `makeinfo' release, which will be available in
  5679. a future texinfo-X.Y release.
  5680. *NOTE* The new texinfo.tex can cause old versions of TeX to hang.
  5681. We're not sure exactly which versions have this problem, but it has
  5682. been seen in 3.0. We highly recommend upgrading to TeX version 3.141
  5683. or better. If that isn't possible, there is a patch in
  5684. `texinfo/tex3patch' that will modify `texinfo/texinfo.tex' to work
  5685. around this problem.
  5686. * New features
  5687. GDB now supports array constants that can be used in expressions typed in by
  5688. the user. The syntax is `{element, element, ...}'. Ie: you can now type
  5689. `print {1, 2, 3}', and it will build up an array in memory malloc'd in
  5690. the target program.
  5691. The new directory `gdb/sparclite' contains a program that demonstrates
  5692. how the sparc-stub.c remote stub runs on a Fujitsu SPARClite processor.
  5693. * New native hosts supported
  5694. HP/PA-RISC under HPUX using GNU tools hppa1.1-hp-hpux
  5695. 386 CPUs running SCO Unix 3.2v4 i386-unknown-sco3.2v4
  5696. * New targets supported
  5697. AMD 29k family via UDI a29k-amd-udi or udi29k
  5698. * New file formats supported
  5699. BFD now supports reading HP/PA-RISC executables (SOM file format?),
  5700. HPUX core files, and SCO 3.2v2 core files.
  5701. * Major bug fixes
  5702. Attaching to processes now works again; thanks for the many bug reports.
  5703. We have also stomped on a bunch of core dumps caused by
  5704. printf_filtered("%s") problems.
  5705. We eliminated a copyright problem on the rpc and ptrace header files
  5706. for VxWorks, which was discovered at the last minute during the 4.7
  5707. release. You should now be able to build a VxWorks GDB.
  5708. You can now interrupt gdb while an attached process is running. This
  5709. will cause the attached process to stop, and give control back to GDB.
  5710. We fixed problems caused by using too many file descriptors
  5711. for reading symbols from object files and libraries. This was
  5712. especially a problem for programs that used many (~100) shared
  5713. libraries.
  5714. The `step' command now only enters a subroutine if there is line number
  5715. information for the subroutine. Otherwise it acts like the `next'
  5716. command. Previously, `step' would enter subroutines if there was
  5717. any debugging information about the routine. This avoids problems
  5718. when using `cc -g1' on MIPS machines.
  5719. * Internal improvements
  5720. GDB's internal interfaces have been improved to make it easier to support
  5721. debugging of multiple languages in the future.
  5722. GDB now uses a common structure for symbol information internally.
  5723. Minimal symbols (derived from linkage symbols in object files), partial
  5724. symbols (from a quick scan of debug information), and full symbols
  5725. contain a common subset of information, making it easier to write
  5726. shared code that handles any of them.
  5727. * New command line options
  5728. We now accept --silent as an alias for --quiet.
  5729. * Mmalloc licensing
  5730. The memory-mapped-malloc library is now licensed under the GNU Library
  5731. General Public License.
  5732. *** Changes in GDB-4.7:
  5733. * Host/native/target split
  5734. GDB has had some major internal surgery to untangle the support for
  5735. hosts and remote targets. Now, when you configure GDB for a remote
  5736. target, it will no longer load in all of the support for debugging
  5737. local programs on the host. When fully completed and tested, this will
  5738. ensure that arbitrary host/target combinations are possible.
  5739. The primary conceptual shift is to separate the non-portable code in
  5740. GDB into three categories. Host specific code is required any time GDB
  5741. is compiled on that host, regardless of the target. Target specific
  5742. code relates to the peculiarities of the target, but can be compiled on
  5743. any host. Native specific code is everything else: it can only be
  5744. built when the host and target are the same system. Child process
  5745. handling and core file support are two common `native' examples.
  5746. GDB's use of /proc for controlling Unix child processes is now cleaner.
  5747. It has been split out into a single module under the `target_ops' vector,
  5748. plus two native-dependent functions for each system that uses /proc.
  5749. * New hosts supported
  5750. HP/Apollo 68k (under the BSD domain) m68k-apollo-bsd or apollo68bsd
  5751. 386 CPUs running various BSD ports i386-unknown-bsd or 386bsd
  5752. 386 CPUs running SCO Unix i386-unknown-scosysv322 or i386sco
  5753. * New targets supported
  5754. Fujitsu SPARClite sparclite-fujitsu-none or sparclite
  5755. 68030 and CPU32 m68030-*-*, m68332-*-*
  5756. * New native hosts supported
  5757. 386 CPUs running various BSD ports i386-unknown-bsd or 386bsd
  5758. (386bsd is not well tested yet)
  5759. 386 CPUs running SCO Unix i386-unknown-scosysv322 or sco
  5760. * New file formats supported
  5761. BFD now supports COFF files for the Zilog Z8000 microprocessor. It
  5762. supports reading of `a.out.adobe' object files, which are an a.out
  5763. format extended with minimal information about multiple sections.
  5764. * New commands
  5765. `show copying' is the same as the old `info copying'.
  5766. `show warranty' is the same as `info warrantee'.
  5767. These were renamed for consistency. The old commands continue to work.
  5768. `info handle' is a new alias for `info signals'.
  5769. You can now define pre-command hooks, which attach arbitrary command
  5770. scripts to any command. The commands in the hook will be executed
  5771. prior to the user's command. You can also create a hook which will be
  5772. executed whenever the program stops. See gdb.texinfo.
  5773. * C++ improvements
  5774. We now deal with Cfront style name mangling, and can even extract type
  5775. info from mangled symbols. GDB can automatically figure out which
  5776. symbol mangling style your C++ compiler uses.
  5777. Calling of methods and virtual functions has been improved as well.
  5778. * Major bug fixes
  5779. The crash that occurred when debugging Sun Ansi-C compiled binaries is
  5780. fixed. This was due to mishandling of the extra N_SO stabs output
  5781. by the compiler.
  5782. We also finally got Ultrix 4.2 running in house, and fixed core file
  5783. support, with help from a dozen people on the net.
  5784. John M. Farrell discovered that the reason that single-stepping was so
  5785. slow on all of the Mips based platforms (primarily SGI and DEC) was
  5786. that we were trying to demangle and lookup a symbol used for internal
  5787. purposes on every instruction that was being stepped through. Changing
  5788. the name of that symbol so that it couldn't be mistaken for a C++
  5789. mangled symbol sped things up a great deal.
  5790. Rich Pixley sped up symbol lookups in general by getting much smarter
  5791. about when C++ symbol mangling is necessary. This should make symbol
  5792. completion (TAB on the command line) much faster. It's not as fast as
  5793. we'd like, but it's significantly faster than gdb-4.6.
  5794. * AMD 29k support
  5795. A new user controllable variable 'call_scratch_address' can
  5796. specify the location of a scratch area to be used when GDB
  5797. calls a function in the target. This is necessary because the
  5798. usual method of putting the scratch area on the stack does not work
  5799. in systems that have separate instruction and data spaces.
  5800. We integrated changes to support the 29k UDI (Universal Debugger
  5801. Interface), but discovered at the last minute that we didn't have all
  5802. of the appropriate copyright paperwork. We are working with AMD to
  5803. resolve this, and hope to have it available soon.
  5804. * Remote interfaces
  5805. We have sped up the remote serial line protocol, especially for targets
  5806. with lots of registers. It now supports a new `expedited status' ('T')
  5807. message which can be used in place of the existing 'S' status message.
  5808. This allows the remote stub to send only the registers that GDB
  5809. needs to make a quick decision about single-stepping or conditional
  5810. breakpoints, eliminating the need to fetch the entire register set for
  5811. each instruction being stepped through.
  5812. The GDB remote serial protocol now implements a write-through cache for
  5813. registers, only re-reading the registers if the target has run.
  5814. There is also a new remote serial stub for SPARC processors. You can
  5815. find it in gdb-4.7/gdb/sparc-stub.c. This was written to support the
  5816. Fujitsu SPARClite processor, but will run on any stand-alone SPARC
  5817. processor with a serial port.
  5818. * Configuration
  5819. Configure.in files have become much easier to read and modify. A new
  5820. `table driven' format makes it more obvious what configurations are
  5821. supported, and what files each one uses.
  5822. * Library changes
  5823. There is a new opcodes library which will eventually contain all of the
  5824. disassembly routines and opcode tables. At present, it only contains
  5825. Sparc and Z8000 routines. This will allow the assembler, debugger, and
  5826. disassembler (binutils/objdump) to share these routines.
  5827. The libiberty library is now copylefted under the GNU Library General
  5828. Public License. This allows more liberal use, and was done so libg++
  5829. can use it. This makes no difference to GDB, since the Library License
  5830. grants all the rights from the General Public License.
  5831. * Documentation
  5832. The file gdb-4.7/gdb/doc/stabs.texinfo is a (relatively) complete
  5833. reference to the stabs symbol info used by the debugger. It is (as far
  5834. as we know) the only published document on this fascinating topic. We
  5835. encourage you to read it, compare it to the stabs information on your
  5836. system, and send improvements on the document in general (to
  5837. bug-gdb@prep.ai.mit.edu).
  5838. And, of course, many bugs have been fixed.
  5839. *** Changes in GDB-4.6:
  5840. * Better support for C++ function names
  5841. GDB now accepts as input the "demangled form" of C++ overloaded function
  5842. names and member function names, and can do command completion on such names
  5843. (using TAB, TAB-TAB, and ESC-?). The names have to be quoted with a pair of
  5844. single quotes. Examples are 'func (int, long)' and 'obj::operator==(obj&)'.
  5845. Make use of command completion, it is your friend.
  5846. GDB also now accepts a variety of C++ mangled symbol formats. They are
  5847. the GNU g++ style, the Cfront (ARM) style, and the Lucid (lcc) style.
  5848. You can tell GDB which format to use by doing a 'set demangle-style {gnu,
  5849. lucid, cfront, auto}'. 'gnu' is the default. Do a 'set demangle-style foo'
  5850. for the list of formats.
  5851. * G++ symbol mangling problem
  5852. Recent versions of gcc have a bug in how they emit debugging information for
  5853. C++ methods (when using dbx-style stabs). The file 'gcc.patch' (in this
  5854. directory) can be applied to gcc to fix the problem. Alternatively, if you
  5855. can't fix gcc, you can #define GCC_MANGLE_BUG when compiling gdb/symtab.c. The
  5856. usual symptom is difficulty with setting breakpoints on methods. GDB complains
  5857. about the method being non-existent. (We believe that version 2.2.2 of GCC has
  5858. this problem.)
  5859. * New 'maintenance' command
  5860. All of the commands related to hacking GDB internals have been moved out of
  5861. the main command set, and now live behind the 'maintenance' command. This
  5862. can also be abbreviated as 'mt'. The following changes were made:
  5863. dump-me -> maintenance dump-me
  5864. info all-breakpoints -> maintenance info breakpoints
  5865. printmsyms -> maintenance print msyms
  5866. printobjfiles -> maintenance print objfiles
  5867. printpsyms -> maintenance print psymbols
  5868. printsyms -> maintenance print symbols
  5869. The following commands are new:
  5870. maintenance demangle Call internal GDB demangler routine to
  5871. demangle a C++ link name and prints the result.
  5872. maintenance print type Print a type chain for a given symbol
  5873. * Change to .gdbinit file processing
  5874. We now read the $HOME/.gdbinit file before processing the argv arguments
  5875. (e.g. reading symbol files or core files). This allows global parameters to
  5876. be set, which will apply during the symbol reading. The ./.gdbinit is still
  5877. read after argv processing.
  5878. * New hosts supported
  5879. Solaris-2.0 !!! sparc-sun-solaris2 or sun4sol2
  5880. GNU/Linux support i386-unknown-linux or linux
  5881. We are also including code to support the HP/PA running BSD and HPUX. This
  5882. is almost guaranteed not to work, as we didn't have time to test or build it
  5883. for this release. We are including it so that the more adventurous (or
  5884. masochistic) of you can play with it. We also had major problems with the
  5885. fact that the compiler that we got from HP doesn't support the -g option.
  5886. It costs extra.
  5887. * New targets supported
  5888. Hitachi H8/300 h8300-hitachi-hms or h8300hms
  5889. * More smarts about finding #include files
  5890. GDB now remembers the compilation directory for all include files, and for
  5891. all files from which C is generated (like yacc and lex sources). This
  5892. greatly improves GDB's ability to find yacc/lex sources, and include files,
  5893. especially if you are debugging your program from a directory different from
  5894. the one that contains your sources.
  5895. We also fixed a bug which caused difficulty with listing and setting
  5896. breakpoints in include files which contain C code. (In the past, you had to
  5897. try twice in order to list an include file that you hadn't looked at before.)
  5898. * Interesting infernals change
  5899. GDB now deals with arbitrary numbers of sections, where the symbols for each
  5900. section must be relocated relative to that section's landing place in the
  5901. target's address space. This work was needed to support ELF with embedded
  5902. stabs used by Solaris-2.0.
  5903. * Bug fixes (of course!)
  5904. There have been loads of fixes for the following things:
  5905. mips, rs6000, 29k/udi, m68k, g++, type handling, elf/dwarf, m88k,
  5906. i960, stabs, DOS(GO32), procfs, etc...
  5907. See the ChangeLog for details.
  5908. *** Changes in GDB-4.5:
  5909. * New machines supported (host and target)
  5910. IBM RS6000 running AIX rs6000-ibm-aix or rs6000
  5911. SGI Irix-4.x mips-sgi-irix4 or iris4
  5912. * New malloc package
  5913. GDB now uses a new memory manager called mmalloc, based on gmalloc.
  5914. Mmalloc is capable of handling multiple heaps of memory. It is also
  5915. capable of saving a heap to a file, and then mapping it back in later.
  5916. This can be used to greatly speedup the startup of GDB by using a
  5917. pre-parsed symbol table which lives in a mmalloc managed heap. For
  5918. more details, please read mmalloc/mmalloc.texi.
  5919. * info proc
  5920. The 'info proc' command (SVR4 only) has been enhanced quite a bit. See
  5921. 'help info proc' for details.
  5922. * MIPS ecoff symbol table format
  5923. The code that reads MIPS symbol table format is now supported on all hosts.
  5924. Thanks to MIPS for releasing the sym.h and symconst.h files to make this
  5925. possible.
  5926. * File name changes for MS-DOS
  5927. Many files in the config directories have been renamed to make it easier to
  5928. support GDB on MS-DOSe systems (which have very restrictive file name
  5929. conventions :-( ). MS-DOSe host support (under DJ Delorie's GO32
  5930. environment) is close to working but has some remaining problems. Note
  5931. that debugging of DOS programs is not supported, due to limitations
  5932. in the ``operating system'', but it can be used to host cross-debugging.
  5933. * Cross byte order fixes
  5934. Many fixes have been made to support cross debugging of Sparc and MIPS
  5935. targets from hosts whose byte order differs.
  5936. * New -mapped and -readnow options
  5937. If memory-mapped files are available on your system through the 'mmap'
  5938. system call, you can use the -mapped option on the `file' or
  5939. `symbol-file' commands to cause GDB to write the symbols from your
  5940. program into a reusable file. If the program you are debugging is
  5941. called `/path/fred', the mapped symbol file will be `./fred.syms'.
  5942. Future GDB debugging sessions will notice the presence of this file,
  5943. and will quickly map in symbol information from it, rather than reading
  5944. the symbol table from the executable program. Using the '-mapped'
  5945. option in a GDB `file' or `symbol-file' command has the same effect as
  5946. starting GDB with the '-mapped' command-line option.
  5947. You can cause GDB to read the entire symbol table immediately by using
  5948. the '-readnow' option with any of the commands that load symbol table
  5949. information (or on the GDB command line). This makes the command
  5950. slower, but makes future operations faster.
  5951. The -mapped and -readnow options are typically combined in order to
  5952. build a `fred.syms' file that contains complete symbol information.
  5953. A simple GDB invocation to do nothing but build a `.syms' file for future
  5954. use is:
  5955. gdb -batch -nx -mapped -readnow programname
  5956. The `.syms' file is specific to the host machine on which GDB is run.
  5957. It holds an exact image of GDB's internal symbol table. It cannot be
  5958. shared across multiple host platforms.
  5959. * longjmp() handling
  5960. GDB is now capable of stepping and nexting over longjmp(), _longjmp(), and
  5961. siglongjmp() without losing control. This feature has not yet been ported to
  5962. all systems. It currently works on many 386 platforms, all MIPS-based
  5963. platforms (SGI, DECstation, etc), and Sun3/4.
  5964. * Solaris 2.0
  5965. Preliminary work has been put in to support the new Solaris OS from Sun. At
  5966. this time, it can control and debug processes, but it is not capable of
  5967. reading symbols.
  5968. * Bug fixes
  5969. As always, many many bug fixes. The major areas were with g++, and mipsread.
  5970. People using the MIPS-based platforms should experience fewer mysterious
  5971. crashes and trashed symbol tables.
  5972. *** Changes in GDB-4.4:
  5973. * New machines supported (host and target)
  5974. SCO Unix on i386 IBM PC clones i386-sco-sysv or i386sco
  5975. (except core files)
  5976. BSD Reno on Vax vax-dec-bsd
  5977. Ultrix on Vax vax-dec-ultrix
  5978. * New machines supported (target)
  5979. AMD 29000 embedded, using EBMON a29k-none-none
  5980. * C++ support
  5981. GDB continues to improve its handling of C++. `References' work better.
  5982. The demangler has also been improved, and now deals with symbols mangled as
  5983. per the Annotated C++ Reference Guide.
  5984. GDB also now handles `stabs' symbol information embedded in MIPS
  5985. `ecoff' symbol tables. Since the ecoff format was not easily
  5986. extensible to handle new languages such as C++, this appeared to be a
  5987. good way to put C++ debugging info into MIPS binaries. This option
  5988. will be supported in the GNU C compiler, version 2, when it is
  5989. released.
  5990. * New features for SVR4
  5991. GDB now handles SVR4 shared libraries, in the same fashion as SunOS
  5992. shared libraries. Debugging dynamically linked programs should present
  5993. only minor differences from debugging statically linked programs.
  5994. The `info proc' command will print out information about any process
  5995. on an SVR4 system (including the one you are debugging). At the moment,
  5996. it prints the address mappings of the process.
  5997. If you bring up GDB on another SVR4 system, please send mail to
  5998. bug-gdb@prep.ai.mit.edu to let us know what changes were reqired (if any).
  5999. * Better dynamic linking support in SunOS
  6000. Reading symbols from shared libraries which contain debugging symbols
  6001. now works properly. However, there remain issues such as automatic
  6002. skipping of `transfer vector' code during function calls, which
  6003. make it harder to debug code in a shared library, than to debug the
  6004. same code linked statically.
  6005. * New Getopt
  6006. GDB is now using the latest `getopt' routines from the FSF. This
  6007. version accepts the -- prefix for options with long names. GDB will
  6008. continue to accept the old forms (-option and +option) as well.
  6009. Various single letter abbreviations for options have been explicity
  6010. added to the option table so that they won't get overshadowed in the
  6011. future by other options that begin with the same letter.
  6012. * Bugs fixed
  6013. The `cleanup_undefined_types' bug that many of you noticed has been squashed.
  6014. Many assorted bugs have been handled. Many more remain to be handled.
  6015. See the various ChangeLog files (primarily in gdb and bfd) for details.
  6016. *** Changes in GDB-4.3:
  6017. * New machines supported (host and target)
  6018. Amiga 3000 running Amix m68k-cbm-svr4 or amix
  6019. NCR 3000 386 running SVR4 i386-ncr-svr4 or ncr3000
  6020. Motorola Delta 88000 running Sys V m88k-motorola-sysv or delta88
  6021. * Almost SCO Unix support
  6022. We had hoped to support:
  6023. SCO Unix on i386 IBM PC clones i386-sco-sysv or i386sco
  6024. (except for core file support), but we discovered very late in the release
  6025. that it has problems with process groups that render gdb unusable. Sorry
  6026. about that. I encourage people to fix it and post the fixes.
  6027. * Preliminary ELF and DWARF support
  6028. GDB can read ELF object files on System V Release 4, and can handle
  6029. debugging records for C, in DWARF format, in ELF files. This support
  6030. is preliminary. If you bring up GDB on another SVR4 system, please
  6031. send mail to bug-gdb@prep.ai.mit.edu to let us know what changes were
  6032. reqired (if any).
  6033. * New Readline
  6034. GDB now uses the latest `readline' library. One user-visible change
  6035. is that two tabs will list possible command completions, which previously
  6036. required typing M-? (meta-question mark, or ESC ?).
  6037. * Bugs fixed
  6038. The `stepi' bug that many of you noticed has been squashed.
  6039. Many bugs in C++ have been handled. Many more remain to be handled.
  6040. See the various ChangeLog files (primarily in gdb and bfd) for details.
  6041. * State of the MIPS world (in case you wondered):
  6042. GDB can understand the symbol tables emitted by the compilers
  6043. supplied by most vendors of MIPS-based machines, including DEC. These
  6044. symbol tables are in a format that essentially nobody else uses.
  6045. Some versions of gcc come with an assembler post-processor called
  6046. mips-tfile. This program is required if you want to do source-level
  6047. debugging of gcc-compiled programs. I believe FSF does not ship
  6048. mips-tfile with gcc version 1, but it will eventually come with gcc
  6049. version 2.
  6050. Debugging of g++ output remains a problem. g++ version 1.xx does not
  6051. really support it at all. (If you're lucky, you should be able to get
  6052. line numbers and stack traces to work, but no parameters or local
  6053. variables.) With some work it should be possible to improve the
  6054. situation somewhat.
  6055. When gcc version 2 is released, you will have somewhat better luck.
  6056. However, even then you will get confusing results for inheritance and
  6057. methods.
  6058. We will eventually provide full debugging of g++ output on
  6059. DECstations. This will probably involve some kind of stabs-in-ecoff
  6060. encapulation, but the details have not been worked out yet.
  6061. *** Changes in GDB-4.2:
  6062. * Improved configuration
  6063. Only one copy of `configure' exists now, and it is not self-modifying.
  6064. Porting BFD is simpler.
  6065. * Stepping improved
  6066. The `step' and `next' commands now only stop at the first instruction
  6067. of a source line. This prevents the multiple stops that used to occur
  6068. in switch statements, for-loops, etc. `Step' continues to stop if a
  6069. function that has debugging information is called within the line.
  6070. * Bug fixing
  6071. Lots of small bugs fixed. More remain.
  6072. * New host supported (not target)
  6073. Intel 386 PC clone running Mach i386-none-mach
  6074. *** Changes in GDB-4.1:
  6075. * Multiple source language support
  6076. GDB now has internal scaffolding to handle several source languages.
  6077. It determines the type of each source file from its filename extension,
  6078. and will switch expression parsing and number formatting to match the
  6079. language of the function in the currently selected stack frame.
  6080. You can also specifically set the language to be used, with
  6081. `set language c' or `set language modula-2'.
  6082. * GDB and Modula-2
  6083. GDB now has preliminary support for the GNU Modula-2 compiler,
  6084. currently under development at the State University of New York at
  6085. Buffalo. Development of both GDB and the GNU Modula-2 compiler will
  6086. continue through the fall of 1991 and into 1992.
  6087. Other Modula-2 compilers are currently not supported, and attempting to
  6088. debug programs compiled with them will likely result in an error as the
  6089. symbol table is read. Feel free to work on it, though!
  6090. There are hooks in GDB for strict type checking and range checking,
  6091. in the `Modula-2 philosophy', but they do not currently work.
  6092. * set write on/off
  6093. GDB can now write to executable and core files (e.g. patch
  6094. a variable's value). You must turn this switch on, specify
  6095. the file ("exec foo" or "core foo"), *then* modify it, e.g.
  6096. by assigning a new value to a variable. Modifications take
  6097. effect immediately.
  6098. * Automatic SunOS shared library reading
  6099. When you run your program, GDB automatically determines where its
  6100. shared libraries (if any) have been loaded, and reads their symbols.
  6101. The `share' command is no longer needed. This also works when
  6102. examining core files.
  6103. * set listsize
  6104. You can specify the number of lines that the `list' command shows.
  6105. The default is 10.
  6106. * New machines supported (host and target)
  6107. SGI Iris (MIPS) running Irix V3: mips-sgi-irix or iris
  6108. Sony NEWS (68K) running NEWSOS 3.x: m68k-sony-sysv or news
  6109. Ultracomputer (29K) running Sym1: a29k-nyu-sym1 or ultra3
  6110. * New hosts supported (not targets)
  6111. IBM RT/PC: romp-ibm-aix or rtpc
  6112. * New targets supported (not hosts)
  6113. AMD 29000 embedded with COFF a29k-none-coff
  6114. AMD 29000 embedded with a.out a29k-none-aout
  6115. Ultracomputer remote kernel debug a29k-nyu-kern
  6116. * New remote interfaces
  6117. AMD 29000 Adapt
  6118. AMD 29000 Minimon
  6119. *** Changes in GDB-4.0:
  6120. * New Facilities
  6121. Wide output is wrapped at good places to make the output more readable.
  6122. Gdb now supports cross-debugging from a host machine of one type to a
  6123. target machine of another type. Communication with the target system
  6124. is over serial lines. The ``target'' command handles connecting to the
  6125. remote system; the ``load'' command will download a program into the
  6126. remote system. Serial stubs for the m68k and i386 are provided. Gdb
  6127. also supports debugging of realtime processes running under VxWorks,
  6128. using SunRPC Remote Procedure Calls over TCP/IP to talk to a debugger
  6129. stub on the target system.
  6130. New CPUs supported include the AMD 29000 and Intel 960.
  6131. GDB now reads object files and symbol tables via a ``binary file''
  6132. library, which allows a single copy of GDB to debug programs of multiple
  6133. object file types such as a.out and coff.
  6134. There is now a GDB reference card in "doc/refcard.tex". (Make targets
  6135. refcard.dvi and refcard.ps are available to format it).
  6136. * Control-Variable user interface simplified
  6137. All variables that control the operation of the debugger can be set
  6138. by the ``set'' command, and displayed by the ``show'' command.
  6139. For example, ``set prompt new-gdb=>'' will change your prompt to new-gdb=>.
  6140. ``Show prompt'' produces the response:
  6141. Gdb's prompt is new-gdb=>.
  6142. What follows are the NEW set commands. The command ``help set'' will
  6143. print a complete list of old and new set commands. ``help set FOO''
  6144. will give a longer description of the variable FOO. ``show'' will show
  6145. all of the variable descriptions and their current settings.
  6146. confirm on/off: Enables warning questions for operations that are
  6147. hard to recover from, e.g. rerunning the program while
  6148. it is already running. Default is ON.
  6149. editing on/off: Enables EMACS style command line editing
  6150. of input. Previous lines can be recalled with
  6151. control-P, the current line can be edited with control-B,
  6152. you can search for commands with control-R, etc.
  6153. Default is ON.
  6154. history filename NAME: NAME is where the gdb command history
  6155. will be stored. The default is .gdb_history,
  6156. or the value of the environment variable
  6157. GDBHISTFILE.
  6158. history size N: The size, in commands, of the command history. The
  6159. default is 256, or the value of the environment variable
  6160. HISTSIZE.
  6161. history save on/off: If this value is set to ON, the history file will
  6162. be saved after exiting gdb. If set to OFF, the
  6163. file will not be saved. The default is OFF.
  6164. history expansion on/off: If this value is set to ON, then csh-like
  6165. history expansion will be performed on
  6166. command line input. The default is OFF.
  6167. radix N: Sets the default radix for input and output. It can be set
  6168. to 8, 10, or 16. Note that the argument to "radix" is interpreted
  6169. in the current radix, so "set radix 10" is always a no-op.
  6170. height N: This integer value is the number of lines on a page. Default
  6171. is 24, the current `stty rows'' setting, or the ``li#''
  6172. setting from the termcap entry matching the environment
  6173. variable TERM.
  6174. width N: This integer value is the number of characters on a line.
  6175. Default is 80, the current `stty cols'' setting, or the ``co#''
  6176. setting from the termcap entry matching the environment
  6177. variable TERM.
  6178. Note: ``set screensize'' is obsolete. Use ``set height'' and
  6179. ``set width'' instead.
  6180. print address on/off: Print memory addresses in various command displays,
  6181. such as stack traces and structure values. Gdb looks
  6182. more ``symbolic'' if you turn this off; it looks more
  6183. ``machine level'' with it on. Default is ON.
  6184. print array on/off: Prettyprint arrays. New convenient format! Default
  6185. is OFF.
  6186. print demangle on/off: Print C++ symbols in "source" form if on,
  6187. "raw" form if off.
  6188. print asm-demangle on/off: Same, for assembler level printouts
  6189. like instructions.
  6190. print vtbl on/off: Prettyprint C++ virtual function tables. Default is OFF.
  6191. * Support for Epoch Environment.
  6192. The epoch environment is a version of Emacs v18 with windowing. One
  6193. new command, ``inspect'', is identical to ``print'', except that if you
  6194. are running in the epoch environment, the value is printed in its own
  6195. window.
  6196. * Support for Shared Libraries
  6197. GDB can now debug programs and core files that use SunOS shared libraries.
  6198. Symbols from a shared library cannot be referenced
  6199. before the shared library has been linked with the program (this
  6200. happens after you type ``run'' and before the function main() is entered).
  6201. At any time after this linking (including when examining core files
  6202. from dynamically linked programs), gdb reads the symbols from each
  6203. shared library when you type the ``sharedlibrary'' command.
  6204. It can be abbreviated ``share''.
  6205. sharedlibrary REGEXP: Load shared object library symbols for files
  6206. matching a unix regular expression. No argument
  6207. indicates to load symbols for all shared libraries.
  6208. info sharedlibrary: Status of loaded shared libraries.
  6209. * Watchpoints
  6210. A watchpoint stops execution of a program whenever the value of an
  6211. expression changes. Checking for this slows down execution
  6212. tremendously whenever you are in the scope of the expression, but is
  6213. quite useful for catching tough ``bit-spreader'' or pointer misuse
  6214. problems. Some machines such as the 386 have hardware for doing this
  6215. more quickly, and future versions of gdb will use this hardware.
  6216. watch EXP: Set a watchpoint (breakpoint) for an expression.
  6217. info watchpoints: Information about your watchpoints.
  6218. delete N: Deletes watchpoint number N (same as breakpoints).
  6219. disable N: Temporarily turns off watchpoint number N (same as breakpoints).
  6220. enable N: Re-enables watchpoint number N (same as breakpoints).
  6221. * C++ multiple inheritance
  6222. When used with a GCC version 2 compiler, GDB supports multiple inheritance
  6223. for C++ programs.
  6224. * C++ exception handling
  6225. Gdb now supports limited C++ exception handling. Besides the existing
  6226. ability to breakpoint on an exception handler, gdb can breakpoint on
  6227. the raising of an exception (before the stack is peeled back to the
  6228. handler's context).
  6229. catch FOO: If there is a FOO exception handler in the dynamic scope,
  6230. set a breakpoint to catch exceptions which may be raised there.
  6231. Multiple exceptions (``catch foo bar baz'') may be caught.
  6232. info catch: Lists all exceptions which may be caught in the
  6233. current stack frame.
  6234. * Minor command changes
  6235. The command ``call func (arg, arg, ...)'' now acts like the print
  6236. command, except it does not print or save a value if the function's result
  6237. is void. This is similar to dbx usage.
  6238. The ``up'' and ``down'' commands now always print the frame they end up
  6239. at; ``up-silently'' and `down-silently'' can be used in scripts to change
  6240. frames without printing.
  6241. * New directory command
  6242. 'dir' now adds directories to the FRONT of the source search path.
  6243. The path starts off empty. Source files that contain debug information
  6244. about the directory in which they were compiled can be found even
  6245. with an empty path; Sun CC and GCC include this information. If GDB can't
  6246. find your source file in the current directory, type "dir .".
  6247. * Configuring GDB for compilation
  6248. For normal use, type ``./configure host''. See README or gdb.texinfo
  6249. for more details.
  6250. GDB now handles cross debugging. If you are remotely debugging between
  6251. two different machines, type ``./configure host -target=targ''.
  6252. Host is the machine where GDB will run; targ is the machine
  6253. where the program that you are debugging will run.