ChangeLog-2008 436 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609
  1. 2008-12-31 Pedro Alves <pedro@codesourcery.com>
  2. PR gdb/8812:
  3. * infrun.c (handle_command): Don't print a header or notify the
  4. target about signal changes if we didn't change any signal.
  5. 2008-12-29 Joel Brobecker <brobecker@adacore.com>
  6. * valops.c (find_method_list): Minor reformatting in comment.
  7. 2008-12-29 Pedro Alves <pedro@codesourcery.com>
  8. PR gdb/7536:
  9. * valprint.c (input_radix_1): New static global.
  10. (set_input_radix): Use it instead of "input_radix".
  11. (set_input_radix_1): Always leave input_radix_1 set to
  12. input_radix.
  13. (output_radix_1): New static global.
  14. (set_output_radix): Use it instead of "output_radix".
  15. (set_output_radix_1): Always leave output_radix_1 set to
  16. output_radix.
  17. (_initialize_valprint): Use "input_radix_1" instead of
  18. "input_radix" with the "input-radix" command. Use
  19. "output_radix_1" instead of "output_radix" with the "output-radix"
  20. command.
  21. 2008-12-28 Pedro Alves <pedro@codesourcery.com>
  22. * linux-fork.c (linux_fork_detach): New.
  23. * linux-fork.h (linux_fork_detach): Declare.
  24. * linux-nat.c (linux_child_follow_fork): When following the fork
  25. child, add the child inferior before possibly detaching from the
  26. parent. Don't reinstall ourselves.
  27. (linux_nat_detach): Call linux_fork_detach if there are other
  28. forks to debug.
  29. * linux-thread-db.c (thread_db_detach): Don't call
  30. target_mourn_inferior. Instead inline the necessary bits.
  31. * inf-ptrace.c (inf_ptrace_detach): Don't unpush the target if
  32. there are other inferiors to debug.
  33. 2008-12-28 Jan Kratochvil <jan.kratochvil@redhat.com>
  34. Fix TYPE_HIGH_BOUND for TYPE_CODE_RANGE using arbitrary TYPE_NFIELDS in
  35. preparation for supporting DW_AT_byte_stride.
  36. * ada-lang.c (packed_array_type, ada_index_type): Use TYPE_INDEX_TYPE.
  37. (ada_array_bound_from_type): Move `index_type' declaration to the
  38. function start. New variable `retval'. Return the bounds for
  39. TYPE_CODE_RANGE using TYPE_LOW_BOUND and TYPE_HIGH_BOUND. Abort on
  40. invalid index type codes.
  41. * ada-typeprint.c (print_range): Set `upper_bound' for TYPE_CODE_RANGE
  42. now using TYPE_HIGH_BOUND.
  43. * ada-valprint.c (val_print_packed_array_elements): Use `index_type'.
  44. * eval.c (evaluate_subexp_standard): Use TYPE_INDEX_TYPE.
  45. * gdbtypes.c (create_range_type): Use TYPE_LOW_BOUND, TYPE_HIGH_BOUND,
  46. refer to the number of fields only through TYPE_NFIELDS.
  47. (create_array_type): Use TYPE_INDEX_TYPE.
  48. (check_typedef): Use TYPE_INDEX_TYPE, TYPE_LOW_BOUND, TYPE_HIGH_BOUND.
  49. * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED)
  50. (TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Use TYPE_INDEX_TYPE.
  51. (TYPE_ARRAY_UPPER_BOUND_VALUE, TYPE_ARRAY_LOWER_BOUND_VALUE): Use
  52. TYPE_INDEX_TYPE, TYPE_LOW_BOUND, TYPE_HIGH_BOUND,
  53. * hppa-tdep.c (hppa_alignof <TYPE_CODE_ARRAY>): Use TYPE_INDEX_TYPE.
  54. * mdebugread.c (parse_type): Use TYPE_LOW_BOUND, TYPE_HIGH_BOUND,
  55. * valarith.c (value_bit_index): Use TYPE_INDEX_TYPE.
  56. 2008-12-26 Sandra Loosemore <sandra@codesourcery.com>
  57. * breakpoint.c (update_watchpoint): Refactor to avoid compiler
  58. warning.
  59. 2008-12-22 Tom Tromey <tromey@redhat.com>
  60. * stack.c (print_block_frame_locals): Print spaces, not tabs.
  61. Update for call to print_variable_and_value.
  62. (print_frame_arg_vars): Update.
  63. * value.h (print_variable_and_value): Rename from
  64. print_variable_value. Add 'name' and 'indent' parameters.
  65. * printcmd.c (print_variable_and_value): Rename from
  66. print_variable_value. Add 'name' and 'indent' parameters. Use
  67. common_val_print.
  68. * f-valprint.c (info_common_command): Update.
  69. 2008-12-22 Tom Tromey <tromey@redhat.com>
  70. * python/python-value.c (valpy_length): Remove #if.
  71. 2008-12-22 Paul Pluzhnikov <ppluzhnikov@google.com>
  72. * python/python-internal.h (PyEval_ReleaseLock): New define.
  73. 2008-12-22 Tom Tromey <tromey@redhat.com>
  74. * c-exp.y (ident_tokens): New global.
  75. (struct token) <cxx_only>: New field.
  76. (tokentab3): Update.
  77. (tokentab2): Update.
  78. (yylex): Use ident_tokens.
  79. 2008-12-22 Adam Denton <adenton@yahoo.com>
  80. PR gdb/8307:
  81. * environ.c (free_environ): Free e->vector.
  82. 2008-12-22 Jan Kratochvil <jan.kratochvil@redhat.com>
  83. Fix memory double-free.
  84. * completer.c (line_completion_function): Clear LIST after called xfree.
  85. 2008-12-22 Joel Brobecker <brobecker@adacore.com>
  86. * breakpoint.c (update_watchpoint): Adjust and extend the description
  87. of this function. Fix one error message accordingly.
  88. 2008-12-21 Jan Kratochvil <jan.kratochvil@redhat.com>
  89. Fix hw watchpoints created before the inferior was started.
  90. * breakpoint.c (update_watchpoint): Convert the bp_watchpoint and
  91. bp_hardware_watchpoint types according to the current runtime state.
  92. 2008-12-18 Pedro Alves <pedro@codesourcery.com>
  93. * linux-nat.c (linux_child_follow_fork): If following the child,
  94. and not detaching the parent, also add the child fork to the fork
  95. list.
  96. * linux-fork.c (linux_fork_context): Remove dead error call.
  97. Assert that the incoming newfp argument is not null. Do not add a
  98. new fork for inferior_ptid. Assert that there is one already.
  99. 2008-12-16 Tristan Gingold <gingold@adacore.com>
  100. * inflow.c: Remove old_sigio, handle_sigio, old_fcntl_flags,
  101. set_sigio_trap, clear_sigio_trap definitions.
  102. * inferior.h: Remove set_sigio_trap and clear_sigio_trap declarations.
  103. * inf-ptrace.c (inf_ptrace_wait): Remove call to set_sigio_trap
  104. and clear_sigio_trap.
  105. * inf-ttrace.c (inf_ttrace_wait): Ditto.
  106. * linux-nat.c (linux_nat_wait): Ditto.
  107. * spu-linux-nat.c (spu_child_wait): Ditto.
  108. * rs6000-nat.c (rs6000_wait): Ditto.
  109. * target.c: Remove target_activity_function and target_activity_fd.
  110. * target.h: Remove target_activity_function and target_activity_fd
  111. declarations.
  112. 2008-12-15 Paul Pluzhnikov <ppluzhnikov@google.com>
  113. * dbxread.c (read_ofile_symtab): Sign-extend 32-bit N_LSYM and
  114. N_PSYM STABS values for 64-bit GDB.
  115. 2008-12-15 Tristan Gingold <gingold@adacore.com>
  116. * dwarf2expr.c (execute_stack_op): Handle DW_OP_swap.
  117. 2008-12-15 Jerome Guitton <guitton@adacore.com>
  118. * ada-lang.c (ada_value_slice_ptr): Rename to...
  119. (ada_value_slice_from_ptr): ... this. Return a lazy value instead
  120. of a reference. Update comment.
  121. (ada_value_struct_elt): Ditto if arg is a pointer or a reference.
  122. Update comment as well.
  123. (ada_evaluate_subexp): Update use of ada_value_slice_ptr.
  124. 2008-12-12 Kevin Buettner <kevinb@redhat.com>
  125. * gnu-v3-abi.c (vtable_ptrdiff_type): New function.
  126. (gnuv3_decode_method_ptr, gnuv3_print_method_ptr)
  127. (gnuv3_method_ptr_to_value): Use a better approximation for
  128. `ptrdiff_t' instead of `long'.
  129. 2008-12-12 Kevin Buettner <kevinb@redhat.com>
  130. * m32c-tdep.c (m32c_gdbarch_init): Call set_gdbarch_vbit_in_delta().
  131. (m32c_push_dummy_call): Dereference pointer type.
  132. 2008-12-12 Tom Tromey <tromey@redhat.com>
  133. PR cli/2563:
  134. * cli/cli-decode.c (delete_cmd): Add hook-related out parameters.
  135. (add_cmd): Update. Install hooks into new command.
  136. (add_alias_cmd): Update.
  137. 2008-12-11 Tom Tromey <tromey@redhat.com>
  138. * macroexp.c (get_pp_number): Require digit after leading ".".
  139. Correctly handle suffixes.
  140. 2008-12-11 Tom Tromey <tromey@redhat.com>
  141. * macrocmd.c (macro_define_command): Skip whitespace after
  142. macro name.
  143. (print_one_macro): Print space after macro name.
  144. 2008-12-12 Pedro Alves <pedro@codesourcery.com>
  145. * infrun.c (handle_inferior_event): Correctly tag non-executing
  146. threads in multi-process.
  147. (normal_stop): Correctly tag stopped threads in multi-process.
  148. 2008-12-12 Pedro Alves <pedro@codesourcery.com>
  149. * remote.c (extended_remote_mourn_1): Always call
  150. generic_mourn_inferior.
  151. 2008-12-12 Pedro Alves <pedro@codesourcery.com>
  152. * remote.c (remote_detach_1): Don't delete the inferior here.
  153. (process_stop_reply): Ditto.
  154. (extended_remote_kill): Ditto.
  155. 2008-12-12 Pedro Alves <pedro@codesourcery.com>
  156. * remote.c (read_ptid): If we don't know about any inferior yet,
  157. use the pid of magic_null_ptid.
  158. (remote_start_remote): In the non-stop mode case, don't set
  159. inferior_ptid to magic_null_ptid here.
  160. 2008-12-11 Daniel Jacobowitz <dan@codesourcery.com>
  161. Pedro Alves <pedro@codesourcery.com>
  162. * infcmd.c (step_1): Use step_once in the synchronous case too.
  163. (step_1_continuation): Wrap line.
  164. (step_once): Adjust comment. Only install the continuation in
  165. async mode.
  166. 2008-12-11 Pedro Alves <pedro@codesourcery.com>
  167. * infrun.c (handle_inferior_event): On a TARGET_WAITKIND_EXITED or
  168. TARGET_WAITKIND_SIGNALLED, switch inferior_ptid to the event ptid.
  169. * linux_thread_db.c (thread_db_wait): On a TARGET_WAITKIND_EXITED
  170. or TARGET_WAITKIND_SIGNALLED, return the ptid the beneath target
  171. returned.
  172. * inf-ptrace.c (inf_ptrace_wait): Return inferior_ptid instead of
  173. minus_one_ptid if the inferior disappeared.
  174. * rs6000-nat.c (rs6000_wait): Likewise.
  175. * spu-linux-nat.c (spu_child_wait): Likewise.
  176. 2008-12-11 Tom Tromey <tromey@redhat.com>
  177. PR macros/2564:
  178. * c-exp.y (macro_original_text, expansion_obstack,
  179. expression_macro_scope): New globals.
  180. (scan_macro_expansion): New function.
  181. (scanning_macro_expansion): Likewise.
  182. (finished_macro_expansion): Likewise.
  183. (scan_macro_cleanup): Likewise.
  184. (c_parse): Find macro scope. Initialize obstack.
  185. * c-lang.h (scan_macro_expansion, scanning_macro_expansion,
  186. finished_macro_expansion, expression_macro_lookup_func,
  187. expression_macro_lookup_baton): Remove.
  188. * c-lang.c (scan_macro_expansion, scanning_macro_expansion,
  189. finished_macro_expansion, expression_macro_lookup_func,
  190. expression_macro_lookup_baton): Remove.
  191. (macro_original_text, macro_expanded_text,
  192. c_preprocess_and_parse): Remove.
  193. (c_language_defn, cplus_language_defn, asm_language_defn,
  194. minimal_language_defn): Use c_parse.
  195. 2008-12-10 Pedro Alves <pedro@codesourcery.com>
  196. * infcmd.c (until_next_command, finish_backward): Use get_frame_pc
  197. instead of read_pc.
  198. 2008-12-09 Tom Tromey <tromey@redhat.com>
  199. PR gdb/1815:
  200. * cli/cli-decode.c (delete_cmd): Forward declare.
  201. (delete_cmd): Now static. Change return type. Remove command
  202. from alias chain. Rewrite.
  203. (add_cmd): Initialize new fields. Update cmd_pointer on all
  204. aliases.
  205. (add_alias_cmd): Put command on alias chain.
  206. * command.h (delete_cmd): Don't declare.
  207. * cli/cli-decode.h (delete_cmd): Don't declare.
  208. (struct cmd_list_element) <aliases, alias_chain>: New fields.
  209. 2008-12-09 Tom Tromey <tromey@redhat.com>
  210. * config.in, configure: Rebuild.
  211. * configure.ac: Check for locale.h, setlocale. Call
  212. AM_LC_MESSAGES.
  213. * acinclude.m4: Include lcmessage.m4.
  214. 2008-12-09 Jan Kratochvil <jan.kratochvil@redhat.com>
  215. * remote.c (remote_parse_stop_reply): Use REG only after its NULL check.
  216. 2008-12-08 Joel Brobecker <brobecker@adacore.com>
  217. * python/python-value.c (values_in_python): Add specific initialization
  218. to NULL to work-around a MacOS linker bug.
  219. 2008-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
  220. Fix loc_type of `bp_location's created by update_watchpoint.
  221. * breakpoint.c (allocate_bp_location): Remove the bp_type parameter.
  222. Replace bp_type by bpt->type. Update prototype. All callers updated.
  223. (add_location_to_breakpoint): Remove the bp_type parameter.
  224. Replace bp_type by b->type. All callers updated.
  225. (set_breakpoint_location_function): Replace bptype by b->type.
  226. 2008-12-07 Jan Kratochvil <jan.kratochvil@redhat.com>
  227. * breakpoint.c (update_global_location_list): Fix the comment.
  228. 2008-12-05 Pedro Alves <pedro@codesourcery.com>
  229. * infcmd.c (step_1, step_once): Look up the stepping range based
  230. on the current frame's PC, not on stop_pc.
  231. 2008-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
  232. Fix compilation on 32-bit host configurations.
  233. * ia64-tdep.c (ia64_breakpoint_from_pc): Suffix a constant by `LL'.
  234. 2008-12-05 Tristan Gingold <gingold@adacore.com>
  235. * i386-darwin-nat.c (i386_darwin_sstep_at_sigreturn): New function.
  236. (amd64_darwin_sstep_at_sigreturn): New function.
  237. (darwin_set_sstep): The sigreturn is a special case: the trace flag
  238. must be set in the mcontext structure.
  239. 2008-12-05 Pedro Alves <pedro@codesourcery.com>
  240. * infcmd.c (step_once): Remove dead code.
  241. 2008-12-04 Doug Evans <dje@google.com>
  242. * infcall.c (call_function_by_hand): Clean up use of local dummy_addr.
  243. 2008-12-02 Doug Evans <dje@google.com>
  244. * infrun.c (handle_inferior_event): Remove redundant resetting of
  245. stepping_past_singlestep_breakpoint.
  246. 2008-12-02 Pedro Alves <pedro@codesourcery.com>
  247. * target.h (target_get_osdata): Describe.
  248. * osdata.h (make_cleanup_osdata_free): Declare.
  249. * osdata.c (osdata_item_clear): Define even if HAVE_LIBEXPAT is
  250. not defined.
  251. (osdata_free_cleanup): New.
  252. (make_cleanup_osdata_free): New.
  253. (get_osdata): Fix leak.
  254. (info_osdata_command): Use make_cleanup_osdata_free.
  255. (info_processes_command): Delete.
  256. (_initialize_osdata): Drop undocumented "info processes" alias.
  257. * mi/mi-main.c (mi_cmd_list_thread_groups): Fix leak.
  258. 2008-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
  259. Fix resolving external references to TLS variables.
  260. * findvar.c: Include `objfiles.h'.
  261. (read_var_value <LOC_UNRESOLVED>): New variable `obj_section'. Handle
  262. SEC_THREAD_LOCAL variables.
  263. * printcmd.c (address_info <LOC_UNRESOLVED>): Handle SEC_THREAD_LOCAL
  264. variables.
  265. 2008-12-02 Doug Evans <dje@google.com>
  266. * infrun.c (handle_inferior_event): Delete unused local tp.
  267. 2008-12-02 Pedro Alves <pedro@codesourcery.com>
  268. Vladimir Prus <vladimir@codesourcery.com>
  269. Implement -list-thread-groups --available
  270. * Makefile.in (XMLFILES): Add osdata.dtd.
  271. (SFILES): Add osdata.c.
  272. (COMMON_OBS): Add osdata.o.
  273. * linux-nat.c: Include pwd.h, sys/types.h, gdb_dirent.h and xml-support.h.
  274. (linux_nat_xfer_osdata): New function.
  275. (linux_xfer_partial): Handle TARGET_OBJECT_OSDATA.
  276. * osdata.c: New file.
  277. * osdata.h: New file.
  278. * remote.c (PACKET_qXfer_osdata): New packet enum.
  279. (remote_protocol_features): Add "qXfer:osdata:read".
  280. (remote_read_qxfer): Handle TARGET_OBJECT_OSDATA.
  281. (extended_remote_can_run): New.
  282. (init_extended_remote_ops): Set to_can_run to
  283. extended_remote_can_run.
  284. (_initialize_remote): Add packet config command for
  285. "qXfer:osdata:read".
  286. * xml-support.c (obstack_xml_printf): New function.
  287. * xml-support.h (obstack_xml_printf): Declare.
  288. * target.c (target_get_osdata): New function.
  289. * target.h (enum target_object): Add TARGET_OBJECT_OSDATA.
  290. (target_os_data): Declare.
  291. * features/osdata.dtd: New file.
  292. * mi/mi-main.c (mi_list_thread_groups): Handle the --available
  293. option.
  294. 2008-12-01 Doug Evans <dje@google.com>
  295. * infrun.c (proceed): Delete unused local stop_signal.
  296. 2008-11-27 Tristan Gingold <gingold@adacore.com>
  297. * NEWS: Add entry for new native configuration: Darwin.
  298. * configure.host: Add Darwin host.
  299. * configure.tgt: Add Darwin target.
  300. * defs.h (enum gdb_osabi): Add GDB_OSABI_DARWIN.
  301. * osabi.c (gdb_osabi_names): Add name for Darwin abi.
  302. * i386-darwin-nat.c: New file.
  303. * i386-darwin-tdep.c: New file.
  304. * machoread.c: New file.
  305. * darwin-nat-info.c: New file.
  306. * darwin-nat.c: New file.
  307. * darwin-nat.h: New file.
  308. * darwin.defs: New file.
  309. * config/i386/darwin.mh: New file.
  310. 2008-11-26 Tristan Gingold <gingold@adacore.com>
  311. * MAINTAINERS: Add myself for write after approval privileges.
  312. 2008-11-26 Jerome Guitton <guitton@adacore.com>
  313. * value.h (allocate_value_lazy): New function declaration.
  314. (value_free): Remove macro, make it a function.
  315. * value.c (value): Move actual content outside of the memory space
  316. of the struct; add a pointer to this actual content.
  317. (allocate_value_lazy, allocate_value_contents): New function.
  318. (allocate_value): Reimplement using these two new functions.
  319. (value_contents_raw, value_contents_all_raw): If no memory
  320. has been allocated yet for the actual content, allocate it.
  321. (value_contents_all): Resync with struct value's changes.
  322. (value_free): New function.
  323. (value_copy, value_primitive_field): Use new function
  324. allocate_value_lazy to allocate lazy values.
  325. (value_change_enclosing_type): Resync with struct value's changes.
  326. As the value is not reallocated, remove the special handling for
  327. the value chain (now obsolete).
  328. * valops.c (value_at_lazy): Use new function allocate_value_lazy.
  329. (value_fetch_lazy): Allocate value content. Use allocate_value_lazy
  330. to allocate lazy values.
  331. (value_slice): Use allocate_value_lazy to allocate lazy values.
  332. 2008-11-25 Jan Kratochvil <jan.kratochvil@redhat.com>
  333. Fix automatic restoration of breakpoints memory for ia64.
  334. * ia64-tdep.c: New #if check on BREAKPOINT_MAX vs. BUNDLE_LEN.
  335. (ia64_memory_insert_breakpoint): New comment part for SHADOW_CONTENTS
  336. content. Remove variable instr. New variable cleanup. Disable
  337. automatic breakpoints restoration. PLACED_SIZE and SHADOW_LEN are now
  338. set larger, to BUNDLE_LEN - 2. Variable `bundle' type update. Return
  339. error if even just final target_write_memory has failed.
  340. (ia64_memory_remove_breakpoint): Rename variables bundle to bundle_mem
  341. and instr to instr_saved. New variables bundle_saved and
  342. instr_breakpoint. Comment new reasons why we need to disable automatic
  343. restoration of breakpoints. Assert PLACED_SIZE and SHADOW_LEN. New
  344. check of the original memory content. Return error if even just final
  345. target_write_memory has failed.
  346. (ia64_breakpoint_from_pc): Implement the emulation of permanent
  347. breakpoints compatible with current bp_loc_is_permanent.
  348. (template_encoding_table): Make it `const'.
  349. * breakpoint.c (bp_loc_is_permanent): Support unsupported software
  350. breakpoints. New variables `cleanup' and `retval'.
  351. 2008-11-24 Tom Tromey <tromey@redhat.com>
  352. * ada-lang.c (value_from_contents_and_address): Move...
  353. * value.c: ... here.
  354. * ada-lang.h (value_from_contents_and_address): Move
  355. declaration...
  356. * value.h: ... here.
  357. 2008-11-24 Paul Pluzhnikov <ppluzhnikov@google.com>
  358. * valprint.c (val_print_array_elements): Pass correct
  359. element address to val_print.
  360. 2008-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
  361. Fix access of an already freed memory.
  362. * parse.c (parse_field_expression): Call xstrdup on `*name'.
  363. * completer.c (expression_completer): Free fieldname.
  364. 2008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
  365. PR gdb/2474
  366. * remote.c (remote_read_description_p): New function.
  367. (remote_start_remote): Try to fetch the target description
  368. before adding shared libraries. Try again later if the
  369. target is running but stopped.
  370. (remote_open_1): Mark extended targets as exited by default.
  371. (remote_read_description): Check target_has_execution.
  372. 2008-11-24 Jerome Guitton <guitton@adacore.com>
  373. * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Use
  374. the frame address in block instead of the return address to
  375. locate the mdebug PDR of the frame.
  376. 2008-11-21 Joel Brobecker <brobecker@adacore.com>
  377. Remove the unused BPSTAT_WHAT_CHECK_SHLIBS_RESUME_FROM_HOOK.
  378. * breakpoint.h (enum bpstat_what_main_action): Remove
  379. BPSTAT_WHAT_CHECK_SHLIBS_RESUME_FROM_HOOK.
  380. * breakpoint.c (bpstat_what): Delete catch_shlib_event from enum class.
  381. Remove the BPSTAT_WHAT_CHECK_SHLIBS_RESUME_FROM_HOOK column from
  382. variable table.
  383. * infrun.c (wait_for_inferior): Remove handling of
  384. BPSTAT_WHAT_CHECK_SHLIBS_RESUME_FROM_HOOK.
  385. 2008-11-21 Tom Tromey <tromey@redhat.com>
  386. * configure: Rebuild.
  387. * configure.ac: Merge calls to AC_CHECK_FUNCS, AC_CHECK_HEADERS,
  388. AC_CHECK_DECLS, and AC_CHECK_MEMBERS.
  389. 2008-11-21 Tom Tromey <tromey@redhat.com>
  390. * python/python-internal.h (PyGILState_Ensure): New define.
  391. (PyGILState_Release): Likewise.
  392. (PyEval_InitThreads): Likewise.
  393. (PyThreadState_Swap): Likewise.
  394. (PyEval_InitThreads): Likewise.
  395. * python/python.c (_initialize_python): Initialize threads.
  396. Release GIL.
  397. (eval_python_from_control_command): Acquire GIL.
  398. (python_command): Likewise.
  399. * python/python-internal.h (make_cleanup_py_restore_gil):
  400. Declare.
  401. * python/python-utils.c (py_gil_restore): New function.
  402. (make_cleanup_py_restore_gil): Likewise.
  403. 2008-11-20 Doug Evans <dje@google.com>
  404. * frame.c (frame_debug_got_null_frame): Remove file arg.
  405. All callers updated.
  406. 2008-11-20 Pedro Alves <pedro@codesourcery.com>
  407. * infrun.c (resume): If following a fork, also reset regcache,
  408. gdbarch and pc.
  409. 2008-11-20 Doug Evans <dje@google.com>
  410. * printcmd.c (sym_info): Don't print the offset if it's zero.
  411. 2008-11-20 Pedro Alves <pedro@codesourcery.com>
  412. * infrun.c (resume): If following a fork, reread the current
  413. thread. Avoid dereferencing a possibly dangling pointer.
  414. 2008-11-19 Doug Evans <dje@google.com>
  415. * inferior.h (proceed_to_finish): Delete, unused.
  416. (stop_registers): Tweak comment.
  417. * infrun.c (stop_registers): Tweak comment.
  418. 2008-11-19 Kevin Buettner <kevinb@redhat.com>
  419. * frv-tdep.c (frv_skip_main_prologue): New function.
  420. (frv_gdbarch_init): Register frv_skip_main_prologue.
  421. * solib-frv.c (fetch_loadmap): Return early when no segments are
  422. found.
  423. (frv_relocate_main_executable): Return early when both interpreter
  424. and executable loadmap addresses are zero.
  425. 2008-11-19 Bob Wilson <bob.wilson@acm.org>
  426. * xtensa-config.c (rmap): Remove entries for ar32 through ar63. Add
  427. threadptr, scompare1, mmid, epc5, epc6, epc7, eps5, eps6, eps7,
  428. excsave5, excsave6, excsave7, cpenable, and vecbase registers.
  429. (xtensa_submask0, xtensa_submask1, xtensa_submask2)
  430. (xtensa_submask3, xtensa_submask4, xtensa_submask5, xtensa_submask6)
  431. (xtensa_submask7, xtensa_submask8, xtensa_submask9, xtensa_submask10)
  432. (xtensa_submask11, xtensa_submask12, xtensa_submask13, xtensa_submask14)
  433. (xtensa_submask15): Adjust register numbers.
  434. * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
  435. (xtensa_regmap_table): Add entry for scompare1.
  436. * regformats/reg-xtensa.dat: Remove ar32 through ar63. Add threadptr
  437. and scompare1.
  438. 2008-11-19 Pedro Alves <pedro@codesourcery.com>
  439. * remote.c (escape_buffer): New.
  440. (putpkt_binary, read_frame, getpkt_or_notif_sane_1): Use it. Make
  441. sure debug output printing a packet buffer goes through a single
  442. fprintf_unfiltered call.
  443. * utils.c (vfprintf_unfiltered): If outputting timestamps, end
  444. output with a newline if it wasn't going to already.
  445. 2008-11-18 Paul Pluzhnikov <ppluzhnikov@google.com>
  446. * maint.c (maintenance_translate_address): Fix a buglet.
  447. 2008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
  448. * features/Makefile (rs6000/powerpc-isa205-32l-expedite,
  449. rs6000/powerpc-isa205-altivec32l-expedite,
  450. powerpc-isa205-vsx32l-expedite, rs6000/powerpc-isa205-64l-expedite,
  451. rs6000/powerpc-isa205-altivec64l-expedite,
  452. powerpc-isa205-vsx64l-expedite): New variables.
  453. * regformats/rs6000/powerpc-isa205-32l.dat: Generate.
  454. * regformats/rs6000/powerpc-isa205-altivec32l.dat: Generate.
  455. * regformats/rs6000/powerpc-isa205-vsx32l.dat: Generate.
  456. * regformats/rs6000/powerpc-isa205-64l.dat: Generate.
  457. * regformats/rs6000/powerpc-isa205-altivec64l.dat: Generate.
  458. * regformats/rs6000/powerpc-isa205-vsx64l.dat: Generate.
  459. 2008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
  460. * ppc-linux-nat.c (ppc_register_u_addr): Add special case to return
  461. offset for full 64-bit slot of FPSCR when in 32-bits.
  462. (ppc_linux_read_description): Return target description with 64-bit
  463. FPSCR when inferior is running on an ISA 2.05 or later processor.
  464. * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Call
  465. initialize_tdec_powerpc_isa205_32l,
  466. initialize_tdec_powerpc_isa205_altivec32l,
  467. initialize_tdec_powerpc_isa205_vsx32l,
  468. initialize_tdec_powerpc_isa205_64l,
  469. initialize_tdec_powerpc_isa205_altivec64l and
  470. initialize_tdec_powerpc_isa205_vsx64l.
  471. * ppc-linux-tdep.h: Add external declaration for
  472. tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l,
  473. tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_64l,
  474. tdesc_powerpc_isa205_altivec64l and tdesc_powerpc_isa205_vsx64l.
  475. * features/rs600/powerpc-fpu-isa205.xml: New file.
  476. * features/rs600/powerpc-isa205-32l.xml: New file.
  477. * features/rs600/powerpc-isa205-64l.xml: New file.
  478. * features/rs600/powerpc-isa205-altivec32l.xml: New file.
  479. * features/rs600/powerpc-isa205-altivec64l.xml: New file.
  480. * features/rs600/powerpc-isa205-vsx32l.xml: New file.
  481. * features/rs600/powerpc-isa205-vsx64l.xml: New file.
  482. * features/rs600/powerpc-isa205-32l.c: Generate.
  483. * features/rs600/powerpc-isa205-64l.c: Generate.
  484. * features/rs600/powerpc-isa205-altivec32l.c: Generate.
  485. * features/rs600/powerpc-isa205-altivec64l.c: Generate.
  486. * features/rs600/powerpc-isa205-vsx32l.c: Generate.
  487. * features/rs600/powerpc-isa205-vsx64l.c: Generate.
  488. 2008-11-18 Paul Pluzhnikov <ppluzhnikov@google.com>
  489. * objfiles.h: New MULTI_OBJFILE_P macro.
  490. * printcmd.c (sym_info): Print object name.
  491. * maint.c (maintenance_translate_address): Likewise.
  492. 2008-11-18 Joel Brobecker <brobecker@adacore.com>
  493. * NEWS: Document the removal of "catch load" and "catch unload".
  494. 2008-11-17 Doug Evans <dje@google.com>
  495. * infcall.c (call_function_by_hand): Fix punctuation and capitalization
  496. on error messages.
  497. 2008-11-17 Ulrich Weigand <uweigand@de.ibm.com>
  498. PR gdb/2250
  499. * infrun.c (clear_proceed_status_thread): New function.
  500. (clear_proceed_status_callback): New function.
  501. (clear_proceed_status): In all-stop mode, clear per-thread
  502. proceed status of *all* threads, not only the current.
  503. (handle_inferior_event): In all-stop mode, if we're stepping
  504. one thread, but got some inferior event in another thread
  505. that does not cause GDB to break to the user interface,
  506. ensure the interrupted stepping operation continues in the
  507. original thread.
  508. (currently_stepping): Move thread-related tests to ...
  509. (currently_stepping_thread): ... this new function.
  510. (currently_stepping_callback): New function.
  511. 2008-11-17 Vladimir Prus <vladimir@codesourcery.com>
  512. Implement =thread-selected notification.
  513. * mi/mi-common.h (struct mi_interp): New, moved from ...
  514. * mi/mi-interp.c: ...here.
  515. * mi/mi-main.c (mi_execute_command): If the thread changed
  516. as result of command, report that.
  517. 2008-11-17 Vladimir Prus <vladimir@codesourcery.com>
  518. Implement continue/interrupt of thread groups.
  519. * mi/mi-main.c (proceed_thread_callback): New.
  520. (mi_cmd_exec_continue): If --thread-group is specified, resume all
  521. threads in that group.
  522. (interrupt_thread_callback): New.
  523. (mi_cmd_exec_interrupt): If --thread-group is specified, interrupt
  524. all threads in that group.
  525. 2008-11-17 Vladimir Prus <vladimir@codesourcery.com>
  526. Implement '-target-detach pid'.
  527. * infcmd.c (detach_command): Make nonstatic.
  528. * inferior.h (detach_command): Declare.
  529. * mi/mi-cmds.c (mi_cmds): Don't route -target-detach via CLI.
  530. * mi/mi-cmds.h (mi_cmd_target_detach): Declare.
  531. * mi/mi-main.c (find_thread_of_process, mi_cmd_target_detach): New.
  532. 2008-11-17 Vladimir Prus <vladimir@codesourcery.com>
  533. Include group-id in thread-created notification.
  534. * mi/mi-interp.c (mi_new_thread, mi_thread_exit): Include
  535. group id in the output.
  536. 2008-11-17 Vladimir Prus <vladimir@codesourcery.com>
  537. Notification for attach/detach.
  538. * inferior.c: Call the process observers.
  539. * mi/mi-interp.c (mi_new_inferior, mi_inferior_exit): New.
  540. (mi_interpreter_init): Register the above.
  541. 2008-11-17 Vladimir Prus <vladimir@codesourcery.com>
  542. Implement -list-thread-groups.
  543. * thread.c (print_thread_info): New parameter pid, to print
  544. threads of specific process.
  545. * gdbthread.h (print_thread_info): New parameter pid.
  546. * mi/mi-cmds.c (mi_cmds): Register -list-thread-groups.
  547. * mi/mi-cmds.h (mi_cmd_list_thread_groups): New.
  548. * mi/mi-main.c (mi_cmd_thread_info): Adjust.
  549. (print_one_process, mi_cmd_list_thread_groups): New.
  550. 2008-11-16 Joel Brobecker <brobecker@adacore.com>
  551. Remove some unused macros related to the old load/unload catchpoints.
  552. * breakpoint.c (SOLIB_LOADED_LIBRARY_PATHNAME)
  553. (SOLIB_UNLOADED_LIBRARY_PATHNAME, SOLIB_CREATE_CATCH_LOAD_HOOK)
  554. (SOLIB_CREATE_CATCH_UNLOAD_HOOK): Delete. No longer used.
  555. 2008-11-16 Joel Brobecker <brobecker@adacore.com>
  556. Remove support for catch load and catch unload commands.
  557. * breakpoint.h (enum bptype): Remove bp_catch_load and bp_catch_unload.
  558. (struct breakpoint): Remove fields dll_pathname and
  559. triggered_dll_pathname.
  560. (bpstat_get_triggered_catchpoints, ep_is_shlib_catchpoint): Delete.
  561. * breakpoint.c (ep_is_catchpoint): Remove handling of
  562. bp_catch_load and bp_catch_unload.
  563. (print_it_typical, bpstat_check_location, bpstat_what)
  564. (print_one_breakpoint_location, print_one_breakpoint_location)
  565. (user_settable_breakpoint, allocate_bp_location)
  566. (set_raw_breakpoint_without_location, mention, delete_breakpoint,
  567. (breakpoint_re_set_one, disable_command, enable_command): Likewise.
  568. (ep_is_shlib_catchpoint, bpstat_get_triggered_catchpoints)
  569. (catch_load_command_1, catch_unload_command_1): Delete.
  570. (_initialize_breakpoint): Remove the "catch load" and "catch unload"
  571. command creation.
  572. * infrun.c (handle_inferior_event): Remove the handling of
  573. load/unload catchpoint events.
  574. 2008-11-15 Joel Brobecker <brobecker@adacore.com>
  575. From Jerome Guitton <guitton@adacore.com>
  576. * dwarf2read.c (dwarf2_debug_line_missing_end_sequence_complaint):
  577. New function.
  578. (dwarf_decode_lines): Detect null file numbers. Detect the end of
  579. the line program sequence when no end sequence is emitted.
  580. 2008-11-15 Joel Brobecker <brobecker@adacore.com>
  581. * ada-lang.c (ada_evaluate_subexp): Improve handling of integer
  582. type dereferencing.
  583. 2008-11-15 Daniel Jacobowitz <dan@codesourcery.com>
  584. * NEWS: Mention sparc64-linux-gnu gdbserver support.
  585. 2008-11-14 Daniel Gutson <dgutson@codesourcery.com>
  586. * configure.tgt (sparc64-*-linux*): Added gdbserver support.
  587. * regformats/reg-sparc64.dat: New file.
  588. 2008-11-14 Tom Tromey <tromey@redhat.com>
  589. PR mi/2549:
  590. * mi/mi-main.c (get_register): Use get_formatted_print_options.
  591. 2008-11-13 Joel Brobecker <brobecker@adacore.com>
  592. * printcmd.c: define PRINTF_HAS_LONG_LONG only if not yet defined.
  593. 2008-11-13 Ulrich Weigand <uweigand@de.ibm.com>
  594. * auxv.c (fprint_target_auxv): Handle AT_BASE_PLATFORM and
  595. AT_EXECFN. Re-sort AT_SECURE.
  596. 2008-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
  597. * monitor.c (monitor_insert_breakpoint): Remove unused variable `bp'.
  598. 2008-11-13 Joel Brobecker <brobecker@adacore.com>
  599. * ia64-tdep.c: Remove commented out #define.
  600. 2008-11-12 Joel Brobecker <brobecker@adacore.com>
  601. From Joel Sherrill <joel.sherrill@oarcorp.com>
  602. * remote-sim.c (gdbsim_mourn_inferior): Use "target" parameter
  603. instead of the "gdbsim_ops" global.
  604. 2008-11-11 Doug Evans <dje@google.com>
  605. * infcall.c (call_function_by_hand): Handle inferior exit.
  606. 2008-11-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
  607. * remote-sim.c (gdbsim_create_inferior, gdbsim_mourn_inferior): Add
  608. missing struct target_ops argument.
  609. 2008-11-11 Joel Sherrill <joel.sherrilL@oarcorp.com>
  610. * MAINTAINERS: Add myself for write after approval privileges.
  611. 2008-11-10 Tom Tromey <tromey@redhat.com>
  612. * gdbtypes.c (copy_type_recursive): Clear new fields.
  613. 2008-11-10 Tom Tromey <tromey@redhat.com>
  614. * cli/cli-cmds.c (source_script): Clean up full_pathname. Run
  615. cleanups on early return.
  616. 2008-11-09 Vladimir Prus <vladimir@codesourcery.com>
  617. Kill pthread_ops_hack
  618. * target.h (struct target_ops): Make to_attach, to_detach,
  619. to_create_inferior and to_mourn_inferior accept a pointer
  620. to struct target_ops.
  621. (target_attach, target_create_inferior, target_create_inferior):
  622. Convert from macros to function. Find the right target to
  623. invoke a method of.
  624. (find_default_attach, find_default_create_inferior): New parameter
  625. ops.
  626. * corefile.c (core_file_command): Pass target to to_detach.
  627. * corelow.c (core_detach): Add 'ops' parameter.
  628. * fork-child.c (fork_inferior): Return the pid. Allow
  629. init_trace_fun to be NULL.
  630. * inf-ptrace (ptrace_ops_hack): Remove.
  631. (inf_ptrace_him): Remove, moving all logic into....
  632. (inf_ptrace_create_inferior): ... here. Push the target
  633. passed as parameter.
  634. (inf_ptrace_mourn_inferior, inf_ptrace_attach, inf_ptrace_detach):
  635. Push/pop target passed as parameter, no ptrace_ops_hack.
  636. (inf_ptrace_target): Don't remember result.
  637. * inferior.h (fork_inferior): Adjust prototype.
  638. * linux-nat.c (linux_nat_create_inferior, linux_nat_attach)
  639. (linux_nat_detach, linux_nat_mourn_inferior): New parameter ops.
  640. Pass it to linux_ops target.
  641. * linux-thread-db.c (thread_db_detach, thread_db_mourn_inferior):
  642. New parameter ops. Pass it to the target beneath.
  643. * remote.c (remote_mourn, extended_remote_mourn, remote_detach)
  644. (extended_remote_create_inferior): New parameter ops. Pass it
  645. further.
  646. * target.c (debug_to_attach, debug_to_detach)
  647. (debug_to_mourn_inferior): New parameter ops.
  648. (target_create_inferior): New.
  649. (update_current_target): Do not inherit to_attach, to_detach,
  650. to_create_inferiour, to_mourn_inferior. Do not default
  651. to_detach and to_mourn_inferior.
  652. (target_detach): Find the right target to use.
  653. (target_mourn_inferior): New.
  654. (find_default_attach, find_default_create_inferior): New parameter
  655. ops. Pass the found target when calling its method.
  656. (init_dummy_target): Provide fallback definition of to_detach.
  657. (target_attach): New.
  658. (debug_to_attach, debug_to_detach, debug_to_create_inferior)
  659. (debug_to_mourn_inferiour): New parameter ops.
  660. * aix-thread.c: Adjust.
  661. * bsd-uthread.c: Adjust.
  662. * gnu-nat.c: Adjust.
  663. * go32-nat.c: Adjust.
  664. * hpux-thread.c: Adjust.
  665. * inf-ttrace.c: Ajust.
  666. * monitor.c: Adjust.
  667. * nto-procfs.c: Adjust.
  668. * procfs.c: Adjust.
  669. * remote-m32r-sdi.c: Adjust.
  670. * remote-mips.c: Adjust.
  671. * remote-sim.c: Adjust.
  672. * rs6000-nat.c: Adjust.
  673. * sol-thread.c: Adjust.
  674. * win32-nat.c: Adjust.
  675. * dec-thread.c: Adjust.
  676. 2008-11-09 Vladimir Prus <vladimir@codesourcery.com>
  677. * thread.c (print_thread_info): Eliminate now useless checks
  678. for exited threads.
  679. 2008-11-06 Pedro Alves <pedro@codesourcery.com>
  680. * i386-dicos-tdep.c (i386_dicos_init_abi): Set decr_pc_after_break
  681. to 0.
  682. 2008-11-05 Pedro Alves <pedro@codesourcery.com>
  683. * remote.c (notice_new_inferiors): Add a new inferior only when
  684. we're going to add a new thread.
  685. 2008-11-05 Pedro Alves <pedro@codesourcery.com>
  686. * defs.h (add_inferior_continuation)
  687. (do_all_inferior_continuations)
  688. (discard_all_inferior_continuations): Declare.
  689. * utils.c (add_inferior_continuation)
  690. (do_all_inferior_continuations)
  691. (discard_all_inferior_continuations): New.
  692. * inferior.h (struct inferior) <continuations>: New field.
  693. * inferior.c (free_inferior): Discard all the inferior
  694. continuations.
  695. * inf-loop.c (inferior_event_handler): Do all current inferior
  696. continuations.
  697. * infcmd.c (attach_command): Register an inferior continuation
  698. instead of a thread continuation.
  699. * infrun.c (handle_inferior_event): If stop_soon is
  700. STOP_QUIETLY_NO_SIGSTOP, also expect a TARGET_SIGNAL_0.
  701. 2008-11-04 Pedro Alves <pedro@codesourcery.com>
  702. * inf-loop.c (inferior_event_handler): On INF_ERROR and
  703. INF_REG_EVENT throwing, don't call target_async or pop_target.
  704. Call pop_all_targets_above.
  705. * remote.c (remote_close): Call remote_terminal_ours. Don't call
  706. signal or target_async.
  707. 2008-11-04 Daniel Jacobowitz <dan@codesourcery.com>
  708. * eval.c (evaluate_subexp_standard): Assert that there is at
  709. least one array dimension.
  710. 2008-11-03 Vladimir Prus <vladimir@codesourcery.com>
  711. Make attach_command exception-safe
  712. * infcmd.c (attach_command): Call async_enable_stdin
  713. if exception is thrown.
  714. 2008-11-03 Pedro Alves <pedro@codesourcery.com>
  715. * gdbarch.sh (has_global_solist): Mention global breakpoints.
  716. * gdbarch.h: Regenerate.
  717. 2008-11-03 Pedro Alves <pedro@codesourcery.com>
  718. * remote.c (remote_start_remote): If the solib list is global,
  719. fetch libraries and insert breakpoints after connecting.
  720. * infcmd.c (post_create_inferior): If the solist is shared between
  721. inferiors, no need to refetch it on every new inferior.
  722. (detach_command): If the shared library list is shared between
  723. inferiors, then don't clear it on every inferior detach.
  724. * gdbarch.sh (has_global_solist): New.
  725. * i386-dicos-tdep.c (i386_dicos_init_abi): Set
  726. gdbarch_has_global_solist.
  727. * target.c (target_pre_inferior): If the shared library list is
  728. shared between inferiors, then don't clear it here, neither
  729. invalidate the memory regions or clear the target description.
  730. (target_detach): If the shared library list is shared between
  731. inferiors, then don't remove breakpoints from the target here.
  732. (target_disconnect): Comment.
  733. * solib.c (update_solib_list): Check for null_ptid.
  734. * breakpoint.c (insert_breakpoints, update_global_location_list):
  735. If the shared library list is shared between inferiors, insert
  736. breakpoints even if there's no execution.
  737. (breakpoint_init_inferior): If the shared library list is shared
  738. between inferiors, don't delete breakpoints or mark them
  739. uninserted here.
  740. * gdbarch.c, gdbarch.h: Regenerate.
  741. 2008-10-31 Pedro Alves <pedro@codesourcery.com>
  742. * inferior.h (inferior_ignoring_leading_exec_events): Delete
  743. declaration.
  744. 2008-10-31 Pedro Alves <pedro@codesourcery.com>
  745. * inferior.h (write_inferior_status_register): Delete.
  746. * infrun.c (write_inferior_status_register): Delete.
  747. 2008-10-30 Tom Tromey <tromey@redhat.com>
  748. * value.c (coerce_array): Use check_typedef.
  749. 2008-10-30 Tom Tromey <tromey@redhat.com>
  750. * cli/cli-logging.c (handle_redirections): Make a cleanup.
  751. * reggroups.c (maintenance_print_reggroups): Make a cleanup.
  752. * regcache.c (regcache_print): Make a cleanup.
  753. * maint.c (maintenance_print_architecture): Make a cleanup.
  754. * dummy-frame.c (maintenance_print_dummy_frames): Make a cleanup.
  755. 2008-10-30 Tom Tromey <tromey@redhat.com>
  756. * utils.c (make_cleanup_close): Use make_cleanup_dtor.
  757. (do_close_cleanup): Don't free 'fd'.
  758. 2008-10-30 Tom Tromey <tromey@redhat.com>
  759. * source.c (symtab_to_fullname): Test 'r >= 0'.
  760. (psymtab_to_fullname): Likewise.
  761. (get_filename_and_charpos): Make a cleanup.
  762. (forward_search_command): Likewise.
  763. (reverse_search_command): Likewise.
  764. * exec.c (exec_file_attach): Close scratch_chan on failure.
  765. * nto-procfs.c (procfs_open): Make a cleanup.
  766. (procfs_pidlist): Likewise.
  767. (do_closedir_cleanup): New function.
  768. 2008-10-30 Andreas Schwab <schwab@suse.de>
  769. * infcmd.c (construct_inferior_arguments): Handle newlines
  770. specially.
  771. 2008-10-30 Joel Brobecker <brobecker@adacore.com>
  772. * breakpoint.h (enum bptype): Delete bp_catch_exec.
  773. * breakpoint.c (insert_catchpoint): Remove handling for
  774. bp_catch_exec breakpoint kinds.
  775. (insert_bp_location, update_breakpoints_after_exec, remove_breakpoint)
  776. (ep_is_catchpoint, print_it_typical, bpstat_check_location),
  777. (bpstat_check_location, bpstat_what, print_one_breakpoint_location)
  778. (print_one_breakpoint_location, user_settable_breakpoint)
  779. (breakpoint_address_is_meaningful, adjust_breakpoint_address)
  780. (allocate_bp_location, mention, breakpoint_re_set_one)
  781. (disable_command, enable_command): Likewise.
  782. (create_exec_event_catchpoint): Delete.
  783. (insert_catch_exec, remove_catch_exec, breakpoint_hit_catch_exec)
  784. (print_it_catch_exec, print_one_catch_exec, print_mention_catch_exec):
  785. New functions.
  786. (catch_exec_breakpoint_ops): New static global.
  787. (catch_exec_command_1): Use create_catchpoint instead of
  788. create_exec_event_catchpoint to create the exec catchpoint.
  789. 2008-10-28 Tom Tromey <tromey@redhat.com>
  790. * Makefile.in (SUBDIR_CLI_OBS): Don't mention cli-utils.o.
  791. (SUBDIR_CLI_DEPS): Don't mention cli-utils.c.
  792. (HFILES_NO_SRCDIR): Don't mention cli-utils.h.
  793. (cli-utils.o): Remove.
  794. * cli/cli-utils.c: Remove.
  795. * cli/cli-utils.h: Remove.
  796. 2008-10-28 Tom Tromey <tromey@redhat.com>
  797. * varobj.c (value_get_print_value): Include valprint.h.
  798. (value_get_print_value): Use get_formatted_print_options.
  799. * value.h (struct value_print_options): Declare.
  800. (value_print, val_print, common_val_print, val_print_string):
  801. Update.
  802. * value.c: Include valprint.h.
  803. (show_values): Use get_user_print_options.
  804. (show_convenience): Likewise.
  805. * valprint.h (prettyprint_arrays, prettyprint_structs): Don't
  806. declare.
  807. (struct value_print_options): New type.
  808. (vtblprint, unionprint, addressprint, objectprint, print_max,
  809. inspect_it, repeat_count_threshold, output_format,
  810. stop_print_at_null): Don't declare.
  811. (user_print_options, get_user_print_options,
  812. get_raw_print_options, get_formatted_print_options): Declare.
  813. (print_array_indexes_p): Don't declare.
  814. (maybe_print_array_index, val_print_array_elements): Update.
  815. * valprint.c (print_max): Remove.
  816. (user_print_options): New global.
  817. (get_user_print_options, get_raw_print_options,
  818. get_formatted_print_options): New functions.
  819. (print_array_indexes, repeat_count_threshold, stop_print_at_null,
  820. prettyprint_structs, prettyprint_arrays, unionprint,
  821. addressprint): Remove.
  822. (val_print): Remove format, deref_ref, pretty arguments; add
  823. options. Update.
  824. (common_val_print): Likewise.
  825. (print_array_indexes_p): Remove.
  826. (maybe_print_array_index): Remove format, pretty arguments; add
  827. options. Update.
  828. (val_print_array_elements): Remove format, deref_ref, pretty
  829. arguments; add options. Update.
  830. (val_print_string): Add options argument. Update.
  831. (_initialize_valprint): Use user_print_options.
  832. (output_format): Remove.
  833. (set_output_radix_1): Use user_print_options.
  834. * typeprint.c: Include valprint.h.
  835. (objectprint): Don't declare.
  836. (whatis_exp): Use get_user_print_options.
  837. * tui/tui-regs.c: Include valprint.h.
  838. (tui_register_format): Use get_formatted_print_options.
  839. * tracepoint.c: Include valprint.h.
  840. (addressprint): Don't declare.
  841. (trace_mention): Use get_user_print_options.
  842. (tracepoints_info): Likewise.
  843. * stack.c (print_frame_args): Use get_raw_print_options.
  844. (print_frame_info): Use get_user_print_options.
  845. (print_frame): Likewise.
  846. * sh64-tdep.c: Include valprint.h
  847. (sh64_do_register): Use get_formatted_print_options.
  848. * scm-valprint.c (scm_inferior_print): Remove format, deref_ref,
  849. pretty arguments; add options.
  850. (scm_scmlist_print): Likewise. Update.
  851. (scm_scmval_print): Likewise.
  852. (scm_val_print): Likewise.
  853. (scm_value_print): Remove format, pretty arguments; add options.
  854. Update.
  855. * scm-lang.h (scm_value_print, scm_val_print, scm_scmval_print):
  856. Update.
  857. * scm-lang.c (scm_printstr): Add options argument.
  858. * python/python-value.c: Include valprint.h.
  859. (valpy_str): Use get_user_print_options.
  860. * printcmd.c: Include valprint.h.
  861. (addressprint): Don't declare.
  862. (inspect_it): Remove.
  863. (print_formatted): Remove format option; add options. Update.
  864. (print_scalar_formatted): Likewise.
  865. (print_address_demangle): Use get_user_print_options.
  866. (do_examine): Use get_formatted_print_options.
  867. (print_command_1): Likewise.
  868. (output_command): Use get_formatted_print_options.
  869. (do_one_display): Likewise.
  870. (print_variable_value): Use get_user_print_options.
  871. * p-valprint.c (pascal_val_print): Remove format, deref_ref,
  872. pretty arguments; add options. Update.
  873. (pascal_value_print): Remove format, pretty arguments; add
  874. options. Update.
  875. (vtblprint, objectprint): Don't declare.
  876. (pascal_static_field_print): Remove.
  877. (pascal_object_print_value_fields): Remove format, pretty
  878. arguments; add options. Update.
  879. (pascal_object_print_static_field): Likewise.
  880. (_initialize_pascal_valprint): Use user_print_options. Update.
  881. * p-lang.h (pascal_val_print, pascal_value_print,
  882. pascal_printstr, pascal_object_print_value_fields): Update.
  883. (vtblprint, static_field_print): Don't declare.
  884. * p-lang.c (pascal_printstr): Add options argument. Update.
  885. * objc-lang.c (objc_printstr): Add options argument. Update.
  886. * mt-tdep.c: Include valprint.h.
  887. (mt_registers_info): Use get_raw_print_options.
  888. * mips-tdep.c: Include valprint.h.
  889. (mips_print_fp_register): Use get_formatted_print_options.
  890. (mips_print_register): Likewise.
  891. * mi/mi-main.c: Include valprint.h.
  892. (get_register): Use get_user_print_options.
  893. (mi_cmd_data_evaluate_expression): Likewise.
  894. (mi_cmd_data_read_memory): Use get_formatted_print_options.
  895. * mi/mi-cmd-stack.c: Include valprint.h.
  896. (list_args_or_locals): Use get_raw_print_options.
  897. * m2-valprint.c (print_function_pointer_address): Add addressprint
  898. argument.
  899. (m2_print_long_set): Remove format, pretty arguments.
  900. (m2_print_unbounded_array): Remove format, deref_ref, pretty
  901. arguments; add options. Update.
  902. (print_unpacked_pointer): Remove format argument; add options.
  903. Now static. Update.
  904. (print_variable_at_address): Remove format, deref_ref, pretty
  905. arguments; add options. Update.
  906. (m2_print_array_contents): Likewise.
  907. (m2_val_print): Likewise.
  908. * m2-lang.h (m2_val_print): Update.
  909. * m2-lang.c (m2_printstr): Add options argument. Update.
  910. * language.h (struct value_print_options): Declare.
  911. (struct language_defn) <la_printstr>: Add options argument.
  912. <la_val_print>: Remove format, deref_ref, pretty argument; add
  913. options.
  914. <la_value_print>: Remove format, pretty arguments; add options.
  915. <la_print_array_index>: Likewise.
  916. (LA_VAL_PRINT, LA_VALUE_PRINT, LA_PRINT_STRING,
  917. LA_PRINT_ARRAY_INDEX): Update.
  918. (default_print_array_index): Update.
  919. * language.c (default_print_array_index): Remove format, pretty
  920. arguments; add options. Update.
  921. (unk_lang_printstr): Add options argument.
  922. (unk_lang_val_print): Remove format, deref_ref, pretty arguments;
  923. add options.
  924. (unk_lang_value_print): Remove format, pretty arguments; add
  925. options.
  926. * jv-valprint.c (java_value_print): Remove format, pretty
  927. arguments; add options. Update.
  928. (java_print_value_fields): Likewise.
  929. (java_val_print): Remove format, deref_ref, pretty arguments; add
  930. options. Update.
  931. * jv-lang.h (java_val_print, java_value_print): Declare.
  932. * infcmd.c: Include valprint.h.
  933. (print_return_value): Use get_raw_print_options.
  934. (default_print_registers_info): Use get_user_print_options,
  935. get_formatted_print_options.
  936. (registers_info): Use get_formatted_print_options.
  937. * gdbtypes.h (struct value_print_options): Declare.
  938. (print_scalar_formatted): Update.
  939. * f-valprint.c (f77_print_array_1): Remove format, deref_ref,
  940. pretty arguments; add options. Update.
  941. (f77_print_array): Likewise.
  942. (f_val_print): Likewise.
  943. * f-lang.h (f_val_print): Update.
  944. * f-lang.c (f_printstr): Add options argument. Update.
  945. (c_value_print): Update declaration.
  946. * expprint.c: Include valprint.h.
  947. (print_subexp_standard): Use get_raw_print_options,
  948. get_user_print_options.
  949. * eval.c: Include valprint.h.
  950. (objectprint): Don't declare.
  951. (evaluate_subexp_standard): Use get_user_print_options.
  952. * cp-valprint.c (vtblprint, objectprint, static_field_print):
  953. Remove.
  954. (cp_print_value_fields): Remove format, pretty arguments; add
  955. options. Update.
  956. (cp_print_value): Likewise.
  957. (cp_print_static_field): Likewise.
  958. (_initialize_cp_valprint): Use user_print_options. Update.
  959. * c-valprint.c (print_function_pointer_address): Add addressprint
  960. argument.
  961. (c_val_print): Remove format, deref_ref, pretty arguments; add
  962. options. Update.
  963. (c_value_print): Add options argument. Update.
  964. * c-lang.h (c_val_print, c_value_print, c_printstr): Update.
  965. (vtblprint, static_field_print): Don't declare.
  966. (cp_print_value_fields): Update.
  967. * c-lang.c (c_printstr): Add options argument. Update.
  968. * breakpoint.c: Include valprint.h.
  969. (addressprint): Don't declare.
  970. (watchpoint_value_print): Use get_user_print_options.
  971. (print_one_breakpoint_location): Likewise.
  972. (breakpoint_1, print_it_catch_fork, print_it_catch_vfork, mention,
  973. print_exception_catchpoint): Likewise.
  974. * auxv.c (fprint_target_auxv): Don't declare addressprint. Use
  975. get_user_print_options.
  976. * ada-valprint.c (struct ada_val_print_args): Remove format,
  977. deref_ref, and pretty; add options.
  978. (print_optional_low_bound): Add options argument.
  979. (val_print_packed_array_elements): Remove format and pretty
  980. arguments; add options. Update.
  981. (printstr): Add options argument. Update.
  982. (ada_printstr): Likewise.
  983. (ada_val_print): Remove format, deref_ref, pretty arguments; add
  984. options argument. Update.
  985. (ada_val_print_stub): Update.
  986. (ada_val_print_array): Remove format, deref_ref, pretty arguments;
  987. add options. Update.
  988. (ada_val_print_1): Likewise.
  989. (print_variant_part): Likewise.
  990. (ada_value_print): Remove format, pretty arguments; add options.
  991. Update.
  992. (print_record): Likewise.
  993. (print_field_values): Likewise.
  994. * ada-lang.h (ada_val_print, ada_value_print, ada_printstr):
  995. Update.
  996. * ada-lang.c (ada_print_array_index): Add options argument; remove
  997. format and pretty arguments.
  998. (print_one_exception): Use get_user_print_options.
  999. 2008-10-28 Tom Tromey <tromey@redhat.com>
  1000. * cli/cli-script.c (do_fclose_cleanup): Remove.
  1001. (script_from_file): Use make_cleanup_fclose.
  1002. * xml-tdesc.c (do_cleanup_fclose): Remove.
  1003. (fetch_xml_from_file): Use make_cleanup_fclose.
  1004. * tracepoint.c (tracepoint_save_command): Use
  1005. make_cleanup_fclose. Always free pathname.
  1006. * source.c (print_source_lines_base): Use make_cleanup_fclose.
  1007. * remote.c (fclose_cleanup): Remove.
  1008. (remote_file_put): Use make_cleanup_fclose.
  1009. (remote_file_get): Likewise.
  1010. * linux-nat.c (linux_nat_find_memory_regions): Use
  1011. make_cleanup_fclose.
  1012. (linux_nat_info_proc_cmd): Likewise.
  1013. (linux_proc_pending_signals): Likewise.
  1014. * fbsd-nat.c (fbsd_find_memory_regions): Use make_cleanup_fclose.
  1015. Free file name.
  1016. * cli/cli-dump.c (do_fclose_cleanup): Remove.
  1017. (make_cleanup_fclose): Remove.
  1018. * defs.h (make_cleanup_fclose): Declare.
  1019. * utils.c (do_fclose_cleanup): New function.
  1020. (make_cleanup_fclose): Likewise.
  1021. 2008-10-27 Pedro Alves <pedro@codesourcery.com>
  1022. * inflow.c (kill_command): If the target claims there is still
  1023. execution, don't clear the thread list.
  1024. 2008-10-27 Pedro Alves <pedro@codesourcery.com>
  1025. * cp-name-parser.y: Include defs.h instead of config.h.
  1026. (parse_escape): Rename to ...
  1027. (cp_parse_escape): ... this.
  1028. (yylex): Update.
  1029. (xfree) [TEST_CPNAMES]: New.
  1030. 2008-10-27 Pedro Alves <pedro@codesourcery.com>
  1031. * CONTRIBUTE: Mention autoconf 2.59 and configure.ac instead of
  1032. 2.13 and configure.in.
  1033. 2008-10-27 Pedro Alves <pedro@codesourcery.com>
  1034. * target.h (struct target_ops) <to_supports_multi_process>: New
  1035. field.
  1036. (target_supports_multi_process): New define.
  1037. * target.c (update_current_target): Inherit and de_fault
  1038. to_supports_multi_process.
  1039. * infcmd.c (attach_command): Allow attaching to multiple processes
  1040. if the target supports it.
  1041. (detach_command): If the target claims there is still execution,
  1042. don't clear the thread list.
  1043. * remote.c (remote_supports_multi_process): New.
  1044. (init_remote_ops): Register remote_supports_multi_process.
  1045. 2008-10-27 Pedro Alves <pedro@codesourcery.com>
  1046. * Makefile.in (.y.c, .l.c): sed free to xfree.
  1047. 2008-10-27 Pedro Alves <pedro@codesourcery.com>
  1048. * Makefile.in (INSTALLED_LIBS, CLIBS): Remove reference to
  1049. $(TM_CLIBS).
  1050. (CDEPS): Remove reference to $(TM_CDEPS).
  1051. 2008-10-26 Michael Snyder <msnyder@vmware.com>
  1052. * infrun.c (handle_inferior_event): Handle dynamic symbol
  1053. resolution in reverse.
  1054. 2008-10-25 Joel Brobecker <brobecker@adacore.com>
  1055. * infrun.c: Minor comment reformatting.
  1056. 2008-10-25 Pedro Alves <pedro@codesourcery.com>
  1057. * ada-exp.y (write_object_renaming): Use malloc instead of
  1058. xmalloc.
  1059. * p-exp.y (pop_current_type): Use free instead of xfree.
  1060. 2008-10-24 Pedro Alves <pedro@codesourcery.com>
  1061. * fork-child.c (startup_inferior): Only set threads not-executing
  1062. after getting all the pending execs. On TARGET_WAITKIND_IGNORE,
  1063. keep waiting, don't resume. On all other cases but
  1064. TARGET_WAITKIND_SIGNALLED and TARGET_WAITKIND_EXITED, switch to
  1065. the event ptid.
  1066. 2008-10-24 Pedro Alves <pedro@codesourcery.com>
  1067. Remote non-stop mode support.
  1068. * remote.c (pending_stop_reply): New.
  1069. (struct remote_state) <non_stop_aware, support_vCont_t>: New
  1070. fields.
  1071. (remote_async_inferior_event_token)
  1072. (remote_async_get_pending_events_token): New.
  1073. (notice_new_inferiors): New, abstracted out from record_currthread.
  1074. (record_currthread): Call it.
  1075. (remote_threads_info): Default threads to running in non-stop
  1076. mode. In non-stop mode, only qfThreadInfo is supported.
  1077. (remote_close): Discard all pending stop_replies. Close the event
  1078. sources.
  1079. (set_stop_requested_callback): New.
  1080. (remote_start_remote): Implement non-stop mode startup. In
  1081. all-stop, don't clear the thread list here.
  1082. (remote_non_stop_feature): New.
  1083. (remote_protocol_features): Add a "QNonStop" feature.
  1084. (remote_open_1): Clear cached_wait_status and non_stop_aware.
  1085. Clear the thread list here.
  1086. (remote_detach_1): Discard pending stop replies of the process we
  1087. detached from.
  1088. (extended_remote_attach_1): Implement non-stop mode.
  1089. (remote_vcont_probe): Recognize `vCont;t'.
  1090. (remote_vcont_resume): Implement non-stop mode.
  1091. (remote_resume): Don't set waiting_for_stop_reply in non-stop
  1092. mode.
  1093. (remote_stop_ns): New.
  1094. (remote_stop): Rename to ...
  1095. (remote_stop_as): ... this. If we have a cached wait status,
  1096. don't bother interrupting the remote.
  1097. (remote_stop): Reimplement as wrapper around remote_stop_as and
  1098. remote_stop_ns.
  1099. (interrupt_query): Don't query in async mode.
  1100. (struct cached_reg, cahed_reg_t): New.
  1101. (struct stop_reply): New.
  1102. (stop_reply_queue): New.
  1103. (stop_reply_xmalloc, stop_reply_xfree)
  1104. (discard_pending_stop_replies, do_stop_reply_xfree)
  1105. (queued_stop_reply, push_stop_reply, peek_stop_reply)
  1106. (remote_parse_stop_reply, remote_get_pending_stop_replies)
  1107. (process_stop_reply): New.
  1108. (remote_wait_ns): New.
  1109. (remote_wait_as): Use remote_parse_stop_reply. Invalidate the
  1110. notion of current general thread is a process exit was reported.
  1111. (remote_wait): Call remote_wait_ns in non-stop mode.
  1112. (handle_notification): New.
  1113. (putpkt_binary): Handle notifications. Don't care for
  1114. waiting_for_stop_reply in non-stop mode.
  1115. (getpkt_sane): Rename to ...
  1116. (getpkt_or_notif_sane_1): ... this. Add `expecting_notif'
  1117. argument. Handle it. Handle notifications.
  1118. (getpkt_sane): Reimplement as wrapper around getpkt_or_notif_sane_1.
  1119. (getpkt_or_notif_sane): New.
  1120. (select_new_thread_callback): Check for exited state instead of
  1121. comparing the ptid against minus_one_ptid.
  1122. (extended_remote_create_inferior_1): Query the remote about the
  1123. current thread.
  1124. (remote_supports_non_stop): New.
  1125. (init_remote_ops): Register it.
  1126. (remote_async_inferior_event_handler): New.
  1127. (remote_async_get_pending_events_handler): New.
  1128. * infcmd.c (proceed_thread_callback): Comment.
  1129. (proceed_after_attach_callback, proceed_after_attach): New.
  1130. (attach_command_post_wait): In background attach, resume all
  1131. threads, but only if they are unsignalled, and not explicitly
  1132. stopped. In foreground attach, in non-stop mode, make sure to
  1133. stop all threads of the just attached to process.
  1134. (attach_command): In non-stop mode: If doing a background attach,
  1135. stop at least one thread. If a foreground attach, stop all
  1136. threads.
  1137. 2008-10-24 Pedro Alves <pedro@codesourcery.com>
  1138. * event-loop.h: Mention async_event_handlers.
  1139. (async_event_handler): Forward declare.
  1140. (async_event_handler_func): New typedef.
  1141. (create_async_event_handler, delete_async_event_handler)
  1142. (mark_async_event_handler): Declare.
  1143. * event-loop.c (event_data): New.
  1144. (event_handler_func): Take an event_data instead of an integer.
  1145. (struct gdb_event): Replace the integer file descriptor by a
  1146. generic event_data.
  1147. (async_event_handler): New.
  1148. (async_handler_ready): Delete.
  1149. (async_event_handler_list): New.
  1150. (create_event): New.
  1151. (create_file_event): Use it.
  1152. (process_event): Adjust.
  1153. (gdb_do_one_event): Poll from the event sources in round-robin
  1154. fashion across calls. Be sure to consult all sources before
  1155. blocking.
  1156. (handle_file_event): Take an event_data instead of an integer.
  1157. Adjust.
  1158. (gdb_wait_for_event): Add `block' argument. Handle it.
  1159. (mark_async_signal_handler): Remove unneeded cast.
  1160. (invoke_async_signal_handler): Rename to ...
  1161. (invoke_async_signal_handlres): ... this. Return true if any was
  1162. handled.
  1163. (check_async_ready): Delete
  1164. (create_async_event_handler): New.
  1165. (mark_async_event_handler): New.
  1166. (struct async_event_handler_data): New.
  1167. (invoke_async_event_handler): New.
  1168. (check_async_event_handlers): New.
  1169. (delete_async_event_handler): New.
  1170. (handle_timer_event): Adjust.
  1171. 2008-10-24 Doug Evans <dje@google.com>
  1172. * dwarf2read.c (typename_concat): Don't segv if prefix or suffix
  1173. is NULL. Simplify obs == NULL case.
  1174. 2008-10-24 Hui Zhu <teawater@gmail.com>
  1175. Pedro Alves <pedro@codesourcery.com>
  1176. * infrun.c (can_use_displaced_stepping): Change type to
  1177. const char pointer.
  1178. (can_use_displaced_stepping_auto): New string.
  1179. (can_use_displaced_stepping_on): New string.
  1180. (can_use_displaced_stepping_off): New string.
  1181. (can_use_displaced_stepping_enum): New array.
  1182. (show_can_use_displaced_stepping): In auto mode, also show
  1183. the current effect of the option.
  1184. (use_displaced_stepping): Return non-zero if displaced
  1185. stepping is auto, and can be used with GDBARCH, and in
  1186. non-stop mode. Return non-zero if displaced stepping is on,
  1187. and can be used with GDBARCH. Return zero otherwise.
  1188. (_initialize_infrun): Make the "set displaced-stepping"
  1189. command an enum command. Change its class to class_run.
  1190. Place it in the top level set list. Extend help to describe
  1191. the auto mode.
  1192. 2008-10-23 Pedro Alves <pedro@codesourcery.com>
  1193. * defs.h: Mention ptid_is_pid.
  1194. * inferior.h (ptid_is_pid): Declare.
  1195. * gdbthread.h (struct thread_info) <stop_requested>: New field.
  1196. (set_stop_requested): Declare.
  1197. * infcmd.c (interrupt_target_1): Call set_stop_requested.
  1198. * infrun.c (clear_proceed_status): Clear stop_requested.
  1199. (infrun_thread_stop_requested_callback,
  1200. infrun_thread_stop_requested): New.
  1201. (handle_inferior_event): If a TARGET_SIGNAL_TRAP is reported on a
  1202. thread that had an explicit stop request, pretend we got a
  1203. TARGET_SIGNAL_0. Always stop if the thread had an explicit stop
  1204. request.
  1205. (print_stop_reason): In the SIGNAL_RECEIVED case, if we're not
  1206. outputting to MI, and we got a TARGET_SIGNAL_0, print "# Stopped",
  1207. instead of mentioning signal 0.
  1208. (ptid_is_pid): New.
  1209. * thread.c (set_stop_requested): New.
  1210. * linux-nat.c (queued_waitpid): Rename to ...
  1211. (queued_waitpid_1): ... this. Add `peek' argument. Handle it.
  1212. (queued_waitpid): New, as wrapper to queued_waitpid_1.
  1213. (push_waitpid): Push the SIGTRAP to the local event queue, to the
  1214. kernel's.
  1215. (send_sigint_callback): Delete.
  1216. (linux_nat_stop_lwp): New.
  1217. (linux_nat_stop): Use it.
  1218. 2008-10-23 Paul Pluzhnikov <ppluzhnikov@google.com>
  1219. * python/python-value (valpy_getitem): Fix heap corruption.
  1220. 2008-10-23 Aleksandar Ristovski <aristovski@qnx.com>
  1221. * nto-procfs.c (do_attach): Form proper ptid including pid and tid.
  1222. (procfs_create_inferior): Fetch list of threads.
  1223. 2008-10-23 Aleksandar Ristovski <aristovski@qnx.com>
  1224. * nto-procfs.c (procfs_files_info): Fix a typo.
  1225. (procfs_create_inferior): Make attach_flag per-inferior.
  1226. 2008-10-23 Tom Tromey <tromey@redhat.com>
  1227. * python/python-value.c (value_to_value_object): Initialize
  1228. owned_by_gdb field.
  1229. (valpy_new): Likewise.
  1230. 2008-10-23 Jan Kratochvil <jan.kratochvil@redhat.com>
  1231. Joel Brobecker <brobecker@adacore.com>
  1232. * ada-tasks.c (task_states, long_task_states): Use constant N_()
  1233. initializer. Define the strings as const.
  1234. (short_task_info, info_task): Translate the strings above.
  1235. 2008-10-22 Joel Brobecker <brobecker@adacore.com>
  1236. * NEWS: Add entry for new feature (Ada tasking support).
  1237. 2008-10-22 Joel Brobecker <brobecker@adacore.com>
  1238. * configure.ac: On alpha-osf, error out if enable_tui is set to
  1239. "yes", and set enable_tui to "no" if previously set to "auto".
  1240. Check for waddstr only if TUI support was requested. Move the
  1241. part of the configure script that updates various Makefile
  1242. variables up, together with the check for waddstr.
  1243. * configure: Regenerate.
  1244. 2008-10-22 Joel brobecker <brobecker@adacore.com>
  1245. * gdbtypes.c (copy_type): New function.
  1246. * gdbtypes.h (copy_type): Add declaration.
  1247. * ada-lang.c (ada_to_fixed_type_1): If there is a parallel XVZ
  1248. variable, then use it.
  1249. 2008-10-22 Joel Brobecker <brobecker@adacore.com>
  1250. * target.h (struct target_ops): Add new field to_get_ada_task_ptid.
  1251. (target_get_ada_task_ptid): New macro.
  1252. * target.c (default_get_ada_task_ptid): New function.
  1253. (update_current_target): Inherit field default_get_ada_task_ptid.
  1254. (update_current_target): Make default_get_ada_task_ptid the default
  1255. value for field to_get_ada_task_ptid.
  1256. * ada-lang.h (struct task_control_block): Delete. Never used.
  1257. (struct task_ptid, task_ptid_t, struct task_entry, task_list):
  1258. Likewise.
  1259. (struct ada_task_info): New.
  1260. (ada_task_is_alive, ada_find_printable_frame)
  1261. (ada_task_list_iterator_ftype, iterate_over_live_ada_tasks): Add
  1262. declarations.
  1263. (ada_build_task_list): Update prototype.
  1264. (init_task_list, ada_is_exception_breakpoint): Remove prototypes.
  1265. * ada-lang.c (ada_find_printable_frame): Make non-static.
  1266. * ada-tasks.c: New file.
  1267. * Makefile.in (SFILES): Add ada-tasks.c.
  1268. (COMMON_OBS): Add ada-tasks.o.
  1269. * linux-thread-db.c (thread_db_find_thread_from_tid)
  1270. (thread_db_get_ada_task_ptid): New functions.
  1271. (init_thread_db_ops): Set thread_db_ops.to_get_ada_task_ptid.
  1272. 2008-10-22 Tom Tromey <tromey@redhat.com>
  1273. PR gdb/2506:
  1274. * c-exp.y (string_exp): New production.
  1275. (exp): Use it.
  1276. 2008-10-21 Jan Kratochvil <jan.kratochvil@redhat.com>
  1277. * mips-tdep.c (mips_n32n64_fp_arg_chunk_p): Update TYPE_FIELD_STATIC
  1278. removed before.
  1279. 2008-10-20 Joel Brobecker <brobecker@adacore.com>
  1280. * NEWS: Add entry mentioning thread-support on Tru64
  1281. 2008-10-19 Joel Brobecker <brobecker@adacore.com>
  1282. * dec-thread.c: New file.
  1283. * config/alpha/alpha-osf3.mh (NATDEPFILES): Add dec-thread.o.
  1284. (NAT_CLIBS): Define.
  1285. 2008-10-19 Hui Zhu <teawater@gmail.com>
  1286. * infrun.c (handle_inferior_event): Set "stop_pc" when
  1287. TARGET_WAITKIND_NO_HISTORY.
  1288. 2008-10-19 Pedro Alves <pedro@codesourcery.com>
  1289. * python/python-value.c (value_object_methods)
  1290. (value_object_as_number, value_object_as_mapping): Move to bottom
  1291. of file.
  1292. (valpy_dealloc, valpy_new, valpy_length, valpy_getitem)
  1293. (valpy_setitem, valpy_str, valpy_add, valpy_subtract)
  1294. (valpy_multiply, valpy_divide, valpy_remainder, valpy_power)
  1295. (valpy_negative, valpy_positive, valpy_absolute, valpy_nonzero)
  1296. (valpy_richcompare, valpy_dereference): Don't forward-declare.
  1297. (valpy_length) [HAVE_LIBPYTHON2_4]: Change return type to `int'.
  1298. 2008-10-18 Pedro Alves <pedro@codesourcery.com>
  1299. * infrun.c (adjust_pc_after_break): Do nothing if executing in
  1300. reverse.
  1301. 2008-10-17 Pedro Alves <pedro@codesourcery.com>
  1302. * infcmd.c (GO_USAGE): Delete.
  1303. (go_command): Adjust.
  1304. 2008-10-17 Michael Snyder <msnyder@vmware.com>
  1305. Target interface for reverse debugging.
  1306. * target.h (enum target_waitkind):
  1307. Add new wait event, TARGET_WAITKIND_NO_HISTORY.
  1308. (struct target_ops): New method to_can_execute_reverse.
  1309. (target_can_execute_reverse): New macro.
  1310. * target.c (update_current_target): Inherit to_can_execute_reverse.
  1311. Remote interface for reverse debugging.
  1312. * remote.c (remote_can_execute_reverse): New target method.
  1313. (remote_resume): Check for reverse exec direction, and send
  1314. appropriate command to target.
  1315. (remote_wait_as): Check target response for NO_HISTORY status.
  1316. Also check for empty reply (target doesn't understand "bs" or "bc).
  1317. (remote_vcont_resume): Jump out if attempting reverse execution.
  1318. Event handling interface for reverse debugging.
  1319. * infrun.c (execution_direction): New state variable.
  1320. (enum inferior_stop_reason): Add NO_HISTORY reason.
  1321. (handle_inferior_event): Handle TARGET_WAITKIND_NO_HISTORY.
  1322. Handle stepping over a function call in reverse.
  1323. Handle stepping thru a line range in reverse.
  1324. Handle setting a step-resume breakpoint in reverse.
  1325. Handle stepping into a function in reverse.
  1326. Handle stepping between line ranges in reverse.
  1327. (print_stop_reason): Print reason for NO_HISTORY.
  1328. (step_into_function): Rename to handle_step_into_function.
  1329. (handle_step_into_function_backward): New function.
  1330. (set_exec_direction_func, show_exec_direction_func): New funcs.
  1331. (proceed): No need to singlestep over a breakpoint
  1332. when resuming in reverse.
  1333. * inferior.h (enum exec_direction_kind): New enum.
  1334. (execution_direction): Export new execution state variable.
  1335. * breakpoint.c (make_breakpoint_silent): New function.
  1336. * breakpoint.h (make_breakpoint_silent): Export.
  1337. * infcmd.c (finish_command): Check for reverse exec direction.
  1338. (finish_backward): New function, handle finish cmd in reverse.
  1339. User interface for reverse execution.
  1340. * Makefile.in (reverse.c): New file.
  1341. * reverse.c: New file. User interface for reverse execution.
  1342. 2008-10-17 Pedro Alves <pedro@codesourcery.com>
  1343. * remote.c (record_currthread): Add inferior before child threads.
  1344. (remote_threads_info): Check for exited threads. Mention
  1345. notification order.
  1346. 2008-10-16 Joel Brobecker <brobecker@adacore.com>
  1347. * breakpoint.h (enum bptype): New enum bp_catchpoint.
  1348. Delete bp_catch_fork and bp_catch_vfork.
  1349. (struct breakpoint_ops): Add new methods "insert", "remove"
  1350. and "breakpoint_hit".
  1351. * breakpoint.c (create_fork_vfork_event_catchpoint)
  1352. (create_fork_event_catchpoint, create_vfork_event_catchpoint): Remove.
  1353. (insert_catchpoint): Remove handling of bp_catch_fork and
  1354. bp_catch_vfork catchpoints, and handle them as bp_catchpoint
  1355. catchpoints instead.
  1356. (insert_bp_location, update_breakpoints_after_exec)
  1357. (remove_breakpoint, bpstat_check_location, bpstat_what)
  1358. (allocate_bp_location): Likewise.
  1359. (print_it_typical, print_one_breakpoint_location, mention): Remove
  1360. handling of bp_catch_fork and bp_catch_vfork breakpoints.
  1361. (ep_is_catchpoint, user_settable_breakpoint)
  1362. (breakpoint_address_is_meaningful, adjust_breakpoint_address)
  1363. (breakpoint_re_set_one, disable_command, enable_command):
  1364. Remove use of bp_catch_fork and bp_catch_vfork. Add handling of
  1365. bp_catchpoint breakpoints.
  1366. (insert_catch_fork, remove_catch_fork, breakpoint_hit_catch_fork)
  1367. (print_it_catch_fork, print_one_catch_fork, print_mention_catch_fork):
  1368. New functions.
  1369. (catch_fork_breakpoint_ops): New static constant.
  1370. (insert_catch_vfork, remove_catch_vfork, breakpoint_hit_catch_vfork)
  1371. (print_it_catch_vfork, print_one_catch_vfork)
  1372. (print_mention_catch_vfork): New functions.
  1373. (catch_vfork_breakpoint_ops): New static constant.
  1374. (create_catchpoint, create_fork_vfork_event_catchpoint): New functions.
  1375. (catch_fork_command_1): Use create_fork_vfork_event_catchpoint
  1376. to create the fork and vfork catchpoints.
  1377. (gnu_v3_exception_catchpoint_ops): Set new breakpoint_ops fields.
  1378. * ada-lang.c (catch_exception_breakpoint_ops): Set new breakpoint_ops
  1379. fields.
  1380. (catch_exception_unhandled_breakpoint_ops): Likewise.
  1381. (catch_assert_breakpoint_ops): Likewise.
  1382. 2008-10-16 Pedro Alves <pedro@codesourcery.com>
  1383. * remote.c (set_general_process): New.
  1384. (remote_check_symbols): Use it.
  1385. 2008-10-16 Pedro Alves <pedro@codesourcery.com>
  1386. * remote.c (push_remote_target): Delete.
  1387. * target.h (push_remote_target): Delete declaration.
  1388. 2008-10-15 Pedro Alves <pedro@codesourcery.com>
  1389. * remote.c (remote_close): Unregister remote_desc from the event
  1390. loop. Always restore the SIGINT handler. Discard all inferiors
  1391. here.
  1392. (remote_detach_1, remote_disconnect): Don't unregister the file
  1393. descriptor from the event loop here.
  1394. (interrupt_query, readchar, getpkt_sane): Pop the target instead
  1395. of morning the current inferior.
  1396. (remote_kill): Don't unregister the file descriptor from the event
  1397. loop here.
  1398. (remote_mourn_1): Don't discard inferiors here.
  1399. 2008-10-15 Pedro Alves <pedro@codesourcery.com>
  1400. * breakpoint.c (breakpoint_init_inferior): Clean up the moribund
  1401. locations list.
  1402. (moribund_breakpoint_here_p): Record the moribund
  1403. location in the moribund_locations vector.
  1404. * breakpoint.h (moribund_breakpoint_here_p): Declare.
  1405. (displaced_step_fixup): Check if the breakpoint the thread was
  1406. trying to step over has been removed since having been placed in
  1407. the displaced stepping queue.
  1408. (adjust_pc_after_break): In non-stop mode, check for a moribund
  1409. breakpoint at the stop pc.
  1410. (handle_inferior_event): Don't retire moribund breakpoints on
  1411. TARGET_WAITKIND_IGNORE.
  1412. 2008-10-15 Pedro Alves <pedro@codesourcery.com>
  1413. * infrun.c (displaced_step_prepare): Switch thread temporarily
  1414. while we're here.
  1415. (displaced_step_fixup): Make sure target_resume sees ptid as
  1416. inferior_ptid. Add debug output.
  1417. 2008-10-14 Pedro Alves <pedro@codesourcery.com>
  1418. Remove dead code.
  1419. * breakpoint.c (show_breakpoint_hit_counts): Delete.
  1420. (print_one_breakpoint_location): Adjust.
  1421. (breakpoint_clear_ignore_counts): Delete.
  1422. * breakpoint.h (breakpoint_clear_ignore_counts): Remove
  1423. declaration.
  1424. * target.c (generic_mourn_inferior): Don't clear ignore
  1425. counts (never reached).
  1426. 2008-10-10 Doug Evans <dje@google.com>
  1427. * dwarf2read.c (comp_unit_head): Use unsigned int consistently
  1428. for dwarf section offsets and sizes.
  1429. (dwarf2_cu): Ditto.
  1430. (dwarf2_per_cu_data): Ditto.
  1431. (create_all_comp_units): Change offset to unsigned int.
  1432. (load_full_comp_unit,find_partial_die_in_comp_unit,find_partial_die,
  1433. dwarf2_find_containing_comp_unit,dwarf2_find_comp_unit): Ditto.
  1434. * dwarf2read.c (read_initial_length): Delete cu_header arg.
  1435. All callers updated.
  1436. (read_checked_initial_length_and_offset): New function.
  1437. (read_offset_1): New function.
  1438. (read_offset): Call it.
  1439. (dwarf_decode_line_header): Call read_checked_initial_length_and_offset
  1440. instead of read_initial_length. Call read_offset_1 instead of
  1441. read_offset.
  1442. * dwarf2read.c (dwarf2_get_ref_die_offset): Remove unused arg `cu'.
  1443. All callers updated.
  1444. * dwarf2read.c (dwarf_attr_name): Unconditionally support all
  1445. DW_AT_MIPS_* except DW_AT_MIPS_fde which collides with
  1446. DW_AT_HP_block_index.
  1447. 2008-10-10 Pedro Alves <pedro@codesourcery.com>
  1448. * remote.c (remote_start_remote): Always tell the stub if we're in
  1449. extended-remote.
  1450. 2008-10-09 Pedro Alves <pedro@codesourcery.com>
  1451. * remote.c (remote_wait): Rename to...
  1452. (remote_wait_as): ... this. Don't loop here. If the remote
  1453. didn't stop, return TARGET_WAITKIND_IGNORE.
  1454. (remote_wait): New, reimplemented on top of remote_wait_as.
  1455. 2008-10-09 Thomas Schwinge <tschwinge@gnu.org>
  1456. * Makefile.in (gnu-nat.o): Revert the 2008-09-10 change, as the problem
  1457. is fixed upstream.
  1458. * reply_mig_hack.awk: Use the `BAD_TYPECHECK' macro.
  1459. * MAINTAINERS (Write After Approval): Add myself.
  1460. 2008-10-09 Pedro Alves <pedro@codesourcery.com>
  1461. Make it compile without warnings.
  1462. * procfs.c (create_procinfo): Initialize `parent'.
  1463. (dead_procinfo): Pass a constant string as format to error.
  1464. (procfs_address_to_host_pointer): Add cast to gdb_type *.
  1465. (procfs_find_LDT_entry): Adjust format string to long int
  1466. ptid.tid.
  1467. (procfs_xfer_partial): Adjust prototype. Add gdb_byte* cast.
  1468. (procfs_xfer_memory): Adjust prototype.
  1469. (info_mappings_callback, info_proc_mappings): Adjust to not pass a
  1470. variable as printf_filtered format.
  1471. (procfs_make_note_section): Change type of auxv local to gdb_byte.
  1472. * Makefile.in: Remove special rule.
  1473. 2008-10-09 Pedro Alves <pedro@codesourcery.com>
  1474. Daniel Jacobowitz <dan@codesourcery.com>
  1475. * remote.c (remote_open_1): Move acknowledging any pending ack,
  1476. querying supported features, activating noack mode, finding the
  1477. target description, enabling extended remote, and checking remote
  1478. symbols from here ...
  1479. (remote_start_remote): ... to here.
  1480. (remote_open_1): Don't pop the target if it is already gone.
  1481. * target.c (unpush_target): Check for the dummy target.
  1482. 2008-10-09 Pedro Alves <pedro@codesourcery.com>
  1483. * ser-mingw.c: Include "command.h".
  1484. (pipe_windows_open): Declare locals at the beginning of the scope.
  1485. 2008-10-08 Pedro Alves <pedro@codesourcery.com>
  1486. * remote.c (struct remote_state) <waiting_for_stop_reply>: New
  1487. field.
  1488. (remote_open_1): Clear waiting_for_stop_reply.
  1489. (remote_resume): Set waiting_for_stop_reply.
  1490. (remote_wait): Clear or set waiting_for_stop_reply accordingly.
  1491. (putpkt_binary): If we're in async mode and waiting for a stop
  1492. reply, bail out with an error.
  1493. (extended_remote_mourn_1): Clear waiting_for_stop_reply.
  1494. 2008-10-08 Pedro Alves <pedro@codesourcery.com>
  1495. * remote.c (remote_get_thread_info): If the remote doesn't support
  1496. the query, bail out.
  1497. 2008-10-08 Jan Kratochvil <jan.kratochvil@redhat.com>
  1498. Convert static_kind into loc_kind enum.
  1499. * gdbtypes.h (enum field_loc_kind): New.
  1500. (union field_location): New field dwarf_block.
  1501. (struct field): Rename static_kind as loc_kind.
  1502. (FIELD_STATIC_KIND): Rename to ...
  1503. (FIELD_LOC_KIND): ... here.
  1504. (TYPE_FIELD_STATIC_KIND): Rename to ...
  1505. (TYPE_FIELD_LOC_KIND): ... here and use there now new FIELD_LOC_KIND.
  1506. (TYPE_FIELD_STATIC_HAS_ADDR): Remove.
  1507. (TYPE_FIELD_STATIC): Remove.
  1508. (TYPE_FIELD_BITPOS): Reformat.
  1509. (SET_FIELD_BITPOS): New.
  1510. (FIELD_PHYSADDR): Rename to ...
  1511. (FIELD_STATIC_PHYSADDR): ... here.
  1512. (TYPE_FIELD_STATIC_PHYSADDR): Follow the FIELD_PHYSADDR rename.
  1513. (SET_FIELD_PHYSADDR): Use new FIELD_LOC_KIND.
  1514. (FIELD_PHYSNAME): Rename to ...
  1515. (FIELD_STATIC_PHYSNAME): ... here.
  1516. (TYPE_FIELD_STATIC_PHYSNAME): Follow the FIELD_PHYSNAME rename.
  1517. (SET_FIELD_PHYSNAME): Use new FIELD_LOC_KIND.
  1518. (FIELD_DWARF_BLOCK, TYPE_FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK): New.
  1519. (field_is_static): New declaration.
  1520. * gdbtypes.c (field_is_static): New function.
  1521. (copy_type_recursive): Update throughout.
  1522. * amd64-tdep.c, c-typeprint.c, coffread.c, cp-valprint.c, dwarf2read.c,
  1523. eval.c, jv-typeprint.c, jv-valprint.c, mdebugread.c, p-typeprint.c,
  1524. p-valprint.c, valops.c, value.c, varobj.c: Update throughout.
  1525. 2008-10-07 Thomas Schwinge <tschwinge@gnu.org>
  1526. Pedro Alves <pedro@codesourcery.com>
  1527. * gnu-nat.h: Rename `current_inferior' to `gnu_current_inf' to
  1528. avoid a name collision.
  1529. * gnu-nat.c: Likewise.
  1530. * i386gnu-nat.c: Likewise.
  1531. 2008-10-07 Joel Brobecker <brobecker@adacore.com>
  1532. * ada-lang.c (ada_evaluate_subexp) [OP_ATR_SIZE]: Add handling
  1533. of arguments that are references.
  1534. 2008-10-06 Doug Evans <dje@google.com>
  1535. * dwarf2read.c (dwarf2_die_debug): New static global.
  1536. (dump_die_shallow): Renamed from dump_die, New args f, indent.
  1537. Print to specified file, indented by the specified amount.
  1538. (dump_die_for_error): New fn. Point all existing callers of
  1539. dump_die here.
  1540. (dump_die_die_1,dump_die): New fns, replaces ...
  1541. (dump_die_list): ... deleted.
  1542. (read_die_and_children_1): Old contents of read_die_and_children
  1543. moved here.
  1544. (read_die_and_children): Rewrite.
  1545. (read_die_and_siblings): Call read_die_and_children_1 instead of
  1546. read_die_and_children.
  1547. (_initialize_dwarf2_read): New option "debug dwarf2-die".
  1548. * gdbinit.in (pdie): New macro.
  1549. * dwarf2read.c (offset_in_cu_p): New function.
  1550. (find_partial_die,follow_die_ref): Use it.
  1551. * symmisc.c (maintenance_info_symtabs): Watch for ^c.
  1552. (maintenance_info_psymtabs): Ditto.
  1553. 2008-10-05 Michael Snyder <msnyder@vmware.com>
  1554. * infrun.c (handle_inferior_event): Fix typo in comment.
  1555. 2008-10-04 Vladimir Prus <vladimir@codesourcery.com>
  1556. * mi/mi-interp.c (mi_on_resume): Flush raw_stdout.
  1557. 2008-10-03 Paul Pluzhnikov <ppluzhnikov@google.com>
  1558. PR gdb/2384:
  1559. * gdbtypes.c (get_vptr_fieldno): baseclass and basetype may have
  1560. different lifetimes.
  1561. 2008-10-03 Joel Brobecker <brobecker@adacore.com>
  1562. * solib-osf.c: Include "solib.h".
  1563. 2008-10-03 Paul Pluzhnikov <ppluzhnikov@google.com>
  1564. * utils.c, defs.h (gdb_buildargv): New fn. Wrap buildargv
  1565. and check for out-of-memory condition.
  1566. * exec.c (exec_file_command): Call it.
  1567. * infrun.c (handle_command, xdb_handle_command): Likewise.
  1568. * interps.c (interpreter_exec_cmd): Likewise.
  1569. * linux-nat.c (linux_nat_info_proc_cmd): Likewise.
  1570. * procfs.c (info_proc_cmd): Likewise.
  1571. * remote-mips.c (common_open): Likewise.
  1572. * remote-sim.c (gdbsim_kill, gdbsim_create_inferior)
  1573. (gdbsim_open): Likewise.
  1574. * remote.c (extended_remote_run, remote_put_command)
  1575. (remote_get_command, remote_delete_command): Likewise.
  1576. * ser-mingw.c (pipe_windows_open): Likesise.
  1577. * source.c (add_path, show_substitute_path_command)
  1578. (unset_substitute_path_command, set_substitute_path_command):
  1579. Likewise.
  1580. * stack.c (backtrace_command): Likewise.
  1581. * symfile.c (symbol_file_command, generic_load)
  1582. (add_symbol_file_command): Likesise.
  1583. * symmisc.c (maintenance_print_symbols, maintenance_print_psymbols)
  1584. (maintenance_print_msymbols): Likewise.
  1585. 2008-10-02 Jan Kratochvil <jan.kratochvil@redhat.com>
  1586. Replace TYPE_ARRAY_{UPPER,LOWER}_BOUND_TYPE by a bit if {un,}defined.
  1587. * c-typeprint.c (c_type_print_varspec_suffix), m2-typeprint.c
  1588. (m2_array), p-typeprint.c (pascal_type_print_varspec_prefix),
  1589. valops.c (value_cast), varobj.c (c_number_of_children): Replace
  1590. TYPE_ARRAY_UPPER_BOUND_TYPE compared to BOUND_CANNOT_BE_DETERMINED by
  1591. TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
  1592. * parse.c (follow_types): Use TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
  1593. * f-valprint.c (f77_get_dynamic_upperbound): Replace with ...
  1594. (f77_get_upperbound): ... this function handling now only
  1595. TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
  1596. (f77_get_dynamic_lowerbound): Replace with ...
  1597. (f77_get_lowerbound): ... this function handling now only
  1598. TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED.
  1599. (f77_get_dynamic_length_of_aggregate, f77_create_arrayprint_offset_tbl):
  1600. Update their callers.
  1601. * eval.c (evaluate_subexp_standard): Update their callers.
  1602. * f-lang.h (f77_get_dynamic_upperbound, f77_get_upperbound)
  1603. (f77_get_dynamic_lowerbound, f77_get_lowerbound): Update their
  1604. prototypes.
  1605. (BOUND_FETCH_OK, BOUND_FETCH_ERROR): Remove.
  1606. * f-typeprint.c (f_type_print_varspec_suffix, f_type_print_base): Remove
  1607. the lower_bound_was_default variable. Update the
  1608. f77_get_dynamic_upperbound, f77_get_upperbound and
  1609. TYPE_ARRAY_UPPER_BOUND_TYPE calls.
  1610. * gdbtypes.c (print_bound_type): Remove the function.
  1611. (recursive_dump_type): Remove its calls printing UPPER_BOUND_TYPE and
  1612. LOWER_BOUND_TYPE.
  1613. * gdbtypes.h (enum array_bound_type): Remove.
  1614. (struct main_type): Remove the fields upper_bound_type and
  1615. lower_bound_type. Comment the new overload of the field artificial.
  1616. (TYPE_ARRAY_UPPER_BOUND_TYPE): Replace by ...
  1617. (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): ... this macro.
  1618. (TYPE_ARRAY_LOWER_BOUND_TYPE): Replace by ...
  1619. (TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): ... this macro.
  1620. 2008-10-02 Tom Tromey <tromey@redhat.com>
  1621. * Makefile.in (HFILES_NO_SRCDIR): Remove gdb-events.h, gstdint.h.
  1622. 2008-10-02 Daniel Jacobowitz <dan@codesourcery.com>
  1623. * mips-linux-tdep.c (mips_linux_in_dynsym_resolve_code): Update
  1624. comments.
  1625. (mips_linux_skip_resolver): Also use glibc_skip_solib_resolver.
  1626. (mips_linux_init_abi): Do not override skip_trampoline_code.
  1627. * configure.tgt (mips*-*-linux*): Add glibc-tdep.o.
  1628. * mips-tdep.c (mips32_scan_prologue): Stop scanning at branches.
  1629. (mips_stub_frame_sniffer): Use the stub frame sniffer for PIC stubs.
  1630. (mips_skip_mips16_trampoline_code): Rename from
  1631. mips_skip_trampoline_code.
  1632. (mips_skip_pic_trampoline_code, mips_skip_trampoline_code): New.
  1633. * infrun.c (handle_inferior_event): Do not pass zero to
  1634. in_solib_dynsym_resolve_code.
  1635. 2008-10-02 Pierre Muller <muller@ics.u-strasbg.fr>
  1636. Pedro Alves <pedro@codesourcery.com>
  1637. * win32-nat.c (do_initial_win32_stuff): Set inferior_ptid.
  1638. 2008-10-01 Tom Tromey <tromey@redhat.com>
  1639. * symtab.c (search_symbols): Update.
  1640. * symtab.h (domain_enum_tag) <METHODS_DOMAIN>: Remove.
  1641. 2008-10-01 Tom Tromey <tromey@redhat.com>
  1642. * symfile.c (syms_from_objfile): Update.
  1643. (reread_symbols): Update.
  1644. * objfiles.h (OBJF_SYMS): Remove.
  1645. (OBJF_REORDERED): Renumber.
  1646. (OBJF_SHARED): Likewise.
  1647. (OBJF_READNOW): Likewise.
  1648. (OBJF_USERLOADED): Likewise.
  1649. 2008-10-01 Tom Tromey <tromey@redhat.com>
  1650. * symtab.c (find_pc_sect_psymtab): Use MSYMBOL_TYPE.
  1651. (find_pc_sect_symtab): Likewise.
  1652. * symmisc.c (dump_msymbols): Use MSYMBOL_TYPE.
  1653. * solib-som.c (som_solib_desire_dynamic_linker_symbols): Use
  1654. MSYMBOL_TYPE, not SYMBOL_TYPE.
  1655. * parse.c (write_exp_msymbol): Use MSYMBOL_TYPE.
  1656. * objc-lang.c (find_methods): Use MSYMBOL_TYPE.
  1657. * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Use
  1658. MSYMBOL_TYPE.
  1659. * m2-exp.y (yylex): Use SYMBOL_CLASS.
  1660. 2008-10-01 Tom Tromey <tromey@redhat.com>
  1661. * xcoffread.c (RECORD_MINIMAL_SYMBOL): Update.
  1662. (scan_xcoff_symtab): Update.
  1663. * mdebugread.c (record_minimal_symbol): Update.
  1664. (parse_partial_symbols): Update.
  1665. * elfread.c (record_minimal_symbol): Update.
  1666. * dbxread.c (record_minimal_symbol): Update.
  1667. * coffread.c (record_minimal_symbol): Update.
  1668. * sh64-tdep.c (MSYMBOL_IS_SPECIAL): Redefine.
  1669. (sh64_elf_make_msymbol_special): Update.
  1670. * mips-tdep.c (mips_elf_make_msymbol_special): Use
  1671. MSYMBOL_TARGET_FLAG_1.
  1672. (mips_elf_make_msymbol_special): Likewise.
  1673. (msymbol_is_special): Likewise.
  1674. * minsyms.c (prim_record_minimal_symbol_and_info): Update.
  1675. (install_minimal_symbols): Likewise.
  1676. (prim_record_minimal_symbol): Update.
  1677. (prim_record_minimal_symbol_and_info): Remove 'info' argument.
  1678. * m68hc11-tdep.c (MSYMBOL_SET_RTC): Redefine.
  1679. (MSYMBOL_SET_RTI): Redefine.
  1680. (MSYMBOL_IS_RTC): Redefine.
  1681. (MSYMBOL_IS_RTI): Redefine.
  1682. * arm-tdep.c (MSYMBOL_SET_SPECIAL): Redefine.
  1683. (MSYMBOL_IS_SPECIAL): Redefine.
  1684. * symtab.h (struct minimal_symbol) <info>: Remove.
  1685. <target_flag_1, target_flag_2>: New fields.
  1686. (MSYMBOL_INFO): Remove.
  1687. (MSYMBOL_TARGET_FLAG_1): New macro.
  1688. (MSYMBOL_TARGET_FLAG_2): Likewise.
  1689. (prim_record_minimal_symbol_and_info): Update.
  1690. 2008-09-30 Joel Brobecker <brobecker@adacore.com>
  1691. * ada-lang.c (is_digits_suffix): Delete unused function.
  1692. 2008-09-30 Paul Hilfinger <hilfinger@adacore.com>
  1693. * ada-lang.c (ada_modulus): Correct to avoid sign problem with
  1694. moduli >= 2**31.
  1695. 2008-09-30 Paul Hilfinger <hilfinger@adacore.com>
  1696. * ada-lang.c (ada_lookup_struct_elt_type): Handle case of a "naked"
  1697. variant branch.
  1698. (empty_record): Use INIT_CPLUS_SPECIFIC, since this field is not
  1699. supposed to be null. Fixes debugger segfaults.
  1700. (is_unchecked_variant): New function.
  1701. (to_fixed_variant_branch_type): Modify to leave unchecked unions
  1702. untouched.
  1703. (ada_template_to_fixed_record_type_1): Fix comment.
  1704. 2008-09-30 Joel Brobecker <brobecker@adacore.com>
  1705. * ada-lang.c (standard_exc): New static constant.
  1706. (ada_exception_catchpoint_cond_string): Add special handling
  1707. for the predefined exceptions.
  1708. 2008-09-30 Joel Brobecker <brobecker@adacore.com>
  1709. * ada-lang.c (ADA_RETAIN_DOTS): Delete this dead macro. Update
  1710. the code accordingly.
  1711. 2008-09-30 Joel Brobecker <brobecker@adacore.com>
  1712. * ada-lang.c (ada_evaluate_subexp) [UNOP_IND]: Remove strange
  1713. treatment of expect_type. Return the correct type when dereferencing
  1714. an integer.
  1715. 2008-09-30 Tom Tromey <tromey@redhat.com>
  1716. PR gdb/2484:
  1717. * symtab.c (struct add_macro_name_data): New struct.
  1718. (add_macro_name): New function.
  1719. (default_make_symbol_completion_list): Complete macro names.
  1720. * scm-lang.c (scm_language_defn): Update.
  1721. * p-lang.c (pascal_language_defn): Update.
  1722. * objc-lang.c (objc_language_defn): Update.
  1723. * macrotab.h (macro_callback_fn): Add user_data argument.
  1724. (macro_for_each): Likewise.
  1725. (macro_for_each_in_scope): Declare.
  1726. * macrotab.c: (struct macro_for_each_data): New struct.
  1727. (foreach_macro): Use it.
  1728. (macro_for_each): Likewise.
  1729. (foreach_macro_in_scope): New function.
  1730. (macro_for_each_in_scope): Likewise.
  1731. * macrocmd.c (print_one_macro): Add argument.
  1732. (macro_list_command): Pass NULL to macro_for_each.
  1733. * m2-lang.c (m2_language_defn): Update.
  1734. * language.h (struct language_defn) <la_macro_expansion>: New
  1735. field.
  1736. (macro_expansion): New enum.
  1737. * language.c (unknown_language_defn): Update. Fix order of
  1738. initializers.
  1739. (auto_language_defn): Likewise.
  1740. (local_language_defn): Update.
  1741. * jv-lang.c (java_language_defn): Update.
  1742. * f-lang.c (f_language_defn): Update.
  1743. * c-lang.c (c_language_defn): Update.
  1744. (cplus_language_defn): Likewise.
  1745. (asm_language_defn): Likewise.
  1746. (minimal_language_defn): Likewise.
  1747. * ada-lang.c (ada_language_defn): Update.
  1748. 2008-09-30 Joel Brobecker <brobecker@adacore.com>
  1749. * dwarf2read.c (dwarf2_get_subprogram_pc_bounds): New function.
  1750. (get_scope_pc_bounds): Use it.
  1751. 2008-09-27 Tom Tromey <tromey@redhat.com>
  1752. * NEWS: Update.
  1753. * macrocmd.c (extract_identifier): Add is_parameter argument.
  1754. (macro_define_command): Update.
  1755. (macro_undef_command): Likewise.
  1756. * macroexp.c (stringify): New function.
  1757. (find_parameter): Likewise.
  1758. (gather_arguments): Add nargs argument. Handle varargs.
  1759. (substitute_args): Add is_varargs and va_arg_name arguments.
  1760. Handle varargs, splicing, stringification. Use find_parameter.
  1761. (expand): Handle varargs.
  1762. 2008-09-27 Tom Tromey <tromey@redhat.com>
  1763. * scm-lang.c (scm_language_defn): Update.
  1764. * p-typeprint.c (pascal_print_typedef): New function.
  1765. * p-lang.h: (pascal_print_typedef): Declare.
  1766. * p-lang.c (pascal_language_defn): Update.
  1767. * objc-lang.c (objc_language_defn): Update.
  1768. * m2-typeprint.c (m2_print_typedef): New function.
  1769. * m2-lang.h (m2_print_typedef): Declare.
  1770. * m2-lang.c (m2_language_defn): Update.
  1771. * language.h (_LANG_c, _LANG_m2, _LANG_fortran, _LANG_pascal):
  1772. Remove.
  1773. (struct language_defn) <la_print_typedef>: New field.
  1774. (default_print_typedef): Declare.
  1775. (LA_PRINT_TYPEDEF): New define.
  1776. * language.c (unknown_language_defn): Update.
  1777. (auto_language_defn): Update.
  1778. (local_language_defn): Update.
  1779. * jv-lang.c (java_language_defn): Update.
  1780. * f-lang.c (f_language_defn): Update.
  1781. * c-typeprint.c (c_print_typedef): New function.
  1782. * c-lang.h (c_print_typedef): Declare.
  1783. * c-lang.c (c_language_defn): Update.
  1784. (cplus_language_defn): Update.
  1785. (asm_language_defn): Update.
  1786. (minimal_language_defn): Update.
  1787. * ada-lang.c (ada_language_defn): Update.
  1788. * typeprint.c (default_print_typedef): New function.
  1789. 2008-09-27 Tom Tromey <tromey@redhat.com>
  1790. * jv-exp.y (insert_exp): Define using ISO syntax.
  1791. (copy_exp): Likewise.
  1792. (push_expression_name): Likewise.
  1793. (push_fieldnames): Likewise.
  1794. (java_type_from_name): Likewise.
  1795. (yyerror): Likewise.
  1796. (yylex): Likewise.
  1797. (parse_number): Likewise.
  1798. 2008-09-26 Joel Brobecker <brobecker@adacore.com>
  1799. * MAINTAINERS (GLOBAL MAINTAINERS): Add Pedro Alves.
  1800. 2008-09-25 Stephan Springl <springl-gdb@bfw-online.de> (tiny change)
  1801. * stack.c (print_frame_args): Fix typos in comments.
  1802. 2008-09-25 Sérgio Durigan Júnior <sergiodj@linux.vnet.ibm.com>
  1803. * linux-nat.c (get_pending_status): Fix argument to WIFSTOPPED.
  1804. 2008-09-24 Vladimir Prus <vladimir@codesourcery.com>
  1805. * remote-sim.c (gdbsim_create_inferior): Fix missing parenthesis.
  1806. 2008-09-24 Andreas Schwab <schwab@suse.de>
  1807. * frame.c (get_frame_register_bytes): Take pseudo registers into
  1808. account. Avoid excessive function calls.
  1809. 2008-09-23 Doug Evans <dje@google.com>
  1810. * dcache.c (state_chars): New static global.
  1811. (ENTRY_INVALID,ENTRY_VALID): Renamed from ENTRY_BAD,ENTRY_OK.
  1812. All uses updated.
  1813. (dcache_info): Print cache state as mnemonically useful letters instead
  1814. of magic numbers.
  1815. * dwarf2read.c (comp_unit_head): Reorganize for better packing.
  1816. 2008-09-22 Tom Tromey <tromey@redhat.com>
  1817. * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't use
  1818. printf_filtered.
  1819. 2008-09-22 Pedro Alves <pedro@codesourcery.com>
  1820. * infrun.c (follow_exec): Don't do a generic mourn. Instead
  1821. inline the required bits.
  1822. * breakpoint.h (enum inf_context): Add inf_execd.
  1823. 2008-09-22 Pedro Alves <pedro@codesourcery.com>
  1824. * infrun.c (handle_inferior_event): In the follow exec case,
  1825. context-switch before doing anything else.
  1826. 2008-09-22 Pedro Alves <pedro@codesourcery.com>
  1827. * top.c (any_thread_of, kill_or_detach): New functions.
  1828. (quit_target): Iterate over all inferiors, killing or detaching
  1829. accordingly.
  1830. 2008-09-22 Pedro Alves <pedro@codesourcery.com>
  1831. Remove the attach_flag global, and make it per-inferior.
  1832. * inferior.h (attach_flag): Delete.
  1833. (inferior_process): Declare.
  1834. * solib.c (update_solib_list): Adjust.
  1835. * gnu-nat.c (gnu_create_inferior, gnu_attach): Adjust.
  1836. * inf-ptrace.c (inf_ptrace_detach): Adjust.
  1837. (inf_ptrace_files_info): Get it from the current inferior.
  1838. * inf-ttrace.c (inf_ttrace_attach): Adjust.
  1839. (inf_ttrace_files_info): Get it from the current
  1840. inferior.
  1841. * inflow.c (terminal_inferior, terminal_ours_1, set_sigint_trap)
  1842. (clear_sigint_trap): Get it from the current process.
  1843. * remote.c (extended_remote_attach_1)
  1844. (extended_remote_create_inferior_1): Adjust.
  1845. * top.c (quit_confirm, quit_target): Get it from the current inferior.
  1846. * procfs.c (do_detach): Adjust.
  1847. (procfs_wait): Get it from the event inferior.
  1848. (procfs_files_info): Get it from the current inferior.
  1849. * nto-procfs.c (procfs_files_info): Likewise.
  1850. (procfs_attach): Adjust. Set the attach_flag here.
  1851. (do_attach): Don't set it here.
  1852. (procfs_detach): Don't clear it.
  1853. (procfs_mourn_inferior): Don't clear it.
  1854. * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
  1855. * target.c (attach_flag): Delete.
  1856. (generic_mourn_inferior): Don't clear it.
  1857. * win32-nat.c (get_win32_debug_event): Get it from the event
  1858. process.
  1859. (do_initial_win32_stuff): Add attaching argument. Set attach_flag
  1860. in the inferior accordingly.
  1861. (win32_attach): Don't set the attach_flag here. Pass 1 to
  1862. do_intial_win32_stuff.
  1863. (win32_files_info): Get it from the current inferior.
  1864. (win32_create_inferior): Dont clear attach_flag here. Pass 0 to
  1865. do_intial_win32_stuff.
  1866. 2008-09-22 Pedro Alves <pedro@codesourcery.com>
  1867. Make the stop_soon global be per-inferior instead.
  1868. * infcmd.c (attach_command_post_wait): Adjust.
  1869. (attach_command): Likewise.
  1870. * inferior.h (stop_soon): Delete.
  1871. (struct inferior): Add stop_soon member.
  1872. * infrun.c (stop_soon): Delete.
  1873. (clear_proceed_status, start_remote)
  1874. (fetch_inferior_event, handle_inferior_event): Adjust.
  1875. (signal_stop_state): Don't check stop_soon here. Check in callers
  1876. instead.
  1877. (save_inferior_status, restore_inferior_status): Adjust.
  1878. * linux-nat.c (linux_nat_resume, linux_nat_wait): Always pass
  1879. signals to common code if starting up the inferior.
  1880. * inferior.h (struct inferior_info): Added stop_soon member.
  1881. * inferior.c (add_inferior) Clear stop_soon.
  1882. * mips-tdep.c (heuristic_proc_start): Adjust.
  1883. * nto-procfs.c (procfs_create_inferior): Adjust.
  1884. * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
  1885. * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
  1886. * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
  1887. * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
  1888. * win32-nat.c (do_initial_win32_stuff): Adjust.
  1889. * alpha-tdep.c (alpha_heuristic_proc_start): Adjust.
  1890. 2008-09-22 Pedro Alves <pedro@codesourcery.com>
  1891. Implement remote multi-process extensions.
  1892. * remote.c (struct remote_state): Add extended and
  1893. multi_process_aware fields.
  1894. (remote_multi_process_p): New.
  1895. (PACKET_vKill): New.
  1896. (record_currthread): Use thread_change_ptid. Notice new
  1897. inferiors.
  1898. (set_thread, remote_thread_alive): Use write_ptid.
  1899. (write_ptid, read_ptid): New.
  1900. (remote_current_thread, remote_threads_extra_info): Use them.
  1901. (remote_threads_info): Likewise. Detect new inferiors.
  1902. (remote_start_remote): Add inferior to inferior list.
  1903. (remote_multi_process_feature): New.
  1904. (remote_protocol_features): Add "multiprocess" feature.
  1905. (remote_query_supported): Pass "multiprocess+" as supported
  1906. features.
  1907. (remote_open_1): Clear multi_process_aware. Set extended
  1908. accordingly.
  1909. (remote_detach_1): Detach current process. Use extended packet
  1910. format for extended-remote multi-process. Detach process from the
  1911. inferior list. Only mourn after printing output.
  1912. (extended_remote_attach_1): Add process to the inferior list.
  1913. (remote_vcont_resume): Use write_ptid to pass the thread ids.
  1914. (remote_wait): Use read_ptid. Implement the extended
  1915. multi-process extension format of the 'W' and 'X' reply packets.
  1916. Remove exited inferiors from inferior list.
  1917. (remote_xfer_memory): Set general thread.
  1918. (remote_vkill): New.
  1919. (extended_remote_kill): New.
  1920. (remote_mourn_1): Discard all inferiors.
  1921. (select_new_thread_callback): New.
  1922. (extended_remote_mourn_1): If there are more processes to debug,
  1923. switch to a thread in another process, and don't pop the target.
  1924. (extended_remote_create_inferior_1): Add the new process to the
  1925. inferior list.
  1926. (remote_stopped_by_watchpoint): Indenting.
  1927. (remote_xfer_partial): Set the general thread.
  1928. (remote_pid_to_str): If the remote is multi-process aware, print
  1929. the process id as well as the thread id.
  1930. (remote_get_thread_local_address): Use write_ptid.
  1931. (init_extended_remote_ops): Register extended_remote_kill.
  1932. (_initialize_remote): Register new packets. Change
  1933. magic_null_ptid's, not_sent_ptid's and any_thread_ptid's pid
  1934. member to 42000.
  1935. * thread.c (thread_change_ptid): Also account for the inferior pid
  1936. changing.
  1937. * inferior.h (discard_all_inferiors): Declare.
  1938. * inferior.c (discard_all_inferiors): New.
  1939. 2008-09-22 Pedro Alves <pedro@codesourcery.com>
  1940. * gnu-nat.c (gnu_attach): Add process to inferiors table.
  1941. (gnu_detach): Remove it.
  1942. * go32-nat.c (go32_create_inferior): Add process to gdb's inferior
  1943. table.
  1944. * inf-ptrace.c (inf_ptrace_follow_fork): Delete and add inferiors
  1945. to inferior table accordingly.
  1946. (inf_ptrace_attach): Add new process to inferior table.
  1947. (inf_ptrace_detach): Remove it.
  1948. * inf-ttrace.c (inf_ttrace_follow_fork): Delete and add inferiors
  1949. to inferior table accordingly.
  1950. (inf_ttrace_attach): Add process to inferior table.
  1951. (inf_ttrace_detach): Remove it.
  1952. * linux-fork.c (init_fork_list): Delete any left over inferior.
  1953. (linux_fork_mourn_inferior, detach_fork_command): Also delete
  1954. processes from inferior list.
  1955. * monitor.c (monitor_open): Add process to inferior list.
  1956. (monitor_close): Remove it.
  1957. * nto-procfs.c (procfs_attach): Add process to inferior list.
  1958. Find threads after pushing the target.
  1959. (procfs_detach): Remove process from inferior list.
  1960. (procfs_create_inferior): Add process to inferior list.
  1961. * procfs.c (procfs_detach): Remove process from inferior list.
  1962. (do_attach): Add process to inferior list.
  1963. * remote-sim.c (sim_create_inferior): Add process to inferior list.
  1964. (gdbsim_close): Remove it.
  1965. * target.c (generic_mourn_inferior): If inferior_ptid is not
  1966. null_ptid, remove the corresponding inferior from inferior list.
  1967. * win32-nat.c (do_initial_win32_stuff): Add process to inferior list.
  1968. (win32_detach): Remove it.
  1969. * linux-nat.c (linux_child_follow_fork): Delete and add inferiors
  1970. to inferior list accordingly.
  1971. * fork-child.c (fork_inferior): Add process to inferior list.
  1972. * corelow.c (CORELOW_PID): Define.
  1973. (core_close): Remove core from inferior list.
  1974. (core_open): Add it.
  1975. 2008-09-22 Pedro Alves <pedro@codesourcery.com>
  1976. * inferior.h: Forward declare struct ui_out.
  1977. Forward declare struct private_inferior.
  1978. (struct inferior): New.
  1979. (init_inferior_list, add_inferior, add_inferior_silent)
  1980. (delete_inferior, delete_inferior_silent, detach_inferior)
  1981. (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
  1982. (valid_inferior_id, find_inferior_pid): New functions.
  1983. (inferior_callback_func): New typedef.
  1984. (iterate_over_inferiors, print_inferior, have_inferiors)
  1985. (current_inferior): New functions.
  1986. * inferior.c: New file.
  1987. * Makefile.in (SFILES): Add inferior.c.
  1988. (COMMON_OBS): Add inferior.o.
  1989. 2008-09-22 Jonathan Larmour <jifl@eCosCentric.com>
  1990. * arm-tdep.c (arm_skip_prologue): Call skip_prologue_using_sal
  1991. instead of determining symbol and line info directly.
  1992. * MAINTAINERS: Update my email address.
  1993. 2008-09-22 Daniel Jacobowitz <dan@codesourcery.com>
  1994. * symtab.c (skip_prologue_using_sal): Treat two consecutive lines
  1995. at the same address as a prologue marker. Do not skip an entire
  1996. function.
  1997. 2008-09-22 Andrew Stubbs <ams@codesourcery.com>
  1998. * frame.c (get_frame_register_bytes): Comment improvments.
  1999. 2008-09-22 Pedro Alves <pedro@codesourcery.com>
  2000. * linux-nat.c (linux_nat_wait): Only use set_ignore_sigint in
  2001. all-stop mode.
  2002. 2008-09-19 Andrew Stubbs <ams@codesourcery.com>
  2003. * MAINTAINERS: Update my email address.
  2004. 2008-09-19 Andrew Stubbs <ams@codesourcery.com>
  2005. * frame.c (get_frame_register_bytes): Detect bad debug info.
  2006. 2008-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
  2007. Fix a crash on uninitialized ECS->EVENT_THREAD for a newly found thread.
  2008. * infrun.c (wait_for_inferior): Move this ECS->EVENT_THREAD
  2009. initialization ...
  2010. (fetch_inferior_event): ... and this ECS->EVENT_THREAD initialization
  2011. ...
  2012. (handle_inferior_event): ... here after the add_thread call together
  2013. with the local adjust_pc_after_break and reinit_frame_cache calls.
  2014. 2008-09-16 David Daney <ddaney@avtrex.com>
  2015. * breakpoint.c (bpstat_stop_status): Clear breakpoint_at for
  2016. all hardware bpstats.
  2017. 2008-09-16 Joel Brobecker <brobecker@adacore.com>
  2018. * gstdint.h: Delete.
  2019. 2008-09-15 Mark Kettenis <kettenis@gnu.org>
  2020. * infcall.c (generic_push_dummy_code): Remove.
  2021. (push_dummy_code): Unconditionally call gdbarch_push_dummy_code.
  2022. 2008-09-15 Doug Evans <dje@google.com>
  2023. * dwarf2read.c (struct abbrev_info): Make members name, form 16 bits.
  2024. (struct attribute): Ditto.
  2025. 2008-09-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
  2026. * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind_cache): Record
  2027. HPPA_IPSW_REGNUM and HPPA_SAR_REGNUM values.
  2028. * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum): Remove surrounding
  2029. "#if 0" "#endif". Fix mapping of DWARF DBX registers to GDB registers.
  2030. Correct arguments and improve comments.
  2031. (hppa_linux_init_abi): Call set_gdbarch_dwarf2_reg_to_regnum. Delete
  2032. disabled code.
  2033. * hppa-tdep.c (hppa64_dwarf_reg_to_regnum): Fix check for floating
  2034. point DBX register, change error to warning, and improve comments.
  2035. 2008-09-14 Doug Evans <dje@google.com>
  2036. * dwarf2read.c (struct die_info): Make members tag, num_attrs 16 bits.
  2037. 2008-09-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
  2038. * hppa-linux-tdep.c (hppa_linux_supply_fpregset): Correct iteration.
  2039. 2008-09-13 Joel Brobecker <brobecker@adacore.com>
  2040. * defs.h (GCC_GENERATED_STDINT_H): Define.
  2041. 2008-09-13 Tom Tromey <tromey@redhat.com>
  2042. * varobj.c (varobj_set_display_format): Use xfree.
  2043. * tracepoint.c (stringify_collection_list): Use xfree.
  2044. * remote-fileio.c (remote_fileio_reset): Use xfree.
  2045. * mipsread.c (read_alphacoff_dynamic_symtab): Use xfree.
  2046. * dfp.c (decimal_from_floating): Use xfree, xstrprintf. Don't use
  2047. asprintf.
  2048. * cp-support.c (mangled_name_to_comp): Use xfree.
  2049. 2008-09-13 Joel Brobecker <brobecker@adacore.com>
  2050. * ada-lang.c (remove_extra_symbols): Remove stub symbols if
  2051. the associated complete symbol is also in the list.
  2052. (ada_add_local_symbols, ada_add_non_local_symbols): New functions,
  2053. extracted out from ada_lookup_symbol_list.
  2054. (ada_lookup_symbol_list): Use them. Remove the search through
  2055. the minimal symbols.
  2056. 2008-09-13 Joel Brobecker <brobecker@adacore.com>
  2057. * dwarf2read.c (add_partial_subprogram): New procedure.
  2058. (scan_partial_symbols): Use it.
  2059. (load_partial_dies): Read in children of subprogram and lexical
  2060. blocks for Ada compilation units.
  2061. 2008-09-13 Tom Tromey <tromey@redhat.com>
  2062. * symfile.c (build_id_verify): Free 'found'.
  2063. (find_separate_debug_file): Use xfree, not free.
  2064. 2008-09-12 Doug Evans <dje@google.com>
  2065. * corefile.c (write_memory): Remove unnecessary copying.
  2066. * sol-thread.c (_initialize_sol_thread): Add FIXME regarding
  2067. order of _initialize_* fns.
  2068. * dwarf2read.c (comp_unit_head): Rename first_die_ptr to
  2069. first_die_offset. All uses updated.
  2070. Delete unused members cu_head_ptr, next.
  2071. Move members base_known, base_address to ...
  2072. (dwarf2_cu) ... here. All uses updated.
  2073. 2008-09-12 Pedro Alves <pedro@codesourcery.com>
  2074. * Makefile.in (generated_files): Add $(NAT_GENERATED_FILES).
  2075. * config/i386/i386gnu.mh (NAT_GENERATED_FILES): New.
  2076. 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
  2077. * fork-child.c (startup_inferior): Use target_wait and target_resume
  2078. directly instead of calling wait_for_inferior / resume.
  2079. * infcmd.c (kill_if_already_running): Do not call no_shared_libraries
  2080. or init_wait_for_inferior.
  2081. (run_command_1): Call init_wait_for_inferior.
  2082. 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
  2083. * gdbtypes.h (builtin_type_void_data_ptr, builtin_type_void_func_ptr,
  2084. builtin_type_CORE_ADDR, builtin_type_char, builtin_type_short,
  2085. builtin_type_int, builtin_type_long, builtin_type_signed_char,
  2086. builtin_type_unsigned_char, builtin_type_unsigned_short,
  2087. builtin_type_unsigned_int, builtin_type_unsigned_long,
  2088. builtin_type_float, builtin_type_double, builtin_type_long_double,
  2089. builtin_type_complex, builtin_type_double_complex, builtin_type_string,
  2090. builtin_type_bool, builtin_type_long_long,
  2091. builtin_type_unsigned_long_long): Remove macros.
  2092. (builtin_type_f_character, builtin_type_f_integer,
  2093. builtin_type_f_integer_s2, builtin_type_f_logical,
  2094. builtin_type_f_logical_s1, builtin_type_f_logical_s2,
  2095. builtin_type_f_real, builtin_type_f_real_s8, builtin_type_f_real_s16,
  2096. builtin_type_f_complex_s8, builtin_type_f_complex_s16,
  2097. builtin_type_f_complex_s32): Likewise.
  2098. (builtin_type_m2_char, builtin_type_m2_int, builtin_type_m2_card,
  2099. builtin_type_m2_real, builtin_type_m2_bool): Likewise.
  2100. (struct builtin_f_type, builtin_f_type): Move to f-lang.h.
  2101. (struct builtin_m2_type, builtin_m2_type): Move to m2-lang.h.
  2102. * f-lang.h (struct builtin_f_type, builtin_f_type): Move here.
  2103. * m2-lang.h (struct builtin_m2_type, builtin_m2_type): Move here.
  2104. 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
  2105. * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Use builtin types of
  2106. target_gdbarch instead of builtin_type_void_data_ptr.
  2107. (LM_DYNAMIC_FROM_LINK_MAP, LM_NEXT, LM_NAME,
  2108. IGNORE_FIRST_LINK_MAP_ENTRY, scan_dyntag, elf_locate_base,
  2109. solib_svr4_r_map, solib_svr4_r_brk, solib_svr4_r_ldsomap,
  2110. open_symbol_file_object): Likewise.
  2111. * nto-tdep.c (LM_ADDR): Likewise.
  2112. 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
  2113. * bsd-uthread.c (bsd_uthread_read_memory_address): New function.
  2114. (bsd_uthread_fetch_registers, bsd_uthread_store_registers,
  2115. bsd_uthread_wait, bsd_uthread_find_new_threads): Use it.
  2116. 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
  2117. * procfs.c (procfs_address_to_host_pointer): Use target_gdbarch
  2118. and its associated types to perform pointer conversion.
  2119. (procfs_can_use_hw_breakpoint): Likewise.
  2120. (procfs_auxv_parse): Remove unused variable.
  2121. 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
  2122. * auxv.c (default_auxv_parse): Use gdbarch_ptr_bit (target_gdbarch)
  2123. instead of builtin_type_void_data_ptr.
  2124. * target.c (default_region_ok_for_hw_watchpoint): Likewise.
  2125. 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
  2126. * expprint.c (print_subexp_standard): Compare against builtin type
  2127. associated with exp->gdbarch instead of builtin_type_char.
  2128. * f-valprint.c (f_val_print): Use extract_unsigned_integer to
  2129. extract values of arbitrary logical type. Handle arbitrary
  2130. complex types.
  2131. * printcmd.c (float_type_from_length): New function.
  2132. (print_scalar_formatted, printf_command): Use it.
  2133. 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
  2134. * valops.c: Include "objfiles.h" and "symtab.h".
  2135. (find_function_in_inferior): New argument OBJF_P. Use it to return
  2136. objfile where function is defined. Use per-objfile arch types
  2137. instead of builtin_type_ to define default return type.
  2138. * linux-fork.c (checkpoint_command): Update calls. Use per-objfile
  2139. architecture to define inferior call argument types.
  2140. * gcore.c (derive_heap_segment): Likewise.
  2141. * objc-lang.c (value_nsstring): Likewise.
  2142. * scm-lang.c (scm_lookup_name): Likewise.
  2143. * scm-valprint.c (scm_inferior_print): Likewise.
  2144. * valops.c (value_allocate_space_in_inferior): Likewise.
  2145. * eval.c (evaluate_subexp_standard): Update calls.
  2146. * objc-lang.c (lookup_objc_class, print_object_command): Likewise.
  2147. * linux-fork.c: Include "objfiles.h".
  2148. * scm-lang.c: Include "objfiles.h".
  2149. * scm-valprint.c: Include "objfiles.h".
  2150. 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
  2151. * gdbarch.sh (name_of_malloc): Remove.
  2152. * gdbarch.c, gdbarch.h: Re-generate.
  2153. * valops.c (value_allocate_space_in_inferior): Do not call
  2154. gdbarch_name_of_malloc.
  2155. 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
  2156. * valarith.c (value_x_unop): Use builtin_type_int8 as type for
  2157. UNOP_POSTINCREMENT/UNOP_POSTDECREMENT constant 0 argument.
  2158. (value_bit_index): Use extract_unsigned_integer
  2159. instead of unpack_long to read single byte.
  2160. 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
  2161. * infcall.c (value_arg_coerce): Add GDBARCH parameter. Use its
  2162. associates types instead of builtin_type_ macros.
  2163. (find_function_addr): Leave output VALUE_TYPE NULL if unknown.
  2164. (call_function_by_hand): Use per-architecture "int" type as
  2165. fall-back if find_function_addr returns NULL VALUE_TYPE.
  2166. Update call to value_arg_coerce.
  2167. 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
  2168. * cp-abi.h (cplus_method_ptr_size): Add TO_TYPE parameter.
  2169. (cplus_make_method_ptr): Add TYPE parameter.
  2170. * cp-abi.c (cplus_method_ptr_size): Add TO_TYPE parameter. Pass it
  2171. on to current_cp_abi.method_ptr_size callback.
  2172. (cplus_make_method_ptr): Add TYPE parameter. Pass it on to
  2173. current_cp_abi.make_method_ptr callback.
  2174. * gdbtypes.c (lookup_methodptr_type): Pass target type
  2175. argument to cplus_method_ptr_size.
  2176. * valops.c (value_cast): Pass type argument to cplus_make_method_ptr.
  2177. (value_struct_elt_for_reference): Likewise.
  2178. * gnu-v3-abi.c (get_class_arch): New function.
  2179. (vtable_address_point_offset): Add GDBARCH parameter. Use it
  2180. instead of current_gdbarch. Update all callers.
  2181. (gnuv3_get_vtable): Likewise.
  2182. (gnuv3_get_virtual_fn): Likewise.
  2183. (gnuv3_decode_method_ptr): Likewise.
  2184. (gnuv3_rtti_type): Call get_class_arch to determine architecture.
  2185. Use it instead of current_gdbarch.
  2186. (gnuv3_virtual_fn_field): Likewise.
  2187. (gnuv3_baseclass_offset): Likewise.
  2188. (gnuv3_print_method_ptr): Likewise.
  2189. (gnuv3_method_ptr_to_value): Likewise.
  2190. (gnuv3_method_ptr_size): Add TYPE parameter. Use it to determine
  2191. class architecture. Use architecture types instead of builtin types.
  2192. (gnuv3_make_method_ptr): Likewise.
  2193. * cp-valprint.c (cp_print_class_member): Expect pointer type
  2194. instead of class type. Use its length when extracting value.
  2195. * c-valprint.c (c_val_print): Update call to cp_print_class_member.
  2196. 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
  2197. * stack.c (return_command): Use frame architecture to determine
  2198. default integer return type.
  2199. * f-valprint.c (f77_get_dynamic_lowerbound): Use frame architecture
  2200. to determine pointer types.
  2201. (f77_get_dynamic_upperbound): Likewise.
  2202. * objc-lang.c (OBJC_FETCH_POINTER_ARGUMENT): Remove.
  2203. (resolve_msgsend): Use architecture of current frame to determine
  2204. pointer types. Inline OBJC_FETCH_POINTER_ARGUMENT.
  2205. (resolve_msgsend_stret, resolve_msgsend_super,
  2206. resolve_msgsend_super_stret): Likewise.
  2207. 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
  2208. * alpha-tdep.c (alpha_register_type): Use builtin_type (gdbarch)
  2209. instead of builtin_type_ macros.
  2210. * amd64-tdep.c (amd64_register_type): Likewise.
  2211. (amd64_get_longjmp_target): Likewise.
  2212. * arm-tdep.c (arm_register_type): Likewise.
  2213. * avr-tdep.c (avr_register_type): Likewise.
  2214. * cris-tdep.c (cris_register_type, crisv32_register_type): Likewise.
  2215. * frv-tdep.c (frv_register_type): Likewise.
  2216. * h8300-tdep.c (h8300_register_type): Likewise.
  2217. * hppa-tdep.c (hppa32_convert_from_func_ptr_addr,
  2218. hppa_skip_trampoline_code): Likewise.
  2219. * i386-tdep.c (i386_register_type): Likewise.
  2220. (i386_unwind_pc, i386_sse_type): Likewise.
  2221. * ia64-tdep.c (ia64_register_type): Likewise.
  2222. * m32r-tdep.c (m32r_register_type): Likewise.
  2223. * m68k-tdep.c (m68k_register_type, m68k_unwind_pc): Likewise.
  2224. * m88k-tdep.c (m88k_register_type): Likewise.
  2225. * mep-tdep.c (mep_register_type): Likewise.
  2226. * mips-tdep.c (mips_pseudo_register_type): Likewise.
  2227. * mn10300-tdep.c (mn10300_register_type): Likewise.
  2228. * mt-tdep.c (mt_copro_register_type): Likewise.
  2229. * rs6000-tdep.c (rs6000_builtin_type_vec64): Likewise.
  2230. (rs6000_convert_register_p, rs6000_register_to_value,
  2231. rs6000_value_to_register): Likewise.
  2232. * s390-tdep.c (s390_register_type): Likewise.
  2233. * sh64-tdep.c (sh64_register_type): Likewise.
  2234. (sh64_build_float_register_type, sh64_do_fp_register): Likewise.
  2235. * sh-tdep.c (sh_sh2a_register_type, sh_sh3e_register_type,
  2236. sh_sh4_build_float_register_type, sh_sh4_register_type,
  2237. sh_default_register_type): Likewise.
  2238. * sparc64-tdep.c (sparc64_register_type): Likewise.
  2239. * sparc-tdep.c (sparc32_register_type): Likewise.
  2240. * spu-tdep.c (spu_builtin_type_vec128, spu_register_type): Likewise.
  2241. * v850-tdep.c (v850_register_type): Likewise.
  2242. * vax-tdep.c (vax_register_type): Likewise.
  2243. * xtensa-tdep.c (xtensa_register_type, xtensa_unwind_pc,
  2244. xtensa_push_dummy_call): Likewise.
  2245. * std-regs.c (value_of_builtin_frame_fp_reg,
  2246. value_of_builtin_frame_pc_reg): Likewise.
  2247. * target-descriptions.c (tdesc_register_type): Likewise.
  2248. 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
  2249. * ada-lang.c (ada_coerce_to_simple_array_type): Use builtin_type_int32
  2250. instead of builtin_type_int as default unspecified integral type.
  2251. (ada_index_type, ada_array_bound_from_type, ada_variant_discrim_type,
  2252. assign_component, to_fixed_range_type): Likewise.
  2253. * ada-typeprint.c (print_range, print_range_bound,
  2254. print_range_type_named): Likewise.
  2255. * ada-valprint.c (print_optional_low_bound, ada_val_print_1): Likewise.
  2256. * eval.c (evaluate_subexp_standard): Likewise.
  2257. * gnu-v2-abi.c (gnuv2_virtual_fn_field): Likewise.
  2258. * gnu-v3-abi.c (gnuv3_get_virtual_fn, gnuv3_baseclass_offset,
  2259. build_gdb_vtable_type): Likewise.
  2260. * jv-lang.c (java_array_type): Likewise.
  2261. * m2-typeprint.c (m2_print_bounds, m2_is_long_set_of_type): Likewise.
  2262. * m2-valprint.c (m2_print_long_set): Likewise.
  2263. * parse.c (follow_types): Likewise.
  2264. * p-typeprint.c (pascal_type_print_base): Likewise.
  2265. * valops.c (value_one, value_array, value_string,
  2266. value_bitstring): Likewise.
  2267. * value.c (allocate_repeat_value, value_from_string): Likewise.
  2268. * varobj.c (c_describe_child): Likewise.
  2269. * mt-tdep.c (mt_register_type): Likewise.
  2270. * sh-tdep.c (sh_sh4_build_float_register_type): Likewise.
  2271. * sh64-tdep.c (sh64_build_float_register_type): Likewise.
  2272. 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
  2273. * defs.h (struct gdbarch): Add forward declaration.
  2274. (set_next_address): Add GDBARCH argument.
  2275. * printcmd.c (set_next_address): Use it to find pointer type.
  2276. * breakpoint.c (breakpoint_1): Update call.
  2277. * source.c (line_info): Likewise.
  2278. * findcmd.c (find_command): Use current_gdbarch to find pointer type.
  2279. * breakpoint.c (set_breakpoint_count): Use platform-neutral
  2280. types for internal variable values.
  2281. * infrun.c (handle_inferior_event): Likewise.
  2282. * source.c (forward_search_command, reverse_search_command): Likewise.
  2283. * tracepoint.c (set_tracepoint_count, set_traceframe_num,
  2284. set_tracepoint_num, set_traceframe_context): Likewise.
  2285. 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
  2286. * gdbtypes.h (struct builtin_type): Remove builtin_true_char
  2287. and builtin_true_unsigned_char.
  2288. (builtin_type_true_char): Remove macro, add extern declaration.
  2289. (builtin_type_true_unsigned_char): Add extern declaration.
  2290. * gdbtypes.c (builtin_type_true_char): New global variable.
  2291. (builtin_type_true_unsigned_char): Likewise.
  2292. (_initialize_gdbtypes): Initialize them.
  2293. (gdbtypes_post_init): Do not initialize builtin_true_char
  2294. and builtin_true_unsigned_char members of struct builtin_type.
  2295. * printcmd.c (print_scalar_formatted): Do not use builtin_type;
  2296. use builtin_type_true_unsigned_char instead.
  2297. * ada-valprint.c (ada_val_print_1): Use builtin_type_true_char
  2298. instead of builtin_type_char for internal string.
  2299. 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
  2300. * gdbtypes.h (builtin_type_void): Remove macro, add declaration.
  2301. (builtin_type_f_void): Remove macro.
  2302. * gdbtypes.c (builtin_type_void): New global variable.
  2303. (_initialize_gdbtypes): Initialize it.
  2304. * gnu-v3-abi.c (build_gdb_vtable_type): Do not call
  2305. lookup_pointer_type or lookup_function_type on builtin_type_void.
  2306. * printcmd.c (set_next_address): Likewise.
  2307. * objc-lang.c (value_nsstring): Likewise.
  2308. * mt-tdep.c (mt_copro_register_type): Likewise.
  2309. * xtensa-tdep.c (xtensa_register_type): Likewise.
  2310. * symfile.c (syms_from_objfile): Remove special handling
  2311. of builtin_type_void and builtin_type_char.
  2312. 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
  2313. * eval.c (evaluate_subexp_standard): Use exp->gdbarch types instead
  2314. of builtin_type_ macros when handling OP_OBJC_ operations.
  2315. * objc-lang.c (print_object_command): Likewise.
  2316. 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
  2317. * ada-valprint.c: Include "objfiles.h".
  2318. (ada_val_print_1): Use the gdbarch associated with the objfile whether
  2319. a System.Address type is defined to retrieve the proper pointer type
  2320. to use to print it.
  2321. 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
  2322. * ada-lang.c (value_pos_atr): Add TYPE argument. Use it as
  2323. result type instead of builtin_type_int.
  2324. (value_subscript_packed): Use pos_atr instead of value_pos_atr.
  2325. (ada_value_subscript): Update call to value_pos_atr.
  2326. (ada_value_ptr_subscript): Likewise.
  2327. (ada_evaluate_subexp): Likewise.
  2328. 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
  2329. * ada-lang.c (cast_to_fixed): Do not cast to builtin_type_double.
  2330. (cast_from_fixed_to_double): Rename to ...
  2331. (cast_from_fixed): ... this. Add TYPE parameter. Use it instead
  2332. of builtin_type_double.
  2333. (ada_value_cast): Use cast_from_fixed instead of casting result
  2334. of cast_from_fixed_to_double.
  2335. (ada_evaluate_subexp): Update calls to cast_from_fixed_to_double.
  2336. 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
  2337. * valops.c (value_ind): No longer allow dereferencing an
  2338. integer type.
  2339. * eval.c (evaluate_subexp_standard): Handle deferencing an
  2340. integer type here.
  2341. * ada-lang.c (ada_evaluate_subexp): Likewise.
  2342. 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
  2343. * ada-valprint.c (ada_val_print_1): When implicitly dereferencing
  2344. a reference type, pass the reference type directly to unpack_pointer.
  2345. * c-valprint.c (c_val_print): Likewise.
  2346. * f-valprint.c (f_val_print): Likewise.
  2347. * m2-valprint.c (print_variable_at_address, m2_val_print): Likewise.
  2348. * p-valprint.c (pascal_val_print): Likewise.
  2349. 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
  2350. * eval.c (evaluate_subexp_standard): Use builtin_type_int8
  2351. to construct the EVAL_SKIP dummy return value.
  2352. * ada-lang.c (ada_evaluate_subexp): Likewise.
  2353. * jv-lang.c (evaluate_subexp_java): Likewise.
  2354. * m2-lang.c (evaluate_subexp_modula2): Likewise.
  2355. * scm-lang.c (evaluate_exp): Likewise.
  2356. 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
  2357. * value.h (coerce_enum, coerce_number): Remove prototypes.
  2358. * value.c (coerce_enum, coerce_number): Remove.
  2359. * valarith.c (value_x_binop): Do not call coerce_enum.
  2360. (value_x_unop): Likewise.
  2361. (value_logical_not): Call coerce_array instead of coerce_number.
  2362. 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
  2363. * ax-gdb.c: Include "language.h".
  2364. (gen_frame_args_address): Add GDBARCH parameter; use it
  2365. instead of current_gdbarch.
  2366. (gen_frame_locals_address): Likewise.
  2367. (gen_var_ref): Add GDBARCH parameter. Update calls to
  2368. gen_frame_args_address and gen_frame_locals_address. Use
  2369. pointer type from gdbarch.
  2370. (gen_usual_unary): Add EXP parameter. Use integer type
  2371. from exp->gdbarch.
  2372. (gen_usual_arithmetic): Likewise.
  2373. (gen_integral_promotions): Likewise.
  2374. (gen_add, gen_sub): Remove.
  2375. (gen_ptradd, gen_ptrsub, gen_ptrdiff): New functions.
  2376. (gen_logical_not): Use passed-in boolean result type
  2377. instead of builtin_type_int.
  2378. (gen_complement): Do not call gen_usual_unary or
  2379. gen_integral_promotions.
  2380. (gen_struct_ref): Call require_rvalue instead of gen_usual_unary.
  2381. (gen_repeat): Add EXP parameter. Update call to gen_expr.
  2382. Use builtin_type_int32 as internal range type.
  2383. (gen_sizeof): Add EXP and SIZE_TYPE parameters. Use SIZE_TYPE
  2384. as result type. Update call to gen_expr.
  2385. (gen_expr): Add EXP parameter. Update calls to gen_expr,
  2386. gen_repeat, gen_var_ref, gen_usual_unary, gen_usual_arithmetic,
  2387. and gen_integral_promotions. Call gen_ptradd, gen_ptrsub,
  2388. gen_ptrdiff, or gen_binop instead of gen_add or gen_sub.
  2389. Use exp->gdbarch instead of current_gdbarch.
  2390. Call language_bool_type to determine result type of UNOP_LOGICAL_NOT.
  2391. 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
  2392. * eval.c (evaluate_subexp_standard): Add calls to binop_promote
  2393. and unop_promote before calling value_binop et. al.
  2394. * ada-lang.c (ada_evaluate_subexp): Add calls to binop_promote
  2395. and unop_promote before calling value_binop et. al.
  2396. * valarith.c (value_binop): Do not call binop_promote or unop_promote.
  2397. (value_pos): Do not call unop_promote.
  2398. (value_neg, value_complement): Likewise.
  2399. 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
  2400. * value.h (unop_promote, binop_promote): Add prototypes.
  2401. * eval.c (unop_promote, binop_promote): New functions.
  2402. * valarith.c (unop_result_type, binop_result_type): Remove.
  2403. (value_binop): Call binop_promote or unop_promote.
  2404. Inline remaining parts of binop_result_type. Remove special
  2405. code to truncate integer values for unsigned operations.
  2406. (value_pos): Call unop_promote. Inline remaining parts of
  2407. unop_result_type.
  2408. (value_neg, value_complement): Likewise.
  2409. 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
  2410. * value.h (value_add, value_sub): Remove.
  2411. (value_ptradd, value_ptrsub, value_ptrdiff): Add prototypes.
  2412. * valarith.c (value_add, value_sub): Remove.
  2413. (value_ptradd, value_ptrsub, value_ptrdiff): New functions.
  2414. (find_size_for_pointer_math): Add assertion. Update comment.
  2415. (value_binop): Update comment.
  2416. * eval.c (ptrmath_type_p): New function.
  2417. (evaluate_subexp_standard): Replace value_add and value_sub
  2418. by value_ptradd, value_ptrsub, value_ptrdiff or value_binop.
  2419. Use builtin_type_uint8 instead of builtin_type_char to hold
  2420. the increment for BINOP_{PRE,POST}{IN,DE}CREMENT operations.
  2421. * valarith.c (value_subscript): Replace value_add by
  2422. value_ptradd. Replace value_sub by value_binop.
  2423. * ada-lang.c (ada_value_ptr_subscript): Likewise.
  2424. (ada_tag_name_2): Replace value_add by value_ptradd.
  2425. (ada_evaluate_subexp): Replace value_add and value_sub by
  2426. value_binop.
  2427. * m2-lang.c (evaluate_subexp_modula2): Replace value_add
  2428. by value_ptradd.
  2429. * gnu-v2-abi.c (gnuv2_virtual_fn_field): Likewise.
  2430. * gnu-v3-abi.c (gnuv3_method_ptr_to_value): Likewise.
  2431. 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
  2432. * eval.c (evaluate_subexp_for_sizeof): Use builtin_int type of
  2433. the expression architecture instead of builtin_type_int as the
  2434. sizeof return type.
  2435. 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
  2436. * expression.h (enum exp_opcode): Document OP_COMPLEX to take
  2437. a type parameter as expression element.
  2438. * eval.c (evaluate_subexp_standard) [OP_COMPLEX]: Retrieve result
  2439. type as expression element.
  2440. * f-exp.y: Pass in type when buildin OP_COMPLEX expression.
  2441. * parse.c (operator_length_standard): Update length of OP_COMPLEX.
  2442. 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
  2443. * language.h (struct language_arch_info): New members
  2444. bool_type_default and bool_type_symbol.
  2445. (lang_bool_type): Remove prototype.
  2446. (LA_BOOL_TYPE): Remove macro.
  2447. (language_bool_type): Add prototype.
  2448. * language.c (lang_bool_type): Remove.
  2449. (language_bool_type): New function.
  2450. * value.h (value_in): Change return value to int.
  2451. * value.c (value_in): Return int instead of struct value *.
  2452. * eval.c (evaluate_subexp_standard): Call language_bool_type instead
  2453. of using LA_BOOL_TYPE. Update call to value_in.
  2454. * ada-lang.c (ada_evaluate_subexp): Call language_bool_type instead
  2455. of using LA_BOOL_TYPE or builtin_type_int for boolean values.
  2456. * language.c (unknown_language_arch_info): Set bool_type_default member
  2457. of struct language_arch_info.
  2458. * ada-lang.c (ada_language_arch_info): Set bool_type_symbol and
  2459. bool_type_default members of struct language_arch_info.
  2460. * c-lang.c (c_language_arch_info): Set bool_type_default member
  2461. of struct language_arch_info.
  2462. (cplus_language_arch_info): Set bool_type_symbol and bool_type_default
  2463. members of struct language_arch_info.
  2464. * f-lang.c (f_language_arch_info): Set bool_type_symbol and
  2465. bool_type_default members of struct language_arch_info.
  2466. * jv-lang.c (java_language_arch_info): Set bool_type_symbol and
  2467. bool_type_default members of struct language_arch_info.
  2468. * m2-lang.c (m2_language_arch_info): Set bool_type_symbol and
  2469. bool_type_default members of struct language_arch_info.
  2470. * p-lang.c (p_language_arch_info): Set bool_type_symbol and
  2471. bool_type_default members of struct language_arch_info.
  2472. 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
  2473. * jv-lang.c (enum java_primitive_types): New type.
  2474. (java_language_arch_info): New function.
  2475. (java_language): Use it instead of c_language_arch_info.
  2476. 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
  2477. * value.h (value_bitstring_subscript): New prototype.
  2478. * valarith.h (value_bitstring_subscript): New function.
  2479. (value_subscript): No longer handle TYPE_CODE_BITSTRING.
  2480. * eval.c (evaluate_subexp_standard): Call value_bitstring_subscript
  2481. instead of value_subscript to handle TYPE_CODE_BITSTRING.
  2482. 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
  2483. * expression.h (struct expression): New member GDBARCH.
  2484. * parse.c (parse_exp_in_context): Initialize it.
  2485. * parser-def.h (parse_gdbarch, parse_language): New macros.
  2486. * ada-exp.y (parse_type): New macro.
  2487. Replace builtin_type_ macros by using parse_type.
  2488. Replace current_language by parse_language.
  2489. * ada-lex.l (processInt): Replace current_gdbarch by parse_gdbarch.
  2490. Replace builtin_type_ macros.
  2491. * c-exp.y (parse_type): New macro.
  2492. Replace builtin_type_ macros by using parse_type.
  2493. (parse_number): Replace current_gdbarch by parse_gdbarch.
  2494. (yylex): Replace current_language by parse_language.
  2495. * f-exp.y (parse_type, parse_f_type): New macros.
  2496. Replace builtin_type_ macros by using parse_{f_,}type.
  2497. (parse_number): Replace current_gdbarch by parse_gdbarch.
  2498. (yylex): Replace current_language by parse_language.
  2499. * jv-exp.y (parse_type): New macro.
  2500. (parse_number): Replace builtin_type_ macros by using parse_type.
  2501. * m2-exp.y (parse_type, parse_m2_type): New macros.
  2502. Replace builtin_type_ macros by using parse_{m2_,}type.
  2503. * objc-exp.y (parse_type): New macro.
  2504. Replace builtin_type_ macros by using parse_type.
  2505. (parse_number): Replace current_gdbarch by parse_gdbarch.
  2506. (yylex): Replace current_language by parse_language.
  2507. * p-exp.y (parse_type): New macro.
  2508. Replace builtin_type_ macros by using parse_type.
  2509. (parse_number): Replace current_gdbarch by parse_gdbarch.
  2510. (yylex): Replace current_language by parse_language.
  2511. 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
  2512. * parser-defs.h (write_exp_msymbol): Remove TEXT_SYMBOL_TYPE
  2513. and DATA_SYMBOL_TYPE arguments.
  2514. * parse.c (write_exp_msymbol): Remove TEXT_SYMBOL_TYPE and
  2515. DATA_SYMBOL_TYPE arguments. Replace use of builtin_type_CORE_ADDR.
  2516. (write_dollar_variable): Update call.
  2517. * ada-exp.y (write_var_or_type): Update call.
  2518. * c-exp.y: Likewise.
  2519. * f-exp.y: Likewise.
  2520. * jv-exp.y: Likewise.
  2521. * m2-exp.y: Likewise.
  2522. * objc-exp.y: Likewise.
  2523. * p-exp.y: Likewise.
  2524. 2008-09-10 Joel Brobecker <brobecker@adacore.com>
  2525. * ada-lang.c (ada_parent_type): Add handling of the case where
  2526. the _parent field is a pointer and/or has a parallel XVS type.
  2527. (ada_evaluate_subexp) [OP_VAR_VALUE]: When doing an
  2528. EVAL_AVOID_SIDE_EFFECTS evaluation of a tagged type, return
  2529. the type of the tag instead of doing forcing an EVAL_NORMAL
  2530. expression evaluation.
  2531. 2008-09-10 Paul N. Hilfinger <hilfinger@adacore.com>
  2532. Joel Brobecker <brobecker@adacore.com>
  2533. * ada-lang.c (is_digits_suffix): New function.
  2534. (is_dot_digits_suffix): Remove.
  2535. (ada_lookup_symbol_list): Remove digits suffix from minimal symbols
  2536. before looking up in symbol table, and do not use wild matches on them.
  2537. (wild_match): Reimplement for speed and to allow matching of operator
  2538. symbols.
  2539. (is_valid_name_for_wild_match): Return zero for names that do not
  2540. follow the GNAT encoding.
  2541. (is_name_suffix): Fix typo in comment.
  2542. (to_record_with_fixed_variant_part): Ditto.
  2543. 2008-09-10 Pedro Alves <pedro@codesourcery.com>
  2544. * Makefile.in (gnu-nat.o): New rule.
  2545. 2008-09-10 Joel Brobecker <brobecker@adacore.com>
  2546. * ada-lang.c (ada_evaluate_subexp) [OP_ATR_SIZE]: Use
  2547. archecture-neutral builtin_type_int32 instead of builtin_type_int.
  2548. 2008-09-10 Joel Brobecker <brobecker@adacore.com>
  2549. * ada-lang.c (ada_evaluate_subexp) [BINOP_ADD, BINOP_SUB]:
  2550. Add special handling for pointer types.
  2551. 2008-09-10 Pedro Alves <pedro@codesourcery.com>
  2552. * inf-ttrace.c (inf_ttrace_follow_fork): Declare locals at the
  2553. right scope level.
  2554. (inf_ttrace_resume, inf_ttrace_wait): Typos.
  2555. 2008-09-10 Ulrich Weigand <uweigand@de.ibm.com>
  2556. * ada-lang.c (ada_array_length): Use builtin_type_int32 instead
  2557. of builtin_type_int.
  2558. (ada_evaluate_subexp) [UNOP_IN_RANGE]: Use operand range type
  2559. instead of builtin_type_int.
  2560. 2008-09-09 Pedro Alves <pedro@codesourcery.com>
  2561. * infrun.c (normal_stop): Run hook-stop last.
  2562. 2008-09-09 Pedro Alves <pedro@codesourcery.com>
  2563. * gnu-nat.c (gnu_pid_to_exec_file): Delete.
  2564. (init_gnu_ops): Don't register it.
  2565. 2008-09-09 Pedro Alves <pedro@codesourcery.com>
  2566. * gnu-nat.c (gnu_attach): Push target before fetching the list of
  2567. threads.
  2568. 2008-09-08 Daniel Jacobowitz <dan@codesourcery.com>
  2569. * valops.c (value_cast_structs): Return NULL for failure.
  2570. (value_cast): Handle NULL from value_cast_structs.
  2571. (value_fetch_lazy): Call check_typedef. Remove unused variable.
  2572. 2008-09-08 Pedro Alves <pedro@codesourcery.com>
  2573. * inferior.h (context_switch_to): Delete.
  2574. * infrun.c (context_switch): Don't save and load infrun state.
  2575. (context_switch_to): Delete.
  2576. * infcmd.c (proceed_thread_callback): Replace context_switch_to
  2577. calls by switch_to_thread calls.
  2578. * gdbthread.h (save_infrun_state, load_infrun_state): Delete.
  2579. * thread.c (main_thread_state, main_thread_executing): Delete.
  2580. (inferior_thread): Delete references to them.
  2581. (add_thread_silent): Fix case where we're adding a thread with the
  2582. same ptid as an exited thread. Remove references to
  2583. context-switching.
  2584. (load_infrun_state, save_infrun_state): Delete.
  2585. (thread_alive, is_thread_state, any_running, is_executing)
  2586. (set_executing): Remove the special handling for targets that
  2587. don't register any thread.
  2588. (restore_current_thread, thread_apply_all_command)
  2589. (do_captured_thread_select): Unconditionally call
  2590. switch_to_thread.
  2591. * mi/mi-main.c (mi_cmd_execute): Check for exited threads.
  2592. Call switch_to_thread instead of context_switch_to.
  2593. 2008-09-08 Pedro Alves <pedro@codesourcery.com>
  2594. Remove global continuations in favour of a per-thread
  2595. continuations.
  2596. * gdbthread.h (struct thread_info): Add comments around
  2597. continuations and intermediate_continuations.
  2598. (save_infrun_state, load_infrun_state): Delete continuations and
  2599. intermediate_continuations arguments.
  2600. * infrun.c (context_switch): Don't context-switch the continuations.
  2601. * thread.c (clear_thread_inferior_resources): Discard all
  2602. continuations of the thread we're clearing.
  2603. (save_infrun_state, load_infrun_state): Delete continuations and
  2604. intermediate_continuations arguments, and the code referencing
  2605. them.
  2606. * utils.c: Include "gdbthread.h".
  2607. (cmd_continuation, intermediate_continuation): Delete.
  2608. (add_continuation): Add thread_info* argument. Install the
  2609. continuation on it.
  2610. (restore_thread_cleanup): New.
  2611. (do_all_continuations_ptid, do_all_continuations_thread_callback):
  2612. New.
  2613. (do_all_continuations): Reimplement.
  2614. (discard_all_continuations_thread_callback,
  2615. discard_all_continuations_thread): New.
  2616. (discard_all_continuations): Reimplement.
  2617. (add_intermediate_continuation): Add thread_info* argument.
  2618. Install the continuation on it.
  2619. (do_all_intermediate_continuations_thread_callback)
  2620. (do_all_intermediate_continuations_thread): New.
  2621. (do_all_intermediate_continuations): Reimplement.
  2622. (discard_all_intermediate_continuations_thread_callback): New.
  2623. (discard_all_intermediate_continuations_thread): New.
  2624. (discard_all_intermediate_continuations): Reimplement.
  2625. * breakpoint.c (until_break_command): Install the continuation on
  2626. the current thread.
  2627. * defs.h (cmd_continuation, intermediate_continuation): Delete.
  2628. (struct thread_info): Forward declare.
  2629. (add_continuation, add_intermediate_continuation): Add
  2630. thread_info* argument.
  2631. (do_all_continuations_thread, discard_all_continuations_thread)
  2632. (do_all_intermediate_continuations_thread)
  2633. (discard_all_intermediate_continuations_thread): Declare.
  2634. * inf-loop.c (inferior_event_handler): In non-stop only run
  2635. continuations on the thread that stopped. In all-stop, run
  2636. continuations on all threads.
  2637. * infcmd.c (step_once, finish_command): Adjust.
  2638. 2008-09-08 Pedro Alves <pedro@codesourcery.com>
  2639. Remove the global stop_step in favour of a per-thread
  2640. stop_step.
  2641. * inferior.h (stop_step): Delete.
  2642. * gdbthread.h (struct thread_info): Add comments to stop_step.
  2643. (save_infrun_state, load_infrun_state): Remove stop_step argument.
  2644. * thread.c (load_infrun_state, save_infrun_state): Remove
  2645. stop_step argument, and references to it.
  2646. * infrun.c (clear_proceed_status): Clear stop_step.
  2647. (fetch_inferior_event): Adjust.
  2648. (context_switch): Don't context-switch stop_step.
  2649. (handle_inferior_event): Adjust.
  2650. (normal_stop): Adjust.
  2651. (save_inferior_status, restore_inferior_status): Adjust.
  2652. * infcmd.c (stop_step): Delete.
  2653. (step_1, step_1_continuation, step_once, until_next_command):
  2654. Adjust.
  2655. 2008-09-08 Pedro Alves <pedro@codesourcery.com>
  2656. Remove the global step_multi in favour of a per-thread
  2657. step_multi.
  2658. * inferior.h (step_multi): Delete.
  2659. * gdbthread.h (struct thread_info): Add comments around
  2660. step_multi.
  2661. (save_infrun_state, load_infrun_state): Remove step_multi
  2662. parameter.
  2663. * thread.c (load_infrun_state, save_infrun_state): Remove
  2664. step_multi argument, and references to it.
  2665. * infcmd.c (step_multi): Delete.
  2666. (step_1): Adjust.
  2667. (step_1_continuation, until_next_command): Adjust.
  2668. * infrun.c (fetch_inferior_event): Adjust.
  2669. (context_switch): Don't context-switch step_multi.
  2670. (print_stop_reason, normal_stop): Adjust.
  2671. 2008-09-08 Pedro Alves <pedro@codesourcery.com>
  2672. Remove the global stop_signal in favour of a per-thread
  2673. stop_signal.
  2674. * inferior.h (stop_signal): Delete.
  2675. * gdbthread.h (save_infrun_state, load_infrun_state): Remove
  2676. stop_signal argument.
  2677. * thread.c (load_infrun_state, save_infrun_state): Remove
  2678. stop_signal argument. Don't reference it.
  2679. * infcmd.c (stop_signal): Delete.
  2680. (program_info): Adjust.
  2681. * infrun.c (resume): Clear stop_signal.
  2682. (proceed): Adjust. Pass the last stop_signal to the thread we're
  2683. resuming.
  2684. (context_switch): Don't context-switch stop_signal.
  2685. (handle_inferior_event, keep_going): Adjust.
  2686. (save_inferior_status, restore_inferior_status): Adjust.
  2687. * fbsd-nat.c: Include "gdbthread.h".
  2688. (find_signalled_thread, find_stop_signal): New.
  2689. (fbsd_make_corefile_notes): Use it.
  2690. * fork-child.c (startup_inferior): Adjust.
  2691. * linux-nat.c (get_pending_status): Adjust.
  2692. (linux_nat_do_thread_registers): Adjust.
  2693. (find_signalled_thread, find_stop_signal): New.
  2694. (linux_nat_do_thread_registers): Add stop_signal parameter.
  2695. (struct linux_nat_corefile_thread_data): Add stop_signal member.
  2696. (linux_nat_corefile_thread_callback): Pass stop_signal.
  2697. (linux_nat_do_registers): Delete.
  2698. (linux_nat_make_corefile_notes): Use find_stop_signal. Assume
  2699. there's always a thread.
  2700. * procfs.c (find_signalled_thread, find_stop_signal): New.
  2701. (find_stop_signal): New.
  2702. (procfs_do_thread_registers): Add stop_signal parameter.
  2703. (struct procfs_corefile_thread_data): Add stop_signal member.
  2704. (procfs_corefile_thread_callback): Pass args->stop_signal.
  2705. (procfs_make_note_section): Find the last stop_signal.
  2706. * solib-irix.c: Include gdbthread.h.
  2707. (irix_solib_create_inferior_hook): Adjust.
  2708. * solib-osf.c: Include gdbthread.h.
  2709. (osf_solib_create_inferior_hook): Adjust.
  2710. * solib-sunos.c: Include gdbthread.h.
  2711. (sunos_solib_create_inferior_hook): Adjust.
  2712. * solib-svr4.c: Include gdbthread.h.
  2713. (svr4_solib_create_inferior_hook): Adjust.
  2714. * win32-nat.c (do_initial_win32_stuff): Adjust.
  2715. 2008-09-08 Pedro Alves <pedro@codesourcery.com>
  2716. * gdbthread.h (struct thread_info): Add comments around
  2717. proceed_to_finish.
  2718. (save_infrun_state, load_infrun_state): Remove proceed_to_finish
  2719. argument.
  2720. * thread.c (load_infrun_state, save_infrun_state): Delete
  2721. proceed_to_finish argument and references to it.
  2722. * infcall.c (call_function_by_hand): Adjust.
  2723. * infcmd.c (finish_command): Adjust.
  2724. * infrun.c (proceed_to_finish): Delete.
  2725. (clear_proceed_status): Adjust.
  2726. (context_switch): Don't context-switch proceed_to_finish.
  2727. (normal_stop, save_inferior_status, restore_inferior_status):
  2728. Adjust.
  2729. 2008-09-08 Pedro Alves <pedro@codesourcery.com>
  2730. * inferior.h (stop_bpstat): Delete.
  2731. * breakpoint.h (bpstat_do_actions): Remove bpstat* argument.
  2732. * breakpoint.c (bpstat_do_actions): Rename to ...
  2733. (bpstat_do_actions_1): ... this. Make static. Change return type
  2734. to int. Return true if a breakpoint proceeded.
  2735. (bpstat_do_actions): New, as wrapper around bpstat_do_actions_1.
  2736. (delete_breakpoint): Don't reference the global stop_bpstat; it's
  2737. gone.
  2738. * gdbthread.h (struct thread_info): Add stop_bpstat.
  2739. (save_infrun_state, load_infrun_state): Remove stop_bpstat
  2740. argument.
  2741. * thread.c (load_infrun_state, save_infrun_state): Remove
  2742. stop_bpstat argument, and the code referencing it.
  2743. * infcall.c: Include "gdbthread.h".
  2744. (call_function_by_hand): Adjust.
  2745. * exceptions.c: Include "gdbthread.h".
  2746. (throw_exception): Adjust.
  2747. * infcmd.c (stop_bpstat): Delete.
  2748. (continue_command): In all-stop, set the ignore count on the
  2749. thread that reported the stop. In non-stop, set it on the current
  2750. thread.
  2751. (finish_command_continuation): Adjust.
  2752. (program_info): Adjust.
  2753. * infrun.c (clear_proceed_status): Adjust.
  2754. (context_switch): Don't context-switch stop_bpstat.
  2755. (handle_inferior_event): Adjust.
  2756. (normal_stop): Adjust.
  2757. (save_inferior_status, restore_inferior_status): Adjust.
  2758. * inf-loop.c (inferior_event_handler): Remove parameter to
  2759. bpstat_do_actions call.
  2760. * top.c (command_loop): Remove parameter to bpstat_do_actions
  2761. call. Call it unconditionally.
  2762. * event-top.c (command_handler): Ditto.
  2763. * python/python.c (execute_gdb_command): Ditto.
  2764. 2008-09-08 Pedro Alves <pedro@codesourcery.com>
  2765. * inferior.h (step_over_calls): Delete.
  2766. * gdbthread.h (save_infrun_state, load_infrun_state): Remove
  2767. step_over_calls argument.
  2768. * thread.c (save_infrun_state, load_infrun_state): Remove
  2769. step_over_calls argument. Adjust.
  2770. * infcmd.c (step_over_calls): Delete.
  2771. (step_1): Adjust.
  2772. * infrun.c (clear_proceed_status): Adjust.
  2773. (context_switch): Don't context-switch step_over_calls.
  2774. (handle_inferior_event, save_inferior_status)
  2775. (restore_inferior_status): Adjust.
  2776. 2008-09-08 Pedro Alves <pedro@codesourcery.com>
  2777. Remove context switching in favour of accessing thread_info fields
  2778. directly.
  2779. * infrun.c (stepping_over_breakpoint, step_resume_breakpoint):
  2780. Delete.
  2781. (struct thread_stepping_state): Delete.
  2782. (gtss, tss): Delete.
  2783. (follow_inferior_reset_breakpoints, follow_exec)
  2784. (resume, clear_proceed_status): Adjust.
  2785. (prev_pc): Delete.
  2786. (proceed, start_remote, init_wait_for_inferior): Adjust.
  2787. (struct execution_control_state): Add event_thread member.
  2788. (delete_step_resume_breakpoint_callback)
  2789. (delete_step_thread_step_resume_breakpoint)
  2790. (delete_step_thread_step_resume_breakpoint_cleanup)
  2791. (delete_step_thread_step_resume_breakpoint): New.
  2792. (wait_for_inferior, init_execution_control_state): Use
  2793. delete_step_thread_step_resume_breakpoint_cleanup.
  2794. (wait_for_inferior): Set the event_thread.
  2795. (fetch_inferior_event): Ditto. Delete the step-resume breakpoint
  2796. with delete_step_thread_step_resume_breakpoint.
  2797. (init_thread_stepping_state): Change parameter type to
  2798. thread_info. Adjust.
  2799. (context_switch): Don't context switch prev_pc,
  2800. stepping_over_breakpoint, step_resume_breakpoint,
  2801. step_range_start, step_range_end, step_frame_id,
  2802. tss->stepping_over_breakpoint,
  2803. tss->stepping_through_solib_after_catch,
  2804. tss->stepping_through_solib_catchpoints, tss->current_line, or
  2805. tss->current_symtab.
  2806. (adjust_pc_after_break, handle_inferior_event)
  2807. (currently_stepping, step_into_function)
  2808. (insert_step_resume_breakpoint_at_sal)
  2809. (insert_longjmp_resume_breakpoint, keep_going): Adjust.
  2810. (clear_stepping_state): New.
  2811. (normal_stop): Adjust.
  2812. (save_inferior_status, restore_inferior_status): Adjust.
  2813. * gdbthread.h (struct thread_info): Comments describing the
  2814. members moved here. Add step_after_step_resume_breakpoint.
  2815. (delete_step_resume_breakpoint): Add thread_info argument.
  2816. (save_infrun_state, load_infrun_state): Remove prev_pc,
  2817. trap_expected, step_resume_breakpoint, step_range_start,
  2818. step_range_end, step_frame_id, another_trap,
  2819. stepping_through_solib_after_catch,
  2820. stepping_through_solib_catchpoints, current_line and
  2821. current_symtab function arguments.
  2822. (inferior_thread): Declare.
  2823. * thread.c (inferior_thread): New.
  2824. (delete_step_resume_breakpoint): Add a thread_info parameter and
  2825. rewrite.
  2826. (load_infrun_state, save_infrun_state): Remove prev_pc,
  2827. trap_expected, step_resume_breakpoint, step_range_start,
  2828. step_range_end, step_frame_id, stepping_over_breakpoint,
  2829. stepping_through_solib_after_catch,
  2830. stepping_through_solib_catchpoints, current_line and
  2831. current_symtab args. Remove code referencing them.
  2832. * infcmd.c (step_range_start, step_range_end, step_frame_id):
  2833. Delete.
  2834. (step_1, step_once, until_next_command): Adjust.
  2835. * inferior.h (step_range_start, step_range_end, step_frame_id):
  2836. Delete.
  2837. * linux-nat.c (linux_child_follow_fork): If following the child,
  2838. move the step state to it. Adjust.
  2839. * inf-ptrace.c (inf_ptrace_follow_fork): Ditto.
  2840. * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
  2841. 2008-09-08 Pedro Alves <pedro@codesourcery.com>
  2842. * bsd-uthread.c (bsd_uthread_find_new_threads): Claim the main
  2843. thread.
  2844. 2008-09-08 Pedro Alves <pedro@codesourcery.com>
  2845. * corelow.c (add_to_thread_list): If this is the first time we
  2846. hear about thread info, update inferior_ptid.
  2847. (core_open): Clear the thread list and set inferior_ptid before
  2848. acknowledging a new inferior. Find threads before fetching
  2849. register info. Give an upper target layer a chance to find and
  2850. claim new threads. Print core generation and stop signal info
  2851. after finding new threads.
  2852. (get_core_register_section): Look at the lwp member of
  2853. inferior_ptid for detecting if we have threads info, instead of
  2854. the pid member.
  2855. (core_pid_to_str): New.
  2856. (init_core_ops): Register core_pid_to_str.
  2857. 2008-09-08 Pedro Alves <pedro@codesourcery.com>
  2858. * spu-linux-nat.c (spu_child_post_startup_inferior)
  2859. (spu_child_post_attach): Don't add the main thread here.
  2860. 2008-09-08 Pedro Alves <pedro@codesourcery.com>
  2861. Use ptid_t.tid to store thread ids instead of ptid_t.pid.
  2862. * gnu-nat.c (inf_validate_procs): If this is the first time we're
  2863. seeing a thread id, extend the main thread's ptid. If we still
  2864. have pending execs, don't be verbose about new threads.
  2865. (gnu_wait, gnu_resume, gnu_attach, gnu_thread_alive)
  2866. (gnu_pid_to_str, cur_thread, sig_thread_cmd): Adjust.
  2867. * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers):
  2868. Adjust.
  2869. 2008-09-08 Pedro Alves <pedro@codesourcery.com>
  2870. * procfs.c (to_attach): Create a procinfo for the current lwp.
  2871. Add it to gdb's thread list.
  2872. (procfs_fetch_registers, procfs_store_registers): Assume there's
  2873. always an lwp.
  2874. (procfs_wait): Don't add the main thread here.
  2875. (procfs_init_inferior): Create a procinfo for the main lwp here.
  2876. Change main thread's ptid with thread_change_ptid.
  2877. (procfs_notice_thread): Check for exited threads.
  2878. (procfs_corefile_thread_callback): Remove check for the main
  2879. process.
  2880. (procfs_make_note_section): Assume there is always a thread.
  2881. * sol-thread.c (sol_thread_attach): Clear sol_thread_active before
  2882. attaching. Change the main thread ptid with thread_change_ptid.
  2883. (sol_thread_detach): Clear sol_thread_active.
  2884. (sol_thread_wait): Check for exited threads.
  2885. (sol_thread_create_inferior): Clear sol_thread_active before
  2886. creating a new inferior. Change the main thread ptid with
  2887. thread_change_ptid.
  2888. (sol_thread_mourn_inferior): Clear sol_thread_active.
  2889. (sol_find_new_threads_callback): Check for exited threads.
  2890. 2008-09-08 Pedro Alves <pedro@codesourcery.com>
  2891. * inf-ttrace.c (inf_ttrace_wait): On TTEVT_LWP_CREATE and
  2892. LWP_TERMINATE, resume the caller thread. On TTEVT_LWP_CREATE,
  2893. TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE, don't stop the whole
  2894. process, and return TARGET_WAITKIND_IGNORE.
  2895. 2008-09-08 Pedro Alves <pedro@codesourcery.com>
  2896. * inf-ttrace.c: Include <signal.h>
  2897. (inf_ttrace_delete_dead_threads_callback): New.
  2898. (inf_ttrace_resume_lwp): New.
  2899. (inf_ttrace_resume_callback, inf_ttrace_resume): Rewrite. Don't
  2900. delete dying threads until they are really dead.
  2901. (inf_ttrace_wait): After stopping the whole process, delete any
  2902. dying thread that is really dead by now.
  2903. (inf_ttrace_thread_alive): Return 1.
  2904. (inf_ttrace_extra_thread_info): New.
  2905. (inf_ttrace_target): Register inf_ttrace_extra_thread_info.
  2906. 2008-09-08 Pedro Alves <pedro@codesourcery.com>
  2907. * inf-ttrace.c (inf_ttrace_follow_fork): Register the main thread
  2908. of the child fork.
  2909. (inf_ttrace_attach): Add the main thread.
  2910. (inf_ttrace_resume_callback): Check for exited threads. Adjust
  2911. for always a thread.
  2912. (inf_ttrace_wait): Decorate the main thread's ptid with lwp info
  2913. using thread_change_ptid, and set its private data. Don't add the
  2914. main thread here.
  2915. (inf_ttrace_pid_to_str): Adjust.
  2916. 2008-09-08 Pedro Alves <pedro@codesourcery.com>
  2917. * bsd-uthread.c (bsd_uthread_wait): Decorate the main thread with
  2918. thread_change_ptid. Check for exited threads.
  2919. (bsd_uthread_find_new_threads): Check for exited threads.
  2920. 2008-09-08 Pedro Alves <pedro@codesourcery.com>
  2921. * inf-ptrace.c: Include "gdbthread.h".
  2922. (inf_ptrace_attach): Add the main thread here.
  2923. * linux-nat.c (linux_nat_attach): Don't add the main thread here.
  2924. Decorate the main thread id with the lwp id.
  2925. 2008-09-08 Pedro Alves <pedro@codesourcery.com>
  2926. * linux-nat.c (linux_nat_wait): Update inferior_ptid's ptid with
  2927. thread_change_ptid. Don't add or mark the main thread as running
  2928. and executing here.
  2929. * fork-child.c (fork_inferior): Add the main thread here.
  2930. 2008-09-08 Jerome Guitton <guitton@adacore.com>
  2931. * rs6000-tdep.c (rs6000_fetch_instruction)
  2932. (rs6000_skip_stack_check): New functions.
  2933. (skip_prologue): Skip stack check sequence.
  2934. 2008-09-08 David Daney <ddaney@avtrex.com>
  2935. * dummy-frame.h (frame.h): Include it.
  2936. (struct frame_id): Remove declaration.
  2937. 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
  2938. * spu-tdep.c (spu_push_dummy_code): New function.
  2939. (spu_gdbarch_init): Install it.
  2940. 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
  2941. * gdbarch.sh (gdbarch_dump): Use core_addr_to_string_nz
  2942. instead of paddr_nz.
  2943. * gdbarch.c: Regenerate.
  2944. * target.c (target_xfer_partial, debug_print_register): Use
  2945. core_addr_to_string_nz instead of paddr_nz.
  2946. 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
  2947. * rs6000-tdep.c (rs6000_gdbarch_init): Setup displaced stepping
  2948. *before* calling gdbarch_init_osabi.
  2949. (rs6000_aix_init_osabi): Disable displaced stepping.
  2950. 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
  2951. * target.c (update_current_target): Do not inherit to_open
  2952. or to_close.
  2953. (pop_target): Call target_close on target_stack instead
  2954. of current_target.
  2955. (pop_all_targets_above): Likewise.
  2956. 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
  2957. * gnu-v3-abi.c (gnuv3_decode_method_ptr): New function.
  2958. (gnuv3_print_method_ptr): Use it.
  2959. (gnuv3_method_ptr_to_value): Likewise.
  2960. 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
  2961. * nto-tdep.h (struct nto_target_ops): Add gdbarch parameter to
  2962. register_area callback function.
  2963. * i386-nto-tdep.c (i386nto_register_area): Add gdbarch parameter.
  2964. Use it instead of current_gdbarch.
  2965. * nto-procfs.c (procfs_store_registers): Update call.
  2966. 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
  2967. * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Use
  2968. regcache architecture instead of current_gdbarch.
  2969. 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
  2970. * mep-tdep.c (struct mep_prologue): Add gdbarch member.
  2971. (check_for_saved): Use it instead of current_gdbarch.
  2972. (is_arg_spill): Add gdbarch paramter. Use it instead
  2973. of current_gdbarch.
  2974. (mep_analyze_prologue): Add gdbarch parameter. Pass it
  2975. to is_arg_spill and check_for_saved.
  2976. (mep_skip_prologue, mep_analyze_frame_prologue): Update calls.
  2977. 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
  2978. * hppa-tdep.c (internalize_unwinds): Use objfile architecture
  2979. instead of current_gdbarch.
  2980. 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
  2981. * m68k-tdep.h (m68kbsd_fpreg_offset): Add gdbarch parameter.
  2982. * m68kbsd-tdep.c (m68kbsd_fpreg_offset): Add gdbarch paramter.
  2983. Use it instead of current_gdbarch.
  2984. (m68kbsd_supply_fpregset): Update call.
  2985. * m68kbsd-nat.c (m68kbsd_supply_fpregset): Likewise.
  2986. (m68kbsd_collect_fpregset): Likewise.
  2987. 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
  2988. * cris-tdep.c (cris_version, cris_mode): Remove.
  2989. (crisv32_single_step_through_delay): Use tdep->cris_mode.
  2990. (cris_breakpoint_from_pc): Likewise.
  2991. (cris_frame_unwind_cache): Use tdep->cris_version.
  2992. (crisv32_scan_prologue): Likewise.
  2993. (cris_spec_reg_applicable): Add gdbarch argument.
  2994. Use tdep->cris_version.
  2995. (cris_register_size, cris_special_register_name): Update calls.
  2996. (cris_special_register_name): Add gdbarch argument.
  2997. (cris_register_name, crisv32_register_name): Update calls.
  2998. 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
  2999. * m68hc11-tdep.c (gdb_print_insn_m68hc11): Use info->arch
  3000. instead of current_gdbarch.
  3001. * sh64-tdep.c (gdb_print_insn_sh64): Remove.
  3002. (sh64_gdbarch_init): Install print_insn_sh64 directly.
  3003. * sh-tdep.c (gdb_print_insn_sh): Remove.
  3004. (sh_gdbarch_init): Install print_insn_sh directly.
  3005. * mips-tdep.c (gdb_print_insn_mips): Do not check mips_abi
  3006. from current_gdbarch.
  3007. (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): New functions.
  3008. (mips_gdbarch_init): Install them instead of gdb_print_insn_mips
  3009. depending on mips_abi.
  3010. 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
  3011. * gdbarch.sh (addr_bits_remove): Change type to 'm'.
  3012. (smash_text_address): Likewise.
  3013. * gdbarch.c, gdbarch.h: Regenerate.
  3014. * arch-utils.c (core_addr_identity): Add gdbarch parameter.
  3015. * arch-utils.h (core_addr_identity): Likewise.
  3016. * arm-tdep.c (arm_addr_bits_remove): Likewise.
  3017. (arm_smash_text_address): Likewise.
  3018. * hppa-tdep.c (hppa_smash_text_address): Likewise.
  3019. * m88k-tdep.c (m88k_addr_bits_remove): Likewise.
  3020. * s390-tdep.c (s390_addr_bits_remove): Likewise.
  3021. * mips-tdep.c (mips_addr_bits_remove): Add gdbarch parameter.
  3022. Use it instead of current_gdbarch.
  3023. * arm-tdep.c (arm_prologue_prev_register, arm_unwind_pc,
  3024. arm_dwarf2_prev_register): Update calls.
  3025. * m88k-tdep.c (m88k_unwind_pc): Update call.
  3026. 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
  3027. * dwarf2expr.h (dwarf2_read_address): Add gdbarch argument.
  3028. * dwarf2expr.c (dwarf2_read_address): Add gdbarch argument.
  3029. Call gdbarch_integer_to_address directly instead of converting
  3030. to value and back. Update comment.
  3031. (execute_stack_op): Update call site.
  3032. * dwarf2loc.c (find_location_expression): Likewise.
  3033. (locexpr_describe_location): Update
  3034. * dwarf2expr.h (struct dwarf_expr_context): Add gdbarch member.
  3035. * dwarf2-frame.c (execute_stack_op): Initialize ctx->gdbarch.
  3036. * dwarf2loc. (dwarf2_evaluate_loc_desc): Likewise.
  3037. (dwarf2_loc_desc_needs_frame): Likewise.
  3038. 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
  3039. * breakpoint.h (struct bp_location): Change type of section
  3040. member to "struct obj_section *".
  3041. * tracepoint.h (struct tracepoint): Likewise.
  3042. * symtab.h (struct general_symbol_info): Replace bfd_section
  3043. member with obj_section.
  3044. (struct symtab_and_line): Change type of section member to
  3045. "struct obj_section *".
  3046. (SYMBOL_BFD_SECTION): Remove macro, replace by ...
  3047. (SYMBOL_OBJ_SECTION): ... this.
  3048. * minsym.c (prim_record_minimal_symbol_and_info): Record symbol
  3049. section as obj_section instead of bfd_section.
  3050. * ada-lang.c (ada_decode_symbol): Use gsymbol->obj_section
  3051. directly instead of looking of obj_section from bfd_section.
  3052. * objfiles.h (find_pc_sect_section): Remove.
  3053. * objfiles.c (find_pc_sect_section): Remove.
  3054. (find_pc_section): Inline find_pc_sect_section code.
  3055. * symfile.h (find_pc_overlay): Return struct obj_section *.
  3056. (find_pc_mapped_section): Likewise.
  3057. (section_is_overlay, section_is_mapped): Change type of section
  3058. argument to struct obj_section *.
  3059. (pc_in_mapped_range, pc_in_unmapped_range): Likewise.
  3060. (overlay_mapped_address, overlay_unmapped_address): Likewise.
  3061. (symbol_overlayed_address): Likewise.
  3062. * symtab.h (symbol_overlayed_address): Likewise.
  3063. * symfile.c (overlay_is_mapped): Remove.
  3064. (section_is_mapped): Inline overlay_is_mapped code. Update.
  3065. (overlay_invalidate_all): Update.
  3066. (section_is_overlay): Change section argument to type
  3067. "struct obj_section *". Use bfd_ methods.
  3068. (pc_in_unmapped_range): Likewise. Handle relocated sections.
  3069. (pc_in_mapped_range): Likewise. Handle relocated sections.
  3070. (sections_overlap): Likewise.
  3071. (overlay_unmapped_address): Likewise.
  3072. (overlay_mapped_address): Likewise.
  3073. (symbol_overlayed_address): Likewise.
  3074. (find_pc_overlay): Return struct obj_section *.
  3075. (find_pc_mapped_section): Likewise.
  3076. (list_overlays_command): Update.
  3077. (map_overlay_command, unmap_overlay_command): Update.
  3078. (simple_overlay_update): Update.
  3079. * block.h (blockvector_for_pc_sect): Change section argument
  3080. to type "struct obj_section *".
  3081. (block_for_pc_sect): Likewise.
  3082. * block.c (blockvector_for_pc_sect): Change section argument
  3083. to type "struct obj_section *".
  3084. (block_for_pc_sect): Likewise.
  3085. * symtab.h (find_pc_sect_function, find_pc_sect_psymtab,
  3086. find_pc_sect_symtab, find_pc_sect_psymbol, find_pc_sect_line,
  3087. lookup_minimal_symbol_by_pc_section, find_function_start_pc): Likewise.
  3088. (matching_bfd_sections): Rename to ...
  3089. (matching_obj_sections): ... this. Update argument types.
  3090. * blockframe.c (find_pc_sect_function): Likewise.
  3091. * breakpoint.c (describe_other_breakpoints): Likewise.
  3092. (breakpoint_has_pc, check_duplicates_for): Likewise.
  3093. * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Likewise.
  3094. (lookup_minimal_symbol_by_pc_section): Likewise.
  3095. * symtab.c (find_pc_sect_psymtab_closer): Likewise.
  3096. (find_pc_sect_psymtab, find_pc_sect_psymbol, find_pc_sect_symtab,
  3097. find_pc_sect_line, find_function_start_pc): Likewise.
  3098. (matching_bfd_sections): Rename to ...
  3099. (matching_obj_sections): ... this. Update argument types.
  3100. * blockframe.c (find_pc_partial_function): Update to section
  3101. type changes. No longer call find_pc_sect_section.
  3102. (cache_pc_function_section): Change to type "struct obj_section *".
  3103. * breakpoint.c (resolve_sal_pc): Update to section type changes.
  3104. * exec.c (xfer_memory): Likewise.
  3105. * findvar.c (read_var_value): Likewise.
  3106. * infcmd.c (jump_command): Likewise.
  3107. * linespec.c (minsym_found): Likewise.
  3108. * maint.c (maintenance_translate_address): Likewise.
  3109. * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Likewise.
  3110. (lookup_solib_trampoline_symbol_by_pc): Likewise.
  3111. * parse.c (write_exp_msymbol): Likewise.
  3112. * printcmd.c (build_address_symbolic): Likewise.
  3113. (address_info, sym_info): Likewise.
  3114. * symmisc.c (dump_msymbols, print_symbol): Likewise.
  3115. * symtab.c (fixup_section): Likewise.
  3116. (fixup_symbol_section, fixup_psymbol_section): Likewise.
  3117. (find_pc_line, find_function_start_sal): Likewise.
  3118. * target.c (memory_xfer_partial): Likewise.
  3119. * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline): Likewise.
  3120. * spu-tdep.c (spu_overlay_update): Likewise.
  3121. 2008-09-04 Doug Evans <dje@google.com>
  3122. * defs.h (plongest,pulongest): Renamed from paddr_u,paddr_d.
  3123. Change argument of pulongest from CORE_ADDR to ULONGEST.
  3124. All callers updated.
  3125. * utils.c (plongest): Renamed from paddr_d.
  3126. (pulongest): Renamed from paddr_u, change arg type to ULONGEST.
  3127. * remote-mips.c (send_srec): Use paddr_nz instead of paddr_u in
  3128. `CORE_ADDR addr' arg of error message.
  3129. 2008-09-03 Angela Marie Thomas <angela@releasedominatrix.com>
  3130. * ser-tcp.c (ser_tcp_send_break): New function.
  3131. (_initialize_ser_tcp): Use ser_tcp_send_break.
  3132. * ser-tcp.h (ser_tcp_send_break): New prototype.
  3133. 2008-09-03 Ulrich Weigand <uweigand@de.ibm.com>
  3134. * spu-tdep.c (spu_push_dummy_call): Update all stack pointer slots
  3135. when allocating stack frame for inferior call.
  3136. 2008-09-03 Ulrich Weigand <uweigand@de.ibm.com>
  3137. * spu-tdep.c (spu_frame_unwind_cache): Do not attempt to unwind
  3138. SP or return address if we failed to find a valid frame.
  3139. 2008-09-03 Aleksandar Ristovski <aristovski@qnx.com>
  3140. * breakpoint.c (breakpoint_init_inferior): Mark as not inserted only
  3141. non-permanent breakpoints.
  3142. (bpstat_stop_status): Change enable_state to bp_disabled only for
  3143. non-permanent breakpoints.
  3144. (bp_loc_is_permanent): New function.
  3145. (create_breakpoint): Check if the location points to a permanent
  3146. breakpoint and if it does, make breakpoint permanent.
  3147. (update_breakpoint_locations): Make sure new locations of permanent
  3148. breakpoints are properly initialized.
  3149. * i386-tdep.c (i386_skip_permanent_breakpoint): New function.
  3150. (i386_gdbarch_init): Set gdbarch_skip_permanent_breakpoint.
  3151. 2008-09-02 Pedro Alves <pedro@codesourcery.com>
  3152. * breakpoint.c (insert_breakpoints, update_global_location_list):
  3153. Check breakpoints_always_inserted_mode instead of
  3154. always_inserted_mode directly.
  3155. 2008-09-02 Andreas Schwab <schwab@suse.de>
  3156. * ia64-tdep.c (ia64_get_dyn_info_list): Use obj_section_addr.
  3157. 2008-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
  3158. Stay compatible after the GCC PR fortran/29635 fix.
  3159. * dwarf2read.c (process_die <DW_TAG_imported_module>)
  3160. (process_die <DW_TAG_imported_module>): Do not assert anything about
  3161. these unsupported tags.
  3162. 2008-08-29 Tom Tromey <tromey@redhat.com>
  3163. * maint.c (_initialize_maint_cmds): Fix typo.
  3164. 2008-08-29 Tom Tromey <tromey@redhat.com>
  3165. * dwarf2read.c (dwarf2_build_psymtabs_hard): Copy dirname on
  3166. obstack.
  3167. 2008-08-27 Ulrich Weigand <uweigand@de.ibm.com>
  3168. * remote.c: Include "gdb_stat.h".
  3169. 2008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
  3170. * dummy-frame.h (dummy_frame_pop): Add prototype.
  3171. * dummy-frame.c: Include "observer.h".
  3172. (dummy_frame_push): Do not check for stale frames.
  3173. (dummy_frame_pop): New function.
  3174. (cleanup_dummy_frames): New function.
  3175. (_initialize_dummy_frame): Install it as inferior_created observer.
  3176. * frame.h (struct frame_id): Update comments.
  3177. (frame_id_inner): Remove prototype.
  3178. * frame.c (frame_id_inner): Make static. Add comments.
  3179. (frame_find_by_id): Update frame_id_inner safety net check to avoid
  3180. false positives for targets using non-contiguous stack ranges.
  3181. (get_prev_frame_1): Update frame_id_inner safety net check.
  3182. (frame_pop): Call dummy_frame_pop when popping a dummy frame.
  3183. * stack.c (return_command): Directly pop the selected frame.
  3184. * infrun.c (handle_inferior_event): Remove dead code.
  3185. * i386-tdep.c (i386_push_dummy_call): Update comment.
  3186. 2008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
  3187. * breakpoint.c (remove_breakpoint): Do not fail if unable to remove
  3188. breakpoint from shared library.
  3189. 2008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
  3190. * solib-svr4.c (read_program_header): New function.
  3191. (scan_dyntag_auxv): New function.
  3192. (elf_locate_base): Use it if scan_dyntag fails.
  3193. (find_program_interpreter): New function.
  3194. (enable_break): Use it instead of .interp section.
  3195. 2008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
  3196. * remote.h (remote_filename_p, remote_bfd_open): Add prototypes.
  3197. * remote.c (remote_bfd_iovec_open, remote_bfd_iovec_close,
  3198. remote_bfd_iovec_pread, remote_bfd_iovec_stat, remote_filename_p,
  3199. remote_bfd_open): New functions.
  3200. (remote_hostio_send_command): Fail safely if remote connection
  3201. is not set up.
  3202. * solist.h (solib_open): Remove prototype.
  3203. (solib_bfd_open): Add prototype.
  3204. * solib.c: Include "remote.h".
  3205. (solib_open): Remove, replace by ...
  3206. (solib_bfd_open): ... this new function. Handle remote BFDs.
  3207. (solib_map_sections): Replace solib_open by solib_bfd_open.
  3208. * solib-frv.c: Include "exceptions.h".
  3209. (enable_break2): Replace solib_open by solib_bfd_open.
  3210. * solib-svr4.c: Include "exceptions.h".
  3211. (enable_break): Replace solib_open by solib_bfd_open.
  3212. * symfile.c: Include "remote.h".
  3213. (build_id_verify): Handle remote BFDs.
  3214. (separate_debug_file_exists): Use BFD to access file. Handle
  3215. remote BFDs.
  3216. (symfile_bfd_open): Handle remote BFDs.
  3217. (reread_symbols): Handle remote BFDs.
  3218. * NEWS: Mention "remote:" argument prefix to "set sysroot".
  3219. 2008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
  3220. * gdbarch.sh (target_gdbarch): New global variable.
  3221. (deprecated_current_gdbarch_select_hack): Set it.
  3222. * gdbarch.c, gdbarch.h: Regenerate.
  3223. * arch-utils.c (gdbarch_update_p): Use target_gdbarch instead
  3224. of current_gdbarch.
  3225. * target-descriptions.c (target_find_description): Likewise.
  3226. * arm-tdep.c (arm_update_current_architecture): Likewise.
  3227. (show_fp_model, arm_show_abi, arm_show_fallback_mode,
  3228. arm_show_force_mode): Likewise.
  3229. * mips-tdep.c (show_mask_address, show_mipsfpu_command,
  3230. show_mips_abi): Likewise.
  3231. * mep-tdep.c (me_module_register_set, current_me_module): Likewise.
  3232. * target.c (target_translate_tls_address): Use target_gdbarch
  3233. instead of current_gdbarch.
  3234. * remote.c (struct packet_reg): Likewise.
  3235. (get_remote_arch_state, packet_reg_from_regnum,
  3236. packet_reg_from_pnum, remote_check_symbols, remote_wait,
  3237. remote_address_masked, remote_insert_breakpoint,
  3238. remote_insert_hw_breakpoint, remote_read_description): Likewise.
  3239. * remote-m32r-sdi.c (m32r_resume, m32r_wait): Likewise.
  3240. * remote-mips.c (mips_open, mips_common_breakpoint): Likewise.
  3241. * cris-tdep.c (cris_can_use_hardware_watchpoint): Likewise.
  3242. * solib.c (solib_open, solib_map_sections, solib_read_symbols,
  3243. solib_add, info_sharedlibrary_command, solib_address,
  3244. solib_create_inferior_hook, in_solib_dynsym_resolve_code,
  3245. solib_global_lookup): Likewise.
  3246. * solib-frv.c (enable_break2, frv_relocate_main_executable): Likewise.
  3247. * solib-irix.c (irix_current_sos, irix_open_symbol_file_object):
  3248. Likewise.
  3249. * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise.
  3250. * solib-svr4.c (exec_entry_point, enable_break, svr4_free_so,
  3251. set_solib_svr4_fetch_link_map_offsets, svr4_fetch_link_map_offsets):
  3252. Likewise.
  3253. * nto-tdep.c (nto_find_and_open_solib, nto_init_solib_absolute_prefix,
  3254. nto_truncate_ptr): Likewise.
  3255. * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Likewise.
  3256. 2008-08-26 Luis Machado <luisgpm@br.ibm.com>
  3257. * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections) New structure.
  3258. (ppc_linux_vmx_regset_sections): New structure.
  3259. (ppc_linux_fp_regset_sections): New structure.
  3260. (ppc_linux_init_abi): Select core-file regset based on target
  3261. features.
  3262. 2008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
  3263. * target.c (debug_print_register): Use regcache_raw_collect
  3264. instead of regcache_cooked_read. Only handle raw registers.
  3265. 2008-08-25 Pedro Alves <pedro@codesourcery.com>
  3266. * cp-name-parser.y: Include config.h before system headers.
  3267. 2008-08-25 Ulrich Weigand <uweigand@de.ibm.com>
  3268. * m88k-tdep.c: Update for unwinder changes.
  3269. 2008-08-24 Tom Tromey <tromey@redhat.com>
  3270. * s390-tdep.c (s390_address_class_type_flags): Use
  3271. TYPE_INSTANCE_FLAG_ADDRESS_CLASS_1.
  3272. (s390_address_class_type_flags_to_name): Likewise.
  3273. (s390_address_class_name_to_type_flags): Likewise.
  3274. 2008-08-24 Tom Tromey <tromey@redhat.com>
  3275. * rs6000-tdep.c (rs6000_builtin_type_vec128): Don't use
  3276. TYPE_FLAGS.
  3277. * features/rs6000/powerpc-vsx32l.c
  3278. (initialize_tdesc_powerpc_vsx32l): Update.
  3279. * features/rs6000/powerpc-vsx32.c
  3280. (initialize_tdesc_powerpc_vsx32): Update.
  3281. * features/rs6000/powerpc-vsx64.c
  3282. (initialize_tdesc_powerpc_vsx64): Update.
  3283. * features/rs6000/powerpc-vsx64l.c
  3284. (initialize_tdesc_powerpc_vsx64l): Update.
  3285. * target-descriptions.c (maint_print_c_tdesc_cmd): Emit
  3286. TYPE_VECTOR, not TYPE_FLAGS.
  3287. 2008-08-24 Tom Tromey <tromey@redhat.com>
  3288. * xml-tdesc.c (tdesc_end_union): Update.
  3289. * stabsread.c (define_symbol): Update.
  3290. (read_type): Update.
  3291. (read_struct_type): Update.
  3292. (read_enum_type): Update.
  3293. * spu-tdep.c (spu_builtin_type_vec128): Update.
  3294. * sh-tdep.c (sh_push_dummy_call_fpu): Update.
  3295. (sh_push_dummy_call_nofpu): Update.
  3296. * mdebugread.c (parse_symbol): Update.
  3297. (parse_symbol): Update.
  3298. (parse_symbol): Update.
  3299. (upgrade_type): Update.
  3300. * jv-lang.c (java_lookup_class): Update.
  3301. * iq2000-tdep.c (iq2000_pointer_to_address): Update.
  3302. * i386-tdep.c (i386_mmx_type): Update.
  3303. (i386_sse_type): Update.
  3304. * gdbtypes.h (enum type_flag_value): New enum.
  3305. (enum type_instance_flag_value): New enum.
  3306. (TYPE_FLAG_UNSIGNED, TYPE_FLAG_NOSIGN, TYPE_FLAG_STUB,
  3307. TYPE_FLAG_TARGET_STUB, TYPE_FLAG_STATIC, TYPE_FLAG_PROTOTYPED,
  3308. TYPE_FLAG_INCOMPLETE, TYPE_FLAG_VARARGS, TYPE_FLAG_VECTOR,
  3309. TYPE_FLAG_FIXED_INSTANCE, TYPE_FLAG_STUB_SUPPORTED,
  3310. TYPE_FLAG_NOTTEXT): Now enum constants.
  3311. (TYPE_FLAG_CONST, TYPE_FLAG_VOLATILE, TYPE_FLAG_CODE_SPACE,
  3312. TYPE_FLAG_DATA_SPACE, TYPE_FLAG_ADDRESS_CLASS_1,
  3313. TYPE_FLAG_ADDRESS_CLASS_2): Remove.
  3314. (TYPE_INSTANCE_FLAG_CONST, TYPE_INSTANCE_FLAG_VOLATILE,
  3315. TYPE_INSTANCE_FLAG_CODE_SPACE, TYPE_INSTANCE_FLAG_DATA_SPACE,
  3316. TYPE_INSTANCE_FLAG_ADDRESS_CLASS_1,
  3317. TYPE_INSTANCE_FLAG_ADDRESS_CLASS_2): New constants.
  3318. (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB, TYPE_TARGET_STUB,
  3319. TYPE_STATIC, TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_VARARGS,
  3320. TYPE_VECTOR, TYPE_FIXED_INSTANCE, TYPE_STUB_SUPPORTED,
  3321. TYPE_NOTTEXT): Update.
  3322. (TYPE_FLAG_ADDRESS_CLASS_ALL): Remove.
  3323. (TYPE_INSTANCE_FLAG_ADDRESS_CLASS_ALL): New define.
  3324. (TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE,
  3325. TYPE_ADDRESS_CLASS_1, TYPE_ADDRESS_CLASS_2,
  3326. TYPE_ADDRESS_CLASS_ALL): Update.
  3327. (struct main_type) <flags>: Remove.
  3328. <flag_unsigned, flag_nosign, flag_stub, flag_target_stub,
  3329. flag_static, flag_prototyped, flag_incomplete, flag_varargs,
  3330. flag_vector, flag_stub_supported, flag_nottext,
  3331. flag_fixed_instance>: New fields.
  3332. <nfields, vptr_fieldno>: Move earlier.
  3333. (TYPE_FLAGS): Remove.
  3334. * gdbtypes.c (make_pointer_type): Update.
  3335. (address_space_name_to_int): Update.
  3336. (address_space_int_to_name): Update.
  3337. (make_type_with_address_space): Update.
  3338. (make_cv_type): Update.
  3339. (create_range_type): Update.
  3340. (get_discrete_bounds): Update.
  3341. (create_set_type): Update.
  3342. (make_vector_type): Update.
  3343. (smash_to_method_type): Update.
  3344. (check_typedef): Update.
  3345. (check_stub_method): Update.
  3346. (init_type): Individually assign flag fields.
  3347. (recursive_dump_type): Don't print entire TYPE_FLAGS field. Do
  3348. print TYPE_FIXED_INSTANCE, TYPE_STUB_SUPPORTED, and TYPE_NOTTEXT.
  3349. (copy_type_recursive): Copy the entire main type. Don't use
  3350. TYPE_FLAGS.
  3351. * features/rs6000/powerpc-altivec64l.c
  3352. (initialize_tdesc_powerpc_altivec64l): Update.
  3353. * features/rs6000/powerpc-altivec64.c
  3354. (initialize_tdesc_powerpc_altivec64): Update.
  3355. * features/rs6000/powerpc-altivec32l.c
  3356. (initialize_tdesc_powerpc_altivec32l): Update.
  3357. * features/rs6000/powerpc-altivec32.c
  3358. (initialize_tdesc_powerpc_altivec32): Update.
  3359. * features/rs6000/powerpc-7400.c (initialize_tdesc_powerpc_7400):
  3360. Update.
  3361. * features/arm-with-iwmmxt.c (initialize_tdesc_arm_with_iwmmxt):
  3362. Update.
  3363. * dwarf2read.c (read_structure_type): Update.
  3364. (read_enumeration_type): Likewise.
  3365. (process_enumeration_scope): Likewise.
  3366. (read_tag_pointer_type): Likewise.
  3367. (read_subroutine_type): Likewise.
  3368. (read_subroutine_type): Likewise.
  3369. (read_base_type): Likewise.
  3370. * coffread.c (coff_read_enum_type): Update.
  3371. * ada-valprint.c (adjust_type_signedness): Update.
  3372. * ada-typeprint.c (print_record_field_types): Update.
  3373. * ada-lang.c (packed_array_type): Update.
  3374. (empty_record): Don't reset TYPE_FLAGS.
  3375. (ada_template_to_fixed_record_type_1): Update.
  3376. (ada_template_to_fixed_record_type_1): Likewise.
  3377. (template_to_static_fixed_type): Likewise.
  3378. (to_record_with_fixed_variant_part): Likewise.
  3379. (to_fixed_record_type): Likewise.
  3380. (to_fixed_array_type): Likewise.
  3381. (to_static_fixed_type): Likewise.
  3382. 2008-08-23 Jim Blandy <jimb@redhat.com>
  3383. PR macros/607:
  3384. * symmisc.c (print_symbol_bcache_statistics): Include statistics
  3385. for the macro bcache.
  3386. 2008-08-23 Tom Tromey <tromey@redhat.com>
  3387. * macrotab.h (struct macro_definition) <kind>: Shrink to one bit.
  3388. (argc): Now 31 bits.
  3389. 2008-08-22 Tom Tromey <tromey@redhat.com>
  3390. * NEWS: Move macro entries back under "New commands".
  3391. 2008-08-22 Ulrich Weigand <uweigand@de.ibm.com>
  3392. * breakpoint.c (create_overlay_event_breakpoint): Rename to ...
  3393. (create_overlay_event_breakpoint_1): ... this. Add OBJFILE parameter.
  3394. (create_overlay_event_breakpoint): Loop over all objfiles to install
  3395. multiple instances of the overlay event breakpoint if present.
  3396. 2008-08-22 Ulrich Weigand <uweigand@de.ibm.com>
  3397. * spu-tdep.c (spu_overlay_new_objfile): Only consider SPU objfiles.
  3398. (info_spu_event_command): Command only supported on SPU architecture.
  3399. (info_spu_signal_command): Likewise.
  3400. (info_spu_mailbox_command): Likewise.
  3401. (info_spu_dma_command): Likewise.
  3402. (info_spu_proxydma_command): Likewise.
  3403. 2008-08-22 Ulrich Weigand <uweigand@de.ibm.com>
  3404. * infrun.c (adjust_pc_after_break): Do not call get_thread_regcache
  3405. if the thread has already exited.
  3406. 2008-08-22 Pedro Alves <pedro@codesourcery.com>
  3407. * infrun.c (proceed): Move back setting previous_inferior_ptid
  3408. from here ...
  3409. (wait_for_inferior): ... to here.
  3410. (fetch_inferior_event): ... and here.
  3411. 2008-08-21 Ulrich Weigand <uweigand@de.ibm.com>
  3412. * gdbarch.sh: Include "regcache.h" into gdbarch.c.
  3413. (deprecated_current_gdbarch_select_hack): Call registers_changed
  3414. instead of reinit_frame_cache.
  3415. * gdbarch.c: Regenerate.
  3416. 2008-08-21 Ulrich Weigand <uweigand@de.ibm.com>
  3417. * elfread.c (elf_symtab_read): Do not relocate thread-local symbols.
  3418. 2008-08-21 Daniel Jacobowitz <dan@codesourcery.com>
  3419. * xcoffread.c (SYMNAME_ALLOC): Correct syntax.
  3420. 2008-08-21 Ulrich Weigand <uweigand@de.ibm.com>
  3421. * findvar.c (locate_var_value): Do not call get_frame_arch
  3422. with a NULL frame argument.
  3423. 2008-08-21 Ulrich Weigand <uweigand@de.ibm.com>
  3424. * frame.h (frame_map_regnum_to_name): Remove prototype.
  3425. (frame_map_name_to_regnum): Remove prototype.
  3426. * frame.c (frame_map_regnum_to_name): Remove.
  3427. (frame_map_name_to_regnum): Remove.
  3428. (frame_unwind_register_value): Use user_reg_map_regnum_to_name
  3429. instead of frame_map_regnum_to_name.
  3430. * ax-gdb.c: Include "user-regs.h".
  3431. (gen_expr): Use user_reg_map_name_to_regnum instead of
  3432. frame_map_name_to_regnum.
  3433. * eval.c: Include "user-regs.h".
  3434. (evaluate_subexp_standard): Use user_reg_map_name_to_regnum
  3435. instead of frame_map_name_to_regnum.
  3436. * infcmd.c (registers_info): Likewise.
  3437. * parse.c: Include "user-regs.h".
  3438. (write_dollar_variable): Use user_reg_map_name_to_regnum
  3439. instead of frame_map_name_to_regnum.
  3440. * tracepoint.c: Include "user-regs.h".
  3441. (encode_actions): Use user_reg_map_name_to_regnum
  3442. instead of frame_map_name_to_regnum.
  3443. * valops.c: Include "user-regs.h".
  3444. (value_fetch_lazy): Use user_reg_map_regnum_to_name instead
  3445. of frame_map_regnum_to_name.
  3446. 2008-08-21 Ulrich Weigand <uweigand@de.ibm.com>
  3447. * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Read
  3448. and manually relocate .opd contents from BFD instead of reading
  3449. them from target memory.
  3450. 2008-08-21 Daniel Jacobowitz <dan@codesourcery.com>
  3451. * dwarf2read.c (processing_current_prefix): Delete static
  3452. variable.
  3453. (process_full_comp_unit): Do not set processing_current_prefix.
  3454. (dwarf2_full_name): New function.
  3455. (read_func_scope): Do not set processing_current_prefix. Use
  3456. determine_prefix.
  3457. (read_structure_type): Do not set processing_current_prefix. Remove
  3458. unused inner cleanup.
  3459. (process_structure_scope): Do not set processing_current_prefix.
  3460. (read_enumeration_type): Use dwarf2_full_name.
  3461. (determine_class_name): Return a const char *. Put the result
  3462. on the objfile obstack. Use dwarf2_full_name.
  3463. (read_namespace_type): New function.
  3464. (read_namespace): Do not create the type here. Use
  3465. determine_prefix.
  3466. (read_typedef): Use dwarf2_full_name. Do not pass the name
  3467. to init_type.
  3468. (read_base_type): Do not pass the name to init_type. Handle
  3469. TYPE_FLAG_NOSIGN.
  3470. (read_unspecified_type): Do not pass the name to init_type.
  3471. (new_symbol): Use dwarf2_full_name instead of
  3472. processing_current_prefix.
  3473. (read_type_die): Do not set processing_current_prefix. Handle
  3474. DW_TAG_namespace.
  3475. (determine_prefix): Handle specifications. Return the result
  3476. on the objfile obstack. Handle unions correctly.
  3477. 2008-08-21 Daniel Jacobowitz <dan@codesourcery.com>
  3478. * buildsym.c (add_symbol_to_list): Do not call
  3479. cp_scan_for_anonymous_namespaces here.
  3480. (finish_block): Do not call cp_set_block_scope here.
  3481. * cp-namespace.c (processing_has_namespace_info)
  3482. (processing_current_prefix): Delete.
  3483. (cp_initialize_namespace): Do not initialize
  3484. processing_has_namespace_info.
  3485. (cp_scan_for_anonymous_namespaces): Use SYMBOL_DEMANGLED_NAME. Do
  3486. not check processing_has_namespace_info.
  3487. (cp_set_block_scope): Take prefix and namespace info flag as
  3488. arguments. Honor namespaces regardless of a demangled name.
  3489. * cp-support.h (processing_has_namespace_info)
  3490. (processing_current_prefix): Delete declarations.
  3491. (cp_set_block_scope): Update prototype.
  3492. * dwarf2read.c (processing_has_namespace_info)
  3493. (processing_current_prefix): New static variables.
  3494. (read_file_scope): Initialize processing_has_namespace_info.
  3495. (read_func_scope): Call cp_set_block_scope for C++.
  3496. (new_symbol): Call cp_scan_for_anonymous_namespaces for C++.
  3497. * symtab.c (symbol_demangled_name): Accept a const argument.
  3498. * symtab.h (symbol_demangled_name): Update prototype.
  3499. 2008-08-21 Daniel Jacobowitz <dan@codesourcery.com>
  3500. * ax-gdb.c (gen_var_ref): Use SYMBOL_LINKAGE_NAME.
  3501. * blockframe.c (find_pc_partial_function): Likewise.
  3502. * buildsym.c (find_symbol_in_list): Likewise.
  3503. * c-valprint.c (c_val_print): Likewise.
  3504. * coffread.c (patch_opaque_types, process_coff_symbol): Likewise.
  3505. (coff_read_enum_type): Likewise. Use SYMBOL_SET_LINKAGE_NAME.
  3506. * cp-support.c (cp_remove_params): Renamed from remove_params and
  3507. made global.
  3508. (overload_list_add_symbol): Update call to remove_params.
  3509. * cp-support.h (cp_remove_params): Declare.
  3510. * dwarf2read.c (process_enumeration_scope): Use SYMBOL_LINKAGE_NAME.
  3511. (dwarf2_const_value): Use SYMBOL_PRINT_NAME.
  3512. * expprint.c (dump_subexp_body_standard): Likewise.
  3513. * f-valprint.c (info_common_command, there_is_a_visible_common_named):
  3514. Use SYMBOL_LINKAGE_NAME to find symbols and SYMBOL_PRINT_NAME
  3515. for messages.
  3516. * findvar.c (read_var_value): Use SYMBOL_LINKAGE_NAME.
  3517. * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
  3518. * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
  3519. (hppa_hpux_skip_trampoline_code): Use SYMBOL_LINKAGE_NAME to find
  3520. symbols and SYMBOL_PRINT_NAME for messages.
  3521. * jv-lang.c (add_class_symbol): Use SYMBOL_SET_LINKAGE_NAME.
  3522. * linespec.c (decode_line_2): Use SYMBOL_LINKAGE_NAME.
  3523. * mdebugread.c (parse_symbol): Use SYMBOL_LINKAGE_NAME and
  3524. SYMBOL_SET_LINKAGE_NAME.
  3525. (mylookup_symbol): Use SYMBOL_LINKAGE_NAME.
  3526. * minsyms.c (add_minsym_to_demangled_hash_table): Use
  3527. SYMBOL_SEARCH_NAME.
  3528. (lookup_minimal_symbol): Use SYMBOL_LINKAGE_NAME or
  3529. SYMBOL_MATCHES_SEARCH_NAME, depending on the pass.
  3530. * objfiles.h (ALL_OBJFILE_MSYMBOLS): Use SYMBOL_LINKAGE_NAME.
  3531. * printcmd.c (build_address_symbolic): Use SYMBOL_LINKAGE_NAME.
  3532. (address_info): Use SYMBOL_PRINT_NAME for messages and
  3533. SYMBOL_LINKAGE_NAME for lookups.
  3534. * sol-thread.c (info_cb): Use SYMBOL_PRINT_NAME for messages.
  3535. * stabsread.c (patch_block_stabs, define_symbol)
  3536. (read_type, read_enum_type, common_block_end)
  3537. (cleanup_undefined_types_1, scan_file_globals): Use
  3538. SYMBOL_LINKAGE_NAME, SYMBOL_SET_LINKAGE_NAME, ALL_OBJFILE_MSYMBOLS,
  3539. and SYMBOL_PRINT_NAME.
  3540. * stack.c (print_frame_args): Use SYMBOL_LINKAGE_NAME.
  3541. (print_frame, frame_info): Use SYMBOL_PRINT_NAME for output. Use
  3542. cp_remove_params instead of cplus_demangle.
  3543. (print_block_frame_labels, print_frame_arg_vars): Use
  3544. SYMBOL_LINKAGE_NAME.
  3545. * symmisc.c (dump_msymbols): Use ALL_OBJFILE_MSYMBOLS and
  3546. SYMBOL_LINKAGE_NAME.
  3547. (dump_symtab_1, print_symbol, print_partial_symbols)
  3548. (maintenance_check_symtabs): Use SYMBOL_LINKAGE_NAME.
  3549. * symtab.h (DEPRECATED_SYMBOL_NAME): Delete.
  3550. (SYMBOL_SET_LINKAGE_NAME): New.
  3551. (SYMBOL_SET_NAMES): Add a comment.
  3552. * tracepoint.c (set_traceframe_context, validate_actionline)
  3553. (collect_symbol, scope_info): Use SYMBOL_LINKAGE_NAME for
  3554. lookups and SYMBOL_PRINT_NAME for output.
  3555. * typeprint.c (typedef_print): Use SYMBOL_LINKAGE_NAME.
  3556. * xcoffread.c (process_xcoff_symbol): Use SYMBOL_SET_LINKAGE_NAME.
  3557. 2008-08-21 Pedro Alves <pedro@codesourcery.com>
  3558. * arm-tdep.c (arm_pc_is_thumb): Use obj_section_addr.
  3559. * hppa-hpux-tdep.c (hppa_hpux_find_dummy_bpaddr): Likewise.
  3560. * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Use
  3561. obj_section_addr and obj_section_endaddr.
  3562. * hppa-tdep.c (hppa64_convert_code_addr_to_fptr): Likewise.
  3563. * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
  3564. * ia64-tdep.c (ia64_find_global_pointer): Likewise.
  3565. (find_extant_func_descr): Likewise.
  3566. * solib-frv.c (frv_relocate_main_executable): Use
  3567. obj_section_addr.
  3568. * xstormy16-tdep.c (xstormy16_find_jmp_table_entry): Use
  3569. obj_section_addr and obj_section_endaddr.
  3570. 2008-08-21 Paul N. Hilfinger <hilfinger@adacore.com>
  3571. * NEWS: Amplify last entry on boolean types in Ada.
  3572. 2008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
  3573. * dwarf2read.c (die_specification, dwarf2_extension, follow_die_ref):
  3574. Make the dwarf2_cu * parameter output as well as input. Update it if
  3575. we follow a reference to another CU.
  3576. (read_func_scope, determine_class_name, namespace_name, dwarf2_attr)
  3577. (die_type, die_containing_type): Update calls to changed functions.
  3578. Use the returned CU along with the returned DIE.
  3579. (read_namespace): Use dwarf2_attr instead of dwarf2_extension.
  3580. 2008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
  3581. * dwarf2read.c (queue_comp_unit): Take an objfile argument. Read
  3582. in the DIEs here.
  3583. (process_queue): Do not read in the DIEs here.
  3584. (psymtab_to_symtab_1): Update call to queue_comp_unit.
  3585. (read_full_die): Do not call queue_comp_unit from here.
  3586. (maybe_queue_comp_unit): New function.
  3587. (follow_die_ref): Use it.
  3588. 2008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
  3589. * dwarf2read.c (struct attribute): Move earlier.
  3590. (struct die_info): Change attrs to a trailing array.
  3591. (dwarf_alloc_die): Take the number of attributes. Allocate space
  3592. for them.
  3593. (read_full_die): Update call to dwarf_alloc_die. Do not manually
  3594. allocate attributes.
  3595. 2008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
  3596. * dwarf2read.c (REF_HASH_SIZE): Delete.
  3597. (struct dwarf2_cu): Replace die_ref_table with die_hash.
  3598. (struct die_info): Remove next_ref.
  3599. (store_in_ref_table): Remove offset argument. Rewrite to use
  3600. htab_find_slot_with_hash.
  3601. (die_hash, die_eq): New.
  3602. (read_comp_unit): Allocate the die_hash.
  3603. (read_die_and_children): Update call to store_die_ref.
  3604. (follow_die_ref): Rewrite to use htab_find_with_hash.
  3605. 2008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
  3606. * dwarf2read.c (free_die_list, copy_die): Delete.
  3607. (dwarf_alloc_die): Take a CU argument. Allocate the new DIE
  3608. on the obstack.
  3609. (read_full_die): Update call to dwarf_alloc_die. Allocate
  3610. attributes on the CU obstack.
  3611. (free_one_comp_unit): Do not call free_die_list.
  3612. 2008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
  3613. * dwarf2read.c (read_die_and_children): Ignore NULL DIEs.
  3614. (read_die_and_siblings): Likewise. Do not add padding DIEs to the
  3615. sibling list.
  3616. (read_full_die): Do not allocate DIEs for abbrev 0.
  3617. (follow_die_ref): Correct error message.
  3618. 2008-08-20 Pedro Alves <pedro@codesourcery.com>
  3619. * linespec.c (symtab_from_filename): Also throw NOT_FOUND_ERROR if
  3620. there are no symbols loaded, instead of throwing a generic error.
  3621. (decode_variable): Likewise.
  3622. 2008-08-20 Pedro Alves <pedro@codesourcery.com>
  3623. * objfiles.h (struct obj_section): Remove addr and endaddr fields.
  3624. (obj_section_offset, obj_section_addr, obj_section_endaddr): New
  3625. macros.
  3626. * objfiles.c (add_to_objfile_sections): Don't set addr, endaddr
  3627. and offset. Use size_t instead of unsigned long.
  3628. (build_objfile_section_table): Use size_t instead of unsigned
  3629. long.
  3630. (objfile_relocate): Don't relocate s->addr and s->endaddr, they're
  3631. gone.
  3632. (find_pc_sect_section): Use obj_section_addr and
  3633. obj_section_endaddr.
  3634. * symfile.c (symfile.c): Remove code that maps sections
  3635. offsets in "addr" to the object's sections.
  3636. * blockframe.c (find_pc_partial_function): Use obj_section_endaddr.
  3637. * gcore.c (gcore_create_callback): Use obj_section_addr and
  3638. obj_section_endaddr.
  3639. * maint.c (print_objfile_section_info): Likewise.
  3640. * printcmd.c (sym_info): Use obj_section_addr and
  3641. obj_section_endaddr.
  3642. * symtab.c (fixup_section): Likewise.
  3643. 2008-08-20 Mark Kettenis <kettenis@gnu.org>
  3644. * sparc-tdep.c: Make some comments catch up with reality.
  3645. 2008-08-20 Vladimir Prus <vladimir@codesourcery.com>
  3646. * NEWS: Mention 'set target-async'
  3647. 2008-08-19 Vladimir Prus <vladimir@codesourcery.com>
  3648. * infrun.c (resume): If the thread is placed to the deferred step
  3649. queue, mark it as running.
  3650. 2008-08-19 Vladimir Prus <vladimir@codesourcery.com>
  3651. Make sure target supports non-stop.
  3652. * infcmd.c (run_command_1, attach_command): If non-stop mode
  3653. is requested, verify the target supports it.
  3654. * linux-nat.c (linux_nat_supports_non_stop): New.
  3655. (linux_nat_add_target): Register the above.
  3656. * target.c (find_default_supports_non_stop)
  3657. (target_supports_non_stop): New.
  3658. (init_dummy_target): Register find_default_supports_non_stop.
  3659. * target.h (struct target_ops): New field to_supports_non_stop.
  3660. (target_supports_non_stop): New.
  3661. 2008-08-19 Pedro Alves <pedro@codesourcery.com>
  3662. Vladimir Prus <vladimir@codesourcery.com>
  3663. * target.c (target_async_permitted, target_async_permitted_1)
  3664. (set_maintenance_target_async_permitted)
  3665. (show_maintenance_target_async_permitted): New.
  3666. (initialize_targets): Register 'set target-async'.
  3667. * target.h (target_async_permitted): Declare.
  3668. * linux-nat.c (linux_nat_async_enabled)
  3669. (linux_nat_async_permitted, set_maintenance_linux_async_permitted)
  3670. (show_maintenance_linux_async_permitted): Remove.
  3671. (sigchld_handler, linux_nat_is_async_p, linux_nat_can_async_p)
  3672. (get_pending_events, linux_nat_async): Use target_async_permitted.
  3673. (linux_nat_set_async_mode): Remove, moving the only used bits
  3674. into...
  3675. (linux_nat_setup_async): This.
  3676. (_initialize_linux_nat): Do not register 'maint set linux-async'.
  3677. Use linux_nat_setup_async.
  3678. * remote.c (remote_async_permitted, remote_async_permitted_set)
  3679. (set_maintenance_remote_async_permitted)
  3680. (show_maintenance_remote_async_permitted): Remove.
  3681. (remote_open_1, remote_terminal_inferior, remote_can_async_p)
  3682. (remote_is_async_p): Use target_async_permitted.
  3683. (_initialize_remote): Don't register 'main set remote-async'.
  3684. * mi/mi-cmds.c (mi_cmds): Register -list-target-features.
  3685. * mi/mi-cmds.h (mi_cmd_list_target_features): New.
  3686. * mi/mi-main.c (mi_cmd_list_target_features): New.
  3687. 2008-08-19 Vladimir Prus <vladimir@codesourcery.com>
  3688. * target.c (maybe_kill_then_attach)
  3689. (maybe_kill_then_create_inferior): Remove.
  3690. (update_current_target): Do not default to_attach,
  3691. to_create_inferiour, to_is_async_p.
  3692. 2008-08-19 Paul N. Hilfinger <hilfinger@adacore.com>
  3693. Changes for supporting boolean types in debugging data.
  3694. * ada-lang.c (discrete_type_high_bound,discrete_type_low_bound): Change
  3695. API to return LONGEST values rather than struct values.
  3696. (ada_evaluate_subexp): Change to use new API of discrete_type_low_bound
  3697. and discrete_type_high_bound.
  3698. (to_fixed_range_type): Create a range type in cases where
  3699. argument is base type and its limits are representable as ints.
  3700. (ada_is_modular_type): Correct so that base type must be integral.
  3701. * ada-lex.l (TRUEKEYWORD,FALSEKEYWORD): Make 'true' and 'false'
  3702. keywords when they appear alone, since we are phasing out
  3703. direct representation of these identifiers in debugging data.
  3704. * ada-exp.y: Define 'true' and 'false' as primaries.
  3705. (type_boolean): New function.
  3706. (type_int,type_long,type_long_long,type_floattype_double)
  3707. (type_long_double): Remove uses of current_gdbarch for consistency
  3708. with type_boolean.
  3709. (write_int): Change comment to indicate that it might write boolean
  3710. constant as well.
  3711. * ada-typeprint.c (ada_print_type): Print '(false, true)' for boolean
  3712. type, since will no longer be represented as enumerated type in
  3713. debugging data.
  3714. * ada-valprint.c (print_optional_low_bound): Handle boolean case
  3715. as well.
  3716. * NEWS: Note support boolean types.
  3717. 2008-08-18 Pedro Alves <pedro@codesourcery.com>
  3718. * bsd-uthread.c (bsd_uthread_close): New.
  3719. (bsd_uthread_deactivate): Don't cleanup here, just unpush the
  3720. target.
  3721. (bsd_uthread_solib_loaded): Fix typo.
  3722. (bsd_uthread_target): Register bsd_uthread_close.
  3723. 2008-08-18 Pedro Alves <pedro@codesourcery.com>
  3724. * corelow.c (core_open): Assume there was no upper layer left
  3725. behind from a previous inferior.
  3726. * target.c (pop_all_targets): Rename to ...
  3727. (pop_all_targets_above): ... this. Add a target stratum
  3728. parameter. Use it instead of hardcoding the dummy_stratum.
  3729. (pop_all_targets): New, defer to pop_all_targets_above.
  3730. (target_preopen): Use pop_all_targets_above.
  3731. * target.h (pop_all_targets_above): Declare.
  3732. 2008-08-18 Pedro Alves <pedro@codesourcery.com>
  3733. * gdbthread.h (thread_change_ptid): Declare.
  3734. * infrun.c (infrun_thread_ptid_changed): New.
  3735. (_initialize_infrun): Attach infrun_thread_ptid_changed to the
  3736. thread_ptid_changed observer.
  3737. * regcache.c (regcache_thread_ptid_changed): New.
  3738. (_initialize_regcache): Attach regcache_thread_ptid_changed to the
  3739. thread_ptid_changed observer.
  3740. * thread.c (thread_change_ptid): New.
  3741. 2008-08-18 Tom Tromey <tromey@redhat.com>
  3742. * symfile.c (reread_symbols): Update.
  3743. * solib-sunos.c (allocate_rt_common_objfile): Update.
  3744. * objfiles.c (allocate_objfile): Update.
  3745. * objfiles.h (struct objfile) <md, mmfd, deprecated_obj_private>:
  3746. Remove.
  3747. 2008-08-18 Tom Tromey <tromey@redhat.com>
  3748. * gdbtypes.c (copy_type_recursive): Allocate 'stored' on objfile's
  3749. obstack.
  3750. 2008-08-18 Daniel Jacobowitz <dan@codesourcery.com>
  3751. * rs6000-tdep.c (struct rs6000_framedata): Add gpr_mask, used_bl,
  3752. lr_register.
  3753. (rs6000_in_function_epilogue_p): Check for bctr.
  3754. (skip_prologue): Initialize lr_register. Set lr_reg to a register
  3755. number. Set gpr_mask and used_bl. Continue scanning while some
  3756. expected registers are not saved. Set lr_register if LR is not
  3757. stored.
  3758. (rs6000_frame_cache): Handle gpr_mask and lr_register.
  3759. 2008-08-17 Tom Tromey <tromey@redhat.com>
  3760. PR gdb/1535:
  3761. * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): New macros.
  3762. (ep_find_event_name_end): Remove.
  3763. (catch_fork_temporary, catch_vfork_temporary,
  3764. catch_fork_permanent, catch_vfork_permanent): New constants.
  3765. (catch_vfork, catch_fork): Remove.
  3766. (catch_fork_command_1): Add 'command' argument. Remove
  3767. 'fork_kind' and 'tempflag'. Handle NULL 'arg'. Update switch for
  3768. all cases.
  3769. (catch_exec_command_1): Add 'command' argument; remove
  3770. 'tempflag'. Handle NULL 'arg'.
  3771. (catch_load_command_1): Likewise.
  3772. (catch_unload_command_1): Likewise.
  3773. (catch_ada_exception_command): Likewise.
  3774. (catch_assert_command): Likewise.
  3775. (catch_catch_command): New function.
  3776. (catch_throw_command): Likewise.
  3777. (catch_command_1): Remove.
  3778. (catch_command): Just call error.
  3779. (tcatch_command): Likewise.
  3780. (catch_cmdlist): New global.
  3781. (tcatch_cmdlist): Likewise.
  3782. (add_catch_command): New function.
  3783. (_initialize_breakpoint): Create "catch" and "tcatch" as prefix
  3784. commands. Create all catch sub-commands.
  3785. 2008-08-17 Pedro Alves <pedro@codesourcery.com>
  3786. * gdbthread.h: Add comments.
  3787. * stack.c (get_selected_block): Return 0 on an exited thread.
  3788. * top.c (execute_command): Check for is_stopped, not !is_running.
  3789. * event-top.c (command_handler): Likewise.
  3790. 2008-08-16 Pedro Alves <pedro@codesourcery.com>
  3791. * mi/mi-main.c (mi_cmd_exec_next, mi_cmd_exec_next_instruction)
  3792. (mi_cmd_exec_step, mi_cmd_exec_step_instruction)
  3793. (mi_cmd_exec_finish): Remove "return".
  3794. 2008-08-16 Pedro Alves <pedro@codesourcery.com>
  3795. * target.h (pop_all_targets): Declare.
  3796. * target.c (pop_all_targets): New.
  3797. * top.c (quit_target): Pop all targets instead of just closing the
  3798. current.
  3799. 2008-08-16 Vladimir Prus <vladimir@codesourcery.com>
  3800. Thiago Jung Bauermann <bauerman@br.ibm.com>
  3801. * cli-script.c (read_next_line): Add parse_commands argument.
  3802. (recurse_read_control_structure): Adapt to new read_next_line
  3803. signature.
  3804. (read_command_lines): Add parse_commands argument.
  3805. (define_command): Adapt to new read_command_lines signature.
  3806. (document_command): Likewise.
  3807. * breakpoint.c (commands_command): Likewise.
  3808. * defs.h (read_command_lines): Adjust function prototype.
  3809. 2008-08-16 Paul N. Hilfinger <hilfinger@adacore.com>
  3810. * ada-lang.c (pos_atr): Account for the possibility that the
  3811. argument may be a reference.
  3812. 2008-08-16 Paul N. Hilfinger <hilfingr@adacore.com>
  3813. * xcoffread.c (scan_xcoff_symtab): Do not include global symbols
  3814. ('F' format) for @FIX names generated by the loader, retaining only
  3815. the minimal symbols (and no partial symbol tables) for these names.
  3816. Fixes warning messages about symbols that are found in partial
  3817. symbol tables, but not full symbol tables.
  3818. 2008-08-16 Pedro Alves <pedro@codesourcery.com>
  3819. * infrun.c (fetch_inferior_event): Only call normal_stop if not
  3820. stopping quietly.
  3821. 2008-08-15 Luis Machado <luisgpm@br.ibm.com>
  3822. * rs6000-tdep: Include "features/rs6000/powerpc-vsx32.c".
  3823. Include "features/rs6000/powerpc-vsx64.c".
  3824. (ppc_supply_vsxregset): New function.
  3825. (ppc_collect_vsxregset): New function.
  3826. (IS_VSX_PSEUDOREG): New macro.
  3827. (IS_EFP_PSEUDOREG): New macro.
  3828. (vsx_register_p): New function.
  3829. (ppc_vsx_support_p): New function.
  3830. (rs6000_builtin_type_vec128): New function.
  3831. (rs6000_register_name): Hide upper halves of vs0~vs31. Return
  3832. correct names for VSX registers and EFPR registers.
  3833. (rs6000_pseudo_register_type): Return correct types for VSX
  3834. and EFPR registers.
  3835. (rs6000_pseudo_register_reggroup_p): Return correct group for
  3836. VSX and EFPR registers.
  3837. (ppc_pseudo_register_read): Rename to dfp_pseudo_register_read.
  3838. (ppc_pseudo_register_write): Rename to dfp_pseudo_register_write.
  3839. (vsx_pseudo_register_read): New function.
  3840. (vsx_pseudo_register_write): New function.
  3841. (efpr_pseudo_register_read): New function.
  3842. (efpr_pseudo_register_write): New function.
  3843. (rs6000_pseudo_register_read): Call new VSX and EFPR read functions.
  3844. (rs6000_pseudo_register_write): Call new VSX and EFPR write functions.
  3845. (rs6000_gdbarch_init): Declare have_vsx.
  3846. Initialize new upper half VSX registers.
  3847. Initialize VSX-related and EFPR-related pseudo-registers variables.
  3848. Adjust the number of pseudo registers accordingly.
  3849. * ppc-linux-nat.c: Define PTRACE_GETVSXREGS, PTRACE_SETVSXREGS
  3850. and SIZEOF_VSRREGS.
  3851. (gdb_vsxregset_t): New type.
  3852. (have_ptrace_getsetvsxregs): New variable.
  3853. (fetch_vsx_register): New function.
  3854. (fetch_register): Handle VSX registers.
  3855. (fetch_vsx_registers): New function.
  3856. (fetch_ppc_registers): Handle VSX registers.
  3857. (store_ppc_registers): Handle VSX registers.
  3858. (store_vsx_register): New function.
  3859. (store_register): Handle VSX registers.
  3860. (store_vsx_registers): New function.
  3861. (ppc_linux_read_description): Handle VSX-enabled inferiors.
  3862. (gdb_vsxregset_t): New type.
  3863. (supply_vsxregset): New function.
  3864. (fill_vsxregset): New function.
  3865. * ppc-tdep.h (vsx_register_p): New prototype.
  3866. (vsx_support_p): New prototype.
  3867. (ppc_vsr0_regnum): New variable.
  3868. (ppc_vsr0_upper_regnum): Likewise.
  3869. (ppc_efpr0_regnum): Likewise.
  3870. (ppc_builtin_type_vec128): New type.
  3871. (ppc_num_vsrs): New constant.
  3872. (ppc_num_vshrs): New constant.
  3873. (ppc_num_efprs): Likewise.
  3874. Define POWERPC_VEC_VSX PPC_VSR0_UPPER_REGNUM and PPC_VSR31_UPPER_REGNUM.
  3875. (ppc_supply_vsxregset): New prototype.
  3876. (ppc_collect_vsxregset): New prototype.
  3877. * ppc-linux-tdep.c: Include "features/rs6000/powerpc-vsx32l.c"
  3878. Include "features/rs6000/powerpc-vsx64l.c".
  3879. (_initialize_ppc_linux_tdep): Initialize VSX-enabled targets.
  3880. (ppc_linux_regset_sections): Add new ".reg-ppc-vsx" field.
  3881. (ppc32_linux_vsxregset): New 32-bit VSX-enabled regset.
  3882. (ppc_linux_regset_from_core_section): Handle VSX core section.
  3883. (ppc_linux_core_read_description): Support VSX-enabled core files.
  3884. * ppc-linux-tdep.h: Declare *tdesc_powerpc_vsx32l
  3885. Declare tdesc_powerpc_vsx64l
  3886. * corelow.c (get_core_register_section): Support VSX-enabled
  3887. core files.
  3888. * features/rs6000/power-vsx.xml: New VSX descriptions.
  3889. * features/rs6000/powerpc-vsx32.xml: New file.
  3890. * features/rs6000/powerpc-vsx32l.xml: New file.
  3891. * features/rs6000/powerpc-vsx64.xml: New file.
  3892. * features/rs6000/powerpc-vsx64l.xml: New file.
  3893. * features/rs6000/powerpc-vsx32.c: New file (generated).
  3894. * features/rs6000/powerpc-vsx32l.c: New file (generated).
  3895. * features/rs6000/powerpc-vsx64.c: New file (generated).
  3896. * features/rs6000/powerpc-vsx64l.c: New file (generated).
  3897. * features/Makefile: Updated with new descriptions.
  3898. * regformats/rs6000/powerpc-vsx32l.dat: New file (generated).
  3899. * regformats/rs6000/powerpc-vsx64l.dat: New file (generated).
  3900. 2008-08-15 Vladimir Prus <vladimir@codesourcery.com>
  3901. * ia64-linux.nat (_initialize_ia64_linux_nat): Don't
  3902. call linux_target twice.
  3903. 2008-08-14 Aleksandar Ristovski <aristovski@qnx.com>
  3904. * nto-tdep.c (lm_info): Updated struct lm_info definition from
  3905. solib-svr4.c
  3906. (LM_ADDR): Use l_addr if available; if not, use link map and set
  3907. l_addr.
  3908. 2008-08-14 Tom Tromey <tromey@redhat.com>
  3909. * macrocmd.c (macro_define_command): Check for NULL argument.
  3910. (macro_undef_command): Likewise.
  3911. 2008-08-14 Pedro Alves <pedro@codesourcery.com>
  3912. * infcmd.c (continue_1): Add an ERROR_NO_INFERIOR call.
  3913. 2008-08-13 Pedro Alves <pedro@codesourcery.com>
  3914. * breakpoint.c (always_inserted_auto, always_inserted_on)
  3915. (always_inserted_off, always_inserted_enums): New.
  3916. (always_inserted_mode): Change type to char* and point to
  3917. always_inserted_auto.
  3918. (show_always_inserted_mode): In auto mode, also show the current
  3919. effect of the option.
  3920. (breakpoints_always_inserted_mode): Adjust for the new auto mode.
  3921. (_initialize_breakpoint): Make the "set breakpoints
  3922. always-inserted" command an enum command. Extend help to describe
  3923. the auto mode.
  3924. 2008-08-13 Ulrich Weigand <uweigand@de.ibm.com>
  3925. * spu-tdep.c (info_spu_dma_command): Respect TSQV (tag status
  3926. query valid) bit. Ignore bits outside the condition field.
  3927. (info_spu_proxydma_command): Ignore bits outside the field.
  3928. 2008-08-12 Michael Snyder <msnyder@vmware.com>
  3929. * MAINTAINERS: Update my email address.
  3930. 2008-08-12 Ulrich Weigand <uweigand@de.ibm.com>
  3931. * ppc-linux-nat.c (ppc_linux_get_hwcap): Really get AT_HWCAP.
  3932. 2008-08-12 Pedro Alves <pedro@codesourcery.com>
  3933. Add no-ack mode to the remote protocol --- optionally stop ACKing
  3934. packets and responses when we have a reliable communication
  3935. medium.
  3936. Based on Apple's GDB, by Jason Molenda <jmolenda@apple.com>
  3937. * remote.c (struct remote_state): Add noack_mode field.
  3938. (PACKET_QStartNoAckMode): New.
  3939. (remote_start_remote): Don't any outstanding packet here.
  3940. (remote_open_1): Clear noack_mode. Ack any outstanding packet
  3941. here. Activate noack mode if requested.
  3942. (remote_protocol_features): Add QStartNoAckMode.
  3943. (remote_open_1):
  3944. (putpkt_binary): Don't send ack in noack mode.
  3945. (read_frame): Don't recompute the checksum in noack mode.
  3946. (getpkt_sane): Skip sending ack if in noack mode.
  3947. (_initialize_remote): Add set/show remote noack mode.
  3948. * NEWS: Note the new features.
  3949. 2008-08-11 Kevin Buettner <kevinb@redhat.com>
  3950. * rs6000-tdep.c (BL_MASK, BL_INSTRUCTION, BL_DISPLACEMENT_MASK):
  3951. New macros.
  3952. (rs6000_skip_main_prologue): New function.
  3953. (rs6000_gdb_arch_init): Register rs6000_skip_main_prologue.
  3954. 2008-08-11 Sandra Loosemore <sandra@codesourcery.com>
  3955. * MAINTAINERS (Write After Approval): Add self.
  3956. 2008-08-11 Stan Shebs <stan@codesourcery.com>
  3957. ARM BE8 support.
  3958. * disasm.c (gdb_disassemble_info): Set endian_code.
  3959. * gdbarch.sh (gdbarch_info): New field byte_order_for_code.
  3960. * gdbarch.h, gdbarch.c: Regenerate.
  3961. * arch-utils.c (initialize_current_architecture): Set the
  3962. default byte_order_for_code.
  3963. (gdbarch_info_init): Ditto.
  3964. (gdbarch_info_fill): Ditto.
  3965. * arm-tdep.c (SWAP_INT, SWAP_SHORT): New macros.
  3966. (thumb_analyze_prologue): Swap halfword if code endianness is
  3967. different from general endianness.
  3968. (arm_skip_prologue): Similarly.
  3969. (arm_scan_prologue): Ditto.
  3970. (thumb_get_next_pc): Ditto.
  3971. (arm_get_next_pc): Ditto.
  3972. (arm_gdbarch_init): Set byte_order_for_code from BE8 flag,
  3973. choose correct endianness for breakpoints.
  3974. 2008-08-10 Pedro Alves <pedro@codesourcery.com>
  3975. * bsd-kvm.c: Include "gdbthread.h".
  3976. (bsd_kvm_ptid): New.
  3977. (bsd_kvm_open): Add a main thread.
  3978. (bsd_kvm_close): Delete it.
  3979. (bsd_kvm_thread_alive): New.
  3980. (bsd_kvm_pid_to_str): New.
  3981. (bsd_kvm_add_target): Register bsd_kvm_thread_alive and
  3982. bsd_kvm_pid_to_str.
  3983. (bsd_kvm_add_target): Initialize bsd_kvm_ptid.
  3984. 2008-08-09 Pedro Alves <pedro@codesourcery.com>
  3985. * buildsym.c (start_subfile): Properly cast sentinel in concat
  3986. call.
  3987. * cp-name-parser.y: Include "config.h".
  3988. * xml-tdesc.c (fetch_xml_from_file): Properly cast sentinel in
  3989. concat call.
  3990. * gdb_select.h: Include sys/time.h if sys/select.h is not
  3991. available.
  3992. 2008-08-09 Pedro Alves <pedro@codesourcery.com>
  3993. * go32-nat.c: Include "gdbthread.h".
  3994. (go32_stop, go32_kill_inferior): Delete the main thread.
  3995. (go32_create_inferior): Add it.
  3996. (go32_thread_alive, go32_pid_to_str): New.
  3997. (init_go32_ops): Register go32_thread_alive and go32_pid_to_str.
  3998. 2008-08-09 Pedro Alves <pedro@codesourcery.com>
  3999. * go32-nat.c (fetch_register, store_register): Pass the regcache
  4000. gdbarch to i386_fp_regnum_p and i386_fpc_regnum_p.
  4001. (go32_xfer_memory): Change type of myaddr parameter to gdb_byte.
  4002. (struct seg_descr, struct seg_descr): pack the whole struct
  4003. instead of each member individually.
  4004. 2008-08-09 Andreas Schwab <schwab@suse.de>
  4005. * python/python.c (_initialize_python): Use unabbreviated commands
  4006. in prefix name.
  4007. 2008-08-09 Daniel Jacobowitz <dan@codesourcery.com>
  4008. * Makefile.in (stamp-h): Also create .deps.
  4009. 2008-08-09 Tom Tromey <tromey@redhat.com>
  4010. * Makefile.in (generated_files): Add GNULIB_H.
  4011. 2008-08-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
  4012. * solib-pa64.c (pa64_solib_create_inferior_hook): Don't set
  4013. DT_HP_DEBUG_PRIVATE. Add warning if DT_HP_DEBUG_PRIVATE is not set.
  4014. Revise comment.
  4015. (pa64_current_sos): Remove map private warning warning.
  4016. * solib-som.c: Include string.h and sys/utsname.h.
  4017. (get_hpux_major_release): New function.
  4018. (som_solib_create_inferior_hook): Read dynamic linker header. Warn
  4019. about shared library private mapping on HP-UX 11 and later. Only force
  4020. private mapping of shared libraries on HP-UX 10 and earlier.
  4021. (link_map_start): Delete warning.
  4022. 2008-08-09 Xuepeng Guo <xuepeng.guo@intel.com>
  4023. H.J. Lu <hongjiu.lu@intel.com>
  4024. Mark Kettenis <kettenis@gnu.org>
  4025. * amd64-tdep.c (amd64_frame_cache): Add saved_sp_reg.
  4026. (amd64_init_frame_cache): Initialize saved_sp_reg.
  4027. (amd64_analyze_stack_align): New.
  4028. (amd64_analyze_prologue): Call it.
  4029. (amd64_frame_cache): Use saved_sp_reg if it is invalid. Don't set
  4030. %rip to 8 when halfway aligning the stack.
  4031. * amd64-tdep.h (amd64_regnum): Add AMD64_R9_REGNUM to
  4032. AMD64_R14_REGNUM.
  4033. * i386-tdep.c (i386_frame_cache): Remove stack_align. Add
  4034. saved_sp_reg.
  4035. (i386_alloc_frame_cache): Remove stack_align. Initialize
  4036. saved_sp_reg to -1.
  4037. (i386_analyze_stack_align): Rewrite.
  4038. (i386_frame_cache): Use saved_sp_reg if it is valid.
  4039. 2008-08-09 Ulrich Weigand <uweigand@de.ibm.com>
  4040. * target.c: Include "solib.h".
  4041. (target_pre_inferior): Call no_shared_libraries.
  4042. * infcmd.c (run_command_1): Do not call objfile_purge_solibs
  4043. or clear_solib.
  4044. (attach_command): Do not call clear_solib.
  4045. 2008-08-09 Mark Kettenis <kettenis@gnu.org>
  4046. * i386obsd-nat.c (i386obsd_supply_pcb): Supply the right bytes for
  4047. the %eip register.
  4048. 2008-08-08 Tom Tromey <tromey@redhat.com>
  4049. * Makefile.in (python.o): Remove dependencies. Use COMPILE and
  4050. POSTCOMPILE.
  4051. (python-utils.o): Likewise.
  4052. 2008-08-08 Andreas Schwab <schwab@suse.de>
  4053. * corefile.c (_initialize_core): Remove spurious paren from set
  4054. gnutarget doc string.
  4055. 2008-08-08 Luis Machado <luisgpm@br.ibm.com>
  4056. * ppc-linux-nat.c: Include "auxv.h" and "elf/common.h".
  4057. Define PPC_FEATURE_BOOKE.
  4058. (ppc_linux_get_hwcap): New function.
  4059. (ppc_linux_region_ok_for_hw_watchpoint): Handle PowerPC 440
  4060. 4-bytes alignment restrictions.
  4061. (ppc_linux_insert_watchpoint): Handle PowerPC 440-specific
  4062. positioning of the read/write flags.
  4063. (ppc_linux_watchpoint_addr_within_range): Handle PowerPC 440
  4064. 4-bytes alignment.
  4065. 2008-08-08 Pedro Alves <pedro@codesourcery.com>
  4066. Use ptid_t.tid to store thread ids instead of ptid_t.pid.
  4067. * win32-nat.c (win32_add_thread): Change thread argument type to
  4068. ptid_t. Adjust.
  4069. (win32_add_thread): Adjust.
  4070. (win32_delete_thread): Change thread argument type to ptid_t.
  4071. Adjust.
  4072. (win32_fetch_inferior_registers, win32_store_inferior_registers)
  4073. (win32_resume, get_win32_debug_event, get_win32_debug_event)
  4074. (win32_wait, win32_pid_to_exec_file, win32_pid_to_str): Adjust.
  4075. (init_win32_ops): Put to_magic last.
  4076. (win32_win32_thread_alive): Adjust.
  4077. 2008-08-08 Pedro Alves <pedro@codesourcery.com>
  4078. * remote-m32r-sdi.c (m32r_thread_alive, m32r_pid_to_str): New.
  4079. (init_m32r_ops): Register m32r_thread_alive and m32r_pid_to_str.
  4080. 2008-08-08 Pedro Alves <pedro@codesourcery.com>
  4081. * remote-m32r-sdi.c: Include "gdbthread.h".
  4082. (remote_m32r_ptid): New.
  4083. (m32r_close): Delete the main thread.
  4084. (m32r_resume): Set inferior_ptid toA remote_m32r_ptid. Add the
  4085. main thread.
  4086. (m32r_kill, m32r_load, sdireset_command): Delete the main thread.
  4087. (_initialize_remote_m32r): Initialize remote_m32r_ptid.
  4088. 2008-08-07 Tom Tromey <tromey@redhat.com>
  4089. Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
  4090. * aclocal.m4, configure: Rebuild.
  4091. * configure.in: Call ZW_CREATE_DEPDIR,
  4092. ZW_PROG_COMPILER_DEPENDENCIES, AC_PROG_MAKE_SET.
  4093. (MAKE, GMAKE): New substs.
  4094. * acinclude.m4: Include depstand.m4.
  4095. * Makefile.in (DEPMODE, DEPDIR, COMPILE.post, COMPILE.pre,
  4096. COMPILE, POSTCOMPILE, depcomp): New variables.
  4097. Remove all _h variables.
  4098. Remove many .o targets.
  4099. ($(srcdir)/copying.c): avoid backslash-newline after comment
  4100. sign (@maintainer_mode_true@).
  4101. (HFILES_NO_SRCDIR): Regenerate.
  4102. (generated_files): New variable.
  4103. (all_gdbtk_cflags): Likewise.
  4104. (.c.o): Rewrote.
  4105. (init.o, version.o, copying.o): Remove.
  4106. (distclean): Remove DEPDIR.
  4107. (test-cp-name-parser.o, hpux-thread.o, main.o, monitor.o,
  4108. printcmd.o, procfs.o, v850ice.o): Rewrite.
  4109. (cli-cmds.o, cli-decode.o, cli-dump.o, cli-interp.o, cli-logging.o,
  4110. cli-script.o, cli-setshow.o, cli-utils.o): Likewise.
  4111. (gdbtk.o, gdbtk-bp.o, gdbtk-cmds.o, gdbtk-hooks.o, gdbtk-interp.o,
  4112. gdbtk-main.o, gdbtk-register.o, gdbtk-stack.o, gdbtk-varobj.o,
  4113. gdbtk-wrapper.o): Likewise.
  4114. (mi-cmd-break.o, mi-cmd-disas.o, mi-cmd-env.o, mi-cmd-file.o,
  4115. mi-cmds.o, mi-cmd-stack.o, mi-cmd-target.o, mi-cmd-var.o,
  4116. mi-console.o, mi-getopt.o, mi-interp.o, mi-main.o, mi-out.o,
  4117. mi-parse.o, mi-symbol-cmds.o, mi-common.o, signals.o, tui.o,
  4118. tui-command.o, tui-data.o, tui-disasm.o, tui-file.o, tui-hooks.o,
  4119. tui-interp.o, tui-io.o, tui-layout.o, tui-main.o, tui-out.o,
  4120. tui-regs.o, tui-source.o, tui-stack.o, tui-win.o, tui-windata.o,
  4121. tui-wingeneral.o, tui-winsource.o): Likewise.
  4122. (all_object_files): New variable.
  4123. ($(all_object_files)): New target.
  4124. Include dependency files, when using GNU Make.
  4125. 2008-08-07 Ulrich Weigand <uweigand@de.ibm.com>
  4126. * spu-tdep.c (info_spu_dma_cmdlist): Only show entries with
  4127. the valid bit set. Ensure display order respects partial
  4128. order defined by dependency bits.
  4129. 2008-08-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
  4130. * solib-pa64.c (read_dld_descriptor): Return zero if load map is not
  4131. setup.
  4132. 2008-08-06 Mark Kettenis <kettenis@gnu.org>
  4133. * i386obsd-nat.c (i386obsd_supply_pcb): Adjust for changes in
  4134. OpenBSD 4.3.
  4135. 2008-08-06 Vladimir Prus <vladimir@codesourcery.com>
  4136. Tom Tromey <tromey@redhat.com>
  4137. Thiago Jung Bauermann <bauerman@br.ibm.com>
  4138. Doug Evans <dje@google.com>
  4139. * Makefile.in (SUBDIR_PYTHON_OBS, SUBDIR_PYTHON_SRCS,
  4140. SUBDIR_PYTHON_DEPS, SUBDIR_PYTHON_LDFLAGS, SUBDIR_PYTHON_CFLAGS,
  4141. PYTHON_CFLAGS): New.
  4142. (python_h, python_internal_h): New.
  4143. (cli-script.o): Depend on python.h
  4144. (python.o, python-utils.o): New.
  4145. * cli/cli-script.c (print_command_lines): Handle python_control.
  4146. (execute_control_command): Handle python_control.
  4147. (execute_control_command_untraced): New function.
  4148. (while_command): Call execute_control_command_untraced.
  4149. (if_command): Likewise.
  4150. (get_command_line): Remove static attribute.
  4151. (read_next_line): Handle "python".
  4152. (recurse_read_control_structure): Handle python_control.
  4153. (read_command_lines): Handle python_control.
  4154. Include python.h.
  4155. * cli/cli-script.h (get_command_line): Add prototype.
  4156. (execute_control_command_untraced): Likewise.
  4157. * configure.ac: Add --with-python.
  4158. * defs.h (enum command_control_type) <python_control>: New
  4159. constant.
  4160. * python/python-internal.h: New file.
  4161. * python/python.c: New file.
  4162. * python/python.h: New file.
  4163. * python/python-utils.c: New file.
  4164. * NEWS: Mention Python scripting support and its new commands.
  4165. 2008-08-06 Ulrich Weigand <uweigand@de.ibm.com>
  4166. * spu-tdep.c (spu_gdbarch_init): Call set_gdbarch_frame_red_zone_size.
  4167. 2008-08-06 Phil Muldoon <pmuldoon@redhat.com>
  4168. * MAINTAINERS (Write After Approval): Add self.
  4169. 2008-08-06 Phil Muldoon <pmuldoon@redhat.com>
  4170. * breakpoint.c (hw_breakpoint_used_count): Use breakpoint_enabled.
  4171. (insert_breakpoint_locations): Likewise.
  4172. 2008-08-05 Phil Muldoon <pmuldoon@redhat.com>
  4173. * breakpoint.c (create_longjmp_breakpoint): Remove unused struct
  4174. breakpoint.
  4175. (set_longjmp_breakpoint): Likewise.
  4176. 2008-08-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
  4177. PR build/2490
  4178. * solib-pa64.c: Only compile if both HAVE_ELF_HP_H and __LP64__ are
  4179. defined.
  4180. 2008-08-05 Tom Tromey <tromey@redhat.com>
  4181. * bcache.c (deprecated_bcache_added): Initialize obstack.
  4182. (bcache_xmalloc): Don't initialize obstack.
  4183. (bcache_xfree): Conditionally free obstack.
  4184. (bcache_memory_used): Update.
  4185. 2008-08-05 Tom Tromey <tromey@redhat.com>
  4186. * symfile.c (add_psymbol_to_bcache): Return a const pointer. Use
  4187. bcache_full.
  4188. (append_psymbol_to_list): Accept a const pointer.
  4189. (add_psymbol_to_list): Fix const correctness.
  4190. * bcache.h: (deprecated_bcache_added, deprecated_bcache): Remove.
  4191. (bcache_full): Declare.
  4192. * bcache.c (bcache_data, deprecated_bcache): Remove.
  4193. (bcache): Use bcache_full.
  4194. (bcache_full): Rename from deprecated_bcache_added. Change return
  4195. type.
  4196. 2008-08-04 Stan Shebs <stan@codesourcery.com>
  4197. * solib-svr4.c (BKPT_AT_SYMBOL): Remove, always defined.
  4198. (bkpt_names): Remove SOLIB_BKPT_NAME, never defined.
  4199. (enable_break): Remove test of BKPT_AT_SYMBOL.
  4200. 2008-08-02 Keith Seitz <keiths@redhat.com>
  4201. * acinclude.m4: Include ../config/tcl.m4 to pick up
  4202. standard Tcl configury bits.
  4203. Remove all Tcl, Tk, Itcl, Itk, etc definitions.
  4204. * configure.ac: Don't check if ../itcl exists when building
  4205. gdbtk. It could be installed.
  4206. Rewrite gdbtk configury to allow for using system-supplied
  4207. Tcl and Tk. Gdbtk no longer requires build-time access to
  4208. itcl and itk.
  4209. * Makefile.in: Remove everything related to itcl and itk.
  4210. Rewrite the Tcl bits for gdbtk to correspond to rewrite of
  4211. configure.ac.
  4212. Remove v850ice.o build rule.
  4213. (ALL_TCL_CFLAGS): New convenience defintion. Change all
  4214. gdbtk sources to use it.
  4215. * configure: Regenerate.
  4216. 2008-07-31 Stan Shebs <stan@codesourcery.com>
  4217. * coffread.c (coff_symtab_read): Remove FUNCTION_EPILOGUE_SIZE.
  4218. 2008-07-30 Stan Shebs <stan@codesourcery.com>
  4219. * objfiles.c (TARGET_KEEP_SECTION): Remove.
  4220. (add_to_objfile_sections): Remove use.
  4221. 2008-07-29 Tom Tromey <tromey@redhat.com>
  4222. * cli/cli-decode.c (lookup_cmd_1): Use memcpy.
  4223. (lookup_cmd_composition): Likewise.
  4224. 2008-07-29 Tom Tromey <tromey@redhat.com>
  4225. * cli/cli-cmds.c (edit_command): Remove unused variables. Delete
  4226. dead code. Fix indentation.
  4227. 2008-07-29 Stan Shebs <stan@codesourcery.com>
  4228. * main.c (captured_main): Remove long-unused #if 0 blocks.
  4229. 2008-07-28 Tom Tromey <tromey@redhat.com>
  4230. * annotate.h (deprecated_annotate_starting_hook): Remove.
  4231. (deprecated_annotate_stopped_hook): Remove.
  4232. (deprecated_annotate_exited_hook): Remove.
  4233. * Makefile.in (annotate.o): Depend on observer_h.
  4234. * top.c (deprecated_delete_breakpoint_hook): Remove.
  4235. (deprecated_create_breakpoint_hook): Likewise.
  4236. (deprecated_modify_breakpoint_hook): Likewise.
  4237. * interps.c (clear_interpreter_hooks): Update for removed hooks.
  4238. * breakpoint.c (mention): Don't call removed hook.
  4239. (delete_breakpoint): Likewise.
  4240. (disable_breakpoint): Likewise.
  4241. (do_enable_breakpoint): Likewise.
  4242. * annotate.c: Include observer.h.
  4243. (breakpoint_changed): Change type of argument.
  4244. (_initialize_annotate): Register observers.
  4245. (deprecated_annotate_starting_hook): Remove.
  4246. (deprecated_annotate_stopped_hook): Remove.
  4247. (deprecated_annotate_exited_hook): Remove.
  4248. (annotate_starting): Update for hook removal.
  4249. (annotate_stopped): Likewise.
  4250. (annotate_exited): Likewise.
  4251. * defs.h (deprecated_delete_breakpoint_hook): Remove.
  4252. (deprecated_create_breakpoint_hook): Likewise.
  4253. (deprecated_modify_breakpoint_hook): Likewise.
  4254. 2008-07-28 Tom Tromey <tromey@redhat.com>
  4255. * main.c (captured_main): Don't use BEFORE_MAIN_LOOP_HOOK.
  4256. 2008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
  4257. * configure.ac: Check for the GNU/Linux ptrace signature.
  4258. * configure: Regenerated.
  4259. 2008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
  4260. * linux-nat.c (resume_callback): Add more debugging output.
  4261. (linux_nat_has_pending_sigint): New function, based on
  4262. linux_nat_has_pending.
  4263. (set_ignore_sigint, maybe_clear_ignore_sigint): New functions.
  4264. (stop_wait_callback): Remove flush_mask handling. Honor
  4265. ignore_sigint. Call maybe_clear_ignore_sigint. Pass NULL
  4266. to recursive calls.
  4267. (linux_nat_has_pending, flush_callback): Remove.
  4268. (linux_nat_filter_event): Check for ignore_sigint.
  4269. (linux_nat_wait): Remove flush_mask support and call to
  4270. flush_callback. Use set_ignore_sigint and maybe_clear_ignore_sigint.
  4271. * linux-nat.h (struct lwp_info): Add ignore_sigint field.
  4272. 2008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
  4273. * linux-nat.c (count_events_callback, select_event_lwp_callback): Only
  4274. report events from resumed threads.
  4275. 2008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
  4276. * mips-linux-tdep.c (mips_linux_syscall_next_pc): New function.
  4277. (mips_linux_init_abi): Set tdep->syscall_next_pc.
  4278. * mips-tdep.c (enum mips_fpu_type, struct gdbarch_tdep): Move to
  4279. mips-tdep.h.
  4280. (mips32_next_pc): Handle the syscall instruction.
  4281. * mips-tdep.h (enum mips_fpu_type, struct gdbarch_tdep): New,
  4282. from mips-tdep.c. Add syscall_next_pc to gdbarch_tdep.
  4283. 2008-07-26 Tom Tromey <tromey@redhat.com>
  4284. PR gdb/1158:
  4285. * valops.c (value_struct_elt): Treat function-valued field as a
  4286. static method.
  4287. 2008-07-26 Tom Tromey <tromey@redhat.com>
  4288. PR gdb/1136:
  4289. * macroexp.c (get_punctuator) <punctuators>: Rearrange to put
  4290. longer tokens first.
  4291. 2008-07-26 Vladimir Prus <vladimir@codesourcery.com>
  4292. Kill cmd_async_ok.
  4293. * cli/cli-decode.h (CMD_ASYNC_OK, set_cmd_async_ok)
  4294. (get_cmd_async_ok): Remove.
  4295. * cli/cli-decode.c (set_cmd_async_ok, get_cmd_async_ok): Remove.
  4296. * cli/cli-cmds.c (init_cli_cmds): Don't use set_cmd_async_ok.
  4297. * infcmd.c (_initialize_infcmd): Likewise.
  4298. * thread.c (_initialize_thread): Likewise.
  4299. 2008-07-25 Joseph Myers <joseph@codesourcery.com>
  4300. * mips-tdep.c (mips_n32n64_push_dummy_call): Handle passing
  4301. 128-bit long doubles in even-odd pairs of FPRs. Do not
  4302. right-align float arguments for big-endian.
  4303. (mips_n32n64_return_value): Apply return value convention for
  4304. structs containing one or two floating-point values to soft-float
  4305. as well as hard-float. Handle 128-bit long doubles in such
  4306. structs.
  4307. (mips_o32_push_dummy_call): Only skip one integer register for a
  4308. float argument passed in an FPR.
  4309. 2008-07-25 Tom Tromey <tromey@redhat.com>
  4310. * tui/tui-hooks.c: Include observer.h.
  4311. (tui_event_default, tui_old_event_hooks, tui_event_hooks):
  4312. Remove.
  4313. (tui_bp_created_observer, tui_bp_deleted_observer,
  4314. tui_bp_modified_observer): New globals.
  4315. (tui_install_hooks): Use observers, not events.
  4316. (tui_remove_hooks): Likewise.
  4317. * mi/mi-cmd-break.c: Include observer.h, not gdb-events.h.
  4318. (mi_breakpoint_observers_installed, mi_can_breakpoint_notify): New
  4319. globals.
  4320. (breakpoint_notify): Check mi_can_breakpoint_notify.
  4321. (breakpoint_hooks): Remove.
  4322. (mi_cmd_break_insert): Attach observers. Don't use events.
  4323. * tracepoint.c: Include observer.h, not gdb-events.h.
  4324. (tracepoint_operation, trace_pass_command): Notify observer.
  4325. * interps.c: Don't include gdb-events.h.
  4326. (clear_interpreter_hooks): Don't call clear_gdb_event_hooks.
  4327. * gdbarch.c: Rebuild.
  4328. * gdbarch.sh: Emit include for observer.h, not gdb-events.h.
  4329. (deprecated_current_gdbarch_select_hack): Notify observer.
  4330. * breakpoint.h: Don't include gdb-events.h.
  4331. * breakpoint.c: Don't include gdb-events.h.
  4332. (condition_command): Notify observer.
  4333. (commands_command): Likewise.
  4334. (commands_from_control_command): Likewise.
  4335. (mention, delete_breakpoint, set_ignore_count): Likewise.
  4336. (disable_breakpoint, do_enable_breakpoint): Likewise.
  4337. * Makefile.in (gdb_events_h): Remove.
  4338. (breakpoint_h): Update.
  4339. (COMMON_OBS): Remove gdb-events.o.
  4340. (gdb-events.o): Remove.
  4341. (breakpoint.o, gdbarch.o, interps.o, tracepoint.o, gdbtk-bp.o,
  4342. gdbtk-hooks.o, mi-cmd-break.o, tui-hooks.o): Update.
  4343. * gdb-events.c: Remove.
  4344. * gdb-events.h: Remove.
  4345. * gdb-events.sh: Remove.
  4346. 2008-07-24 Pedro Alves <pedro@codesourcery.com>
  4347. * remote.c (remote_threads_extra_info): Don't query the remote
  4348. server about info on the internally added main thread.
  4349. 2008-07-24 Aleksandar Ristovski <aristovski@qnx.com>
  4350. * nto-procfs.c (procfs_attach): Populate initial thread list.
  4351. (procfs_wait): Return new pid, built from the inferior status.
  4352. 2008-07-23 Thiago Jung Bauermann <bauerman@br.ibm.com>
  4353. * configure.ac (CONFIG_INITS): Delete long obsoleted variable.
  4354. * configure: Regenerate.
  4355. 2008-07-23 Aleksandar Ristovski <aristovski@qnx.com>
  4356. * nto-procfs.c (procfs_xfer_memory): Changed signature.
  4357. (procfs_resume): Workaround for dereferencing type-punned pointer
  4358. warning.
  4359. * nto-tdep.c (nto_parse_redirection): Change signature to be const
  4360. correct.
  4361. * nto-tdep.h (nto_parse_redirection): Likewise.
  4362. 2008-07-21 Stan Shebs <stan@codesourcery.com>
  4363. Scrub remnants of IN_SOLIB_DYNSYM_RESOLVE_CODE.
  4364. * gdbarch.sh: Adjust comment to refer to
  4365. in_solib_dynsym_resolve_code().
  4366. * gdbarch.h, gdbarch.c: Update.
  4367. * solib-osf.c: Ditto.
  4368. * infrun.c: Ditto.
  4369. (handle_inferior_event): Use in_solib_dynsym_resolve_code
  4370. unconditionally.
  4371. * config/mips/nm-irix5.h: Remove undef of
  4372. IN_SOLIB_DYNSYM_RESOLVE_CODE.
  4373. 2008-07-21 Tom Tromey <tromey@redhat.com>
  4374. * symfile.c (reread_symbols): Don't pass argument to observer.
  4375. * exec.c (exec_file_attach): Don't pass argument to observer.
  4376. * ada-lang.c (ada_executable_changed_observer): Remove argument.
  4377. * symtab.c (symtab_observer_executable_changed): Remove argument.
  4378. * observer.sh: Handle functions with no arguments.
  4379. 2008-07-20 Sergei Poselenov <sposelenov@emcraft.com>
  4380. Chris Demetriou <cgd@google.com>
  4381. * elfread.c (elf_symfile_segments): Fix the check that each loadable
  4382. section fits within an ELF segment to handle ELF segments that hit
  4383. the end of the address space.
  4384. 2008-07-20 Chris Demetriou <cgd@google.com>
  4385. * MAINTAINERS (Write After Approval): Add self.
  4386. 2008-07-18 Tom Tromey <tromey@redhat.com>
  4387. PR gdb/855:
  4388. * NEWS: Add entry for macro commands.
  4389. * Makefile.in (macrocmd.o): Add gdb_string.h.
  4390. * macroscope.h (user_macro_scope): Declare.
  4391. (default_macro_scope): Update documentation.
  4392. (macro_user_macros): Declare.
  4393. * c-lang.c (c_preprocess_and_parse): Always attempt macro lookup.
  4394. Use user_macro_scope.
  4395. (null_macro_lookup): Remove.
  4396. * macrotab.h (macro_callback_fn): Declare.
  4397. (macro_for_each): Likewise.
  4398. (macro_allow_redefinitions): Likewise.
  4399. * macrotab.c (foreach_macro): New function
  4400. (macro_for_each): Likewise.
  4401. (struct macro_table) <redef_ok>: New field.
  4402. (macro_allow_redefinitions): New function.
  4403. (new_macro_table): Update.
  4404. (macro_define_function): Likewise.
  4405. (macro_define_object): Likewise.
  4406. * macroscope.c (user_macro_scope): New function.
  4407. (default_macro_scope): Use it.
  4408. (macro_user_macros): New global.
  4409. (standard_macro_lookup): Look in macro_user_macros.
  4410. (_initialize_macroscope): New function.
  4411. * macroexp.h (macro_is_whitespace, macro_is_digit,
  4412. macro_is_identifier_nondigit): Declare.
  4413. * macroexp.c (macro_is_whitespace): Rename. No longer static.
  4414. (macro_is_digit): Likewise.
  4415. (macro_is_identifier_nondigit): Likewise.
  4416. (get_identifier): Update.
  4417. (get_pp_number): Likewise.
  4418. (get_token): Likewise.
  4419. * macrocmd.c (skip_ws): New function.
  4420. (extract_identifier): Likewise.
  4421. (free_macro_definition_ptr): Likewise.
  4422. (user_macros): Remove.
  4423. (macro_define_command): Implement.
  4424. (_initialize_macrocmd): Update.
  4425. (macro_undef_command): Implement.
  4426. (print_one_macro): New function.
  4427. (macro_list_command): Implement.
  4428. 2008-07-18 Joseph Myers <joseph@codesourcery.com>
  4429. * configure.ac: Put old value of $LIBS after -lbfd -liberty $intl
  4430. in BFD ELF check.
  4431. * configure: Regenerate.
  4432. 2008-07-17 Paul Pluzhnikov <ppluzhnikov@google.com>
  4433. * auxv.c (fprint_target_auxv): Stop at AT_NULL.
  4434. 2008-07-15 Andreas Schwab <schwab@suse.de>
  4435. * valops.c (value_cast_pointers): Follow typedefs when checking
  4436. result of coercion.
  4437. 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
  4438. * block.c (block_function): Renamed to ...
  4439. (block_linkage_function): ... this. All callers changed.
  4440. * block.h (block_function): Renamed to ...
  4441. (block_linkage_function): ... this.
  4442. 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
  4443. * mn10300-tdep.c (set_reg_offsets): Use get_frame_register_unsigned.
  4444. 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
  4445. * frame.c (frame_sp_unwind): Delete.
  4446. (get_frame_sp): Do not use it.
  4447. * frame.h (frame_sp_unwind): Delete prototype.
  4448. 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
  4449. * ia64-tdep.c (ia64_dummy_id): Use get_frame_pc.
  4450. 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
  4451. * dwarf2-frame.c (dwarf2_frame_cache): Update comment.
  4452. * frame.c (frame_unwind_address_in_block): Delete.
  4453. (get_frame_address_in_block): Do not use it. Check the type
  4454. of the next frame first.
  4455. (frame_cleanup_after_sniffer): Update comment.
  4456. * frame.h (frame_unwind_address_in_block): Delete prototype.
  4457. * hppa-tdep.c (hppa_find_unwind_entry_in_block): Update comment.
  4458. 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
  4459. * frame.c (frame_func_unwind): Delete.
  4460. (get_frame_func): Do not use it.
  4461. * frame.h (frame_func_unwind): Delete prototype.
  4462. * hppa-tdep.c (hppa_frame_cache): Update comment.
  4463. * rs6000-tdep.c (rs6000_frame_cache): Update comment.
  4464. 2008-07-14 Stan Shebs <stan@codesourcery.com>
  4465. * remote-sim.c (init_gdbsim_ops): Remove
  4466. TARGET_REDEFINE_DEFAULT_OPS.
  4467. 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
  4468. * findvar.c (read_var_value): Remove unused variable.
  4469. 2008-07-15 Luis Machado <luisgpm@br.ibm.com>
  4470. * infrun.c (handle_inferior_event): Tag threads as stopped
  4471. before inserting breakpoints.
  4472. 2008-07-15 Hui Zhu <teawater@gmail.com>
  4473. * MAINTAINERS: Added myself to section Write After Approval.
  4474. 2008-07-14 Paul Pluzhnikov <ppluzhnikov@google.com>
  4475. PR gdb/2477
  4476. * cp-abi.c (value_virtual_fn_field): Handle invalid pointers.
  4477. 2008-07-14 Pedro Alves <pedro@codesourcery.com>
  4478. * i386-dicos-tdep.c (i386_dicos_frame_align): Delete.
  4479. (i386_dicos_push_dummy_code): New.
  4480. (i386_dicos_init_abi): Don't register i386_dicos_frame_align.
  4481. Register i386_dicos_push_dummy_code.
  4482. 2008-07-14 Markus Deuling <deuling@de.ibm.com>
  4483. * mips-tdep.c (fp_register_arg_p): Add gdbarch as paramter.
  4484. (mips_n32n64_push_dummy_call, mips_o64_return_value)
  4485. (mips_eabi_push_dummy_call): Update call to fp_register_arg_p.
  4486. (MIPS_FPU_TYPE): Add gdbarch as parameter and replace current_gdbarch.
  4487. (fp_register_arg_p, mips_dump_tdep, show_mipsfpu_command)
  4488. (mips_n32n64_fp_arg_chunk_p): Update caller.
  4489. (mips_n32n64_fp_arg_chunk_p): Add gdbarch as paramter.
  4490. (mips_n32n64_push_dummy_call): Update caller.
  4491. (MIPS_LAST_ARG_REGNUM): Add gdbarch as parameter and replace
  4492. current_gdbarch.
  4493. (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
  4494. (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update caller.
  4495. (MIPS_LAST_FP_ARG_REGNUM): Add gdbarch as parameter and replace
  4496. current_gdbarch.
  4497. (mips_eabi_push_dummy_call, mips_o32_push_dummy_call)
  4498. (mips_o64_push_dummy_call): Update caller.
  4499. (MIPS_EABI): Add gdbarch as parameter and replace current_gdbarch.
  4500. (fp_register_arg_p, mips_dump_tdep): Update caller.
  4501. (set_reg_offset): Add gdbarch as parameter and replace current_gdbarch.
  4502. (mips16_scan_prologue, mips32_scan_prologue): Update caller.
  4503. (reset_saved_regs): Make static. Add gdbarch as parameter. Replace
  4504. current_gdbarch.
  4505. (mips32_scan_prologue): Update caller.
  4506. (heuristic_proc_start): Add gdbarch as parameter. Replace
  4507. current_gdbarch.
  4508. (mips_insn16_frame_cache, mips_insn32_frame_cache): Update caller.
  4509. * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
  4510. (mipsnbsd_store_inferior_registers): Use get_regcache_arch to get at
  4511. the current architecture. Update call to getregs_supplies.
  4512. (getregs_supplies): Add gdbarch as parameter and replace
  4513. current_gdbarch.
  4514. * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use get_frame_arch to
  4515. get at the current architecture. Update call to NBSD_MIPS_JB_OFFSET and
  4516. NBSD_MIPS_JB_ELEMENT_SIZE.
  4517. (NBSD_MIPS_JB_ELEMENT_SIZE, NBSD_MIPS_JB_OFFSET): Add gdbarch and
  4518. replace current_gdbarch.
  4519. * remote-mips.c (mips_map_regno): Add gdbarch as parameter and replace
  4520. current_gdbarch.
  4521. (mips_fetch_registers, mips_store_registers): Update call
  4522. to mips_map_regno.
  4523. (mips_load): Use get_regcache_arch to get at the current_architecture
  4524. and replace current_gdbarch.
  4525. 2008-07-13 Pedro Alves <pedro@codesourcery.com>
  4526. * thread.c (restore_selected_frame): On fail to restore, select
  4527. the innermost frame, and don't crash when warning the user.
  4528. 2008-07-13 Hui Zhu <teawater@gmail.com>
  4529. * symtab.c (expand_line_sal): Fix a memory leak.
  4530. 2008-07-13 Pedro Alves <pedro@codesourcery.com>
  4531. * utils.c (struct continuation): Define as inheriting struct
  4532. cleanup.
  4533. (add_continuation, do_all_continuations)
  4534. (discard_all_continuations, add_intermediate_continuation)
  4535. (do_all_intermediate_continuations)
  4536. (discard_all_intermediate_continuations): Adjust.
  4537. 2008-07-13 Vladimir Prus <vladimir@codesourcery.com>
  4538. Skip varobj in running threads.
  4539. * mi/mi-cmd-var.c (mi_cmd_var_update): If varobj's
  4540. thread is not stopped, skip the varobj.
  4541. * Makefile.in: Update dependencies.
  4542. 2008-07-13 Vladimir Prus <vladimir@codesourcery.com>
  4543. Enable all commands while inferiour is running
  4544. * mi/mi-main.c (mi_cmd_execute): Don't check if
  4545. inferiour is executing.
  4546. 2008-07-13 Vladimir Prus <vladimir@codesourcery.com>
  4547. Allow all CLI command even if target is executing.
  4548. * top.c (execute_command_1): Don't check if the inferiour
  4549. is running.
  4550. 2008-07-13 Vladimir Prus <vladimir@codesourcery.com>
  4551. * mi/mi-main.c (mi_cmd_execute): Remove unused variable.
  4552. Fix printing of frame, when frame is wrong.
  4553. 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
  4554. * spu-tdep.c (spu_frame_unwind_cache): Do not error if
  4555. backchain is unreadable.
  4556. 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
  4557. * spu-linux-nat.c: Include "gdbthread.h".
  4558. (spu_child_post_startup_inferior): Register main thread.
  4559. (spu_child_post_attach): Likewise.
  4560. * Makefile.in (spu-linux-nat.o): Update dependencies.
  4561. 2008-07-12 Pedro Alves <pedro@codesourcery.com>
  4562. Rewrite continuations internals on top of cleanups and plug
  4563. continuation arguments leaks.
  4564. * defs.h (struct continuation): Make it opaque.
  4565. (add_continuation, add_intermediate_continuation): Drop the int
  4566. argument of the continuation hook argument. Add
  4567. continuation_free_args argument.
  4568. (do_all_continuations, do_all_intermediate_continuations): Drop
  4569. the error_p argument.
  4570. * utils.c (add_continuation): Drop the int argument of the
  4571. continuation hook argument. Add continuation_free_args argument.
  4572. Reimplement on top of cleanups.
  4573. (do_all_continuations): Drop error argument. Reimplement on top
  4574. of cleanups.
  4575. (discard_all_continuations): Reimplement on top of cleanups.
  4576. (add_intermediate_continuation): Drop the int argument of the
  4577. continuation hook argument. Add continuation_free_args argument.
  4578. Reimplement on top of cleanups.
  4579. (do_all_intermediate_continuations): Drop error argument.
  4580. Reimplement on top of cleanups.
  4581. (discard_all_intermediate_continuations): Reimplement on top of
  4582. cleanups.
  4583. * breakpoint.c (until_break_command_continuation): Drop error
  4584. argument. Add xfree as continuation argument deleter.
  4585. * inf-loop.c (inferior_event_handler): On error, discard all
  4586. continuations. Adjust to new do_all_intermediate_continuations
  4587. and do_all_continuations interfaces.
  4588. * infcmd.c (step_1_continuation): Drop error_p argument. Adjust.
  4589. Pass xfree as continuation argument deleter.
  4590. (finish_command_continuation): Drop error_p argument. Adjust.
  4591. (finish_command_continuation_free_arg): New.
  4592. (finish_command): Pass finish_command_continuation_free_arg as
  4593. continuation argument deleter. Adjust to new do_all_continuations
  4594. interfaces.
  4595. (attach_command_continuation): Drop error_p argument.
  4596. (attach_command_continuation_free_args): New.
  4597. (attach_command): Pass attach_command_continuation_free_args as
  4598. continuation argument deleter.
  4599. * interps.c (interp_set): Adjust to new do_all_continuations
  4600. interfaces.
  4601. * event-top.c (stdin_event_handler): In error, also discard the
  4602. intermediate continuations.
  4603. 2008-07-12 Pedro Alves <pedro@codesourcery.com>
  4604. Replace struct continuation_args by void* and per command structs.
  4605. * top.c (execute_command): Remove unused arg1 and arg2 locals.
  4606. * breakpoint.c (struct until_break_command_continuation_args):
  4607. New.
  4608. (until_break_command_continuation): Take a void* instead of a
  4609. continuations_arg. Adjust.
  4610. (until_break_command): Adjust to use struct
  4611. until_break_command_continuation_args instead of struct
  4612. continuation_arg.
  4613. * infcmd.c (struct step_1_continuation_args): New.
  4614. (step_1_continuation): Take a void* instead of a
  4615. continuations_arg. Adjust to use struct step_1_continuation_args.
  4616. (step_once): Adjust to use struct step_1_continuation_args.
  4617. (struct finish_command_continuation_args): New.
  4618. (finish_command_continuation): Take a void* instead of a
  4619. continuations_arg. Adjust to use struct
  4620. finish_command_continuation_args.
  4621. (finish_command): Adjust to use struct
  4622. finish_command_continuation_args.
  4623. (struct attach_command_continuation_args): New.
  4624. (attach_command_continuation): Take a void* instead of a
  4625. continuations_arg. Adjust to use struct
  4626. attach_command_continuation_args.
  4627. (attach_command): Adjust to use struct
  4628. attach_command_continuation_args.
  4629. * defs.h (struct continuation_arg): Delete.
  4630. (struct continuation): Replace the struct continuation_arg*
  4631. parameter of continuation_hook by a void*. Replace "arg_list"
  4632. member by a new "args" member with void* type.
  4633. (add_continuation, add_intermediate_continuation): Replace struct
  4634. continuation_arg type usages by void* usages.
  4635. * utils.c (add_continuation, do_all_continuations)
  4636. (add_intermediate_continuation)
  4637. (do_all_intermediate_continuations): Replace struct
  4638. continuation_arg type usages by void* usages. Pass "args" instead
  4639. of "arg_list".
  4640. 2008-07-12 Pedro Alves <pedro@codesourcery.com>
  4641. * infrun.c (struct thread_stepping_state): Delete sal member.
  4642. (init_thread_stepping_state): Add local sal. Use it instead of
  4643. tss->sal.
  4644. (handle_inferior_event): New local stop_pc_sal. Use it instead of
  4645. tss->sal.
  4646. (step_into_function): Add local stop_func_sal. Use it instead of
  4647. tss->sal.
  4648. 2008-07-12 Vladimir Prus <vladimir@codesourcery.com>
  4649. Implement -exec-continue/-exec-interrupt --all.
  4650. * infcmd.c (continue_1): New, extracted from
  4651. (continue_command): ...here.
  4652. (interrupt_target_1): New, extracted from
  4653. (interrupt_target_command): ...here.
  4654. * inferior.h (continue_1, interrupt_target_1): New.
  4655. * mi/mi-main.c (mi_cmd_exec_continue)
  4656. (mi_cmd_exec_interrupt): Handle --all.
  4657. 2008-07-12 Vladimir Prus <vladimir@codesourcery.com>
  4658. Implement --thread and --frame.
  4659. * gdbthread.h (find_thread_id): Declare.
  4660. * thread.c (find_thread_id): Make non-static.
  4661. * mi/mi-main.c (mi_cmd_execute): Switch to the right
  4662. thread and frame, if necessary.
  4663. * mi/mi-parse.c (mi_parse): Handle --thread and --frame.
  4664. * mi/mi-parse.h (strcut mi_parse): New fields thread and frame.
  4665. 2008-07-12 Vladimir Prus <vladimir@codesourcery.com>
  4666. * infrun.c (resume): Discard cleanups on early exit path.
  4667. 2008-07-12 Vladimir Prus <vladimir@codesourcery.com>
  4668. * infrun.c (normal_stop): For MI, report which threads
  4669. were stopped.
  4670. 2008-07-12 Vladimir Prus <vladimir@codesourcery.com>
  4671. Report thread state in -thread-info output.
  4672. * thread.c (print_thread_info): Add new field "state".
  4673. 2008-07-11 Pedro Alves <pedro@codesourcery.com>
  4674. * infrun.c (handle_inferior_event): Also ignore a
  4675. TARGET_SIGNAL_TRAP on a STOP_QUIETLY_NO_SIGSTOP.
  4676. 2008-07-11 Tom Tromey <tromey@redhat.com>
  4677. * completer.c (complete_line_internal): New function, from
  4678. complete_line. Add 'for_help' parameter.
  4679. (complete_line): Use it.
  4680. (command_completer): Move later. Rewrite.
  4681. 2008-07-11 Pedro Alves <pedro@codesourcery.com>
  4682. * thread.c (thread_apply_command): Move making the cleanup out of
  4683. the loop.
  4684. 2008-07-11 Pedro Alves <pedro@codesourcery.com>
  4685. Exited threads.
  4686. * thread.c (enum thread_state): New.
  4687. (thread_state main_thread_running): Delete, in favor of...
  4688. (thread_state main_thread_state): ... this. Update throughout.
  4689. (clear_thread_inferior_resources): New, split from free_thread.
  4690. (free_thread): Call clear_thread_inferior_resources.
  4691. (init_thread_list): Set main thread to stopped state.
  4692. (add_thread_silent): Take care of PTID reuses.
  4693. (delete_thread): If deleting inferior_ptid or a thread with
  4694. refcount > 0, mark it as exited, but still keep it in the list.
  4695. Only notify of thread exits, if we haven't done so yet.
  4696. (iterate_over_threads): Make it safe to delete threads while
  4697. iterating over them.
  4698. (do_captured_list_thread_ids): Don't account for exited threads.
  4699. (thread_alive): Check for the THREAD_EXITED state, and don't set
  4700. ptid to -1 on exited threads.
  4701. (set_running): Update to account for extra possible states.
  4702. (is_thread_state): New.
  4703. (is_stopped, is_exited): New.
  4704. (is_running): Implement in terms of is_thread_state.
  4705. (any_running): Update.
  4706. (print_thread_info): Update. Account for exited threads. Don't
  4707. warn about missed frame restoring here, its done in the cleanup.
  4708. (switch_to_thread): Don't read from a thread that has gone.
  4709. (restore_current_thread): In non-stop mode, do a full context
  4710. switch.
  4711. (restore_selected_frame): Add a frame_level argument. Rewrite.
  4712. (struct current_thread_cleanup): Add selected_frame_level and
  4713. was_stopped members.
  4714. (do_restore_current_thread_cleanup): Check if thread was stopped
  4715. and still is, and if the target has registers, stack and memory
  4716. before restoring the selected frame. Don't delete the cleanup
  4717. argument here.
  4718. (restore_current_thread_cleanup_dtor): New.
  4719. (make_cleanup_restore_current_thread): Remove all arguments.
  4720. Rewrite.
  4721. (thread_apply_all_command): Update. Prune threads.
  4722. (thread_apply_command): Update.
  4723. (thread_command): Account for currently selected exited thread.
  4724. (do_captured_thread_select): Check for a running thread. Prune
  4725. threads.
  4726. (_initialize_thread): Make "info threads", "thread", "thread
  4727. apply", and "thread apply all" appliable without a selected thread.
  4728. * gdbthread.h (struct thread_info): Replace running_ by state_.
  4729. Add refcount.
  4730. (is_exited, is_stopped): Declare.
  4731. (make_cleanup_restore_current_thread): Remove all arguments.
  4732. * infrun.c: Include "event-top.h".
  4733. (fetch_inferior_event): In non-stop mode, restore selected thread
  4734. and frame after handling the event and running breakpoint
  4735. commands. Display GDB prompt if needed.
  4736. (normal_stop): In non-stop mode, don't print thread switching
  4737. notice.
  4738. * cli/cli-decode.c (set_cmd_no_selected_thread_ok)
  4739. (get_cmd_no_selected_thread_ok): New.
  4740. * cli/cli-decode.h (CMD_NO_SELECTED_THREAD_OK): New.
  4741. (set_cmd_no_selected_thread_ok, get_cmd_no_selected_thread_ok):
  4742. Declare.
  4743. * cli/cli-cmds.c: Set "pwd", "help", "info", "show" as
  4744. no-selected-thread ok.
  4745. * top.c (execute_command): Check for non no-selected-thread-ok
  4746. commands.
  4747. * linux-nat.c (struct saved_ptids, threads_to_delete)
  4748. (record_dead_thread, prune_lwps): Delete.
  4749. (exit_lwp): Unconditionally delete thread.
  4750. (linux_nat_resume): Remove prune_lwps call.
  4751. * infcmd.c (proceed_thread_callback): Check if !is_stopped instead
  4752. of is_running. Adjust to make_cleanup_restore_current_thread
  4753. interface change.
  4754. * mi/mi-main.c (mi_cmd_execute): Only allow a few commands if the
  4755. selected thread has exited.
  4756. * inf-loop.c (inferior_event_handler): Don't display the prompt
  4757. here.
  4758. * varobj.c (c_value_of_root): Update.
  4759. * defs.h (make_cleanup_dtor): Declare.
  4760. * utils.c (make_cleanup_dtor): New.
  4761. * Makefile.in (infrun.o): Depend on $(event_top_h).
  4762. 2008-07-11 Pedro Alves <pedro@codesourcery.com>
  4763. Add "continue -a" and "interrupt -a" options for non-stop mode.
  4764. * infcmd.c (proceed_thread_callback, do_context_switch_to): New.
  4765. (continue_command): Add "-a" option.
  4766. (interrupt_target_command): Add "-a" option.
  4767. (_initialize_infcmd): Add extend help of continue and interrupt
  4768. command to mention the new "-a" option. Mark "continue" async ok.
  4769. 2008-07-10 Doug Evans <dje@google.com>
  4770. Add "set print symbol-loading on|off".
  4771. * NEWS: Document new option.
  4772. * symfile.h (print_symbol_loading): Declare.
  4773. * symfile.c (print_symbol_loading): New global.
  4774. (symbol_file_add_with_addrs_or_offsets): Only print "Reading symbols
  4775. from ..." if print_symbol_loading.
  4776. (_initialize_symfile): Add set/show print symbol-loading.
  4777. * solib.c (solib_read_symbols): Only print "Loaded symbols for ..."
  4778. if print_symbol_loading.
  4779. 2008-07-10 Pedro Alves <pedro@codesourcery.com>
  4780. Non-stop linux native.
  4781. * linux-nat.c (linux_test_for_tracefork): Block events while we're
  4782. here.
  4783. (get_pending_status): Implement non-stop mode.
  4784. (linux_nat_detach): Stop threads before detaching.
  4785. (linux_nat_resume): In non-stop mode, always resume only a single
  4786. PTID.
  4787. (linux_handle_extended_wait): On a clone event, in non-stop mode,
  4788. add new lwp to GDB's thread table, and mark as running, executing
  4789. and stopped appropriately.
  4790. (linux_nat_filter_event): Don't assume there are other running
  4791. threads when a thread exits.
  4792. (linux_nat_wait): Mark the main thread as running and executing.
  4793. In non-stop mode, don't stop all lwps.
  4794. (linux_nat_kill): Stop lwps before killing them.
  4795. (linux_nat_thread_alive): Use signal 0 to detect if a thread is
  4796. alive.
  4797. (send_sigint_callback): New.
  4798. (linux_nat_stop): New.
  4799. (linux_nat_add_target): Set to_stop to linux_nat_stop.
  4800. * linux-nat.h (thread_db_attach_lwp): Declare.
  4801. * linux-thread-db.c (thread_get_info_callback): Check for new
  4802. threads if we have none.
  4803. (thread_from_lwp, enable_thread_event): Set proc_handle.pid to the
  4804. stopped lwp. Check for new threads if we have none.
  4805. (thread_db_attach_lwp): New.
  4806. (thread_db_init): Set proc_handle.pid to inferior_ptid.
  4807. (check_event): Set proc_handle.pid to the stopped lwp.
  4808. (thread_db_find_new_threads): Set proc_handle.pid to any stopped
  4809. lwp available, bail out if there is none.
  4810. * linux-fork.c (linux_fork_killall): Use SIGKILL instead of
  4811. PTRACE_KILL.
  4812. 2008-07-10 Kevin Buettner <kevinb@redhat.com>
  4813. * rs6000-tdep.c (ppc_displaced_step_fixup): Change type of
  4814. `current_pc' from CORE_ADDR to ULONGEST.
  4815. * remote-sim.c (gdbsim_cntrl_c): Pass remote_sim_ptid to
  4816. gdbsim_stop().
  4817. 2008-07-10 Jan Kratochvil <jan.kratochvil@redhat.com>
  4818. * NEWS (New commands): Mention "set disable-randomization".
  4819. * configure.ac: Add check for HAVE_PERSONALITY and
  4820. HAVE_DECL_ADDR_NO_RANDOMIZE.
  4821. * configure, config.in: Regenerate.
  4822. * linux-nat.c [HAVE_PERSONALITY]: New include <sys/personality.h>.
  4823. [HAVE_PERSONALITY] [!HAVE_DECL_ADDR_NO_RANDOMIZE]: Set
  4824. ADDR_NO_RANDOMIZE.
  4825. (disable_randomization, show_disable_randomization)
  4826. (set_disable_randomization): New.
  4827. (linux_nat_create_inferior) [HAVE_PERSONALITY]: New variables
  4828. PERSONALITY_ORIG and PERSONALITY_SET. Disable randomization upon the
  4829. variable DISABLE_RANDOMIZATION.
  4830. (_initialize_linux_nat): Call ADD_SETSHOW_BOOLEAN_CMD for the variable
  4831. DISABLE_RANDOMIZATION.
  4832. 2008-07-09 Pedro Alves <pedro@codesourcery.com>
  4833. Adjust all targets to new target_stop interface.
  4834. * gnu-nat.c (gnu_stop): Add ptid argument.
  4835. * go32-nat.c (go32_stop): Add ptid argument.
  4836. (go32_create_inferior): Pass inferior_ptid to go32_stop.
  4837. * hpux-thread.c (hpux_thread_stop): Add ptid argument.
  4838. * monitor.c (monitor_stop): Add ptid argument.
  4839. (monitor_open): Pass inferior_ptid to monitor_stop.
  4840. (monitor_interrupt): Pass inferior_ptid to target_stop.
  4841. (monitor_stop): Add ptid argument.
  4842. * nto-procfs.c (nto_interrupt): Pass inferior_ptid to target_stop.
  4843. (procfs_create_inferior): Add ptid argument.
  4844. * procfs.c (procfs_stop): Add ptid argument.
  4845. * remote-m32r-sdi.c (m32r_stop): Add ptid argument.
  4846. * remote-sim.c (gdbsim_stop): Add ptid argument.
  4847. * sol-thread.c (sol_thread_stop): Add ptid argument.
  4848. * win32-nat.c (win32_stop): Add ptid argument.
  4849. 2008-07-09 Pedro Alves <pedro@codesourcery.com>
  4850. Non-stop inferior control.
  4851. * infrun.c (resume): In non-stop mode, always resume just one
  4852. thread.
  4853. (proceed): Don't call prepare_to_proceed in non-stop mode.
  4854. (fetch_inferior_event): In non-stop mode, switch context before
  4855. handling the event.
  4856. (error_is_running, ensure_not_running): New.
  4857. (handle_inferior_event): In non-stop mode: Mark only the event
  4858. thread as stopped. Require that the target module manages adding
  4859. threads to the thread list. Assert that there isn't a
  4860. deferred_step_ptid set. Don't switch to infwait_thread_hop_state.
  4861. (normal_stop): Only mark not-running if inferior hasn't exited.
  4862. In non-stop mode, only mark the event thread.
  4863. * thread.c:Include "cli/cli-decode.h".
  4864. (print_thread_info): Don't read from a running thread.
  4865. Output "(running)" if thread is running.
  4866. (switch_to_thread): Don't read stop_pc if thread is executing.
  4867. (do_restore_current_thread_cleanup): Don't write to a running
  4868. thread.
  4869. (thread_apply_all_command): Don't read from a running thread. In
  4870. non-stop mode, do a full context-switch instead of just switching
  4871. threads.
  4872. (thread_apply_command): In non-stop mode, do a full context-switch
  4873. instead of just switching threads.
  4874. (do_captured_thread_select): Likewise. Inform user if selected
  4875. thread is running.
  4876. (_initialize_thread): Mark "info threads" and "thread" and
  4877. async_ok.
  4878. * inf-loop.c (inferior_event_handler): In non-stop mode, don't
  4879. unregister the target from the event loop.
  4880. * infcmd.c (continue_command, step_1, jump_command)
  4881. (signal_command): Ensure the selected thread isn't running.
  4882. (interrupt_target_command): In non-stop mode, interrupt only the
  4883. selected thread.
  4884. * inferior.h (error_is_running, ensure_not_running): Declare.
  4885. * target.h (struct target_ops): Add ptid argument to the to_stop
  4886. member.
  4887. (target_stop): Add ptid_t argument.
  4888. * target.c (update_current_target): Add ptid argument to to_stop's
  4889. type.
  4890. (debug_to_stop): Add ptid_t argument.
  4891. (debug_to_rcmd): Set to_stop_ptid.
  4892. * remote.c (remote_stop): Add ptid_t argument.
  4893. (async_remote_interrupt): Add inferior_ptid to target_stop.
  4894. * inf-ptrace.c (inf_ptrace_stop): Add ptid argument.
  4895. * Makefile.in (thread.o): Depend on $(cli_decode_h).
  4896. 2008-07-09 Pedro Alves <pedro@codesourcery.com>
  4897. Don't rely on ecs->wait_for_more.
  4898. * infrun.c (proceed): Clear the stepping state, set
  4899. previous_inferior_ptid and clear infwait state.
  4900. (wait_for_inferior): Don't clear the stepping state, set
  4901. previous_inferior_ptid, or clear the infwait state here.
  4902. (fetch_inferior_event): Don't clear the stepping state, set
  4903. previous_inferior_ptid, or clear the infwait state here. Don't
  4904. condition on wait_for_more.
  4905. 2008-07-09 Pedro Alves <pedro@codesourcery.com>
  4906. Refactor infrun a bit.
  4907. * infrun.c (currently_stepping): Take a struct
  4908. thread_stepping_state instead of an execution_control_state.
  4909. (struct thread_stepping_state): New, split from
  4910. execution_control_state.
  4911. (gtss, tss): New globals.
  4912. (proceed): Clear the stepping state, set previous_inferior_ptid
  4913. and clear infwait state.
  4914. (init_wait_for_inferior): Clear the stepping state,
  4915. previous_inferior_ptid and infwait state.
  4916. (waiton_ptid, infwait_state): New, split from
  4917. execution_control_state.
  4918. (struct execution_control_state): Members that persist through
  4919. events moved out to either struct thred_stepping_state or made
  4920. global. Deleted unneeded wp, saved_inferior_ptid, tmpstatus.
  4921. (wait_for_inferior, fetch_inferior_event): Use local
  4922. execution_control_state. Update to execution_control_state split.
  4923. (init_execution_control_state): Adjust.
  4924. (init_thread_stepping_state): New, extracted from
  4925. init_execution_control_state.
  4926. (context_switch): Take a ptid instead of an
  4927. execution_control_state.
  4928. (context_switch_to): Adjust.
  4929. (adjust_pc_after_break): Adjust.
  4930. (init_infwait_state): New.
  4931. (handle_inferior_event): Adjust.
  4932. 2008-07-09 Pedro Alves <pedro@codesourcery.com>
  4933. Vladimir Prus <vladimir@codesourcery.com>
  4934. Per-thread commands.
  4935. * gdbthread.h: Remove unneeded forward declarations.
  4936. Include "inferior.h".
  4937. (struct thread_info): Add continuations,
  4938. intermediate_continuations, proceed_to_finish, step_over_calls,
  4939. stop_step, step_multi and stop_signal members.
  4940. (save_infrun_state): Add continuations,
  4941. intermediate_continuations, proceed_to_finish, step_over_calls,
  4942. stop_step, step_multi, stop_signal and stop_bpstat parameters.
  4943. (load_infrun_state): Add continuations,
  4944. intermediate_continuations, proceed_to_finish, step_over_calls,
  4945. stop_step, step_multi, stop_signal and stop_bpstat parameters.
  4946. * thread.c (load_infrun_state): In non-stop mode, load
  4947. continuations, intermediate_continuations, proceed_to_finish,
  4948. step_over_calls, stop_step, step_multi and stop_signal.
  4949. (save_infrun_state): Store continuations,
  4950. intermediate_continuations, proceed_to_finish, step_over_calls,
  4951. stop_step, step_multi, stop_signal and stop_bpstat.
  4952. (save_infrun_state): Store continuations,
  4953. intermediate_continuations, proceed_to_finish, step_over_calls,
  4954. stop_step, step_multi, stop_signal and stop_bpstat.
  4955. (free_thread): Clear The thread's stop_bpstat.
  4956. * inferior.h (context_switch_to): Declare.
  4957. * infrun.c (ecss): New global.
  4958. (context_switch): Context switch continuations,
  4959. intermediate_continuations, proceed_to_finish, step_over_calls,
  4960. stop_step, step_multi, stop_signal and stop_bpstat.
  4961. (wait_for_inferior): Use global ecss.
  4962. (async_ecss, async_ecs): Delete.
  4963. (fetch_inferior_event): Use global ecss.
  4964. (context_switch_to): New.
  4965. * top.c (execute_command): In non-stop, only check if the current
  4966. thread is running, in all-stop, check if there's any thread
  4967. running.
  4968. * breakpoint.c (bpstat_remove_breakpoint): New.
  4969. (bpstat_remove_breakpoint_callback): New.
  4970. (delete_breakpoint): Clear the stop_bpstats of all threads.
  4971. * mi/mi-main.c (mi_cmd_execute): In non-stop, only check if the
  4972. current thread is running, in all-stop, check if there's any
  4973. thread running.
  4974. * Makefile.in (gdbthread_h): Depend on $(inferior_h).
  4975. 2008-07-09 Pedro Alves <pedro@codesourcery.com>
  4976. Add non_stop global.
  4977. * inferior.h (non_stop): Declare.
  4978. * infrun.c (non_stop, non_stop_1): New.
  4979. (set_non_stop, show_non_stop): New.
  4980. (_initialize_infrun): Add "set/show non-stop" command.
  4981. 2008-07-09 Pedro Alves <pedro@codesourcery.com>
  4982. Adjust fork/vfork/exec to pass ptids around.
  4983. * target.h (struct target_waitstatus): Store related_pid as a ptid.
  4984. (inferior_has_forked, inferior_has_vforked, inferior_has_execd):
  4985. Take a ptid_t.
  4986. * breakpoint.h (struct breakpoint): Change forked_inferior_pid
  4987. type to ptid.
  4988. * breakpoint.c (print_it_typical, bpstat_check_location)
  4989. (print_one_breakpoint_location, set_raw_breakpoint_without_location)
  4990. (create_fork_vfork_event_catchpoint): Adjust.
  4991. * infrun.c (fork_event): Change parent_pid and child_pid types to
  4992. ptid.
  4993. (follow_exec, inferior_has_forked, inferior_has_vforked)
  4994. (inferior_has_execd): Take a ptid_t and don't trim it.
  4995. * linux-thread-db.c (thread_db_wait): Don't trim the returned ptid.
  4996. * linux-nat.c (linux_child_follow_fork): Adjust.
  4997. * inf-ptrace.c (inf_ptrace_wait): Adjust.
  4998. * inf-ttrace.c (inf_ttrace_wait): Adjust.
  4999. * win32-nat.c (get_win32_debug_event): Don't set related_pid.
  5000. 2008-07-09 Pedro Alves <pedro@codesourcery.com>
  5001. Add "executing" property to threads.
  5002. * inferior.h (target_executing): Delete.
  5003. * gdbthread.h (struct thread_info): Add executing_ field.
  5004. (set_executing, is_executing): New.
  5005. * thread.c (main_thread_executing): New.
  5006. (init_thread_list): Clear it and also main_thread_running.
  5007. (is_running): Return false if target has no execution.
  5008. (any_running, is_executing, set_executing): New.
  5009. * top.c: Include "gdbthread.h".
  5010. (target_executing): Delete.
  5011. (execute_command): Replace target_executing check by any_running.
  5012. * event-top.c: Include "gdbthread.h".
  5013. (display_gdb_prompt, command_handler): Replace target_executing by
  5014. is_running.
  5015. * inf-loop.c: Include "gdbthread.h". Don't mark as not executing
  5016. here. Replace target_executing by is_running.
  5017. * infrun.c (handle_inferior_event): Mark all threads as
  5018. not-executing.
  5019. * linux-nat.c (linux_nat_resume): Don't mark thread as executing
  5020. here.
  5021. * stack.c (get_selected_block): Return null if inferior is
  5022. executing.
  5023. * target.c (target_resume): Mark resumed ptid as executing.
  5024. * breakpoint.c (until_break_command): Replace target_executing
  5025. check by is_executing.
  5026. * remote.c (remote_async_resume): Don't mark inferior as executing
  5027. here.
  5028. * mi/mi-interp.c (mi_cmd_interpreter_exec): Replace target_executing
  5029. by any_running.
  5030. * mi/mi-main.c (mi_cmd_exec_interrupt, mi_cmd_execute)
  5031. (mi_execute_async_cli_command): Replace target_executing by
  5032. is_running.
  5033. * frame.c (get_current_frame): Error out if the current thread is
  5034. executing.
  5035. (has_stack_frames): New.
  5036. (get_selected_frame, deprecated_safe_get_selected_frame): Check
  5037. has_stack_frames.
  5038. * Makefile.in (event-top.o, frame.o, inf-loop.o, top.o): Depend on
  5039. $(gdbthread_h).
  5040. 2008-07-09 Pedro Alves <pedro@codesourcery.com>
  5041. * symfile.c (load_command): Reopen the exec file and reread
  5042. symbols before anything else.
  5043. 2008-07-09 Pedro Alves <pedro@codesourcery.com>
  5044. * remote-sim.c: Include gdbthread.h.
  5045. (remote_sim_ptid): New global.
  5046. (gdbsim_create_inferior): Silently add the main task to GDB's
  5047. thread list.
  5048. (gdbsim_close, gdbsim_mourn_inferior): Silently delete the main
  5049. task from GDB's thread list.
  5050. (gdbsim_resume): Adjust to use remote_sim_ptid.
  5051. (gdbsim_thread_alive, gdbsim_pid_to_str): New.
  5052. (init_gdbsim_ops): Register gdbsim_thread_alive and
  5053. gdbsim_pid_to_str.
  5054. (_initialize_remote_sim): Initialize remote_sim_ptid.
  5055. * Makefile.in (remote-sim.o): Depend on $(gdbthread_h).
  5056. 2008-07-09 Pedro Alves <pedro@codesourcery.com>
  5057. * monitor (monitor_ptid): New global.
  5058. (monitor_open): Silently add the main task to GDB's thread list.
  5059. (monitor_close, monitor_mourn_inferior): Silently delete the main
  5060. task from GDB's thread list.
  5061. (monitor_thread_alive, monitor_pid_to_str): New.
  5062. (init_base_monitor_ops): Register monitor_thread_alive and
  5063. monitor_pid_to_str.
  5064. (_initialize_remote_monitors): Initialize monitor_ptid.
  5065. * gdbthread.h (delete_thread_silent): Declare.
  5066. * thread.c (delete_thread): Rename to ...
  5067. (delete_thread_1): ... this. Add "silent" parameter. If silent,
  5068. don't do exit notifications.
  5069. (delete_thread, delete_thread_silent): New, as wrappers to
  5070. delete_thread_1.
  5071. 2008-07-08 Pedro Alves <pedro@codesourcery.com>
  5072. * breakpoint.c (update_global_location_list): Add boolean
  5073. "should_insert" argument. Only insert locations if caller told it
  5074. too.
  5075. (update_global_location_list_nothrow): Add boolean "should_insert"
  5076. argument. Pass it to update_global_location_list.
  5077. (insert_breakpoints, create_longjmp_breakpoint)
  5078. (create_overlay_event_breakpoint, enable_overlay_breakpoints)
  5079. (create_thread_event_breakpoint, create_solib_event_breakpoint)
  5080. (create_fork_vfork_event_catchpoint, create_exec_event_catchpoint)
  5081. (enable_watchpoints_after_interactive_call_stop)
  5082. (set_momentary_breakpoint, create_breakpoints)
  5083. (break_command_really, watch_command_1)
  5084. (create_ada_exception_breakpoint, update_breakpoint_locations)
  5085. (do_enable_breakpoint, enable_command): Pass true to
  5086. update_global_location_list.
  5087. (bpstat_stop_status, disable_overlay_breakpoints)
  5088. (disable_watchpoints_before_interactive_call_start)
  5089. (delete_breakpoint, disable_breakpoint, disable_command): Pass
  5090. false to update_global_location_list.
  5091. (update_breakpoints_after_exec): Don't temporarily disable
  5092. always-inserted mode.
  5093. 2008-07-08 Pedro Alves <pedro@codesourcery.com>
  5094. * breakpoint.c (mark_breakpoints_out): Make public.
  5095. (update_breakpoints_after_exec): Don't call mark_breakpoints_out
  5096. here. Update comment.
  5097. * breakpoint.h (mark_breakpoints_out): Declare.
  5098. * linux-nat.c (linux_handle_extended_wait): On
  5099. TARGET_WAITKIND_EXECD, call mark_breakpoints_out.
  5100. * inf-ttrace.c (inf_ttrace_wait): Likewise.
  5101. 2008-07-08 Pedro Alves <pedro@codesourcery.com>
  5102. * infrun.c (follow_exec): Reset shared libraries before adding the
  5103. main exec file.
  5104. 2008-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
  5105. * breakpoint.c (bpstat_copy): Call RELEASE_VALUE on the new OLD_VAL.
  5106. 2008-07-07 Pedro Alves <pedro@codesourcery.com>
  5107. * i386-dicos-tdep.c: Include "inferior.h".
  5108. (i386_dicos_frame_align): New.
  5109. (i386_dicos_init_abi): Register i386_dicos_frame_align. Set call
  5110. dummy location ON_STACK.
  5111. * Makefile.in (i386-dicos-tdep.o): Depend on $(inferior_h).
  5112. 2008-07-07 Joel Brobecker <brobecker@adacore.com>
  5113. * gstdint.h: New file.
  5114. 2008-07-05 Vladimir Prus <vladimir@codesourcery.com>
  5115. * mi/mi-interp.c (mi_on_resume): Don't try to report
  5116. resumed thread it the thread list is empty.
  5117. 2008-07-05 Pierre Muller <muller@ics.u-strasbg.fr>
  5118. * cli/cli-decode.c (add_setshow_optional_filename_cmd): Set
  5119. completer for set to filename_completer.
  5120. NEWS: Mention it.
  5121. 2008-07-04 Vladimir Prus <vladimir@codesourcery.com>
  5122. Implement -target-attach.
  5123. * mi/mi-cmds.c (mi_cmds): Forward -target-attach to CLI attach.
  5124. 2008-06-21 Hui Zhu <teawater@gmail.com>
  5125. * target-descriptions.c (maint_print_c_tdesc_cmd): Fix a memory leak.
  5126. 2008-07-03 Pedro Alves <pedro@codesourcery.com>
  5127. * config/i386/nm-cygwin.h (ATTACH_NO_WAIT): Delete.
  5128. * config/i386/nm-i386gnu.h (ATTACH_NO_WAIT): Delete.
  5129. * target.h (struct target_ops): Add to_attach_no_wait member.
  5130. (target_attach_no_wait): New.
  5131. * target.c (update_current_target): Inherit to_attach_no_wait.
  5132. * infcmd.c: Replace ATTACH_NO_WAIT compile time check by
  5133. target_attach_no_wait runtime check.
  5134. * gnu-nat.c (init_gnu_ops): Set to_attach_no_wait in gnu_ops.
  5135. * win32-nat.c (init_win32_ops): Set to_attach_no_wait in
  5136. win32_ops.
  5137. 2008-07-03 Pedro Alves <pedro@codesourcery.com>
  5138. * i386-tdep.c (i386_displaced_step_fixup): Condition log printing
  5139. on debug_displaced being set.
  5140. 2008-06-30 Daniel Jacobowitz <dan@codesourcery.com>
  5141. * frame.c (get_prev_frame_1): Call frame_unwind_find_by_frame
  5142. directly instead of get_frame_id.
  5143. 2008-06-30 Luis Machado <luisgpm@br.ibm.com>
  5144. * rs6000-tdep.c (ppc_displaced_step_fixup): New function.
  5145. (deal_with_atomic_sequence): Update BC masks.
  5146. (rs6000_gdbarch_init): Init displaced stepping infra-structure.
  5147. Define BRANCH_MASK, B_INSN, BC_INSN, BXL_INSN, BP_MASK and BP_INSN.
  5148. 2008-06-30 Daniel Jacobowitz <dan@codesourcery.com>
  5149. * cris-tdep.c (crisv32_single_step_through_delay): Get this frame's
  5150. register, not the previous frame's.
  5151. 2008-06-30 Luis Machado <luisgpm@br.ibm.com>
  5152. * source.c (select_source_symtab): Make sure we skip namespace
  5153. symtabs when showing cpp source code.
  5154. 2008-06-30 Hans-Peter Nilsson <hp@axis.com>
  5155. * MAINTAINERS (Authorized committers): Fix my email address.
  5156. 2008-06-28 Vladimir Prus <vladimir@codesourcery.com>
  5157. * mi/mi-cmds.c (mi_cmds): Route -exec-run, -exec-until,
  5158. -target-download and -target-select via CLI, so that
  5159. the quoting rules are the same as they were (unfortunately)
  5160. in all prior gdb releases.
  5161. * mi/mi-cmds.h (mi_cmd_exec_run, mi_cmd_exec_until)
  5162. (mi_cmd_target_download, mi_cmd_target_select): Remove.
  5163. * mi/mi-main.c (mi_cmd_exec_run, mi_cmd_exec_until)
  5164. (mi_cmd_target_download, mi_cmd_target_select): Remove.
  5165. (mi_cmd_execute): Set current_token even for commands
  5166. routed via CLI.
  5167. 2008-06-28 Ulrich Weigand <uweigand@de.ibm.com>
  5168. * alphafbsd-tdep.c: Update for unwinder changes.
  5169. * alpha-linux-tdep.c: Likewise.
  5170. * alphanbsd-tdep.c: Likewise.
  5171. * alphaobsd-tdep.c: Likewise.
  5172. * avr-tdep.c: Likewise.
  5173. * cris-tdep.c: Likewise.
  5174. * frv-linux-tdep.c: Likewise.
  5175. * frv-tdep.c: Likewise.
  5176. * h8300-tdep.c: Likewise.
  5177. * hppa-linux-tdep.c: Likewise.
  5178. * iq2000-tdep.c: Likewise.
  5179. * m32c-tdep.c: Likewise.
  5180. * m32r-linux-tdep.c: Likewise.
  5181. * m32r-tdep.c: Likewise.
  5182. * m68hc11-tdep.c: Likewise.
  5183. * mep-tdep.c: Likewise.
  5184. * mn10300-tdep.c: Likewise.
  5185. * mt-tdep.c: Likewise.
  5186. * score-tdep.c: Likewise.
  5187. * sh64-tdep.c: Likewise.
  5188. * sh-tdep.c: Likewise.
  5189. * sparc64fbsd-tdep.c: Likewise.
  5190. * sparc64nbsd-tdep.c: Likewise.
  5191. * sparc64obsd-tdep.c: Likewise.
  5192. * v850-tdep.c: Likewise.
  5193. * vaxobsd-tdep.c: Likewise.
  5194. * vax-tdep.c: Likewise.
  5195. * xstormy16-tdep.c: Likewise.
  5196. 2008-06-28 Vladimir Prus <vladimir@codesourcery.com>
  5197. * mi/mi-main.c (enum captured_mi_execute_command_actions)
  5198. (captured_mi_execute_command_args): Remove.
  5199. (captured_mi_execute_command): Cast the closure to mi_parse
  5200. pointer, not to captured_mi_execute_command_args, and don't
  5201. set the action field thereof.
  5202. (mi_execute_command): Pass struct mi_parse, not
  5203. captured_mi_execute_command_args to captured_mi_execute_command.
  5204. (mi_execute_command): Remove (dead) code for suppressing
  5205. printing prompt.
  5206. 2008-06-28 Pedro Alves <pedro@codesourcery.com>
  5207. * linux-nat.c (enum sigchld_state): New.
  5208. (linux_nat_async_events_state): Renamed from
  5209. linux_nat_async_events_enabled.
  5210. (linux_nat_event_pipe_push, my_waitpid): Adjust.
  5211. (sigchld_default_action): New.
  5212. (lin_lwp_attach_lwp): Adjust. Call linux_nat_async_events
  5213. unconditionally.
  5214. (linux_nat_create_inferior): Set events state to sigchld_default
  5215. state.
  5216. (linux_nat_resume): Adjust.
  5217. (linux_nat_wait): Call linux_nat_async_events unconditionally.
  5218. (sigchld_handler): Adjust.
  5219. (linux_nat_async_mask): Don't set SIGCHLD actions here.
  5220. (get_pending_events): Adjust.
  5221. (linux_nat_async_events): Rewrite to handle enum sigchld_state
  5222. instead of a boolean.
  5223. (linux_nat_async): Adjust.
  5224. (_initialize_linux_nat): Capture default SIGCHLD action into
  5225. sigchld_default_action.
  5226. 2008-06-28 Vladimir Prus <vladimir@codesourcery.com>
  5227. * breakpoint.c (moribund_locations): New.
  5228. (bpstat_stop_status): Process moribund locations.
  5229. (update_global_location_list): Add removed
  5230. locations to moribund_locations.
  5231. (breakpoint_retire_moribund): New.
  5232. * breakpoint.h (struct bp_location): New field
  5233. events_till_retirement.
  5234. (breakpoint_retire_moribund): Declare.
  5235. * thread.c (thread_count): New.
  5236. * infrun.c (handle_inferior_event): Call
  5237. breakpoint_retire_moribund.
  5238. * gdbthread.h (thread_count): Declare.
  5239. 2008-06-27 Joseph Myers <joseph@codesourcery.com>
  5240. * dfp.c (decimal_convert): Call match_endianness before and after
  5241. conversion.
  5242. 2008-06-27 Jonathan Larmour <jifl@eCosCentric.com>
  5243. * remote.c (remote_insert_breakpoint): Ensure that if Z0
  5244. unsupported and we fall back to memory_insert_breakpoint, we
  5245. use the unmodified requested address.
  5246. 2008-06-27 Joel Brobecker <brobecker@adacore.com>
  5247. * dwarf2read.c (read_attribute_value): Issue a complaint when
  5248. adjusting size attribute values of 0xffffffff as zero.
  5249. 2008-06-27 Joseph Myers <joseph@codesourcery.com>
  5250. * i386-tdep.c (i386_16_byte_align_p): New.
  5251. (i386_push_dummy_call): Determine stack space required for
  5252. arguments going forwards allowing for 16-byte alignment, then push
  5253. arguments going forwards.
  5254. 2008-06-27 Pedro Alves <pedro@codesourcery.com>
  5255. * infrun.c (start_remote): Don't clear thread list here.
  5256. * monitor.c (monitor_open): Include "gdbthread.h". Clear thread
  5257. list here.
  5258. * remote.c (record_currthread): Upgrade the main thread and its
  5259. entry in the thread list if this is the first time we hear about
  5260. threads.
  5261. (remote_thread_alive): Consider magic_null_ptid or a ptid without
  5262. a tid member always alive.
  5263. (remote_find_new_threads): Don't update the main thread here.
  5264. (remote_start_remote): Clear thread list here. Always add the
  5265. main thread.
  5266. (extended_remote_attach_1): Add the main thread here.
  5267. (extended_remote_mourn_1): Re-add the main thread here.
  5268. (extended_remote_create_inferior_1): Add a main thread.
  5269. * Makefile.in (monitor.o): Depend on $(gdbthread_h).
  5270. 2008-06-27 Pedro Alves <pedro@codesourcery.com>
  5271. Use ptid_t.tid to store thread ids instead of ptid_t.pid.
  5272. * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): New
  5273. globals.
  5274. (general_thread, continue_thread): Change type to ptid_t.
  5275. (record_currthread): Take a ptid_t parameter instead of an
  5276. integer.
  5277. (MAGIC_NULL_PID): Delete.
  5278. (set_thread): Take a ptid_t parameter and adjust.
  5279. (set_general_thread, set_continue_thread): New.
  5280. (remote_thread_alive, remote_newthread_step)
  5281. (remote_current_thread, remote_find_new_threads)
  5282. (remote_threads_info, remote_start_remote, remote_vcont_resume)
  5283. (remote_resume_1, remote_wait, extended_remote_create_inferior_1)
  5284. (threadalive_test, remote_pid_to_str)
  5285. (remote_get_thread_local_address): Adjust.
  5286. (_initialize_remote): Initialize magic_null_ptid, not_sent_ptid
  5287. and any_thread_ptid.
  5288. 2008-06-26 Jan Kratochvil <jan.kratochvil@redhat.com>
  5289. * configure.ac (--enable-tui): AC_MSG_ERROR for explicit --enable-tui.
  5290. * configure: Regenerated.
  5291. 2008-06-26 Joel Brobecker <brobecker@adacore.com>
  5292. * dwarf2read.c (read_attribute_value): Treat size attribute
  5293. values of 0xffffffff as if the attribute value was zero.
  5294. 2008-06-26 Vladimir Prus <vladimir@codesourcery.com>
  5295. * linux-nat.c: Add description of overall logic.
  5296. 2008-06-26 Daniel Jacobowitz <dan@codesourcery.com>
  5297. * Makefile.in (GNULIB_H): Use GNULIB_STDINT_H.
  5298. (gdb_stdint_h, gdb_stdint.h, stamp-int): Delete. Remove
  5299. all dependencies on $(gdb_stdint_h).
  5300. (distclean): Do not delete gdb_stdint.h.
  5301. * acinclude.m4: Do not use stdint.m4.
  5302. * configure.ac: Set GNULIB_STDINT_H. Remove tests for stdint.h,
  5303. uintptr_t, and gdb_stdint.h.
  5304. * defs.h: Include <stdint.h>.
  5305. * gdb_thread_db.h: Assume stdint.h is already included.
  5306. * breakpoint.c, findcmd.c, hppa-tdep.c, inf-ptrace.c, proc-service.c,
  5307. rs6000-nat.c, spu-linux-nat.c, target.c, win32-nat.c: Do not
  5308. include gdb_stdint.h.
  5309. * configure, config.in: Regenerate.
  5310. 2008-06-26 Joseph Myers <joseph@codesourcery.com>
  5311. * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Handle passing
  5312. decimal floating-point values in GPRs for soft-float.
  5313. (do_ppc_sysv_return_value): Handle returning decimal
  5314. floating-point values in GPRs for soft-float.
  5315. 2008-06-26 Vladimir Prus <vladimir@codesourcery.com>
  5316. * target.c (target_read_until_error): New.
  5317. * target.h (target_read_until_error): Declare.
  5318. * mi/mi-main.c (mi_cmd_data_read_memory): Use
  5319. target_read_until_error.
  5320. 2008-06-25 Jan Kratochvil <jan.kratochvil@redhat.com>
  5321. Fix a memory leak found by Hui Zhu <teawater@gmail.com>.
  5322. * c-exp.y (parse_number): Move the S and SAVED_CHAR initialization
  5323. after the DECFLOAT detection to fix a memory leak. Remove the
  5324. redundant NUM initialization. Protect the DECFLOAT detection memory
  5325. access before the P block. Restore the P memory content for the
  5326. DECFLOAT detection.
  5327. 2008-06-25 Vladimir Prus <vladimir@codesourcery.com>
  5328. Kill the return value for all MI command functions.
  5329. * mi/mi-cmds.h (enum mi_cmd_result): Remove.
  5330. (mi_cmd_argv_ftype): Change return type to void.
  5331. * mi/mi-main.c: Adjust all function that implement
  5332. MI commands to return nothing.
  5333. (struct captured_mi_execute_command_actions):
  5334. Remove the rc field.
  5335. (mi_cmd_execute): Return nothing.
  5336. (mi_execute_async_cli_command): Return nothing.
  5337. (mi_cmd_exec_interrupt): Don't print ^done here.
  5338. (mi_cmd_target_select): Don't print ^connected here.
  5339. (captured_mi_execute_command): Don't check for MI_CMD_DONE.
  5340. Special-case -target-select and output ^connected, not ^done.
  5341. * mi/mi-cmd-break.c: Adjust.
  5342. * mi/mi-cmd-disas.c: Adjust.
  5343. * mi/mi-cmd-env.c: Adjust.
  5344. * mi/mi-cmd-file.c: Adjust.
  5345. * mi/mi-cmd-stack.c: Adjust.
  5346. * mi/mi-cmd-target.c: Adjust.
  5347. * mi/mi-cmd-var.c: Adjust.
  5348. * mi/mi-interp.c: Adjust.
  5349. * mi/mi-symbol-cmds.c: Adjust.
  5350. 2008-06-25 Vladimir Prus <vladimir@codesourcery.com>
  5351. Emit ^running via observer.
  5352. * mi/mi-interp.c (mi_cmd_interpreter_exec): Do no print
  5353. ^running here.
  5354. (mi_on_resume): Print ^running if not previously output.
  5355. * mi/mi-main.c (running_result_record_printed): New.
  5356. (captured_mi_execute_command): Reset
  5357. running_result_record_printed. Use running_result_record_printed
  5358. to decide if we should skip ^done.
  5359. (mi_execute_async_cli_command): Don't print ^running here.
  5360. * mi/mi-main.h (current_token, running_result_record_printed):
  5361. Declare.
  5362. 2008-06-24 Michael Snyder <msnyder@specifix.com>
  5363. * infrun.c (_initialize_infrun): White space and typo fix.
  5364. 2008-06-23 Christopher Faylor <me.gdb.changelog@cgf.cx>
  5365. * win32-nat.c (safe_symbol_file_add_stub): Remove unused variable.
  5366. (do_initial_win32_stuff): Fix problem with inability to set breakpoints
  5367. when first loading DLL with "dll" command.
  5368. 2008-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
  5369. * gnu-nat.c (proc_string): Use capital T for "Thread".
  5370. 2008-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
  5371. * win32-nat.c (win32_pid_to_str): Use capital T for "Thread".
  5372. 2008-06-18 Joel Brobecker <brobecker@adacore.com>
  5373. * solib-osf.c (osf_solib_create_inferior_hook): Do nothing if
  5374. the target cannot run.
  5375. 2008-06-18 Joel Brobecker <brobecker@adacore.com>
  5376. * solib-osf.c (osf_solib_create_inferior_hook): Do nothing if
  5377. we're attaching to a running process.
  5378. 2008-06-18 Pierre Muller <muller@ics.u-strasbg.fr>
  5379. * win32-nat.c (handle_load_dll): Give dll name and load address
  5380. if debug_events is on.
  5381. (handle_unload_dll): Likewise.
  5382. 2008-06-14 Vladimir Prus <vladimir@codesourcery.com>
  5383. Don't suppress *running when doing finish.
  5384. * infcall.c (call_function_by_hand): Set both
  5385. suppress_resume_observer and suppress_stop_observer.
  5386. * infcmd.c (suppress_run_stop_observers): Split into...
  5387. (suppress_resume_observer, suppress_stop_observer): ...those.
  5388. (finish_command_continuation): Clear suppress_stop_observer.
  5389. (finish_command): Set suppress_stop_observer.
  5390. * inferior.h (suppress_run_stop_observers): Split into...
  5391. (suppress_resume_observer, suppress_stop_observer): ...those.
  5392. * infrun.c (normal_stop): Check for suppress_stop_observer.
  5393. * thread.c (set_running): Check for suppress_resume_observer.
  5394. 2008-06-12 Pedro Alves <pedro_alves@portugalmail.pt>
  5395. Pierre Muller <muller@ics.u-strasbg.fr>
  5396. * gdbarch.sh (gdbarch_skip_main_prologue): New.
  5397. * gdbarch.h, gdbarch.c: Regenerate.
  5398. * i386-tdep.h (i386_skip_main_prologue): Declare.
  5399. * i386-tdep.c (i386_skip_main_prologue): New.
  5400. * i386-cygwin-tdep.c (i386_cygwin_init_abi): Register
  5401. i386_skip_main_prologue as gdbarch_skip_main_prologue gdbarch callback.
  5402. * symtab.c (find_function_start_sal): When pc points at the "main"
  5403. function, call gdbarch_skip_main_prologue.
  5404. 2008-06-11 Daniel Jacobowitz <dan@codesourcery.com>
  5405. * value.c (value_primitive_field): Fetch lazy register values.
  5406. 2008-06-11 Pedro Alves <pedro@codesourcery.com>
  5407. * NEWS: Mention support removal of undocumented S AA p PID stop
  5408. reply packet.
  5409. * remote.c (remote_wait): Remove undocumented S AA p PID support.
  5410. 2008-06-10 Stan Shebs <stan@codesourcery.com>
  5411. * MAINTAINERS: Update my affiliation and address.
  5412. 2008-06-10 Andreas Schwab <schwab@suse.de>
  5413. * top.c (print_gdb_version): Don't print final newline.
  5414. 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
  5415. Implement *running.
  5416. * Makefile.in: Update dependencies.
  5417. * gdbthread.h (struct thread_info): New field
  5418. running_.
  5419. (set_running, is_running): New.
  5420. * thread.c (set_running, is_running): New.
  5421. * inferior.h (suppress_normal_stop_observer): Rename to...
  5422. (suppress_run_stop_observers): ..this.
  5423. * infcmd.c (suppress_normal_stop_observer): Rename to...
  5424. (suppress_run_stop_observers): ..this.
  5425. (finish_command_continuation, finish_command): Adjust.
  5426. * infcall.c (call_function_by_hand): Adjust.
  5427. * infrun.c (normal_stop): Call set_running.
  5428. * target.c (target_resume): New. Call set_running.
  5429. * target.h (target_resume): Convert from macro to
  5430. a function.
  5431. * mi/mi-interp.c (mi_on_resume): New.
  5432. (mi_interpreter_init): Register mi_on_resume.
  5433. 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
  5434. Use observers to report stop events in MI.
  5435. * mi/mi-interp.c (mi_on_normal_stop): New.
  5436. (mi_interpreter_init): Register mi_on_normal_stop.
  5437. (mi_interpreter_exec_continuation): Remove.
  5438. (mi_cmd_interpreter_exec): Don't register the above.
  5439. * mi/mi-main.c (captured_mi_execute_command): Don't care
  5440. about sync_execution.
  5441. (mi_execute_async_cli_command): Don't install continuation. Don't
  5442. print *stopped.
  5443. (mi_exec_async_cli_cmd_continuation): Remove.
  5444. 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
  5445. Suppress normal stop observer when it's problematic.
  5446. * inferior.h (suppress_normal_stop_observer): New.
  5447. * infcall.c (call_function_by_hand): Disable stop events when
  5448. doing function calls.
  5449. * infmcd.c (suppress_normal_stop_observer): New.
  5450. (finish_command_continuation): Call normal_stop observer
  5451. explicitly.
  5452. (finish_command): Disable stop events inside proceed.
  5453. * infrun.c (normal_stop): Don't call normal stop observer if
  5454. suppressed of if multi-step is in progress.
  5455. 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
  5456. Remove stale code.
  5457. * infrun.c (finish_command): Don't pass cleanup
  5458. to continuation.
  5459. (finish_command_continuation): Don't grab cleanup from
  5460. the passed data, as we don't use, and cannot, use it anyway.
  5461. 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
  5462. Introduce common cleanup for restoring integers.
  5463. * defs.h (make_cleanup_restore_integer): New declaration.
  5464. (struct cleanup): New field free_arg.
  5465. (make_my_cleanup_2): New.
  5466. * utils.c (restore_integer_closure, restore_integer)
  5467. (make_cleanup_restore_integer): New.
  5468. (make_my_cleanup): Initialize the free_arg field and
  5469. renamed to make_my_cleanup_2.
  5470. (do_my_cleanups): Call free_arg.
  5471. (discard_cleanups): Call free_arg.
  5472. * breakpoint.c (restore_always_inserted_mode): Remove.
  5473. (update_breakpoints_after_exec): Use make_cleanup_restore_integer.
  5474. 2008-06-09 Doug Evans <dje@google.com>
  5475. * remote.c (remote_wait): Include beginning of malformed packet
  5476. in error output.
  5477. 2008-06-09 Tom Tromey <tromey@redhat.com>
  5478. * completer.c (complete_line): Don't special-case
  5479. expression_completer.
  5480. (expression_completer): Only pass last word to
  5481. location_completer.
  5482. * c-exp.y (yylex): Check 'token', not 'operator'.
  5483. 2008-06-09 Daniel Jacobowitz <dan@codesourcery.com>
  5484. * configure.ac (build_warnings): Add -Wno-format for mingw.
  5485. * configure: Regenerated.
  5486. 2008-06-07 Daniel Jacobowitz <dan@codesourcery.com>
  5487. * NEWS: Make indentation consistent. Move exec tracing entry out
  5488. of remote packet list.
  5489. 2008-06-06 Tom Tromey <tromey@redhat.com>
  5490. * value.h (evaluate_subexpression_type, extract_field_op):
  5491. Declare.
  5492. * printcmd.c (_initialize_printcmd): Use expression_completer for
  5493. 'p', 'inspect', 'call'.
  5494. * parser-defs.h (parse_field_expression): Declare.
  5495. * parse.c: Include exceptions.h.
  5496. (in_parse_field, expout_last_struct): New globals.
  5497. (mark_struct_expression): New function.
  5498. (prefixify_expression): Return int.
  5499. (prefixify_subexp): Return int. Use expout_last_struct.
  5500. (parse_exp_1): Update.
  5501. (parse_exp_in_context): Add 'out_subexp' argument. Handle
  5502. in_parse_field.
  5503. (parse_field_expression): New function.
  5504. * expression.h (parse_field_expression): Declare.
  5505. (in_parse_field): Likewise.
  5506. * eval.c (evaluate_subexpression_type): New function.
  5507. (extract_field_op): Likewise.
  5508. * completer.h (expression_completer): Declare.
  5509. * completer.c (expression_completer): New function.
  5510. (count_struct_fields, add_struct_fields): New functions.
  5511. * c-exp.y (yyparse): Redefine.
  5512. (COMPLETE): New token.
  5513. (exp): New productions.
  5514. (saw_name_at_eof, last_was_structop): New globals.
  5515. (yylex): Return COMPLETE when needed. Recognize in_parse_field.
  5516. (c_parse): New function.
  5517. * breakpoint.c (_initialize_breakpoint): Use expression_completer
  5518. for watch, awatch, and rwatch.
  5519. * Makefile.in (parse.o): Depend on exceptions_h.
  5520. 2008-06-06 Paul Pluzhnikov <ppluzhnikov@google.com>
  5521. PR gdb/1147
  5522. * valopts.c (find_overload_match): Handle references
  5523. to pointers.
  5524. 2008-06-06 Paul N. Hilfinger <hilfinger@adacore.com>
  5525. * ada-lang.c (ada_value_assign): Correct big-endian case to take into
  5526. account the bitsize of the 'from' operand.
  5527. 2008-06-06 Pedro Alves <pedro@codesourcery.com>
  5528. * annotate.h (annotate_thread_changed): Declare.
  5529. 2008-06-06 Nick Roberts <nickrob@snap.net.nz>
  5530. * annotate.c (annotate_thread_changed): New function.
  5531. * thread.c (thread_command) : Use it.
  5532. * infrun.c (normal_stop): Use it.
  5533. 2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
  5534. Nathan Sidwell <nathan@codesourcery.com>
  5535. Joseph Myers <joseph@codesourcery.com>
  5536. * acinclude.m4: Include ../config/acx.m4.
  5537. * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
  5538. * configure, config.in: Regenerate.
  5539. * main.c (print_gdb_help): Use REPORT_BUGS_TO for bug-reporting
  5540. address.
  5541. * top.c (print_gdb_version): Use PKGVERSION and REPORT_BUGS_TO.
  5542. 2008-06-05 Pedro Alves <pedro@codesourcery.com>
  5543. Replace 'target async' by 'maintenance set remote-async' and
  5544. 'target remote' combination.
  5545. * remote.c (remote_async_wait): Merge into remote_wait, and
  5546. remove.
  5547. (remote_async_permitted, remote_async_permitted_set): New
  5548. variables.
  5549. (set_maintenance_remote_async_permitted)
  5550. (show_maintenance_remote_async_permitted): New functions.
  5551. (remote_async_ops, extended_async_remote_ops): Delete.
  5552. (remote_async_open, extended_remote_async_open): Delete.
  5553. (remote_open_1): Drop async_p parameter. Update callers. Replace
  5554. async_p with remote_async_permitted checks.
  5555. (extended_async_remote_attach): Delete.
  5556. (remote_resume, remote_async_resume): Merge and leave remote_resume.
  5557. (remote_async_terminal_inferior): Rename to...
  5558. (remote_terminal_inferior): ... this, and add
  5559. remote_async_termitted check.
  5560. (remote_async_terminal_ours): Rename to...
  5561. (remote_terminal_ours): ... this, and add remote_async_termitted
  5562. check.
  5563. (remote_wait, remote_async_wait): Merge and leave remote_wait
  5564. only.
  5565. (remote_kill, remote_async_kill): Merge and leave remote_kill
  5566. only.
  5567. (remote_async_mourn, extended_async_remote_mourn): Delete.
  5568. (extended_remote_create_inferior_1): Drop async_p parameter.
  5569. Update callers. Always use extended_remote_ops.
  5570. (extended_remote_async_create_inferior): Delete.
  5571. (remote_return_zero): Delete.
  5572. (init_remote_ops): Register remote_can_async_p, remote_async,
  5573. remote_async_mask, remote_terminal_inferior and
  5574. remote_terminal_ours.
  5575. (remote_can_async_p, remote_is_async_p): Check for
  5576. remote_async_permitted.
  5577. (init_remote_async_ops, init_extended_async_remote_ops): Remove.
  5578. (set_remote_cmd): Don't add async and extended-async targets.
  5579. (_initialize_remote): Add set/show remote-async maintenance
  5580. commands.
  5581. 2008-06-05 Pedro Alves <pedro@codesourcery.com>
  5582. * remote.c (kill_kludge): Delete.
  5583. (remote_wait, remote_async_wait): Don't set it.
  5584. (remote_kill, remote_async_kill): Don't do anything with it.
  5585. 2008-06-05 Pedro Alves <pedro@codesourcery.com>
  5586. * linux-thread-db.c (thread_db_wait): Don't trim event ptid.
  5587. 2008-06-05 Aleksandar Ristovski <aristovski@qnx.com>
  5588. * bcache.c (bcache_data): Call deprecated_bcache_added function.
  5589. (deprecated_bcache_added): New function name. Body of function
  5590. bcache_data is used here with the addition of 'added' argument.
  5591. * bcache.h (deprecated_bcache_added): New function.
  5592. * symfile.c (add_psymbol_to_bcache): New helper function, takes part of
  5593. work from add_psymbol_to_list - initialises partial symbol and stashes
  5594. it in objfile's cache.
  5595. (append_psymbol_to_list): New helper function, takes other part of
  5596. work from add_psymbol_to_list - adds partial symbol to the given list.
  5597. (add_psymbol_to_list): Call helper functions instead of doing work
  5598. here. If adding to global list, do not duplicate partial symbols in the
  5599. partial symtab.
  5600. 2008-06-05 Aleksandar Ristovski <aristovski@qnx.com>
  5601. * breakpoint.c (print_exception_catchpoint): Put 'exception' back to
  5602. 'exception caught|thrown' message.
  5603. 2008-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
  5604. * Makefile.in: Update dependencies.
  5605. * dwarf2expr.c: New include "gdb_assert.h".
  5606. (new_dwarf_expr_context): Initialize MAX_RECURSION_DEPTH.
  5607. (dwarf_expr_eval): Sanity check the RECURSION_DEPTH count.
  5608. (execute_stack_op): Error out on too large RECURSION_DEPTH.
  5609. Increase/decrease RECURSION_DEPTH around the function.
  5610. 2008-06-05 Daniel Jacobowitz <dan@codesourcery.com>
  5611. * remote.c (get_offsets): Handle a single segment.
  5612. * symfile.c (symfile_map_offsets_to_segments): Allow more bases
  5613. than segments.
  5614. 2008-06-03 Daniel Jacobowitz <dan@codesourcery.com>
  5615. * solib-svr4.c (struct lm_info): Add lm_addr.
  5616. (main_lm_addr): New.
  5617. (svr4_default_sos): Set lm_addr.
  5618. (svr4_current_sos): Set lm_addr and main_lm_addr.
  5619. (svr4_fetch_objfile_link_map): Rewrite.
  5620. (svr4_clear_solib): Clear main_lm_addr.
  5621. 2008-06-03 Michael Snyder <msnyder@redhat.com>
  5622. Joseph Myers <joseph@codesourcery.com>
  5623. * mips-tdep.c (mips_eabi_return_value): Replace stub that always
  5624. returned RETURN_VALUE_STRUCT_CONVENTION with a real function.
  5625. 2008-06-02 Roman Zippel <zippel@linux-m68k.org>
  5626. * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Fix incorrect test.
  5627. 2008-06-02 Roman Zippel <zippel@linux-m68k.org>
  5628. * m68k-tdep.c (m68k_analyze_prologue): Fix length of lea insn.
  5629. 2008-06-01 Joel Brobecker <brobecker@adacore.com>
  5630. * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Do not
  5631. treat pointers in data space as function descriptors if the
  5632. target address is also in the data space.
  5633. 2008-05-30 Joel Brobecker <brobecker@adacore.com>
  5634. * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Set
  5635. the trad-frame register value for the SP register.
  5636. 2008-05-29 Mark Kettenis <kettenis@gnu.org>
  5637. * sparcnbsd-tdep.c, sparcobsd-tdep.c: Update for unwinder changes.
  5638. 2008-05-28 Joel Brobecker <brobecker@adacore.com>
  5639. * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Improve the heuristic
  5640. that identifies function descriptors outside of the .opd section.
  5641. 2008-05-28 Aleksandar Ristovski <aristovski@qnx.com>
  5642. * breakpoint.c (print_exception_catchpoint): In CLI add 'Temporary' for
  5643. temporary catchpoints. In MI add missing fields 'reason', 'disp',
  5644. 'bkptno'.
  5645. (print_mention_exception_catchpoint): Add 'Temporary' for temporary
  5646. catchpoints.
  5647. (handle_gnu_v3_exceptions): Use tempflag.
  5648. 2008-05-28 Vladimir Prus <vladimir@codesourcery.com>
  5649. Refactor varobj_update interface.
  5650. * varobj.c (varobj_update): Report changes as vector. Also
  5651. return not just a list of varobj, but a list of special structures
  5652. that tell what exactly has changed.
  5653. * varobj.h (enum varobj_update_error): Rename to
  5654. varobj_scope_status.
  5655. (struct varobj_update_result_t): New.
  5656. (varobj_update): Adjust prototype.
  5657. * mi/mi-cmd-var.c: Adjust for changes.
  5658. 2008-05-28 Vladimir Prus <vladimir@codesourcery.com>
  5659. * varobj.c (varobj_update): Fix comment typo.
  5660. Fix indentation.
  5661. 2008-05-26 Joel Brobecker <brobecker@adacore.com>
  5662. Set the symtab field of symbols read from ECOFF debugging entries.
  5663. * mdebugread.c (add_symbol): Add new parameter symtab.
  5664. (parse_symbol): Update calls to add_symbol throughout.
  5665. 2008-05-27 Andreas Schwab <schwab@suse.de>
  5666. * symtab.h (enum address_class): Remove LOC_REGPARM and
  5667. LOC_COMPUTED_ARG.
  5668. (struct symbol): Add is_argument.
  5669. (SYMBOL_IS_ARGUMENT): Define.
  5670. * ada-lang.c (ada_add_block_symbols): Use SYMBOL_IS_ARGUMENT.
  5671. * buildsym.c (finish_block): Likewise.
  5672. * stack.c (print_frame_args, print_block_frame_locals)
  5673. (print_frame_arg_vars): Likewise.
  5674. * symtab.c (lookup_block_symbol): Likewise.
  5675. * tracepoint.c (add_local_symbols): Likewise.
  5676. * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
  5677. * coffread.c (process_coff_symbol): Set SYMBOL_IS_ARGUMENT.
  5678. * dwarf2read.c (new_symbol): Likewise.
  5679. * mdebugread.c (parse_symbol): Likewise.
  5680. * stabsread.c (define_symbol): Likewise.
  5681. * ada-exp.y (select_possible_type_sym): Don't handle LOC_REGPARM
  5682. and LOC_COMPUTED_ARG.
  5683. * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
  5684. * ax-gdb.c (gen_var_ref): Likewise.
  5685. * eval.c (evaluate_subexp_for_address): Likewise.
  5686. * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
  5687. * m2-exp.y (yylex): Likewise.
  5688. * printcmd.c (address_info): Likewise.
  5689. * symmisc.c (print_symbol, print_partial_symbols): Likewise.
  5690. * tracepoint.c (collect_symbol, scope_info): Likewise.
  5691. 2008-05-24 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
  5692. * gdbarch.sh: Added new gdbarch struct
  5693. core_regset_sections.
  5694. * gdbarch.c: Refreshed.
  5695. * gdbarch.h: Refreshed.
  5696. * regset.h (core_regset_section): Declared.
  5697. * linux-nat.c (linux_nat_do_thread_registers): Added
  5698. support for the new gdbarch struct core_regset_sections.
  5699. * utils.c (host_address_to_string): New function.
  5700. * defs.h (host_address_to_string): New prototype.
  5701. * i386-linux-tdep.c (i386_regset_rections): New register
  5702. sections list for i386.
  5703. (i386_linux_init_abi): Initialized new gdbarch struct
  5704. core_regset_sections.
  5705. * Makefile.in: Updated to reflect dependency changes.
  5706. * ppc-linux-tdep.c (ppc_regset_sections): Register
  5707. sections list for ppc.
  5708. (ppc_linux_init_abi): Initialized new gdbarch struct
  5709. core_regset_sections
  5710. 2008-05-24 Andreas Schwab <schwab@suse.de>
  5711. * linespec.c (decode_objc): Save current language around call to
  5712. get_selected_block.
  5713. 2008-05-23 Joel Brobecker <brobecker@adacore.com>
  5714. * valprint.h (get_array_bounds): Renames get_array_low_bound.
  5715. * valprint.c (get_array_bounds): Renames get_array_low_bound.
  5716. Return the proper bound value if the array index type is an
  5717. enumerated type. Compute the high bound if requested.
  5718. (val_print_array_elements): Handle the case when the array
  5719. element has a null size.
  5720. * ada-valprint.c (print_optional_low_bound): Add handling
  5721. for empty arrays or arrays of zero-size elements.
  5722. (ada_val_print_array): New function, extracted out from
  5723. ada_val_print_1 case TYPE_CODE_ARRAY, and enhanced to
  5724. handle empty arrays and arrays of zero-size elements.
  5725. (ada_val_print_1)[case TYPE_CODE_ARRAY]: Replace extracted-out
  5726. code by call to ada_val_print_array.
  5727. (ada_value_print): Remove handling of null array. The handling
  5728. was incomplete and is now better handled by ada_val_print_array.
  5729. 2008-05-23 Markus Deuling <deuling@de.ibm.com>
  5730. * annotate.c (annotate_source, annotate_frame_begin): Replace
  5731. deprecated_print_address_numeric with paddress.
  5732. * cli/cli-cmds.c (list_command, edit_command): Likewise.
  5733. * tui/tui-stack.c (tui_make_status_line): Likewise.
  5734. * defs.h (deprecated_print_address_numeric): Remove.
  5735. * printcmd.c (deprecated_print_address_numeric): Remove.
  5736. * maint.c (maint_print_section_info): Fix comment.
  5737. 2008-05-23 Markus Deuling <deuling@de.ibm.com>
  5738. * valprint.c (print_hex_chars, print_octal_chars, print_decimal_chars,
  5739. print_binary_chars, print_char_chars): Add byte_order parameter and
  5740. replace gdbarch_byte_order.
  5741. (print_decimal_chars): Replace START_P, NOT_END_P and NEXT_P by their
  5742. expressions and remove them. Remove unused TWO_TO_FOURTH.
  5743. (val_print_type_code_int): Introduce gdbarch_byte_order to get at the
  5744. endianness. Update call to print_hex_chars.
  5745. * valprint.h (print_hex_chars, print_octal_chars, print_decimal_chars,
  5746. print_binary_chars, print_char_chars): Add byte_order parameter.
  5747. * printcmd.c (print_scalar_formatted): Introduce gdbarch_byte_order to
  5748. get at the endianness. Update print_*_char calls to use byte_order.
  5749. 2008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
  5750. * symtab.h (struct symbol): Make "aux_value" member a void pointer
  5751. instead of a union.
  5752. (SYMBOL_LOCATION_BATON): Update.
  5753. 2008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
  5754. * symtab.h (enum address_class): Remove LOC_BASEREG and
  5755. LOC_BASEREG_ARG.
  5756. (struct symbol): Remove "basereg" member of "aux_value" union.
  5757. (SYMBOL_BASEREG): Remove.
  5758. * ada-exp.y (select_possible_type_sym): Do not handle LOC_BASEREG
  5759. or LOC_BASEREG_ARG.
  5760. * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
  5761. (ada_add_block_symbols): Likewise.
  5762. * ax-gdb.c (gen_var_ref): Likewise.
  5763. * buildsym.c (finish_block): Likewise.
  5764. * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
  5765. * m2-exp.y (yylex): Likewise.
  5766. * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
  5767. * printcmd.c (address_info): Likewise.
  5768. * stack.c (print_frame_args, print_block_frame_locals): Likewise.
  5769. (print_frame_arg_vars): Likewise.
  5770. * symmisc.c (print_symbol): Likewise.
  5771. * symtab.c (lookup_block_symbol): Likewise.
  5772. * tracepoint.c (collect_symbol, add_local_symbols): Likewise.
  5773. (scope_info): Likewise.
  5774. 2008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
  5775. * symtab.h (enum address_class): Remove LOC_LOCAL_ARG.
  5776. * ada-exp.y (select_possible_type_sym): Do not handle LOC_LOCAL_ARG.
  5777. * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
  5778. (ada_add_block_symbols): Likewise.
  5779. * ax-gdb.c (gen_var_ref): Likewise.
  5780. * buildsyms.c (finish_block): Likewise.
  5781. * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
  5782. * m2-exp.y (yylex): Likewise.
  5783. * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
  5784. * printcmd.c (address_info): Likewise.
  5785. * stack.c (print_frame_args, print_frame_arg_vars): Likewise.
  5786. * symmisc.c (print_symbol, print_partial_symbols): Likewise.
  5787. * symtab.c (lookup_block_symbol): Likewise.
  5788. * tracepoint.c (collect_symbol, add_local_symbols): Likewise.
  5789. (scope_info): Likewise.
  5790. 2008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
  5791. * symtab.h (enum address_class): Remove LOC_INDIRECT and
  5792. LOC_HP_THREAD_LOCAL_STATIC.
  5793. * findvar.c (symbol_read_needs_frame, read_var_value): Do not
  5794. handle LOC_INDIRECT or LOC_HP_THREAD_LOCAL_STATIC.
  5795. (read_var_value): Likewise.
  5796. * buildsym.c (finish_block): Likewise.
  5797. * objfiles.c (objfile_relocate): Likewise.
  5798. * printcmd.c (address_info): Likewise.
  5799. * symmisc.c (print_symbol, print_partial_symbols): Likewise.
  5800. * tracepoint.c (scope_info): Likewise.
  5801. 2008-05-21 Markus Deuling <deuling@de.ibm.com>
  5802. Maxim Grigoriev <maxim2405@gmail.com>
  5803. * xtensa-tdep.c (xtensa_read_register): Remove.
  5804. (xtensa_frame_cache): Get rid of xtensa_read_register. Pass extra
  5805. argument litbase to call0_frame_cache().
  5806. (call0_track_op, call0_analyze_prologue)
  5807. (call0_frame_cache): Use extra argument litbase.
  5808. 2008-05-21 Joel Brobecker <brobecker@adacore.com>
  5809. * infcmd.c (_initialize_infcmd): Add new "fin" alias for "finish".
  5810. 2008-05-21 Ulrich Weigand <uweigand@de.ibm.com>
  5811. * frame.h (SIZEOF_FRAME_SAVED_REGS): Remove.
  5812. 2008-05-21 Ulrich Weigand <uweigand@de.ibm.com>
  5813. * alpha-mdebug-tdep.c: Include "trad-frame.h".
  5814. (struct alpha_mdebug_unwind_cache): Change type of SAVED_REGS to
  5815. struct trad_frame_saved_reg *.
  5816. (alpha_mdebug_frame_unwind_cache): Allocate SAVED_REGS using
  5817. trad_frame_alloc_saved_regs. Update accesses. Record previous
  5818. value of SP as being vfp.
  5819. (alpha_mdebug_frame_prev_register): Use trad_frame_get_prev_register.
  5820. * Makefile.in (alpha-mdebug-tdep.o): Update dependencies.
  5821. 2008-05-21 Markus Deuling <deuling@de.ibm.com>
  5822. * score-tdep.c (score_print_insn): Get the current endianess from
  5823. disassemble_info instead of gdbarch_byte_order.
  5824. 2008-05-21 Pedro Alves <pedro@codesourcery.com>
  5825. * frame.c (get_prev_frame_1): Build frame id before setting
  5826. this_frame->prev_p, not after.
  5827. 2008-05-21 Nick Roberts <nickrob@snap.net.nz>
  5828. * annotate.c (annotate_new_thread): New function for new-thread
  5829. annotation.
  5830. * annotate.h: (annotate_new_thread): New extern.
  5831. * thread.c (add_thread_with_info): Use it.
  5832. * Makefile.in (thread.o): Add dependency on annotate.h.
  5833. 2008-05-20 Joel Brobecker <brobecker@adacore.com>
  5834. * win32-nat.c (win32_wait): Block the control-c event while
  5835. waiting for a debug event.
  5836. 2008-05-19 Pedro Alves <pedro@codesourcery.com>
  5837. * symtab.h (lookup_symbol_in_language): Update comment.
  5838. * symtab.c (lookup_symbol_aux_block): Update comment.
  5839. * ada-lang.c (ada_lookup_symbol_list): Update comment.
  5840. 2008-05-19 Ulrich Weigand <uweigand@de.ibm.com>
  5841. * symtab.h (lookup_symbol_in_language): Remove SYMTAB parameter.
  5842. (lookup_symbol): Likewise.
  5843. * symtab.c (lookup_symbol_in_language): Remove SYMTAB parameter.
  5844. (lookup_symbol): Likewise.
  5845. (search_symbols): Update.
  5846. * linespec.c (find_methods, collect_methods): Update.
  5847. (add_matching_methods, add_constructors): Update.
  5848. (decode_compound, decode_dollar, decode_variable): Update.
  5849. (lookup_prefix_sym): Update.
  5850. (symbol_found): Remove SYM_SYMTAB parameter.
  5851. Use SYMBOL_SYMTAB (sym) instead.
  5852. * gdbtypes.c (lookup_typename): Update.
  5853. (lookup_struct, lookup_union, lookup_enum): Update.
  5854. (lookup_template_type): Update.
  5855. (check_typedef): Update.
  5856. * language.c (lang_bool_type): Update.
  5857. * mdebugread.c (parse_procedure): Update.
  5858. * mi/mi-cmd-stack.c (list_args_or_locals): Update.
  5859. * parse.c (write_dollar_variable): Update.
  5860. * printcmd.c (address_info): Update.
  5861. * source.c (select_source_symtab): Update.
  5862. * stack.c (print_frame_args, print_frame_arg_vars): Update.
  5863. * valops.c (find_function_in_inferior): Update.
  5864. (value_struct_elt_for_reference): Update.
  5865. * value.c (value_static_field, value_fn_field): Update.
  5866. * alpha-mdebug-tdep.c (find_proc_desc): Update.
  5867. * arm-tdep.c (arm_skip_prologue): Update.
  5868. * mt-tdep.c (mt_skip_prologue): Update.
  5869. * xstormy16-tdep.c (xstormy16_skip_prologue): Update.
  5870. * ada-lang.h (struct ada_symbol_info): Remove SYMTAB member.
  5871. * ada-lang.c (ada_add_block_symbols): Remove SYMTAB parameter.
  5872. (add_defn_to_vec): Likewise.
  5873. (ada_add_block_symbols): Likewise.
  5874. (lookup_cached_symbol, cache_symbol): Likewise.
  5875. (standard_lookup): Update.
  5876. (ada_lookup_symbol_list): Update.
  5877. * c-valprint.c (c_val_print): Update.
  5878. * cp-support.c (cp_lookup_rtti_type): Update.
  5879. * jv-lang.c (java_lookup_class, get_java_object_type): Update.
  5880. * objc-lang.c (lookup_struct_typedef, find_imps): Update.
  5881. * p-valprint.c (pascal_val_print): Update.
  5882. * scm-lang.c (scm_lookup_name): Update.
  5883. * c-exp.y: Update.
  5884. * f-exp.y: Update.
  5885. * jv-exp.y: Update.
  5886. * m2-exp.y: Update.
  5887. * objc-exp.y: Update.
  5888. * p-exp.y: Update.
  5889. 2008-05-19 Ulrich Weigand <uweigand@de.ibm.com>
  5890. * language.h (struct language_defn): Remove SYMTAB parameter from
  5891. la_lookup_symbol_nonlocal callback function pointer.
  5892. * ada-lang.h (ada_lookup_encoded_symbol): Remove SYMTAB parameter.
  5893. (ada_lookup_encoded_symbol): Likewise.
  5894. * ada-lang.c (ada_lookup_encoded_symbol): Remove SYMTAB parameter.
  5895. Always call fixup_symbol_section.
  5896. (ada_lookup_symbol): Remove SYMTAB parameter.
  5897. (ada_lookup_symbol_nonlocal): Likewise.
  5898. * ada-exp.y (write_object_renaming): Update.
  5899. (find_primitive_type): Likewise.
  5900. * cp-support.h (cp_lookup_symbol_nonlocal): Remove SYMTAB parameter.
  5901. (cp_lookup_symbol_namespace): Likewise.
  5902. * cp-namespace.c (lookup_namespace_scope): Remove SYMTAB parameter.
  5903. (lookup_symbol_file): Likewise.
  5904. (lookup_possible_namespace_symbol): Likewise.
  5905. (cp_lookup_symbol_nonlocal): Likewise.
  5906. (cp_lookup_symbol_namespace): Likewise.
  5907. (cp_lookup_nested_type): Update.
  5908. * scm-valprint.c (scm_inferior_print): Update.
  5909. * valops.c (value_maybe_namespace_elt): Update.
  5910. * solist.h (struct target_so_ops): Remove SYMTAB parameter from
  5911. lookup_lib_global_symbol callback function pointer.
  5912. (solib_global_lookup): Remove SYMTAB parameter.
  5913. * solib.c (solib_global_lookup): Remove SYMTAB parameter.
  5914. * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
  5915. * symtab.h (basic_lookup_symbol_nonlocal): Remove SYMTAB parameter.
  5916. (lookup_symbol_static): Likewise.
  5917. (lookup_symbol_global): Likewise.
  5918. (lookup_symbol_aux_block): Likewise.
  5919. (lookup_global_symbol_from_objfile): Likewise.
  5920. * symtab.c (lookup_symbol_aux): Remove SYMTAB parameter.
  5921. (lookup_symbol_aux_local): Likewise.
  5922. (lookup_symbol_aux_block): Likewise.
  5923. (lookup_symbol_aux_symtabs): Likewise.
  5924. (lookup_symbol_aux_psymtabs): Likewise.
  5925. (lookup_global_symbol_from_objfile): Likewise.
  5926. (basic_lookup_symbol_nonlocal): Likewise.
  5927. (lookup_symbol_static): Likewise.
  5928. (lookup_symbol_global): Likewise.
  5929. (lookup_symbol_in_language): Do not pass SYMTAB to lookup_symbol_aux.
  5930. 2008-05-17 Pedro Alves <pedro@codesourcery.com>
  5931. * remote.c (init_extended_remote_ops): Fix typo.
  5932. 2008-05-16 Pedro Alves <pedro@codesourcery.com>
  5933. * NEWS: Mention new DICOS x86 target configuration.
  5934. 2008-05-16 Pedro Alves <pedro@codesourcery.com>
  5935. Ulrich Weigand <uweigand@de.ibm.com>
  5936. * minsyms.c (lookup_minimal_symbol_by_pc_name): New function.
  5937. * symtab.h (lookup_minimal_symbol_by_pc_name): Add prototype.
  5938. * symtab.c (fixup_section): Remove prototype. Add ADDR parameter;
  5939. use it instead of ginfo->value.address. Look up minimal symbol by
  5940. address and name. Assume OBJFILE is non-NULL.
  5941. (fixup_symbol_section): Ensure we always have an objfile to look
  5942. into. Extract and pass to fixup_section the symbol's address that
  5943. will match the minimal symbol's address.
  5944. (fixup_psymbol_section): Likewise.
  5945. (find_pc_sect_psymtab): Fall back to non-addrmap case when debugging
  5946. overlays and the addrmap returned the wrong section.
  5947. * dwarf2read.c (var_decode_location): Set SYMBOL_CLASS before
  5948. calling fixup_symbol_section.
  5949. 2008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
  5950. * minsyms.c: Include "target.h".
  5951. (find_solib_trampoline_target): Handle minimal symbols pointing
  5952. to function descriptors as well.
  5953. * Makefile.in (minsyms.o): Update dependencies.
  5954. * ppc-linux-tdep.c (ppc64_standard_linkage): Rename to ...
  5955. (ppc64_standard_linkage1): ... this. Fix optional instructions.
  5956. (PPC64_STANDARD_LINKAGE_LEN): Rename to ...
  5957. (PPC64_STANDARD_LINKAGE1_LEN): ... this.
  5958. (ppc64_standard_linkage2, ppc64_standard_linkage3): New.
  5959. (PPC64_STANDARD_LINKAGE2_LEN, PPC64_STANDARD_LINKAGE3_LEN): New.
  5960. (ppc64_standard_linkage_target): Rename to ...
  5961. (ppc64_standard_linkage1_target): ... this.
  5962. (ppc64_standard_linkage2_target, ppc64_standard_linkage3_target): New.
  5963. (ppc64_skip_trampoline_code): Support three variants of standard
  5964. linkage stubs. Call find_solib_trampoline_target to handle
  5965. glink stubs.
  5966. 2008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
  5967. * ppc-linux-tdep.c (ppc_linux_init_abi): Do not install
  5968. ppc64_sysv_abi_adjust_breakpoint_address.
  5969. * ppc-sysv-tdep.c (ppc64_sysv_abi_adjust_breakpoint_address): Remove.
  5970. * ppc-tdep.h (ppc64_sysv_abi_adjust_breakpoint_address): Remove.
  5971. 2008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
  5972. * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Remove.
  5973. (ppc_linux_init_abi): Install find_solib_trampoline_target instead
  5974. of ppc_linux_skip_trampoline_code.
  5975. 2008-05-15 Daniel Jacobowitz <dan@codesourcery.com>
  5976. * gdbarch.sh: Delete dwarf_reg_to_regnum.
  5977. * gdbarch.c, gdbarch.h: Regenerated.
  5978. * amd64-tdep.c, arm-tdep.c, h8300-tdep.c, hppa-linux-tdep.c,
  5979. hppa-tdep.c, i386-tdep.c, m32c-tdep.c, m68k-tdep.c, mips-tdep.c,
  5980. s390-tdep.c, xtensa-tdep.c: Do not set dwarf_reg_to_regnum.
  5981. 2008-05-15 Pedro Alves <pedro@codesourcery.com>
  5982. * linux-nat.c (trap_ptid): Delete.
  5983. (linux_nat_detach, linux_nat_wait, linux_nat_mourn_inferior):
  5984. Adjust.
  5985. * linux-thread-db.c (thread_db_wait): Adjust.
  5986. 2008-05-15 Joel Brobecker <brobecker@adacore.com>
  5987. * linespec.c (decode_line_1): Fix a couple of comments.
  5988. 2008-05-15 Alan Modra <amodra@bigpond.net.au>
  5989. * dbxread.c: Formatting.
  5990. (INTERNALIZE_SYMBOL): Init n_other.
  5991. (set_namestring): Take pointer to nlist arg rather than struct
  5992. copy. Update all callers.
  5993. 2008-05-15 Andreas Schwab <schwab@suse.de>
  5994. * Makefile.in (dwarf2loc.o): Remove $(addrmap_h).
  5995. (dwarf2read.o): Add $(addrmap_h).
  5996. 2008-05-14 Ulrich Weigand <uweigand@de.ibm.com>
  5997. * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Rename ...
  5998. (ppc64_linux_convert_from_func_ptr_addr): ... to this. No longer try
  5999. to handle ppc32 PLT entries.
  6000. (ppc_linux_init_abi): Install ppc64_linux_convert_from_func_ptr_addr
  6001. only on ppc64.
  6002. 2008-05-14 Daniel Jacobowitz <dan@codesourcery.com>
  6003. * elfread.c (elf_symtab_read): Create trampolines for @plt symbols.
  6004. * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Renamed from
  6005. lookup_minimal_symbol_by_pc_section. Prefer trampolines if requested.
  6006. (lookup_minimal_symbol_by_pc_section): Use
  6007. lookup_minimal_symbol_by_pc_section_1.
  6008. (lookup_solib_trampoline_symbol_by_pc): Likewise.
  6009. 2008-05-13 Joel Brobecker <brobecker@adacore.com>
  6010. * findcmd.c: Add #include "gdb_stdint.h".
  6011. * Makefile.in (findcmd.o): Update dependencies.
  6012. 2008-05-11 David S. Miller <davem@davemloft.net>
  6013. * sparc-linux-tdep.c (sparc32_linux_init_abi): Remove
  6014. long double size override, Linux does use 128-bit now.
  6015. * sparc-linux-tdep.c (PSR_SYSCALL): Define.
  6016. (sparc_linux_write_pc): New function.
  6017. (sparc32_linux_init_abi): Register it.
  6018. * sparc64-linux-tdep.c (TSTATE_SYSCALL): Define.
  6019. (sparc64_linux_write_pc): New function.
  6020. (sparc64_linux_init_abi): Register it.
  6021. * sparc-linux-tdep.c, sparc64-linux-tdep.c: Use
  6022. dwarf2_append_unwinders(), not dwarf2_frame_sniffer.
  6023. 2008-05-11 Ulrich Weigand <uweigand@de.ibm.com>
  6024. * rs6000-tdep.c (rs6000_gdbarch_init): Set up info.target_desc
  6025. and info.tdep_info before calling gdbarch_init_osabi.
  6026. 2008-05-09 Joel Brobecker <brobecker@adacore.com>
  6027. * ada-lang.c (ada_evaluate_subexp) [BINOP_ASSIGN]: Do not force
  6028. the type of the right hand side of the assignment to the type
  6029. of the left hand side if the left hand side is a convenience
  6030. variable.
  6031. 2008-05-09 Ulrich Weigand <uweigand@de.ibm.com>
  6032. * NEWS: Mention gdbserver bi-arch capability.
  6033. 2008-05-09 Doug Evans <dje@google.com>
  6034. New "find" command.
  6035. * NEWS: Document find command and qSearch:memory packet.
  6036. * Makefile.in (SFILES): Add findcmd.c.
  6037. (COMMON_OBJS): Add findcmd.o.
  6038. (findcmd.o): New rule.
  6039. * findcmd.c: New file.
  6040. * target.h (target_ops): New member to_search_memory.
  6041. (simple_search_memory): Declare.
  6042. (target_search_memory): Declare.
  6043. * target.c (simple_search_memory): New fn.
  6044. (target_search_memory): New fn.
  6045. * remote.c (PACKET_qSearch_memory): New packet kind.
  6046. (remote_search_memory): New fn.
  6047. (init_remote_ops): Init to_search_memory.
  6048. (init_extended_remote_ops): Ditto.
  6049. (_initialize_remote): Add qSearch:memory packet config command.
  6050. 2008-05-09 Eli Zaretskii <eliz@gnu.org>
  6051. * thread.c (_initialize_thread): Don't use commas and periods in
  6052. first line of doc string of "set/show print thread-events".
  6053. 2008-05-08 Joel Brobecker <brobecker@adacore.com>
  6054. * alpha-mdebug-tdep.c, alpha-osf1-tdep.c, alpha-tdep.c:
  6055. Update for unwinder changes.
  6056. 2008-05-08 Joel Brobecker <brobecker@adacore.com>
  6057. * frame.c (get_frame_base_address, get_frame_locals_address)
  6058. (get_frame_args_address): Pass the correct frame when calling
  6059. frame_base_find_by_frame.
  6060. 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
  6061. * remote.c (extended_remote_attach_1): Call target_find_description.
  6062. 2008-05-08 Daniel Jacobowitz <dan@codesourcery.com>
  6063. * remote.c (extended_remote_create_inferior_1): Clean up
  6064. before marking the target running.
  6065. 2008-05-08 Joel Brobecker <brobecker@adacore.com>
  6066. * hppa-tdep.h, hppa-tdep.c, hppa-hpux-tdep.c: Update for unwinder
  6067. changes.
  6068. 2008-05-07 Joel Brobecker <brobecker@adacore.com>
  6069. * sparc-tdep.c, sparc-tdep.h, sparc-sol2-tdep.c, sparc64-tdep.c,
  6070. sparc64-sol2-tdep.c: Update for unwinder changes.
  6071. 2008-05-07 Daniel Jacobowitz <dan@codesourcery.com>
  6072. * cp-support.c (mangled_name_to_comp): Initialize storage.
  6073. (unqualified_name_from_comp): Likewise.
  6074. 2008-05-07 Jie Zhang <jie.zhang@analog.com>
  6075. * remote.c (remote_insert_breakpoint): Call get_remote_state
  6076. after gdbarch_breakpoint_from_pc is called.
  6077. (remote_insert_hw_breakpoint): Likewise.
  6078. 2008-05-06 Joel Brobecker <brobecker@adacore.com>
  6079. * valprint.c (val_print): Add new language parameter and use it
  6080. instead of using the current_language. Update calls to val_print
  6081. throughout.
  6082. (common_val_print): Add new langauge parameter and pass it to
  6083. val_print.
  6084. * value.h (struct language_defn): Add opaque declaration.
  6085. (val_print, common_val_print): Update declarations.
  6086. * stack.c (print_frame_args): Update call to common_val_print
  6087. using the appropriate language.
  6088. * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
  6089. * c-valprint, f-valprint.c, m2-valprint.c, mt-tdep.c, infcmd.c,
  6090. mi/mi-main.c, jv-valprint.c, ada-valprint.c, varobj.c, p-valprint.c,
  6091. scm-valprint.c, cp-valprint.c, sh64-tdep.c, printcmd.c:
  6092. #include "language.h" if necessary.
  6093. Update calls to val_print and common_val_print.
  6094. * Makefile.in (mt-tdep.o, sh64-tdep.o, mi-cmds.o, mi-main.o):
  6095. Update dependencies.
  6096. 2008-05-06 Joel Brobecker <brobecker@adacore.com>
  6097. * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Treat addresses
  6098. pointing inside a non-executable section as function descriptors.
  6099. 2008-05-06 Pedro Alves <pedro@codesourcery.com>
  6100. * inf-loop.c (inferior_event_handler): Run all continuations and
  6101. print any language change before running the breakpoint commands.
  6102. 2008-05-06 Joel Brobecker <brobecker@adacore.com>
  6103. * frame-unwind.c (frame_unwind_got_bytes): New function.
  6104. * frame-unwind.h (frame_unwind_got_bytes): Add declaration.
  6105. * libunwind-frame.h, libunwind-frame.c, ia64-tdep.c: Update
  6106. for unwinder changes.
  6107. 2008-05-05 Doug Evans <dje@google.com>
  6108. * NEWS: Mention new /m modifier for disassemble command.
  6109. * cli/cli-cmds.c (print_disassembly): New function.
  6110. (disassemble_current_function): New function
  6111. (disassemble_command): Recognize /m modifier, print mixed
  6112. source+assembly.
  6113. (init_cli_cmds): Update disassemble help text.
  6114. 2008-05-05 Maxim Grigoriev <maxim2405@gmail.com>
  6115. * xtensa-tdep.c: Update for unwinder changes.
  6116. 2008-05-05 Andreas Schwab <schwab@suse.de>
  6117. Update m68k port for unwinder changes.
  6118. * m68k-tdep.c (m68k_frame_cache): Expect this_frame.
  6119. (m68k_frame_this_id, m68k_frame_prev_register): Update signature.
  6120. (m68k_frame_unwind): Use default_frame_sniffer.
  6121. (m68k_frame_sniffer): Remove.
  6122. (m68k_frame_base_address): Expect this_frame.
  6123. (m68k_dummy_id): Renamed from m68k_unwind_dummy_id. Expect
  6124. this_frame.
  6125. (m68k_gdbarch_init): Use set_gdbarch_dummy_id,
  6126. dwarf2_append_unwinders, and frame_unwind_append_unwinder.
  6127. * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Expect frame_info
  6128. parameter instead of pc value.
  6129. (m68k_linux_get_sigtramp_info, m68k_linux_sigtramp_frame_cache):
  6130. Expect this_frame.
  6131. (m68k_linux_sigtramp_frame_this_id)
  6132. (m68k_linux_sigtramp_frame_prev_register)
  6133. (m68k_linux_sigtramp_frame_sniffer): Update signature.
  6134. (m68k_linux_sigtramp_frame_unwind): Use
  6135. m68k_linux_sigtramp_frame_sniffer.
  6136. (m68k_linux_init_abi): Use frame_unwind_append_unwinder.
  6137. * m68klinux-nat.c (store_register): Fix typo.
  6138. 2008-05-05 Pedro Alves <pedro@codesourcery.com>
  6139. * infcmd.c (step_1): Put thread id on the stack to avoid possible
  6140. NULL dereferencing.
  6141. 2008-05-05 Luis Machado <luisgpm@br.ibm.com>
  6142. * symfile.c (reread_symbols): Update objfile's entry point.
  6143. 2008-05-05 Aleksandar Ristovski <aristovski@qnx.com>
  6144. Joel Brobecker <brobecker@adacore.com>
  6145. * ada-lang.c: Update throughout to use symbol_matches_domain
  6146. instead of matching the symbol domain explictly.
  6147. * dwarf2read.c (add_partial_symbol): Do not add new psym for
  6148. STRUCT_DOMAIN. Make sure you recognize c++ struct and java and ada
  6149. class as typedefs. See lookup_partial_symbol function.
  6150. (new_symbol): Similar to add_partial_symbol, do not create
  6151. symbol for the typedef. See lookup_block_symbol.
  6152. * symtab.c (symbol_matches_domain): New function, takes care
  6153. of dual meaning of STRUCT_DOMAIN symbol for c++, ada and java.
  6154. (lookup_partial_symbol): Use symbol_matches_domain to see if the
  6155. found psym domain matches the given domain.
  6156. (lookup_block_symbol): Likewise.
  6157. 2008-05-05 Vladimir Prus <vladimir@codesourcery.com>
  6158. * top.c (command_line_handler_continuation): Remove.
  6159. (execute_command): Do not install the above.
  6160. 2008-05-05 Vladimir Prus <vladimir@codesourcery.com>
  6161. * inf-loop.c (inferior_event_handler): Call bpstat_do_action,
  6162. and catch all exceptions from it.
  6163. * top.c (command_line_handler_continuation): Don't
  6164. call bpstat_do_action here.
  6165. 2008-05-04 Daniel Jacobowitz <dan@codesourcery.com>
  6166. * dwarf2read.c (struct dwarf2_cu): Add type_hash.
  6167. (struct die_info): Remove type.
  6168. (read_type_die, read_typedef, read_base_type, read_subrange_type)
  6169. (read_structure_type, read_enumeration_type, read_array_type)
  6170. (read_tag_pointer_type, read_tag_ptr_to_member_type)
  6171. (read_tag_reference_type, read_tag_const_type, read_tag_volatile_type)
  6172. (read_tag_string_type, read_subroutine_type, read_set_type)
  6173. (read_unspecified_type): Delete prototypes. Remove check for
  6174. already-loaded type. Return the new type.
  6175. (set_die_type): Return the new type.
  6176. (reset_die_and_siblings_types): Delete.
  6177. (load_comp_unit, load_full_comp_unit): Set type_hash.
  6178. (process_queue): Remove call to reset_die_and_siblings_types.
  6179. (process_die): Do not read most types here. Use read_type_die
  6180. for others.
  6181. (read_func_scope, dwarf2_add_member_fn): Use read_type_die.
  6182. (quirk_gcc_member_function_pointer): Return the new type.
  6183. (process_structure_scope, process_enumeration_scope): Use
  6184. get_die_type and read the DIE's type.
  6185. (read_full_die): Do not initialize die->type.
  6186. (tag_type_to_type): Use read_type_die.
  6187. (read_type_die): Check for already defined types. Return the
  6188. type.
  6189. (determine_prefix): Use get_die_type.
  6190. (set_die_type): Return the type.
  6191. (get_die_type): Take a CU argument. Check for no type_hash.
  6192. 2008-05-04 Daniel Jacobowitz <dan@codesourcery.com>
  6193. * dwarf2read.c (dwarf2_ranges_read, read_partial_die): Initialize
  6194. locals.
  6195. 2008-05-04 Pedro Alves <pedro@codesourcery.com>
  6196. * breakpoint.c (update_breakpoints_after_exec): Delete bp_longjmp
  6197. and bp_longjmp_resume breakpoints.
  6198. (breakpoint_address_is_meaningful): Claim bp_longjmp_resume as
  6199. meaningful.
  6200. (create_longjmp_breakpoint): Don't create bp_longjmp_resume
  6201. breakpoints. Create bp_longjmp breakpoints as momentary
  6202. breakpoints.
  6203. (enable_longjmp_breakpoint): Delete.
  6204. (set_longjmp_breakpoint): New.
  6205. (disable_longjmp_breakpoint): Delete.
  6206. (delete_longjmp_breakpoint): New.
  6207. (set_longjmp_resume_breakpoint): Delete.
  6208. (set_momentary_breakpoint_at_pc): New.
  6209. (breakpoint_re_set_one): Don't delete bp_longjmp and
  6210. bp_longjmp_resume breakpoints.
  6211. (breakpoint_re_set): Don't create longjmp and longjmp-resume
  6212. breakpoints.
  6213. * infrun.c (step_resume_breakpoint): Add comment.
  6214. (struct execution_control_state): Delete handling_longjmp member.
  6215. (init_execution_control_state). Don't clear handling_longjmp.
  6216. (context_switch): Don't context switch handling_longjmp.
  6217. (handle_inferior_event): If handling a bp_longjmp breakpoint,
  6218. create a bp_longjmp_resume breakpoint, and set it as current
  6219. step_resume_breakpoint, then step over the longjmp breakpoint. If
  6220. handling a bp_longjmp_resume breakpoint, don't delete the longjmp
  6221. breakpoint, delete the longjmp-resume breakpoint, and stop
  6222. stepping.
  6223. (currently_stepping): Remove handling_longjmp from expression.
  6224. (insert_step_resume_breakpoint_at_sal): Update comment.
  6225. (insert_longjmp_resume_breakpoint): New.
  6226. * breakpoint.h (set_momentary_breakpoint_at_pc): Declare.
  6227. (enable_longjmp_breakpoint, disable_longjmp_breakpoint): Delete
  6228. declarations.
  6229. (set_longjmp_breakpoint, delete_longjmp_breakpoint): Declare.
  6230. (set_longjmp_resume_breakpoint): Delete declaration.
  6231. * gdbthread.h (save_infrun_state): Remove handling_longjmp
  6232. parameter.
  6233. (load_infrun_state): Delete *handling_longjmp parameter.
  6234. * thread.c (save_infrun_state): Remove handling_longjmp parameter.
  6235. Update body.
  6236. (load_infrun_state): Delete *handling_longjmp parameter. Update
  6237. body.
  6238. * infcmd.c (disable_longjmp_breakpoint_cleanup): Delete.
  6239. (delete_longjmp_breakpoint_cleanup): New.
  6240. (step_1): Call set_longjmp_breakpoint instead of
  6241. enable_longjmp_breakpoint. Use delete_longjmp_breakpoint_cleanup
  6242. instead of disable_longjmp_breakpoint_cleanup when making cleanup.
  6243. (step_1_continuation): Pass thread id in the continuation args to
  6244. step_once.
  6245. (step_once): Add thread parameter. Pass thread id the the
  6246. continuation.
  6247. 2008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
  6248. Set CU BASE_ADDRESS already from partial DIEs.
  6249. * dwarf2read.c (read_partial_die): New variables BASE_ADDRESS and
  6250. BASE_ADDRESS_TYPE. Set these variables from DW_AT_LOW_PC and
  6251. DW_AT_ENTRY_PC. Set CU->HEADER.BASE_KNOWN and CU->HEADER.BASE_ADDRESS
  6252. from these variables if it was still unset.
  6253. * Makefile.in: Update dependencies.
  6254. * dwarf2read.c: Include "addrmap.h"
  6255. (struct dwarf2_cu): New fields RANGES_OFFSET and HAS_RANGES_OFFSET.
  6256. (dwarf2_ranges_read): New prototype.
  6257. (dwarf2_build_psymtabs_hard): Initialize and prepare PSYMTABS_ADDRMAP.
  6258. Add discontiguous range to PSYMTABS_ADDRMAP by DWARF2_RANGES_READ on
  6259. HAS_RANGES_OFFSET, otherwise add there the contiguous range.
  6260. (dwarf2_ranges_read): New parameter RANGES_PST, update the function
  6261. comment for it. Add the found ranges to RANGES_PST. New variable
  6262. BASEADDR, initialize it the common way.
  6263. (dwarf2_get_pc_bounds): Update the caller for the new parameter.
  6264. (read_partial_die): `DW_AT_ranges' now only sets RANGES_OFFSET and
  6265. HAS_RANGES_OFFSET for the later processing.
  6266. * objfiles.h (struct objfile): New field PSYMTABS_ADDRMAP.
  6267. * symtab.c: Include "addrmap.h"
  6268. (find_pc_sect_psymtab): Support reading the field PSYMTABS_ADDRMAP.
  6269. Move the psymtab locator into ...
  6270. (find_pc_sect_psymtab_closer): ... a new function.
  6271. 2008-05-04 Ulrich Weigand <uweigand@de.ibm.com>
  6272. * arch-utils.c (gdbarch_update_p): Use default values for
  6273. info.abfd and info.target_desc if they are NULL.
  6274. (gdbarch_from_bfd): Remove assertion.
  6275. (set_gdbarch_from_file): Call gdbarch_find_by_info directly,
  6276. using the current target description.
  6277. (gdbarch_info_fill): Do not use default values for info->abfd
  6278. and info->target_desc.
  6279. 2008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
  6280. * symfile.c (reread_symbols): Reload EXEC_BFD on its change.
  6281. 2008-05-04 Ulrich Weigand <uweigand@de.ibm.com>
  6282. * inferior.h (read_pc_pid, write_pc_pid): Remove.
  6283. * regcache.h (regcache_read_pc, regcache_write_pc): Add prototypes.
  6284. * regcache.c (read_pc_pid): Remove, replace by ...
  6285. (regcache_read_pc): ... this function.
  6286. (write_pc_pid): Remove, replace by ...
  6287. (regcache_write_pc): ... this function.
  6288. (read_pc, write_pc): Update.
  6289. * infrun.c (displaced_step_prepare): Replace read_pc_pid and
  6290. write_pc_pid by regcache_read_pc and regcache_write_pc.
  6291. (displaced_step_fixup): Likewise.
  6292. (resume): Likewise. Use regcache arch instead of current_gdbarch.
  6293. (prepare_to_proceed): Likewise.
  6294. (proceed): Likewise.
  6295. (adjust_pc_after_break): Likewise.
  6296. (handle_inferior_event): Likewise.
  6297. * linux-nat.c (cancel_breakpoint): Likewise.
  6298. * linux-thread-db.c (check_event): Likewise.
  6299. * aix-thread.c (aix_thread_wait): Likewise.
  6300. * tracepoint.c (trace_dump_command): Likewise.
  6301. 2008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
  6302. * dwarf2loc.c (dwarf_expr_frame_base): Error out on missing
  6303. SYMBOL_LOCATION_BATON.
  6304. 2008-05-04 Vladimir Prus <vladimir@codesourcery.com>
  6305. * target.h (struct target_ops): New field to_auxv_parse.
  6306. * auxv.c (default_auxv_parse): New, renamed from previous
  6307. target_auxv_parse.
  6308. (target_auxv_parse): Try to call target method. Fallback to
  6309. default_auxv_parse if not found.
  6310. * procfs.c (procfs_auxv_parse): New.
  6311. (init_procfs_ops): On Solaris, in 64-bit mode, install
  6312. procfs_auxv_parse.
  6313. 2008-05-03 Adam Nemet <anemet@caviumnetworks.com>
  6314. * symfile.c (add_symbol_file_command): Use paddress rather than
  6315. hex_string to print the address.
  6316. 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
  6317. * rs6000-tdep.c (rs6000_frame_this_id): If info->base is 0,
  6318. return the null frame ID to terminate the backtrace.
  6319. 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
  6320. * rs6000-tdep.c: Do not include "rs6000-tdep.h".
  6321. (rs6000_find_toc_address_hook): Move to rs6000-aix-tdep.c.
  6322. (SIG_FRAME_PC_OFFSET): Likewise.
  6323. (SIG_FRAME_LR_OFFSET): Likewise.
  6324. (SIG_FRAME_FP_OFFSET): Likewise.
  6325. (rs6000_push_dummy_call): Likewise.
  6326. (rs6000_return_value): Likewise.
  6327. (rs6000_convert_from_func_ptr_addr): Likewise.
  6328. (branch_dest, rs6000_software_single_step): Likewise.
  6329. (deal_with_atomic_sequence): Rename to ...
  6330. (ppc_deal_with_atomic_sequence): ... this. Adapt all callers.
  6331. Do not call branch_dest; inline required parts of that function.
  6332. (rs6000_skip_trampoline_code): Replace DEPRECATED_SYMBOL_NAME
  6333. with SYMBOL_LINKAGE_NAME.
  6334. (struct reg, regsize): Delete.
  6335. (read_memory_addr): Delete; inline into callers.
  6336. (rs6000_skip_prologue): Move after skip_prologue.
  6337. (skip_prologue): Remove prototype.
  6338. (rs6000_gdbarch_init): Remove sysv_abi variable; perform all
  6339. initialization as if this variable were true. Do not install
  6340. ppc64_sysv_abi_adjust_breakpoint_address.
  6341. * rs6000-aix-tdep.c: Include "gdb_assert.h", "gdbtypes.h",
  6342. "gdbcore.h", "target.h", "value.h", "infcall.h", "objfiles.h",
  6343. and "breakpoint.h".
  6344. (rs6000_find_toc_address_hook): Move here from rs6000-tdep.c.
  6345. (SIG_FRAME_PC_OFFSET): Likewise.
  6346. (SIG_FRAME_LR_OFFSET): Likewise.
  6347. (SIG_FRAME_FP_OFFSET): Likewise.
  6348. (rs6000_push_dummy_call): Likewise.
  6349. (rs6000_return_value): Likewise.
  6350. (rs6000_convert_from_func_ptr_addr): Likewise.
  6351. (branch_dest, rs6000_software_single_step): Likewise. Replace
  6352. tdep->text_segment_base by AIX_TEXT_SEGMENT_BASE.
  6353. (rs6000_aix_init_osabi): Install rs6000_push_dummy_call,
  6354. rs6000_return_value, and rs6000_convert_from_func_ptr_addr.
  6355. Call set_gdbarch_long_double_bit and set_gdbarch_frame_red_zone_size.
  6356. Set tdep->lr_frame_offset. Do not set tdep->text_segment_base.
  6357. * rs6000-tdep.h (rs6000_software_single_step): Remove prototype.
  6358. (AIX_TEXT_SEGMENT_BASE): New macro.
  6359. * rs6000-nat.c (exec_one_dummy_insn): Replace tdep->text_segment_base
  6360. by AIX_TEXT_SEGMENT_BASE.
  6361. * ppc-tdep.h (ppc_deal_with_atomic_sequence): Add prototype.
  6362. (struct gdbarch_tdep): Remove text_segment_base member.
  6363. * ppc-linux-tdep.c (ppc_linux_init_abi): On 64-bit, install
  6364. ppc64_sysv_abi_adjust_breakpoint_address.
  6365. * Makefile.in (rs6000-tdep.o): Update dependencies.
  6366. (rs6000-aix-tdep.o): Likewise.
  6367. 2008-05-03 Luis Machado <luisgpm@br.ibm.com>
  6368. Thiago Jung Bauermann <bauerman@br.ibm.com>
  6369. * cli/cli-decode.c (lookup_cmd_1): Fix indentation.
  6370. * doublest.c (convert_typed_floating): Fix typo in comment.
  6371. * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
  6372. * frame-unwind.h (frame_sniffer_ftype): Likewise.
  6373. * frame.c (frame_unwind_address_in_block): Likewise.
  6374. * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Likewise.
  6375. * symtab.h (struct symbol): Likewise.
  6376. * tramp-frame.h (struct trad_frame_cache): Likewise.
  6377. * value.c (allocate_repeat_value): Likewise.
  6378. 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
  6379. * infrun.c (handle_inferior_event): Do not insert breakpoints at
  6380. TARGET_WAITKIND_LOADED events during startup (i.e. in the shell).
  6381. 2008-05-03 Pedro Alves <pedro@codesourcery.com>
  6382. * parse.c (parse_exp_in_context): Don't override
  6383. expression_context_pc if get_selected_block returned a valid
  6384. block.
  6385. 2008-05-03 Daniel Jacobowitz <dan@codesourcery.com>
  6386. * alpha-tdep.h (ALPHA_REGISTER_BYTES): Delete.
  6387. * arm-tdep.h (STATUS_REGISTER_SIZE): Delete.
  6388. * breakpoint.c (args_for_catchpoint_enable, current_exception_event):
  6389. Delete.
  6390. * c-typeprint.c (c_type_print_base): Delete handling of template
  6391. instantiations.
  6392. * cp-support.h (METHOD_PTR_IS_VIRTUAL, METHOD_PTR_FROM_VOFFSET)
  6393. (METHOD_PTR_TO_VOFFSET): Delete.
  6394. * defs.h (QUIT_FIXME): Delete.
  6395. * f-lang.h (DEFAULT_DOTMAIN_NAME_IN_MF77, DEFAULT_MAIN_NAME_IN_MF77)
  6396. (DEFAULT_DOTMAIN_NAME_IN_XLF_BUGGY, DEFAULT_DOTMAIN_NAME_IN_XLF): Delete.
  6397. * gdbtypes.h (struct cplus_struct_type): Delete is_inlined,
  6398. ninstantiations, and instantiations.
  6399. (TYPE_INSTANTIATIONS, TYPE_NINSTANTIATIONS, TYPE_INSTANTIATION)
  6400. (TYPE_FN_FIELD_INLINED): Delete.
  6401. * srec.h (SREC_BINARY): Delete.
  6402. * symtab.c (symbol_init_demangled_name): Delete.
  6403. * symtab.h (SYMBOL_INIT_DEMANGLED_NAME, symbol_init_demangled_name)
  6404. (SYMBOL_OBJFILE, struct exception_event_record, CURRENT_EXCEPTION_KIND)
  6405. (CURRENT_EXCEPTION_CATCH_SAL, CURRENT_EXCEPTION_CATCH_LINE)
  6406. (CURRENT_EXCEPTION_CATCH_FILE, CURRENT_EXCEPTION_CATCH_PC)
  6407. (CURRENT_EXCEPTION_THROW_SAL, CURRENT_EXCEPTION_THROW_LINE)
  6408. (CURRENT_EXCEPTION_THROW_FILE, CURRENT_EXCEPTION_THROW_PC): Delete.
  6409. * target.h (enum thread_control_capabilities): Delete tc_switch.
  6410. (target_can_switch_threads): Delete.
  6411. 2008-05-03 Daniel Jacobowitz <dan@codesourcery.com>
  6412. * Makefile.in (objfiles.o): Update.
  6413. * exec.c (exec_set_section_address): Support p->addr != 0.
  6414. * objfiles.c (objfile_relocate): Update exec_ops section
  6415. addresses.
  6416. * symfile.c (place_section): Move exec_set_section_address call...
  6417. (default_symfile_offsets): ...to here.
  6418. 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
  6419. * Makefile.in (ppc_linux_tdep_h): New macro.
  6420. (powerpc_32l_c, powerpc_altivec32_c, powerpc_altivec32l_c): Likewise.
  6421. (powerpc_64l_c, powerpc_altivec64_c, powerpc_altivec64l_c): Likewise.
  6422. (powerpc_e500l_c): Likewise.
  6423. (ppc-linux-nat.o): Update dependencies.
  6424. (ppc-linux-tdep.o): Update dependencies.
  6425. (rs6000-tdep.o): Update dependencies.
  6426. * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Remove.
  6427. (ppc_linux_svr4_fetch_link_map_offsets): Remove.
  6428. (ppc_linux_gregset, ppc_linux_fpregset): Move to ppc-linux-tdep.h
  6429. (ppc_supply_reg, ppc_collect_reg): Add prototypes.
  6430. (tdesc_powerpc_e500): Remove.
  6431. * rs6000.c: Include "features/rs6000/powerpc-altivec32.c"
  6432. and "features/rs6000/powerpc-altivec64.c".
  6433. (ppc_supply_reg, ppc_collect_reg): Make global.
  6434. (variants): Use tdesc_powerpc_32 for "powerpc" and
  6435. tdesc_powerpc_altivec64 for "powerpc64".
  6436. (_initialize_rs6000_tdep): Initialize AltiVec descriptions.
  6437. * ppc-linux-tdep.h: New file.
  6438. * ppc-linux-tdep.c: Include "ppc-linux-tdep.c".
  6439. Include "features/rs6000/powerpc-32l.c".
  6440. Include "features/rs6000/powerpc-altivec32l.c".
  6441. Include "features/rs6000/powerpc-64l.c".
  6442. Include "features/rs6000/powerpc-altivec64l.c".
  6443. Include "features/rs6000/powerpc-e500l.c".
  6444. (ppc_linux_supply_gregset): New function.
  6445. (ppc_linux_collect_gregset): Handle orig_r3 and trap registers.
  6446. (ppc32_linux_gregset): Use ppc_linux_supply_gregset.
  6447. (ppc64_linux_gregset): Likewise.
  6448. (ppc_linux_sigtramp_cache): Handle orig_r3 and trap registers.
  6449. (ppc_linux_trap_reg_p): New function.
  6450. (ppc_linux_write_pc): New function.
  6451. (ppc_linux_core_read_description): New function.
  6452. (ppc_linux_init_abi): Install ppc_linux_write_pc and
  6453. ppc_linux_core_read_description. Install orig_r3 and trap
  6454. registers if present in the target description.
  6455. (_initialize_ppc_linux_tdep): Initialize Linux target descriptions.
  6456. * ppc-linux-nat.c: Include "ppc-linux-tdep.h".
  6457. (PT_ORIG_R3, PT_TRAP): Define if necessary.
  6458. (ppc_register_u_addr): Handle orig_r3 and trap registers.
  6459. (fetch_ppc_registers): Likewise.
  6460. (store_ppc_registers): Likewise.
  6461. (store_register): Likewise.
  6462. (ppc_linux_read_description): Check whether AltiVec is supported.
  6463. Check whether inferior is 32-bit or 64-bit. Return the appropriate
  6464. Linux target description.
  6465. * features/Makefile (WHICH): Use rs6000/powerpc-32l and
  6466. rs6000/powerpc-altivec32l instead of rs6000/powerpc-32.
  6467. Use rs6000/powerpc-64l and rs6000/powerpc-altivec64l instead
  6468. of rs6000/powerpc-64. Use rs6000/powerpc-e500l instead of
  6469. rs6000/powerpc-e500. Update -expedite variables accordingly.
  6470. * features/rs6000/power-spe.xml: Use regnum 73 for "acc".
  6471. * features/rs6000/powerpc-32.xml: Do not include power-altivec.xml.
  6472. * features/rs6000/powerpc-64.xml: Do not include power-altivec.xml.
  6473. * features/rs6000/powerpc-e500.c: Regenerate.
  6474. * features/rs6000/powerpc-32.c: Regenerate.
  6475. * features/rs6000/powerpc-64.c: Regenerate.
  6476. * features/rs6000/power-linux.xml: New file.
  6477. * features/rs6000/power64-linux.xml: New file.
  6478. * features/rs6000/powerpc-32l.xml: New file.
  6479. * features/rs6000/powerpc-altivec32l.xml: New file.
  6480. * features/rs6000/powerpc-64l.xml: New file.
  6481. * features/rs6000/powerpc-altivec64l.xml: New file.
  6482. * features/rs6000/powerpc-e500l.xml: New file.
  6483. * features/rs6000/powerpc-32l.c: New (generated) file.
  6484. * features/rs6000/powerpc-altivec32l.c: New (generated) file.
  6485. * features/rs6000/powerpc-64l.c: New (generated) file.
  6486. * features/rs6000/powerpc-altivec64l.c: New (generated) file.
  6487. * features/rs6000/powerpc-e500l.xml: New (generated) file.
  6488. * regformats/reg-ppc.dat: Remove.
  6489. * regformats/reg-ppc64.dat: Remove.
  6490. * regformats/rs6000/powerpc-32.dat: Remove.
  6491. * regformats/rs6000/powerpc-64.dat: Remove.
  6492. * regformats/rs6000/powerpc-e500.dat: Remove.
  6493. * regformats/rs6000/powerpc-32l.dat: New (generated) file.
  6494. * regformats/rs6000/powerpc-altivec32l.dat: New (generated) file.
  6495. * regformats/rs6000/powerpc-64l.dat: New (generated) file.
  6496. * regformats/rs6000/powerpc-altivec64l.dat: New (generated) file.
  6497. * regformats/rs6000/powerpc-e500l.dat: New (generated) file.
  6498. 2008-05-03 Pedro Alves <pedro@codesourcery.com>
  6499. * thread.c (delete_thread): Call observer_notify_thread_exit.
  6500. * mi/mi-interp.c (mi_interpreter_init): Register mi_thread_exit as
  6501. thread_exit observer.
  6502. (mi_thread_exit): New.
  6503. 2008-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
  6504. * breakpoint.c (create_exception_catchpoint): Remove prototype
  6505. for already deleted function.
  6506. * breakpoint.h (ep_is_exception_catchpoint): Likewise.
  6507. * frame.h (show_stack_frame): Remove prototype.
  6508. * stack.c (show_stack_frame): Remove empty, unused function.
  6509. * source.c (symtab_to_fullname, print_source_lines): Small fix
  6510. in comment.
  6511. * value.c (show_values): Update comments to mention "show values"
  6512. command instead of "info history".
  6513. 2008-05-02 Ulrich Weigand <uweigand@de.ibm.com>
  6514. * linespec.c: Include "target.h".
  6515. (minsym_found): Handle minimal symbols pointing to function
  6516. descriptors. Use find_function_start_pc.
  6517. * minsyms.c (msymbol_objfile): New function.
  6518. * parse.c (write_exp_msymbol): Handle minimal symbols pointing
  6519. to function descriptors.
  6520. * symtab.c (fixup_section): Only use minimal symbol at the same
  6521. address to determine section of a symbol.
  6522. (find_function_start_pc): New function.
  6523. (find_function_start_sal): Use it.
  6524. * symtab.h (msymbol_objfile): Add prototype.
  6525. (find_function_start_pc): Likewise.
  6526. * value.c: Include "objfiles.h".
  6527. (value_fn_field): Handle minimal symbols pointing to function
  6528. descriptors.
  6529. * Makefile.in (linespec.o): Update dependencies.
  6530. (value.o): Likewise.
  6531. 2008-05-02 Joel Brobecker <brobecker@adacore.com>
  6532. * ada-lang.c (unwrap_value): Handle the case where the "F" field
  6533. inside a PAD type is a bitfield.
  6534. 2008-05-02 Ulrich Weigand <uweigand@de.ibm.com>
  6535. * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Handle
  6536. TYPE_CODE_BOOL and TYPE_CODE_CHAR the same as TYPE_CODE_INT.
  6537. Handle TYPE_CODE_REF the same as TYPE_CODE_PTR.
  6538. Handle TYPE_CODE_METHOD the same as TYPE_CODE_FUNC.
  6539. Allow typedefs when checking for function pointer arguments.
  6540. Right-align small structs passed on the stack.
  6541. (ppc64_sysv_abi_return_value): Handle TYPE_CODE_BOOL and
  6542. TYPE_CODE_CHAR the same as TYPE_CODE_INT.
  6543. Handle TYPE_CODE_REF the same as TYPE_CODE_PTR.
  6544. 2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
  6545. * Makefile.in (arm-tdep.o): Update.
  6546. * arm-tdep.c (arm_objfile_data_key, struct arm_mapping_symbol)
  6547. (struct arm_per_objfile, arm_compare_mapping_symbols): New.
  6548. (arm_pc_is_thumb): Use mapping symbols.
  6549. (arm_objfile_data_cleanup, arm_record_special_symbol): New.
  6550. (arm_gdbarch_init): Call set_gdbarch_record_special_symbol.
  6551. (_initialize_arm_tdep): Initialize arm_objfile_data_key.
  6552. * elfread.c (elf_symtab_read): Use gdbarch_record_special_symbol.
  6553. * gdbarch.sh: Add record_special_symbol.
  6554. * gdbarch.c, gdbarch.h: Regenerated.
  6555. * objfiles.c (struct objfile_data): Add cleanup member.
  6556. (register_objfile_data_with_cleanup): New function, from
  6557. register_objfile_data.
  6558. (register_objfile_data): Use it.
  6559. (objfile_free_data): Call clear_objfile_data.
  6560. (clear_objfile_data): Call cleanup functions.
  6561. * objfiles.h (register_objfile_data_with_cleanup): Declare.
  6562. 2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
  6563. * objfiles.c (init_entry_point_info): Handle shared libraries.
  6564. 2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
  6565. * arm-tdep.c (arm_prologue_this_id): Compare pc, not func, to
  6566. lowest_pc.
  6567. 2008-05-02 Jim Blandy <jimb@codesourcery.com>
  6568. Pedro Alves <pedro@codesourcery.com>
  6569. Implement displaced stepping.
  6570. * gdbarch.sh (max_insn_length): New 'variable'.
  6571. (displaced_step_copy, displaced_step_fixup)
  6572. (displaced_step_free_closure, displaced_step_location): New
  6573. functions.
  6574. (struct displaced_step_closure): Add forward declaration.
  6575. * gdbarch.c, gdbarch.h: Regenerated.
  6576. * arch-utils.c: #include "objfiles.h".
  6577. (simple_displaced_step_copy_insn)
  6578. (simple_displaced_step_free_closure)
  6579. (displaced_step_at_entry_point): New functions.
  6580. * arch-utils.h (simple_displaced_step_copy_insn)
  6581. (simple_displaced_step_free_closure)
  6582. (displaced_step_at_entry_point): New prototypes.
  6583. * i386-tdep.c (I386_MAX_INSN_LEN): Rename to...
  6584. (I386_MAX_MATCHED_INSN_LEN): ... this.
  6585. (i386_absolute_jmp_p, i386_absolute_call_p)
  6586. (i386_ret_p, i386_call_p, i386_breakpoint_p, i386_syscall_p)
  6587. (i386_displaced_step_fixup): New functions.
  6588. (struct i386_insn, i386_match_insn): Update.
  6589. (i386_gdbarch_init): Set gdbarch_max_insn_length.
  6590. * i386-tdep.h (I386_MAX_INSN_LEN): New.
  6591. (i386_displaced_step_fixup): New prototype.
  6592. * i386-linux-tdep.c (i386_linux_init_abi): Include "arch-utils.h".
  6593. Register gdbarch_displaced_step_copy,
  6594. gdbarch_displaced_step_fixup, gdbarch_displaced_step_free_closure,
  6595. and gdbarch_displaced_step_location functions.
  6596. * infrun.c (debug_displaced): New variable.
  6597. (show_debug_displaced): New function.
  6598. (struct displaced_step_request): New struct.
  6599. (displaced_step_request_queue, displaced_step_ptid)
  6600. (displaced_step_gdbarch, displaced_step_closure)
  6601. (displaced_step_original, displaced_step_copy)
  6602. (displaced_step_saved_copy, can_use_displaced_stepping): New
  6603. variables.
  6604. (show_can_use_displaced_stepping, use_displaced_stepping)
  6605. (displaced_step_clear, cleanup_displaced_step_closure)
  6606. (displaced_step_dump_bytes, displaced_step_prepare)
  6607. (displaced_step_clear_cleanup, write_memory_ptid)
  6608. (displaced_step_fixup): New functions.
  6609. (resume): Call displaced_step_prepare.
  6610. (proceed): Call read_pc once, and remember the value. If using
  6611. displaced stepping, don't remove breakpoints.
  6612. (handle_inferior_event): Call displaced_step_fixup. Add some
  6613. debugging output. When we try to step over a breakpoint, but get
  6614. a signal to deliver to the thread instead, ensure the step-resume
  6615. breakpoint is actually inserted. If a thread hop is needed, and
  6616. displaced stepping is enabled, don't remove breakpoints.
  6617. (init_wait_for_inferior): Call displaced_step_clear.
  6618. (_initialize_infrun): Add "set debug displaced" command. Add
  6619. "maint set can-use-displaced-stepping" command. Clear
  6620. displaced_step_ptid.
  6621. * inferior.h (debug_displaced): Declare variable.
  6622. (displaced_step_dump_bytes): Declare function.
  6623. * Makefile.in (arch-utils.o, i386-linux-tdep.o): Update
  6624. dependencies.
  6625. 2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
  6626. * arm-tdep.c (arm_mode_strings, arm_fallback_mode_string)
  6627. (arm_force_mode_string, arm_show_fallback_mode)
  6628. (arm_show_force_mode): New.
  6629. (arm_pc_is_thumb): Honor fallback-mode and force-mode. Use
  6630. arm_frame_is_thumb.
  6631. (_initialize_arm_tdep): Add "set arm fallback-mode"
  6632. and "set arm force-mode".
  6633. * NEWS: Document new commands.
  6634. 2008-05-02 Andrew Stubbs <andrew.stubbs@st.com>
  6635. * main.h (batch_silent): Declare.
  6636. * event-top.c: Include main.h.
  6637. (gdb_setup_readline): Remove extern batch_silent declaration.
  6638. * infrun.c (normal_stop): Don't print source location when running in
  6639. --batch-silent mode.
  6640. * Makefile.in (event-top.o): Add main.h dependency.
  6641. 2008-05-02 Andreas Schwab <schwab@suse.de>
  6642. * target.h (struct target_ops): Add
  6643. to_watchpoint_addr_within_range.
  6644. (target_watchpoint_addr_within_range): New function.
  6645. * target.c (update_current_target): Inherit
  6646. to_watchpoint_addr_within_range, defaulting to
  6647. default_watchpoint_addr_within_range.
  6648. (default_watchpoint_addr_within_range): New function.
  6649. (debug_to_watchpoint_addr_within_range): New function.
  6650. (setup_target_debug): Set to_watchpoint_addr_within_range.
  6651. * ppc-linux-nat.c (ppc_linux_watchpoint_addr_within_range):
  6652. New function.
  6653. (_initialize_ppc_linux_nat): Set to_watchpoint_addr_within_range.
  6654. * breakpoint.c (watchpoints_triggered): Use
  6655. target_watchpoint_addr_within_range.
  6656. 2008-05-01 Pedro Alves <pedro@codesourcery.com>
  6657. * configure.tgt: Add i[34567]86-*-dicos* and x86_64-*-dicos*.
  6658. (i[34567]86-*-dicos*, x86_64-*-dicos*):
  6659. Set gdb_osabi to GDB_OSABI_DICOS.
  6660. * defs.h (enum gdb_osabi): Add GDB_OSABI_DICOS.
  6661. * osabi.c (gdb_osabi_name): Add "DICOS".
  6662. * i386-dicos-tdep.c: New file.
  6663. * Makefile.in (ALL_TARGET_OBS): Add i386-dicos-tdep.o.
  6664. (ALLDEPFILES): Add i386-dicos-tdep.c.
  6665. (i386-dicos-tdep.o): New rule.
  6666. 2008-05-01 Pedro Alves <pedro@codesourcery.com>
  6667. * linux-nat.c (linux_nat_switch_fork): Reinit GDB's thread list
  6668. and register the fork's PTID as a thread.
  6669. 2008-05-01 Aleksandar Ristovski <aristovski@qnx.com>
  6670. PR gdb/1665
  6671. * breakpoint.c (create_breakpoint): Add breakpoint_ops argument and
  6672. assign its value to the breakpoint created.
  6673. (create_breakpoints): Add breakpoint_ops argument and pass it
  6674. to create_breakpoint call.
  6675. (break_command_really): Add breakpoint_ops argument and pass/assign
  6676. appropriately.
  6677. (break_command_1): Pass NULL as ops argument.
  6678. (set_breakpoint): Pass NULL as ops argument.
  6679. (print_one_exception_catchpoint): Print <PENDING> if no loc available.
  6680. (handle_gnu_v3_exceptions): Call generic breakpoint code to insert
  6681. catch and throw catchpoints.
  6682. 2008-05-01 Aleksandar Ristovski <aristovski@qnx.com>
  6683. PR gdb/2343
  6684. * corelow.c (core_open): Use gdbarch_target_signal_from_host to
  6685. translate signal numeric value from the target to GDB's enum
  6686. target_signal.
  6687. * gdbarch.c, gdbarch.h: Regenerated.
  6688. * gdbarch.sh: Added two new functions target_signal_from_host and
  6689. target_signal_to_host.
  6690. * target.h (default_target_signal_from_host,
  6691. default_target_signal_to_host): New functions - declarations.
  6692. * signals/signals.c (struct gdbarch): New declaration.
  6693. (default_target_signal_to_host, default_target_signal_from_host): New
  6694. functions.
  6695. 2008-05-01 Daniel Jacobowitz <dan@codesourcery.com>
  6696. Pedro Alves <pedro@codesourcery.com>
  6697. Based on work by Jan Kratochvil <jan.kratochvil@redhat.com> and Jeff
  6698. Johnston <jjohnstn@redhat.com>.
  6699. * NEWS: Mention attach to stopped process fix.
  6700. * infcmd.c (detach_command, disconnect_command): Discard the thread
  6701. list.
  6702. * infrun.c (handle_inferior_event): Do not ignore non-SIGSTOP while
  6703. attaching. Use signal_stop_state.
  6704. (signal_stop_state): Check stop_soon.
  6705. * linux-nat.c (kill_lwp): Declare earlier.
  6706. (pid_is_stopped, linux_nat_post_attach_wait): New.
  6707. (lin_lwp_attach_lwp): Use linux_nat_post_attach_wait. Update
  6708. comments.
  6709. (linux_nat_attach): Use linux_nat_post_attach_wait.
  6710. (detach_callback, linux_nat_detach): Improve handling for signalled
  6711. processes.
  6712. (linux_nat_pid_to_str): Always print out the LWP ID if it differs
  6713. from the process ID.
  6714. * Makefile.in (infcmd.o): Update.
  6715. 2008-05-01 Daniel Jacobowitz <dan@codesourcery.com>
  6716. * arm-linux-tdep.h (ARM_CPSR_REGNUM): Delete definition.
  6717. * arm-tdep.c (arm_frame_is_thumb): New.
  6718. (arm_pc_is_thumb): Clarify comment.
  6719. (thumb_analyze_prologue): Remove PC special case.
  6720. (thumb_scan_prologue): Take a block_addr argument. Use it for
  6721. find_pc_partial_function. Remove unused variables.
  6722. (arm_scan_prologue): Use arm_frame_is_thumb. Use the block address
  6723. for find_pc_partial_function. Remove PC special case.
  6724. (arm_prologue_prev_register): Add special handling for PC and CPSR.
  6725. (arm_dwarf2_prev_register, arm_dwarf2_frame_init_reg): New.
  6726. (arm_get_next_pc): Use arm_frame_is_thumb.
  6727. (arm_write_pc): Use CPSR_T instead of 0x20.
  6728. (arm_gdbarch_init): Call dwarf2_frame_set_init_reg.
  6729. * arm-tdep.h (enum gdb_regnum): Add ARM_CPSR_REGNUM.
  6730. (CPSR_T): Define.
  6731. * dwarf2-frame.c (dwarf2_frame_prev_register): Handle
  6732. DWARF2_FRAME_REG_FN.
  6733. * dwarf2-frame.h (enum dwarf2_frame_reg_rule): Add
  6734. DWARF2_FRAME_REG_FN.
  6735. (struct dwarf2_frame_state_reg): Add FN to loc union.
  6736. 2008-05-01 Nick Roberts <nickrob@snap.net.nz>
  6737. * exec.c (print_section_info): Add missing '\n'.
  6738. 2008-05-01 Vladimir Prus <vladimir@codesourcery.com>
  6739. * thread.c (add_thread): Move observer call to ...
  6740. (add_thread_silent): ... here.
  6741. 2008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
  6742. * rs6000-tdep.c: Update for unwinder changes.
  6743. * ppcobsd-tdep.c: Likewise.
  6744. 2008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
  6745. * s390-tdep.c: Update for unwinder changes.
  6746. 2008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
  6747. * spu-tdep.c: Update for unwinder changes.
  6748. 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
  6749. * hppanbsd-tdep.c, m68kbsd-tdep.c, mn10300-linux-tdep.c,
  6750. ppc-linux-tdep.c, ppcnbsd-tdep.c, sparc-linux-tdep.c,
  6751. sparc64-linux-tdep.c: Update for unwinder changes.
  6752. 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
  6753. * mipsnbsd-tdep.c, mips64obsd-tdep.c, mips-linux-tdep.c: Update
  6754. for unwinder changes.
  6755. * mips-tdep.c: Likewise.
  6756. (mips_stub_frame_cache): Unwind the ABI stack pointer, not the
  6757. raw one.
  6758. 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
  6759. * arm-linux-tdep.c, arm-tdep.c, armobsd-tdep.c: Update for
  6760. unwinder changes.
  6761. 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
  6762. Update i386 and amd64 ports for unwinder changes.
  6763. * amd64-tdep.c (amd64_frame_cache): Expect this_frame.
  6764. (amd64_frame_this_id, amd64_frame_prev_register): Update signature.
  6765. (amd64_frame_unwind): Use default_frame_sniffer.
  6766. (amd64_frame_sniffer): Delete.
  6767. (amd64_sigtramp_frame_cache): Expect this_frame.
  6768. (amd64_sigtramp_frame_this_id, amd64_sigtramp_frame_prev_register)
  6769. (amd64_sigtramp_frame_sniffer): Update signature.
  6770. (amd64_sigtramp_frame_unwind): Add amd64_sigtramp_frame_sniffer.
  6771. (amd64_frame_base_address): Expect this_frame.
  6772. (amd64_dummy_id): Renamed from amd64_unwind_dummy_id. Expect
  6773. this_frame.
  6774. (amd64_init_abi): Use set_gdbarch_dummy_id and
  6775. frame_unwind_append_unwinder.
  6776. * i386-tdep.c (i386_frame_cache): Expect this_frame.
  6777. (i386_frame_this_id, i386_frame_prev_register): Update signature.
  6778. (i386_frame_unwind): Use default_frame_sniffer.
  6779. (i386_frame_sniffer): Delete.
  6780. (i386_sigtramp_frame_cache): Expect this_frame.
  6781. (i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register)
  6782. (i386_sigtramp_frame_sniffer): Update signature.
  6783. (i386_sigtramp_frame_unwind): Use i386_sigtramp_frame_sniffer.
  6784. (i386_frame_base_address): Update signature.
  6785. (i386_dummy_id): Rename from i386_unwind_dummy_id. Expect this_frame.
  6786. (i386_push_dummy_call): Update comment.
  6787. (i386_sigtramp_p, i386_svr4_sigtramp_p, i386_svr4_sigcontext_addr):
  6788. Expect this_frame.
  6789. (i386_gdbarch_init): Use set_gdbarch_dummy_id, dwarf2_append_unwinders,
  6790. and frame_unwind_append_unwinder.
  6791. * amd64-linux-tdep.c, amd64-sol2-tdep.c, amd64fbsd-tdep.c,
  6792. amd64nbsd-tdep.c, amd64obsd-tdep.c, i386-linux-tdep.c,
  6793. i386-nto-tdep.c, i386bsd-tdep.c, i386-sol2-tdep.c, i386obsd-tdep.c,
  6794. i386nbsd-tdep.c: Update for unwinder changes.
  6795. 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
  6796. * trad-frame.c (struct trad_frame_cache): Rename next_frame to this_frame.
  6797. (trad_frame_cache_zalloc, trad_frame_alloc_saved_regs): Expect
  6798. this_frame.
  6799. (trad_frame_get_prev_register, trad_frame_get_register): Update signature.
  6800. * trad-frame.h (trad_frame_cache_zalloc, trad_frame_get_register)
  6801. (trad_frame_alloc_saved_regs, trad_frame_get_prev_register): Update
  6802. signature.
  6803. * tramp-frame.c (tramp_frame_cache, tramp_frame_start): Expect
  6804. this_frame.
  6805. (tramp_frame_this_id, tramp_frame_prev_register, tramp_frame_sniffer):
  6806. Update signature.
  6807. * tramp-frame.h (struct tramp_frame): Update signature of init.
  6808. * Makefile.in (trad-frame.o): Update.
  6809. 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
  6810. * dwarf2-frame.c (read_reg): Expect this_frame in the baton.
  6811. (execute_stack_op): Put this_frame in the baton.
  6812. (execute_cfa_program): Take this_frame.
  6813. (struct dwarf2_frame_ops): Update comment for signal_frame_p.
  6814. (dwarf2_frame_default_init_reg, dwarf2_frame_init_reg)
  6815. (dwarf2_frame_signal_frame_p, dwarf2_frame_cache)
  6816. (dwarf2_frame_this_id): Adjust to work on this_frame.
  6817. (dwarf2_signal_frame_this_id): Delete.
  6818. (dwarf2_frame_prev_register): Update signature. Use new frame
  6819. unwind methods.
  6820. (dwarf2_frame_sniffer): Update signature. Expect this_frame.
  6821. (dwarf2_frame_unwind, dwarf2_signal_frame_unwind): Add
  6822. dwarf2_frame_sniffer.
  6823. (dwarf2_append_unwinders): New.
  6824. (dwarf2_frame_base_address, dwarf2_frame_base_sniffer): Expect
  6825. this_frame.
  6826. * sparc-tdep.c (sparc32_dwarf2_struct_return_p)
  6827. (sparc32_dwarf2_frame_init_reg): Expect this_frame.
  6828. * cris-tdep.c (cris_dwarf2_frame_init_reg): Likewise.
  6829. * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): Likewise.
  6830. * s390-tdep.c (s390_dwarf2_frame_init_reg): Likewise.
  6831. * sh-tdep.c (sh_dwarf2_frame_init_reg): Likewise.
  6832. * sparc64-tdep.c (sparc64_dwarf2_frame_init_reg): Likewise.
  6833. * dwarf2-frame.h (dwarf2_frame_sniffer): Delete declaration.
  6834. (dwarf2_append_unwinders): Declare.
  6835. (dwarf2_frame_base_sniffer): Update declaration.
  6836. * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): Expect
  6837. this_frame.
  6838. 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
  6839. Convert frame unwinders to use the current frame and
  6840. "struct value".
  6841. * frame.c (frame_debug): Make global.
  6842. (get_frame_id): Pass this frame to unwinder routines.
  6843. (frame_pc_unwind): Remove unused unwind->prev_pc support.
  6844. (do_frame_register_read): Do not discard the return value of
  6845. frame_register_read.
  6846. (frame_register_unwind): Remove debug messages. Use
  6847. frame_unwind_register_value.
  6848. (frame_unwind_register_value, get_frame_register_value): New
  6849. functions.
  6850. (create_new_frame, get_frame_base_address, get_frame_locals_address)
  6851. (get_frame_args_address, get_frame_type): Pass this frame to
  6852. unwinder routines.
  6853. (frame_cleanup_after_sniffer, frame_prepare_for_sniffer): New
  6854. functions.
  6855. * frame.h: Update comments.
  6856. (frame_debug, frame_unwind_register_value, get_frame_register_value)
  6857. (frame_prepare_for_sniffer): Declare.
  6858. * frame-unwind.h: Update comments and parameter names.
  6859. (default_frame_sniffer): Declare.
  6860. (frame_prev_register_ftype): Return a struct value *.
  6861. (struct frame_unwind): Remove prev_pc member.
  6862. (frame_unwind_sniffer_ftype, frame_unwind_append_sniffer): Delete.
  6863. (frame_unwind_append_unwinder, frame_unwind_got_optimized)
  6864. (frame_unwind_got_register, frame_unwind_got_memory)
  6865. (frame_unwind_got_constant, frame_unwind_got_address): Declare.
  6866. * frame-base.h: Update comments and parameter names.
  6867. * valops.c (value_fetch_lazy): Use get_frame_register_value. Iterate
  6868. if necessary. Add debugging output.
  6869. * sentinel-frame.c (sentinel_frame_prev_register)
  6870. (sentinel_frame_this_id): Update for new signature.
  6871. (sentinel_frame_prev_pc): Delete.
  6872. (sentinel_frame_unwinder): Remove prev_pc.
  6873. * ia64-tdep.c (ia64_libunwind_frame_unwind): Do not initialize
  6874. prev_pc.
  6875. * libunwind-frame.c (libunwind_frame_unwind): Likewise.
  6876. * frame-unwind.c (struct frame_unwind_table_entry): Remove sniffer.
  6877. (frame_unwind_append_sniffer): Delete.
  6878. (frame_unwind_append_unwinder): New function.
  6879. (frame_unwind_find_by_frame): Take this frame. Only use sniffers
  6880. from unwinders. Use frame_prepare_for_sniffer.
  6881. (default_frame_sniffer, frame_unwind_got_optimized)
  6882. (frame_unwind_got_register, frame_unwind_got_memory)
  6883. (frame_unwind_got_constant, frame_unwind_got_address): New functions.
  6884. * dummy-frame.c (dummy_frame_sniffer): Use gdbarch_dummy_id.
  6885. (dummy_frame_prev_register, dummy_frame_this_id): Update for new
  6886. signature.
  6887. * gdbarch.sh: Replace unwind_dummy_id with dummy_id.
  6888. * gdbarch.c, gdbarch.c: Regenerated.
  6889. * frame-base.c (default_frame_base_address)
  6890. (default_frame_locals_address, default_frame_args_address): Update
  6891. for new signature.
  6892. (frame_base_find_by_frame): Pass this frame to unwinder routines.
  6893. * infcall.c (call_function_by_hand): Update comments.
  6894. * Makefile.in (frame-unwind.o): Update dependencies.
  6895. 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
  6896. * ada-lang.c (ada_value_primitive_packed_val): Only check
  6897. value_lazy for memory lvals.
  6898. * findvar.c (value_of_register_lazy): New function.
  6899. (locate_var_value): Only check value_lazy for memory lvals.
  6900. * valarith.c (value_subscripted_rvalue): Likewise.
  6901. * valops.c (value_fetch_lazy): Handle both memory and register
  6902. lvals.
  6903. (search_struct_field, value_slice): Only check value_lazy for memory
  6904. lvals.
  6905. * value.c (struct value): Update comment for lazy.
  6906. (value_primitive_field): Only check value_lazy for memory lvals.
  6907. * value.h (value_lazy): Update comment.
  6908. (value_of_register_lazy): Declare.
  6909. 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
  6910. * corefile.c (reopen_exec_file): Close any open files.
  6911. 2008-04-29 Joel Brobecker <brobecker@adacore.com>
  6912. * ia64-tdep.c (ia64_memory_remove_breakpoint): Set
  6913. show_memory_breakpoints to 1 while reading the instruction bundle.
  6914. 2008-04-29 Joel Brobecker <brobecker@adacore.com>
  6915. * gdbarch.sh: Document the return_value method. Explain that
  6916. the FUNCTYPE parameter might be NULL.
  6917. * gdbarch.h: Regenerated.
  6918. * sparc-tdep.c (sparc32_push_dummy_code): Do not pass the function
  6919. type when calling using_struct_return, as this is unnecessary
  6920. on this target.
  6921. 2008-04-28 Joel Brobecker <brobecker@adacore.com>
  6922. * terminal.h (create_tty_session): Fix return type.
  6923. 2008-04-26 Vladimir Prus <vladimir@codesourcery.com>
  6924. * mi/mi-interp.c (mi_new_thread): Quote the thread id.
  6925. 2008-04-26 Joel Brobecker <brobecker@adacore.com>
  6926. * breakpoint.c (condition_command, commands_from_control_command)
  6927. (break_command_really): Minor reformatting.
  6928. 2008-04-25 Pedro Alves <pedro@codesourcery.com>
  6929. * dwarf2read.c (dwarf2_const_value): Handle DW_FORM_strp.
  6930. 2008-04-25 Pedro Alves <pedro@codesourcery.com>
  6931. * amd64-tdep.c (amd64_get_longjmp_target): New.
  6932. (amd64_init_abi): Register amd64_get_longjmp_target as
  6933. gdbarch_get_longjmp_target callback.
  6934. * i386-tdep.c (i386_get_longjmp_target): Remove 64-bit handling.
  6935. 2008-04-25 Pedro Alves <pedro@codesourcery.com>
  6936. * breakpoint.h (enum bpstat_what_main_action): Delete
  6937. BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE.
  6938. * breakpoint.c (clrs): Delete.
  6939. (bpstat_what): Update table.
  6940. * infrun.c (handle_inferior_event): Remove
  6941. BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE handling.
  6942. 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
  6943. * mi/mi-cmds.h (mi_cmd_args_ftype): Remove.
  6944. Adjust all prototypes using mi_cmd_args_ftype to use
  6945. mi_cmd_argv_ftype.
  6946. (struct mi_cmd): Remove the args_func field.
  6947. * mi/mi-cmds.c: Don't provide value for the args_func field.
  6948. * mi/mi-main.c (mi_execute_async_cli_command)
  6949. (mi_cmd_exec_run, mi_cmd_exec_next, mi_cmd_exec_next_instruction)
  6950. (mi_cmd_exec_step, mi_cmd_exec_step_instruction)
  6951. (mi_cmd_exec_finish, mi_cmd_exec_until, mi_cmd_exec_return)
  6952. (mi_cmd_exec_continue, mi_cmd_exec_interrupt)
  6953. (mi_cmd_target_download): Adjust.
  6954. (mi_cmd_target_select): Adjust. Pass 0 for from_tty parameter.
  6955. (mi_cmd_execute): Do not check for args_func.
  6956. (mi_execute_async_cli_command): Adjust.
  6957. * mi/mi-parse.c: Don't check for args_func.
  6958. 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
  6959. * breakpoint.c (bpstat_check_location)
  6960. (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions):
  6961. New, extracted from bpstat_stop_status.
  6962. (bpstat_stop_status): Use the above.
  6963. 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
  6964. * mi/mi-main.c (last_async_command): Rename to current_token.
  6965. (previous_async_command): Remove.
  6966. (mi_cmd_gdb_exit): Adjust.
  6967. (mi_cmd_exec_interrupt): Don't dance with previous_async_command.
  6968. (mi_cmd_target_select): Adjust.
  6969. (mi_cmd_execute): Don't set previous_async_command. Free token
  6970. here even in async mode.
  6971. (mi_execute_async_cli_command): Adjust.
  6972. (mi_exec_async_cli_cmd_continuation): Adjust. Do not free the
  6973. token.
  6974. (mi_load_progress): Adjust.
  6975. 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
  6976. * infcmd.c (step_1_continuation): Always disable longjmp
  6977. breakpoint if we're not going to do another step.
  6978. 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
  6979. exec_cleanup murder.
  6980. * breakpoint.c (until_break_command_continuation): Add
  6981. the 'error' parameter. Directly delete the breakoint as
  6982. opposed to running cleanups.
  6983. (until_break_command): Install continuation only
  6984. after starting the target. Don't use exec cleanups,
  6985. use ordinary cleanups. Discard cleanups is successfully
  6986. started the target in async mode.
  6987. (make_cleanup_delete_breakpoint): Remove.
  6988. * breakpoint.h (make_cleanup_delete_breakpoint): Remove
  6989. declaration.
  6990. * defs.h (do_exec_cleanups, make_exec_cleanup): Remove
  6991. declarations.
  6992. (struct continations): Add the 'error' parameter to the
  6993. continuation_hook field.
  6994. (add_continuation, do_all_continuations)
  6995. (add_intermediate_continuation)
  6996. (do_all_intermediate_continuations): Add the 'error' parameter.
  6997. * exceptions.c (throw_exception): Don't call do_exec_cleanups.
  6998. * inf-loop.c (inferior_event_handler): Instead of calling
  6999. discard_all_continuations, use do_all_continuations with 1 as
  7000. 'error' parameter. Pass 0 as 'error' parameter in existing uses
  7001. of discard_all_continuations.
  7002. * infcmd.c (step_1): Do not use exec cleanup. For async case, discard
  7003. cleanups.
  7004. (step_once): Install continuation only after resuming the target.
  7005. (step_1_continuation): Disable longjmp breakpoint on error.
  7006. (finish_command_continuation): Add the error parameter. Delete
  7007. the finish breakpoint directly, do not use cleanups.
  7008. (finish_command): Do not use exec_cleanups. Always setup
  7009. continuation. For sync case, immediately run them.
  7010. (attach_command_continuation): Add the error parameter.
  7011. * infrun.c (fetch_inferior_event): Do not use exec cleanups to
  7012. remove step_resume_breakpoint -- adjust delete it directly.
  7013. * interps.c (interp_set): Adjust call to do_all_continations.
  7014. * mi/mi-interp.c (mi_interpreter_exec_continuation): Do not
  7015. do exec cleanups.
  7016. * mi/mi-main.c (mi_cmd_target_select): Do not do exec
  7017. cleanups.
  7018. (mi_cmd_execute): Do not use exec_cleanup.
  7019. (mi_execute_async_cli_command): Simplify the string concatenation
  7020. logic. Do no use exec cleanup.
  7021. (mi_exec_async_cli_cmd_continuation): New parameter error.
  7022. Free last_async_command.
  7023. * top.c (command_line_handler_continuation): New parameter error.
  7024. * utils.c (exec_cleanup_chain, make_exec_cleanup)
  7025. (do_exec_cleanups): Remove.
  7026. (add_continuation, do_all_continations)
  7027. (add_intermediate_continuation)
  7028. (do_all_intermediate_continuations): New parameter error.
  7029. 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
  7030. * breakpoint.h (bp_location_p): New typedef.
  7031. Register a vector of bp_location_p.
  7032. * breakpoint.c (always_inserted_mode)
  7033. (show_always_inserted_mode): New.
  7034. (unlink_locations_from_global_list): Remove.
  7035. (update_global_location_list)
  7036. (update_global_location_list_nothrow): New.
  7037. (update_watchpoint): Don't free locations.
  7038. (should_insert_location): New.
  7039. (insert_bp_location): Use should_insert_location.
  7040. (insert_breakpoint_locations): Copied from
  7041. insert_breakpoints.
  7042. (insert_breakpoint): Use insert_breakpoint_locations.
  7043. (bpstat_stop_status): Call update_global_location_list
  7044. when disabling breakpoint.
  7045. (allocate_bp_location): Don't add to bp_location_chain.
  7046. (set_raw_breakpoint)
  7047. (create_longjmp_breakpoint, enable_longjmp_breakpoint)
  7048. (disable_longjmp_breakpoint, create_overlay_event_breakpoint)
  7049. (enable_overlay_breakpoints, disable_overlay_breakpoints)
  7050. (set_longjmp_resume_breakpoint)
  7051. (enable_watchpoints_after_interactive_call_stop)
  7052. (disable_watchpoints_before_interactive_call_start)
  7053. (create_internal_breakpoint)
  7054. (create_fork_vfork_event_catchpoint)
  7055. (create_exec_event_catchpoint, set_momentary_breakpoint)
  7056. (create_breakpoints, break_command_1, watch_command_1)
  7057. (create_exception_catchpoint)
  7058. (handle_gnu_v3_exceptions)
  7059. (disable_breakpoint, breakpoint_re_set_one)
  7060. (create_thread_event_breakpoint, create_solib_event_breakpoint)
  7061. (create_ada_exception_breakpoint): : Don't call check_duplicates.
  7062. Call update_global_location_list.
  7063. (delete_breakpoint): Don't remove locations and don't
  7064. try to reinsert them. Call update_global_location_list.
  7065. (update_breakpoint_locations): Likewise.
  7066. (restore_always_inserted_mode): New.
  7067. (update_breakpoints_after_exec): Temporary disable
  7068. always inserted mode.
  7069. * Makefile.in: Update dependencies.
  7070. * infrun.c (proceed): Remove breakpoints while stepping
  7071. over breakpoint.
  7072. (handle_inferior_event): Don't remove or insert
  7073. breakpoints.
  7074. * linux-fork.c (checkpoint_command): Remove breakpoints
  7075. before fork and insert after.
  7076. (linux_fork_context): Remove breakpoints before switch
  7077. and insert after.
  7078. * target.c (target_disconnect, target_detach): Remove
  7079. breakpoints from target.
  7080. 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
  7081. * breakpoint.c (print_one_breakpoint_location): In MI
  7082. mode, report the location string the breakpoint was
  7083. originally created with.
  7084. 2008-04-23 Maxim Grigoriev <maxim2405@gmail.com>
  7085. * Makefile.in (xtensa-tdep.o): Update dependencies.
  7086. * configure.tgt (xtensa*): Update dependencies.
  7087. * xtensa-tdep.c (arreg_number): Renamed from areg_number.
  7088. Local variable areg renamed to arreg.
  7089. (areg_number): New function.
  7090. (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
  7091. (xtensa_extract_return_value, xtensa_store_return_value): areg_number
  7092. replaced by arreg_number.
  7093. (xtensa_windowed_frame_cache, struct xtensa_frame_cache): New comments.
  7094. (xtensa_alloc_frame_cache): Initialize cache->wd.ws.
  7095. (xtensa_scan_prologue): New function.
  7096. (xtensa_frame_cache): New local fp_regnum. Handle separately the case,
  7097. when ENTRY instraction hasn't been executed yet. Get the frame pointer
  7098. value based on prologue analysis. Fix the bugs preventing WS and
  7099. AR4-AR7/A11 registers from getting right values for intermediate frames,
  7100. whose registers have been already spilled.
  7101. (xtensa_frame_prev_register): Fix WS register value. Use are_number
  7102. and arreg_number appropriately.
  7103. (xtensa_gdbarch_init): Set solib_svr4_fetch_link_map_offsets to
  7104. svr4_ilp32_fetch_link_map_offsets.
  7105. 2008-04-23 Andrew Stubbs <andrew.stubbs@st.com>
  7106. * printcmd.c: Define USE_PRINTF_I64 and PRINTF_HAS_LONG_LONG on MinGW.
  7107. (printf_command): Convert %lld to %I64d when USE_PRINTF_I64 set.
  7108. 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
  7109. * acinclude.m4: Add override.m4.
  7110. * configure: Regenerate.
  7111. 2008-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
  7112. * ada-lang.c (get_selections): Variable PROMPT made non-const and
  7113. initialized with a trailing space now. Use PROMPT_ARG of
  7114. COMMAND_LINE_INPUT instead of printing it ourselves.
  7115. 2008-04-22 Joel Brobecker <brobecker@adacore.com>
  7116. * NEWS: Document support for 64-bit core file.
  7117. 2008-04-22 Corinna Vinschen <vinschen@redhat.com>
  7118. * NEWS: Add information on calling convention and new SH CLI options.
  7119. * sh-tdep.c (sh_cc_gcc): New static string.
  7120. (sh_cc_renesas): Ditto.
  7121. (sh_cc_enum): New static string array.
  7122. (sh_active_calling_convention): New static string pointer denoting
  7123. active user chosen ABI.
  7124. (sh_is_renesas_calling_convention): New function to return function
  7125. specific ABI, or user choice if necessary.
  7126. (sh_use_struct_convention): Rename first argument and turn around its
  7127. meaning. Check for renesas ABI and return accordingly.
  7128. (sh_use_struct_convention_nofpu): New function.
  7129. (sh_next_flt_argreg): Get function type as third parameter. Check
  7130. for renesas ABI and choose floating registers accordingly.
  7131. (sh_push_dummy_call_fpu): Check for ABI and choose argument slot and
  7132. struct return slot accordingly.
  7133. (sh_push_dummy_call_nofpu): Ditto.
  7134. (sh_return_value_nofpu): Call sh_use_struct_convention_nofpu from here.
  7135. Evaluate ABI and give to sh_use_struct_convention_nofpu.
  7136. (sh_return_value_fpu): Evaluate ABI and give to
  7137. sh_use_struct_convention.
  7138. (show_sh_command): New function.
  7139. (set_sh_command): Ditto.
  7140. (_initialize_sh_tdep): Initialize `set/show sh calling-convention
  7141. CLI command.
  7142. * gdbarch.sh (return_value): Add func_type argument.
  7143. * gdbarch.c: Regenerate.
  7144. * gdbarch.h: Ditto.
  7145. * eval.c (evaluate_subexp_standard): Rename local variable value_type to
  7146. val_type so as not to collide with value_type function. Call
  7147. using_struct_return with additional function type argument.
  7148. * infcall.c (call_function_by_hand): Call using_struct_return and
  7149. gdbarch_return_value with additional function type argument.
  7150. * infcmd.c (print_return_value): Take addition func_type argument.
  7151. Call gdbarch_return_value with additional function type argument.
  7152. (finish_command_continuation): Call print_return_value with additional
  7153. function type argument.
  7154. (finish_command): Ditto.
  7155. * sparc-tdep.c (sparc32_push_dummy_code): Call using_struct_return with
  7156. additional function type argument.
  7157. * stack.c (return_command): Call using_struct_return and
  7158. gdbarch_return_value with additional function type argument.
  7159. * value.c (using_struct_return): Take additional function type argument.
  7160. * value.h (using_struct_return): Accommodate declaration.
  7161. * alpha-tdep.c (alpha_return_value): Add func_type argument.
  7162. * amd64-tdep.c (amd64_return_value): Ditto.
  7163. * arm-tdep.c (arm_return_value): Ditto.
  7164. * avr-tdep.c (avr_return_value): Ditto.
  7165. * cris-tdep.c (cris_return_value): Ditto.
  7166. * frv-tdep.c (frv_return_value): Ditto.
  7167. * h8300-tdep.c (h8300_return_value): Ditto.
  7168. (h8300h_return_value): Ditto.
  7169. * hppa-tdep.c (hppa32_return_value): Ditto.
  7170. (hppa64_return_value): Ditto.
  7171. * i386-tdep.c (i386_return_value): Ditto.
  7172. * ia64-tdep.c (ia64_return_value): Ditto.
  7173. * iq2000-tdep.c (iq2000_return_value): Ditto.
  7174. * m32c-tdep.c (m32c_return_value): Ditto.
  7175. * m32r-tdep.c (m32r_return_value): Ditto.
  7176. * m68hc11-tdep.c (m68hc11_return_value): Ditto.
  7177. * m68k-tdep.c (m68k_return_value): Ditto.
  7178. (m68k_svr4_return_value): Ditto.
  7179. * m88k-tdep.c (m88k_return_value): Ditto.
  7180. * mep-tdep.c (mep_return_value): Ditto.
  7181. * mips-tdep.c (mips_eabi_return_value): Ditto.
  7182. (mips_n32n64_return_value): Ditto.
  7183. (mips_o32_return_value): Ditto.
  7184. (mips_o64_return_value): Ditto.
  7185. * mn10300-tdep.c (mn10300_return_value): Ditto.
  7186. * mt-tdep.c (mt_return_value): Ditto.
  7187. * ppc-linux-tdep.c (ppc_linux_return_value): Ditto.
  7188. * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Ditto.
  7189. (ppc_sysv_abi_broken_return_value): Ditto.
  7190. (ppc64_sysv_abi_return_value): Ditto.
  7191. * ppc-tdep.h (ppc_sysv_abi_return_value): Ditto.
  7192. (ppc_sysv_abi_broken_return_value): Ditto.
  7193. (ppc64_sysv_abi_return_value): Ditto.
  7194. * ppcnbsd-tdep.c (ppcnbsd_return_value): Ditto.
  7195. * rs6000-tdep.c (rs6000_return_value): Ditto.
  7196. * s390-tdep.c (s390_return_value): Ditto.
  7197. * score-tdep.c (score_return_value): Ditto.
  7198. * sh-tdep.c (sh_return_value_nofpu): Ditto.
  7199. (sh_return_value_fpu): Ditto.
  7200. * sh64-tdep.c (sh64_return_value): Ditto.
  7201. * sparc-tdep.c (sparc32_return_value): Ditto.
  7202. * sparc64-tdep.c (sparc64_return_value): Ditto.
  7203. * spu-tdep.c (spu_return_value): Ditto.
  7204. * v850-tdep.c (v850_return_value): Ditto.
  7205. * vax-tdep.c (vax_return_value): Ditto.
  7206. * xstormy16-tdep.c (xstormy16_return_value): Ditto.
  7207. * xtensa-tdep.c (xtensa_return_value): Ditto.
  7208. * gdbtypes.h (struct type): Add calling_convention member.
  7209. * dwarf2read.c (read_subroutine_type): Add calling convention read
  7210. from DW_AT_calling_convention attribute to function type.
  7211. 2008-04-22 Markus Deuling <deuling@de.ibm.com>
  7212. * eval.c (evaluate_subexp_standard): Use value_subscripted_rvalue for
  7213. multi_f77_subscript to support values from registers.
  7214. * valarith.c (value_subscripted_rvalue): Remove prototype and static.
  7215. * value.h (value_subscripted_rvalue): Add prototype.
  7216. * f-typeprint.c (f_type_print_base): Add support for TYPE_CODE_UNION.
  7217. Fix output.
  7218. * f-valprint.c (f_val_print): Likewise.
  7219. 2008-04-21 Craig Silverstein <csilvers@google.com>
  7220. * dwarf2read.c (zlib_decompress_section): Define abfd in the
  7221. !HAVE_ZLIB_H case.
  7222. 2008-04-21 Pedro Alves <pedro@codesourcery.com>
  7223. * symfile.c (syms_from_objfile): Don't warn if lowest loadable
  7224. section is not a code section.
  7225. 2008-04-19 Craig Silverstein <csilvers@google.com>
  7226. * NEWS: Add information on compressed debug sections.
  7227. 2008-04-19 Vladimir Prus <vladimir@codesourcery.com>
  7228. * mi/mi-cmd-var.c (varobj_update_one): Print new
  7229. value for variable objects that changed type.
  7230. 2008-04-19 Vladimir Prus <vladimir@codesourcery.com>
  7231. * varobj.c (varobj_invalidate): Don't touch floating
  7232. varobjs.
  7233. 2008-04-19 Mark Kettenis <kettenis@gnu.org>
  7234. * symtab.c: (multiple_symbols_modes, multiple_symbols_ask)
  7235. (multiple_symbols_cancel): Remove extra const.
  7236. * symtab.h: Likewise.
  7237. 2008-04-19 Nick Roberts <nickrob@snap.net.nz>
  7238. * interps.c (top_level_interpreter): Rename static variable...
  7239. (top_level_interpreter_ptr): ...to this.
  7240. (top_level_interpreter): New function.
  7241. * interps.h: New extern for top_level_interpreter.
  7242. * linespec.c: Include interps.h and mi/mi-cmds.h.
  7243. (decode_line_2): When using MI, always set all breakpoints in menu.
  7244. * Makefile.in (linespec.o, mi-interp.o): Add dependencies.
  7245. 2008-04-18 Craig Silverstein <csilvers@google.com>
  7246. * configure.ac (AC_SEARCH_LIBS): Add check for zlib.
  7247. * config.in, configure: Regenerate.
  7248. * dwarf2read.c: Include zlib.h if present.
  7249. Modified *_SECTION macros.
  7250. (section_is_p): New.
  7251. (dwarf2_locate_sections): Use section_is_p instead of strcmp
  7252. (dwarf2_resize_section): New.
  7253. to determine whether a given section has a given name.
  7254. (zlib_decompress_section): New.
  7255. (dwarf2_read_section): Read the compressed section if present
  7256. in the binary.
  7257. * MAINTAINERS: Added myself to section Write After Approval.
  7258. 2008-04-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
  7259. * defs.h (exec_set_section_offsets): Remove prototype.
  7260. * exec.c (exec_set_section_offsets): Remove function.
  7261. 2008-04-18 Joel Brobecker <brobecker@adacore.com>
  7262. * stabsread.c (cleanup_undefined_types_1): Add instance flags check
  7263. in the search for the matching symbol.
  7264. 2008-04-17 Marc Khouzam <marc.khouzam@ericsson.com>
  7265. * breakpoint.c (update_watchpoint): Always reparse
  7266. condition.
  7267. 2008-04-17 Joel Brobecker <brobecker@adacore.com>
  7268. * breakpoint.c (print_one_breakpoint_location): Make sure to print
  7269. the breakpoint address only once.
  7270. 2008-04-17 Dennis Roberts <dennis.roberts@sunquestinfo.com>
  7271. * rs6000-tdep.c (rs6000_gdbarch_init): Use the BFD architecture,
  7272. rather than a hard-coded architecture, for xcoff executables.
  7273. 2008-04-17 Doug Evans <dje@google.com>
  7274. * buildsym.c (watch_main_source_file_lossage): New fn.
  7275. (end_symtab): Call it.
  7276. * source.c (find_and_open_source): Add some comments clarifying
  7277. handling of FULLNAME argument. Make static. Remove pointless
  7278. xstrdup/xfree.
  7279. 2008-04-17 Pedro Alves <pedro@codesourcery.com>
  7280. * inf-loop.c (inferior_event_handler): Also run the intermediate
  7281. continuations in the INF_EXEC_COMPLETE case.
  7282. 2008-04-16 Tom Tromey <tromey@redhat.com>
  7283. * cli/cli-decode.h (CMD_ASYNC_OK): New define.
  7284. (set_cmd_async_ok, get_cmd_async_ok): Declare.
  7285. * cli/cli-decode.c (set_cmd_async_ok): New function.
  7286. (get_cmd_async_ok): New function.
  7287. * cli/cli-cmds.c (init_cli_cmds): Mark "pwd", "help", "info", and
  7288. "show" as async-ok.
  7289. * top.c (execute_command): Use get_cmd_async_ok.
  7290. * infcmd.c: Include cli/cli-decode.h.
  7291. (_initialize_infcmd): Mark "interrupt" as async-ok.
  7292. * Makefile.in (infcmd.o): Depend on cli_decode_h.
  7293. 2008-04-16 Daniel Jacobowitz <dan@codesourcery.com>
  7294. PR gdb/2445
  7295. * exec.c: Correct "arch-utils.h" include.
  7296. 2008-04-15 Aleksandar Ristovski <aristovski@qnx.com>
  7297. PR gdb/2424
  7298. * infrun.c (normal_stop) Move breakpoint_auto_delete further down
  7299. to allow printing to 'see' real reason of stop. This fixes PR 2424.
  7300. * breakpoint.c (bpdisp_texst): New function. The function takes over
  7301. the role of bpstats static array in print_one_breakpoint_location.
  7302. (print_it_typical): Print "Temporary breakpoint" instead
  7303. of just "Breakpoint" when breakpoint is, well, temporary. For mi-like
  7304. protocols, print disp field.
  7305. (print_one_breakpoint_location): Removed bpdisps static definition.
  7306. Call new bpstat_text function to get value for 'disp' field.
  7307. (mention): Print "Temporary breakpoint" instead of just "Breakpoint".
  7308. 2008-04-15 Daniel Jacobowitz <dan@codesourcery.com>
  7309. * gnulib/Makefile.am, gnulib/m4/gnulib-cache.m4,
  7310. gnulib/aux/link-warning.h, gnulib/extra/link-warning.h: Adjust
  7311. by rerunning gnulib-tool with --aux-dir=gnulib/extra.
  7312. * gnulib/Makefile.in: Regenerate.
  7313. 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
  7314. * Makefile.in (GNULIB_H): New. Trigger all-lib.
  7315. (defs_h): Use $(GNULIB_H).
  7316. (all-lib): Depend on gnulib/Makefile.
  7317. (gnulib/Makefile): Regenerate gnulib/Makefile and gnulib/.deps.
  7318. * config.in, gnulib/Makefile.in: Regenerated.
  7319. 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
  7320. * Makefile.in (LIBGNU, INCGNU): Define.
  7321. (INTERNAL_CFLAGS_BASE): Add INCGNU.
  7322. (INTERNAL_LIBS, CLIBS, CDEPS): Add LIBGNU.
  7323. (CLEANDIRS): New.
  7324. ($(LIBGNU), all-lib): New rules.
  7325. (clean, distclean, do-maintainer-clean): Use CLEANDIRS.
  7326. * configure.ac: Use gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE.
  7327. Simplify AC_CONFIG_AUX_DIR. Generate gnulib/Makefile.
  7328. * gnulib: New directory, from gnulib-tool.
  7329. * configure, aclocal.m4: Regenerated.
  7330. 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
  7331. * linux-thread-db.c (have_threads_callback): Check thread->private.
  7332. 2008-04-13 Nick Roberts <nickrob@snap.net.nz>
  7333. Vladimir Prus <vladimir@codesourcery.com>
  7334. Fix @-varobjs.
  7335. * varobj.c (value_of_root): Update the expression for
  7336. floating varobjs.
  7337. * mi/mi-cmd-var.c (varobj_update_one): If type has changed,
  7338. report that.
  7339. 2008-04-09 Marc Khouzam <marc.khouzam@ericsson.com>
  7340. * mi/mi-cmd-var.c: Include "mi-getopt.h".
  7341. (mi_parse_format): New. Factored out from mi_cmd_var_set_format.
  7342. (mi_cmd_var_set_format): Use new mi_parse_format.
  7343. (mi_cmd_var_evaluate_expression): Support for -f option to specify
  7344. format.
  7345. * Makefile.in (mi-cmd-var.o): Update dependencies.
  7346. * varobj.h (varobj_get_formatted_value): Declare.
  7347. * varobj.c (my_value_of_variable): Added format parameter.
  7348. (cplus_value_of_variable): Likewise.
  7349. (java_value_of_variable): Likewise.
  7350. (c_value_of_variable): Likewise. Evaluate expression based
  7351. on format parameter.
  7352. (struct language_specific): Add format parameter to function member
  7353. *value_of_variable.
  7354. (varobj_get_formatted_value): New.
  7355. (varobj_get_value): Added format parameter to method call.
  7356. 2008-04-08 Joel Brobecker <brobecker@adacore.com>
  7357. * stabsread.c (cleanup_undefined_types_noname): Manually set the
  7358. instance flags of the undefined type before calling replace_type.
  7359. 2008-04-08 Vladimir Prus <vladimir@codesourcery.com>
  7360. * target.h (enum strata): Remove the download_stratum.
  7361. 2008-04-07 Doug Evans <dje@google.com>
  7362. * buildsym.h (last_source_file): Add dwarf info to comment.
  7363. (last_source_start_addr): Ditto.
  7364. 2008-04-07 Pedro Alves <pedro@codesourcery.com>
  7365. * alphanbsd-tdep.c: Include "target.h".
  7366. * mn10300-tdep.c: Include "target.h".
  7367. * Makefile.in (alphanbsd-tdep.o, mn10300-tdep.o): Update.
  7368. 2008-04-06 Vladimir Prus <vladimir@codesourcery.com>
  7369. Fix breakpoint condition that use member variables.
  7370. * valops.c (check_field): Remove.
  7371. (check_field_in): Rename to check_field.
  7372. (value_of_this): Use la_name_of_this.
  7373. * value.h (check_field): Adjust prototype.
  7374. * language.h (la_value_of_this): Rename to la_name_of_this.
  7375. * language.c (unknown_language_defn): Specify "this" for
  7376. name_of_this.
  7377. (auto_language_defn): Likewise.
  7378. (local_language_defn): Likewise.
  7379. * ada-lang.c (ada_language_defn): Adjust comment.
  7380. * c-lang.c (c_language_defn): Adjust comment.
  7381. (cplus_language_defn): Specify "this" for name_of_this.
  7382. (asm_language_defn): Adjust comment.
  7383. (minimal_language_defn): Adjust comment.
  7384. * f-lang.c (f_language_defn): Specify NULL for name_of_this.
  7385. * jv-lang.c (java_language_defn): Specify "this" for name_of_this.
  7386. * m2-lang.c (m2_language_defn): Specify "this" for name_of_this.
  7387. * objc-lang.c (objc_language_defn): Specify "self" for
  7388. name_of_this.
  7389. * p-lang.c (pascal_language_defn): Specify "this" for
  7390. name_of_this.
  7391. * scm-lang.c (scm_language_defn): Specify NULL for name_of_this.
  7392. * symtab.c (lookup_symbol_aux): Lookup "this" in the
  7393. proper scope, and check for field in type of "this", without
  7394. trying to create a value.
  7395. 2008-04-04 Pedro Alves <pedro@codesourcery.com>
  7396. * mi/mi-cmds.h (enum mi_cmd_result): Delete MI_CMD_ERROR.
  7397. (mi_error_message): Delete declaration.
  7398. * mi/mi-interp.c (mi_cmd_interpreter_exec): Call error instead of
  7399. returning MI_CMD_ERROR.
  7400. * mi/mi-main.c (mi_error_message): Delete.
  7401. (mi_cmd_exec_interrupt):
  7402. (mi_cmd_thread_select, mi_cmd_thread_list_ids)
  7403. (mi_cmd_thread_info): Call error instead of returning
  7404. MI_CMD_ERROR.
  7405. (mi_cmd_data_list_register_values): Call error instead of
  7406. returning MI_CMD_ERROR. Adapt to new get_register interface.
  7407. (get_register): Change return typo to void. Call error instead of
  7408. returning MI_CMD_ERROR.
  7409. (mi_cmd_data_write_register_values): Call error instead of
  7410. returning MI_CMD_ERROR.
  7411. (mi_cmd_list_features): Return MI_CMD_DONE.
  7412. (captured_mi_execute_command): Remove MI_CMD_ERROR handling.
  7413. (mi_execute_command): Always print exceptions with -error.
  7414. 2008-04-04 Joel Brobecker <brobecker@adacore.com>
  7415. * NEWS: Mention new commands set/show multiple-symbols.
  7416. 2008-04-03 Joel Brobecker <brobecker@adacore.com>
  7417. * symtab.c (multiple_symbols_ask, multiple_symbols_all)
  7418. (multiple_symbols_cancel): New constants.
  7419. (multiple_symbols_modes, multiple_symbols_mode): New static globals.
  7420. (multiple_symbols_select_mode): New function.
  7421. (_initialize_symtab): Add new set/show multiple-symbols commands.
  7422. * symtab.h (multiple_symbols_ask, multiple_symbols_all)
  7423. (multiple_symbols_cancel, multiple_symbols_select_mode): Declare.
  7424. * ada-lang.c (user_select_syms): Add handling of new multiple-symbols
  7425. setting.
  7426. * linespec.c (decode_line_2): Likewise.
  7427. 2008-04-03 Doug Evans <dje@sebabeach.org>
  7428. * symtab.h (enum free_code): Delete free_contents, unused.
  7429. * symmisc.c (free_symtab_block): Delete.
  7430. (free_symtab, case free_code): Delete.
  7431. 2008-04-01 Aleksandar Ristovski <aristovski@qnx.com>
  7432. * valops.c (value_cast_structs): New function. Cast related
  7433. STRUCT types up/down and return cast value. The body of this
  7434. function comes mostly from value_cast_pointers.
  7435. (value_cast_pointers): Code for actual cast STRUCT-STRUCT moved
  7436. to value_cast_structs. Now value_cast_pointers needs only create
  7437. appropriate reference after using value_cast_structs for actual
  7438. casting.
  7439. (value_cast): Handle references.
  7440. 2008-04-01 Marc Khouzam <marc.khouzam@ericsson.com>
  7441. * MAINTAINERS: Added myself to section Write After Approval.
  7442. 2008-03-30 Daniel Jacobowitz <dan@codesourcery.com>
  7443. * ia64-tdep.c (examine_prologue): Correct array access.
  7444. 2008-03-28 Aleksandar Ristovski <aristovski@qnx.com>
  7445. * cp-support.c (first_component_command): Return if no arguments.
  7446. 2008-03-28 Carlos O'Donell <carlos@codesourcery.com>
  7447. * ser-mingw.c (ser_windows_open): Open requested name.
  7448. 2008-03-28 Aleksandar Ristovski <aristovski@qnx.com>
  7449. * MAINTAINERS: Added myself.
  7450. 2008-03-28 Pedro Alves <pedro@codesourcery.com>
  7451. * target.c (find_default_run_target): Allow a NULL `do_mesg'
  7452. parameter. If it is NULL, don't call error.
  7453. (find_default_can_async_p, find_default_is_async_p): Pass NULL as
  7454. `do_mesg' parameter to find_default_run_target. If no target was
  7455. found, return 0.
  7456. 2008-03-28 Daniel Jacobowitz <dan@codesourcery.com>
  7457. * mips-linux-tdep.c: Update N32/N64 signal frame comments.
  7458. (N64_SIGCONTEXT_LO, N64_SIGCONTEXT_PC, N64_SIGCONTEXT_FPCSR): Update.
  7459. (N64_SIGCONTEXT_FIR, N64_SIGCONTEXT_CAUSE, N64_SIGCONTEXT_BADVADDR):
  7460. Delete.
  7461. (mips_linux_n32n64_sigframe_init): Do not record cause or badvaddr.
  7462. 2008-03-27 Joel Brobecker <brobecker@adacore.com>
  7463. GDB 6.8 released.
  7464. 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
  7465. * features/Makefile (%.dat): Set xmltarget to the base filename
  7466. of the XML source, without subdirectory.
  7467. * regformats/rs6000/powerpc-32.dat: Regenerate.
  7468. * regformats/rs6000/powerpc-64.dat: Regenerate.
  7469. * regformats/rs6000/powerpc-e500.dat: Regenerate.
  7470. 2008-03-27 Markus Deuling <deuling@de.ibm.com>
  7471. * xcoffread.c (scan_xcoff_symtab): Replace current_gdbarch by
  7472. objfile arch.
  7473. 2008-03-27 Nick Roberts <nickrob@snap.net.nz>
  7474. * mi/mi-main.c (enum captured_mi_execute_command_actions):
  7475. Spell suppress in EXECUTE_COMMAND_SUPPRESS_PROMPT correctly.
  7476. 2008-03-26 Ulrich Weigand <uweigand@de.ibm.com>
  7477. * objfiles.h (struct objfile): New GDBARCH member.
  7478. (get_objfile_arch): Add prototype.
  7479. * objfiles.c: Include "arch-utils.h".
  7480. (allocate_objfile): Look up gdbarch associated with bfd.
  7481. (get_objfile_arch): New function.
  7482. * Makefile (objfiles.o): Update dependencies.
  7483. * dwarf2-frame.c (decode_frame_entry_1): Replace current_gdbarch
  7484. by objfile arch.
  7485. * dwarf2loc.c (dwarf_expr_read_reg): Replace current_gdbarch
  7486. by frame arch.
  7487. (locexpr_describe_location): Replace current_gdbarch by
  7488. objfile arch.
  7489. * dwarf2read.c (die_type): Replace current_gdbarch by objfile arch.
  7490. (dwarf2_add_field): Likewise.
  7491. (read_tag_pointer_type): Likewise.
  7492. (read_base_type): Likewise.
  7493. (new_symbol): Likewise.
  7494. * coffread.c (decode_type): Add OBJFILE argument. Update callers.
  7495. (decode_base_type, decode_function_type): Likewise.
  7496. (coff_read_struct_type, coff_read_enum_type): Likewise.
  7497. (coff_symtab_read): Replace current_gdbarch by objfile arch.
  7498. (decode_base_type): Likewise.
  7499. (coff_read_enum_type): Likewise.
  7500. (coff_read_struct_type): Replace current_objfile by OBJFILE argument.
  7501. (coff_read_enum_type): Likewise.
  7502. * dbxread.c (read_dbx_symtab): Replace current_gdbarch by objfile arch.
  7503. (end_psymtab): Likewise.
  7504. (process_one_symbol): Likewise.
  7505. * mdebugread.c (parse_symbol): Replace current_gdbarch by objfile arch.
  7506. (parse_procedure): Likewise.
  7507. (parse_partial_symbols): Likewise.
  7508. * somread.c (som_symtab_read): Replace current_gdbarch by objfile arch.
  7509. * stabsread.c (define_symbol): Replace current_gdbarch by objfile arch.
  7510. Replace static pcc_promotion_type and pcc_unsigned_promotion_type by
  7511. built-in types.
  7512. (read_range_type): Replace current_gdbarch by objfile arch. Replace
  7513. static range_index_type by built-in type.
  7514. (read_one_struct_field): Replace current_gdbarch by objfile arch.
  7515. (read_enum_type): Likewise.
  7516. * xcoffread.c (read_xcoff_symtab): Replace current_gdbarch by
  7517. objfile arch.
  7518. 2008-03-26 Vladimir Prus <vladimir@codesourcery.com>
  7519. * varobj.h (varobj_floating_p): Declare.
  7520. * varobj.c (varobj_floating_p): New.
  7521. * mi/mi-cmd-var.c (mi_cmd_var_update): When passed
  7522. '@' as the name, update all floating varobjs.
  7523. 2008-03-26 Vladimir Prus <vladimir@codesourcery.com>
  7524. * varobj.c (struct varobj_root): Rename use_selected_frame to
  7525. floating, and clarify the meaning.
  7526. (varobj_create, varobj_update, new_root_variable): Adjust.
  7527. (value_of_root): Don't use type_changed as in variable,
  7528. adjust comment.
  7529. (c_value_of_root): Adjust.
  7530. 2008-03-25 Pedro Alves <pedro@codesourcery.com>
  7531. * linux-nat.c (linux_nat_attach): Add the pid we attached to, to
  7532. gdb's thread list.
  7533. (linux_nat_wait): Add main lwp to gdb's thread list.
  7534. * linux-thread-db.c (find_new_threads_callback): Also attach to
  7535. already listed threads which thread_db didn't know about yet.
  7536. 2008-03-25 Pedro Alves <pedro@codesourcery.com>
  7537. * linux-nat.c (drain_queued_events): Fix comment typo.
  7538. (linux_nat_attach): In async mode, don't rely on storing a pending
  7539. status. Instead place the wait status on the pipe.
  7540. (linux_nat_resume): Remove unreacheable shortcut code in async
  7541. mode.
  7542. (stop_wait_callback): In async mode, don't store pending status.
  7543. Instead, cancel breakpoints or resend the signal appropriatelly.
  7544. (cancel_breakpoint): New, refactored from
  7545. cancel_breakpoints_callback.
  7546. (cancel_breakpoints_callback): Call cancel_breakpoint.
  7547. (pipe_to_local_event_queue): Remove special token processing.
  7548. (linux_nat_wait): Issue an internal error if a pending status is
  7549. found in async mode.
  7550. 2008-03-24 Daniel Jacobowitz <dan@codesourcery.com>
  7551. * inflow.c (gdb_has_a_terminal): Guard access to our_process_group.
  7552. 2008-03-24 Nick Roberts <nickrob@snap.net.nz>
  7553. Vladimir Prus <vladimir@codesourcery.com>
  7554. * varobj.c (struct varobj_root): New component thread_id.
  7555. (varobj_get_thread_id, check_scope): New functions.
  7556. (c_value_of_root): Use check_scope. Switch to the
  7557. proper thread if necessary.
  7558. * varobj.h (varobj_get_thread_id): New extern.
  7559. * mi/mi-cmd-var.c (print_varobj): Add thread-id field.
  7560. 2008-03-23 Daniel Jacobowitz <dan@codesourcery.com>
  7561. PR gdb/544
  7562. * top.c: Revert 2008-03-21 changes.
  7563. 2008-03-23 Vladimir Prus <vladimir@codesourcery.com>
  7564. * thread.c (make_cleanup_restore_current_thread): Make it
  7565. globally visible.
  7566. * gdbthread.h (make_cleanup_restore_current_thread): Declare.
  7567. * varobj.c (varobj_update): Don't save/restore frame.
  7568. (c_value_of_root): Save/restore thread and frame here,
  7569. using make_cleanup_restore_current_thread.
  7570. * Makefile.in: Update dependecies.
  7571. 2008-03-23 Vladimir Prus <vladimir@codesourcery.com>
  7572. * varobj.c (struct varobj_root): Clarify
  7573. comment on the frame field.
  7574. (varobj_create): Don't set frame if we have no
  7575. block.
  7576. 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
  7577. PR gdb/544
  7578. Suggested by Jan Kratochvil:
  7579. * top.c (gdb_rl_operate_and_get_next_completion): Call
  7580. rl_redisplay_function.
  7581. (gdb_rl_redisplay): New.
  7582. (init_main): Set rl_redisplay_function.
  7583. 2008-03-21 Thomas Mittelstaedt <T.Mittelstaedt@cadenas.de> (tiny change)
  7584. * aix-thread.c (pdc_read_regs): Fix compiler warning.
  7585. (pdc_write_regs, aix_thread_resume, fetch_regs_kernel_thread)
  7586. (store_regs_kernel_thread): Likewise.
  7587. 2008-03-21 Pedro Alves <pedro@codesourcery.com>
  7588. Linux native async support.
  7589. * target.h (struct target_ops): Delete to_async_mask_value and add
  7590. to_async_mask.
  7591. (target_is_async_p, target_async): Formatting.
  7592. (target_async_mask_value): Delete.
  7593. (target_async_mask): Delete function declaration, and add new
  7594. target macro with the same name.
  7595. * target.c (update_current_target): Replace to_async_mask_value by
  7596. to_async_mask. Default to_async_mask to return_one.
  7597. (target_async_mask): Delete.
  7598. (find_default_can_async_p, find_default_is_async_p): New.
  7599. (init_dummy_target): register find_default_can_async_p and
  7600. find_default_is_async_p on the dummy target.
  7601. * linux-nat.c: Include inf-loop.h, event-loop.h and event-top.h.
  7602. (debug_linux_nat_async): New global.
  7603. (show_debug_linux_nat_async): New function.
  7604. (linux_nat_async_enabled, linux_nat_async_mask_value)
  7605. (linux_nat_event_pipe, linux_nat_num_queued_events)
  7606. (linux_nat_async_events_enabled): New globals.
  7607. (struct waitpid_result): New struct.
  7608. (waitpid_queue): New global.
  7609. (queued_waitpid, push_waitpid, drain_queued_events): New.
  7610. (my_waitpid): Call queued_waitpid.
  7611. (linux_child_follow_fork): Disable async events during the call.
  7612. (blocked_mask): Delete.
  7613. (sync_sigchld_action, async_sigchld_action): New globals.
  7614. (lin_lwp_attach_lwp): In sync mode, don't reblock SIGCHLD. In
  7615. async mode, block events during the call.
  7616. (linux_nat_create_inferior): New.
  7617. (linux_nat_attach): In sync mode, restore the mask states. In
  7618. async mode, wake the event loop immediatelly.
  7619. (detach_callback): Drain all queued events of the lwp we're
  7620. detaching from.
  7621. (linux_nat_detach): Block async mode, and drain events of the main
  7622. process.
  7623. (linux_nat_resume): If in async mode, mask async events during the
  7624. call. If short circuiting, force event loop to wake up. If
  7625. resuming, set target_executing, and register target events in the
  7626. event loop.
  7627. (pipe_to_local_event_queue, local_event_queue_to_pipe): New.
  7628. (linux_nat_wait): In async mode, block events during the call.
  7629. Only enable/disable passing SIGINT to the inferior in sync mode.
  7630. Get events from local waitpid queue. If no interesting events was
  7631. found, return to events loop. Reregister target events in the
  7632. event loop on exit. In sync mode, no need to reblock SIGCHLD.
  7633. (linux_nat_kill): Disable events on entry.
  7634. (linux_nat_mourn_inferior): In sync mode, don't restore the masks
  7635. here. Detach async mode from the event loop if there are no more
  7636. forks available, otherwise leave it on.
  7637. (sigchld_handler): Assure this is called only in sync mode.
  7638. (linux_async_permitted, linux_async_permitted_1): New globals.
  7639. (set_maintenance_linux_async_permitted)
  7640. (show_maintenance_linux_async_permitted): New functions.
  7641. (linux_nat_is_async_p, linux_nat_can_async_p)
  7642. (linux_nat_async_mask): New.
  7643. (linux_nat_event_pipe_pop, linux_nat_event_pipe_push): New.
  7644. (get_pending_events, async_sigchld_handler): New.
  7645. (linux_nat_async_events): New.
  7646. (async_terminal_is_ours): New global.
  7647. (linux_nat_terminal_inferior, linux_nat_terminal_ours): New.
  7648. (async_client_callback, async_client_context): New.
  7649. (linux_nat_async_file_handler, linux_nat_async)
  7650. (linux_nat_disable_async, linux_nat_enable_async): New.
  7651. (linux_nat_add_target): Register linux_nat_create_inferior,
  7652. linux_nat_can_async_p, linux_nat_is_async_p, linux_nat_async,
  7653. linux_nat_async_mask, linux_nat_terminal_inferior and
  7654. linux_nat_terminal_ours.
  7655. (_initialize_linux_nat): Remove local action variable, and update
  7656. code that used it to use sync_sigchld_action. Add new
  7657. "lin-lwp-async" debug set/show command. Put the "lin-lwp" debug
  7658. set/show command in the maintenance class. Add new "linux-async"
  7659. maintenance set/show command. Block SIGCHLD by default. Setup
  7660. async_sichld_action, and sync_sigchld_action. Install the default
  7661. async mode.
  7662. (lin_thread_get_thread_signals): Use a local sigset_t for blocking
  7663. the cancel signals.
  7664. * linux-thread-db.c (re_check_for_thread_db): New.
  7665. (clear_lwpid_callback): Handle TARGET_WAITKIND_IGNORE.
  7666. (thread_db_can_async_p, thread_db_is_async_p, thread_db_async)
  7667. (thread_db_async_mask): New.
  7668. (init_thread_db_ops): Register thread_db_can_async_p,
  7669. thread_db_is_async_p, thread_db_async and thread_db_async_mask.
  7670. * remote.c (remote_async_mask_value): New.
  7671. (remote_return_zero): New.
  7672. (init_remote_ops): Register remote_return_zero as callbacks of
  7673. to_can_async_p and to_is_async_p.
  7674. (remote_can_async_p, remote_is_async_p, remote_async): Update to
  7675. use remote_async_mask_value.
  7676. (remote_async_mask): New.
  7677. (init_remote_async_ops): Remove to_async_mask_value setting and
  7678. register remote_async_mask as to_async_mask callback in
  7679. remote_async_ops.
  7680. * Makefile.in (linux-nat.o): Update.
  7681. 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
  7682. * gdbthread.h (add_thread_with_info): New.
  7683. * linux-thread-db.c: Add some documentation.
  7684. (GET_LWP, GET_PID, GET_THREAD, is_lwp, is_thread, BUILD_LWP): Delete.
  7685. (struct private_thread_info): Remove th_valid and ti_valid.
  7686. Replace ti with tid.
  7687. (thread_get_info_callback): Do not add TID to the new ptid. Do
  7688. not cache th or ti.
  7689. (thread_db_map_id2thr, lwp_from_thread): Delete functions.
  7690. (thread_from_lwp): Assert that the LWP is set. Do not add TID to the
  7691. new PTID.
  7692. (attach_thread): Handle an already-existing thread. Use
  7693. add_thread_with_info. Cache the th and tid.
  7694. (detach_thread): Verify that private was set. Remove verbose
  7695. argument and printing. Update caller.
  7696. (thread_db_detach): Do not adjust inferior_ptid.
  7697. (clear_lwpid_callback, thread_db_resume, thread_db_kill): Delete.
  7698. (check_event, find_new_threads_callback): Do not add TID to the new PTID.
  7699. (thread_db_wait): Do not use lwp_from_thread.
  7700. (thread_db_pid_to_str): Use the cached TID.
  7701. (thread_db_extra_thread_info): Check that private is set.
  7702. (same_ptid_callback): Delete.
  7703. (thread_db_get_thread_local_address): Do not use it or check
  7704. is_thread. Check that private is set. Assume that the thread
  7705. handle is already cached.
  7706. (init_thread_db_ops): Remove to_resume and to_kill.
  7707. * thread.c (add_thread_with_info): New.
  7708. (add_thread): Use it.
  7709. * linux-nat.c (find_thread_from_lwp): Delete.
  7710. (exit_lwp): Do not use it. Check print_thread_events. Print before
  7711. deleting the thread.
  7712. (GET_PID, GET_LWP, BUILD_LWP, is_lwp): Move to...
  7713. * linux-nat.h (GET_PID, GET_LWP, BUILD_LWP, is_lwp): ...here.
  7714. * inf-ttrace.c (inf_ttrace_wait): Use print_thread_events and
  7715. printf_unfiltered for thread exits.
  7716. * procfs.c (procfs_wait): Likewise.
  7717. 2008-03-21 Chris Demetriou <cgd@google.com>
  7718. * symtab.c (rbreak_command): Quote symbol name before passing
  7719. it to break_command.
  7720. 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
  7721. * eval.c (evaluate_subexp_for_address): Clarify error message.
  7722. Use value_must_coerce_to_target.
  7723. * infcall.c (value_arg_coerce): Call value_coerce_to_target.
  7724. * valops.c (value_assign): Call value_coerce_to_target when
  7725. assigning to anything but internalvars. Leave GDB-side arrays
  7726. as arrays when assigning to internalvars.
  7727. (value_must_coerce_to_target, value_coerce_to_target): New.
  7728. (value_coerce_array, value_addr): Call value_coerce_to_target.
  7729. (value_array): Create the array in GDB's memory instead of
  7730. the inferior's.
  7731. * value.h (value_must_coerce_to_target, value_coerce_to_target):
  7732. Declare.
  7733. 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
  7734. * top.c (quit_confirm): Warn that we will kill the program.
  7735. 2008-03-19 Pedro Alves <pedro@codesourcery.com>
  7736. * inflow.c (terminal_ours_1): Guard access to
  7737. inferior_process_group with #ifdef PROCESS_GROUP_TYPE.
  7738. 2008-03-18 Ulrich Weigand <uweigand@de.ibm.com>
  7739. Jim Blandy <jimb@codesourcery.com>
  7740. Daniel Jacobowitz <drow@false.org>
  7741. * dwarf2expr.h (struct dwarf_expr_context): Add ADDR_SIZE member.
  7742. (dwarf2_read_address): Update prototype.
  7743. * dwarf2expr.c (unsigned_address_type): Add ADDR_SIZE parameter.
  7744. (signed_address_type): Likewise.
  7745. (dwarf2_read_address): Replace BYTES_READ parameter with ADDR_SIZE.
  7746. (execute_stack_op): Update calls to unsigned_address_type,
  7747. signed_address_type and dwarf2_read_address. Fix implementation
  7748. of DW_OP_deref_size.
  7749. * dwarf2loc.h (dwarf2_per_cu_objfile): Add prototype.
  7750. (dwarf2_per_cu_addr_size): Likewise.
  7751. (struct dwarf2_locexpr_baton): Replace OBJFILE with PER_CU.
  7752. (struct dwarf2_loclist_baton): Likewise.
  7753. * dwarf2loc.c (find_location_expression): Update calls to
  7754. dwarf2_read_address. Use dwarf2_per_cu_objfile and
  7755. dwarf2_per_cu_addr_size to retrieve PER_CU parameters.
  7756. (locexpr_describe_location): Likewise.
  7757. (dwarf2_evaluate_loc_desc): Replace OBJFILE with PER_CU parameter.
  7758. Set ctx->addr_size to dwarf2_per_cu_addr_size (per_cu).
  7759. (dwarf2_loc_desc_needs_frame): Add PER_CU parameter. Set ctx->addr_size
  7760. to dwarf2_per_cu_addr_size (per_cu).
  7761. (locexpr_read_variable): Update dwarf2_evaluate_loc_desc call.
  7762. (loclist_read_variable): Likewise.
  7763. (locexpr_read_needs_frame): Update dwarf2_loc_desc_needs_frame call.
  7764. * dwarf2read.c (dwarf2_symbol_mark_computed): Set baton->per_cu
  7765. instead of baton->objfile.
  7766. (dwarf2_per_cu_obfile): New function.
  7767. (dwarf2_per_cu_addr_size): Likewise.
  7768. * dwarf2-frame.c (struct comp_unit): Move higher.
  7769. (struct dwarf2_cie): Add UNIT and ADDR_SIZE members.
  7770. (execute_stack_op): Add ADDR_SIZE parameter; set ctx->addr_size.
  7771. (execute_cfa_program): Add FDE parameter. Replace EH_FRAME_P
  7772. parameter by using fde->eh_frame_p. Use read_encoded_value
  7773. to implement DW_CFA_set_loc.
  7774. (struct dwarf2_frame_cache): Add ADDR_SIZE member.
  7775. (dwarf2_frame_cache): Set cache->addr_size. Update calls to
  7776. execute_stack_op and execute_cfa_program.
  7777. (dwarf2_frame_prev_register): Update calls to execute_stack_op.
  7778. (size_of_encoded_value): Remove.
  7779. (read_encoded_value): Add PTR_LEN and FUNC_BASE parameters.
  7780. Remove call to size_of_encoded_value. Implement DW_EH_PE_funcrel.
  7781. (add_cie): Set cie->unit backlink.
  7782. (decode_frame_entry_1): Set cie->addr_size. Update calls to
  7783. read_encoded_value.
  7784. (dwarf2_build_frame_info): Allocate UNIT on objfile obstack.
  7785. 2008-03-17 Markus Deuling <deuling@de.ibm.com>
  7786. * i386-tdep.c (i386_print_insn): Remove unnecessary call to
  7787. gdbarch_bfd_arch_info.
  7788. 2008-03-17 Joel Brobecker <brobecker@adacore.com>
  7789. * aix-thread.c (pdc_read_regs): Minor reformatting.
  7790. 2008-03-17 Vladimir Prus <vladimir@codesourcery.com>
  7791. * thread.c (print_thread_info): Don't insist
  7792. on having current thread if there are no
  7793. threads at all.
  7794. 2008-03-17 Pedro Alves <pedro@codesourcery.com>
  7795. * infcmd.c (attach_command_post_wait)
  7796. (attach_command_continuation): New.
  7797. (attach_command): Support background async execution, and async
  7798. execution in synchronous mode.
  7799. 2008-03-17 Daniel Jacobowitz <dan@codesourcery.com>
  7800. * stack.c (print_stack_frame, print_frame): Use RETURN_MASK_ERROR.
  7801. * symmisc.c (dump_symtab_1): Likewise.
  7802. * wrapper.c (gdb_value_struct_elt): Likewise.
  7803. 2008-03-17 Pedro Alves <pedro@codesourcery.com>
  7804. * linux-nat.c (linux_nat_filter_event): Fix comment typo.
  7805. 2008-03-17 Pedro Alves <pedro@codesourcery.com>
  7806. * linux-nat.c (linux_nat_filter_event): New, refactored from
  7807. linux_nat_wait.
  7808. (linux_nat_wait): Call linux_nat_filter_event.
  7809. 2008-03-17 Ulrich Weigand <uweigand@de.ibm.com>
  7810. * top.c (execute_command): Fix uninitialized variable error.
  7811. 2008-03-16 Nick Hudson <nick.hudson@dsl.pipex.com>
  7812. * Makefile.in (amd64nbsd-nat.o): New dependency.
  7813. * amd64nbsd-nat.c: Include "nbsd-nat.h".
  7814. (_initialize_amd64nbsd_nat): Update target vector to use
  7815. nbsd_pid_to_exec_file.
  7816. * config/i386/nbsd64.mh (NATDEPFILES): Add nbsd-nat.o.
  7817. 2008-03-15 Vladimir Prus <vladimir@codesourcery.com>
  7818. Remove ignoring leading exec events code.
  7819. * fork-child.c (startup_inferior): Do not set
  7820. inferior_ignoring_leading_exec_events.
  7821. * inf-child.c (inf_child_reported_exec_events_per_exec_call): Remove.
  7822. (inf_child_target): Do not set to_reported_exec_events_per_exec_call.
  7823. * infrun.c (inferior_ignoring_leading_exec_events): Remove.
  7824. (handle_inferior_event): Remove code for ignoring leading exec
  7825. events.
  7826. * target.c (update_current_target): Do not inherit, or default,
  7827. to_reported_exec_events_per_exec_call.
  7828. (debug_to_reported_exec_events_per_exec_call): Remove.
  7829. (setup_target_debug): Do not set to_reported_exec_events_per_exec_call.
  7830. * target.h (target_reported_exec_events_per_exec_call): Remove.
  7831. (struct target): Remove the to_reported_exec_events_per_exec_call
  7832. field.
  7833. 2008-03-15 Vladimir Prus <vladimir@codesourcery.com>
  7834. Implement -thread-info.
  7835. * gdbthread.h (print_thread_info): Declare.
  7836. * thread.c (print_thread_info): New, extracted
  7837. from info_threads_command and adjusted to
  7838. work for CLI and MI.
  7839. (info_threads_command): Use print_thread_info.
  7840. * Makefile.in: Update dependencies.
  7841. * mi/mi-cmds.c (mi_cmds): Specify a handler
  7842. for -thread-info.
  7843. * mi/mi-cmds.h (mi_cmd_thread_info): Declare.
  7844. * mi/mi-main.c (mi_cmd_thread_info): New.
  7845. (mi_cmd_list_features): Include 'thread-info'.
  7846. 2008-03-14 Kevin Buettner <kevinb@redhat.com>
  7847. * mips-tdep.c (mips32_scan_prologue): Use the ABI register size
  7848. to decide whether to match instruction patterns using "sw" and "sd".
  7849. 2008-03-14 Pedro Alves <pedro@codesourcery.com>
  7850. * infcmd.c (jump_command): Postpone disabling stdin until after
  7851. the possible query.
  7852. 2008-03-14 Pedro Alves <pedro@codesourcery.com>
  7853. * inflow.c (gdb_getpgrp): New.
  7854. (gdb_has_a_terminal): Use get_getpgrp.
  7855. (terminal_ours_1): If attach_flag is set, don't refetch
  7856. inferior_process_group.
  7857. 2008-03-14 Pedro Alves <pedro@codesourcery.com>
  7858. * features/library-list.dtd: Allow "section" elements as children
  7859. of "library". Add "section" element and describe its attributes.
  7860. * solib-target.c (struct lm_info): Add section_bases member.
  7861. (library_list_start_segment): Error out if seen a section element.
  7862. (library_list_start_section): New.
  7863. (library_list_end_library): New.
  7864. (solib_target_free_library_list): Free section_bases.
  7865. (section_attributes): New.
  7866. (library_children): Make "segment" optional. Add "section" child.
  7867. (library_list_children): Register library_list_end_library.
  7868. (solib_target_relocate_section_addresses): Handle section bases.
  7869. * NEWS: Mention new qXfer:libraries:read section offsets support.
  7870. 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
  7871. * defs.h (do_exec_error_cleanups, discard_exec_error_cleanups)
  7872. (make_exec_error_cleanup): Remove declarations.
  7873. * utils.c (exec_error_cleanup_chain): Remove.
  7874. (do_exec_error_cleanups, discard_exec_error_cleanups)
  7875. (make_exec_error_cleanup): Remove.
  7876. * event-loop.c (start_event_loop): Adjust call to
  7877. async_enable_stdin.
  7878. * event-top.c (async_enable_stdin): Remove the paramater dummy.
  7879. (async_disable_stdin): Don't register async_enable_stdin via
  7880. cleanup.
  7881. * inf-loop.c (inferior_event_handler): Don't
  7882. call do_exec_error_cleanups. Call async_enable_stdin instead.
  7883. * event-loop.c (start_event_loop): Adjust call to
  7884. async_enable_stdin.
  7885. * tui/tui-interp.c (tui_command_loop): Adjust call to
  7886. async_enable_stdin.
  7887. 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
  7888. Async mode fixes.
  7889. * Makefile.in (infcmd.o, inf-loop.o): Update dependencies.
  7890. * breakpoint.c (bpstat_do_actions): In async mode,
  7891. don't jump to top expecting stop_bpstat to be already
  7892. updated.
  7893. * event-loop.c (start_event_loop): Call async_enable_stdin
  7894. on exception.
  7895. * event-top.c (async_enable_stdin): Do nothing if sync_execution
  7896. is not set.
  7897. (command_handler): Do not setup continuation here.
  7898. (command_line_handler_continuation): Move to...
  7899. * top.c (command_line_handler_continuation): ... here.
  7900. (execute_command): In async mode, register continuation.
  7901. Don't check frame's language in running in async mode.
  7902. * exceptions.c (throw_exception): Don't do exec_error_cleanups.
  7903. * inf-loop.c (complete_execution): Inline into...
  7904. (inferior_event_handler): ... here. Clear target_executing before
  7905. doing any cleanups. Don't try to show prompt if the target was
  7906. resumed.
  7907. * infcmd.c (signal_command): Add support for async mode.
  7908. (finish_command): Only add continuation if the target was
  7909. successfully resumed.
  7910. * remote.c (init_async_opts): Register to_get_thread_local_address
  7911. handler.
  7912. * mi/mi-interp.c (mi_cmd_interpreter_exec): Don't mess
  7913. with sync_execution.
  7914. * tui/tui-interp.c (tui_command_loop): Call async_enable_stdin
  7915. on exception.
  7916. 2008-03-14 Daniel Jacobowitz <dan@codesourcery.com>
  7917. * corefile.c (reopen_exec_file): Use exec_bfd_mtime.
  7918. * exec.c (exec_bfd_mtime): Define.
  7919. (exec_close): Clear it.
  7920. (exec_file_attach): Set it.
  7921. * gdbcore.h (exec_bfd_mtime): Declare.
  7922. * source.c (find_source_lines): Do not use bfd_get_mtime.
  7923. 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
  7924. * top.c (simplified_command_loop): Remove.
  7925. 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
  7926. Remove unused remote.c hooks.
  7927. * remote.c (deprecated_target_resume_hook)
  7928. (deprecated_target_wait_loop_hook): Remove.
  7929. (remote_resume): Do not call deprecated_target_resume_hook.
  7930. (remote_wait): Do not call deprecated_target_wait_loop_hook.
  7931. (remote_async_wait): Likewise.
  7932. 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
  7933. Implement MI notification for new threads.
  7934. * observer.sh: Forward declare struct thread_info.
  7935. * thread.c (add_thread): Notify observer.
  7936. * interps.h (interp_init_ftype): New parameter
  7937. top_level.
  7938. (interp_set): Likewise.
  7939. (top_level_interpreter_data): Declare.
  7940. * interps.c (interp_set): New parameter top_level.
  7941. Pass it to interpreter's init function. Remember
  7942. top level interpreter.
  7943. (interpreter_exec_cmd): Adjust.
  7944. (top_level_interpreter_data): New.
  7945. * main.c (captured_main): Pass 1 for top_level
  7946. parameter of interp_set.
  7947. * cli/cli-interp.c (cli_interpreter_init): New
  7948. parameter top_level.
  7949. * tui/tui-interp.c (tui_init): New parameter top_level.
  7950. * mi/mi-interp.c (mi_new_thread): New.
  7951. (mi_interpreter_init): If top level, register
  7952. observer for new threads.
  7953. * Makefile.in (mi-interp.o, thread.o): Update dependencies.
  7954. 2008-03-14 Pedro Alves <pedro@codesourcery.com>
  7955. * top.c (execute_command): Disable break and stop
  7956. commands in async mode.
  7957. 2008-03-14 Pedro Alves <pedro@codesourcery.com>
  7958. revert:
  7959. 2008-03-14 Pedro Alves <pedro@codesourcery.com>
  7960. * inf-loop.c (inferior_event_handler): Don't include remote.h.
  7961. Call target_stop in the INF_QUIT_REQ case.
  7962. * Makefile.in (inf-loop.o): Update.
  7963. 2008-03-14 Pedro Alves <pedro@codesourcery.com>
  7964. * inf-loop.c (inferior_event_handler): Don't include remote.h.
  7965. Call target_stop in the INF_QUIT_REQ case.
  7966. * Makefile.in (inf-loop.o): Update.
  7967. 2008-03-14 Pedro Alves <pedro@codesourcery.com>
  7968. * top.c (execute_command): Enable break, info and interrupt
  7969. commands in async mode.
  7970. 2008-03-13 Vladimir Prus <vladimir@codesourcery.com>
  7971. Daniel Jacobowitz <dan@codesourcery.com>
  7972. * breakpoint.h (breakpoint_restore_shadows): New
  7973. declaration.
  7974. * breakpoint.c (breakpoint_restore_shadows): New.
  7975. (read_memory_nobpt): Delete.
  7976. * gdbcore.h (read_memory_nobpt): Delete declaration.
  7977. * target.c (memory_xfer_partial): Call
  7978. breakpoint_restore_shadows.
  7979. (restore_show_memory_breakpoints)
  7980. (make_show_memory_breakpoints_cleanup): New.
  7981. (show_memory_breakpoints): New.
  7982. * target.h (make_show_memory_breakpoints_cleanup): Declare.
  7983. * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint):
  7984. Make sure we see memory breakpoints when checking if
  7985. breakpoint is still there.
  7986. * alpha-tdep.c, alphanbsd-tdep.c, frame.c, frv-tdep.c,
  7987. hppa-linux-tdep.c, hppa-tdep.c, i386-linux-nat.c, i386-tdep.c,
  7988. m68klinux-tdep.c, mips-tdep.c, mn10300-tdep.c, s390-tdep.c,
  7989. sparc-tdep.c: Use target_read_memory instead of read_memory_nobpt.
  7990. 2008-03-12 Pedro Alves <pedro@codesourcery.com>
  7991. * thread.c (add_thread): Use printf_unfiltered to print.
  7992. 2008-03-12 Joel Brobecker <brobecker@gnat.com>
  7993. * sol-thread.c: Replace use of TM_I386SOL2_H by an expression
  7994. that is true only on x86-solaris and x86_64-solaris.
  7995. * procfs.c: Likewise. Move procfs_find_LDT_entry up together
  7996. with proc_get_LDT_entry.
  7997. 2008-03-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
  7998. * configure.ac (AC_CHECK_FUNCS): Add check for setsid.
  7999. * config.in, configure: Regenerate.
  8000. * fork-child.c (fork_inferior): Call create_tty_session.
  8001. * inflow.c (new_tty): Set controlling terminal with TIOCSCTTY.
  8002. (create_tty_session): New function.
  8003. * terminal.h: Declare create_tty_session.
  8004. 2008-03-12 Alan Modra <amodra@bigpond.net.au>
  8005. PR 5900
  8006. * elfread.c (elf_symtab_read): Make shndx an unsigned int.
  8007. * mipsread.c: Include elf/internal.h.
  8008. (read_alphacoff_dynamic_symtab): Map external reserved sym_shndx
  8009. to internal range.
  8010. 2008-03-11 Markus Deuling <deuling@de.ibm.com>
  8011. * win32-nat.c (do_win32_fetch_inferior_registers): Use get_regcache_arch
  8012. to get at the current architecture and at the target specific vector.
  8013. Add target specific vector to I387_FISEG_REGNUM and I387_FOP_REGNUM and
  8014. remove define of I387_ST0_REGNUM.
  8015. * amd64-tdep.c (I387_ST0_REGNUM): Remove define.
  8016. (amd64_supply_fxsave, amd64_collect_fxsave): Use get_regcache_arch to
  8017. get at the current architecture
  8018. (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Add target specific vector as
  8019. parameter.
  8020. * i386-tdep.c: Remove various define's and undef's of I387_ST0_REGNUM,
  8021. I387_NUM_XMM_REGS and I387_MM0_REGNUM.
  8022. (I387_NUM_XMM_REGS, I387_XMM0_REGNUM, I387_MXCSR_REGNUM,
  8023. I387_ST0_REGNUM, I387_FCTRL_REGNUM, I387_MM0_REGNUM,
  8024. (I387_FSTAT_REGNUM): Add target specific vector as parameter.
  8025. (i386_register_name, i386_dbx_reg_to_regnum): Use gdbarch_tdep to get
  8026. at the target specific vector.
  8027. (i386_get_longjmp_target): Use get_frame_arch to get at the current
  8028. architecture. Use gdbarch_tdep to get at the target specific vector.
  8029. (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as parameter and
  8030. update caller. Use gdbarch_tdep to get at the target specific vector.
  8031. (i386_register_to_value: Use get_frame_arch to get at the current
  8032. architecture.
  8033. * i386-tdep.h (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as
  8034. parameter.
  8035. * i387-tdep.c (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
  8036. I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM
  8037. I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_ST0_REGNUM, FSAVE_ADDR,
  8038. FXSAVE_ADDR, I387_XMM0_REGNUM): Add target specific vector as parameter.
  8039. (I387_ST0_REGNUM, I387_NUM_XMM_REGS): Remove various define's and
  8040. undef's.
  8041. (i387_convert_register_p, i387_register_to_value,
  8042. i387_value_to_register): Update call for i386_fp_regnum_p.
  8043. * i387-tdep.h: Remove comment.
  8044. (I387_ST0_REGNUM, I387_NUM_XMM_REGS, I387_MM0_REGNUM): Add define.
  8045. (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
  8046. I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM,
  8047. I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_XMM0_REGNUM,
  8048. I387_MXCSR_REGNUM): Add target specific vector as parameter.
  8049. 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
  8050. * Makefile.in (fork-child.o): Update.
  8051. * NEWS: Document "set exec-wrapper" and the gdbserver --wrapper
  8052. argument. Gather all gdbserver features together.
  8053. * fork-child.c (exec_wrapper): New variable.
  8054. (fork_inferior): Use it.
  8055. (startup_inferior): Skip an extra trap if using "set exec-wrapper".
  8056. (unset_exec_wrapper_command, _initialize_fork_child): New.
  8057. 2008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
  8058. * source.c (directory_command): Modify the determination of
  8059. condition of terminal "from_tty".
  8060. 2008-03-10 Matt Rice <ratmice@gmail.com>
  8061. * dwarf2read.c (set_cu_language): Add DW_LANG_ObjC.
  8062. 2008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
  8063. * spu-tdep.c (info_spu_event_command): Insert a '\0' to the end
  8064. of the data passing to strtoulst function.
  8065. (info_spu_signal_command): Likewise.
  8066. 2008-03-08 Vladimir Prus <vladimir@codesourcery.com>
  8067. * mi/mi-interp.c (mi_command_loop): Remove
  8068. commented-out code.
  8069. 2008-03-07 Joel Brobecker <brobecker@adacore.com>
  8070. * remote.c (extended_remote_attach_1): Make local variable pid an int
  8071. instead of a pid_t.
  8072. 2008-03-07 Joel Brobecker <brobecker@adacore.com>
  8073. * solib-svr4.c (svr4_same_1): New function, originally extracted
  8074. from svr4_same and expanded to handle the sparc64 case.
  8075. (svr4_same): Move up and reimplement using svr4_same_1.
  8076. (enable_break): Use svr4_same_1 to do shared library name comparisons.
  8077. 2008-03-07 Ramana Radhakrishnan <ramana.r@gmail.com>
  8078. * MAINTAINERS: Move self to Paper trail.
  8079. 2008-03-05 Daniel Jacobowitz <dan@codesourcery.com>
  8080. * Makefile.in (mingw-hdep.o, posix-hdep.o, remote-fileio.o): Update.
  8081. * event-loop.c (call_async_signal_handler): New.
  8082. * event-loop.h (call_async_signal_handler)
  8083. (gdb_call_async_signal_handler): Declare.
  8084. (mark_async_signal_handler): Add comments.
  8085. * event-top.c (handle_sigint): Use gdb_call_async_signal_handler.
  8086. * mingw-hdep.c (sigint_event, sigint_handler): New.
  8087. (gdb_select): Use them. Wait for the readline signal handler
  8088. to finish.
  8089. (gdb_call_async_signal_handler, _initialize_mingw_hdep): New functions.
  8090. * posix-hdep.c (gdb_call_async_signal_handler): New function.
  8091. * remote-fileio.c (sigint_fileio_token, async_remote_fileio_interrupt):
  8092. New.
  8093. (remote_fileio_ctrl_c_signal_handler): Use
  8094. gdb_call_async_signal_handler.
  8095. (initialize_remote_fileio): Initialize sigint_fileio_token.
  8096. * remote.c (initialize_sigint_signal_handler, handle_remote_sigint): Do
  8097. not initialize tokens here.
  8098. (handle_remote_sigint_twice): Likewise. Reinstall
  8099. handle_remote_sigint.
  8100. (async_remote_interrupt_twice): Just call interrupt_query.
  8101. (cleanup_sigint_signal_handler): Do not delete tokens.
  8102. (remote_interrupt, remote_interrupt_twice): Use
  8103. gdb_call_async_signal_handler.
  8104. (interrupt_query): Reinstall the default signal handler.
  8105. (_initialize_remote): Initialize tokens here.
  8106. 2008-03-04 Joel Brobecker <brobecker@adacore.com>
  8107. * features/rs6000/power-core.xml, features/rs6000/power64-core.xml,
  8108. features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
  8109. Change the type of the lr register to code_ptr.
  8110. * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
  8111. features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
  8112. features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
  8113. features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
  8114. features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
  8115. features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
  8116. features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: Regenerate.
  8117. 2008-03-03 James E. Wilson <wilson@tuliptree.org>
  8118. * MAINTAINERS: Update my email address.
  8119. 2008-03-03 Keith Seitz <keiths@redhat.com>
  8120. From Dave Murphy <davem@devkitpro.org>:
  8121. * configure.ac: Set tcl configdir to win under mingw.
  8122. * configure: Regenerate.
  8123. 2008-03-03 Daniel Jacobowitz <dan@codesourcery.com>
  8124. * breakpoint.c (fetch_watchpoint_value): New function.
  8125. (update_watchpoint): Set and clear val_valid. Use
  8126. fetch_watchpoint_value. Handle unreadable values on the
  8127. value chain. Correct check for user-requested array watchpoints.
  8128. (breakpoint_init_inferior): Clear val_valid.
  8129. (watchpoint_value_print): New function.
  8130. (print_it_typical): Use it. Do not free or clear old_val. Print
  8131. watchpoints even if old_val == NULL.
  8132. (watchpoint_check): Use fetch_watchpoint_value. Check for values
  8133. becoming readable or unreadable.
  8134. (watch_command_1): Use fetch_watchpoint_value. Set val_valid.
  8135. (do_enable_watchpoint): Likewise.
  8136. * breakpoint.h (struct breakpoint): Update comment for val. Add
  8137. val_valid.
  8138. * NEWS: Mention watchpoints on inaccessible memory.
  8139. 2008-02-29 Daniel Jacobowitz <dan@codesourcery.com>
  8140. * Makefile.in (i386-nat.o): Update.
  8141. * amd64-linux-nat.c (_initialize_amd64_linux_nat): Call
  8142. i386_use_watchpoints.
  8143. * i386-linux-nat.c (_initialize_i386_linux_nat): Call
  8144. i386_use_watchpoints.
  8145. * i386-nat.c (i386_stopped_data_address): Take two arguments.
  8146. (i386_stopped_by_watchpoint): Update call.
  8147. (i386_can_use_hw_breakpoint, i386_use_watchpoints): New.
  8148. * config/i386/nm-i386.h: Conditionalize definitions on
  8149. ! I386_WATCHPOINTS_IN_TARGET_VECTOR.
  8150. (i386_use_watchpoints): Declare.
  8151. (i386_stopped_data_address): Update.
  8152. * config/i386/nm-linux.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
  8153. * config/i386/nm-linux64.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
  8154. 2008-02-29 Joel Brobecker <brobecker@adacore.com>
  8155. GDB 6.8 branch created (branch timestamp: 2008-02-26 10:00 UTC)
  8156. * version.in: Bump version to 6.8.50.20080229-cvs.
  8157. 2008-02-28 Markus Deuling <deuling@de.ibm.com>
  8158. * f-typeprint.c (f_print_type): Handle NULL pointer in VARSTRING
  8159. properly.
  8160. 2008-02-28 Tom Tromey <tromey@redhat.com>
  8161. * infcmd.c (notice_args_read): Print result of get_inferior_args.
  8162. 2008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
  8163. * infcmd.c (kill_if_already_running): Make static. Use
  8164. target_require_runnable.
  8165. * target.c (target_require_runnable): New.
  8166. * target.h (target_require_runnable): Declare.
  8167. 2008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
  8168. * frame.c (reinit_frame_cache): Only annotate if frames were
  8169. previously valid.
  8170. 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
  8171. * regformats/reg-ppc.dat: Rename "ps" to "msr".
  8172. * regformats/reg-ppc64.dat: Likewise.
  8173. 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
  8174. * features/Makefile (%.dat): Emit xmltarget statement.
  8175. * regformats/regdat.sh: Support xmltarget and xmlarch statments.
  8176. Generate code to set gdbserver_xmltarget in init_registers_${name}.
  8177. * regformats/arm-with-iwmmxt.dat: Regenerate.
  8178. * regformats/mips64-linux.dat: Regenerate.
  8179. * regformats/mips-linux.dat: Regenerate.
  8180. * regformats/rs6000/powerpc-32.dat: Regenerate.
  8181. * regformats/rs6000/powerpc-64.dat: Regenerate.
  8182. * regformats/rs6000/powerpc-e500.dat: Regenerate.
  8183. * regformats/reg-arm.dat: Add xmlarch statement.
  8184. * regformats/reg-i386.dat: Likewise.
  8185. * regformats/reg-i386-linux.dat: Likewise.
  8186. * regformats/reg-x86-64-linux.dat: Likewise.
  8187. * regformats/reg-spu.dat: Likewise.
  8188. 2008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
  8189. * remote.c (remote_wait, remote_async_wait): Stop if we receive
  8190. an error.
  8191. 2008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
  8192. * utils.c (debug_timestamp): New.
  8193. (vfprintf_unfiltered): Print timestamps if requested.
  8194. (show_debug_timestamp): New.
  8195. (initialize_utils): Register "set debug timestamp".
  8196. * NEWS: Mention "set debug timestamp". Add GDB 6.8 section.
  8197. 2008-02-27 Joel Brobecker <brobecker@adacore.com>
  8198. * breakpoint.c (skip_prologue_sal): New function.
  8199. (resolve_sal_pc): Adjust SAL past prologue if the SAL was
  8200. computed from a line number.
  8201. 2008-02-27 Joel Brobecker <brobecker@adacore.com>
  8202. * features/rs6000/power-core.xml, features/rs6000/power64-core.xml
  8203. features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
  8204. Set PC register type to "code_ptr".
  8205. * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
  8206. features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
  8207. features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
  8208. features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
  8209. features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
  8210. features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
  8211. features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c:
  8212. Regenerate.
  8213. 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
  8214. * regformats/regdat.sh: Rename init_registers function in
  8215. generated file to init_registers_${name}.
  8216. * regformats/reg-crisv32.dat: Set "name" to crisv32.
  8217. * regformats/reg-ppc64.dat: Set "name" to ppc64.
  8218. * regformats/reg-s390x.dat: Set "name" to s390x.
  8219. 2008-02-26 Greg Law <glaw@undo-software.com>
  8220. * regcache.c (registers_changed): Call reinit_frame_cache.
  8221. 2008-02-26 Daniel Jacobowitz <dan@codesourcery.com>
  8222. * configure.tgt (sh-*-linux*): Match sh*. Add glibc-tdep.o.
  8223. * sh-linux-tdep.c (sh_linux_init_abi): Use glibc_skip_solib_resolver
  8224. and svr4_fetch_objfile_link_map.
  8225. * Makefile.in (sh-linux-tdep.o): Update.
  8226. 2008-02-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
  8227. * amd64-tdep.c (amd64_classify): Add support for decimal float
  8228. types.
  8229. * i386-tdep.c (i386_return_value): Make 128-bit decimal float
  8230. use the struct return convention.
  8231. 2008-02-26 Nick Roberts <nickrob@snap.net.nz>
  8232. * breakpoint.c (print_one_breakpoint_location): Revert Enb field
  8233. to old format. Discard breakpoint address if shared library is
  8234. unloaded.
  8235. (breakpoint_1): Adjust formatting of table header accordingly.
  8236. 2008-02-25 Vladimir Prus <vladimir@codesourcery.com>
  8237. * remote.c (remote_get_threadlist): If the response
  8238. is empty, don't try to parse it.
  8239. 2008-02-23 Vladimir Prus <vladimir@codesourcery.com>
  8240. Unbreak 'target async'.
  8241. * serial.c (serial_async): Set the
  8242. handler function before enabling async
  8243. mode.
  8244. 2008-02-22 Daniel Jacobowitz <dan@codesourcery.com>
  8245. * solib-svr4.c (enable_break): Convert r_brk to a code address.
  8246. 2008-02-21 Pedro Alves <pedro@codesourcery.com>
  8247. * remote.c (extended_remote_attach_1): Set attach_flag.
  8248. (extended_remote_create_inferior_1): Clear attach_flag.
  8249. 2008-02-20 Daniel Jacobowitz <dan@codesourcery.com>
  8250. * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Set
  8251. r_brk_offset.
  8252. (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
  8253. * solib-svr4.c (solib_svr4_r_brk): New.
  8254. (open_symbol_file_object, svr4_current_sos): Always check the
  8255. debug base.
  8256. (svr4_fetch_objfile_link_map): Do not set debug_base.
  8257. (enable_break): Use r_brk if it is set.
  8258. (svr4_ilp32_fetch_link_map_offsets): Set r_brk_offset.
  8259. (svr4_lp64_fetch_link_map_offsets): Likewise.
  8260. * solib-svr4.h (struct link_map_offsets): Add r_brk_offset.
  8261. 2008-02-20 Markus Deuling <deuling@de.ibm.com>
  8262. Mark Kettenis <kettenis@gnu.org>
  8263. * alpha-tdep.c (alpha_heuristic_unwind_cache): Replace saved_regs by
  8264. trad_frame_saved_reg.
  8265. (trad-frame.h): New include.
  8266. (alpha_heuristic_frame_unwind_cache): Use trad_frame_alloc_saved_regs
  8267. instead of frame_obstack_zalloc.
  8268. (alpha_heuristic_frame_prev_register): Use trad_frame_get_prev_register.
  8269. * Makefile.in (alpha-tdep.o): Add dependency to trad_frame_h.
  8270. 2008-02-20 Markus Deuling <deuling@de.ibm.com>
  8271. * rs6000-tdep.c (gdb_print_insn_powerpc): Get the current endianess
  8272. from disassemble_info instead of gdbarch_byte_order.
  8273. * mips-tdep.c (gdb_print_insn_mips): Likewise.
  8274. * arm-tdep.c (gdb_print_insn_arm): Likewise.
  8275. 2008-02-20 Markus Deuling <deuling@de.ibm.com>
  8276. * gdbarch.sh (memory_insert_breakpoint, memory_remove_breakpoint): Add
  8277. gdbarch as parameter.
  8278. * gdbarch.{c,h}: Regenerate.
  8279. * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Add gdbarch as
  8280. parameter.
  8281. * mem-break.c (default_memory_insert_breakpoint)
  8282. (default_memory_remove_breakpoint): Likewise.
  8283. * target.h (default_memory_remove_breakpoint)
  8284. (default_memory_insert_breakpoint): Likewise.
  8285. * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Add gdbarch as
  8286. parameter. Replace current_gdbarch by gdbarch.
  8287. * m32r-tdep.c (m32r_memory_insert_breakpoint)
  8288. (m32r_memory_remove_breakpoint): Likewise.
  8289. 2008-02-19 Daniel Jacobowitz <dan@codesourcery.com>
  8290. * MAINTAINERS: Add Vladimir Prus as MI maintainer.
  8291. 2008-02-19 Joel Brobecker <brobecker@adacore.com>
  8292. * NEWS: Add entry describing Add support improvements.
  8293. 2008-02-18 Markus Deuling <deuling@de.ibm.com>
  8294. * m68klinux-nat.c (getfpregs_supplies): Replace gdbarch_fp0_regnum by
  8295. M68K_FP0_REGNUM.
  8296. 2008-02-18 Markus Deuling <deuling@de.ibm.com>
  8297. * sentinel-frame.c (sentinel_frame_prev_register): Do not call
  8298. register_offset_hack anymore.
  8299. * regcache.{c,h} (register_offset_hack): Remove.
  8300. 2008-02-18 Markus Deuling <deuling@de.ibm.com>
  8301. * hppa-tdep.h (find_global_pointer): Add gdbarch as parameter.
  8302. * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer): Likewise. Replace
  8303. current_gdbarch by gdbarch.
  8304. (hppa64_hpux_find_global_pointer): Likewise.
  8305. * hppa-tdep.c (hppa_find_global_pointer): Likewise.
  8306. (hppa32_push_dummy_call, hppa64_push_dummy_call): Update call for
  8307. find_global_pointer.
  8308. * hppabsd-tdep.c (hppabsd_find_global_pointer): Add gdbarch as
  8309. parameter.
  8310. * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
  8311. * hppa-linux-nat.c (hppa_linux_register_addr): Use ARRAY_SIZE instead
  8312. of gdbarch_num_regs.
  8313. * hppa-hpux-tdep.c (hppa_hpux_sr_for_addr): Add gdbarch as parameter and
  8314. replace current_gdbarch by gdbarch.
  8315. (hppa_hpux_push_dummy_code): Update call for hppa_hpux_sr_for_addr.
  8316. 2008-02-18 Markus Deuling <deuling@de.ibm.com>
  8317. * rs6000-nat.c (exec_one_dummy_insn, regmap): Add gdbarch as parameter
  8318. and replace current_gdbarch by gdbarch.
  8319. (store_register): Update call for exec_one_dummy_insn.
  8320. (fetch_register, store_register): Update call of regmap.
  8321. * ppcnbsd-nat.c (getregs_supplies, getfpregs_supplies): Add gdbarch as
  8322. parameter and replace current_gdbarch by gdbarch.
  8323. (ppcnbsd_store_inferior_registers): Use get_regcache_arch to get at
  8324. the current architecture. Update call for getregs_supplies and
  8325. getfpregs_supplies.
  8326. (ppcnbsd_fetch_inferior_registers): Likewise.
  8327. * ppcobsd-nat.c (getfpregs_supplies): Add gdbarch as parameter and
  8328. replace current_gdbarch by gdbarch.
  8329. (ppcobsd_fetch_registers, ppcobsd_store_registers): Use
  8330. get_regcache_arch to get at the current architecture. Update call for
  8331. getfpregs_supplies.
  8332. 2008-02-18 Markus Deuling <deuling@de.ibm.com>
  8333. * arch-utils.c (gdbarch_from_bfd): Remove unnecessary {old,new}_gdbarch
  8334. variables.
  8335. 2008-02-15 Markus Deuling <deuling@de.ibm.com>
  8336. * mips-linux-tdep.c (mips_linux_init_abi): Remove internal error.
  8337. 2008-02-14 Vladimir Prus <vladimir@codesourcery.com>
  8338. * NEWS: Mention pending breakpints in MI.
  8339. 2008-02-14 Markus Deuling <deuling@de.ibm.com>
  8340. * Makefile.in (ALL_TARGET_OBS): Remove dependency to xtensa-linux-nat.o.
  8341. 2008-02-13 Markus Deuling <deuling@de.ibm.com>
  8342. Add script to build and test GDB using enable-targets=all.
  8343. * gdb_buildall.sh: New file.
  8344. 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
  8345. * NEWS (New native configurations): Xtensa GNU/Linux.
  8346. (New targets): Xtensa GNU/Linux.
  8347. * Makefile.in (ALL_TARGET_OBS): Add xtensa-linux-nat.o and
  8348. xtensa-linux-tdep.o
  8349. (ALLDEPFILES): Add xtensa-linux-tdep.c and xtensa-linux-nat.c
  8350. (xtensa-linux-nat.o, xtensa-linux-tdep.o): New dependencies.
  8351. * configure.tgt (xtensa*-*-linux*): New entry.
  8352. * xtensa-config.c (xtensa_tdep): New variable.
  8353. (xtensa_config_byte_order, xtensa_config_tdep): Removed.
  8354. (rmap): Change format based on new macro XTREG.
  8355. (XTENSA_CONFIG_INSTANTIATE): Use new macro defined in xtensa-tdep.h.
  8356. * xtensa-linux-nat.c: New.
  8357. * xtensa-linux-tdep.c: New.
  8358. * xtensa-xtregs.c: New.
  8359. * xtensa-tdep.h (xtensa_elf_gregset_t): Update.
  8360. (XTENSA_ELF_NGREG, XTREG, XTREG_END, XTENSA_GDBARCH_TDEP_INSTANTIATE)
  8361. (XCHAL_NUM_CONTEXTS, XCHAL_HAVE_EXCEPTIONS): New macros.
  8362. (xtensa_register_t): New field coprocessor.
  8363. (XTENSA_REGISTER_FLAGS_PRIVILEGED): Name spelling corrected.
  8364. * xtensa-tdep.c (xtensa_config_tdep, xtensa_config_byte_order): Removed.
  8365. (xtensa_pseudo_register_read, xtensa_pseudo_register_write):
  8366. Update to handle privileged registers.
  8367. (xtensa_supply_gregset) Remove exccause and excvaddr registers.
  8368. (xtensa_push_dummy_call): Set windowstart register correctly.
  8369. (call0_analyze_prologue): Initialize xtensa_default_isa.
  8370. (xtensa_derive_tdep): New.
  8371. (xtensa_gdbarch_init): Get rid of xtensa_config_byte_order and
  8372. xtensa_config_tdep, use XCHAL_HAVE_BE and xtensa_tdep instead.
  8373. Call xtensa_derive_tdep().
  8374. * config/xtensa/linux.mh: New.
  8375. * regformats/reg-xtensa.dat: New.
  8376. 2008-02-09 Aleksandar Ristovski <aristovski@qnx.com> (tiny change)
  8377. * corelow.c (core_open): Use IS_ABSOLUTE_PATH.
  8378. (filenames.h): New include.
  8379. * Makefile.in (corelow.o): Add dependency for filenames.h.
  8380. 2008-02-08 Doug Evans <dje@google.com>
  8381. * source.c (find_and_open_source): Always rewrite absolute filenames.
  8382. 2008-02-07 Doug Evans <dje@google.com>
  8383. * breakpoint.c: #include "hashtab.h".
  8384. (ambiguous_names_p): New fn.
  8385. (update_breakpoint_locations): When restoring bp enable status, don't
  8386. compare function names if any functions have same name.
  8387. * Makefile.in (breakpoint.o): Add hashtab.h dependency.
  8388. 2008-02-07 Joel Brobecker <brobecker@adacore.com>
  8389. * ada-lang.c (symbol_completion_add): Make SV parameter a VEC**
  8390. instead of just a VEC*. Update use of SV.
  8391. (ada_make_symbol_completion_list): Update symbol_completion_add calls.
  8392. 2007-02-07 Joel Brobecker <brobecker@adacore.com>
  8393. * NEWS: Put all new commands since gdb-6.7 together.
  8394. 2007-02-07 Joel Brobecker <brobecker@adacore.com>
  8395. * ada-lang.c: #include "vec.h".
  8396. (struct string_vector, new_string_vector, string_vector_append):
  8397. Delete.
  8398. (char_ptr): New typedef.
  8399. (DEF_VEC_P (char_ptr)): New VEC type.
  8400. (symbol_completion_add): Update profile to take the new VEC type
  8401. instead of the old string_vector structure. Update code accordingly.
  8402. (ada_make_symbol_completion_list): Use the new VEC type instead of
  8403. the old string_vector structure, and update the code accordingly.
  8404. * Makefile.in (ada-lang.o): Add dependency on vec.h.
  8405. 2008-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
  8406. * p-exp.y: Set current_type in missing places.
  8407. (leftdiv_is_integer): New static variable.
  8408. Typecast right operand of BINOP_DIV to long_double if both operands
  8409. are integers.
  8410. 2008-02-06 Maciej W. Rozycki <macro@mips.com>
  8411. * remote-mips.c (set_breakpoint): Rename to...
  8412. (mips_set_breakpoint): ... this.
  8413. (clear_breakpoint): Rename to...
  8414. (mips_clear_breakpoint): ... this.
  8415. (common_breakpoint): Rename to...
  8416. (mips_common_breakpoint): ... this.
  8417. (check_lsi_error): Rename to...
  8418. (mips_check_lsi_error): ... this.
  8419. 2007-02-05 Joel Brobecker <brobecker@adacore.com>
  8420. * language.h (struct language_defn): Add new field
  8421. la_make_symbol_completion_list.
  8422. * symtab.c (default_make_symbol_completion_list): Renames
  8423. make_symbol_completion_list.
  8424. (make_symbol_completion_list): New function.
  8425. * symtab.h (default_make_symbol_completion_list): Add declaration.
  8426. * langauge.c (unknown_language): Set la_make_symbol_completion_list.
  8427. (auto_language, local_language): Likewise.
  8428. * objc-lang.c (objc_language_defn): Likewise.
  8429. * scm-lang.c (scm_language_defn): Likewise.
  8430. * m2-lang.c (m2_language_defn): Likewise.
  8431. * f-lang.c (f_language_defn): Likewise.
  8432. * jv-lang.c (java_language_defn): Likewise.
  8433. * p-lang.c (pascal_language_defn): Likewise.
  8434. * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn)
  8435. (minimal_language_defn): Likewise.
  8436. * ada-lang.c (struct string_vector): New structure.
  8437. (new_string_vector, string_vector_append, ada_unqualified_name)
  8438. (add_angle_brackets, symbol_completion_match, symbol_completion_add)
  8439. (ada_make_symbol_completion_list): New functions.
  8440. (ada_language_defn): Set la_make_symbol_completion_list.
  8441. * ada-lang.h (ada_make_symbol_completion_list): Remove declaration,
  8442. this function is static.
  8443. 2008-02-05 Kevin Buettner <kevinb@redhat.com>
  8444. * mn10300-tdep.c (mn10300_push_dummy_call): Adjust stack pointer
  8445. to account for call site optimizations.
  8446. 2008-02-05 Andrzej Zaborowski <balrogg@gmail.com>
  8447. * tracepoint.c (read_actions): Handle end-of-text indicator
  8448. in action list properly. (Committed by Jim Blandy)
  8449. 2008-02-05 Jim Blandy <jimb@red-bean.com>
  8450. * ax-gdb.c (gen_expr): Yield ordinary error if asked to trace a
  8451. pseudoregister, not an internal error.
  8452. Reported by: Andrzej Zaborowski
  8453. 2008-02-04 Vladimir Prus <vladimir@codesourcery.com>
  8454. * varobj.c (c_value_of_variable): Use xstrdup.
  8455. 2008-02-04 Vladimir Prus <vladimir@codesourcery.com>
  8456. Update stored rendition of varobj value when format changes.
  8457. * varobj.c (varobj_set_display_format): Recomputed
  8458. print_value.
  8459. (c_value_of_variable): Return print_value.
  8460. 2008-02-03 Doug Evans <dje@google.com>
  8461. * eval.c (evaluate_subexp_standard): Fix type of result of mixed
  8462. integer/float division operations when EVAL_AVOID_SIDE_EFFECTS.
  8463. * valops.c (value_one): New function.
  8464. * value.h (value_one): Declare.
  8465. Fix argument promotion for binary arithmetic ops for C.
  8466. * valarith.c (unop_result_type): New fn.
  8467. (binop_result_type): New fn.
  8468. (value_binop): Move result type computation to binop_result_type.
  8469. (value_pos, value_neg, value_complement): Move result type
  8470. computation to unop_result_type.
  8471. PR 2384
  8472. * gdbtypes.c (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
  8473. Return basetype, fieldno if found. All callers updated.
  8474. Don't cache TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE if from different
  8475. objfile.
  8476. * gdbtypes.h (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
  8477. * symfile.h (fill_in_vptr_fieldno): Delete.
  8478. 2008-02-02 Doug Evans <dje@google.com>
  8479. * valarith.c (value_binop): Handle unsigned BINOP_REM division by zero.
  8480. * typeprint.c (*): Whitespace cleanup.
  8481. 2008-02-02 Mark Kettenis <kettenis@gnu.org>
  8482. Luis Machado <luisgpm@br.ibm.com>
  8483. Thiago Jung Bauermann <bauerman@br.ibm.com>
  8484. * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Pass floats that
  8485. don't fit into registerson the stack the way GCC does.
  8486. 2008-02-01 Joel Brobecker <brobecker@adacore.com>
  8487. * symtab.c (symbol_set_names): Do not add an entry in the demangling
  8488. hash table for Ada symbols. Just store the linkage name as is,
  8489. and leave the demangled_name as NULL.
  8490. 2007-02-01 Joel Brobecker <brobecker@adacore.com>
  8491. * dwarf2read.c (add_partial_symbol): Always store all Ada subprograms
  8492. in the global scope.
  8493. (new_symbol): Likewise.
  8494. 2008-02-01 Vladimir Prus <vladimir@codesourcery.com>
  8495. * breakpoint.c (break_command_1): Return void.
  8496. (break_command_really): Return void. Rethrow
  8497. exceptions instead of returning.
  8498. (gdb_breakpoint): Remove the error_message parameter.
  8499. Return void. Rename to set_breakpoint.
  8500. * gdb.h (gdb_breakpoint): Rename and move to...
  8501. * breakpoint.h (set_breakpoint): ...here.
  8502. * mi/mi-cmb-break.c (mi_cmd_break_insert): Restore
  8503. event hooks even if exception is thrown. Adjust to
  8504. gdb_breakpoint interface changes.
  8505. 2008-02-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
  8506. * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Write 32-bit
  8507. float in both first and second word in the doubleword, to support
  8508. old and new ABIs.
  8509. 2008-02-01 Vladimir Prus <vladimir@codesourcery.com>
  8510. Properly rethrow exception. This fixes errors
  8511. about non-existent functions for -break-insert.
  8512. * breakpoint.c (break_command_really): Use throw_exception
  8513. for rethrowing. If rethrowing, don't print the exception.
  8514. 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
  8515. * NEWS: Mention Decimal Floating Point support.
  8516. 2008-01-31 Joel Brobecker <brobecker@adacore.com>
  8517. * std-regs.c (value_of_builtin_frame_pc_reg): Change the returned
  8518. value type to builtin_type_void_func_ptr.
  8519. 2008-01-31 Andreas Krebbel <krebbel1@de.ibm.com>
  8520. * s390-tdep.c (is_float_singleton, is_float_like,
  8521. alignment_of, s390_return_value): Make checks for
  8522. TYPE_CODE_FLT to match TYPE_CODE_DECFLOAT as well.
  8523. 2008-01-31 Luis Machado <luisgpm@br.ibm.com>
  8524. Thiago Jung Bauermann <bauerman@br.ibm.com>
  8525. * infcmd.c (default_print_registers_info): Also print hex
  8526. raw contents for TYPE_CODE_DECFLOAT registers.
  8527. * ppc-tdep.h (gdbarch_tdep): Add ppc_dl0_regnum member.
  8528. * rs6000-tdep.c (IS_DFP_PSEUDOREG): New macro.
  8529. (rs6000_register_name): Add support for DFP pseudo-registers.
  8530. (rs6000_pseudo_register_type): Likewise.
  8531. rs6000_pseudo_register_reggroup_p): Likewise.
  8532. (ppc_pseudo_register_read): New function.
  8533. (ppc_pseudo_register_write): Likewise.
  8534. (rs6000_pseudo_register_read): Likewise.
  8535. (rs6000_pseudo_register_write): Likewise.
  8536. (e500_pseudo_register_read): Move checks to
  8537. rs6000_pseudo_register_read.
  8538. (e500_pseudo_register_write): Move checks to
  8539. rs6000_pseudo_register_write.
  8540. (rs6000_gdbarch_init): Initialize tdep->ppc_dl0_regnum. Install
  8541. rs6000_pseudo_register_read and rs6000_pseudo_register_write
  8542. in gdbarch if SPE or DFP is available. Adjust gdbarch's
  8543. num_pseudo_regs to account for DFP pseudo regs.
  8544. 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
  8545. * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_ev31_regnum member.
  8546. * rs6000-tdep.c (IS_SPE_PSEUDOREG): New macro.
  8547. (spe_register_p, rs6000_register_name, rs6000_pseudo_register_type,
  8548. rs6000_pseudo_register_reggroup_p, e500_move_ev_register,
  8549. e500_pseudo_register_read, e500_pseudo_register_write): Use
  8550. IS_SPE_PSEUDOREG macro.
  8551. (rs6000_frame_cache): Remove use of tdep->ppc_ev31_regnum.
  8552. (rs6000_gdbarch_init): Remove unnecessary num_sprs local variable.
  8553. Remove initialization of tdep->ppc_ev31_regnum.
  8554. 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
  8555. * printcmd.c (print_formatted): Handle references as for unformatted
  8556. prints.
  8557. 2008-01-30 Joel Brobecker <brobecker@adacore.com>
  8558. * eval.c (evaluate_subexp_standard): Add handling of user
  8559. registers when in EVAL_AVOID_SIDE_EFFECTS mode.
  8560. 2008-01-30 Pierre Muller <muller@ics.u-strasbg.fr>
  8561. * eval.c (evaluate_subexp_standard): Support
  8562. BINOP_INTDIV opcode.
  8563. 2008-01-30 Paul N. Hilfinger <hilfinger@adacore.com>
  8564. * valarith.c (value_binop): Add floating-point BINOP_MIN and
  8565. BINOP_MAX cases.
  8566. For BINOP_EXP, use length and signedness of left operand only for
  8567. result, as for shifts.
  8568. For integral operands to BINOP_EXP, use new integer_pow and
  8569. uinteger_pow functions so as to get full range of results.
  8570. (integer_pow): New function.
  8571. (uinteger_pow): New function.
  8572. 2008-01-30 Vladimir Prus <vladimir@codesourcery.com>
  8573. Use vector for varobj_list_children interface.
  8574. * varobj.c (varobj_list_children): Return vector
  8575. of varobjs.
  8576. * varobj.h (varobj_list_children): Adjust
  8577. prototype.
  8578. (varobj_p): Declare. Declare vector thereof.
  8579. * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust
  8580. for varobj_list_children change.
  8581. * Makefile.in (varobj_h): Update dependencies.
  8582. 2008-01-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
  8583. * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Add support for
  8584. TYPE_CODE_DECFLOAT arguments.
  8585. (ppc64_sysv_abi_push_dummy_call) Likewise.
  8586. (get_decimal_float_return_value): New function.
  8587. (do_ppc_sysv_return_value): Add support for TYPE_CODE_DECFLOAT return
  8588. values by calling get_decimal_float_return_value.
  8589. (ppc64_sysv_abi_return_value): Likewise.
  8590. 2008-01-30 Nick Roberts <nickrob@snap.net.nz>
  8591. * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Add field
  8592. for preprocessor macro information. Formatting changes.
  8593. 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
  8594. * remote.c (struct remote_state): Add cached_wait_status.
  8595. (remote_exec_file): New variable.
  8596. (PACKET_vAttach, PACKET_vRun): New constants.
  8597. (extended_remote_restart): Do not query for status.
  8598. (struct start_remote_args): New.
  8599. (remote_start_remote): Take it as a second argument. Check
  8600. whether the target is running. Issue an error for non-running
  8601. non-extended targets. Cache the wait status. Set inferior_ptid
  8602. here.
  8603. (remote_open_1): Prompt to disconnect non-running targets. Make
  8604. sure the target is marked running. Do not set inferior_ptid here.
  8605. Update call to remote_start_remote. Do not call remote_check_symbols
  8606. if the target is not running.
  8607. (remote_detach_1): Rename from remote_detach. Take an EXTENDED
  8608. argument. Handle a non-running target.
  8609. (remote_detach): Use it.
  8610. (extended_remote_detach): New.
  8611. (remote_disconnect): Fix typo. Use remoute_mourn_1.
  8612. (extended_remote_attach_1, extended_remote_attach)
  8613. (extended_async_remote_attach): New.
  8614. (remote_vcont_resume): Remove unused variable.
  8615. (remote_wait, remote_async_wait): Use any cached wait status.
  8616. (putpkt_binary, getpkt): Clear any cached wait status.
  8617. (extended_remoute_mourn_1): New.
  8618. (extended_remote_mourn): Use it.
  8619. (extended_async_remote_mourn, extended_remote_run): New.
  8620. (extended_remote_create_inferior_1): New.
  8621. (extended_remote_create_inferior): Use it.
  8622. (extended_remote_async_create_inferior): Likewise.
  8623. (remote_xfer_partial): Skip for non-executing targets.
  8624. (init_extended_remote_ops): Set to_detach and to_attach.
  8625. (init_extended_async_remote_ops): Likewise. Use
  8626. extended_async_remote_mourn.
  8627. (_initialize_remote): Register vAttach, vRun, and
  8628. set remote exec-file.
  8629. * NEWS: Mention vAttach, vRun, and gdbserver extended-remote support.
  8630. 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
  8631. * Makefile.in (symfile.o): Update.
  8632. * NEWS: Mention exec tracing support.
  8633. * inf-ttrace.c (inf_ttrace_wait): Return TARGET_WAITKIND_EXECD for
  8634. exec events.
  8635. * infcmd.c (kill_if_already_running, detach_command)
  8636. (disconnect_command): Replace SOLIB_RESTART with no_shared_libraries.
  8637. * infrun.c (MAY_FOLLOW_EXEC, may_follow_exec): Delete.
  8638. (follow_exec): Do not check may_follow_exec. Do not mourn and push
  8639. targets. Apply the sysroot path to the loaded executable. Use
  8640. no_shared_libraries.
  8641. * linux-nat.c (linux_child_follow_fork): Print fork following
  8642. messages if verbose.
  8643. (kill_wait_callback): Kill again before waiting a second time.
  8644. * symfile.c (symbol_file_clear): Replace SOLIB_RESTART with
  8645. no_shared_libraries.
  8646. 2008-01-29 Joel Brobecker <brobecker@adacore.com>
  8647. * amd64-tdep.c (amd64_classify): Add handling of TYPE_CODE_CHAR.
  8648. 2008-01-29 Joel Brobecker <brobecker@adacore.com>
  8649. * nto-tdep.h: Remove #include "defs.h".
  8650. * nto-tdep.c: Add #include "defs.h".
  8651. * Makefile.in (nto_tdep_h): Update dependencies.
  8652. (nto-tdep.o): Likewise.
  8653. 2008-01-29 Joel Brobecker <brobecker@adacore.com>
  8654. * infrun.c (wait_for_inferior): Add treat_exec_as_sigtrap parameter
  8655. and use it.
  8656. (proceed, start_remote): Update call to wait_for_inferior.
  8657. * inferior.h (wait_for_inferior): Update declaration.
  8658. * fork-child.c, infcmd.c, solib-irix.c, solib-osf.c, solib-sunos.c,
  8659. solib-svr4.c, win32-nat.c: Update calls to wait_for_inferior.
  8660. * inf-ttrace.c (inf_ttrace_wait): Report TTEVT_EXEC events as
  8661. TARGET_WAITKIND_EXECD instead of TARGET_WAITKIND_STOPPED.
  8662. 2008-01-29 Aleksandar Ristovski <aristovski@qnx.com>
  8663. * varobj (adjust_value_for_child_access): Added checking for
  8664. returned value from gdb_value_ind.
  8665. (c_describe_child): Likewise.
  8666. (cplus_describe_child): Fixed a typo.
  8667. 2008-01-29 Jim Blandy <jimb@red-bean.com>
  8668. * MAINTAINERS: Update my info.
  8669. 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
  8670. Use multiple locations for hardware watchpoints.
  8671. This eliminates the need to traverse value chain, doing
  8672. various checks, in three different places.
  8673. * breakpoint.h (struct bp_location): New fields
  8674. lengths and watchpoint_type.
  8675. (struct breakpoint): Remove the val_chain field.
  8676. * breakpoint.c (is_hardware_watchpoint): New.
  8677. (free_valchain): Remove.
  8678. (update_watchpoint): New.
  8679. (insert_bp_location): For hardware watchpoint, just
  8680. directly insert it.
  8681. (insert_breakpoints): Call update_watchpoint_locations
  8682. on all watchpoints. If we have failed to insert
  8683. any location of a hardware watchpoint, remove all inserted
  8684. locations.
  8685. (remove_breakpoint): For hardware watchpoints, directly
  8686. remove location.
  8687. (watchpoints_triggered): Iterate over locations.
  8688. (bpstat_stop_status): Use only first location of
  8689. a resource watchpoint.
  8690. (delete_breakpoint): Don't call free_valchain.
  8691. (print_one_breakpoint): Don't print all
  8692. locations for watchpoints.
  8693. (breakpoint_re_set_one): Use update_watchpoint for
  8694. watchpoints.
  8695. 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
  8696. Don't reset watchpoint block on solib load.
  8697. * breakpoint.c (insert_bp_location): For watchpoints,
  8698. recompute condition.
  8699. (breakpoint_re_set_one): Instead of recomputing value
  8700. and condition for watchpoints, just reset value and
  8701. let insert_breakpoints/insert_bp_location recompute it.
  8702. Don't do anything about disabled watchpoint.
  8703. 2008-01-29 Pierre Muller <muller@ics.u-strasbg.fr>
  8704. * valarith.c (value_binop): Handle unsigned integer
  8705. division by zero.
  8706. 2008-01-28 Kevin Buettner <kevinb@redhat.com>
  8707. * mn10300-tdep.c (mn10300_analyze_prologue): Check for an
  8708. instruction pattern that appears frequently in position
  8709. independent code. Fix bug in code which looks for "fmov" and
  8710. backtracks if no "fmov" is found.
  8711. 2008-01-28 Doug Evans <dje@google.com>
  8712. * dbxread.c (read_dbx_symtab): Fix indentation.
  8713. Reformat comments to 80 columns.
  8714. Move local var def closer to only use.
  8715. 2008-01-28 Daniel Jacobowitz <dan@codesourcery.com>
  8716. * fork-child.c (SHELL_FILE): Remove #ifndef.
  8717. (fork_inferior): Remove SHELL_COMMAND_CONCAT.
  8718. 2008-01-25 Pierre Muller <muller@ics.u-strasbg.fr>
  8719. * i386-tdep.c (i386_skip_noop): New function.
  8720. (i386_analyze_prologue): Call i386_skip_noop function.
  8721. 2008-01-24 Michael Snyder <msnyder@specifix.com>
  8722. * procfs.c (procfs_xfer_partial): Comment, cut/paste error.
  8723. * win32-nat.c (win32_xfer_partial): Ditto.
  8724. * target.c (default_xfer_partial): Minor whitespace adjustment.
  8725. 2008-01-24 Pedro Alves <pedro@codesourcery.com>
  8726. * arm-tdep.c (arm_addr_bits_remove): In non 26-bit mode, don't
  8727. strip bit 1 even if pc doesn't point to thumb code.
  8728. 2008-01-23 Daniel Jacobowitz <dan@codesourcery.com>
  8729. * remote.c (remote_wait): Handle SIGINT between packets.
  8730. (remote_async_wait): Likewise.
  8731. 2008-01-23 Vladimir Prus <vladimir@codesourcery.com>
  8732. Chris Demetriou <cgd@google.com>
  8733. * thread.c (add_thread_silent): Renamed
  8734. from add_thread.
  8735. (print_thread_events): New variable definition.
  8736. (show_print_thread_events): New function.
  8737. (_initialize_thread): Add "set print thread-events" and
  8738. "show print thread-events" commands.
  8739. (add_thread): Announce new thread.
  8740. * gdbthread.h (add_thread_silent): Declare.
  8741. (print_thread_events): New variable declaration.
  8742. * inf-ttrace.c (inf_ttrace_wait): Don't
  8743. inform about new thread, as add_thread is always
  8744. called too, and will take care of that.
  8745. * infrun.c (handle_inferior_event): Likewise.
  8746. * procfs.c (procfs_wait): Likewise.
  8747. * remote.c (remote_currthread): Likewise.
  8748. * sol-thread.c (sol_thread_wait): Likewise.
  8749. * win32-nat.c (get_win32_debug_event): Likewise.
  8750. * linux-thread-db.c (attach_thread): Likewise.
  8751. Remove the verbose parameter.
  8752. (check_event): Make detach_thread be verbose
  8753. only if print_thread_events is set.
  8754. * linux-nat.c (lin_lwp_attach_lwp): Don't inform
  8755. about new thread. This is called only from
  8756. linux-thread-db.c:attach_thread, which will take care.
  8757. Remove the verbose parameter.
  8758. * linux-nat.h (lin_lwp_attach_lwp): Adjust prototype.
  8759. 2008-01-23 Nick Roberts <nickrob@snap.net.nz>
  8760. * mi/mi-cmd-var.c (mi_cmd_var_set_format): Add value field to output.
  8761. 2008-01-22 Vladimir Prus <vladimir@codesourcery.com>
  8762. * breakpoint.c (break_command_really): New parameter
  8763. ignore_count.
  8764. (break_command_1): Pass 0 as
  8765. ignore_count to break_command_really.
  8766. (gdb_breakpoint): Pass ignore_count to
  8767. break_command_really.
  8768. 2008-01-21 Kevin Buettner <kevinb@redhat.com>
  8769. * mn10300-linux-tdep.c (am33_linux_sigframe_cache_init): Find
  8770. sigcontext struct via pointer.
  8771. (struct sigframe comment): Update to show new field `psc'.
  8772. 2008-01-21 Vladimir Prus <vladimir@codesourcery.com>
  8773. * infrun.c (handle_inferior_event): If
  8774. we failed to remove breakpoints, error,
  8775. don't try to increment PC by hand.
  8776. 2008-01-18 Nick Hudson <nick.hudson@dsl.pipex.com>
  8777. Add NetBSD/hppa target and host support.
  8778. * hppabsd-tdep.c (hppabsd_supply_gregset): Move to ...
  8779. (hppabsd_gregset): Move to ...
  8780. (hppabsd_regset_from_core_section): Rename
  8781. hppaobsd_regset_from_core_section and move to ...
  8782. (hppabsd_find_global_pointer): Update comment.
  8783. (hppabsd_init_abi): Make global. Do not register
  8784. hppabsd_regset_from_core_section.
  8785. (hppabsd_core_osabi_sniffer): Rename hppaobsd_core_osabi_sniffer and
  8786. move to ...
  8787. (_initialize_hppabsd_tdep): Move to ...
  8788. * hppaobsd-tdep.c: ... here. New file.
  8789. * hppnbsd-tdep.c: New file.
  8790. * hppnbsd-nat.c: New file.
  8791. * Makefile.in (ALL_TARGET_OBS): Add hppanbsd-tdep.o and hppaobsd-tdep.o.
  8792. (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
  8793. (hppabsd-nat.o, hppabsd-tdep.o): New dependencies.
  8794. (hppabsd-tdep.o, hppaobsd-tdep.o): Update dependencies.
  8795. * configure.host (hppa*-*-netbsd*): New entry.
  8796. * configure.tgt (hppa*-*-netbsd*): New entry.
  8797. (hppa*-*-openbsd*): Update.
  8798. * NEWS (New native configuration): Mention NetBSD/hppa.
  8799. (New targets): Mention NetBSD/hppa.
  8800. 2008-01-18 Markus Deuling <deuling@de.ibm.com>
  8801. * gdbarch.sh (function_list): Add new property bits_big_endian to
  8802. gdbarch structure.
  8803. * gdbarch.{c,h}: Regenerate.
  8804. * value.c (struct value): Replace BITS_BIG_ENDIAN by
  8805. gdbarch_bits_big_endian (comment).
  8806. (unpack_field_as_long, modify_field): Likewise.
  8807. * value.h: Likewise (comment).
  8808. * valops.c (value_slice): Likewise.
  8809. * valarith.c (value_subscript, value_bit_index): Likewise.
  8810. * gdbtypes.h (field): Likewise (comment).
  8811. * eval.c (evaluate_subexp_standard): Likewise.
  8812. * dwarf2read.c (dwarf2_add_field): Likewise.
  8813. * ada-lang.c (decode_packed_array, ada_value_primitive_packed_val)
  8814. (move_bits, ada_value_assign, value_assign_to_component): Likewise.
  8815. * defs.h (BITS_BIG_ENDIAN): Remove.
  8816. 2008-01-18 Markus Deuling <deuling@de.ibm.com>
  8817. * jv-exp.y (yylex): Replace DEPRECATED_STREQN with the appropriate
  8818. function calls.
  8819. * m2-exp.y (yylex): Likewise.
  8820. * objc-exp.y (yylex): Likewise.
  8821. * defs.h (DEPRECATED_STREQN): Remove.
  8822. 2008-01-17 H.J. Lu <hjl.tools@gmail.com>
  8823. * MAINTAINERS: Update my email address.
  8824. 2008-01-17 Jim Blandy <jimb@codesourcery.com>
  8825. * README: Mention gdbserver/README.
  8826. 2008-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
  8827. * valarith.c (value_binop): Handle BINOP_INTDIV
  8828. for unsigned and signed integers.
  8829. 2008-01-17 Ulrich Weigand <uweigand@de.ibm.com>
  8830. * s390-tdep.c (s390_gdbarch_init): Set default long double
  8831. type to 128-bit IEEE quad.
  8832. 2008-01-17 Joel Brobecker <brobecker@adacore.com>
  8833. * hpux-thread.c (hpux_thread_resume): Delete commented-out code.
  8834. 2008-01-16 Mark Kettenis <kettenis@gnu.org>
  8835. * auxv.c (fprint_target_auxv): Add support for AT_SUN_AUXFLAGS.
  8836. * dfp.c, dfp.h: Rename decimal_to_double to decimal_to_doublest.
  8837. * value.c: All callers changed.
  8838. 2008-01-16 Markus Deuling <deuling@de.ibm.com>
  8839. * rs6000-nat.c (add_vmap, vmap_ldinfo, vmap_exec): Replace
  8840. DEPRECATED_STREQ by its expression.
  8841. * coffread.c (coff_locate_sections, coff_symtab_read): Likewise.
  8842. * xcoffread.c (read_xcoff_symtab, read_symbol_lineno, find_linenos)
  8843. (scan_xcoff_symtab): Likewise.
  8844. * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Likewise.
  8845. * f-lang.c (find_common_for_function): Likewise.
  8846. * objc-exp.y (parse_number): Likewise.
  8847. * defs.h (DEPRECATED_STREQ): Remove.
  8848. 2008-01-16 Markus Deuling <deuling@de.ibm.com>
  8849. * mn10300-tdep.h (AM33_MODE): Add gdbarch as parameter.
  8850. * mn10300-tdep.c (set_reg_offsets, mn10300_analyze_prologue): Use
  8851. get_frame_arch to get at the current_architecture. Update AM33_MODE
  8852. call.
  8853. (mn10300_analyze_prologue): Add gdbarch as parameter. Update caller.
  8854. (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
  8855. architecture.
  8856. (set_reg_offsets, mn10300_analyze_prologue): Fix indentation.
  8857. 2008-01-16 Markus Deuling <deuling@de.ibm.com>
  8858. * amd64-nat.h (amd64_native_gregset_supplies_p): Add gdbarch as
  8859. parameter.
  8860. * amd64-nat.c (amd64_native_gregset_supplies_p): Likewise.
  8861. (amd64_native_gregset_reg_offset): Add gdbarch as parameter. Replace
  8862. current_gdbarch by gdbarch. Update caller.
  8863. * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers)
  8864. (amd64_linux_store_inferior_registers): Use get_regcache_arch to get at
  8865. the current architecture. Update calls of
  8866. amd64_native_gregset_supplies_p.
  8867. * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers)
  8868. (amd64bsd_store_inferior_registers): Likewise.
  8869. 2008-01-16 Markus Deuling <deuling@de.ibm.com>
  8870. * ppc-linux-nat.c (ppc_register_u_addr): Add gdbarch as parameter.
  8871. Replace current_gdbarch by gdbarch. Update caller.
  8872. 2008-01-16 Markus Deuling <deuling@de.ibm.com>
  8873. * dbxread.c (repeated_header_complaint, dbx_symfile_init)
  8874. (read_dbx_dynamic_symtab, function_outside_compilation_unit_complaint)
  8875. (read_dbx_symtab, end_psymtab, dbx_psymtab_to_symtab_1)
  8876. (dbx_psymtab_to_symtab, read_ofile_symtab, process_one_symbol)
  8877. (stabsect_build_psymtabs): Fix indentation.
  8878. 2008-01-15 Michael Snyder <msnyder@specifix.com>
  8879. * corelow.c (core_xfer_partial): Comment, cut/paste error.
  8880. 2008-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
  8881. * win32-nat.c (win32_create_inferior): Restore code calling
  8882. CloseHandle on ProcessInformation structure.
  8883. 2008-01-13 Nick Hudson <nick.hudson@dsl.pipex.com>
  8884. * configure.ac: Check for void * as 3 argument of ptrace.
  8885. * configure: regenerate.
  8886. 2008-01-11 Markus Deuling <deuling@de.ibm.com>
  8887. * alpha-tdep.c (alpha_heuristic_proc_start)
  8888. (alpha_sigtramp_register_address): Add gdbarch as parameter. Replace
  8889. current_gdbarch by gdbarch.
  8890. (alpha_heuristic_frame_unwind_cache): Use get_frame_arch to get at the
  8891. current architecture by frame_info. Update alpha_heuristic_proc_start
  8892. call.
  8893. (alpha_sigtramp_frame_this_id, alpha_sigtramp_frame_prev_register): Use
  8894. get_frame_arch to get at the current architecture by frame_info. Update
  8895. alpha_sigtramp_register_address call.
  8896. * arm-tdep.c (thumb_scan_prologue): Add gdbarch as parameter and replace
  8897. current_gdbarch by gdbarch. Update caller.
  8898. (convert_to_extended, convert_from_extended): Add endianess parameter
  8899. for comparison. Update caller.
  8900. (arm_extract_return_value, arm_store_return_value): Use
  8901. get_regcache_arch to get at the current architecture.
  8902. * cris-tdep.c (cris_register_size): Add gdbarch as parameter. Replace
  8903. current_gdbarch by gdbarch. Update caller.
  8904. (cris_gdb_func, move_to_preg_op, none_reg_mode_move_from_preg_op): Add
  8905. gdbarch as parameter. Update caller. Replace current_gdbarch by gdbarch.
  8906. * h8300-tdep.c (E_PSEUDO_CCR_REGNUM, E_PSEUDO_EXR_REGNUM, BINWORD): Add
  8907. gdbarch as parameter. Update caller.
  8908. (h8300_init_frame_cache): Add gdbarch as parameter. Replace
  8909. current_gdbarch by gdbarch. Update caller.
  8910. * hppa-tdep.c (skip_prologue_hard_way): Add gdbarch as parameter and
  8911. update caller. Replace current_gdbarch by gdbarch.
  8912. * m32c-tdep.c (m32c_skip_trampoline_code): Use get_frame_arch to get at
  8913. the current architecture. Replace current_gdbarch by gdbarch.
  8914. * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
  8915. (STACK_CORRECTION, USE_PAGE_REGISTER): Replace M6811_TDEP by its
  8916. expression. Add gdbarch as parameter and replace current_gdbarch with
  8917. it. Update caller.
  8918. (M6811_TDEP): Remove.
  8919. (m68hc11_frame_prev_register): Use get_frame_arch to get at the current
  8920. architecture.
  8921. (m68hc11_scan_prologue): Add gdbarch as parameter. Replace
  8922. current_gdbarch by gdbarch. Update caller.
  8923. * m68k-tdep.c (m68k_analyze_prologue): Add gdbarch as parameter and
  8924. update caller.
  8925. (m68k_analyze_register_saves): Likewise. Also replace current_gdbarch
  8926. by gdbarch.
  8927. * rs6000-tdep.c (skip_prologue): Add gdbarch as parameter and update
  8928. caller. Relace current_gdbarch by gdbarch.
  8929. (altivec_register_p, spe_register_p): Likewise.
  8930. * ppc-tdep.h (altivec_register_p, spe_register_p): Add gdbarch as
  8931. parameter.
  8932. * ppc-linux-nat.c (fetch_register, store_register): Update caller of
  8933. altivec_register_p and spe_register_p.
  8934. * score-tdep.c (score_fetch_inst): Add gdbarch as parameter. Update
  8935. caller. Replace current_gdbarch by gdbarch.
  8936. (score_analyze_prologue): use get_frame_arch to get at the current
  8937. architecture.
  8938. * sparc-tdep.h (sparc_analyze_prologue): Add gdbarch as parameter.
  8939. * sparc-tdep.c (sparc_analyze_prologue): Likewise. Replace
  8940. current_gdbarch by gdbarch. Update caller.
  8941. (sparc_frame_cache): Use get_frame_arch to get at the current
  8942. architecture.
  8943. * sparce64-tdep.c (sparc64_skip_prologue): Update call of
  8944. sparc_analyze_prologue.
  8945. * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add gdbarch as
  8946. parameter.
  8947. 2008-01-11 Markus Deuling <deuling@de.ibm.com>
  8948. * exec.c: #include "arch-utils.h"
  8949. (print_section_info): Use gdbarch_from_bfd to get at the
  8950. current architecture. Replace current_gdbarch. Fix indention. Replace
  8951. deprecated_print_address_numeric by paddress.
  8952. * Makefile.in (exec.o) Add dependency to arch-utils.h.
  8953. * valprint.c (val_print_string): Replace
  8954. deprecated_print_address_numeric.
  8955. * tracepoint.c (trace_mention, scope_info): Likewise.
  8956. * symmisc.c (dump_msymbols, dump_psymtab, dump_symtab_1, print_symbol)
  8957. (print_symbol, print_partial_symbols, maintenance_info_psymtabs)
  8958. (maintenance_check_symtabs): Likewise.
  8959. * symfile.c (list_overlays_command): Likewise.
  8960. * stack.c (frame_info, print_block_frame_labels): Likewise.
  8961. * printcmd.c (print_address, print_address_demangle)
  8962. (address_info): Likewise.
  8963. * corefile.c (memory_error): Likewise.
  8964. * infcmd.c (jump_command): Likewise.
  8965. * breakpoint.c (insert_bp_location, describe_other_breakpoints)
  8966. (mention, delete_breakpoint): Likewise.
  8967. * c-valprint.c (print_function_pointer_address, c_val_print): Likewise.
  8968. * dwarf2read.c (dump_die): Likewise.
  8969. * ada-valprint.c (ada_val_print_1): Likewise.
  8970. * f-valprint.c (f_val_print): Likewise.
  8971. * linux-fork.c (info_forks_command): Likewise.
  8972. * m32r-com.c (m32r_load_section, m32r_load)
  8973. (m32r_upload_command): Likewise.
  8974. * ui-out.c (ui_out_field_core_addr): Remove unnecessary comment.
  8975. 2008-01-11 Markus Deuling <deuling@de.ibm.com>
  8976. * gdbarch.sh (skip_prologue): Add gdbarch
  8977. as parameter.
  8978. * gdbarch.{c,h}: Regenerate.
  8979. * alpha-tdep.c (alpha_skip_prologue): Add gdbarch as parameter.
  8980. * amd64-tdep.c (amd64_skip_prologue): Likewise.
  8981. * avr-tdep.c (avr_skip_prologue): Likewise.
  8982. * cris-tdep.c (cris_skip_prologue): Likewise.
  8983. * frv-tdep.c (frv_skip_prologue): Likewise.
  8984. * h8300-tdep.c (h8300_skip_prologue): Likewise.
  8985. * hppa-tdep.c (hppa_skip_prologue): Likewise.
  8986. * i386-tdep.c (i386_skip_prologue): Likewise.
  8987. * ia64-tdep.c (ia64_skip_prologue): Likewise.
  8988. * iq2000-tdep.c (iq2000_skip_prologue): Likewise.
  8989. * m32r-tdep.c (m32r_skip_prologue): Likewise.
  8990. * m68hc11-tdep.c (m68hc11_skip_prologue): Likewise.
  8991. * m68k-tdep.c (m68k_skip_prologue): Likewise.
  8992. * m88k-tdep.c (m88k_skip_prologue): Likewise.
  8993. * mep-tdep.c (mep_skip_prologue): Likewise.
  8994. * mips-tdep.c (mips_skip_prologue): Likewise.
  8995. * mn10300-tdep.c (mn10300_skip_prologue): Likewise.
  8996. * mt-tdep.c (mt_skip_prologue): Likewise.
  8997. * rs6000-tdep.c (rs6000_skip_prologue): Likewise.
  8998. * score-tdep.c (score_skip_prologue): Likewise.
  8999. * sh64-tdep.c (sh64_skip_prologue): Likewise.
  9000. * sh-tdep.c (sh_skip_prologue): Likewise.
  9001. * sparc64-tdep.c (sparc64_skip_prologue): Likewise.
  9002. * sparc-tdep.c (sparc32_skip_prologue): Likewise.
  9003. * spu-tdep.c (spu_skip_prologue): Likewise.
  9004. * v850-tdep.c (v850_skip_prologue): Likewise.
  9005. * vax-tdep.c (vax_skip_prologue): Likewise.
  9006. * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
  9007. * xtensa-tdep.c (xtensa_skip_prologue): Likewise.
  9008. * arm-tdep.c (arm_skip_prologue): Add gdbarch as parameter. Replace
  9009. current_gdbarch by gdbarch.
  9010. * m32c-tdep.c (m32c_skip_prologue): Likewise.
  9011. * s390-tdep.c (s390_skip_prologue): Likewise.
  9012. 2008-01-10 Doug Evans <dje@google.com>
  9013. * defs.h (struct continuation_arg): Fix typo in comment.
  9014. * target.c (target_translate_tls_address): Fix comment spelling error.
  9015. 2008-01-09 Thiago Jung Bauermann <bauerman@br.ibm.com>
  9016. * doublest.h (DOUBLEST_PRINT_FORMAT): Remove % from string.
  9017. (DOUBLEST_SCAN_FORMAT): Likewise.
  9018. * dfp.c (decimal_from_floating): Use DOUBLEST_PRINT_FORMAT.
  9019. * ada-lex.l (processReal): Prepend "%" to use of DOUBLEST_SCAN_FORMAT.
  9020. * c-exp.y (parse_number): Likewise.
  9021. * jv-exp.y (parse_number): Likewise.
  9022. * objc-exp.y (parse_number): Likewise.
  9023. * p-exp.y (parse_number): Likewise.
  9024. 2008-01-09 Joel Brobecker <brobecker@adacore.com>
  9025. * gdbtypes.c (create_array_type): Add handling of null Ada arrays.
  9026. (check_typedef): Likewise.
  9027. 2008-01-09 Luis Machado <luisgpm@br.ibm.com>
  9028. * printcmd.c (printf_command): Add seen_big_h, seen_big_d and
  9029. seen_double_big_d, treat the new H, D, and DD modifiers as length
  9030. modifiers.
  9031. 2008-01-08 Joel Brobecker <brobecker@adacore.com>
  9032. * dwarf2read.c (read_enumeration_type): Add comment.
  9033. 2008-01-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
  9034. * config.in: Regenerate.
  9035. 2008-01-08 Joel Brobecker <brobecker@adacore.com>
  9036. * ada-lang.c (ada_convert_actual): Renames convert_actual.
  9037. Make non-static.
  9038. (ada_convert_actuals): Delete.
  9039. * ada-lang.h (ada_convert_actual): Add declaration.
  9040. (ada_convert_actuals): Remove declaration.
  9041. * infcall.c: #include "ada-lang.h".
  9042. (value_arg_coerce): Add new parameter sp. Update function
  9043. documetnation. Add handling of Ada function call parameters.
  9044. * Makefile.in (infcall.o): Update dependencies.
  9045. 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
  9046. * ada-lang.c (ensure_lval): Fix value lval kind.
  9047. (convert_actual): Add handling for arguments passed by reference.
  9048. 2008-01-08 Doug Evans <dje@google.com>
  9049. * dbxread.c (read_dbx_symtab): Fix indentation.
  9050. 2008-01-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
  9051. * Makefile.in (dfp.o): Depend on expression.h, gdbtypes.h and value.h.
  9052. (valarith.o): Depend on dfp.h.
  9053. (valops.o): Likewise.
  9054. * dfp.c: Include expression.h, gdbtypes.h, value.h and dfp.h.
  9055. (set_decnumber_context): New function.
  9056. (decimal_check_errors): Likewise.
  9057. (decimal_from_number): Likewise.
  9058. (decimal_to_number): Likewise.
  9059. (decimal_from_string): Use set_decnumber_context and
  9060. decimal_check_errors.
  9061. (decimal_from_integral): New function.
  9062. (decimal_from_floating): Likewise.
  9063. (decimal_to_double): Likewise.
  9064. (promote_decimal): Likewise.
  9065. (decimal_binop): Likewise.
  9066. (decimal_is_zero): Likewise.
  9067. (decimal_compare): Likewise.
  9068. (decimal_convert): Likewise.
  9069. * dfp.h (decimal_from_integral): New prototype.
  9070. (decimal_from_floating): Likewise.
  9071. (decimal_to_double): Likewise.
  9072. (decimal_binop): Likewise.
  9073. (decimal_is_zero): Likewise.
  9074. (decimal_compare): Likewise.
  9075. (decimal_convert): Likewise.
  9076. * eval.c (evaluate_subexp_standard): Remove expect_type argument from
  9077. call to value_from_decfloat.
  9078. * valarith.c: Include dfp.h.
  9079. (value_args_as_decimal): New function.
  9080. (value_binop): Add if block to handle TYPE_CODE_DECFLOAT values.
  9081. (value_logical_not): Likewise.
  9082. (value_equal): Likewise.
  9083. (value_less): Likewise.
  9084. (value_pos): Likewise.
  9085. (value_neg): Formatting fix.
  9086. * valops.c: Include dfp.h.
  9087. (value_cast): Add if block to handle TYPE_CODE_DECFLOAT values.
  9088. * value.c (unpack_long): Add case to handle TYPE_CODE_DECFLOAT.
  9089. (unpack_double): Add if block to handle TYPE_CODE_DECFLOAT.
  9090. (value_from_decfloat): Remove expect_type argument.
  9091. * value.h (value_from_decfloat): Update prototype.
  9092. 2008-01-07 Vladimir Prus <vladimir@codesourcery.com>
  9093. Ignore change in name of dynamic linker during
  9094. execution on Solaris. This also unbreaks pending breakpoints.
  9095. * solist.h (struct target_so_ops): New field same.
  9096. * solib-svr4.c (svr4_same): New.
  9097. (_initialize_svr4_solib): Register svr4_same.
  9098. * solib.c (update_solib_list): Use ops->same, if available.
  9099. 2008-01-06 Christopher Faylor <me+cygwin@cgf.cx>
  9100. * win32-nat.c (win32_make_so): Use cygwin-style path to avoid warnings
  9101. when using MS-DOS paths.
  9102. 2008-01-05 Pedro Alves <pedro@codesourcery.com>
  9103. * NEWS: Mention --pid and --core command line behaviour changes.
  9104. 2008-01-05 Pedro Alves <pedro@codesourcery.com>
  9105. * main.c (captured_main): Remove 'count' varible and the
  9106. ALIGN_STACK_ON_ENTRY block that used it. Error out if --core and
  9107. --pid options were issued simultaneously. If an explicit pid
  9108. option was passed, don't fallback to core file. Detect extra
  9109. arguments better in the presence of explicit pid or core
  9110. arguments.
  9111. 2008-01-05 Joel Brobecker <brobecker@adacore.com>
  9112. * ada-lang.c (ada_which_variant_applies): Correctly compute
  9113. the value of the discriminant when the variant record is packed.
  9114. 2008-01-04 Joel Brobecker <brobecker@adacore.com>
  9115. * ada-lang.c (is_name_suffix): Handle middle-name numeric suffixes
  9116. that are used to differentiate homonyms.
  9117. 2008-01-04 Jerome Guitton <guitton@adacore.com>
  9118. * ada-lang.c (decode_packed_array_type): Avoid a seg fault
  9119. when the type is an anonymous pointer type.
  9120. (ada_check_typedef): Avoid a seg fault when the type is null.
  9121. * ada-typeprint.c (print_array_type): Add support for pointer
  9122. to packed arrays.
  9123. 2008-01-04 Paul N. Hilfinger <hilfinger@adacore.com>
  9124. * ada-exp.y: Allow '{type} ADDRESS' notation on left of assignment.
  9125. 2008-01-04 Joel Brobecker <brobecker@adacore.com>
  9126. * ada-lang.c (ada_evaluate_subexp): Evaluate tagged types in
  9127. EVAL_NORMAL mode when noside is EVAL_AVOID_SIDE_EFFECTS.
  9128. 2008-01-04 Joel Brobecker <brobecker@adacore.com>
  9129. * ada-exp.y (chop_separator): New function.
  9130. (write_selectors): Rewrite to re-use chop_separator.
  9131. (ada_nget_field_index, get_symbol_field_type): New functions.
  9132. (write_var_or_type): Add support for "ptype TYPENAME.FIELD"
  9133. expressions.
  9134. 2008-01-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
  9135. * symtab.c (find_pc_sect_line): Use SYMBOL_VALUE_ADDRESS instead
  9136. of SYMBOL_VALUE when working with function symbols.
  9137. 2008-01-03 Joel Brobecker <brobecker@adacore.com>
  9138. * ada-lang.c (resolve_subexp): Add handling of OP_REGISTER
  9139. expressions. These expressions do not need to be rewriten.
  9140. 2008-01-03 Joel Brobecker <brobecker@adacore.com>
  9141. * dwarf2read.c (read_enumeration_type): Flag type as stub if
  9142. the given die is a declaration.
  9143. 2008-01-03 Joel Brobecker <brobecker@adacore.com>
  9144. * ada-lang.c (ada_array_bound_from_type): Make non-static.
  9145. Handle properly the case when the index type is an enumerated type.
  9146. Do not return the subtype of the bounds type, just return the
  9147. bounds type directly - this is not needed and is more consistent
  9148. with what we do for arrays when no XA parallel type exists.
  9149. 2008-01-03 Joel Brobecker <brobecker@adacore.com>
  9150. * ada-lang.c (static_unwrap_type): Add forward declaration.
  9151. (template_to_static_fixed_type): Fields of dynamic types sometimes
  9152. also need to be unwrapped. Take this into account.
  9153. (ada_to_fixed_type_1): Renamed from ada_to_fixed_type.
  9154. (ada_to_fixed_type): New wrapper around ada_to_fixed_type_1.
  9155. * ada-typeprint.c (ada_print_type): Get the typename from
  9156. the original type, not the base type.
  9157. 2008-01-03 Jerome Guitton <guitton@adacore.com>
  9158. * ada-lang.c (ada_value_struct_elt, to_fixed_array_type)
  9159. (to_fixed_array_type, ada_to_fixed_value_create, unwrap_value):
  9160. Update calls to ada_to_fixed_type.
  9161. (ada_template_to_fixed_record_type_1): Ditto, but without looking
  9162. for the tag.
  9163. (ada_to_fixed_type): Add check_tag parameter; do not look for
  9164. tag if null. When looking for a tag, use a fixed record type.
  9165. * ada-lang.h (ada_to_fixed_type): Add check_tag parameter.
  9166. * ada-valprint.c (printable_val_type, ada_value_print): Update
  9167. calls to ada_to_fixed_type.
  9168. 2008-01-03 Luis Machado <luisgpm@br.ibm.com>
  9169. * doublest.c (convert_floatformat_to_doublest): Call
  9170. floatformat_to_doublest instead of floatformat_to_double and use
  9171. DOUBLEST variables.
  9172. (convert_doublest_to_floatformat): Call floatformat_from_doublest
  9173. instead of floatformat_from_double and use DOUBLEST variables.
  9174. 2008-01-03 Nick Hudson <nick.hudson@dsl.pipex.com>
  9175. * MAINTAINERS (Write After Approval): Add self.
  9176. 2008-01-03 Joel Brobecker <brobecker@adacore.com>
  9177. * symfile.c (set_initial_language): Make non-static.
  9178. * symfile.h (set_initial_language): Add declaration.
  9179. * language.c: #include "symfile.h".
  9180. (set_language): Call set_initial_language if the frame language
  9181. could not be determined.
  9182. 2008-01-03 Paul N. Hilfinger <hilfinger@adacore.com>
  9183. * eval.c (evaluate_subexp_for_address): Provide frame address to
  9184. locate_var_value only if it will be needed.
  9185. 2008-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
  9186. * linux-nat.c (linux_child_follow_fork): Call also CHECK_FOR_THREAD_DB.
  9187. 2008-01-02 Joel Brobecker <brobecker@adacore.com>
  9188. * ada-lang.c (ada_evaluate_subexp): Modify the value returned
  9189. when noside is EVAL_AVOID_SIDE_EFFECTS to be an lval_memory.
  9190. This is needed to make sure that any other treatment applied
  9191. to the resulting value does not fail for spurious reason,
  9192. such as trying to take the address of this value.
  9193. 2008-01-02 Joel Brobecker <brobecker@adacore.com>
  9194. * ada-lang.c (ada_value_equal): Dereference reference types when
  9195. comparing arrays.
  9196. 2008-01-01 Daniel Jacobowitz <dan@codesourcery.com>
  9197. Updated copyright notices for most files.
  9198. 2008-01-01 Christopher Faylor <me+gdb@cgf.cx>
  9199. * win32-nat.c (psapi_module_handle): Remove static.
  9200. (get_module_name): Rename from psapi_get_dll_name. Revamp slightly to
  9201. return first module found if base_address is zero. Don't initialize
  9202. psapi function pointers here. Convert to cygwin paths when
  9203. appropriate.
  9204. (win32_pid_to_exec_file): Use Cygwin's /proc interface to determine
  9205. executable name. Use get_module_name when that fails or when
  9206. !__CYGWIN__.
  9207. (_initialize_psapi): New function. Initialize psapi stuff before it is
  9208. needed or issue a warning if it is not found. Move psapi_module_handle
  9209. here.
  9210. 2008-01-01 Joel Brobecker <brobecker@adacore.com>
  9211. * ada-lang.c (ada_remove_trailing_digits): New function.
  9212. (ada_remove_po_subprogram_suffix): New function.
  9213. (ada_decode): Improve. Move the description of the algorithm
  9214. directly inside the code, instead of in the function global
  9215. description.
  9216. 2008-01-01 Joel Brobecker <brobecker@adacore.com>
  9217. * ada-valprint.c (ada_val_print_1) [TYPE_CODE_REF]: Ignore deref_ref
  9218. and always print the dereferenced value.
  9219. 2008-01-01 Joel Brobecker <brobecker@adacore.com>
  9220. * ada-lang.c (ada_evaluate_subexp, case BINOP_SUB): Add handling
  9221. of the case where the first argument is a reference.
  9222. (ada_evaluate_subexp, case BINOP_ADD): Likewise.
  9223. 2008-01-01 Joel Brobecker <brobecker@adacore.com>
  9224. Implement support for Ada interface types.
  9225. * ada-lang.c (ada_is_dispatch_table_ptr_type): New function.
  9226. (ada_is_ignored_field): Ignore fields that are a dispatch table
  9227. of a tagged type.
  9228. 2008-01-01 Joel Brobecker <brobecker@adacore.com>
  9229. * top.c (print_gdb_version): Update copyright year.
  9230. 2008-01-01 Joel Brobecker <brobecker@adacore.com>
  9231. * ChangeLog-2007: New ChangeLog rotation.
  9232. * ChangeLog: Reset for 2008.
  9233. * config/djgpp/fnchange.lst: Add entries for ChangeLog-2006 and
  9234. ChangeLog-2007.
  9235. For older changes see ChangeLog-2007.
  9236. Local Variables:
  9237. mode: change-log
  9238. left-margin: 8
  9239. fill-column: 74
  9240. version-control: never
  9241. coding: utf-8
  9242. End: