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