ChangeLog-1999-2003 73 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180
  1. 2003-11-06 Andrew Cagney <cagney@redhat.com>
  2. * mi-cmd-var.c (mi_cmd_var_set_format): Replace STREQN with
  3. strncmp.
  4. 2003-10-24 Andrew Cagney <cagney@redhat.com>
  5. * tui-out.c: Fix "fortunatly"[sic].
  6. 2003-10-02 Andrew Cagney <cagney@redhat.com>
  7. * mi-main.c: Rename REGISTER_RAW_SIZE to
  8. DEPRECATED_REGISTER_RAW_SIZE.
  9. 2003-09-30 Andrew Cagney <cagney@redhat.com>
  10. * mi-main.c: Rename REGISTER_VIRTUAL_SIZE to
  11. DEPRECATED_REGISTER_VIRTUAL_SIZE.
  12. 2003-09-17 Andrew Cagney <cagney@redhat.com>
  13. * mi-main.c: Rename REGISTER_BYTE to DEPRECATED_REGISTER_BYTE.
  14. 2003-09-10 Elena Zannoni <ezannoni@redhat.com>
  15. * mi-main.c (mi_setup_architecture_data): Don't use
  16. DEPRECATED_REGISTER_BYTES because some architecture don't set it
  17. and its default is 0.
  18. 2003-08-08 Andrew Cagney <cagney@redhat.com>
  19. * mi-main.c (captured_mi_execute_command): Add "mi2" and "mi3" to
  20. interpreters that hack around CLI.
  21. * mi-interp.c (mi3_command_loop): New function.
  22. (mi_interpreter_resume): Check for "mi3", default to "mi2".
  23. 2003-08-07 Andrew Cagney <cagney@redhat.com>
  24. * mi-interp.c (_initialize_mi_interp): Register "mi2" and "mi3".
  25. Make "mi" select "mi2".
  26. 2003-08-05 Andrew Cagney <cagney@redhat.com>
  27. * mi-cmd-env.c (env_execute_cli_command): Use an explicit "%s %s"
  28. when constructing the run command.
  29. (mi_cmd_env_cd, mi_cmd_env_path, mi_cmd_env_dir): Simplify command
  30. string removing the "%s".
  31. 2003-08-04 Andrew Cagney <cagney@redhat.com>
  32. * mi-cmds.h (struct mi_cli): Define.
  33. (struct mi_cmd): Change type of "cli" to "struct mi_cli".
  34. * mi-cmds.c (mi_cmds): Update table.
  35. * mi-parse.c (mi_parse): Update.
  36. * mi-main.c (mi_execute_cli_command): Add "args_p" parameter, make
  37. others constant.
  38. (mi_cmd_execute): Update call.
  39. (captured_mi_execute_command): Ditto.
  40. 2003-08-04 David Carlton <carlton@kealia.com>
  41. * mi-main.c (mi_error_last_message): Add "%s" second argument to
  42. xasprintf call.
  43. 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
  44. * mi-out.c (mi_ui_out_impl): Add NULL for redirect member.
  45. 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
  46. * mi-cmds.c (mi_cmds): Add "-target-disconnect".
  47. 2003-06-11 David Carlton <carlton@bactrian.org>
  48. * mi-cmd-stack.c: Include dictionary.h.
  49. (list_args_or_locals): Update use of ALL_BLOCK_SYMBOLS.
  50. 2003-06-11 Andrew Cagney <cagney@redhat.com>
  51. * mi-main.c (get_register): Replace REGISTER_CONVERTIBLE with
  52. DEPRECATED_REGISTER_CONVERTIBLE.
  53. 2003-06-08 Andrew Cagney <cagney@redhat.com>
  54. * mi-parse.c (_initialize_mi_parse): Delete function.
  55. * mi-main.c: Include "mi-main.h".
  56. * mi-interp.c (_initialize_mi_interp): Add declaration.
  57. * mi-cmd-stack.c: Include "stack.h".
  58. (select_frame_command_wrapper): Delete extern declaration.
  59. (mi_cmd_stack_select_frame): Replace select_frame_command_wrapper
  60. with select_frame_command.
  61. 2003-05-16 Andrew Cagney <cagney@redhat.com>
  62. * mi-main.c (mi_setup_architecture_data):
  63. 2003-05-12 Elena Zannoni <ezannoni@redhat.com>
  64. * mi-mi-cmd-stack.c (list_args_or_locals): Rename VAR_NAMESPACE to
  65. VAR_DOMAIN.
  66. 2003-05-11 Andrew Cagney <cagney@redhat.com>
  67. * mi-symbol-cmds.c: Rename "mi-cmd-symbol.c", avoid 8.3 problem.
  68. 2003-05-08 Andrew Cagney <cagney@redhat.com>
  69. * mi-main.c (register_changed_p): Use MAX_REGISTER_SIZE instead of
  70. MAX_REGISTER_RAW_SIZE.
  71. 2003-05-08 Andrew Cagney <cagney@redhat.com>
  72. * mi-main.c (get_register): Use MAX_REGISTER_SIZE.
  73. 2003-05-05 Andrew Cagney <cagney@redhat.com>
  74. * mi-main.c (mi_cmd_data_write_register_values): Replace
  75. REGISTER_SIZE with DEPRECATED_REGISTER_SIZE.
  76. 2003-05-03 J. Brobecker <brobecker@gnat.com>
  77. From Thierry Schneider <tpschneider1@yahoo.com>:
  78. * mi-cmds.h (mi_cmd_symbol_list_lines): Add declaration.
  79. * mi-cmds.c (mi_cmds): Add entry for new MI command.
  80. * mi-cmd-symbol.c (mi_cmd_symbol_list_lines): New source file
  81. for all symbol-related commands.
  82. 2003-04-02 Bob Rossi <bob_rossi@cox.net>
  83. * mi-cmd-file.c: New file to implement mi file commands.
  84. * mi-getopt.c (mi_valid_noargs): Added mi_valid_noargs to verify
  85. if a set of parameters passed to an MI function has no arguments
  86. * mi-getopt.h (mi_valid_noargs): Declare.
  87. * mi-cmds.c (mi_cmds): Added -file-list-exec-source-file command.
  88. * mi-cmds.h (mi_cmd_file_list_exec_source_file): Declare.
  89. 2003-03-27 Andrew Cagney <cagney@redhat.com>
  90. * gdbmi.texinfo: Delete file. Contents moved to
  91. ../doc/gdb.texinfo.
  92. 2003-03-12 Andrew Cagney <cagney@redhat.com>
  93. * mi-main.c (get_register): Use frame_register instead of
  94. get_saved_register.
  95. 2003-03-08 Andrew Cagney <cagney@redhat.com>
  96. * mi-out.c: Update copyright.
  97. (mi_out_data): Define typedef. Use instead of ui_out_data.
  98. 2003-03-01 Andrew Cagney <cagney@redhat.com>
  99. * mi-main.c (get_register): Use register_type instead of
  100. REGISTER_VIRTUAL_TYPE.
  101. 2003-02-25 David Carlton <carlton@math.stanford.edu>
  102. * mi-cmd-stack.c: Replace all instances of SYMBOL_NAME with
  103. DEPRECATED_SYMBOL_NAME. Update copyright.
  104. 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
  105. * mi-cmd-stack.c (list_args_or_locals): Handle LOC_COMPUTED and
  106. LOC_COMPUTED_ARG.
  107. 2003-02-19 David Carlton <carlton@math.stanford.edu>
  108. * mi-cmd-stack.c: #include "block.h"
  109. 2003-02-09 Andrew Cagney <ac131313@redhat.com>
  110. * mi-interp.c (mi_remove_notify_hooks): Convert function
  111. definition to ISO C.
  112. 2003-02-06 Andrew Cagney <ac131313@redhat.com>
  113. * mi-cmd-env.c: Include "gdb_stat.h" instead of <sys/stat.h>.
  114. 2003-02-04 Jim Ingham <jingham@apple.com>
  115. Keith Seitz <keiths@redhat.com>
  116. Elena Zannoni <ezannoni@redhat.com>
  117. Andrew Cagney <ac131313@redhat.com>
  118. * mi-main.h: New file.
  119. * mi-interp.c: New file.
  120. * mi-main.c: Include "interps.h".
  121. (mi_error_message): Make global.
  122. (mi_input): Delete static function, moved to "mi-interp.c".
  123. (mi_execute_command, mi_execute_command_wrapper): Ditto.
  124. (mi_command_loop, mi1_command_loop, mi2_command_loop): Ditto.
  125. (mi_load_progress): Make non-static.
  126. (mi_error_last_message): New function.
  127. (captured_mi_execute_command): If the interpreter changed, don't
  128. print anything.
  129. (mi_load_progress): Use current_interp_named_p.
  130. (mi_init_ui): Delete function.
  131. (_initialize_mi_main): Don't install the mi interpreter, handled
  132. by "mi-interp.c".
  133. (mi_exec_async_cli_cmd_continuation): Make static.
  134. * mi-console.h (mi_console_file_new): Add `quote' parameter.
  135. * mi-console.c (struct mi_console_file): Add `quote'.
  136. (mi_console_file_new): Add `quote' parameter. Initialize `quote'.
  137. (mi_console_raw_packet): Only quote the output when `quote'.
  138. * mi-cmds.h (mi_cmd_interpreter_exec): Declare.
  139. (mi_error_message, mi_error_last_message): Declare.
  140. (mi_execute_command): Declare.
  141. * mi-cmds.c: Add `interpreter-exec' command.
  142. 2003-02-04 Andrew Cagney <ac131313@redhat.com>
  143. From Keith Seitz <keiths@redhat.com>:
  144. * gdbmi.texinfo (GDB/MI Miscellaneous Commands): Document the
  145. interpreter-exec command.
  146. 2003-02-02 Andrew Cagney <ac131313@redhat.com>
  147. From 2002-11-10 Jason Molenda (jason-cl@molenda.com):
  148. * mi-cmd-var.c (mi_cmd_var_list_children): CHILDREN field is
  149. now a list; still a tuple when in mi1.
  150. * gdbmi.texinfo: Update var-list-children example.
  151. 2003-01-13 Andrew Cagney <ac131313@redhat.com>
  152. * mi-cmd-env.c: Update copyright.
  153. 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
  154. * mi-main.c (mi_cmd_exec_return): Use print_stack_frame instead of
  155. show_and_print_stack_frame.
  156. 2003-01-09 Andrew Cagney <ac131313@redhat.com>
  157. * mi-cmd-env.c: Include "gdb_string.h" instead of <string.h>.
  158. Move all includes to after "defs.h".
  159. 2002-12-13 Jeff Johnston <jjohnstn@redhat.com>
  160. * mi-cmds.c (-environment-directory) Change to use mi_cmd_env_dir,
  161. (-environment-cd): Change to use mi_cmd_env_cd,.
  162. (-environment-pwd): Change to use mi_cmd_env_pwd.
  163. (-environment-path): Change to use mi_cmd_env_path.
  164. * mi-cmds.h (mi_cmd_env_cd, mi_cmd_env_dir): New prototypes.
  165. (mi_cmd_env_path, mi_cmd_env_pwd): Ditto.
  166. * mi-cmd-env.c: New file. Part of fix for PR gdb/741.
  167. * gdbmi.texinfo (environment-cd): Update output and example.
  168. (environment-pwd): Ditto.
  169. (environment-dir): Update output, description, and examples.
  170. (environment-path): Ditto.
  171. 2002-11-29 Andrew Cagney <ac131313@redhat.com>
  172. * mi/mi-cmd-stack.c, mi/mi-main.c: Update to use
  173. deprecated_selected_frame.
  174. 2002-11-13 Andrew Cagney <ac131313@redhat.com>
  175. * mi-main.c (mi_cmd_data_write_register_values): Use
  176. deprecated_write_register_bytes instead of write_register_bytes.
  177. 2002-11-11 Jeff Johnston <jjohnstn@redhat.com>
  178. * gdbmi.texinfo (-var-assign): Add comments about interaction
  179. with -var-update and add an example. Part of fix for gdb/702.
  180. 2002-11-08 Jeff Johnston <jjohnstn@redhat.com>
  181. * mi-main.c (mi_command_loop): Initialize raw_stdout and gdb_stdout
  182. only if mi version is <= 1.
  183. (mi_init_ui): Initialize raw_stdout and gdb_stdout if mi version
  184. is > 1 so startup message is treated as console output. This is
  185. part of fix for PR gdb/604.
  186. 2002-11-06 Jeff Johnston <jjohnstn@redhat.com>
  187. * mi-cmd-var.c (mi_cmd_var_create): Change the function used to
  188. parse the frame addr from parse_and_eval_address() to
  189. string_to_core_addr(). This is a fix for PR gdb/494.
  190. 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
  191. * mi-cmd-var.c: Change all remaining occurrences of ui_out_tuple_begin
  192. to make_cleanup_ui_out_tuple_begin_end. Change all remaining
  193. occurrences of ui_out_list_begin to make_cleanup_ui_out_list_begin_end.
  194. Use do_cleanups instead of ui_out_list_end or ui_out_tuple_end. This
  195. is a fix for PR gdb/680.
  196. * mi-cmd-stack.c: Ditto.
  197. * mi-main.c: Ditto.
  198. 2002-10-22 Keith Seitz <keiths@redhat.com>
  199. * mi-main.c (mi_cmd_thread_select): Only return MI_CMD_CAUGHT_ERROR
  200. when we really did catch an error(). If we got GDB_RC_FAIL, return
  201. MI_CMD_ERROR instead.
  202. 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
  203. * gdbmi.texinfo: Fix examples that show frames to remove
  204. extraneous blank in level field. Part of fix for PR gdb/192.
  205. 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
  206. * mi-cmd-var.c (mi_cmd_var_update): Fix for PR gdb/672. For m2,
  207. output list begin and end for "changelist" rather than tuple begin/end.
  208. (varobj_update_one): For m2, add tuple begin and end for varobj
  209. update output.
  210. 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
  211. * mi-main.c (mi_cmd_exec_return): Don't use
  212. return_command_wrapper, use return_command instead.
  213. (mi_cmd_exec_interrupt): Don't use
  214. interrupt_target_command_wrapper, use interrupt_target_command
  215. instead.
  216. (return_command_wrapper, interrupt_target_command_wrapper):
  217. Delete.
  218. Include frame.h.
  219. 2002-10-01 Andrew Cagney <ac131313@redhat.com>
  220. * mi-main.c (mi2_command_loop): New function.
  221. (mi0_command_loop): Delete function.
  222. (_initialize_mi_main): Recognize, and default to, "mi2". Do not
  223. recognize "mi0".
  224. * mi-out.c (mi_table_begin): Remove mi0 code.
  225. (mi_table_body, mi_table_end): Ditto.
  226. (mi_table_header, mi_open, mi_close): Ditto.
  227. 2002-09-29 Andrew Cagney <ac131313@redhat.com>
  228. * mi-out.c (mi_version): New function.
  229. * mi-out.h (mi_version): Declare.
  230. 2002-09-27 Andrew Cagney <ac131313@redhat.com>
  231. From 2002-07-12 Mo DeJong <supermo@bayarea.net>
  232. * gdbmi.texinfo (var-evaluate-expression): Note that
  233. var-list-children must be invoked before child variable
  234. values can be evaluated.
  235. 2002-09-26 Elena Zannoni <ezannoni@redhat.com>
  236. * mi-cmd-disas.c (dump_insns): Add text only output for CLI.
  237. (do_mixed_source_and_assembly): Ditto.
  238. 2002-09-11 Keith Seitz <keiths@redhat.com>
  239. * mi-main.c (mi_cmd_data_list_register_names): Use cleanups
  240. for the uiout list. Do the cleanups when returning an error.
  241. (mi_cmd_data_list_changed_registers): Ditto.
  242. (mi_cmd_data_list_register_values): Use cleanups for the uiout list
  243. and tuples. Do the cleanups when returning errors.
  244. 2002-07-29 Andrew Cagney <ac131313@redhat.com>
  245. * mi-cmd-var.c: Include "gdb_string.h".
  246. * mi-cmd-disas.c: Ditto.
  247. 2002-06-17 Keith Seitz <keiths@redhat.com>
  248. * gdbmi.texinfo: Update command examples with real MI behavior.
  249. 2002-05-20 Keith Seitz <keiths@redhat.com>
  250. * mi-main.c (captured_mi_execute_command): Add uiout parameter.
  251. "data" is now a structure which is used to pass data to/from this
  252. function to mi_execute_command.
  253. Modify function to comply with requirements from catch_exceptions.
  254. Store real return result and command's return result in data.
  255. (mi_execute_command): Use catch_exceptions.
  256. Use enum to handle actions to be performed instead of overloading
  257. catch_errors return result and the mi return result.
  258. 2002-04-14 Andrew Cagney <ac131313@redhat.com>
  259. * mi-main.c (mi_cmd_exec_return):
  260. 2002-04-09 Andrew Cagney <ac131313@redhat.com>
  261. * mi-main.c (register_changed_p): Use frame_register_read instead
  262. of read_relative_register_raw_bytes.
  263. (get_register): Delete out-of-date comment.
  264. 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
  265. * mi-cmd-disas.c: Run through indent.
  266. 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
  267. * mi-cmd-disas.c (dump_insns): New function.
  268. (do_mixed_source_and_assembly): New function.
  269. (do_assembly_only): New function.
  270. (do_disassembly): New function.
  271. (mi_cmd_disassemble): Rewrite using smaller, more modular
  272. functions.
  273. 2002-04-05 Jim Blandy <jimb@redhat.com>
  274. * mi-cmd-stack.c (list_args_or_locals): Pass new arg to
  275. get_frame_block. (See entry in gdb/ChangeLog.)
  276. 2002-04-05 Elena Zannoni <ezannoni@redhat.com>
  277. * mi-cmd-disas.c (mi_cmd_disassemble): Use TARGET_PRINT_INSN
  278. instead of tm_print_insn.
  279. Update copyright year.
  280. 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
  281. * mi-cmd-disas.c (mi_cmd_disassemble): Skip end-of-function
  282. markers in the line table.
  283. 2002-03-15 Andrew Cagney <ac131313@redhat.com>
  284. * mi-main.c (XMALLOC): Delete macro.
  285. * mi-out.c (XMALLOC): Ditto.
  286. * mi-parse.c (XMALLOC): Ditto.
  287. * mi-console.c (XMALLOC): Ditto.
  288. * mi-cmd-var.c (XMALLOC): Ditto.
  289. * mi-cmd-break.c (XMALLOC): Ditto.
  290. * mi/mi-cmd-var.c, mi/mi-console.c, mi/mi-out.c: Update copyright
  291. * mi/mi-parse.c: Ditto.
  292. 2002-02-24 Andrew Cagney <ac131313@redhat.com>
  293. From wiz at danbala:
  294. * gdbmi.texinfo: Fix grammar and typos.
  295. Fix PR gdb/287.
  296. 2002-02-03 Jim Blandy <jimb@redhat.com>
  297. * mi-cmd-stack.c (list_args_or_locals): Move declaration of
  298. print_me inside the loop body, so it gets re-initialized every
  299. iteration. The cases for the different symbol kinds leave
  300. print_me unchanged if they don't want the symbol printed.
  301. 2002-01-22 Andrew Cagney <ac131313@redhat.com>
  302. * gdbmi.texinfo: Remove makeinfo 3.12 hacks.
  303. 2002-01-21 Andrew Cagney <ac131313@redhat.com>
  304. * mi-cmd-stack.c: Remove #else clause of #ifdef UI_OUT.
  305. * mi-cmd-break.c: Ditto.
  306. * mi-main.c: Ditto.
  307. 2001-12-30 Eli Zaretskii <eliz@is.elta.co.il>
  308. * gdbmi.texinfo: Fix the application of GFDL in the Copyright notice.
  309. 2001-10-12 Daniel Jacobowitz <drow@mvista.com>
  310. * mi-cmd-stack.c (list_args_or_locals): Use ALL_BLOCK_SYMBOLS.
  311. 2001-09-18 Andrew Cagney <ac131313@redhat.com>
  312. * mi-main.c (mi_cmd_thread_select): Pass uiout to
  313. gdb_thread_select.
  314. (mi_cmd_thread_list_ids): Pass uiout to gdb_list_thread_ids.
  315. * mi-cmd-break.c (breakpoint_notify): Pass uiout to
  316. gdb_breakpoint_query.
  317. 2001-08-17 Keith Seitz <keiths@redhat.com>
  318. * mi-cmd-var.c (varobj_update_one): Update call to
  319. varobj_update to reflect recent api change.
  320. 2001-07-26 Andrew Cagney <ac131313@redhat.com>
  321. * mi-main.c: Include "gdb.h".
  322. * mi-cmd-break.c: Include "gdb.h".
  323. 2001-07-12 Andrew Cagney <ac131313@redhat.com>
  324. * mi-main.c (mi_execute_command): Flush output after ``(gdb)''
  325. prompt. Bug reported by David Whedon.
  326. (mi_execute_async_cli_command): Ditto.
  327. (mi_exec_async_cli_cmd_continuation): Ditto.
  328. (mi_command_loop): Ditto.
  329. 2001-07-10 Mark Kettenis <kettenis@gnu.org>
  330. * mi-out.c (mi_out_new): Initialize suppress_ouput field of newly
  331. created `struct ui_out_data'.
  332. 2001-07-09 Kevin Buettner <kevinb@redhat.com>
  333. * mi-main.c (register_changed_p, get_register): Use alloca()
  334. to allocate space previously allocated via gcc's
  335. variable-length array extension.
  336. (mi_cmd_data_write_register_values, mi_cmd_data_write_memory):
  337. Change type of ``buffer'' to ``void *''. Don't cast return value
  338. from xmalloc(). Add a cleanup to free the xmalloc'd buffer.
  339. 2001-07-07 Andrew Cagney <ac131313@redhat.com>
  340. * mi-main.c (mi_cmd_data_evaluate_expression): Replace value_ptr
  341. with `struct value *'.
  342. 2001-07-08 Kevin Buettner <kevinb@redhat.com>
  343. * mi-out.c (mi_table_header, mi_field_int, mi_field_skip)
  344. (mi_field_string) Make function declarators match earlier
  345. declarations.
  346. 2001-07-04 Andrew Cagney <ac131313@redhat.com>
  347. * mi-out.c (mi_ui_out_impl): Initialize is_mi_like_p to one.
  348. 2001-06-27 Andrew Cagney <ac131313@redhat.com>
  349. * mi-out.c (mi_table_begin): Include nr_cols and nr_rows in mi1
  350. table output.
  351. * mi-out.c (mi_table_begin): Only suppress output when mi0. Change
  352. the header to a list.
  353. (mi_table_body): For mi1, close the header list and open a table
  354. body list.
  355. (mi_table_end): For mi1, close the body list.
  356. (mi_table_header): For mi1, output a tuple containing all the
  357. header information.
  358. (mi_open, mi_close): Reverse logic of mi_version test.
  359. * gdbmi.texinfo (GDB/MI Breakpoint Table Commands): Update.
  360. 2001-06-26 Andrew Cagney <ac131313@redhat.com>
  361. * gdbmi.texinfo (GDB/MI Output Syntax): Delete reference to query
  362. packet.
  363. 2001-06-26 Andrew Cagney <ac131313@redhat.com>
  364. * mi-cmd-stack.c (list_args_or_locals): Output a list of "args" or
  365. "locals" entries.
  366. * gdbmi.texinfo (stack-list-locals, stack-list-arguments)
  367. (exec-interrupt, target-select, thread-select): Update
  368. documentation.
  369. 2001-06-26 Andrew Cagney <ac131313@redhat.com>
  370. * mi-cmd-stack.c (mi_cmd_stack_list_frames): Output a list of
  371. "stack" entries.
  372. (mi_cmd_stack_list_args): Ditto for "stack-args".
  373. * gdbmi.texinfo (stack-list-frames, stack-list-arguments): Update
  374. documentation.
  375. (GDB/MI Stack Manipulation Commands): Fix section title. Was
  376. Stack Manipulation Commands in GDB/MI.
  377. 2001-06-25 Andrew Cagney <ac131313@redhat.com>
  378. * gdbmi.texinfo: Update output examples that contain stop reason
  379. output, change the args=.... to a list.
  380. (exec-return): Ditto.
  381. 2001-06-25 Andrew Cagney <ac131313@redhat.com>
  382. * mi-main.c (mi_cmd_data_read_memory): Output the memory contents
  383. - memory and data - as a list.
  384. * gdbmi.texinfo (data-read-memory): Update documentation.
  385. 2001-06-25 Andrew Cagney <ac131313@redhat.com>
  386. * mi-main.c (mi_cmd_data_list_register_values): Output a list of
  387. register values.
  388. * gdbmi.texinfo (data-list-register-values): Update documentation.
  389. 2001-06-25 Andrew Cagney <ac131313@redhat.com>
  390. * mi-main.c (mi_cmd_data_list_register_names): Output a list of
  391. register names.
  392. (mi_cmd_data_list_register_names): Include the pseudo registers.
  393. (mi_cmd_data_list_register_names): Don't leave holes in the list,
  394. output "" for NULL registers.
  395. * gdbmi.texinfo (data-list-register-names): Update documentation.
  396. 2001-06-23 Andrew Cagney <ac131313@redhat.com>
  397. * mi-main.c (mi_cmd_data_list_changed_registers): Output a list of
  398. register numbers.
  399. * gdbmi.texinfo (data-list-changed-registers): Update
  400. documentation.
  401. 2001-06-23 Andrew Cagney <ac131313@redhat.com>
  402. * gdbmi.texinfo (data-disassemble): Update documentation of
  403. output. Produces a list of instructions and a list of source
  404. lines.
  405. 2001-06-22 Andrew Cagney <ac131313@redhat.com>
  406. * mi-cmd-disas.c (mi_cmd_disassemble): For "-data-disassemble",
  407. output a list instead of a tupple.
  408. 2001-06-21 Andrew Cagney <ac131313@redhat.com>
  409. * mi-out.c (struct ui_out_data): Replace field first_header with
  410. suppress_output.
  411. (mi_begin, mi_end): Check suppress_header.
  412. (mi_field_int, mi_field_skip): Ditto.
  413. (mi_field_string, mi_field_fmt): Ditto.
  414. (mi_table_begin): When nr_rows is zero, set suppress_header else,
  415. output the start of the header.
  416. (mi_table_body): Clear suppress header.
  417. 2001-06-21 Andrew Cagney <ac131313@redhat.com>
  418. * mi-out.c (mi_open): For lists, when mi_version > 0, use ``[''.
  419. (mi_close): Ditto for ``]''.
  420. 2001-06-20 Andrew Cagney <ac131313@redhat.com>
  421. * mi-out.c (mi_table_header): Add parameter ``col_name''.
  422. 2001-06-18 Andrew Cagney <ac131313@redhat.com>
  423. * mi-out.c: Include "gdb_assert.h".
  424. (mi_table_begin): Add parameter ``nr_rows''.
  425. 2001-06-18 Andrew Cagney <ac131313@redhat.com>
  426. * mi-main.c: Use strncmp as the "mi" test. Allow "mi", "mi0" and
  427. "mi1".
  428. (mi_command_loop): Add parameter mi_version, pass to mi_out_new.
  429. (mi1_command_loop, mi0_command_loop): New functions.
  430. (_initialize_mi_main): Recognize "mi", "mi0" and "mi1".
  431. * mi-out.c (mi_out_new): Add parameter mi_version.
  432. (struct ui_out_data): Add field mi_version.
  433. * mi-out.h (mi_out_new): Update.
  434. 2001-06-07 Andrew Cagney <ac131313@redhat.com>
  435. * gdbmi.texinfo (GDB/MI Output Syntax): Add tuples and lists to
  436. syntax.
  437. (GDB/MI Draft Changes to Output Syntax): Delete section.
  438. Mon Jun 11 17:22:25 2001 Andrew Cagney <cagney@b1.cygnus.com>
  439. * mi-out.c: Fix typo. s/supress/suppress/.
  440. 2001-06-09 Andrew Cagney <ac131313@redhat.com>
  441. * mi-out.c (mi_table_end, mi_table_begin, mi_begin, mi_end): Move
  442. supress_field_separator updates from here.
  443. (mi_open, mi_close): To here.
  444. (mi_open): Add parameter name. Output a field_separator.
  445. (mi_table_begin): Update.
  446. (mi_table_header): Update.
  447. (mi_begin): Update.
  448. 2001-06-09 Andrew Cagney <ac131313@redhat.com>
  449. * mi-out.c (mi_table_begin): Make char* parameters constant.
  450. (mi_table_header): Ditto.
  451. (mi_field_int): Ditto.
  452. (mi_field_skip): Ditto.
  453. (mi_field_string): Ditto.
  454. (mi_field_fmt): Ditto.
  455. (mi_text): Ditto.
  456. (mi_message): Ditto.
  457. 2001-05-12 Andrew Cagney <ac131313@redhat.com>
  458. * mi-out.c (mi_close, mi_open): Output ``[]'' when a list.
  459. Fri May 11 13:55:07 2001 Andrew Cagney <cagney@b1.cygnus.com>
  460. * mi-cmd-var.c: Replace ui_out_list_begin, ui_out_list_end and
  461. make_cleanup_ui_out_list_end with ui_out_tupple_begin,
  462. ui_out_tupple_end and make_cleanup_ui_out_tupple_begin_end.
  463. * mi-cmd-stack.c: Ditto.
  464. * mi-cmd-disas.c: Ditto.
  465. * mi-main.c: Ditto.
  466. 2001-05-10 Andrew Cagney <ac131313@redhat.com>
  467. * mi-out.c (mi_open, mi_close): Replace list_open and list_close.
  468. (mi_table_begin): Update.
  469. (mi_table_header): Update.
  470. (mi_begin): Update.
  471. (mi_table_body): Update.
  472. (mi_table_end): Update.
  473. (mi_end): Update.
  474. Thu May 10 16:28:13 2001 Andrew Cagney <cagney@b1.cygnus.com>
  475. * mi-main.c (mi_execute_async_cli_command): Always initialize
  476. old_cleanups.
  477. 2001-05-08 Andrew Cagney <ac131313@redhat.com>
  478. * mi-out.c (mi_begin, mi_end): Replace mi_list_begin and
  479. mi_list_end.
  480. (mi_ui_out_impl): Update.
  481. 2001-03-28 Andrew Cagney <ac131313@redhat.com>
  482. * mi-main.c (mi_cmd_data_read_memory): Use xcalloc.
  483. 2001-03-26 Eli Zaretskii <eliz@is.elta.co.il>
  484. * gdbmi.texinfo: Update copyright. Change Permissions to GFDL.
  485. 2001-03-20 Andrew Cagney <ac131313@redhat.com>
  486. * mi-cmd-disas.c (mi_cmd_disassemble): Initialize ``file_string''
  487. and ``line_num''. Consolidate declaration of argument variables.
  488. 2001-03-19 Andrew Cagney <ac131313@redhat.com>
  489. * mi-out.h: Remove #ifdef __STDC__.
  490. 2001-03-08 Andrew Cagney <ac131313@redhat.com>
  491. * mi-main.c (mi_cmd_data_list_register_names): Use NUM_REGS, not
  492. ARCH_NUM_REGS.
  493. (mi_cmd_data_list_changed_registers): Ditto.
  494. (mi_cmd_data_list_register_values): Ditto.
  495. (mi_cmd_data_write_register_values): Ditto.
  496. 2001-03-06 Kevin Buettner <kevinb@redhat.com>
  497. * gdbmi.texinfo, mi-cmd-disas.c, mi-cmd-stack.c, mi-cmd-var.c,
  498. mi-cmds.c, mi-cmds.h, mi-console.c, mi-console.h, mi-getopt.c,
  499. mi-getopt.h, mi-out.c, mi-out.h, mi-parse.c, mi-parse.h:
  500. Update/correct copyright notices.
  501. Wed Feb 7 19:50:37 2001 Andrew Cagney <cagney@redhat.com>
  502. * mi-getopt.c: Add __FILE__ and __LINE__ parameter to calls to
  503. internal_error.
  504. * mi-console.c: Ditto.
  505. * mi-cmds.c: Ditto.
  506. * mi-cmd-break.c: Ditto.
  507. 2001-01-27 Fernando Nasser <fnasser@redhat.com>
  508. From Momchil Velikov <velco@fadata.bg>
  509. * mi-cmd-disas.c (gdb_dis_asm_read_memory): Add missing memory
  510. attributes argument in the call to `xfer_memory'.
  511. 2000-12-14 Kevin Buettner <kevinb@redhat.com>
  512. * mi-cmd-disas.c, mi-cmd-var.c, mi-console.c, mi-main.c,
  513. mi-parse.c: Replace occurrences of free() with xfree().
  514. Fri Nov 17 16:07:23 2000 Andrew Cagney <cagney@b1.cygnus.com>
  515. * mi-main.c: Replace asprintf with xasprintf.
  516. * mi-cmd-var.c (mi_cmd_var_create): Ditto.
  517. 2000-10-16 Eli Zaretskii <eliz@is.elta.co.il>
  518. * gdbmi.texinfo (GDB/MI Variable Objects): Dimensions of
  519. multitable changed to "@columnfractions .4 .6". Suggested by
  520. Dmitry Sivachenko <dima@Chg.RU>.
  521. 2000-08-23 Eli Zaretskii <eliz@is.elta.co.il>
  522. * gdbmi.texinfo: Change flathead -> @sc{gdb/mi}.
  523. Fix typos and markup mistakes (from Dmitry S.
  524. Sivachenko <dima@Chg.RU>).
  525. 2000-07-24 Eli Zaretskii <eliz@is.elta.co.il>
  526. * gdbmi.texinfo: Change GDB -> @value{GDBN}, and
  527. (gdb) -> (@value{GDBP}). Fix a few typos and some markup. From
  528. Dmitry S. Sivachenko <dima@Chg.RU>.
  529. Tue May 16 14:13:41 2000 Andrew Cagney <cagney@b1.cygnus.com>
  530. * mi-main.c (mi_cmd_execute): Use free_current_contents.
  531. (free_and_reset): Delete.
  532. Mon May 15 16:17:56 2000 Andrew Cagney <cagney@b1.cygnus.com>
  533. * mi-main.c (mi_cmd_data_assign, mi_cmd_data_evaluate_expression),
  534. mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete): Delete
  535. make_cleanup_func casts. Not needed.
  536. 2000-05-07 Eli Zaretskii <eliz@is.elta.co.il>
  537. * gdbmi.texinfo: Lots of typos and grammar fixes from Brian
  538. Youmans <3diff@flib.gnu.ai.mit.edu>.
  539. Wed Apr 26 18:35:19 2000 Andrew Cagney <cagney@b1.cygnus.com>
  540. * gdbmi.texinfo (GDB/MI Output Syntax v2.0): Convert Draft 2.0
  541. Output Syntax into a new section. Cross reference.
  542. (menu): Fix tipo. GDB/MI Compatibility with CLI.
  543. 2000-04-23 Eli Zaretskii <eliz@is.elta.co.il>
  544. * gdbmi.texinfo: Lots of changes, to include this document as part
  545. of the GDB manual.
  546. 2000-03-13 James Ingham <jingham@leda.cygnus.com>
  547. * mi-cmd-var.c (mi_cmd_var_create): Add special frame cookie "@"
  548. to indicate an "USE_CURRENT_FRAME" variable.
  549. (varobj_update_one): Add "in_scope" and "type_changed" to the
  550. result.
  551. 2000-03-06 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
  552. * mi-cmds.h: Export mi_cmd_data_write_register_values.
  553. * mi-cmds.c (mi_cmds): Implement data-write-register-values with
  554. mi_cmd_data_write_register_values.
  555. * mi-main.c (mi_cmd_data_write_register_values): New
  556. function. Write a value into a register.
  557. 2000-03-06 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
  558. * gdbmi.texinfo: Update data-disassemble documentation.
  559. 2000-03-01 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
  560. * mi-cmd-disas.c (mi_cmd_disassemble): Use
  561. ui_out_field_core_addr() instead of print_address_numeric(), to
  562. maintain consistency throughout MI.
  563. Wed Feb 23 17:09:39 2000 Andrew Cagney <cagney@b1.cygnus.com>
  564. * mi-cmd-break.c, mi-cmd-disas.c, mi-cmd-stack.c, mi-cmd-var.c,
  565. mi-cmds.c, mi-cmds.h, mi-console.c, mi-console.h, mi-getopt.c,
  566. mi-getopt.h, mi-main.c, mi-out.c, mi-out.h, mi-parse.c,
  567. mi-parse.h: Update copyright information.
  568. Wed Feb 23 13:31:16 2000 Andrew Cagney <cagney@b1.cygnus.com>
  569. * mi-cmd-disas.c (gdb_dis_asm_read_memory): Change LEN to unsigned
  570. long. Match ../include/dis-asm.h change.
  571. Wed Feb 23 10:30:55 2000 Andrew Cagney <cagney@b1.cygnus.com>
  572. * gdbmi.texinfo: Update copyright - FSF. Update version
  573. information.
  574. mi-cmd-break.c, mi-cmd-disas.c, mi-cmd-stack.c, mi-cmd-var.c,
  575. mi-cmds.h, mi-main.c, mi-parse.c, mi-parse.h: Re-format using GNU
  576. indent.
  577. 2000-02-21 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
  578. * mi-main.c: Add include of gdbcore.h for write_memory()
  579. prototype.
  580. 2000-02-18 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
  581. * mi-cmd-disas.c (mi_cmd_disassemble): Change syntax of
  582. command. Now use options.
  583. Instead of printing the symbolic address of instructions via
  584. print_address_symbolic(), use build_address_symbolic() and format
  585. properly for output.
  586. (gdb_do_disassmble): Delete.
  587. 2000-02-18 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
  588. * mi-cmd-disas.c (mi_cmd_disassemble):
  589. 2000-02-17 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
  590. * mi-main.c (mi_cmd_data_write_memory): New function. Write a
  591. value into target memory.
  592. * mi-cmds.h (mi_cmd_data_write_memory): Export.
  593. * mi-cmds.c (mi_cmds): Hook up data-write-memory to
  594. mi_cmd_data_write_memory().
  595. 2000-02-17 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
  596. * mi-main.c (mi_cmd_target_download): Correct error message to
  597. report right function name.
  598. (mi_cmd_target_select): Add doing exec cleanups at end.
  599. (mi_cmd_data_read_memory): Correct typo.
  600. (mi_cmd_execute): Do not simply free last_async_command, but reset
  601. it to NULL as well.
  602. (free_and_reset): New function, free the argument and set it to
  603. NULL.
  604. (mi_cmd_target_select_continuation): Delete prototype.
  605. Tue Feb 1 00:17:12 2000 Andrew Cagney <cagney@b1.cygnus.com>
  606. * mi-cmd-disas.c, mi-cmds.h, mi-console.c, mi-console.h,
  607. mi-main.c, mi-out.c, mi-out.h: Update to reflect rename of
  608. gdb-file / GDB_FILE to ui-file / ``struct ui_file''.
  609. Mon Jan 31 18:33:28 2000 Andrew Cagney <cagney@b1.cygnus.com>
  610. * mi-main.c (mi_command_loop): Delete reference to
  611. fputs_unfiltered_hook.
  612. 2000-01-27 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
  613. * mi-cmds.c (mi_cmds): Update entries for
  614. mi_cmd_data_list_register_names,
  615. mi_cmd_data_list_changed_registers,
  616. mi_cmd_data_list_register_values.
  617. * mi-cmds.h (mi_cmd_data_list_register_names,
  618. mi_cmd_data_list_changed_registers,
  619. mi_cmd_data_list_register_values): Update to mi_cmd_argv_ftype.
  620. * mi-main.c (mi_cmd_data_list_register_names,
  621. mi_cmd_data_list_changed_registers,
  622. mi_cmd_data_list_register_values): Update to use argc, argv
  623. parameters.
  624. 2000-01-27 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
  625. * mi-main.c (mi_cmd_data_read_memory): Correct the computation of
  626. next-row.
  627. 2000-01-27 Fernando Nasser <fnasser@totem.to.cygnus.com>
  628. * mi-cmd-var.c (mi_cmd_var_create): Test for NULL type.
  629. (mi_cmd_var_set_format, mi_cmd_var_show_format,
  630. mi_cmd_var_info_num_children, mi_cmd_var_list_children,
  631. mi_cmd_var_info_type, mi_cmd_var_info_expression,
  632. mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression,
  633. mi_cmd_var_assign, mi_cmd_var_update): Prevent possibility of memory
  634. leak on error.
  635. 2000-01-27 Fernando Nasser <fnasser@totem.to.cygnus.com>
  636. * mi-out.c (mi_field_string): Test for NULL string pointer.
  637. 2000-01-17 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
  638. * mi-cmd-stack.c (mi_cmd_stack_list_frames): Call
  639. print_frmae_info() with the correct arguments.
  640. * mi-main.c (mi_cmd_exec_return): Call
  641. show_and_print_stack_frame() with LOC_AND_ADDRESS, so it does the
  642. right thing. Update Copyright.
  643. 2000-01-13 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
  644. * mi-main.c: Move disassemble commands from here.
  645. * mi-cmd-disas.c: To here. New file.
  646. 2000-01-13 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
  647. * mi-cmd-stack.c: Remove include of mi-out.h.
  648. * mi-main.c (mi_cmd_disassemble): Update function to use argc/argv
  649. interface.
  650. * mi-cmds.h: Ditto.
  651. * mi-cmds.c: Ditto.
  652. 2000-01-12 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
  653. * gdbmi.texinfo: Update stack commands descriptions.
  654. Add thread commands descriptions and examples.
  655. * mi-main.c (mi_cmd_thread_list_ids): Fix typo.
  656. 2000-01-12 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
  657. * mi-main.c (mi_cmd_thread_list_ids): New function, print a list
  658. of currently known threads ids, and the total number of threads.
  659. (mi_cmd_thread_select): New function. Switch current thread.
  660. * mi-cmds.c (mi_cmds): Implement thread-list-ids by
  661. mi_cmd_thread_list_ids, and thread-select by mi_cmd_thread_select.
  662. * mi-cmds.h (mi_cmd_thread_select, mi_cmd_thread_list_ids): Export.
  663. 2000-01-11 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
  664. * mi-main.c: Move stack commands from here.
  665. * mi-cmd-stack.c: To here. New file.
  666. 2000-01-07 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
  667. * mi-main.c (list_args_or_locals): Add a new paramter, the frame
  668. for which to display args or locals. Don't use selected_frame
  669. anymore, use the new parameter instead. Return void instead of
  670. mi_cmd_result, let callers do so.
  671. (mi_cmd_stack_list_args): Change interface. Now accept low and
  672. high frame numbers to display args for a range of frames. Without
  673. these two, display args for the whole stack.
  674. (mi_cmd_stack_list_locals): Adapt to new interface for
  675. list_args_or_locals.
  676. 2000-01-06 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
  677. * mi-main.c (mi_cmd_stack_info_depth, mi_cmd_stack_list_args,
  678. mi_cmd_stack_list_frames, mi_cmd_stack_list_locals,
  679. mi_cmd_stack_select_frame): Change to use argv type of parameters.
  680. * mi-cmds.c (mi_cmds): Change stack-info-depth,
  681. stack-list-arguments, stack-list-frames, stack-list-locals,
  682. stack-select-frame to use argv parameters.
  683. * mi-cmds.h (mi_cmd_stack_info_depth, mi_cmd_stack_list_args,
  684. mi_cmd_stack_list_frames, mi_cmd_stack_list_locals,
  685. mi_cmd_stack_select_frame): Update definitions.
  686. Tue Jan 4 12:38:54 2000 Andrew Cagney <cagney@b1.cygnus.com>
  687. * mi-main.c (mi_command_loop): Force the MI interface to use seven
  688. bit strings.
  689. * gdbmi.texinfo: Make it clear that a quoted C string is seven
  690. bit.
  691. Thu Dec 30 14:15:22 1999 Andrew Cagney <cagney@b1.cygnus.com>
  692. * mi-getopt.c (mi_getopt): Rewrite. Allow long options.
  693. * mi-getopt.h (struct mi_opt): Declare.
  694. (mi_getopt): Update.
  695. * mi-main.c (mi_cmd_data_read_memory), mi-cmd-break.c
  696. (mi_cmd_break_insert, mi_cmd_break_watch): Update.
  697. Wed Dec 29 23:38:35 1999 Andrew Cagney <cagney@b1.cygnus.com>
  698. * mi-cmd-break.c (mi_cmd_break_insert): Add support for -c
  699. <condition>, -i <ignore-count> and -p <thread>.
  700. (breakpoint_notify): New function.
  701. (mi_cmd_break_insert): Wrap GDB call with callback hooks so that
  702. MI is notified when ever a breakpoint is created.
  703. * gdbmi.texinfo: Update.
  704. Fri Dec 24 11:23:22 1999 Andrew Cagney <cagney@b1.cygnus.com>
  705. * mi-main.c (gdb_do_disassemble): Strip out more useless #ifdef
  706. UI_OUTs.
  707. 1999-12-23 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
  708. * mi-main.c (gdb_do_disassemble): Fix output. Lines that have no
  709. assembly instructions must still be outputted, to keep the source
  710. line numbering correct.
  711. Remove #ifdef UI_OUT's, they are useless.
  712. 1999-12-17 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
  713. * mi-main.c (gdb_do_disassemble): Don't print a new list in mixed
  714. mode, every time. Just do it when we actually encounter a new
  715. source line.
  716. 1999-12-17 Fernando Nasser <fnasser@totem.to.cygnus.com>
  717. * mi-cmd-var.c (mi_cmd_var_list_children): Add test for C++ pseudo
  718. variable objects (private, public, protected) as these do not have
  719. a type and the -var-list-children operation was dumping core.
  720. Fri Dec 17 20:23:33 1999 Andrew Cagney <cagney@b1.cygnus.com>
  721. * gdbmi.texinfo: Document recommended syntax for options.
  722. * mi-main.c (mi_cmd_data_read_memory): Add support for ``-o
  723. <offset>''.
  724. * gdbmi.texinfo: Document.
  725. Wed Dec 15 17:43:08 1999 Andrew Cagney <cagney@b1.cygnus.com>
  726. * mi-getopt.h (mi_getopt): Change optarg to a char pointer. Check
  727. optind.
  728. * mi-cmd-break.c (mi_cmd_break_insert): Update.
  729. * mi-main.c (mi_cmd_data_read_memory): Add fields "next-row-addr",
  730. "prev-row-addr", "next-page-addr", "prev-page-addr" and a per row
  731. "addr".
  732. * gdbmi.texinfo: Update.
  733. Wed Dec 15 01:05:40 1999 Andrew Cagney <cagney@b1.cygnus.com>
  734. * mi-cmds.h (mi_cmd_result): Add MI_CMD_CAUGHT_ERROR for when the
  735. error is caught.
  736. * mi-main.c (captured_mi_execute_command): When
  737. MI_CMD_CAUGHT_ERROR return 0 rethrowing the eror.
  738. 1999-12-13 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
  739. * mi-cmd-break.c (mi_cmd_break_insert): Remove unused var.
  740. * mi-cmd-var.c (mi_cmd_var_update): Remove unused variables.
  741. Mon Dec 13 18:43:36 1999 Andrew Cagney <cagney@b1.cygnus.com>
  742. * mi-parse.c (mi_parse): Quote the command when printing it.
  743. (mi_parse_argv): Fix handling of quoted strings. Was not
  744. de-quoting them.
  745. (mi_parse_argv): Make static.
  746. Mon Dec 13 18:30:03 1999 Andrew Cagney <cagney@b1.cygnus.com>
  747. * mi-cmds.h (mi_cmd_break_insert, mi_cmd_break_watch): Change type
  748. to mi_cmd_argv_ftype.
  749. * mi-cmds.c (mi_cmds): Update.
  750. * mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Change
  751. to new style of arguments with argc and argv. Parse arguments
  752. using mi_getopt.
  753. * mi-cmd-break.c (mi_cmd_break_insert): Wrap body in #ifdef UI_OUT
  754. to avoid non-ui compile problems.
  755. Mon Dec 13 15:08:36 1999 Andrew Cagney <cagney@b1.cygnus.com>
  756. * mi-getopt.h, mi-getopt.c: New files. Similar to getopt but with
  757. well defined semantics.
  758. Mon Dec 13 14:22:21 1999 Andrew Cagney <cagney@b1.cygnus.com>
  759. * mi-main.c (mi_cmd_break_insert, mi_cmd_break_watch, enum
  760. wp_type, enum bp_type): Move from here.
  761. * mi-cmd-break.c: To here. New file.
  762. (mi_cmd_break_insert, mi_cmd_break_insert, mi_cmd_break_watch):
  763. Use error to report problems.
  764. 1999-12-09 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
  765. * gdbmi.texinfo: Update description of exec-interrupt.
  766. * mi-main.c (mi_cmd_exec_interrupt): If the program is not
  767. executing, don't try to interrupt it, but error out instead. Make
  768. sure previous_async_command is not null before duplicating it into
  769. last_async_command.
  770. * gdbmi.texinfo: Add examples for data-evaluate-expression.
  771. 1999-12-08 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
  772. * mi-cmd-var.c (mi_cmd_var_assign, mi_cmd_var_create,
  773. mi_cmd_var_delete, mi_cmd_var_evaluate_expression,
  774. mi_cmd_var_info_expression, mi_cmd_var_info_num_children,
  775. mi_cmd_var_info_type, mi_cmd_var_list_children,
  776. mi_cmd_var_set_format, mi_cmd_var_show_attributes,
  777. mi_cmd_var_show_format, mi_cmd_var_update): Change to use new
  778. style of arguments with argc and argv.
  779. (next_arg): Delete.
  780. (which_var): Delete.
  781. * mi-cmds.c (mi_cmds): Update entries for mi_cmd_var_assign,
  782. mi_cmd_var_create, mi_cmd_var_delete,
  783. mi_cmd_var_evaluate_expression, mi_cmd_var_info_expression,
  784. mi_cmd_var_info_num_children, mi_cmd_var_info_type,
  785. mi_cmd_var_list_children, mi_cmd_var_set_format,
  786. mi_cmd_var_show_attributes, mi_cmd_var_show_format,
  787. mi_cmd_var_update.
  788. * mi-cmds.h (mi_cmd_var_assign, mi_cmd_var_create,
  789. mi_cmd_var_delete, mi_cmd_var_evaluate_expression,
  790. mi_cmd_var_info_expression, mi_cmd_var_info_num_children,
  791. mi_cmd_var_info_type, mi_cmd_var_list_children,
  792. mi_cmd_var_set_format, mi_cmd_var_show_attributes,
  793. mi_cmd_var_show_format, mi_cmd_var_update): Update declarations.
  794. 1999-12-08 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
  795. * gdbmi.texinfo: Comment out -data-assign command. * mi-main.c
  796. (mi_cmd_data_assign): Do not use, comment out. * mi-cmds.h
  797. (mi_cmd_data_assign): Remove. * mi-cmds.c: Remove -data-assign
  798. command from MI interface.
  799. 1999-12-07 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
  800. * mi-parse.c (mi_parse): Add '\n' at end of error messages, so
  801. that prompt comes out on new line.
  802. * gdbmi.texinfo: Update disassembly command output.
  803. 1999-12-06 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
  804. * mi-main.c (gdb_do_disassemble): Update output for UI_OUT case.
  805. 1999-12-02 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
  806. * gdbmi.texinfo: Update exec-until output, including the reason
  807. for stopping.
  808. Thu Dec 2 17:17:22 1999 Andrew Cagney <cagney@b1.cygnus.com>
  809. * mi-cmds.c: Include <string.h> for memset.
  810. 1999-12-01 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
  811. * mi-main.c (mi_cmd_exec_return): ifdef the references to
  812. return_command_wrapper().
  813. 1999-12-01 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
  814. * mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_interrupt,
  815. mi_cmd_target_select, mi_execute_async_cli_command,
  816. mi_exec_async_cli_cmd_continuation, mi_load_progress): Don't print
  817. last_async_command if it is NULL.
  818. (mi_cmd_exec_return):
  819. 1999-12-01 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
  820. * mi-main.c (mi_cmd_exec_return): Reimplement using
  821. return_command() instead of mi_execute_async_cli_command().
  822. 1999-12-01 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
  823. * mi-cmds.h: Export mi_cmd_data_assign and
  824. mi_cmd_data_evaluate_expression.
  825. * mi-cmds.c (mi_cmds): Hook data-assign to mi_cmd_data_assign and
  826. data-evaluate-expression to mi_cmd_data_evaluate_expression.
  827. * mi-main.c (mi_cmd_data_assign): New function. Implement
  828. data-assign command.
  829. (mi_cmd_data_evaluate_expression): New function. Implement
  830. data-evaluate-expression command.
  831. 1999-12-01 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
  832. * gdbmi.texinfo: Fix some texinfo formatting errors.
  833. 1999-12-01 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
  834. * gdbmi.texinfo: Update data-list-register-values description.
  835. * mi-cmds.h: Export mi_cmd_data_list_register_values.
  836. * mi-cmds.c (mi_cmds): Hook data-list-register-values to
  837. mi_cmd_data_list_register_values.
  838. * mi-main.c (mi_cmd_data_list_register_values): New
  839. function. Implements the -data-list-register-values command.
  840. (get_register): New function. Output the contents of a given
  841. register.
  842. Wed Dec 1 20:27:22 1999 Andrew Cagney <cagney@b1.cygnus.com>
  843. * mi-main.c (mi_execute_async_cli_command): Append missing "\n"
  844. for synchronous stopped message.
  845. 1999-11-30 James Ingham <jingham@leda.cygnus.com>
  846. * gdbmi.texinfo: Fix obvious typo in @end statement.
  847. Wed Dec 1 12:36:27 1999 Andrew Cagney <cagney@b1.cygnus.com>
  848. * mi-cmd-var.c: Include "value.h".
  849. * mi-console.c: Include <string.h>.
  850. Wed Dec 1 00:21:03 1999 Andrew Cagney <cagney@b1.cygnus.com>
  851. * mi-main.c (captured_mi_execute_command): For a CLI command, pass
  852. "%s" to mi_execute_cli_command to stop core dumps.
  853. (captured_mi_execute_command): Echo CLI commands on gdb_stdlog.
  854. Wed Dec 1 00:10:07 1999 Andrew Cagney <cagney@b1.cygnus.com>
  855. * gdbmi.texinfo: Explain NR-BYTES and ADDR.
  856. Tue Nov 30 23:31:57 1999 Andrew Cagney <cagney@b1.cygnus.com>
  857. * mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete,
  858. mi_cmd_var_set_format, mi_cmd_var_show_format,
  859. mi_cmd_var_info_num_children, mi_cmd_var_list_children,
  860. mi_cmd_var_info_type, mi_cmd_var_info_expression,
  861. mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression,
  862. mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one, next_arg,
  863. which_var): New file. Move varobj commands to here from
  864. mi-main.c.
  865. * mi-console.h, mi-console.c (mi_console_file_new,
  866. mi_console_file_delete, mi_console_file_fputs,
  867. mi_console_raw_packet, mi_console_file_flush): New files. Move
  868. mi_console_file to here from mi-main.c.
  869. Tue Nov 30 19:37:25 1999 Andrew Cagney <cagney@b1.cygnus.com>
  870. * mi-main.c (captured_mi_execute_command): Use fputstr_unfiltered
  871. when printing error messages.
  872. (mi_cmd_execute): Ditto.
  873. 1999-11-29 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
  874. * gdbmi.texinfo: Describe -data-list-changed-registers,
  875. -data-list-register-names. Add examples for
  876. -exec-next-instruction, exec-step-instruction, -exec-run,
  877. -exec-until. Format examples for -data-read-memory.
  878. update example for -target-download.
  879. 1999-11-29 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
  880. * gdbmi.texinfo: Remove mentioning of inaccurate watchpoint hit
  881. count.
  882. Mon Nov 29 19:28:55 1999 Andrew Cagney <cagney@b1.cygnus.com>
  883. * mi-main.c (mi_execute_async_cli_command): Return ``enum
  884. mi_cmd_cmd_result''. mi_cmd_exec_run, mi_cmd_exec_next,
  885. mi_cmd_exec_step, mi_cmd_exec_step_instruction,
  886. mi_cmd_exec_finish, mi_cmd_exec_until, mi_cmd_exec_return,
  887. mi_cmd_exec_continue): Update call.
  888. (mi_execute_async_cli_command): When target is synchronous, fake
  889. asynchronous behavour (ulgh). Allows tests to be run on built-in
  890. simulator and native targets.
  891. Mon Nov 29 15:15:16 1999 Andrew Cagney <cagney@b1.cygnus.com>
  892. * mi-cmds.h (mi_cmd_gdb_exit), mi-cmds.c (mi_cmds), mi-main.c
  893. (mi_cmd_gdb_exit): Change function signature to mi_cmd_argv_ftype.
  894. 1999-11-28 Andew Cagney <cagney@rat-in-a-hat.cygnus.com>
  895. * mi-parse.c: Include <ctype.h> and <string.h>
  896. 1999-11-26 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
  897. * gdbmi.texinfo: Added watchpoint command descriptions and
  898. examples.
  899. * mi-main.c (mi_load_progress): Add parameter for total sent so far.
  900. Print it as well.
  901. Fri Nov 26 10:17:49 1999 Andrew Cagney <cagney@b1.cygnus.com>
  902. * gdbmi.texinfo (section Output Syntax): For lists, the <string>
  903. part of a <result> is optional. Clarify syntax.
  904. (appendix Proposed v2.0 Output Syntax): New section. Provide
  905. record of discussion of possible changes to syntax.
  906. Wed Nov 24 19:41:35 1999 Andrew Cagney <cagney@b1.cygnus.com>
  907. * mi-main.c (mi_cmd_data_read_memory): Simplify. Fix coredump
  908. when arguments were bad.
  909. (mi_cmd_execute): Change parameter to ``struct mi_parse''. Handle
  910. case of argv_func as well as args_func.
  911. (captured_mi_execute_command): Update.
  912. * mi-cmds.c (struct mi_cmd): Add field for mi_cmd_argv_ftype.
  913. (mi_cmds): Update mi_cmd_data_read_memory.
  914. (mi_lookup): Return
  915. * mi-cmds.h (mi_cmd_args_ftype): Rename mi_cmd_ftype. Make all
  916. functions of type this type.
  917. (mi_cmd_argv_ftype): Declare.
  918. (mi_cmd_data_read_memory): Change type to mi_cmd_argv_fytpe.
  919. (struct mi_cmd): Move declaration to here from mi-cmds.c.
  920. (mi_lookup): Return a pointer to ``struct mi_cmd''.
  921. Wed Nov 24 15:03:34 1999 Andrew Cagney <cagney@b1.cygnus.com>
  922. * mi-parse.c (mi_parse): Initialize TOKEN when a CLI command.
  923. * gdbmi.texinfo: Allow a <token> before a CLI command.
  924. * mi-parse.h (struct mi_parse): Declare.
  925. (mi_parse): Change to return a ``struct mi_parse''.
  926. (enum mi_command_type): Delete PARSE_ERROR.
  927. * mi-main.c (struct mi_execute_command_context): Delete.
  928. (captured_mi_execute_command): Update
  929. (mi_execute_command): Update. Check for mi_parse returning NULL.
  930. Wed Nov 24 12:57:14 1999 Andrew Cagney <cagney@b1.cygnus.com>
  931. * mi-parse.h: Remove const, from cmd parameter. Causes cascading
  932. warnings.
  933. Wed Nov 24 15:03:34 1999 Andrew Cagney <cagney@b1.cygnus.com>
  934. * mi-parse.c (mi_parse): New function. Move parse code to here.
  935. * mi-main.c (parse): From here. Delete.
  936. Wed Nov 24 12:57:14 1999 Andrew Cagney <cagney@b1.cygnus.com>
  937. * mi-parse.c, mi-parse.h: New files. Implement mi_parse_env.
  938. Wed Nov 24 11:24:05 1999 Andrew Cagney <cagney@b1.cygnus.com>
  939. * mi-out.c (mi_field_string): Make string parameter constant.
  940. 1999-11-23 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
  941. * mi-cmds.h (mi_cmd_target_download): Export.
  942. * mi-cmds.c (mi_cmds): Add mi_cmd_target_download.
  943. * mi-main.c: Include <sys/time.h>.
  944. (mi_cmd_target_download): New function, implement the
  945. target-download command.
  946. (mi_load_progress): New function. Called via the
  947. show_load_progress hook. Prints updates every 0.5 secs.
  948. (mi_command_loop): Initialize the show_load_progress hook.
  949. 1999-11-22 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
  950. * mi-main.c (mi_cmd_exec_until): New function. Implement until
  951. command.
  952. (mi_cmd_exec_step_instruction): New function. Implement stepi
  953. command.
  954. (mi_cmd_exec_next_instruction): New function. Implement nexti
  955. command.
  956. * mi-cmds.c (mi_cmds): Add mi_cmd_exec_step_instruction,
  957. mi_cmd_exec_next_instruction, mi_cmd_exec_until.
  958. * mi-cmds.h (mi_cmd_exec_step_instruction,
  959. mi_cmd_exec_next_instruction, mi_cmd_exec_until): Export.
  960. Tue Nov 23 00:30:37 1999 Andrew Cagney <cagney@b1.cygnus.com>
  961. * mi/gdbmi.texinfo: Document -data-read-memory.
  962. * mi-main.c (mi_cmd_data_read_memory): Fix off-by-one check of
  963. argc.
  964. (mi_cmd_data_read_memory): Label the output table with "memory".
  965. Thu Nov 18 18:15:53 1999 Andrew Cagney <cagney@b1.cygnus.com>
  966. * mi-main.c (mi_cmd_exec_interrupt, mi_cmd_break_insert,
  967. mi_cmd_break_watch, mi_cmd_disassemble, mi_cmd_execute): Replace
  968. strdup with xstrdup.
  969. Thu Nov 18 20:50:09 1999 Andrew Cagney <cagney@b1.cygnus.com>
  970. * mi-main.c (mi_cmd_data_read_memory): New function. Implement
  971. data-read-memory.
  972. * mi-cmds.h, mi-cmds.c: Add mi_cmd_data_read_memory.
  973. * mi-cmds.c (mi_cmds): Ditto.
  974. 1999-11-11 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
  975. * mi-cmds.h (mi_cmd_break_watch): Export.
  976. * mi-cmds.c (mi_cmds): Hook up break-watch to function
  977. mi_cmd_break_watch.
  978. * mi-main.c (wp_type): New enumeration for the possible types of
  979. watchpoints.
  980. (mi_cmd_break_watch): New function, implements the break-watch
  981. command.
  982. 1999-11-11 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
  983. * mi-main.c (mi_cmd_break_insert): Handle case in which the command is
  984. just a -break-insert w/o args.
  985. Fri Nov 12 00:01:52 1999 Andrew Cagney <cagney@b1.cygnus.com>
  986. * mi-out.c (mi_field_string): Always quote the string.
  987. 1999-11-10 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
  988. * mi-cmds.h(mi_cmd_data_list_changed_registers,
  989. mi_cmd_data_list_register_names): Export.
  990. * mi-cmds.c (mi_cmds): Hook up data-list-changed-registers to
  991. mi_cmd_data_list_changed_registers and data-list-register-names to
  992. mi_cmd_data_list_register_names.
  993. * mi-main.c (mi_cmd_data_list_changed_registers): New function,
  994. implements the data-list-changed-registers command.
  995. (mi_cmd_data_list_register_names): New function, implements the
  996. data-list-register-names command.
  997. (register_changed_p): New function. Decide whether the register
  998. contents have changed.
  999. (setup_architecture_data): New function. Initialize registers
  1000. memory.
  1001. (_initialize_mi_main): Call setup_architecture_data(), and
  1002. register_gdbarch_swap().
  1003. Wed Nov 10 18:35:08 1999 Andrew Cagney <cagney@b1.cygnus.com>
  1004. * mi-main.c (mi_execute_command): Correctly quote error messages.
  1005. Wed Nov 10 11:05:14 1999 Andrew Cagney <cagney@b1.cygnus.com>
  1006. * mi/gdbmi.texinfo: Delete <stream-output>. Replaced by
  1007. <c-string>.
  1008. * mi-main.c (mi_console_raw_packet): Always quote console output.
  1009. Tue Nov 9 17:53:05 1999 Andrew Cagney <cagney@b1.cygnus.com>
  1010. * mi-main.c (mi_console_file_new), mi-out.c (mi_out_new): Replace
  1011. the tui_file with a mem_file. Ya!
  1012. * mi-out.c (do_write): New function, wrapper to gdb_file_write.
  1013. (mi_out_put): Pass do_write to gdb_file_put.
  1014. * mi-main.c (mi_console_file_flush): Rewrite. Use
  1015. mi_console_raw_packet to send data to the console.
  1016. (mi_console_raw_packet): New function. Correctly
  1017. create quoted C string packets.
  1018. 1999-11-08 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
  1019. * mi-cmds.c (mi_cmds): Break-insert is now implemented by
  1020. mi_cmd_break_insert.
  1021. * mi-cmds.h (mi_cmd_break_insert): Export.
  1022. * mi-main.c (bp_type): New enumeration.
  1023. (mi_cmd_break_insert): New function. Implements all flavors of
  1024. breakpoint insertion.
  1025. Mon Nov 8 17:49:17 1999 Andrew Cagney <cagney@b1.cygnus.com>
  1026. * mi-main.c (mi_console_file_flush): Replace gdb_file_get_strbuf
  1027. with tui_file_get_strbuf.
  1028. Fri Nov 5 17:06:07 1999 Andrew Cagney <cagney@b1.cygnus.com>
  1029. * mi-main.c (mi_console_file_delete, mi_console_file_fputs,
  1030. mi_console_file_flush): Call internal_error instead of error.
  1031. Thu Nov 4 19:53:32 1999 Andrew Cagney <cagney@b1.cygnus.com>
  1032. * mi-main.c (captured_mi_execute_command): New function.
  1033. (mi_execute_command): Rewrite. Replace SET_TOP_LEVEL() with call
  1034. to captured_mi_execute_command via catch_errors.
  1035. Thu Nov 4 20:33:58 1999 Andrew Cagney <cagney@b1.cygnus.com>
  1036. * mi-main.c (clean): Delete.
  1037. (mi_command_loop): Delete extern declaration of
  1038. mi_execute_command.
  1039. 1999-10-28 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
  1040. * mi-main.c (mi_cmd_stack_select_frame): Conditionalize the body
  1041. on UI_OUT, because select_frame_command_wrapper is only defined if
  1042. UI_OUT is.
  1043. (mi_cmd_exec_interrupt): Conditionalize the body on UI_OUT,
  1044. because interrupt_target_command_wrapper is only defined if UI_OUT is.
  1045. * mi-cmds.c (mi_cmds): Implement command exec-interrupt by
  1046. mi_cmd_exec_interrupt.
  1047. * mi-main.c (mi_cmd_exec_interrupt): New function. Implements
  1048. exec-interrupt command.
  1049. (mi_cmd_execute): If the target is running save execution command
  1050. token in previous_async_command. If the command is not 'interrupt'
  1051. and the target is running, reject it.
  1052. (clean): New function. Free the arg and reset it to NULL.
  1053. * mi-cmds.h (mi_cmd_exec_interrupt):Export.
  1054. 1999-10-28 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
  1055. * mi-cmds.c (mi_cmds): Implement command stack-select-frame by
  1056. mi_cmd_stack_select_frame.
  1057. * mi-main.c (mi_cmd_stack_select_frame): New function. Implements
  1058. stack-select-frame command.
  1059. * mi-cmds.h (mi_cmd_select_frame):Export.
  1060. 1999-10-26 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
  1061. * mi-cmds.c (mi_cmds): Implement commands stack-list-locals and
  1062. stack-list-arguments by mi_cmd_stack_list_locals and
  1063. mi_cmd_stack_list_args.
  1064. * mi-main.c (mi_cmd_stack_list_locals): New function. Implements
  1065. stack-list-locals command.
  1066. (mi_cmd_stack_list_args): New function. Implements
  1067. stack-list-arguments command.
  1068. (list_args_or_locals): New function. Do all the work for the
  1069. listing of locals or arguments.
  1070. * mi-cmds.h (mi_cmd_stack_list_args,mi_cmd_stack_list_locals) :
  1071. Export.
  1072. 1999-10-25 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
  1073. * mi-cmds.c (mi_cmds): Add new command stack-info-depth.
  1074. * mi-main.c (mi_cmd_stack_info_depth): New function. Implements
  1075. the stack-info-depth command.
  1076. * mi-cmds.h (mi_cmd_stack_info_depth): Export.
  1077. 1999-10-22 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
  1078. * mi-main.c (mi_execute_command): Handle MI_CMD_ERROR case
  1079. properly, for command that return error code and don't set
  1080. mi_error_message.
  1081. * mi-cmds.c (mi_cmds): Hook stack-list-frames command to
  1082. mi_cmd_stack_list_frames function.
  1083. * mi-cmds.h (mi_cmd_stack_list_frames): Export.
  1084. * mi-main.c (mi_execute_command): Deal with a return code of
  1085. MI_CMD_ERROR from the execution of mi commands.
  1086. (mi_error_message): Static string variable, to contain the error
  1087. message from mi commands.
  1088. (mi_cmd_stack_list_frames): New function. Prints a backtrace.
  1089. 1999-10-18 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
  1090. * mi-main.c (mi_cmd_disassemble): Handle the new command line
  1091. parameter that specifies the number of disassembly lines to be
  1092. displayed.
  1093. (gdb_do_disassemble): Add new parameter. Count the number of lines
  1094. that have been displayed, and stop when limit is reached.
  1095. Wed Oct 13 18:04:13 1999 Andrew Cagney <cagney@b1.cygnus.com>
  1096. * mi-main.c (mi_command_loop): Don't initialize ``flush_hook''.
  1097. 1999-10-13 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
  1098. * mi/gdbmi.texinfo: More reformatting of the grammars.
  1099. 1999-10-12 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
  1100. * mi/gdbmi.texinfo: More TeX formatting.
  1101. 1999-10-11 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
  1102. * mi/gdbmi.texinfo: First pass completed. All commands should have
  1103. some comments/info.
  1104. Escape '@' output special char.
  1105. Reformat for TeX.
  1106. 1999-10-08 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
  1107. * mi/gdbmi.texinfo: Filled in part of file command section, and
  1108. stack section.
  1109. 1999-10-07 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
  1110. * mi/gdbmi.texinfo: Filled in some sections about execution
  1111. commands.
  1112. Tue Oct 5 15:27:28 1999 Andrew Cagney <cagney@b1.cygnus.com>
  1113. * mi-cmds.h: Sort table
  1114. * mi-cmds.c: Ditto.
  1115. (MI_TABLE_SIZE): Increase to 251.
  1116. 1999-10-04 Fernando Nasser <fnasser@totem.to.cygnus.com>
  1117. * mi-main.c (mi_cmd_var_create, mi_cmd_var_delete): Add missing
  1118. cleanups.
  1119. 1999-10-04 Fernando Nasser <fnasser@totem.to.cygnus.com>
  1120. * mi-main.c (next_arg): Returns lenght as well.
  1121. (which_var, mi_cmd_var_create, mi_cmd_var_delete,
  1122. mi_cmd_var_set_format, mi_cmd_var_update): Do not modify the input
  1123. string, use allocated storage instead.
  1124. (mi_cmd_var_assign): Adjust call to next_arg() to include new
  1125. argument.
  1126. 1999-10-04 Fernando Nasser <fnasser@totem.to.cygnus.com>
  1127. * mi-main.c (mi_execute_command): Fix handling of errors.
  1128. 1999-10-04 Fernando Nasser <fnasser@totem.to.cygnus.com>
  1129. * mi-out.c (mi_out_new): Call tui_sfileopen() instead of
  1130. deprecated gdb_file_init_astream().
  1131. * mi-main.c (mi_console_file_new): Ditto.
  1132. Mon Oct 4 15:17:29 1999 Andrew Cagney <cagney@b1.cygnus.com>
  1133. * mi-cmds.h: Sort function declarations.
  1134. (mi_lookup): Add extern.
  1135. * mi-cmds.c (mi_lookup): Delete dead code.
  1136. (build_table): Call internal_error instead of error.
  1137. (build_table): Send trace output to gdb_stdlog.
  1138. 1999-10-01 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
  1139. * mi-main.c (mi_execute_async_cli_command): Don't do the cleanups
  1140. if target_executing is null.
  1141. 1999-09-28 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
  1142. * mi-main.c (async_p): Change var name to event_loop_p.
  1143. Mon Sep 27 15:11:00 1999 Andrew Cagney <cagney@b1.cygnus.com>
  1144. * mi-main.c (mi_execute_async_cli_command, mi_execute_command):
  1145. Replace target_has_async with function target_can_async_p.
  1146. Sun Sep 26 00:12:52 1999 Andrew Cagney <cagney@b1.cygnus.com>
  1147. * mi-main.c (mi_cmd_target_select_continuation): Delete function.
  1148. (mi_cmd_target_select): Simplify. target-connect is guarenteed to
  1149. be synchronous.
  1150. Sun Sep 26 00:12:52 1999 Andrew Cagney <cagney@b1.cygnus.com>
  1151. * mi-cmds.h (mi_cmd_ftype): Replace mi_impl_ftype.
  1152. (enum mi_cmd_result): Define.
  1153. * mi-cmds.c (struct mi_cmd): Update.
  1154. (mi_lookup): Update.
  1155. * mi-main.c (mi_cmd_execute): Update.
  1156. * mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_run, mi_cmd_exec_next,
  1157. mi_cmd_exec_step, mi_cmd_target_select, mi_cmd_exec_continue,
  1158. mi_cmd_exec_return, mi_cmd_exec_finish, mi_cmd_disassemble,
  1159. mi_cmd_var_create, mi_cmd_var_delete, mi_cmd_var_set_format,
  1160. mi_cmd_var_show_format, mi_cmd_var_info_num_children,
  1161. mi_cmd_var_list_children, mi_cmd_var_info_type,
  1162. mi_cmd_var_info_expression, mi_cmd_var_show_attributes,
  1163. mi_cmd_var_evaluate_expression, mi_cmd_var_update): Update.
  1164. Return MI_CMD_DONE.
  1165. 1999-09-22 Fernando Nasser <fnasser@totem.to.cygnus.com>
  1166. * mi-main.c (mi_cmd_var_create): Use paddr() to format address
  1167. on trace output.
  1168. 1999-09-21 Fernando Nasser <fnasser@totem.to.cygnus.com>
  1169. * mi-main.c (mi_cmd_var_create): Test for varobjdebug before
  1170. printing trace and send it to gdb_stdlog.
  1171. Mon Sep 20 13:41:04 1999 Andrew Cagney <cagney@b1.cygnus.com>
  1172. * Makefile.in (mi-out.o): Add dependency list.
  1173. * mi-out.c: Include "mi-out.h".
  1174. 1999-09-18 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
  1175. * mi-main.c (_initialize_mi_main): Events on stadin are now
  1176. handled by stdin_event_handler.
  1177. 1999-09-17 Fernando Nasser <fnasser@totem.to.cygnus.com>
  1178. * mi-cmds.c (mi_cmds): Add var-* commands.
  1179. 1999-09-17 Fernando Nasser <fnasser@totem.to.cygnus.com>
  1180. * mi-main.c (mi_cmd_var_create, mi_cmd_var_delete,
  1181. mi_cmd_var_set_format, mi_cmd_var_show_format,
  1182. mi_cmd_var_info_num_children, mi_cmd_var_list_children,
  1183. mi_cmd_var_info_type, mi_cmd_var_info_expression,
  1184. mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression,
  1185. mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one,
  1186. which_var, next_arg): New functions. Implement the -var-*
  1187. commands.
  1188. * mi-cmds.h: Add prototypes for the above.
  1189. 1999-09-14 Fernando Nasser <fnasser@totem.to.cygnus.com>
  1190. * mi-cmds.c (mi_cmds): Add detach command.
  1191. 1999-09-09 Fernando Nasser <fnasser@totem.to.cygnus.com>
  1192. * mi-cmds.c (lookup_table): Fix typo.
  1193. 1999-09-09 Fernando Nasser <fnasser@totem.to.cygnus.com>
  1194. * mi-cmds.c (mi_cmds): Fix typo and missing command.
  1195. 1999-09-09 Fernando Nasser <fnasser@totem.to.cygnus.com>
  1196. * mi-main.c: Properly align function prototypes.
  1197. (mi_cmd_target_select): Proper check for NULL value.
  1198. 1999-09-09 Fernando Nasser <fnasser@totem.to.cygnus.com>
  1199. * mi-main.c (mi_execute_async_cli_command): Fix for native targets
  1200. that do not have async yet.
  1201. 1999-09-01 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
  1202. * mi-main.c (mi_cmd_disassemble): Remove unused var.
  1203. (gdb_do_disassemble): Ditto.
  1204. 1999-08-30 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
  1205. * mi-main.c: Replace all the occurrences of 'asynch' in variable
  1206. or function names with 'async' to make it consistent with the rest
  1207. of gdb.
  1208. Mon Aug 30 18:16:39 1999 Andrew Cagney <cagney@b1.cygnus.com>
  1209. * mi-main.c: #include <ctype.h> for isspace().
  1210. 1999-08-27 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
  1211. * mi-main.c (gdb_do_disassemble): This function returns void, not
  1212. int.
  1213. 1999-08-26 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
  1214. * mi-main.c (mi_cmd_disassemble): Don't use atoi() on the high
  1215. address string, just treat it same as address low.
  1216. (gdb_do_disassemble): Parse high_address string before seeing if
  1217. it is zero.
  1218. 1999-08-25 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
  1219. * mi-main.c (mi_cmd_disassemble): New function to produce
  1220. disassembly output for mi.
  1221. (gdb_dis_asm_read_memory): New function. Read the disassembly from
  1222. the executable file, instead of target memory.
  1223. (compare_lines): New function. Compare order of disassembly lines.
  1224. (gdb_do_disassemble): New function. Do the real job of getting the
  1225. assembly code out.
  1226. * mi-cmds.c (mi_cmds): Do data-disassemble mi command via the
  1227. mi_cmd_disassemble function.
  1228. * mi-cmds.h: Export new function mi_cmd_disassemble.
  1229. Wed Aug 25 15:58:31 1999 Andrew Cagney <cagney@b1.cygnus.com>
  1230. * mi-main.c (mi_command_loop): Remove references to ui-hooks.
  1231. 1999-08-21 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
  1232. * mi-main.c (mi_execute_asynch_cli_command): Fix the incorrect
  1233. usage of strcat(): allocate enough space for the string.
  1234. 1999-08-13 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
  1235. From Christopher Faylor <cgf@cygnus.com>
  1236. * mi-main.c (mi_execute_command): Make sure we flush all the
  1237. output after each command.
  1238. 1999-08-10 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
  1239. * mi-main.c (_initialize_mi_main): Remove casting in call to
  1240. add_file_handler.
  1241. Sun Aug 8 17:20:57 1999 Andrew Cagney <cagney@b1.cygnus.com>
  1242. * mi-main.c (mi_cmd_target_select, mi_execute_asynch_cli_command):
  1243. Replace call to fatal with call to internal_error.
  1244. 1999-07-26 Fernando Nasser <fnasser@totem.to.cygnus.com>
  1245. * mi-main.c (mi_cmd_execute): Add return code.
  1246. (mi_execute_command): Make appropriate changes when calling the
  1247. function mentioned above.
  1248. (mi_cmd_gdb_exit, mi_cmd_target_select,
  1249. mi_cmd_target_select_continuation, mi_execute_command,
  1250. mi_exec_asynch_cli_cmd, mi_exec_asynch_cli_cmd_continuation):
  1251. Print token, prefix, class and output (if any) in one single group
  1252. of statements.
  1253. (mi_execute_command, mi_cmd_execute): Fix error prefix.
  1254. (mi_cmd_execute): Use exec cleanup for token.
  1255. * mi-out.c (mi_out_rewind): New function.
  1256. * mi-out.h: Prototype for the above.
  1257. 1999-07-16 Fernando Nasser <fnasser@totem.to.cygnus.com>
  1258. * mi-main.c (mi_cmd_gdb_exit): Use buffer for exit message.
  1259. (mi_cmd_execute): Route error messages to correct file.
  1260. (mi_execute_asynch_cli_command): Insert line feed after running
  1261. message.
  1262. 1999-07-16 Fernando Nasser <fnasser@totem.to.cygnus.com>
  1263. * mi-out.h (mi_out_buffered): Add extern declaration.
  1264. * mi-out.c (mi_out_buffered): New function. Insert a string at the
  1265. current buffer position.
  1266. * mi-main.c (mi_cmd_target_select, mi_execute_command,
  1267. mi_cmd_execute, mi_execute_asynch_cli_command): Use the above
  1268. function instead of printing to raw_stdout.
  1269. (mi_cmd_target_select, mi_cmd_target_select_continuation,
  1270. mi_execute_command, mi_cmd_execute, mi_execute_cli_command,
  1271. mi_exec_asynch_cli_cmd_continuation): Fix handling of token and
  1272. prefix.
  1273. (mi_execute_cli_command): Remove parameter no longer needed.
  1274. 1999-07-15 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
  1275. * mi-main.c (mi_cmd_target_select_continuation): Print the numeric
  1276. token when we are connected.
  1277. (mi_execute_command): Don't print the token now, do it later.
  1278. (mi_execute_cli_command): Add a new parameter for the numeric
  1279. token. Print the token, the prefix and the class after the
  1280. command has executed, not before.
  1281. (mi_execute_asynch_cli_command): Don't print an extra blank line.
  1282. 1999-07-15 Fernando Nasser <fnasser@totem.to.cygnus.com>
  1283. * mi-main.c (mi_gdb_exit): Add \n at the end.
  1284. 1999-07-15 Fernando Nasser <fnasser@totem.to.cygnus.com>
  1285. * mi-main.c (mi_cmd_execute): New function. Dispatch a mi operation.
  1286. (mi_execute_command): Use the above.
  1287. 1999-07-15 Fernando Nasser <fnasser@totem.to.cygnus.com>
  1288. * mi-main.c: Fix identation.
  1289. 1999-07-15 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
  1290. * mi-main.c: Include target.h and inferior.h.
  1291. (mi_cmd_target_select): New function to execute the target-select
  1292. mi operation.
  1293. (mi_cmd_target_select_continuation): New function. Continuation
  1294. for the target-select operation.
  1295. (mi_execute_command): In case of an MI command which requires
  1296. asynchronous execution, do not try to display the result now. If
  1297. the execution has to look synchronous don't display the "(gdb)"
  1298. prompt.
  1299. (mi_execute_asynch_cli_command): Invoke real asynchronous
  1300. commands, set up exec_cleanups, and continuations.
  1301. (mi_exec_asynch_cli_cmd_continuation): New function. Continuation
  1302. for all the MI execution commands except 'target-select'.
  1303. (mi_execute_command): Handle null commands by exiting gdb, instead
  1304. of core dumping.
  1305. * mi-cmds.c (mi_cmds): Hook up -target-select operation to new mi
  1306. function.
  1307. * mi-cmds.h (mi_cmd_target_select): Add extern declaration.
  1308. Thu Jul 15 10:31:39 1999 Andrew Cagney <cagney@b1.cygnus.com>
  1309. * mi-main.c (struct mi_console_file): Add field ``prefix''.
  1310. (mi_console_file_new): Add argument prefix. Initialize prefix
  1311. field.
  1312. (mi_console_file_flush): Use ``prefix'' instead of "~" as the
  1313. prefix string.
  1314. (mi_command_loop): Update stream output prefixes. gdb_stdout ==
  1315. "~", gdb_stderr / gdb_stdlog == "&", gdb_stdtarg == "@".
  1316. 1999-07-13 Fernando Nasser <fnasser@totem.to.cygnus.com>
  1317. * mi-main.c (ui_out_data): New field first_header. Fix output when
  1318. no breakpoints are found.
  1319. (mi_table_begin, mi_table_body, mi_table_header): Test for
  1320. first_header.
  1321. (mi_table_end): Test for supress_field_separator.
  1322. (mi_message): Remove messages from MI output.
  1323. 1999-06-30 Fernando Nasser <fnasser@totem.to.cygnus.com>
  1324. * mi-cmds.c (mi_cmds[]): Delete gdb-cli operation.
  1325. * mi-main.c (parse): Remove ifdefs for cli commands parsing.
  1326. (mi-execute-command): Ditto.
  1327. Mon Jun 28 13:06:52 1999 Andrew Cagney <cagney@b1.cygnus.com>
  1328. * mi-out.h: New file.
  1329. (mi_out_new, mi_out_put): Move mi specific delcarations to here.
  1330. * ui-out.h: From here.
  1331. * mi-main.c: Include "mi-out.h".
  1332. 1999-06-25 Fernando Nasser <fnasser@totem.to.cygnus.com>
  1333. * top.c (print_gdb_version): Add the word HEADLESS when output
  1334. follows headless format.
  1335. (print_command_lines): Fix typo.
  1336. 1999-06-25 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
  1337. * event-loop.h: Export input_fd.
  1338. * mi-main.c (mi_command_loop): Use the event loop if running
  1339. asynchronously.
  1340. (mi_execute_command_wrapper): New function.
  1341. (_initialize_mi-main): Set things up for running asynchronously.
  1342. 1999-06-18 Fernando Nasser <fnasser@totem.to.cygnus.com>
  1343. * mi-cmds.c (mi_lookup): Deleted.
  1344. (lookup_table): New function. Replaces old mi_lookup() for local
  1345. use.
  1346. (mi_lookup): New function. External interface for command table
  1347. searchs.
  1348. (build_table): New definition.
  1349. (mi_cmds[]): Add several command implementations and the gdb-cli
  1350. special operation.
  1351. (mi_cmd_execute): Deleted.
  1352. * mi-cmds.h: Add type definition for command implementation
  1353. function pointers, add declaration for new implementation
  1354. functions and a declaration for mi_lookup().
  1355. * mi-main.c (mi_execute_asynch_cli_command): New
  1356. function. Captures code that was repeated for all asynch
  1357. operations.
  1358. (mi_cmd_exec_*): Use the above new function.
  1359. (mi_gdb_cmd_exit): Fix the output, printing something appropriate.
  1360. (mi_cmd_exec_finish): New operation implementation function.
  1361. (mi_cmd_exec_return): Ditto.
  1362. (parse): Prepare to remove cli commands.
  1363. (mi_execute_command): Fix the output and change the way mi-cmds is
  1364. used.
  1365. 1999-06-18 Fernando Nasser <fnasser@totem.to.cygnus.com>
  1366. * mi-out.c (mi_table_begin): Add missing field separator call.
  1367. Thu Jun 17 21:05:40 1999 Fernando Nasser <fnasser@tofu.to.cygnus.com>
  1368. * breakpoint.c (breakpoint_1): Remove space in breakpoint table
  1369. id.
  1370. (mention): Use ui_out for last new line (forgotten).
  1371. 1999-06-16 Fernando Nasser <fnasser@totem.to.cygnus.com>
  1372. * mi-main.c (mi_console_file_flush): Prevent prefix printing when
  1373. buffer empty; change prefix to '~'.
  1374. (mi_cmd_exec_*): Prefix normal output with '^' instead of
  1375. ','; remove unwanted new lines before "stopped".
  1376. 1999-06-16 Fernando Nasser <fnasser@totem.to.cygnus.com>
  1377. * mi-cmds.c (struct mi_cmds): Updated entries for -exec-continue
  1378. and exec-next operations.
  1379. (mi_cmd_execute): New text for error messages.
  1380. * mi-cmds.h: Add declaration for mi_cmd_exec_next and
  1381. mi_cmd_exec_continue.
  1382. * mi-main.c (mi_cmd_exec_next): New function. Implements exec-next
  1383. operation.
  1384. (mi_cmd_exec_continue): New function. Implements exec-continue
  1385. operation.
  1386. (mi_execute_comand): Add missing space to prompt.
  1387. (mi_cmd_exec_run): Ditto.
  1388. (mi_cmd_exec_step): Ditto.
  1389. * mi-out.c (mi_out_new): Add flags argument to ui_out_new call.
  1390. (ui_list_end): Reset supress_field_separator flag.
  1391. Sat Jun 12 11:49:10 1999 Andrew Cagney <cagney@b1.cygnus.com>
  1392. * mi-cmds.h. mi-cmds.c (exec step): Command implemented by
  1393. mi_cmd_exec_step instead of cli call.
  1394. * mi-main.c (mi_cmd_exec_step): New function.
  1395. * mi-cmds.h. mi-cmds.c (exec run): Command implemented by
  1396. mi_cmd_exec_run instead of cli call.
  1397. * mi-main.c (mi_cmd_exec_run): New function.
  1398. * mi-cmds.h. mi-cmds.c (gdb exit): Command implemented by
  1399. mi_cmd_gdb_exit instead of quit_force.
  1400. * mi-main.c (mi_cmd_gdb_exit): New function.
  1401. Sat Jun 12 11:33:23 1999 Andrew Cagney <cagney@b1.cygnus.com>
  1402. * mi-main.c (mi_command_loop): Pass mi_input to
  1403. simplified_command_loop.
  1404. (mi_input): New function. Calls gdb_readline with no prompt.
  1405. Sat Jun 12 11:19:02 1999 Andrew Cagney <cagney@b1.cygnus.com>
  1406. * mi-main.c (mi_console_file_fputs): Re-implement. Use a buffer
  1407. to accumulate output.
  1408. * mi-main.c (struct mi_console_file): Add a buffer.
  1409. (mi_console_file_new): Create a buffer.
  1410. (mi_console_file_flush): New function.
  1411. Sat Jun 12 10:59:39 1999 Andrew Cagney <cagney@b1.cygnus.com>
  1412. * mi-cmds.h (raw_stdout): Declare. Will be moved later.
  1413. * mi-cmds.c (mi_cmd_execute): Send error messages to RAW stdout.
  1414. (mi_cmds): Sort by class.
  1415. * mi-main.c (raw_stdout): Make global.
  1416. * mi-main.c: Remove #ifdef UI_OUT. File assumes UI_OUT is
  1417. present.
  1418. * mi-main.c: Include "gdb_string.h".
  1419. (mi_out_put): Delete declaration.
  1420. 1999-06-11 Fernando Nasser <fnasser@totem.to.cygnus.com>
  1421. * mi-main.c: Add pre-processor test for UI_OUT.
  1422. (mi_execute_command): Add pre-processor test for UI_OUT.
  1423. Fri Jun 11 23:11:41 1999 Andrew Cagney <cagney@b1.cygnus.com>
  1424. * mi-main.c (raw_stdout): New variable.
  1425. (mi_execute_command): Write mi-out direct to raw_stdout.
  1426. (mi_command_loop): Create raw_stdout. Attach gdb_stdout to the
  1427. console.
  1428. (mi_console_file_fputs, mi_console_file_delete,
  1429. mi_console_file_new): New functions.
  1430. (struct mi_console_file): Declare.
  1431. Fri Jun 11 18:34:33 1999 Andrew Cagney <cagney@b1.cygnus.com>
  1432. * mi-main.c (mi_execute_command): Call mi_out_put to display the
  1433. result.
  1434. * mi-out.c (mi_out_put): New function.
  1435. * ui-out.h (mi_out_put): Add declare. Will move later.
  1436. * Makefile.in (mi-cmds.o, mi-main.o): Add dependency on ui-out.h.
  1437. * mi-out.c (mi_field_string, mi_field_fmt, mi_message, mi_flush,
  1438. out_field_fmt, list_open, list_close): Replace gdb_stdout with
  1439. data->buffer.
  1440. (field_separator, list_open, list_close): Add uiout parameter.
  1441. (mi_table_begin, mi_table_body, mi_table_end, mi_list_begin,
  1442. mi_list_end, mi_field_string, mi_field_fmt, out_field_fmt,
  1443. out_field_fmt): Update.
  1444. * mi-out.c (mi_out_new): Initialize supress_field_separator.
  1445. (supress_field_separator): Move into mi-out local data object.
  1446. (mi_table_begin, mi_list_begin, field_separator): Update.
  1447. Fri Jun 11 16:08:37 1999 Andrew Cagney <cagney@b1.cygnus.com>
  1448. * mi-out.c (mi_out_new): New function, replace init_mi_out.
  1449. * mi-main.c (mi_command_loop): Call mi_out_new().
  1450. * ui-out.h (mi_out_new): Add declaration. Will move later.
  1451. (mi_ui_out_impl): Delete.
  1452. Wed Jun 9 16:42:16 1999 Andrew Cagney <cagney@b1.cygnus.com>
  1453. * mi-main.c: Include "ui-hooks.h".
  1454. (mi_init_ui, mi_command_loop): New functions.
  1455. (_initialize_mi_main): Install ``mi'' as the interpreter when
  1456. selected.
  1457. Mon Jun 7 18:43:43 1999 Andrew Cagney <cagney@b1.cygnus.com>
  1458. From Fernando Nasser <fnasser@totem.to.cygnus.com>
  1459. * mi-cmds.c (build_table): Clean up error message.
  1460. * mi-cmds.c (mi_cmd_execute), mi-main.c (mi_execute_command): Only
  1461. print debug information when mi_debug_p.
  1462. * mi-cmds.h (mi_debug_p), mi-main.c: Global, control debug messages.
  1463. Thu Jun 3 00:44:52 1999 Andrew Cagney <cagney@b1.cygnus.com>
  1464. From Fernando Nasser <fnasser@totem.to.cygnus.com>:
  1465. * mi-cmds.c: Add CLI definitions for "exec-arguments",
  1466. "exec-next", "gdb-exit", "break-list", "break-info", "exec-step"
  1467. and "stack-list-frames" to mi_cmds.
  1468. (struct mi_command): Add ``from_tty'' argument to func.
  1469. * mi-cmds.h (quit_force): Declare.
  1470. 1999-05-31 Fernando Nasser <fnasser@totem.to.cygnus.com>
  1471. * mi-out.c (mi_table_end): Remove unwanted "\n".
  1472. Thu May 27 14:59:06 1999 Andrew Cagney <cagney@b1.cygnus.com>
  1473. * top.c: Include "ui-hooks.h".
  1474. (call_interp_loop): Tempoary. Pass mi_execute_command to
  1475. simplified_command_loop. Initialize gdb_stdout & gdb_stderr to
  1476. stdio gdb_file streams. Force all hooks to null.
  1477. * mi-cmds.h, mi-main.c, mi-cmds.c: New files.
  1478. * Makefile.in (SFILES): Add mi-main.c, mi-cmds.c
  1479. (COMMON_OBS): Add mi-main.o, mi-cmds.o.
  1480. (mi_cmds_h): Define.
  1481. Wed May 26 12:39:49 1999 Andrew Cagney <cagney@b1.cygnus.com>
  1482. * top.c (call_interp_loop): Hack. Add extern declaration for
  1483. mi_ui_out_impl.
  1484. 1999-05-25 Fernando Nasser <fnasser@totem.to.cygnus.com>
  1485. * mi-out.c: New table syntax.
  1486. Mon May 24 16:16:29 1999 Andrew Cagney <cagney@amy.cygnus.com>
  1487. mi-out.c (_initialize_mi_out): Add external declaration.
  1488. 1999-05-21 Fernando Nasser <fnasser@totem.to.cygnus.com>
  1489. * mi-out.c (mi_table_begin): Added missing parameter.
  1490. 1999-05-21 Fernando Nasser <fnasser@totem.to.cygnus.com>
  1491. * mi-out.c: Changed table markers and added table id.
  1492. 1999-05-21 Fernando Nasser <fnasser@totem.to.cygnus.com>
  1493. * mi-out.c: New file. Implements low-level ui-out primitives for
  1494. CLI-based interaction.
  1495. Local Variables:
  1496. mode: change-log
  1497. left-margin: 8
  1498. fill-column: 74
  1499. version-control: never
  1500. End: