ChangeLog-2006 174 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731
  1. 2006-12-31 Daniel Jacobowitz <dan@codesourcery.com>
  2. * linux-nat.c (lin_lwp_attach_lwp): Return a status. Do not
  3. add the LWP to our list until we are attached. Warn instead
  4. of erroring if the attach fails.
  5. * linux-nat.h (lin_lwp_attach_lwp): New prototype.
  6. * linux-thread-db.c (attach_thread): Call lin_lwp_attach_lwp
  7. directly. Do not add the thread to our list until we are
  8. successfully attached.
  9. * config/nm-linux.h (lin_lwp_attach_lwp, ATTACH_LWP): Delete.
  10. 2006-12-31 Daniel Jacobowitz <dan@codesourcery.com>
  11. * configure.ac: Add tests for TD_VERSION and TD_NOTLS.
  12. * linux-thread-db.c (thread_db_err_str): Recognize TD_NOTALLOC,
  13. TD_VERSION, and TD_NOTLS.
  14. * configure, config.in: Regenerated.
  15. 2006-12-31 Joel Brobecker <brobecker@adacore.com>
  16. * i386-tdep.c (i386_analyze_stack_align): Add handling of two
  17. other possible code sequences that perform a stack realignment.
  18. 2006-12-31 Mark Kettenis <kettenis@gnu.org>
  19. * sparc64-tdep.h (SPARC64_PSTATE_AG, SPARC64_PSTATE_IE)
  20. (SPARC64_PSTATE_PRIV, SPARC64_PSTATE_AM, SPARC64_PSTATE_PEF)
  21. (SPARC64_PSTATE_RED, SPARC64_PSTATE_TLE, SPARC64_PSTATE_CLE)
  22. (SPARC64_PSTATE_PID0, SPARC64_PSTATE_PID1): New defines.
  23. * sparc64nbsd-nat.c: Include "gdbcore.h".
  24. (sparc64nbsd_supply_pcb): Get %pc from stack if necessary. Supply
  25. processor state register.
  26. * sparc64obsd-tdep.c (sparc64obsd_trapframe_cache)
  27. (sparc64obsd_trapframe_this_id)
  28. (sparc64obsd_trapframe_prev_register)
  29. (sparc64obsd_trapframe_sniffer): New functions.
  30. (sparc64obsd_trapframe_unwind): New variable.
  31. (sparc64obsd_init_abi): Append trapframe unwinder.
  32. * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
  33. 2006-12-30 Daniel Jacobowitz <dan@codesourcery.com>
  34. * infrun.c (handle_inferior_event): Don't call
  35. ENSURE_VFORKING_PARENT_REMAINS_STOPPED.
  36. * target.h (ENSURE_VFORKING_PARENT_REMAINS_STOPPED): Delete.
  37. (RESUME_EXECD_VFORKING_CHILD_TO_GET_PARENT_VFORK): Delete.
  38. 2006-12-29 Mark Kettenis <kettenis@gnu.org>
  39. * sparc-tdep.c (sparc_psr_type, sparc_fsr_type): New variables.
  40. (sparc_init_types): New function.
  41. (sparc32_register_type): Use appropriate flag types for %fsr and
  42. %prs.
  43. (_initialize_sparc_tdep): Call sparc_init_types.
  44. * memory-map.c (memory_map_end_element): Move variable
  45. declarations to the begining of the block.
  46. 2006-12-28 Daniel Jacobowitz <dan@codesourcery.com>
  47. * ia64-tdep.c (get_kernel_table): Correct signedness in check
  48. for a negative return value.
  49. 2006-12-27 Gary Funck <gary@intrepid.com>
  50. * dwarf2read.c (dwarf_attr_name, dwarf_cfi_name)
  51. (dwarf_stack_op_name, dwarf_tag_name)
  52. (dwarf_type_encoding_name): Decode additional DWARF 2
  53. and DWARF 3 codes into their corresponding string names.
  54. * MAINTAINERS (Write After Approval): Add myself.
  55. 2006-12-26 Joel Brobecker <brobecker@adacore.com>
  56. * sparc64-tdep.c (sparc64_extract_return_value): Add handling
  57. for array types.
  58. (sparc64_store_return_value): Likewise.
  59. 2006-12-18 Daniel Jacobowitz <dan@codesourcery.com>
  60. * breakpoint.c (watchpoint_check): Double-check the found frame.
  61. 2006-12-17 Nick Hudson <skrll@netbsd.org>
  62. Mark Kettenis <kettenis@gnu.org>
  63. * i386nbsd-nat.c: Include "nbsd-nat.h".
  64. (_initialize_i386nbsd_nat): Update target vector to use
  65. nbsd_pid_to_exec_file.
  66. * config/i386/nbsdelf.mh (NATDEPFILES): Add nbsd-nat.o.
  67. * config/i386/nbsdaout.mh (NATDEPFILES): Add nbsd-nat.o.
  68. * nbsd-nat.c: New file.
  69. * nbsd-nat.h: New file.
  70. * Makefile.in (ALLDEPFILES): Add nbsd-nat.c.
  71. (nbsd_nat_h): New variable.
  72. (nbsd-nat.o): New dependency.
  73. 2006-12-16 Daniel Jacobowitz <dan@codesourcery.com>
  74. * Makefile.in (ALLDEPFILES): Remove mipsv4-nat.c.
  75. (mipsv4-nat.o): Delete.
  76. * mipsv4-nat.c: Delete.
  77. 2006-12-16 Daniel Jacobowitz <dan@codesourcery.com>
  78. * dve3900-rom.c: Delete file.
  79. * Makefile.in (dve3900-rom.o): Delete.
  80. 2006-12-16 Daniel Jacobowitz <dan@codesourcery.com>
  81. * vx-share/README: Delete file.
  82. 2006-12-16 Mark Kettenis <kettenis@gnu.org>
  83. * i386obsd-nat.c: Include "gdbcore.h", "regcache.h", "target.h",
  84. <machine/frame.h>, <machine/pcb.h>, "i386bsd-nat.h" and
  85. "bsd-kvm.h".
  86. (i386obsd_supply_pcb): New function.
  87. (_initialize_i386obsd_nat): Construct and add target
  88. vector. Enable libkvm interface.
  89. * Makefile.in (i386obsd-nat.o): Update dependencies.
  90. * config/i386/obsd.mh (NATDEPFILES): Remove i386nbsd-nat.c
  91. * sparcobsd-tdep.c: Fix typo.
  92. Add OpenBSD/sh native support.
  93. * NEWS (New native configurations): Mention OpenBSD/sh.
  94. * configure.host: Add sh*-*-openbsd*.
  95. * shnbsd-nat.c: Include "inf-ptrace.h".
  96. (shnbsd_fetch_inferior_registers): Rename from
  97. fetch_inferior_registers. Make static.
  98. (shnbsd_store_inferior_registers): Rename from
  99. store_inferior_registers. Make static.
  100. (_initialize_shnbsd_nat): New function.
  101. * Makefile.in (shnbsd-nat.o): Update dependencies.
  102. * config/sh/nbsd.mh (NAT_CLIBS, NAT_FILE): Remove.
  103. (NATDEPFILES): Remove infptrace.o and inftarg.o. Add
  104. inf-ptrace.o.
  105. Add OpenBSD/sh support.
  106. * NEWS (New targets): Mention OpenBSD/sh.
  107. * configure.tgt: Add sh*-*-openbsd*.
  108. * shnbsd-tdep.c (_initialize_shnbsd_tdep): Register handler for
  109. GDB_OSABI_OPENBSD_ELF.
  110. * config/sh/obsd.mt: New file.
  111. * ppcnbsd-tdep.c: Fix typo in comment.
  112. 2006-12-15 Mark Kettenis <kettenis@gnu.org>
  113. * remote-fileio.c (remote_fileio_mode_to_target): Use
  114. S_ISREG/S_ISDIR/S_ISCHR macros instead of S_IFREG/S_IFDIR/S_IFCHR.
  115. 2006-12-15 Daniel Jacobowitz <dan@codesourcery.com>
  116. * breakpoint.c (insert_bp_location): Add newline to note.
  117. 2006-12-15 Alan Modra <amodra@bigpond.net.au>
  118. * spu-linux-nat.c (spu_bfd_iovec_stat): New function.
  119. (spu_bfd_open): Adjust bfd_openr_iovec call.
  120. 2006-12-13 Jim Blandy <jimb@codesourcery.com>
  121. * value.c (value_copy): Copy the full 'location' contents, instead
  122. of assuming that copying ADDRESS will bring over everything in the
  123. union.
  124. 2006-12-13 Markus Deuling <deuling@de.ibm.com>
  125. * spu-tdep.c (spu_init_vector_type): New function.
  126. (spu_builtin_type_vec128.): New static variable.
  127. (spu_register_type): Return spu_builtin_type_vec128 as default.
  128. (_initialize_spu_tdep): Call spu_init_vector_type.
  129. 2006-12-09 Corinna Vinschen <vinschen@redhat.com>
  130. * win32-nat.c (env_sort): Remove.
  131. (win32_create_inferior): Remove code which creates a Windows
  132. environment. Use Cygwin function call instead. Propagate
  133. current environment to inferior process.
  134. 2006-12-09 Nick Roberts <nickrob@snap.net.nz>
  135. * varobj.c (varobj_update): Ensure frame is restored when
  136. variable object is out of scope.
  137. 2006-12-08 Eli Zaretskii <eliz@gnu.org>
  138. * MAINTAINERS: Clarify the meaning of an ``obvious fix'' in the
  139. docs.
  140. 2006-12-08 Vladimir Prus <vladimir@codesourcery.com>
  141. * varobj.c (varobj_create): Don't call release_value.
  142. (varobj_set_value): Likewise.
  143. (install_new_value): Call coerce_ref and release_value
  144. on the value. Add asserts.
  145. 2006-12-08 Nick Roberts <nickrob@snap.net.nz>
  146. * mi/mi-cmd-var.c (mi_cmd_var_update): Fix memory leak.
  147. 2006-12-06 Jim Blandy <jimb@codesourcery.com>
  148. * gdbtypes.c: Revert 2006-12-05 change, and explain why.
  149. 2006-12-06 Andrew Stubbs <andrew.stubbs@st.com>
  150. * event-top.c (command_handler): On EOF, print 'quit' and run quit
  151. command via execute_command such that hooks and trace work.
  152. * utils.c (defaulted_query): On EOF, print default answer and newline.
  153. 2006-12-06 Vladimir Prus <vladimir@codesourcery.com>
  154. * varobj.c (cplus_value_of_child): When accessing
  155. base suboject, don't specially process references.
  156. 2006-12-05 Adam Nemet <anemet@caviumnetworks.com>
  157. * MAINTAINERS (Write After Approval): Add myself.
  158. 2006-12-05 Jim Blandy <jimb@codesourcery.com>
  159. * gdbtypes.c (built_gdbtypes): Don't set builtin_type_void here.
  160. (_initialize_gdbtypes): Do it here, and don't swap it when the
  161. architecture changes.
  162. 2006-12-05 Daniel Jacobowitz <dan@codesourcery.com>
  163. * cp-valprint.c, p-valprint.c: Revert last change.
  164. 2006-12-05 Daniel Jacobowitz <dan@codesourcery.com>
  165. * NEWS: Mention MIPS remote autodetection, mips64 gdbserver,
  166. "set mem inaccessible-by-default", and "set breakpoint auto-hw".
  167. 2006-12-05 H.J. Lu <hongjiu.lu@intel.com>
  168. * cp-valprint.c (cp_print_value_fields): Initialize tmp_obstack.
  169. (cp_print_value): Likewise.
  170. * p-valprint.c (pascal_object_print_value_fields): Likewise.
  171. (pascal_object_print_value): Likewise.
  172. 2006-12-05 Adam Nemet <anemet@caviumnetworks.com>
  173. * target.c (debug_to_remove_watchpoint): Call
  174. to_remove_watchpoint. Print target_remove_watchpoint.
  175. 2006-12-01 Daniel Jacobowitz <dan@codesourcery.com>
  176. * elfread.c (elf_symtab_read): Treat weak functions as global.
  177. 2006-11-30 Jim Blandy <jimb@codesourcery.com>
  178. * ada-lang.c (value_subscript_packed): Don't bother to set the
  179. lvalue type of the returned value here;
  180. ada_value_primitive_packed_val takes care of that.
  181. 2006-11-30 Nick Roberts <nickrob@snap.net.nz>
  182. * mi/mi-cmd-var.c (mi_cmd_var_list_children): Remove unused
  183. variable.
  184. 2006-07-29 Vladimir Prus <vladimir@codesourcery.com>
  185. * mi/mi-cmd-var.c (print_varobj): New function.
  186. (mi_cmd_var_create): Use the above.
  187. (mi_cmd_var_list_children): Likewise.
  188. 2006-07-29 Vladimir Prus <vladimir@codesourcery.com>
  189. * MAINTAINERS (Write After Approval): Add myself.
  190. 2006-11-29 Andrew Stubbs <andrew.stubbs@st.com>
  191. * solib.c (solib_open): Treat bare file names as relative paths.
  192. 2006-11-29 Vladimir Prus <vladimir@codesourcery.com>
  193. * varobj.c (varobj_set_value): Don't compare the old
  194. and the new value here. Don't assign new value here.
  195. Instead, call install_new_value.
  196. 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
  197. * regformats/reg-mips64.dat: New file.
  198. 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
  199. * Makefile.in (mips-tdep.o, target-descriptions.o): Update.
  200. * target-descriptions.c (struct property): New.
  201. (struct target_desc): Add properties member.
  202. (tdesc_property, set_tdesc_property): New.
  203. * target-descriptions.h (tdesc_property, set_tdesc_property):
  204. Declare.
  205. * mips-tdep.c (PROPERTY_GP32, PROPERTY_GP64): New constants.
  206. (struct gdbarch_tdep): Add register_size_valid_p and register_size.
  207. (mips_isa_regsize): Use them.
  208. (mips_register_g_packet_guesses): New.
  209. (mips_gdbarch_init): Call it. If a target description is supplied,
  210. check for internal properties. Check for register size mismatches.
  211. * remote.c (send_g_packet, process_g_packet): New functions, split
  212. out from fetch_registers_using_g.
  213. (fetch_registers_using_g): Use them.
  214. (struct remote_g_packet_guess, remote_g_packet_guess_s)
  215. (struct remote_g_packet_data, remote_g_packet_data_handle)
  216. (remote_g_packet_data_init, register_remote_g_packet_guess)
  217. (remote_read_description): New.
  218. (init_remote_ops, init_remote_async_ops): Set to_read_description.
  219. (_initialize_remote): Register remote_g_packet_data_handle.
  220. * remote.h (register_remote_g_packet_guess): Declare.
  221. 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
  222. * Makefile.in (SFILES): Add new and missed files.
  223. (target_descriptions_h): New.
  224. (COMMON_OBS): Add target-descriptions.o.
  225. (arch-utils.o, infcmd.o, remote.o, target.o): Update.
  226. (target-descriptions.o): New.
  227. * arch-utils.c (gdbarch_info_fill): Check for a target
  228. description.
  229. * target-descriptions.c, target-descriptions.h: New files.
  230. * gdbarch.sh: Add target_desc to info. Declare it in gdbarch.h.
  231. Correct typos.
  232. (gdbarch_list_lookup_by_info): Check target_desc.
  233. * gdbarch.c, gdbarch.h: Regenerated.
  234. * target.c (update_current_target): Mention to_read_description.
  235. (target_pre_inferior): Call target_clear_description.
  236. (target_read_description): New.
  237. * target.h (struct target_ops): Add to_read_description.
  238. (target_read_description): New prototype.
  239. * infcmd.c (post_create_inferior): Call target_find_description.
  240. * remote.c (remote_open_1): Likewise.
  241. (extended_remote_create_inferior): Add a comment.
  242. (extended_remote_async_create_inferior): Likewise.
  243. 2006-11-29 Nick Roberts <nickrob@snap.net.nz>
  244. * linux-thread-db.c: Include <signal.h>.
  245. 2006-11-28 Ulrich Weigand <uweigand@de.ibm.com>
  246. * config/tm-linux.h: Delete file.
  247. * config/alpha/alpha-linux.mt (DEPRECATED_TM_FILE): Set to tm-alpha.h.
  248. * config/alpha/tm-alphalinux.h: Delete file.
  249. * config/arm/linux.mt (DEPRECATED_TM_FILE): Set to tm-arm.h
  250. * config/arm/tm-linux.h: Delete file.
  251. * config/i386/tm-linux.h: Do not include "config/tm-linux.h".
  252. * config/ia64/tm-linux.h: Do not include "config/tm-linux.h".
  253. * config/m32r/linux.mt (DEPRECATED_TM_FILE): Remove.
  254. * config/mips/tm-linux.h: Do not include "config/tm-linux.h".
  255. * config/pa/linux.mt (DEPRECATED_TM_FILE): Set to tm-hppa.h.
  256. * config/pa/tm-linux.h: Delete file.
  257. * config/powerpc/tm-linux.h: Do not include "config/tm-linux.h".
  258. * config/s390/linux.mt (DEPRECATED_TM_FILE): Remove.
  259. * config/sh/linux.mt (DEPRECATED_TM_FILE): Set to tm-sh.h.
  260. * config/sh/tm-linux.h: Delete file.
  261. * alpha-linux-tdep.c: Include "symtab.h".
  262. (alpha_linux_init_abi): Call set_gdbarch_skip_trampoline_code.
  263. * i386-linux-tdep.c: Include "symtab.h".
  264. (i386_linux_init_abi): Call set_gdbarch_skip_trampoline_code.
  265. * ia64-linux-tdep.c: Include "symtab.h".
  266. (ia64_linux_init_abi): Call set_gdbarch_skip_trampoline_code.
  267. * m32r-linux-tdep.c: Include "symtab.h".
  268. (m32r_linux_init_abi): Call set_gdbarch_skip_trampoline_code.
  269. * mips-linux-tdep.c: Include "symtab.h".
  270. (mips_linux_init_abi): Call set_gdbarch_skip_trampoline_code.
  271. * sh-linux-tdep.c: Include "symtab.h".
  272. (sh_linux_init_abi): Call set_gdbarch_skip_trampoline_code.
  273. * s390-tdep.c (s390_gdbarch_init): Call
  274. set_gdbarch_skip_trampoline_code.
  275. * s390-nat.c: Do not include "tm.h".
  276. * Makefile.in (alpha-linux-tdep.o): Add dependency on $(symtab_h).
  277. (i386-linux-tdep.o): Likewise.
  278. (ia64-linux-tdep.o): Likewise.
  279. (m32r-linux-tdep.o): Likewise.
  280. (mips-linux-tdep.o): Likewise.
  281. (sh-linux-tdep.o): Likewise.
  282. (s390-nat.o): Remove dependency on $(tm_h).
  283. 2006-11-28 Ulrich Weigand <uweigand@de.ibm.com>
  284. * config/nm-linux.h: Do not include <signal.h>.
  285. (REALTIME_LO, REALTIME_HI): Do not define.
  286. * signals/signals.c (REALTIME_HI): Fix off-by-one bug.
  287. 2006-11-28 Vladimir Prus <vladimir@codesourcery.com>
  288. * mi/mi-cmd-var.c (mi_cmd_var_create): Fix cleanup
  289. handlers. Free expression.
  290. 2006-11-28 Ulrich Weigand <uweigand@de.ibm.com>
  291. * config/tm-linux.h (REALTIME_LO, REALTIME_HI): Do not define.
  292. * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Likewise.
  293. * config/rs6000/tm-rs6000ly.h (REALTIME_LO, REALTIME_HI): Move to ...
  294. * config/nm-lynx.h (REALTIME_LO, REALTIME_HI): ... here.
  295. * config/i386/nto.mh (NAT_FILE): Define.
  296. * config/i386/nto.mt (DEPRECATED_TM_FILE): Remove.
  297. * config/i386/tm-nto.h: Delete file.
  298. * config/tm-nto.h: Delete file.
  299. * config/nm-nto.h: New file.
  300. * Makefile.in (nto-tdep.o): Add dependency on $(objfiles_h).
  301. * nto-tdep.c: Include "objfiles.h" and <string.h>.
  302. * coff-solib.h (SOLIB_UNLOADED_LIBRARY_PATHNAME): Define as "".
  303. * xcoffread.c (read_xcoff_symtab): Initialize fcn_stab_saved.
  304. * config/rs6000/rs6000lynx.mt (TDEPFILES): Add xcoffread.o.
  305. 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
  306. * dwarf2-frame.c (decode_frame_entry_1): Skip unknown augmentations
  307. without skipping the CIE.
  308. 2006-11-28 Vladimir Prus <vladimir@codesourcery.com>
  309. Fetch varobj values from memory in a single place,
  310. and only fetch the values that are really needed.
  311. * varobj.c (struct varobj): Clarify comment.
  312. (my_value_equal): Remove.
  313. (install_new_value): New function.
  314. (type_of_child): Remove.
  315. (varobj_create): Use install_new_value.
  316. (varobj_set_value): Use value_contents_equal, not
  317. my_value_equal.
  318. (varobj_update): Use install_new_value.
  319. (create_child): Likewise. Inline type_of_child here.
  320. (value_of_child): Don't fetch the value.
  321. (c_value_of_root): Likewise.
  322. (c_value_of_variable): Likewise.
  323. (type_changeable): Improve comments.
  324. 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
  325. * remote.c (struct remote_arch_state): Doc fix.
  326. (compare_pnums): New function.
  327. (init_remote_state): Only allocate packet_reg structures for raw
  328. registers. Define the g/G packet format separately from creating
  329. packet_reg. Don't use DEPRECATED_REGISTER_BYTE.
  330. (packet_reg_from_regnum, packet_reg_from_pnum): Only iterate over
  331. raw registers.
  332. (register_bytes_found): Delete.
  333. (fetch_register_using_p): Take a struct packet_reg. Handle disabled
  334. 'p' packet here. Use packet_ok.
  335. (fetch_registers_using_g): New function, split out of
  336. remote_fetch_registers. Check the 'g' packet more strictly. Save
  337. its actual size and contents. Eliminate BUF. Only iterate over
  338. raw registers.
  339. (remote_fetch_registers): Use the new functions for 'p' and 'g'.
  340. Mark unavailable registers.
  341. (store_register_using_P): Likewise to fetch_register_using_p.
  342. (store_registers_using_G): New function, split out of
  343. remote_store_registers. Only iterate over raw registers. Don't
  344. use register_bytes_found.
  345. (remote_store_registers): Likewise to remote_fetch_registers.
  346. 2006-11-28 Pedro Alves <pedro_alves@portugalmail.pt>
  347. * coffread.c (cs_to_bfd_section): New function.
  348. (cs_to_section): Use cs_to_bfd_section.
  349. (record_minimal_symbol): Take the coff_symbol* parameter instead
  350. of the symbol's name as a char*.
  351. Add 'int section' parameter. Call prim_record_minimal_symbol_and_info
  352. instead of prim_record_minimal_symbol_and_info.
  353. Change return type to struct minimal_symbol *.
  354. (coff_symtab_read): Adapt to new record_minimal_symbol's signature.
  355. Make all minimal symbol creations go through record_minimal_symbol.
  356. 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
  357. * symtab.c (find_pc_sect_line): Do not return a line before
  358. the start of a symtab.
  359. 2006-11-24 Ulrich Weigand <uweigand@de.ibm.com>
  360. * NEWS: SPU target is already supported in GDB 6.6.
  361. 2006-11-24 Ulrich Weigand <uweigand@de.ibm.com>
  362. * Makefile.in (mips-linux-tdep.o) Add $(solib_h) dependency.
  363. (nto-procfs.o): Likewise.
  364. * mips-linux-tdep.c: Include "solib.h".
  365. * nto-procfs.c: Likewise.
  366. * config/nm-linux.h: Do not include "solib.h".
  367. * config/nm-nbsd.h: Likewise.
  368. * config/tm-linux.h: Likewise.
  369. * config/alpha/nm-osf.h: Likewise.
  370. * config/frv/tm-frv.h: Likewise.
  371. * config/i386/nm-fbsh.h: Likewise.
  372. * config/i386/nm-i386gnu.h: Likewise.
  373. * config/i386/nm-i386sco5.h: Likewise.
  374. * config/i386/nm-i386sol2.h: Likewise.
  375. * config/i386/nm-i386v4.h: Likewise.
  376. * config/i386/nm-i386v42mp.h: Likewise.
  377. * config/i386/tm-i386sol2.h: Likewise.
  378. * config/i386/tm-nto.h: Likewise.
  379. * config/mips/nm-irix5.h: Likewise.
  380. * config/mips/tm-nbsd.h: Likewise.
  381. * config/pa/tm-hppah.h: Likewise.
  382. * config/powerpc/tm-ppc-eabi.h: Likewise.
  383. * config/rs6000/tm-rs6000.h: Likewise.
  384. * config/sh/tm-nbsd.h: Likewise.
  385. * config/sparc/nm-sol2.h: Likewise.
  386. * config/sparc/tm-sol2.h: Likewise.
  387. * config/arm/nbsdaout.mh: Remove NAT_FILE.
  388. * config/i386/nbsdaout.mh: Likewise.
  389. * config/i386/nbsdelf.mh: Likewise.
  390. * config/i386/obsdaout.mh: Likewise.
  391. * config/m68k/nbsdaout.mh: Likewise.
  392. * config/m68k/obsd.mh: Likewise.
  393. * config/sparc/nbsdaout.mh: Likewise.
  394. * config/cris/cris.mt: Remove DEPRECATED_TM_FILE.
  395. * config/i386/linux64.mt: Likewise.
  396. * config/m68k/linux.mt: Likewise.
  397. * config/m68k/nbsd.mt: Likewise.
  398. * config/sparc/linux.mt: Likewise.
  399. * config/sparc/linux64.mt: Likewise.
  400. * config/vax/nbsd.mt: Likewise.
  401. 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
  402. * NEWS: New port to Cell Broadband Engine SPU.
  403. * MAINTAINERS: Add myself as spu maintainer.
  404. 2006-11-22 Daniel Jacobowitz <dan@codesourcery.com>
  405. * Makefile.in (arm-tdep.o): Update dependencies.
  406. * arm-tdep.c (thumb_skip_prologue): Remove.
  407. (thumb_analyze_prologue): New function.
  408. (arm_skip_prologue): Use thumb_analyze_prologue.
  409. (thumb_scan_prologue): Ditto.
  410. 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
  411. * configure.tgt: Enable gdbserver for SPU target.
  412. * configure.ac: Build gdbserver when gdb_native is yes.
  413. * configure: Regenerate.
  414. * regformats/reg-spu.dat: New file.
  415. 2006-11-22 Daniel Jacobowitz <dan@codesourcery.com>
  416. * osabi.c (gdbarch_lookup_osabi): Do not return
  417. GDB_OSABI_UNINITIALIZED.
  418. 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
  419. * config/powerpc/spu-linux.mh: New file.
  420. * config/spu/spu.mt: New file.
  421. * configure.ac: Provide gdb_native configuration variable.
  422. * configure: Regenerate.
  423. * configure.host: Support powerpc64 to spu 'pseudo-native' mode.
  424. * configure.tgt: Add "spu" target_cpu and "spu*-*-*" target.
  425. * Makefile.in (spu_tdep_h): New variable.
  426. (ALLDEPFILES): Add spu-linux-nat.c and spu-tdep.c
  427. (spu-linux-nat.o, spu-tdep.o): Add dependencies.
  428. * spu-linux-nat.c: New file.
  429. * spu-tdep.c: New file.
  430. * spu-tdep.h: New file.
  431. 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
  432. * findvar.c (address_from_register): New function.
  433. * value.h (address_from_register): Add prototype.
  434. * dwarf2loc.c (dwarf_expr_read_reg): Use address_from_register.
  435. 2006-11-22 Vladimir Prus <vladimir@codesourcery.com>
  436. * breakpoint.c: Include "memattr.h".
  437. (automatic_hardware_breakpoints): New.
  438. (show_automatic_hardware_breakpoints): New.
  439. (insert_bp_location): Automatically use
  440. hardware breakpoints.
  441. (_initialize_breakpoint): Register the "auto-hw"
  442. variable.
  443. * Makefile.in (breakpoint.o): Update dependencies.
  444. 2006-11-21 Vladimir Prus <vladimir@codesourcery.com>
  445. * memattr.h (enum mem_access_mode): New value
  446. MEM_NONE.
  447. * memattr.c (unknown_mem_attrib): New.
  448. (inaccessible_by_default): New.
  449. (show_inaccessible_by_default): New.
  450. (lookup_mem_region): Check inaccessible_by_default.
  451. (dummy_cmd): New.
  452. (mem_set_cmdlist, mem_show_cmdlist): New.
  453. (_initialize_mem): Register new "set" and "show"
  454. commands.
  455. * target.c (memory_xfer_partial): If memory type
  456. is MEM_NONE, return an error.
  457. Clip to region size when calling to_xfer_partial.
  458. If upper limit of memory range is 0, don't clip
  459. anything.
  460. 2006-11-20 Joel Brobecker <brobecker@adacore.com>
  461. * README: Remove obsolete information.
  462. 2006-11-20 Andrew Cagney <cagney@redhat.com>
  463. * linux-nat.h: Refer to GNU/Linux or Linux kernel.
  464. * linux-nat.c (lin_lwp_attach_lwp, linux_nat_thread_alive): Ditto.
  465. * infcmd.c (attach_command): Ditto.
  466. * hppa-linux-tdep.c (hppa_linux_regset): Ditto.
  467. * mn10300-linux-tdep.c: Ditto. Update copyright year.
  468. * frv-linux-tdep.c: Ditto. Update copyright year.
  469. 2006-11-19 Joel Brobecker <brobecker@adacore.com>
  470. * NEWS: Add a new section for changes since GDB 6.6. Rename
  471. the section "Changes since GDB 6.5" into "Changes in GDB 6.6".
  472. Move a couple of items into the new section as they did not
  473. make it to 6.6.
  474. 2006-11-19 Joel Brobecker <brobecker@adacore.com>
  475. GDB 6.6 branch created (branch timestamp: 2006-11-15 12:00)
  476. * version.in: Bump version to 6.6.50.20061119-cvs.
  477. 2006-11-18 Pedro Alves <pedro_alves@portugalmail.pt>
  478. * prologue-value.c (clear_entries): Fix memory leak.
  479. 2006-11-18 Pedro Alves <pedro_alves@portugalmail.pt>
  480. * parse.c (write_exp_msymbol): Check SYMBOL_BFD_SECTION before
  481. dereferencing it.
  482. 2006-11-17 Daniel Jacobowitz <dan@codesourcery.com>
  483. * utils.c (string_to_core_addr): Use error instead of
  484. internal_error.
  485. * mi/mi-main.c (mi_execute_command): Check for a NULL message.
  486. 2006-11-17 Daniel Jacobowitz <dan@codesourcery.com>
  487. * NEWS: Mention QPassSignals.
  488. 2006-11-16 Maxim Grigoriev <maxim2405@gmail.com>
  489. * MAINTAINERS (Responsible Maintainers): Add myself for Xtensa.
  490. (Write After Approval): Add myself.
  491. 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
  492. * remote.c (PACKET_QPassSignals): New.
  493. (last_pass_packet, remote_pass_signals): New.
  494. (remote_protocol_features): Add QPassSignals.
  495. (remote_query_supported): Correct an infinite loop.
  496. (remote_open_1): Reset last_pass_packet.
  497. (remote_resume): Call remote_pass_signals.
  498. (_initialize_remote): Register "set remote pass-signals".
  499. 2006-11-14 Maxim Grigoriev <maxim@tensilica.com>
  500. * NEWS: New port to Xtensa.
  501. * Makefile.in: Add dependencies for Xtensa files.
  502. * configure.tgt (xtensa*, xtensa*-*-elf*): New.
  503. * configure.host (xtensa*-*-elf*): New.
  504. * config/xtensa/xtensa.mt: New file.
  505. * xtensa-config.c: New file.
  506. * xtensa-tdep.h: New file.
  507. * xtensa-tdep.c: New file.
  508. 2006-11-14 Daniel Jacobowitz <dan@codesourcery.com>
  509. * remote.c (set_remote_cmd): Call help_list.
  510. (show_remote_cmd): Skip legacy aliases. Handle non-show_cmd
  511. entries. Add missed cleanup.
  512. * cli/cli-setshow.c (cmd_show_list): Handle non-show_cmd entries.
  513. 2006-11-13 Paul Gilliam <pgilliam@us.ibm.com>
  514. * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Don't futz with
  515. the floating point registers if there aren't any.
  516. 2006-11-12 Ben Harris <bjh21@NetBSD.org>
  517. * arm-tdep.c (arm_unwind_pc): Use arm_addr_bits_remove.
  518. 2006-11-10 Daniel Jacobowitz <dan@codesourcery.com>
  519. * frame.c (frame_register_unwind_location): New function.
  520. (get_prev_frame_1): Check for UNWIND_NO_SAVED_PC.
  521. (frame_stop_reason_string): Handle UNWIND_NO_SAVED_PC.
  522. * frame.h (enum unwind_stop_reason): Add UNWIND_NO_SAVED_PC.
  523. 2006-11-10 Daniel Jacobowitz <dan@codesourcery.com>
  524. * arch-utils.c (target_byte_order_user): Renamed from
  525. target_byte_order.
  526. (target_byte_order_auto, selected_byte_order): Removed.
  527. (show_endian): Check target_byte_order_user.
  528. (set_endian): Always update the architecture. Set
  529. target_byte_order_user after success.
  530. (target_architecture_auto): Removed.
  531. (target_architecture_user): New.
  532. (selected_architecture_name, show_architecture): Check it.
  533. (set_architecture): Set target_architecture_user after success.
  534. (gdbarch_from_bfd): Check the argument.
  535. (default_byte_order): New.
  536. (initialize_current_architecture): Set the global default
  537. architecture and endianness.
  538. (gdbarch_info_fill): Remove GDBARCH argument. Do not check the
  539. previous architecture. Use exec_bfd, global selected architecture
  540. and endianness, and global defaults.
  541. * arch-utils.h (selected_byte_order): Remove prototype.
  542. (gdbarch_info_fill): Update.
  543. * exec.c (exec_file_attach): Update the architecture after removing
  544. the current file.
  545. * gdbarch.sh: Update comments.
  546. (find_arch_by_info): Remove OLD_GDBARCH argument. Update call to
  547. gdbarch_info_fill.
  548. (gdbarch_find_by_info): Update call to find_arch_by_info.
  549. * gdbarch.h, gdbarch.c: Regenerated.
  550. * remote-sim.c (gdbsim_open): Use TARGET_BYTE_ORDER.
  551. 2006-11-09 Joel Brobecker <brobecker@adacore.com>
  552. * sparc-tdep.c (sparc_fetch_instruction): Read instruction
  553. using read_memory_nobpt.
  554. 2006-11-06 Jim Blandy <jimb@codesourcery.com>
  555. * dwarf2loc.c (dwarf_expr_read_reg): Use frame_register_read
  556. instead of frame_register. Doc fix.
  557. 2006-11-04 Vladimir Prus <vladimir@codesourcery.com>
  558. * serial.c (serial_open): Strip leading spaces from program
  559. name when opening pipe.
  560. 2006-11-03 Jim Blandy <jimb@codesourcery.com>
  561. * dwarf2loc.c (dwarf_expr_read_reg): Use frame_unwind_register
  562. instead of frame_register. Doc fix.
  563. 2006-11-02 Daniel Jacobowitz <dan@codesourcery.com>
  564. * dwarf2read.c (struct dwarf2_per_cu_data): Update comment.
  565. (load_full_comp_unit): Take OBJFILE argument and use it.
  566. (dwarf2_build_psymtabs_hard): Skip partial units.
  567. (process_queue): Pass OBJFILE to load_full_comp_unit. Check
  568. type_hash for read in CUs. Test psymtab for NULL.
  569. 2006-11-02 Daniel Jacobowitz <dan@codesourcery.com>
  570. * arm-tdep.c (arm_gdbarch_init): Handle EF_ARM_EABI_VER5.
  571. 2006-10-31 Vladimir Prus <vladimir@codesourcery.com>
  572. * commands.h (enum command_class): Use different
  573. values for class_deprecated and class_run.
  574. * cli/cli-decode.c: (print_help_for_command): New.
  575. (apropos_cmd): Use the above.
  576. (help_list): Mention 'help all'
  577. and 'apropos' when printing top-level help.
  578. (help_all): Print the class name before printing
  579. commands in that class. Don't print prefix commands
  580. here, instead pass recurse flag to help_cmd_list.
  581. Print list of unclassified commands at the end.
  582. (help_cmd_list): When recursing, use all_commands class.
  583. Recurse only if the class of the command matches.
  584. 2006-10-27 Andreas Schwab <schwab@suse.de>
  585. * gdbcmd.h (detachlist): Declare.
  586. * infcmd.c (_initialize_infcmd): Define "detach" as prefix
  587. command.
  588. * linux-fork.c (_initialize_linux_fork): Rename
  589. "detach-checkpoint" to "detach checkpoint" and "detach-fork" to
  590. "detach fork".
  591. * cli/cli-cmds.c (detachlist): Define.
  592. (init_cmd_lists): Initialize it.
  593. * cli/cli-cmds.h (detachlist): Declare.
  594. 2006-10-25 Jim Blandy <jimb@codesourcery.com>
  595. * p-valprint.c (pascal_object_print_value): Add 'static' keyword
  596. to function definition, to match declaration earlier in file.
  597. 2006-10-21 Paul Brook <paul@codesourcery.com>
  598. * remote.c (remote_fetch_registers): Fix error message.
  599. 2006-10-20 Daniel Jacobowitz <dan@codesourcery.com>
  600. * gcore.c (MAX_COPY_BYTES): Define.
  601. (gcore_copy_callback): Use it to limit allocation.
  602. 2006-10-19 Ulrich Weigand <uweigand@de.ibm.com>
  603. * linux-thread-db.c (check_for_thread_db): Don't attempt to use
  604. thread_db for remote targets.
  605. * remote.c (remote_new_objfile): Always call predecessor on
  606. new_objfile event chain.
  607. 2006-10-19 Joel Brobecker <brobecker@adacore.com>
  608. * solib.c (libpthread_solib_p): New function.
  609. (solib_add): Always read the symbols from the libpthread library.
  610. 2006-10-19 Andrew Stubbs <andrew.stubbs@st.com>
  611. * breakpoint.c (describe_other_breakpoints): Add thread parameter.
  612. Annotate display with thread number where appropriate.
  613. (create_breakpoints): Add thread parameter to call to
  614. describe_other_breakpoints.
  615. 2006-10-18 Jim Blandy <jimb@codesourcery.com>
  616. Daniel Jacobowitz <dan@codesourcery.com>
  617. * utils.c (query): Use defaulted_query.
  618. (defaulted_query): Handle having no default answer. Print out
  619. messages even if we have no terminal. Prevent memory corruption.
  620. 2006-10-18 Daniel Jacobowitz <dan@codesourcery.com>
  621. * frame.c (struct frame_info): Add stop_reason.
  622. (get_prev_frame_1): Set stop_reason. Don't call error for
  623. stop reasons.
  624. (get_frame_unwind_stop_reason, frame_stop_reason_string): New.
  625. * frame.h (enum unwind_stop_reason): New.
  626. (get_frame_unwind_stop_reason, frame_stop_reason_string): New
  627. prototypes.
  628. * stack.c (frame_info): Print the stop reason.
  629. (backtrace_command_1): Print the stop reason for errors.
  630. 2006-10-18 Daniel Jacobowitz <dan@codesourcery.com>
  631. * inferior.h (start_remote): Update prototype.
  632. * infrun.c (start_remote): Take FROM_TTY. Call
  633. post_create_inferior.
  634. * monitor.c (monitor_open): Update call to start_remote.
  635. * remote-sds.c (sds_start_remote, sds_open): Likewise.
  636. * remote.c (remote_start_remote): Likewise.
  637. (remote_start_remote_dummy): Removed.
  638. (remote_open): Update call to remote_start_remote. Do not call
  639. post_create_inferior here.
  640. 2006-10-18 Daniel Jacobowitz <dan@codesourcery.com>
  641. * solib-svr4.c (debug_loader_offset_p, debug_loader_offset)
  642. (debug_loader_name, svr4_default_sos): New.
  643. (svr4_current_sos): Call svr4_default_sos.
  644. (enable_break): Add a comment about AT_BASE. Set the new
  645. variables and retry solib_add.
  646. (svr4_clear_solib): Clear the new variables.
  647. 2006-10-18 Daniel Jacobowitz <dan@codesourcery.com>
  648. * NEWS: Mention support for TLS without debugging information.
  649. 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
  650. * remote-sim.c (gdbsim_kill): Call target_mourn_inferior.
  651. (gdbsim_load): Don't bother to adjust inferior_ptid here.
  652. (gdbsim_create_inferior): Mark the simulator as running.
  653. (gdbsim_open): Don't bother fetching registers. Mark
  654. the target as not running.
  655. (gdbsim_xfer): When the program is not running, pass memory
  656. requests down.
  657. (gdbsim_mourn_inferior): Mark the target as not running.
  658. * target.c (target_mark_running, target_mark_exited): New.
  659. * target.h (target_has_execution): Update the comment.
  660. (target_mark_running, target_mark_exited): New prototypes.
  661. 2006-10-17 Joel Brobecker <brobecker@adacore.com>
  662. * breakpoint.c (free_valchain): Minor reformatting.
  663. 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
  664. * solib-svr4.c (LM_ADDR_CHECK): Suggest shared library mismatch.
  665. 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
  666. * Makefile.in (symtab.o): Update.
  667. * symtab.h (matching_bfd_sections): New prototype.
  668. * symtab.c (matching_bfd_sections): New.
  669. (find_pc_sect_psymbol, find_pc_sect_symtab): Use it.
  670. * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
  671. * printcmd.c (sym_info): Ignore separate debug objfiles.
  672. 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
  673. * remote.c (remote_pid_to_str): Capitalize "Thread".
  674. 2006-10-15 Daniel Jacobowitz <dan@codesourcery.com>
  675. PR remote/2158
  676. * remote.c (remote_write_bytes): Throttle packet alignment
  677. for small packets.
  678. 2006-10-16 Jeff Johnston <jjohnstn@redhat.com>
  679. * linux-thread-db.c (thread_db_wait): Don't bother continuing if
  680. the wait result indicates the program terminated with a
  681. signal (from gdb-6.3-ia64-sigill-20051115.patch, a patch for
  682. Fedora Core 5).
  683. 2006-10-11 Daniel Jacobowitz <dan@codesourcery.com>
  684. * dwarf2read.c (dwarf_decode_lines): Call record_line upon
  685. encountering a different subfile.
  686. 2006-10-11 Denis Pilat <denis.pilat@st.com>
  687. * tui/tui-source.c (tui_set_source_content): handle source
  688. files that contain non unix end-of-line.
  689. 2006-10-10 Daniel Jacobowitz <dan@codesourcery.com>
  690. * ser-mingw.c (free_pipe_state, pipe_wait_handle): Update
  691. for changes to pipe_select_thread.
  692. (pipe_done_wait_handle): New.
  693. (_initialize_ser_windows): Reference it.
  694. 2006-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
  695. Daniel Jacobowitz <dan@codesourcery.com>
  696. * Makefile.in (expprint.o, parse.o, target.o): Update.
  697. * dwarf2loc.c (dwarf_expr_tls_address): Move body to
  698. target_translate_tls_address. Call it.
  699. * eval.c (evaluate_subexp_standard): Handle UNOP_MEMVAL_TLS.
  700. * expprint.c (print_subexp_standard): Likewise.
  701. (op_name_standard, dump_subexp_body_standard): Likewise.
  702. * expression.h (enum exp_opcode): Add UNOP_MEMVAL_TLS.
  703. (union exp_element): Add objfile.
  704. * parse.c (write_exp_elt_objfile): New function.
  705. (msym_tls_symbol_type): New.
  706. (write_exp_msymbol): Handle TLS.
  707. (operator_length_standard): Handle UNOP_MEMVAL_TLS.
  708. (build_parse): Initialize msym_tls_symbol_type.
  709. * parser-defs.h (write_exp_elt_objfile): New prototype.
  710. * target.c (target_translate_tls_address): New.
  711. * target.h (target_translate_tls_address): Add prototype.
  712. 2006-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
  713. * solib.c (solib_open): Handle an empty solib_absolute_prefix like a
  714. missing one.
  715. 2006-10-09 Daniel Jacobowitz <dan@codesourcery.com>
  716. * solib.c (solib_read_symbols): Stop if the file was not found.
  717. 2006-10-09 Paul Pluzhnikov <ppluzhnikov@charter.net>
  718. PR c++/2116
  719. * valops.c (find_overload_match): Check for a NULL name.
  720. 2006-10-06 Joel Brobecker <brobecker@adacore.com>
  721. Fix PR symtab/2018
  722. * dwarf2read.c (read_array_type): Set the type name if the name
  723. attribute is present.
  724. 2006-10-05 Joel Brobecker <brobecker@adacore.com>
  725. * blockframe.c (block_innermost_frame): Rewrite frame search logic.
  726. 2006-10-05 Daniel Jacobowitz <dan@codesourcery.com>
  727. * Makefile.in (gdb_expat_h): New.
  728. (xml_support_h): Add gdb_expat.h dependency.
  729. (memory-map.o, xml-support.o): Likewise.
  730. * gdb_expat.h: New file.
  731. * xml-support.h: Include it.
  732. * memory-map.c, xml-support.c: Likewise. Remove XML_STATUS_OK
  733. definitions.
  734. 2006-10-05 Daniel Jacobowitz <dan@codesourcery.com>
  735. * remote.c (get_remote_state_raw): Renamed from get_remote_state.
  736. (get_remote_state): New function.
  737. (init_remote_state, _initialize_remote): Use get_remote_state_raw.
  738. 2006-10-04 Fred Fish <fnf@specifix.com>
  739. * vec.c: Include defs.h first. This pulls in config.h which can
  740. affect other includes.
  741. 2006-10-04 Joel Brobecker <brobecker@adacore.com>
  742. * somread.c (som_symtab_read): Avoid using alloca for potentially
  743. large buffers.
  744. 2006-10-04 Daniel Jacobowitz <dan@codesourcery.com>
  745. * arch-utils.h (gdbarch_info_fill): Remove duplicate prototype.
  746. 2006-10-03 Daniel Jacobowitz <dan@codesourcery.com>
  747. * memory-map.c (XML_STATUS_OK, XML_STATUS_ERROR): Provide default
  748. definitions.
  749. * xml-support.c (XML_STATUS_OK, XML_STATUS_ERROR): Likewise.
  750. 2006-09-22 Daniel Jacobowitz <dan@codesourcery.com>
  751. * remote.c (remote_write_bytes_aux): Doc fix.
  752. 2006-09-21 Vladimir Prus <vladimir@codesourcery.com>
  753. Daniel Jacobowitz <dan@codesourcery.com>
  754. * Makefile.in (SFILES): Add target-memory.c.
  755. (COMMON_OBS): Add target-memory.o.
  756. * memattr.c (lookup_mem_region): Adjust handling for
  757. the top of memory. Improve comments.
  758. * remote.c (packet_check_result): New function, split out
  759. from packet_ok. Recognize "E." as an error prefix.
  760. (packet_ok): Use it.
  761. (remote_write_bytes_aux): New function, renamed from
  762. remote_write_bytes. Take packet header, packet format,
  763. and length flag as arguments.
  764. (remote_write_bytes): Rewrite to use remote_write_bytes_aux.
  765. (remote_send_printf, restore_remote_timeout)
  766. (remote_flash_timeout, remote_flash_erase, remote_flash_write)
  767. (remote_flash_done): New.
  768. (remote_xfer_partial): Handle flash writes.
  769. (init_remote_ops, init_remote_async_ops): Set to_flash_erase
  770. and to_flash_done.
  771. * symfile.c (struct load_section_data): Include a pointer to
  772. the cumulative stats and a request queue. Move most members
  773. to other types.
  774. (struct load_progress_data, struct load_progress_section_data): New
  775. types.
  776. (load_progress): Handle a NULL baton and zero bytes. Update for
  777. type changes.
  778. (load_section_callback): Create memory write requests instead of
  779. writing to memory. Don't print the progress message here.
  780. (clear_memory_write_data): New function.
  781. (generic_load): Use target_write_memory_blocks.
  782. * target-memory.c: New file.
  783. * target.c (update_current_target): Mention new uninherited methods.
  784. (memory_xfer_partial): Issue an error for flash writes.
  785. (target_flash_erase, target_flash_done): New functions.
  786. (target_write_with_progress): Call the progress callback at the
  787. start also.
  788. * target.h (enum target_object): Add TARGET_OBJECT_FLASH.
  789. (target_write_with_progress): Update comment.
  790. (struct target_ops): Add to_flash_erase and to_flash_done.
  791. (target_flash_erase, target_flash_done, struct memory_write_request)
  792. (memory_write_request_s, enum flash_preserve_mode)
  793. (target_write_memory_blocks): New, including a vector type
  794. for memory_write_request_s.
  795. 2006-09-21 Vladimir Prus <vladimir@codesourcery.com>
  796. Daniel Jacobowitz <dan@codesourcery.com>
  797. Nathan Sidwell <nathan@codesourcery.com>
  798. * Makefile.in (SFILES): Add memory-map.c and xml-support.c.
  799. (memory_map_h, xml_support_h): New.
  800. (target_h): Add vec_h dependency.
  801. (COMMON_OBS): Add memory-map.o and xml-support.o.
  802. (memory-map.o, xml-support.o): New rules.
  803. (remote.o): Update.
  804. * exceptions.h (enum errors): Add XML_PARSE_ERROR.
  805. * infcmd.c (run_command_1, attach_command): Call target_pre_inferior.
  806. * memattr.c (default_mem_attrib): Initialize blocksize.
  807. (target_mem_region_list, mem_use_target)
  808. (target_mem_regions_valid, mem_region_cmp, mem_region_init)
  809. (require_user_regions, require_target_regions)
  810. (invalidate_target_mem_regions): New.
  811. (create_mem_region): Use mem_region_init.
  812. (mem_clear): Move higher.
  813. (lookup_mem_region): Use require_target_regions.
  814. (mem_command): Implement "mem auto".
  815. (mem_info_command): Handle target-supplied regions and flash
  816. attributes.
  817. (mem_enable_command, mem_disable_command, mem_delete_command): Use
  818. require_user_regions.
  819. (_initialize_mem): Mention "mem auto" in help.
  820. * memattr.h (enum mem_access_mode): Add MEM_FLASH.
  821. (struct mem_attrib): Add blocksize.
  822. (invalidate_target_mem_regions, mem_region_init, mem_region_cmp): New
  823. prototypes.
  824. * remote.c: Include "memory-map.h".
  825. (PACKET_qXfer_memory_map): New enum value.
  826. (remote_protocol_features): Add qXfer:memory-map:read.
  827. (remote_xfer_partial): Handle memory maps.
  828. (remote_memory_map): New.
  829. (init_remote_ops, init_remote_async_ops): Set to_memory_map.
  830. (_initialize_remote): Register qXfer:memory-map:read.
  831. * target.c (update_current_target): Mention to_memory_map.
  832. (target_memory_map, target_pre_inferior): New.
  833. (target_preopen): Call target_pre_inferior.
  834. * target.h: Include "vec.h".
  835. (enum target_object): Add TARGET_OBJECT_MEMORY_MAP.
  836. (struct target_ops): Add to_memory_map.
  837. (target_memory_map, target_pre_inferior): New prototypes.
  838. * memory-map.c, memory-map.h, xml-support.c, xml-support.h: New files.
  839. 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
  840. * ada-lex.l (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
  841. (strtoulst): Moved to ...
  842. * utils.c (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
  843. (strtoulst): ... here. Enhanced to behave more similarly
  844. to strtoul.
  845. * defs.h (strtoulst): New prototype.
  846. 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
  847. * Makefile.in (memattr_h, memattr.o): Update.
  848. * memattr.h: Include "vec.h".
  849. (struct mem_region): Remove linked list pointer.
  850. (mem_region_s): New typedef and corresponding vector.
  851. * memattr.c: Include "vec.h".
  852. (mem_region_chain): Delete.
  853. (mem_region_list): New vector pointer.
  854. (mem_region_lessthan): New function.
  855. (create_mem_region): Remove unused return value. Use vector
  856. operations. Remove linear search.
  857. (delete_mem_region): Delete.
  858. (lookup_mem_region): Use vector operations. Add a FIXME.
  859. (mem_info_command): Update to work with vectors.
  860. (mem_enable, mem_enable_command, mem_disable, mem_disable_command)
  861. (mem_free, mem_delete): Likewise.
  862. 2006-09-21 Nathan Sidwell <nathan@codesourcery.com>
  863. * vec.h: New file.
  864. * vec.c: New file.
  865. * Makefile.in (SFILES): Add vec.c.
  866. (vec_h): New.
  867. (COMMON_OBJS): Add vec.o.
  868. (vec.o): New target.
  869. 2006-09-20 Daniel Jacobowitz <dan@codesourcery.com>
  870. PR remote/2154
  871. * remote.c (remote_thread_alive): Remove local buf.
  872. (remote_get_threadinfo): Remove local threadinfo_pkt.
  873. (remote_get_threadlist): Remove unused threadlist_packet.
  874. (remote_current_thread): Remove local buf.
  875. (remote_threads_info): Set bufp after getpkt.
  876. (remote_threads_extra_info): Remove local bufp.
  877. (get_offsets): Set buf after getpkt.
  878. (remote_check_symbols): Set reply after getpkt.
  879. (remote_vcont_probe): Set buf after getpkt.
  880. (remote_resume): Set buf after set_thread.
  881. (remote_wait, remote_async_wait): Set buf after getpkt.
  882. (fetch_register_using_p): Set buf after remote_send.
  883. (remote_fetch_registers): Likewise.
  884. (store_register_using_P): Don't use buf after remote_send.
  885. (check_binary_download, remote_write_bytes)
  886. (remote_read_bytes, remote_rcmd): Remove local buf.
  887. 2006-09-17 Vladimir Prus <vladimir@codesourcery.com>
  888. * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Don't emit error
  889. if high requested frame number is larger than number of available
  890. frames.
  891. 2006-09-16 Nick Roberts <nickrob@snap.net.nz>
  892. * linux-nat.c (linux_test_for_tracefork): Don't leave zombie
  893. process.
  894. 2006-09-16 Andrzej Zaborowski <balrog@zabor.org>
  895. * interps.c (interpreter_exec_cmd): Restore interpreter properties.
  896. 2006-09-10 Daniel Jacobowitz <dan@codesourcery.com>
  897. PR threads/2149
  898. * infrun.c (handle_inferior_event): Context switch after fork
  899. and exec events.
  900. 2006-09-10 Daniel Jacobowitz <dan@codesourcery.com>
  901. * infcall.c (call_function_by_hand): Check for function pointer
  902. types.
  903. 2006-09-10 Andreas Schwab <schwab@suse.de>
  904. * m68k-tdep.c (m68k_analyze_register_saves): Fix decoding of
  905. `move.l %R,-(%sp)'.
  906. 2006-09-07 Vladimir Prus <vladimir@codesourcery.com>
  907. * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Don't emit
  908. error if high requested frame number is larger then number
  909. of available frames.
  910. 2006-09-07 Joel Brobecker <brobecker@adacore.com>
  911. From Stephan Springl <springl-gdb@bfw-online.de>
  912. * fork-child.c (fork_inferior): Fix typo.
  913. 2006-08-28 DJ Delorie <dj@redhat.com>
  914. * m32c-tdep.c (m32c_decode_srcdest4): Initialize fields in sd
  915. that may not be initialized elsewhere.
  916. (m32c_decode_sd23): Likewise.
  917. 2006-08-25 Daniel Jacobowitz <dan@codesourcery.com>
  918. * buildsym.c (finish_block): Don't adjust the boundaries of
  919. nested functions.
  920. 2006-08-24 Andreas Schwab <schwab@suse.de>
  921. * symfile.c (add_symbol_file_command): Fix off-by-one when
  922. extending sect_opts.
  923. 2006-08-24 Nick Roberts <nickrob@snap.net.nz>
  924. * mi/gdb-mi.el: Refer to next release of Emacs as 22.1.
  925. 2006-08-23 Nick Roberts <nickrob@snap.net.nz>
  926. * mi/gdb-mi.el (gdbmi): Remove gdb-force-update, initialize
  927. other variables.
  928. (gdbmi-send): Ensure any text properties can be removed.
  929. (gdbmi-prompt1): Update to gdb-ui.el
  930. (gud-gdbmi-marker-filter): Defer setting of gud-running.
  931. Keep gdb-done-regexp for partial-output-buffer.
  932. (gdb-stack-list-frames-handler): Add face to function names.
  933. 2006-08-22 Mark Kettenis <kettenis@gnu.org>
  934. * valprint.c (val_print_type_code_flags): Fix GNU coding standards
  935. violation.
  936. * alpha-tdep.c (alpha_register_to_value, alpha_value_to_register)
  937. (alpha_push_dummy_call, alpha_extract_return_value)
  938. (alpha_breakpoint_from_pc, alpha_read_insn)
  939. (alpha_get_longjmp_target, alpha_supply_int_regs)
  940. (alpha_fill_int_regs, alpha_supply_fp_regs, alpha_fill_fp_regs)
  941. (alpha_next_pc): Use gdb_byte instead of (unsigned) char where
  942. appropriate.
  943. * sparc64-tdep.c (sparc64_pstate_type, sparc64_fsr_type)
  944. (sparc64_fprs_type): New variables.
  945. (sparc64_init_types): New function.:
  946. (sparc64_register_info): Use appropriate flag types for %fsr and
  947. %fprs.
  948. (sparc64_pseudo_register_info): Use appropriate type for %pstate.
  949. (_initialize_sparc64_tdep): New function.
  950. * valprint.c (val_print_type_code_flags): Fix for bitfields larger
  951. than 32 bits.
  952. * gdbtypes.c (init_flags_type): Set all fields to zero instead of
  953. just the first one.
  954. 2006-08-22 Daniel Jacobowitz <dan@codesourcery.com>
  955. * Makefile.in (INTERNAL_CPPFLAGS): New.
  956. (INTERNAL_CFLAGS_BASE): Use it.
  957. 2006-08-22 Michael Snyder <Michael.Snyder@PalmSource.com>
  958. * MAINTAINERS: Update my email address.
  959. 2006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
  960. * Makefile.in (amd64_linux_tdep_h): New.
  961. (amd64-linux-nat.o, amd64-linux-tdep.o): Update.
  962. * amd64-linux-nat.c (amd64_linux_gregset64_reg_offset): Add
  963. ORIG_RAX.
  964. (_initialize_amd64_linux_nat): Set amd64_native_gregset64_num_regs.
  965. * amd64-linux-tdep.c (amd64_linux_register_name)
  966. (amd64_linux_register_type, amd64_linux_register_reggroup_p)
  967. (amd64_linux_write_pc): New.
  968. (amd64_linux_init_abi): Use them, and update num_regs.
  969. * amd64-linux-tdep.h: New file.
  970. * amd64-tdep.c (amd64_register_name, amd64_register_type): Make
  971. public.
  972. * amd64-tdep.h (amd64_register_name, amd64_register_type): New
  973. prototypes.
  974. * regformats/reg-x86-64-linux.dat: New file.
  975. 2006-08-18 Daniel Jacobowitz <dan@codesourcery.com>
  976. * infrun.c (handle_inferior_event): Check the current frame ID
  977. before unwinding to the previous frame.
  978. 2006-08-18 Daniel Jacobowitz <dan@codesourcery.com>
  979. * dwarf2read.c (quirk_gcc_member_function_pointer): Add GCC PR
  980. number in a comment.
  981. 2006-08-18 Mark Kettenis <kettenis@gnu.org>
  982. * sparc-nat.c (sparc_xfer_wcookie): Signal EOF. Tweak comment.
  983. 2006-08-18 Daniel Jacobowitz <dan@codesourcery.com>
  984. * dwarf2read.c (quirk_gcc_member_function_pointer): New.
  985. (read_structure_type): Call it.
  986. 2006-08-16 Daniel Jacobowitz <dan@codesourcery.com>
  987. * NEWS: Mention "set trust-readonly-sections" fix.
  988. 2006-08-16 Daniel Jacobowitz <dan@codesourcery.com>
  989. * remote.c, target.c: Strip trailing whitespace.
  990. 2006-08-15 Daniel Jacobowitz <dan@codesourcery.com>
  991. PR remote/1966
  992. * dcache.c (dcache_write_line): Use target_write.
  993. (dcache_read_line): Use target_read.
  994. * mi/mi-main.c (mi_cmd_data_read_memory): Use target_read.
  995. * symfile.c (struct load_section_data): Add new per-section
  996. members.
  997. (load_progress): New function.
  998. (load_section_callback): Pass load_progress to the new
  999. target_write_with_progress.
  1000. * target.c (current_xfer_partial, memory_xfer_partial): New.
  1001. (target_xfer_partial): New prototype.
  1002. (target_xfer_memory, target_xfer_partial_p, xfer_using_stratum)
  1003. (do_xfer_memory, target_xfer_memory_partial)
  1004. (target_read_memory_partial, target_write_memory_partial): Delete.
  1005. (trust_readonly): Move higher in the file.
  1006. (update_current_target): Use current_xer_partial.
  1007. (target_xfer_partial): Use memory_xfer_partial. Handle
  1008. TARGET_OBJECT_RAW_MEMORY specially.
  1009. (target_read_memory): Use target_read.
  1010. (target_write_memory): Use target_write.
  1011. (default_xfer_partial): Call to_xfer_partial directly.
  1012. (target_write_with_progress): New function, based on target_write.
  1013. (target_write): Call it.
  1014. * target.h (enum target_object): Add TARGET_OBJECT_RAW_MEMORY.
  1015. (target_write_with_progress): New prototype.
  1016. (do_xfer_memory, target_read_memory_partial)
  1017. (target_write_memory_partial): Delete prototypes.
  1018. 2006-08-15 Daniel Jacobowitz <dan@codesourcery.com>
  1019. * remote.c (remote_write_bytes): Take a const buffer argument.
  1020. Do the checks from remote_xfer_memory.
  1021. (remote_read_bytes): Do the checks from remote_xfer_memory.
  1022. (remote_xfer_memory): Remove checks pushed into lower level
  1023. functions.
  1024. (remote_xfer_partial): Call remote_write_bytes and remote_read_bytes
  1025. directly.
  1026. * remote.h (remote_write_bytes): Update prototype.
  1027. 2006-08-11 Andrew Stubbs <andrew.stubbs@st.com>
  1028. * NEWS: Add 'set trace-commands' command.
  1029. 2006-08-10 Andrew Stubbs <andrew.stubbs@st.com>
  1030. * cli/cli-script.c (execute_user_command): Update command_next_depth
  1031. on user-command call.
  1032. 2006-08-09 Joel Brobecker <brobecker@adacore.com>
  1033. * NEWS: Add entry for new substitute-path commands.
  1034. 2006-08-08 Joel Brobecker <brobecker@adacore.com>
  1035. * source.c: #include gdb_assert.h.
  1036. (substitute_path_rule): New struct.
  1037. (substitute_path_rules): New static global variable.
  1038. (substitute_path_rule_matches): New function.
  1039. (get_substitute_path_rule): New function.
  1040. (rewrite_source_path): New function.
  1041. (find_and_open_source): Add source path rewriting support.
  1042. (strip_trailing_directory_separator): New function.
  1043. (find_substitute_path_rule): New function.
  1044. (add_substitute_path_rule): New function.
  1045. (delete_substitute_path_rule): New function.
  1046. (show_substitute_path_command): New function.
  1047. (unset_substitute_path_command): New function.
  1048. (set_substitute_path_command): New function.
  1049. (_initialize_source): Add new substitute-path commands.
  1050. * Makefile.in (source.o): Add dependency on gdb_assert.h.
  1051. 2006-08-08 Joel Brobecker <brobecker@adacore.com>
  1052. * i386-tdep.c (i386_follow_jump): Use read_memory_nobpt to read
  1053. instructions.
  1054. (i386_analyze_struct_return): Likewise.
  1055. (i386_skip_probe): Likewise.
  1056. (i386_match_insn): Likewise.
  1057. (i386_analyze_frame_setup): Likewise.
  1058. (i386_analyze_register_saves): Likewise.
  1059. (i386_skip_prologue): Likewise.
  1060. 2006-08-08 Joel Brobecker <brobecker@adacore.com>
  1061. * gdbcore.h (read_memory_nobpt): New function name instead of
  1062. deprecated_read_memory_nobpt.
  1063. * breakpoint.c (read_memory_nobpt): New function name instead
  1064. of deprecated_read_memory_nobpt.
  1065. Adjust calls to old deprecated_read_memory_nobpt accordingly.
  1066. * alpha-tdep.c: Adjust calls to deprecated_read_memory_nobpt
  1067. accordingly.
  1068. * alphanbsd-tdep.c: Likewise.
  1069. * frame.c: Likewise.
  1070. * frv-tdep.c: Likewise.
  1071. * hppa-linux-tdep.c: Likewise.
  1072. * hppa-tdep.c: Likewise.
  1073. * i386-linux-nat.c: Likewise.
  1074. * m68klinux-tdep.c: Likewise.
  1075. * mips-tdep.c: Likewise.
  1076. * s390-tdep.c: Likewise.
  1077. 2006-08-08 Daniel Jacobowitz <dan@codesourcery.com>
  1078. * configure.ac: Check for expat.
  1079. * acinclude.m4: Include AC_LIB_HAVE_LINKFLAGS dependencies.
  1080. * Makefile.in (LIBEXPAT): New.
  1081. (CLIBS): Include $(LIBEXPAT).
  1082. * README: Mention expat.
  1083. * configure, config.in: Regenerated.
  1084. 2006-08-08 Joel Sherrill <joel.sherrill@oarcorp.com>
  1085. * config/sparc/embed.mt: New file.
  1086. * configure.tgt (sparc-*-rtems*): Use embed.mt.
  1087. 2006-08-08 Daniel Jacobowitz <dan@codesourcery.com>
  1088. * Makefile.in (objfiles.o, symfile.o): Update.
  1089. * objfiles.c: Include "expression.h" and "parser-defs.h".
  1090. (free_objfile): Clear global blocks.
  1091. * symfile.c: Include "parser-defs.h".
  1092. (clear_symtab_users): Clear global blocks.
  1093. 2006-08-08 Thiemo Seufer <ths@mips.com>
  1094. * breakpoint.c (update_breakpoints_after_exec): Fix type mismatch.
  1095. 2006-08-08 Vladimir Prus <vladimir@codesourcery.com>
  1096. * symfile.c (download_write_size): Remove.
  1097. (show_download_write_size): Remove.
  1098. (load_section_callback): Don't use download_write_size.
  1099. (_initialize_symfile): Don't register download_write_size.
  1100. * NEWS: Mention 'download-write-size' removal.
  1101. 2006-08-06 Daniel Jacobowitz <dan@codesourcery.com>
  1102. * expprint.c (print_subexp_standard, dump_subexp_body_standard): Add
  1103. support for member pointers.
  1104. 2006-08-02 Mark Kettenis <kettenis@gnu.org>
  1105. * arm-tdep.h: Add multiple inclusion protection.
  1106. (struct gdbarch): Add forward declaration.
  1107. (armobsd_regset_from_core_section): New prototype.
  1108. * armbsd-tdep.c: New file.
  1109. * armobsd-tdep.c: Include "gdb_string.h".
  1110. (armobsd_init_abi): Set regset_from_core_section.
  1111. (armobsd_core_osabi_sniffer): New function.
  1112. (_initialize_armobsd_tdep): Register armobsd_core_osabi_sniffer.
  1113. * Makefile.in (ALLDEPFILES): Add armbsd-tdep.c.
  1114. (armbsd-tdep.o): New dependency.
  1115. (armnbsd-tdep.o): Update dependencies.
  1116. * config/arm/obsd.mt (TDEPFILES): Add armbsd-tdep.o and corelow.o.
  1117. 2006-08-02 Thiemo Seufer <ths@mips.com>
  1118. * linux-thread-db.c (thread_db_get_thread_local_address): Fix type
  1119. mismatch.
  1120. * tui/tui-stack.c (tui_show_frame_info): Likewise.
  1121. 2006-08-01 Daniel Jacobowitz <dan@codesourcery.com>
  1122. * c-exp.y (type): Remove incorrect pointer to member case.
  1123. * objc-exp.y (type): Likewise.
  1124. * p-exp.y (type): Likewise.
  1125. 2006-08-01 Mark Kettenis <kettenis@gnu.org>
  1126. * arm-tdep.h (enum struct_return): New.
  1127. (struct gdbarch_tdep): Add struct_return member.
  1128. * arm-tdep.c (arm_return_value): Return
  1129. RETURN_VALUE_STRUCT_CONVENTION for aggregates when the ABI uses
  1130. pcc_struct_return.
  1131. (arm_gdbarch_init): Default to reg_struct_return.
  1132. * armobsd-tdep.c (armobsd_init_abi): Set pcc_struct_return.
  1133. 2006-07-31 Mark Kettenis <kettenis@gnu.org>
  1134. * alpha-tdep.h (ALPHA_S0_REGNUM): New define.
  1135. * alphabsd-nat.c: Include <sys/types.h>, <sys/signal.h>,
  1136. <machine/pcb.h> and "bsd-kvm.h".
  1137. (alphabsd_supply_pcb): New function.
  1138. (_initialize_alphabsd_nat): Enable libkvm interface.
  1139. * Makefile.in (alphabsd-nat.o): Update dependencies.
  1140. * config/alpha/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
  1141. (LOADLIBES): New variable.
  1142. * config/alpha/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
  1143. (LOADLIBES): New variable.
  1144. 2006-07-31 Fred Fish <fnf@specifix.com>
  1145. * arm-tdep.c (arm_make_prologue_cache): Use FRAME_OBSTACK_ZALLOC
  1146. instead of calling frame_obstack_zalloc directly.
  1147. (arm_make_stub_cache): Ditto.
  1148. * frame-unwind.h: Ditto.
  1149. * frame.c (create_new_frame): Ditto.
  1150. 2006-07-27 Bob Wilson <bob.wilson@acm.org>
  1151. * MAINTAINERS (Write After Approval): Add myself.
  1152. 2006-07-27 Bob Wilson <bob.wilson@acm.org>
  1153. * main.c (captured_main): Print a newline after calling
  1154. print_gdb_version instead of waiting until after the symbol file
  1155. has been read. Adjust error_pre_print, quit_pre_print, and
  1156. warning_pre_print values.
  1157. 2006-07-27 Roger Sayle <roger@eyesopen.com>
  1158. Daniel Jacobowitz <dan@codesourcery.com>
  1159. * irix5-nat.c (fetch_core_registers): Simplify and correct logic.
  1160. 2006-07-27 Daniel Jacobowitz <dan@codesourcery.com>
  1161. * target.h (target_read_stralloc): New prototype.
  1162. * target.c (target_read_alloc_1): Renamed from target_read_alloc.
  1163. Take new PADDING argument.
  1164. (target_read_alloc): Use it.
  1165. (target_read_stralloc): New function.
  1166. 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
  1167. * remote.c (remote_protocol_features): Correct qPart to qXfer.
  1168. 2006-07-25 Daniel Jacobowitz <dan@codesourcery.com>
  1169. * eval.c (evaluate_subexp_for_address): Don't incorrectly discard
  1170. calls to C++ operator*.
  1171. 2006-07-24 Roger Sayle <roger@eyesopen.com>
  1172. Daniel Jacobowitz <dan@codesourcery.com>
  1173. * solib-irix.c (gdb_int32_bytes): Use gdb_byte instead of char.
  1174. (gdb_int64_bytes): Likewise.
  1175. (fetch_lm_info): Use .b fields of gdb_int32_bytes and gdb_int64_bytes
  1176. as first argument to extract_unsigned_integer to silence compiler
  1177. warnings.
  1178. 2006-07-24 Frederic Riss <frederic.riss@st.com>
  1179. * dwarf2read.c (struct dwarf2_per_objfile): Add has_section_at_zero
  1180. field.
  1181. (dwarf2_locate_sections): Initialize
  1182. dwarf2_per_objfile->has_section_at_zero.
  1183. (dwarf2_get_pc_bounds): Use dwarf2_per_objfile->has_section_at_zero
  1184. instead of HAS_RELOC test.
  1185. (read_partial_die): Ditto.
  1186. 2006-07-24 Daniel Jacobowitz <dan@codesourcery.com>
  1187. * corefile.c (reopen_exec_file): Only check for an open exec file.
  1188. Use exec_file_attach.
  1189. * exec.c (exec_open): Make static.
  1190. (exec_file_command): Don't use target_preopen. Query directly about
  1191. changing the file.
  1192. * gdbcore.h (exec_open): Remove prototype.
  1193. 2006-07-24 Frederic Riss <frederic.riss@st.com>
  1194. * regcache.c (struct regcache): Make register_valid_p a signed char
  1195. array.
  1196. 2006-07-24 Jan Kratochvil <jan.kratochvil@redhat.com>
  1197. Daniel Jacobowitz <dan@codesourcery.com>
  1198. * linux-thread-db.c (thread_db_wait): Remove libthread_db
  1199. after exec events.
  1200. 2006-07-24 Daniel Jacobowitz <dan@codesourcery.com>
  1201. * NEWS: Mention Windows cross debugging support.
  1202. 2006-07-23 Daniel Jacobowitz <dan@codesourcery.com>
  1203. * linux-nat.c (linux_nat_add_target): Remove extern.
  1204. * linux-nat.h (thread_db_init): New prototype.
  1205. 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
  1206. * configure.tgt: Build gdbserver for Cygwin and mingw32.
  1207. 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
  1208. * config/i386/cygwin.mt (DEPRECATED_TM_FILE): Delete.
  1209. * config/i386/nm-cygwin.h: Add contents of tm-cygwin.h.
  1210. * config/i386/tm-cygwin.h: Delete file.
  1211. 2006-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
  1212. * infrun.c (handle_inferior_event): Typo.
  1213. 2006-07-21 Andrew Stubbs <andrew.stubbs@st.com>
  1214. * cli/cli-cmds.c (source_verbose, trace_commands): New variables.
  1215. (source_script): New function.
  1216. (source_verbose_cleanup): New function.
  1217. (source_command): Move old contents to source_script.
  1218. Make function static. Parse -v option and call source_script.
  1219. (init_cli_cmds): Update source command help.
  1220. Add 'set trace-commands' command.
  1221. * cli/cli-script.c (command_next_depth): New static variable.
  1222. (suppress_next_print_command_trace): New static variable.
  1223. (reset_command_nest_depth): New function.
  1224. (print_command_trace): New function.
  1225. (execute_control_command): Split the continue_control and break_control
  1226. cases, add calls to print_command_trace and count the nest depth.
  1227. (while_command): Set suppress_next_print_command_trace.
  1228. (if_command): Likewise.
  1229. * top.c (execute_command): Call print_command_trace.
  1230. * cli/cli-cmds.h (source_verbose, trace_commands): New extern variables.
  1231. (source_command): Change to source_script.
  1232. * main.c (captued_main): Use source_script instead of source_command.
  1233. * top.h (source_command): Change to source_script.
  1234. * event-top.c (display_gdb_prompt): Call reset_command_nest_depth.
  1235. * cli/cli-script.h (print_command_trace): Export.
  1236. (reset_command_nest_depth): Likewise.
  1237. 2006-07-20 Daniel Jacobowitz <dan@codesourcery.com>
  1238. * eval.c (evaluate_struct_tuple): Skip static fields.
  1239. 2006-07-19 Mark Kettenis <kettenis@gnu.org>
  1240. * alphaobsd-tdep.c: Include "obsd-tdep.h".
  1241. (alphaobsd_init_abi): Set skip_solib_resolver.
  1242. * Makefile.in (alphaobsd-tdep.o): Update dependencies.
  1243. * config/alpha/obsd.mt (TDEPFILES): Add obsd-tdep.o.
  1244. * arm-tdep.c (arm_gdbarch_init): Get default floating-point model
  1245. from ELF flags for binaries produced by the GNU toolchain.
  1246. 2006-07-18 Nathan Sidwell <nathan@codesourcery.com>
  1247. * remote-fileio.c (remote_fileio_func_rename): Reorder to process
  1248. input buffer before reading memory.
  1249. (remote_fileio_func_stat): Likewise.
  1250. 2006-07-18 Daniel Jacobowitz <dan@codesourcery.com>
  1251. * blockframe.c (find_pc_partial_function): Use the minimal symbol
  1252. size to control the cache entry, if available.
  1253. * minsyms.c (lookup_minimal_symbol_by_pc_section): Handle minimal
  1254. symbols with zero and non-zero sizes differently.
  1255. 2006-07-18 Daniel Jacobowitz <dan@codesourcery.com>
  1256. * linux-thread-db.c (td_thr_getfpregs_p, td_thr_getgregs_p)
  1257. (td_thr_setfpregs_p, td_thr_setgregs_p, thread_db_get_info)
  1258. (thread_db_fetch_registers, thread_db_store_registers)
  1259. (thread_db_thread_alive, thread_db_state_str): Delete.
  1260. (thread_db_load): Don't look up regset functions.
  1261. (thread_db_pid_to_str): Simplify.
  1262. (thread_db_extra_thread_info): New.
  1263. (init_thread_db_ops): Do not set to_fetch_registers,
  1264. to_store_registers, or to_thread_alive. Set to_extra_thread_info.
  1265. * Makefile.in: Remove linux-thread-db.o rule.
  1266. 2006-07-18 Mark Kettenis <kettenis@gnu.org>
  1267. * armobsd-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
  1268. (armobsd_sigframe_init): New function.
  1269. (armobsd_sigframe): New variable.
  1270. (armobsd_init_abi): Prepend armobsd_sigframe unwinder.
  1271. * Makefile.in (armobsd-tdep.o): Update dependencies.
  1272. 2006-07-18 Denis PILAT <denis.pilat@st.com>
  1273. * monitor.c: Remove unused prototypes.
  1274. 2006-07-18 Vladimir Prus <vladimir@codesourcery.com>
  1275. * target.c (tcomplain): Mark with ATTR_NORETURN.
  1276. * defs.h (print_transfer_performance): Improve comments.
  1277. 2006-07-17 Mark Kettenis <kettenis@gnu.org>
  1278. * printcmd.c: Coding style fixes: add missing spaces in comments
  1279. and wrapping long lines.
  1280. (delete_display, enable_display_command, disable_display_command)
  1281. (printf_command, display_info, undisplay_command, free_display)
  1282. (display_command, x_command, address_info, set_command)
  1283. (inspect_command, call_command, print_command, print_command_1)
  1284. (validate_format, print_formatted, decode_format, sym_format):
  1285. Remove prototypes.
  1286. (x_command): Make static.
  1287. (printf_command): Convert error into internal consistency check.
  1288. (address_info): Avoid assignment within function call.
  1289. (printf_command): Avoid redundant cast.
  1290. * tracepoint.c (x_command): Remove extern prototype.
  1291. * armobsd-tdep.c (armobsd_init_abi): Set skip_solib_resolver.
  1292. * Makefile.in (armobsd-tdep.o): Update dependencies.
  1293. * config/arm/obsd.mt (TDEPFILES): Add obsd-tdep.o.
  1294. 2006-07-16 Mark Kettenis <kettenis@gnu.org>
  1295. * armobsd-tdep.c: New file.
  1296. * Makefile.in (ALLDEPFILES): Add armobsd-tdep.c.
  1297. (armobsd-tdep.o): New dependency.
  1298. * config/arm/obsd.mt: New file.
  1299. * configure.tgt: (arm*-*-openbsd*): Set gdb_target to obsd.
  1300. * gdbarch.sh (deprecated_saved_pc_after_call): Delete.
  1301. * gdbarch.h, gdbarch.c: Re-generate.
  1302. * arm-tdep.c (arm_saved_pc_after_call): Delete.
  1303. (arm_gdbarch_init): Do not set deprecated_saved_pc_after_call.
  1304. 2006-07-16 Alfred M. Szmidt <ams@gnu.org>
  1305. * gnu-nat.c: Undefine _process_user_ before including
  1306. <hurd/process_request.h>.
  1307. (gnu_resume): Supply missing argument to error().
  1308. (gnu_read_inferior): Add extra parenthesis around arithmetic
  1309. expression to silence warnings from GCC.
  1310. (gnu_write_inferior): Likewise.
  1311. (gnu_xfer_memory): Changed type of MYADDR to `gdb_byte *'.
  1312. 2006-07-16 Mark Kettenis <kettenis@gnu.org>
  1313. * armnbsd-tdep.c (arm_netbsd_elf_init_abi): Use
  1314. svr4_ilp_fetch_link_map_offsets.
  1315. 2006-07-15 Mark Kettenis <kettenis@gnu.org>
  1316. * armnbsd-tdep.c: Don't include "nbsd-tdep.h".
  1317. * config/arm/nbsd.mt (TDEPFILES): Remove nbsd-tdep.o.
  1318. (DEPRECATED_TM_FILE): Remove.
  1319. * Makefile.in (armnbsd-tdep.o): Update dependencies.
  1320. 2006-07-14 Joel Brobecker <brobecker@adacore.com>
  1321. * PROBLEMS: Document threads/2137.
  1322. 2006-07-13 Mark Kettenis <kettenis@gnu.org>
  1323. * config/alpha/tm-nbsd.h: Remove file.
  1324. * config/alpha/nbsd.mt (DEPRECATED_TM_FILE): Remove.
  1325. 2006-07-13 Corinna Vinschen <vinschen@redhat.com>
  1326. * mips-tdep.c (mips_integer_to_address): Simplify be calling
  1327. extract_signed_integer directly. Fix comment.
  1328. 2006-07-13 Corinna Vinschen <vinschen@redhat.com>
  1329. * m32c-tdep.c (m32c_banked_register): New function.
  1330. (m32c_banked_read): Use m32c_banked_register function to evaluate
  1331. real register number.
  1332. (m32c_banked_write): Ditto.
  1333. (m32c_virtual_frame_pointer): New function.
  1334. (m32c_gdbarch_init): Add set_gdbarch_virtual_frame_pointer call.
  1335. 2006-07-13 Nathan Sidwell <nathan@codesourcery.com>
  1336. * m68k-tdep.c (m68k_frame_align): New.
  1337. (m68k_gdbarch_init): Set frame_align here.
  1338. 2006-07-13 Denis PILAT <denis.pilat@st.com>
  1339. * interps.c (interpreter_completer): Allocate one more item to the
  1340. 'matches' list and set them all to 0 with a xcalloc.
  1341. 2006-07-13 Nick Roberts <nickrob@snap.net.nz>
  1342. * annotate.c (annotate_frame_begin): Re-instate frame-begin
  1343. annotation for level 3 annotations.
  1344. 2006-07-13 Paul N. Hilfinger <Hilfinger@adacore.com>
  1345. Daniel Jacobowitz <dan@codesourcery.com>
  1346. * infcall.c (value_arg_coerce): Use value_cast_pointers for
  1347. references. Avoid value_cast to a reference type. Don't silently
  1348. convert pointers to references.
  1349. * valops.c (value_cast_pointers): New, based on value_cast.
  1350. (value_cast): Use it. Reject reference types.
  1351. (value_ref): New.
  1352. (typecmp): Use it.
  1353. * value.h (value_cast_pointers, value_ref): New prototypes.
  1354. 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
  1355. * remote.c (unpack_varlen_hex): Correct type of retval.
  1356. Reported by Zhigang Gong <zhigang.gong@gmail.com>.
  1357. 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
  1358. * dwarf2read.c (dwarf2_symbol_mark_computed): Handle corrupted
  1359. or missing location list information. Suggested by Jan
  1360. Kratochvil <lace@jankratochvil.net>.
  1361. 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
  1362. * Makefile.in (arm_linux_tdep_h): New variable.
  1363. (arm-linux-nat.o, arm-linux-tdep.o): Update.
  1364. * arm-linux-nat.c: Include "arm-linux-tdep.h".
  1365. (typeNone, typeSingle, typeDouble, typeExtended)
  1366. (FPWORDS, ARM_CPSR_REGNUM, FPREG, FPA11)
  1367. (fetch_nwfpe_single, fetch_nwfpe_double, fetch_nwfpe_none)
  1368. (fetch_nwfpe_extended, fetch_nwfpe_register, store_nwfpe_single)
  1369. (store_nwfpe_double, store_nwfpe_extended, store_nwfpe_register):
  1370. Delete.
  1371. (fetch_fpregister, fetch_fpregs, store_fpregister, store_fpregs):
  1372. Use gdb_byte buffers, NWFPE_FPSR_OFFSET, supply_nwfpe_register,
  1373. and collect_nwfpe_register.
  1374. (fill_gregset, supply_gregset, fill_fpregset, supply_fpregset): Use
  1375. new regset functions.
  1376. * arm-linux-tdep.c: Include "regset.h" and "arm-linux-tdep.h".
  1377. (arm_apcs_32): New declaration.
  1378. (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
  1379. (arm_linux_collect_gregset, typeNone, typeSingle, typeDouble)
  1380. (typeExtended, supply_nwfpe_register, collect_nwfpe_register)
  1381. (arm_linux_supply_nwfpe, arm_linux_collect_nwfpe)
  1382. (arm_linux_regset_from_core_section): New.
  1383. (arm_linux_init_abi): Register arm_linux_regset_from_core_section.
  1384. * arm-linux-tdep.h: New file.
  1385. * arm-tdep.h (struct regset): Declare.
  1386. (struct gdbarch_tdep): Add gregset, fpregset members.
  1387. * config/arm/linux.mh (NATDEPFILES): Remove corelow.o and
  1388. core-regset.o.
  1389. * config/arm/linux.mt (TDEPFILES): Add corelow.o.
  1390. 2006-07-12 Jan Kratochvil <lace@jankratochvil.net>
  1391. * infrun.c (handle_inferior_event): Fixed typos in printf.
  1392. 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
  1393. Nathan Sidwell <nathan@codesourcery.com>
  1394. * remote.c (REMOTE_ALIGN_WRITES): New.
  1395. (remote_write_bytes): Align large write packets. Remove unused
  1396. payload_start variable.
  1397. 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
  1398. * remote.c (PACKET_qXfer_auxv): New, renamed from PACKET_qPart_auxv.
  1399. (remote_supported_packet): Remove #if 0.
  1400. (remote_protocol_features): Add qPart:auxv:read.
  1401. (remote_unescape_input): New function.
  1402. (readchar): Don't mask off the high bit.
  1403. (read_frame): Use fputstrn_filtered for packet data.
  1404. (getpkt_sane): Return the number of bytes read or -1. Use
  1405. fputstrn_unfiltered.
  1406. (remote_read_qxfer): New.
  1407. (remote_xfer_partial): Use it for TARGET_OBJECT_AUXV.
  1408. (_initialize_remote): Update packet registration.
  1409. * defs.h (fputstrn_filtered): New prototype.
  1410. * utils.c (fputstrn_filtered): New.
  1411. * NEWS: Mention qXfer.
  1412. 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
  1413. * target.c (target_read): Stop if target_read_partial returns 0
  1414. when some bytes have already been read.
  1415. (target_write): Likewise for target_write_partial.
  1416. (target_read_partial, target_write_partial): Make static.
  1417. (target_read_alloc): New.
  1418. * target.h: Doc fixes.
  1419. (target_read_partial, target_write_partial): Delete prototypes.
  1420. (target_read_alloc): New prototype.
  1421. * auxv.c (target_auxv_read): Delete.
  1422. (target_auxv_search, fprint_target_auxv): Use target_read_alloc.
  1423. * auxv.h (target_auxv_read): Delete prototype.
  1424. * avr-tdep.c (avr_io_reg_read_command): Use target_read_alloc.
  1425. * ia64-tdep.c (getunwind_table, get_kernel_table): Likewise.
  1426. * linux-nat.c (linux_nat_make_corefile_notes): Likewise.
  1427. * procfs.c (procfs_make_note_section): Likewise.
  1428. * remote.c (remote_xfer_partial): Don't loop here.
  1429. * sparc-tdep.c (sparc_fetch_wcookie): Use target_read.
  1430. 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
  1431. * arm-linux-tdep.c: Doc fixes.
  1432. (ARM_SIGCONTEXT_R0, ARM_UCONTEXT_SIGCONTEXT)
  1433. (ARM_OLD_RT_SIGFRAME_SIGINFO, ARM_OLD_RT_SIGFRAME_UCONTEXT)
  1434. (ARM_NEW_RT_SIGFRAME_UCONTEXT, ARM_NEW_SIGFRAME_MAGIC): New
  1435. constants.
  1436. (arm_linux_sigreturn_init, arm_linux_rt_sigreturn_init): Support
  1437. the new signal frame layouts.
  1438. 2006-07-12 Mike Frysinger <vapier@gentoo.org>:
  1439. Daniel Jacobowitz <dan@codesourcery.com>
  1440. * Makefile.in (init.c) [LANG, LC_ALL]: Set to `c'.
  1441. * gdb_indent.sh, gdb_mbuild.sh, observer.sh: Likewise.
  1442. * gdbarch.sh: Correct comment.
  1443. 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
  1444. * MAINTAINERS: Add Alfred Szmidt for the Hurd.
  1445. 2006-07-11 Mark Kettenis <kettenis@gnu.org>
  1446. * alpha-tdep.h (ALPHA_INSN_SIZE): New define.
  1447. 2006-07-10 Mark Kettenis <kettenis@gnu.org>
  1448. * alphaobsd-tdep.c: New file.
  1449. * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Do not register a
  1450. handler for GDB_OSABI_OPENBSD_ELF.
  1451. * Makefile.in (ALLDEPFILES): Add alphaobsd-tdep.c.
  1452. (alphaobsd-tdep.o): New target.
  1453. * config/alpha/obsd.mt: New file.
  1454. * configure.tgt (alpha*-*-openbsd*): Set gdb_target to obsd.
  1455. 2006-07-10 Richard Henderson <rth@redhat.com>
  1456. * alpha-tdep.h (struct gdbarch_tdep): Add return_in_memory.
  1457. * alpha-tdep.c (alpha_register_byte): Remove.
  1458. (alpha_extract_struct_value_address): Remove.
  1459. (alpha_return_value): New.
  1460. (alpha_return_in_memory_always): New.
  1461. (alpha_gdbarch_init): Set tdep->return_in_memory. Don't call
  1462. set_gdbarch_deprecated_register_byte. Do call set_gdbarch_return_value
  1463. instead of set_gdbarch_deprecated_use_struct_convention,
  1464. set_gdbarch_extract_return_value, set_gdbarch_store_return_value,
  1465. or set_gdbarch_deprecated_extract_struct_value_address.
  1466. * alphafbsd-tdep.c (alphafbsd_return_in_memory): Rename from
  1467. alphafbsd_use_struct_convention, remove gcc_p argument.
  1468. (alphafbsd_init_abi): Set tdep->return_in_memory instead of
  1469. set_gdbarch_deprecated_use_struct_convention.
  1470. 2006-07-09 Mark Kettenis <kettenis@gnu.org>
  1471. * alphabsd-tdep.h (alphanbsd_regset_from_core_section): New
  1472. prototype.
  1473. * alphanbsd-tdep.c (alphanbsd_regset_from_core_section): Handle
  1474. a.out-style core file format here. Make global.
  1475. (alphanbsd_regset_from_core_section): Remove.
  1476. (alphanbsd_sigtramp_offset): Make static.
  1477. (alphanbsd_aout_init_abi): Remove.
  1478. (alphanbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_ELF for
  1479. a.out style core files.
  1480. (_initialize_alphanbsd_tdep): Do not register a handler for
  1481. GDB_OSABI_NETBSD_AOUT.
  1482. * alphabsd-tdep.h: Tweak comments.
  1483. (SIZEOF_STRUCT_REG, SIZEOF_STRUCT_FPREG): Remove.
  1484. * alphanbsd-tdep.c: Reorder includes. Include "regset.h".
  1485. (ALPHANBSD_SIZEOF_GREGS, ALPHANBSD_SIZEOF_FPREGS): New defines.
  1486. (alphanbsd_supply_fpregset, alphanbsd_supply_gregset)
  1487. (alphanbsd_aout_supply_gregset): New functions.
  1488. (alphanbsd_gregset, alphanbsd_fpregset, alphanbsd_aout_gregset):
  1489. New variables.
  1490. (alphanbsd_regset_from_core_section)
  1491. (alphanbsd_aout_regset_from_core_section): New functions.
  1492. (fetch_core_registers, fetch_elfcore_registers): Remove functions.
  1493. (alphanbsd_core_fns, alphanbsd_elf_fns): Remove variables.
  1494. (alphanbsd_init_abi): Set regset_from_core_section.
  1495. (alphanbsd_aout_init_abi, alphanbsd_core_osabi_sniffer): New
  1496. functions.
  1497. (_initialize_alphanbsd_tdep): Register NetBSD core file sniffer.
  1498. Use alphanbsd_aout_init_abi whre appropriate. Don't call
  1499. deprecated_add_core_fns.
  1500. * Makefile.in (alphanbsd-tdep.o): Update dependencies.
  1501. * alphabsd-tdep.c (alphabsd_supply_reg, alphabsd_fill_reg)
  1502. (alphabsd_supply_fpreg, alphabsd_fill_fpreg): Add missing spaces.
  1503. * alphanbsd-tdep.c (alphanbsd_init_abi): Use
  1504. svr4_lp64_fetch_link_map_offsets instead of
  1505. nbsd_lp64_solib_svr4_fetch_link_map_offsets.
  1506. 2006-07-06 Andrew Stubbs <andrew.stubbs@st.com>
  1507. * parse.c (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block
  1508. write_exp_elt_longcst, write_exp_elt_dblcst, write_exp_elt_type,
  1509. write_exp_elt_intern): Zero initialize tmp.
  1510. 2006-07-05 Daniel Jacobowitz <dan@codesourcery.com>
  1511. * remote.c (remote_xfer_partial): Remove KOD support.
  1512. * target.h (enum target_object): Remove TARGET_OBJECT_KOD.
  1513. * MAINTAINERS: Move Kernel Object Display entry to past maintainers.
  1514. * Makefile.in (SFILES, kod_h, COMMON_OBS, kod.o, kod-cisco.o):
  1515. Remove KOD support.
  1516. * mi/mi-cmds.c (mi_cmds): Remove dummy KOD commands.
  1517. * NEWS: Mention KOD.
  1518. * kod.h, kod.c, kod-cisco.c: Delete files.
  1519. 2006-07-04 Daniel Jacobowitz <dan@codesourcery.com>
  1520. * remote.c (init_remote_state): Use xrealloc instead of xmalloc.
  1521. 2006-07-03 Nathan J. Williams <nathanw@wasabisystems.com>
  1522. * bsd-kvm.c (bsd_kvm_open): Open the KVM interface read-write if
  1523. write_files is set.
  1524. 2006-06-24 Eli Zaretskii <eliz@gnu.org>
  1525. * defs.h (DIRNAME_SEPARATOR) [!__CYGWIN__ && _WIN32]: Define to `;'.
  1526. 2006-06-23 Daniel Jacobowitz <dan@codesourcery.com>
  1527. * arm-tdep.c (arm_register_type): Use unsigned types for registers.
  1528. Add special types for sp and pc.
  1529. * Makefile.in (arm-tdep.o): Update.
  1530. 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
  1531. * remote.c (remote_escape_output): New function.
  1532. (remote_write_bytes): Use remote_escape_output.
  1533. 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
  1534. * NEWS: Mention qSupported.
  1535. * remote.c (struct remote_state): Add explicit_packet_size.
  1536. (get_remote_packet_size): Check explicit_packet_size.
  1537. (get_memory_packet_size): Likewise.
  1538. (PACKET_qSupported): New enum value.
  1539. (struct protocol_feature, remote_supported_packet)
  1540. (remote_packet_size, remote_protocol_features)
  1541. (remote_query_supported): New.
  1542. (remote_open_1): Reset explicit_packet_size. Call
  1543. remote_query_supported.
  1544. (_initialize_remote): Register qSupported.
  1545. 2006-06-21 Andrew Stubbs <andrew.stubbs@st.com>
  1546. * cli/cli-script.c (realloc_body_list): Zero new parts of body_list.
  1547. 2006-06-20 Joel Brobecker <brobecker@adacore.com>
  1548. * GDB 6.5 released from GDB 6.5 branch.
  1549. 2006-06-19 Michael Snyder <msnyder@redhat.com>
  1550. * mips-tdep.c (mips_eabi_push_dummy_call): For 32 bit ABI, to
  1551. decide how many registers it takes to pass a floating point
  1552. argument, what matters is the size of a floating point register
  1553. (not the size of a general purpose register).
  1554. (mips_o32_push_dummy_call): Ditto.
  1555. 2006-06-19 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
  1556. * configure.tgt: Add gdbserver support for m32r-linux.
  1557. 2006-06-18 Mark Kettenis <kettenis@gnu.org>
  1558. * m68klinux-tdep.c (m68k_linux_init_abi): Fix typo in comment.
  1559. 2006-06-15 Daniel Jacobowitz <dan@codesourcery.com>
  1560. * infrun.c (insert_step_resume_breakpoint_at_caller): New function,
  1561. based on insert_step_resume_breakpoint_at_frame.
  1562. (handle_inferior_event): Update comments. Use
  1563. insert_step_resume_breakpoint_at_caller.
  1564. (insert_step_resume_breakpoint_at_frame): Revise comments.
  1565. 2006-06-14 Daniel Jacobowitz <dan@codesourcery.com>
  1566. * dwarf2read.c (read_unspecified_type): New function.
  1567. (read_type_die): Handle DW_TAG_unspecified_type.
  1568. (Committed by Julian Brown.)
  1569. 2006-06-13 Daniel Jacobowitz <dan@codesourcery.com>
  1570. * symfile.c (load_command): Check for a changed executable before
  1571. "load".
  1572. 2006-06-13 Fred Fish <fnf@specifix.com>
  1573. * mips-tdep.c (mips_find_long_section): New function.
  1574. (mips_gdbarch_init): Use it to set long and pointer sizes.
  1575. 2006-06-13 Nathan Sidwell <nathan@codesourcery.com>
  1576. * remote-file.io.c (remote_fileio_func_system): Treat zero length
  1577. string as NULL. Adjust for NULL pointer argument.
  1578. 2006-06-12 Daniel Jacobowitz <dan@codesourcery.com>
  1579. * remote.c (set_remote_protocol_packet_cmd)
  1580. (show_remote_protocol_packet_cmd): New prototypes.
  1581. (remote_set_cmdlist, remote_show_cmdlist): Move higher.
  1582. (struct packet_config): Make name and title const.
  1583. (add_packet_config_cmd): Remove unnecessary arguments.
  1584. (_initialize_remote): Update calls.
  1585. 2006-06-10 Daniel Jacobowitz <dan@codesourcery.com>
  1586. * mingw-hdep.c (gdb_select): Always check for NULL fd sets
  1587. before calling FD_ISSET. Correct check for exceptfds which
  1588. previously tested writefds.
  1589. 2006-06-09 Daniel Jacobowitz <dan@codesourcery.com>
  1590. Julian Brown <julian@codesourcery.com>
  1591. * dwarf2read.c (partial_read_comp_unit_head): Accept version 3.
  1592. 2006-06-09 Julian Brown <julian@codesourcery.com>
  1593. * MAINTAINERS (Write After Approval): Add myself.
  1594. 2006-06-08 Michael Snyder <msnyder@redhat.com>
  1595. * mips-tdep.c (fp_register_arg_p): Recognize floating point typedefs.
  1596. 2006-06-08 Nathan Sidwell <nathan@codesourcery.com>
  1597. * m68k-tdep.c (m68k_dwarf_reg_to_regnum): New.
  1598. (m68k_gdbarch_init): Set it for dwarf & dwarf2 reg number
  1599. conversion. Use M68K_NUM_REGS for number of regs.
  1600. * remote-fileio.c (remote_fileio_reset): New.
  1601. * remote-fileio.h (remote_fileio_reset): Prototype.
  1602. * remote.c (extended_remote_restart, remote_open_1): Call it.
  1603. * remote.c (remote_open_1): Do preopen tasks before
  1604. irreversably destroying state.
  1605. 2006-06-08 Daniel Jacobowitz <dan@codesourcery.com>
  1606. * remote.c (struct remote_state): New type, only containing
  1607. buf and buf_size.
  1608. (remote_state): New variable.
  1609. (get_remote_state): New function.
  1610. (struct remote_arch_state): Renamed from struct remote_state.
  1611. Removed buf and buf_size.
  1612. (get_remote_arch_state): Renamed from get_remote_state. All
  1613. necessary callers updated to call this function.
  1614. (init_remote_state): Initialize the architecture-specific state.
  1615. Update the target-specific state if necessary.
  1616. (get_remote_packet_size): New function. All previous references
  1617. changed to use this accessor function.
  1618. (packet_reg_from_regnum, packet_reg_from_pnum): Take a
  1619. remote_arch_state instead of a remote_state. All callers changed.
  1620. (_initialize_remote): Initialize the packet buffer here.
  1621. 2006-06-06 Nathan Sidwell <nathan@codesourcery.com>
  1622. * remote.c (remote_insert_watchpoint): Return -1, rather than
  1623. fatal error if packet is disabled.
  1624. (remote_remove_watchpoint, remote_insert_hw_breakpoint,
  1625. remote_remove_hw_breakpoint): Likewise.
  1626. 2006-06-02 Nick Roberts <nickrob@snap.net.nz>
  1627. * breakpoint.c (print_it_typical): Use EXEC_ASYNC_LOCATION_REACHED.
  1628. 2006-05-31 Michael Snyder <msnyder@redhat.com>
  1629. * mips-tdep.c: Comment tweaks.
  1630. 2006-05-31 Daniel Jacobowitz <dan@codesourcery.com>
  1631. * Makefile.in (top_builddir): Update comments.
  1632. (INTL_DIR, INTL_SRC): Delete.
  1633. (INTL, INTL_DEPS, INTL_CFLAGS): Update.
  1634. * acinclude.m4: Include new gettext macros.
  1635. * configure.ac: Use ZW_GNU_GETTEXT_SISTER_DIR. Remove copied
  1636. CATALOGS code.
  1637. * aclocal.m4, configure: Regenerated.
  1638. 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
  1639. * Makefile.in (arm-linux-nat.o): Update dependencies.
  1640. * arm-linux-nat.c: Include "gdb_proc_service.h".
  1641. (PTRACE_GET_THREAD_AREA): Define.
  1642. (ps_get_thread_area): New function.
  1643. 2006-05-28 Alexandre Oliva <aoliva@redhat.com>
  1644. * dwarf2-frame.h (enum dwarf2_frame_reg_rule): Add
  1645. DWARF2_FRAME_REG_SAVED_VAL_OFFSET and
  1646. DWARF2_FRAME_REG_SAVED_VAL_EXP.
  1647. * dwarf2-frame.c (execute_cfa_program): Handle val_offset,
  1648. val_offset_sf and val_expression.
  1649. (dwarf2_frame_prev_register): Handle the new reg rules.
  1650. (dwarf2_frame_this_id): Use pc instead of function entry point.
  1651. 2006-05-28 Alexandre Oliva <aoliva@redhat.com>
  1652. * dwarf2-frame.c (struct dwarf2_cie): Add signal_frame field.
  1653. (dwarf2_frame_sniffer): Use it.
  1654. (decode_frame_entry_1): Set it according to augmentation "S".
  1655. 2006-05-27 Joel Brobecker <brobecker@adacore.com>
  1656. From Peter Schauer <peterschauer@gmx.net>
  1657. * m2-typeprint.c (m2_record_fields): Move variable declarations
  1658. to the begining of the block.
  1659. 2006-05-23 Mark Mitchell <mark@codesourcery.com>
  1660. * mt-tdep.c (mt_register_name): Correct out-of-range logic to
  1661. include additional registers.
  1662. * mt-tdep.c (mt_gdb_regnums): Add ZI2, ZQ2, Ichannel2,
  1663. Iscramb2, Qscramb2, Qchannel2.
  1664. (mt_register_name): Likewise.
  1665. (mt_copro_register_type): Describe ZI2 and ZQ2.
  1666. * mt-tdep.c (mt_gdb_regnums): Define
  1667. MT_COPRO_PSEUDOREG_MAC_REGNUM.
  1668. (mt_register_name): Use it.
  1669. (mt_copro_register_type): Likewise.
  1670. (mt_register_type): Likewise.
  1671. (mt_pseudo_register_read): Likewise. Read the MAC register, not
  1672. the coprocessor register.
  1673. (mt_pseudo_register_write): Likewise.
  1674. 2006-05-21 Christopher Faylor <cgf@timesys.com>
  1675. * win32-nat.c (cygwin_exceptions): New variable.
  1676. (handle_exception): Treat a cygwin exception like a normal exception if
  1677. cygwin_exceptions is true.
  1678. (_initialize_win32_nat): Add "set cygwin-exceptions" handler.
  1679. 2006-05-20 Gaius Mulley <gaius@glam.ac.uk>
  1680. * NEWS: (Improved Modula-2 language support): New section.
  1681. 2006-05-19 Joel Brobecker <brobecker@adacore.com>
  1682. * configure: Regenerate using proper version of autoconf.
  1683. 2006-05-19 Fred Fish <fnf@specifix.com>
  1684. * Makefile.in: Fix spelling of 'explicitly' and 'explicit'.
  1685. * dwarfread.c: Fix spelling of 'unexpected'.
  1686. * mips-tdep.c: Fix spelling of 'possible' and 'Determine'.
  1687. * stack.c: Fix spelling of 'RETURN_VALUE'.
  1688. 2006-05-18 Paul Gilliam <pgilliam@us.ibm.com
  1689. * solib-svr4.c (enable_break): Breakup a long line into 3 shorter ones.
  1690. 2006-05-17 Daniel Jacobowitz <dan@codesourcery.com>
  1691. * dwarf2-frame.c: Include "value.h".
  1692. (read_reg): Use unpack_long and register_type.
  1693. * Makefile.in (dwarf2-frame.o): Update.
  1694. 2006-05-17 Daniel Jacobowitz <dan@codesourcery.com>
  1695. * remote-rdp.c: Deleted.
  1696. * NEWS: Mention removal of remote-rdp.c.
  1697. * Makefile.in (ALLDEPFILES): Remove remote-rdp.c.
  1698. (remote-rdp.o): Delete.
  1699. * README: Remove description of remote-rdp.c.
  1700. * arm-tdep.c (arm_breakpoint_from_pc): Remove obsolete comment.
  1701. * config/arm/embed.mt (TDEPFILES): Remove remote-rdp.o.
  1702. 2006-05-16 Daniel Jacobowitz <dan@codesourcery.com>
  1703. * ser-e7kpc.c: Include <time.h> if it is available.
  1704. 2006-05-16 Joel Brobecker <brobecker@adacore.com>
  1705. * version.in (version.in): Bump version number to 6.5.50 now
  1706. that the gdb-6.5 branch has been created.
  1707. * NEWS: Create a new section for changes that are included
  1708. since gdb-6.5. Name the "since gdb-6.4" section as the "in gdb-6.5"
  1709. section.
  1710. 2006-05-16 Jim Blandy <jimb@codesourcery.com>
  1711. * MAINTAINERS (Authorized Committers): Gaius Mulley has accepted
  1712. the Global Maintainers' invitation to be an authorized committer
  1713. for the Modula-2 support.
  1714. 2006-05-15 Mark Kettenis <kettenis@gnu.org>
  1715. * ppcobsd-nat.c: Include "gdb_assert.h".
  1716. [PT_GETFPREGS] (getfpregs_supplies): New function.
  1717. (ppcobsd_fetch_registers, ppcobsd_fetch_registers): Hanlde OS
  1718. versions that have PT_GETFPREGS.
  1719. (_initialize_ppcobsd_nat) [PT_GETFPREGS]: Initialize
  1720. ppcobsd_fpreg_offsets.
  1721. * ppcobsd-tdep.h (ppcobsd_fpreg_offsets, ppcobsd_fpregset):
  1722. Declare.
  1723. * ppcobsd-tdep.c (ppcobsd_fpreg_offsets, ppcobsd_fpregset): New
  1724. variables.
  1725. (_initialize_ppcobsd_tdep): Initialize ppcobsd_fpreg_offsets.
  1726. * Makefile.in (ppcobsd-nat.o): Update dependencies.
  1727. 2006-05-15 Daniel Jacobowitz <dan@codesourcery.com>
  1728. * configure.ac: Use GCC_HEADER_STDINT.
  1729. * acinclude.m4: Include stdint.m4.
  1730. * Makefile.in (gdb_stdint_h): Define.
  1731. (distclean): Remove gdb_stdint.h.
  1732. (Makefile, stamp-h): Update rules to generate only the correct
  1733. files.
  1734. (gdb_stdint.h, stamp-int): New rules.
  1735. * config.in, configure: Regenerated.
  1736. 2006-05-15 Daniel Jacobowitz <dan@codesourcery.com>
  1737. * valprint.c: Include "exceptions.h".
  1738. (val_print): If something goes wrong while printing, supply an
  1739. error message.
  1740. 2006-05-15 Peter O'Gorman <gdb-patches@mlists.thewrittenword.com>
  1741. * source.c (get_current_source_symtab_and_line)
  1742. (set_current_source_symtab_and_line): Use { 0 }.
  1743. * cli/cli-cmds.c (list_command): Likewise.
  1744. 2006-05-14 Nick Roberts <nickrob@snap.net.nz>
  1745. * mi/gdb-mi.el (gdbmi-send): Correct regexp for repeat commands.
  1746. (gdbmi): Use new variable name gdb-pc-address.
  1747. (gdbmi-frame-handler): Use new variable name gdb-pc-address.
  1748. Check that a match has been found.
  1749. 2006-05-13 Gaius Mulley <gaius@glam.ac.uk>
  1750. * m2-lang.h: Added function extern prototypes for
  1751. m2_is_long_set and get_long_set_bounds.
  1752. * m2-typeprint.c: Complete replacement.
  1753. (m2_print_type): Walk the Modula-2 type tree.
  1754. (m2_type_name): New function.
  1755. (m2_range): New function.
  1756. (m2_typedef): New function.
  1757. (m2_array): New function.
  1758. (m2_pointer): New function.
  1759. (m2_ref): New function.
  1760. (m2_unknown): New function.
  1761. (m2_union): New function.
  1762. (m2_procedure): New function.
  1763. (m2_print_bounds): New function.
  1764. (m2_short_set): New function.
  1765. (m2_is_long_set): New function.
  1766. (m2_get_discrete_bounds): New function.
  1767. (m2_is_long_set_of_type): New function.
  1768. (m2_long_set): New function.
  1769. (m2_record_fields): New function.
  1770. (m2_enum): New function.
  1771. * dwarf2read.c: Modified.
  1772. (read_set_type): New function.
  1773. (process_die): Call read_set_type.
  1774. (read_base_type): Modifed.
  1775. (set_cu_language): Added Modula-2 case clause.
  1776. * m2-valprint.c: Complete replacement.
  1777. (print_function_pointer_address): New function.
  1778. (get_long_set_bounds): New function.
  1779. (m2_print_long_set): New function.
  1780. (print_unpacked_pointer): New function.
  1781. (print_variable_at_address): New function.
  1782. (m2_val_print): Replaced.
  1783. * MAINTAINERS (Write After Approval): Added
  1784. Gaius Mulley <gaius@glam.ac.uk>
  1785. 2006-05-12 Mark Kettenis <kettenis@gnu.org>
  1786. * ppcnbsd-tdep.h: Update copyright year. Include <stddef.h>
  1787. (ppcnbsd_supply_reg, ppcnbsd_fill_reg, ppcnbsd_supply_fpreg)
  1788. (ppcnbsd_fill_fpreg): Remove prototypes.
  1789. (struct regset): Add forward declaration.
  1790. (ppcnbsd_gregset, ppcnbsd_fpregset): Extern declarations.
  1791. * ppcnbsd-tdep.c: Update copyright year. Include "gdbtypes.h",
  1792. "regset.h" and "gdb_string.h". Don't include "breakpoint.h",
  1793. "value.h", target.h and nbsd-tdep.h". Reorder includes.
  1794. (REG_FIXREG_OFFSET, REG_LR_OFFSET, REG_CR_OFFSET, REG_XER_OFFSET)
  1795. (REG_CTR_OFFSET, REG_PC_OFFSET, SIZEOF_STRUCT_REG)
  1796. (FPREG_FPR_OFFSET, FPREG_FPSCR_OFFSET, SIZEOF_STRUCT_FPREG):
  1797. Remove macros.
  1798. (ppcnbsd_supply_reg, ppcnbsd_fill_reg, ppcnbsd_supply_fpreg)
  1799. (ppcnbsd_fill_fpreg): Remove functions.
  1800. (fetch_core_registers, fetch_elfcore_registers): Remove functions.
  1801. (ppcnbsd_core_fns, ppcnbsd_elfcore_fns): Remove variables.
  1802. (ppcnbsd_reg_offsets): New variable.
  1803. (ppcnbsd_gregset, ppcnbsd_fpregset): New variables.
  1804. (ppcnbsd_sigtramp_cache_init): Deal with new signal trampoline
  1805. introduced in NetBSD 2.0.
  1806. (ppcnbsd_sigtramp): Provide complete signal trampoline.
  1807. (ppcnbsd2_sigtramp): New variable.
  1808. (ppcnbsd_init_abi): Set svr4_fetch_link_map_offsets to
  1809. svr4_ilp32_fetch_link_map_offsets. Set regset_from_core_section.
  1810. Add ppcnbs2_sigtramp unwinder.
  1811. (_initialize_ppcnbsd_tdep): Don't use deprecated_add_core_fns.
  1812. Initialize ppcnbsd_reg_offsets.
  1813. * ppcnbsd-nat.c: Update copyright year. Reorder includes.
  1814. (getregs_supplies): Use regnum instead of regno.
  1815. (getfpregs_supplies): Likewise.
  1816. (ppcnbsd_fetch_inferior_registers): Likewise. Call
  1817. ppc_supply_gregset and ppc_suppply_fpregset instead of
  1818. ppcnbsd_supply_reg and ppcnbsd_supply_fpreg
  1819. (ppcnbsd_store_inferior_registers): Likewise. Call
  1820. ppc_collect_gregset and ppc_collect_fpregset instead of
  1821. ppcnbsd_fill_reg and ppcnbsd_fill_fpreg.
  1822. (ppcnbsd_supply_pcb): Use `gdb_byte *' instead of `char *'.
  1823. (_initialize_ppcnbsd_nat): Add some whitespace.
  1824. * Makefile.in (ppcnbsd-nat.o, ppcnbsd-tdep.o): Update dependencies.
  1825. * config/powerpc/nbsd.mh (NATDEPFILES): Remove infptrace.o.
  1826. (NAT_FILE): Remove.
  1827. * config/powerpc/nbsd.mt (TDEPFILES): Remove nbsd-tdep.o.
  1828. 2006-05-11 Alfred M. Szmidt <ams@gnu.org>
  1829. * gnu-nat.c (inf_validate_procs): Don't use lvalue in assignments.
  1830. 2006-05-11 Fred Fish <fnf@specifix.com>
  1831. * symtab.c (skip_prologue_using_sal): Handle single line functions
  1832. like "foo(){}", which may optimize down to a single return inst.
  1833. 2006-05-10 Steve Ellcey <sje@cup.hp.com>
  1834. * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support): Remove
  1835. message.
  1836. 2006-05-09 Andreas Schwab <schwab@suse.de>
  1837. * dwarf2-frame.c (struct dwarf2_fde): Add eh_frame_p.
  1838. (execute_cfa_program): Add parameter eh_frame_p. Call
  1839. dwarf2_frame_eh_frame_regnum when true.
  1840. (dwarf2_frame_cache): Pass eh_frame_p from fde to
  1841. execute_cfa_program.
  1842. (decode_frame_entry_1): Call dwarf2_frame_eh_frame_regnum when
  1843. processing .eh_frame. Copy eh_frame_p to the new fde.
  1844. (struct dwarf2_frame_ops): Add eh_frame_regnum.
  1845. (dwarf2_frame_set_eh_frame_regnum): Define.
  1846. (dwarf2_frame_eh_frame_regnum): Define.
  1847. * dwarf2-frame.h (dwarf2_frame_set_eh_frame_regnum): Declare.
  1848. (dwarf2_frame_eh_frame_regnum): Declare.
  1849. 2006-05-06 David S. Miller <davem@sunset.davemloft.net>
  1850. * linux-nat.c (linux_nat_do_thread_registers): Check for
  1851. NULL collect_regset method.
  1852. 2006-05-06 Ulrich Weigand <uweigand@de.ibm.com>
  1853. * s390-tdep.c (s390_collect_regset): New function.
  1854. (s390_gregset, s390x_gregset, s390_fpregset): Add it.
  1855. 2006-05-06 Nick Roberts <nickrob@snap.net.nz>
  1856. * dwarf2read.c: Make LOC_OPTIMIZED_OUT the default value for a
  1857. symbol.
  1858. 2006-05-05 Ulrich Weigand <uweigand@de.ibm.com>
  1859. * linux-nat.c (exit_lwp): Fix NULL pointer access.
  1860. (linux_nat_handle_extended): New parameter STOPPING.
  1861. (wait_lwp): Call it with STOPPING equals 1.
  1862. (linux_nat_wait): Call it with STOPPING equals 0.
  1863. 2006-05-05 Ulrich Weigand <uweigand@de.ibm.com>
  1864. * linux-nat.c (linux_nat_wait): Do not short-cut reporting
  1865. of 'uninteresting' signals when single-stepping.
  1866. 2006-05-05 Daniel Jacobowitz <dan@codesourcery.com>
  1867. * MAINTAINERS: Move NEWS to the documentation entry.
  1868. 2006-05-05 David S. Miller <davem@sunset.davemloft.net>
  1869. * linux-nat.c (linux_nat_do_thread_registers): Use the
  1870. regset_from_core_section infrastructure if the target
  1871. supports it.
  1872. * Makefile.in: Update dependencies.
  1873. * linux-thread-db.c (thread_db_store_registers): Use
  1874. regcache_raw_collect.
  1875. 2006-05-05: Paul Gilliam <pgilliam@us.ibm.com>
  1876. * ppc-linux-nat.c: Clean up types for ptrace.
  1877. Replace (CORE_ADDR) with (uintptr_t) to avoid the size difference
  1878. between a CORE_ADDR and a void* on ppc64 systems compiled for 32-bits.
  1879. 2006-05-05 Daniel Jacobowitz <dan@codesourcery.com>
  1880. * remote.c (remote_disconnect): Add TARGET argument.
  1881. * target.c (debug_to_disconnect): Delete.
  1882. (update_current_target): Do not inherit to_disconnect.
  1883. (target_disconnect): Search for a target to implement to_disconnect.
  1884. (setup_target_debug): Do not reference to_disconnect.
  1885. * target.h (struct target_ops): Add target argument to
  1886. to_disconnect.
  1887. 2006-05-06 Fred Fish <fnf@specifix.com>
  1888. * mips-tdep.c (mips_o64_push_dummy_call): Left shift big endian
  1889. structs or unions independent of ABI register size.
  1890. 2006-05-06 Fred Fish <fnf@specifix.com>
  1891. * mips-tdep.c (mips_o64_return_value): Replace stub that always
  1892. returned RETURN_VALUE_STRUCT_CONVENTION with a real function.
  1893. 2006-05-05 Daniel Jacobowitz <dan@codesourcery.com>
  1894. * mi/mi-main.c (captured_mi_execute_command): Check the return
  1895. value of -interpreter-exec.
  1896. 2006-05-03 Vladimir Prus <ghost@cs.msu.su>
  1897. * varobj.c (c_value_of_variable): Ignore top-level references.
  1898. (Committed by Jim Blandy.)
  1899. 2006-04-30 Mark Kettenis <kettenis@gnu.org>
  1900. * breakpoint.c (insert_single_step_breakpoint): Make a failure to
  1901. insert a single-step breakpoint an error instead of a warning.
  1902. 2006-05-01 Nathan J. Williams <nathanw@wasabisystems.com>
  1903. * ppcnbsd-tdep.c (ppcnbsd_return_value): Change type of last two
  1904. arguments from void * to gdb_byte *.
  1905. 2006-04-26 Michael Snyder <msnyder@redhat.com>
  1906. * linux-fork.c (_initialize_linux_fork): Rename "delete-fork"
  1907. command to "delete fork" (no hyphen), compatible with other
  1908. "delete" commands.
  1909. (info_forks_command): Accept a fork ID argument, for info
  1910. on a single fork. Report if no matching forks.
  1911. 2006-04-25 Mark Kettenis <kettenis@gnu.org>
  1912. * breakpoint.c (remove_single_step_breakpoints): Bail out early if
  1913. no breakpoints are inserted.
  1914. From Masaki MURANAKA <monaka@monami-software.com>:
  1915. * mips-mdebug-tdep.c (mips_mdebug_frame_prev_register): Change
  1916. type of last argument to `gdb_byte *'
  1917. 2006-04-25 Jim Blandy <jimb@codesourcery.com>
  1918. Add support for 'target remote |' on MinGW.
  1919. * ser-mingw.c (struct pipe_state): New structure.
  1920. (make_pipe_state, free_pipe_state, cleanup_pipe_state)
  1921. (pipe_windows_open, pipe_windows_close, pipe_windows_read)
  1922. (pipe_windows_write, pipe_wait_handle): New functions.
  1923. (_initialize_ser_windows): Register a "pipe" interface based on
  1924. them.
  1925. 2006-04-24 Daniel Jacobowitz <dan@codesourcery.com>
  1926. * ser-mingw.c: Include <conio.h>.
  1927. (struct ser_console_state, struct net_windows_state): Add exit_select,
  1928. have_stopped, thread.
  1929. (pipe_select_thread, console_select_thread)
  1930. (net_windows_select_thread): Don't create a local state copy or
  1931. close stop_select. Exit on exit_select instead of stop_select. Set
  1932. have_stopped.
  1933. (console_select_thread): Don't report control keypresses as pending
  1934. input.
  1935. (pipe_select_thread): Allow stop_select to interrupt sleeping.
  1936. (set_console_wait_handle): Create exit_select and have_stopped.
  1937. Save the thread handle. Check _kbhit before starting a thread.
  1938. (ser_console_done_wait_handle): New.
  1939. (ser_console_close): Close new handles. Wait for the thread to
  1940. exit.
  1941. (new_windows_select_thread): Assert that an event occurred.
  1942. (net_windows_wait_handle): Check for pending input before starting
  1943. a thread.
  1944. (net_windows_done_wait_handle): New.
  1945. (net_windows_open): Create exit_select and have_stopped.
  1946. Save the thread handle.
  1947. (net_windows_close): Close new handles. Wait for the thread to
  1948. exit.
  1949. (_intiialize_ser_windows): Register done_wait_handle methods.
  1950. * serial.c [USE_WIN32API] (serial_done_wait_handle): New.
  1951. * serial.h [USE_WIN32API] (struct serial_ops): Add done_wait_handle.
  1952. [USE_WIN32API] (serial_done_wait_handle): New prototype.
  1953. * mingw-hdep.c (gdb_select): Use serial_done_wait_handle.
  1954. 2006-04-23 Andreas Schwab <schwab@suse.de>
  1955. * rs6000-tdep.c: Include "reggroups.h" only once.
  1956. * Makefile.in (rs6000-tdep.o): Update dependencies.
  1957. 2006-04-21 Frederic Riss <frederic.riss@st.com>
  1958. * dwarf2read.c (dwarf2_start_subfile): Change prototype to accept
  1959. compilation directory as last argument.
  1960. Always pass comp_dir as second argument to start_subfile and prepend
  1961. dirname to the filename when necessary.
  1962. Remove now superfluous search for pre-existing subfile.
  1963. (dwarf_decode_lines): Pass the compilation directory to
  1964. dwarf2_start_subfile.
  1965. 2006-04-20 Michael Snyder <msnyder@redhat.com>
  1966. * 2006-03-22 Jim Blandy <jimb@redhat.com>
  1967. Add support for the Renesas M32C and M16C.
  1968. * configure.tgt (m32c-*-*): New entry.
  1969. * config/m32c/m32c.mt: New file.
  1970. * m32c-tdep.c: New file.
  1971. * Makefile.in (elf_m32c_h): New variable.
  1972. (m32c-tdep.o): New rule.
  1973. * NEWS: Mention new target.
  1974. * MAINTAINERS: Designate Jim Blandy as responsible maintainer.
  1975. 2006-04-20 Michael Snyder <msnyder@redhat.com>
  1976. * remote.c: Fix spelling error in comment.
  1977. 2006-04-20 Daniel Jacobowitz <dan@codesourcery.com>
  1978. * m68klinux-tdep.c (m68k_linux_sigtramp_frame_prev_register):
  1979. Correct type of VALUEP. Reported by Jean-Rene Peulve
  1980. <jr.peulve@wanadoo.fr>.
  1981. 2006-04-19 Masaki Muranaka <monaka@monami-software.com>
  1982. * m32r-rom.c: On MinGW, include winsock.h instead of sys/types.h,
  1983. netdb.h, netinet/in.h.
  1984. (m32r_upload_command); Add calls WSAStartup().
  1985. * remote-m32r-sdi.c: On MinGW, include winsock.h instead of
  1986. netinet/in.h.
  1987. 2006-04-18 Daniel Jacobowitz <dan@codesourcery.com>
  1988. * breakpoint.c (deprecated_read_memory_nobpt): Update to use
  1989. shadow_len.
  1990. (insert_bp_location, reattach_breakpoints, remove_breakpoint)
  1991. (delete_breakpoint): Update calls to changed methods.
  1992. (deprecated_insert_raw_breakpoint, deprecated_remove_raw_breakpoint)
  1993. (single_step_breakpoints, insert_single_step_breakpoint)
  1994. (remove_single_step_breakpoints): New.
  1995. * breakpoint.h (struct bp_target_info): New.
  1996. (struct bp_location): Replace shadow_contents with
  1997. target_info and overlay_target_info.
  1998. (deprecated_insert_raw_breakpoint, deprecated_remove_raw_breakpoint)
  1999. (insert_single_step_breakpoint, remove_single_step_breakpoints): New
  2000. prototypes.
  2001. * gdbarch.sh: Forward declare struct bp_target_info in gdbarch.h.
  2002. (memory_insert_breakpoint, memory_remove_breakpoint): Update second
  2003. argument.
  2004. * mem-break.c (default_memory_insert_breakpoint): Update. Set
  2005. placed_address, placed_size, and shadow_len.
  2006. (default_memory_remove_breakpoint): Update. Don't use
  2007. BREAKPOINT_FROM_PC.
  2008. (memory_insert_breakpoint, memory_remove_breakpoint): Update.
  2009. * target.c (update_current_target): Update prototypes for changed
  2010. functions.
  2011. (debug_to_insert_breakpoint, debug_to_remove_breakpoint)
  2012. (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint):
  2013. Update.
  2014. * target.h: Forward declare struct bp_target_info.
  2015. (struct target_ops): Use a bp_target_info argument for
  2016. to_insert_breakpoint, to_remove_breakpoint,
  2017. to_insert_hw_breakpoint, and to_remove_hw_breakpoint.
  2018. (target_insert_breakpoint, target_remove_breakpoint)
  2019. (target_insert_hw_breakpoint, target_remove_hw_breakpoint)
  2020. (memory_insert_breakpoint, memory_remove_breakpoint)
  2021. (default_memory_insert_breakpoint, default_memory_remove_breakpoint):
  2022. Update.
  2023. * config/i386/nm-i386.h: Forward declare struct bp_target_info.
  2024. (i386_insert_hw_breakpoint, i386_remove_hw_breakpoint): Update.
  2025. (target_insert_hw_breakpoint, target_remove_hw_breakpoint): Likewise.
  2026. * gdbarch.c, gdbarch.h: Regenerated.
  2027. * alpha-tdep.c (alpha_software_single_step): Use
  2028. insert_single_step_breakpoint and remove_single_step_breakpoints.
  2029. Remove unused statics.
  2030. * arm-tdep.c (arm_software_single_step): Likewise. Add a note.
  2031. * cris-tdep.c (cris_software_single_step): Likewise.
  2032. * mips-tdep.c (mips_software_single_step): Likewise.
  2033. * rs6000-tdep.c (rs6000_software_single_step): Likewise.
  2034. * sparc-tdep.c (sparc_software_single_step): Likewise.
  2035. * wince.c (struct thread_info_struct): Remove step_prev.
  2036. (undoSStep): Use remove_single_step_breakpoints.
  2037. (wince_software_single_step): Use insert_single_step_breakpoint.
  2038. * corelow.c (ignore): Remove unneeded prototype. Update arguments.
  2039. * exec.c (ignore): Likewise.
  2040. * sol-thread.c (ignore): Likewise.
  2041. * procfs.c (dbx_link_shadow_contents): Delete.
  2042. (dbx_link_bpt): New.
  2043. (procfs_mourn_inferior): Remove it if necessary.
  2044. (remove_dbx_link_breakpoint): Use it.
  2045. (insert_dbx_link_bpt_in_file): Set it.
  2046. (procfs_init_inferior): Don't update dbx_link_bpt_addr.
  2047. * rs6000-nat.c (exec_one_dummy_insn): Use
  2048. deprecated_insert_raw_breakpoint and
  2049. deprecated_remove_raw_breakpoint.
  2050. * solib-irix.c (shadow_contents, breakpoint_addr): Delete.
  2051. (base_breakpoint): New.
  2052. (disable_break): Use it.
  2053. (enable_break): Set it.
  2054. * i386-nat.c (i386_insert_hw_breakpoint, i386_remove_hw_breakpoint):
  2055. Update.
  2056. * ia64-tdep.c (ia64_memory_insert_breakpoint)
  2057. (ia64_memory_remove_breakpoint): Likewise.
  2058. * m32r-tdep.c (m32r_memory_insert_breakpoint)
  2059. (m32r_memory_remove_breakpoint): Likewise.
  2060. * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
  2061. Likewise. Remove unnecessary prototypes. Use placed_address
  2062. and placed_size. Removed useless read from memory.
  2063. * nto-procfs.c (procfs_insert_breakpoint)
  2064. (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
  2065. (procfs_remove_hw_breakpoint): Update.
  2066. * ocd.c (ocd_insert_breakpoint, ocd_remove_breakpoint): Likewise.
  2067. * ocd.h (ocd_insert_breakpoint, ocd_remove_breakpoint): Likewise.
  2068. * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
  2069. * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Likewise.
  2070. * remote-e7000.c (e7000_insert_breakpoint)
  2071. (e7000_remove_breakpoint): Likewise.
  2072. * remote-m32r-sdi.c (m32r_insert_breakpoint)
  2073. (m32r_remove_breakpoint): Likewise.
  2074. * remote-mips.c (mips_insert_breakpoint)
  2075. (mips_remove_breakpoint): Likewise.
  2076. * remote-rdp.c (remote_rdp_insert_breakpoint)
  2077. (remote_rdp_remove_breakpoint): Likewise.
  2078. (rdp_step): Use deprecated_insert_raw_breakpoint and
  2079. deprecated_remove_raw_breakpoint.
  2080. * remote-sds.c (sds_insert_breakpoint, sds_remove_breakpoint):
  2081. Update.
  2082. * remote-sim.c (gdbsim_insert_breakpoint, gdbsim_remove_breakpoint):
  2083. Delete.
  2084. (init_gdbsim_ops): Use memory_insert_breakpoint and
  2085. memory_remove_breakpoint.
  2086. * remote-st.c (st2000_insert_breakpoint)
  2087. (st2000_remove_breakpoint): Update. Remove unused
  2088. BREAKPOINT_FROM_PC.
  2089. * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
  2090. Update. Use placed_address and placed_size.
  2091. (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Likewise.
  2092. 2006-04-12 Daniel Jacobowitz <dan@codesourcery.com>
  2093. * remote.c (extended_remote_restart): Pass the correct length
  2094. to getpkt.
  2095. 2006-04-11 Jim Blandy <jimb@codesourcery.com>
  2096. * serial.c (serial_open): Check for special cases at the front of
  2097. the "device" name before scanning for the ':' that would indicate
  2098. an IP-based connection.
  2099. 2006-04-10 Christopher Faylor <cgf@timesys.com>
  2100. * win32-nat.c (open_symbol_file_object): New function.
  2101. (in_dynsym_resolve_code): Ditto.
  2102. (init_win32_ops): Fill in fields which ought not to be NULL.
  2103. 2006-04-10 Christopher Faylor <cgf@timesys.com>
  2104. * win32-nat.c (do_win32_fetch_inferior_registers): Don't do anything
  2105. with saved context if __COPY_CONTEXT_SIZE is not defined.
  2106. (handle_output_debug_string): Ditto.
  2107. 2006-04-10 Daniel Jacobowitz <dan@codesourcery.com>
  2108. * arm-linux-tdep.c (arm_linux_extract_return_value): Use gdb_byte.
  2109. 2006-04-09 David S. Miller <davem@sunset.davemloft.net>
  2110. * sparc64-linux-tdep.c (sparc64_linux_init_abi): Append dwarf2
  2111. frame sniffer.
  2112. * sparc-tdep.c (sparc32_gdbarch_init): Make sure to call
  2113. dwarf2_frame_set_init_reg() before gdbarch_init_osabi() so
  2114. that the latter can override.
  2115. * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
  2116. 2006-04-09 Ulrich Weigand <uweigand@de.ibm.com>
  2117. * s390-tdep.c (struct s390_prologue_data): New field 'stack'.
  2118. (s390_store): Call pv_area_store to track stack slots.
  2119. (s390_load): Call pv_area_fetch to track stack slots.
  2120. (s390_check_for_saved): New function.
  2121. (s390_analyze_prologue): Call pv_area_scan. Allocate and free stack.
  2122. 2006-04-09 Ulrich Weigand <uweigand@de.ibm.com>
  2123. * Makefile.in (s390-tdep.o): Add dependency on $(prologue_value_h).
  2124. * s390-tdep.c: Include "prologue-value.h".
  2125. (struct prologue_value): Remove.
  2126. (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
  2127. pv_constant_last, pv_add, pv_add_constant, pv_subtract,
  2128. pv_logical_and, pv_is_identical, pv_is_register): Remove.
  2129. (compute_x_addr): Remove, replace by ...
  2130. (s390_addr): ... this new function.
  2131. (struct s390_prologue_data): Use pv_t instead of prologue_value.
  2132. (s390_store, s390_load): Likewise.
  2133. (s390_prologue_frame_unwind_cache): Likewise.
  2134. (s390_analyze_prologue): Likewise. Also, simplify and combine
  2135. several conditional statements.
  2136. 2006-04-08 Jim Blandy <jimb@codesourcery.com>
  2137. * Makefile.in (COMMON_OBS): List prologue-value.o. (Omitted from
  2138. last patch.)
  2139. 2006-04-08 David S. Miller <davem@sunset.davemloft.net>
  2140. * sparc-linux-tdep.c (sparc32_linux_step_trap): New.
  2141. (sparc32_linux_init_abi): Hook it into tdep->step_trap.
  2142. (sparc32_linux_core_gregset,
  2143. sparc32_linux_supply_core_gregset,
  2144. sparc32_linux_collect_core_gregset,
  2145. sparc32_linux_supply_core_fpregset,
  2146. sparc32_linux_collect_core_fpregset): New.
  2147. (sparc32_linux_init_abi): Register them with generic sparc
  2148. core regset infrastructure.
  2149. * sparc64-linux-tdep.c (sparc64_linux_step_trap): New.
  2150. (sparc64_linux_init_abi): Hook it into tdep->step_trap.
  2151. (sparc64_linux_core_gregset,
  2152. sparc64_linux_supply_core_gregset,
  2153. sparc64_linux_collect_core_gregset,
  2154. sparc64_linux_supply_core_fpregset,
  2155. sparc64_linux_collect_core_fpregset): New.
  2156. (sparc64_linux_init_abi): Register them with generic sparc
  2157. core regset infrastructure.
  2158. * Makefile.in: Update dependencies.
  2159. 2006-04-07 David S. Miller <davem@sunset.davemloft.net>
  2160. * linux-nat.c (linux_nat_thread_alive): Handle targets that
  2161. do not implement PTRACE_PEEKUSER.
  2162. 2006-04-07 Daniel Jacobowitz <dan@codesourcery.com>
  2163. * remote.c (remote_wait): Convert warning to error before
  2164. parsing corrupt packets.
  2165. 2006-04-07 Andrew Stubbs <andrew.stubbs@st.com>
  2166. * cli/cli-script.c (struct user_args): Add command field.
  2167. (arg_cleanup): Free command string.
  2168. (setup_user_args): Copy the command line before relying on it.
  2169. 2006-04-06 Joel Brobecker <brobecker@adacore.com>
  2170. * breakpoint.c (_initialize_breakpoint): Add "del" as an alias
  2171. of the "delete" command.
  2172. 2006-04-06 Randolph Chung <tausq@debian.org>
  2173. * MAINTAINERS (Patch champions): Add myself.
  2174. 2006-04-05 Andreas Schwab <schwab@suse.de>
  2175. * Makefile.in: Update dependencies.
  2176. 2006-04-05 David S. Miller <davem@sunset.davemloft.net>
  2177. * sparc-tdep.c (sparc32_dwarf2_frame_init_reg): New.
  2178. (sparc32_gdbarch_init): Pass it to dwarf2_frame_set_init_reg.
  2179. * Makefile.in (sparc-tdep.o): Update dependencies.
  2180. * sparc-linux-tdep.c (sparc32_linux_sigframe_init): Pull register
  2181. window out of the correct stack frame.
  2182. * sparc64-linux-tdep.c (sparc64_linux_sigframe_init): Likewise.
  2183. * dwarf2-frame.c (dwarf2_frame_ops init_reg): Add "next_frame"
  2184. argument.
  2185. (dwarf2_frame_default_init_reg): Likewise.
  2186. (dwarf2_frame_set_init_reg): Update init_reg arg.
  2187. (dwarf2_frame_init_reg): Take "next_frame" and pass it to
  2188. ops->init_reg().
  2189. (dwarf2_frame_cache): Pass next_frame to dwarf2_frame_init_reg.
  2190. * dwarf2-frame.h (dwarf2-frame_set_init_reg): Update declaration.
  2191. * cris-tdep.c (cris_dwarf2_frame_init_reg): Add next_frame arg.
  2192. * s390-tdep.c (s390_dwarf2_frame_init_reg): Likewise.
  2193. * sh-tdep.c (sh_dwarf2_frame_init_reg): Likewise.
  2194. * sparc64-tdep.c (sparc64_dwarf2_frame_init_reg): Likewise.
  2195. * sparc-tdep.c (sparc32_struct_return_from_sym): New function.
  2196. (sparc32_frame_cache): Call it.
  2197. (sparc32_dwarf2_struct_return_p): New function.
  2198. (sparc_dwarf2_frame_init_reg): Use it to determine if the function
  2199. returns a structure and thus we have to indicate the return PC and
  2200. NPC are 4 bytes later than usual.
  2201. * sparc-linux-tdep.c (sparc32_linux_init_abi): Append
  2202. dwarf2 frame sniffer.
  2203. * Makefile.in (sparc-linux-tdep.o): Update dependencies.
  2204. 2006-04-04 David S. Miller <davem@davemloft.net>
  2205. * config/linux.mh (NATDEPFILES): Remove sparc-sol2-nat.o
  2206. * config/linux64.h (NATDEPFILES): Likewise
  2207. * sparc-linux-nat.c (supply_gregset, supply_fpregset, fill_gregset,
  2208. fill_fpregset): New.
  2209. * sparc64-linux-nat.c (supply_gregset, supply_fpregset, fill_gregset,
  2210. fill_fpregset): New.
  2211. * Makefile.in (sparc-linux-nat.o, sparc64-linux-nat.o): Update for
  2212. new includes.
  2213. 2006-04-04 Andreas Schwab <schwab@suse.de>
  2214. * Makefile.in (elf_common_h): Define.
  2215. 2006-04-03 Andrew Stubbs <andrew.stubbs@st.com>
  2216. * sh-tdep.c (sh_dwarf2_frame_init_reg): New function.
  2217. (sh_gdbarch_init): Call dwarf2_frame_set_init_reg().
  2218. 2006-03-31 Andrew Stubbs <andrew.stubbs@st.com>
  2219. * value.h (struct internalvar): Add field 'endian'.
  2220. * value.c (lookup_internalvar): Initialise endian.
  2221. (value_of_internalvar): Flip the endian of built-in types if required.
  2222. (set_internalvar): Set the endian.
  2223. (show_convenience): Access the value through value_of_internalvar().
  2224. 2006-03-30 Vladimir Prus <ghost@cs.msu.su>
  2225. * remote.c (watchpoint_to_Z_packet): Use values of Z_packet_type enum
  2226. instead of hardcoded integer literals.
  2227. 2006-03-30 Daniel Jacobowitz <dan@codesourcery.com>
  2228. * cli/cli-script.c (insert_args): Handle NULL user_args.
  2229. 2006-03-30 Daniel Jacobowitz <dan@codesourcery.com>
  2230. * arm-tdep.c (thumb_scan_prologue): Don't try to analyze
  2231. the function at zero if we have no symbols.
  2232. 2006-03-30 Adrien Kunysz <a_kunysz@yahoo.com>
  2233. * i386-stub.c (getpacket): Fix array overflow.
  2234. * m32r-stub.c (getpacket): Likewise.
  2235. * m68k-stub.c (getpacket): Likewise.
  2236. * sh-stub.c (getpacket): Likewise.
  2237. * sparc-stub.c (getpacket): Likewise.
  2238. 2006-03-30 Daniel Jacobowitz <dan@codesourcery.com>
  2239. * frame.h (set_current_sal_from_frame): New prototype.
  2240. * stack.c (set_current_sal_from_frame): Make global.
  2241. * infrun.c (normal_stop): Call set_current_sal_from_frame.
  2242. 2006-03-30 Daniel Jacobowitz <dan@codesourcery.com>
  2243. * linux-thread-db.c: Include "linux-nat.h".
  2244. (check_for_thread_db): New function, split out from
  2245. thread_db_new_objfile. Remove dead check for active
  2246. thread_db on inapplicable targets.
  2247. (thread_db_new_objfile): Call check_for_thread_db.
  2248. * Makefile.in (linux-thread-db.o): Update.
  2249. * linux-nat.c (child_post_attach): Call check_for_thread_db.
  2250. (linux_child_post_startup_inferior): Likewise.
  2251. (lin_lwp_attach_lwp): Call target_post_attach instead of
  2252. child_post_attach.
  2253. * linux-nat.h (check_for_thread_db): New prototype.
  2254. 2006-03-30 Daniel Jacobowitz <dan@codesourcery.com>
  2255. * remote.c (struct remote_state): Add BUF and BUF_SIZE.
  2256. (init_remote_state): Initialize the new fields.
  2257. (get_memory_packet_size): Update BUF and BUF_SIZE if necessary.
  2258. (set_thread, remote_thread_alive, remote_unpack_thread_info_response)
  2259. (remote_get_threadinfo, parse_threadlist_response)
  2260. (remote_get_threadlist, remote_current_thread, remote_threads_info)
  2261. (remote_threads_extra_info, extended_remote_restart, get_offsets)
  2262. (remote_check_symbols, remote_open_1, remote_detach)
  2263. (remove_vcont_probe, remote_vcont_resume, remote_resume)
  2264. (remote_wait, remote_async_wait, fetch_register_using_p)
  2265. (remote_fetch_registers, store_register_using_P)
  2266. (remote_store_registers, check_binary_download, remote_write_bytes)
  2267. (remote_read_bytes, remote_insert_breakpoint)
  2268. (remote_remove_breakpoint, remote_insert_watchpoint)
  2269. (remote_remove_watchpoint, remote_insert_hw_breakpoint)
  2270. (remote_remove_hw_breakpoint, compare_sections_command)
  2271. (remote_xfer_partial, remote_rcmd, packet_command)
  2272. (remote_get_thread_local_address): Use the global incoming buffer
  2273. instead of alloca or xmalloc. Limit outgoing packets to
  2274. rs->remote_packet_size and incoming packets to rs->buf_size.
  2275. Update calls to getpkt and remote_send.
  2276. (remote_send): Take arguments by reference.
  2277. (putpkt_binary): Eliminate junkbuf. Use skip_frame.
  2278. (skip_frame): New function.
  2279. (read_frame): Take arguments by reference. Expand the packet
  2280. buffer instead of issuing an error.
  2281. (getpkt, getpkt_sane): Take arguments by reference.
  2282. * remote.h (getpkt): Update prototype and doc.
  2283. * tracepoint.c (remote_get_noisy_reply): Take arguments by
  2284. reference.
  2285. (target_buf): Change from array to pointer.
  2286. (target_buf_size): New variable.
  2287. (remote_set_transparent_ranges): Update call to getpkt.
  2288. (trace_start_command, trace_stop_command, trace_status_command):
  2289. Update calls to remote_get_noisy_reply.
  2290. (finish_tfind_command): Take arguments by reference.
  2291. (trace_find_command, trace_find_pc_command)
  2292. (trace_find_tracepoint_command, trace_find_line_command):
  2293. (trace_find_range_command, trace_find_outside_command): Update
  2294. calls to finish_tfind_command.
  2295. (_initialize_tracepoint): Initialize target_buf_size and target_buf.
  2296. 2005-03-30 Randolph Chung <tausq@debian.org>
  2297. * hppa-linux-tdep.c: Include regset.h.
  2298. (GR_REGNUM, TR_REGNUM, greg_map): New.
  2299. (hppa_linux_supply_regset, hppa_linux_supply_fpregset): New.
  2300. (hppa_linux_regset, hppa_linux_fpregset): New.
  2301. (hppa_linux_regset_from_core_section): New.
  2302. (hppa_linux_init_abi): Set regset_from_core_section.
  2303. (_initialize_hppa_linux_tdep): Register osabi handler for
  2304. 64-bit Linux.
  2305. * Makefile.in (hppa-linux-tdep.o): Update dependencies.
  2306. * config/pa/linux.mh: Stop using core-regset.o
  2307. 2006-03-30 Randolph Chung <tausq@debian.org>
  2308. * hppa-tdep.c (hppa_find_unwind_entry_in_block): New.
  2309. (hppa_frame_cache): Use new function to find unwind entry.
  2310. (hppa_frame_this_id): Likewise.
  2311. (hppa_frame_unwind_sniffer): Likewise.
  2312. 2006-03-29 Daniel Jacobowitz <dan@codesourcery.com>
  2313. * NEWS: Mention the removal of NLM.
  2314. 2006-03-29 Steve Ellcey <sje@cup.hp.com>
  2315. * Makefile.in (nlm): Remove target.
  2316. * configure.tgt (i[34567]86-*-netware*): Do not set build_nlm.
  2317. * configure.ac: Remove AC_CONFIG_SUBDIRS of nlm.
  2318. * configure: Regenerate.
  2319. * nlm: Remove directory.
  2320. 2006-03-29 Daniel Jacobowitz <dan@codesourcery.com>
  2321. * Makefile.in (utils.o): Update.
  2322. * top.c (in_user_command): New.
  2323. (command_line_input): Use input_from_terminal_p.
  2324. (input_from_terminal_p): Don't check caution. Handle
  2325. stdin == NULL for Insight.
  2326. * top.h (in_user_command, caution): New declarations.
  2327. * utils.c: Include "top.h".
  2328. (query, defaulted_query): Check caution here. Move the call
  2329. to input_from_terminal_p higher.
  2330. * cli/cli-script.c (do_restore_user_call_depth): Only decrement
  2331. the depth. Update in_user_command if necessary.
  2332. (execute_user_command): Don't clobber old_chain. Set
  2333. in_user_command. Let do_restore_user_call_depth handle
  2334. user_call_depth.
  2335. (read_command_lines): Check whether to prompt before calling
  2336. Insight hooks.
  2337. * tui/tui-hooks.c (tui_query_hook): Remove newly unnecessary
  2338. input_from_terminal_p check.
  2339. 2006-03-29 Ulrich Weigand <uweigand@de.ibm.com>
  2340. * s390-nat.c (s390_insert_watchpoint): Add missing argument.
  2341. (s390_remove_watchpoint): Likewise.
  2342. 2006-03-28 Jim Blandy <jimb@codesourcery.com>
  2343. * prologue-value.c, prologue-value.h: New files.
  2344. * Makefile.in (prologue_value_h): New variable.
  2345. (HFILES_NO_SRCDIR): List prologue-value.h.
  2346. (SFILES): List prologue-value.c.
  2347. (COMMON_OBS): List prologue-value.o.
  2348. (prologue-value.o): New rule.
  2349. 2006-03-27 Michael Snyder <msnyder@redhat.com>
  2350. * xstormy16-tdep.c (xstormy16_return_value, xstormy16_push_dummy_call,
  2351. xstormy16_pointer_to_address, xstormy16_address_to_pointer,
  2352. xstormy16_frame_prev_register): Change void* to gdb_byte*.
  2353. (xstormy16_push_dummy_call): Add block-local char* val,
  2354. to avoid type conflict with outer scope variable.
  2355. 2006-03-27 Andrew Stubbs <andrew.stubbs@st.com>
  2356. * sh-tdep.c (sh_gdbarch_init): Add missing architectures.
  2357. 2006-03-27 Nick Roberts <nickrob@snap.net.nz>
  2358. PR mi/1429
  2359. * varobj.c (c_name_of_child, c_value_of_child): Allow non-zero
  2360. offsets for languages like Fortran.
  2361. 2006-03-26 Randolph Chung <tausq@debian.org>
  2362. * config/pa/hppa64.mt: Use HPUX version of the tm file.
  2363. 2006-03-25 Nick Roberts <nickrob@snap.net.nz>
  2364. * mi/gdb-mi.el (gdbmi-send): Improve regexp to repeat commands.
  2365. Try to deal with continuation line.
  2366. (gdbmi, gdbmi-prompt1, gud-gdbmi-marker-filter): Update to new
  2367. variable names.
  2368. (gdb-break-list-regexp, gdb-stack-list-frames-regexp):
  2369. Future proof against new fields being added to MI output.
  2370. (gdbmi-prompt2, gdb-break-list-handler,gdb-get-source-file)
  2371. (gdbmi-frame-handler): Update to new variable name
  2372. gdb-get-buffer-create.
  2373. (gdbmi-frame-handler): Use hollow-right-triangle for all selected
  2374. frames which except the innermost (where execution has stopped).
  2375. 2006-03-24 Randolph Chung <tausq@debian.org>
  2376. * solib-som.c (link_map_start): Don't error out if there is
  2377. not yet a link map.
  2378. 2006-03-24 Daniel Jacobowitz <dan@codesourcery.com>
  2379. * linux-nat.c (linux_ops_saved): New.
  2380. (super_mourn_inferior, kill_inferior, threaded, linux_nat_ops)
  2381. (child_mourn_inferior, child_wait, linux_nat_create_inferior)
  2382. (linux_nat_fetch_registers, linux_nat_store_registers)
  2383. (linux_nat_child_post_startup_inferior, init_linux_nat_ops): Delete.
  2384. (init_lwp_list): Don't set threaded.
  2385. (add_lwp): Don't modify threaded.
  2386. (delete_lwp): Don't mention non-threaded mode.
  2387. (linux_nat_switch_fork): New.
  2388. (linux_nat_attach): Update inferior_ptid.
  2389. (linux_nat_wait): Handle num_lwps == 0 at entry. Don't check
  2390. threaded flag.
  2391. (linux_nat_kill): Handle pending forks and saved forks.
  2392. (linux_nat_mourn_inferior): Handle saved forks.
  2393. (linux_nat_pid_to_str): Don't use the LWP form when there is
  2394. only one thread.
  2395. (linux_target): Don't set to_wait, to_kill, or to_mourn_inferior.
  2396. (linux_nat_add_target): New.
  2397. (_initialize_linux_nat): Don't initialize the linux native target
  2398. here.
  2399. * linux-nat.h (linux_nat_add_target, linux_nat_switch_fork): New
  2400. prototypes.
  2401. * linux-fork.c: Include "linux-nat.h".
  2402. (add_fork): Update initial PID.
  2403. (fork_load_infrun_state): Call linux_nat_switch_fork.
  2404. * Makefile.in (linux-fork.o): Update.
  2405. * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
  2406. linux_nat_add_target instead of add_target.
  2407. * amd64-linux-nat.c (_initialize_amd64_linux_nat): Likewise.
  2408. * arm-linux-nat.c (_initialize_arm_linux_nat): Likewise.
  2409. * hppa-linux-nat.c (_initialize_hppa_linux_nat): Likewise.
  2410. * ia64-linux-nat.c (_initialize_ia64_linux_nat): Likewise.
  2411. * i386-linux-nat.c (_initialize_i386_linux_nat): Likewise.
  2412. * m32r-linux-nat.c (_initialize_m32r_linux_nat): Likewise.
  2413. * m68klinux-nat.c (_initialize_m68k_linux_nat): Likewise.
  2414. * mips-linux-nat.c (_initialize_mips_linux_nat): Likewise.
  2415. * ppc-linux-nat.c (_initialize_ppc_linux_nat): Likewise.
  2416. * s390-nat.c (_initialize_s390_nat): Likewise.
  2417. * sparc-linux-nat.c (_initialize_sparc_linux_nat): Likewise.
  2418. * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Likewise.
  2419. 2006-03-24 Daniel Jacobowitz <dan@codesourcery.com>
  2420. * linux-fork.c: Include "gdb_assert.h".
  2421. (fork_load_infrun_state): Set inferior_ptid and stop_pc here.
  2422. Update the register cache and selected frame also.
  2423. (linux_fork_mourn_inferior): Use fork_load_infrun_state. Return
  2424. to single fork mode if necessary.
  2425. (linux_fork_context): Remove bits handled by fork_load_infrun_state.
  2426. * Makefile.in (linux_fork_h): New.
  2427. (linux-fork.o, linux-nat.o): Update.
  2428. 2006-03-23 Andreas Schwab <schwab@suse.de>
  2429. * config/s390/s390.mh (NATDEPFILES): Add linux-fork.o.
  2430. 2006-03-18 Jim Blandy <jimb@codesourcery.com>
  2431. * symtab.h (enum address_class): Doc fix.
  2432. 2006-03-16 Michael Snyder <msnyder@redhat.com>
  2433. * tracepoint.c (tracepoint_save_command): Fix typo in error msg.
  2434. * target.c (push_target): Fix typo in comment.
  2435. * remote.c (remote_watch_data_address): Fix typo in comment.
  2436. * i386-tdep.c (i386_push_dummy_call): Fix typo in comment.
  2437. 2006-03-15 Kevin Buettner <kevinb@redhat.com>
  2438. * frv-linux-tdep.c (gdbcore.h, regcache.h, regset.h, gdb_string.h):
  2439. Include.
  2440. (FRV_ELF_NGREG, FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR, FRV_PT_CCCR)
  2441. (FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0, FRV_PT_GNER1)
  2442. (FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR, FRV_PT_TBR)
  2443. (FRV_PT_EXEC_FDPIC_LOADMAP, FRV_PT_INTERP_FDPIC_LOADMAP): Define.
  2444. (frv_elf_greg_t, frv_elf_gregset_t, frv_elf_fpreg_t)
  2445. (frv_elf_fpregset_t): Define types.
  2446. (frv_linux_supply_gregset, frv_linux_supply_fpregset)
  2447. (frv_linux_regset_from_core_section: New functions.
  2448. (frv_linux_gregset, frv_linux_fpregset): New static globals.
  2449. (frv_linux_init_abi): Register the `regset_from_core_section' method.
  2450. * Makefile.in (frv-linux-tdep.o): Update dependencies.
  2451. * solib-frv.c (frv_current_sos): Relocate main executable after
  2452. loading core file.
  2453. (frv_clear_solib): Clean up space associated with
  2454. `main_executable_lm_info'.
  2455. * config/frv/frv.mt (TDEPFILES): Add corelow.o to this list.
  2456. 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
  2457. * Makefile.in (mips_linux_tdep_h): New.
  2458. (mpis-linux-nat.o, mips-linux-tdep.o): Update.
  2459. * mips-linux-nat.c: Include "inferior.h", "mips-linux-tdep.h", and
  2460. <sys/ptrace.h>.
  2461. (have_ptrace_regsets, super_fetch_registers, super_store_registers)
  2462. (mips64_linux_regsets_fetch_registers)
  2463. (mips64_linux_regsets_store_registers, mips64_linux_fetch_registers)
  2464. (mips64_linux_store_registers): New.
  2465. (_initialize_mips_linux_nat): Override to_fetch_registers and
  2466. to_store_registers.
  2467. * mips-linux-tdep.h: New file.
  2468. * mips-linux-tdep.c: Include "mips-linux-tdep.c".
  2469. (ELF_NGREG, ELF_NFPREG, elf_greg_t, elf_gregset_t, elf_fpreg_t)
  2470. (elf_fpregset_t, FPR_BASE, PC, CAUSE, BADVADDR, MMHI, MMLO)
  2471. (FPC_CSR, FPC_EIR, EF_REG0, EF_REG31, EF_LO, EF_HI, EF_CP0_EPC)
  2472. (EF_CP0_BADVADDR, EF_CP0_STATUS, EF_CP0_CAUSE, EF_SIZE)
  2473. (MIPS64_ELF_NGREG, MIPS64_ELF_NFPREG, mips64_elf_greg_t)
  2474. (mips64_elf_gregset_t, mips64_elf_fpreg_t, mips64_elf_fpregset_t)
  2475. (MIPS64_FPR_BASE, MIPS64_PC, MIPS64_CAUSE, MIPS64_BADVADDR)
  2476. (MIPS64_MMHI, MIPS64_MMLO, MIPS64_FPC_CSR, MIPS64_FPC_EIR)
  2477. (MIPS64_EF_REG0, MIPS64_EF_REG31, MIPS64_EF_LO, MIPS64_EF_HI)
  2478. (MIPS64_EF_CP0_EPC, MIPS64_EF_CP0_BADVADDR, MIPS64_EF_CP0_STATUS)
  2479. (MIPS64_EF_CP0_CAUSE, MIPS64_EF_SIZE): Delete.
  2480. (supply_32bit_reg): Use gdb_byte.
  2481. (supply_64bit_reg): New.
  2482. (mips_supply_gregset, mips_fill_gregset, mips_supply_fpregset)
  2483. (mips_fill_fpregset, fetch_core_registers, supply_gregset)
  2484. (fill_gregset, supply_fpregset): Update for renamed types.
  2485. (mips64_supply_gregset): Use gdb_byte and supply_64bit_reg.
  2486. (mips64_fill_gregset): Make global. Handle 32-bit register
  2487. sizes.
  2488. (mips64_fill_fpregset): Make global. Use gdb_byte. Handle
  2489. FP regsets properly.
  2490. 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
  2491. * mips-linux-tdep.c (mips_supply_gregset): Renamed from supply_gregset.
  2492. (mips_fill_gregset): Renamed from fill_gregset.
  2493. (mips_supply_fpregset): Renamed from supply_fpregset.
  2494. (mips_fill_fpregset): Renamed from fill_fpregset.
  2495. (fetch_core_registers): Update calls.
  2496. (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): New
  2497. functions.
  2498. 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
  2499. * mips-tdep.c (mips_gdbarch_init): Default 64-bit ELF files to N64.
  2500. 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
  2501. * mips-tdep.c (is_mips16_addr, mips32_next_pc, add_offset_16):
  2502. Correct arithmetic for 64-bit CORE_ADDR.
  2503. 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
  2504. * mips-linux-tdep.c: Include "floatformat.h".
  2505. (mips_linux_init_abi): Use 128-bit long double for N32 and N64.
  2506. * mips-tdep.c (mips_n32n64_return_value): Support 128-bit long
  2507. double.
  2508. (print_gp_register_row): Don't print spaces before ignored
  2509. or floating point registers.
  2510. * Makefile.in (mips-linux-tdep.o): Update.
  2511. 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
  2512. * mips-mdebug-tdep.c (compare_pdr_entries): Use bfd_get_signed_32
  2513. for code addresses.
  2514. (non_heuristic_proc_desc): Likewise.
  2515. 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
  2516. * mips-linux-nat.c: Include "gdb_proc_service.h".
  2517. (PTRACE_GET_THREAD_AREA): Define.
  2518. (ps_get_thread_area): New.
  2519. * Makefile.in (mips-linux-nat.o): Update.
  2520. 2006-03-13 Jim Blandy <jimb@codesourcery.com>
  2521. * MAINTAINERS: Use my work address.
  2522. 2006-03-09 Michael Snyder <msnyder@redhat.com>
  2523. * linux-nat.c (kill_inferior): Just call target_mourn_inferior
  2524. instead of getting tricky for the multi-fork case.
  2525. * linux-fork.c (linux_fork_killall): Call PT_KILL and waitpid
  2526. for each fork, and then use init_fork_list to delete them.
  2527. 2006-03-08 Alexandre Oliva <aoliva@redhat.com>
  2528. * solib-svr4.c (svr4_current_sos): Move up initialization of
  2529. l_addr, such that it clearly covers all cases.
  2530. 2006-03-08 Andreas Schwab <schwab@suse.de>
  2531. * ia64-tdep.c (ia64_libunwind_frame_this_id): Adapt use of
  2532. libunwind_frame_prev_register to use a gdb_byte buffer and
  2533. extract_unsigned_integer.
  2534. (ia64_libunwind_sigtramp_frame_prev_register): Likewise.
  2535. * libunwind-frame.c (libunwind_frame_prev_register): Change type
  2536. of last argument to `gdb_byte *'
  2537. * libunwind-frame.h: Adjust declaration.
  2538. 2006-03-08 Paul Brook <paul@codesourcery.com>
  2539. * arm-tdep.c (arm_push_dummy_call): Remove stack alignment.
  2540. (arm_frame_align): New function.
  2541. (arm_gdbarch_init): Use it.
  2542. 2006-03-03 Khem Raj <khem@mvista.com>
  2543. * remote-rdp.c (remote_rdp_xfer_inferior_memory): Use gdb_byte.
  2544. Committed by Andrew Cagney.
  2545. 2006-03-02 Corinna Vinschen <vinschen@redhat.com>
  2546. * mn10300-tdep.c (mn10300_push_dummy_call): Write breakpoint
  2547. address to MDR register.
  2548. 2006-03-01 Daniel Jacobowitz <dan@codesourcery.com>
  2549. * gdbtypes.c (lookup_struct_elt_type): Correct noerr for recursive
  2550. calls.
  2551. 2006-03-01 Randolph Chung <tausq@debian.org>
  2552. * somread.c (som_symfile_read): Update comment and remove unneeded
  2553. use of a deprecated variable.
  2554. 2006-03-01 Randolph Chung <tausq@debian.org>
  2555. * hppa-tdep.h (unwind_table_entry): Update field names to match HP
  2556. runtime specification.
  2557. * hppa-tdep.c (internalize_unwinds, hppa_frame_cache): Likewise.
  2558. (unwind_command): Likewise.
  2559. 2006-03-01 Randolph Chung <tausq@debian.org>
  2560. * hppa-tdep.c (hppa_frame_cache): Handle Region_Description and
  2561. Pseudo_SP_Set in unwind record.
  2562. 2006-03-01 Randolph Chung <tausq@debian.org>
  2563. * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support): Use
  2564. TDEP->is_elf to determine if we are working with a SOM binary.
  2565. (null_symtab_and_line): Remove unused variable.
  2566. * config/pa/hppa64.mt: Use tm-hppa.h.
  2567. * config/pa/tm-hppa64.h: Remove file.
  2568. 2006-03-01 Wu Zhou <woodzltc@cn.ibm.com>
  2569. * f-typeprint.c (f_type_print_base): Delete the redundant space.
  2570. 2006-02-28 Kevin Buettner <kevinb@redhat.com>
  2571. * Makefile.in (mn10300-linux-tdep.o): Update dependencies.
  2572. * mn10300-linux-tdep.c (frame.h, trad-frame.h, tramp-frame.h):
  2573. Include.
  2574. (am33_linux_sigframe_cache_init): New function.
  2575. (am33_linux_sigframe, am33_linux_rt_sigframe): New signal frame
  2576. descriptions.
  2577. (AM33_SIGCONTEXT_D0, AM33_SIGCONTEXT_D1, AM33_SIGCONTEXT_D2)
  2578. (AM33_SIGCONTEXT_D3, AM33_SIGCONTEXT_A0, AM33_SIGCONTEXT_A1)
  2579. (AM33_SIGCONTEXT_A2, AM33_SIGCONTEXT_A3, AM33_SIGCONTEXT_E0)
  2580. (AM33_SIGCONTEXT_E1, AM33_SIGCONTEXT_E2, AM33_SIGCONTEXT_E3)
  2581. (AM33_SIGCONTEXT_E4, AM33_SIGCONTEXT_E5, AM33_SIGCONTEXT_E6)
  2582. (AM33_SIGCONTEXT_E7, AM33_SIGCONTEXT_LAR, AM33_SIGCONTEXT_LIR)
  2583. (AM33_SIGCONTEXT_MDR, AM33_SIGCONTEXT_MCVF, AM33_SIGCONTEXT_MCRL)
  2584. (AM33_SIGCONTEXT_MCRH, AM33_SIGCONTEXT_MDRQ, AM33_SIGCONTEXT_SP)
  2585. (AM33_SIGCONTEXT_EPSW, AM33_SIGCONTEXT_PC, AM33_SIGCONTEXT_FPUCONTEXT):
  2586. New constants.
  2587. (am33_linux_init_osabi): Register signal frame unwinders.
  2588. 2006-02-28 Kevin Buettner <kevinb@redhat.com>
  2589. * mn10300-tdep.c (mn10300_analyze_prologue): Implement backtrack
  2590. out of pattern match by saving relevant state. Fix stack size
  2591. adjustment bug.
  2592. 2006-02-28 Alexandre Oliva <aoliva@redhat.com>
  2593. * solib-svr4.h (struct link_map_offsets): Add l_ld_offset and
  2594. l_ld_size fields.
  2595. * solib-svr4.c (struct lm_info): Add l_addr field.
  2596. (LM_ADDR_FROM_LINK_MAP): Renamed from LM_ADDR.
  2597. (HAS_LM_DYNAMIC_FROM_LINK_MAP): New.
  2598. (LM_DYNAMIC_FROM_LINK_MAP): New.
  2599. (LM_ADDR_CHECK): New. Use it instead of LM_ADDR.
  2600. (svr4_current_sos): Initialize l_addr. Adjust.
  2601. (svr4_relocate_section_addresses): Adjust.
  2602. (svr4_ilp32_fetch_link_map_offsets): Define new members.
  2603. (svr4_lp64_fetch_link_map_offsets): Likewise.
  2604. * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Likewise.
  2605. * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Likewise.
  2606. (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
  2607. * Makefile.in (solib-svr4.o): Depend on $(elf_bfd_h).
  2608. 2006-02-26 David S. Miller <davem@sunset.davemloft.net>
  2609. * config/sparc/linux.mt (TDEPFILES): Add sol2-tdep.o.
  2610. * config/sparc/linux64.mt (TDEPFILES): Likewise.
  2611. 2006-02-27 Alan Modra <amodra@bigpond.net.au>
  2612. * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Correct return type.
  2613. (ppc_linux_remove_watchpoint): Likewise, and args.
  2614. 2006-02-26 Mark Kettenis <kettenis@gnu.org>
  2615. * i386obsd-tdep.c (i386obsd_trapframe_sniffer): Also recognize
  2616. "soft" interrupts.
  2617. 2006-02-24 Charles Wilson <cygwin@cwilson.fastmail.fm>
  2618. * defs.h: unconditionally include <fcntl.h>, and
  2619. ensure that O_BINARY is defined.
  2620. * solib.c(solib_open): ensure solib files are opened in
  2621. binary mode.
  2622. * corelow.c: Remove O_BINARY macro definition.
  2623. * exec.c: Remove O_BINARY macro definition
  2624. * remote-rdp.c: Remove O_BINARY macro definition
  2625. * source.c: Remove O_BINARY macro definition
  2626. * symfile.c: Remove O_BINARY macro definition
  2627. 2006-02-24 Randolph Chung <tausq@debian.org>
  2628. * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Initialize
  2629. argreg.
  2630. * solib-som.c (som_solib_remove_inferior_hook): Remove unused
  2631. function.
  2632. 2006-02-24 Wu Zhou <woodzltc@cn.ibm.com>
  2633. * f-exp.y: Symbol '%' is not used as the modulus operator in
  2634. Fortran. Delete this from Fortran expression.
  2635. It is now used by Fortran 90 and later to access the member
  2636. of derived type. Add this into Fortran expression.
  2637. * f-valprint.c (f_val_print): Add code to handle TYPE_CODE_STRUCT.
  2638. Print each elements in the derived type.
  2639. * f-typeprint.c (print_equivalent_f77_float_type): Add a parameter
  2640. level into the function definition to do indented printing. And
  2641. call fprintfi_filtered instead to do indented printing.
  2642. (f_type_print_base): Replace fprintf_filtered with the indented
  2643. version (fprintfi_filtered).
  2644. (f_type_print_base): Call indented print_equivalent_f77_float_type.
  2645. (f_type_print_base): Add code to handle TYPE_CODE_STRUCT. Print
  2646. the definition of the derived type.
  2647. 2006-02-23 Daniel Jacobowitz <dan@codesourcery.com>
  2648. * gdb_curses.h: Provide a fallback prototype for tgetnum.
  2649. 2006-02-23 Daniel Jacobowitz <dan@codesourcery.com>
  2650. * doublest.h: Conditionalize DOUBLEST on PRINTF_HAS_LONG_DOUBLE
  2651. also.
  2652. (DOUBLEST_FORMAT): Rename to DOUBLEST_PRINT_FORMAT.
  2653. (DOUBLEST_SCAN_FORMAT): New.
  2654. * ada-lex.l (PRINTF_HAS_LONG_DOUBLE): Remove redefinitions.
  2655. (processReal): Use DOUBLEST_SCAN_FORMAT.
  2656. * c-exp.y (parse_number): Likewise.
  2657. * jv-exp.y (parse_number): Likewise.
  2658. * objc-exp.y (parse_number): Likewise.
  2659. * p-exp.y (parse_number): Likewise.
  2660. 2006-02-23 Daniel Jacobowitz <dan@codesourcery.com>
  2661. * event-top.c (async_do_nothing, async_disconnect)
  2662. (async_stop_sig, async_float_handler): Remove duplicated
  2663. prototypes.
  2664. (handle_sighup): Guard prototype with SIGHUP.
  2665. (async_do_nothing): Guard function and prototype with
  2666. SIGQUIT || SIGHUP.
  2667. (async_disconnect): Guard prototype with SIGHUP.
  2668. (async_stop_sig): Guard prototype with STOP_SIGNAL.
  2669. 2006-02-23 Daniel Jacobowitz <dan@codesourcery.com>
  2670. * maint.c (maintenance_dump_me): Remove unnecessary prototype.
  2671. 2006-02-23 Daniel Jacobowitz <dan@codesourcery.com>
  2672. * win32-termcap.c (tputs): Return 0.
  2673. 2006-02-21 Mark Kettenis <kettenis@gnu.org>
  2674. * configure.ac: Introduce ---enable-werror, which adds -Werror to
  2675. the compiler command line. Enabled by default. Disable with
  2676. --disable-werror.
  2677. * configure regenerate.
  2678. 2006-02-21 Daniel Jacobowitz <dan@codesourcery.com>
  2679. * elfread.c (elf_symtab_read): Skip symbols which BFD considers
  2680. special.
  2681. 2006-02-21 Andrew Stubbs <andrew.stubbs@st.com>
  2682. * defs.h (directory_switch): Add prototype.
  2683. * main.c (captured_main): Use directory_switch() instead of
  2684. directory_command() to add directories from the -d switch.
  2685. * source.c (directory_switch): New function.
  2686. (add_path): Use buildargv() to parse spaces in filenames properly.
  2687. Strip multiple trailing '/' rather than just one.
  2688. 2006-02-21 Andrew Stubbs <andrew.stubbs@st.com>
  2689. * symfile.c (add_symbol_file_command): Use buildargv(), instead of
  2690. hand decoding the command line, to allow use of quotes and spaces.
  2691. (_initialize_symfile): Reorganize the help message for add-symbol-file
  2692. such that 'help files' shows a better message.
  2693. 2006-02-21 Andrew Stubbs <andrew.stubbs@st.com>
  2694. * sh-tdep.c (sh_generic_show_regs): Reformat both code and output.
  2695. (sh3_show_regs, sh2e_show_regs, sh2a_show_regs): Likewise.
  2696. (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs): Likewise.
  2697. (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs): Likewise.
  2698. 2006-02-20 Daniel Jacobowitz <dan@codesourcery.com>
  2699. * linux-nat.c (lin_thread_get_thread_signals): Default to __SIGRTMIN
  2700. and __SIGRTMIN + 1.
  2701. 2006-02-20 Daniel Jacobowitz <dan@codesourcery.com>
  2702. * remote.c: Add an enumeration for configurable remote
  2703. packets.
  2704. (remote_protocol_packets, set_remote_protocol_packet_cmd)
  2705. (show_remote_protocol_packet_cmd): New.
  2706. (remote_protocol_vcont)
  2707. (set_remote_protocol_vcont_packet_cmd)
  2708. (show_remote_protocol_vcont_packet_cmd)
  2709. (remote_protocol_qSymbol)
  2710. (set_remote_protocol_qSymbol_packet_cmd)
  2711. (show_remote_protocol_qSymbol_packet_cmd)
  2712. (remote_protocol_P, set_remote_protocol_P_packet_cmd)
  2713. (show_remote_protocol_P_packet_cmd)
  2714. (remote_protocol_Z)
  2715. (set_remote_protocol_Z_software_bp_packet_cmd)
  2716. (show_remote_protocol_Z_software_bp_packet_cmd)
  2717. (set_remote_protocol_Z_hardware_bp_packet_cmd)
  2718. (show_remote_protocol_Z_hardware_bp_packet_cmd)
  2719. (set_remote_protocol_Z_write_wp_packet_cmd)
  2720. (show_remote_protocol_Z_write_wp_packet_cmd)
  2721. (set_remote_protocol_Z_read_wp_packet_cmd)
  2722. (show_remote_protocol_Z_read_wp_packet_cmd)
  2723. (set_remote_protocol_Z_access_wp_packet_cmd)
  2724. (show_remote_protocol_Z_access_wp_packet_cmd)
  2725. (remote_protocol_binary_download)
  2726. (set_remote_protocol_binary_download_cmd)
  2727. (show_remote_protocol_binary_download_cmd)
  2728. (remote_protocol_qPart_auxv)
  2729. (set_remote_protocol_qPart_auxv_packet_cmd)
  2730. (show_remote_protocol_qPart_auxv_packet_cmd)
  2731. (remote_protocol_qGetTLSAddr)
  2732. (set_remote_protocol_qGetTLSAddr_packet_cmd)
  2733. (show_remote_protocol_qGetTLSAddr_packet_cmd)
  2734. (remote_protocol_p)
  2735. (set_remote_protocol_p_packet_cmd)
  2736. (show_remote_protocol_p_packet_cmd): Delete.
  2737. (init_all_packet_configs): Simplify.
  2738. (set_remote_protocol_Z_packet_cmd)
  2739. (show_remote_protocol_Z_packet_cmd)
  2740. (remote_check_symbols, remote_vcont_probe, remote_vcont_resume)
  2741. (remote_fetch_registers, remote_prepare_to_store)
  2742. (remote_store_registers, check_binary_download)
  2743. (remote_write_bytes, remote_insert_breakpoint)
  2744. (remote_remove_breakpoint, remote_insert_watchpoint)
  2745. (remote_remove_watchpoint, remote_insert_hw_breakpoint)
  2746. (remote_remove_hw_breakpoint, remote_xfer_partial)
  2747. (remote_get_thread_local_address): Update for packet array.
  2748. (_initialize_remote): Likewise; also update for common
  2749. set/show commands.
  2750. 2006-02-20 Daniel Jacobowitz <dan@codesourcery.com>
  2751. * symfile.c (place_section): Correct retry logic.
  2752. 2006-02-19 Christopher Faylor <cgf@timesys.com>
  2753. * win32_nat.c (cygwin_load_start): New variable.
  2754. (cygwin_load_end): Ditto.
  2755. (have_saved_context): Ditto.
  2756. (saved_context): Ditto.
  2757. (max_dll_name_len): Delete obsolete variable.
  2758. (do_win32_fetch_inferior_registers): Use context saved from cygwin1.dll
  2759. if we are in a cygwin signal rather than a windows signal.
  2760. (solib_symbols_add): Detect and store beginning and end of cygwin DLL
  2761. if dll being loaded is the cygwin DLL.
  2762. (register_loaded_dll): Remove calculation of max_dll_name_len.
  2763. (win32_clear_solib): Ditto.
  2764. (handle_load_dll): Delete obsolete variable. Remove unneeded call to
  2765. solib_add.
  2766. (handle_output_debug_string): Detect and store signal information sent
  2767. by Cygwin here.
  2768. (handle_exception): Silently pass on errors in the cygwin DLL. Return
  2769. -1 on first pass exception.
  2770. (win32_continue): Remove spurious clearing of continue_status.
  2771. (get_win32_debug_event): Deal differently first chance exception.
  2772. 2006-02-19 Randolph Chung <tausq@debian.org>
  2773. * hppa-tdep.c (hppa_in_solib_call_trampoline): Only use if no
  2774. unwind entry.
  2775. 2006-02-16 Fred Fish <fnf@specifix.com>
  2776. * eval.c (evaluate_subexp_standard): For OP_TYPE, return
  2777. a non lval value zero, of the appropriate type, when avoiding
  2778. side effects.
  2779. * typeprint.c (ptype_eval): Remove function and declaration.
  2780. (ptype_command): Simplify to just a call to whatis_exp.
  2781. 2006-02-15 Paul Brook <paul@codesourcery.com>
  2782. * arm-tdep.c (arm_skip_prologue, thumb_get_next_pc, arm_get_next_pc):
  2783. Load insn opcodes as unsigned values.
  2784. 2006-02-14 Alexandre Oliva <aoliva@redhat.com>
  2785. * doublest.h (DOUBLEST): Use long double only if we can scan
  2786. it in. Undefine HAVE_LONG_DOUBLE otherwise.
  2787. (DOUBLEST_FORMAT): New.
  2788. * c-exp.y (parse_number): Use it.
  2789. * jv-exp.y (parse_number): Likewise.
  2790. * objc-exp.y (parse_number): Likewise.
  2791. * p-exp.y (parse_number): Likewise.
  2792. * varobj.c (free_variable): Silence type-punning warnings.
  2793. * tui/tui-data.h (struct tui_list): Change type of list member.
  2794. * tui/tui-data.c: Remove no-longer-needed type casts.
  2795. (source_windows): Silence type-punning warnings.
  2796. * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Likewise.
  2797. 2006-02-13 Mark Kettenis <kettenis@gnu.org>
  2798. Fix PR breakpoints/2080.
  2799. * i386-tdep.c (struct i386_frame_cache): Add stack_align member.
  2800. (i386_analyze_stack_align): New function.
  2801. (i386_analyze_prologue): Use i386_analyze_stack_align.
  2802. (i386_frame_cache): Deal with stack realignment.
  2803. 2006-02-14 Nick Roberts <nickrob@snap.net.nz>
  2804. * mi/gdb-mi.el: Use more functions from gdb-ui.el.
  2805. (gdb-break-list-regexp): Match "what" field if present.
  2806. (gdb-stack-list-frames-regexp): Match "from" field if present.
  2807. (gdb-stack-list-frames-handler): Present output like "info
  2808. breakpoints" so regexps can be shared with gdb-ui
  2809. 2006-02-10 Daniel Jacobowitz <dan@codesourcery.com>
  2810. * NEWS: Mention native Windows support.
  2811. * Makefile.in (gdb_select_h, ser_tcp_h): New.
  2812. (ALLDEPFILES): Add ser-mingw.c.
  2813. (event-loop.o, inflow.o, mingw-hdep.o, posix-hdep.o, ser-base.o)
  2814. (ser-tcp.o, ser-unix.o): Update.
  2815. (ser-mingw.o): New rule.
  2816. * configure: Regenerated.
  2817. * configure.ac: Add ser-mingw.o for mingw32.
  2818. * ser-mingw.c: New file.
  2819. * event-loop.c: Include "gdb_select.h".
  2820. (gdb_select): Remove, moved to mingw-hdep.c and posix-hdep.c.
  2821. * ser-base.c: Include "gdb_select.h".
  2822. (ser_base_wait_for): Use gdb_select.
  2823. * serial.c (serial_for_fd): New function.
  2824. (serial_fdopen): Try "terminal" before "hardwire". Initialize
  2825. the allocated struct serial.
  2826. (serial_wait_handle): New function.
  2827. * serial.h (serial_for_fd, serial_wait_handle): New prototypes.
  2828. (struct serial_ops) [USE_WIN32API]: Add wait_handle.
  2829. * gdb_select.h: New file.
  2830. * ser-tcp.c: Include "ser-tcp.h". Remove unused "ser-unix.h" include.
  2831. (net_close, net_read_prim, net_write_prim): Make global.
  2832. (net_open): Likewise. Pass an exception set to select. Whitespace fix.
  2833. Document why we can not use gdb_select.
  2834. (_initialize_ser_tcp) [USE_WIN32API]: Do not register TCP support here.
  2835. * ser-tcp.h: New file.
  2836. * inflow.c (gdb_has_a_terminal): Don't initialize stdin_serial here.
  2837. (handle_sigio): Use gdb_select.
  2838. (initialize_stdin_serial): New function.
  2839. * terminal.h (initialize_stdin_serial): New prototype.
  2840. * top.c (gdb_init): Call initialize_stdin_serial.
  2841. * mingw-hdep.c (gdb_select): New function, moved from gdb_select in
  2842. event-loop.c. Add exception condition support. Use serial_for_fd
  2843. and serial_wait_handle. Fix timeout handling.
  2844. * posix-hdep.c: Include "gdb_select.h".
  2845. (gdb_select): New function.
  2846. * remote-st.c (connect_command): Use gdb_select.
  2847. * ser-unix.c: Include "gdb_select.h".
  2848. (hardwire_send_break, wait_for): Use gdb_select.
  2849. 2006-02-10 Daniel Jacobowitz <dan@codesourcery.com>
  2850. * Makefile.in (mingw-hdep.o, posix-hdep.o): New dependencies.
  2851. (ALLDEPFILES): Add mingw-hdep.c and posix-hdep.c.
  2852. * configure.ac: Add gdb_host_obs to CONFIG_OBS. Set gdb_host_obs
  2853. to posix-hdep.o by default.
  2854. * configure: Regenerated.
  2855. * configure.host: Document gdb_host_obs. Add an entry for
  2856. i[34567]86-*-mingw32*.
  2857. * mingw-hdep.c, posix-hdep.c: New files.
  2858. * utils.c (safe_strerror): Remove, moved to posix-hdep.o.
  2859. 2006-02-10 Joel Brobecker <brobecker@adacore.com>
  2860. * defs.h (gdb_osabi): New enum value GDB_OSABI_AIX.
  2861. * osabi.c (gdb_osabi_name): Add name of new value GDB_OSABI_AIX.
  2862. * rs6000-tdep.h: New file.
  2863. * rs6000-tdep.c: Include "rs6000-tdep.h".
  2864. (rs6000_gdbarch_init): Remove enabling of software single step.
  2865. Will be done in the AIX-specific initialization routine.
  2866. * rs6000-aix-tdep.c: New file.
  2867. * config/powerpc/aix.mt (TDEPFILES): Add rs6000-aix-tdep.o.
  2868. * Makefile.in (rs6000_tdep_h): New variable.
  2869. (rs6000-tdep.o): Update dependencies.
  2870. (rs6000-aix-tdep.o): New rule.
  2871. 2006-02-10 Joel Brobecker <brobecker@adacore.com>
  2872. * aix-thread.c (_initialize_aix_thread): Use add_setshow_boolean_cmd
  2873. instead of add_setshow_zinteger_cmd to defined the aix-thread
  2874. boolean setting.
  2875. 2006-02-10 Nick Roberts <nickrob@snap.net.nz>
  2876. * mi/gdb-mi.el: Update to reflect changes in Emacs 22.0.50.
  2877. 2006-02-09 Daniel Jacobowitz <dan@codesourcery.com>
  2878. * dwarf2read.c (struct dwarf2_per_cu_data): Reduce length to
  2879. 30 bits. Add load_all_dies flag.
  2880. (load_partial_dies): Load all DIEs if per_cu->load_all_dies is set.
  2881. Load DW_TAG_member by default. Remove internal_error call.
  2882. (find_partial_die): Reload the compilation unit if we can not find
  2883. a DIE in the cache. Call internal_error here if we still can not
  2884. find the DIE.
  2885. 2006-02-10 Nick Roberts <nickrob@snap.net.nz>
  2886. * breakpoint.c (print_one_breakpoint): Add break to case
  2887. bp_catch_vfork in switch statement.
  2888. 2006-02-08 Wu Zhou <woodzltc@cn.ibm.com>
  2889. * config/i386/nm-i386sol2.h: Update copyright year.
  2890. * config/mips/nm-irix5.h: Ditto.
  2891. * config/sparc/nm-sol2.h: Ditto.
  2892. * s390-nat.c: Ditto.
  2893. * ppc-linux-nat.c: Ditto.
  2894. 2006-02-08 Wu Zhou <woodzltc@cn.ibm.com>
  2895. * breakpoint.c (TARGET_REGION_OK_FOR_HW_WATCHPOINT): Delete.
  2896. * config/i386/nm-i386sol2.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT): New.
  2897. (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete.
  2898. * config/mips/nm-irix5.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT): New.
  2899. (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete.
  2900. * config/sparc/nm-sol2.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT): New.
  2901. (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete.
  2902. * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): New.
  2903. (inf_ttrace_region_size_ok_for_hw_watchpoint): Delete.
  2904. (inf_ttrace_target): Delete to_region_size_ok_for_hw_watchpoint and
  2905. add to_region_ok_for_hw_watchpoint.
  2906. * s390-nat.c (s390_region_size_ok_for_hw_watchpoint): Delete.
  2907. (s390_region_ok_for_hw_watchpoint): New.
  2908. (_initialize_s390_nat): Delete to_region_size_ok_for_hw_watchpoint
  2909. and add to_region_ok_for_hw_watchpoint.
  2910. * target.c (default_region_size_ok_for_hw_watchpoint,
  2911. debug_to_region_size_ok_for_hw_watchpoint): Delete prototype.
  2912. (update_current_target): Delete to_region_size_ok_for_hw_watchpoint
  2913. inheritance and default_region_size_ok_for_hw_watchpoint.
  2914. (default_region_ok_for_hw_watchpoint): If len is less than or equal
  2915. the length of void pointer, return ok.
  2916. (default_region_size_ok_for_hw_watchpoint): Delete.
  2917. (debug_to_region_size_ok_for_hw_watchpoint): Delete.
  2918. (setup_target_debug): Delete to_region_size_ok_for_hw_watchpoint.
  2919. * target.h (struct target_ops): Delete
  2920. to_region_size_ok_for_hw_watchpoint.
  2921. (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete.
  2922. 2006-02-08 Ben Elliston <bje@au1.ibm.com>
  2923. Wu Zhou <woodzltc@cn.ibm.com>
  2924. * ppc-linux-nat.c (PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG,
  2925. PTRACE_GETSIGINFO): Define.
  2926. (last_stopped_data_address): New.
  2927. (ppc_linux_check_watch_resources): New function.
  2928. (ppc_linux_region_ok_for_hw_watchpoint): New function.
  2929. (ppc_linux_insert_watchpoint): New function.
  2930. (ppc_linux_remove_watchpoint): New function.
  2931. (ppc_linux_stopped_data_address): New function.
  2932. (ppc_linux_stopped_by_watchpoint): New function.
  2933. (_initialize_ppc_linux_nat): Set the above hardware watchpoint
  2934. related target vectors.
  2935. * rs6000-tdep.c (rs6000_gdbarch_init): Set PPC architectures
  2936. to have nonsteppable watchpoint.
  2937. * target.c (default_region_ok_for_hw_watchpoint,
  2938. debug_to_region_ok_for_hw_watchpoint): New prototypes.
  2939. (update_current_target): Inherit to_region_ok_for_hw_watchpoint
  2940. and set default to_region_ok_for_hw_watchpoint.
  2941. (default_region_ok_for_hw_watchpoint): New function.
  2942. (debug_to_region_ok_for_hw_watchpoint): New function.
  2943. (setup_target_debug): Set to_region_ok_for_hw_watchpoint of
  2944. debug_target.
  2945. * target.h (struct target_ops): Add a new target vector
  2946. to_region_ok_for_hw_watchpoint.
  2947. (TARGET_REGION_OK_FOR_HW_WATCHPOINT): Define this if it is not
  2948. defined anyplace else.
  2949. 2005-02-07 Joel Brobecker <brobecker@adacore.com>
  2950. * symfile.c (add_symbol_file_command): Abort if the user forgot
  2951. to provide the address when the file has been loaded.
  2952. 2006-02-07 Daniel Jacobowitz <dan@codesourcery.com>
  2953. * MAINTAINERS: Update file based on maintainers survey. Add
  2954. a note to Past Maintainers. Move unresponsive or inactive
  2955. maintainers to Authorized Committers or Past Maintainers as
  2956. appropriate. Correct Jim Kingdon's email address. Remove
  2957. vacant areas of responsibility.
  2958. 2006-02-06 Vladimir Prus <ghost@cs.msu.su>
  2959. * breakpoint.c (print_one_breakpoint): For MI-like UI, output
  2960. fullname field.
  2961. 2006-02-03 Daniel Jacobowitz <dan@codesourcery.com>
  2962. * exceptions.h (enum errors): Rename NO_ERROR to GDB_NO_ERROR.
  2963. * exceptions.c (exception_none, exceptions_state_mc_init)
  2964. (throw_vfatal): Use GDB_NO_ERROR.
  2965. 2006-02-02 Mark Kettenis <kettenis@gnu.org>
  2966. * solib-svr4.h (struct link_map_offsets): Remove r_debug_size and
  2967. r_map_size members. Add r_version_offset, r_version_size and
  2968. r_ldsomap_offset members.
  2969. * solib-svr4.c (solib_svr4_r_map): Renamed from
  2970. fetch_link_map_member. Simplify using read_memory_typed_address.
  2971. (solib_svr4_r_ldsomap): New function.
  2972. (open_symbol_file_object): Use solib_svr_r_map.
  2973. (svr4_current_sos): Use solib_svr4_r_map and look for the dynamic
  2974. linker by using solib_svr4_r_ldsomap.
  2975. (svr4_ilp32_fetch_link_map_offsets)
  2976. (svr4_lp64_fetch_link_map_offsets): Adjust for changes to `struct
  2977. link_map_offsets'.
  2978. * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Adjust for
  2979. changes to `struct link_map_offsets'.
  2980. * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets)
  2981. (mipsnbsd_lp64_fetch_link_map_offsets): Adjust for changes to
  2982. `struct link_map_offsets'.
  2983. 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
  2984. * linux-nat.c (struct saved_ptids, threads_to_delete)
  2985. (record_dead_thread, prune_lwps, find_thread_from_lwp)
  2986. (exit_lwp): New.
  2987. (linux_nat_resume): Call prune_lwps.
  2988. (wait_lwp, linux_nat_wait): Call exit_lwp.
  2989. 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
  2990. * printcmd.c (printf_command): Make format string checking
  2991. stricter. Add separate cases for long_arg, ptr_arg, and
  2992. long_double_arg.
  2993. * utils.c (xstrvprintf): Improve the error message issued
  2994. for a bad format string.
  2995. * Makefile.in (GDB_WARN_CFLAGS_NO_FORMAT, INTERNAL_CFLAGS_BASE):
  2996. New variables.
  2997. (gnu-v3-abi.o, monitor.o, procfs.o, linux-thread-db.o): Remove
  2998. $(NO_WERROR_CFLAGS).
  2999. (printcmd.o): Likewise. Use $(GDB_WARN_CFLAGS_NO_FORMAT) and
  3000. enable -Werror.
  3001. 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
  3002. * Makefile.in (remote.o): Update.
  3003. * remote.c (show_packet_config_cmd): Shorten messages.
  3004. (remote_set_cmdlist, remote_show_cmdlist): Make file-static.
  3005. (show_remote_cmd): Iterate.
  3006. (_initialize_remote): Remove remote_set_cmdlist,
  3007. remote_show_cmdlist.
  3008. 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
  3009. * Makefile.in (gdbtypes_h, gdbtypes.o, utils.o): Update.
  3010. * defs.h (hashtab_obstack_allocate, dummy_obstack_deallocate): Add
  3011. prototypes.
  3012. * dwarf2read.c (read_subroutine_type): Use TYPE_ZALLOC.
  3013. (hashtab_obstack_allocate, dummy_obstack_deallocate): Moved to...
  3014. * utils.c (hashtab_obstack_allocate, dummy_obstack_deallocate):
  3015. ...here.
  3016. * gdbtypes.c: Include "hashtab.h".
  3017. (build_gdbtypes): Remove extra prototype.
  3018. (struct type_pair, type_pair_hash, type_pair_eq)
  3019. (create_copied_types_hash, copy_type_recursive): New.
  3020. * gdbtypes.h: Include "hashtab.h".
  3021. (TYPE_ZALLOC): New.
  3022. (create_copied_types_hash, copy_type_recursive): New prototypes.
  3023. * objfiles.c (free_objfile): Call preserve_values.
  3024. * symfile.c (reread_symbols): Likewise.
  3025. (clear_symtab_users): Remove calls to clear_value_history and
  3026. clear_internalvars.
  3027. * value.c (clear_value_history, clear_internalvars): Removed.
  3028. (preserve_one_value, preserve_values): New functions.
  3029. * value.h (clear_value_history, clear_internalvars): Removed.
  3030. (preserve_values): New prototype.
  3031. * tracepoint.c (_initialize_tracepoint): Do not initialize convenience
  3032. variables here.
  3033. 2006-01-29 Mark Kettenis <kettenis@gnu.org>
  3034. * amd64-tdep.c (amd64_classify): Handle TYPE_CODE_BOOL.
  3035. Fixes PR tdep/2075.
  3036. 2006-01-27 Joel Brobecker <brobecker@adacore.com>
  3037. * MAINTAINERS: Use a consistent email address for brobecker.
  3038. 2006-01-27 Joel Brobecker <brobecker@adacore.com>
  3039. * infcmd.c (post_create_inferior): Fix copy/paste error introduced
  3040. in the previous change.
  3041. 2006-01-24 Daniel Jacobowitz <dan@codesourcery.com>
  3042. PR gdb/1914
  3043. * fork-child.c (fork_inferior): Don't call
  3044. solib_create_inferior_hook.
  3045. * infcmd.c (post_create_inferior): Call solib_add,
  3046. solib_create_inferior_hook, and re_enable_breakpoints_in_shlibs.
  3047. (attach_command): Don't call solib_add or
  3048. re_enable_breakpoints_in_shlibs. Call post_create_inferior
  3049. instead.
  3050. * remote.c (remote_open_1): Don't call solib_create_inferior_hook
  3051. or observer_notify_inferior_created. Call post_create_inferior
  3052. instead.
  3053. * corelow.c: Don't include "observer.h".
  3054. (solib_add_stub): Deleted.
  3055. (core_open): Don't call observer_notify_inferior_created or
  3056. solib_add_stub. Call post_create_inferior instead.
  3057. * inf-ptrace.c: Don't include "observer.h".
  3058. (inf_ptrace_attach): Don't call observer_notify_inferior_created.
  3059. * inf-ttrace.c: Don't include "observer.h".
  3060. (inf_ttrace_attach): Don't call observer_notify_inferior_created.
  3061. * inferior.h (solib_create_inferior_hook): Remove redundant
  3062. prototype.
  3063. * inftarg.c: Don't include "observer.h".
  3064. (child_attach): Don't call observer_notify_inferior_created.
  3065. * Makefile.in: Update dependencies.
  3066. 2006-01-24 Daniel Jacobowitz <dan@codesourcery.com>
  3067. * infcmd.c: Include "observer.h".
  3068. (post_create_inferior): New function.
  3069. (run_command_1): Call it. Also call proceed.
  3070. * inferior.h (post_create_inferior): New prototype.
  3071. * Makefile.in (infcmd.o): Update.
  3072. * gnu-nat.c (gnu_create_inferior): Don't call proceed.
  3073. * go32-nat.c (go32_create_inferior): Likewise.
  3074. * nto-procfs.c (procfs_create_inferior): Likewise.
  3075. * procfs.c (procfs_create_inferior): Likewise.
  3076. * remote-sim.c (gdbsim_create_inferior): Likewise.
  3077. * remote.c (extended_remote_create_inferior)
  3078. (extended_remote_async_create_inferior): Likewise.
  3079. * win32-nat.c (win32_create_inferior): Likewise.
  3080. * wince.c (child_create_inferior): Likewise.
  3081. * monitor.c (monitor_create_inferior): Don't call proceed.
  3082. Set the PC manually.
  3083. * ocd.c (ocd_create_inferior): Likewise.
  3084. * remote-e7000.c (e7000_create_inferior): Likewise.
  3085. * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
  3086. * remote-mips.c (mips_create_inferior): Likewise.
  3087. * remote-rdp.c (remote_rdp_create_inferior): Likewise.
  3088. * remote-sds.c (sds_create_inferior): Likewise.
  3089. * remote-st.c (st2000_create_inferior): Likewise.
  3090. * inf-ptrace.c (inf_ptrace_create_inferior): Don't call
  3091. proceed or observer_notify_inferior_created.
  3092. * inf-ttrace.c (inf_ttrace_create_inferior): Likewise.
  3093. * inftarg.c (child_create_inferior): Likewise.
  3094. 2006-01-24 Daniel Jacobowitz <dan@codesourcery.com>
  3095. * linux-thread-db.c (thread_db_mourn_inferior): Remove breakpoints
  3096. after mourning the inferior.
  3097. 2006-01-24 Jim Blandy <jimb@redhat.com>
  3098. * valarith.c (binop_user_defined_p): Handle refs to typedefs.
  3099. 2006-01-24 Fred Fish <fnf@specifix.com>
  3100. * parse.c (source.h): Include.
  3101. (parse_exp_in_context): Use static source context if no
  3102. other context found.
  3103. 2006-01-23 Andrew Stubbs <andrew.stubbs@st.com>
  3104. * sh-tdep.c: Include reggroups.h.
  3105. (sh_register_reggroup_p): New function.
  3106. (sh_gdbarch_init): Add call to set_gdbarch_register_reggroup_p.
  3107. * Makefile.in (sh-tdep.o): Add dependency on reggroups.h.
  3108. 2006-01-23 Andrew Stubbs <andrew.stubbs@st.com>
  3109. * cli/cli-cmds.c: Include fcntl.h.
  3110. (source_command): Use the GDB search path to find script files.
  3111. 2006-01-22 Daniel Jacobowitz <dan@codesourcery.com>
  3112. PR tdep/2029
  3113. Suggested by Till Straumann <strauman@slac.stanford.edu>:
  3114. * rs6000-tdep.c (skip_prologue): Update check for later mtlr
  3115. instructions. Handle PIC bcl.
  3116. 2006-01-22 Daniel Jacobowitz <dan@codesourcery.com>
  3117. * config/djgpp/README: Typo fix.
  3118. * config/djgpp/fnchange.lst: Update.
  3119. 2006-01-22 Mark Kettenis <kettenis@gnu.org>
  3120. * sparc-tdep.h (struct gdbarch_tdep): Add step_trap member.
  3121. (sparc_address_from_register): New prototype.
  3122. (sparcnbsd_step_trap): New prototype.
  3123. * sparc-tdep.c (sparc_address_from_register): Make globally
  3124. visible.
  3125. (sparc_analyze_control_transfer): Change prototype to accept
  3126. `struct gdbarch *' as first argument. Allow for optional hnadling
  3127. for trap instructions.
  3128. (sparc_step_trap): New function.
  3129. (sparc_software_single_step): Adjust call to
  3130. sparc_analyze_control_trabsfer.
  3131. (sparc32_gdbarch_init): Initialize TDEP->step_trap.
  3132. * sparcnbsd-tdep.c (sparcnbsd_step_trap): New function.
  3133. (sparc32nbsd_init_abi): Set TDEP->step_trap.
  3134. * sparc64obsd-tdep.c (sparc64obsd_init_abi): Set TDEP->step_trap.
  3135. * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Set TDEP->step_trap.
  3136. * sparc-tdep.c (sparc32_return_value): Convert to use
  3137. RETURN_VALUE_ABI_PRESERVES_ADDRESS instead of
  3138. RETURN_VALUE_STRUCT_CONVENTION.
  3139. (sparc32_extract_struct_value_address): Remove.
  3140. 2006-01-21 Daniel Jacobowitz <dan@codesourcery.com>
  3141. * avr-tdep.c (avr_address_to_pointer, avr_pointer_to_address)
  3142. (avr_extract_return_value, avr_frame_prev_register): Use gdb_byte.
  3143. 2006-01-21 Daniel Jacobowitz <dan@codesourcery.com>
  3144. * solib.c (info_sharedlibrary_command): Avoid internal_error.
  3145. 2006-01-21 Mark Kettenis <kettenis@gnu.org>
  3146. * i386-tdep.c (i386_mxcsr_type): New variable.
  3147. (i386_init_types): Initialize i386_mxcsr_type.
  3148. (i386_register_type): Return i386_mxcsr_type for %mxcsr.
  3149. * i386-tdep.c (i386_mxcsr_type): New extern.
  3150. * amd64-tdep.c (amd64_register_info): Return i386_mxcsr_type for
  3151. %mxcsr.
  3152. 2006-01-20 Mark Mitchell <mark@codesourcery.com>
  3153. * Makefile.in (remote-rdi.o): Remove.
  3154. (rdi-share/libangsd.a): Likewise.
  3155. * README: Don't mention remote-rdi.c.
  3156. * NEWS: Mention removal of rdi-share.
  3157. * configure.ac: Don't configure rdi-share subdirectory.
  3158. * remote-rdi.c: Remove.
  3159. * config/arm/embed.mt (TDEPFILES): Remove remote-rdi.o.
  3160. (TDEPLIBS): Remove rdi-share/libangsd.a.
  3161. * rdi-share/Makefile.am: Remove.
  3162. * rdi-share/Makefile.in: Likewise.
  3163. * rdi-share/README.CYGNUS: Likewise.
  3164. * rdi-share/aclocal.m4: Likewise.
  3165. * rdi-share/adp.h: Likewise.
  3166. * rdi-share/adperr.h: Likewise.
  3167. * rdi-share/angel.h: Likewise.
  3168. * rdi-share/angel_bytesex.c: Likewise.
  3169. * rdi-share/angel_bytesex.h: Likewise.
  3170. * rdi-share/angel_endian.h: Likewise.
  3171. * rdi-share/ardi.c: Likewise.
  3172. * rdi-share/ardi.h: Likewise.
  3173. * rdi-share/armdbg.h: Likewise.
  3174. * rdi-share/buffers.h: Likewise.
  3175. * rdi-share/chandefs.h: Likewise.
  3176. * rdi-share/channels.h: Likewise.
  3177. * rdi-share/chanpriv.h: Likewise.
  3178. * rdi-share/configure: Likewise.
  3179. * rdi-share/configure.in: Likewise.
  3180. * rdi-share/crc.c: Likewise.
  3181. * rdi-share/crc.h: Likewise.
  3182. * rdi-share/dbg_conf.h: Likewise.
  3183. * rdi-share/dbg_cp.h: Likewise.
  3184. * rdi-share/dbg_hif.h: Likewise.
  3185. * rdi-share/dbg_rdi.h: Likewise.
  3186. * rdi-share/devclnt.h: Likewise.
  3187. * rdi-share/devices.h: Likewise.
  3188. * rdi-share/devsw.c: Likewise.
  3189. * rdi-share/devsw.h: Likewise.
  3190. * rdi-share/drivers.c: Likewise.
  3191. * rdi-share/drivers.h: Likewise.
  3192. * rdi-share/etherdrv.c: Likewise.
  3193. * rdi-share/ethernet.h: Likewise.
  3194. * rdi-share/host.h: Likewise.
  3195. * rdi-share/hostchan.c: Likewise.
  3196. * rdi-share/hostchan.h: Likewise.
  3197. * rdi-share/hsys.c: Likewise.
  3198. * rdi-share/hsys.h: Likewise.
  3199. * rdi-share/logging.c: Likewise.
  3200. * rdi-share/logging.h: Likewise.
  3201. * rdi-share/msgbuild.c: Likewise.
  3202. * rdi-share/msgbuild.h: Likewise.
  3203. * rdi-share/params.c: Likewise.
  3204. * rdi-share/params.h: Likewise.
  3205. * rdi-share/rx.c: Likewise.
  3206. * rdi-share/rxtx.h: Likewise.
  3207. * rdi-share/serdrv.c: Likewise.
  3208. * rdi-share/serpardr.c: Likewise.
  3209. * rdi-share/sys.h: Likewise.
  3210. * rdi-share/tx.c: Likewise.
  3211. * rdi-share/unixcomm.c: Likewise.
  3212. * rdi-share/unixcomm.h: Likewise.
  3213. 2006-01-21 Mark Kettenis <kettenis@gnu.org>
  3214. * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register):
  3215. Change type of last argument to `gdb_byte *'.
  3216. 2006-01-20 Mark Kettenis <kettenis@gnu.org>
  3217. * hppa-tdep.h (hppa_in_solib_call_trampoline)
  3218. (hppa_skip_trampoline_code): New prototypes.
  3219. * hppa-tdep.c (struct insn_pattern): New.
  3220. (hppa_long_branch_stub, hppa_long_branch_pic_stub)
  3221. (hppa_import_stub, hppa_import_pic_stub, hppa_plt_stub): Moved
  3222. here from hppa-linux-tdep.c
  3223. (HPPA_MAX_INSN_PATTERN_LEN): New define.
  3224. (hppa_match_insns, hppa_match_insns_relaxed, hppa_in_dyncall)
  3225. (hppa_in_solib_call_trampoline, hppa_skip_trampoline_code): New
  3226. functions based on functions removed from hppa-linux-tdep.c.
  3227. * hppa-linux-tdep.c (hppa_long_branch_stub)
  3228. (hppa_long_branch_pic_stub, hppa_import_stub)
  3229. (hppa_import_pic_stub, hppa_plt_stub): Moved to hppa-tdep.c.
  3230. (insns_match_pattern_relaxed, hppa_linux_in_dyncall)
  3231. (hppa_linux_in_solib_call_trampoline)
  3232. (hppa_linux_skip_trampoline_code): Removed.
  3233. (hppa_linux_init_abi): Set TDEP->in_solib_call_tranpoline to
  3234. hppa_in_solib_call_trampoline and skip_trampoline_code to
  3235. hppa_skip_trampoline_code.
  3236. * hppabsd-tdep.c (hppabsd_init_abi): Set
  3237. TDEP->in_solib_call_trampoline and skip_trampoline_code.
  3238. 2006-01-20 Jim Blandy <jimb@redhat.com>
  3239. * MAINTAINERS: Change my E-mail address.
  3240. * configure.ac: Add -Wno-pointer-sign to list of build warnings.
  3241. * configure: Regenerated.
  3242. 2006-01-20 Daniel Jacobowitz <dan@codesourcery.com>
  3243. * MAINTAINERS: Overhaul.
  3244. 2006-01-18 Mark Kettenis <kettenis@gnu.org>
  3245. Based on a previous patch form Michal Ludvig:
  3246. * amd64-tdep.c (amd64_sse_type): Remove.
  3247. (amd64_register_info): Use i386_eflags_type and i386_sse_type
  3248. where appropriate.
  3249. (AMD64_NUM_REGS): Use ARRAY_SIZE.
  3250. (amd64_register_type): Remove code to build amd_sse_type.
  3251. * i386-tdep.c (i386_eflag_type): New variable.
  3252. (i386_mmx_type, i386_sse_type): Make global.
  3253. (i386_init_types): New function.
  3254. (i386_build_mmx_type, i386_build_sse_type): Remove functions.
  3255. (i386_register_type): Return i386_eflag_type, i386_sse_type and
  3256. i386_mmx_type when appropriate.
  3257. (_initialize_i386_tdep): Call i386_init_types.
  3258. * i386-tdep.h (i386_eflags_type, i386_mmx_type, i386_sse_type):
  3259. Declare extern.
  3260. Based on a previous patch form Michal Ludvig:
  3261. * gdbtypes.c (append_flags_type_flag, init_flags_type): New
  3262. functions.
  3263. (is_integral_type, rank_one_type, recursive_dump_type): Add
  3264. support for TYPE_CODE_FLAGS.
  3265. * gdbtypes.h (enum type_code): Add TYPE_CODE_FLAGS.
  3266. (append_flags_type_field, init_flags_type): New prototypes.
  3267. * ada-valprint.c (ada_val_print_1): Add support for
  3268. TYPE_CODE_FLAGS.
  3269. * c-valprint.c (c_val_print): Likewise.
  3270. * f-valprint.c (f_val_print): Likewise.
  3271. * p-valprint.c (pascal_val_print): Likewise.
  3272. * valprint.c (val_print_type_code_flags): New function.
  3273. * valprint.h (val_print_type_code_flags): New prototype.
  3274. * value.c (unpack_long, value_from_longest): Add support for
  3275. TYPE_CODE_FLAGS.
  3276. 2006-01-17 Christopher Faylor <cgf@timesys.com>
  3277. * MAINTAINERS: Very belatedly remove myself from from the list of
  3278. people caught up in the paper trail.
  3279. 2006-01-17 Jim Blandy <jimb@redhat.com>
  3280. * symtab.h (struct general_symbol_info): Use gdb_byte for
  3281. value.bytes.
  3282. * stabsread.c (define_symbol): Use gdb_byte for the buffer holding
  3283. a floating-point constant's value.
  3284. * dwarf2read.c (dwarf2_const_value): Remove casts of value buffer
  3285. to char *.
  3286. * findvar.c (read_var_value): Eliminate needless temporary.
  3287. * dwarf2-frame.c (dwarf2_read_section): Update forward declaration
  3288. to match prior change to dwarf2_read_section's type.
  3289. 2006-01-16 Paul Gilliam <pgilliam@us.ibm.com>
  3290. * ppc-tdep.h (PPC_MAX_EPILOGUE_INSTRUCTIONS): New define.
  3291. * rs6000-tdep.c (insn_changes_sp_or_jumps)
  3292. (rs6000_in_function_epilogue_p): New functions.
  3293. (rs6000_gdbarch_init): Set in_function_epilogue_p.
  3294. 2006-01-17 Jim Blandy <jimb@redhat.com>
  3295. * dwarf2read.c (struct dwarf2_per_objfile, struct comp_unit_head)
  3296. (struct line_header, struct partial_die_info, struct dwarf_block):
  3297. Use gdb_byte for members that refer to Dwarf section contents.
  3298. (dwarf2_read_abbrevs, dwarf2_read_section, dwarf_decode_lines,
  3299. dwarf_decode_macros, load_comp_unit, load_partial_dies,
  3300. locate_pdi_sibling, partial_read_comp_unit_head, peek_die_abbrev,
  3301. read_1_byte, read_1_signed_byte, read_2_bytes, read_4_bytes,
  3302. read_8_bytes, read_address, read_attribute, read_attribute_value,
  3303. read_comp_unit, read_comp_unit_head, read_die_and_children,
  3304. read_die_and_siblings, read_full_die, read_indirect_string,
  3305. read_initial_length, read_n_bytes, read_offset, read_partial_die,
  3306. read_signed_leb128, read_string, read_unsigned_leb128,
  3307. skip_children, skip_leb128, skip_one_die): Same.
  3308. 2006-01-17 Daniel Jacobowitz <dan@codesourcery.com>
  3309. * complaints.c (stop_whining): Make signed.
  3310. * linux-thread-db.c (thread_db_store_registers): Use gdb_byte.
  3311. 2006-01-17 Daniel Jacobowitz <dan@codesourcery.com>
  3312. * dwarf2read.c, remote-fileio.c, remote.h: Update copyright
  3313. notices.
  3314. 2006-01-17 Daniel Jacobowitz <dan@codesourcery.com>
  3315. * dwarf2read.c (peek_die_abbrev, read_address, read_initial_length)
  3316. (read_offset): Change BYTES_READ argument to unsigned int.
  3317. (dwarf2_build_psymtabs_easy, read_comp_unit_head)
  3318. (create_all_comp_units, dwarf2_get_pc_bounds)
  3319. (dwarf_decode_line_header, var_decode_location)
  3320. (dwarf_decode_macros): Change local BYTES_READ variables to
  3321. unsigned int.
  3322. (read_indirect_string): Remove obsolete cast.
  3323. 2006-01-17 Daniel Jacobowitz <dan@codesourcery.com>
  3324. * remote-fileio.c (remote_fileio_return_success): Take a gdb_byte
  3325. argument.
  3326. (remote_fileio_func_open, remote_fileio_func_rename)
  3327. (remote_fileio_func_unlink, remote_fileio_func_stat)
  3328. (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
  3329. (remote_fileio_func_system): Cast the arguments to
  3330. remote_read_bytes and remote_write_bytes.
  3331. (remote_fileio_func_read, remote_fileio_func_write): Use a
  3332. gdb_byte buffer.
  3333. * remote.h (remote_read_bytes, remote_write_bytes): Update
  3334. prototypes.
  3335. * remote.c (hex2bin, bin2hex): Use gdb_byte for the BIN argument.
  3336. (threadref_to_int): Replace bogus char * cast.
  3337. (remote_unpack_thread_info_response): Use int for tag.
  3338. (remote_threads_extra_info, remote_check_symbols): Cast string
  3339. arguments to hex2bin.
  3340. (remote_wait): Use a char buffer for packets and a gdb_byte
  3341. buffer for registers.
  3342. (remote_async_wait): Likewise.
  3343. (remote_prepare_to_store, store_register_using_P)
  3344. (remote_store_registers): Use gdb_byte buffers.
  3345. (remote_write_bytes, remote_read_bytes): Use a gdb_byte pointer
  3346. for MYADDR and char buffers for strings.
  3347. (remote_xfer_partial): Add casts for string operations on READBUF.
  3348. (remote_rcmd): Cast strings passed to bin2hex.
  3349. 2006-01-16 Mark Mitchell <mark@codesourcery.com>
  3350. * aclocal.m4: Regenerate.
  3351. 2006-01-16 Nathan Sidwell <nathan@codesourcery.com>
  3352. * mt-tdep.c (enum mt_gdb_regnums): Add MT_COPRO_PSEUDOREG_ARRAY,
  3353. MT_COPRO_PSEUDOREG_DIM_1, MT_COPRO_PSEUDOREG_DIM_2,
  3354. MT_COPRO_PSEUDOREG_REGS members. Adjust MT_NUM_PSEUDO_REGS.
  3355. (mt_register_name): Lazily synthesize name for coprocessor pseudo
  3356. array registers.
  3357. (mt_copro_register_type): New. Broken out of ...
  3358. (mt_register_type): ... here. Use it. Deal with coprocessor
  3359. pseudo array.
  3360. (mt_select_coprocessor): New.
  3361. (mt_pseudo_register_read, mt_pseudo_register_write): Deal with
  3362. coprocessor pseudo array.
  3363. 2006-01-16 Andrew Stubbs <andrew.stubbs@st.com>
  3364. * breakpoint.c (insert_breakpoints): Check that a thread exists
  3365. before inserting thread specific breakpoints.
  3366. 2006-01-15 Mark Kettenis <kettenis@gnu.org>
  3367. * osabi.c (generic_elf_osabi_sniffer): Fix typo in previous
  3368. commit.
  3369. * alpha-tdep.c (alpha_gdbarch_init): Set cannot_step_breakpoint.
  3370. * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Remove.
  3371. * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Remove.
  3372. * config/alpha/nm-nbsd.h: Remove file.
  3373. * config/alpha/nm-fbsd.h: Remove file
  3374. * config/alpha/nbsd.mh (NAT_FILE): Remove.
  3375. * config/alpha/fbsd.mh (NAT_FILE): Remove.
  3376. 2006-01-15 Daniel Jacobowitz <dan@codesourcery.com>
  3377. * macroexp.c (expand): Initialize argc.
  3378. * stabsread.c (read_type): Handle errors from read_args.
  3379. (read_args): Return NULL for errors.
  3380. 2006-01-15 Mark Kettenis <kettenis@gnu.org>
  3381. * osabi.c (generic_elf_osabi_sniffer): Use memcmp instead of
  3382. strcmp to compare string to a byte buffer.
  3383. 2006-01-15 Daniel Jacobowitz <dan@codesourcery.com>
  3384. * printcmd.c (output_command): Always initialize fmt.size.
  3385. (printf_command): Use gdb_byte.
  3386. * symfile.c (separate_debug_file_exists): Use gdb_byte.
  3387. (load_section_callback, read_target_long_array): Likewise.
  3388. (simple_read_overlay_table, simple_read_overlay_region_table)
  3389. (simple_overlay_update_1): Correct calls to read_target_long_array.
  3390. * valprint.c (partial_memory_read): Change MYADDR to a gdb_byte *.
  3391. Also change local pointers.
  3392. (val_print_string): Use gdb_byte.
  3393. 2006-01-15 Mark Kettenis <kettenis@gnu.org>
  3394. * alphafbsd-tdep.c: Include "solib-svr4.h".
  3395. (alphafbsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
  3396. svr4_lp64_fetch_link_map_offsets.
  3397. * Makefile.in (alphafbsd-tdep.o): Update dependencies.
  3398. * config/alpha/fbsd.mt (TDEPFILES): Add corelow.o, solib.o and
  3399. solib-svr4.o.
  3400. * config/alpha/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
  3401. and solib-legacy.o.
  3402. * config/alpha/nm-fbsd.h: Don't include "solib.h".
  3403. 2006-01-15 Daniel Jacobowitz <dan@codesourcery.com>
  3404. * source.c (_initialize_source): Use add_setshow_integer_cmd.
  3405. 2006-01-15 Daniel Jacobowitz <dan@codesourcery.com>
  3406. * linux-fork.c (delete_fork_command, detach_fork_command): Use
  3407. PIDGET.
  3408. 2006-01-15 Mark Kettenis <kettenis@gnu.org>
  3409. * arm-linux-tdep.c (arm_linux_svr4_fetch_link_map_offsets):
  3410. Remove.
  3411. (arm_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
  3412. svr4_ilp32_fetch_link_map_offsets.
  3413. * cris-tdep.c (cris_linux_svr4_fetch_link_map_offsets): Remove
  3414. function.
  3415. (cris_gdbarch_init): Set solib_svr4_fetch_link_map_offsets to
  3416. svr4_ilp32_fetch_link_map_offsets.
  3417. * mips-linux-tdep.c (mips_linux_svr4_fetch_link_map_offsets)
  3418. (mips64_linux_svr4_fetch_link_map_offsets): Remove functions.
  3419. (mips_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
  3420. svr4_ilp32_fetch_link_map_offsets or svr4_lp64_fetch_link_map_offsets
  3421. where appropriate.
  3422. * nbsd-tdep.c (nbsd_ilp32_solib_svr4_fetch_link_map_offsets):
  3423. Simply call svr4_ilp32_fetch_link_map_offsets.
  3424. (nbsd_lp64_solib_svr4_fetch_link_map_offsets): Simply call
  3425. svr4_lp64_fetch_link_map_offsets.
  3426. * ppc-linux-tdep.c (ppc_linux_svr4_fetch_link_map_offsets): Remove
  3427. function.
  3428. (ppc_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
  3429. svr4_ilp32_fetch_link_map_offsets.
  3430. * s390-tdep.c (s390_svr4_fetch_link_map_offsets)
  3431. (s390x_svr4_fetch_link_map_offsets): Remove functions.
  3432. (s390_gdbarch_init): Set solib_svr4_fetch_link_map_offsets to
  3433. svr4_ilp32_fetch_link_map_offsets or svr4_lp64_fetch_link_map_offsets
  3434. where appropriate.
  3435. 2006-01-15 Mark Kettenis <kettenis@gnu.org>
  3436. * arm-tdep.c (arm_return_value): Change type of readbuf and
  3437. writebuf arguments to `gdb_byte *'.
  3438. * s390-tdep.c: Do not include "tm.h" and "../bfd/bfd.h".
  3439. * Makefile.in (s390-tdep.o): Update dependencies.
  3440. 2006-01-14 Mark Kettenis <kettenis@gnu.org>
  3441. * sol2-tdep.h. sol2-tdep.c: New files.
  3442. * amd64-sol2-tdep.c: Include "sol2-tdep.h".
  3443. (amd64_sol2_init_abi): Set skip_solib_resolver.
  3444. * i386-sol2-tdep.c: Include "sol2-tdep.h".
  3445. (i386_sol2_init_abi): Set skip_solib_resolver.
  3446. * sparc-sol2-tdep.c: Include "sol2-tdep.h".
  3447. (sparc32_sol2_init_abi): Set skip_solib_resolver.
  3448. * sparc64-sol2-tdep.c: Include "sol2-tdep.h".
  3449. (sparc64_sol2_init_abi): Set skip_solib_resolver.
  3450. * Makefile.in (sol2_tdep_h): New variable.
  3451. (ALLDEPFILES): Add sol2-tdep.c.
  3452. (sol2-tdep.o): New target.
  3453. (amd64-sol2-tdep.o, i386-sol2-tdep.o, sparc-sol2-tdep.o)
  3454. (sparc64-sol2-tdep.o): Update dependencies
  3455. * config/i386/i386sol2.mt (TDEPFILES): Add sol2-tdep.o.
  3456. * config/i386/sol2-64.mt (TDEPFILES): Add sol2-tdep.o.
  3457. * config/sparc/sol2.mt (TDEPFILES): Add sol2-tdep.o.
  3458. * config/sparc/sol2-64.mt (TDEPFILES): Add sol2-tdep.o.
  3459. * hppa-linux-tdep.c: Fix copyright indentation.
  3460. * hppa-tdep.h (enum hppa_regnum): Add HPPA_FP31R_REGNUM.
  3461. * hppabsd-nat.c (hppabsd_fpregset_supplies_p)
  3462. (hppabsd_supply_fpregset, hppabsd_collect_fpregset): New
  3463. functions.
  3464. (hppabsd_fetch_registers, hppabsd_store_registers): Handle
  3465. floating-point registers.
  3466. 2006-01-13 Mark Mitchell <mark@codesourcery.com>
  3467. * event-loop.c (gdb_select): Detect file descriptors that have
  3468. been closed.
  3469. 2006-01-13 Mark Kettenis <kettenis@gnu.org>
  3470. * hppabsd-tdep.c (hppabsd_init_abi): Set long_double_bit to 64,
  3471. and long_double_format accordingly.
  3472. 2006-01-12 Paul N. Hilfinger <hilfinger@adacore.com>
  3473. * ada-exp.y (yyerror): Change message to ignore the argument, avoiding
  3474. translation problems.
  3475. * ada-lang.c (ada_value_struct_elt): Change interface and handling
  3476. of errors to avoid translation problem (and less than optimal error
  3477. messages).
  3478. (ada_value_tag, ada_tag_name_1, ada_tag_name_2, ada_evaluate_subexp):
  3479. Use new interface to ada_value_struct_elt.
  3480. * ada_lang.h (ada_value_struct_elt): Update declaration to new
  3481. interface.
  3482. * ChangeLog: remove reference to ada-tasks.c from entry of
  3483. 2006-01-07.
  3484. 2006-01-11 Mark Kettenis <kettenis@gnu.org>
  3485. * remote.c (get_memory_packet_size, set_thread)
  3486. (remote_unpack_thread_info_response, remote_get_threadinfo)
  3487. (parse_threadlist_response, remote_get_threadlist)
  3488. (remote_current_thread, remote_threads_info)
  3489. (remote_threads_extra_info, extended_remote_restart, get_offsets)
  3490. (remote_check_symbols, remote_open_1, remote_detach)
  3491. (remote_async_wait, remote_fetch_registers)
  3492. (remote_store_registers, check_binary_download, putpkt_binary)
  3493. (remote_insert_breakpoint, remote_insert_watchpoint)
  3494. (remote_remove_watchpoint, remote_insert_hw_breakpoint)
  3495. (remote_remove_hw_breakpoint, remote_xfer_partial, remote_rcmd)
  3496. (packet_command): Remove redundant parenthesis.
  3497. 2006-01-10 Mark Kettenis <kettenis@gnu.org>
  3498. * corefile.c (read_memory_integer, read_memory_unsigned_integer)
  3499. (read_memory_typed_address, write_memory)
  3500. (write_memory_unsigned_integer, write_memory_signed_integer): Use
  3501. gdb_byte where appropriate.
  3502. * mi/mi-main.c (mi_cmd_data_read_memory): Change type of mbus into
  3503. 'gdb_byte *'.
  3504. * target.h (target_read_memory_partial, target_write_memory_partial):
  3505. Change second argument to 'gdb_byte *'.
  3506. * target.c (target_xfer_memory_partial): Change third argument to
  3507. 'gdb_byte *'.
  3508. (target_read_memory_partial, target_write_memory_partial): Change
  3509. second argument to 'gdb_byte *'.
  3510. * linespec.c (decode_objc): Make i1 and i2 unsigned.
  3511. (find_method): Set values.sals to NULL.
  3512. 2006-01-09 Mark Kettenis <kettenis@gnu.org>
  3513. * amd64obsd-nat.c (amd64obsd_supply_pcb): Use 'gdb_byte *' instead
  3514. of 'char *' in cast.
  3515. 2006-01-07 Paul N. Hilfinger <hilfinger@adacore.com>
  3516. * ada-exp.y, ada-lex.l, ada-typeprint.c: I18n markup.
  3517. * ada-lang.c: I18n markup.
  3518. Editorial: change "can not" => "cannot" throughout.
  3519. 2006-01-07 Mark Kettenis <kettenis@gnu.org>
  3520. * Makefile.in: Sort dependencies.
  3521. 2006-01-07 Eli Zaretskii <eliz@gnu.org>
  3522. * top.c (control_level): Remove unused variable.
  3523. 2006-01-06 Fred Fish <fnf@specifix.com>
  3524. * objfiles.c (source.h): Include.
  3525. (free_objfile): Update comment about clear_symtab_users().
  3526. (free_objfile): Check all symtabs of objfile being freed and if
  3527. one of them is the current source symtab, call
  3528. clear_current_source_symtab_and_line().
  3529. 2006-01-04 Michael Snyder <msnyder@redhat.com>
  3530. Checkpoint/Restart for Linux.
  3531. * linux-nat.c: Add support for debugging multiple forks.
  3532. Add #include for linux-fork.h (interface spec).
  3533. (super_mourn_inferior): New function pointer.
  3534. (child_mourn_inferior): New function / target method.
  3535. (linux_target): Claim to_mourn_inferior method pointer.
  3536. (child_follow_fork): Call interface to linux-fork, conditionally
  3537. add new fork processes to list of debugged processes.
  3538. (kill_inferior): Use interface to linux-fork to kill
  3539. multiple processes.
  3540. * linux-fork.h: New file.
  3541. * linux-fork.c: New file. Support for debugging multiple forks
  3542. of the same program. Support for checkpoint and restart commands.
  3543. * infrun.c (nullify_last_target_wait_ptid): New function.
  3544. * Makefile.in: Add linux-fork.
  3545. * config/*/linux.mh: Add linux-fork.
  3546. * NEWS: Mention new functionality.
  3547. 2006-01-02 Paul Hilfinger <hilfingr@nile.gnat.com>
  3548. * ada-exp.y (syntax definitions,write_var_or_type,write_name_assoc):
  3549. Change uses of "illegal" to "invalid".
  3550. 2006-01-02 Paul N. Hilfinger <hilfinger@adacore.com>
  3551. * ada-exp.y: Considerable reorganization to move functionality
  3552. from ada-lex.l to here, where it is logically more appropriate.
  3553. The original reason, however, was to prevent premature name
  3554. lookups for selector names in record aggregates.
  3555. (BLOCKNAME, TYPENAME, OBJECT_RENAMING): Remove; lexer now returns
  3556. NAME for all of these.
  3557. (VAR): New artificial token to clarify precedence rules.
  3558. (OTHERS): New lexeme.
  3559. (empty_stoken): New symbol.
  3560. (%union): Remove ssym, voidval.
  3561. (%type): Remove <voidval> type declarations.
  3562. (syntax definitions): Add aggregates.
  3563. Remove distinction between NAME, TYPENAME, BLOCKNAME, OBJECT_RENAMING.
  3564. Rename some non-terminals to be closer to reference manual usage.
  3565. Tighten up expression syntax to disallow certain non-Ada
  3566. constructions such as X and then Y or else Z.
  3567. (ada_parse): Remove initialization of left_block_context.
  3568. (write_var_from_name): Remove.
  3569. (write_var_or_type): New function, containing previous code from
  3570. defunct write_var_from_name and name_lookup.
  3571. (block_lookup): New function, moved from ada-lex.l
  3572. (select_possible_type_sym): New function, factored out of
  3573. name_lookup, which used to be in ada-lex.l.
  3574. (find_primitive_type): Ditto.
  3575. (chop_selector): Ditto.
  3576. (write_ambiguous_var): New function, factored out of defunct
  3577. write_var_from_name.
  3578. (write_selectors): New function.
  3579. (write_name_assoc): New function.
  3580. (write_exp_op_with_string): New function.
  3581. * ada-lex.l (processId): Change interface to return stoken.
  3582. (tempbuf, resize_tempbuf, tempbuf_size, tempbuf_len): Remove.
  3583. (block_lookup, name_lookup): Remove. Functionality moved to
  3584. ada-exp.y.
  3585. (state IN_STRING): Remove.
  3586. (rules): Handle string escapes in processString.
  3587. Add 'others' token.
  3588. Return all NAMEs, BLOCKNAMEs, OBJECT_RENAMINGs, TYPENAMEs in
  3589. yylval.sval (as simple strings).
  3590. All name look-ups now handled in ada-exp.y.
  3591. Introduce "::" (COLONCOLON) token and return as separate token.
  3592. (processId): Change return convention. Comment.
  3593. Leave leading "'" in place.
  3594. (processString): New function.
  3595. (find_dot_all): Add note to comment.
  3596. Fix problem that allowed match only at the end.
  3597. * ada-lang.c: Introduce aggregates.
  3598. (find_struct_field): Add new parameter to count fields skipped, and
  3599. allow other output parameters to be NULL.
  3600. (value_tag_from_contents_and_address, ada_value_struct_elt): Use
  3601. new find_struct_field.
  3602. (ada_index_struct_field, assign_aggregate, ada_is_array_type)
  3603. (num_visible_fields, ada_index_struct_field_1, ada_index_struct_field)
  3604. (num_component_specs, assign_component, assign_aggregate):
  3605. (aggregate_assign_from_choices,aggregate_assign_positional)
  3606. (aggregate_assign_others,add_component_interval):
  3607. New functions.
  3608. (ada_evaluate_subexp): Declare.
  3609. Add aggregate-related operators.
  3610. (ada_forward_operator_length): Declare.
  3611. (resolve_subexp): Add cases for new aggregate operators and OP_NAME.
  3612. Consolidate Ada operators, using ada_forward_operator_length.
  3613. (ada_search_struct_field): Search in forward order.
  3614. (ADA_OPERATORS): Add new aggregate operators.
  3615. (ada_operator_length, ada_op_name, ada_forward_operator_length)
  3616. (ada_dump_subexp_body, ada_print_subexp): Handle new aggregate
  3617. operators and OP_NAME.
  3618. (ada_type_of_array): Use longest_to_int.
  3619. (value_assign_to_component): New function.
  3620. (ada_forward_operator_length, ada_op_name, ada_dump_subexp_body):
  3621. Add OP_NAME case.
  3622. (ada_forward_operator_length, ada_dump_subexp_body):
  3623. Add OP_STRING case.
  3624. * ada-lang.h (enum ada_operator): Add OP_AGGREGATE, OP_OTHERS,
  3625. OP_CHOICES, OP_DISCRETE_RANGE, OP_POSITIONAL.
  3626. 2006-01-02 Paul N. Hilfinger <hilfinger@adacore.com>
  3627. * ada-lang.c (process_raise_exception_name): Remove extraneous
  3628. definition from unsubmitted code.
  3629. (is_lower_alphanum): New function.
  3630. (ada_decode): Add support for decoding protected object subprograms
  3631. and entries, and of entities declared inside protected object
  3632. subprograms.
  3633. Also add missing handling for__{DIGITS}+ suffixes.
  3634. Allow '$<digits>' as valid overloading suffix.
  3635. (is_name_suffix): Add handling for protected type entriy suffixes.
  3636. Also add support for protected type subprogram suffixes, but keep
  3637. it commented out for now, as there is an ambiguity between these
  3638. entities and other internally generated entities.
  3639. Allow '$<digits>' as valid overloading suffix.
  3640. (is_valid_name_for_wild_match): New function.
  3641. (wild_match): Add an exra level of verification of the entity name
  3642. before declaring it a match for the given pattern.
  3643. (ada_type_of_array, ada_evaluate_subexp): Use more proper
  3644. longest_to_int rather than cast.
  3645. (ada_evaluate_subexp): Use "invalid" rather than "illegal" in comment.
  3646. (ada_coerce_to_simple_array): Call check_size to make sure
  3647. that the object size is reasonable.
  3648. (ada_value_primitive_packed_val): Use correct location in target
  3649. buffer for extracting packed record fields that are themselves records.
  3650. (add_defn_to_vec): Do not try to replace a stub type by its full
  3651. type. Avoids a potential infinite loop.
  3652. (ada_lookup_symbol): Move return incorrectly placed return statement,
  3653. causing a loop that should be scanning all object files to only
  3654. scan the first one.
  3655. (ada_tag_name_2): New function.
  3656. (ada_tag_name_1): If no 'tsd' field found in the dispatching table,
  3657. use alternative representation.
  3658. (ada_find_renaming_symbol): Strip the function name suffix when
  3659. computing the XR type name.
  3660. (ada_to_fixed_type): Try determining the tag only if we have the
  3661. object's address.
  3662. (to_fixed_array_type): Add comments.
  3663. (ada_check_typedef): Replace expression checking whether the given
  3664. type is a stub or not by a "call" to TYPE_STUB. Clearer and more
  3665. consistent.
  3666. * ada-lang.h (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Allow
  3667. '$' in addition to '.' for runtime auxiliary function name suffixes.
  3668. See changes to ada_decode above.
  3669. (struct task_control_block): Add field called_task. (This change is
  3670. to keep synchronized with our local sources; it does not affect the
  3671. public version yet.)
  3672. * ada-typeprint.c (ada_print_type): Use int_string for printing
  3673. modulus of modular type.
  3674. (print_range): Trivial editorial comment fix.
  3675. * ada-valprint.c (ada_emit_char): Use normal Ada syntax for
  3676. double quote in string.
  3677. 2006-01-01 Joel Brobecker <brobecker@adacore.com>
  3678. * top.c: Add 2006 to list of copyright years in file header.
  3679. 2006-01-01 Joel Brobecker <brobecker@adacore.com>
  3680. * top.c (print_gdb_version): Update copyright year to 2006.
  3681. 2006-01-01 Roger Sayle <roger@eyesopen.com>
  3682. Elena Zannoni <ezannoni@redhat.com>
  3683. PR symtab/1651
  3684. * xcoffread.c (xcoff_next_symbol_text): Check this_symtab_psymtab
  3685. for NULL before assigning this_symtab_psymtab->objfile to objfile.
  3686. (scan_xcoff_symtab): Initialize next_symbol_text_func.
  3687. (Committed by Jim Blandy)
  3688. For older changes see ChangeLog-2005.
  3689. Local Variables:
  3690. mode: change-log
  3691. left-margin: 8
  3692. fill-column: 74
  3693. version-control: never
  3694. End: