* tuiDisassem.c (tuiSetDisassemContent): Use breakpoint_here_p.
[deliverable/binutils-gdb.git] / gdb / tui / ChangeLog
1 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
2
3 * tuiDisassem.c (tuiSetDisassemContent): Use breakpoint_here_p.
4 (_hasBreak): Remove.
5
6 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
7
8 * tuiDisassem.c (tuiGetBeginAsmAddress): Use lookup_minimal_symbol
9 to find symbol address.
10
11 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
12
13 * tuiSourceWin.c (tui_display_main): Rename from tuiDisplayMainFunction
14 and use tuiGetBeginAsmAddress.
15 * tuiSourceWin.h (tui_display_main): Declare.
16 * tui.h (tuiDisplayMainFunction): Remove.
17 * tui-hooks.c (tui_new_objfile_hook): Update.
18
19 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
20
21 * tuiSource.h (m_tuiShowSourceAsIs): Remove macro.
22 (tuiShowSourceAsIs): Don't declare.
23
24 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
25
26 * tui-hooks.c (tui_selected_frame_level_changed_hook): Always update
27 the frame position.
28
29 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
30
31 * tuiStack.c (tuiSetLocatorContent): Remove.
32 (tuiUpdateLocatorInfoFromFrame): Remove.
33 (tui_set_locator_info): Allocate the content buffer if necessary.
34 (tui_set_locator_filename): Call tui_set_locator_info directly.
35 (tuiShowFrameInfo): Likewise and use find_pc_line instead of
36 find_pc_symtab.
37
38 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
39
40 * tuiSourceWin.c (tuiDisplayMainFunction): Update to use
41 tuiUpdateLocatorFilename.
42 * tuiStack.c (tuiSetLocatorInfo): Make it static.
43 (tuiSetLocatorContent): Likewise.
44 (tuiUpdateLocatorInfoFromFrame): Likewise.
45 (tuiSwitchFilename): Remove.
46 (tui_set_locator_filename): New function
47 (tui_set_locator_info): Rename from tuiSetLocatorInfo to GNU-ify;
48 use tui_set_locator_filename to record the filename.
49 (tuiUpdateLocatorFilename): Likewise.
50 (tuiUpdateLocatorInfoFromFrame): Update.
51 (tuiSetLocatorContent): Likewise.
52 * tuiStack.h (tuiClearLocatorContent): Don't declare.
53 (tuiSetLocatorInfo, tuiSetLocatorContent): Likewise.
54 (tuiUpdateLocatorInfoFromFrame, tuiSwitchFilename): Likewise.
55
56 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
57
58 * tuiSourceWin.c (tuiSetHasBreakAt): Use filename for breakpoint
59 comparison; cleanup.
60 * tuiSource.c (tuiSetSourceContent): Set window title and filename.
61 * tuiGeneralWin.c (boxWin): Print optional title on top of window.
62 * tuiData.h (TuiSourceInfo): Add filename member.
63 (TuiGenWinInfo): Add title member.
64 * tuiData.c (initGenericPart): Clear title.
65 (freeWindow): Free title and filename; remove unused locals.
66 (initWinInfo): Clear filename.
67 (tuiDelWindow): Free it; remove unused locals.
68
69 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
70
71 * tuiStack.h (tuiGetLocatorFilename): Don't declare.
72 (tuiUpdateLocatorDisplay): Likewise.
73 * tuiStack.c (tuiGetLocatorFilename): Remove.
74 (tuiShowFrameInfo): Use tuiSetLocatorContent and tuiShowLocatorContent
75 instead of tuiUpdateLocatorDisplay.
76 (tuiUpdateLocatorDisplay): Remove.
77
78 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
79
80 * tuiStack.h (tuiClearLocatorDisplay): Don't declare.
81 * tuiStack.c (tuiClearLocatorDisplay): Remove.
82 (tuiShowLocatorContent): Use wclrtoeol to clear end of status line.
83 (tuiUpdateLocatorDisplay): Don't call tuiClearLocatorDisplay.
84
85 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
86
87 * tuiStack.c (tui_get_function_from_frame): Rename from
88 _getFuncNameFromFrame; use print_address_symbolic to get symbolic
89 name of address.
90 (tuiUpdateLocatorInfoFromFrame): Update.
91
92 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
93
94 * tuiRegs.c (tuiDisplayRegistersFrom): Remove unused locals.
95 (_tuiRegisterFormat, _tuiSetSpecialRegsContent): Likewise.
96 (_tuiSetGeneralAndSpecialRegsContent): Likewise.
97 (_tuiSetFloatRegsContent): Likewise.
98 (_tuiRegisterName): Return a const char*.
99 * tuiData.h (_TuiDataElement): Use const char* for name.
100
101 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
102
103 * tuiSourceWin.h (tuiEraseAllSourceContent): Don't declare.
104 (tuiShowAllExecInfosContent): Likewise.
105 * tuiSourceWin.c (tuiEraseAllSourceContent): Remove.
106 (tuiShowAllExecInfosContent): Remove.
107 (tuiAllocSourceBuffer): Remove unused locals.
108
109 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
110
111 * tuiStack.c (tui_update_command): Rename _tuiUpdateLocation_command
112 to follow other gdb's command names; use execute_command; cleanup.
113 (_initialize_tuiStack): Update.
114
115 2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
116
117 * tuiWin.h (tui_update_gdb_sizes): Declare.
118
119 2002-08-24 Stephane Carrez <stcarrez@nerim.fr>
120
121 * tui.c (strcat_to_buf): Use const char* for source item.
122 (tui_enable): Update the windows if there is a selected frame.
123 * tui.h (strcat_to_buf): Update prototype.
124 (strcat_to_buf_with_fmt): Remove.
125
126 2002-08-24 Stephane Carrez <stcarrez@nerim.fr>
127
128 * tuiWin.c (tui_update_gdb_sizes): New function to tell gdb what
129 is the size of command window.
130 (tuiResizeAll): Call it instead of init_page_info.
131 * tui.c (tui_enable): Call it to resize to TUI command window.
132 (tui_disable): Likewise for plain screen.
133
134 2002-08-24 Stephane Carrez <stcarrez@nerim.fr>
135
136 * tui.c (tui_enable): Use tuiSetLayout instead of showLayout and
137 use tuiShowFrameInfo instead of tuiSetLocatorContent.
138 * tuiLayout.h (showLayout): Remove.
139 * tuiLayout.c (_showSourceOrDisassemAndCommand): Remove unused locals.
140 (_showSourceDisassemCommand): Likewise.
141 (showLayout): Make it static.
142 (lastLayout): Remove.
143
144 2002-08-24 Stephane Carrez <stcarrez@nerim.fr>
145
146 * tuiSourceWin.c (tui_show_source_line): New function.
147 (tuiShowSourceContent): Call it and avoid clearing the window before
148 redrawing it.
149 (tuiClearAllSourceWinsContent): Remove.
150 * tuiSourceWin.h (tuiClearAllSourceWinsContent): Don't declare.
151 * tuiWin.h (tuiClearWinFocus, tuiClearWinFocusFrom): Don't declare.
152 * tuiWin.c (tuiClearWinFocus, tuiClearWinFocusFrom): Remove.
153 (tuiRefreshAll): Don't clear the window.
154 (_makeVisibleWithNewHeight): Don't clear locator line.
155 (tuiResizeAll): Remove unused locals.
156 (_tuiAdjustWinHeights): Likewise.
157 (_makeInvisibleAndSetNewHeight): Likewise.
158 (_newHeightOk): Likewise.
159 * tuiLayout.c (showLayout): Don't clear source windows.
160 (tuiSetLayout): Don't clear the window.
161 (_initAndMakeWin): Likewise for status line.
162 * tuiGeneralWin.c (makeVisible): Don't clear or refresh the window.
163 (makeWindow): Likewise.
164 (tuiClearWin): Remove.
165 * tuiGeneralWin.h (tuiClearWin): Don't declare.
166
167 2002-08-24 Stephane Carrez <stcarrez@nerim.fr>
168
169 * tuiSourceWin.c (tuiSrcWinIsDisplayed): Remove.
170 (tuiAsmWinIsDisplayed): Remove.
171 (tuiShowAllSourceWinsContent): Remove.
172 (tuiUpdateOnEnd): Remove.
173 * tuiGeneralWin.c (scrollWinForward): Remove.
174 (scrollWinBackward): Remove.
175 (_winResize): Don't declare.
176 * tui.h (tuiUpdateOnEnd): Don't declare.
177 (vcatch_errors, va_catch_errors): Likewise.
178 * tuiSourceWin.h (tuiUpdateOnEnd): Likewise.
179 (tuiShowAllSourceWinsContent): Likewise.
180 * tuiGeneralWin.h (scrollWinForward): Likewise.
181 (scrollWinBackward): Likewise.
182
183 2002-08-24 Stephane Carrez <stcarrez@nerim.fr>
184
185 * tuiRegs.c (_tuiRegisterFormat): Use gdbarch_print_registers_info.
186
187 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
188
189 Fix PR gdb/655
190 * tui.c: Disable <termio.h> include.
191
192 2002-03-15 Andrew Cagney <ac131313@redhat.com>
193
194 * tui-out.c (XMALLOC): Delete macro. Update copyright.
195
196 2002-03-01 Andrew Cagney <ac131313@redhat.com>
197
198 * tui-hooks.c: Add FIXME to explain true/false problem. Update
199 copyright.
200 * tui.c, tuiCommand.c, tuiData.c, tuiDataWin.c: Ditto.
201 * tuiDisassem.c, tuiGeneralWin.c, tuiIO.c, tuiLayout.c: Ditto.
202 * tuiRegs.c, tuiSource.c, tuiSourceWin.c, tuiStack.c: Ditto.
203 * tuiWin.c: Ditto.
204
205 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
206 * tui-hooks.c: Include <curses.h> before "bfd.h".
207 * tui.c: Likewise.
208 * tuiCommand.c: Likewise.
209 * tuiData.c: Likewise.
210 * tuiDataWin.c: Likewise.
211 * tuiDisassem.c: Likewise.
212 * tuiGeneralWin.c: Likewise.
213 * tuiIO.c: Likewise.
214 * tuiLayout.c: Likewise.
215 * tuiRegs.c: Likewise.
216 * tuiSource.c: Likewise.
217 * tuiSourceWin.c: Likewise.
218 * tuiStack.c: Likewise.
219 * tuiWin.c: Likewise.
220
221 2002-02-01 Andrew Cagney <ac131313@redhat.com>
222
223 * tuiWin.c (_initialize_tuiWin): Replace NO_FUNCTION with NULL.
224
225 2001-10-20 Andrew Cagney <ac131313@redhat.com>
226
227 * tuiDisassem.c: Include "value.h".
228 * tuiSourceWin.c: Ditto.
229
230 2001-09-28 Tom Tromey <tromey@redhat.com>
231
232 * tuiLayout.h (tui_set_layout): Don't declare.
233 * tui.h (tui_vAddWinToLayout): Don't declare.
234 (tui_vSetLayoutTo): Likewise.
235 (tui_set_layout): Declare.
236
237 2001-08-02 Eli Zaretskii <eliz@is.elta.co.il>
238
239 * tuiSourceWin.c: Use disp_del instead of del.
240
241 * tuiSource.c: Use disp_del instead of del.
242
243 * tuiDisassem.c: Use disp_del instead of del.
244
245 2001-07-31 Stephane Carrez <Stephane.Carrez@worldnet.fr>
246
247 * tui.c (tui_enable): Remove call to terminal_save_ours().
248 (tui_disable): Likewise.
249
250 2001-07-28 Stephane Carrez <Stephane.Carrez@worldnet.fr>
251
252 * tuiWin.c (_initialize_tuiWin): Use specific tui prefix for
253 set/show configuration variables.
254 (show_tui_cmd): New function.
255 (set_tui_cmd): New function.
256
257 2001-07-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
258
259 * tui-hooks.c: New file, gdb hooks for tui.
260 * tui-out.c: New file, image copied from cli-out.c.
261 (tui_field_int): Identify "line" fields and keep track of them.
262 (tui_field_string): Likewise for "file".
263 (tui_out_new): Use flags = 0 to avoid printing the sources.
264
265 2001-07-23 Stephane Carrez <Stephane.Carrez@worldnet.fr>
266
267 * tuiIO.c (tui_cont_sig): Update cursor position on the screen to
268 leave it in the command window.
269 (tui_redisplay_readline): Save cursor position to restore the
270 cursor after we go back from background.
271 * tuiData.h (TuiCommandInfo): Add start_line member.
272
273 2001-07-23 Stephane Carrez <Stephane.Carrez@worldnet.fr>
274
275 * tuiStack.c (tuiUpdateLocatorFilename): Use const char*.
276 * tuiStack.h (tuiUpdateLocatorFilename): Update prototype.
277 * tuiWin.c (_initialize_tuiWin): Don't cast table of enum in calls
278 to add_set_enum_cmd.
279 * tui.c (tui_show_source): New function.
280 (tuiGetLowDisassemblyAddress): Use CORE_ADDR for newLow.
281 (tui_switch_mode): Prep or deprep readline terminal;
282 make sure the \n we return does not redo the last command.
283 * tui.h (tui_show_source): Declare.
284 (tui_out_new, tui_install_hooks, tui_remove_hooks): Likewise.
285 (tui_active, tui_initialize_io, tui_initialize_readline): Likewise.
286
287 2001-07-22 Stephane Carrez <Stephane.Carrez@worldnet.fr>
288
289 * tuiIO.c (tui_initialize_io): Install tui_cont_sig signal handler
290 if SIGCONT is defined.
291 (tui_cont_sig): New function when SIGCONT is defined.
292 (tui_setup_io): Save tty setting to restore by SIGCONT.
293
294 2001-07-22 Stephane Carrez <Stephane.Carrez@worldnet.fr>
295
296 * tui.h (tui_show_assembly): Declare.
297 (tui_is_window_visible): Declare.
298 * tui.c (tui_show_assembly): New function.
299 (tui_is_window_visible): New function.
300 (tui_get_command_dimension): New function.
301
302 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
303
304 * tuiWin.c (tuiRefreshAll): Use clearok to force a refresh.
305
306 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
307
308 * tui-file.c (tui_file_fputs): Use tui_puts.
309
310 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
311
312 * tuiStack.c (tuiSetLocatorInfo): Cleanup.
313 * tuiStack.h (tuiGetLocatorFilename): Declare.
314 * tuiRegs.h (tuiFirstRegElementNoInLine): Declare.
315 * tuiData.h (addToSourceWindows): Declare.
316
317 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
318
319 * tui.c (tui_change_windows): New function.
320 (tui_delete_other_windows): New function.
321 (tui_initialize_readline): Bind them to C-X 1 and C-X 2.
322 (tui_enable): Enable the keypad; call tui_update_variables.
323 (strcat_to_buf_with_fmt): Remove.
324
325 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
326
327 * tui.h: Remove old declarations, add the new ones.
328 * tui.c (tui_switch_mode): New function.
329 (tui_initialize_readline): New function.
330 (tui_enable): New function.
331 (tui_disable): New function.
332 (tuiGetLowDisassemblyAddress): Use CORE_ADDR, cleanup.
333 (tui_vSelectSourceSymtab): Remove.
334 (tuiInitWindows): Remove.
335 (_initialize_tui): Remove.
336 (_tuiReset): Keep but put arround #if 0.
337
338 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
339
340 * tuiIO.h: Remove old declarations and add the new ones.
341 * tuiIO.c: New management for curses and gdb terminal interactions.
342 (tui_tputs): Remove.
343 (tuiTermSetup, tuiTermUnsetup): Remove, must use normal curses ops.
344 (tuiBufferGetc, tui_vStartNewLines, _updateCommandInfo): Remove.
345 (tui_owns_terminal): Remove.
346 (tui_redisplay_readline): New function.
347 (tui_puts): New function.
348 (tui_prep_terminal): New function.
349 (tui_deprep_terminal): New function.
350 (tui_getc): Rename of tuiGetc, simplify and fix.
351 (tui_setup_io): New function.
352 (tui_initialize_io): New function.
353
354 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
355
356 * tuiRegs.c (tuiDisplayRegistersFrom): Call touchwin.
357 (_tuiRegisterFormat): Reduce size of format result.
358
359 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
360
361 * tuiGeneralWin.c (boxWin): Use the tui configuration variables.
362 * tuiWin.h: Declare the new variables.
363 * tuiWin.c (_initialize_tuiWin): Create TUI configuration variables.
364 (tui_update_variables): New function.
365 (translate): New function.
366 (tui_border_kind_enums, tui_border_mode_enums): New tables.
367 (tui_border_mode_translate): New table.
368 (tui_border_kind_translate_*): New tables.
369 (tui_active_border_mode): New variables.
370 (tui_border_*): New variables.
371
372 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
373
374 * tuiWin.c (_parseScrollingArgs): Fix uninitialized variable.
375 (_makeVisibleWithNewHeight): Use TuiLineOrAddress type.
376
377 * tuiStack.c (tuiShowFrameInfo): Use TuiLineOrAddress type.
378 (tui_vUpdateLocatorFilename): Remove.
379 * tuiStack.h: Update prototypes.
380
381 * tuiSourceWin.c (tuiAddrIsDisplayed): New function.
382 (tuiLineIsDisplayed): Split for address and line.
383 (tuiUpdateSourceWindow): Use TuiLineOrAddress type.
384 (tuiUpdateSourceWindowAsIs): Likewise.
385 (tuiUpdateSourceWindowsWithAddr): Likewise.
386 (tuiUpdateSourceWindowsWithLine): Likewise.
387 (tuiHorizontalSourceScroll): Likewise.
388 (tuiSetIsExecPointAt): Likewise.
389 (tuiUpdateOnEnd): Likewise.
390 * tuiSourceWin.h: Update prototypes.
391
392 * tuiSource.c (tuiVerticalSourceScroll): Use TuiLineOrAddress type.
393 (tuiShowSource): Likewise.
394 (tuiVerticalSourceScroll): Likewise.
395 * tuiSource.h (tuiShowSource): Update prototype.
396
397 * tuiDisassem.c (tuiSetDisassemContent): Use CORE_ADDR for address.
398 (tuiShowDisassem): Use TuiLineOrAddress type.
399 (tuiShowDisassemAndUpdateSource): Likewise.
400 (tuiVerticalDisassemScroll): Likewise.
401 (tuiShowDisassemAsIs): Remove.
402 * tuiDisassem.h (tuiSetDisassemContent): Update prototype.
403
404 * tuiData.c (initWinInfo): Use CORE_ADDR for address.
405 (clearWinDetail): Likewise.
406 (displayableWinContentOf): Fix address conversion.
407 (tuiNextWin): Fix crash when the window is not yet created.
408 (partialWinByName): Likewise.
409
410 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
411
412 * tuiSourceWin.h: Remove unused declarations.
413 * tuiSourceWin.c (tui_vUpdateSourceWindowsWithAddr): Remove.
414 (tui_vUpdateSourceWindowsWithLine): Remove.
415 (tui_vAllSetHasBreakAt): Remove.
416
417 * tuiLayout.h (tui_set_layout): Declare.
418 (tui_vSetLayoutTo): Remove.
419 (tui_vAddWinToLayout): Remove.
420 * tuiLayout.c (_tuiLayout_command): Call tui_enable() to force TUI.
421 (_tuiToggleLayout_command): Remove.
422 (_tuiToggleSplitLayout_command): Remove.
423 (_tuiLayout_command): Remove.
424 (tui_vSetLayoutTo): Remove.
425 (tui_vAddWinToLayout): Remove.
426
427 * tuiDataWin.h (tui_vCheckDataValues): Remove.
428 * tuiDataWin.c (tui_vCheckDataValues): Remove.
429
430 2001-07-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
431
432 * tuiWin.c (tuiStrDup): Remove, replaced by xstrdup.
433 (_parseScrollingArgs): Use xstrdup.
434 (_tuiScrollForward_command): Call tui_enable() to force TUI mode.
435 (_tuiScrollBackward_command): Likewise.
436 (_tuiScrollLeft_command): Likewise.
437 (_tuiScrollRight_command): Likewise.
438 (_tuiSetFocus): Likewise.
439 (_tuiSetFocus_command): Likewise.
440 (_tuiRefreshAll_command): Likewise.
441 (_tuiSetTabWidth_command): Likewise.
442 (_tuiSetWinHeight): Likewise.
443 (_tuiSetWinHeight_command): Likewise.
444 (_tuiXDBsetWinHeight): Likewise.
445 (_tui_vSetFocus): Remove.
446 (_tui_vSetWinHeight): Remove.
447 (_tui_vXDBsetWinHeight): Remove.
448
449 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
450
451 * tuiCommand.h: Remove unused declarations.
452 * tuiCommand.c (tuiDispatchCtrlChar): Fix escape sequences.
453 (tuiIncrCommandCharCountBy): Remove.
454 (tuiDecrCommandCharCountBy): Remove.
455 (tuiSetCommandCharCountTo): Remove.
456 (tuiClearCommandCharCount): Remove.
457
458 2001-07-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
459
460 * tuiWin.c (_initialize_tuiWin): Always define the tui commands;
461 create the tui class help.
462 * tuiLayout.c (_initialize_tuiLayout): Always define the tui commands.
463 * tuiRegs.c (_initialize_tuiRegs): Likewise.
464 * tuiStack.c (_initialize_tuiStack): Likewise.
465
466 2001-07-19 Stephane Carrez <Stephane.Carrez@worldnet.fr>
467
468 * tuiDisassem.c (tuiVerticalDisassemScroll): Use CORE_ADDR.
469 (tuiVerticalDisassemScroll): Likewise.
470 (tuiShowDisassemAndUpdateSource): Check for null symtab to
471 prevent a crash.
472
473 2001-07-18 Stephane Carrez <Stephane.Carrez@worldnet.fr>
474
475 * tuiIO.c (_tuiHandleResizeDuringIO): Call tuiRefreshAll.
476 (tuiRead, tui_vread): Remove.
477
478 * tui.c (va_catch_errors, tuiDo, tuiDoAndReturnToTop): Remove.
479 (vcatch_errors, _tui_vDo): Remove.
480 * tui.h (tuiDo, tuiDoAndReturnToTop): Remove.
481
482 * tuiLayout.c (tuiSetLayout): Remove vcatch_errors.
483 (tui_set_layout): Rename of _tuiSetLayoutTo, public.
484 (_tuiToggleLayout_command): Merge with _tui_vToggleLayout_command.
485 (_tuiToggleSplitLayout_command): Merge with _tui_vToggleSplitLayout_command.
486 (_tuiLayout_command): Call tui_set_layout.
487
488 * tuiRegs.c (_tuiScrollRegsBackward_command): Call tui_scroll.
489 (_tuiScrollRegsForward_command): Likewise.
490 (_tuiShowFloat_command): Call _tui_vShowRegisters_commandSupport.
491 (_tuiShowGeneral_command): Likewise.
492 (_tuiShowSpecial_command): Likewise.
493 (_tuiToggleFloatRegs_command): Call tuiToggleFloatRegs.
494 * tuiWin.c (tui_scroll): Rename of tui_vScroll, update parameters.
495 (_tuiScrollForward_command): Call tui_scroll.
496 (_tuiScrollBackward_command): Likewise.
497 (_tuiScrollLeft_command): Likewise.
498 (_tuiScrollRight_command): Likewise.
499 (_tuiSetFocus_command): Call _tuiSetFocus.
500 (_tuiRefreshAll_command): Call tuiRefreshAll.
501 (_tuiSetWinHeight_command): Call _tuiSetWinHeight.
502 (_tuiXDBsetWinHeight_command): Call _tuiXDBsetWinHeight.
503 * tuiWin.h (tui_scroll): Rename of tui_vScroll, update parameters.
504
505 2001-07-18 Stephane Carrez <Stephane.Carrez@worldnet.fr>
506
507 * tuiData.h (TuiLocatorElement): Use CORE_ADDR for address member.
508 (TuiLineOrAddress): Likewise.
509 * tuiDisassem.c (tuiGetBeginAsmAddress): Use CORE_ADDR to specify
510 an address.
511 (tuiSetDisassemContent): Likewise.
512 (tuiShowDisassem, tuiShowDisassemAndUpdateSource): Likewise.
513 * tuiLayout.c (_extractDisplayStartAddr): Likewise.
514 (tuiSetLayout): Likewise.
515 * tuiSourceWin.c (tuiDisplayMainFunction): Likewise.
516 (tuiUpdateSourceWindowsWithAddr): Likewise.
517 (tuiUpdateSourceWindowsWithLine): Likewise.
518 (tuiSetHasBreakAt): Likewise.
519 * tuiStack.c (tuiSetLocatorInfo): Likewise.
520 (tuiSwitchFilename): Likewise.
521 (tuiUpdateLocatorInfoFromFrame): Likewise.
522 (tuiSetLocatorContent): Likewise.
523 (tuiShowFrameInfo): Likewise.
524 * tuiDisassem.h: Update prototypes to use CORE_ADDR.
525 * tuiSourceWin.h: Likewise.
526 * tuiStack.h: Likewise.
527
528 2001-07-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
529
530 * tuiWin.c: Add missing includes.
531 (_makeVisibleWithNewHeight): Fix call to find_line_pc.
532 * tuiLayout.c: Add missing includes.
533 (_initAndMakeWin): Don't put curses in echo mode.
534 (_extractDisplayStartAddr): Fix calls to find_line_pc.
535 (_tuiLayout_command): Missing ',' in warning call.
536 * tuiSourceWin.c (tuiUpdateSourceWindowsWithLine): Fix calls to
537 find_line_pc.
538 (tuiSetHasBreakAt): Check for null source file.
539
540 2001-07-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
541
542 * tuiWin.c (_tuiSetFocus): Replace subsetCompare with subset_compare.
543 * tuiLayout.c (_tuiSetLayoutTo): Likewise.
544 * tui.c (_tui_vToggle_command): Likewise.
545
546 2001-07-17 Elena Zannoni <ezannoni@redhat.com>
547
548 * tui-file.c: Add include of tuiIO.h, for tuiPuts_unfiltered.
549
550 2001-07-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
551
552 * tuiRegs.c (tuiDisplayRegistersFrom): Set scrollok to FALSE in
553 each register window.
554 (tuiCheckRegisterValues): Use REGISTER_RAW_SIZE to obtain the size
555 of the register to check.
556 (_tuiRegValueHasChanged): Likewise.
557 (_tuiRegisterName): Use REGISTER_NAME.
558 (tui_restore_gdbout): New function.
559 (_tuiRegisterFormat): Use do_registers_info with gdb_stdout redirected
560 to a string.
561 (START_SPECIAL_REGS): Define.
562 (_tuiGetRegisterRawValue): Use get_saved_register.
563 (_tuiDisplayRegister): Fix clearing of register window.
564
565 2001-07-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
566
567 * tui-file.h (fputs_unfiltered_hook): Remove.
568 * tui-file.c (tui_file_flush): Remove fputs_unfiltered_hook.
569 (tui_file_fputs): Likewise; simplify
570
571 2001-07-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
572
573 * tuiStack.c: Add missing includes.
574 (tuiShowFrameInfo): Don't crash when there is no symbol table
575 associated with the pc.
576 * tuiSource.c (_hasBreak): Check for null source file.
577 * tuiWin.c (tuiRefreshAll): Check for null winList[type].
578 (_tuiSetFocus): Check for null dataWin.
579 * tuiGeneralWin.c (refreshAll): Check for null list[type].
580
581 2001-07-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
582
583 * tuiDisassem.c (tuiSetDisassemContent): Use tm_print_insn_info
584 to disassemble in the curses window.
585
586 2001-07-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
587
588 * tui.h: Cleanup to avoid inclusion of curses includes.
589 (TuiGenWinInfo, TuiGenWinInfoPtr): Move from here.
590 * tuiData.h: To here; include curses includes here.
591 (setTermHeightTo): Rename of setTermHeight to follow reality.
592 (setTermWidthTo): Likewise with setTermWidth.
593
594 2001-07-14 Stephane Carrez <Stephane.Carrez@worldnet.fr>
595
596 * tuiWin.c, tui.c, tuiCommand.c: Use ansi prototype.
597 tuiIO.c, tuiData.c: Likewise.
598 tuiDataWin.c, tuiDisassem.c: Likewise.
599 tuiGeneralWin.c, tuiLayout.c: Likewise.
600 tuiRegs.c, tuiSource.c: Likewise.
601 tuiSouceWin.c, tuiStack.c: Likewise.
602
603 2001-07-14 Stephane Carrez <Stephane.Carrez@worldnet.fr>
604
605 * tuiWin.c, tuiWin.h, tui.c, tui.h, tuiCommand.c: Add FSF copyright.
606 tuiCommand.h, tuiIO.c, tuiIO.h, tuiData.h, tuiData.c: Likewise.
607 tuiDataWin.c, tuiDataWin.h, tuiDisassem.c, tuiDisassem.h: Likewise.
608 tuiGeneralWin.c, tuiGeneralWin.h, tuiLayout.c, tuiLayout.h: Likewise.
609 tuiRegs.c, tuiRegs.h, tuiSource.c, tuiSource.h: Likewise.
610 tuiSouceWin.c, tuiSourceWin.h, tuiStack.c, tuiStack.h: Likewise.
611
612 2001-03-08 Andrew Cagney <ac131313@redhat.com>
613
614 * tuiRegs.c: Use NUM_REGS, not ARCH_NUM_REGS.
615
616 2001-03-06 Kevin Buettner <kevinb@redhat.com>
617
618 * tui-file.h: Update/correct copyright notice.
619
620 Wed Feb 7 19:54:27 2001 Andrew Cagney <cagney@redhat.com>
621
622 * tui-file.c: Add __FILE__ and __LINE__ parameter to calls to
623 internal_error.
624
625 2000-12-14 Kevin Buettner <kevinb@redhat.com>
626
627 * tui-file.c, tui.c, tuiData.c, tuiLayout.c: Replace occurrences
628 of free() with xfree().
629
630 2000-06-22 Kevin Buettner <kevinb@redhat.com>
631
632 * tuiSourceWin.h: Eliminate use of PARAMS from this file.
633
634 2000-06-20 Kevin Buettner <kevinb@redhat.com>
635
636 * tuiLayout.c: Eliminate use of PARAMS from this file.
637
638 2000-06-17 Kevin Buettner <kevinb@redhat.com>
639
640 * tuiIO.c: Eliminate use of PARAMS from this file.
641
642 Thu May 25 14:46:20 2000 Andrew Cagney <cagney@b1.cygnus.com>
643
644 * tui-file.c: Include "tui.h", "tuiData.h", "tuiIO.h" and
645 "tuiCommand.h".
646 (tui_file_fputs): Pass ``file'' and not ``stream'' to
647 tui_file_adjust_strbuf.
648
649 Thu May 25 16:58:01 2000 Andrew Cagney <cagney@b1.cygnus.com>
650
651 * tui.h: Include <ncurses.h> when available.
652 * tui.c, tuiGeneralWin.c: Do not include <curses.h>.
653
654 Mon May 15 17:16:10 2000 Andrew Cagney <cagney@b1.cygnus.com>
655
656 * Makefile.in: Delete.
657
658 Tue Apr 18 15:32:15 2000 Andrew Cagney <cagney@b1.cygnus.com>
659
660 * Makefile.in (distclean, maintainer-clean, realclean,
661 mostlyclean): New targets.
662
663 Tue Feb 1 00:17:12 2000 Andrew Cagney <cagney@b1.cygnus.com>
664
665 * tui-file.c, tui-file.h, tuiDisassem.c, tuiIO.c, tuiIO.h,
666 tuiRegs.c: Update to reflect rename of gdb-file / GDB_FILE to
667 ui-file / ``struct ui_file''.
668
669 Mon Jan 31 18:12:43 2000 Andrew Cagney <cagney@b1.cygnus.com>
670
671 * tui-file.c (enum streamtype, struct tui_stream, tui_file_new,
672 tui_file_delete, tui_fileopen, tui_sfileopen, tui_file_isatty,
673 tui_file_rewind, tui_file_put, tui_file_fputs,
674 tui_file_get_strbuf, tui_file_adjust_strbuf, tui_file_flush,
675 fputs_unfiltered_hook): Move to here from ../utils.c
676
677 * tui-file.h, tui-file.c: New files.
678
679 Mon Nov 8 17:47:37 1999 Andrew Cagney <cagney@b1.cygnus.com>
680
681 * tuiRegs.c (_tuiRegisterFormat), tuiDisassem.c
682 (tuiSetDisassemContent): Replace gdb_file_init_astring with
683 tui_sfileopen. Replace gdb_file_get_strbuf with
684 tui_file_get_strbuf.
685
686 Mon Nov 8 16:54:51 1999 Andrew Cagney <cagney@b1.cygnus.com>
687
688 * tuiRegs.c (_tuiRegisterFormat), tuiDisassem.c
689 (tuiSetDisassemContent): Repace gdb_file_deallocate with
690 gdb_file_delete. Replace gdb_file_init_astring with tui_sfileopen.
691
692 Fri Sep 17 19:34:38 1999 Andrew Cagney <cagney@b1.cygnus.com>
693
694 * tuiSource.c: Include "source.h".
695 (open_source_file, find_source_lines): Delete declarations.
696
697 1999-01-26 Jason Molenda (jsm@bugshack.cygnus.com)
698
699 * tui.h: Include stdarg.h instead of varargs.h if we're on an ISO Cish
700 system.
701
702 Thu Dec 31 12:08:32 1998 David Taylor <taylor@texas.cygnus.com>
703
704 The following changes were made by Jim Blandy <jimb@cygnus.com>,
705 Edith Epstein <eepstein@cygnus.com>, Elena Zannoni
706 <ezannoni@cygnus.com> Stan Shebs <shebs@cygnus.com>, and David
707 Taylor <taylor@cygnus.com>, as part of the project to merge in
708 changes originally made by HP; HP did not create ChangeLog
709 entries.
710
711 * Makefile.in: New file; we're merging HP's changes into GDB, and
712 we've moved the TUI files into a subdirectory, so we need a new
713 Makefile.
714
715 * tui.c:
716 #include <term.h>, if we have it, to get declarations for
717 the termcap functions on Solaris.
718 (tgoto): Add external K&R declaration for this; Solaris doesn't
719 bother to actually declare it in their header files.
720 (_tuiReset): Ignore the #definition of TIOCGETC if USG is defined;
721 we'd rather use the USG mechanisms than the Berkeley mechanisms
722 (TIOCGETC is one of the Berkeley terminal control ioctls).
723 Apologies if this causes trouble later; this should all be handled
724 by autoconf...
725 (strcat_to_buf, strcat_to_buf_with_fmt): New functions, moved here
726 from ../utils.h.
727 (tuiFree): replace safe_free with free.
728 (strcat_to_buf): new function, copied from utils.c.
729 (tuiInit): Add ignored `argv0' argument, to match the type that
730 init_ui_hook expects; updated declaration. Call the
731 initialize_tui_files function constructed above. Initialize
732 flush_hook to NULL.
733 (tuiInitWindows): Call tuiSetLocatorContent, to get the first
734 element of the locator window's content allocated. This seems
735 wrong, because it must have been initialized somehow in HP's
736 sources, and we should do it the same way now. But we do get
737 further before it segfaults. [Postscript: HP didn't bother to
738 initialize it; they compile
739 (va_catch_errors, vcatch_errors): Functions moved here from
740 ../utils.c in HP's sources. They're not used anywhere else.
741 (xdb_style): Delete this variable, and remove all references to
742 it. It's always true.
743 (tuiInit, _tui_vDo): References removed.
744
745 * tui.h: Add prototypes.
746 Don't #include "gendefs.h"; it's only used in the TUI.
747 Integrate its contents into this file:
748 #include <ansidecl.h> here.
749 (Opaque, OpaqueFuncPtr): Typedefs moved to here.
750
751 * tuiCommand.c: #include "defs.h", so we get the appropriate
752 definition of GDB_FILE.
753
754 * tuiData.c
755 (freeWindow): replace safe_free with free.
756 (tui_version): don't define it here; it's defined in main.c now.
757
758 * tuiDisassem.c
759 (tuiSetDisassemContent): Call strcat_address_numeric instead of
760 strcat_address. Simplify the control structure. Use predefined
761 GDB function to print asm inst address. Use GDB_FILE to collect
762 output into buffers.
763
764 * tuiIO.c
765 (tgoto): Add external K&R declaration for this here too.
766 (tuiGetc, tuiTermSetup, tuiTermUnsetup): Same.
767 (tuiPuts_unfiltered): change FILE to GDB_FILE.
768 (tui_tputs): fix prototype for 3rd argument.
769
770 * tuiIO.h (tuiPuts_unfiltered): change declaration.
771
772 * tuiLayout.c
773 (_tuiSetLayoutTo): for displaying registers, hook up the HP code
774 that decides which registers to display (i.e. single precision
775 float, double precision float, general, special). Previously,
776 only handled TUI_GENERAL_REGS. Now that the code is hooked up,
777 compiling with -z poses a problem. When the first layout command
778 is 'layout regs', dataWin->detail is a NULL pointer, and gdb
779 core dumps.
780
781 * tuiLayout.c (_tuiSetLayoutTo): replace safe_free with free.
782
783 * tuiRegs.c #include "defs.h" earlier, to avoid problems in
784 <stdarg.h>. No idea exactly what's conflicting with what, but the
785 errors went away...
786 (_tuiRegisterFormat): Change so that function creates a GDB_FILE
787 object, calls pa_do_strcat_registers_info, copies the register
788 info into a buffer, and deallocates the GDB_FILE object. Remove
789 some code that is not executed. Also, call to
790 pa_do_strcat_registers_info has an additional parameter,
791 precision. This code requires some new per-target functions that
792 we don't want to merge. Dyke it out, with #ifdef
793 TUI_EXTENDED_FORMATTERS.
794 (_tuiSetSpecialRegsContent): this function was ifdefed out.
795 Hooked this up.
796 (_tuiSetGeneralAndSpecialRegsContent): this function was ifdefed
797 out. Hooked it up.
798 (IS_64BIT): Just define this to be zero; we're not merging in the
799 64-bit support.
800 (tuiShowRegisters): Comment out all references to the "special"
801 regs; we don't have a distinction between the "special" and
802 "non-special" regs in most of our machine descriptions. This code
803 is PA-specific in other ways as well, and needs to be redesigned
804 to be portable to other processors.
805
806 * tuiWin.c: #include <string.h>, to get a declaration for
807 strchr.
808
809 * tui.c, tuiCommand.c, tuiData.c, tuiDataWin.c, tuiDisassem.c,
810 tuiGeneralWin.c, tuiIO.c, tuiLayout.c, tuiRegs.c, tuiSource.c,
811 tuiSourceWin.c, tuiStack.c, tuiWin.c: New files (from HP). Changed
812 bool to int throughout. Re-indented, GNU style.
813
814 * tui.h, tuiCommand.h, tuiData.h, tuiDataWin.h, tuiDisassem.h,
815 tuiGeneralWin.h, tuiIO.h, tuiLayout.h, tuiRegs.h, tuiSource.h,
816 tuiSourceWin.h, tuiStack.h, tuiWin.h: new files (from HP).
817 Changed bool to int throughout.
This page took 0.047316 seconds and 4 git commands to generate.