* elf64-alpha.c (INSN_UNOP): Encode with RB as $sp.
[deliverable/binutils-gdb.git] / gdb / tui / ChangeLog
CommitLineData
fd0407d6
AC
12001-10-20 Andrew Cagney <ac131313@redhat.com>
2
3 * tuiDisassem.c: Include "value.h".
4 * tuiSourceWin.c: Ditto.
5
7cacb6a3
TT
62001-09-28 Tom Tromey <tromey@redhat.com>
7
8 * tuiLayout.h (tui_set_layout): Don't declare.
9 * tui.h (tui_vAddWinToLayout): Don't declare.
10 (tui_vSetLayoutTo): Likewise.
11 (tui_set_layout): Declare.
12
b5de0fa7
EZ
132001-08-02 Eli Zaretskii <eliz@is.elta.co.il>
14
15 * tuiSourceWin.c: Use disp_del instead of del.
16
17 * tuiSource.c: Use disp_del instead of del.
18
19 * tuiDisassem.c: Use disp_del instead of del.
20
799a0740
SC
212001-07-31 Stephane Carrez <Stephane.Carrez@worldnet.fr>
22
23 * tui.c (tui_enable): Remove call to terminal_save_ours().
24 (tui_disable): Likewise.
25
c9684879
SC
262001-07-28 Stephane Carrez <Stephane.Carrez@worldnet.fr>
27
28 * tuiWin.c (_initialize_tuiWin): Use specific tui prefix for
29 set/show configuration variables.
30 (show_tui_cmd): New function.
31 (set_tui_cmd): New function.
32
2611b1a5
SC
332001-07-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
34
35 * tui-hooks.c: New file, gdb hooks for tui.
36 * tui-out.c: New file, image copied from cli-out.c.
37 (tui_field_int): Identify "line" fields and keep track of them.
38 (tui_field_string): Likewise for "file".
39 (tui_out_new): Use flags = 0 to avoid printing the sources.
40
114bf287
SC
412001-07-23 Stephane Carrez <Stephane.Carrez@worldnet.fr>
42
43 * tuiIO.c (tui_cont_sig): Update cursor position on the screen to
44 leave it in the command window.
45 (tui_redisplay_readline): Save cursor position to restore the
46 cursor after we go back from background.
47 * tuiData.h (TuiCommandInfo): Add start_line member.
48
492001-07-23 Stephane Carrez <Stephane.Carrez@worldnet.fr>
50
51 * tuiStack.c (tuiUpdateLocatorFilename): Use const char*.
52 * tuiStack.h (tuiUpdateLocatorFilename): Update prototype.
53 * tuiWin.c (_initialize_tuiWin): Don't cast table of enum in calls
54 to add_set_enum_cmd.
55 * tui.c (tui_show_source): New function.
56 (tuiGetLowDisassemblyAddress): Use CORE_ADDR for newLow.
57 (tui_switch_mode): Prep or deprep readline terminal;
58 make sure the \n we return does not redo the last command.
59 * tui.h (tui_show_source): Declare.
60 (tui_out_new, tui_install_hooks, tui_remove_hooks): Likewise.
61 (tui_active, tui_initialize_io, tui_initialize_readline): Likewise.
62
9d876a16
SC
632001-07-22 Stephane Carrez <Stephane.Carrez@worldnet.fr>
64
65 * tuiIO.c (tui_initialize_io): Install tui_cont_sig signal handler
66 if SIGCONT is defined.
67 (tui_cont_sig): New function when SIGCONT is defined.
68 (tui_setup_io): Save tty setting to restore by SIGCONT.
69
1403b519
SC
702001-07-22 Stephane Carrez <Stephane.Carrez@worldnet.fr>
71
72 * tui.h (tui_show_assembly): Declare.
73 (tui_is_window_visible): Declare.
74 * tui.c (tui_show_assembly): New function.
75 (tui_is_window_visible): New function.
76 (tui_get_command_dimension): New function.
77
3e266828
SC
782001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
79
80 * tuiWin.c (tuiRefreshAll): Use clearok to force a refresh.
81
174a4a09
SC
822001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
83
84 * tui-file.c (tui_file_fputs): Use tui_puts.
85
c7c228ed
SC
862001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
87
88 * tuiStack.c (tuiSetLocatorInfo): Cleanup.
89 * tuiStack.h (tuiGetLocatorFilename): Declare.
90 * tuiRegs.h (tuiFirstRegElementNoInLine): Declare.
91 * tuiData.h (addToSourceWindows): Declare.
92
377c38ea
SC
932001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
94
95 * tui.c (tui_change_windows): New function.
96 (tui_delete_other_windows): New function.
97 (tui_initialize_readline): Bind them to C-X 1 and C-X 2.
98 (tui_enable): Enable the keypad; call tui_update_variables.
99 (strcat_to_buf_with_fmt): Remove.
100
1012001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
102
103 * tui.h: Remove old declarations, add the new ones.
104 * tui.c (tui_switch_mode): New function.
105 (tui_initialize_readline): New function.
106 (tui_enable): New function.
107 (tui_disable): New function.
108 (tuiGetLowDisassemblyAddress): Use CORE_ADDR, cleanup.
109 (tui_vSelectSourceSymtab): Remove.
110 (tuiInitWindows): Remove.
111 (_initialize_tui): Remove.
112 (_tuiReset): Keep but put arround #if 0.
113
a198b876
SC
1142001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
115
116 * tuiIO.h: Remove old declarations and add the new ones.
117 * tuiIO.c: New management for curses and gdb terminal interactions.
118 (tui_tputs): Remove.
119 (tuiTermSetup, tuiTermUnsetup): Remove, must use normal curses ops.
120 (tuiBufferGetc, tui_vStartNewLines, _updateCommandInfo): Remove.
121 (tui_owns_terminal): Remove.
122 (tui_redisplay_readline): New function.
123 (tui_puts): New function.
124 (tui_prep_terminal): New function.
125 (tui_deprep_terminal): New function.
126 (tui_getc): Rename of tuiGetc, simplify and fix.
127 (tui_setup_io): New function.
128 (tui_initialize_io): New function.
129
fea14702
SC
1302001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
131
132 * tuiRegs.c (tuiDisplayRegistersFrom): Call touchwin.
133 (_tuiRegisterFormat): Reduce size of format result.
134
af101512
SC
1352001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
136
137 * tuiGeneralWin.c (boxWin): Use the tui configuration variables.
138 * tuiWin.h: Declare the new variables.
139 * tuiWin.c (_initialize_tuiWin): Create TUI configuration variables.
140 (tui_update_variables): New function.
141 (translate): New function.
142 (tui_border_kind_enums, tui_border_mode_enums): New tables.
143 (tui_border_mode_translate): New table.
144 (tui_border_kind_translate_*): New tables.
145 (tui_active_border_mode): New variables.
146 (tui_border_*): New variables.
147
a4b99e53
SC
1482001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
149
150 * tuiWin.c (_parseScrollingArgs): Fix uninitialized variable.
151 (_makeVisibleWithNewHeight): Use TuiLineOrAddress type.
152
153 * tuiStack.c (tuiShowFrameInfo): Use TuiLineOrAddress type.
154 (tui_vUpdateLocatorFilename): Remove.
155 * tuiStack.h: Update prototypes.
156
157 * tuiSourceWin.c (tuiAddrIsDisplayed): New function.
158 (tuiLineIsDisplayed): Split for address and line.
159 (tuiUpdateSourceWindow): Use TuiLineOrAddress type.
160 (tuiUpdateSourceWindowAsIs): Likewise.
161 (tuiUpdateSourceWindowsWithAddr): Likewise.
162 (tuiUpdateSourceWindowsWithLine): Likewise.
163 (tuiHorizontalSourceScroll): Likewise.
164 (tuiSetIsExecPointAt): Likewise.
165 (tuiUpdateOnEnd): Likewise.
166 * tuiSourceWin.h: Update prototypes.
167
168 * tuiSource.c (tuiVerticalSourceScroll): Use TuiLineOrAddress type.
169 (tuiShowSource): Likewise.
170 (tuiVerticalSourceScroll): Likewise.
171 * tuiSource.h (tuiShowSource): Update prototype.
172
173 * tuiDisassem.c (tuiSetDisassemContent): Use CORE_ADDR for address.
174 (tuiShowDisassem): Use TuiLineOrAddress type.
175 (tuiShowDisassemAndUpdateSource): Likewise.
176 (tuiVerticalDisassemScroll): Likewise.
177 (tuiShowDisassemAsIs): Remove.
178 * tuiDisassem.h (tuiSetDisassemContent): Update prototype.
179
180 * tuiData.c (initWinInfo): Use CORE_ADDR for address.
181 (clearWinDetail): Likewise.
182 (displayableWinContentOf): Fix address conversion.
183 (tuiNextWin): Fix crash when the window is not yet created.
184 (partialWinByName): Likewise.
185
19eb139b
SC
1862001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
187
188 * tuiSourceWin.h: Remove unused declarations.
189 * tuiSourceWin.c (tui_vUpdateSourceWindowsWithAddr): Remove.
190 (tui_vUpdateSourceWindowsWithLine): Remove.
191 (tui_vAllSetHasBreakAt): Remove.
192
193 * tuiLayout.h (tui_set_layout): Declare.
194 (tui_vSetLayoutTo): Remove.
195 (tui_vAddWinToLayout): Remove.
196 * tuiLayout.c (_tuiLayout_command): Call tui_enable() to force TUI.
197 (_tuiToggleLayout_command): Remove.
198 (_tuiToggleSplitLayout_command): Remove.
199 (_tuiLayout_command): Remove.
200 (tui_vSetLayoutTo): Remove.
201 (tui_vAddWinToLayout): Remove.
202
203 * tuiDataWin.h (tui_vCheckDataValues): Remove.
204 * tuiDataWin.c (tui_vCheckDataValues): Remove.
205
1854bb21
SC
2062001-07-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
207
208 * tuiWin.c (tuiStrDup): Remove, replaced by xstrdup.
209 (_parseScrollingArgs): Use xstrdup.
210 (_tuiScrollForward_command): Call tui_enable() to force TUI mode.
211 (_tuiScrollBackward_command): Likewise.
212 (_tuiScrollLeft_command): Likewise.
213 (_tuiScrollRight_command): Likewise.
214 (_tuiSetFocus): Likewise.
215 (_tuiSetFocus_command): Likewise.
216 (_tuiRefreshAll_command): Likewise.
217 (_tuiSetTabWidth_command): Likewise.
218 (_tuiSetWinHeight): Likewise.
219 (_tuiSetWinHeight_command): Likewise.
220 (_tuiXDBsetWinHeight): Likewise.
221 (_tui_vSetFocus): Remove.
222 (_tui_vSetWinHeight): Remove.
223 (_tui_vXDBsetWinHeight): Remove.
224
9b2d6cca
SC
2252001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
226
227 * tuiCommand.h: Remove unused declarations.
228 * tuiCommand.c (tuiDispatchCtrlChar): Fix escape sequences.
229 (tuiIncrCommandCharCountBy): Remove.
230 (tuiDecrCommandCharCountBy): Remove.
231 (tuiSetCommandCharCountTo): Remove.
232 (tuiClearCommandCharCount): Remove.
233
41783295
SC
2342001-07-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
235
236 * tuiWin.c (_initialize_tuiWin): Always define the tui commands;
237 create the tui class help.
238 * tuiLayout.c (_initialize_tuiLayout): Always define the tui commands.
239 * tuiRegs.c (_initialize_tuiRegs): Likewise.
240 * tuiStack.c (_initialize_tuiStack): Likewise.
241
3024f13a
SC
2422001-07-19 Stephane Carrez <Stephane.Carrez@worldnet.fr>
243
244 * tuiDisassem.c (tuiVerticalDisassemScroll): Use CORE_ADDR.
245 (tuiVerticalDisassemScroll): Likewise.
246 (tuiShowDisassemAndUpdateSource): Check for null symtab to
247 prevent a crash.
248
e8b915dc
SC
2492001-07-18 Stephane Carrez <Stephane.Carrez@worldnet.fr>
250
251 * tuiIO.c (_tuiHandleResizeDuringIO): Call tuiRefreshAll.
252 (tuiRead, tui_vread): Remove.
253
254 * tui.c (va_catch_errors, tuiDo, tuiDoAndReturnToTop): Remove.
255 (vcatch_errors, _tui_vDo): Remove.
256 * tui.h (tuiDo, tuiDoAndReturnToTop): Remove.
257
258 * tuiLayout.c (tuiSetLayout): Remove vcatch_errors.
259 (tui_set_layout): Rename of _tuiSetLayoutTo, public.
260 (_tuiToggleLayout_command): Merge with _tui_vToggleLayout_command.
261 (_tuiToggleSplitLayout_command): Merge with _tui_vToggleSplitLayout_command.
262 (_tuiLayout_command): Call tui_set_layout.
263
264 * tuiRegs.c (_tuiScrollRegsBackward_command): Call tui_scroll.
265 (_tuiScrollRegsForward_command): Likewise.
266 (_tuiShowFloat_command): Call _tui_vShowRegisters_commandSupport.
267 (_tuiShowGeneral_command): Likewise.
268 (_tuiShowSpecial_command): Likewise.
269 (_tuiToggleFloatRegs_command): Call tuiToggleFloatRegs.
270 * tuiWin.c (tui_scroll): Rename of tui_vScroll, update parameters.
271 (_tuiScrollForward_command): Call tui_scroll.
272 (_tuiScrollBackward_command): Likewise.
273 (_tuiScrollLeft_command): Likewise.
274 (_tuiScrollRight_command): Likewise.
275 (_tuiSetFocus_command): Call _tuiSetFocus.
276 (_tuiRefreshAll_command): Call tuiRefreshAll.
277 (_tuiSetWinHeight_command): Call _tuiSetWinHeight.
278 (_tuiXDBsetWinHeight_command): Call _tuiXDBsetWinHeight.
279 * tuiWin.h (tui_scroll): Rename of tui_vScroll, update parameters.
280
c774cec6
SC
2812001-07-18 Stephane Carrez <Stephane.Carrez@worldnet.fr>
282
283 * tuiData.h (TuiLocatorElement): Use CORE_ADDR for address member.
284 (TuiLineOrAddress): Likewise.
285 * tuiDisassem.c (tuiGetBeginAsmAddress): Use CORE_ADDR to specify
286 an address.
287 (tuiSetDisassemContent): Likewise.
288 (tuiShowDisassem, tuiShowDisassemAndUpdateSource): Likewise.
289 * tuiLayout.c (_extractDisplayStartAddr): Likewise.
290 (tuiSetLayout): Likewise.
291 * tuiSourceWin.c (tuiDisplayMainFunction): Likewise.
292 (tuiUpdateSourceWindowsWithAddr): Likewise.
293 (tuiUpdateSourceWindowsWithLine): Likewise.
294 (tuiSetHasBreakAt): Likewise.
295 * tuiStack.c (tuiSetLocatorInfo): Likewise.
296 (tuiSwitchFilename): Likewise.
297 (tuiUpdateLocatorInfoFromFrame): Likewise.
298 (tuiSetLocatorContent): Likewise.
299 (tuiShowFrameInfo): Likewise.
300 * tuiDisassem.h: Update prototypes to use CORE_ADDR.
301 * tuiSourceWin.h: Likewise.
302 * tuiStack.h: Likewise.
303
84b1e7c7
SC
3042001-07-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
305
306 * tuiWin.c: Add missing includes.
307 (_makeVisibleWithNewHeight): Fix call to find_line_pc.
308 * tuiLayout.c: Add missing includes.
309 (_initAndMakeWin): Don't put curses in echo mode.
310 (_extractDisplayStartAddr): Fix calls to find_line_pc.
311 (_tuiLayout_command): Missing ',' in warning call.
312 * tuiSourceWin.c (tuiUpdateSourceWindowsWithLine): Fix calls to
313 find_line_pc.
314 (tuiSetHasBreakAt): Check for null source file.
315
0963fc96
SC
3162001-07-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
317
318 * tuiWin.c (_tuiSetFocus): Replace subsetCompare with subset_compare.
319 * tuiLayout.c (_tuiSetLayoutTo): Likewise.
320 * tui.c (_tui_vToggle_command): Likewise.
321
f9eb4b01
EZ
3222001-07-17 Elena Zannoni <ezannoni@redhat.com>
323
324 * tui-file.c: Add include of tuiIO.h, for tuiPuts_unfiltered.
325
c46cc7df
SC
3262001-07-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
327
328 * tuiRegs.c (tuiDisplayRegistersFrom): Set scrollok to FALSE in
329 each register window.
330 (tuiCheckRegisterValues): Use REGISTER_RAW_SIZE to obtain the size
331 of the register to check.
332 (_tuiRegValueHasChanged): Likewise.
333 (_tuiRegisterName): Use REGISTER_NAME.
334 (tui_restore_gdbout): New function.
335 (_tuiRegisterFormat): Use do_registers_info with gdb_stdout redirected
336 to a string.
337 (START_SPECIAL_REGS): Define.
338 (_tuiGetRegisterRawValue): Use get_saved_register.
339 (_tuiDisplayRegister): Fix clearing of register window.
340
e42acc6b
SC
3412001-07-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
342
343 * tui-file.h (fputs_unfiltered_hook): Remove.
344 * tui-file.c (tui_file_flush): Remove fputs_unfiltered_hook.
345 (tui_file_fputs): Likewise; simplify
346
75fd9bc1
SC
3472001-07-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
348
349 * tuiStack.c: Add missing includes.
350 (tuiShowFrameInfo): Don't crash when there is no symbol table
351 associated with the pc.
352 * tuiSource.c (_hasBreak): Check for null source file.
353 * tuiWin.c (tuiRefreshAll): Check for null winList[type].
354 (_tuiSetFocus): Check for null dataWin.
355 * tuiGeneralWin.c (refreshAll): Check for null list[type].
356
a8080b7f
SC
3572001-07-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
358
359 * tuiDisassem.c (tuiSetDisassemContent): Use tm_print_insn_info
360 to disassemble in the curses window.
361
2a5127c4
SC
3622001-07-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
363
364 * tui.h: Cleanup to avoid inclusion of curses includes.
365 (TuiGenWinInfo, TuiGenWinInfoPtr): Move from here.
366 * tuiData.h: To here; include curses includes here.
367 (setTermHeightTo): Rename of setTermHeight to follow reality.
368 (setTermWidthTo): Likewise with setTermWidth.
369
eca6576c
SC
3702001-07-14 Stephane Carrez <Stephane.Carrez@worldnet.fr>
371
372 * tuiWin.c, tui.c, tuiCommand.c: Use ansi prototype.
373 tuiIO.c, tuiData.c: Likewise.
374 tuiDataWin.c, tuiDisassem.c: Likewise.
375 tuiGeneralWin.c, tuiLayout.c: Likewise.
376 tuiRegs.c, tuiSource.c: Likewise.
377 tuiSouceWin.c, tuiStack.c: Likewise.
378
f377b406
SC
3792001-07-14 Stephane Carrez <Stephane.Carrez@worldnet.fr>
380
381 * tuiWin.c, tuiWin.h, tui.c, tui.h, tuiCommand.c: Add FSF copyright.
382 tuiCommand.h, tuiIO.c, tuiIO.h, tuiData.h, tuiData.c: Likewise.
383 tuiDataWin.c, tuiDataWin.h, tuiDisassem.c, tuiDisassem.h: Likewise.
384 tuiGeneralWin.c, tuiGeneralWin.h, tuiLayout.c, tuiLayout.h: Likewise.
385 tuiRegs.c, tuiRegs.h, tuiSource.c, tuiSource.h: Likewise.
386 tuiSouceWin.c, tuiSourceWin.h, tuiStack.c, tuiStack.h: Likewise.
387
a728f042
AC
3882001-03-08 Andrew Cagney <ac131313@redhat.com>
389
390 * tuiRegs.c: Use NUM_REGS, not ARCH_NUM_REGS.
391
b6ba6518
KB
3922001-03-06 Kevin Buettner <kevinb@redhat.com>
393
394 * tui-file.h: Update/correct copyright notice.
395
8e65ff28
AC
396Wed Feb 7 19:54:27 2001 Andrew Cagney <cagney@redhat.com>
397
398 * tui-file.c: Add __FILE__ and __LINE__ parameter to calls to
399 internal_error.
400
46c6187f
KB
4012000-12-14 Kevin Buettner <kevinb@redhat.com>
402
e7b044d6
KB
403 * tui-file.c, tui.c, tuiData.c, tuiLayout.c: Replace occurrences
404 of free() with xfree().
46c6187f 405
f7778913
KB
4062000-06-22 Kevin Buettner <kevinb@redhat.com>
407
408 * tuiSourceWin.h: Eliminate use of PARAMS from this file.
409
f6dd1e70
KB
4102000-06-20 Kevin Buettner <kevinb@redhat.com>
411
412 * tuiLayout.c: Eliminate use of PARAMS from this file.
413
692248f3
KB
4142000-06-17 Kevin Buettner <kevinb@redhat.com>
415
416 * tuiIO.c: Eliminate use of PARAMS from this file.
417
fbc75a32
AC
418Thu May 25 14:46:20 2000 Andrew Cagney <cagney@b1.cygnus.com>
419
420 * tui-file.c: Include "tui.h", "tuiData.h", "tuiIO.h" and
421 "tuiCommand.h".
422 (tui_file_fputs): Pass ``file'' and not ``stream'' to
423 tui_file_adjust_strbuf.
424
2894793a
AC
425Thu May 25 16:58:01 2000 Andrew Cagney <cagney@b1.cygnus.com>
426
427 * tui.h: Include <ncurses.h> when available.
428 * tui.c, tuiGeneralWin.c: Do not include <curses.h>.
429
ed952ac5
AC
430Mon May 15 17:16:10 2000 Andrew Cagney <cagney@b1.cygnus.com>
431
432 * Makefile.in: Delete.
433
784f35f9
AC
434Tue Apr 18 15:32:15 2000 Andrew Cagney <cagney@b1.cygnus.com>
435
436 * Makefile.in (distclean, maintainer-clean, realclean,
437 mostlyclean): New targets.
438
d9fcf2fb
JM
439Tue Feb 1 00:17:12 2000 Andrew Cagney <cagney@b1.cygnus.com>
440
441 * tui-file.c, tui-file.h, tuiDisassem.c, tuiIO.c, tuiIO.h,
442 tuiRegs.c: Update to reflect rename of gdb-file / GDB_FILE to
443 ui-file / ``struct ui_file''.
444
da59e081
JM
445Mon Jan 31 18:12:43 2000 Andrew Cagney <cagney@b1.cygnus.com>
446
447 * tui-file.c (enum streamtype, struct tui_stream, tui_file_new,
448 tui_file_delete, tui_fileopen, tui_sfileopen, tui_file_isatty,
449 tui_file_rewind, tui_file_put, tui_file_fputs,
450 tui_file_get_strbuf, tui_file_adjust_strbuf, tui_file_flush,
451 fputs_unfiltered_hook): Move to here from ../utils.c
452
453 * tui-file.h, tui-file.c: New files.
454
11cf8741
JM
455Mon Nov 8 17:47:37 1999 Andrew Cagney <cagney@b1.cygnus.com>
456
457 * tuiRegs.c (_tuiRegisterFormat), tuiDisassem.c
458 (tuiSetDisassemContent): Replace gdb_file_init_astring with
459 tui_sfileopen. Replace gdb_file_get_strbuf with
460 tui_file_get_strbuf.
461
462Mon Nov 8 16:54:51 1999 Andrew Cagney <cagney@b1.cygnus.com>
463
464 * tuiRegs.c (_tuiRegisterFormat), tuiDisassem.c
465 (tuiSetDisassemContent): Repace gdb_file_deallocate with
466 gdb_file_delete. Replace gdb_file_init_astring with tui_sfileopen.
467
c2c6d25f
JM
468Fri Sep 17 19:34:38 1999 Andrew Cagney <cagney@b1.cygnus.com>
469
470 * tuiSource.c: Include "source.h".
471 (open_source_file, find_source_lines): Delete declarations.
472
c906108c
SS
4731999-01-26 Jason Molenda (jsm@bugshack.cygnus.com)
474
475 * tui.h: Include stdarg.h instead of varargs.h if we're on an ISO Cish
476 system.
477
478Thu Dec 31 12:08:32 1998 David Taylor <taylor@texas.cygnus.com>
479
480 The following changes were made by Jim Blandy <jimb@cygnus.com>,
481 Edith Epstein <eepstein@cygnus.com>, Elena Zannoni
482 <ezannoni@cygnus.com> Stan Shebs <shebs@cygnus.com>, and David
483 Taylor <taylor@cygnus.com>, as part of the project to merge in
484 changes originally made by HP; HP did not create ChangeLog
485 entries.
486
487 * Makefile.in: New file; we're merging HP's changes into GDB, and
488 we've moved the TUI files into a subdirectory, so we need a new
489 Makefile.
490
491 * tui.c:
492 #include <term.h>, if we have it, to get declarations for
493 the termcap functions on Solaris.
494 (tgoto): Add external K&R declaration for this; Solaris doesn't
495 bother to actually declare it in their header files.
496 (_tuiReset): Ignore the #definition of TIOCGETC if USG is defined;
497 we'd rather use the USG mechanisms than the Berkeley mechanisms
498 (TIOCGETC is one of the Berkeley terminal control ioctls).
499 Apologies if this causes trouble later; this should all be handled
500 by autoconf...
501 (strcat_to_buf, strcat_to_buf_with_fmt): New functions, moved here
502 from ../utils.h.
503 (tuiFree): replace safe_free with free.
504 (strcat_to_buf): new function, copied from utils.c.
505 (tuiInit): Add ignored `argv0' argument, to match the type that
506 init_ui_hook expects; updated declaration. Call the
507 initialize_tui_files function constructed above. Initialize
508 flush_hook to NULL.
509 (tuiInitWindows): Call tuiSetLocatorContent, to get the first
510 element of the locator window's content allocated. This seems
511 wrong, because it must have been initialized somehow in HP's
512 sources, and we should do it the same way now. But we do get
513 further before it segfaults. [Postscript: HP didn't bother to
514 initialize it; they compile
515 (va_catch_errors, vcatch_errors): Functions moved here from
516 ../utils.c in HP's sources. They're not used anywhere else.
517 (xdb_style): Delete this variable, and remove all references to
518 it. It's always true.
519 (tuiInit, _tui_vDo): References removed.
520
521 * tui.h: Add prototypes.
522 Don't #include "gendefs.h"; it's only used in the TUI.
523 Integrate its contents into this file:
524 #include <ansidecl.h> here.
525 (Opaque, OpaqueFuncPtr): Typedefs moved to here.
526
527 * tuiCommand.c: #include "defs.h", so we get the appropriate
528 definition of GDB_FILE.
529
530 * tuiData.c
531 (freeWindow): replace safe_free with free.
532 (tui_version): don't define it here; it's defined in main.c now.
533
534 * tuiDisassem.c
535 (tuiSetDisassemContent): Call strcat_address_numeric instead of
536 strcat_address. Simplify the control structure. Use predefined
537 GDB function to print asm inst address. Use GDB_FILE to collect
538 output into buffers.
539
540 * tuiIO.c
541 (tgoto): Add external K&R declaration for this here too.
542 (tuiGetc, tuiTermSetup, tuiTermUnsetup): Same.
543 (tuiPuts_unfiltered): change FILE to GDB_FILE.
544 (tui_tputs): fix prototype for 3rd argument.
545
546 * tuiIO.h (tuiPuts_unfiltered): change declaration.
547
548 * tuiLayout.c
549 (_tuiSetLayoutTo): for displaying registers, hook up the HP code
550 that decides which registers to display (i.e. single precision
551 float, double precision float, general, special). Previously,
552 only handled TUI_GENERAL_REGS. Now that the code is hooked up,
553 compiling with -z poses a problem. When the first layout command
554 is 'layout regs', dataWin->detail is a NULL pointer, and gdb
555 core dumps.
556
557 * tuiLayout.c (_tuiSetLayoutTo): replace safe_free with free.
558
559 * tuiRegs.c #include "defs.h" earlier, to avoid problems in
560 <stdarg.h>. No idea exactly what's conflicting with what, but the
561 errors went away...
562 (_tuiRegisterFormat): Change so that function creates a GDB_FILE
563 object, calls pa_do_strcat_registers_info, copies the register
564 info into a buffer, and deallocates the GDB_FILE object. Remove
565 some code that is not executed. Also, call to
566 pa_do_strcat_registers_info has an additional parameter,
567 precision. This code requires some new per-target functions that
568 we don't want to merge. Dyke it out, with #ifdef
569 TUI_EXTENDED_FORMATTERS.
570 (_tuiSetSpecialRegsContent): this function was ifdefed out.
571 Hooked this up.
572 (_tuiSetGeneralAndSpecialRegsContent): this function was ifdefed
573 out. Hooked it up.
574 (IS_64BIT): Just define this to be zero; we're not merging in the
575 64-bit support.
576 (tuiShowRegisters): Comment out all references to the "special"
577 regs; we don't have a distinction between the "special" and
578 "non-special" regs in most of our machine descriptions. This code
579 is PA-specific in other ways as well, and needs to be redesigned
580 to be portable to other processors.
581
582 * tuiWin.c: #include <string.h>, to get a declaration for
583 strchr.
584
585 * tui.c, tuiCommand.c, tuiData.c, tuiDataWin.c, tuiDisassem.c,
586 tuiGeneralWin.c, tuiIO.c, tuiLayout.c, tuiRegs.c, tuiSource.c,
587 tuiSourceWin.c, tuiStack.c, tuiWin.c: New files (from HP). Changed
588 bool to int throughout. Re-indented, GNU style.
589
590 * tui.h, tuiCommand.h, tuiData.h, tuiDataWin.h, tuiDisassem.h,
591 tuiGeneralWin.h, tuiIO.h, tuiLayout.h, tuiRegs.h, tuiSource.h,
592 tuiSourceWin.h, tuiStack.h, tuiWin.h: new files (from HP).
593 Changed bool to int throughout.
This page took 0.195373 seconds and 4 git commands to generate.