* rem-multi.shar: Removed; superceded by gdbserver.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
51558740
JK
1Sat Apr 15 18:00:15 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
2
3 * rem-multi.shar: Removed; superceded by gdbserver.
4
e2adc41a
JK
5Fri Apr 14 12:10:24 1995 Jim Kingdon <kingdon@deneb.cygnus.com>
6
7 * xcoffread.c (xcoff_sym_fns): Revise comment about merging this
8 with coffread.c.
9
10 * breakpoint.c (fixup_breakpoints): Removed.
11 * rs6000-nat.c (vmap_symtab): Don't call fixup_breakpoints.
12 (vmap_ldinfo, xcoff_relocate_core): Call breakpoint_re_set.
13
14 * coffread.c (coff_symfile_offsets): Allocate SECT_OFF_MAX
15 sections, not just SECT_OFF_MAX-1.
16
17 * rs6000-nat.c (vmap_symtab), xcoffread.c: Re-do section offsets
18 to be indexed by SECT_OFF_* instead of xcoff section numbers.
19 * objfiles.c, remote.c: Remove comments regarding SECT_OFF_*.
20 * symtab.h: Revise comment about block_line_section.
21 * rs6000-nat.c (vmap_symtab): Don't relocate objfile->sections.
22
8befb594
SS
23Sat Apr 15 14:15:14 1995 Stan Shebs <shebs@andros.cygnus.com>
24
25 * mpw-make.in (init.c): Don't try to do symbolic {o} in sed
26 command, not allowed by some version of MPW Make.
27 * ser-mac.c (mac-setbaudrate): Make it actually set baud rates.
28
b3636ee5
JK
29Sat Apr 15 14:05:09 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
30
31 * alpha-tdep.c (alpha_push_arguments): Fix typo (TYPE_VALUE ->
32 VALUE_TYPE). Do the cast for TYPE_CODE_BOOL, TYPE_CODE_CHAR,
33 TYPE_CODE_ENUM, and TYPE_CODE_RANGE as well as TYPE_CODE_INT.
34
35Sat Apr 15 14:04:32 1995 Per Bothner <bothner@cygnus.com>
36
37 * alpha-tdep.c (alpha_push_arguments): Only cast to long for
38 TYPE_CODE_INT.
39
6fd934a6 40start-sanitize-gdbtk
d7c4766c
SS
41Sat Apr 15 13:52:24 1995 Stan Shebs <shebs@andros.cygnus.com>
42
43 * gdbtk.c (gdb_disassemble): Read from inferior if connected
44 to a VxWorks target.
45
6fd934a6
SG
46Fri Apr 14 10:18:20 1995 Stu Grossman (grossman@cygnus.com)
47
48 * README.GDBTK: New file. Contains the obvious.
6fd934a6 49end-sanitize-gdbtk
d7c4766c 50
3e437fe6
RS
51Thu Apr 13 16:17:04 1995 Rob Savoye <rob@darkstar.cygnus.com>
52
53 * remote-array.c: New file for Array Tech LSI33k based controller
54 board.
55
546e6a39
KH
56Thu Apr 13 12:23:31 1995 Kung Hsu <kung@rtl.cygnus.com>
57
58 * a29k-tdep.c (get_longjmp_target): Replace SWAP_TARGET_AND_HOST with
59 extract_address.
60 * remote-vxsparc.c: New file, preliminary check in, this configuration
61 not supported yet.
62 * remote-vxmips.c: ditto.
63
64Thu Apr 13 12:10:14 1995 Michael Meissner <meissner@tiktok.cygnus.com>
65
66 * rs6000-tdep.c (xcoff_add_toc_to_loadinfo): Don't use a prototype
67 to declare the function.
68
d108166f
SS
69Wed Apr 12 16:40:20 1995 Stan Shebs <shebs@andros.cygnus.com>
70
71 * monitor.h (init_monitor_ops): Declare.
72 * rom68k-rom.c: Clarify some comments.
73 (rom68k_open): Define as static, to match decl.
74
ade01652
JK
75Wed Apr 12 16:36:44 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
76
56b73ad2
JK
77 * gdb.gdb: New file.
78 * .gdbinit: Move list-objfiles to gdb.gdb.
79
ade01652
JK
80 * values.c (set_internalvar): Set modifiable flag of newval.
81
f8203ed0
JK
82Wed Apr 12 14:34:31 1995 Jim Kingdon <kingdon@deneb.cygnus.com>
83
84 * xcoffread.c: Call complain() rather than error() or printing a
85 warning.
86
32513ed1
DE
87start-sanitize-arc
88Wed Apr 12 08:15:27 1995 Doug Evans <dje@canuck.cygnus.com>
89
90 * arc-tdep.c: #include "gdbcmd.h".
91 (codestream_seek): Pass CORE_ADDR.
92 (arc_cpu_type, tmp_arc_cpu_type, arc_cpu_type_table): New globals.
93 (debug_pipeline_p): Likewise.
94 (X_...): Instruction field access macros.
95 (BUILD_INSN): Define.
96 (codestream_tell): Allow for stream elements > 1 byte.
97 (codestream_fill): Likewise.
98 (setup_prologue_scan): New function.
99 (arc_get_frame_setup): Call it. Update to current spec
100 regarding prologues. Use BUILD_INSN.
101 (skip_prologue): New argument `frameless_p'. Use BUILD_INSN.
102 (arc_frame_saved_pc): New function.
103 (frame_find_saved_regs): Use BUILD_INSN.
104 (get_insn_type, single_step): New functions.
105 (one_stepped): New global.
106 (arc_set_cpu_type_command, arc_show_cpu_type_command): New functions.
107 (arc_set_cpu_type): New function.
108 (_initialize_arc_tdep): Define new `set' commands `cpu',
109 `displaypipeline', and `debugpipeline'.
110 * remote-arc.c (break_insn): Add bi-endian support.
111 (arc_insert_breakpoint): Likewise.
112 (arc_remove_breakpoint): Likewise.
113 (switch_command): Delete.
114 * arc/tm-arc.h (TARGET_BYTE_ORDER): Delete.
115 (TARGET_BYTE_ORDER_SELECTABLE): Define.
116 (DEFAULT_ARC_CPU_TYPE): Define.
117 (SKIP_PROLOGUE_FRAMELESS_P): Define.
118 (BREAKPOINT): Delete.
119 (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Define.
120 (DECR_PC_AFTER_BREAK): Change to 8.
121 (NO_SINGLE_STEP): Define.
122 (ARC_PC_TO_REAL_ADDRESS): Define.
123 (SAVED_PC_AFTER_CALL): Use it.
124 (NUM_REGS, REGISTER_BYTES): Fix.
125 (FRAME_SAVED_PC): Call arc_frame_saved_pc.
126 (FRAME_LOCALS_ADDRESS): Fix.
127end-sanitize-arc
128
0c0c911b
JK
129Tue Apr 11 16:42:37 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
130
131 * top.c, utils.c, defs.h: Remove error_hook. It is currently
132 unused and would need to hook into error_begin()/return_to_top_level(),
133 instead of error(), if it were to be used.
134
8989d4fc
JK
135Tue Apr 11 13:46:25 1995 Jim Kingdon <kingdon@deneb.cygnus.com>
136
137 * utils.c, defs.h (warning_begin): Renamed from warning_setup, for
138 consistency with error_begin. Also print warning_pre_print.
139 Document it better.
140 * utils.c (warning): Use it.
141 * utils.c (error_begin): Doc fix.
88a5c3fc
JK
142 * rs6000-nat.c (vmap_ldinfo): If we don't find ldinfo for the
143 symfile_objfile, nuke it.
8989d4fc 144
0b078540
JK
145Tue Apr 11 09:35:20 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
146
f1cd942d
JK
147 * printcmd.c (print_address_numeric): Pass use_local to
148 print_longest, rather than always passing 1.
149
0b078540
JK
150 * nlm/Makefile.in: Remove comments discussing munch.
151
d7c4766c 152start-sanitize-gdbtk
45f90c50
MM
153Tue Apr 11 11:07:12 1995 Michael Meissner <meissner@tiktok.cygnus.com>
154
155 * gdbtk.c (gdbtk_init): If SIOCSPGRP is not available, but
156 F_SETOWN is, use that.
d7c4766c 157end-sanitize-gdbtk
45f90c50 158
cb5aa38b
SS
159Mon Apr 10 18:31:57 1995 Stan Shebs <shebs@andros.cygnus.com>
160
161 Merge in support for Mac MPW as a host.
162 (Old change descriptions retained for informational value.)
163
164 * mpw-config.in (i386-unknown-go32): Change from aout.
165 (sh-hitachi-hms): New target.
166 * mpw-make.in (BISON): Use byacc instead of bison.
167 (VERSION): Bump to 4.14.1.
168 (*-pinsn.*): Remove mentions everywhere.
169 (all): Don't build MacGDB.
170 (gdb, SiowGDB): Depend on Version.r.
171 (Version.r): Generate from version info.
172 * main.c (main): Pass program name to START_PROGRESS, END_PROGRESS.
173 (main) [MPW]: Remove debugging hook.
174 * mac-xdep.c (debug_openp): New flag.
175 (mac_init): Set flag if env variable defined.
176 * ser-mac.c (mac_open): Clarify error message.
177 (mac_readchar): Call PROGRESS while looping.
178 (mac_write): Call sleep instead of sec_sleep.
179 (sec_sleep): Remove.
180 * source.c (openp) [MPW]: Only print debugging info if debugging.
181 * utils.c (query) [MPW]: Clarify that behavior is a bug.
182
183 * mpw-make.in (init.c): Use open-brace instead of mpw-open-brace.
184
185 * main.c, source.c: Remove hacks that replace long strings
186 with shorter ones, now solved portably.
187
188 * config/m68k/xm-mpw.h (spin.h): Include.
189 (ALMOST_STDC): Only define if MPW_C.
190 * config/m68k/tm-mac.h: New file, Mac target definitions.
191
192 * mpw-config.in (m68k-apple-macos, ppc-apple-macos,
193 i386-unknown-aout): New targets.
194 (mk.tmp): Add *DEPFILES definitions.
195 * mpw-make.in: Remove gC rules, clean up definitions for other
196 include files, bump version, fix bogus \ that should be \Option-d.
197 (init.c): Build correctly.
198
199 * mpw-make.in (HFILES_NO_SRCDIR): Add somsolib.h
200 (ALLDEPFILES): Add somsolib.c.
201 (somsolib.o): Add some dependencies.
202
203 * mpw-config.in: Use nm-empty.h if host is not target.
204 (xdepfiles): Add mac-xdep.c.o.
205 (xm_file): Remove.
206 * mpw-make.in: Add Fortran files.
207 (XDEPFILES): Remove.
208
209 * mpw-config.in (MacSerial.h): Duplicate from standard Serial.h.
210 * ser-mac.c (MacSerial.h): Include instead of Serial.h.
211
212 * mpw-make.in: Use {s} instead of {srcdir} everywhere.
213 (bindir, libdir): Remove extra colon.
214 (source.c): Compile with C instead of gC.
215 (c-exp.tab.c, ch-exp.tab.c, m2-exp.tab.c): Add {o}.
216 (install-only): Don't install MacGDB.
217 * source.c (openp) [MPW]: Add a debugging display.
218 (open_source_file) [MPW]: Use MPW basename finders.
219 [MPW_C]: Briefer versions of help for line and list commands.
220
221 * mpw-make.in: Change references from paread.c to somread.c
222
223 * mpw-make.in (VERSION): Update to 4.12.3.
224 (SiowGDB): New target, GDB using SIOW library.
225 (init-new.c): New target, attempt to generate init.c from sources.
226 (main.c.o, top.c.o): Put each in its own segment.
227 * main.c (main) [MPW]: Always call mac_init.
228 * utils.c (query) [MPW]: Always return "yes" if in MacGDB, output
229 an extra newline otherwise.
230 * mac-xdep.c: More comments in various places, remove junk.
231 (mac_init): Add tests for MPW and SIOW.
232 (use_wne, has_color_qd): Renamed.
233 (use_color_qd): New variable.
234 (grow_window): Only do console resizing to console window,
235 call resize_console_window.
236 (zoom_window): Call resize_console_window.
237 (resize_console_window, scroll_text): New functions.
238 (adjust_console_sizes): Always align viewrect to even multiples of
239 text lines.
240 (adjust_console_text): Always scroll by whole lines.
241 (hacked_vfprintf, hacked_puts, hacked_fputc, hacked_putc): Force a
242 recalculation of scroll positions if a newline was output.
243 (hacked_fflush): Similarly, for flushing.
244 (hacked_fgetc): New function, aborts if called in MacGDB.
245 * ser-mac.c (mac_readchar): Rename starttime to start_time,
246 remove debugging printf.
247 (mac_write): Sleep on first 4 writes.
248 (sec_sleep): New function, works like standard sleep.
249 * macgdb.r: Adjust positioning and contents of About box.
250 Set minimum size to 2000K, preferred size to 5000K.
251 * config/m68k/xm-mpw.h (fgetc): Define as a macro.
252
253 * mpw-make.in (.c.o, .gc.o): Prefix segment names with gdb_.
254 (top.c.o, annotate.c.o): Add build rules.
255 * macgdb.r (SysTypes.r): Include.
256 ('vers'): New resource, version info.
257 (mFile, mEdit, mDebug): Enable all menu items.
258 (mDebug): Add key equivalents for continue, step, next.
259 (wConsole): Add zoom and close boxes to window.
260 * mac-xdep.c (new_console_window): New function, code taken from
261 mac_init.
262 (mac_command_loop): Use GetCaretTime for wait interval, call
263 do_idle on null events.
264 (do_idle): New function.
265 (zoom_window): Implement zooming.
266 (v_scroll_proc): New function, handles vertical scrolling.
267 (activate_window): Do activation of console window.
268 (do_menu_command): Implement items of file, edit, and debug menus.
269 (do_keyboard_command): Fix command extraction.
270 (adjust_console_sizes, adjust_console_text): New functions.
271 (hacked_fprintf, hacked_vfprintf, hacked_fputs, hacked_fputc,
272 hacked_putc): Don't call draw_console.
273 * ser-mac.c (mac_open): Add an error message for invalid ports.
274 (first_mac_write): New global.
275 (mac_write): Use first_mac_write to sleep on first several writes.
276
277 * mpw-make.in (INCLUDE_CFLAGS): Add readline source dir.
278 (READLINE_CFLAGS, READLINE_SRC, READLINE_DIR): Uncomment.
279 (TSOBS): Don't compile inflow.c.
280 (all, install): Add MacGDB.
281 * main.c (main): Do Mac-specific init and command loop if a
282 standalone app, skip full option help message if compiling
283 with MPW C.
284 (gdb_readline): If MPW, add a newline after the (gdb) prompt.
285 * utils.c (_initialize_utils): If MPW, don't try to use termcap to
286 compute the window size.
287 * config/m68k/xm-mpw.h (printf, fprintf, fputs, fputc, putc,
288 fflush): Define as macros that expand into hacked_... versions.
289 (StandAlone, mac_app): Declare.
290 * macgdb.r (SIZE): Set the default partition to 4000K.
291 * mac-xdep.c (readline.h, history.h): Include.
292 (terminal.h): Don't include.
293 (mac_app): Define.
294 (gdb_has_a_terminal): Define Mac-specific version.
295 (do_keyboard_command): Simplify search for command string.
296 (readline): Define as gdb_readline.
297 Add other history/readline stubs to make main gdb link.
298 (hacked_fprintf, hacked_printf, hacked_vfprintf, hacked_fputs,
299 hacked_fputc, hacked_fflush): New functions, intercept output to
300 stdout and stderr, send to console window.
301
302 * mpw-make.in (MacGDB): New target, standalone Mac-hosted gdb.
303 (XDEPFILES): Define.
304 (main.c.o): Compile with gC instead of C.
305 * mac-defs.h: New file, menu etc definitions shared between
306 C and Rez files.
307 * macgdb.r: New file, Rez (resource compiler) resource
308 definitions.
309 * mac-xdep.c: New file, Mac host interface code.
310 * config/m68k/xm-mpw.h (PATHNAME_SEPARATOR): Rename to
311 DIRNAME_SEPARATOR.
312 (PATHNAME_SEPARATOR_STRING): Remove.
313 (SIGQUIT, SIGHUP): Define.
314 (fileno, R_OK): Define.
315
316 * mpw-config.in: New file, MPW configuration fragment.
317 * mpw-make.in: New file, MPW makefile fragment.
318 * config/m68k/xm-mpw.h: New file, MPW host definitions.
319 * ser-mac.c: New file, Mac serial interface.
320
c08c3640
KH
321Mon Apr 10 16:47:57 1995 Kung Hsu <kung@mexican.cygnus.com>
322
73dab896
KH
323 * valprint.c (print_longest): Fix a syntax error in #ifdef
324 PRINTF_HAS_LONG_LONG.
325
326 * config/mips/xm-irix5.h: turn on CC_HAS_LONG_LONG and
c08c3640
KH
327 PRINTF_HAS_LONG_LONG.
328 * config/mips/tm-irix5.h: turn on FORCE_LONG_LONG.
329
41270571
PS
330Sat Apr 8 02:47:45 1995 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
331
332 * mdebugread.c (parse_symbol): Use new variable
333 nodebug_var_symbol_type as type of variables which don't have any
334 ecoff debug info associated with them.
335 (parse_symbol, parse_procedure): Use heuristics to determine if
336 functions were compiled without debugging info and change their
337 type to nodebug_function_symbol_type.
338 (_initialize_mdebugread): Initialize nodebug_*_symbol_type.
339
340 * source.c (line_info): Clear sal.pc for `info line' without
341 arguments.
342
7952bce6
SG
343Fri Apr 7 17:43:01 1995 Stu Grossman (grossman@andros.cygnus.com)
344
345 * monitor.c: make_xmodem_packet and print_xmodem_packet go away.
346 send_xmodem_packet shows up to do the obvious. Lots of fixes to
347 xmodem downloads including resetting of block number at start of
348 new transfers, fix for buffer overrun problem, addition of CRC
349 generation code.
350 * (monitor_open): loadtype_str and loadproto_str now default to
351 first entry in monitor_ops->loadtypes.
352 * (monitor_wait): Lengthen register dump buf, because of verbose
353 Winbond monitor.
354 * (monitor_fetch_register): Report unimplemented registers as 0.
355 * (monitor_read_memory): Only do 16 byte aligned transfers
356 because of formatting weirdness with the Winbond monitor. Also,
357 ignore non-hex, non-whitespace formatting between bytes (same
358 monitor).
359 * (monitor_load): Clean up logic.
360 * (monitor_load_srec): Re-do xmodem support. Move lots of it
361 into send_xmodem_packet.
362 * (getacknak): Get rid of polls and timeouts. Handle CRC
363 requests from receiver.
364 * (monitor_make_srec): Efficiency improvements. Don't call
365 sprintf to output two digit hex numbers.
366 * (crcinit, docrc): New, CRC-16 support routines.
367 * (send_xmodem_packet): New routine to generate either CRC-16 or
368 checksummed xmodem packets.
369
370 * remote-est.c (est_loadtypes), rom68k-rom.c (rom68k_loadtypes):
371 Reduce tables down to only the load types supported by each
372 monitor.
373
374 * w89k-rom.c (w89k_supply_register): Parses output of Winbond
375 register dumps.
376 * (w89k_loadtypes, w89k_loadprotos): Reduce to just srec/xmodem.
377 * (w89k_cmds): Add clear all breakpoints, memory fill, and dump
378 registers commands.
379
0ac704d2
SG
380 * config/pa/tm-hppa.h: Define lots register offsets needed by
381 w89k-rom.c.
382
77a89957
MM
383Thu Apr 6 17:00:46 1995 Michael Meissner <meissner@tiktok.cygnus.com>
384
385 * Makefile.in (X11_INCLUDES): Define as empty.
386 (X11_CFLAGS): Define as including $(X11_INCLUDES).
387 (X11_LIB_SWITCHES): Define as empty.
388 (X11_LIBS): Define as -lX11.
389
cb5aa38b 390start-sanitize-gdbtk
77a89957
MM
391 * configure.in (enable_gdbtk): If gdbtk, support the --x-includes
392 and --x-libraries switches, setting the X11_INCLUDES and
393 X11_LIB_SWITCHES respectively. Instead of using a hardcoded -lX11
394 in ENABLE_CLIBS, use the X11_LIB_SWITCHES and X11_LIBS variables.
395
396 * gdbtk.c (gdbtk_init): If SIOCSPGRP is not available, don't use
397 it. This means that the stop button doesn't work, but is better
398 than nothing.
cb5aa38b 399end-sanitize-gdbtk
77a89957 400
8066e434
JK
401Wed Apr 5 19:57:38 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
402
403 * mips-tdep.c (mips_print_register): Remove unused variable
404 our_type and call to init_type. Fixes memory leak. Reindent function.
405
406 * mips-tdep.c (mips_print_register), findvar.c
407 (write_register_bytes): Make buffer char[] instead of unsigned
408 char[].
409
dee80384
JK
410Mon Apr 3 19:28:14 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
411
8066e434 412 * top.c, utils.c, main.c, defs.h: Replace error_pre_print with two
dee80384
JK
413 variables: error_pre_print (for RETURN_ERROR) and quit_pre_print
414 (for RETURN_QUIT). Fixes a bug whereby typing ^C (e.g. in "maint
415 print sym") could output extraneous stuff.
416 * objfiles.c: Don't declare error_pre_print; defs.h does it.
417
418Mon Apr 3 13:48:28 1995 Stu Grossman (grossman@andros.cygnus.com)
419
420 * monitor.h: Add MO_GETMEM_NEEDS_RANGE flag.
421 * monitor.c (monitor_read_memory): Use previously mentioned flag
422 to send proper format memory examine commands to the w89k monitor.
423 Also, try to handle bizarre format of memory dump...
424
425 * op50-rom.c w89k-rom.c: Update to new monitor.[ch] conventions.
426
576c3913
PS
427Sat Apr 1 03:22:20 1995 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
428
429 * dbxread.c (process_one_symbol) [SOFUN_ADDRESS_MAYBE_MISSING]:
430 Handle relocated symbol address.
431 * partial-stab.h, case N_SO, SOFUN_ADDRESS_MAYBE_MISSING:
432 Do not relocate a zero address.
433
23a1346e
JK
434Thu Mar 30 19:46:36 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
435
7c7c4f0a
JK
436 * config/a29k/tm-a29k.h: Nuke obsolete define CONTROL_END_ADDR; it
437 is nowhere used.
438
23a1346e
JK
439 * stabsread.c (read_range_type): Remove FIXME comment about
440 type-id (I presume this meant a number followed by = followed by a
441 type) versus type number; Per fixed it.
442
1e1dd175
SS
443Wed Mar 29 09:56:04 1995 Jason Molenda (crash@phydeaux.cygnus.com)
444
445 * configure.in: sparc-*-sunos5* is same as sparc-*-solaris2*.
446
a2f0cf2f
SS
447Wed Mar 29 18:30:03 1995 Stan Shebs <shebs@andros.cygnus.com>
448
449 * remote-e7000.c (why_stop): Add new kinds of strings to expect
450 from the emulator.
451 (e7000_wait): Add interpretations for more stop reasons,
452 including warnings for write protect and cycle address errors.
453
a706069f
SG
454Wed Mar 29 17:09:29 1995 Stu Grossman (grossman@cygnus.com)
455
456start-sanitize-gdbtk
457 * Makefile.in (gdbtk.o): Use X11_CFLAGS to provide alternate
458 locations (per-host) for X11 include files.
459 * config/pa/hppahpux.mh (XM_CLIBS): Add -L/usr/lib/X11R5 to force
460 the use of R5 libs. (X11_CFLAGS): Add this to indicate the locs
461 of the R5 include files.
462end-sanitize-gdbtk
463 * monitor.c monitor.h remote-est.c rom68k-rom.c: Add start of
464 support for interrupting target.
465 * monitor.c (monitor_open): Send stop command before doing
466 anything else.
467 * (monitor_load_srec): Fix record size calculation to prevent end
468 of segment from getting trashed.
469 * rom68k-rom.c: Update to latest version of struct monitor_ops.
470 * config/sparc/tm-sparc.h (FIX_CALL_DUMMY): Fix byte-order
471 problems. Makes DOS hosted function calling work.
472 * sparclite/crt0.s: Define _start to make COFF happy.
a706069f 473
3e8fdb61
MM
474Wed Mar 29 09:11:51 1995 Michael Meissner <meissner@tiktok.cygnus.com>
475
476 * defs.h (atof): Don't provide an external declaration if atof is
477 a macro.
478
e137e850
PS
479Wed Mar 29 00:01:07 1995 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
480
481 * rs6000-tdep.c (skip_prologue): Skip saving of LR and CR in
482 the stack frame, fix typos in `st rx,NUM(r1)' and `stu r1,NUM(r1)'
483 tests.
484
e55a5796
PB
485Tue Mar 28 17:04:04 1995 Per Bothner <bothner@kalessin.cygnus.com>
486
487 * gdbtypes.c (create_range_type): If indextype has TYPE_FLAG_STUB
488 set, set TYPE_FLAG_TARGET_STUB.
489 (check_stub_type): Recalculate TYPE_LENGTH for range type.
490 * stabsread.c (read_range_type): If index type number is followed
491 by '=', back up, call read_type. and assume we have a true range.
492 * gdbtypes.h (TYPE_FLAG_TARGET_STUB): Update comment.
493
3f403f6a
PS
494Mon Mar 27 22:51:54 1995 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
495
496 * alpha-nat.c, irix4-nat.c, irix5-nat.c, mipsv4-nat.c,
497 sparc-tdep.c (supply_gregset, supply_fpregset): Fill inaccessible
498 registers with zero to handle recent read_register_bytes change.
499 * irix4-nat.c, irix5-nat.c, mipsv4-nat.c (supply_gregset,
500 fill_gregset): Fix handling of CAUSE_REGNUM.
501 * mips-nat.c (store_inferior_registers): Handle unwritable
502 registers when storing a single register.
503 * config/mips/tm-irix3.h (CAUSE_REGNUM, BADVADDR_REGNUM):
504 Fix definitions.
505
506 * mdebugread.c (parse_symbol, psymtab_to_symtab_1): Clear
507 allocated mips_extra_func_info, if the debug info is corrupt,
508 the PDR to fill it in might be missing.
509
3b94a0b8
KH
510Mon Mar 27 14:43:00 1995 Kung Hsu <kung@mexican.cygnus.com>
511
512 * vx-share/regPacket.h: a new file interfacing with vxworks.
513
d582898a
JK
514Sun Mar 26 13:22:47 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
515
516 * breakpoint.c (bpstat_do_actions): Once we've executed the
517 commands, set bs->commands to NULL.
518
b9e58503
PS
519Sat Mar 25 01:16:10 1995 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
520
521 * buildsym.c (patch_subfile_name): Update last_source_file
522 with the real source file name.
523 * dbxread.c (end_psymtab): Handle static functions in the
524 SOFUN_ADDRESS_MAYBE_MISSING case by passing pst->filename
525 to lookup_minimal_symbol.
526 (process_one_symbol): Ignore extra outermost context from
527 SunPRO cc and acc.
528 * stabsread.c (define_symbol): Do not complain for SunPRO
529 static variable encoding if STATIC_TRANSFORM_NAME is defined.
530 * sparc-tdep.c, config/sparc/tm-sun4sol2.h
531 (sunpro_static_transform_name): Renamed from
532 solaris_static_transform_name.
533 * config/sparc/tm-sun4os4.h (STATIC_TRANSFORM_NAME):
534 Define to sunpro_static_transform_name for acc 3.0 compiled
535 executables.
536 * procfs.c, config/alpha/nm-osf2.h (PROCFS_DONT_TRACE_FAULTS):
537 Renamed from PROCFS_DONT_TRACE_IFAULT, don't trace any faults
538 if defined.
539 * procfs.c (info_proc_siginfo): Cast sip->si_addr to
540 `unsigned long' and use `lx' format for printing it.
541
542Fri Mar 24 15:45:42 1995 Stu Grossman (grossman@cygnus.com)
543
544 * configure.in: Move test for m68*-est-* before m68*-*-coff*.
545 * findvar.c: Move default def of CANNOT_STORE_REGISTER closer to
546 the beginning of the code.
547 * (write_register_gen): New routine. Analogous to
548 read_register_gen.
549 * (write_register_bytes): Another rewrite! Make it smarter about
550 not updating regs with the same value.
551 * monitor.c (printf_monitor readchar): Use stderr instead of
552 stdout to output debug info. Also cleanup readchar a little.
553 * (expect): Make sure that excessive responses are null
554 terminated.
555 * (monitor_open): Check for magic number in monitor_ops struct.
556 Allow multiple commands as init strings. Also, clear all
557 breakpoints.
558 * (monitor_resume monitor_wait): Send a command to dump all the
559 regs for those targets which don't do so when waking up after a
560 continue command.
561 * (monitor_wait): Handle excessive response output better.
562 * (monitor_write_memory): Use block fill, word, and long word
563 commands (if they exist) to write memory more efficiently.
564 * General cleanups to use flag bits instead of individual flag
565 words in monitor_ops struct.
566 * (monitor_command): Return output from command.
567 * (monitor_load_srec): Allocate buffer only once. Use alloca.
568 Wait for load response string instead of using a timeout to start
569 sending S-records. Fix bug where value of srec_frame shrinks. If
570 hashmark is set, print `-' for retransmissions. General cleanups.
571 * (monitor_make_srec): Get rid of S-record default type kludge.
572 * monitor.h: Use seperate struct for memory and register
573 read/write commands. Memory commands can come in byte, word,
574 long, and longlong forms.
575 * (monitor_ops): Change lots of fields. Generalize some stuff.
576 Put all flags into flags word. Allow init to be a list of commands.
577 Add command for clearing all breakpoints, block fill, dumping all
578 registers.
579 * remote-est.c: Rewrite to use new monitor conventions.
580 * config/m68k/est.mt (TDEPFILES): Add monitor.o.
581 * config/m68k/tm-est.h: Set NUM_REGS to 18.
582 * testsuite/gdb.base/break.exp: Lots of cleanups. Use gdb_test
583 more thoroughly.
584
9bfed1ee
JL
585Thu Mar 23 23:20:00 1995 Jeff Law (law@snake.cs.utah.edu)
586
587 * somsolib.c (som_solib_add): Handle case where a shared library
588 referenced by a core file has sections without the SEC_ALLOC bit
589 set (eg stabs sections).
590
1c04536e
JK
591Thu Mar 23 15:07:08 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
592
593 * breakpoint.c (bpstat_do_actions): For each element in the bpstat
594 chain, do all the commands regardless of whether they run the
595 inferior.
596
aa949c08
DE
597Wed Mar 22 19:17:06 1995 Doug Evans <dje@cygnus.com>
598
599 * mem-break.c (LITTLE_BREAKPOINT, BIG_BREAKPOINT): Define as
600 BREAKPOINT if mono-endian.
601 (break_insn): Deleted.
602 (big_break_insn, little_break_insn): Define.
603 (memory_insert_breakpoint): Handle bi-endian cpus.
604 (BREAKPOINT_LEN): Define.
605 (memory_remove_breakpoint): Use it.
606 (memory_breakpoint_size): Likewise.
607
9cc2cd4f
KH
608Tue Mar 21 17:03:17 1995 Kung Hsu <kung@mexican.cygnus.com>
609
610 * sparc-stub.c: add nop after 'bg good_wim'.
611 * sparcl-stub.c: ditto.
612
1968ed13
JK
613Tue Mar 21 13:34:12 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
614
615 * infrun.c (handle_command): Don't print TARGET_SIGNAL_0,
616 TARGET_SIGNAL_UNKNOWN, or TARGET_SIGNAL_DEFAULT.
617
e6059f4a
JL
618Mon Mar 20 10:09:59 1995 Jeff Law (law@snake.cs.utah.edu)
619
620 * hppab-nat.c (store_inferior_registers): Sync with HPUX version.
621
a15f6b0a
SG
622Mon Mar 20 07:34:48 1995 Stu Grossman (grossman@cygnus.com)
623
624 * hppah-nat.c (store_inferior_registers): Move check for
625 CANNOT_STORE_REGISTER to a better place. Fixes ptrace I/O errors
626 found by test suite during function calls, which attempts to write
627 unwritable registers.
628
5c26250b
PS
629Sat Mar 18 02:02:24 1995 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
630
631 * mdebugread.c (parse_symbol): If finishing a function without
632 known parameter type info, set that from parameter symbols.
633 Remove commented-out add_param_to_type support.
634
635Thu Mar 16 16:38:03 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
636
637 * xcoffread.c (process_linenos): Make sure filename we pass to
638 start_subfile will cause deduce_language_from_filename to return
639 the correct thing. Reindent function to GNU standards.
640
334655aa
C
641Thu Mar 16 15:54:00 1995 J.T. Conklin <jtc@rtl.cygnus.com>
642
643 * nlm/gdbserve.c (handle_exception): #if out call to StopBell,
644 as it is not available on NetWare 3 or PIN.
645 * nlm/ppc.c (StopBell): Removed.
646
8367c66b
JK
647Thu Mar 16 12:14:41 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
648
d1f14b46
JK
649 * xcoffread.c (read_xcoff_symtab): When creating a dummy parameter
650 inferred from the traceback tags, give its type the name
651 "<non-float parameter>".
652
8367c66b
JK
653 * stabsread.c (rs6000_builtin_type): Recognize types -31 to -34.
654
2081365f
SG
655Wed Mar 15 15:09:29 1995 Stu Grossman (grossman@cygnus.com)
656
657 * findvar.c (read_register_bytes write_register_bytes): Make
658 these routines much smarter about updating registers from the
659 target, only doing so when absolutely necessary. This really
660 speeds up register modification on some remote targets.
661
662 * monitor.c: More cleanups. Get rid of monitor_load_ascii_srec.
663 BFD makes this unnecessary. Lots of debugging speedups.
664 * (expect): NULL terminate return string.
665 * (monitor_open monitor_supply_register parse_register_dump
666 monitor_wait monitor_fetch_register): Switch to using GNU regexp
667 library to parse multi-register displays.
668 * (monitor_read_memory): Read multiple bytes (up to 16) at once.
669 * (monitor_create_inferior): Call clear_proceed_status to make run
670 command notice first breakpoint.
671 * (monitor_load): Clean up. Reset inferior_pid, set pc to start
672 address and reset symbol table stuff to make loads put things into
673 a fresh state.
674 * (monitor_load_srec): Lower sleep time to 1 second.
675
676 * monitor.h (struct monitor_ops): Add register_pattern and
677 supply_register to monitor_ops.
678
679 * rom68k-rom.c: Add new support for handling register dumps.
efe4e52d
SG
680 * config/m68k/tm-m68k.h: Define D0_REGNUM and A0_REGNUM for register
681 dump handling.
2081365f 682
a7f6f40b
JK
683Wed Mar 15 15:18:27 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
684
685 * utils.c, defs.h (putchar_unfiltered, fputc_unfiltered): Make
686 argument be an int, not a char. Using a prototype followed by an
687 old-style function definition in a case where an argument is
688 widened is a GCC-ism not supported by the native AIX compiler.
689
b1dda26e
C
690Wed Mar 15 12:22:35 1995 J.T. Conklin <jtc@rtl.cygnus.com>
691
68c1bc9c
C
692 * nlmstub.def: Removed, this was moved to nlm/gdbserve.def
693 long ago.
694
a64bbacf 695 * configure.in (alpha-*-netware*): Removed configuration.
68c1bc9c
C
696 * config/alpha/{alpha-nw.mt, gdbserve.mt, tm-alphanw.h}: Removed.
697 * nlm/{README-ALPHA-NETWARE, aio.h, alpha-io.S, alpha-regdef.h,
698 alpha.c, alpha.h, altdebug.h}: Removed.
699
b1dda26e
C
700 * nlm/gdbserve.c (main): Add support for processing BOARD=
701 argument, deprecate NODE=.
702
961b8ebd
JK
703Wed Mar 15 10:58:26 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
704
705 * c-exp.y (yylex): Make an empty character constant an error.
706
912cb3fd
PB
707Tue Mar 14 15:00:54 1995 Per Bothner <bothner@kalessin.cygnus.com>
708
709 * valops.c (value_arg_coerce): Do possible value_coerce_array
710 before determining type argument to value_cast.
711
1990231d
KH
712Tue Mar 14 10:41:41 1995 Kung Hsu <kung@mexican.cygnus.com>
713
714 * remote-es.c: Replace ignore with 0.
715
a3012272
JK
716Tue Mar 14 05:52:36 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
717
2e12bf4f
JK
718 * valops.c (value_repeat), eval.c (evaluate_subexp_standard):
719 If VALUE_REPEATED is already set, just error out.
720
36633dcc
JK
721 * valops.c (value_cast, value_slice), parse.c (follow_types): Add
722 FIXME-type-allocation comments.
723
a3012272
JK
724 * gdbtypes.h (struct type): Fix comment about what units the
725 TYPE_LENGTH is in.
726
477b2425
SS
727Mon Mar 13 18:27:25 1995 Stan Shebs <shebs@andros.cygnus.com>
728
729 * ch-valprint.c (annotate.h): Include.
730 * eval.c (evaluate_subexp_standard): Remove unused variable.
731 (calc_f77_array_dims): Add parens to expression.
732 * f-exp.y (yylex): Add parens to expression, remove unused label.
733 * f-lang.h (calc_f77_array_dims): Declare.
734 * f-valprint.c (f_val_print): Remove unused variables.
735
4f69fe46
JK
736Mon Mar 13 15:25:47 1995 Jim Kingdon <kingdon@deneb.cygnus.com>
737
738 * alpha-tdep.c (find_proc_desc): If pdr.framereg field is -1, don't
739 use the PDR, just examine prologues instead.
740
477b2425 741start-sanitize-arc
c230fbb6
KH
742Fri Mar 10 16:13:18 1995 Kung Hsu <kung@mexican.cygnus.com>
743
c230fbb6
KH
744 * config/tm-arc.h: Change arc register names.
745end-sanitize-arc
746
a1a0d974
PS
747Fri Mar 10 02:49:40 1995 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
748
749 Fix problems with infinite recursion when printing a class
750 that contains a static instance of the class.
751 * cp-valprint.c (dont_print_vb_obstack): Renamed from
752 dont_print_obstack, made static.
753 (dont_print_statmem_obstack): New obstack, controls printing
754 of static member classes.
755 (_initialize_cp_valprint): Initialize it.
756 (cp_print_static_field): New function, handles printing of
757 static members.
758 (cp_print_value_fields): New parameter dont_print_statmem to
759 handle recursive printing of static member classes, use
760 cp_print_static_field to handle printing of static members.
761 * c-valprint.c (cp_print_value_fields): Update prototype and
762 call to include additional dont_print_statmem parameter.
763 * c-valprint.c, f-valprint.c (dont_print_obstack): Remove unused
764 extern declaration.
765
766 * alpha-tdep.c, findvar.c, infptrace.c: Include <string.h>.
767
768 * config/alpha/tm-alpha.h (FRAME_FIND_SAVED_REGS): Call
769 alpha_find_saved_regs if fi->saved_regs is still NULL.
770
771 * elfread.c (elf_symtab_read): Ensure that the filename field
772 of a minsym is nonempty. Ignore solib trampoline symbols from
773 the main symbol table, they might have a bogus value.
774
775 * procfs.c (set_proc_siginfo), config/alpha/alpha-osf2.mh:
776 Fix typos in comments.
777
45d6f623
JK
778Thu Mar 9 17:19:47 1995 Jim Kingdon <kingdon@deneb.cygnus.com>
779
780 * mdebugread.c (parse_symbol, psymtab_to_symtab_1): Initialize
781 pdr.framereg field of MIPS_EFI_SYMBOL_NAME symbol to -1. That way
782 we know whether the PDR ever got set.
783 * mips-tdep.c (find_proc_desc): If pdr.framereg field is -1, don't
784 use the PDR, just examine prologues instead.
785
786Wed Mar 8 23:35:10 1995 Jeff Law (law@snake.cs.utah.edu)
787
788 * somsolib.c (som_solib_section_offsets): Get offset of text
789 section right.
790
34c40fd7
SG
791Wed Mar 8 16:12:21 1995 Stu Grossman (grossman@cygnus.com)
792
8cbf6efc 793start-sanitize-gdbtk
9468f8aa
SG
794 * gdbtk.c (gdb_get_breakpoint_info): Return error if breakpoint
795 type is not bp_breakpoint.
8cbf6efc 796end-sanitize-gdbtk
9468f8aa 797
34c40fd7
SG
798 * source.c (forward_search_command reverse_search_command): Set
799 convenience variable $_ to be the line # of the match.
800 * symtab.c (decode_line_1): Allow convenience variables to be
801 used in line specs (for breakpoints and such).
802
95618211
SS
803Wed Mar 8 12:51:00 1995 Stan Shebs <shebs@andros.cygnus.com>
804
805 * Makefile.in (VERSION): Bump to 4.14.1.
806 * NEWS, README: Update for 4.14.
807 * i386v-nat.c (i386_insert_aligned_watchpoint): Fix declaration.
808 (i386_insert_nonaligned_watchpoint): Call aligned instead of
809 generic watchpoint insertion.
810
830a65b3
PB
811Tue Mar 7 19:26:10 1995 Per Bothner <bothner@kalessin.cygnus.com>
812
813 * valops.c (value_slice): Do COERCE_VARYING_ARRAY.
814
236274b9
SG
815Tue Mar 7 00:23:47 1995 Stu Grossman (grossman@cygnus.com)
816
95618211 817 * monitor.c, array-rom.c, monitor.h, rom68k-rom.c: Move target_ops
32fa4b59
SG
818 into monitor.c.
819 * monitor.c (monitor_create_inferior): Allow run command to start
820 program.
821
f17aed8b
SG
822 * monitor.c (monitor_load): Set PC to start address when done
823 loading.
824
95618211 825 * array-rom.c, monitor.h, rom68k-rom.c: Clean up target_ops.
f17aed8b
SG
826 Remove ref to monitor_create_inferior.
827
8f078234
SG
828 * monitor.c: More general cleanups. Add prototypes, remove
829 unused routines. Fix bug with wrong number of args to error().
830
cc60ad63
SG
831 * main.c (main): Don't start up GUI when running under gdb mode
832 in emacs.
833
1265e2d8
SG
834 * Makefile.in: Add rules for monitor.o and rom68k-rom.o to make
835 Sun make (with VPATH) work...
836
95618211 837 * monitor.c, monitor.h, rom68k-rom.c: Serious cleanup to make IDP
1265e2d8 838 (rom68k) target work right.
95618211 839 * array-rom.c, op50-rom.c, w89k-rom.c: Partial updates to new
1265e2d8
SG
840 monitor.c interface. More work needs to be done here.
841 * config/m68k/tm-monitor.h: Change DECR_PC_AFTER_BREAK to 0 to
842 match the IDP monitor. Also, set NUM_REGS to 18 cuz there's no
843 floating-point for this card.
844
95618211 845 * serial.h, ser-go32.c, ser-go32-para.c, ser-mac.c, ser-tcp.c,
85c8b135
SG
846 ser-unix.c: Add SERIAL_SETSTOPBITS to set the number of stopbits
847 (needed for IDP board?!?!?).
848
95618211
SS
849 * defs.h, utils.c, remote-hms.c, remote-pa.c, remote.c: Fix defs
850 and usage of fputc_unfiltered and putchar_unfiltered. Eliminate
7baea946
SG
851 putc_unfiltered (it's superfluous).
852
95618211 853 * command.h, command.c, top.c: Add var_enum command type. It's
09374c98 854 like var_string but allows only only one of the specified strings.
236274b9 855
e70bba9f
JK
856Mon Mar 6 15:03:59 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
857
858 * valops.c (value_cast): Don't use backslash newline--pre-ANSI
859 compilers (such as SunOS4 /bin/cc) don't generally support it
860 except in some contexts.
861
f7a69ed7
PB
862Fri Mar 3 17:42:48 1995 Per Bothner <bothner@kalessin.cygnus.com>
863
2379f65c 864 * valops.c (value_cast): Check for cast to array type *before*
f7a69ed7
PB
865 we coerce array to pointer (in case arg2 is already array).
866
867 * valops.c (call_function_by_hand): Set using_gcc to 2 if using
868 gcc2. Needed for REG_STRUCT_HAS_ADDR to work on sparc.
869 Also check REG_STRUCT_HAS_ADDR for union, array and string types.
870
871 * valops.c (call_function_by_hand): Re-arrange code for pushing
872 paramaters on the stack so we can do better STACK_ALIGN.
873
874 * valops.c (call_function_by_hand): Call error if the number
875 of arguments is fewer than parameter types in function type.
876
732ff6af
DE
877Fri Mar 3 17:13:05 1995 Doug Evans <dje@canuck.cygnus.com>
878
879 * sparc-tdep.c (sparc_extract_struct_value_address): Move
880 sparc64 support to here.
881 (sparc64_extract_struct_value_address): Deleted.
882 (dump_ccreg): Add a prototype so long long arg -> int.
883 * sparc/tm-sp64.h (USE_STRUCT_CONVENTION): Define.
884 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
885
13ffa6be
JL
886Fri Mar 3 15:12:12 1995 Jeff Law (law@snake.cs.utah.edu)
887
3a0fbb3b
JL
888 * hpread.c (hpread_record_lines): New argument "offset". All
889 callers changed. Use it to handle dynamic address relocation.
890 (hpread_build_psymtabs): Adjust texthigh as we read each function
891 debug symbol. Fix computation of texthigh.
892 (hpread_read_subrange_type): Work around macro bugs in HP's
893 compilers.
894 (hpread_process_one_debug_symbol): Correctly map source lines.
895
2097152a
JL
896 * somread.c (check_strange_names): Filter names emitted by the HP
897 compiler when generating PIC code.
898
13ffa6be
JL
899 * valops.c (value_struct_elt_for_reference): Work around macro
900 bugs in HP's compilers.
901 * c-exp.y (block): Likewise.
902
0d172a2e
JK
903Fri Mar 3 12:27:28 1995 Jim Kingdon <kingdon@deneb.cygnus.com>
904
5816555b
JK
905 * rs6000-tdep.c (push_dummy_frame): Fix order of arguments to
906 store_address.
907
0d172a2e
JK
908 * utils.c [_AIX]: Include stddef.h instead of #defining size_t.
909
629b6214
MM
910Fri Mar 3 12:33:24 1995 Michael Meissner <meissner@tiktok.cygnus.com>
911
912 * rs6000-tdep.c (skip_prologue): Skip multiple stores of the saved
913 registers that GCC emits on the PowerPC by default in addition to
914 the store multiple instruction used on the Power series.
915
8b0f5a9d
DE
916Fri Mar 3 00:54:58 1995 Doug Evans <dje@canuck.cygnus.com>
917
918 * sparc-tdep.c (decode_asi): New function.
919 (sparc_print_register_hook): Pretty print more v9 registers.
920 * sparc/tm-sp64.h (REGISTER_NAMES): Fix some typos.
921
306d27ca
DE
922Thu Mar 2 22:20:22 1995 Doug Evans <dje@canuck.cygnus.com>
923
924 * dwarfread.c (struct dieinfo): Use CORE_ADDR for at_{low,high}_pc.
925 (target_to_host): Change result type to CORE_ADDR.
926
927Thu Mar 2 15:13:04 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
928
929 * rs6000-tdep.c: Fix byte-swapping sins.
930
dc59e982
MM
931Thu Mar 2 16:48:45 1995 Michael Meissner <meissner@cygnus.com>
932
933 * rs6000-tdep.c (branch_dest): Minor code cleanup, don't share
934 code between branch unconditional and branch conditional cases.
935
762cf56f
DE
936Wed Mar 1 09:41:26 1995 Doug Evans <dje@canuck.cygnus.com>
937
938 Various changes for sparc64.
939 * sparc-tdep.c (NUM_SPARC_FPREGS): Define.
940 (SPARC_INTREG_SIZE): Define.
941 (*): Use SPARC_INTREG_SIZE instead of REGISTER_RAW_SIZE (intreg)
942 where appropriate.
943 (enum branch_type): New value `done_retry'.
944 (isbranch): Renamed from isannulled. All callers changed.
945 Support new sparc64 branch insns.
946 (single_step): Handle done_retry.
947 (sparc_extract_struct_value_address): Don't assume 4 byte regs.
948 (get_saved_register): Likewise.
949 (sparc_push_dummy_frame): Likewise.
950 (sparc_frame_find_saved_regs): Likewise.
951 (sparc_pop_frame): Likewise. Don't refer to FPS_REGNUM, CPS_REGNUM,
952 or PS_REGNUM if not sparc64. sparc64 has 64 fp regs.
953 (sparc64_extract_struct_value_address): New function.
954 (dump_ccreg, sparc_print_register_hook): Likewise.
955 * sp64-tdep.c: Deleted.
956 * sparc/tm-sp64.h (GDB_TARGET_IS_SPARC64): Define.
957 (NUM_REGS): Reduce by 2, cle/tle are in the pstate reg.
958 (CC_HAS_LONG_LONG): Define.
959 (REGISTER_NAMES): Delete cle/tle and reorganize.
960 (PS_REGNUM, FPS_REGNUM, CPS_REGNUM): Delete, they're ifdef'd out of
961 sparc-tdep.c now.
962 (REGISTER_BYTES): Update.
963 (REGISTER_CONVERT_TO_VIRTUAL, REGISTER_CONVERT_TO_RAW): Delete.
964 (EXTRACT_RETURN_VALUE): Delete. Use definition in tm-sparc.h.
965 (NO_SINGLE_STEP): Likewise.
966 * sparc/tm-sparc.h (EXTRACT_VALUE_RETURN): Don't assume 4 byte regs.
967 * sparc/sp64.mt: Move simulator support ...
968 * sparc/sp64sim.mt: ... to here.
969
7e869571
KH
970Wed Mar 1 13:14:42 1995 Kung Hsu <kung@mexican.cygnus.com>
971
972 * remote-vx960.c: new file for target specific register packaging.
973 * remote-vx68.c: ditto.
974 * config/i960/vxworks960.mt: add remote-vx960.o.
975 * config/m68k/vxworks68.mt: add remote-vx68.o.
976
8bfd30b2
MM
977Wed Mar 1 13:42:49 1995 Michael Meissner <meissner@tiktok.cygnus.com>
978
979 * remote.c (remote_wait): Make calls to strtol be type correct by
980 passing the address of a char * pointer instead of an unsigned
981 char *.
982
983 * rs6000-tdep.c (push_dummy_frame): Cast sp to char * when calling
984 write_memory to make things type correct.
985
ea082c0a
MM
986Wed Mar 1 12:17:31 1995 Michael Meissner <meissner@cygnus.com>
987
988 * ch-exp.y, c-exp.y, f-exp.y, m2-exp.y (yy defines): Support the
989 standard Linux yacc by adding more names to be redefined with a
990 prefix.
991
bc28e68d
JK
992Tue Feb 28 22:55:47 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
993
994 * hppa-tdep.c (pa_print_registers), monitor.c: Use
995 extract_unsigned_integer and friends, not SWAP_TARGET_AND_HOST.
996 * defs.h, findvar.c: Move SWAP_TARGET_AND_HOST back to findvar.c.
997 Rename it to SWAP_FLOATING to make it clear it is no longer for
998 integers.
999
326ae3e2
KH
1000Tue Feb 28 14:38:39 1995 Kung Hsu <kung@mexican.cygnus.com>
1001
66aa7cf9
KH
1002 * defs.h (SWAP_TARGET_AND_HOST): check endianess at runtime not
1003 compile time.
1004
8cbf6efc 1005start-sanitize-arc
abed6bc2
KH
1006 * arc-tdep.c (_initialize_arc_tdep): set tm_print_insn according to
1007 processor.
1008 * remote-arc.c (arc_wait): when a processor stops, stop other two
1009 processors too.
1010 * remote-arc.c (switch_command): switch tm_print_insn.
8cbf6efc 1011end-sanitize-arc
abed6bc2 1012
bc01beb5
KH
1013 * vx-share/ptrace.h: merge in WRS new ptrace requests.
1014
75988f94
KH
1015 * defs.h: fix a syntax error.
1016
161520dc
KH
1017 * a29k-tdep.c (get_longjmp_target): add this function, from WRS.
1018 * remote-vx.c: move read_register and write_register out to
1019 target specific files.
1020 * remote-vx29k.c (get_fp_contnets): add this function, from WRS.
1021
326ae3e2
KH
1022 * defs.h: define SWAP_TARGET_AND_HOST macro.
1023 * findvar.c, monitor.c, hppa-tdep.c: remove definition of
1024 SWAP_TARGET_AND_HOST.
1025
de7ad6d8
JK
1026Tue Feb 28 08:31:40 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
1027
689409ca
JK
1028 * alpha-tdep.c (find_proc_desc): Only attempt to set
1029 PROC_LOCALOFF (found_heuristic) if found_heuristic is non-NULL.
de7ad6d8 1030
431b7d5f
SS
1031Mon Feb 27 11:56:32 1995 Stan Shebs <shebs@andros.cygnus.com>
1032
1033 * monitor.c: General gcc -Wall lint cleanup and reformat.
1034 (monitor_command): If no args, send an empty command.
1035
82fc3432
SG
1036Thu Feb 23 21:07:25 1995 Stu Grossman (grossman@cygnus.com)
1037
1038 * monitor.c (monitor_load_ascii_srec): Add a one second sleep
1039 after send LOAD_CMD to prevent loss of first S-record.
1040
835c2559
PB
1041Tue Feb 21 20:48:42 1995 Per Bothner <bothner@kalessin.cygnus.com>
1042
1043 * valops.c (call_function_by_hand): Set using_gcc to 2 if gcc-2.
1044 Call error if too few arguments.
1045 If REG_STRUCT_HAS_ADDR (structs passed by invisible reference),
1046 copy and convert to reference *before* we calculate alignment.
1047 Also, make sure structs allocated for return values and invisible
1048 reference don't violate STACK_ALIGN.
1049
1d19172b
PB
1050Tue Feb 21 23:29:59 1995 Per Bothner <bothner@rtl.cygnus.com>
1051
1052 * ch-exp.y (expression_conversion): Recognize 'ARRAY () TYPE (EXPR)'
1053 (same as C's '(TYPE[])EXPR')
1054
7f4b4b71
SS
1055Tue Feb 21 11:47:26 1995 Stan Shebs <shebs@andros.cygnus.com>
1056
1057 * top.c (print_gdb_version): Update the year.
1058
d940a47e
JK
1059Sun Feb 19 14:31:57 1995 Jim Kingdon <kingdon@rtl.cygnus.com>
1060
7f4b4b71 1061 * Makefile.in (CC_FOR_TARGET, CXX_FOR_TARGET): Look for newlib in
d940a47e
JK
1062 `..' not in `../..'.
1063
f5de4904
PS
1064Sun Feb 19 11:05:28 1995 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1065
1066 * procfs.c (unconditionally_kill_inferior): Don't issue a PIOCKILL
1067 in addition to a PIOCSSIG to kill the inferior.
1068
fda36387
PB
1069Thu Feb 16 15:06:12 1995 Per Bothner <bothner@kalessin.cygnus.com>
1070
1071 * parse.c (follow_types): Given (TYPE[]) (i.e. with no length),
1072 create a 0-length array type, and set BOUND_CANNOT_BE_DETERMINED.
1073 * valops.c (value_cast): If a cast like (TYPE[])VALUE (i.e. array
1074 of unknown length) use sizeof(VALUE)/sizeof(TYPE) as the length.
1075 * c-typeprint.c (c_type_print_varspec_suffix): If array length
1076 is 0, print it, but not if upper_bound is BOUND_CANNOT_BE_DETERMINED.
1077
92c6bf4d
MM
1078Thu Feb 16 16:06:50 1995 Michael Meissner <meissner@tiktok.cygnus.com>
1079
1080 * dcache.c (insque, remque): Rewrite Linux support.
1081
677653a0
MM
1082Wed Feb 15 12:33:20 1995 Michael Meissner <meissner@tiktok.cygnus.com>
1083
1084 * config/powerpc/tm-ppc-eabi.h (TEXT_SEGMENT_BASE): Define as 1.
1085
fed9a8d4
MM
1086 * dcache.c (insque, remque): If compiling in standard C on Linux,
1087 protect insque and remque with macros to cast the pointer
1088 arguments to the proper type.
677653a0
MM
1089
1090Tue Feb 14 17:16:41 1995 Stu Grossman (grossman@cygnus.com)
1091
7f4b4b71 1092 * annotate.c, breakpoint.c, defs.h, top.c: Replace
677653a0 1093 enable/disable_breakpoint_hook with modify_breakpoint_hook.
7f4b4b71
SS
1094start-sanitize-gdbtk
1095 * gdbtk.c: Ditto.
1096 * gdbtk.c: General cleanups, get rid of unused variables. Redo
677653a0
MM
1097 handling of stdout/stderr to just return output as the result of
1098 the tcl command that caused the output. Cleanup -Wall stuff.
1099 * (breakpoint_notify): Now returns just action and breakpoint
1100 number.
1101 * (gdb_get_breakpoint_list): New routine. Does the obvious.
1102 * (gdb_get_breakpoint_info): Mostly derived from the old
1103 breakpoint_notify, but returns lots more info.
1104 * (dsprintf_append_element): Helper routine, works like printf,
1105 but appends a tcl element onto the specified DString. Good for
1106 building up lists as return values.
1107 * (gdbtk_enable/disable_breakpoint): Go away. Replaced with
1108 gdbtk_modify_breakpoint.
1109 * (*many routines*): Use new result protocol.
1110 * (call_wrapper): Make sure that recursive calls don't trash results.
1111 * gdbtk.tcl: New windows, autocmd, and breakpoints.
1112 * (gdbtk_tcl_fputs): Don't use $current_output_win redirection
1113 anymore. It's not needed (in fact, this routine may not be needed
1114 anymore).
1115 * (gdbtk_tcl_breakpoint): Change to reflect new breakpoint
1116 notification protocol.
1117 * (gdbtk_tcl_busy gdbtk_tcl_idle): Straighten out buttons, remove
1118 catches.
1119 * (interactive_cmd): Use this wrapper around button invocations
1120 of many commands. This will catch errors and put the results into
1121 the command window. It also updates all the other windows.
1122 * Also, change reliefs of most things to sunken. This actually
1123 looks better.
1124 * (create_file_win): Fix margin binding to allow breakpoints to
1125 work again.
1126 * (create_asm_win): Use return value of gdb_disassemble instead
1127 of implicit I/O to the command window.
1128 * (create_command_window): Use new result protocol to get output
1129 from commands.
7f4b4b71 1130end-sanitize-gdbtk
677653a0 1131
5466f20f
JK
1132Tue Feb 14 16:58:07 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
1133
1134 * expression.h: Move declaration of evaluate_subexp_with_coercion
1135 from here...
1136 * value.h: ...to here.
1137 * expression.h: Don't include value.h
1138
a6865104
JK
1139Tue Feb 14 11:46:07 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
1140
1141 * expression.h: Move include of value.h until after declaration of
1142 enum exp_opcode.
1143
faf4dcd7
SS
1144Sun Feb 12 13:47:30 1995 Stan Shebs <shebs@andros.cygnus.com>
1145
d5c8cefe
SS
1146 * remote-e7000.c: Comprehensive cleanup; removal of dead code,
1147 simplify code, declare things, format to standards.
1148 (inferior.h, value.h, command.h, remote-utils.h): Include.
1149 (e7000_login): Rename to e7000_login_command.
1150 (e7000_ftp): Rename to e7000_ftp_command.
1151 (e7000_drain): Rename to e7000_drain_command.
1152
faf4dcd7
SS
1153 * irix5-nat.c (string.h): Include near beginning of file.
1154
18d3d859
JK
1155Sun Feb 12 12:36:38 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
1156
1157 * valops.c (value_arg_coerce): Use VALUE_TYPE not SYMBOL_TYPE on
1158 arg, it is a value not a symbol.
1159
1160 gcc -Wall lint:
1161 * eval.c: Move declaration of evaluate_subexp_with_coercion from here..
1162 * expression.h: ..to here.
1163 * expression.h: Include value.h.
1164 * ch-lang.c (evaluate_subexp_chill): Add default case in switch.
1165
60438e8e
PB
1166Sun Feb 12 11:03:47 1995 Per Bothner <bothner@kalessin.cygnus.com>
1167
7398958c
PB
1168 * language.h (struct language_defn): New field evaluate_exp.
1169 * c-lang.c (c_language_defn, cplus_language_defn, asm_langauge_defn),
1170 f-lang.c (f_language_defn), language.c (unknown_language_defn,
1171 auto_language_defn, local_language_defn), m2-lang.c (m2_language_defn):
1172 Set evaluate_exp to evaluate_subexp_standard.
1173 * ch-lang.c (evaluate_subexp_chill): New function. Chill-specific
1174 support for MULTI_SUBSCRIPT.
1175 (chill_language_defn): Set evaluate_exp to evaluate_subexp_chill.
1176 * eval.c (enum noside): Move from here ....
1177 * expression.h (enum noside): ... to here.
1178 (evaluate_subexp_standard): New prototype.
1179 * eval.c (evaluate_subexp): Renamed to evaluate_subexp_standard.
1180 Removed lo-longer-needed test for chill_varying_type.
1181 (evaluate_subexp): New. Calls exp->language_defn->evaluate_exp.
1182
60438e8e
PB
1183 * ch-exp.y (maybe_expression_list): New non-terminal.
1184 (primitive_value): Allow empty parameter list.
1185
27202b6a
PB
1186Sun Feb 12 10:02:16 1995 Per Bothner <bothner@cygnus.com>
1187
1188 * buildsym.c (finish_block): If finishing a function without known
1189 parameter type info, set that from parameter symbols.
1190 * c-typeprint.c (c_type_print_varspec_suffix): For TYPE_CODE_FUNC,
1191 print parameter types, if available.
1192 * ch-typeprint.c (chill_type_print_base): Likewise.
1193
1194 * gdbtypes.h (struct type): Remove function type field.
1195 (TYPE_FUNCTION_TYPE): Remove macro. We can't as simply re-use
1196 function types now that we're also storing parameter types.
1197 And the payoff is much less.
1198 * gdbtypes.c (make_function_type): Don't use/set TYPE_FUNCTION_TYPE.
1199 (recursive_dump_type): Don't print TYPE_FUNCTION_TYPE.
1200 * dwarfread.c (read_subroutine_type): Don't set TYPE_FUNCTION_TYPE.
1201
5222ca60
PB
1202 * valops.c (value_arg_coerce): Now takes param_type argument.
1203 (call_function_by_hand): Convert arguments with value_arg_coerce
1204 early, and overwrite original args with converted args.
1205 No longer need multiple calls to value_arg_coerce.
1206 (value_arg_push): Removed.
1207 * hppa-tdep.c (hppa_push_arguments): No longer call value_arg_coerce.
1208 * mips-tdep.c (mips_push_arguments): Likewise.
1209 * alpha-tdep.c (alpha_push_arguments): Likewise.
1210 * rs6000-tdep.c (push_arguments, ran_out_of_registers_for_arguments):
1211 Likewise.
1212 * value.h (value_arg_coerce): Remove declaration. (It's now static.)
1213
1214 * valops.c (value_cast): Do COERCE_VARYING_ARRAY after COERCE_REF.
1215
7c606261
PB
1216 * symtab.c (add_param_to_type): Remove (commented-out) function,
1217 since that functionality has been re-written.
1218 * coffread.c: Remove commented-out add_param_to_type support.
1219 * mdebugread.c (parse_symbol): Likewise.
1220 * stabsread.c (define_symbol): Likewise.
1221
21af55c9
JK
1222Sun Feb 12 09:03:47 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
1223
1224 * buildsym.c (start_subfile): Set language for f2c like for cfront.
1225
1226Thu Feb 9 20:20:11 1995 Rob Savoye <rob@darkstar.cygnus.com>
1227
1228 * op50n-rom.c: Add the control registers.
1229
76a457c0
SS
1230Thu Feb 9 15:46:39 1995 Stan Shebs <shebs@andros.cygnus.com>
1231
1232 * Makefile.in (CLIBS): Add $(LIBIBERTY) before, in addition to
1233 after, any host/target/native libraries.
1234 * dcache.c (insque, remque): Remove declarations.
1235 * gdbtypes.h (type_code): Remove trailing comma.
1236
1237 From Peter Schauer:
1238 * xcoffread.c (read_xcoff_symtab) [C_HIDEXT]: Move #ifdef
1239 STATIC_NODEBUG_VARS inside case.
1240
137a07e6
JK
1241Thu Feb 9 07:43:41 1995 Jim Kingdon <kingdon@deneb.cygnus.com>
1242
1243 * config/sparc/tm-sun4sol2.h: Define STATIC_TRANSFORM_NAME.
1244 * partial-stab.h: Call it.
1245 * stabsread.c (define_symbol) [STATIC_TRANSFORM_NAME]: Call
1246 STATIC_TRANSFORM_NAME to get the name and use minimal symbols to
1247 get the address.
1248 * sparc-tdep.c (solaris_static_transform_name): New function.
1249
506af7a7
JL
1250Thu Feb 9 12:09:09 1995 Jeff Law (law@snake.cs.utah.edu)
1251
1252 * somread.c (som_symtab_read): Handle dynamic relocation for both
1253 text and data symbols.
1254 (som_symfile_offsets): If objfile is a shared library, then get
1255 text and data offsets from the shared library structures.
1256 * somsolib.c (som_solib_add): Copy the bfd pointer from the
1257 objfile rather than reopening the file again.
1258 (som_solib_section_offsets): New function.
1259 * somsolib.h (som_solib_section_offsets): Declare.
1260
2d336b1b
JK
1261Wed Feb 8 20:32:18 1995 Jim Kingdon <kingdon@deneb.cygnus.com>
1262
1263 * config/sparc/tm-sun4sol2.h, dbxread.c: Rename
1264 N_SO_ADDRESS_MAYBE_MISSING to SOFUN_ADDRESS_MAYBE_MISSING.
1265 * symtab.h (minimal_symbol) [SOFUN_ADDRESS_MAYBE_MISSING]: Add
1266 filename field.
1267 * elfread.c (record_minimal_symbol_and_info),
1268 minsyms.c, symtab.h (prim_record_minimal_symbol_and_info): Return
1269 newly created symbol.
1270 * elfread.c (elf_symtab_read) [SOFUN_ADDRESS_MAYBE_MISSING]:
1271 Set filename field of minimal symbol.
1272 * symmisc.c (dump_msymbols) [SOFUN_ADDRESS_MAYBE_MISSING]:
1273 Print filename field.
1274 * minsyms.c, symtab.h (lookup_minimal_symbol): New arg sfile.
1275 * symm-tdep.c, somsolib.c, hppa-tdep.c, c-exp.y, f-exp.y,
1276 m2-exp.y, nindy-tdep.c, m3-nat.c, irix5-nat.c, hpread.c,
1277 os9kread.c, breakpoint.c, alpha-tdep.c, valops.c, symtab.c,
1278 printcmd.c, dbxread.c: Change callers to pass NULL for sfile.
1279 * dbxread.c (process_one_symbol) [SOFUN_ADDRESS_MAYBE_MISSING]:
1280 Find address of function from minimal symbols.
1281 * partial-stab.h, case 'f', 'F': Call find_stab_function_addr
1282 instead of getting pst->textlow from the stab.
1283 * minsyms.c (find_stab_function_addr): New function.
1284
151e7820
RS
1285Wed Feb 8 19:19:56 1995 Rob Savoye <rob@darkstar.cygnus.com>
1286
1287 * monitor.c: Fix so all the output shows up in the GUI command
1288 window.
1289
9c4ecee6
SS
1290Mon Feb 6 18:50:59 1995 Stan Shebs <shebs@andros.cygnus.com>
1291
1292 * i386-tdep.c (_initialize_i386_tdep): Put void decl on separate
1293 line, so init.c generation works correctly.
1294start-sanitize-arc
1295 * arc-tdep.c (_initialize_arc_tdep): Ditto.
1296end-sanitize-arc
1297
16b3ea5e
RS
1298Mon Feb 6 14:44:36 1995 Rob Savoye <rob@darkstar.cygnus.com>
1299
04697040
RS
1300 * config/mips/idt.mt: Add support for the lsi33k target.
1301 * config/sparc/sun4sol2.mh: Add support for ser-tcp.
16b3ea5e
RS
1302 * array-rom.c: Finish the rest of the support commands needed by
1303 GDB.
1304 * mips-tdep.c: Add LSI33k register names and processor type.
1305
d039851f 1306start-sanitize-gdbtk
ddc0c38d 1307Sun Feb 5 20:32:44 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
9c4ecee6 1308
d039851f
JK
1309 * gdbtk.c (gdb_disassemble): Deference pointer to function before
1310 calling it (pre-ANSI compilers generally require this).
ddc0c38d 1311
f64a8968 1312end-sanitize-gdbtk
ddc0c38d
SS
1313Sat Feb 4 13:29:52 1995 Stan Shebs <shebs@andros.cygnus.com>
1314
1315 * config/m68k/est.mt (TDEPFILES): Remove m68k-pinsn.o.
1316
6396e0c0
KH
1317Fri Feb 3 16:47:31 1995 Kung Hsu <kung@mexican.cygnus.com>
1318
1319 * ser-go32-para.c (dos_read): fix syntax errors.
1320
a76ef70a
SG
1321Fri Feb 3 11:19:20 1995 Stu Grossman (grossman@cygnus.com)
1322
ddc0c38d
SS
1323 * core.c (dis_asm_read_memory), defs.h, top.c: Get rid of
1324 dis_asm_read_memory_hook. We can now call the disassemblers
1325 directly and have no need for this hook anymore.
1326start-sanitize-gdbtk
1327 * gdbtk.c (gdb_disassemble): Ditto.
1328end-sanitize-gdbtk
1329 * defs.h, printcmd.c: Make print_insn be static.
a76ef70a
SG
1330
1331 * ser-go32.c (dos_comisr): Make this 8 bit clean.
1332 * (dos_open dos_close): Allow multiple opens to the same device.
1333 Use a ref count to prevent unwanted deallocations.
1334 * sparcl-tdep.c: Put #ifdefs around all socket stuff to make GO32
1335 happy.
1336 * (sparclite_ops): Switch to download_stratum.
1337 * target.h (enum strata): Move download_stratum before
1338 process_stratum so that executable targets get pushed on top of
1339 download targets.
1340
1b552670
RS
1341Thu Feb 2 19:02:45 1995 Rob Savoye <rob@darkstar.cygnus.com>
1342
1343 * array-rom.c: Remove the non GDB remote protocol config stuff.
1344
1345 * monitor.c: All reading/writing functions for memory and
1346 registers work.
1347
75a5da5f
KH
1348Thu Feb 2 16:11:04 1995 Kung Hsu <kung@mexican.cygnus.com>
1349
ddc0c38d 1350start-sanitize-arc
75a5da5f
KH
1351 * config/arc/arc.mt: new target makefile for arc processor.
1352 * config/arc/tm-arc.h: new target header for arc processor.
1353 * config/arc/go32.mh: new go32 host makefile for arc processor.
1354 * config/arc/xm-go32.h: new go32 host header for arc processor.
1355 * arc-tdep.c: new target dependent codes for arc processor.
1356 * remote-arc.c: new file for arc-specific protocol through
1357 parallel line.
ddc0c38d 1358end-sanitize-arc
75a5da5f 1359 * ser-go32-para.c: new file for go32 parallel port communication.
75a5da5f 1360
2d144441
SS
1361Thu Feb 2 13:58:40 1995 Stan Shebs <shebs@andros.cygnus.com>
1362
1363 * Makefile.in (VERSION): Bump to 4.13.2.
1364
1365Thu Feb 2 07:27:56 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
1366
1367 Fix compiler warnings:
1368 * remote-e7000.c (printf_e7000debug): Rename to puts_e7000debug
1369 and have the caller do the sprintf. Saves us from varargs hell.
1370 (normal): Define before use.
1371 * remote-e7000.c: Reindent a few things.
1372
8a329002 1373Wed Feb 1 21:16:42 1995 Per Bothner <bothner@kalessin.cygnus.com>
6073b8de 1374
8a329002
PB
1375 * f-typeprint.c (f_type_print_varspec_suffix): Print array index
1376 ranges in reverse order.
1377 * f-valprint.c (f77_create_arrayprint_offset_tbl): Fix calculation.
1378
1379 * eval.c (evaluate_subscript): Don't call value_subscript, since
1380 it adjusts for lower bound and enforces ranges.
1381
1382 * expression.h (exp_code): Remove MULTI_F77_SUBSCRIPT, OP_F77_SUBSTR.
1383 * eval.c, parse.c: Removed uses of removed opcodes.
ead95f8a
PB
1384 * eval.c (evaluate_subexp): Clean up handling of
1385 OP_UNDETERMINED_ARGLIST (no backtracking, more general).
1386
1387 * f-valprint.c (f_val_print): Print TYPE_CODE_STRING using
1388 LA_PRINT_STRING, and not val_print_string (which reads from inferior).
1389
1390 * ch-lang.c (chill_is_varying_struct), ch-lang.h: Remve function
1391 duplicate function made redundant by chill_varying_type.
1392
1393 Re-write of f77 string and complex number support:
1394
1395 * language.h (struct language_defn): New fields string_lower_bound
1396 and string_char_type.
1397 * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn),
1398 language.c (unknown_language_defn, auto_language_defn,
1399 local_language_defn), m2-lang.c (m2_language_defn), f-lang.c
1400 (f_language_defn), ch-lang.c (chill_language_defn): Set new fields.
1401 * gdbtypes.c (create_string_type): Use new string_char_type field.
1402 * valops.c (value_string): Use new string_lower_bound field.
1403
1404 * defs.h (TARGET_COMPLEX_BIT, TARGET_DOUBLE_COMPLEX_BIT): Removed.
1405 * f-lang.c (f_create_fundamental_type, _initialize_f_language),
1406 m2-lang.c (m2_create_fundamental_type),
1407 gdbtypes.c (_initialize_gdbtypes): Set TYPE_TARGET_TYPE of complex
1408 types. Set their TYPE_CODEs to TYPE_CODE_COMPLEX.
1409 * mdebugread.c (mdebug_type_complex, mdebug_type_double_complex):
1410 Removed. Use builtin_type_complex and builtin_type_double_complex.
1411
1412 * gdbtypes.h (enum type_code): Removed TYPE_CODE_LITERAL_STRING
1413 and TYPE_CODE_LITERAL_COMPLEX.
1414 * c-typeprint.c, f-typeprint.c, f-valprint.c, eval.c: Removed uses of
1415 TYPE_CODE_LITERAL_STRING and TYPE_CODE_LITERAL_COMPLEX.
1416 * gdbtypes.c, gdbtypes.h (f77_create_literal_complex_type,
1417 f77_create_literal_string_type): Removed.
1418 * value.h (VALUE_LITERAL_DATA, VALUE_SUBSTRING_MEMADDR,
1419 VALUE_SUBSTRING_MYADDR): Removed.
1420
1421 * expression.h (enum exp_opcode): Rename OP_F77_LITERAL_COMPLEX to
1422 OP_COMPLEX.
1423 * parse.c: Update accordingly.
1424
1425 * f-valprint.c (f77_print_cmplx): Removed.
1426 (f_val_print case TYPE_CODE_COMPLEX): Re-write to use print_floating.
1427
1428 * f-exp.y (STRING_LITERAL): Use OP_STRING instead of OP_ARRAY.
1429 * eval.c (evaluate_subexp): For case OP_ARRAY, don't call
1430 f77_value_literal_string.
1431 * valops.c, value.h (f77_value_literal_string, f77_value_substring,
1432 f77_assign_from_literal_string, f77_assign_from_literal_complex):
1433 Removed.
1434 (value_assign): No longer need to handle literal types.
1435 * valops.c (f77_value_literal_complex), value.h: Re-written and
1436 renamed to value_literal_complex. Last arg is now a (complex) type.
1437 * valops.c (f77_cast_into_complex): Re-written and renamed to
1438 cast_into_complex.
1439 * eval.c (evaluate_subexp): Update accordingly.
1440
6073b8de
PB
1441 * ch-valprint.c (chill_val_print): On TYPE_CODE_STRING, don't
1442 print address for non-'s'-formats.
1443 * ch-typeprint.c, ch-valprint.c: Use chill_varying_type instead
1444 of chill_is_varying_struct.
1445
e3be225e
SS
1446Wed Feb 1 13:27:33 1995 Stan Shebs <shebs@andros.cygnus.com>
1447
1448 gcc -Wall lint.
1449 * alpha-tdep.c (alpha_in_lenient_prologue): Comment out.
1450 (after_prologue): Remove unused local b.
1451 * procfs.c (thread.h): Include.
1452 (pr_flag_table, pr_why_table, faults_table, siginfo_table): Use
1453 nested braces in initializer.
1454 * top.c (initialize_targets, initialize_utils): Declare.
1455 (locate_arg, insert_args): Add parens around tested assignments.
1456 * remote-utils.c (sr_scan_args): Remove decl of strtol.
1457 * remote.c (thread.h): Include.
1458 (remote_wait): Remove unused local p2.
1459 * sparc-tdep.c (fill_gregset, fill_fpregset): Remove decls of
1460 registers array.
1461
1462 defs.h (stdlib.h): Include.
1463 (exit, perror, atoi, qsort, memcpy, memcmp): Don't declare.
1464 (fclose, atof, malloc, realloc, free, strchr, strrchr, strstr,
1465 strtok, strerror): Don't specify parameter types in declaration.
1466
f91a9e05
PB
1467Wed Feb 1 12:23:57 1995 Per Bothner <bothner@kalessin.cygnus.com>
1468
1469 * ch-exp.y (value_string_element, string_primitive_value,
1470 start_element, left_element, right_element, slice_size,
1471 lower_element, upper_element, first_element): Removed.
1472 (value_string_slice, value_array_slice): Replaced by ...
1473 (slice): New non-terminal, with working slice support.
1474 (primitive_value_lparen, rparen): New non-terminals.
1475 (maybe_tuple_elements): New non-terminal, to allow empty tuples.
1476 (idtokentab): Added "up".
1477
1478 * value.h (COERCE_VARYING_ARRAY): New macro.
1479 * valarith.c (value_subscript): Use it.
1480 * valops.c (value_cast): Likewise. Also, do nothing if already
1481 correct type, and allow converting from/to range to/from scalar.
1482
1483 * valops.c, value.h (varying_to_slice, value_slice): New functions.
1484 * eval.c (OP_ARRAY): Add cast for array element.
1485 * expression.h (TERNOP_SLICE, TERNOP_SLICE_COUNT): New exp_opcodes.
1486 * valops.c (chill_varying_type): Moved function frp, here ...
1487 * gdbtypes.c (chill_varying_type), gdbtypes.h: ... to here.
1488 * parse.c (length_of_subexp, prefixify_subexp): Add support
1489 for TERNOP_SLICE, TERNOP_SLICE_COUNT.
1490 * expprint.c (print_subexp, dump_expression): Likewise.
1491 * eval.c (evaluate_subexp): Likewise.
1492
1493 * eval.c (evaluate_subexp case MULTI_SUBSCRIPT): Don't call
1494 value_x_binop on a Chill varying string.
1495
23676ab8
JK
1496Tue Jan 31 13:51:53 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
1497
1498 * config/m68k/monitor.mt,
1499 config/pa/{hppabsd.mt,hppahpux.mt,hppaosf.mt,hppapro.mt}: Put
1500 depfiles in TDEPFILES not REMOTE_O.
1501
ccbae889
SC
1502Tue Jan 31 11:14:44 1995 Steve Chamberlain <sac@splat>
1503
1504 From nigel@algor.co.uk.
1505 * ser-go32.c (dos_close): Don't crash if scb null.
1506 (dos_sendbreak): New function.
1507 (dos_ops): Point to dos_sendbreak.
1508 (dos_info): Calculate COM number correctly.
1509
a81ce07d
JK
1510Tue Jan 31 09:40:11 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
1511
1512 * xcoffread.c (process_xcoff_symbol): Use new variables
1513 func_symbol_type and var_symbol_type as type of functions and
1514 variables which don't have any stabs associated with them.
1515 Reindent most of function.
1516 (_initialize_xcoffread): Initialize *_symbol_type.
1517
1518 * xcoffread.c (read_xcoff_symtab): Reindent most of function.
1519 Put C_HIDEXT symbols in the minimal symbols, rather than ignoring
1520 them (this part commented out as I didn't quite get it to work).
1521 (cs_to_section, find_targ_sec): New functions, to support above code.
1522 * xcoffread.c (RECORD_MINIMAL_SYMBOL): Only skip '.' if it is
1523 actually present.
1524
0e887539 1525Mon Jan 30 17:34:24 1995 Stu Grossman (grossman@cygnus.com)
e3be225e 1526start-sanitize-gdbtk
78daa95e
SG
1527 * gdbtk.tcl (create_file_win): Disable old popup menu for source
1528 window.
e3be225e 1529end-sanitize-gdbtk
0e887539
SG
1530 * sparcl-tdep.c: Add `sparclite' target for doing serial and udp
1531 downloads to SPARClite demo boards.
1532
1533Sun Jan 29 09:43:22 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
1534
1535 * remote.c, remote-pa.c: Remove #if 0'd icache code. It has had
1536 no hope of working as is for a long time (in particular, shebs' 27
1537 Jan 95 change confuses the issue further--target_read_memory and
1538 xfer_core_file do *not* do the same thing in this context).
1539 Revise comment.
1540
de537409
PS
1541Sat Jan 28 13:40:46 1995 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1542
1543 * elfread.c (elf_symtab_read): Do not test BSF_GLOBAL for
1544 procedure linkage table symbols, it is no longer set due to the
1545 Jan 6 BFD change in bfd/elfcode.h.
1546
06c41b39
SS
1547Fri Jan 27 17:08:06 1995 Stan Shebs <shebs@andros.cygnus.com>
1548
f22661ee
SS
1549 * top.c (use_windows): Clarify comments.
1550
0d2d8412
SS
1551 * convex-tdep.c (xfer_core_file): Comment out.
1552 * config/convex/tm-convex.h (XFER_CORE_FILE): Remove.
1553 * remote.c, remote-pa.c (remote_fetch_word): Change xfer_core_file
1554 references to target_read_memory.
1555 * gdbcore.h (xfer_core_file, core_open, core_detach): Remove
1556 declarations.
1557 * corelow.c (core_open, core_detach): Make static.
1558
06c41b39
SS
1559 * arm-tdep.c: Make it compile.
1560 (exec_file_command, xfer_core_file): Comment out.
1561 (arm_print_insn): Remove, now in libopcodes.
1562 (skip_prologue): Comment out most of body.
1563 (arm_frame_find_saved_regs): Move here from tm-arm.h.
1564 (_initialize_arm_tdep): Set tm_print_insn.
1565 * config/arm/tm-arm.h: Remove old refs to first_object_file_end.
1566 (XFER_CORE_FILE): Remove.
1567 (FRAME_FIND_SAVED_REGS): Call arm_frame_find_saved_regs.
1568
0d6a571b
JK
1569Fri Jan 27 08:48:28 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
1570
1571 * Makefile.in (CHILL_LIB): Define as in testsuite/Makefile.in.
1572
bf644f8f
JK
1573Thu Jan 26 18:24:41 1995 Jim Kingdon <kingdon@deneb.cygnus.com>
1574
606ae2ba
JK
1575 * symtab.c (find_pc_line): When subtracting one to get a line
1576 number, make sure not to end up with zero.
1577
bf644f8f
JK
1578 * remote-vx.c: Revert all of Kung's changes of 16 Jan. The
1579 problems with those changes were (a) the file didn't compile, (b)
1580 they changed memset to bzero--memset is correct, (c) they took out
1581 code to deal with boards lacking floating point, (d) who knows
1582 what I didn't discover in a quick read.
1583
c746aa85
SG
1584Thu Jan 26 17:32:54 1995 Stu Grossman (grossman@cygnus.com)
1585
1586 * sparcl-tdep.c: Clean up formatting and indentation.
1587
d2d0e51d
SC
1588Thu Jan 26 10:49:59 1995 Steve Chamberlain <sac@splat>
1589
1590 * remote-hms.c (hms_ops): Change ref of hr_load_image
1591 to gr_load_image.
03fc5a0b
SC
1592 (dcache_flush, dcache_hit, dcache_value, dcache_fetch,
1593 dcache_poke, dcache_init): Deleted.
1594 (hms_open, hms_resume, hms_fetch_word, hms_store_word):
1595 Use dcache routines provided by remote-util.h
d2d0e51d 1596
97544048
MM
1597Thu Jan 26 12:08:31 1995 Michael Meissner <meissner@cygnus.com>
1598
1599 * configure.in: Add support for powerpc-*-eabi.
1600
1601 * powerpc/tm-ppc-eabi.h, powerpc/pcc-eabi.mt: New files for
1602 PowerPC support.
1603
acc4efde
PB
1604Wed Jan 25 18:13:14 1995 Per Bothner <bothner@kalessin.cygnus.com>
1605
1606 * language.h (struct language_defn): New field c_style_arrays.
1607 * language.c (unknown_language_defn, auto_language_defn,
1608 local_language_defn), c-lang.c (c_language_defn, cplus_language_defn,
1609 asm_language_defn): Set c_style_arrays to true.
1610 * m2-lang.c (m2_language_defn), ch-lang.c (chill_language_defn),
1611 f-lang.c (f_language_defn): Set c_style_arrays to false.
1612 * valops.c (value_string): If c_style_array is not set,
1613 allocate string in gdb (not inferior) using allocate_value.
1614
1615 * value.h (COERCE_ARRAY), valops.c (value_addr, value_arg_coerce):
1616 Only call value_coerce_array if current_language->c_style_arrays.
1617 * values.c: Add #include "language.h". (Needed for COERCE_ARRAY.)
1618
1619 * valops.c (chill_varying_type): New predicate.
1620 * valops.c (value_cast): Support assigning a fixed string or array
1621 to a variable string/array structure.
1622
1623 * valarith.c (value_subscripted_rvalue): Extra parameter lowerbound.
1624 Check index>=lowerbound, and then add lowerbound to index here,
1625 instead of in caller. Generalize to arbitrary lval_types.
1626 (value_subscript): Use enhanced value_subscripted_rvalue if
1627 c_style_arrays is false (and index is in range).
1628
8cbf6efc 1629start-sanitize-gdbtk
b66051ec
SG
1630Wed Jan 25 18:23:46 1995 Stu Grossman (grossman@cygnus.com)
1631
1632 * gdbtk.c (gdbtk_init): Prevent segfault when gdbtk.tcl can't be
1633 found.
1634 * gdbtk.tcl: Initialize expr_update_list() to prevent errors when
1635 popping up expression window for the first time.
8cbf6efc 1636end-sanitize-gdbtk
b66051ec 1637
ee3a45e7
PB
1638Wed Jan 25 18:13:14 1995 Per Bothner <bothner@kalessin.cygnus.com>
1639
1640 * eval.c (evaluate_subexp case OP_ARRAY): Fix calls to memset:
1641 TYPE_LENGTH is length in bytes, not bits.
1642
5024a43f
JK
1643Wed Jan 25 08:19:35 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
1644
1645 * infrun.c (proceed): Flush stdout before resuming inferior.
1646 * infcmd.c (step_1), annotate.c (annotate_starting):
1647 Don't bother to flush here.
1648
dc192b86
JL
1649Wed Jan 25 01:11:21 1995 Jeff Law (law@snake.cs.utah.edu)
1650
1651 * hpread.c (hpread_process_one_debug_symbol): Fix lines garbled
1652 by an ill-advised global search and replace.
1653
c81a3fa9
SG
1654Tue Jan 24 12:10:28 1995 Stu Grossman (grossman@cygnus.com)
1655
8e5bc49f
SG
1656 * gdbtk.tcl (create_registers_window): Work around a radiobutton
1657 widget bug to make Options|Natural button work.
1658
c81a3fa9
SG
1659 * gdbtk.c (gdb_disassemble): Fix problem with source+assembly and
1660 g++ caused by out-of-order pc's.
1661 * gdbtk.tcl (files_command): Remove duplicate file names. Also,
1662 add scrollbar.
1663
6bd7d9fa
SG
1664Mon Jan 23 17:21:09 1995 Stu Grossman (grossman@cygnus.com)
1665
1666 * gdbtk.tcl: Take .gdbtkinit if it exists. Makes gdbtk match the
1667 doc!
1668
6d34c236
PB
1669Mon Jan 23 13:11:46 1995 Per Bothner <bothner@kalessin.cygnus.com>
1670
1671 Add support for Chill bitstring literals (e.h. H'FF00').
1672 * ch-exp.y (match_bitstring_literal): Fix for proper endianness.
1673 * expprint.c (print_subexp): Don't call error on OP_BITSTRING,
1674 just print B'<unimlemented>'.
1675 * gdbtypes.c (create_set_type): Fix bug in length calculation.
1676 * valops.c, value.h (value_bitstring): New function.
1677 * eval.c (evaluate_subexp): Implement support for OP_BITSTRING.
1678
1679 * ch-typeprint.c (chill_type_print_base): For TYPE_CODE_FUNC,
1680 check that return type is non-void, and print in proper Chill syntax.
1681
ce51845b
RS
1682Mon Jan 23 12:20:34 1995 Rob Savoye <rob@darkstar.cygnus.com>
1683
1684 * Makefile.in: Remove references to remote-mon.c.
1685 * remote-mon.c: remove. Replaced by rom68k-rom.c.
1686 * rom68k-rom.c: Support for Rom68k monitor.
1687
a9c67591
JK
1688Mon Jan 23 10:50:57 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
1689
1690 * Makefile.in (CHILL_FOR_TARGET): Update -L argument to point to
1691 gcc/ch/runtime not chillrt, since that is where the chill runtime
1692 lives now.
1693
0c699ac1
SC
1694Mon Jan 23 00:06:57 1995 Steve Chamberlain <sac@splat>
1695
1696 * remote-hms.c (hms_load): Delete.
1697 (target_ops): Use hr_load_image.
1698
1699 * remote-e7000.c, remote-z8k.c, remote-nindy.c (target_ops):
1700 Define memory_insert/remove_breakpoint.
1701 * xm-go32.h: Remove redundant SIGs.
1702
1703Thu Jan 19 20:26:58 1995 Steve Chamberlain <sac@splat>
1704
1705 * ser-go32.c: Rewritten by nigel@algor.co.uk.
1706
dcda44a0
PB
1707Fri Jan 20 15:23:55 1995 Per Bothner <bothner@kalessin.cygnus.com>
1708
1709 * expression.h (OP_LABELED): New operator, for Chill
1710 labeled structre tuples.
1711 * ch-exp.y (tuple_element, named_record_element, tuple_elements):
1712 New non-terminals, to handle labeled structure tuples.
1713 (tuple): Re-define using tuple_elements.
1714 * eval.c (evaluate_labeled_field_init): New function, to handle
1715 initialization of structure fields, possibly using OP_LABELED.
1716 (evaluate_subexp): Use it.
1717 * expprint.c (print_subexp case): For OP_ARRAY, use Chill syntax
1718 for Chill. Handled OP_LABELED.
1719 * parse.c (length_of_subexp, prefixify_subexp): Handle OP_LABELED.
1720
1721 * eval.c (evaluate_subexp): Handle Chill Powerset tuples.
1722 * valarith.c (value_bit_index): Just treat bitstring as represented
1723 by an array of bytes. Alignment is handled by compiler.
1724
1725Wed Jan 18 19:00:29 1995 Stan Shebs <shebs@andros.cygnus.com>
1726
1727 * h8300-tdep.c (gdb_print_insn_h8300): Fix typo (&info -> info).
1728 * sh-tdep.c (gdb_print_insn_sh): Ditto.
1729
6bbc99e3
KH
1730Wed Jan 18 11:25:43 1995 Kung Hsu <kung@mexican.cygnus.com>
1731
1732 * remote-os9k.c (rombug_open): Fix a bug in exception handling
1733 command.
1734 * remote-os9k.c (rombug_write_inferior_memory): reset buffer after
1735 write.
1736
eedb3363
JK
1737Tue Jan 17 09:48:38 1995 Jim Kingdon <kingdon@lioth.cygnus.com>
1738
1739 * parse.c (_initialize_parse): Improve wording of names of
1740 msym_*_symbol_type.
1741
daa4c5f8
ILT
1742Tue Jan 17 14:00:58 1995 Ian Lance Taylor <ian@sanguine.cygnus.com>
1743
1744 * config/mips/tm-mips.h (enum mips_fpu_type): New enum.
1745 (mips_fpu): Change type to enum mips_fpu_type.
1746 (FIX_CALL_DUMMY): Handle mips_fpu == MIPS_FPU_SINGLE.
1747 * mips-tdep.c (mips_fpu): Change type to enum mips_fpu_type.
1748 Don't initialize.
1749 (mips_fpu_string): New static variable.
1750 (mips_push_dummy_frame): Handle mips_fpu == MIPS_FPU_SINGLE.
1751 (mips_pop_frame): Likewise.
1752 (mips_extract_return_value): Likewise.
1753 (mips_store_return_value): Likewise.
1754 (mips_set_fpu_command): New static function.
1755 (mips_show_fpu_command): New static function.
1756 (_initialize_mips_tdep): Change handling of set/show mipsfpu.
1757
3fb93d86
JK
1758Tue Jan 17 09:48:38 1995 Jim Kingdon <kingdon@lioth.cygnus.com>
1759
5ad32be2
JK
1760 * a29k-tdep.c (gdb_print_insn_a29k): Fix typo (&info -> info).
1761
3fb93d86
JK
1762 * parse.c (write_exp_msymbol): Use new variables
1763 msym_*_symbol_type as type of msymbol expression.
1764 (_initialize_parse): Initialize them.
1765
18b46e7c
SS
1766Mon Jan 16 18:11:03 1995 Stan Shebs <shebs@andros.cygnus.com>
1767
1768 General cleanup and simplication of disassembler interface.
1769 * a29k-pinsn.c, arm-pinsn.c, convex-pinsn.c, gould-pinsn.c,
1770 hppa-pinsn.c, i386-pinsn.c, i960-pinsn.c, m68k-pinsn.c,
1771 m88k-pinsn.c, mips-pinsn.c, ns32k-pinsn.c, pyr-pinsn.c,
1772 rs6000-pinsn.c, sparc-pinsn.c, tahoe-pinsn.c, vax-pinsn.c: Remove.
1773 * gould-tdep.c, ns32k-tdep.c, tahoe-tdep.c, vax-tdep.c: New files,
1774 had been -pinsn.c files.
1775 * Makefile.in (ALLDEPFILES): Remove removed files.
1776 (a29k-pinsn.o, arm-pinsn.o, convex-pinsn.o, gould-pinsn.o,
1777 hppa-pinsn.o, i386-pinsn.o, i960-pinsn.o, m68k-pinsn.o,
1778 m88k-pinsn.o, mips-pinsn.o, ns32k-pinsn.o, pyr-pinsn.o,
1779 rs6000-pinsn.o, sparc-pinsn.o, tahoe-pinsn.o, vax-pinsn.o):
1780 Remove compile actions.
1781 * arm-tdep.o, gould-tdep.o, ns32k-tdep.o, tahoe-tdep.o,
1782 vax-tdep.o: Add compile actions.
1783 * defs.h (tm_print_insn): New global.
1784 * a29k-tdep.c (gdb_print_insn_a29k): New function.
1785 (_initialize_a29k_tdep): Rename from _initialize_29k,
1786 set tm_print_insn.
1787 * alpha-tdep.c (print_insn): Remove.
1788 (_initialize_alpha_tdep): Set tm_print_insn.
1789 * arm-tdep.c (arm_print_insn): New function, was print_insn
1790 in arm-pinsn.c.
1791 * convex-tdep.c (convex_print_insn): New function, was print_insn
1792 in convex-pinsn.c.
1793 * h8300-tdep.c (print_insn): Remove.
1794 (gdb_print_insn_h8300): New function.
1795 (_initialize_h8300_tdep): New function.
1796 * h8500-tdep.c (print_insn): Remove.
1797 (_initialize_h8500_tdep): New function.
1798 * hppa-tdep.c (_initialize_hppa_tdep): Set tm_print_insn.
1799 * i386-tdep.c (_initialize_i386_tdep): New function.
1800 * i960-tdep.c (mem, next_insn): New functions, were in
1801 i960-pinsn.c.
1802 (_initialize_i960_tdep): Set tm_print_insn.
1803 * m68k-tdep.c (_initialize_m68k_tdep): New function.
1804 * m88k-tdep.c (_initialize_m88k_tdep): New function.
1805 * mips-tdep.c (gdb_print_insn_mips): New function.
1806 (_initialize_mips_tdep): Set tm_print_insn.
1807 * pyr-tdep.c (pyr_print_insn): New function, was print_insn
1808 in pyr-pinsn.c.
1809 * rs6000-tdep.c (_initialize_rs6000_tdep): New function.
1810 * sh-tdep.c (print_insn): Remove.
1811 (gdb_print_insn_sh): New function.
1812 (_initialize_sh_tdep): Set tm_print_insn.
1813 * sparc-tdep.c (_initialize_sparc_tdep): New function.
1814 * w65-tdep.c (print_insn): Remove.
1815 (_initialize_w65_tdep): New function.
1816 * z8k-tdep.c (print_insn): Remove.
1817 (gdb_print_insn_z8k): New function.
1818 (_initialize_z8k_tdep): Set tm_print_insn.
1819 * printcmd.c (print_insn): New function, generic disassembler.
1820 * config/*/*.mt (TDEPFILES): Remove refs to *-pinsn.o.
1821
83d9bb14
KH
1822Mon Jan 16 15:43:29 1995 Kung Hsu <kung@mexican.cygnus.com>
1823
1824 * Makefile.in: add new files remote-vx29k.c, config/a29k/tm-vx29k.h,
1825 and config/a29k/vx29k.mt.
1826 * configure.in: add new configuration a29k-*-vxworks.
1827 * remote-vx29k.c: new file merged from WRS.
1828 * remote-vx.c: merge changes from WRS.
1829 * config/a29k/vx29k.mt: new file for new configuration.
1830 * config/a29k/tm-vx29k.h: new header file for newconfiguration.
1831
16041d53
SC
1832Sun Jan 15 14:36:19 1995 Steve Chamberlain <sac@splat>
1833
1834 * breakpoint.h (disable_breakpoint, enable_breakpoint):
1835 New declarations.
1836 (enum bpdisp): Change name of 'delete' member to 'del'.
1837 (struct bpstat): Changed name to 'bpstats'.
1838 * breakpoint.c (disable_breakpoint, enable_breakpoint,
1839 breakpoint_chain): Made globally visible.
1840 (bpstat_stop_status): Use new name for bpstat.
1841 (break_command_1, watch_command_1, catch_command_1,
1842 breakpoint_auto_delete, denable_delete_breakpoint): Use 'del'
1843 instead of 'delete'.
1844 (set_breakpoint_sal): New function.
1845 * defs.h (registers_changed_hook): New declaration.
1846 * infcmd.c (run_stack_dummy): 'delete' is now 'del'.
1847 * inflow.c (new_tty): Treat WIN32 in same way as __GO32__
1848 * main.c (main): Don't scan options when in WIN32 and exit
1849 without entering main loop.
1850 * m2-exp.y (m2_elx): Member 'class' is now 'aclass'.
1851 * symtab.h (struct symbol, struct partial_symbol): Changed name of
1852 member 'class' to 'aclass'.
1853 (SYMBOL_CLASS, PSYMBOL_CLASS): Reflect change.
1854 * top.c (registers_changed_hook): New definition.
1855 * utils.c (quit, notice_quit, initialize_utils): Treate WIN32
1856 in same way as __GO32__.
1857 * value.h (c_typedef_print): Rename 'new' argument.
1858
be21628d
SC
1859 * w65-tdep.c, config/tm-w65.h, config/w65.mt: New files.
1860 * configure.in: Suppprt for w65,
1861
1862
22b1c54a
JK
1863Sat Jan 14 11:18:11 1995 Jim Kingdon <kingdon@lioth.cygnus.com>
1864
8248d21b
JK
1865 * infcmd.c (signal_command): For "signal 0", pass (CORE_ADDR)-1,
1866 not stop_pc, to proceed.
1867
22b1c54a
JK
1868 * eval.c (evaluate_subexp): Clear expect_type except for C++ and CHILL.
1869
b5088d10
JK
1870Fri Jan 13 17:52:57 1995 Jim Kingdon <kingdon@lioth.cygnus.com>
1871
1872 * infcmd.c (signal_command): Accept "signal 0"; the change to not
1873 accept it was accidental. "handle 0" and "info signal 0" remain
1874 illegal, though.
1875
218d43e5
SS
1876Fri Jan 13 15:19:01 1995 Stan Shebs <shebs@andros.cygnus.com>
1877
1878 * Makefile.in (all): Don't make libgdb-files.
1879 (libgdb): New action, makes libgdb-files.
1880
0f8631fb
PB
1881Thu Jan 12 21:23:25 1995 Per Bothner <bothner@kalessin.cygnus.com>
1882
1883 * stabsread.c (read_enum_type): When pending enum symbols are
1884 put into the enum type, they must be inserted in "backwards
1885 order, in case we've overflowed a struct pending buffer.
1886
218d43e5 1887start-sanitize-gdbtk
4604b34c
SG
1888Thu Jan 12 15:02:40 1995 Stu Grossman (grossman@cygnus.com)
1889
218d43e5 1890 * gdbtk.c, gdbtk.tcl: Update/add copyright.
4604b34c
SG
1891 * gdbtk.tcl (build_framework): Several fixes for filespec widget,
1892 including dismiss button, and better error handling.
1893 * (create_command_win): Bind button 2 to retrieve selection.
218d43e5 1894end-sanitize-gdbtk
4604b34c 1895
2592eef8
PS
1896Thu Jan 12 09:33:24 1995 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1897
1898 * README: Add note about SPARCworks cc release 3.0 and higher.
1899
1900 Add procfs support for Alpha OSF/1-2.x.
1901 * config/alpha/nm-osf.h: Renamed from nm-alpha.h, generic
1902 OSF/1 native support.
1903 * config/alpha/alpha-osf1.mh (NAT_FILE): Changed accordingly.
1904 (MUNCH_DEFINE): Removed.
1905 * config/alpha/alpha-osf2.mh, config/alpha/nm-osf2.h: New files
1906 for procfs support.
1907 * configure.in (alpha-dec-osf*): Use alpha-osf2.mh for OSF/1
1908 release 2.x and higher, else alpha-osf1.mh, as the procfs support
1909 in release 1.x is incomplete.
1910 * Makefile.in (ALLCONFIG): Add config/alpha/alpha-osf2.mh.
1911 * alpha-nat.c (supply_gregset, fill_gregset, supply_fpgregset,
1912 fill_fpgregset): New routines for procfs support.
1913 * inftarg.c (_initialize_inftarg): Don't add ptrace support
1914 if we have an optional procfs and /proc is accessible.
1915 * procfs.c: Include sys/fault.h and sys/syscall.h before
1916 including sys/procfs.h.
1917 (unconditionally_kill_inferior): If PROCFS_NEED_PIOCSSIG_FOR_KILL
1918 is defined, additionally perform a PIOCSSIG to really terminate
1919 the inferior.
1920 (create_procinfo): Always return a result.
1921 (create_procinfo, do_attach): Don't trace T_IFAULT faults if
1922 PROCFS_DONT_TRACE_IFAULT is defined.
1923 (procfs_init_inferior): Use START_INFERIOR_TRAPS_EXPECTED as
1924 argument to startup_inferior if it is defined.
1925 (proc_set_exec_trap): If PIOCSSPCACT is defined, use it instead
1926 of tracing exits from exec system calls. Needed for the user level
1927 loader under Alpha OSF/1.
1928 (do_detach): Clear any pending signal if we want to detach from
1929 a process without a signal.
1930 (set_proc_siginfo): If PROCFS_DONT_PIOCSSIG_CURSIG is defined,
1931 don't issue a PIOCSSIG if pr_cursig already contains the signal we
1932 intend to set.
1933 (info_proc_signals): If PROCFS_SIGPEND_OFFSET is defined, the
1934 pending signals are numbered from 1 instead of 0.
1935 (info_proc_mappings): Increase size of output format for addresses
1936 if BFD_HOST_64_BIT is defined.
1937 (procfs_stop): Renamed from child_stop.
1938 (_initialize_procfs): Don't add procfs support if we have an
1939 optional procfs and /proc is not accessible.
1940
218d43e5 1941start-sanitize-gdbtk
724498fd
SG
1942Wed Jan 11 17:06:55 1995 Stu Grossman (grossman@cygnus.com)
1943
280c564c 1944 * gdbtk.tcl: Add button to control mixed source disassembly.
218d43e5 1945 Use text widgets in expr window. The give me more control over
280c564c 1946 layout.
218d43e5
SS
1947 Add auto-updating of exprs in expression window.
1948 Handle expressions out of scope a bit better.
1949 Make selected window pop up to the top when invoked via the
280c564c 1950 menubar.
218d43e5 1951 Make copyright message have raised relief.
280c564c 1952
724498fd
SG
1953 * gdbtk.c (gdbtk_init): Improve handling for errors in gdbtk.tcl
1954 during startup.
218d43e5 1955end-sanitize-gdbtk
724498fd 1956
b04a78d4
RS
1957Wed Jan 11 17:53:26 1995 Rob Savoye <rob@darkstar.cygnus.com>
1958
1959 * array-rom.c: Add support for most commands.
1960
1961 * monitor.c: Add GDB remote protocol for the hybrid environment on
1962 the Array board.
1963
b47ae8fb
JL
1964Wed Jan 11 00:44:01 1995 Jeff Law (law@snake.cs.utah.edu)
1965
1966 * command.c (show_user_1): Use print_command_line to show a user
1967 defined command (including control structures).
1968
1969 * top.c (init_main): Change documentation for user defined
1970 commands to indicate they may accept up to ten arguments.
1971
1d9489c1
JK
1972Tue Jan 10 16:22:41 1995 Jim Kingdon <kingdon@lioth.cygnus.com>
1973
1974 * mips-tdep.c (mips_skip_prologue): Accept or as well as addu for
1975 `move $s8, $sp' instruction.
1976
3b55fbe3
JK
1977Sun Jan 8 12:45:34 1995 Jim Kingdon <kingdon@deneb.cygnus.com>
1978
1979 * target.c, target.h (target_signal_from_command): New function.
1980 * infrun.c (handle_command, signals_info), infcmd.c
1981 (signal_command): Use it.
1982 * infrun.c, infcmd.c: Update docstrings for these commands.
1983
1984 * target.h (enum target_signal), target.c (signals), target.c
1985 (target_signal_from_host, target_signal_to_host): Add
1986 TARGET_SIGNAL_REALTIME_* and TARGET_SIGNAL_PRIO for lynx.
1987 * config/tm-lynx.h: Define signal numbers for realtime events.
1988
02b40a19
PS
1989Sat Jan 7 07:23:53 1995 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1990
1991 * dbxread.c (process_one_symbol): Handle N_FUN symbols
1992 for Sun acc 3.0 under SunOS4.
1993
1994 Changes to improve handling of runtime common symbols
1995 under SunOS4.
1996 * minsyms.c (get_symbol_leading_char): New routine to determine
1997 the leading symbol character for an objfile.
1998 (prim_record_minimal_symbol_and_info, install_minimal_symbols):
1999 Use it.
2000 * objfiles.h (rt_common_objfile): New global, points to objfile
2001 containing the runtime common minimal symbols.
2002 * objfiles.c (free_objfile): Mark rt_common_objfile as
2003 unallocated before freeing it.
2004 * solib.c (allocate_rt_common_objfile): New routine to allocate
2005 an objfile for the runtime common minimal symbols.
2006 (solib_add_common_symbols): Allocate an objfile for the runtime
2007 common symbols if necessary and put common symbols into it.
2008 Clean up code and comments.
2009 (solib_add, special_symbol_handling): Cleanup comments regarding
2010 runtime common symbols.
2011 * stabsread.c (scan_file_globals_1): New routine, contains
2012 old scan_file_globals code. Checks if there are any unresolved
2013 global symbols before starting the expensive minimal symbol table
2014 search.
2015 (scan_file_globals): Now calls scan_file_globals_1 for the passed
2016 objfile and eventually for the runtime common objfile. Complains
2017 about any unresolved global symbols and removes them from the
2018 global symbol chain to avoid dangling pointers into the symbol
2019 table if the symbol table is reread.
2020
09722039
SG
2021Thu Jan 5 17:38:29 1995 Stu Grossman (grossman@cygnus.com)
2022
4a4f9e3b 2023 * Makefile.in (install_only uninstall): Indent for clarity.
09722039
SG
2024
2025 * core.c (dis_asm_read_memory): Add call to
2026 dis_asm_read_memory_hook to provide alternate way for disassembler
2027 to read memory.
2028
2029 * defs.h: Protect from multiple inclusion. Add decl for
2030 dis_asm_read_memory_hook.
2031
4a4f9e3b
SS
2032 * top.c: Make window startup be the default.
2033 * Add dis_asm_read_memory_hook.
2034
2035start-sanitize-gdbtk
09722039
SG
2036 * gdbtk.c (finish_saving_output): Don't do anything if not saving
2037 output.
2038 * (breakpoint_notify): Don't send null filename to tcl.
2039 * (gdb_eval): New tcl command to eval an expression.
2040 * (gdb_disassemble): New tcl command to do disassembly. This
2041 allows tcl code to choose between exec file and target memeory,
2042 and can also do mixed source and assembly.
2043 * (gdbtk_init): Move reading of gdbtk.tcl to the end to make sure
2044 that more of the environment is set up. Also, create link between
2045 gdb and tcl vars disassemble{-_}from{-_}exec.
2046
2047 * gdbtk.tcl: New expression window support.
2048 * Make assembly window be 80 columns wide.
2049 * Use new disassembly method. Add menu items to select
2050 disassembly from exec file or target.
2051 * Change View menubar item to Options.
2052
2053 * Get rid of Stack, Breakpoints, Signals, and Variables Windows,
2054 since they don't exist yet.
2055
2056 * Pop up a copyright window on startup.
4a4f9e3b 2057end-sanitize-gdbtk
09722039 2058
117a817d
JL
2059Thu Jan 5 01:16:40 1995 Jeff Law (law@snake.cs.utah.edu)
2060
2061 * stabsread.c (define_symbol): Handle `a' symbol type used for
2062 reference parameter passed in a register.
2063
c4a5c37c
SS
2064start-sanitize-gdbtk
2065Wed Jan 4 19:49:10 1995 Stan Shebs <shebs@andros.cygnus.com>
2066
2067 * gdbtk.tcl (build_framework): Add standard commands menu, more
2068 windows to standard windows menu.
2069 (not_implemented_yet): Clarify message.
2070end-sanitize-gdbtk
2071
034022bf
KH
2072Wed Jan 4 12:27:29 1995 Kung Hsu <kung@mexican.cygnus.com>
2073
c023fbf4
KH
2074 * defs.h: move include tm.h up, so that the type LONGEST can
2075 also based on the target requirement to determine. In this case
2076 target mips64.
2077
034022bf
KH
2078 * remote-os9k.c (rombug_open): catch exception e in rombug.
2079 * remote-os9k.c (rombug_wait): print message before register display
2080 from rombug.
2081
fd2ae9ec
JK
2082Wed Jan 4 09:18:27 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
2083
2084 * top.c (locate_arg): Call strchr not index.
2085
3bcf4181
PB
2086Tue Jan 3 16:52:03 1995 Per Bothner <bothner@kalessin.cygnus.com>
2087
2d67c7e9
PB
2088 * ch-exp.y (literal): Recognize NULL.
2089 (tuple): Parse simple unlabelled tuples.
2090 * eval.c (evaluate_subexp case OP_ARRAY): Use expect_type to
2091 evaluate brace-initializer-expressions depending on context.
2092 (evaluate_subexp case UNOP_CAST): Pass the target type as
2093 expected type when evaluating the expression.
2094
3bcf4181
PB
2095 * ch-typeprint.c (chill_type_print_base): Get names of PTR and
2096 BOOL from TYPE_NAME.
2097 * ch-valprint.c (chill_print_type_scalar): New function, to handle
2098 TYPE_CODE_RANGE better than print_type_scalar does.
2099 (chill_val_print_array_elements): Use above new function.
2100
6dd6578b
SS
2101Mon Jan 2 15:02:51 1995 Stan Shebs <shebs@andros.cygnus.com>
2102
2103 * remote-udi.c (udi_load): Tell symbol_file_add that the
2104 program being loaded is the main program.
c4ea046a 2105
986c54ca 2106For older changes see ChangeLog-94
bd5635a1
RP
2107\f
2108Local Variables:
2109mode: indented-text
2110left-margin: 8
2111fill-column: 74
2112version-control: never
2113End:
This page took 0.605187 seconds and 4 git commands to generate.