target-delegates.c 131 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538
  1. /* *INDENT-OFF* */ /* THIS FILE IS GENERATED -*- buffer-read-only: t -*- */
  2. /* vi:set ro: */
  3. /* Boilerplate target methods for GDB
  4. Copyright (C) 2013-2022 Free Software Foundation, Inc.
  5. This file is part of GDB.
  6. This program is free software; you can redistribute it and/or modify
  7. it under the terms of the GNU General Public License as published by
  8. the Free Software Foundation; either version 3 of the License, or
  9. (at your option) any later version.
  10. This program is distributed in the hope that it will be useful,
  11. but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. GNU General Public License for more details.
  14. You should have received a copy of the GNU General Public License
  15. along with this program. If not, see <http://www.gnu.org/licenses/>. */
  16. /* To regenerate this file, run:
  17. ./make-target-delegates.py
  18. */
  19. struct dummy_target : public target_ops
  20. {
  21. const target_info &info () const override;
  22. strata stratum () const override;
  23. void post_attach (int arg0) override;
  24. void detach (inferior *arg0, int arg1) override;
  25. void disconnect (const char *arg0, int arg1) override;
  26. void resume (ptid_t arg0, int arg1, enum gdb_signal arg2) override;
  27. void commit_resumed () override;
  28. ptid_t wait (ptid_t arg0, struct target_waitstatus *arg1, target_wait_flags arg2) override;
  29. void fetch_registers (struct regcache *arg0, int arg1) override;
  30. void store_registers (struct regcache *arg0, int arg1) override;
  31. void prepare_to_store (struct regcache *arg0) override;
  32. void files_info () override;
  33. int insert_breakpoint (struct gdbarch *arg0, struct bp_target_info *arg1) override;
  34. int remove_breakpoint (struct gdbarch *arg0, struct bp_target_info *arg1, enum remove_bp_reason arg2) override;
  35. bool stopped_by_sw_breakpoint () override;
  36. bool supports_stopped_by_sw_breakpoint () override;
  37. bool stopped_by_hw_breakpoint () override;
  38. bool supports_stopped_by_hw_breakpoint () override;
  39. int can_use_hw_breakpoint (enum bptype arg0, int arg1, int arg2) override;
  40. int ranged_break_num_registers () override;
  41. int insert_hw_breakpoint (struct gdbarch *arg0, struct bp_target_info *arg1) override;
  42. int remove_hw_breakpoint (struct gdbarch *arg0, struct bp_target_info *arg1) override;
  43. int remove_watchpoint (CORE_ADDR arg0, int arg1, enum target_hw_bp_type arg2, struct expression *arg3) override;
  44. int insert_watchpoint (CORE_ADDR arg0, int arg1, enum target_hw_bp_type arg2, struct expression *arg3) override;
  45. int insert_mask_watchpoint (CORE_ADDR arg0, CORE_ADDR arg1, enum target_hw_bp_type arg2) override;
  46. int remove_mask_watchpoint (CORE_ADDR arg0, CORE_ADDR arg1, enum target_hw_bp_type arg2) override;
  47. bool stopped_by_watchpoint () override;
  48. bool have_steppable_watchpoint () override;
  49. bool stopped_data_address (CORE_ADDR *arg0) override;
  50. bool watchpoint_addr_within_range (CORE_ADDR arg0, CORE_ADDR arg1, int arg2) override;
  51. int region_ok_for_hw_watchpoint (CORE_ADDR arg0, int arg1) override;
  52. bool can_accel_watchpoint_condition (CORE_ADDR arg0, int arg1, int arg2, struct expression *arg3) override;
  53. int masked_watch_num_registers (CORE_ADDR arg0, CORE_ADDR arg1) override;
  54. int can_do_single_step () override;
  55. bool supports_terminal_ours () override;
  56. void terminal_init () override;
  57. void terminal_inferior () override;
  58. void terminal_save_inferior () override;
  59. void terminal_ours_for_output () override;
  60. void terminal_ours () override;
  61. void terminal_info (const char *arg0, int arg1) override;
  62. void kill () override;
  63. void load (const char *arg0, int arg1) override;
  64. int insert_fork_catchpoint (int arg0) override;
  65. int remove_fork_catchpoint (int arg0) override;
  66. int insert_vfork_catchpoint (int arg0) override;
  67. int remove_vfork_catchpoint (int arg0) override;
  68. void follow_fork (inferior *arg0, ptid_t arg1, target_waitkind arg2, bool arg3, bool arg4) override;
  69. int insert_exec_catchpoint (int arg0) override;
  70. int remove_exec_catchpoint (int arg0) override;
  71. void follow_exec (inferior *arg0, ptid_t arg1, const char *arg2) override;
  72. int set_syscall_catchpoint (int arg0, bool arg1, int arg2, gdb::array_view<const int> arg3) override;
  73. void mourn_inferior () override;
  74. void pass_signals (gdb::array_view<const unsigned char> arg0) override;
  75. void program_signals (gdb::array_view<const unsigned char> arg0) override;
  76. bool thread_alive (ptid_t arg0) override;
  77. void update_thread_list () override;
  78. std::string pid_to_str (ptid_t arg0) override;
  79. const char *extra_thread_info (thread_info *arg0) override;
  80. const char *thread_name (thread_info *arg0) override;
  81. thread_info *thread_handle_to_thread_info (const gdb_byte *arg0, int arg1, inferior *arg2) override;
  82. gdb::byte_vector thread_info_to_thread_handle (struct thread_info *arg0) override;
  83. void stop (ptid_t arg0) override;
  84. void interrupt () override;
  85. void pass_ctrlc () override;
  86. void rcmd (const char *arg0, struct ui_file *arg1) override;
  87. char *pid_to_exec_file (int arg0) override;
  88. void log_command (const char *arg0) override;
  89. const target_section_table *get_section_table () override;
  90. thread_control_capabilities get_thread_control_capabilities () override;
  91. bool attach_no_wait () override;
  92. bool can_async_p () override;
  93. bool is_async_p () override;
  94. void async (int arg0) override;
  95. int async_wait_fd () override;
  96. bool has_pending_events () override;
  97. void thread_events (int arg0) override;
  98. bool supports_non_stop () override;
  99. bool always_non_stop_p () override;
  100. int find_memory_regions (find_memory_region_ftype arg0, void *arg1) override;
  101. gdb::unique_xmalloc_ptr<char> make_corefile_notes (bfd *arg0, int *arg1) override;
  102. gdb_byte *get_bookmark (const char *arg0, int arg1) override;
  103. void goto_bookmark (const gdb_byte *arg0, int arg1) override;
  104. CORE_ADDR get_thread_local_address (ptid_t arg0, CORE_ADDR arg1, CORE_ADDR arg2) override;
  105. enum target_xfer_status xfer_partial (enum target_object arg0, const char *arg1, gdb_byte *arg2, const gdb_byte *arg3, ULONGEST arg4, ULONGEST arg5, ULONGEST *arg6) override;
  106. ULONGEST get_memory_xfer_limit () override;
  107. std::vector<mem_region> memory_map () override;
  108. void flash_erase (ULONGEST arg0, LONGEST arg1) override;
  109. void flash_done () override;
  110. const struct target_desc *read_description () override;
  111. ptid_t get_ada_task_ptid (long arg0, ULONGEST arg1) override;
  112. int auxv_parse (gdb_byte **arg0, gdb_byte *arg1, CORE_ADDR *arg2, CORE_ADDR *arg3) override;
  113. int search_memory (CORE_ADDR arg0, ULONGEST arg1, const gdb_byte *arg2, ULONGEST arg3, CORE_ADDR *arg4) override;
  114. bool can_execute_reverse () override;
  115. enum exec_direction_kind execution_direction () override;
  116. bool supports_multi_process () override;
  117. bool supports_enable_disable_tracepoint () override;
  118. bool supports_disable_randomization () override;
  119. bool supports_string_tracing () override;
  120. bool supports_evaluation_of_breakpoint_conditions () override;
  121. bool supports_dumpcore () override;
  122. void dumpcore (const char *arg0) override;
  123. bool can_run_breakpoint_commands () override;
  124. struct gdbarch *thread_architecture (ptid_t arg0) override;
  125. struct address_space *thread_address_space (ptid_t arg0) override;
  126. bool filesystem_is_local () override;
  127. void trace_init () override;
  128. void download_tracepoint (struct bp_location *arg0) override;
  129. bool can_download_tracepoint () override;
  130. void download_trace_state_variable (const trace_state_variable &arg0) override;
  131. void enable_tracepoint (struct bp_location *arg0) override;
  132. void disable_tracepoint (struct bp_location *arg0) override;
  133. void trace_set_readonly_regions () override;
  134. void trace_start () override;
  135. int get_trace_status (struct trace_status *arg0) override;
  136. void get_tracepoint_status (struct breakpoint *arg0, struct uploaded_tp *arg1) override;
  137. void trace_stop () override;
  138. int trace_find (enum trace_find_type arg0, int arg1, CORE_ADDR arg2, CORE_ADDR arg3, int *arg4) override;
  139. bool get_trace_state_variable_value (int arg0, LONGEST *arg1) override;
  140. int save_trace_data (const char *arg0) override;
  141. int upload_tracepoints (struct uploaded_tp **arg0) override;
  142. int upload_trace_state_variables (struct uploaded_tsv **arg0) override;
  143. LONGEST get_raw_trace_data (gdb_byte *arg0, ULONGEST arg1, LONGEST arg2) override;
  144. int get_min_fast_tracepoint_insn_len () override;
  145. void set_disconnected_tracing (int arg0) override;
  146. void set_circular_trace_buffer (int arg0) override;
  147. void set_trace_buffer_size (LONGEST arg0) override;
  148. bool set_trace_notes (const char *arg0, const char *arg1, const char *arg2) override;
  149. int core_of_thread (ptid_t arg0) override;
  150. int verify_memory (const gdb_byte *arg0, CORE_ADDR arg1, ULONGEST arg2) override;
  151. bool get_tib_address (ptid_t arg0, CORE_ADDR *arg1) override;
  152. void set_permissions () override;
  153. bool static_tracepoint_marker_at (CORE_ADDR arg0, static_tracepoint_marker *arg1) override;
  154. std::vector<static_tracepoint_marker> static_tracepoint_markers_by_strid (const char *arg0) override;
  155. traceframe_info_up traceframe_info () override;
  156. bool use_agent (bool arg0) override;
  157. bool can_use_agent () override;
  158. struct btrace_target_info *enable_btrace (thread_info *arg0, const struct btrace_config *arg1) override;
  159. void disable_btrace (struct btrace_target_info *arg0) override;
  160. void teardown_btrace (struct btrace_target_info *arg0) override;
  161. enum btrace_error read_btrace (struct btrace_data *arg0, struct btrace_target_info *arg1, enum btrace_read_type arg2) override;
  162. const struct btrace_config *btrace_conf (const struct btrace_target_info *arg0) override;
  163. enum record_method record_method (ptid_t arg0) override;
  164. void stop_recording () override;
  165. void info_record () override;
  166. void save_record (const char *arg0) override;
  167. bool supports_delete_record () override;
  168. void delete_record () override;
  169. bool record_is_replaying (ptid_t arg0) override;
  170. bool record_will_replay (ptid_t arg0, int arg1) override;
  171. void record_stop_replaying () override;
  172. void goto_record_begin () override;
  173. void goto_record_end () override;
  174. void goto_record (ULONGEST arg0) override;
  175. void insn_history (int arg0, gdb_disassembly_flags arg1) override;
  176. void insn_history_from (ULONGEST arg0, int arg1, gdb_disassembly_flags arg2) override;
  177. void insn_history_range (ULONGEST arg0, ULONGEST arg1, gdb_disassembly_flags arg2) override;
  178. void call_history (int arg0, record_print_flags arg1) override;
  179. void call_history_from (ULONGEST arg0, int arg1, record_print_flags arg2) override;
  180. void call_history_range (ULONGEST arg0, ULONGEST arg1, record_print_flags arg2) override;
  181. bool augmented_libraries_svr4_read () override;
  182. const struct frame_unwind *get_unwinder () override;
  183. const struct frame_unwind *get_tailcall_unwinder () override;
  184. void prepare_to_generate_core () override;
  185. void done_generating_core () override;
  186. bool supports_memory_tagging () override;
  187. bool fetch_memtags (CORE_ADDR arg0, size_t arg1, gdb::byte_vector &arg2, int arg3) override;
  188. bool store_memtags (CORE_ADDR arg0, size_t arg1, const gdb::byte_vector &arg2, int arg3) override;
  189. };
  190. struct debug_target : public target_ops
  191. {
  192. const target_info &info () const override;
  193. strata stratum () const override;
  194. void post_attach (int arg0) override;
  195. void detach (inferior *arg0, int arg1) override;
  196. void disconnect (const char *arg0, int arg1) override;
  197. void resume (ptid_t arg0, int arg1, enum gdb_signal arg2) override;
  198. void commit_resumed () override;
  199. ptid_t wait (ptid_t arg0, struct target_waitstatus *arg1, target_wait_flags arg2) override;
  200. void fetch_registers (struct regcache *arg0, int arg1) override;
  201. void store_registers (struct regcache *arg0, int arg1) override;
  202. void prepare_to_store (struct regcache *arg0) override;
  203. void files_info () override;
  204. int insert_breakpoint (struct gdbarch *arg0, struct bp_target_info *arg1) override;
  205. int remove_breakpoint (struct gdbarch *arg0, struct bp_target_info *arg1, enum remove_bp_reason arg2) override;
  206. bool stopped_by_sw_breakpoint () override;
  207. bool supports_stopped_by_sw_breakpoint () override;
  208. bool stopped_by_hw_breakpoint () override;
  209. bool supports_stopped_by_hw_breakpoint () override;
  210. int can_use_hw_breakpoint (enum bptype arg0, int arg1, int arg2) override;
  211. int ranged_break_num_registers () override;
  212. int insert_hw_breakpoint (struct gdbarch *arg0, struct bp_target_info *arg1) override;
  213. int remove_hw_breakpoint (struct gdbarch *arg0, struct bp_target_info *arg1) override;
  214. int remove_watchpoint (CORE_ADDR arg0, int arg1, enum target_hw_bp_type arg2, struct expression *arg3) override;
  215. int insert_watchpoint (CORE_ADDR arg0, int arg1, enum target_hw_bp_type arg2, struct expression *arg3) override;
  216. int insert_mask_watchpoint (CORE_ADDR arg0, CORE_ADDR arg1, enum target_hw_bp_type arg2) override;
  217. int remove_mask_watchpoint (CORE_ADDR arg0, CORE_ADDR arg1, enum target_hw_bp_type arg2) override;
  218. bool stopped_by_watchpoint () override;
  219. bool have_steppable_watchpoint () override;
  220. bool stopped_data_address (CORE_ADDR *arg0) override;
  221. bool watchpoint_addr_within_range (CORE_ADDR arg0, CORE_ADDR arg1, int arg2) override;
  222. int region_ok_for_hw_watchpoint (CORE_ADDR arg0, int arg1) override;
  223. bool can_accel_watchpoint_condition (CORE_ADDR arg0, int arg1, int arg2, struct expression *arg3) override;
  224. int masked_watch_num_registers (CORE_ADDR arg0, CORE_ADDR arg1) override;
  225. int can_do_single_step () override;
  226. bool supports_terminal_ours () override;
  227. void terminal_init () override;
  228. void terminal_inferior () override;
  229. void terminal_save_inferior () override;
  230. void terminal_ours_for_output () override;
  231. void terminal_ours () override;
  232. void terminal_info (const char *arg0, int arg1) override;
  233. void kill () override;
  234. void load (const char *arg0, int arg1) override;
  235. int insert_fork_catchpoint (int arg0) override;
  236. int remove_fork_catchpoint (int arg0) override;
  237. int insert_vfork_catchpoint (int arg0) override;
  238. int remove_vfork_catchpoint (int arg0) override;
  239. void follow_fork (inferior *arg0, ptid_t arg1, target_waitkind arg2, bool arg3, bool arg4) override;
  240. int insert_exec_catchpoint (int arg0) override;
  241. int remove_exec_catchpoint (int arg0) override;
  242. void follow_exec (inferior *arg0, ptid_t arg1, const char *arg2) override;
  243. int set_syscall_catchpoint (int arg0, bool arg1, int arg2, gdb::array_view<const int> arg3) override;
  244. void mourn_inferior () override;
  245. void pass_signals (gdb::array_view<const unsigned char> arg0) override;
  246. void program_signals (gdb::array_view<const unsigned char> arg0) override;
  247. bool thread_alive (ptid_t arg0) override;
  248. void update_thread_list () override;
  249. std::string pid_to_str (ptid_t arg0) override;
  250. const char *extra_thread_info (thread_info *arg0) override;
  251. const char *thread_name (thread_info *arg0) override;
  252. thread_info *thread_handle_to_thread_info (const gdb_byte *arg0, int arg1, inferior *arg2) override;
  253. gdb::byte_vector thread_info_to_thread_handle (struct thread_info *arg0) override;
  254. void stop (ptid_t arg0) override;
  255. void interrupt () override;
  256. void pass_ctrlc () override;
  257. void rcmd (const char *arg0, struct ui_file *arg1) override;
  258. char *pid_to_exec_file (int arg0) override;
  259. void log_command (const char *arg0) override;
  260. const target_section_table *get_section_table () override;
  261. thread_control_capabilities get_thread_control_capabilities () override;
  262. bool attach_no_wait () override;
  263. bool can_async_p () override;
  264. bool is_async_p () override;
  265. void async (int arg0) override;
  266. int async_wait_fd () override;
  267. bool has_pending_events () override;
  268. void thread_events (int arg0) override;
  269. bool supports_non_stop () override;
  270. bool always_non_stop_p () override;
  271. int find_memory_regions (find_memory_region_ftype arg0, void *arg1) override;
  272. gdb::unique_xmalloc_ptr<char> make_corefile_notes (bfd *arg0, int *arg1) override;
  273. gdb_byte *get_bookmark (const char *arg0, int arg1) override;
  274. void goto_bookmark (const gdb_byte *arg0, int arg1) override;
  275. CORE_ADDR get_thread_local_address (ptid_t arg0, CORE_ADDR arg1, CORE_ADDR arg2) override;
  276. enum target_xfer_status xfer_partial (enum target_object arg0, const char *arg1, gdb_byte *arg2, const gdb_byte *arg3, ULONGEST arg4, ULONGEST arg5, ULONGEST *arg6) override;
  277. ULONGEST get_memory_xfer_limit () override;
  278. std::vector<mem_region> memory_map () override;
  279. void flash_erase (ULONGEST arg0, LONGEST arg1) override;
  280. void flash_done () override;
  281. const struct target_desc *read_description () override;
  282. ptid_t get_ada_task_ptid (long arg0, ULONGEST arg1) override;
  283. int auxv_parse (gdb_byte **arg0, gdb_byte *arg1, CORE_ADDR *arg2, CORE_ADDR *arg3) override;
  284. int search_memory (CORE_ADDR arg0, ULONGEST arg1, const gdb_byte *arg2, ULONGEST arg3, CORE_ADDR *arg4) override;
  285. bool can_execute_reverse () override;
  286. enum exec_direction_kind execution_direction () override;
  287. bool supports_multi_process () override;
  288. bool supports_enable_disable_tracepoint () override;
  289. bool supports_disable_randomization () override;
  290. bool supports_string_tracing () override;
  291. bool supports_evaluation_of_breakpoint_conditions () override;
  292. bool supports_dumpcore () override;
  293. void dumpcore (const char *arg0) override;
  294. bool can_run_breakpoint_commands () override;
  295. struct gdbarch *thread_architecture (ptid_t arg0) override;
  296. struct address_space *thread_address_space (ptid_t arg0) override;
  297. bool filesystem_is_local () override;
  298. void trace_init () override;
  299. void download_tracepoint (struct bp_location *arg0) override;
  300. bool can_download_tracepoint () override;
  301. void download_trace_state_variable (const trace_state_variable &arg0) override;
  302. void enable_tracepoint (struct bp_location *arg0) override;
  303. void disable_tracepoint (struct bp_location *arg0) override;
  304. void trace_set_readonly_regions () override;
  305. void trace_start () override;
  306. int get_trace_status (struct trace_status *arg0) override;
  307. void get_tracepoint_status (struct breakpoint *arg0, struct uploaded_tp *arg1) override;
  308. void trace_stop () override;
  309. int trace_find (enum trace_find_type arg0, int arg1, CORE_ADDR arg2, CORE_ADDR arg3, int *arg4) override;
  310. bool get_trace_state_variable_value (int arg0, LONGEST *arg1) override;
  311. int save_trace_data (const char *arg0) override;
  312. int upload_tracepoints (struct uploaded_tp **arg0) override;
  313. int upload_trace_state_variables (struct uploaded_tsv **arg0) override;
  314. LONGEST get_raw_trace_data (gdb_byte *arg0, ULONGEST arg1, LONGEST arg2) override;
  315. int get_min_fast_tracepoint_insn_len () override;
  316. void set_disconnected_tracing (int arg0) override;
  317. void set_circular_trace_buffer (int arg0) override;
  318. void set_trace_buffer_size (LONGEST arg0) override;
  319. bool set_trace_notes (const char *arg0, const char *arg1, const char *arg2) override;
  320. int core_of_thread (ptid_t arg0) override;
  321. int verify_memory (const gdb_byte *arg0, CORE_ADDR arg1, ULONGEST arg2) override;
  322. bool get_tib_address (ptid_t arg0, CORE_ADDR *arg1) override;
  323. void set_permissions () override;
  324. bool static_tracepoint_marker_at (CORE_ADDR arg0, static_tracepoint_marker *arg1) override;
  325. std::vector<static_tracepoint_marker> static_tracepoint_markers_by_strid (const char *arg0) override;
  326. traceframe_info_up traceframe_info () override;
  327. bool use_agent (bool arg0) override;
  328. bool can_use_agent () override;
  329. struct btrace_target_info *enable_btrace (thread_info *arg0, const struct btrace_config *arg1) override;
  330. void disable_btrace (struct btrace_target_info *arg0) override;
  331. void teardown_btrace (struct btrace_target_info *arg0) override;
  332. enum btrace_error read_btrace (struct btrace_data *arg0, struct btrace_target_info *arg1, enum btrace_read_type arg2) override;
  333. const struct btrace_config *btrace_conf (const struct btrace_target_info *arg0) override;
  334. enum record_method record_method (ptid_t arg0) override;
  335. void stop_recording () override;
  336. void info_record () override;
  337. void save_record (const char *arg0) override;
  338. bool supports_delete_record () override;
  339. void delete_record () override;
  340. bool record_is_replaying (ptid_t arg0) override;
  341. bool record_will_replay (ptid_t arg0, int arg1) override;
  342. void record_stop_replaying () override;
  343. void goto_record_begin () override;
  344. void goto_record_end () override;
  345. void goto_record (ULONGEST arg0) override;
  346. void insn_history (int arg0, gdb_disassembly_flags arg1) override;
  347. void insn_history_from (ULONGEST arg0, int arg1, gdb_disassembly_flags arg2) override;
  348. void insn_history_range (ULONGEST arg0, ULONGEST arg1, gdb_disassembly_flags arg2) override;
  349. void call_history (int arg0, record_print_flags arg1) override;
  350. void call_history_from (ULONGEST arg0, int arg1, record_print_flags arg2) override;
  351. void call_history_range (ULONGEST arg0, ULONGEST arg1, record_print_flags arg2) override;
  352. bool augmented_libraries_svr4_read () override;
  353. const struct frame_unwind *get_unwinder () override;
  354. const struct frame_unwind *get_tailcall_unwinder () override;
  355. void prepare_to_generate_core () override;
  356. void done_generating_core () override;
  357. bool supports_memory_tagging () override;
  358. bool fetch_memtags (CORE_ADDR arg0, size_t arg1, gdb::byte_vector &arg2, int arg3) override;
  359. bool store_memtags (CORE_ADDR arg0, size_t arg1, const gdb::byte_vector &arg2, int arg3) override;
  360. };
  361. void
  362. target_ops::post_attach (int arg0)
  363. {
  364. this->beneath ()->post_attach (arg0);
  365. }
  366. void
  367. dummy_target::post_attach (int arg0)
  368. {
  369. }
  370. void
  371. debug_target::post_attach (int arg0)
  372. {
  373. gdb_printf (gdb_stdlog, "-> %s->post_attach (...)\n", this->beneath ()->shortname ());
  374. this->beneath ()->post_attach (arg0);
  375. gdb_printf (gdb_stdlog, "<- %s->post_attach (", this->beneath ()->shortname ());
  376. target_debug_print_int (arg0);
  377. gdb_puts (")\n", gdb_stdlog);
  378. }
  379. void
  380. target_ops::detach (inferior *arg0, int arg1)
  381. {
  382. this->beneath ()->detach (arg0, arg1);
  383. }
  384. void
  385. dummy_target::detach (inferior *arg0, int arg1)
  386. {
  387. }
  388. void
  389. debug_target::detach (inferior *arg0, int arg1)
  390. {
  391. gdb_printf (gdb_stdlog, "-> %s->detach (...)\n", this->beneath ()->shortname ());
  392. this->beneath ()->detach (arg0, arg1);
  393. gdb_printf (gdb_stdlog, "<- %s->detach (", this->beneath ()->shortname ());
  394. target_debug_print_inferior_p (arg0);
  395. gdb_puts (", ", gdb_stdlog);
  396. target_debug_print_int (arg1);
  397. gdb_puts (")\n", gdb_stdlog);
  398. }
  399. void
  400. target_ops::disconnect (const char *arg0, int arg1)
  401. {
  402. this->beneath ()->disconnect (arg0, arg1);
  403. }
  404. void
  405. dummy_target::disconnect (const char *arg0, int arg1)
  406. {
  407. tcomplain ();
  408. }
  409. void
  410. debug_target::disconnect (const char *arg0, int arg1)
  411. {
  412. gdb_printf (gdb_stdlog, "-> %s->disconnect (...)\n", this->beneath ()->shortname ());
  413. this->beneath ()->disconnect (arg0, arg1);
  414. gdb_printf (gdb_stdlog, "<- %s->disconnect (", this->beneath ()->shortname ());
  415. target_debug_print_const_char_p (arg0);
  416. gdb_puts (", ", gdb_stdlog);
  417. target_debug_print_int (arg1);
  418. gdb_puts (")\n", gdb_stdlog);
  419. }
  420. void
  421. target_ops::resume (ptid_t arg0, int arg1, enum gdb_signal arg2)
  422. {
  423. this->beneath ()->resume (arg0, arg1, arg2);
  424. }
  425. void
  426. dummy_target::resume (ptid_t arg0, int arg1, enum gdb_signal arg2)
  427. {
  428. noprocess ();
  429. }
  430. void
  431. debug_target::resume (ptid_t arg0, int arg1, enum gdb_signal arg2)
  432. {
  433. gdb_printf (gdb_stdlog, "-> %s->resume (...)\n", this->beneath ()->shortname ());
  434. this->beneath ()->resume (arg0, arg1, arg2);
  435. gdb_printf (gdb_stdlog, "<- %s->resume (", this->beneath ()->shortname ());
  436. target_debug_print_ptid_t (arg0);
  437. gdb_puts (", ", gdb_stdlog);
  438. target_debug_print_step (arg1);
  439. gdb_puts (", ", gdb_stdlog);
  440. target_debug_print_enum_gdb_signal (arg2);
  441. gdb_puts (")\n", gdb_stdlog);
  442. }
  443. void
  444. target_ops::commit_resumed ()
  445. {
  446. this->beneath ()->commit_resumed ();
  447. }
  448. void
  449. dummy_target::commit_resumed ()
  450. {
  451. }
  452. void
  453. debug_target::commit_resumed ()
  454. {
  455. gdb_printf (gdb_stdlog, "-> %s->commit_resumed (...)\n", this->beneath ()->shortname ());
  456. this->beneath ()->commit_resumed ();
  457. gdb_printf (gdb_stdlog, "<- %s->commit_resumed (", this->beneath ()->shortname ());
  458. gdb_puts (")\n", gdb_stdlog);
  459. }
  460. ptid_t
  461. target_ops::wait (ptid_t arg0, struct target_waitstatus *arg1, target_wait_flags arg2)
  462. {
  463. return this->beneath ()->wait (arg0, arg1, arg2);
  464. }
  465. ptid_t
  466. dummy_target::wait (ptid_t arg0, struct target_waitstatus *arg1, target_wait_flags arg2)
  467. {
  468. return default_target_wait (this, arg0, arg1, arg2);
  469. }
  470. ptid_t
  471. debug_target::wait (ptid_t arg0, struct target_waitstatus *arg1, target_wait_flags arg2)
  472. {
  473. ptid_t result;
  474. gdb_printf (gdb_stdlog, "-> %s->wait (...)\n", this->beneath ()->shortname ());
  475. result = this->beneath ()->wait (arg0, arg1, arg2);
  476. gdb_printf (gdb_stdlog, "<- %s->wait (", this->beneath ()->shortname ());
  477. target_debug_print_ptid_t (arg0);
  478. gdb_puts (", ", gdb_stdlog);
  479. target_debug_print_struct_target_waitstatus_p (arg1);
  480. gdb_puts (", ", gdb_stdlog);
  481. target_debug_print_target_wait_flags (arg2);
  482. gdb_puts (") = ", gdb_stdlog);
  483. target_debug_print_ptid_t (result);
  484. gdb_puts ("\n", gdb_stdlog);
  485. return result;
  486. }
  487. void
  488. target_ops::fetch_registers (struct regcache *arg0, int arg1)
  489. {
  490. this->beneath ()->fetch_registers (arg0, arg1);
  491. }
  492. void
  493. dummy_target::fetch_registers (struct regcache *arg0, int arg1)
  494. {
  495. }
  496. void
  497. debug_target::fetch_registers (struct regcache *arg0, int arg1)
  498. {
  499. gdb_printf (gdb_stdlog, "-> %s->fetch_registers (...)\n", this->beneath ()->shortname ());
  500. this->beneath ()->fetch_registers (arg0, arg1);
  501. gdb_printf (gdb_stdlog, "<- %s->fetch_registers (", this->beneath ()->shortname ());
  502. target_debug_print_struct_regcache_p (arg0);
  503. gdb_puts (", ", gdb_stdlog);
  504. target_debug_print_int (arg1);
  505. gdb_puts (")\n", gdb_stdlog);
  506. }
  507. void
  508. target_ops::store_registers (struct regcache *arg0, int arg1)
  509. {
  510. this->beneath ()->store_registers (arg0, arg1);
  511. }
  512. void
  513. dummy_target::store_registers (struct regcache *arg0, int arg1)
  514. {
  515. noprocess ();
  516. }
  517. void
  518. debug_target::store_registers (struct regcache *arg0, int arg1)
  519. {
  520. gdb_printf (gdb_stdlog, "-> %s->store_registers (...)\n", this->beneath ()->shortname ());
  521. this->beneath ()->store_registers (arg0, arg1);
  522. gdb_printf (gdb_stdlog, "<- %s->store_registers (", this->beneath ()->shortname ());
  523. target_debug_print_struct_regcache_p (arg0);
  524. gdb_puts (", ", gdb_stdlog);
  525. target_debug_print_int (arg1);
  526. gdb_puts (")\n", gdb_stdlog);
  527. }
  528. void
  529. target_ops::prepare_to_store (struct regcache *arg0)
  530. {
  531. this->beneath ()->prepare_to_store (arg0);
  532. }
  533. void
  534. dummy_target::prepare_to_store (struct regcache *arg0)
  535. {
  536. noprocess ();
  537. }
  538. void
  539. debug_target::prepare_to_store (struct regcache *arg0)
  540. {
  541. gdb_printf (gdb_stdlog, "-> %s->prepare_to_store (...)\n", this->beneath ()->shortname ());
  542. this->beneath ()->prepare_to_store (arg0);
  543. gdb_printf (gdb_stdlog, "<- %s->prepare_to_store (", this->beneath ()->shortname ());
  544. target_debug_print_struct_regcache_p (arg0);
  545. gdb_puts (")\n", gdb_stdlog);
  546. }
  547. void
  548. target_ops::files_info ()
  549. {
  550. this->beneath ()->files_info ();
  551. }
  552. void
  553. dummy_target::files_info ()
  554. {
  555. }
  556. void
  557. debug_target::files_info ()
  558. {
  559. gdb_printf (gdb_stdlog, "-> %s->files_info (...)\n", this->beneath ()->shortname ());
  560. this->beneath ()->files_info ();
  561. gdb_printf (gdb_stdlog, "<- %s->files_info (", this->beneath ()->shortname ());
  562. gdb_puts (")\n", gdb_stdlog);
  563. }
  564. int
  565. target_ops::insert_breakpoint (struct gdbarch *arg0, struct bp_target_info *arg1)
  566. {
  567. return this->beneath ()->insert_breakpoint (arg0, arg1);
  568. }
  569. int
  570. dummy_target::insert_breakpoint (struct gdbarch *arg0, struct bp_target_info *arg1)
  571. {
  572. noprocess ();
  573. }
  574. int
  575. debug_target::insert_breakpoint (struct gdbarch *arg0, struct bp_target_info *arg1)
  576. {
  577. int result;
  578. gdb_printf (gdb_stdlog, "-> %s->insert_breakpoint (...)\n", this->beneath ()->shortname ());
  579. result = this->beneath ()->insert_breakpoint (arg0, arg1);
  580. gdb_printf (gdb_stdlog, "<- %s->insert_breakpoint (", this->beneath ()->shortname ());
  581. target_debug_print_struct_gdbarch_p (arg0);
  582. gdb_puts (", ", gdb_stdlog);
  583. target_debug_print_struct_bp_target_info_p (arg1);
  584. gdb_puts (") = ", gdb_stdlog);
  585. target_debug_print_int (result);
  586. gdb_puts ("\n", gdb_stdlog);
  587. return result;
  588. }
  589. int
  590. target_ops::remove_breakpoint (struct gdbarch *arg0, struct bp_target_info *arg1, enum remove_bp_reason arg2)
  591. {
  592. return this->beneath ()->remove_breakpoint (arg0, arg1, arg2);
  593. }
  594. int
  595. dummy_target::remove_breakpoint (struct gdbarch *arg0, struct bp_target_info *arg1, enum remove_bp_reason arg2)
  596. {
  597. noprocess ();
  598. }
  599. int
  600. debug_target::remove_breakpoint (struct gdbarch *arg0, struct bp_target_info *arg1, enum remove_bp_reason arg2)
  601. {
  602. int result;
  603. gdb_printf (gdb_stdlog, "-> %s->remove_breakpoint (...)\n", this->beneath ()->shortname ());
  604. result = this->beneath ()->remove_breakpoint (arg0, arg1, arg2);
  605. gdb_printf (gdb_stdlog, "<- %s->remove_breakpoint (", this->beneath ()->shortname ());
  606. target_debug_print_struct_gdbarch_p (arg0);
  607. gdb_puts (", ", gdb_stdlog);
  608. target_debug_print_struct_bp_target_info_p (arg1);
  609. gdb_puts (", ", gdb_stdlog);
  610. target_debug_print_enum_remove_bp_reason (arg2);
  611. gdb_puts (") = ", gdb_stdlog);
  612. target_debug_print_int (result);
  613. gdb_puts ("\n", gdb_stdlog);
  614. return result;
  615. }
  616. bool
  617. target_ops::stopped_by_sw_breakpoint ()
  618. {
  619. return this->beneath ()->stopped_by_sw_breakpoint ();
  620. }
  621. bool
  622. dummy_target::stopped_by_sw_breakpoint ()
  623. {
  624. return false;
  625. }
  626. bool
  627. debug_target::stopped_by_sw_breakpoint ()
  628. {
  629. bool result;
  630. gdb_printf (gdb_stdlog, "-> %s->stopped_by_sw_breakpoint (...)\n", this->beneath ()->shortname ());
  631. result = this->beneath ()->stopped_by_sw_breakpoint ();
  632. gdb_printf (gdb_stdlog, "<- %s->stopped_by_sw_breakpoint (", this->beneath ()->shortname ());
  633. gdb_puts (") = ", gdb_stdlog);
  634. target_debug_print_bool (result);
  635. gdb_puts ("\n", gdb_stdlog);
  636. return result;
  637. }
  638. bool
  639. target_ops::supports_stopped_by_sw_breakpoint ()
  640. {
  641. return this->beneath ()->supports_stopped_by_sw_breakpoint ();
  642. }
  643. bool
  644. dummy_target::supports_stopped_by_sw_breakpoint ()
  645. {
  646. return false;
  647. }
  648. bool
  649. debug_target::supports_stopped_by_sw_breakpoint ()
  650. {
  651. bool result;
  652. gdb_printf (gdb_stdlog, "-> %s->supports_stopped_by_sw_breakpoint (...)\n", this->beneath ()->shortname ());
  653. result = this->beneath ()->supports_stopped_by_sw_breakpoint ();
  654. gdb_printf (gdb_stdlog, "<- %s->supports_stopped_by_sw_breakpoint (", this->beneath ()->shortname ());
  655. gdb_puts (") = ", gdb_stdlog);
  656. target_debug_print_bool (result);
  657. gdb_puts ("\n", gdb_stdlog);
  658. return result;
  659. }
  660. bool
  661. target_ops::stopped_by_hw_breakpoint ()
  662. {
  663. return this->beneath ()->stopped_by_hw_breakpoint ();
  664. }
  665. bool
  666. dummy_target::stopped_by_hw_breakpoint ()
  667. {
  668. return false;
  669. }
  670. bool
  671. debug_target::stopped_by_hw_breakpoint ()
  672. {
  673. bool result;
  674. gdb_printf (gdb_stdlog, "-> %s->stopped_by_hw_breakpoint (...)\n", this->beneath ()->shortname ());
  675. result = this->beneath ()->stopped_by_hw_breakpoint ();
  676. gdb_printf (gdb_stdlog, "<- %s->stopped_by_hw_breakpoint (", this->beneath ()->shortname ());
  677. gdb_puts (") = ", gdb_stdlog);
  678. target_debug_print_bool (result);
  679. gdb_puts ("\n", gdb_stdlog);
  680. return result;
  681. }
  682. bool
  683. target_ops::supports_stopped_by_hw_breakpoint ()
  684. {
  685. return this->beneath ()->supports_stopped_by_hw_breakpoint ();
  686. }
  687. bool
  688. dummy_target::supports_stopped_by_hw_breakpoint ()
  689. {
  690. return false;
  691. }
  692. bool
  693. debug_target::supports_stopped_by_hw_breakpoint ()
  694. {
  695. bool result;
  696. gdb_printf (gdb_stdlog, "-> %s->supports_stopped_by_hw_breakpoint (...)\n", this->beneath ()->shortname ());
  697. result = this->beneath ()->supports_stopped_by_hw_breakpoint ();
  698. gdb_printf (gdb_stdlog, "<- %s->supports_stopped_by_hw_breakpoint (", this->beneath ()->shortname ());
  699. gdb_puts (") = ", gdb_stdlog);
  700. target_debug_print_bool (result);
  701. gdb_puts ("\n", gdb_stdlog);
  702. return result;
  703. }
  704. int
  705. target_ops::can_use_hw_breakpoint (enum bptype arg0, int arg1, int arg2)
  706. {
  707. return this->beneath ()->can_use_hw_breakpoint (arg0, arg1, arg2);
  708. }
  709. int
  710. dummy_target::can_use_hw_breakpoint (enum bptype arg0, int arg1, int arg2)
  711. {
  712. return 0;
  713. }
  714. int
  715. debug_target::can_use_hw_breakpoint (enum bptype arg0, int arg1, int arg2)
  716. {
  717. int result;
  718. gdb_printf (gdb_stdlog, "-> %s->can_use_hw_breakpoint (...)\n", this->beneath ()->shortname ());
  719. result = this->beneath ()->can_use_hw_breakpoint (arg0, arg1, arg2);
  720. gdb_printf (gdb_stdlog, "<- %s->can_use_hw_breakpoint (", this->beneath ()->shortname ());
  721. target_debug_print_enum_bptype (arg0);
  722. gdb_puts (", ", gdb_stdlog);
  723. target_debug_print_int (arg1);
  724. gdb_puts (", ", gdb_stdlog);
  725. target_debug_print_int (arg2);
  726. gdb_puts (") = ", gdb_stdlog);
  727. target_debug_print_int (result);
  728. gdb_puts ("\n", gdb_stdlog);
  729. return result;
  730. }
  731. int
  732. target_ops::ranged_break_num_registers ()
  733. {
  734. return this->beneath ()->ranged_break_num_registers ();
  735. }
  736. int
  737. dummy_target::ranged_break_num_registers ()
  738. {
  739. return -1;
  740. }
  741. int
  742. debug_target::ranged_break_num_registers ()
  743. {
  744. int result;
  745. gdb_printf (gdb_stdlog, "-> %s->ranged_break_num_registers (...)\n", this->beneath ()->shortname ());
  746. result = this->beneath ()->ranged_break_num_registers ();
  747. gdb_printf (gdb_stdlog, "<- %s->ranged_break_num_registers (", this->beneath ()->shortname ());
  748. gdb_puts (") = ", gdb_stdlog);
  749. target_debug_print_int (result);
  750. gdb_puts ("\n", gdb_stdlog);
  751. return result;
  752. }
  753. int
  754. target_ops::insert_hw_breakpoint (struct gdbarch *arg0, struct bp_target_info *arg1)
  755. {
  756. return this->beneath ()->insert_hw_breakpoint (arg0, arg1);
  757. }
  758. int
  759. dummy_target::insert_hw_breakpoint (struct gdbarch *arg0, struct bp_target_info *arg1)
  760. {
  761. return -1;
  762. }
  763. int
  764. debug_target::insert_hw_breakpoint (struct gdbarch *arg0, struct bp_target_info *arg1)
  765. {
  766. int result;
  767. gdb_printf (gdb_stdlog, "-> %s->insert_hw_breakpoint (...)\n", this->beneath ()->shortname ());
  768. result = this->beneath ()->insert_hw_breakpoint (arg0, arg1);
  769. gdb_printf (gdb_stdlog, "<- %s->insert_hw_breakpoint (", this->beneath ()->shortname ());
  770. target_debug_print_struct_gdbarch_p (arg0);
  771. gdb_puts (", ", gdb_stdlog);
  772. target_debug_print_struct_bp_target_info_p (arg1);
  773. gdb_puts (") = ", gdb_stdlog);
  774. target_debug_print_int (result);
  775. gdb_puts ("\n", gdb_stdlog);
  776. return result;
  777. }
  778. int
  779. target_ops::remove_hw_breakpoint (struct gdbarch *arg0, struct bp_target_info *arg1)
  780. {
  781. return this->beneath ()->remove_hw_breakpoint (arg0, arg1);
  782. }
  783. int
  784. dummy_target::remove_hw_breakpoint (struct gdbarch *arg0, struct bp_target_info *arg1)
  785. {
  786. return -1;
  787. }
  788. int
  789. debug_target::remove_hw_breakpoint (struct gdbarch *arg0, struct bp_target_info *arg1)
  790. {
  791. int result;
  792. gdb_printf (gdb_stdlog, "-> %s->remove_hw_breakpoint (...)\n", this->beneath ()->shortname ());
  793. result = this->beneath ()->remove_hw_breakpoint (arg0, arg1);
  794. gdb_printf (gdb_stdlog, "<- %s->remove_hw_breakpoint (", this->beneath ()->shortname ());
  795. target_debug_print_struct_gdbarch_p (arg0);
  796. gdb_puts (", ", gdb_stdlog);
  797. target_debug_print_struct_bp_target_info_p (arg1);
  798. gdb_puts (") = ", gdb_stdlog);
  799. target_debug_print_int (result);
  800. gdb_puts ("\n", gdb_stdlog);
  801. return result;
  802. }
  803. int
  804. target_ops::remove_watchpoint (CORE_ADDR arg0, int arg1, enum target_hw_bp_type arg2, struct expression *arg3)
  805. {
  806. return this->beneath ()->remove_watchpoint (arg0, arg1, arg2, arg3);
  807. }
  808. int
  809. dummy_target::remove_watchpoint (CORE_ADDR arg0, int arg1, enum target_hw_bp_type arg2, struct expression *arg3)
  810. {
  811. return -1;
  812. }
  813. int
  814. debug_target::remove_watchpoint (CORE_ADDR arg0, int arg1, enum target_hw_bp_type arg2, struct expression *arg3)
  815. {
  816. int result;
  817. gdb_printf (gdb_stdlog, "-> %s->remove_watchpoint (...)\n", this->beneath ()->shortname ());
  818. result = this->beneath ()->remove_watchpoint (arg0, arg1, arg2, arg3);
  819. gdb_printf (gdb_stdlog, "<- %s->remove_watchpoint (", this->beneath ()->shortname ());
  820. target_debug_print_CORE_ADDR (arg0);
  821. gdb_puts (", ", gdb_stdlog);
  822. target_debug_print_int (arg1);
  823. gdb_puts (", ", gdb_stdlog);
  824. target_debug_print_enum_target_hw_bp_type (arg2);
  825. gdb_puts (", ", gdb_stdlog);
  826. target_debug_print_struct_expression_p (arg3);
  827. gdb_puts (") = ", gdb_stdlog);
  828. target_debug_print_int (result);
  829. gdb_puts ("\n", gdb_stdlog);
  830. return result;
  831. }
  832. int
  833. target_ops::insert_watchpoint (CORE_ADDR arg0, int arg1, enum target_hw_bp_type arg2, struct expression *arg3)
  834. {
  835. return this->beneath ()->insert_watchpoint (arg0, arg1, arg2, arg3);
  836. }
  837. int
  838. dummy_target::insert_watchpoint (CORE_ADDR arg0, int arg1, enum target_hw_bp_type arg2, struct expression *arg3)
  839. {
  840. return -1;
  841. }
  842. int
  843. debug_target::insert_watchpoint (CORE_ADDR arg0, int arg1, enum target_hw_bp_type arg2, struct expression *arg3)
  844. {
  845. int result;
  846. gdb_printf (gdb_stdlog, "-> %s->insert_watchpoint (...)\n", this->beneath ()->shortname ());
  847. result = this->beneath ()->insert_watchpoint (arg0, arg1, arg2, arg3);
  848. gdb_printf (gdb_stdlog, "<- %s->insert_watchpoint (", this->beneath ()->shortname ());
  849. target_debug_print_CORE_ADDR (arg0);
  850. gdb_puts (", ", gdb_stdlog);
  851. target_debug_print_int (arg1);
  852. gdb_puts (", ", gdb_stdlog);
  853. target_debug_print_enum_target_hw_bp_type (arg2);
  854. gdb_puts (", ", gdb_stdlog);
  855. target_debug_print_struct_expression_p (arg3);
  856. gdb_puts (") = ", gdb_stdlog);
  857. target_debug_print_int (result);
  858. gdb_puts ("\n", gdb_stdlog);
  859. return result;
  860. }
  861. int
  862. target_ops::insert_mask_watchpoint (CORE_ADDR arg0, CORE_ADDR arg1, enum target_hw_bp_type arg2)
  863. {
  864. return this->beneath ()->insert_mask_watchpoint (arg0, arg1, arg2);
  865. }
  866. int
  867. dummy_target::insert_mask_watchpoint (CORE_ADDR arg0, CORE_ADDR arg1, enum target_hw_bp_type arg2)
  868. {
  869. return 1;
  870. }
  871. int
  872. debug_target::insert_mask_watchpoint (CORE_ADDR arg0, CORE_ADDR arg1, enum target_hw_bp_type arg2)
  873. {
  874. int result;
  875. gdb_printf (gdb_stdlog, "-> %s->insert_mask_watchpoint (...)\n", this->beneath ()->shortname ());
  876. result = this->beneath ()->insert_mask_watchpoint (arg0, arg1, arg2);
  877. gdb_printf (gdb_stdlog, "<- %s->insert_mask_watchpoint (", this->beneath ()->shortname ());
  878. target_debug_print_CORE_ADDR (arg0);
  879. gdb_puts (", ", gdb_stdlog);
  880. target_debug_print_CORE_ADDR (arg1);
  881. gdb_puts (", ", gdb_stdlog);
  882. target_debug_print_enum_target_hw_bp_type (arg2);
  883. gdb_puts (") = ", gdb_stdlog);
  884. target_debug_print_int (result);
  885. gdb_puts ("\n", gdb_stdlog);
  886. return result;
  887. }
  888. int
  889. target_ops::remove_mask_watchpoint (CORE_ADDR arg0, CORE_ADDR arg1, enum target_hw_bp_type arg2)
  890. {
  891. return this->beneath ()->remove_mask_watchpoint (arg0, arg1, arg2);
  892. }
  893. int
  894. dummy_target::remove_mask_watchpoint (CORE_ADDR arg0, CORE_ADDR arg1, enum target_hw_bp_type arg2)
  895. {
  896. return 1;
  897. }
  898. int
  899. debug_target::remove_mask_watchpoint (CORE_ADDR arg0, CORE_ADDR arg1, enum target_hw_bp_type arg2)
  900. {
  901. int result;
  902. gdb_printf (gdb_stdlog, "-> %s->remove_mask_watchpoint (...)\n", this->beneath ()->shortname ());
  903. result = this->beneath ()->remove_mask_watchpoint (arg0, arg1, arg2);
  904. gdb_printf (gdb_stdlog, "<- %s->remove_mask_watchpoint (", this->beneath ()->shortname ());
  905. target_debug_print_CORE_ADDR (arg0);
  906. gdb_puts (", ", gdb_stdlog);
  907. target_debug_print_CORE_ADDR (arg1);
  908. gdb_puts (", ", gdb_stdlog);
  909. target_debug_print_enum_target_hw_bp_type (arg2);
  910. gdb_puts (") = ", gdb_stdlog);
  911. target_debug_print_int (result);
  912. gdb_puts ("\n", gdb_stdlog);
  913. return result;
  914. }
  915. bool
  916. target_ops::stopped_by_watchpoint ()
  917. {
  918. return this->beneath ()->stopped_by_watchpoint ();
  919. }
  920. bool
  921. dummy_target::stopped_by_watchpoint ()
  922. {
  923. return false;
  924. }
  925. bool
  926. debug_target::stopped_by_watchpoint ()
  927. {
  928. bool result;
  929. gdb_printf (gdb_stdlog, "-> %s->stopped_by_watchpoint (...)\n", this->beneath ()->shortname ());
  930. result = this->beneath ()->stopped_by_watchpoint ();
  931. gdb_printf (gdb_stdlog, "<- %s->stopped_by_watchpoint (", this->beneath ()->shortname ());
  932. gdb_puts (") = ", gdb_stdlog);
  933. target_debug_print_bool (result);
  934. gdb_puts ("\n", gdb_stdlog);
  935. return result;
  936. }
  937. bool
  938. target_ops::have_steppable_watchpoint ()
  939. {
  940. return this->beneath ()->have_steppable_watchpoint ();
  941. }
  942. bool
  943. dummy_target::have_steppable_watchpoint ()
  944. {
  945. return false;
  946. }
  947. bool
  948. debug_target::have_steppable_watchpoint ()
  949. {
  950. bool result;
  951. gdb_printf (gdb_stdlog, "-> %s->have_steppable_watchpoint (...)\n", this->beneath ()->shortname ());
  952. result = this->beneath ()->have_steppable_watchpoint ();
  953. gdb_printf (gdb_stdlog, "<- %s->have_steppable_watchpoint (", this->beneath ()->shortname ());
  954. gdb_puts (") = ", gdb_stdlog);
  955. target_debug_print_bool (result);
  956. gdb_puts ("\n", gdb_stdlog);
  957. return result;
  958. }
  959. bool
  960. target_ops::stopped_data_address (CORE_ADDR *arg0)
  961. {
  962. return this->beneath ()->stopped_data_address (arg0);
  963. }
  964. bool
  965. dummy_target::stopped_data_address (CORE_ADDR *arg0)
  966. {
  967. return false;
  968. }
  969. bool
  970. debug_target::stopped_data_address (CORE_ADDR *arg0)
  971. {
  972. bool result;
  973. gdb_printf (gdb_stdlog, "-> %s->stopped_data_address (...)\n", this->beneath ()->shortname ());
  974. result = this->beneath ()->stopped_data_address (arg0);
  975. gdb_printf (gdb_stdlog, "<- %s->stopped_data_address (", this->beneath ()->shortname ());
  976. target_debug_print_CORE_ADDR_p (arg0);
  977. gdb_puts (") = ", gdb_stdlog);
  978. target_debug_print_bool (result);
  979. gdb_puts ("\n", gdb_stdlog);
  980. return result;
  981. }
  982. bool
  983. target_ops::watchpoint_addr_within_range (CORE_ADDR arg0, CORE_ADDR arg1, int arg2)
  984. {
  985. return this->beneath ()->watchpoint_addr_within_range (arg0, arg1, arg2);
  986. }
  987. bool
  988. dummy_target::watchpoint_addr_within_range (CORE_ADDR arg0, CORE_ADDR arg1, int arg2)
  989. {
  990. return default_watchpoint_addr_within_range (this, arg0, arg1, arg2);
  991. }
  992. bool
  993. debug_target::watchpoint_addr_within_range (CORE_ADDR arg0, CORE_ADDR arg1, int arg2)
  994. {
  995. bool result;
  996. gdb_printf (gdb_stdlog, "-> %s->watchpoint_addr_within_range (...)\n", this->beneath ()->shortname ());
  997. result = this->beneath ()->watchpoint_addr_within_range (arg0, arg1, arg2);
  998. gdb_printf (gdb_stdlog, "<- %s->watchpoint_addr_within_range (", this->beneath ()->shortname ());
  999. target_debug_print_CORE_ADDR (arg0);
  1000. gdb_puts (", ", gdb_stdlog);
  1001. target_debug_print_CORE_ADDR (arg1);
  1002. gdb_puts (", ", gdb_stdlog);
  1003. target_debug_print_int (arg2);
  1004. gdb_puts (") = ", gdb_stdlog);
  1005. target_debug_print_bool (result);
  1006. gdb_puts ("\n", gdb_stdlog);
  1007. return result;
  1008. }
  1009. int
  1010. target_ops::region_ok_for_hw_watchpoint (CORE_ADDR arg0, int arg1)
  1011. {
  1012. return this->beneath ()->region_ok_for_hw_watchpoint (arg0, arg1);
  1013. }
  1014. int
  1015. dummy_target::region_ok_for_hw_watchpoint (CORE_ADDR arg0, int arg1)
  1016. {
  1017. return default_region_ok_for_hw_watchpoint (this, arg0, arg1);
  1018. }
  1019. int
  1020. debug_target::region_ok_for_hw_watchpoint (CORE_ADDR arg0, int arg1)
  1021. {
  1022. int result;
  1023. gdb_printf (gdb_stdlog, "-> %s->region_ok_for_hw_watchpoint (...)\n", this->beneath ()->shortname ());
  1024. result = this->beneath ()->region_ok_for_hw_watchpoint (arg0, arg1);
  1025. gdb_printf (gdb_stdlog, "<- %s->region_ok_for_hw_watchpoint (", this->beneath ()->shortname ());
  1026. target_debug_print_CORE_ADDR (arg0);
  1027. gdb_puts (", ", gdb_stdlog);
  1028. target_debug_print_int (arg1);
  1029. gdb_puts (") = ", gdb_stdlog);
  1030. target_debug_print_int (result);
  1031. gdb_puts ("\n", gdb_stdlog);
  1032. return result;
  1033. }
  1034. bool
  1035. target_ops::can_accel_watchpoint_condition (CORE_ADDR arg0, int arg1, int arg2, struct expression *arg3)
  1036. {
  1037. return this->beneath ()->can_accel_watchpoint_condition (arg0, arg1, arg2, arg3);
  1038. }
  1039. bool
  1040. dummy_target::can_accel_watchpoint_condition (CORE_ADDR arg0, int arg1, int arg2, struct expression *arg3)
  1041. {
  1042. return false;
  1043. }
  1044. bool
  1045. debug_target::can_accel_watchpoint_condition (CORE_ADDR arg0, int arg1, int arg2, struct expression *arg3)
  1046. {
  1047. bool result;
  1048. gdb_printf (gdb_stdlog, "-> %s->can_accel_watchpoint_condition (...)\n", this->beneath ()->shortname ());
  1049. result = this->beneath ()->can_accel_watchpoint_condition (arg0, arg1, arg2, arg3);
  1050. gdb_printf (gdb_stdlog, "<- %s->can_accel_watchpoint_condition (", this->beneath ()->shortname ());
  1051. target_debug_print_CORE_ADDR (arg0);
  1052. gdb_puts (", ", gdb_stdlog);
  1053. target_debug_print_int (arg1);
  1054. gdb_puts (", ", gdb_stdlog);
  1055. target_debug_print_int (arg2);
  1056. gdb_puts (", ", gdb_stdlog);
  1057. target_debug_print_struct_expression_p (arg3);
  1058. gdb_puts (") = ", gdb_stdlog);
  1059. target_debug_print_bool (result);
  1060. gdb_puts ("\n", gdb_stdlog);
  1061. return result;
  1062. }
  1063. int
  1064. target_ops::masked_watch_num_registers (CORE_ADDR arg0, CORE_ADDR arg1)
  1065. {
  1066. return this->beneath ()->masked_watch_num_registers (arg0, arg1);
  1067. }
  1068. int
  1069. dummy_target::masked_watch_num_registers (CORE_ADDR arg0, CORE_ADDR arg1)
  1070. {
  1071. return -1;
  1072. }
  1073. int
  1074. debug_target::masked_watch_num_registers (CORE_ADDR arg0, CORE_ADDR arg1)
  1075. {
  1076. int result;
  1077. gdb_printf (gdb_stdlog, "-> %s->masked_watch_num_registers (...)\n", this->beneath ()->shortname ());
  1078. result = this->beneath ()->masked_watch_num_registers (arg0, arg1);
  1079. gdb_printf (gdb_stdlog, "<- %s->masked_watch_num_registers (", this->beneath ()->shortname ());
  1080. target_debug_print_CORE_ADDR (arg0);
  1081. gdb_puts (", ", gdb_stdlog);
  1082. target_debug_print_CORE_ADDR (arg1);
  1083. gdb_puts (") = ", gdb_stdlog);
  1084. target_debug_print_int (result);
  1085. gdb_puts ("\n", gdb_stdlog);
  1086. return result;
  1087. }
  1088. int
  1089. target_ops::can_do_single_step ()
  1090. {
  1091. return this->beneath ()->can_do_single_step ();
  1092. }
  1093. int
  1094. dummy_target::can_do_single_step ()
  1095. {
  1096. return -1;
  1097. }
  1098. int
  1099. debug_target::can_do_single_step ()
  1100. {
  1101. int result;
  1102. gdb_printf (gdb_stdlog, "-> %s->can_do_single_step (...)\n", this->beneath ()->shortname ());
  1103. result = this->beneath ()->can_do_single_step ();
  1104. gdb_printf (gdb_stdlog, "<- %s->can_do_single_step (", this->beneath ()->shortname ());
  1105. gdb_puts (") = ", gdb_stdlog);
  1106. target_debug_print_int (result);
  1107. gdb_puts ("\n", gdb_stdlog);
  1108. return result;
  1109. }
  1110. bool
  1111. target_ops::supports_terminal_ours ()
  1112. {
  1113. return this->beneath ()->supports_terminal_ours ();
  1114. }
  1115. bool
  1116. dummy_target::supports_terminal_ours ()
  1117. {
  1118. return false;
  1119. }
  1120. bool
  1121. debug_target::supports_terminal_ours ()
  1122. {
  1123. bool result;
  1124. gdb_printf (gdb_stdlog, "-> %s->supports_terminal_ours (...)\n", this->beneath ()->shortname ());
  1125. result = this->beneath ()->supports_terminal_ours ();
  1126. gdb_printf (gdb_stdlog, "<- %s->supports_terminal_ours (", this->beneath ()->shortname ());
  1127. gdb_puts (") = ", gdb_stdlog);
  1128. target_debug_print_bool (result);
  1129. gdb_puts ("\n", gdb_stdlog);
  1130. return result;
  1131. }
  1132. void
  1133. target_ops::terminal_init ()
  1134. {
  1135. this->beneath ()->terminal_init ();
  1136. }
  1137. void
  1138. dummy_target::terminal_init ()
  1139. {
  1140. }
  1141. void
  1142. debug_target::terminal_init ()
  1143. {
  1144. gdb_printf (gdb_stdlog, "-> %s->terminal_init (...)\n", this->beneath ()->shortname ());
  1145. this->beneath ()->terminal_init ();
  1146. gdb_printf (gdb_stdlog, "<- %s->terminal_init (", this->beneath ()->shortname ());
  1147. gdb_puts (")\n", gdb_stdlog);
  1148. }
  1149. void
  1150. target_ops::terminal_inferior ()
  1151. {
  1152. this->beneath ()->terminal_inferior ();
  1153. }
  1154. void
  1155. dummy_target::terminal_inferior ()
  1156. {
  1157. }
  1158. void
  1159. debug_target::terminal_inferior ()
  1160. {
  1161. gdb_printf (gdb_stdlog, "-> %s->terminal_inferior (...)\n", this->beneath ()->shortname ());
  1162. this->beneath ()->terminal_inferior ();
  1163. gdb_printf (gdb_stdlog, "<- %s->terminal_inferior (", this->beneath ()->shortname ());
  1164. gdb_puts (")\n", gdb_stdlog);
  1165. }
  1166. void
  1167. target_ops::terminal_save_inferior ()
  1168. {
  1169. this->beneath ()->terminal_save_inferior ();
  1170. }
  1171. void
  1172. dummy_target::terminal_save_inferior ()
  1173. {
  1174. }
  1175. void
  1176. debug_target::terminal_save_inferior ()
  1177. {
  1178. gdb_printf (gdb_stdlog, "-> %s->terminal_save_inferior (...)\n", this->beneath ()->shortname ());
  1179. this->beneath ()->terminal_save_inferior ();
  1180. gdb_printf (gdb_stdlog, "<- %s->terminal_save_inferior (", this->beneath ()->shortname ());
  1181. gdb_puts (")\n", gdb_stdlog);
  1182. }
  1183. void
  1184. target_ops::terminal_ours_for_output ()
  1185. {
  1186. this->beneath ()->terminal_ours_for_output ();
  1187. }
  1188. void
  1189. dummy_target::terminal_ours_for_output ()
  1190. {
  1191. }
  1192. void
  1193. debug_target::terminal_ours_for_output ()
  1194. {
  1195. gdb_printf (gdb_stdlog, "-> %s->terminal_ours_for_output (...)\n", this->beneath ()->shortname ());
  1196. this->beneath ()->terminal_ours_for_output ();
  1197. gdb_printf (gdb_stdlog, "<- %s->terminal_ours_for_output (", this->beneath ()->shortname ());
  1198. gdb_puts (")\n", gdb_stdlog);
  1199. }
  1200. void
  1201. target_ops::terminal_ours ()
  1202. {
  1203. this->beneath ()->terminal_ours ();
  1204. }
  1205. void
  1206. dummy_target::terminal_ours ()
  1207. {
  1208. }
  1209. void
  1210. debug_target::terminal_ours ()
  1211. {
  1212. gdb_printf (gdb_stdlog, "-> %s->terminal_ours (...)\n", this->beneath ()->shortname ());
  1213. this->beneath ()->terminal_ours ();
  1214. gdb_printf (gdb_stdlog, "<- %s->terminal_ours (", this->beneath ()->shortname ());
  1215. gdb_puts (")\n", gdb_stdlog);
  1216. }
  1217. void
  1218. target_ops::terminal_info (const char *arg0, int arg1)
  1219. {
  1220. this->beneath ()->terminal_info (arg0, arg1);
  1221. }
  1222. void
  1223. dummy_target::terminal_info (const char *arg0, int arg1)
  1224. {
  1225. default_terminal_info (this, arg0, arg1);
  1226. }
  1227. void
  1228. debug_target::terminal_info (const char *arg0, int arg1)
  1229. {
  1230. gdb_printf (gdb_stdlog, "-> %s->terminal_info (...)\n", this->beneath ()->shortname ());
  1231. this->beneath ()->terminal_info (arg0, arg1);
  1232. gdb_printf (gdb_stdlog, "<- %s->terminal_info (", this->beneath ()->shortname ());
  1233. target_debug_print_const_char_p (arg0);
  1234. gdb_puts (", ", gdb_stdlog);
  1235. target_debug_print_int (arg1);
  1236. gdb_puts (")\n", gdb_stdlog);
  1237. }
  1238. void
  1239. target_ops::kill ()
  1240. {
  1241. this->beneath ()->kill ();
  1242. }
  1243. void
  1244. dummy_target::kill ()
  1245. {
  1246. noprocess ();
  1247. }
  1248. void
  1249. debug_target::kill ()
  1250. {
  1251. gdb_printf (gdb_stdlog, "-> %s->kill (...)\n", this->beneath ()->shortname ());
  1252. this->beneath ()->kill ();
  1253. gdb_printf (gdb_stdlog, "<- %s->kill (", this->beneath ()->shortname ());
  1254. gdb_puts (")\n", gdb_stdlog);
  1255. }
  1256. void
  1257. target_ops::load (const char *arg0, int arg1)
  1258. {
  1259. this->beneath ()->load (arg0, arg1);
  1260. }
  1261. void
  1262. dummy_target::load (const char *arg0, int arg1)
  1263. {
  1264. tcomplain ();
  1265. }
  1266. void
  1267. debug_target::load (const char *arg0, int arg1)
  1268. {
  1269. gdb_printf (gdb_stdlog, "-> %s->load (...)\n", this->beneath ()->shortname ());
  1270. this->beneath ()->load (arg0, arg1);
  1271. gdb_printf (gdb_stdlog, "<- %s->load (", this->beneath ()->shortname ());
  1272. target_debug_print_const_char_p (arg0);
  1273. gdb_puts (", ", gdb_stdlog);
  1274. target_debug_print_int (arg1);
  1275. gdb_puts (")\n", gdb_stdlog);
  1276. }
  1277. int
  1278. target_ops::insert_fork_catchpoint (int arg0)
  1279. {
  1280. return this->beneath ()->insert_fork_catchpoint (arg0);
  1281. }
  1282. int
  1283. dummy_target::insert_fork_catchpoint (int arg0)
  1284. {
  1285. return 1;
  1286. }
  1287. int
  1288. debug_target::insert_fork_catchpoint (int arg0)
  1289. {
  1290. int result;
  1291. gdb_printf (gdb_stdlog, "-> %s->insert_fork_catchpoint (...)\n", this->beneath ()->shortname ());
  1292. result = this->beneath ()->insert_fork_catchpoint (arg0);
  1293. gdb_printf (gdb_stdlog, "<- %s->insert_fork_catchpoint (", this->beneath ()->shortname ());
  1294. target_debug_print_int (arg0);
  1295. gdb_puts (") = ", gdb_stdlog);
  1296. target_debug_print_int (result);
  1297. gdb_puts ("\n", gdb_stdlog);
  1298. return result;
  1299. }
  1300. int
  1301. target_ops::remove_fork_catchpoint (int arg0)
  1302. {
  1303. return this->beneath ()->remove_fork_catchpoint (arg0);
  1304. }
  1305. int
  1306. dummy_target::remove_fork_catchpoint (int arg0)
  1307. {
  1308. return 1;
  1309. }
  1310. int
  1311. debug_target::remove_fork_catchpoint (int arg0)
  1312. {
  1313. int result;
  1314. gdb_printf (gdb_stdlog, "-> %s->remove_fork_catchpoint (...)\n", this->beneath ()->shortname ());
  1315. result = this->beneath ()->remove_fork_catchpoint (arg0);
  1316. gdb_printf (gdb_stdlog, "<- %s->remove_fork_catchpoint (", this->beneath ()->shortname ());
  1317. target_debug_print_int (arg0);
  1318. gdb_puts (") = ", gdb_stdlog);
  1319. target_debug_print_int (result);
  1320. gdb_puts ("\n", gdb_stdlog);
  1321. return result;
  1322. }
  1323. int
  1324. target_ops::insert_vfork_catchpoint (int arg0)
  1325. {
  1326. return this->beneath ()->insert_vfork_catchpoint (arg0);
  1327. }
  1328. int
  1329. dummy_target::insert_vfork_catchpoint (int arg0)
  1330. {
  1331. return 1;
  1332. }
  1333. int
  1334. debug_target::insert_vfork_catchpoint (int arg0)
  1335. {
  1336. int result;
  1337. gdb_printf (gdb_stdlog, "-> %s->insert_vfork_catchpoint (...)\n", this->beneath ()->shortname ());
  1338. result = this->beneath ()->insert_vfork_catchpoint (arg0);
  1339. gdb_printf (gdb_stdlog, "<- %s->insert_vfork_catchpoint (", this->beneath ()->shortname ());
  1340. target_debug_print_int (arg0);
  1341. gdb_puts (") = ", gdb_stdlog);
  1342. target_debug_print_int (result);
  1343. gdb_puts ("\n", gdb_stdlog);
  1344. return result;
  1345. }
  1346. int
  1347. target_ops::remove_vfork_catchpoint (int arg0)
  1348. {
  1349. return this->beneath ()->remove_vfork_catchpoint (arg0);
  1350. }
  1351. int
  1352. dummy_target::remove_vfork_catchpoint (int arg0)
  1353. {
  1354. return 1;
  1355. }
  1356. int
  1357. debug_target::remove_vfork_catchpoint (int arg0)
  1358. {
  1359. int result;
  1360. gdb_printf (gdb_stdlog, "-> %s->remove_vfork_catchpoint (...)\n", this->beneath ()->shortname ());
  1361. result = this->beneath ()->remove_vfork_catchpoint (arg0);
  1362. gdb_printf (gdb_stdlog, "<- %s->remove_vfork_catchpoint (", this->beneath ()->shortname ());
  1363. target_debug_print_int (arg0);
  1364. gdb_puts (") = ", gdb_stdlog);
  1365. target_debug_print_int (result);
  1366. gdb_puts ("\n", gdb_stdlog);
  1367. return result;
  1368. }
  1369. void
  1370. target_ops::follow_fork (inferior *arg0, ptid_t arg1, target_waitkind arg2, bool arg3, bool arg4)
  1371. {
  1372. this->beneath ()->follow_fork (arg0, arg1, arg2, arg3, arg4);
  1373. }
  1374. void
  1375. dummy_target::follow_fork (inferior *arg0, ptid_t arg1, target_waitkind arg2, bool arg3, bool arg4)
  1376. {
  1377. default_follow_fork (this, arg0, arg1, arg2, arg3, arg4);
  1378. }
  1379. void
  1380. debug_target::follow_fork (inferior *arg0, ptid_t arg1, target_waitkind arg2, bool arg3, bool arg4)
  1381. {
  1382. gdb_printf (gdb_stdlog, "-> %s->follow_fork (...)\n", this->beneath ()->shortname ());
  1383. this->beneath ()->follow_fork (arg0, arg1, arg2, arg3, arg4);
  1384. gdb_printf (gdb_stdlog, "<- %s->follow_fork (", this->beneath ()->shortname ());
  1385. target_debug_print_inferior_p (arg0);
  1386. gdb_puts (", ", gdb_stdlog);
  1387. target_debug_print_ptid_t (arg1);
  1388. gdb_puts (", ", gdb_stdlog);
  1389. target_debug_print_target_waitkind (arg2);
  1390. gdb_puts (", ", gdb_stdlog);
  1391. target_debug_print_bool (arg3);
  1392. gdb_puts (", ", gdb_stdlog);
  1393. target_debug_print_bool (arg4);
  1394. gdb_puts (")\n", gdb_stdlog);
  1395. }
  1396. int
  1397. target_ops::insert_exec_catchpoint (int arg0)
  1398. {
  1399. return this->beneath ()->insert_exec_catchpoint (arg0);
  1400. }
  1401. int
  1402. dummy_target::insert_exec_catchpoint (int arg0)
  1403. {
  1404. return 1;
  1405. }
  1406. int
  1407. debug_target::insert_exec_catchpoint (int arg0)
  1408. {
  1409. int result;
  1410. gdb_printf (gdb_stdlog, "-> %s->insert_exec_catchpoint (...)\n", this->beneath ()->shortname ());
  1411. result = this->beneath ()->insert_exec_catchpoint (arg0);
  1412. gdb_printf (gdb_stdlog, "<- %s->insert_exec_catchpoint (", this->beneath ()->shortname ());
  1413. target_debug_print_int (arg0);
  1414. gdb_puts (") = ", gdb_stdlog);
  1415. target_debug_print_int (result);
  1416. gdb_puts ("\n", gdb_stdlog);
  1417. return result;
  1418. }
  1419. int
  1420. target_ops::remove_exec_catchpoint (int arg0)
  1421. {
  1422. return this->beneath ()->remove_exec_catchpoint (arg0);
  1423. }
  1424. int
  1425. dummy_target::remove_exec_catchpoint (int arg0)
  1426. {
  1427. return 1;
  1428. }
  1429. int
  1430. debug_target::remove_exec_catchpoint (int arg0)
  1431. {
  1432. int result;
  1433. gdb_printf (gdb_stdlog, "-> %s->remove_exec_catchpoint (...)\n", this->beneath ()->shortname ());
  1434. result = this->beneath ()->remove_exec_catchpoint (arg0);
  1435. gdb_printf (gdb_stdlog, "<- %s->remove_exec_catchpoint (", this->beneath ()->shortname ());
  1436. target_debug_print_int (arg0);
  1437. gdb_puts (") = ", gdb_stdlog);
  1438. target_debug_print_int (result);
  1439. gdb_puts ("\n", gdb_stdlog);
  1440. return result;
  1441. }
  1442. void
  1443. target_ops::follow_exec (inferior *arg0, ptid_t arg1, const char *arg2)
  1444. {
  1445. this->beneath ()->follow_exec (arg0, arg1, arg2);
  1446. }
  1447. void
  1448. dummy_target::follow_exec (inferior *arg0, ptid_t arg1, const char *arg2)
  1449. {
  1450. }
  1451. void
  1452. debug_target::follow_exec (inferior *arg0, ptid_t arg1, const char *arg2)
  1453. {
  1454. gdb_printf (gdb_stdlog, "-> %s->follow_exec (...)\n", this->beneath ()->shortname ());
  1455. this->beneath ()->follow_exec (arg0, arg1, arg2);
  1456. gdb_printf (gdb_stdlog, "<- %s->follow_exec (", this->beneath ()->shortname ());
  1457. target_debug_print_inferior_p (arg0);
  1458. gdb_puts (", ", gdb_stdlog);
  1459. target_debug_print_ptid_t (arg1);
  1460. gdb_puts (", ", gdb_stdlog);
  1461. target_debug_print_const_char_p (arg2);
  1462. gdb_puts (")\n", gdb_stdlog);
  1463. }
  1464. int
  1465. target_ops::set_syscall_catchpoint (int arg0, bool arg1, int arg2, gdb::array_view<const int> arg3)
  1466. {
  1467. return this->beneath ()->set_syscall_catchpoint (arg0, arg1, arg2, arg3);
  1468. }
  1469. int
  1470. dummy_target::set_syscall_catchpoint (int arg0, bool arg1, int arg2, gdb::array_view<const int> arg3)
  1471. {
  1472. return 1;
  1473. }
  1474. int
  1475. debug_target::set_syscall_catchpoint (int arg0, bool arg1, int arg2, gdb::array_view<const int> arg3)
  1476. {
  1477. int result;
  1478. gdb_printf (gdb_stdlog, "-> %s->set_syscall_catchpoint (...)\n", this->beneath ()->shortname ());
  1479. result = this->beneath ()->set_syscall_catchpoint (arg0, arg1, arg2, arg3);
  1480. gdb_printf (gdb_stdlog, "<- %s->set_syscall_catchpoint (", this->beneath ()->shortname ());
  1481. target_debug_print_int (arg0);
  1482. gdb_puts (", ", gdb_stdlog);
  1483. target_debug_print_bool (arg1);
  1484. gdb_puts (", ", gdb_stdlog);
  1485. target_debug_print_int (arg2);
  1486. gdb_puts (", ", gdb_stdlog);
  1487. target_debug_print_gdb_array_view_const_int (arg3);
  1488. gdb_puts (") = ", gdb_stdlog);
  1489. target_debug_print_int (result);
  1490. gdb_puts ("\n", gdb_stdlog);
  1491. return result;
  1492. }
  1493. void
  1494. target_ops::mourn_inferior ()
  1495. {
  1496. this->beneath ()->mourn_inferior ();
  1497. }
  1498. void
  1499. dummy_target::mourn_inferior ()
  1500. {
  1501. default_mourn_inferior (this);
  1502. }
  1503. void
  1504. debug_target::mourn_inferior ()
  1505. {
  1506. gdb_printf (gdb_stdlog, "-> %s->mourn_inferior (...)\n", this->beneath ()->shortname ());
  1507. this->beneath ()->mourn_inferior ();
  1508. gdb_printf (gdb_stdlog, "<- %s->mourn_inferior (", this->beneath ()->shortname ());
  1509. gdb_puts (")\n", gdb_stdlog);
  1510. }
  1511. void
  1512. target_ops::pass_signals (gdb::array_view<const unsigned char> arg0)
  1513. {
  1514. this->beneath ()->pass_signals (arg0);
  1515. }
  1516. void
  1517. dummy_target::pass_signals (gdb::array_view<const unsigned char> arg0)
  1518. {
  1519. }
  1520. void
  1521. debug_target::pass_signals (gdb::array_view<const unsigned char> arg0)
  1522. {
  1523. gdb_printf (gdb_stdlog, "-> %s->pass_signals (...)\n", this->beneath ()->shortname ());
  1524. this->beneath ()->pass_signals (arg0);
  1525. gdb_printf (gdb_stdlog, "<- %s->pass_signals (", this->beneath ()->shortname ());
  1526. target_debug_print_signals (arg0);
  1527. gdb_puts (")\n", gdb_stdlog);
  1528. }
  1529. void
  1530. target_ops::program_signals (gdb::array_view<const unsigned char> arg0)
  1531. {
  1532. this->beneath ()->program_signals (arg0);
  1533. }
  1534. void
  1535. dummy_target::program_signals (gdb::array_view<const unsigned char> arg0)
  1536. {
  1537. }
  1538. void
  1539. debug_target::program_signals (gdb::array_view<const unsigned char> arg0)
  1540. {
  1541. gdb_printf (gdb_stdlog, "-> %s->program_signals (...)\n", this->beneath ()->shortname ());
  1542. this->beneath ()->program_signals (arg0);
  1543. gdb_printf (gdb_stdlog, "<- %s->program_signals (", this->beneath ()->shortname ());
  1544. target_debug_print_signals (arg0);
  1545. gdb_puts (")\n", gdb_stdlog);
  1546. }
  1547. bool
  1548. target_ops::thread_alive (ptid_t arg0)
  1549. {
  1550. return this->beneath ()->thread_alive (arg0);
  1551. }
  1552. bool
  1553. dummy_target::thread_alive (ptid_t arg0)
  1554. {
  1555. return false;
  1556. }
  1557. bool
  1558. debug_target::thread_alive (ptid_t arg0)
  1559. {
  1560. bool result;
  1561. gdb_printf (gdb_stdlog, "-> %s->thread_alive (...)\n", this->beneath ()->shortname ());
  1562. result = this->beneath ()->thread_alive (arg0);
  1563. gdb_printf (gdb_stdlog, "<- %s->thread_alive (", this->beneath ()->shortname ());
  1564. target_debug_print_ptid_t (arg0);
  1565. gdb_puts (") = ", gdb_stdlog);
  1566. target_debug_print_bool (result);
  1567. gdb_puts ("\n", gdb_stdlog);
  1568. return result;
  1569. }
  1570. void
  1571. target_ops::update_thread_list ()
  1572. {
  1573. this->beneath ()->update_thread_list ();
  1574. }
  1575. void
  1576. dummy_target::update_thread_list ()
  1577. {
  1578. }
  1579. void
  1580. debug_target::update_thread_list ()
  1581. {
  1582. gdb_printf (gdb_stdlog, "-> %s->update_thread_list (...)\n", this->beneath ()->shortname ());
  1583. this->beneath ()->update_thread_list ();
  1584. gdb_printf (gdb_stdlog, "<- %s->update_thread_list (", this->beneath ()->shortname ());
  1585. gdb_puts (")\n", gdb_stdlog);
  1586. }
  1587. std::string
  1588. target_ops::pid_to_str (ptid_t arg0)
  1589. {
  1590. return this->beneath ()->pid_to_str (arg0);
  1591. }
  1592. std::string
  1593. dummy_target::pid_to_str (ptid_t arg0)
  1594. {
  1595. return default_pid_to_str (this, arg0);
  1596. }
  1597. std::string
  1598. debug_target::pid_to_str (ptid_t arg0)
  1599. {
  1600. std::string result;
  1601. gdb_printf (gdb_stdlog, "-> %s->pid_to_str (...)\n", this->beneath ()->shortname ());
  1602. result = this->beneath ()->pid_to_str (arg0);
  1603. gdb_printf (gdb_stdlog, "<- %s->pid_to_str (", this->beneath ()->shortname ());
  1604. target_debug_print_ptid_t (arg0);
  1605. gdb_puts (") = ", gdb_stdlog);
  1606. target_debug_print_std_string (result);
  1607. gdb_puts ("\n", gdb_stdlog);
  1608. return result;
  1609. }
  1610. const char *
  1611. target_ops::extra_thread_info (thread_info *arg0)
  1612. {
  1613. return this->beneath ()->extra_thread_info (arg0);
  1614. }
  1615. const char *
  1616. dummy_target::extra_thread_info (thread_info *arg0)
  1617. {
  1618. return NULL;
  1619. }
  1620. const char *
  1621. debug_target::extra_thread_info (thread_info *arg0)
  1622. {
  1623. const char * result;
  1624. gdb_printf (gdb_stdlog, "-> %s->extra_thread_info (...)\n", this->beneath ()->shortname ());
  1625. result = this->beneath ()->extra_thread_info (arg0);
  1626. gdb_printf (gdb_stdlog, "<- %s->extra_thread_info (", this->beneath ()->shortname ());
  1627. target_debug_print_thread_info_p (arg0);
  1628. gdb_puts (") = ", gdb_stdlog);
  1629. target_debug_print_const_char_p (result);
  1630. gdb_puts ("\n", gdb_stdlog);
  1631. return result;
  1632. }
  1633. const char *
  1634. target_ops::thread_name (thread_info *arg0)
  1635. {
  1636. return this->beneath ()->thread_name (arg0);
  1637. }
  1638. const char *
  1639. dummy_target::thread_name (thread_info *arg0)
  1640. {
  1641. return NULL;
  1642. }
  1643. const char *
  1644. debug_target::thread_name (thread_info *arg0)
  1645. {
  1646. const char * result;
  1647. gdb_printf (gdb_stdlog, "-> %s->thread_name (...)\n", this->beneath ()->shortname ());
  1648. result = this->beneath ()->thread_name (arg0);
  1649. gdb_printf (gdb_stdlog, "<- %s->thread_name (", this->beneath ()->shortname ());
  1650. target_debug_print_thread_info_p (arg0);
  1651. gdb_puts (") = ", gdb_stdlog);
  1652. target_debug_print_const_char_p (result);
  1653. gdb_puts ("\n", gdb_stdlog);
  1654. return result;
  1655. }
  1656. thread_info *
  1657. target_ops::thread_handle_to_thread_info (const gdb_byte *arg0, int arg1, inferior *arg2)
  1658. {
  1659. return this->beneath ()->thread_handle_to_thread_info (arg0, arg1, arg2);
  1660. }
  1661. thread_info *
  1662. dummy_target::thread_handle_to_thread_info (const gdb_byte *arg0, int arg1, inferior *arg2)
  1663. {
  1664. return NULL;
  1665. }
  1666. thread_info *
  1667. debug_target::thread_handle_to_thread_info (const gdb_byte *arg0, int arg1, inferior *arg2)
  1668. {
  1669. thread_info * result;
  1670. gdb_printf (gdb_stdlog, "-> %s->thread_handle_to_thread_info (...)\n", this->beneath ()->shortname ());
  1671. result = this->beneath ()->thread_handle_to_thread_info (arg0, arg1, arg2);
  1672. gdb_printf (gdb_stdlog, "<- %s->thread_handle_to_thread_info (", this->beneath ()->shortname ());
  1673. target_debug_print_const_gdb_byte_p (arg0);
  1674. gdb_puts (", ", gdb_stdlog);
  1675. target_debug_print_int (arg1);
  1676. gdb_puts (", ", gdb_stdlog);
  1677. target_debug_print_inferior_p (arg2);
  1678. gdb_puts (") = ", gdb_stdlog);
  1679. target_debug_print_thread_info_p (result);
  1680. gdb_puts ("\n", gdb_stdlog);
  1681. return result;
  1682. }
  1683. gdb::byte_vector
  1684. target_ops::thread_info_to_thread_handle (struct thread_info *arg0)
  1685. {
  1686. return this->beneath ()->thread_info_to_thread_handle (arg0);
  1687. }
  1688. gdb::byte_vector
  1689. dummy_target::thread_info_to_thread_handle (struct thread_info *arg0)
  1690. {
  1691. return gdb::byte_vector ();
  1692. }
  1693. gdb::byte_vector
  1694. debug_target::thread_info_to_thread_handle (struct thread_info *arg0)
  1695. {
  1696. gdb::byte_vector result;
  1697. gdb_printf (gdb_stdlog, "-> %s->thread_info_to_thread_handle (...)\n", this->beneath ()->shortname ());
  1698. result = this->beneath ()->thread_info_to_thread_handle (arg0);
  1699. gdb_printf (gdb_stdlog, "<- %s->thread_info_to_thread_handle (", this->beneath ()->shortname ());
  1700. target_debug_print_struct_thread_info_p (arg0);
  1701. gdb_puts (") = ", gdb_stdlog);
  1702. target_debug_print_gdb_byte_vector (result);
  1703. gdb_puts ("\n", gdb_stdlog);
  1704. return result;
  1705. }
  1706. void
  1707. target_ops::stop (ptid_t arg0)
  1708. {
  1709. this->beneath ()->stop (arg0);
  1710. }
  1711. void
  1712. dummy_target::stop (ptid_t arg0)
  1713. {
  1714. }
  1715. void
  1716. debug_target::stop (ptid_t arg0)
  1717. {
  1718. gdb_printf (gdb_stdlog, "-> %s->stop (...)\n", this->beneath ()->shortname ());
  1719. this->beneath ()->stop (arg0);
  1720. gdb_printf (gdb_stdlog, "<- %s->stop (", this->beneath ()->shortname ());
  1721. target_debug_print_ptid_t (arg0);
  1722. gdb_puts (")\n", gdb_stdlog);
  1723. }
  1724. void
  1725. target_ops::interrupt ()
  1726. {
  1727. this->beneath ()->interrupt ();
  1728. }
  1729. void
  1730. dummy_target::interrupt ()
  1731. {
  1732. }
  1733. void
  1734. debug_target::interrupt ()
  1735. {
  1736. gdb_printf (gdb_stdlog, "-> %s->interrupt (...)\n", this->beneath ()->shortname ());
  1737. this->beneath ()->interrupt ();
  1738. gdb_printf (gdb_stdlog, "<- %s->interrupt (", this->beneath ()->shortname ());
  1739. gdb_puts (")\n", gdb_stdlog);
  1740. }
  1741. void
  1742. target_ops::pass_ctrlc ()
  1743. {
  1744. this->beneath ()->pass_ctrlc ();
  1745. }
  1746. void
  1747. dummy_target::pass_ctrlc ()
  1748. {
  1749. default_target_pass_ctrlc (this);
  1750. }
  1751. void
  1752. debug_target::pass_ctrlc ()
  1753. {
  1754. gdb_printf (gdb_stdlog, "-> %s->pass_ctrlc (...)\n", this->beneath ()->shortname ());
  1755. this->beneath ()->pass_ctrlc ();
  1756. gdb_printf (gdb_stdlog, "<- %s->pass_ctrlc (", this->beneath ()->shortname ());
  1757. gdb_puts (")\n", gdb_stdlog);
  1758. }
  1759. void
  1760. target_ops::rcmd (const char *arg0, struct ui_file *arg1)
  1761. {
  1762. this->beneath ()->rcmd (arg0, arg1);
  1763. }
  1764. void
  1765. dummy_target::rcmd (const char *arg0, struct ui_file *arg1)
  1766. {
  1767. default_rcmd (this, arg0, arg1);
  1768. }
  1769. void
  1770. debug_target::rcmd (const char *arg0, struct ui_file *arg1)
  1771. {
  1772. gdb_printf (gdb_stdlog, "-> %s->rcmd (...)\n", this->beneath ()->shortname ());
  1773. this->beneath ()->rcmd (arg0, arg1);
  1774. gdb_printf (gdb_stdlog, "<- %s->rcmd (", this->beneath ()->shortname ());
  1775. target_debug_print_const_char_p (arg0);
  1776. gdb_puts (", ", gdb_stdlog);
  1777. target_debug_print_struct_ui_file_p (arg1);
  1778. gdb_puts (")\n", gdb_stdlog);
  1779. }
  1780. char *
  1781. target_ops::pid_to_exec_file (int arg0)
  1782. {
  1783. return this->beneath ()->pid_to_exec_file (arg0);
  1784. }
  1785. char *
  1786. dummy_target::pid_to_exec_file (int arg0)
  1787. {
  1788. return NULL;
  1789. }
  1790. char *
  1791. debug_target::pid_to_exec_file (int arg0)
  1792. {
  1793. char * result;
  1794. gdb_printf (gdb_stdlog, "-> %s->pid_to_exec_file (...)\n", this->beneath ()->shortname ());
  1795. result = this->beneath ()->pid_to_exec_file (arg0);
  1796. gdb_printf (gdb_stdlog, "<- %s->pid_to_exec_file (", this->beneath ()->shortname ());
  1797. target_debug_print_int (arg0);
  1798. gdb_puts (") = ", gdb_stdlog);
  1799. target_debug_print_char_p (result);
  1800. gdb_puts ("\n", gdb_stdlog);
  1801. return result;
  1802. }
  1803. void
  1804. target_ops::log_command (const char *arg0)
  1805. {
  1806. this->beneath ()->log_command (arg0);
  1807. }
  1808. void
  1809. dummy_target::log_command (const char *arg0)
  1810. {
  1811. }
  1812. void
  1813. debug_target::log_command (const char *arg0)
  1814. {
  1815. gdb_printf (gdb_stdlog, "-> %s->log_command (...)\n", this->beneath ()->shortname ());
  1816. this->beneath ()->log_command (arg0);
  1817. gdb_printf (gdb_stdlog, "<- %s->log_command (", this->beneath ()->shortname ());
  1818. target_debug_print_const_char_p (arg0);
  1819. gdb_puts (")\n", gdb_stdlog);
  1820. }
  1821. const target_section_table *
  1822. target_ops::get_section_table ()
  1823. {
  1824. return this->beneath ()->get_section_table ();
  1825. }
  1826. const target_section_table *
  1827. dummy_target::get_section_table ()
  1828. {
  1829. return default_get_section_table ();
  1830. }
  1831. const target_section_table *
  1832. debug_target::get_section_table ()
  1833. {
  1834. const target_section_table * result;
  1835. gdb_printf (gdb_stdlog, "-> %s->get_section_table (...)\n", this->beneath ()->shortname ());
  1836. result = this->beneath ()->get_section_table ();
  1837. gdb_printf (gdb_stdlog, "<- %s->get_section_table (", this->beneath ()->shortname ());
  1838. gdb_puts (") = ", gdb_stdlog);
  1839. target_debug_print_const_target_section_table_p (result);
  1840. gdb_puts ("\n", gdb_stdlog);
  1841. return result;
  1842. }
  1843. thread_control_capabilities
  1844. target_ops::get_thread_control_capabilities ()
  1845. {
  1846. return this->beneath ()->get_thread_control_capabilities ();
  1847. }
  1848. thread_control_capabilities
  1849. dummy_target::get_thread_control_capabilities ()
  1850. {
  1851. return tc_none;
  1852. }
  1853. thread_control_capabilities
  1854. debug_target::get_thread_control_capabilities ()
  1855. {
  1856. thread_control_capabilities result;
  1857. gdb_printf (gdb_stdlog, "-> %s->get_thread_control_capabilities (...)\n", this->beneath ()->shortname ());
  1858. result = this->beneath ()->get_thread_control_capabilities ();
  1859. gdb_printf (gdb_stdlog, "<- %s->get_thread_control_capabilities (", this->beneath ()->shortname ());
  1860. gdb_puts (") = ", gdb_stdlog);
  1861. target_debug_print_thread_control_capabilities (result);
  1862. gdb_puts ("\n", gdb_stdlog);
  1863. return result;
  1864. }
  1865. bool
  1866. target_ops::attach_no_wait ()
  1867. {
  1868. return this->beneath ()->attach_no_wait ();
  1869. }
  1870. bool
  1871. dummy_target::attach_no_wait ()
  1872. {
  1873. return 0;
  1874. }
  1875. bool
  1876. debug_target::attach_no_wait ()
  1877. {
  1878. bool result;
  1879. gdb_printf (gdb_stdlog, "-> %s->attach_no_wait (...)\n", this->beneath ()->shortname ());
  1880. result = this->beneath ()->attach_no_wait ();
  1881. gdb_printf (gdb_stdlog, "<- %s->attach_no_wait (", this->beneath ()->shortname ());
  1882. gdb_puts (") = ", gdb_stdlog);
  1883. target_debug_print_bool (result);
  1884. gdb_puts ("\n", gdb_stdlog);
  1885. return result;
  1886. }
  1887. bool
  1888. target_ops::can_async_p ()
  1889. {
  1890. return this->beneath ()->can_async_p ();
  1891. }
  1892. bool
  1893. dummy_target::can_async_p ()
  1894. {
  1895. return false;
  1896. }
  1897. bool
  1898. debug_target::can_async_p ()
  1899. {
  1900. bool result;
  1901. gdb_printf (gdb_stdlog, "-> %s->can_async_p (...)\n", this->beneath ()->shortname ());
  1902. result = this->beneath ()->can_async_p ();
  1903. gdb_printf (gdb_stdlog, "<- %s->can_async_p (", this->beneath ()->shortname ());
  1904. gdb_puts (") = ", gdb_stdlog);
  1905. target_debug_print_bool (result);
  1906. gdb_puts ("\n", gdb_stdlog);
  1907. return result;
  1908. }
  1909. bool
  1910. target_ops::is_async_p ()
  1911. {
  1912. return this->beneath ()->is_async_p ();
  1913. }
  1914. bool
  1915. dummy_target::is_async_p ()
  1916. {
  1917. return false;
  1918. }
  1919. bool
  1920. debug_target::is_async_p ()
  1921. {
  1922. bool result;
  1923. gdb_printf (gdb_stdlog, "-> %s->is_async_p (...)\n", this->beneath ()->shortname ());
  1924. result = this->beneath ()->is_async_p ();
  1925. gdb_printf (gdb_stdlog, "<- %s->is_async_p (", this->beneath ()->shortname ());
  1926. gdb_puts (") = ", gdb_stdlog);
  1927. target_debug_print_bool (result);
  1928. gdb_puts ("\n", gdb_stdlog);
  1929. return result;
  1930. }
  1931. void
  1932. target_ops::async (int arg0)
  1933. {
  1934. this->beneath ()->async (arg0);
  1935. }
  1936. void
  1937. dummy_target::async (int arg0)
  1938. {
  1939. tcomplain ();
  1940. }
  1941. void
  1942. debug_target::async (int arg0)
  1943. {
  1944. gdb_printf (gdb_stdlog, "-> %s->async (...)\n", this->beneath ()->shortname ());
  1945. this->beneath ()->async (arg0);
  1946. gdb_printf (gdb_stdlog, "<- %s->async (", this->beneath ()->shortname ());
  1947. target_debug_print_int (arg0);
  1948. gdb_puts (")\n", gdb_stdlog);
  1949. }
  1950. int
  1951. target_ops::async_wait_fd ()
  1952. {
  1953. return this->beneath ()->async_wait_fd ();
  1954. }
  1955. int
  1956. dummy_target::async_wait_fd ()
  1957. {
  1958. noprocess ();
  1959. }
  1960. int
  1961. debug_target::async_wait_fd ()
  1962. {
  1963. int result;
  1964. gdb_printf (gdb_stdlog, "-> %s->async_wait_fd (...)\n", this->beneath ()->shortname ());
  1965. result = this->beneath ()->async_wait_fd ();
  1966. gdb_printf (gdb_stdlog, "<- %s->async_wait_fd (", this->beneath ()->shortname ());
  1967. gdb_puts (") = ", gdb_stdlog);
  1968. target_debug_print_int (result);
  1969. gdb_puts ("\n", gdb_stdlog);
  1970. return result;
  1971. }
  1972. bool
  1973. target_ops::has_pending_events ()
  1974. {
  1975. return this->beneath ()->has_pending_events ();
  1976. }
  1977. bool
  1978. dummy_target::has_pending_events ()
  1979. {
  1980. return false;
  1981. }
  1982. bool
  1983. debug_target::has_pending_events ()
  1984. {
  1985. bool result;
  1986. gdb_printf (gdb_stdlog, "-> %s->has_pending_events (...)\n", this->beneath ()->shortname ());
  1987. result = this->beneath ()->has_pending_events ();
  1988. gdb_printf (gdb_stdlog, "<- %s->has_pending_events (", this->beneath ()->shortname ());
  1989. gdb_puts (") = ", gdb_stdlog);
  1990. target_debug_print_bool (result);
  1991. gdb_puts ("\n", gdb_stdlog);
  1992. return result;
  1993. }
  1994. void
  1995. target_ops::thread_events (int arg0)
  1996. {
  1997. this->beneath ()->thread_events (arg0);
  1998. }
  1999. void
  2000. dummy_target::thread_events (int arg0)
  2001. {
  2002. }
  2003. void
  2004. debug_target::thread_events (int arg0)
  2005. {
  2006. gdb_printf (gdb_stdlog, "-> %s->thread_events (...)\n", this->beneath ()->shortname ());
  2007. this->beneath ()->thread_events (arg0);
  2008. gdb_printf (gdb_stdlog, "<- %s->thread_events (", this->beneath ()->shortname ());
  2009. target_debug_print_int (arg0);
  2010. gdb_puts (")\n", gdb_stdlog);
  2011. }
  2012. bool
  2013. target_ops::supports_non_stop ()
  2014. {
  2015. return this->beneath ()->supports_non_stop ();
  2016. }
  2017. bool
  2018. dummy_target::supports_non_stop ()
  2019. {
  2020. return false;
  2021. }
  2022. bool
  2023. debug_target::supports_non_stop ()
  2024. {
  2025. bool result;
  2026. gdb_printf (gdb_stdlog, "-> %s->supports_non_stop (...)\n", this->beneath ()->shortname ());
  2027. result = this->beneath ()->supports_non_stop ();
  2028. gdb_printf (gdb_stdlog, "<- %s->supports_non_stop (", this->beneath ()->shortname ());
  2029. gdb_puts (") = ", gdb_stdlog);
  2030. target_debug_print_bool (result);
  2031. gdb_puts ("\n", gdb_stdlog);
  2032. return result;
  2033. }
  2034. bool
  2035. target_ops::always_non_stop_p ()
  2036. {
  2037. return this->beneath ()->always_non_stop_p ();
  2038. }
  2039. bool
  2040. dummy_target::always_non_stop_p ()
  2041. {
  2042. return false;
  2043. }
  2044. bool
  2045. debug_target::always_non_stop_p ()
  2046. {
  2047. bool result;
  2048. gdb_printf (gdb_stdlog, "-> %s->always_non_stop_p (...)\n", this->beneath ()->shortname ());
  2049. result = this->beneath ()->always_non_stop_p ();
  2050. gdb_printf (gdb_stdlog, "<- %s->always_non_stop_p (", this->beneath ()->shortname ());
  2051. gdb_puts (") = ", gdb_stdlog);
  2052. target_debug_print_bool (result);
  2053. gdb_puts ("\n", gdb_stdlog);
  2054. return result;
  2055. }
  2056. int
  2057. target_ops::find_memory_regions (find_memory_region_ftype arg0, void *arg1)
  2058. {
  2059. return this->beneath ()->find_memory_regions (arg0, arg1);
  2060. }
  2061. int
  2062. dummy_target::find_memory_regions (find_memory_region_ftype arg0, void *arg1)
  2063. {
  2064. return dummy_find_memory_regions (this, arg0, arg1);
  2065. }
  2066. int
  2067. debug_target::find_memory_regions (find_memory_region_ftype arg0, void *arg1)
  2068. {
  2069. int result;
  2070. gdb_printf (gdb_stdlog, "-> %s->find_memory_regions (...)\n", this->beneath ()->shortname ());
  2071. result = this->beneath ()->find_memory_regions (arg0, arg1);
  2072. gdb_printf (gdb_stdlog, "<- %s->find_memory_regions (", this->beneath ()->shortname ());
  2073. target_debug_print_find_memory_region_ftype (arg0);
  2074. gdb_puts (", ", gdb_stdlog);
  2075. target_debug_print_void_p (arg1);
  2076. gdb_puts (") = ", gdb_stdlog);
  2077. target_debug_print_int (result);
  2078. gdb_puts ("\n", gdb_stdlog);
  2079. return result;
  2080. }
  2081. gdb::unique_xmalloc_ptr<char>
  2082. target_ops::make_corefile_notes (bfd *arg0, int *arg1)
  2083. {
  2084. return this->beneath ()->make_corefile_notes (arg0, arg1);
  2085. }
  2086. gdb::unique_xmalloc_ptr<char>
  2087. dummy_target::make_corefile_notes (bfd *arg0, int *arg1)
  2088. {
  2089. return dummy_make_corefile_notes (this, arg0, arg1);
  2090. }
  2091. gdb::unique_xmalloc_ptr<char>
  2092. debug_target::make_corefile_notes (bfd *arg0, int *arg1)
  2093. {
  2094. gdb::unique_xmalloc_ptr<char> result;
  2095. gdb_printf (gdb_stdlog, "-> %s->make_corefile_notes (...)\n", this->beneath ()->shortname ());
  2096. result = this->beneath ()->make_corefile_notes (arg0, arg1);
  2097. gdb_printf (gdb_stdlog, "<- %s->make_corefile_notes (", this->beneath ()->shortname ());
  2098. target_debug_print_bfd_p (arg0);
  2099. gdb_puts (", ", gdb_stdlog);
  2100. target_debug_print_int_p (arg1);
  2101. gdb_puts (") = ", gdb_stdlog);
  2102. target_debug_print_gdb_unique_xmalloc_ptr_char (result);
  2103. gdb_puts ("\n", gdb_stdlog);
  2104. return result;
  2105. }
  2106. gdb_byte *
  2107. target_ops::get_bookmark (const char *arg0, int arg1)
  2108. {
  2109. return this->beneath ()->get_bookmark (arg0, arg1);
  2110. }
  2111. gdb_byte *
  2112. dummy_target::get_bookmark (const char *arg0, int arg1)
  2113. {
  2114. tcomplain ();
  2115. }
  2116. gdb_byte *
  2117. debug_target::get_bookmark (const char *arg0, int arg1)
  2118. {
  2119. gdb_byte * result;
  2120. gdb_printf (gdb_stdlog, "-> %s->get_bookmark (...)\n", this->beneath ()->shortname ());
  2121. result = this->beneath ()->get_bookmark (arg0, arg1);
  2122. gdb_printf (gdb_stdlog, "<- %s->get_bookmark (", this->beneath ()->shortname ());
  2123. target_debug_print_const_char_p (arg0);
  2124. gdb_puts (", ", gdb_stdlog);
  2125. target_debug_print_int (arg1);
  2126. gdb_puts (") = ", gdb_stdlog);
  2127. target_debug_print_gdb_byte_p (result);
  2128. gdb_puts ("\n", gdb_stdlog);
  2129. return result;
  2130. }
  2131. void
  2132. target_ops::goto_bookmark (const gdb_byte *arg0, int arg1)
  2133. {
  2134. this->beneath ()->goto_bookmark (arg0, arg1);
  2135. }
  2136. void
  2137. dummy_target::goto_bookmark (const gdb_byte *arg0, int arg1)
  2138. {
  2139. tcomplain ();
  2140. }
  2141. void
  2142. debug_target::goto_bookmark (const gdb_byte *arg0, int arg1)
  2143. {
  2144. gdb_printf (gdb_stdlog, "-> %s->goto_bookmark (...)\n", this->beneath ()->shortname ());
  2145. this->beneath ()->goto_bookmark (arg0, arg1);
  2146. gdb_printf (gdb_stdlog, "<- %s->goto_bookmark (", this->beneath ()->shortname ());
  2147. target_debug_print_const_gdb_byte_p (arg0);
  2148. gdb_puts (", ", gdb_stdlog);
  2149. target_debug_print_int (arg1);
  2150. gdb_puts (")\n", gdb_stdlog);
  2151. }
  2152. CORE_ADDR
  2153. target_ops::get_thread_local_address (ptid_t arg0, CORE_ADDR arg1, CORE_ADDR arg2)
  2154. {
  2155. return this->beneath ()->get_thread_local_address (arg0, arg1, arg2);
  2156. }
  2157. CORE_ADDR
  2158. dummy_target::get_thread_local_address (ptid_t arg0, CORE_ADDR arg1, CORE_ADDR arg2)
  2159. {
  2160. generic_tls_error ();
  2161. }
  2162. CORE_ADDR
  2163. debug_target::get_thread_local_address (ptid_t arg0, CORE_ADDR arg1, CORE_ADDR arg2)
  2164. {
  2165. CORE_ADDR result;
  2166. gdb_printf (gdb_stdlog, "-> %s->get_thread_local_address (...)\n", this->beneath ()->shortname ());
  2167. result = this->beneath ()->get_thread_local_address (arg0, arg1, arg2);
  2168. gdb_printf (gdb_stdlog, "<- %s->get_thread_local_address (", this->beneath ()->shortname ());
  2169. target_debug_print_ptid_t (arg0);
  2170. gdb_puts (", ", gdb_stdlog);
  2171. target_debug_print_CORE_ADDR (arg1);
  2172. gdb_puts (", ", gdb_stdlog);
  2173. target_debug_print_CORE_ADDR (arg2);
  2174. gdb_puts (") = ", gdb_stdlog);
  2175. target_debug_print_CORE_ADDR (result);
  2176. gdb_puts ("\n", gdb_stdlog);
  2177. return result;
  2178. }
  2179. enum target_xfer_status
  2180. target_ops::xfer_partial (enum target_object arg0, const char *arg1, gdb_byte *arg2, const gdb_byte *arg3, ULONGEST arg4, ULONGEST arg5, ULONGEST *arg6)
  2181. {
  2182. return this->beneath ()->xfer_partial (arg0, arg1, arg2, arg3, arg4, arg5, arg6);
  2183. }
  2184. enum target_xfer_status
  2185. dummy_target::xfer_partial (enum target_object arg0, const char *arg1, gdb_byte *arg2, const gdb_byte *arg3, ULONGEST arg4, ULONGEST arg5, ULONGEST *arg6)
  2186. {
  2187. return TARGET_XFER_E_IO;
  2188. }
  2189. enum target_xfer_status
  2190. debug_target::xfer_partial (enum target_object arg0, const char *arg1, gdb_byte *arg2, const gdb_byte *arg3, ULONGEST arg4, ULONGEST arg5, ULONGEST *arg6)
  2191. {
  2192. enum target_xfer_status result;
  2193. gdb_printf (gdb_stdlog, "-> %s->xfer_partial (...)\n", this->beneath ()->shortname ());
  2194. result = this->beneath ()->xfer_partial (arg0, arg1, arg2, arg3, arg4, arg5, arg6);
  2195. gdb_printf (gdb_stdlog, "<- %s->xfer_partial (", this->beneath ()->shortname ());
  2196. target_debug_print_enum_target_object (arg0);
  2197. gdb_puts (", ", gdb_stdlog);
  2198. target_debug_print_const_char_p (arg1);
  2199. gdb_puts (", ", gdb_stdlog);
  2200. target_debug_print_gdb_byte_p (arg2);
  2201. gdb_puts (", ", gdb_stdlog);
  2202. target_debug_print_const_gdb_byte_p (arg3);
  2203. gdb_puts (", ", gdb_stdlog);
  2204. target_debug_print_ULONGEST (arg4);
  2205. gdb_puts (", ", gdb_stdlog);
  2206. target_debug_print_ULONGEST (arg5);
  2207. gdb_puts (", ", gdb_stdlog);
  2208. target_debug_print_ULONGEST_p (arg6);
  2209. gdb_puts (") = ", gdb_stdlog);
  2210. target_debug_print_enum_target_xfer_status (result);
  2211. gdb_puts ("\n", gdb_stdlog);
  2212. return result;
  2213. }
  2214. ULONGEST
  2215. target_ops::get_memory_xfer_limit ()
  2216. {
  2217. return this->beneath ()->get_memory_xfer_limit ();
  2218. }
  2219. ULONGEST
  2220. dummy_target::get_memory_xfer_limit ()
  2221. {
  2222. return ULONGEST_MAX;
  2223. }
  2224. ULONGEST
  2225. debug_target::get_memory_xfer_limit ()
  2226. {
  2227. ULONGEST result;
  2228. gdb_printf (gdb_stdlog, "-> %s->get_memory_xfer_limit (...)\n", this->beneath ()->shortname ());
  2229. result = this->beneath ()->get_memory_xfer_limit ();
  2230. gdb_printf (gdb_stdlog, "<- %s->get_memory_xfer_limit (", this->beneath ()->shortname ());
  2231. gdb_puts (") = ", gdb_stdlog);
  2232. target_debug_print_ULONGEST (result);
  2233. gdb_puts ("\n", gdb_stdlog);
  2234. return result;
  2235. }
  2236. std::vector<mem_region>
  2237. target_ops::memory_map ()
  2238. {
  2239. return this->beneath ()->memory_map ();
  2240. }
  2241. std::vector<mem_region>
  2242. dummy_target::memory_map ()
  2243. {
  2244. return std::vector<mem_region> ();
  2245. }
  2246. std::vector<mem_region>
  2247. debug_target::memory_map ()
  2248. {
  2249. std::vector<mem_region> result;
  2250. gdb_printf (gdb_stdlog, "-> %s->memory_map (...)\n", this->beneath ()->shortname ());
  2251. result = this->beneath ()->memory_map ();
  2252. gdb_printf (gdb_stdlog, "<- %s->memory_map (", this->beneath ()->shortname ());
  2253. gdb_puts (") = ", gdb_stdlog);
  2254. target_debug_print_std_vector_mem_region (result);
  2255. gdb_puts ("\n", gdb_stdlog);
  2256. return result;
  2257. }
  2258. void
  2259. target_ops::flash_erase (ULONGEST arg0, LONGEST arg1)
  2260. {
  2261. this->beneath ()->flash_erase (arg0, arg1);
  2262. }
  2263. void
  2264. dummy_target::flash_erase (ULONGEST arg0, LONGEST arg1)
  2265. {
  2266. tcomplain ();
  2267. }
  2268. void
  2269. debug_target::flash_erase (ULONGEST arg0, LONGEST arg1)
  2270. {
  2271. gdb_printf (gdb_stdlog, "-> %s->flash_erase (...)\n", this->beneath ()->shortname ());
  2272. this->beneath ()->flash_erase (arg0, arg1);
  2273. gdb_printf (gdb_stdlog, "<- %s->flash_erase (", this->beneath ()->shortname ());
  2274. target_debug_print_ULONGEST (arg0);
  2275. gdb_puts (", ", gdb_stdlog);
  2276. target_debug_print_LONGEST (arg1);
  2277. gdb_puts (")\n", gdb_stdlog);
  2278. }
  2279. void
  2280. target_ops::flash_done ()
  2281. {
  2282. this->beneath ()->flash_done ();
  2283. }
  2284. void
  2285. dummy_target::flash_done ()
  2286. {
  2287. tcomplain ();
  2288. }
  2289. void
  2290. debug_target::flash_done ()
  2291. {
  2292. gdb_printf (gdb_stdlog, "-> %s->flash_done (...)\n", this->beneath ()->shortname ());
  2293. this->beneath ()->flash_done ();
  2294. gdb_printf (gdb_stdlog, "<- %s->flash_done (", this->beneath ()->shortname ());
  2295. gdb_puts (")\n", gdb_stdlog);
  2296. }
  2297. const struct target_desc *
  2298. target_ops::read_description ()
  2299. {
  2300. return this->beneath ()->read_description ();
  2301. }
  2302. const struct target_desc *
  2303. dummy_target::read_description ()
  2304. {
  2305. return NULL;
  2306. }
  2307. const struct target_desc *
  2308. debug_target::read_description ()
  2309. {
  2310. const struct target_desc * result;
  2311. gdb_printf (gdb_stdlog, "-> %s->read_description (...)\n", this->beneath ()->shortname ());
  2312. result = this->beneath ()->read_description ();
  2313. gdb_printf (gdb_stdlog, "<- %s->read_description (", this->beneath ()->shortname ());
  2314. gdb_puts (") = ", gdb_stdlog);
  2315. target_debug_print_const_struct_target_desc_p (result);
  2316. gdb_puts ("\n", gdb_stdlog);
  2317. return result;
  2318. }
  2319. ptid_t
  2320. target_ops::get_ada_task_ptid (long arg0, ULONGEST arg1)
  2321. {
  2322. return this->beneath ()->get_ada_task_ptid (arg0, arg1);
  2323. }
  2324. ptid_t
  2325. dummy_target::get_ada_task_ptid (long arg0, ULONGEST arg1)
  2326. {
  2327. return default_get_ada_task_ptid (this, arg0, arg1);
  2328. }
  2329. ptid_t
  2330. debug_target::get_ada_task_ptid (long arg0, ULONGEST arg1)
  2331. {
  2332. ptid_t result;
  2333. gdb_printf (gdb_stdlog, "-> %s->get_ada_task_ptid (...)\n", this->beneath ()->shortname ());
  2334. result = this->beneath ()->get_ada_task_ptid (arg0, arg1);
  2335. gdb_printf (gdb_stdlog, "<- %s->get_ada_task_ptid (", this->beneath ()->shortname ());
  2336. target_debug_print_long (arg0);
  2337. gdb_puts (", ", gdb_stdlog);
  2338. target_debug_print_ULONGEST (arg1);
  2339. gdb_puts (") = ", gdb_stdlog);
  2340. target_debug_print_ptid_t (result);
  2341. gdb_puts ("\n", gdb_stdlog);
  2342. return result;
  2343. }
  2344. int
  2345. target_ops::auxv_parse (gdb_byte **arg0, gdb_byte *arg1, CORE_ADDR *arg2, CORE_ADDR *arg3)
  2346. {
  2347. return this->beneath ()->auxv_parse (arg0, arg1, arg2, arg3);
  2348. }
  2349. int
  2350. dummy_target::auxv_parse (gdb_byte **arg0, gdb_byte *arg1, CORE_ADDR *arg2, CORE_ADDR *arg3)
  2351. {
  2352. return default_auxv_parse (this, arg0, arg1, arg2, arg3);
  2353. }
  2354. int
  2355. debug_target::auxv_parse (gdb_byte **arg0, gdb_byte *arg1, CORE_ADDR *arg2, CORE_ADDR *arg3)
  2356. {
  2357. int result;
  2358. gdb_printf (gdb_stdlog, "-> %s->auxv_parse (...)\n", this->beneath ()->shortname ());
  2359. result = this->beneath ()->auxv_parse (arg0, arg1, arg2, arg3);
  2360. gdb_printf (gdb_stdlog, "<- %s->auxv_parse (", this->beneath ()->shortname ());
  2361. target_debug_print_gdb_byte_pp (arg0);
  2362. gdb_puts (", ", gdb_stdlog);
  2363. target_debug_print_gdb_byte_p (arg1);
  2364. gdb_puts (", ", gdb_stdlog);
  2365. target_debug_print_CORE_ADDR_p (arg2);
  2366. gdb_puts (", ", gdb_stdlog);
  2367. target_debug_print_CORE_ADDR_p (arg3);
  2368. gdb_puts (") = ", gdb_stdlog);
  2369. target_debug_print_int (result);
  2370. gdb_puts ("\n", gdb_stdlog);
  2371. return result;
  2372. }
  2373. int
  2374. target_ops::search_memory (CORE_ADDR arg0, ULONGEST arg1, const gdb_byte *arg2, ULONGEST arg3, CORE_ADDR *arg4)
  2375. {
  2376. return this->beneath ()->search_memory (arg0, arg1, arg2, arg3, arg4);
  2377. }
  2378. int
  2379. dummy_target::search_memory (CORE_ADDR arg0, ULONGEST arg1, const gdb_byte *arg2, ULONGEST arg3, CORE_ADDR *arg4)
  2380. {
  2381. return default_search_memory (this, arg0, arg1, arg2, arg3, arg4);
  2382. }
  2383. int
  2384. debug_target::search_memory (CORE_ADDR arg0, ULONGEST arg1, const gdb_byte *arg2, ULONGEST arg3, CORE_ADDR *arg4)
  2385. {
  2386. int result;
  2387. gdb_printf (gdb_stdlog, "-> %s->search_memory (...)\n", this->beneath ()->shortname ());
  2388. result = this->beneath ()->search_memory (arg0, arg1, arg2, arg3, arg4);
  2389. gdb_printf (gdb_stdlog, "<- %s->search_memory (", this->beneath ()->shortname ());
  2390. target_debug_print_CORE_ADDR (arg0);
  2391. gdb_puts (", ", gdb_stdlog);
  2392. target_debug_print_ULONGEST (arg1);
  2393. gdb_puts (", ", gdb_stdlog);
  2394. target_debug_print_const_gdb_byte_p (arg2);
  2395. gdb_puts (", ", gdb_stdlog);
  2396. target_debug_print_ULONGEST (arg3);
  2397. gdb_puts (", ", gdb_stdlog);
  2398. target_debug_print_CORE_ADDR_p (arg4);
  2399. gdb_puts (") = ", gdb_stdlog);
  2400. target_debug_print_int (result);
  2401. gdb_puts ("\n", gdb_stdlog);
  2402. return result;
  2403. }
  2404. bool
  2405. target_ops::can_execute_reverse ()
  2406. {
  2407. return this->beneath ()->can_execute_reverse ();
  2408. }
  2409. bool
  2410. dummy_target::can_execute_reverse ()
  2411. {
  2412. return false;
  2413. }
  2414. bool
  2415. debug_target::can_execute_reverse ()
  2416. {
  2417. bool result;
  2418. gdb_printf (gdb_stdlog, "-> %s->can_execute_reverse (...)\n", this->beneath ()->shortname ());
  2419. result = this->beneath ()->can_execute_reverse ();
  2420. gdb_printf (gdb_stdlog, "<- %s->can_execute_reverse (", this->beneath ()->shortname ());
  2421. gdb_puts (") = ", gdb_stdlog);
  2422. target_debug_print_bool (result);
  2423. gdb_puts ("\n", gdb_stdlog);
  2424. return result;
  2425. }
  2426. enum exec_direction_kind
  2427. target_ops::execution_direction ()
  2428. {
  2429. return this->beneath ()->execution_direction ();
  2430. }
  2431. enum exec_direction_kind
  2432. dummy_target::execution_direction ()
  2433. {
  2434. return default_execution_direction (this);
  2435. }
  2436. enum exec_direction_kind
  2437. debug_target::execution_direction ()
  2438. {
  2439. enum exec_direction_kind result;
  2440. gdb_printf (gdb_stdlog, "-> %s->execution_direction (...)\n", this->beneath ()->shortname ());
  2441. result = this->beneath ()->execution_direction ();
  2442. gdb_printf (gdb_stdlog, "<- %s->execution_direction (", this->beneath ()->shortname ());
  2443. gdb_puts (") = ", gdb_stdlog);
  2444. target_debug_print_enum_exec_direction_kind (result);
  2445. gdb_puts ("\n", gdb_stdlog);
  2446. return result;
  2447. }
  2448. bool
  2449. target_ops::supports_multi_process ()
  2450. {
  2451. return this->beneath ()->supports_multi_process ();
  2452. }
  2453. bool
  2454. dummy_target::supports_multi_process ()
  2455. {
  2456. return false;
  2457. }
  2458. bool
  2459. debug_target::supports_multi_process ()
  2460. {
  2461. bool result;
  2462. gdb_printf (gdb_stdlog, "-> %s->supports_multi_process (...)\n", this->beneath ()->shortname ());
  2463. result = this->beneath ()->supports_multi_process ();
  2464. gdb_printf (gdb_stdlog, "<- %s->supports_multi_process (", this->beneath ()->shortname ());
  2465. gdb_puts (") = ", gdb_stdlog);
  2466. target_debug_print_bool (result);
  2467. gdb_puts ("\n", gdb_stdlog);
  2468. return result;
  2469. }
  2470. bool
  2471. target_ops::supports_enable_disable_tracepoint ()
  2472. {
  2473. return this->beneath ()->supports_enable_disable_tracepoint ();
  2474. }
  2475. bool
  2476. dummy_target::supports_enable_disable_tracepoint ()
  2477. {
  2478. return false;
  2479. }
  2480. bool
  2481. debug_target::supports_enable_disable_tracepoint ()
  2482. {
  2483. bool result;
  2484. gdb_printf (gdb_stdlog, "-> %s->supports_enable_disable_tracepoint (...)\n", this->beneath ()->shortname ());
  2485. result = this->beneath ()->supports_enable_disable_tracepoint ();
  2486. gdb_printf (gdb_stdlog, "<- %s->supports_enable_disable_tracepoint (", this->beneath ()->shortname ());
  2487. gdb_puts (") = ", gdb_stdlog);
  2488. target_debug_print_bool (result);
  2489. gdb_puts ("\n", gdb_stdlog);
  2490. return result;
  2491. }
  2492. bool
  2493. target_ops::supports_disable_randomization ()
  2494. {
  2495. return this->beneath ()->supports_disable_randomization ();
  2496. }
  2497. bool
  2498. dummy_target::supports_disable_randomization ()
  2499. {
  2500. return find_default_supports_disable_randomization (this);
  2501. }
  2502. bool
  2503. debug_target::supports_disable_randomization ()
  2504. {
  2505. bool result;
  2506. gdb_printf (gdb_stdlog, "-> %s->supports_disable_randomization (...)\n", this->beneath ()->shortname ());
  2507. result = this->beneath ()->supports_disable_randomization ();
  2508. gdb_printf (gdb_stdlog, "<- %s->supports_disable_randomization (", this->beneath ()->shortname ());
  2509. gdb_puts (") = ", gdb_stdlog);
  2510. target_debug_print_bool (result);
  2511. gdb_puts ("\n", gdb_stdlog);
  2512. return result;
  2513. }
  2514. bool
  2515. target_ops::supports_string_tracing ()
  2516. {
  2517. return this->beneath ()->supports_string_tracing ();
  2518. }
  2519. bool
  2520. dummy_target::supports_string_tracing ()
  2521. {
  2522. return false;
  2523. }
  2524. bool
  2525. debug_target::supports_string_tracing ()
  2526. {
  2527. bool result;
  2528. gdb_printf (gdb_stdlog, "-> %s->supports_string_tracing (...)\n", this->beneath ()->shortname ());
  2529. result = this->beneath ()->supports_string_tracing ();
  2530. gdb_printf (gdb_stdlog, "<- %s->supports_string_tracing (", this->beneath ()->shortname ());
  2531. gdb_puts (") = ", gdb_stdlog);
  2532. target_debug_print_bool (result);
  2533. gdb_puts ("\n", gdb_stdlog);
  2534. return result;
  2535. }
  2536. bool
  2537. target_ops::supports_evaluation_of_breakpoint_conditions ()
  2538. {
  2539. return this->beneath ()->supports_evaluation_of_breakpoint_conditions ();
  2540. }
  2541. bool
  2542. dummy_target::supports_evaluation_of_breakpoint_conditions ()
  2543. {
  2544. return false;
  2545. }
  2546. bool
  2547. debug_target::supports_evaluation_of_breakpoint_conditions ()
  2548. {
  2549. bool result;
  2550. gdb_printf (gdb_stdlog, "-> %s->supports_evaluation_of_breakpoint_conditions (...)\n", this->beneath ()->shortname ());
  2551. result = this->beneath ()->supports_evaluation_of_breakpoint_conditions ();
  2552. gdb_printf (gdb_stdlog, "<- %s->supports_evaluation_of_breakpoint_conditions (", this->beneath ()->shortname ());
  2553. gdb_puts (") = ", gdb_stdlog);
  2554. target_debug_print_bool (result);
  2555. gdb_puts ("\n", gdb_stdlog);
  2556. return result;
  2557. }
  2558. bool
  2559. target_ops::supports_dumpcore ()
  2560. {
  2561. return this->beneath ()->supports_dumpcore ();
  2562. }
  2563. bool
  2564. dummy_target::supports_dumpcore ()
  2565. {
  2566. return false;
  2567. }
  2568. bool
  2569. debug_target::supports_dumpcore ()
  2570. {
  2571. bool result;
  2572. gdb_printf (gdb_stdlog, "-> %s->supports_dumpcore (...)\n", this->beneath ()->shortname ());
  2573. result = this->beneath ()->supports_dumpcore ();
  2574. gdb_printf (gdb_stdlog, "<- %s->supports_dumpcore (", this->beneath ()->shortname ());
  2575. gdb_puts (") = ", gdb_stdlog);
  2576. target_debug_print_bool (result);
  2577. gdb_puts ("\n", gdb_stdlog);
  2578. return result;
  2579. }
  2580. void
  2581. target_ops::dumpcore (const char *arg0)
  2582. {
  2583. this->beneath ()->dumpcore (arg0);
  2584. }
  2585. void
  2586. dummy_target::dumpcore (const char *arg0)
  2587. {
  2588. }
  2589. void
  2590. debug_target::dumpcore (const char *arg0)
  2591. {
  2592. gdb_printf (gdb_stdlog, "-> %s->dumpcore (...)\n", this->beneath ()->shortname ());
  2593. this->beneath ()->dumpcore (arg0);
  2594. gdb_printf (gdb_stdlog, "<- %s->dumpcore (", this->beneath ()->shortname ());
  2595. target_debug_print_const_char_p (arg0);
  2596. gdb_puts (")\n", gdb_stdlog);
  2597. }
  2598. bool
  2599. target_ops::can_run_breakpoint_commands ()
  2600. {
  2601. return this->beneath ()->can_run_breakpoint_commands ();
  2602. }
  2603. bool
  2604. dummy_target::can_run_breakpoint_commands ()
  2605. {
  2606. return false;
  2607. }
  2608. bool
  2609. debug_target::can_run_breakpoint_commands ()
  2610. {
  2611. bool result;
  2612. gdb_printf (gdb_stdlog, "-> %s->can_run_breakpoint_commands (...)\n", this->beneath ()->shortname ());
  2613. result = this->beneath ()->can_run_breakpoint_commands ();
  2614. gdb_printf (gdb_stdlog, "<- %s->can_run_breakpoint_commands (", this->beneath ()->shortname ());
  2615. gdb_puts (") = ", gdb_stdlog);
  2616. target_debug_print_bool (result);
  2617. gdb_puts ("\n", gdb_stdlog);
  2618. return result;
  2619. }
  2620. struct gdbarch *
  2621. target_ops::thread_architecture (ptid_t arg0)
  2622. {
  2623. return this->beneath ()->thread_architecture (arg0);
  2624. }
  2625. struct gdbarch *
  2626. dummy_target::thread_architecture (ptid_t arg0)
  2627. {
  2628. return NULL;
  2629. }
  2630. struct gdbarch *
  2631. debug_target::thread_architecture (ptid_t arg0)
  2632. {
  2633. struct gdbarch * result;
  2634. gdb_printf (gdb_stdlog, "-> %s->thread_architecture (...)\n", this->beneath ()->shortname ());
  2635. result = this->beneath ()->thread_architecture (arg0);
  2636. gdb_printf (gdb_stdlog, "<- %s->thread_architecture (", this->beneath ()->shortname ());
  2637. target_debug_print_ptid_t (arg0);
  2638. gdb_puts (") = ", gdb_stdlog);
  2639. target_debug_print_struct_gdbarch_p (result);
  2640. gdb_puts ("\n", gdb_stdlog);
  2641. return result;
  2642. }
  2643. struct address_space *
  2644. target_ops::thread_address_space (ptid_t arg0)
  2645. {
  2646. return this->beneath ()->thread_address_space (arg0);
  2647. }
  2648. struct address_space *
  2649. dummy_target::thread_address_space (ptid_t arg0)
  2650. {
  2651. return NULL;
  2652. }
  2653. struct address_space *
  2654. debug_target::thread_address_space (ptid_t arg0)
  2655. {
  2656. struct address_space * result;
  2657. gdb_printf (gdb_stdlog, "-> %s->thread_address_space (...)\n", this->beneath ()->shortname ());
  2658. result = this->beneath ()->thread_address_space (arg0);
  2659. gdb_printf (gdb_stdlog, "<- %s->thread_address_space (", this->beneath ()->shortname ());
  2660. target_debug_print_ptid_t (arg0);
  2661. gdb_puts (") = ", gdb_stdlog);
  2662. target_debug_print_struct_address_space_p (result);
  2663. gdb_puts ("\n", gdb_stdlog);
  2664. return result;
  2665. }
  2666. bool
  2667. target_ops::filesystem_is_local ()
  2668. {
  2669. return this->beneath ()->filesystem_is_local ();
  2670. }
  2671. bool
  2672. dummy_target::filesystem_is_local ()
  2673. {
  2674. return true;
  2675. }
  2676. bool
  2677. debug_target::filesystem_is_local ()
  2678. {
  2679. bool result;
  2680. gdb_printf (gdb_stdlog, "-> %s->filesystem_is_local (...)\n", this->beneath ()->shortname ());
  2681. result = this->beneath ()->filesystem_is_local ();
  2682. gdb_printf (gdb_stdlog, "<- %s->filesystem_is_local (", this->beneath ()->shortname ());
  2683. gdb_puts (") = ", gdb_stdlog);
  2684. target_debug_print_bool (result);
  2685. gdb_puts ("\n", gdb_stdlog);
  2686. return result;
  2687. }
  2688. void
  2689. target_ops::trace_init ()
  2690. {
  2691. this->beneath ()->trace_init ();
  2692. }
  2693. void
  2694. dummy_target::trace_init ()
  2695. {
  2696. tcomplain ();
  2697. }
  2698. void
  2699. debug_target::trace_init ()
  2700. {
  2701. gdb_printf (gdb_stdlog, "-> %s->trace_init (...)\n", this->beneath ()->shortname ());
  2702. this->beneath ()->trace_init ();
  2703. gdb_printf (gdb_stdlog, "<- %s->trace_init (", this->beneath ()->shortname ());
  2704. gdb_puts (")\n", gdb_stdlog);
  2705. }
  2706. void
  2707. target_ops::download_tracepoint (struct bp_location *arg0)
  2708. {
  2709. this->beneath ()->download_tracepoint (arg0);
  2710. }
  2711. void
  2712. dummy_target::download_tracepoint (struct bp_location *arg0)
  2713. {
  2714. tcomplain ();
  2715. }
  2716. void
  2717. debug_target::download_tracepoint (struct bp_location *arg0)
  2718. {
  2719. gdb_printf (gdb_stdlog, "-> %s->download_tracepoint (...)\n", this->beneath ()->shortname ());
  2720. this->beneath ()->download_tracepoint (arg0);
  2721. gdb_printf (gdb_stdlog, "<- %s->download_tracepoint (", this->beneath ()->shortname ());
  2722. target_debug_print_struct_bp_location_p (arg0);
  2723. gdb_puts (")\n", gdb_stdlog);
  2724. }
  2725. bool
  2726. target_ops::can_download_tracepoint ()
  2727. {
  2728. return this->beneath ()->can_download_tracepoint ();
  2729. }
  2730. bool
  2731. dummy_target::can_download_tracepoint ()
  2732. {
  2733. return false;
  2734. }
  2735. bool
  2736. debug_target::can_download_tracepoint ()
  2737. {
  2738. bool result;
  2739. gdb_printf (gdb_stdlog, "-> %s->can_download_tracepoint (...)\n", this->beneath ()->shortname ());
  2740. result = this->beneath ()->can_download_tracepoint ();
  2741. gdb_printf (gdb_stdlog, "<- %s->can_download_tracepoint (", this->beneath ()->shortname ());
  2742. gdb_puts (") = ", gdb_stdlog);
  2743. target_debug_print_bool (result);
  2744. gdb_puts ("\n", gdb_stdlog);
  2745. return result;
  2746. }
  2747. void
  2748. target_ops::download_trace_state_variable (const trace_state_variable &arg0)
  2749. {
  2750. this->beneath ()->download_trace_state_variable (arg0);
  2751. }
  2752. void
  2753. dummy_target::download_trace_state_variable (const trace_state_variable &arg0)
  2754. {
  2755. tcomplain ();
  2756. }
  2757. void
  2758. debug_target::download_trace_state_variable (const trace_state_variable &arg0)
  2759. {
  2760. gdb_printf (gdb_stdlog, "-> %s->download_trace_state_variable (...)\n", this->beneath ()->shortname ());
  2761. this->beneath ()->download_trace_state_variable (arg0);
  2762. gdb_printf (gdb_stdlog, "<- %s->download_trace_state_variable (", this->beneath ()->shortname ());
  2763. target_debug_print_const_trace_state_variable_r (arg0);
  2764. gdb_puts (")\n", gdb_stdlog);
  2765. }
  2766. void
  2767. target_ops::enable_tracepoint (struct bp_location *arg0)
  2768. {
  2769. this->beneath ()->enable_tracepoint (arg0);
  2770. }
  2771. void
  2772. dummy_target::enable_tracepoint (struct bp_location *arg0)
  2773. {
  2774. tcomplain ();
  2775. }
  2776. void
  2777. debug_target::enable_tracepoint (struct bp_location *arg0)
  2778. {
  2779. gdb_printf (gdb_stdlog, "-> %s->enable_tracepoint (...)\n", this->beneath ()->shortname ());
  2780. this->beneath ()->enable_tracepoint (arg0);
  2781. gdb_printf (gdb_stdlog, "<- %s->enable_tracepoint (", this->beneath ()->shortname ());
  2782. target_debug_print_struct_bp_location_p (arg0);
  2783. gdb_puts (")\n", gdb_stdlog);
  2784. }
  2785. void
  2786. target_ops::disable_tracepoint (struct bp_location *arg0)
  2787. {
  2788. this->beneath ()->disable_tracepoint (arg0);
  2789. }
  2790. void
  2791. dummy_target::disable_tracepoint (struct bp_location *arg0)
  2792. {
  2793. tcomplain ();
  2794. }
  2795. void
  2796. debug_target::disable_tracepoint (struct bp_location *arg0)
  2797. {
  2798. gdb_printf (gdb_stdlog, "-> %s->disable_tracepoint (...)\n", this->beneath ()->shortname ());
  2799. this->beneath ()->disable_tracepoint (arg0);
  2800. gdb_printf (gdb_stdlog, "<- %s->disable_tracepoint (", this->beneath ()->shortname ());
  2801. target_debug_print_struct_bp_location_p (arg0);
  2802. gdb_puts (")\n", gdb_stdlog);
  2803. }
  2804. void
  2805. target_ops::trace_set_readonly_regions ()
  2806. {
  2807. this->beneath ()->trace_set_readonly_regions ();
  2808. }
  2809. void
  2810. dummy_target::trace_set_readonly_regions ()
  2811. {
  2812. tcomplain ();
  2813. }
  2814. void
  2815. debug_target::trace_set_readonly_regions ()
  2816. {
  2817. gdb_printf (gdb_stdlog, "-> %s->trace_set_readonly_regions (...)\n", this->beneath ()->shortname ());
  2818. this->beneath ()->trace_set_readonly_regions ();
  2819. gdb_printf (gdb_stdlog, "<- %s->trace_set_readonly_regions (", this->beneath ()->shortname ());
  2820. gdb_puts (")\n", gdb_stdlog);
  2821. }
  2822. void
  2823. target_ops::trace_start ()
  2824. {
  2825. this->beneath ()->trace_start ();
  2826. }
  2827. void
  2828. dummy_target::trace_start ()
  2829. {
  2830. tcomplain ();
  2831. }
  2832. void
  2833. debug_target::trace_start ()
  2834. {
  2835. gdb_printf (gdb_stdlog, "-> %s->trace_start (...)\n", this->beneath ()->shortname ());
  2836. this->beneath ()->trace_start ();
  2837. gdb_printf (gdb_stdlog, "<- %s->trace_start (", this->beneath ()->shortname ());
  2838. gdb_puts (")\n", gdb_stdlog);
  2839. }
  2840. int
  2841. target_ops::get_trace_status (struct trace_status *arg0)
  2842. {
  2843. return this->beneath ()->get_trace_status (arg0);
  2844. }
  2845. int
  2846. dummy_target::get_trace_status (struct trace_status *arg0)
  2847. {
  2848. return -1;
  2849. }
  2850. int
  2851. debug_target::get_trace_status (struct trace_status *arg0)
  2852. {
  2853. int result;
  2854. gdb_printf (gdb_stdlog, "-> %s->get_trace_status (...)\n", this->beneath ()->shortname ());
  2855. result = this->beneath ()->get_trace_status (arg0);
  2856. gdb_printf (gdb_stdlog, "<- %s->get_trace_status (", this->beneath ()->shortname ());
  2857. target_debug_print_struct_trace_status_p (arg0);
  2858. gdb_puts (") = ", gdb_stdlog);
  2859. target_debug_print_int (result);
  2860. gdb_puts ("\n", gdb_stdlog);
  2861. return result;
  2862. }
  2863. void
  2864. target_ops::get_tracepoint_status (struct breakpoint *arg0, struct uploaded_tp *arg1)
  2865. {
  2866. this->beneath ()->get_tracepoint_status (arg0, arg1);
  2867. }
  2868. void
  2869. dummy_target::get_tracepoint_status (struct breakpoint *arg0, struct uploaded_tp *arg1)
  2870. {
  2871. tcomplain ();
  2872. }
  2873. void
  2874. debug_target::get_tracepoint_status (struct breakpoint *arg0, struct uploaded_tp *arg1)
  2875. {
  2876. gdb_printf (gdb_stdlog, "-> %s->get_tracepoint_status (...)\n", this->beneath ()->shortname ());
  2877. this->beneath ()->get_tracepoint_status (arg0, arg1);
  2878. gdb_printf (gdb_stdlog, "<- %s->get_tracepoint_status (", this->beneath ()->shortname ());
  2879. target_debug_print_struct_breakpoint_p (arg0);
  2880. gdb_puts (", ", gdb_stdlog);
  2881. target_debug_print_struct_uploaded_tp_p (arg1);
  2882. gdb_puts (")\n", gdb_stdlog);
  2883. }
  2884. void
  2885. target_ops::trace_stop ()
  2886. {
  2887. this->beneath ()->trace_stop ();
  2888. }
  2889. void
  2890. dummy_target::trace_stop ()
  2891. {
  2892. tcomplain ();
  2893. }
  2894. void
  2895. debug_target::trace_stop ()
  2896. {
  2897. gdb_printf (gdb_stdlog, "-> %s->trace_stop (...)\n", this->beneath ()->shortname ());
  2898. this->beneath ()->trace_stop ();
  2899. gdb_printf (gdb_stdlog, "<- %s->trace_stop (", this->beneath ()->shortname ());
  2900. gdb_puts (")\n", gdb_stdlog);
  2901. }
  2902. int
  2903. target_ops::trace_find (enum trace_find_type arg0, int arg1, CORE_ADDR arg2, CORE_ADDR arg3, int *arg4)
  2904. {
  2905. return this->beneath ()->trace_find (arg0, arg1, arg2, arg3, arg4);
  2906. }
  2907. int
  2908. dummy_target::trace_find (enum trace_find_type arg0, int arg1, CORE_ADDR arg2, CORE_ADDR arg3, int *arg4)
  2909. {
  2910. return -1;
  2911. }
  2912. int
  2913. debug_target::trace_find (enum trace_find_type arg0, int arg1, CORE_ADDR arg2, CORE_ADDR arg3, int *arg4)
  2914. {
  2915. int result;
  2916. gdb_printf (gdb_stdlog, "-> %s->trace_find (...)\n", this->beneath ()->shortname ());
  2917. result = this->beneath ()->trace_find (arg0, arg1, arg2, arg3, arg4);
  2918. gdb_printf (gdb_stdlog, "<- %s->trace_find (", this->beneath ()->shortname ());
  2919. target_debug_print_enum_trace_find_type (arg0);
  2920. gdb_puts (", ", gdb_stdlog);
  2921. target_debug_print_int (arg1);
  2922. gdb_puts (", ", gdb_stdlog);
  2923. target_debug_print_CORE_ADDR (arg2);
  2924. gdb_puts (", ", gdb_stdlog);
  2925. target_debug_print_CORE_ADDR (arg3);
  2926. gdb_puts (", ", gdb_stdlog);
  2927. target_debug_print_int_p (arg4);
  2928. gdb_puts (") = ", gdb_stdlog);
  2929. target_debug_print_int (result);
  2930. gdb_puts ("\n", gdb_stdlog);
  2931. return result;
  2932. }
  2933. bool
  2934. target_ops::get_trace_state_variable_value (int arg0, LONGEST *arg1)
  2935. {
  2936. return this->beneath ()->get_trace_state_variable_value (arg0, arg1);
  2937. }
  2938. bool
  2939. dummy_target::get_trace_state_variable_value (int arg0, LONGEST *arg1)
  2940. {
  2941. return false;
  2942. }
  2943. bool
  2944. debug_target::get_trace_state_variable_value (int arg0, LONGEST *arg1)
  2945. {
  2946. bool result;
  2947. gdb_printf (gdb_stdlog, "-> %s->get_trace_state_variable_value (...)\n", this->beneath ()->shortname ());
  2948. result = this->beneath ()->get_trace_state_variable_value (arg0, arg1);
  2949. gdb_printf (gdb_stdlog, "<- %s->get_trace_state_variable_value (", this->beneath ()->shortname ());
  2950. target_debug_print_int (arg0);
  2951. gdb_puts (", ", gdb_stdlog);
  2952. target_debug_print_LONGEST_p (arg1);
  2953. gdb_puts (") = ", gdb_stdlog);
  2954. target_debug_print_bool (result);
  2955. gdb_puts ("\n", gdb_stdlog);
  2956. return result;
  2957. }
  2958. int
  2959. target_ops::save_trace_data (const char *arg0)
  2960. {
  2961. return this->beneath ()->save_trace_data (arg0);
  2962. }
  2963. int
  2964. dummy_target::save_trace_data (const char *arg0)
  2965. {
  2966. tcomplain ();
  2967. }
  2968. int
  2969. debug_target::save_trace_data (const char *arg0)
  2970. {
  2971. int result;
  2972. gdb_printf (gdb_stdlog, "-> %s->save_trace_data (...)\n", this->beneath ()->shortname ());
  2973. result = this->beneath ()->save_trace_data (arg0);
  2974. gdb_printf (gdb_stdlog, "<- %s->save_trace_data (", this->beneath ()->shortname ());
  2975. target_debug_print_const_char_p (arg0);
  2976. gdb_puts (") = ", gdb_stdlog);
  2977. target_debug_print_int (result);
  2978. gdb_puts ("\n", gdb_stdlog);
  2979. return result;
  2980. }
  2981. int
  2982. target_ops::upload_tracepoints (struct uploaded_tp **arg0)
  2983. {
  2984. return this->beneath ()->upload_tracepoints (arg0);
  2985. }
  2986. int
  2987. dummy_target::upload_tracepoints (struct uploaded_tp **arg0)
  2988. {
  2989. return 0;
  2990. }
  2991. int
  2992. debug_target::upload_tracepoints (struct uploaded_tp **arg0)
  2993. {
  2994. int result;
  2995. gdb_printf (gdb_stdlog, "-> %s->upload_tracepoints (...)\n", this->beneath ()->shortname ());
  2996. result = this->beneath ()->upload_tracepoints (arg0);
  2997. gdb_printf (gdb_stdlog, "<- %s->upload_tracepoints (", this->beneath ()->shortname ());
  2998. target_debug_print_struct_uploaded_tp_pp (arg0);
  2999. gdb_puts (") = ", gdb_stdlog);
  3000. target_debug_print_int (result);
  3001. gdb_puts ("\n", gdb_stdlog);
  3002. return result;
  3003. }
  3004. int
  3005. target_ops::upload_trace_state_variables (struct uploaded_tsv **arg0)
  3006. {
  3007. return this->beneath ()->upload_trace_state_variables (arg0);
  3008. }
  3009. int
  3010. dummy_target::upload_trace_state_variables (struct uploaded_tsv **arg0)
  3011. {
  3012. return 0;
  3013. }
  3014. int
  3015. debug_target::upload_trace_state_variables (struct uploaded_tsv **arg0)
  3016. {
  3017. int result;
  3018. gdb_printf (gdb_stdlog, "-> %s->upload_trace_state_variables (...)\n", this->beneath ()->shortname ());
  3019. result = this->beneath ()->upload_trace_state_variables (arg0);
  3020. gdb_printf (gdb_stdlog, "<- %s->upload_trace_state_variables (", this->beneath ()->shortname ());
  3021. target_debug_print_struct_uploaded_tsv_pp (arg0);
  3022. gdb_puts (") = ", gdb_stdlog);
  3023. target_debug_print_int (result);
  3024. gdb_puts ("\n", gdb_stdlog);
  3025. return result;
  3026. }
  3027. LONGEST
  3028. target_ops::get_raw_trace_data (gdb_byte *arg0, ULONGEST arg1, LONGEST arg2)
  3029. {
  3030. return this->beneath ()->get_raw_trace_data (arg0, arg1, arg2);
  3031. }
  3032. LONGEST
  3033. dummy_target::get_raw_trace_data (gdb_byte *arg0, ULONGEST arg1, LONGEST arg2)
  3034. {
  3035. tcomplain ();
  3036. }
  3037. LONGEST
  3038. debug_target::get_raw_trace_data (gdb_byte *arg0, ULONGEST arg1, LONGEST arg2)
  3039. {
  3040. LONGEST result;
  3041. gdb_printf (gdb_stdlog, "-> %s->get_raw_trace_data (...)\n", this->beneath ()->shortname ());
  3042. result = this->beneath ()->get_raw_trace_data (arg0, arg1, arg2);
  3043. gdb_printf (gdb_stdlog, "<- %s->get_raw_trace_data (", this->beneath ()->shortname ());
  3044. target_debug_print_gdb_byte_p (arg0);
  3045. gdb_puts (", ", gdb_stdlog);
  3046. target_debug_print_ULONGEST (arg1);
  3047. gdb_puts (", ", gdb_stdlog);
  3048. target_debug_print_LONGEST (arg2);
  3049. gdb_puts (") = ", gdb_stdlog);
  3050. target_debug_print_LONGEST (result);
  3051. gdb_puts ("\n", gdb_stdlog);
  3052. return result;
  3053. }
  3054. int
  3055. target_ops::get_min_fast_tracepoint_insn_len ()
  3056. {
  3057. return this->beneath ()->get_min_fast_tracepoint_insn_len ();
  3058. }
  3059. int
  3060. dummy_target::get_min_fast_tracepoint_insn_len ()
  3061. {
  3062. return -1;
  3063. }
  3064. int
  3065. debug_target::get_min_fast_tracepoint_insn_len ()
  3066. {
  3067. int result;
  3068. gdb_printf (gdb_stdlog, "-> %s->get_min_fast_tracepoint_insn_len (...)\n", this->beneath ()->shortname ());
  3069. result = this->beneath ()->get_min_fast_tracepoint_insn_len ();
  3070. gdb_printf (gdb_stdlog, "<- %s->get_min_fast_tracepoint_insn_len (", this->beneath ()->shortname ());
  3071. gdb_puts (") = ", gdb_stdlog);
  3072. target_debug_print_int (result);
  3073. gdb_puts ("\n", gdb_stdlog);
  3074. return result;
  3075. }
  3076. void
  3077. target_ops::set_disconnected_tracing (int arg0)
  3078. {
  3079. this->beneath ()->set_disconnected_tracing (arg0);
  3080. }
  3081. void
  3082. dummy_target::set_disconnected_tracing (int arg0)
  3083. {
  3084. }
  3085. void
  3086. debug_target::set_disconnected_tracing (int arg0)
  3087. {
  3088. gdb_printf (gdb_stdlog, "-> %s->set_disconnected_tracing (...)\n", this->beneath ()->shortname ());
  3089. this->beneath ()->set_disconnected_tracing (arg0);
  3090. gdb_printf (gdb_stdlog, "<- %s->set_disconnected_tracing (", this->beneath ()->shortname ());
  3091. target_debug_print_int (arg0);
  3092. gdb_puts (")\n", gdb_stdlog);
  3093. }
  3094. void
  3095. target_ops::set_circular_trace_buffer (int arg0)
  3096. {
  3097. this->beneath ()->set_circular_trace_buffer (arg0);
  3098. }
  3099. void
  3100. dummy_target::set_circular_trace_buffer (int arg0)
  3101. {
  3102. }
  3103. void
  3104. debug_target::set_circular_trace_buffer (int arg0)
  3105. {
  3106. gdb_printf (gdb_stdlog, "-> %s->set_circular_trace_buffer (...)\n", this->beneath ()->shortname ());
  3107. this->beneath ()->set_circular_trace_buffer (arg0);
  3108. gdb_printf (gdb_stdlog, "<- %s->set_circular_trace_buffer (", this->beneath ()->shortname ());
  3109. target_debug_print_int (arg0);
  3110. gdb_puts (")\n", gdb_stdlog);
  3111. }
  3112. void
  3113. target_ops::set_trace_buffer_size (LONGEST arg0)
  3114. {
  3115. this->beneath ()->set_trace_buffer_size (arg0);
  3116. }
  3117. void
  3118. dummy_target::set_trace_buffer_size (LONGEST arg0)
  3119. {
  3120. }
  3121. void
  3122. debug_target::set_trace_buffer_size (LONGEST arg0)
  3123. {
  3124. gdb_printf (gdb_stdlog, "-> %s->set_trace_buffer_size (...)\n", this->beneath ()->shortname ());
  3125. this->beneath ()->set_trace_buffer_size (arg0);
  3126. gdb_printf (gdb_stdlog, "<- %s->set_trace_buffer_size (", this->beneath ()->shortname ());
  3127. target_debug_print_LONGEST (arg0);
  3128. gdb_puts (")\n", gdb_stdlog);
  3129. }
  3130. bool
  3131. target_ops::set_trace_notes (const char *arg0, const char *arg1, const char *arg2)
  3132. {
  3133. return this->beneath ()->set_trace_notes (arg0, arg1, arg2);
  3134. }
  3135. bool
  3136. dummy_target::set_trace_notes (const char *arg0, const char *arg1, const char *arg2)
  3137. {
  3138. return false;
  3139. }
  3140. bool
  3141. debug_target::set_trace_notes (const char *arg0, const char *arg1, const char *arg2)
  3142. {
  3143. bool result;
  3144. gdb_printf (gdb_stdlog, "-> %s->set_trace_notes (...)\n", this->beneath ()->shortname ());
  3145. result = this->beneath ()->set_trace_notes (arg0, arg1, arg2);
  3146. gdb_printf (gdb_stdlog, "<- %s->set_trace_notes (", this->beneath ()->shortname ());
  3147. target_debug_print_const_char_p (arg0);
  3148. gdb_puts (", ", gdb_stdlog);
  3149. target_debug_print_const_char_p (arg1);
  3150. gdb_puts (", ", gdb_stdlog);
  3151. target_debug_print_const_char_p (arg2);
  3152. gdb_puts (") = ", gdb_stdlog);
  3153. target_debug_print_bool (result);
  3154. gdb_puts ("\n", gdb_stdlog);
  3155. return result;
  3156. }
  3157. int
  3158. target_ops::core_of_thread (ptid_t arg0)
  3159. {
  3160. return this->beneath ()->core_of_thread (arg0);
  3161. }
  3162. int
  3163. dummy_target::core_of_thread (ptid_t arg0)
  3164. {
  3165. return -1;
  3166. }
  3167. int
  3168. debug_target::core_of_thread (ptid_t arg0)
  3169. {
  3170. int result;
  3171. gdb_printf (gdb_stdlog, "-> %s->core_of_thread (...)\n", this->beneath ()->shortname ());
  3172. result = this->beneath ()->core_of_thread (arg0);
  3173. gdb_printf (gdb_stdlog, "<- %s->core_of_thread (", this->beneath ()->shortname ());
  3174. target_debug_print_ptid_t (arg0);
  3175. gdb_puts (") = ", gdb_stdlog);
  3176. target_debug_print_int (result);
  3177. gdb_puts ("\n", gdb_stdlog);
  3178. return result;
  3179. }
  3180. int
  3181. target_ops::verify_memory (const gdb_byte *arg0, CORE_ADDR arg1, ULONGEST arg2)
  3182. {
  3183. return this->beneath ()->verify_memory (arg0, arg1, arg2);
  3184. }
  3185. int
  3186. dummy_target::verify_memory (const gdb_byte *arg0, CORE_ADDR arg1, ULONGEST arg2)
  3187. {
  3188. return default_verify_memory (this, arg0, arg1, arg2);
  3189. }
  3190. int
  3191. debug_target::verify_memory (const gdb_byte *arg0, CORE_ADDR arg1, ULONGEST arg2)
  3192. {
  3193. int result;
  3194. gdb_printf (gdb_stdlog, "-> %s->verify_memory (...)\n", this->beneath ()->shortname ());
  3195. result = this->beneath ()->verify_memory (arg0, arg1, arg2);
  3196. gdb_printf (gdb_stdlog, "<- %s->verify_memory (", this->beneath ()->shortname ());
  3197. target_debug_print_const_gdb_byte_p (arg0);
  3198. gdb_puts (", ", gdb_stdlog);
  3199. target_debug_print_CORE_ADDR (arg1);
  3200. gdb_puts (", ", gdb_stdlog);
  3201. target_debug_print_ULONGEST (arg2);
  3202. gdb_puts (") = ", gdb_stdlog);
  3203. target_debug_print_int (result);
  3204. gdb_puts ("\n", gdb_stdlog);
  3205. return result;
  3206. }
  3207. bool
  3208. target_ops::get_tib_address (ptid_t arg0, CORE_ADDR *arg1)
  3209. {
  3210. return this->beneath ()->get_tib_address (arg0, arg1);
  3211. }
  3212. bool
  3213. dummy_target::get_tib_address (ptid_t arg0, CORE_ADDR *arg1)
  3214. {
  3215. tcomplain ();
  3216. }
  3217. bool
  3218. debug_target::get_tib_address (ptid_t arg0, CORE_ADDR *arg1)
  3219. {
  3220. bool result;
  3221. gdb_printf (gdb_stdlog, "-> %s->get_tib_address (...)\n", this->beneath ()->shortname ());
  3222. result = this->beneath ()->get_tib_address (arg0, arg1);
  3223. gdb_printf (gdb_stdlog, "<- %s->get_tib_address (", this->beneath ()->shortname ());
  3224. target_debug_print_ptid_t (arg0);
  3225. gdb_puts (", ", gdb_stdlog);
  3226. target_debug_print_CORE_ADDR_p (arg1);
  3227. gdb_puts (") = ", gdb_stdlog);
  3228. target_debug_print_bool (result);
  3229. gdb_puts ("\n", gdb_stdlog);
  3230. return result;
  3231. }
  3232. void
  3233. target_ops::set_permissions ()
  3234. {
  3235. this->beneath ()->set_permissions ();
  3236. }
  3237. void
  3238. dummy_target::set_permissions ()
  3239. {
  3240. }
  3241. void
  3242. debug_target::set_permissions ()
  3243. {
  3244. gdb_printf (gdb_stdlog, "-> %s->set_permissions (...)\n", this->beneath ()->shortname ());
  3245. this->beneath ()->set_permissions ();
  3246. gdb_printf (gdb_stdlog, "<- %s->set_permissions (", this->beneath ()->shortname ());
  3247. gdb_puts (")\n", gdb_stdlog);
  3248. }
  3249. bool
  3250. target_ops::static_tracepoint_marker_at (CORE_ADDR arg0, static_tracepoint_marker *arg1)
  3251. {
  3252. return this->beneath ()->static_tracepoint_marker_at (arg0, arg1);
  3253. }
  3254. bool
  3255. dummy_target::static_tracepoint_marker_at (CORE_ADDR arg0, static_tracepoint_marker *arg1)
  3256. {
  3257. return false;
  3258. }
  3259. bool
  3260. debug_target::static_tracepoint_marker_at (CORE_ADDR arg0, static_tracepoint_marker *arg1)
  3261. {
  3262. bool result;
  3263. gdb_printf (gdb_stdlog, "-> %s->static_tracepoint_marker_at (...)\n", this->beneath ()->shortname ());
  3264. result = this->beneath ()->static_tracepoint_marker_at (arg0, arg1);
  3265. gdb_printf (gdb_stdlog, "<- %s->static_tracepoint_marker_at (", this->beneath ()->shortname ());
  3266. target_debug_print_CORE_ADDR (arg0);
  3267. gdb_puts (", ", gdb_stdlog);
  3268. target_debug_print_static_tracepoint_marker_p (arg1);
  3269. gdb_puts (") = ", gdb_stdlog);
  3270. target_debug_print_bool (result);
  3271. gdb_puts ("\n", gdb_stdlog);
  3272. return result;
  3273. }
  3274. std::vector<static_tracepoint_marker>
  3275. target_ops::static_tracepoint_markers_by_strid (const char *arg0)
  3276. {
  3277. return this->beneath ()->static_tracepoint_markers_by_strid (arg0);
  3278. }
  3279. std::vector<static_tracepoint_marker>
  3280. dummy_target::static_tracepoint_markers_by_strid (const char *arg0)
  3281. {
  3282. tcomplain ();
  3283. }
  3284. std::vector<static_tracepoint_marker>
  3285. debug_target::static_tracepoint_markers_by_strid (const char *arg0)
  3286. {
  3287. std::vector<static_tracepoint_marker> result;
  3288. gdb_printf (gdb_stdlog, "-> %s->static_tracepoint_markers_by_strid (...)\n", this->beneath ()->shortname ());
  3289. result = this->beneath ()->static_tracepoint_markers_by_strid (arg0);
  3290. gdb_printf (gdb_stdlog, "<- %s->static_tracepoint_markers_by_strid (", this->beneath ()->shortname ());
  3291. target_debug_print_const_char_p (arg0);
  3292. gdb_puts (") = ", gdb_stdlog);
  3293. target_debug_print_std_vector_static_tracepoint_marker (result);
  3294. gdb_puts ("\n", gdb_stdlog);
  3295. return result;
  3296. }
  3297. traceframe_info_up
  3298. target_ops::traceframe_info ()
  3299. {
  3300. return this->beneath ()->traceframe_info ();
  3301. }
  3302. traceframe_info_up
  3303. dummy_target::traceframe_info ()
  3304. {
  3305. tcomplain ();
  3306. }
  3307. traceframe_info_up
  3308. debug_target::traceframe_info ()
  3309. {
  3310. traceframe_info_up result;
  3311. gdb_printf (gdb_stdlog, "-> %s->traceframe_info (...)\n", this->beneath ()->shortname ());
  3312. result = this->beneath ()->traceframe_info ();
  3313. gdb_printf (gdb_stdlog, "<- %s->traceframe_info (", this->beneath ()->shortname ());
  3314. gdb_puts (") = ", gdb_stdlog);
  3315. target_debug_print_traceframe_info_up (result);
  3316. gdb_puts ("\n", gdb_stdlog);
  3317. return result;
  3318. }
  3319. bool
  3320. target_ops::use_agent (bool arg0)
  3321. {
  3322. return this->beneath ()->use_agent (arg0);
  3323. }
  3324. bool
  3325. dummy_target::use_agent (bool arg0)
  3326. {
  3327. tcomplain ();
  3328. }
  3329. bool
  3330. debug_target::use_agent (bool arg0)
  3331. {
  3332. bool result;
  3333. gdb_printf (gdb_stdlog, "-> %s->use_agent (...)\n", this->beneath ()->shortname ());
  3334. result = this->beneath ()->use_agent (arg0);
  3335. gdb_printf (gdb_stdlog, "<- %s->use_agent (", this->beneath ()->shortname ());
  3336. target_debug_print_bool (arg0);
  3337. gdb_puts (") = ", gdb_stdlog);
  3338. target_debug_print_bool (result);
  3339. gdb_puts ("\n", gdb_stdlog);
  3340. return result;
  3341. }
  3342. bool
  3343. target_ops::can_use_agent ()
  3344. {
  3345. return this->beneath ()->can_use_agent ();
  3346. }
  3347. bool
  3348. dummy_target::can_use_agent ()
  3349. {
  3350. return false;
  3351. }
  3352. bool
  3353. debug_target::can_use_agent ()
  3354. {
  3355. bool result;
  3356. gdb_printf (gdb_stdlog, "-> %s->can_use_agent (...)\n", this->beneath ()->shortname ());
  3357. result = this->beneath ()->can_use_agent ();
  3358. gdb_printf (gdb_stdlog, "<- %s->can_use_agent (", this->beneath ()->shortname ());
  3359. gdb_puts (") = ", gdb_stdlog);
  3360. target_debug_print_bool (result);
  3361. gdb_puts ("\n", gdb_stdlog);
  3362. return result;
  3363. }
  3364. struct btrace_target_info *
  3365. target_ops::enable_btrace (thread_info *arg0, const struct btrace_config *arg1)
  3366. {
  3367. return this->beneath ()->enable_btrace (arg0, arg1);
  3368. }
  3369. struct btrace_target_info *
  3370. dummy_target::enable_btrace (thread_info *arg0, const struct btrace_config *arg1)
  3371. {
  3372. tcomplain ();
  3373. }
  3374. struct btrace_target_info *
  3375. debug_target::enable_btrace (thread_info *arg0, const struct btrace_config *arg1)
  3376. {
  3377. struct btrace_target_info * result;
  3378. gdb_printf (gdb_stdlog, "-> %s->enable_btrace (...)\n", this->beneath ()->shortname ());
  3379. result = this->beneath ()->enable_btrace (arg0, arg1);
  3380. gdb_printf (gdb_stdlog, "<- %s->enable_btrace (", this->beneath ()->shortname ());
  3381. target_debug_print_thread_info_p (arg0);
  3382. gdb_puts (", ", gdb_stdlog);
  3383. target_debug_print_const_struct_btrace_config_p (arg1);
  3384. gdb_puts (") = ", gdb_stdlog);
  3385. target_debug_print_struct_btrace_target_info_p (result);
  3386. gdb_puts ("\n", gdb_stdlog);
  3387. return result;
  3388. }
  3389. void
  3390. target_ops::disable_btrace (struct btrace_target_info *arg0)
  3391. {
  3392. this->beneath ()->disable_btrace (arg0);
  3393. }
  3394. void
  3395. dummy_target::disable_btrace (struct btrace_target_info *arg0)
  3396. {
  3397. tcomplain ();
  3398. }
  3399. void
  3400. debug_target::disable_btrace (struct btrace_target_info *arg0)
  3401. {
  3402. gdb_printf (gdb_stdlog, "-> %s->disable_btrace (...)\n", this->beneath ()->shortname ());
  3403. this->beneath ()->disable_btrace (arg0);
  3404. gdb_printf (gdb_stdlog, "<- %s->disable_btrace (", this->beneath ()->shortname ());
  3405. target_debug_print_struct_btrace_target_info_p (arg0);
  3406. gdb_puts (")\n", gdb_stdlog);
  3407. }
  3408. void
  3409. target_ops::teardown_btrace (struct btrace_target_info *arg0)
  3410. {
  3411. this->beneath ()->teardown_btrace (arg0);
  3412. }
  3413. void
  3414. dummy_target::teardown_btrace (struct btrace_target_info *arg0)
  3415. {
  3416. tcomplain ();
  3417. }
  3418. void
  3419. debug_target::teardown_btrace (struct btrace_target_info *arg0)
  3420. {
  3421. gdb_printf (gdb_stdlog, "-> %s->teardown_btrace (...)\n", this->beneath ()->shortname ());
  3422. this->beneath ()->teardown_btrace (arg0);
  3423. gdb_printf (gdb_stdlog, "<- %s->teardown_btrace (", this->beneath ()->shortname ());
  3424. target_debug_print_struct_btrace_target_info_p (arg0);
  3425. gdb_puts (")\n", gdb_stdlog);
  3426. }
  3427. enum btrace_error
  3428. target_ops::read_btrace (struct btrace_data *arg0, struct btrace_target_info *arg1, enum btrace_read_type arg2)
  3429. {
  3430. return this->beneath ()->read_btrace (arg0, arg1, arg2);
  3431. }
  3432. enum btrace_error
  3433. dummy_target::read_btrace (struct btrace_data *arg0, struct btrace_target_info *arg1, enum btrace_read_type arg2)
  3434. {
  3435. tcomplain ();
  3436. }
  3437. enum btrace_error
  3438. debug_target::read_btrace (struct btrace_data *arg0, struct btrace_target_info *arg1, enum btrace_read_type arg2)
  3439. {
  3440. enum btrace_error result;
  3441. gdb_printf (gdb_stdlog, "-> %s->read_btrace (...)\n", this->beneath ()->shortname ());
  3442. result = this->beneath ()->read_btrace (arg0, arg1, arg2);
  3443. gdb_printf (gdb_stdlog, "<- %s->read_btrace (", this->beneath ()->shortname ());
  3444. target_debug_print_struct_btrace_data_p (arg0);
  3445. gdb_puts (", ", gdb_stdlog);
  3446. target_debug_print_struct_btrace_target_info_p (arg1);
  3447. gdb_puts (", ", gdb_stdlog);
  3448. target_debug_print_enum_btrace_read_type (arg2);
  3449. gdb_puts (") = ", gdb_stdlog);
  3450. target_debug_print_enum_btrace_error (result);
  3451. gdb_puts ("\n", gdb_stdlog);
  3452. return result;
  3453. }
  3454. const struct btrace_config *
  3455. target_ops::btrace_conf (const struct btrace_target_info *arg0)
  3456. {
  3457. return this->beneath ()->btrace_conf (arg0);
  3458. }
  3459. const struct btrace_config *
  3460. dummy_target::btrace_conf (const struct btrace_target_info *arg0)
  3461. {
  3462. return NULL;
  3463. }
  3464. const struct btrace_config *
  3465. debug_target::btrace_conf (const struct btrace_target_info *arg0)
  3466. {
  3467. const struct btrace_config * result;
  3468. gdb_printf (gdb_stdlog, "-> %s->btrace_conf (...)\n", this->beneath ()->shortname ());
  3469. result = this->beneath ()->btrace_conf (arg0);
  3470. gdb_printf (gdb_stdlog, "<- %s->btrace_conf (", this->beneath ()->shortname ());
  3471. target_debug_print_const_struct_btrace_target_info_p (arg0);
  3472. gdb_puts (") = ", gdb_stdlog);
  3473. target_debug_print_const_struct_btrace_config_p (result);
  3474. gdb_puts ("\n", gdb_stdlog);
  3475. return result;
  3476. }
  3477. enum record_method
  3478. target_ops::record_method (ptid_t arg0)
  3479. {
  3480. return this->beneath ()->record_method (arg0);
  3481. }
  3482. enum record_method
  3483. dummy_target::record_method (ptid_t arg0)
  3484. {
  3485. return RECORD_METHOD_NONE;
  3486. }
  3487. enum record_method
  3488. debug_target::record_method (ptid_t arg0)
  3489. {
  3490. enum record_method result;
  3491. gdb_printf (gdb_stdlog, "-> %s->record_method (...)\n", this->beneath ()->shortname ());
  3492. result = this->beneath ()->record_method (arg0);
  3493. gdb_printf (gdb_stdlog, "<- %s->record_method (", this->beneath ()->shortname ());
  3494. target_debug_print_ptid_t (arg0);
  3495. gdb_puts (") = ", gdb_stdlog);
  3496. target_debug_print_enum_record_method (result);
  3497. gdb_puts ("\n", gdb_stdlog);
  3498. return result;
  3499. }
  3500. void
  3501. target_ops::stop_recording ()
  3502. {
  3503. this->beneath ()->stop_recording ();
  3504. }
  3505. void
  3506. dummy_target::stop_recording ()
  3507. {
  3508. }
  3509. void
  3510. debug_target::stop_recording ()
  3511. {
  3512. gdb_printf (gdb_stdlog, "-> %s->stop_recording (...)\n", this->beneath ()->shortname ());
  3513. this->beneath ()->stop_recording ();
  3514. gdb_printf (gdb_stdlog, "<- %s->stop_recording (", this->beneath ()->shortname ());
  3515. gdb_puts (")\n", gdb_stdlog);
  3516. }
  3517. void
  3518. target_ops::info_record ()
  3519. {
  3520. this->beneath ()->info_record ();
  3521. }
  3522. void
  3523. dummy_target::info_record ()
  3524. {
  3525. }
  3526. void
  3527. debug_target::info_record ()
  3528. {
  3529. gdb_printf (gdb_stdlog, "-> %s->info_record (...)\n", this->beneath ()->shortname ());
  3530. this->beneath ()->info_record ();
  3531. gdb_printf (gdb_stdlog, "<- %s->info_record (", this->beneath ()->shortname ());
  3532. gdb_puts (")\n", gdb_stdlog);
  3533. }
  3534. void
  3535. target_ops::save_record (const char *arg0)
  3536. {
  3537. this->beneath ()->save_record (arg0);
  3538. }
  3539. void
  3540. dummy_target::save_record (const char *arg0)
  3541. {
  3542. tcomplain ();
  3543. }
  3544. void
  3545. debug_target::save_record (const char *arg0)
  3546. {
  3547. gdb_printf (gdb_stdlog, "-> %s->save_record (...)\n", this->beneath ()->shortname ());
  3548. this->beneath ()->save_record (arg0);
  3549. gdb_printf (gdb_stdlog, "<- %s->save_record (", this->beneath ()->shortname ());
  3550. target_debug_print_const_char_p (arg0);
  3551. gdb_puts (")\n", gdb_stdlog);
  3552. }
  3553. bool
  3554. target_ops::supports_delete_record ()
  3555. {
  3556. return this->beneath ()->supports_delete_record ();
  3557. }
  3558. bool
  3559. dummy_target::supports_delete_record ()
  3560. {
  3561. return false;
  3562. }
  3563. bool
  3564. debug_target::supports_delete_record ()
  3565. {
  3566. bool result;
  3567. gdb_printf (gdb_stdlog, "-> %s->supports_delete_record (...)\n", this->beneath ()->shortname ());
  3568. result = this->beneath ()->supports_delete_record ();
  3569. gdb_printf (gdb_stdlog, "<- %s->supports_delete_record (", this->beneath ()->shortname ());
  3570. gdb_puts (") = ", gdb_stdlog);
  3571. target_debug_print_bool (result);
  3572. gdb_puts ("\n", gdb_stdlog);
  3573. return result;
  3574. }
  3575. void
  3576. target_ops::delete_record ()
  3577. {
  3578. this->beneath ()->delete_record ();
  3579. }
  3580. void
  3581. dummy_target::delete_record ()
  3582. {
  3583. tcomplain ();
  3584. }
  3585. void
  3586. debug_target::delete_record ()
  3587. {
  3588. gdb_printf (gdb_stdlog, "-> %s->delete_record (...)\n", this->beneath ()->shortname ());
  3589. this->beneath ()->delete_record ();
  3590. gdb_printf (gdb_stdlog, "<- %s->delete_record (", this->beneath ()->shortname ());
  3591. gdb_puts (")\n", gdb_stdlog);
  3592. }
  3593. bool
  3594. target_ops::record_is_replaying (ptid_t arg0)
  3595. {
  3596. return this->beneath ()->record_is_replaying (arg0);
  3597. }
  3598. bool
  3599. dummy_target::record_is_replaying (ptid_t arg0)
  3600. {
  3601. return false;
  3602. }
  3603. bool
  3604. debug_target::record_is_replaying (ptid_t arg0)
  3605. {
  3606. bool result;
  3607. gdb_printf (gdb_stdlog, "-> %s->record_is_replaying (...)\n", this->beneath ()->shortname ());
  3608. result = this->beneath ()->record_is_replaying (arg0);
  3609. gdb_printf (gdb_stdlog, "<- %s->record_is_replaying (", this->beneath ()->shortname ());
  3610. target_debug_print_ptid_t (arg0);
  3611. gdb_puts (") = ", gdb_stdlog);
  3612. target_debug_print_bool (result);
  3613. gdb_puts ("\n", gdb_stdlog);
  3614. return result;
  3615. }
  3616. bool
  3617. target_ops::record_will_replay (ptid_t arg0, int arg1)
  3618. {
  3619. return this->beneath ()->record_will_replay (arg0, arg1);
  3620. }
  3621. bool
  3622. dummy_target::record_will_replay (ptid_t arg0, int arg1)
  3623. {
  3624. return false;
  3625. }
  3626. bool
  3627. debug_target::record_will_replay (ptid_t arg0, int arg1)
  3628. {
  3629. bool result;
  3630. gdb_printf (gdb_stdlog, "-> %s->record_will_replay (...)\n", this->beneath ()->shortname ());
  3631. result = this->beneath ()->record_will_replay (arg0, arg1);
  3632. gdb_printf (gdb_stdlog, "<- %s->record_will_replay (", this->beneath ()->shortname ());
  3633. target_debug_print_ptid_t (arg0);
  3634. gdb_puts (", ", gdb_stdlog);
  3635. target_debug_print_int (arg1);
  3636. gdb_puts (") = ", gdb_stdlog);
  3637. target_debug_print_bool (result);
  3638. gdb_puts ("\n", gdb_stdlog);
  3639. return result;
  3640. }
  3641. void
  3642. target_ops::record_stop_replaying ()
  3643. {
  3644. this->beneath ()->record_stop_replaying ();
  3645. }
  3646. void
  3647. dummy_target::record_stop_replaying ()
  3648. {
  3649. }
  3650. void
  3651. debug_target::record_stop_replaying ()
  3652. {
  3653. gdb_printf (gdb_stdlog, "-> %s->record_stop_replaying (...)\n", this->beneath ()->shortname ());
  3654. this->beneath ()->record_stop_replaying ();
  3655. gdb_printf (gdb_stdlog, "<- %s->record_stop_replaying (", this->beneath ()->shortname ());
  3656. gdb_puts (")\n", gdb_stdlog);
  3657. }
  3658. void
  3659. target_ops::goto_record_begin ()
  3660. {
  3661. this->beneath ()->goto_record_begin ();
  3662. }
  3663. void
  3664. dummy_target::goto_record_begin ()
  3665. {
  3666. tcomplain ();
  3667. }
  3668. void
  3669. debug_target::goto_record_begin ()
  3670. {
  3671. gdb_printf (gdb_stdlog, "-> %s->goto_record_begin (...)\n", this->beneath ()->shortname ());
  3672. this->beneath ()->goto_record_begin ();
  3673. gdb_printf (gdb_stdlog, "<- %s->goto_record_begin (", this->beneath ()->shortname ());
  3674. gdb_puts (")\n", gdb_stdlog);
  3675. }
  3676. void
  3677. target_ops::goto_record_end ()
  3678. {
  3679. this->beneath ()->goto_record_end ();
  3680. }
  3681. void
  3682. dummy_target::goto_record_end ()
  3683. {
  3684. tcomplain ();
  3685. }
  3686. void
  3687. debug_target::goto_record_end ()
  3688. {
  3689. gdb_printf (gdb_stdlog, "-> %s->goto_record_end (...)\n", this->beneath ()->shortname ());
  3690. this->beneath ()->goto_record_end ();
  3691. gdb_printf (gdb_stdlog, "<- %s->goto_record_end (", this->beneath ()->shortname ());
  3692. gdb_puts (")\n", gdb_stdlog);
  3693. }
  3694. void
  3695. target_ops::goto_record (ULONGEST arg0)
  3696. {
  3697. this->beneath ()->goto_record (arg0);
  3698. }
  3699. void
  3700. dummy_target::goto_record (ULONGEST arg0)
  3701. {
  3702. tcomplain ();
  3703. }
  3704. void
  3705. debug_target::goto_record (ULONGEST arg0)
  3706. {
  3707. gdb_printf (gdb_stdlog, "-> %s->goto_record (...)\n", this->beneath ()->shortname ());
  3708. this->beneath ()->goto_record (arg0);
  3709. gdb_printf (gdb_stdlog, "<- %s->goto_record (", this->beneath ()->shortname ());
  3710. target_debug_print_ULONGEST (arg0);
  3711. gdb_puts (")\n", gdb_stdlog);
  3712. }
  3713. void
  3714. target_ops::insn_history (int arg0, gdb_disassembly_flags arg1)
  3715. {
  3716. this->beneath ()->insn_history (arg0, arg1);
  3717. }
  3718. void
  3719. dummy_target::insn_history (int arg0, gdb_disassembly_flags arg1)
  3720. {
  3721. tcomplain ();
  3722. }
  3723. void
  3724. debug_target::insn_history (int arg0, gdb_disassembly_flags arg1)
  3725. {
  3726. gdb_printf (gdb_stdlog, "-> %s->insn_history (...)\n", this->beneath ()->shortname ());
  3727. this->beneath ()->insn_history (arg0, arg1);
  3728. gdb_printf (gdb_stdlog, "<- %s->insn_history (", this->beneath ()->shortname ());
  3729. target_debug_print_int (arg0);
  3730. gdb_puts (", ", gdb_stdlog);
  3731. target_debug_print_gdb_disassembly_flags (arg1);
  3732. gdb_puts (")\n", gdb_stdlog);
  3733. }
  3734. void
  3735. target_ops::insn_history_from (ULONGEST arg0, int arg1, gdb_disassembly_flags arg2)
  3736. {
  3737. this->beneath ()->insn_history_from (arg0, arg1, arg2);
  3738. }
  3739. void
  3740. dummy_target::insn_history_from (ULONGEST arg0, int arg1, gdb_disassembly_flags arg2)
  3741. {
  3742. tcomplain ();
  3743. }
  3744. void
  3745. debug_target::insn_history_from (ULONGEST arg0, int arg1, gdb_disassembly_flags arg2)
  3746. {
  3747. gdb_printf (gdb_stdlog, "-> %s->insn_history_from (...)\n", this->beneath ()->shortname ());
  3748. this->beneath ()->insn_history_from (arg0, arg1, arg2);
  3749. gdb_printf (gdb_stdlog, "<- %s->insn_history_from (", this->beneath ()->shortname ());
  3750. target_debug_print_ULONGEST (arg0);
  3751. gdb_puts (", ", gdb_stdlog);
  3752. target_debug_print_int (arg1);
  3753. gdb_puts (", ", gdb_stdlog);
  3754. target_debug_print_gdb_disassembly_flags (arg2);
  3755. gdb_puts (")\n", gdb_stdlog);
  3756. }
  3757. void
  3758. target_ops::insn_history_range (ULONGEST arg0, ULONGEST arg1, gdb_disassembly_flags arg2)
  3759. {
  3760. this->beneath ()->insn_history_range (arg0, arg1, arg2);
  3761. }
  3762. void
  3763. dummy_target::insn_history_range (ULONGEST arg0, ULONGEST arg1, gdb_disassembly_flags arg2)
  3764. {
  3765. tcomplain ();
  3766. }
  3767. void
  3768. debug_target::insn_history_range (ULONGEST arg0, ULONGEST arg1, gdb_disassembly_flags arg2)
  3769. {
  3770. gdb_printf (gdb_stdlog, "-> %s->insn_history_range (...)\n", this->beneath ()->shortname ());
  3771. this->beneath ()->insn_history_range (arg0, arg1, arg2);
  3772. gdb_printf (gdb_stdlog, "<- %s->insn_history_range (", this->beneath ()->shortname ());
  3773. target_debug_print_ULONGEST (arg0);
  3774. gdb_puts (", ", gdb_stdlog);
  3775. target_debug_print_ULONGEST (arg1);
  3776. gdb_puts (", ", gdb_stdlog);
  3777. target_debug_print_gdb_disassembly_flags (arg2);
  3778. gdb_puts (")\n", gdb_stdlog);
  3779. }
  3780. void
  3781. target_ops::call_history (int arg0, record_print_flags arg1)
  3782. {
  3783. this->beneath ()->call_history (arg0, arg1);
  3784. }
  3785. void
  3786. dummy_target::call_history (int arg0, record_print_flags arg1)
  3787. {
  3788. tcomplain ();
  3789. }
  3790. void
  3791. debug_target::call_history (int arg0, record_print_flags arg1)
  3792. {
  3793. gdb_printf (gdb_stdlog, "-> %s->call_history (...)\n", this->beneath ()->shortname ());
  3794. this->beneath ()->call_history (arg0, arg1);
  3795. gdb_printf (gdb_stdlog, "<- %s->call_history (", this->beneath ()->shortname ());
  3796. target_debug_print_int (arg0);
  3797. gdb_puts (", ", gdb_stdlog);
  3798. target_debug_print_record_print_flags (arg1);
  3799. gdb_puts (")\n", gdb_stdlog);
  3800. }
  3801. void
  3802. target_ops::call_history_from (ULONGEST arg0, int arg1, record_print_flags arg2)
  3803. {
  3804. this->beneath ()->call_history_from (arg0, arg1, arg2);
  3805. }
  3806. void
  3807. dummy_target::call_history_from (ULONGEST arg0, int arg1, record_print_flags arg2)
  3808. {
  3809. tcomplain ();
  3810. }
  3811. void
  3812. debug_target::call_history_from (ULONGEST arg0, int arg1, record_print_flags arg2)
  3813. {
  3814. gdb_printf (gdb_stdlog, "-> %s->call_history_from (...)\n", this->beneath ()->shortname ());
  3815. this->beneath ()->call_history_from (arg0, arg1, arg2);
  3816. gdb_printf (gdb_stdlog, "<- %s->call_history_from (", this->beneath ()->shortname ());
  3817. target_debug_print_ULONGEST (arg0);
  3818. gdb_puts (", ", gdb_stdlog);
  3819. target_debug_print_int (arg1);
  3820. gdb_puts (", ", gdb_stdlog);
  3821. target_debug_print_record_print_flags (arg2);
  3822. gdb_puts (")\n", gdb_stdlog);
  3823. }
  3824. void
  3825. target_ops::call_history_range (ULONGEST arg0, ULONGEST arg1, record_print_flags arg2)
  3826. {
  3827. this->beneath ()->call_history_range (arg0, arg1, arg2);
  3828. }
  3829. void
  3830. dummy_target::call_history_range (ULONGEST arg0, ULONGEST arg1, record_print_flags arg2)
  3831. {
  3832. tcomplain ();
  3833. }
  3834. void
  3835. debug_target::call_history_range (ULONGEST arg0, ULONGEST arg1, record_print_flags arg2)
  3836. {
  3837. gdb_printf (gdb_stdlog, "-> %s->call_history_range (...)\n", this->beneath ()->shortname ());
  3838. this->beneath ()->call_history_range (arg0, arg1, arg2);
  3839. gdb_printf (gdb_stdlog, "<- %s->call_history_range (", this->beneath ()->shortname ());
  3840. target_debug_print_ULONGEST (arg0);
  3841. gdb_puts (", ", gdb_stdlog);
  3842. target_debug_print_ULONGEST (arg1);
  3843. gdb_puts (", ", gdb_stdlog);
  3844. target_debug_print_record_print_flags (arg2);
  3845. gdb_puts (")\n", gdb_stdlog);
  3846. }
  3847. bool
  3848. target_ops::augmented_libraries_svr4_read ()
  3849. {
  3850. return this->beneath ()->augmented_libraries_svr4_read ();
  3851. }
  3852. bool
  3853. dummy_target::augmented_libraries_svr4_read ()
  3854. {
  3855. return false;
  3856. }
  3857. bool
  3858. debug_target::augmented_libraries_svr4_read ()
  3859. {
  3860. bool result;
  3861. gdb_printf (gdb_stdlog, "-> %s->augmented_libraries_svr4_read (...)\n", this->beneath ()->shortname ());
  3862. result = this->beneath ()->augmented_libraries_svr4_read ();
  3863. gdb_printf (gdb_stdlog, "<- %s->augmented_libraries_svr4_read (", this->beneath ()->shortname ());
  3864. gdb_puts (") = ", gdb_stdlog);
  3865. target_debug_print_bool (result);
  3866. gdb_puts ("\n", gdb_stdlog);
  3867. return result;
  3868. }
  3869. const struct frame_unwind *
  3870. target_ops::get_unwinder ()
  3871. {
  3872. return this->beneath ()->get_unwinder ();
  3873. }
  3874. const struct frame_unwind *
  3875. dummy_target::get_unwinder ()
  3876. {
  3877. return NULL;
  3878. }
  3879. const struct frame_unwind *
  3880. debug_target::get_unwinder ()
  3881. {
  3882. const struct frame_unwind * result;
  3883. gdb_printf (gdb_stdlog, "-> %s->get_unwinder (...)\n", this->beneath ()->shortname ());
  3884. result = this->beneath ()->get_unwinder ();
  3885. gdb_printf (gdb_stdlog, "<- %s->get_unwinder (", this->beneath ()->shortname ());
  3886. gdb_puts (") = ", gdb_stdlog);
  3887. target_debug_print_const_struct_frame_unwind_p (result);
  3888. gdb_puts ("\n", gdb_stdlog);
  3889. return result;
  3890. }
  3891. const struct frame_unwind *
  3892. target_ops::get_tailcall_unwinder ()
  3893. {
  3894. return this->beneath ()->get_tailcall_unwinder ();
  3895. }
  3896. const struct frame_unwind *
  3897. dummy_target::get_tailcall_unwinder ()
  3898. {
  3899. return NULL;
  3900. }
  3901. const struct frame_unwind *
  3902. debug_target::get_tailcall_unwinder ()
  3903. {
  3904. const struct frame_unwind * result;
  3905. gdb_printf (gdb_stdlog, "-> %s->get_tailcall_unwinder (...)\n", this->beneath ()->shortname ());
  3906. result = this->beneath ()->get_tailcall_unwinder ();
  3907. gdb_printf (gdb_stdlog, "<- %s->get_tailcall_unwinder (", this->beneath ()->shortname ());
  3908. gdb_puts (") = ", gdb_stdlog);
  3909. target_debug_print_const_struct_frame_unwind_p (result);
  3910. gdb_puts ("\n", gdb_stdlog);
  3911. return result;
  3912. }
  3913. void
  3914. target_ops::prepare_to_generate_core ()
  3915. {
  3916. this->beneath ()->prepare_to_generate_core ();
  3917. }
  3918. void
  3919. dummy_target::prepare_to_generate_core ()
  3920. {
  3921. }
  3922. void
  3923. debug_target::prepare_to_generate_core ()
  3924. {
  3925. gdb_printf (gdb_stdlog, "-> %s->prepare_to_generate_core (...)\n", this->beneath ()->shortname ());
  3926. this->beneath ()->prepare_to_generate_core ();
  3927. gdb_printf (gdb_stdlog, "<- %s->prepare_to_generate_core (", this->beneath ()->shortname ());
  3928. gdb_puts (")\n", gdb_stdlog);
  3929. }
  3930. void
  3931. target_ops::done_generating_core ()
  3932. {
  3933. this->beneath ()->done_generating_core ();
  3934. }
  3935. void
  3936. dummy_target::done_generating_core ()
  3937. {
  3938. }
  3939. void
  3940. debug_target::done_generating_core ()
  3941. {
  3942. gdb_printf (gdb_stdlog, "-> %s->done_generating_core (...)\n", this->beneath ()->shortname ());
  3943. this->beneath ()->done_generating_core ();
  3944. gdb_printf (gdb_stdlog, "<- %s->done_generating_core (", this->beneath ()->shortname ());
  3945. gdb_puts (")\n", gdb_stdlog);
  3946. }
  3947. bool
  3948. target_ops::supports_memory_tagging ()
  3949. {
  3950. return this->beneath ()->supports_memory_tagging ();
  3951. }
  3952. bool
  3953. dummy_target::supports_memory_tagging ()
  3954. {
  3955. return false;
  3956. }
  3957. bool
  3958. debug_target::supports_memory_tagging ()
  3959. {
  3960. bool result;
  3961. gdb_printf (gdb_stdlog, "-> %s->supports_memory_tagging (...)\n", this->beneath ()->shortname ());
  3962. result = this->beneath ()->supports_memory_tagging ();
  3963. gdb_printf (gdb_stdlog, "<- %s->supports_memory_tagging (", this->beneath ()->shortname ());
  3964. gdb_puts (") = ", gdb_stdlog);
  3965. target_debug_print_bool (result);
  3966. gdb_puts ("\n", gdb_stdlog);
  3967. return result;
  3968. }
  3969. bool
  3970. target_ops::fetch_memtags (CORE_ADDR arg0, size_t arg1, gdb::byte_vector &arg2, int arg3)
  3971. {
  3972. return this->beneath ()->fetch_memtags (arg0, arg1, arg2, arg3);
  3973. }
  3974. bool
  3975. dummy_target::fetch_memtags (CORE_ADDR arg0, size_t arg1, gdb::byte_vector &arg2, int arg3)
  3976. {
  3977. tcomplain ();
  3978. }
  3979. bool
  3980. debug_target::fetch_memtags (CORE_ADDR arg0, size_t arg1, gdb::byte_vector &arg2, int arg3)
  3981. {
  3982. bool result;
  3983. gdb_printf (gdb_stdlog, "-> %s->fetch_memtags (...)\n", this->beneath ()->shortname ());
  3984. result = this->beneath ()->fetch_memtags (arg0, arg1, arg2, arg3);
  3985. gdb_printf (gdb_stdlog, "<- %s->fetch_memtags (", this->beneath ()->shortname ());
  3986. target_debug_print_CORE_ADDR (arg0);
  3987. gdb_puts (", ", gdb_stdlog);
  3988. target_debug_print_size_t (arg1);
  3989. gdb_puts (", ", gdb_stdlog);
  3990. target_debug_print_gdb_byte_vector_r (arg2);
  3991. gdb_puts (", ", gdb_stdlog);
  3992. target_debug_print_int (arg3);
  3993. gdb_puts (") = ", gdb_stdlog);
  3994. target_debug_print_bool (result);
  3995. gdb_puts ("\n", gdb_stdlog);
  3996. return result;
  3997. }
  3998. bool
  3999. target_ops::store_memtags (CORE_ADDR arg0, size_t arg1, const gdb::byte_vector &arg2, int arg3)
  4000. {
  4001. return this->beneath ()->store_memtags (arg0, arg1, arg2, arg3);
  4002. }
  4003. bool
  4004. dummy_target::store_memtags (CORE_ADDR arg0, size_t arg1, const gdb::byte_vector &arg2, int arg3)
  4005. {
  4006. tcomplain ();
  4007. }
  4008. bool
  4009. debug_target::store_memtags (CORE_ADDR arg0, size_t arg1, const gdb::byte_vector &arg2, int arg3)
  4010. {
  4011. bool result;
  4012. gdb_printf (gdb_stdlog, "-> %s->store_memtags (...)\n", this->beneath ()->shortname ());
  4013. result = this->beneath ()->store_memtags (arg0, arg1, arg2, arg3);
  4014. gdb_printf (gdb_stdlog, "<- %s->store_memtags (", this->beneath ()->shortname ());
  4015. target_debug_print_CORE_ADDR (arg0);
  4016. gdb_puts (", ", gdb_stdlog);
  4017. target_debug_print_size_t (arg1);
  4018. gdb_puts (", ", gdb_stdlog);
  4019. target_debug_print_const_gdb_byte_vector_r (arg2);
  4020. gdb_puts (", ", gdb_stdlog);
  4021. target_debug_print_int (arg3);
  4022. gdb_puts (") = ", gdb_stdlog);
  4023. target_debug_print_bool (result);
  4024. gdb_puts ("\n", gdb_stdlog);
  4025. return result;
  4026. }