From: Eberhard Mattes <mattes@azu.informatik.uni-stuttgart.de>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
d538f9cf
FF
1Wed Aug 21 16:31:27 1996 Fred Fish <fnf@rtl.cygnus.com>
2
3 * valprint.c (print_longest): Test for CC_HAS_LONG_LONG as well as
4 PRINTF_HAS_LONG_LONG.
5 * expprint.c (dump_expression): Ditto.
6 * configure.in: Fix check for long long support in compiler to
7 use a function body, not a nested function.
8 * configure: Rebuild with autoconf.
9
fef1696f
ILT
10Tue Aug 20 17:59:42 1996 Ian Lance Taylor <ian@cygnus.com>
11
12 * aclocal.m4: Include ../bfd/aclocal.m4.
13 * configure.in: Add stdlib.h to AC_CHECK_HEADERS. Call
14 BFD_NEED_DECLARATION on malloc, realloc, and free.
15 * acconfig.h: Add NEED_DECLARATION_MALLOC,
16 NEED_DECLARATION_REALLOC, and NEED_DECLARATION_FREE.
17 * configure, config.in: Rebuild.
18 * defs.h: Include <stddef.h> and <stdlib.h> based on HAVE_*_H
19 rather than __STDC__. Only declare malloc, realloc, and free if
20 NEED_DECLARATION_* is defined.
21
dbc4eefc
FF
22Tue Aug 20 15:37:03 1996 Fred Fish <fnf@taarna.cygnus.com>
23
24 * solib.c (_initialize_solib): Add missing '\' chars at ends of
25 strings that continue on next line.
26 (enable_break): Replace "return 0" with setting success to zero
27 and letting normal return handle the return.
28
29Sat Aug 17 14:16:23 1996 Fred Fish <fnf@cygnus.com>
30
31 * mips-tdep.c (mips_push_arguments): Make sure sp and struct_addr
32 are properly aligned.
33
2f163bc3
SS
34Fri Aug 16 17:54:26 1996 Stan Shebs <shebs@andros.cygnus.com>
35
36 * rs6000-tdep.c (rs6000_fix_call_dummy): Add full set of arguments.
37 * config/rs6000/tm-rs6000.h (FIX_CALL_DUMMY): Pass all arguments
38 to function, declare function correctly.
39
68fc375e
DP
40Fri Aug 16 17:24:35 1996 Dawn Perchik <dawn@critters.cygnus.com>
41
42 * symtab.h: changed namespace to _namespace for compiling under
43 MFC v4.0.
44
b208ff3b
SS
45Fri Aug 16 13:52:21 1996 Stan Shebs <shebs@andros.cygnus.com>
46
47 * mpw-make.sed: Update for various recent changes, add some
48 comments.
49start-sanitize-gm
50 * mpw-config.in: Fix name of Magic Cap-specific file.
51end-sanitize-gm
52
b597998a
MM
53Fri Aug 16 15:47:36 1996 Michael Meissner <meissner@tiktok.cygnus.com>
54
55 * config/rs6000/tm-rs6000.h (FIX_CALL_DUMMY): Cast args to be an
56 integer for type correctness.
57
4caa1158
JSC
58Fri Aug 16 15:15:37 1996 James G. Smith <jsmith@cygnus.co.uk>
59
60 * config/mips/{vr4300.mt, vr4300el.mt} (SIM): Add -lm when
61 simulator is included.
62
eb17f9d5
FF
63Thu Aug 15 13:44:13 1996 Fred Fish <fnf@cygnus.com>
64
65 * findvar.c (write_register_pid): Only needed when TARGET_WRITE_PC
66 is not defined.
67 (read_register_pid): Only needed when TARGET_READ_PC is not
68 defined.
69 * hppa-tdep.c (frame_saved_pc): Remove prototype.
70 * infptrace.c (udot_info): Prototype when CHILD_XFER_MEMORY is
71 not defined.
72 * config/xm-aix4.h (aix_resizewindow): Convert old style decl
73 to prototype.
74 * xcoffsolib.c (command.h): Include for needed prototypes.
75
76Wed Aug 14 17:54:19 1996 Stu Grossman (grossman@critters.cygnus.com)
77
78 * config/i386/cygwin32.mh: Set NAT_FILE to nm-empty.h to make
79 native work.
80
81a80f32
FF
81Wed Aug 14 02:03:42 1996 Fred Fish <fnf@rtl.cygnus.com>
82
e5718bee
FF
83 From Blair MacIntyre <bm@cs.columbia.edu>:
84 * hppa-tdep.c (hppa_fix_call_dummy): Use MSYMBOL_TYPE rather
85 than SYMBOL_TYPE on msymbols.
86 * somsolib.c (som_solib_create_inferior_hook): Ditto.
87
81a80f32
FF
88 * Makefile.in (init.c): Generate with prototypes.
89
90 * config/pa/tm-hppa.h (frame_saved_pc): Add prototype.
91 * config/rs6000/xm-rs6000.h (aix_resizewindow): Ditto.
92 * config/rs6000/tm-rs6000.h (frame_initial_stack_address): Ditto.
93 (pc_load_segment_name): Ditto.
94 (pop_frame): Ditto.
95 (extract_return_value): Ditto.
96 (is_magic_function_pointer): Ditto.
97 (push_dummy_frame): Ditto.
98 (fix_call_dummy): Ditto.
99 (push_arguments): Ditto.
100 (skip_trampoline_code): Ditto.
101 (aix_process_linenos): Ditto.
102
103 * config/m68k/tm-cisco.h (get_longjmp_target): Add prototype.
104 * config/m68k/tm-es1800.h: Ditto.
105 * config/m68k/tm-vx68.h: Ditto.
106 * config/m68k/tm-sun3.h: Ditto.
107 * config/m68k/tm-m68kv4.h: Ditto.
108
857dcde8
FF
109Tue Aug 13 23:04:36 1996 Fred Fish <fnf@cygnus.com>
110
111 * config/mips/nm-mips.h (get_longjmp_target): Add prototype.
112 * config/mips/nm-irix3.h (get_longjmp_target): Add prototype.
113 * remote-mips.c (mips_read_processor_type): Remove prototype.
114 * mips-tdep.c (gdb_print_insn_mips): Add prototype and make static.
115 * irix5-nat.c (fetch_core_registers): Add prototype.
116
c1d58bcd
FF
117Mon Aug 12 21:23:44 1996 Fred Fish <fnf@cygnus.com>
118
119 * remote-pa.c (boot_board): Add dummy params to make type compatible
120 for passing to add_com.
121 * scm-exp.c (scm_lreadr): Ensure svalue is not used uninitialized.
122 * buildsym.c (compare_line_numbers): Change function to match
123 prototype and also what qsort expects.
124
cd21cbc4
MA
125Mon Aug 12 19:19:00 1996 Mark Alexander <marka@cygnus.com>
126
127 * remote.c: Make remote_write_size public.
128 * sh-tdep.c (_initialize_sh_tdep): Set remote_write_size to 300
129 to prevent packet errors with some versions of CMON.
130
8501c742
SG
131Mon Aug 12 16:20:58 1996 Stu Grossman (grossman@critters.cygnus.com)
132
133 * defs.h: Define CONST_PTR as blank if compiling with Microsoft
134 C, else it's `const'.
135 * c-lang.c c-lang.h ch-lang.c f-lang.c language.c m2-lang.c
136 scm-lang.c: Microsoft C can't hack const pointers. Use CONST_PTR
137 macro instead.
138 * configure configure.in defs.h: Use AC_C_CONST to figure out if
139 the compiler supports const. Gets rid of some cruft in defs.h.
140 * dwarf2read.c: <string.h> -> "gdb_string.h"
141 * remote-sim.c: Add prototypes. Fix call to gdbsim_kill.
142 * sparcl-tdep.c (download): Add prototypes to write_routine and
143 start_routine args.
144
145 * mswin/gdbwin.c: Don't include both varargs.h AND stdarg.h. Get
146 rid of varargs.h Include string.h.
147 * (gdbwin_update gdbwin_fputs regs_changed_f bpt_changed_f
148 update): Fix prototypes, fix calls.
149 * (update): Return value for catch_errors.
150 * (run_execute_command togdb_command_from_tty togdb_command):
151 Cleanup catching of errors from calls to execute_command. Also,
152 dup command string to avoid modifying const strings.
153 * (togdb_breakinfo_i_init togdb_breakinfo_i_next): Use 0 instead
154 of NULL when see if b->address isn't set.
155 * (bi_disable_bpt bi_enable_bpt bi_delete_all
156 bi_delete_breakpoint): Add arg to calls to update.
157 * (gui_command): Add prototype.
158 * (mswin_query): Fix prototype.
159 * (_initialize_gdbwin): Dup string to avoid modifying const.
160 * (info_path togdb_get_info_path): Remove const from decls cuz
161 this can't be const (it points at malloc'ed memory).
162 * (togdb_searchpath): Remove const from path. Dup string to
163 avoid modifying const strings.
164 * rindex -> strrchr.
165 * (gdbwin_list_symbols): Regexp param is const.
166 * Fix lots of refs to psymtabs to deref correct pointers.
167 * (togdb_set_breakpoint_sal): Call set_breakpoint_sal with sal,
168 not &sal.
169 * mswin/gdbwin.h (togdb_searchpath togdb_get_info_path
170 toget_set_info_path): Fix prototypes to match reality.
171 * mswin/gui.cpp: Define _beginthreadex and _endthreadex routines
172 with proper prototypes.
173 * mswin/iface.cpp (gdbwin_fputs): Define with correct number of args.
174 * mswin/ser-win32s.c: Fix defs of min and max.
175 * mswin/serdll32.c (OpenComm16): Make cbInQueue and cbOutQueue be
176 USHORT.
177 * (WriteComm16): Change lpBug from LPVOID to LPCSTR.
178 * mswin/serdll32.h: Fix prototypes for OpenComm16 and WriteComm16.
179
82c6139b
SG
180Sun Aug 11 20:54:16 1996 Stu Grossman (grossman@critters.cygnus.com)
181
182 * main.c (main): Make sure command loop is used with cygwin32.
183 * terminal.h: Allow cygwin32 to use termios.h.
184
611f046f
TT
185start-sanitize-gdbtk
186Fri Aug 9 12:32:53 1996 Tom Tromey <tromey@creche.cygnus.com>
187
188 * Makefile.in (LIB_INSTALL_DIR): New macro.
189 (TCL): Include @TCL_LD_SEARCH_FLAGS@.
190
191end-sanitize-gdbtk
c149559f
JL
192Fri Aug 9 12:42:49 1996 Jeffrey A Law (law@cygnus.com)
193
194 * somread.c (som_symtab_read): Handle secondary definition
195 symbols (aka weak symbols).
bb1847ca
JL
196
197 * config/tm-hppa.h (EXTRACT_RETURN_VALUE): Fix thinko in
198 last change.
199
e618c70e
SG
200Thu Aug 8 10:12:36 1996 Stu Grossman (grossman@critters.cygnus.com)
201
8d42089e
SG
202 * symfile.c (symfile_bfd_open): Change ifdef from __WIN32__ to
203 _WIN32.
204
e618c70e
SG
205 * somread.c: Rearrange order of includes to fix warnings under
206 hpux-10.10. Also don't include sys/file.h.
207
500992b7
SG
208Wed Aug 7 21:45:52 1996 Stu Grossman (grossman@critters.cygnus.com)
209
210 * dbxread.c: Don't include param.h or sys/file.h.
211 * (dbx_symfile_read): Determine symfile_relocatable from bfd
212 flags instead of file extension. Also clean up a little bit.
213
9e77e83d
SG
214Wed Aug 7 17:18:37 1996 Stu Grossman (grossman@critters.cygnus.com)
215
216 * dwarf2read.c dwarfread.c exec.c infcmd.c infrun.c main.c
217 mdebugread.c os9kread.c source.c top.c utils.c: Don't
218 include param.h or sys/file.h (or unistd.h in some cases).
219 * defs.h exec.c inflow.c remote-array.c remote-e7000.c
220 sparcl-tdep.c terminal.h utils.c: Replace all occurances of
221 __WIN32__, WINGDB, WIN32, etc... with _WIN32.
222 * main.c: Remove #ifndef WINGDB around option processing. Fix
223 bug with passing argc==0 and argv==NULL to getopt.
224 * (main) Remove calls to access() before source_command. Let
225 soure_command handle access errors.
226 * maint.c (maintenance_dump_me): #ifdef out for _WIN32.
227 * symtab.c (operator_chars): Make this global for wingdb.
228 * top.c (disconnect): #ifdef out for _WIN32.
229 * (source_command): If got an error and from_tty, then call print
230 error, else just return quietly.
231 * utils.c (fatal_dump_core): Can't kill ourselves under windows.
232 Just exit.
233 * (pollquit notice_quit): #ifdef out stuff that doesn't exist
234 under windows.
235
0d43c8e7
JL
236Wed Aug 7 09:59:19 1996 Jeffrey A Law (law@cygnus.com)
237
8d038451
JL
238 * config/pa/tm-hppa.h (EXTRACT_RETURN_VALUE): Tweak for
239 structures > 4 bytes in size.
240
0d43c8e7
JL
241 * valops.c (call_function_by_hand): Handle aligning stacks that
242 grow up correctly.
243 * config/pa/tm-hppa.h (USE_STRUCT_CONVENTION): Define.
244 (STACK_ALIGN): Define.
245 * hppa-tdep.c (hppa_alignof): Don't demand a minumim two byte
246 alignment on structs/unions.
247
769d0c90
FF
248Sun Aug 4 16:22:42 1996 Fred Fish <fnf@cygnus.com>
249
250 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Define to "int *",
251 which is the documented type under at least AIX 3 and AIX 4.
252
6b24a9f6
FF
253Sat Aug 3 04:02:46 1996 Fred Fish <fnf@cygnus.com>
254
255 * config/alpha/alpha-osf3.mh (XM_FILE): Change from xm-alpha.h to
256 xm-alphaosf.h.
38eee4a9
FF
257 (MMALLOC_CFLAGS): Define NO_MMCHECK to not install consistency
258 checks.
6b24a9f6 259
047465fd
TT
260start-sanitize-gdbtk
261Thu Aug 1 20:35:01 1996 Tom Tromey <tromey@creche.cygnus.com>
262
263 * gdbtk.c (mainWindow): Deleted.
264 (cleanup_init): Don't destroy main window.
265 (gdbtk_init): Main window now created by Tk_Init.
266
267 * configure.in: Most X checks now handled automatically by Tk.
268 Use new macros to find Tcl/Tk.
269 * aclocal.m4: New version for new Tcl/Tk; from Don Libes.
270 * config.in, configure: Regenerated.
271
272 * Makefile.in (TCL, TCL_CFLAGS, TK, TK_CFLAGS, X11_CFLAGS,
273 X11_LDFLAGS, X11_LIBS): Changed for new Tcl and Tk.
274
275end-sanitize-gdbtk
8efb8079
FF
276Thu Aug 1 10:11:34 1996 Fred Fish <fnf@cygnus.com>
277
278 * config/mips/tm-mips.h (TM_MIPS_H): Enclose file contents in
279 this, define when contents are included.
280 (mips_read_processor_type): Add prototype.
281 * config/mips/xm-mips.h: Remove strdup decl, now in gdb_string.h
282 * mdebugread.c (ecoff_relocate_efi): Add prototype.
283 (fixup_sigtramp): Only needed when TM_MIPS_H is defined.
284
e822a3db
JM
285start-sanitize-gdbtk
286Thu Aug 1 16:12:05 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
287
288 * Makefile.in (gdbtk.tcl): put in $(datadir), not $(libdir).
289
290end-sanitize-gdbtk
a95d92fa
FF
291Wed Jul 31 20:21:24 1996 Fred Fish <fnf@cygnus.com>
292
293 * rs6000-nat.c (add_vmap): Return 0 to caller rather than random value.
294 (vmap_ldinfo): Ensure got_exec_file is not used uninitialized.
295 (fetch_core_registers): Add prototype.
296 (vmap_symtab): Ditto.
297 (objfile_symbol_add): Ditto.
298 (add_vmap): Ditto.
299 (vmap_ldinfo): Ditto.
300 (vmap_exec): Ditto.
301
cb74cc24
SS
302Tue Jul 30 17:57:46 1996 Stan Shebs <shebs@andros.cygnus.com>
303
304 * stabsread.c (get_substring): Declare second arg as int.
305
306 * remote-es.c: Include gdb_string.h after defs.h.
307
80f600a4
FF
308Mon Jul 29 21:13:20 1996 Fred Fish <fnf@cygnus.com>
309
368f1e77
FF
310 * rs6000-tdep.c (push_arguments): Remove unused variable "pc".
311 (branch_dest): Remove unused variable "offset".
312 (pop_dummy_frame): Add prototype and make static.
313 (push_arguments): Guard against using len uninitialized.
314 (push_arguments): Guard against using arg uninitialized.
315 (frame_saved_pc): Remove unused variable "frameless".
316 (free_loadinfo): Ifdef out unused function.
317
6e0949ae
FF
318 * xcoffread.c (compare_lte): Change prototype and function to
319 be correct type for passing to qsort.
320 (add_stab_to_list): Ifdef out unused function and prototype.
321 (compare_lte): Add prototype
322 (arrange_linetable): Ditto.
323 (record_include_begin): Ditto.
324 (record_include_end): Ditto.
325 (process_linenos): Ditto.
326 (xcoff_next_symbol_text): Ditto.
327 (scan_xcoff_symtab): Ditto.
328 (xcoff_initial_scan): Ditto.
329
80e0e92a
FF
330 * mips-tdep.c (mips_read_processor_type): Add parens around
331 bitwise-and operands in comparison; previous expression always
332 evaluated to 0 because of equality comparison of two constants.
333
58b4fad2
FF
334 * rs6000-tdep.c (skip_prologue): Add missing parens around
335 operands of logical-or so that first operand does not bind
336 to previous logical-and.
337
80f600a4
FF
338 * configure.in: Expand "long long" test to include code that triggers
339 known problem on HPUX with native compiler.
340 (configure): Regenerated.
341
6f359895
JL
342Mon Jul 29 18:12:27 1996 Jeffrey A Law (law@cygnus.com)
343
344 * somsolib.c (som_solib_create_inferior_hook): Don't
345 warn if __d_pid can't be found.
346
f2bf454e
FF
347Sun Jul 28 10:46:39 1996 Fred Fish <fnf@cygnus.com>
348
349 * config/mips/tm-mips.h (struct frame_info): Forward decl.
350 (struct type): Ditto.
351 (struct value): Ditto.
352
353 * config/mips/tm-mips.h (sigtramp_address): Move extern decl
354 from mips-tdep.c to here.
355 (sigtramp_end): Ditto.
356 (fixup_sigtramp): Ditto.
357
358 * config/mips/tm-mips.h (init_extra_frame_info): Add prototype.
359 (mips_frame_chain): Ditto.
360 (mips_step_skips_delay): Ditto.
361 (mips_frame_saved_pc): Ditto.
362 (mips_find_saved_regs): Ditto.
363 (mips_frame_num_args): Ditto.
364 (mips_pop_frame): Ditto.
365 (mips_extract_return_value): Ditto.
366 (mips_store_return_value): Ditto.
367 (mips_push_dummy_frame): Ditto.
368 (mips_push_arguments): Ditto.
369 (mips_do_registers_info): Ditto.
370 (ecoff_relocate_efi): Ditto.
371 (ecoff_relocate_efi): Ditto.
372 * irix4-nat.c (fetch_core_registers): Add prototype.
373 * mips-tdep.c (read_next_frame_reg): Add prototype
374 (heuristic_proc_start): Ditto.
375 (heuristic_proc_desc): Ditto.
376 (mips_print_register): Ditto.
377 * config/mips/nm-irix5.h (procfs_set_watchpoint): Add prototype.
378 (procfs_stopped_by_watchpoint): Ditto.
379 * config/mips/nm-irix4.h (procfs_set_watchpoint): Add prototype.
380 (procfs_stopped_by_watchpoint): Ditto.
381 * config/alpha/tm-alpha.h (ecoff_relocate_efi): Add prototype.
382 (struct symbol): Add forward decl for prototype.
383
384 * breakpoint.c (internal_breakpoint_number): Only needed if
385 GET_LONGJMP_TARGET or SOLIB_ADD is defined.
386
387 * objfiles.c (ecoff_relocate_efi): Remove prototype.
388
3f550b59
FF
389Sat Jul 27 17:47:35 1996 Fred Fish <fnf@cygnus.com>
390
391 * configure.in: Add test for "long long" support.
392 * configure: Regenerate with autoconf.
393 * acconfig.h: Add CC_HAS_LONG_LONG
394 * config.in: Regenerate with autoheader.
395 * config/mips/tm-mips64.h (FORCE_LONG_LONG): Remove
396 * config/sparc/tm-sp64.h (CC_HAS_LONG_LONG): Remove.
397 * config/mips/tm-vr4300el.h (CC_HAS_LONG_LONG): Remove.
398 * config/mips/tm-vr4300.h (CC_HAS_LONG_LONG): Remove.
399 * config/mips/xm-irix5.h (CC_HAS_LONG_LONG): Remove
400 (PRINTF_HAS_LONG_LONG): Remove.
401 (FORCE_LONG_LONG): Remove.
402 * config/powerpc/xm-aix.h (UINT_MAX): Undef and use gdb's version.
403 * config/convex/xm-convex.h (CC_HAS_LONG_LONG): Remove
404 (PRINTF_HAS_LONG_LONG): Remove.
405 * config/xm-nbsd.h (CC_HAS_LONG_LONG): Remove.
406 (PRINTF_HAS_LONG_LONG): Remove.
407 * config/pa/tm-hppa.h (GET_FIELD): Put parens around
408 subtraction inside shift. Put parens around subtraction
409 in operand of bitwise and.
410 (struct frame_info): Forward declare
411 if __STDC__ defined.
412 (frame_saved_regs): Ditto.
413 (struct value): Ditto.
414 (struct type): Ditto.
415 (struct inferior_status): Ditto.
416 (init_extra_frame_info): Add prototype.
417 (skip_prologue): Ditto.
418 (frameless_function_invocation): Ditto.
419 (frame_chain): Ditto.
420 (frame_chain_valid): Ditto.
421 (saved_pc_after_call): Ditto.
422 (hppa_fix_call_dummy): Ditto.
423 (hppa_push_arguments): Ditto.
424 (pa_do_registers_info): Ditto.
425 (in_solib_call_trampoline): Ditto.
426 (in_solib_return_trampoline): Ditto.
427 (push_dummy_frame): Ditto.
428 * convex-tdep.c (decout): Use print_longest rather than
429 fprintf_filtered.
430 * defs.h: Remove use of FORCE_LONG_LONG and __GNUC__ to set
431 CC_HAS_LONG_LONG.
432 (INT_MIN): Fix so it works correctly when assigned to a long long.
433 * valprint.c (longest_to_int): Rewrite to remove dependence
434 on INT_MIN and INT_MAX.
435 (print_longest): Rewrite the code that falls back to synthesized
436 hex output when LONGEST value is not representable as in a long and
437 printf doesn't support printing long longs.
438 * ch-valprint.c (chill_val_print): Cast 2nd arg of
439 chill_print_type_scalar to LONGEST.
440 chill_print_type_scalar): Make static and add prototype.
441 * hppa-tdep.c (get_field): Ifdef out unused function.
442 (set_field): Ditto.
443 (extract_3): Ditto.
444 (extract_5_store): Ditto.
445 (extract_11): Ditto.
446 (extract_12): Ditto.
447 (deposit_17): Ditto.
448 (extract_14): Convert to static and add prototype.
449 (deposit_14): Ditto.
450 (extract_21): Ditto.
451 (deposit_21): Ditto.
452 (extract_17): Ditto.
453 (extract_5r_store): Ditto.
454 (extract_5R_store): Ditto.
455 (extract_5_load): Ditto.
456 (find_proc_framesize): Ditto.
457 (find_dummy_frame_regs): Ditto.
458 (sign_extend): Ditto.
459 (find_unwind_entry): Add prototype.
460 (find_return_regnum): Ditto.
461 (unwind_command): Ditto.
462 (find_dummy_frame_regs): Add parens around subtraction in operand
463 of bitwise-and.
464 (skip_prologue): Add parens around operands of logical-and inside
465 operand of logical-or.
466 (sign_extend): Add parens around operands of subtraction inside
467 operand of shift.
468 (low_sign_extend): Ditto.
469 * top.c (filename_completer): Convert old style decl of
470 filename_completion_function into prototype.
471 * f-lang.c (patch_common_entries): Ifdef out unused function.
472 * stabsread.c (read_cfront_baseclasses): Remove unused local
473 variable "msg_noterm".
474 (resolve_cfront_continuation): Remove unused local variable "fip".
475 (read_type): Remove unused variable xtypenums.
476 (read_cfront_static_fields): Remove unused variable "i".
477 (read_cfront_static_fields): Remove unused variable "nfields".
478 (read_cfront_member_functions): Add missing comment terminator.
479 (read_cfront_static_fields): Return 1 rather than random value.
480 (read_cfront_baseclasses): Ditto.
481 (read_cfront_baseclasses): Ditto.
482 (read_cfront_baseclasses): Ditto.
483 * somsolib.c (som_solib_create_inferior_hook): Remove unused
484 variable "u".
485 (som_solib_create_inferior_hook): Remove unused variable
486 shadow_contents.
487 (language.h): Add for needed prototypes.
488 (som_solib_sharedlibrary_command): Add prototype.
489 * hpread.c: (hpread_read_array_type): Add prototype.
490 * somread.c (hpread_build_pysmtabs): Add prototype.
491 (hpread_symfile_finish): Ditto.
492 (hpread_symfile_init): Ditto.
493 * hppah-nat.c (fetch_register): Convert old style decl
494 to prototype.
495 (gdbcore.h): Include for needed prototypes.
496 (fetch_register): Remove unused variable "mess".
497 * remote-pa.c (get_offsets): Ifdef out unused function.
498 (remote_start_remote): Remove unused variable "timeout".
499 (boot_board): Add prototype.
500 (reaad_frame): Add prototype.
501 (getpkt): Remove unused variable "bp".
502 (remote_kill): Add prototype.
503 (remote_mourn): Add prototype.
504 (remote_insert_breakpoint): Add prototype.
505 (remote_remove_breakpoint): Add prototype.
506 * valops.c (value_push): Only use if PUSH_ARGUMENTS is not defined.
507 * infcmd.c (do_registers_info): Only need prototype if
508 DO_REGISTERS_INFO is not defined.
509 (breakpoint_auto_delete_contents): Only need if
510 CALL_DUMMY_BREAKPOINT_OFFSET is defined.
511
68aadb90
FF
512Sat Jul 27 08:49:49 1996 Fred Fish <fnf@cygnus.com>
513
514 * xcoffread.c (xcoff_end_psymtab): Add textlow_not_set parameter.
515 (END_PSYMTAB): Ditto.
516 (scan_xcoff_symtab): Call xcoff_end_psymtab with textlow_not_set.
517
caeec767
ILT
518Fri Jul 26 14:07:37 1996 Ian Lance Taylor <ian@cygnus.com>
519
520 * printcmd.c (_initialize_printcmd): Initialize
521 tm_print_insn_info.flavour.
cb74cc24 522start-sanitize-gdbtk
caeec767 523 * gdbtk.c (gdb_disassemble): Initialize di.flavour.
cb74cc24 524end-sanitize-gdbtk
caeec767 525
b607efe7
FF
526Thu Jul 25 19:41:31 1996 Fred Fish <fnf@cygnus.com>
527
528 * Makefile.in (scm-valprint.o): Depends upon gdbcore_h.
529 (arm-tdep.o): Ditto.
530 (dcache.o): Ditto.
531 (i386ly-tdep.o): Ditto.
532 (i960-tdep.o): Ditto.
533 (m68k-tdep.o): Ditto.
534 (nindy-tdep.o): Ditto.
535 (scm-lang.o): Ditto.
536 (w65-tdep.o): Ditto.
537 (z8k-tdep.o): Ditto.
538 (m68k-tdep.o): Depends upon value_h and gdb_string.h
539 (m2-valprint.o): Depends upon m2-lang.h.
540 (sparc-tdep.o): Depends upon gdb_string.h
541 (valprint.o): Depends upon valprint.h
542
543 * remote-e7000.c (notice_quit): Remove prototype.
544 * top.c (initialize_targets): Remove prototype, now in target.h.
545 * stabsread.c (resolve_cfront_continuation): Remove prototype.
546 * dbxread.c (resolve_cfront_continuation): Remove prototype.
547 * symfile.h (set_demangling_style): Remove prototype.
548 * config/tm-sysv4.h (in_plt_section): Remove prototype, in objfiles.h.
549 * config/sparc/tm-sparc.h (single_step): Remove extern decl, now in
550 target.h.
551 * config/arc/tm-arc.h (one_stepped, single_step): Remove extern decls,
552 now in target.h.
553 * ser-unix.c (hardwire_restore): Remove obsolete prototype.
554 * sparc-tdep.c (single_step): Remove forward decl of isbranch.
555 * scm-lang.c (find_function_in_inferior): Remove prototype.
556 (value_allocate_space_in_inferior): Ditto.
557 * infrun.c (write_pc_pid): Remove prototype, now in inferior.h.
558 * defs.h (strchr): Remove declarations, they are declared in
559 gdb_string.h also.
560 (strrchr): Ditto.
561 (strstr): Ditto.
562 (strtok): Ditto.
563 (strerror): Ditto.
564 * f-valprint.c (f77_print_array_1): Remove extra arg that was being
565 passed to f77_print_array_1.
b607efe7
FF
566 * gdbtypes.c (add_name): Remove unused variables lenstrlen and lenstr.
567 * scm-exp.c (scm_istr2int): Remove unused variable "j".
568 (scm_parse): Remove unused variable "str".
569 * hp300ux-nat.c (store_inferior_register): Remove unused variable
570 "buf".
571 (store_inferior_registers): Remove unnecessary decl "registers".
572 * m68k-tdep.c (m68k_pop_frame): Remove unused variable "fi".
573 * scm-lang.c (scm_get_field): Remove unused variable "val".
574 (scm_lookup_name): Remove unused variable "symval".
575 * objfiles.c (map_to_file): Remove unused local variable "tempfd".
576 * procfs.c (do_attach, do_detach): Remove unused variable "result".
577 (last_resume_pid): Remove unused static variable.
578 * alpha-tdep.c (alpha_linux_sigtramp_offset): Remove unused variable
579 "res".
580 * objfiles.c (map_to_address): Remove unused function.
581 * f-valprint.c (print_max): Remove extraneous extern decl,
582 in valprint.h.
583 (calc_f77_array_dims): Remove extraneous prototype, in f-lang.h.
584 * ch-exp.c (write_lower_upper_value): Remove prototype for
585 type_lower_upper.
586
587 * gdbtypes.c (cfront_mangle_name): #ifdef out unused function.
588 * ch-exp.c (parse_mode_call): Ditto.
589 * f-valprint.c (there_is_a_visible_common_named): Ditto.
590 * f-lang.c (clear_function_list): Ditto.
591 (get_bf_for_fcn): Ditto.
592 (clear_bf_list): Ditto.
593 (add_common_block): Ditto.
594 (patch_all_commons_by_name): Ditto.
595 (find_first_common_named): Ditto.
596 (add_common_entry): Ditto.
597 (allocate_saved_function_node): Ditto.
598 (allocate_saved_bf_node): Ditto.
599 (allocate_common_entry_node): Ditto.
600 (allocate_saved_f77_common_node): Ditto.
601
602 * arm-tdep.c (gdbcore.h): Include for necessary prototypes.
603 * dcache.c (gdbcore.h): Ditto.
604 * i386ly-tdep.c (gdbcore.h): Ditto.
605 * i960-tdep.c (gdbcore.h): Ditto.
606 * m2-valprint.c (m2-lang.h): Ditto.
607 * m68k-tdep.c (gdbcore.h): Ditto.
608 (value.h): Ditto.
609 (gdb_string.h): Ditto.
610 * nindy-tdep.c (gdbcore.h): Ditto.
611 * scm-lang.c (gdbcore.h): Ditto.
612 * scm-valprint.c (gdbcore.h): Ditto.
613 * w65-tdep.c (gdbcore.h): Ditto.
614 * z8k-tdep.c (gdbcore.h): Ditto.
615 * sparc-tdep.c (gdb_string.h): Include.
616 * valprint.c (valprint.h): Include.
617
618 * config/xm-lynx.h: Remove part of comment about INT_MIN
619 redefined warnings from defs.h, since INT_MIN define in
620 defs.h is now protected by #ifndef INT_MIN.
621 * config/i386/xm-i386bsd.h: Ditto.
622 * config/m68k/xm-hp300bsd.h: Ditto.
623 * config/m68k/xm-news.h: Ditto.
624
625 * config/pa/xm-hppah.h (INT_MIN): Remove bogus INT_MIN
626 definition as 0x80000000. The macro in defs.h is better.
627 * config/i386/xm-i386m3.h (INT_MIN): Ditto.
628 * config/i386/xm-i386mach.h (INT_MIN): Ditto.
629 * config/ns32k/xm-ns32km3.h (INT_MIN): Ditto.
630 * config/pa/xm-hppab.h: Ditto.
631
632 * core-aout.c (fetch_core_registers): Add prototype.
633 * hp300ux-nat.c (fetch_inferior_register): Ditto.
634 (store_inferior_register_1): Ditto.
635 (store_inferior_register): Ditto.
636 * config/m68k/tm-m68k.h (find_saved_regs): Ditto.
637 *scm-valprint.c (c_val_print): Ditto.
638 * procfs.c (add_fd): Ditto.
639 (remove_fd): Ditto.
640 (wait_fd): Ditto.
641 (sigcodename): Ditto.
642 (sigcodedesc): Ditto.
643 (procfs_kill_inferior): Ditto.
644 (procfs_xfer_memory): Ditto.
645 (procfs_store_registers): Ditto.
646 (create_procinfo): Ditto.
647 (procfs_init_inferior): Ditto.
648 (proc_set_exec_trap): Ditto.
649 (procfs_attach): Ditto.
650 (procfs_detach): Ditto.
651 (procfs_prepare_to_store): Ditto.
652 (procfs_files_info): Ditto.
653 (procfs_open): Ditto.
654 (procfs_wait): Ditto.
655 (procfs_fetch_registers): Ditto.
656 (procfs_mourn_inferior): Ditto.
657 (procfs_can_run): Ditto.
658 (procfs_thread_alive): Ditto.
659 (procfs_stop): Ditto.
660 * alpha-nat.c (fetch_core_registers): Ditto.
661 * config/alpha/tm-alpha.h (alpha_osf_skip_sigtramp_frame): Ditto.
662 * objfiles.c (ecoff_relocate_efi): Ditto.
663 * inflow.c (pass_signal): Ditto.
664 (handle_sigio): Ditto.
665 * annotate.c (breakpoint_changed): Ditto.
666 * callback.c (wrap): Ditto.
667 (fdbad): Ditto.
668 (fdmap): Ditto.
669 * utils.c (malloc_botch): Ditto.
670 (fputs_maybe_filtered): Ditto.
671 (vfprintf_maybe_filtered): Ditto.
672 * defs.h (notice_quit): Ditto.
673 * defs.h (xmalloc, xrealloc): Ditto.
674 * top.c (stop_sig): Ditto.
675 (init_signals): Ditto.
676 (user_defined_command): Ditto.
677 (source_cleanup_lines): Ditto.
678 (dont_repeat_command): Ditto.
679 (serial_log_command): Ditto.
680 (disconnect): Ditto.
681 * target.h (initialize_targets): Ditto.
682 * os9kread.c (read_minimal_symbols): Ditto.
683 * mdebugread.c (mdebug_psymtab_to_symtab): Ditto.
684 (fdr_name): Ditto.
685 (push_parse_stack): Ditto.
686 (pop_parse_stack): Ditto.
687 (is_pending_symbol): Ditto.
688 (add_pending): Ditto.
689 * serial.c (serial_logchar): Ditto.
690 (serial_interface_lookup): Ditto.
691 * serial.h (serial_log_command): Ditto.
692 * f-valprint.c (info_common_command): Ditto.
693 * gdbtypes.h (print_type_scalar): Ditto.
694 * scm-valprint.c (scm_scmlist_print): Ditto.
695 (scm_ipruk): Ditto.
696 * scm-lang.c (scm_printstr): Ditto.
697 (in_eval_c): Ditto.
698 (evaluate_subexp_scm): Ditto.
699 * scm-exp.c (scm_read_token): Ditto.
700 (scm_skip_ws): Ditto.
701 (scm_lreadparen): Ditto.
702 * m2-lang.c (emit_char): Ditto.
703 (m2_printchar): Ditto.
704 (m2_printstr): Ditto.
705 (m2_create_fundamental_type): Ditto.
706 * f-lang.c (emit_char): Ditto.
707 (f_printchar): Ditto.
708 (f_printstr): Ditto.
709 (f_create_fundamental_type): Ditto.
710 * ch-lang.c (chill_printchar): Ditto.
711 (chill_printstr): Ditto.
712 (chill_create_fundamental_type): Ditto.
713 (value_chill_length): Ditto.
714 (value_chill_card): Ditto.
715 (value_chill_max_min): Ditto.
716 (evaluate_subexp_chill): Ditto.
717 * ch-exp.c (PEEK_TOKEN): Ditto.
718 (peek_token_): Ditto.
719 (forward_token_): Ditto.
720 (parse_case_label): Ditto.
721 (parse_opt_untyped_expr): Ditto.
722 (parse_unary_call): Ditto.
723 (parse_call): Ditto.
724 (parse_named_record_element): Ditto.
725 (parse_tuple_element): Ditto.
726 (parse_opt_element_list): Ditto.
727 (parse_tuple): Ditto.
728 (parse_primval): Ditto.
729 (parse_operand6): Ditto.
730 (parse_operand5): Ditto.
731 (parse_operand4): Ditto.
732 (parse_operand3): Ditto.
733 (parse_operand2): Ditto.
734 (parse_operand1): Ditto.
735 (parse_operand0): Ditto.
736 (parse_expr): Ditto.
737 (parse_then_alternative): Ditto.
738 (parse_else_alternative): Ditto.
739 (parse_if_expression): Ditto.
740 (parse_untyped_expr): Ditto.
741 (growbuf_by_size): Ditto.
742 (match_simple_name_string): Ditto.
743 (decode_integer_value): Ditto.
744 (decode_integer_literal): Ditto.
745 (match_float_literal): Ditto.
746 (match_float_literal): Ditto.
747 (match_string_literal): Ditto.
748 (match_character_literal): Ditto.
749 (match_integer_literal): Ditto.
750 (match_bitstring_literal): Ditto.
751 (write_lower_upper_value): Ditto.
752 * ch-lang.h (type_lower_upper): Ditto.
753 * c-lang.c (emit_char): Ditto.
754 * dwarfread.c (free_utypes): Ditto.
755 * stabsread.h (resolve_cfront_continuation): Ditto.
756 * stabsread.c (get_substring): Ditto.
757 (read_one_struct_field): Ditto.
758 * stabsread.h (process_later): Ditto.
759 * demangle.c (set_demangling_command): Ditto.
760 * defs.h (set_demangling_style): Ditto.
761 * maint.c (maintenance_info_command): Ditto.
762 (print_section_table): Ditto.
763 (maintenance_info_sections): Ditto.
764 (maintenance_print_command): Ditto.
765 * symtab.h (maintenance_print_statistics): Ditto.
766 * objfiles.h (in_plt_section): Ditto.
767 * objfiles.c (add_to_objfile_sections): Ditto.
768 * bcache.c (hash): Ditto.
769 (lookup_cache): Ditto.
770 * exec.c (bfdsec_to_vmap): Ditto.
771 (ignore): Ditto.
772 * f-exp.y (growbuf_by_size, match_string_literal): Ditto.
773 * language.c (unk_lang_printchar): Ditto.
774 (unk_lang_printstr): Ditto.
775 (unk_lang_create_fundamental_type): Ditto.
776 (unk_lang_print_type): Ditto.
777 (unk_lang_val_print): Ditto.
778 (unk_lang_value_print): Ditto.
779 * target.c (update_current_target): Ditto.
780 (debug_to_open): Ditto.
781 (debug_to_close): Ditto.
782 (debug_to_attach): Ditto.
783 (debug_to_detach): Ditto.
784 (debug_to_resume): Ditto.
785 (debug_to_wait): Ditto.
786 (debug_to_fetch_registers): Ditto.
787 (debug_to_store_registers): Ditto.
788 (debug_to_prepare_to_store): Ditto.
789 (debug_to_xfer_memory): Ditto.
790 (debug_to_files_info): Ditto.
791 (debug_to_insert_breakpoint): Ditto.
792 (debug_to_remove_breakpoint): Ditto.
793 (debug_to_terminal_init): Ditto.
794 (debug_to_terminal_inferior): Ditto.
795 (debug_to_terminal_ours_for_output): Ditto.
796 (debug_to_terminal_ours): Ditto.
797 (debug_to_terminal_info): Ditto.
798 (debug_to_kill): Ditto.
799 (debug_to_load): Ditto.
800 (debug_to_lookup_symbol): Ditto.
801 (debug_to_create_inferior): Ditto.
802 (debug_to_mourn_inferior): Ditto.
803 (debug_to_can_run): Ditto.
804 (debug_to_notice_signals): Ditto.
805 (debug_to_thread_alive): Ditto.
806 (debug_to_stop): Ditto.
cb74cc24 807start-sanitize-gdbtk
b607efe7
FF
808 * gdbtk.c (null_routine): Ditto.
809 (gdbtk_flush): Ditto.
810 (gdbtk_fputs): Ditto.
811 (gdbtk_query): Ditto.
812 (gdbtk_readline): Ditto.
813 (gdbtk_readline_end): Ditto.
814 (gdb_get_breakpoint_list): Ditto.
815 (gdb_get_breakpoint_info): Ditto.
816 (breakpoint_notify): Ditto.
817 (gdbtk_create_breakpoint): Ditto.
818 (gdbtk_delete_breakpoint): Ditto.
819 (gdbtk_modify_breakpoint): Ditto.
820 (gdb_loc): Ditto.
821 (gdb_eval): Ditto.
822 (gdb_sourcelines): Ditto.
823 (map_arg_registers): Ditto.
824 (get_register_name): Ditto.
825 (gdb_regnames): Ditto.
826 (get_register): Ditto.
827 (gdb_fetch_registers): Ditto.
828 (register_changed_p): Ditto.
829 (gdb_changed_register_list): Ditto.
830 (gdb_cmd): Ditto.
831 (call_wrapper): Ditto.
832 (gdb_listfiles): Ditto.
833 (gdb_stop): Ditto.
834 (gdbtk_dis_asm_read_memory): Ditto.
835 (compare_lines): Ditto.
836 (gdb_disassemble): Ditto.
837 (tk_command): Ditto.
838 (cleanup_init): Ditto.
839 (gdbtk_interactive): Ditto.
840 (x_event): Ditto.
841 (gdbtk_wait): Ditto.
842 (gdbtk_call_command): Ditto.
843 (tk_command_loop): Ditto.
844 (gdbtk_init): Ditto.
cb74cc24 845end-sanitize-gdbtk
b607efe7
FF
846 * breakpoint.h (set_breakpoint_sal): Ditto.
847 * remote-utils.c (usage): Ditto.
848 * remote.c (set_thread): Ditto.
849 (remote_thread_alive): Ditto.
850 (get_offsets): Ditto.
851 (read_frame): Ditto.
852 (remote_insert_breakpoint): Ditto.
853 (remote_remove_breakpoint): Ditto.
854 * sparc-nat.c (fetch_core_registers): Ditto.
855 * corelow.c (add_to_thread_list): Ditto.
856 (ignore): Ditto.
857 * inftarg.c (proc_wait): Ditto.
858 * infptrace.c (udot_info): Ditto.
859 (fetch_register): Ditto.
860 * ser-unix.c (hardwire_noflush_set_tty_state): Ditto.
861 (hardwire_print_tty_state): Ditto.
862 (hardwire_flush_output): Ditto.
863 (hardwire_flush_input): Ditto.
864 (hardwire_send_break): Ditto.
865 (hardwire_setstopbits): Ditto.
866 * ser-tcp.c (tcp_return_0): Ditto.
867 (tcp_noflush_set_tty_state): Ditto.
868 (tcp_print_tty_state): Ditto.
869 * solib.c (match_main): Ditto.
870 * gdbtypes.c (print_bit_vector): Ditto.
871 (print_arg_types): Ditto.
872 (dump_fn_fieldlists): Ditto.
873 (print_cplus_stuff): Ditto.
874 * symfile.h (entry_point_address): Ditto.
875 * symfile.c (decrement_reading_symtab): Ditto.
876 * valops.c (value_arg_coerce): Ditto.
877 * value.h (find_function_in_inferior): Ditto.
878 (value_allocate_space_in_inferior): Ditto.
879 * values.c (vb_match): Ditto.
880 * thread.c (info_thread_command): Ditto.
881 (restore_current_thread): Ditto.
882 (thread_apply_all_command): Ditto.
883 (thread_apply_command): Ditto.
884 * inferior.h (write_pc_pid): Ditto.
885 * infrun.c (delete_breakpoint_current_contents): Ditto.
886 * breakpoint.c (print_it_normal): Ditto.
887 (watchpoint_check): Ditto.
888 (print_it_done): Ditto.
889 (print_it_noop): Ditto.
890 (maintenance_info_breakpoints): Ditto.
891 (create_longjmp_breakpoint): Ditto.
892 (hbreak_command): Ditto.
893 (thbreak_command): Ditto.
894 (watch_commnd_1): Ditto.
895 (rwatch_command): Ditto.
896 (awatch_command): Ditto.
897 (do_enable_breakpoint): Ditto.
898 * ch-valprint.c (chill_val_print_array_elements): Ditto.
899 * eval.c (evaluate_subexp): Ditto.
900 (get_label): Ditto.
901 (evaluate_struct_tuple): Ditto.
902 * eval.c (init_array_element): Ditto.
903
904 * alpha-tdep.c (push_sigtramp_desc): Add prototype and make static.
905 * breakpoint.c (hw_breakpoint_used_count): Ditto.
906 (hw_watchpoint_used_count): Ditto.
907 * findvar.c (write_register_gen): Ditto.
908 (read_register_pid): Ditto.
909 * symtab.c (cplusplus_hint): Ditto.
910 * infcmd.c (breakpoint_auto_delete_contents): Ditto.
911 * ch-valprint.c (chill_print_type_scalar): Ditto.
912 * gdbtypes.c (add_name): Ditto.
913 (add_mangled_type): Ditto.
914 (cfront_mangle_name): Ditto.
915 * sparc-tdep.c (isbranch): Ditto.
916 * inftarg.c (child_stop): Ditto.
917 * win32-nat.c (child_stop): Ditto.
918 * mac-nat.c (child_stop): Ditto.
919 * remote-utils.c (sr_com): Ditto.
920 * dbxread.c (process_now): Ditto.
921 * ch-exp.c (require): Ditto.
922 (check_token): Ditto.
923 (expect): Ditto.
924 (parse_mode_call): Ditto.
925 (parse_mode_or_normal_call): Ditto.
926 * scm-lang.c (scm_lookup_name): Ditto
927 * f-lang.c (allocate_saved_bf_node): Ditto.
928 (allocate_saved_function_node): Ditto.
929 (allocate_saved_f77_common_node): Ditto.
930 (allocate_common_entry_node): Ditto.
931 (add_common_block): Ditto.
932 (add_common_entry): Ditto.
933 (find_first_common_named): Ditto.
934 (patch_common_entries): Ditto.
935 (patch_all_commons_by_name): Ditto.
936 (clear_bf_list): Ditto.
937 (get_bf_for_fcn): Ditto.
938 (clear_function_list): Ditto.
939 * scm-exp.c (scm_istr2int): Ditto.
940 (scm_istring2number): Ditto.
941 * scm-valprint.c (scm_inferior_print): Ditto.
942 * f-typeprint.c (print_equivalent_f77_float_type): Ditto.
943 * f-valprint.c (f77_get_dynamic_length_of_aggregate): Ditto.
944 (f77_create_arrayprint_offset_tbl): Ditto.
945 (f77_print_array_1): Ditto.
946 (f77_print_array): Ditto.
947 (list_all_visible_commons): Ditto.
948 (there_is_a_visible_common_named): Ditto.
949 * mdebugread.c (ecoff_relocate_efi): Ditto.
950 * callback.c (os_close): Ditto.
951 (os_get_errno): Ditto.
952 (os_isatty): Ditto.
953 (os_lseek): Ditto.
954 (os_open): Ditto.
955 (os_read): Ditto.
956 (os_read_stdin): Ditto.
957 (os_write): Ditto.
958 (os_write_stdout): Ditto.
959 (os_rename): Ditto.
960 (os_system): Ditto.
961 (os_time): Ditto.
962 (os_unlink): Ditto.
963 (os_shutdown): Ditto.
964 (os_init): Ditto.
965 (os_printf_filtered): Ditto.
966
967 * scm-lang.h (scm_parse): Change old style decl to prototype.
968 * config/alpha/tm-alphalinux.h (alpha_linux_sigtramp_offset): Ditto.
969 * top.c (init_proc): Ditto.
970 (query_hook): Ditto.
971 (error_hook): Ditto.
972 * f-lang.c (c_value_print): Ditto.
973 * ch-exp.c (parse_expression): Ditto.
974 (parse_primval): Ditto.
975 (parse_untyped_expr): Ditto.
976 (parse_opt_untyped_expr): Ditto.
977 (ch_lex): Ditto.
978 * config/sparc/tm-sparc.h (sparc_init_extra_frame_info): Ditto.
979 (sparc_frame_saved_pc): Ditto.
980 (sparc_push_dummy_frame): Ditto.
981 (sparc_pop_frame): Ditto.
982 * defs.h (fclose): Ditto.
983 (atof): Ditto.
984 (error_hook): Ditto.
985
986 * arc-tdep.c (single_step): Change arg to type "enum target_signal".
987 * rs6000-tdep.c (single_step): Ditto.
988 * sparc-tdep.c (single_step): Ditto.
989
990 * breakpoint.c (cleanup_executing_breakpoints): Change unused arg type
991 to PTR which is what make_cleanup expects.
992 * utils.c (null_cleanup): Change arg type to PTR.
993 * defs.h (null_cleanup): Change prototype to match actual function.
994 * config/sparc/tm-sparc.h (struct frame_info): Move forward decl.
995 * ch-valprint.c (chill_val_print): Cast 2nd arg of
996 chill_print_type_scalar to LONGEST.
997 * infrun.c (wait_for_inferior): Have empty switch case for
998 BPSTAT_WHAT_CHECK_SHLIBS when SOLIB_ADD is not defined.
999 (stop_on_solib_events): Only needed if SOLIB_ADD is defined.
1000 * infcmd.c (attach_command): Only need auto_solib_add if SOLIB_ADD
1001 is defined.
1002 * symfile.c (generic_load): Scan long int using a long int spec,
1003 not an int spec.
1004 * infptrace.c (udot_info): Only need local variables if KERNEL_U_SIZE
1005 is defined.
1006 (fetch_register): Only need function if FETCH_INFERIOR_REGISTERS is
1007 not defined.
1008 * inflow.c (handle_sigio): Only need prototype when the actual
1009 function is compiled in.
1010 * valprint.c (longest_to_int): Expand error message to be
1011 separate messages for args larger than largest signed int
1012 and args smaller than smallest signed int.
1013 * valprint.c (print_longest): Fix problems with support for case
1014 where compiler supports type "long long" but the runtime doesn't
1015 support printing them with "%ll".
1016 * scm-valprint.c (scm_scmlist_print, scm_scmval_print): Change
1017 return types to void since we don't actually return anything
1018 meaningful and callees ignore the values anyway.
1019 * procfs.c (modify_inherit_on_fork_flag): Enclose pr_flags in PIOCSET
1020 ifdef.
1021 (modify_run_on_last_close_flag): Ditto.
1022 (wait_fd): Enclose local variables "num_fds" and "i" LOSING_POLL
1023 ifdef
1024 * alpha-tdep.c (push_sigtramp_desc): Return proc_desc rather than
1025 random value.
1026 * infrun.c (wait_for_inferior): Ensure random_signal is not used
1027 uninitialized.
1028 * valops.c (call_function_by_hand): Ensure struct_addr is not used
1029 uninitialized.
1030 * breakpoint.c (watch_command_1): Ensure prev_frame is not used
1031 uninitialized.
1032 * utils.c (vfprintf_maybe_filtered): Change second arg from "char *"
1033 to "const char *".
cb74cc24 1034start-sanitize-gdbtk
b607efe7
FF
1035 * gdbtk.c (gdb_fetch_registers): Cast fourth arg to map_arg_registers
1036 to proper pointer type, from int.
1037 (gdbtk_query): Change first arg to "const char *" from "char *".
cb74cc24 1038end-sanitize-gdbtk
b607efe7
FF
1039 * infptrace.c (udot_info): Add two dummy args so that the type is
1040 correct for passing to add_info.
1041 * f-lang.c (saved_fcn): Move decl to head of file so it can be used
1042 in prototypes.
1043 (saved_bf_symnum): Ditto.
1044 (SAVED_FUNCTION): Ditto.
1045 (SAVED_FUNCTION_PTR): Ditto.
1046 (SAVED_BF): Ditto.
1047 (SAVED_BF_PTR): Ditto.
1048 * ch-exp.c (parse_named_record_element): Build error message in
1049 temporary buffer before passing it to expect, rather than passing
1050 wrong number of args to expect.
1051 * demangle.c (set_demangling_style): Call set_demangling_command with
1052 correct number of arguments.
1053 * inferior.h (terminal_init_inferior_with_pgrp): Change arg type to
1054 int to match actual function.
1055 (os_isatty): Call fdmap with right number of arguments, was missing
1056 the host_callback* arg.
1057 * target.c (cleanup_target): Prototype all functions casts.
1058 * target.h (one_stepped, single_step): Declare here and convert
1059 single_step to prototype.
1060 * infrun.c (one_stepped, single_step): Don't declare externs
1061 here, they have moved to target.h.
1062 * eval.c (init_array_element): Declare previously undeclared
1063 last two args as LONGEST.
1064 * dcache.c (dcache_xfer_memory): Change xfunc decls to prototype form.
cb74cc24
SS
1065start-sanitize-gdbtk
1066 * gdbtk.c (register_changed_p): Remove unused local variable "buf".
1067end-sanitize-gdbtk
b607efe7 1068
dc88c64e
DE
1069Thu Jul 25 16:11:54 1996 Doug Evans <dje@canuck.cygnus.com>
1070
1071 * dsrec.c (load_srec): Protect ANSI style function parms with PARAMS.
1072
3a179be1
SG
1073Mon Jul 22 18:13:27 1996 Stu Grossman (grossman@critters.cygnus.com)
1074
1075 * Makefile.in (os9kread.o): Remove dependency on partial-stab.h.
1076 * dbxread.c (read_dbx_symtab end_psymtab), partial-stab.h: Don't
1077 use partial_symtab->textlow==0 as a flag, as 0 is a legitimate
1078 text address. Use a seperate flag (textlow_not_set) instead.
1079 This makes stabs in ELF .o files work a lot better.
1080 * mdebugread.c xcoffread.c: Define textlow_not_set for
1081 partial-stab.h.
1082 * stabsread.h (end_psymtab): Add textlow_not_set arg to prototype.
1083
cb74cc24 1084start-sanitize-gdbtk
396bf873
FF
1085Sat Jul 20 17:46:40 1996 Fred Fish <fnf@cygnus.com>
1086
1087 * gdbtk.tcl (files_command): Reorder the binding tags for
1088 the listbox widget to avoid referencing the listbox after
1089 the containing widget has been destroyed by the action of
1090 a previous binding.
cb74cc24 1091end-sanitize-gdbtk
396bf873 1092
9422fadb
FF
1093Sat Jul 20 10:41:06 1996 Fred Fish <fnf@cygnus.com>
1094
1095 * dwarf2read.c (struct filenames): Change internal "struct file"
1096 to "struct fileinfo" to avoid conflict with "struct file" in
1097 <sys/file.h> on HPUX and Solaris.
1098
cb74cc24 1099start-sanitize-gdbtk
efd14e45
FF
1100Sat Jul 20 10:09:28 1996 Fred Fish <fnf@cygnus.com>
1101
1102 * gdbtk.tcl (delete_expr): Unset corresponding element of
1103 expr_update_list when destroying an expression.
1104 (create_expr_window): Initialize expr_num, delete_expr_num,
1105 and expr_update_list here when each new expression window
1106 is created, rather than once at startup.
cb74cc24 1107end-sanitize-gdbtk
efd14e45 1108
fcf05549
SS
1109Fri Jul 19 14:05:57 1996 Stan Shebs <shebs@andros.cygnus.com>
1110
1111 * dwarf2read.c: New file, DWARF 2 reader originally contributed by
1112 Brent Benson, with additions by Gary Funck and Jerry Kreuscher.
1113 * Makefile.in (COMMON_OBS): Add dwarf2read.o.
1114 (SFILES): Add dwarf2read.c.
1115 (dwarf2read.o): Add build rule.
1116 * symfile.h (dwarf2_has_info, dwarf2_build_psymtabs): Declare
1117 exported functions.
1118 * elfread.c (elf_symfile_read): Call them.
1119 (elf_symtab_read) [HARRIS_TARGET]: Skip some special symbols.
1120
3f17fed8
GN
1121Thu Jul 18 01:22:01 1996 Geoffrey Noer <noer@cygnus.com>
1122
1123 * symfile.c (symfile_bfd_open):
1124 * exec.c (exec_file_command): for __GO32__ and __WIN32__ systems,
1125 free the user from having to type the .exe extension.
1126
2531b169
MA
1127Wed Jul 17 06:54:50 1996 Mark Alexander <marka@cygnus.com>
1128
1129 * mon960-rom.c: Shorten the mon960_inits string to a single
1130 carriage return; this prevents a hang on connecting immediately
1131 after powerup, when MON960 is attempting autobaud detection.
1132
48b497ed
MA
1133Tue Jul 16 23:47:04 1996 Mark Alexander <marka@cygnus.com>
1134
1135 * a29k-tdep.c (get_saved_register): Allow PC to be modified
1136 when innermost frame is selected, but not in outer frames.
1137
76420d46
SG
1138Tue Jul 16 23:37:25 1996 Stu Grossman (grossman@critters.cygnus.com)
1139
1140 * command.c (do_setshow_command): Don't segfault when showing
1141 var_string and var_string_noescape vars that are NULL.
1142
2dcfc9c7
DE
1143Mon Jul 15 16:55:48 1996 Doug Evans <dje@canuck.cygnus.com>
1144
1145 * win32-nat.c (handle_load_dll): dos_path_to_unix_path renamed to
1146 cygwin32_conv_to_posix_path.
1147 (child_create_inferior): unix_path_to_dos_path renamed to
1148 cygwin32_conv_to_win32_path. Rewrite code to translate PATH.
1149
91550191
SG
1150Mon Jul 15 16:44:05 1996 Stu Grossman (grossman@critters.cygnus.com)
1151
1152 * defs.h printcmd.c: Create global disassemble_info structure
1153 tm_print_insn_info.
cb74cc24 1154start-sanitize-gdbtk
91550191
SG
1155 * gdbtk.c (gdb_disassemble): Setup di.mach from
1156 tm_print_insn_info.mach, and set endian from TARGET_BYTE_ORDER.
cb74cc24 1157end-sanitize-gdbtk
91550191
SG
1158 * i386-tdep.c (set_assembly_language_command): set
1159 tm_print_insn_info.mach to the appropriate value for 386 or 8086
1160 disassembly.
1161 * printcmd.c (print_insn): Move init of disassembler_info to
1162 _initialize_printcmd. Set endian for disassembler here.
1163 * sparc-tdep.c: Set tm_print_insn_info.mach as appropriate to
1164 select sparc/sparclite.
1165 * config/sparc/{tm-sparc.h tm-sparclite.h}: Get rid of
1166 TM_PRINT_INSN. Set TM_PRINT_INSN_MACH to
1167 bfd_mach_sparc/bfd_mach_sparc_sparclite.
1168
d369b213
FF
1169Fri Jul 12 19:04:32 1996 Fred Fish <fnf@cygnus.com>
1170
1171 * hpread.c (hpread_lookup_type): Use xmmalloc/xmrealloc rather
1172 than xmalloc/xrealloc.
1173
c0e6ae2e
FF
1174Fri Jul 12 17:59:47 1996 Fred Fish <fnf@ninemoons.com>
1175
1176 * objfiles.c (map_to_file): Error return from mmalloc_findbase is
1177 a NULL pointer, not a -1.
1178
f33b2c13
SG
1179Fri Jul 12 10:16:24 1996 Stu Grossman (grossman@critters.cygnus.com)
1180
1181 * i386-tdep.c (set_assembly_language_command): New routine to
1182 select between i386 and i8086 instruction sets for disassembly.
1183 New command `set assembly-language {i386 i8086}'.
1184
f3138a7c
MA
1185Thu Jul 11 21:13:21 1996 Mark Alexander <marka@cygnus.com>
1186
1187 * monitor.c (monitor_write_memory, monitor_read_memory_single):
1188 Disable use of "long long" memory read/write commands; can't
1189 use them because we hold the values to read/write in an int
1190 variable, and because strtoul fails on values that exceed the
1191 size of a long. This fixes breakpoint problems on MON960.
1192
4853b6d1
FF
1193Thu Jul 11 11:39:31 1996 Fred Fish <fnf@cygnus.com>
1194
1195 * config/m68k/xm-hp300hpux.h (HAVE_MMAP): Remove definition.
1196 * config/pa/xm-hppah.h (HAVE_MMAP): Ditto.
1197
54109914
FF
1198Wed Jul 10 16:54:41 1996 Fred Fish <fnf@cygnus.com>
1199
1200 * Makefile.in (MMALLOC_CFLAGS): Eliminate intermediate MMALLOC_DISABLE
1201 and MMALLOC_CHECK macros, and add comment indicating how host dependent
1202 makefile fragment should modify MMALLOC_CFLAGS to not use mmalloc, or
1203 to use it but to not do heap corruption checking.
1204 * gdbserver/Makefile.in: Ditto.
1205 * utils.c (init_malloc): Replace warning() use with direct call of
1206 fprintf_unfiltered, since current_target has not yet been set and thus
1207 we cannot use warning(). If we try to use mmcheck and it fails,
1208 suggest that this configuration needs NO_MMCHECK or MMCHECK_FORCE
1209 defined. Other small mmalloc related cleanups.
1210 * config/sparc/sun4os4.mh (MMALLOC_CFLAGS): Define MMCHECK_FORCE to 1.
1211 * config/alpha/alpha-osf2.mh (MMALLOC_CFLAGS): Set to -DNO_MMCHECK.
1212
1213 * config/sparc/xm-sun4os4.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
1214 * config/i386/xm-i386v4.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
1215 * config/i386/xm-linux.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
1216 * config/m68k/xm-hp300hpux.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
1217 * config/m68k/xm-m68kv4.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT);
1218 * config/m68k/xm-sun3os4.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
1219 * config/pa/xm-hppah.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
1220 * config/sparc/xm-sun4sol2.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
1221 Remove obsolete defines.
1222
1223 * config/alpha/alpha-linux.mh (MMALLOC_DISABLE):
1224 * config/alpha/alpha-osf1.mh (MMALLOC_DISABLE):
1225 * config/rs6000/rs6000.mh (MMALLOC_DISABLE):
1226 * config/rs6000/aix4.mh (MMALLOC_DISABLE):
1227 * config/powerpc/aix4.mh (MMALLOC_DISABLE):
1228 * config/powerpc/aix.mh (MMALLOC_DISABLE):
1229 * config/ns32k/ns32km3.mh (MMALLOC_DISABLE):
1230 * config/mips/mipsm3.mh (MMALLOC_DISABLE):
1231 * config/mips/decstation.mh (MMALLOC_DISABLE):
1232 * config/m88k/cxux.mh (MMALLOC_DISABLE):
1233 * config/i386/i386mk.mh (MMALLOC_DISABLE):
1234 * config/i386/i386m3.mh (MMALLOC_DISABLE):
1235 * config/i386/i386gnu.mh (MMALLOC_DISABLE):
1236 Use MMALLOC_CFLAGS instead.
1237
4679717d
JL
1238Tue Jul 9 22:41:12 1996 Jeffrey A Law (law@cygnus.com)
1239
1240 * h8300-tdep.c: Remove some outdated comments.
1241 (h8300_skip_prologue): Rework to be more correct for the H8/300H.
1242 Handle stm.l insns for the H8/S.
1243 (examine_prologue): Likewise.
1244
15aec61c
RJ
1245Tue Jul 9 16:48:55 1996 Raymond Jou <rjou@mexican.cygnus.com>
1246
1247 * ser-mac.c (mac_close): Change a typo SetSetBuf to SerSetBuf.
1248
ee7b308f
MA
1249Mon Jul 08 08:50:39 1996 Mark Alexander <marka@cygnus.com>
1250
1251 * mon960-rom.c (mon960_open): Add floating point detection to
1252 prevent hang on non-FPU processors (PR 9775).
1253 (mon960_cmds): Swap setmem.cmdw and setmem.cmdl to fix problem
1254 setting breakpoints and improve loading speed.
1255
ace4b8d7
FF
1256Sun Jul 7 14:57:34 1996 Fred Fish <fnf@cygnus.com>
1257
1258 * coffread.c (record_minimal_symbol): Don't presave name string
1259 on symbol_obstack before passing to prim_record_minimal_symbol.
1260 It now handles saving the string itself.
1261 * dbxread.c (read_dbx_dynamic_symtab): Ditto.
1262 * mipsread.c (read_alphacoff_dynamic_symtab): Ditto.
1263 * os9kread.c (record_minimal_symbol): Ditto.
1264 * solib.c (solib_add_common_symbols): Ditto.
1265
1266 * coffread.c (coff_symtab_read): Don't presave name string on
1267 symbol_obstack before passing to prim_record_minimal_symbol_and_info.
1268 It now handles saving the string itself.
1269 * dbxread.c (record_minimal_symbol): Ditto.
1270 * elfread.c (record_minimal_symbol_and_info): Ditto.
1271
1272 * dstread.c (record_minimal_symbol): Remove static function that just
1273 called prim_record_minimal_symbol with the same args (after change to
1274 prim_record_minimal_symbol to do it's own name string saves).
1275 * nlmread.c (record_minimal_symbol): Ditto.
1276 * somread.c (record_minimal_symbol): Ditto.
1277
1278 * hpread.c (hpread_read_enum_type): Save symbol name on symbol obstack.
1279 (hpread_read_function_type): Ditto.
1280 (hpread_process_one_debug_symbol): Ditto.
1281 * mdebugread.c (parse_symbol): Ditto.
1282 (new_symbol): Ditto.
1283 * minsyms.c (prim_record_minimal_symbol_and_info): Ditto.
1284
1285 * coffread.c (process_coff_symbol): Use obsavestring to save
1286 SYMBOL_NAME, rather than obstack_copy0.
1287 * dstread.c (create_new_symbol): Ditto
1288 * symfile.c (obconcat): Ditto.
1289 * stabsread.c (patch_block_stabs): Ditto.
1290 * xcoffread.c (SYMNAME_ALLOC): Ditto.
1291
1292 * symfile.c (obsavestring): Update comments
1293 * solib.c (solib_add_common_symbols): Remove local var origname.
1294
89e673a4
SG
1295Wed Jul 3 15:56:08 1996 Stu Grossman (grossman@critters.cygnus.com)
1296
bc859e63
SG
1297 * configure: Re-build with autoconf-2.10.
1298
89e673a4
SG
1299 * sparcl-tdep.c (_initialize_sparc_tdep) config/sparc/tm-sparc.h,
1300 config/sparc/tm-sparclite.h: Initialize tm_print_insn from
1301 TM_PRINT_INSN, which comes from the tm file.
1302
e74acce4
MA
1303Tue Jul 02 21:41:20 1996 Mark Alexander <marka@cygnus.com>
1304
1305 * coffread.c, dbxread.c, elfread.c, mipsread.c, nlmread.c,
1306 os9kread.c: Replace identical sym_offsets functions with
1307 default_symfile_offsets.
1308 * somread.c (som_symfile_offsets): Use new SIZEOF_SECTION_OFFSETS
1309 macro to allocate section_offsets.
1310 * symfile.c (default_symfile_offsets): New function.
1311 * symfile.h: Declare default_symfile_offsets.
1312 * symtab.h: Define SIZEOF_SECTION_OFFSETS macro to
1313 simplify allocation of section_offsets.
1314
89e673a4
SG
1315Tue Jun 11 12:02:55 1996 Stu Grossman (grossman@critters.cygnus.com)
1316
1317 * Makefile.in (INTERNAL_LDFLAGS): Add in flags from configure.
1318 * configure configure.in: Only make sol-thread.o for native.
1319 Also, switch to dlopened libthread_db.so.1.
1320 * sol-thread.c: Switch to using dlopen to get the thread_db
1321 library.
1322
1323Thu Jun 13 16:53:25 1996 Stu Grossman (grossman@critters.cygnus.com)
1324
1325 * configure, configure.in: Change test for libthread_db to only
1326 work for configs where build/host/target are the same.
1327
eafdda3d
MM
1328Tue Jul 2 15:04:20 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1329
1330 * config/powerpc/{linux.mh,xm-linux.h}: New files, for Linux on
1331 PowerPC.
1332
1333 * configure.in (powerpc-*-linux): Add Linux, System V, and ELF
1334 support.
1335 * configure: Regenerate.
1336
6687c953
SS
1337Mon Jul 1 13:00:43 1996 Stan Shebs <shebs@andros.cygnus.com>
1338
1339 From Raymond Jou <rjou@mexican.cygnus.com>:
1340 * mpw-make.sed: Add lines to whack out autoconf hook
1341 @CONFIG_LDFLAGS@.
1342
97fd185a 1343Mon Jul 01 11:07:15 1996 Mark Alexander <marka@cygnus.com>
012be3ce 1344
97fd185a 1345 * remote-e7000.c (e7000_stop): New function.
012be3ce
DP
1346
1347Fri Jun 28 06:34:19 1996 Dawn Perchik <dawn@cygnus.com>
1348
6687c953
SS
1349 * configure, configure.in: Add target sparclet.
1350 * monitor.h, monitor.c: Added monitor flags MO_NO_ECHO_ON_SETMEM
1351 (don't expect echo on setmem command), MO_RUN_FIRST_TIME (if
1352 command to start process running on target is different from one
1353 to continue execution), MO_HEX_PREFIX (if addresses from monitor
1354 have a "0x" prefix).
1355 * monitor.c, parse.c, sparc-tdep.c: Don't require strings in the
1356 registers array. This is to allow NULLs to be place holders in
1357 the tm-*.h file so that only minor changes are needed when a new
1358 processor is introduced (eg, one without floating point).
1359 * sparc-tdep.c: Conditionally remove dependancies on floating
1360 point.
1361 * sparclet-rom.c, config/sparc/sparclet.mt,
1362 config/sparc/tm-sparclet.h: New files for target sparclet.
1363 * symfile.c (load_command): Add option for 2nd parameter; a load
1364 offset added to the vma of each section.
012be3ce 1365
265c044a
DP
1366Fri Jun 28 05:39:19 1996 Dawn Perchik <dawn@cygnus.com>
1367
1368 * main.c (main): Add option "l" for setting remote_timeout.
1369
cb1709ae
DP
1370Fri Jun 28 05:25:18 1996 Dawn Perchik <dawn@cygnus.com>
1371
6687c953
SS
1372 * remote-e7000.c, remote.c, target.h, top.c: Add set option
1373 "remote_timeout" for setting remote_timeout. Add set option
1374 "use_hard_breakpoints" for setting hardware .vs. memory
1375 breakpoints.
cb1709ae 1376
56a4bf53
DP
1377Fri Jun 28 04:32:18 1996 Dawn Perchik <dawn@cygnus.com>
1378
1379 * remote-e7000.c (e7000_parse_device): New function.
1380 Add option "tcp_remote" to target command if using
1381 tcp to connect to a remote host which is then connected
1382 via serial port to the e7000 (for exampole, a port master).
1383 (e7000_open): Change to call e7000_parse_device.
1384
f7ce02f4
DP
1385Fri Jun 28 03:47:17 1996 Dawn Perchik <dawn@cygnus.com>
1386
1387 * monitor.c (monitor_debug): Fix remotedebug buffering.
1388
99afd188
SS
1389Thu Jun 27 18:24:17 1996 Stan Shebs <shebs@andros.cygnus.com>
1390
1391 * config/i386/cygwin32.mh, config/powerpc/cygwin32.mh
1392 (NATDEPFILES): Add a space.
1393
81508b27
WM
1394Wed Jun 26 06:05:39 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
1395
1396 * gdbtypes.c (create_array_type): If TYPE_LENGTH (result_type)
1397 is zero, set TYPE_FLAG_TARGET_STUB to force reevaluation of the type.
1398
1399 * ch-exp.c (calculate_array_length): Function removed.
1400
ebea0366
MH
1401Tue Jun 25 17:41:06 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1402
1403 * remote-e7000.c (e7000_read_inferior_memory_large): New function.
1404 (e7000_xfer_inferior_memory): Call it.
1405
a69b7bdc
JM
1406Tue Jun 25 23:14:07 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
1407
1408 * gdb/gdbserver/Makefile.in (docdir): Removed.
1409
5d8b7982
JM
1410Tue Jun 25 22:05:38 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
1411
1412 * Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir):
1413 Use autoconf set values.
1414 (docdir): Removed.
1415 * configure.in (AC_PREREQ): autoconf 2.5 or higher.
1416 * nlm/Makefile.in (bindir, libdir, datadir, mandir, infodir,
1417 includedir): Use autoconf set values.
1418 (docdir): Removed.
1419 * nlm/configure.in (AC_PREREQ): autoconf 2.5 or higher.
1420 * nlm/configure: Rebuilt.
1421 * gdb/gdbserver/Makefile.in (datadir): Set to $(prefix)/share.
1422
1423Mon Jun 24 09:56:14 1996 Angela Marie Thomas (angela@cygnus.com)
1424
1425 * stabsread.c (read_cfront_member_functions): add type
1426
1427Sun Jun 23 23:40:48 1996 Doug Evans <dje@canuck.cygnus.com>
1428
1429 * win32-nat.c: #include <unistd.h>.
1430 (unix_paths_to_dos_paths, dos_paths_to_unix_paths): Delete.
1431 (child_create_inferior): Convert only env var PATH to win32 style.
1432 (set_pathstyle_dos): Delete.
1433 (_initialize_inftarg): Delete dos-path-style command.
1434
3d9f68c0 1435start-sanitize-gdbtk
ab5c0a12
FF
1436Fri Jun 21 11:04:47 1996 Fred Fish <fnf@cygnus.com>
1437
1438 * gdbtk.tcl (create_register_windows): Include missing '$'s.
1439 Add global declarations for various reg_format_* variables.
4149b5f4
FF
1440 * gdbtk.tcl (populate_register_window): Make initial window one
1441 line taller to account for new column header line.
ab5c0a12
FF
1442
1443Fri Jun 21 09:46:47 1996 Fred Fish <fnf@cygnus.com>
3d9f68c0
FF
1444
1445 * gdbtk.c (get_register): Support for printing raw formats.
1446 * gdbtk.tcl: Add hint for using debug_interface.
1447 (center_window, add_breakpoint_frame, delete_breakpoint_frame):
1448 Enclose arg in braces for consistency.
1449 (create_registers_window, populate_reg_window, update_registers):
ab5c0a12
FF
1450 Major rewrite to support displaying multiple formats in the register
1451 window.
3d9f68c0
FF
1452 (init_reg_info): New function.
1453 (recompute_reg_display_list): Reset reg_display_list, start
1454 register display lines at line 2.
1455
1456end-sanitize-gdbtk
1a7b4b7c
DE
1457Thu Jun 20 13:42:23 1996 Doug Evans <dje@canuck.cygnus.com>
1458
1459 * configure.in: Revise sol-thread.o test.
1460 * configure: Regenerated.
1461
1462 * source.c (find_source_lines): Reassign size to result of read.
1463
b613bfbf 1464start-sanitize-gdbtk
3f8eefba
FF
1465Thu Jun 20 08:18:59 1996 Fred Fish <fnf@cygnus.com>
1466
1467 * gdbtk.tcl (gdbtk_tcl_readline_begin): Handle backspace to
1468 avoid backing up over prompt. At every input, make sure insert
1469 point is at least after command start, handle control-u to delete
1470 current input line.
1471 (tclsh): Handle backspace to avoid backing up over prompt. Handle
1472 control-u to delete current input line.
1473
b613bfbf
GN
1474Wed Jun 19 17:23:38 1996 Geoffrey Noer <noer@cygnus.com>
1475
1476 * configure.in: disable gdbtk for *cygwin32* hosted compiles
1477 * configure: regenerated with autoconf 2.8
1478
1479end-sanitize-gdbtk
b613bfbf
GN
1480Tue Jun 18 16:25:54 1996 Jeffrey A. Law <law@rtl.cygnus.com>
1481
1482 * h8300-dep.c (gdb_print_insn_h8300): Handle the H8/S.
1483 (h8300_command): Likewise.
1484 (set_machine): Likewise.
1485 (set_machine_hook): Likewise.
1486 (_initialize_h8300m): Likewise.
1487
1488 * config/h8300/tm-h8300.h (h8300smode): Declare.
1489
5499f9a1
JL
1490Sun Jun 16 15:21:51 1996 Jeffrey A. Law <law@rtl.cygnus.com>
1491
1492 * somsolib.c (som_solib_create_inferior_hook): Handle tracking
1493 of shl_load calls for hpux10.
1494
1495Thu Jun 13 11:16:10 1996 Tom Tromey <tromey@thepub.cygnus.com>
1496
1497 * config.in: Regenerated.
1498 * acconfig.h (HAVE_THREAD_DB_LIB): Added entry.
1499
1500 * configure: Regenerated.
1501 * aclocal.m4 (CY_AC_PATH_TCLH, CY_AC_PATH_TKH): Use odd names to
1502 avoid name clashes with SunOS headers.
1503
9d111656
FF
1504Tue Jun 11 19:52:50 1996 Fred Fish <fnf@cygnus.com>
1505
1506 From Michael Snyder <Michael_Snyder@next.com>:
1507 * bcache.c (print_bcache_statistics): Avoid divide-by-zero
1508 exception if one or more objfile has no symbols, such as when
1509 a dynamic library has been stripped.
1510
1511Tue Jun 11 12:02:55 1996 Stu Grossman (grossman@critters.cygnus.com)
1512
1513 * Makefile.in (INTERNAL_LDFLAGS): Add in flags from configure.
1514 * configure configure.in: Only make sol-thread.o for native.
1515 Also, switch to dlopened libthread_db.so.1.
1516 * sol-thread.c: Switch to using dlopen to get the thread_db
1517 library.
1518
f023ce5c
FF
1519Mon Jun 10 14:17:19 1996 Fred Fish <fnf@cygnus.com>
1520
1521 * config/sparc/{xm-sun4sol2.h,xm-sun4os4.h} (MMAP_BASE_ADDRESS):
1522 Change from 0xE0000000 to 0xC0000000.
1523
1524Thu Jun 6 17:10:32 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1525
1526 * config/powerpc/xm-solaris.h: Initial version of support for
1527 Solaris on PowerPC.
1528
911026aa
JSC
1529Wed Jun 5 01:52:57 1996 James G. Smith <jsmith@cygnus.co.uk>
1530
1531 * configure.in (configdirs): Force 4100 builds to use 4300 GDB
1532 target.
1533 * configure: Rebuild.
1534
1535 * config/mips/vr4300el.mt (SIM_OBS): Include simulator in
1536 little-endian builds.
1537
093c1a2f
JL
1538Mon Jun 3 11:48:29 1996 Jeffrey A Law (law@cygnus.com)
1539
f4c952e4
JL
1540 * inftarg.c (child_thread_alive): Protect declaration with
1541 #ifndef CHILD_THREAD_ALIVE.
1542
093c1a2f
JL
1543 * source.c (find_source_lines): Check the time on the symtab's bfd if
1544 it exists, else check the time on the exec_bfd.
1545
f6decc18
MA
1546Thu May 30 09:43:17 1996 Mark Alexander <marka@cygnus.com>
1547
1548 * dsrec.c (make_srec): Fix calculation of address size
1549 to allow addresses less than 0x100.
1550
3db21ca5
WM
1551Thu May 30 04:24:09 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
1552
1553 * ch-exp.c (ch_lex): In case of LOC_TYPEDEF call calculate_array_length.
1554
3308a107
GN
1555Tue May 28 16:15:47 1996 Geoffrey Noer <noer@cygnus.com>
1556
1557 * remote-mips.c: cannot use EINVAL for breakpoint test since
1558 its value varies for different hosts (e.g. go32's is 19, while
1559 sunos is 22). Changed to hardcoded 22 since that is what the
1560 mips boards return.
1561
e44d1491
TT
1562Tue May 28 11:14:58 1996 Tom Tromey <tromey@creche.cygnus.com>
1563
1564 * configure: Regenerated.
1565 * aclocal.m4 (CY_AC_PATH_TCLH): Don't use AC_TRY_RUN.
1566 (CY_AC_PATH_TKH): Don't use AC_TRY_RUN.
1567
76420d46
SG
1568Sun May 26 16:56:35 1996 Miles Bader <miles@gnu.ai.mit.edu>
1569
1570 * solib.c (solib_absolute_prefix, solib_search_path): New variables.
1571 (_initialize_solib): Add set/show commands for those variables.
1572 (solib_map_sections): Implement searching using them.
1573
9391c997
FF
1574Sun May 26 14:14:49 1996 Fred Fish <fnf@cygnus.com>
1575
1576 Changes from: David Mosberger-Tang <davidm@azstarnet.com>
1577
1578 * NEWS: Add Alpha Linux as a new native configuration.
1579
1580 * mdebugread.c (parse_symbol): When we find a malloc() symbol with
1581 return type VOID, assume no debugging info is available for that
1582 object file and patch the return value into VOID *. Otherwise,
1583 operations requiring an implicit call to malloc() will fail.
1584
1585 * infrun.c (wait_for_inferior): The criterion to detect entering a
1586 sigtramp handler is now: (a) the current pc is inside a sigtramp
1587 handler, (b) the previous pc is not in a sigtramp handler, and (c)
1588 the current stack pointer is "inner" than the old one. Condition
1589 (c) is new to avoid mistaking a return from a signal handler into
1590 sigtramp as a new sigtramp invocation.
1591
1592 * dcache.c (struct dcache_block): Declare addr as CORE_ADDR. An
1593 int may not be big enough to hold an address.
1594 (dcache_hit): Ditto.
1595 (dcache_peek_byte): Fix indentation.
1596
1597 * configure.in (alpha-*-linux*): Add target.
1598 * configure: Rebuild
1599
1600 * config/alpha/tm-alpha.h (PROC_DESC_IS_DYN_SIGTRAMP): New macro.
1601 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
1602 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
1603 (SIGCONTEXT_ADDR): Ditto.
1604 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
1605
1606 * config/alpha/alpha-linux.mh: New file.
1607 * config/alpha/alpha-linux.mt: Ditto.
1608 * config/alpha/nm-linux.h: Ditto.
1609 * config/alpha/tm-alphalinux.h: Ditto.
1610 * config/alpha/xm-alphalinux.h: Ditto.
1611 * config/alpha/xm-alphaosf.h: Renamed from xm-alpha.h.
1612 * config/alpha/alpha-osf1.mh (XM_FILE): Change from xm-alpha.h to
1613 xm-alphaosf.h.
1614 * config/alpha/alpha-osf2.mh: Ditto.
1615
1616 * blockframe.c (find_pc_partial_function): Pass PC to
1617 SIGTRAMP_START and SIGTRAMP_END macros for the benefit of systems
1618 that detect sigtramp code via designated code sequences (as is the
1619 case for Linux/Alpha, for example).
1620
1621 * config/i386/tm-i386bsd.h: Change SIGTRAMP_START and SIGTRAMP_END
1622 to ignore new PC argument.
1623 * config/m68k/tm-hp300bsd.h: Ditto.
1624 * config/vax/tm-vax.h: Ditto.
1625
1626 * alpha-tdep.c (alpha_linux_sigtramp_offset): New function.
1627 (alpha_osf_skip_sigtramp_frame): Ditto.
1628 (push_sigtramp_desc): Ditto.
1629 (alpha_find_saved_regs): Use SIGCONTEXT_ADDR macro to extract
1630 sigcontext address from frame.
1631 (alpha_saved_pc_after_call): When in sigtramp, use
1632 alpha_frame_saved_pc() instead of read-register().
1633 (after_prologue): When inside a dynamically generated sigtramp
1634 function, there is no prologue, so return address of first
1635 instruction.
1636 (alpha_in_prologue): Fix typo in comment.
1637 (find_proc_desc): Use macro DYNAMIC_SIGTRAMP_OFFSET to determine
1638 whether we're inside a dynamicaly generated sigtramp function. If
1639 so, create and push and appropriate procedure descriptor.
1640 (alpha_frame_chain): Use macro FRAME_PAST_SIGTRAMP_FRAME to obtain
1641 the frame past a sigtramp frame (if the current frame is indeed a
1642 sigtramp function).
1643 (init_extra_frame_info): Don't read next frame register off of
1644 stack-pointer when inside a dynamiccaly generated sigtramp.
1645 (alpha_pop_frame): Also unlink and destroy procedure descriptors
1646 created for dynamically generated sigtramp functions.
1647
1648 * alpha-nat.c: When compiling under Linux, include <asm/reg.h> and
1649 <alpha/ptrace.h> instead of <machine/reg.h>
1650
647e52ea
SG
1651Tue Jul 2 13:58:10 1996 Miles Bader <miles@gnu.ai.mit.edu>
1652
1653 * gnu-nat.c (inf_validate_task_sc):
1654 Give terminal to gdb while asking question.
1655 (inf_resume): Don't validate the task suspend-count while execing.
1656
1657Thu Jun 13 11:04:52 1996 Miles Bader <miles@gnu.ai.mit.edu>
1658
1659 * gnu-nat.c (inf_validate_task_sc): Query user before clearing any
1660 additional suspend count.
1661 (S_proc_wait_reply, gnu_attach): Don't call inf_validate_task_sc.
1662 (inf_resume): Call inf_validate_task_sc here.
1663 (gnu_resume): Call inf_update_procs to ensure noticing new threads.
1664
1665Fri Jun 7 17:00:43 1996 Miles Bader <miles@gnu.ai.mit.edu>
1666
1667 * gnu-nat.c (gnu_create_inferior: attach_to_child): Return PID.
1668
52f74d48
JL
1669Thu May 23 15:13:56 1996 Jeffrey A Law (law@cygnus.com)
1670
31778db0
JL
1671 * h8300-tdep.c (IS_PUSH): Refine.
1672 (IS_MOVE_FP, IS_MOV_SP_FP): Accept H8/300H varaints.
1673 (IS_SUB4_SP, IS_SUBL_SP): New macros.
1674 (h8300_skip_prologue): Handle H8/300H prologue code sequences.
1675 (examine_prologue): Handle addresses from 0x010000 to 0xffffff
1676 when in H8/300H mode. Get the return pointer's address correctly
1677 for the H8/300H. Handle H8/300H prolouge code sequences.
1678
52f74d48
JL
1679 * symfile.c (generic_load): Print the starting address
1680 of the file just loaded.
1681
e7600d8e
SS
1682Thu May 23 12:09:52 1996 Stan Shebs <shebs@andros.cygnus.com>
1683
1684 * mpw-make.sed: Edit @THREAD_DB_OBS@ out of makefile.
1685
1686Tue May 21 11:53:56 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1687
1688 * breakpoint.c (bpstat_do_actions): Avoid endless recursion
1689 if a `source' command is contained in bs->commands.
1690
1691 * infrun.c (wait_for_inferior): Update step_frame_address when
1692 stepping into a new line.
1693
1694 From schwab@issan.informatik.uni-dortmund.de (Andreas Schwab):
1695 * breakpoint.c (breakpoint_1): Add shlib_disabled case to
1696 bpenables array.
1697
c92f31c6
MA
1698Mon May 20 22:52:00 1996 Mark Alexander <marka@cygnus.com>
1699
1700 * dsrec.c (load_srec): Add WAITACK parameter, for machines
1701 like EST visionICE that send back an ACK after each S-record.
1702 * monitor.c (monitor_wait_srec_ack): New function.
1703 (monitor_load): Pass monitor_wait_srec_ack to load_srec
1704 if the monitor's MO_SREC_ACK flag is set.
1705 * monitor.h: Define MO_SREC_ACK flag.
1706 * remote-est.c (est_cmds): Add MO_SREC_ACK flag.
1707 * sh3-rom.c (sh3_load): Accomodate change in load_srec prototype.
1708 * srec.h: Add WAITACK parameter to load_srec prototype.
1709
6a4bfd83
RS
1710Sun May 19 21:22:00 1996 Rob Savoye <rob@chinadoll>
1711
1712 * config/sparc/sparclite.mt: Add the sparc simulator.
1713
41756e56
FF
1714Sun May 19 16:49:37 1996 Fred Fish <fnf@cygnus.com>
1715
1716 * defs.h (read_command_lines, query_hook): Update prototypes.
1717 (readline_begin_hook, readline_hook, readline_end_hook): Declare.
1718 * breakpoint.c (commands_command): Build message in temporary buffer
1719 and pass that, as well as tty control flag, to read_command_lines.
1720 * top.c (readline_begin_hook, readline_hook, readline_end_hook):
1721 Define here.
1722 (command_loop): Check for non-NULL instream before looping.
1723 (command_line_input): Use readline_hook when appropriate, to get
1724 user input from a GUI window.
1725 (read_next_line): Also build prompt if getting user input from a GUI.
1726 (recurse_read_control_structure): Fix typo in comment.
1727 (read_command_lines): Use passed in prompt and tty flag to decide how
1728 to build message. Use readline_begin_hook when appropriate, to set
1729 up a GUI interaction window. Just return head, whether NULL or not,
1730 after using readline_end_hook to complete GUI interaction.
1731 (define_command, document_command): Build message in a temporary
1732 buffer and pass it to read_command_lines, along with tty flag.
1733
1734start-sanitize-gdbtk
1735 * gdbtk.c (gdbtk_readline_begin, gdbtk_readline, gdbtk_readline_end):
1736 New functions.
1737 (tk_command_loop): Set instream to NULL to enable Tk user interaction.
1738 (gdbtk_init): Set readline_begin_hook, readline_hook,
1739 and readline_end_hook.
1740 * gdbtk.tcl (gdbtk_tcl_readline_begin, gdbtk_tcl_readline,
1741 gdbtk_tcl_readline_end): New functions.
1742 (tclsh): Pack scroll bar on right side of window, not left.
1743end-sanitize-gdbtk
1744
f0c56658
PS
1745Sat May 18 02:43:58 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1746
1747 * blockframe.c (frameless_look_for_prologue):
1748 Add FUNCTION_START_OFFSET only if func_start is non-zero.
1749 * minsyms.c (lookup_minimal_symbol_by_pc): Return NULL if
1750 pc is not in a known section.
1751 * stack.c (print_frame_info): Remove check for fi->pc in known
1752 section, now handled by lookup_minimal_symbol_by_pc.
1753
81ae689a
FF
1754start-sanitize-gdbtk
1755Fri May 17 13:54:34 1996 Fred Fish <fnf@cygnus.com>
1756
1757 * gdbtk.tcl (create_command_window): Change a misspelled "get"
1758 to the intended "cget".
1759 (delete_line): Fix so it deletes the current line at the
1760 insertion cursor.
1761end-sanitize-gdbtk
1762
6a4547c0
SS
1763Fri May 17 13:31:04 1996 Stan Shebs <shebs@andros.cygnus.com>
1764
1765 * sh-stub.c: New file, was config/sh/stub.c.
1766
b8f3d4c6 1767start-sanitize-gdbtk
5bac2b50
FF
1768Thu May 16 19:20:29 1996 Fred Fish <fnf@fishfood.ninemoons.com>
1769
1770 * gdbtk.tcl (gdb_prompt): Set this early on.
1771 (create_command_window): Use gdb_prompt rather than "(gdb) ".
1772 (gdbtk_tcl_preloop): Proc executed just prior to Tk main loop.
1773 (tclsh): If an evaluation window already exists, just bring it
1774 to the front instead of trying to create another.
1775 * gdbtk.c (tk_command_loop): New function.
1776 (gdbtk_init): Call tk_command_loop rather than Tk_MainLoop.
1777
954a4a2a
FF
1778Thu May 16 16:16:35 1996 Fred Fish <fnf@cygnus.com>
1779
1780 * gdbtk.tcl (evaluate_tcl_command, tclsh): New functions that
1781 implement a tcl evaluation window for gdbtk maintainers to use.
1782
76e641bd
TT
1783Thu May 16 11:42:58 1996 Tom Tromey <tromey@creche.cygnus.com>
1784
f4e769dc
TT
1785 * gdbtk.tcl (files_command): Correctly insert list of files into
1786 listbox widget.
1787
76e641bd
TT
1788 * gdbtk.tcl (files_command): listbox command no longer accepts
1789 -geometry.
1790
b8f3d4c6
SS
1791Wed May 15 16:04:09 1996 Stan Shebs <shebs@andros.cygnus.com>
1792
1793 * gdbtk.tcl (create_command_window): If command window's buffer
1794 is disabled, don't execute any of the key bindings.
1795end-sanitize-gdbtk
1796
6bafbdfb
JL
1797Wed May 15 08:25:12 1996 Jeffrey A Law (law@cygnus.com)
1798
e7600d8e 1799 * top.c (read_next_line): Fix thinkos. From Donn Seeley.
ecebd693 1800
6bafbdfb
JL
1801 * coffread.c (coff_symtab_read): Handle C_LABEL symbols like
1802 C_STAT symbols.
1803 * h8300-tdep.c (h8300_pop_frame): Reset $sp and $pc correctly.
1804 Flush cached frames just before exiting.
1805 * remote-sim.c (gdbsim_resume): Complain if the program isn't
1806 being run.
1807 * config/h8300/tm-h8300.h (BELIEVE_PCC_PROMOTION): Define.
1808
9b33e492
SG
1809Tue May 14 18:05:16 1996 Stu Grossman (grossman@critters.cygnus.com)
1810
1811 * procfs.c (procfs_thread_alive procfs_stop): Make static.
e7600d8e 1812 (procfs_pid_to_str): New routine to print out thread id's in an
9b33e492
SG
1813 intelligible manner.
1814 * sol-thread.c (sol_thread_fetch_registers): Re-order manner in
b8f3d4c6 1815 which supply_register is called to fix bug with writing
9b33e492
SG
1816 individual regs.
1817 * config/sparc/tm-sun4sol2.h: Define default for
1818 target_pid_to_str in case host lacks libthread_db.
1819
47ef0da5
SG
1820Mon May 13 23:53:30 1996 Stu Grossman (grossman@critters.cygnus.com)
1821
1822 * Makefile.in config.in configure configure.in
1823 config/sparc/nm-sun4sol2.h config/sparc/sun4sol2.mh
1824 config/sparc/tm-sun4sol2.h: Use autoconf to config Solaris thread
1825 and pthread support, since pre-2.5 systems don't come with
1826 libthread_db.so.1.
1827
1828 * procfs.c (info_proc): Use int instead of id_t. Old versions of
e7600d8e 1829 Irix don't seem to define this.
47ef0da5 1830
572977a5
FF
1831start-sanitize-gdbtk
1832Mon May 13 13:43:25 1996 Fred Fish <fnf@cygnus.com>
1833
1834 * gdbtk.c (tk_command): Catch case where no argument is given
1835 since this will cause the tcl interpreter to dump core.
1836end-sanitize-gdbtk
1837
24ecc17a
JL
1838Mon May 13 17:40:58 1996 Jeffrey A Law (law@cygnus.com)
1839
1840 * top.c (execute_control_command, case while_control): Allow
1841 a while command to be interrupted.
1842
a50cedad
SG
1843Mon May 13 16:17:36 1996 Stu Grossman (grossman@critters.cygnus.com)
1844
1845 * sol-thread.c: More cleanup, add comments.
b8f3d4c6 1846 (sol_thread_resume): Prevent people from trying to step
a50cedad 1847 inactive threads.
b8f3d4c6 1848 (sol_thread_wait sol_thread_fetch_registers
a50cedad
SG
1849 sol_thread_store_registers): Remove unnecessary check for
1850 sol_thread_active. These routines won't get called unless threads
1851 are active.
1852
05535e79
SS
1853Mon May 13 11:29:37 1996 Stan Shebs <shebs@andros.cygnus.com>
1854
1855 SH3-E support from Allan Tajii <atajii@hmsi.com>:
1856 * sh-tdep.c (sh_reg_names, sh3_reg_names): Add empty names for
1857 float registers.
1858 (sh3e_reg_names): New register name array.
1859 (sh_processor_type_table): Add sh3e processor type.
1860 * config/sh/tm-sh.h (REGISTER_VIRTUAL_TYPE): Fix test.
1861 (REGISTER_NAMES, NUM_REGS, NUM_REALREGS, etc): Adjust for
1862 full set of registers.
1863 * remote-e7000.c (want_sh3, want_sh3_nopc): New globals.
1864 (e7000_fetch_registers, e7000_wait): Use them.
1865 * sh3-rom.c (sh3_regnames): Add float registers.
1866 (sh3e_cmds, sh3e_ops): New globals.
1867 (sh3e_open): New function.
1868 (_initialize_sh3_rom): Rename from _initialize_sh3, set up
1869 sh3e target vector.
1870
934741a1
SG
1871Fri May 10 15:53:38 1996 Stu Grossman (grossman@lisa.cygnus.com)
1872
1873 * sol-thread.c: Cleanup. gcc -Wall fixes. Add prototypes.
1874 Print out messages instead of codes for thread_db errors. Make
1875 access macros for thread and lwp manipulation. Make cleanups to
1876 fixup inferior_pid in case of errors.
1877
31ed312c
FF
1878Thu May 9 19:06:02 1996 Fred Fish <fnf@cygnus.com>
1879
1880 * aclocal.m4: Remove unused definition of AC_C_CROSS.
1881 * configure.in: Add powerpcle-*-solaris* host and target config
1882 so April 30th change does not get lost next time configure is
1883 rebuilt.
1884
fdfa3315
SG
1885Thu May 9 14:13:08 1996 Stu Grossman (grossman@critters.cygnus.com)
1886
1887 * Makefile.in, breakpoint.c, corelow.c, fork-child.c, inflow.c,
1888 infrun.c, mac-nat.c, procfs.c, remote.c, sol-thread.c, thread.c,
1889 win32-nat.c, config/nm-lynx.h: Rename thread.h to gdbthread.h to
1890 avoid conflict with Solaris /usr/include/thread.h.
1891
7574859f
RS
1892Thu May 9 12:33:32 1996 Rob Savoye <rob@chinadoll.cygnus.com>
1893
1894 * abug-rom.c: Config file for the older style ABug monitor that
1895 runs on the mvme13x boards.
1896 * config/m68k/monitor.mt: Add abug support for m68k cross
1897 debugging.
1898
2ae2f078 1899Wed May 8 20:33:24 1996 Fred Fish <fnf@cygnus.com>
3f37b696 1900
2ae2f078
FF
1901 * infcmd.c (do_registers_info): Always print the raw floating
1902 point value's bytes in big endian order, so the the leftmost bit
1903 is the most significant.
3f37b696
FF
1904 * breakpoint.c (clear_momentary_breakpoints): Remove dead code
1905 that is referenced nowhere else.
1906 (set_breakpoint): Ditto.
1907 (do_enable_breakpoint): Created from enable_once_breakpoint
1908 with a couple of changes.
1909 (enable_breakpoint): Call do_enable_breakpoint with an appropriate
1910 bpdisp enum value to set disposition of breakpoint.
1911 (enable_once_breakpoint): Ditto.
1912 (enable_delete_breakpoint): Ditto.
1913 * breakpoint.h (clear_momentary_breakpoints): Remove prototype.
1914 * symtab.c (find_pc_line): Improve comments.
572977a5 1915start-sanitize-gdbtk
3f37b696 1916 * gdbtk.c: Fix a couple of misspellings.
572977a5 1917end-sanitize-gdbtk
3f37b696
FF
1918 * xcoffread.c: Ditto.
1919
37316b52
SS
1920Tue May 7 18:37:06 1996 Stan Shebs <shebs@andros.cygnus.com>
1921
1922 * target.c (debug_to_xfer_memory): Insert line breaks when
1923 dumping the memory block.
1924
8fc2b417
SG
1925Mon May 6 13:52:52 1996 Stu Grossman (grossman@critters.cygnus.com)
1926
1927 * fork-child.c (fork_inferior), inferior.h: init_trace_fun now
1928 returns a possibly modified pid.
1929 * inftarg.c (ptrace_him): Now returns pid;
1930 * m3-nat.c (m3_trace_him): Now returns pid;
1931 * infcmd.c (run_command): Minor cleanup.
1932 * infrun.c (wait_for_inferior): Add another check for one_stepped
1933 near where we read the pc to avoid erroneously setting
1934 random_signal for multi-threaded support.
1935 * procfs.c: Add support for Solaris LWPs. Remove def of
1936 LOSING_POLL. Many cleanups... Several workarounds for Solaris
1937 lossage. System call entry and exit are now handled by
1938 dynamically registered handlers.
1939 * (syscallname): Don't barf when handed an unknown syscall
1940 number.
1941 * (info_proc_syscalls): Ditto.
1942 * sol-thread.c: New file. Implements Solaris thread support.
1943 * symfile.c (symbol_file_add): Add call to target_new_objfile to
1944 notify target-dependent code about new symbol tables.
1945 * (clear_symtab_users): Call target_new_objfile to notify it of
1946 the removal of all symbol tables.
1947 * target.c (push_target): Make sure that to_close is non-zero
1948 before calling it.
1949 * target.h (target_new_objfile): Provide default.
1950 * config/alpha/nm-osf2.h: Define LOSING_POLL because this version
1951 of OSF can't hack using poll with /proc.
1952 * config/sparc/nm-sun4sol2.h (target_new_objfile): Define to be
1953 sol-thread-new-objfile.
1954 * config/sparc/sun4sol2.mh: Add sol-thread.o to NATDEFFILES, and
1955 add libthread_db.so.1 to NAT_CLIBS.
1956 * config/sparc/tm-sun4sol2.h: Define PIDGET, TIDGET, and
1957 target_pid_to_str.
1958
1959Sat May 4 02:13:34 1996 N Srin Kumar <nsrin@wipinfo.soft.net>
1960
1961 * procfs.c (remove_fd): Fix copy of fds to fill hole left after
1962 removal of the requested fd.
1963
8678180e
MM
1964Mon May 6 07:52:48 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1965
1966 * rs6000-tdep.c (_initialize_rs6000_tdep): Don't do XCOFF specific
1967 hooks under ELF.
1968
1969 * config/powerpc/tm-ppc-eabi.h: Define ELF_OBJECT_FORMAT.
1970
9e9cf822
SS
1971start-sanitize-gdbtk
1972Thu May 2 19:17:49 1996 Stan Shebs <shebs@andros.cygnus.com>
1973
1974 * gdbtk.tcl (debug_interface): New global, use to aid debugging.
1975 (insert_breakpoint_tag, delete_breakpoint_tag): Fix range.
1976 (file_popup_menu): Delete, never used.
1977 (listing_window_popup): Rename from listing_window_button_1,
1978 remove breakpoint toggling code.
1979 (toggle_breakpoint): New procedure.
1980 (create_file_win): Bind popup menu to button 2, toggle breakpoints
1981 with button 1 in breakpoint area, add display of tagged areas if
1982 debugging on.
1983end-sanitize-gdbtk
1984
e51481f9
JL
1985Thu May 2 12:46:14 1996 Jeffrey A Law (law@cygnus.com)
1986
9e9cf822 1987 From Peter Schauer:
e51481f9
JL
1988 * breakpoint.h (enum bpdisp): Add del_at_next_stop.
1989 * breakpoint.c (insert_breakpoints, watchpoint_check,
1990 bpstat_stop_status): Avoid bad references to memory freed via
1991 delete_breakpoint on watchpoints going out of scope.
1992 Do not delete these watchpoints, disable them and change their
1993 disposition to del_at_next_stop instead.
1994 (breakpoint_auto_delete): Delete all breakpoints whose disposition
1995 is del_at_next_stop.
1996 (breakpoint_init_inferior): Use switch to avoid reference to
1997 already deleted breakpoint.
1998
062cb0d3
FF
1999Wed May 1 17:29:18 1996 Fred Fish <fnf@cygnus.com>
2000
9e9cf822 2001 * Makefile.in (rs6000-nat.o): Depend on xcoffsolib.h.
062cb0d3 2002 * config/rs6000/rs6000.mh (NATDEPFILES): Move xcoffread.o ...
9e9cf822 2003 * config/rs6000/rs6000.mt (TDEPFILES): ... to here.
062cb0d3
FF
2004 * xcoffsolib.c (xcoff_relocate_symtab_hook): Define and initialize.
2005 (solib_info): Call xcoff_relocate_symtab via the hook.
2006 (sharedlibrary_command): Ditto.
2007 * xcoffread.c: Remove all FAKING_RS6000 comments and defines.
2008 (xcoff_add_toc_to_loadinfo_hook): Define and initialize here.
2009 (xcoff_init_loadinfo_hook): Define and initialize here.
2010 (scan_xcoff_symtab): Call xcoff_add_toc_to_loadinfo via the hook.
2011 (xcoff_initial_scan): Call xcoff_init_loadinfo via the hook.
2012 * xcoffsolib.h (xcoff_relocate_symtab_hook): Declare extern func.
2013 * rs6000-tdep.c (_initialize_rs6000_tdep): Add initializations
2014 of xcoff_add_toc_to_loadinfo_hook and xcoff_init_loadinfo_hook.
2015 * rs6000-nat.c (_initialize_core_rs6000): Add initialization
2016 of xcoff_relocate_symtab_hook.
2017
fe8d28cf
MM
2018Tue Apr 30 13:22:02 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2019
2020 * configure (powerpcle-*-solaris*): Add Solaris support.
2021
2022 * config/powerpc/{solaris.m[ht],tm-solaris.h}: New files for
2023 Solaris support.
aad09779
DP
2024
2025Mon Apr 29 16:17:31 1996 Dawn Perchik <dawn@cygnus.com>
9e9cf822 2026
aad09779
DP
2027 * c-valprint.c (c_val_print): Fix printing for arrays defined
2028 with 0 length.
2029
5a2934b4
SS
2030Sun Apr 28 15:08:05 1996 Stan Shebs <shebs@andros.cygnus.com>
2031
fea17b55
SS
2032 Support for bi-endian remote breakpoints.
2033 * remote.c (big_break_insn, little_break_insn): New globals.
2034 (break_insn): Remove.
2035 (remote_insert_breakpoint, remote_remove_breakpoint): Use own
2036 code if REMOTE_BREAKPOINT defined, otherwise call memory
2037 breakpoint functions.
2038 * config/sh/tm-sh.h (REMOTE_BREAKPOINT): Remove.
2039 (BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT): Define.
2040
5a2934b4
SS
2041 * mon960-rom.c (mon960_cmds): Remove forward decl.
2042 (mon960_load): Use current_monitor instead of mon960_cmds.
2043 (mon960_regnames): Remove backslashes from line ends.
2044 (_initialize_mon960): Fix documentation string.
2045
d2c17d4f
FF
2046Sun Apr 28 12:10:35 1996 Fred Fish <fnf@cygnus.com>
2047
2048 * symfile.h (psymbol_allocation_list): Expand comments which
2049 describe the psymbol allocation list and how each field is
2050 used.
2051
39ce6829
PS
2052Sun Apr 28 03:44:30 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2053
2054 * breakpoint.c (delete_breakpoint): Fix bpt->val, bpt->exp
2055 storage leaks.
2056 (breakpoint_re_set_one): Fix b->exp, b->val, b->cond storage leaks.
2057
2058 * infcmd.c (run_command), solib.c (locate_base): Check for
2059 target_has_execution in addition to inferior_pid, a core file
2060 from a threaded program is yielding a non-zero inferior_pid.
2061
2062 * sparc-tdep.c (get_saved_register): Handle window registers
2063 in a dummy frame correctly.
2064
6c0643e3
FF
2065Sat Apr 27 20:38:32 1996 Fred Fish <fnf@cygnus.com>
2066
2067 * Makefile.in (CLIBS): Move $(MMALLOC) past all other libs,
2068 so that anything that wants an allocation function not yet pulled
2069 in, will get it from mmalloc rather than a system library.
2070 * Makefile.in (INSTALLED_LIBS): Reorder to match order of CLIBS,
2071 to avoid surprising results when used.
2072
00d93b6d
DP
2073Sat Apr 27 00:12:05 1996 Dawn Perchik (dawn@cygnus.com)
2074
2075 * stabsread.c: Changes and bug fixes for cfront support.
2076 Fix bug for class data members.
2077 Fix parsing bug when no base classes exist.
2078 Fix memory bug - allocate space for cplusplus specific info.
2079 Add support for static data.
2080 Add prototypes for static functions.
2081 Enhance comments to show what each function expects to parse.
2082 Cleanup code.
2083 * stabsread.c(resolve_cont),dbxread.c(resolve_cont): Rename
2084 function to resolve_cfront_continuation.
2085
7dbb5eed
JL
2086Fri Apr 26 23:58:26 1996 Jeffrey A Law (law@cygnus.com)
2087
2088 * infrun.c (wait_for_inferior): Call registers_changed when
6cc17fd5 2089 restarting the inferior to get over a nullified instruction.
7dbb5eed 2090
73e75264 2091Tue Apr 24 12:12:55 1996 Dawn Perchik (dawn@cygnus.com)
7dbb5eed 2092
73e75264
DP
2093 * dbxread.c,stabsread.c,gdbtypes.c,partial-stab.h,valops.c:
2094 Add new support for parsing cfront stabs.
2095
894d8e69
JL
2096Wed Apr 24 00:32:55 1996 Jeffrey A Law (law@cygnus.com)
2097
2098 * infrun.c (wait_for_inferior): Move "have_waited" label
2099 outside of #ifdef conditionals. Don't trash the wait status
2100 if we get a signal and the current instruction is nullified.
2101
2102Mon Apr 22 20:17:01 1996 Fred Fish <fnf@cygnus.com>
2103
9e9cf822 2104 * Makefile.in (VERSION): Bump version number to 4.16.1.
894d8e69
JL
2105 * NEWS: Update for 4.16 release.
2106
178ed338
SS
2107Mon Apr 22 16:32:29 1996 Stan Shebs <shebs@andros.cygnus.com>
2108
2109 * monitor.h: Clean up comment formatting.
2110 (current_monitor): Remove decl.
2111 (LOADTYPES, LOADPROTOS, INIT_CMD, etc): Remove definitions.
2112 (push_monitor, SREC_SIZE): Remove.
2113 * monitor.c: Expand old macro into current_monitor derefs
2114 everywhere.
2115 * remote-os9k.c (current_monitor): Remove definition.
2116
f9fedc48
MA
2117Mon Apr 22 14:54:45 1996 Mark Alexander <marka@superball.cygnus.com>
2118
2119 * corefile.c (specify_exec_file_hook): Allow arbitrary number of
2120 hooks.
2121 (call_extra_exec_file_hooks): New function.
2122 * h8300-tdep.c: Lint; add .h files to provide missing declarations,
2123 remove unused variables.
2124 (set_machine_hook): New function.
2125 (_initialize_h8300m): Initialize it.
2126
102f473b
ILT
2127Fri Apr 19 15:03:49 1996 Ian Lance Taylor <ian@cygnus.com>
2128
2129 * remote-mips.c (encoding): Don't specify size, to avoid bug in
2130 SunOS native compiler.
2131
69159fad
SS
2132Thu Apr 18 18:46:57 1996 Stan Shebs <shebs@andros.cygnus.com>
2133
2134 * monitor.c: Use int rather than LONGEST for values, since
2135 the formatting strings are not prepared to accept long longs.
2136
e1b4f287
DE
2137Wed Apr 17 20:17:27 1996 Doug Evans <dje@canuck.cygnus.com>
2138
2139 * arm-tdep.c (initialize_arm_tdep): Make apcs32 a `zinteger'.
2140
8eff3c7f
SG
2141Tue Apr 16 17:38:23 1996 Stu Grossman (grossman@critters.cygnus.com)
2142
2143 * corelow.c (add_to_thread_list): Make sure reg_sect is non-null
2144 before de-referencing it. Prevents deref of NULL pointer if core
2145 file lacks .reg section.
2146 * defs.h: Rename floatformat_{to from}_long_double to
2147 floatformat_{to from}_doublest. Get rid of FLOATFORMAT_{TO
2148 FROM}... macros.
2149 * findvar.c (extract_floating store_floating): Change all refs to
2150 FLOATFORMAT_{FROM TO}... to floatformat_{from to}_doublest.
2151 * utils.c: Change floatformat_{to from}_long_double to
2152 floatformat_{to from}_doublest cuz the new routines will use
2153 whatever size (double or long double) is appropriate.
2154 * config/i960/tm-i960.h (REGISTER_CONVERT_TO_VIRTUAL
2155 REGISTER_CONVERT_TO_RAW): Change FLOATFORMAT... macros to
2156 floatformat... routine calls.
2157
15b03b57
PB
2158Mon Apr 15 16:34:11 1996 Per Bothner <bothner@kalessin.cygnus.com>
2159
2160 * stabsread.c (read_type): Move handling of '@' from type
2161 number handling to handling of types proper (as emitted by gcc!).
2162 For typedefs, allocate the typedef type before reading its
2163 definition, to properly handling recursive types.
2164
c5ee9d00
JL
2165Mon Apr 15 11:19:26 1996 Jeffrey A Law (law@cygnus.com)
2166
2167 * ch-exp.c (calculate_array_length): Fix prototype.
2168
449abd89
SG
2169Sat Apr 13 14:21:16 1996 Stu Grossman (grossman@critters.cygnus.com)
2170
2171 * remote-nindy.c (nindy_open): Acquire more target state so that
2172 user can attach to a previously running program.
2173 * (nindy_fetch_registers nindy_store_registers): Get rid of fp
2174 conversion code. That's all handled in {extract store}_floating
2175 now.
2176 * utils.c (floatformat_to_double): Don't bias exponent when
2177 handling zero's, denorms or NaNs.
2178 * config/i960/tm-i960.h (REGISTER_CONVERT_TO_VIRTUAL
2179 REGISTER_CONVERT_TO_RAW): Change to using DOUBLST and
2180 FLOATFORMAT_TO/FROM_DOUBLEST macros.
2181 * config/i960/tm-nindy960.h: Undefine
2182 REGISTER_CONVERT_TO_VIRTUAL, REGISTER_CONVERT_TO_RAW, and
2183 REGISTER_CONVERTIBLE. These are no longer necessary now that all
2184 the magic happens in extract/store_floating.
2185
9898b3b7
PS
2186Sat Apr 13 02:58:02 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2187
2188 * eval.c (evaluate_subexp_standard): Report error when attempting to
2189 evaluate subscripts for types which cannot be subscripted.
2190
2191 * valarith.c (value_x_binop, value_x_unop): Add noside parameter.
2192 Return a zero value with the return type of the member function
2193 if noside is EVAL_AVOID_SIDE_EFFECTS instead of calling the member
2194 function.
2195 * values.h (value_x_binop, value_x_unop): Update prototypes
2196 accordingly.
2197 * eval.c (evaluate_subexp_standard): Update all callers of
2198 value_x_binop, value_x_unop accordingly.
2199
2200 * valarith.c (value_neg, value_complement): Perform ANSI C/C++
2201 integral promotion on operands.
2202
38d715a4
FF
2203Fri Apr 12 13:19:27 1996 Fred Fish <fnf@cygnus.com>
2204
2205 * README: Update for 4.16 release.
2206 * configure.in (AC_CHECK_FUNCS): Also check for sbrk.
2207 * configure: Regenerate with autoconf.
2208 * config.in: Regenerate with autoheader.
2209 * main.c (main): Only use sbrk() when HAVE_SBRK is defined.
2210 * top.c (command_loop): Ditto.
2211
c6fbd98b
SG
2212Fri Apr 12 09:45:29 1996 Stu Grossman (grossman@critters.cygnus.com)
2213
2214 * defs.h: Define TARGET_{FLOAT DOUBLE LONG_DOUBLE}_FORMAT
2215 defaults for bi-endian targets. Replace function pointers for
2216 floatformat routines with macros. No need for these to be runtime
2217 selectable.
2218 * findvar.c: Get rid of floatformat function pointers. Use
2219 macros in extract_floating and store_floating.
2220 * remote-nindy.c (nindy_fetch_registers nindy_store_registers):
2221 Use floatformat macros.
2222
d8efbc66
FF
2223Thu Apr 11 21:28:02 1996 Fred Fish <fnf@cygnus.com>
2224
2225 From: Miles Bader <miles@gnu.ai.mit.edu>
2226 * configure.in (AC_CHECK_HEADERS): check for endian.h.
2227 Use AC_CHECK_TOOL to find AR & RANLIB. Add AC_PROG_AWK.
2228 Add host & target cases for i[345]86-*-gnu*.
2229 * config.in: Regenerate with autoheader.
2230 * configure: Regenerate with autoconf.
2231 * Makefile.in (AR, AWK): Set from corresponding autoconf substs.
2232 (init.c): Don't scan mig-generated files.
2233 * defs.h (endian.h): Include if HAVE_ENDIAN_H defined.
2234 * config/nm-m3.h (ATTACH_NO_WAIT): Define.
2235 * infcmd.c (attach_command): Use "#ifndef ATTACH_NO_WAIT"
2236 rather than "#ifndef MACH".
2237
4eaf7c0a
SS
2238Thu Apr 11 18:49:42 1996 Stan Shebs <shebs@andros.cygnus.com>
2239
2240 * remote.c (remotewritesize): New GDB variable, controls size
2241 of memory packets sent to the target.
2242
a243a22f
SG
2243Thu Apr 11 13:47:52 1996 Stu Grossman (grossman@critters.cygnus.com)
2244
2245 * dcache.c: Add prototypes. Make many functions static.
2246 * (dcache_peek dcache_fetch dcache_poke): Make dcache_fetch and
2247 dcache_poke call dcache_xfer_memory directly in order to fix
2248 problems with turning off dcache. dcache_peek is now unnecessary,
2249 so it goes away.
2250
2251 * defs.h: Define new macros HOST_{FLOAT DOUBLE LONG_DOUBLE}_FORMAT
2252 and TARGET_{FLOAT DOUBLE LONG_DOUBLE}_FORMAT to specify a pointer
2253 to a struct floatformat. This allows for better handling of
2254 targets whose floating point formats differ from the host by more
2255 than just byte order.
2256 * (floatformat_to_long_double floatformat_from_long_double):
2257 Prototypes for new functions in utils.c.
2258 * (floatformat_to_doublest floatformat_from_doublest): Prototypes
2259 for pointers to floating point conversion functions. The actual
2260 function uses either double or long double if the host supports it.
2261 * findvar.c (floatformat_to_doublest floatformat_from_doublest):
2262 Initialize to point at correct function depending on HAVE_LONG_DOUBLE.
2263 * (extract_floating store_floating): Rewrite. Now, if host fp
2264 format is the same as the target, we just do a copy. Otherwise,
2265 we call floatformat_{to from}_doublest.
2266 * remote-nindy.c (nindy_xfer_inferior_memory): Change param
2267 `write' to `should_write'.
2268 * utils.c (floatformat_to_long_double
2269 floatformat_from_long_double): New routines that implement long
2270 double versions of functions in libiberty/floatformat.c.
2271 * config/i960/tm-i960.h (TARGET_LONG_DOUBLE_FORMAT): Define this for
2272 i960 extended real (80 bit) numbers.
2273 * nindy-share/nindy.c (ninMemGet ninMemPut): Return number of bytes
2274 actually read or written.
2275
f046f4c8
WM
2276Wed Apr 10 02:56:06 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
2277
2278 * ch-valprint.c (chill_val_print): Remove call to calculate_array_length.
2279 (calculate_array_length): Move function from here ...
2280
2281 * ch-exp.c (calculate_array_length): ... to here.
2282 (parse_primval): If we have a symbol with an array type
2283 and the length is 0, call calculate_array_length.
2284
a539f6d8
WM
2285Tue Apr 9 01:23:05 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
2286
2287 * eval.c (evaluate_subexp_standard): In case of TYPE_CODE_SET:
2288 Add some checks for powerset compatibility.
2289
2290 * valops.c (value_slice): Use lowbound instead of lowerbound for
2291 call to slice_range_type to get correct bounds.
2292
d8efbc66 2293Mon Apr 8 12:53:56 1996 Fred Fish <fnf@cygnus.com>
5579919f
FF
2294
2295 * Makefile.in (scm-exp.o, scm-lang.o, scm-valprint.o): Add targets and
2296 dependencies.
2297 * scm-lang.c (gdb_string.h): Include.
2298 * objfiles.c (add_to_objfile_sections): Cast second arg of obstack_grow
2299 call to correct type (char *).
2300 * cp-valprint.c (cp_print_static_field): Ditto.
2301 * somsolib.c (som_solib_create_inferior_hook): Add a declaration
2302 for external find_unwind_entry function (from hppa-tdep.c).
2303 * remote-pa.c (remote_write_bytes, remote_read_bytes): Change
2304 type of second arg to "char *" to be type compatible with
2305 dcache.
2306 (remote_wait): Cast second arg to strtol to correct type.
2307 * hppa-tdep.c (compare_unwind_entries): Change argument types to
2308 "const void *" to be type compatible with qsort, and then
2309 assign to local args prior to use.
2310
75eb5231
JL
2311Mon Apr 8 15:35:52 1996 Jeffrey A Law (law@cygnus.com)
2312
2313 * infptrace.c (kill_inferior): Remove call to "kill"; update
2314 comments.
2315
7782ee45
GN
2316Mon Apr 8 14:05:07 1996 Geoffrey Noer <noer@cygnus.com>
2317
2318 * remote-e7000.c: don't append :23 to target port if __WIN32__
2319 is defined (it's WinGDB).
2320
ce0787ef
FF
2321Sun Apr 7 22:34:29 1996 Fred Fish <fnf@cygnus.com>
2322
2323 From: Miles Bader <miles@gnu.ai.mit.edu>
2324 * gnu-nat.c, gnu-nat.h, msg.defs, exc_request.defs, i386gnu-nat.c,
2325 msg_reply.defs, notify.defs, process_reply.defs, reply_mig_hack.awk,
2326 config/nm-gnu.h, config/i386/{i386gnu.mh, i386gnu.mt, nm-gnu.h,
2327 m-i386gnu.h, xm-i386gnu.h}: New files for GNU hurd.
2328
2329Sun Apr 7 13:32:41 1996 Fred Fish <fnf@cygnus.com>
125c17af
FF
2330
2331 * configure.in (case host): Add i386sco5 host.
2332 * configure: Regenerate.
2333
2334 From: Robert Lipe <robertl@dgii.com>
2335 Add support for SCO OpenServer 5 (a.k.a. 3.2v5*) This
2336 target is an SVR3.2 with COFF, ELF, and shared libes, but
2337 no /proc.
2338 * config/i386/i386sco5.mh: New file.
2339 * config/i386/nm-i386sco5.h: New file.
2340
a6b65627
FF
2341Sat Apr 6 08:55:22 1996 Fred Fish <fnf@cygnus.com>
2342
2343 * bcache.c (bcache): When size of chunk to cache is exactly equal to
2344 BCACHE_MAXLENGTH, stash chunk as unique copy.
2345
eae8aa30
FF
2346Sat Apr 6 00:46:26 1996 Fred Fish <fnf@cygnus.com>
2347
2348 * symfile.c (INLINE_ADD_PSYMBOL): Remove ifdef.
2349 (add_psymbol_to_list): Add an arg for passing CORE_ADDR values and
2350 use it, rather than calling add_psymbol_addr_to_list.
2351 (add_psymbol_addr_to_list): Delete.
2352 (add_psymbol_to_list): Make psymbol static to avoid random data in
2353 gaps due to alignment of structure members.
2354 * symfile.h (INLINE_ADD_PSYMBOL, ADD_PSYMBOL_TO_LIST,
2355 ADD_PSYMBOL_ADDR_TO_LIST): Remove. Real world tests show no
2356 performance improvements by inlining via complicated macros and
2357 they just make gdb larger and harder to maintain.
2358 * dwarfread.c (add_enum_psymbol): Replace ADD_PSYMBOL_TO_LIST
2359 and/or ADD_PSYMBOL_ADDR_TO_LIST macro(s) with call to
2360 add_psymbol_to_list with appropriate long or CORE_ADDR args.
2361 (add_partial_symbol): Ditto.
2362 * partial-stab.h: Ditto.
2363 * os9kread.c (read_os9k_psymtab): Ditto
2364 * mdebugread.c (parse_partial_symbols): Ditto.
2365 (handle_psymbol_enumerators): Ditto.
2366 (demangle.h): Include.
2367 * hpread.c (hpread_build_psymtabs): Ditto.
2368 (hpread_build_psymtabs): Ditto.
2369 (demangle.h): Include
2370
51bea8cf 2371start-sanitize-gdbtk
fda6fadc
SS
2372Fri Apr 5 13:44:40 1996 Stan Shebs <shebs@andros.cygnus.com>
2373
2374 * gdbtk.c (running_now): New global variable.
2375 (gdb_cmd): Test it before executing any command.
2376 (gdbtk_call_command): Set it when inferior is running.
2377 * gdbtk.tcl (gdbtk_tcl_busy, gdbtk_tcl_idle): Enable and
2378 disable interaction with command window's text appropriately.
2379
8b3f9ed6
MM
2380Fri Apr 5 13:25:42 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2381
2382 * gdbtk.c (SIOCSPGRP, linux): If on Linux, undef SIOCSPGRP, since
2383 some versions of the kernel don't support it.
51bea8cf 2384end-sanitize-gdbtk
8b3f9ed6 2385
72ae15f6
FF
2386Thu Apr 4 20:16:55 1996 Fred Fish <fnf@cygnus.com>
2387
2388 * configure.in: Check for setpgid function.
2389 * config.in: Regenerate with autoheader.
2390 * configure: Regenerate with autoconf.
2391 * inflow.c (_initialize_inflow): Only try to use _SC_JOB_CONTROL
2392 if it is actually defined.
2393 (gdb_setpgid): Use HAVE_SETPGID.
2394 * ch-exp.c: Change include of <string.h> to "gdb_string.h".
fda6fadc
SS
2395 * c-exp.y, f-exp.y, m2-exp.y: Ditto.
2396 * c-exp.y, serial.c: Include <ctype.h>.
72ae15f6
FF
2397 * config/m68k/nm-news.h: Add typedef for pid_t which is
2398 apparently missing from <sys/types.h>. Enclose entire
2399 file in NM_NEWS_H ifndef and define when included.
2400 * config/mips/nm-news-mips.h: Ditto.
2401 * config/m68k/tm-m68k.h (REGISTER_CONVERT_TO_VIRTUAL,
2402 REGISTER_CONVERT_TO_RAW): Change name of temporary variable.
2403
67c1413d
SS
2404Thu Apr 4 19:04:18 1996 Stan Shebs <shebs@andros.cygnus.com>
2405
72c9954b
SS
2406 * arm-xdep.c: Move native-specific code to here from arm-tdep.c.
2407 * arm-tdep.c (arm_apcs_32): New global.
2408 (arm_addr_bits_remove, arm_saved_pc_after_call,
2409 arm_push_dummy_frame, arm_pop_frame): New functions.
2410 (arm_skip_prologue): Updated version from Richard Earnshaw.
2411 (_initialize_arm_tdep): Add set/show "apcs32".
2412 * config/arm/tm-arm.h (ADDR_BITS_REMOVE): Call
2413 arm_addr_bits_remove.
2414 (SAVED_PC_AFTER_CALL): Call arm_saved_pc_after_call.
2415 (frame_find_saved_regs): Declare properly.
2416 (PUSH_DUMMY_FRAME): Call arm_push_dummy_frame.
2417 (POP_FRAME): Call arm_pop_frame, use ADDR_BITS_REMOVE instead of
2418 explicit mask.
2419 * config/arm/nm-arm.h: New file.
2420 * config/arm/xm-arm.h (KERNEL_U_ADDR, FETCH_INFERIOR_REGISTERS):
2421 Move definitions to nm-arm.h.
2422 * config/arm/arm.mh (NAT_FILE): Define.
2423
67c1413d
SS
2424 * symfile.c (generic_load): Initialize data_count properly.
2425
3e3ee48f
FF
2426Thu Apr 4 17:17:53 1996 Fred Fish <fnf@cygnus.com>
2427
2428 * symmisc.c (print_objfile_statistics): Print memory used by
2429 psymbol cache obstack.
2430
72158e71
SS
2431Thu Apr 4 15:43:07 1996 Stan Shebs <shebs@andros.cygnus.com>
2432
2433 * symfile.c (report_transfer_performance): New function.
2434 (generic_load): Call it to report transfer rate.
2435 * remote-e7000.c (e7000_load): Ditto.
2436
761e98aa
SS
2437Mon Apr 1 16:31:00 1996 Stan Shebs <shebs@andros.cygnus.com>
2438
2439 * mpw-make.sed: Change references to config.h to be in objdir,
2440 edit out rules to rebuild config.h.
2441
251b8ab9
FF
2442Mon Apr 1 08:32:23 1996 Fred Fish <fnf@cygnus.com>
2443
2444 * hppa-tdep.c (hppa_pop_frame): Call clear_proceed_status before
2445 proceeding.
2446
517cb8d7 2447Sun Mar 31 16:15:43 1996 Fred Fish <fnf@cygnus.com>
771f63d3
FF
2448
2449 * hppah-nat.c (store_inferior_registers, store_inferior_registers,
2450 fetch_register, child_xfer_memory): Use call_ptrace function supplied
2451 by infptrace.c rather than calling ptrace directly.
2452
32b18604
SS
2453Sun Mar 31 15:39:00 1996 Stan Shebs <shebs@andros.cygnus.com>
2454
2455 * mon960-rom.c: Cleanups and elimination of unused code,
2456 clarify documentation string.
2457 (mon960_serial, mon960_ttyname): Remove.
2458 * config/i960/tm-mon960.h (ADDITIONAL_OPTIONS,
2459 ADDITIONAL_OPTION_CASES, ADDITIONAL_OPTION_HELP): Remove.
2460
07b77f5c
FF
2461Sat Mar 30 11:00:22 1996 Fred Fish <fnf@cygnus.com>
2462
2463 * configure.in: Check whether printf family supports printing
2464 long doubles or not and define PRINTF_HAS_LONG_DOUBLE if so.
2465 * acconfig.h: Provide default undef for PRINTF_HAS_LONG_DOUBLE.
2466 * configure: Regenerate.
2467 * valprint.c (print_floating): Use PRINTF_HAS_LONG_DOUBLE.
2468 * c-exp.y (parse_number): Use PRINTF_HAS_LONG_DOUBLE.
2469 * configure.in: Fix have_gregset and have_fpregset autoconf
2470 variable names so that they match the pattern required to
2471 cache them.
2472
b52cac6b
FF
2473Fri Mar 29 21:39:56 1996 Fred Fish <fnf@cygnus.com>
2474
2475 * core-aout.c (fetch_core_registers): Cast core_reg_size to int
2476 before testing against reg_ptr.
2477 * eval.c (evaluate_subexp_standard): Cast type of
2478 TYPE_FN_FIELD_VOFFSET to int.
2479 * findvar.c (extract_signed_integer, extract_unsigned_integer,
2480 extract_long_unsigned_integer): Cast type of sizeof to int.
2481 * values.c (unpack_field_as_long, modify_field): Ditto.
2482 * valops.c (value_assign, call_function_by_hand): Ditto.
2483 * infcmd.c (do_registers_info): Ditto.
fda6fadc 2484 * ser-tcp.c (tcp_open): Ditto.
b52cac6b
FF
2485 * remote.c (putpkt): Ditto.
2486 * dcache.c (dcache_peek): Ditto.
2487 * dcache.c (dcache_poke): Ditto.
2488 * m2-exp.y (yylex): Ditto.
2489 * gnu-regex.c (re_match_2): Ditto.
2490 * f-lang.c (ADD_BF_SYMNUM, saved_bf_list_end, tmp_bf_ptr): Ifdef
2491 out unused macro definition and variables.
2492 * inftarg.c (proc_wait): Move from main.c to here, and make static.
2493 * valprint.c (val_print_string): Change bufsize from int to unsigned.
fda6fadc 2494 * main.c (wait.h): Include.
b52cac6b
FF
2495 * top.c (command_line_input): Remove unused variable "c".
2496 * f-typeprint.c (f_type_print_varspec_prefix): Add missing enum
2497 value TYPE_CODE_TYPEDEF to switch statement.
2498 (f_type_print_varspec_suffix): Add missing enum value
2499 TYPE_CODE_TYPEDEF to switch statement.
2500 * ch-exp.c (parse_primval): Add remaining enumeration values to
2501 switch statement, with no specific action.
2502 (ch_lex): Add LOC_UNRESOLVED in switch statement.
2503 (pushback_token): Ifdef out, since code using it is ifdef'd out.
2504 * stabsread.c (cleanup_undefined_types): Remove unused label
2505 "badtype".
2506 * objfiles.h (print_symbol_bcache_statistics): Add prototype.
2507 * maint.c (objfiles.h): Include.
2508 (maintenance_print_statistics): Remove unused variable "temp".
2509 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove
2510 unused variable "found_file_symbol".
2511 * m2-exp.y (yylex): Add LOC_UNRESOLVED case to switch.
2512 * language.c (lang_bool_type): Use existing function local type
2513 variable rather than create block local variables.
2514 * solib.c (disable_break): Enclose in ifndef SVR4_SHARED_LIBS.
2515 * infptrace.c (wait.h, command.h): Include.
2516 * ser-tcp.c (gdb_string.h): Include
2517 * i386-tdep.c (codestream_seek): Change "place" to CORE_ADDR.
2518 (i386_get_frame_setup): Change "pc" from int to CORE_ADDR.
2519 * command.c (complete_on_enum): Make assignment used as truth value
2520 explictly check against NULL.
2521 (wait.h): Include.
2522 * infrun.c (wait_for_inferior): Ifdef out prologue_pc since code
2523 that uses it is ifdef'd out.
2524 * parser-defs.h: Add prototype for write_dollar_variable.
2525 * infrun.c: Add prototype for write_pc_pid.
2526 * breakpoint.h: Add prototype for re_enable_breakpoints_in_shlibs.
2527 * symmisc.c (bcache.h): Include.
2528 * bcache.h: Add prototype for print_bcache_statistics.
2529 * symfile.c: Include <time.h>.
2530 * printcmd.c (print_scalar_formatted): Change len to unsigned int.
2531 * valarith.c (value_equal): Cast result of TYPE_LENGTH to int.
2532 * valarith.c (value_binop): Change result_len, promoted_len1,
2533 and promoted_len2 to unsigned int.
2534 * valarith.c (value_subscripted_rvalue): Change elt_offs and
2535 elt_size to unsigned int.
2536 * valops.c (value_array): Change typelength to unsigned int.
2537 (destructor_name_p): Change len to unsigned int.
2538 * scm-lang.h (scm_parse): Add prototype for scm_unpack.
2539 * symfile.c (decrement_reading_symtab): Change return type to void.
2540 * valarith.c (value_subscript): Remove unused variable "word".
2541 (value_subscript): Remove unused variable "tint".
2542 * valops.c (auto_abandon): Ifdef out, since code using it is also
2543 ifdef'd out.
2544 * eval.c (init_array_element): Remove unused variable "val".
2545 * Makefile.in (values.o): Depends on scm-lang.h.
2546 (command.o): Depends upon wait_h.
2547 (ser-tcp.o): Depends upon gdb_string.h.
2548 (infptrace.o): Depends upon wait_h and command_h.
2549 (maint.o): Depends on objfiles.h and symfile.h.
2550 * values.c (allocate_repeat_value): Remove unused variable
2551 "element_type".
2552 (scm-lang.h): Include.
2553 * breakpoint.c (create_longjmp_breakpoint): Enclose in
2554 GET_LONGJMP_TARGET define, unused otherwise.
2555 * config/i386/nm-linux.h: Add prototypes for i386_insert_watchpoint,
2556 i386_remove_watchpoint and i386_stopped_by_watchpoint.
2557
078aeca4
DE
2558Thu Mar 28 12:53:19 1996 Doug Evans <dje@canuck.cygnus.com>
2559
2560 * configure.in (sparc64-*-solaris2*): Delete.
2561 Stick with sparc-*-solaris2*.
2562 * configure: Regenerated.
2563
75225aa2
FF
2564Thu Mar 28 06:51:26 1996 Fred Fish <fnf@cygnus.com>
2565
2566 * valops.c (value_assign): Make copy of internal variable value
2567 before returning it as a new value, since it is owned by the
2568 internal variable and will be freed along with it.
2569
fa3764e2
JL
2570Wed Mar 27 08:36:17 1996 Jeffrey A Law (law@cygnus.com)
2571
2572 * From Peter Schauer.
2573 * breakpoint.c (breakpoint_re_set_one): Keep temporary
2574 breakpoints bp_until, bp_finish, bp_watchpoint_cope, bp_call_dummy
2575 and bp_step_resume in case breakpoint_re_set_one is called due
2576 to a step over a dlopen call.
2577 * infrun.c (wait_for_inferior): Always remove breakpoints from
2578 inferior in BPSTAT_WHAT_CHECK_SHLIBS case.
2579
7e2ff10d
FF
2580Tue Mar 26 13:15:32 1996 Fred Fish <fnf@cygnus.com>
2581
2582 * config/mips/tm-mips.h (COERCE_FLOAT_TO_DOUBLE): Only prefer
2583 non-prototyped case over prototyped case for C.
2584 * config/pa/tm-hppa.h (COERCE_FLOAT_TO_DOUBLE): Ditto.
2585
4cfb23a9
FF
2586Sat Mar 23 17:24:28 1996 Fred Fish <fnf@cygnus.com>
2587
2588 * os9kread.c (os9k_process_one_symbol): Note nonportable
2589 assumption that an int can hold a char *.
2590
2591 * bcache.h (struct hashlink): Wrap data[] inside union with
2592 double to force longest alignment.
2593 (BCACHE_DATA): New macro to access data[].
2594 (BCACHE_ALIGNMENT): New macro to get offset to data[].
2595 * bcache.c (lookup_cache, bcache): Use BCACHE_DATA to get
2596 address of cached data. Use BCACHE_ALIGNMENT to compute
2597 amount of space to allocate for each hashlink struct.
2598
b9aa6215
FF
2599Sat Mar 23 12:14:02 1996 Fred Fish <fnf@cygnus.com>
2600
2601 * ch-lang.c (evaluate_subexp_chill): Fix typo.
2602
2603Thu Mar 21 08:27:19 1996 Fred Fish <fnf@cygnus.com>
2604
2605 * Makefile.in (VERSION): Bump version to 4.15.3
2606
18ea4416
ILT
2607Thu Mar 21 10:56:41 1996 Ian Lance Taylor <ian@cygnus.com>
2608
2609 * config.in: Rename from config.h.in.
2610 * configure.in: Call AC_CONFIG_HEADER with config.h:config.in.
2611 Change CONFIG_HEADERS test in AC_OUTPUT accordingly.
2612 * configure: Rebuild.
2613 * Makefile.in (stamp-h): Depend upon config.in, not config.h.in.
2614 Set CONFIG_HEADERS to config.h:config.in.
2615
67718369
PS
2616Tue Mar 19 12:47:51 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2617
2618 * partial-stab.h (case N_ENDM): Finish current partial symbol
2619 table for Solaris 2 cc.
2620
a466b86a
JL
2621Tue Mar 19 10:39:15 1996 Jeffrey A Law (law@cygnus.com)
2622
2623 * rs6000-nat.c (exec_one_dummy_insn): Don't clobber the
2624 PC in the registers array. From Peter Schauer.
2625
0ef22be9
FF
2626Mon Mar 18 13:47:09 1996 Fred Fish <fnf@cygnus.com>
2627
2628 * symfile.c (reread_symbols): Reinitialize bcache struct
2629 members to zero using memset. Also use memset to reinit
2630 global_psymbols and static_psymbols, rather than explicitly
2631 resetting each structure member.
2632
31520669
FF
2633Sat Mar 16 19:47:36 1996 Fred Fish <fnf@cygnus.com>
2634
2635 * configure.in: Add fragment to create stamp-h.
2636
2637 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
2638 * configure.in (AC_CHECK_HEADERS): Check for link.h.
2639 * configure: Regenerate with autoconf.
2640 * config.h.in: Regenerate with autoheader.
2641 * config/i386/nm-linux.h: Include solib.h only if HAVE_LINK_H
2642 is defined.
2643 * solib.c: Exclude most of the code if HAVE_LINK_H is not defined.
2644 * config/i386/linux.mh: Reinstate XM_CLIBS, it is needed for
2645 older a.out based systems.
2646
bfcf3112 2647Sat Mar 16 16:45:43 1996 Fred Fish <fnf@cygnus.com>
db210d08 2648
bfcf3112 2649 * config.h.in: New file.
db210d08
FF
2650 * acconfig.h: New file, for autoheader.
2651 * configure.in (AC_CONFIG_HEADER): Add, generate config.h.
2652 * configure: Regenerate.
2653 * Makefile.in (defs_h): Add config.h
bfcf3112
FF
2654 (distclean): Remove config.h and stamp-h during distclean.
2655 (config.h, stamp-h): New targets to remake config.h when necessary.
db210d08
FF
2656 * defs.h (config.h): Include before any other includes or defines.
2657 * i386-tdep.c (gdb_string.h): Move include after include of defs.h.
d58ffc6c 2658 * i386v4-nat.c (defs.h): Include before testing HAVE_SYS_PROCFS_H.
db210d08 2659
d5fde1c9
FF
2660Sat Mar 16 14:55:27 1996 Fred Fish <fnf@cygnus.com>
2661
2662 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
2663 * Makefile.in (INSTALLED_LIBS): Make sure that @LIBS@ will not
2664 result in an empty line, to work around a bug in native Ultrix 4.4
2665 and OSF/1-3.2C make.
2666
3dedc867
FF
2667Sat Mar 16 13:33:17 1996 Fred Fish <fnf@cygnus.com>
2668
2669 * configure.in: Add gdbserver to configdirs under linux.
2670 * configure: Regenerate.
2671
f727efb5
C
2672Fri Mar 15 12:06:58 1996 J.T. Conklin <jtc@rtl.cygnus.com>
2673
2674 * config/i386/nm-nbsd.h (FLOAT_INFO): Comment out.
2675 * config/i386/tm-nbsd.h (NUM_REGS): Define.
2676
a404ea25
JL
2677Thu Mar 14 10:31:18 1996 Jeffrey A Law (law@cygnus.com)
2678
2679 * solib.c (solib_break_names): Add _r_debug_state for
2680 vanilla SVR4 implementations. From Peter Schauer.
2681
2682Mon Mar 11 14:24:57 1996 Dawn Perchik <dawn@critters.cygnus.com>
2683
2684 * mon960-rom.c: New file; support mon960 rom monitor on i960.
2685 * monitor.c (monitor_debug): Change remotedebug to buffer strings.
2686 * monitor.c (monitor_open): Add test for flag MO_NO_ECHO_ON_OPEN before
2687 epecting prompt and echo during open.
2688 * monitor.c (monitor_stop): Add test for flag MO_SEND_BREAK_ON_OPEN to
2689 determine if break should be sent as stop command.
2690 * monitor.h: Add flags MO_NO_ECHO_ON_OPEN and MO_SEND_BREAK_ON_OPEN.
2691 * i960-tdep.c (mon960_frame_chain_valid): New function for getting
2692 stack frame on mon960.
2693 * Makefile.in: Add mon960 files.
2694 * configure.in: Changed i960-*-coff* and i960-*-elf* to target mon960;
2695 added i960-nindy-coff* and i960-nindy-elf* for target nindy.
2696 * configure: Regenerated.
2697 * config/i960/mon960.mt, config/i960/tm-mon960.h: New files;
2698 support mon960 rom monitor on i960.
2699
1ef980b9
SC
2700Mon Mar 11 11:02:47 1996 Steve Chamberlain <sac@slash.cygnus.com>
2701
2702 With Michael Snyder:
2703 * i386-tdep.c (skip_trampoline_code): Fix strncmp length.
2704 * win32-nat.c (CHECK, DEBUG*, debug_*): New.
2705 (handle_load_dll): Don't reload symbols.
2706 (handle_exception): Use the DEBUG_* names.
2707 (child_wait): Add DEBUG_* code.
2708 (_initialize_inftarg): Add new commands to set debug_ names.
2709
803a31a3
JL
2710Mon Mar 11 09:19:58 1996 Jeffrey A Law (law@cygnus.com)
2711
2712 * From Peter Schauer:
2713 * breakpoint.c (insert_breakpoints): Use ALL_BREAKPOINTS_SAFE.
2714 (bpstat_stop_status): Likewise.
2715 (remove_solib_event_breakpoints): Likewise.
2716 (clear_momentary_breakpoints): Likewise.
2717 (re_enable_breakpoints_in_shlibs): Don't reenable a breakpoint
2718 if we still can't read the memory for that breakpoint.
2719 (mention): Add bp_shlib_event case to keep gcc quiet.
2720
2721Fri Mar 8 12:08:12 1996 Jeffrey A Law (law@cygnus.com)
2722
2723 * breakpoint.h (enum enable): New enum shlib_disabled for
2724 shared library breakpoints that have been temporarily disabled.
2725 * breakpoint.c: Handle temporarily disabled shared library
2726 breakpoints like disabled breakpoints in most places.
2727 (insert_breakpoints): Use shlib_disabled to indicate
2728 that an unsettable breakpoint is only temporarily disabled.
2729 (re_enable_breakpoints_in_shlibs): New function.
2730 * corelow.c (solib_add_stub): After adding shared libraries,
2731 try to reenable any temporarily disabled breakpoints.
2732 * infcmd.c (attach_command): Likewise.
2733 * infrun.c (wait_for_inferior): Likewise.
2734
4972c44e
ILT
2735Fri Mar 8 11:41:25 1996 Ian Lance Taylor <ian@cygnus.com>
2736
2737 * defs.h (extract_long_unsigned_integer): Declare.
2738 * findvar.c (extract_long_unsigned_integer): New function.
2739 * printcmd.c (print_scalar_formatted): Use it.
2740 * valprint.c (val_print_type_code_int): Likewise.
2741
00dd4fd9
SS
2742Thu Mar 7 17:40:50 1996 Stan Shebs <shebs@andros.cygnus.com>
2743
2744 * infcmd.c (do_registers_info): Ignore anonymous registers.
2745 * sh-tdep.c (set processor): New command to set specific
2746 processor type.
2747 (sh_reg_names, sh3_reg_names): Arrays of register names for
2748 SH and SH3 processors.
2749 (sh_set_processor_type): New function.
2750 * sh3-rom.c (sh3_open): Call it.
2751 (sh3_regname): Add names of all the bank registers.
2752 (sh3_supply_register): Clean up formatting.
2753 * config/sh/tm-sh.h (NUM_REGS, NUM_REALREGS): Increase to include
2754 bank registers.
2755 (REGISTER_NAMES): Add names of bank registers.
2756 (FP15_REGNUM): Define.
2757 (REGISTER_VIRTUAL_TYPE): Use it.
2758 * monitor.c: Clean up some comments.
2759
43ece84d
C
2760Thu Mar 7 12:09:51 1996 J.T. Conklin <jtc@rtl.cygnus.com>
2761
2762 * i386b-nat.c: Revert part of Mar 5 change. FreeBSD collapsed the
2763 s* and t* symbols too.
2764
5a367b09
JSC
2765Thu Mar 7 15:18:51 1996 James G. Smith <jsmith@cygnus.co.uk>
2766
2767 * symfile.c (generic_load): Avoid division by zero.
2768
653fed07
JL
2769Wed Mar 6 17:57:59 1996 Jeffrey A Law (law@cygnus.com)
2770
2771 * breakpoint.c (bfd_lookup_symbol): Provide for all SVR4 systems,
2772 not just those with HANDLE_SVR4_EXEC_EMULATORS.
27b6a1fa 2773
00dd4fd9 2774 From Peter Schauer:
27b6a1fa
JL
2775 * breakpoint.c (internal_breakpoint_number): Move to file scope.
2776 (create_solib_event_breakpoint): Use an internal breakpoint number.
2777
bb901438
WM
2778Wed Mar 6 00:32:44 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
2779
2780 * valarith.c (value_in): Change builtin_type_chill_bool to
2781 LA_BOOL_TYPE.
2782
c105168f
WM
2783Tue Mar 5 23:48:36 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
2784
2785 * ch-exp.c (parse_primval): Handle CARD, MAX, MIN.
2786 (match_string_literal): Handle control sequence.
2787 (match_character_literal): Deto.
2788
2789 * ch-lang.c (chill_printchar): Change formating of nonprintable
2790 characters from C'xx' to ^(num).
2791 (chill_printstr): Deto.
2792 (value_chill_card, value_chill_max_min): New functions to process
2793 Chill's CARD, MAX, MIN.
2794 (evaluate_subexp_chill): Process UNOP_CARD, UNOP_CHMAX, UNOP_CHMIN.
2795
2796 * expression.h (exp_opcode): Add UNOP_CARD, UNOP_CHMAX, UNOP_CHMIN
2797 for Chill's CARD, MAX, MIN.
2798
2799 * valarith.c (value_in): Add processing of TYPE_CODE_RANGE
2800 and change return type from builtin_type_int to
2801 builtin_type_chill_bool.
2802
d009ffd8
SS
2803Tue Mar 5 18:54:04 1996 Stan Shebs <shebs@andros.cygnus.com>
2804
b4692cbc
SS
2805 * config/nm-nbsd.h (link_object, lo_name, etc): Move to here
2806 from config/nm-nbsd.h.
2807 * config/sparc/nm-nbsd.h (regs, fp_status, etc): Move to here
2808 from config/sparc/tm-nbsd.h.
2809
d009ffd8
SS
2810 * config/m68k/nm-hp300hpux.h (FIVE_ARG_PTRACE): Define here
2811 instead of in config/m68k/xm-hp300hpux.h.
2812
d554e554
C
2813Tue Mar 5 12:05:35 1996 J.T. Conklin <jtc@rtl.cygnus.com>
2814
2815 * i386b-nat.c, m68knbsd-nat.c (fetch_core_registers): Provide
2816 implementation for NetBSD systems.
2817
02e6e53d
PB
2818Mon Mar 4 23:44:16 1996 Per Bothner <bothner@kalessin.cygnus.com>
2819
8d67b75a
PB
2820 * valarith.c (binop_user_defined_p): Return 0 for BINOP_CONCAT.
2821 (value_concat): Handle varying strings (add COERCE_VARYING_ARRAY).
2822
02e6e53d
PB
2823 * ch-lang.c (evaluate_subexp_chill case MULTI_SUBSCRIPT): Error
2824 if "function" is pointer to non-function.
2825
f935141e
SS
2826Mon Mar 4 17:47:03 1996 Stan Shebs <shebs@andros.cygnus.com>
2827
2828 * top.c (print_gdb_version): Update copyright year.
2829
11be829f
JL
2830Mon Mar 4 14:44:54 1996 Jeffrey A Law (law@cygnus.com)
2831
f935141e 2832 From Peter Schauer:
11be829f
JL
2833 * infrun.c (wait_for_inferior): Remove breakpoints and
2834 switch terminal settings before calling SOLIB_ADD.
2835 * solib.c (enable_break, SVR4 variant): Don't map in symbols
2836 for the dynamic linker, the namespace pollution causes real
2837 problems.
2838
4f005fea
JSC
2839Sun Mar 3 17:18:57 1996 James G. Smith <jsmith@cygnus.co.uk>
2840
2841 * remote-mips.c (common_breakpoint): Explicitly terminate the
2842 returned buffer.
2843
cf3c0938
SS
2844Wed Feb 28 22:32:18 1996 Stan Shebs <shebs@andros.cygnus.com>
2845
2846 From Wilfried Moser <wilfried.moser@aut.alcatel.at>:
2847 * remote.c (remote_detach): Send a command 'D' to the target
2848 when detaching, update the function's comments.
2849
647e52ea
SG
2850Thu Jun 6 16:11:38 1996 Miles Bader <miles@gnu.ai.mit.edu>
2851
2852 * gnu-nat.c (thread_cmd_list): New declaration.
2853 (parse_int_arg): New function.
2854
2855Wed Jun 5 17:28:04 1996 Miles Bader <miles@gnu.ai.mit.edu>
2856
2857 * gnu-nat.h (struct proc): Add DETACH_SC field.
2858 * gnu-nat.c (make_proc): Set DETACH_SC.
2859 (struct inf): Add DETACH_SC & DEFAULT_THREAD_DETACH_SC fields.
2860 (make_inf): Set DETACH_SC & DEFAULT_THREAD_DETACH_SC fields.
2861 (add_thread_commands): Add set/show for detach-suspend-count.
2862 Add takeover-suspend-count cmd.
2863 (inf_detach): Set suspend counts to the detach SC, not 0.
2864 (set_thread_detach_sc_cmd, show_thread_detach_sc_cmd,
2865 set_task_detach_sc_cmd, show_task_detach_sc_cmd,
2866 set_thread_default_thread_detach_sc_cmd,
2867 show_thread_default_thread_detach_sc_cmd): New functions.
2868 (show_task_cmd): Also show detach-suspend-count values.
2869 (thread_takeover_sc_cmd): New function.
2870
2871Fri May 31 16:49:24 1996 Miles Bader <miles@gnu.ai.mit.edu>
2872
2873 * gnu-nat.c (show_thread_run_cmd): Actually print state.
2874
2875Thu May 30 10:47:56 1996 Miles Bader <miles@gnu.ai.mit.edu>
2876
2877 * gnu-nat.c (inf_signal): Make unforwardable exceptions an error.
2878
2879Tue May 28 17:06:36 1996 Miles Bader <miles@gnu.ai.mit.edu>
2880
2881 * gnu-nat.c (inf_validate_stopped): proc_getprocinfo takes a
2882 pointer to the flags now, not the flags themselves.
2883
2884Mon May 27 13:31:17 1996 Miles Bader <miles@gnu.ai.mit.edu>
2885
2886 * gnu-nat.c (gnu_wait): Print debugging msgs for pending execs.
2887 (gnu_create_inferior): Check return from ptrace.
2888
2889Sun May 26 16:56:35 1996 Miles Bader <miles@gnu.ai.mit.edu>
2890
2891 * gnu-nat.h (struct proc): Add DEAD field.
2892 * gnu-nat.c (make_proc): Initialize DEAD.
2893 (inf_set_traced, inf_validate_task_sc, inf_validate_procs: Frob it.
2894 (gnu_wait): Only abort for 0 threads if the task isn't dead.
2895
2896Sat May 25 17:06:05 1996 Miles Bader <miles@gnu.ai.mit.edu>
2897
2898 * gnu-nat.c (inf_signal): Pass SIGCODE when posting a signal.
2899
2900Wed May 22 18:44:28 1996 Miles Bader <miles@gnu.ai.mit.edu>
2901
2902 * gnu-nat.c (S_proc_wait_reply): Add SIGCODE argument.
2903 (inf_set_traced): Only give no-signal-thread error message if
2904 turning *on* tracing.
2905
2906Wed May 15 13:03:16 1996 Miles Bader <miles@gnu.ai.mit.edu>
2907
2908 * gnu-nat.c (inf_validate_procs): If INF has no threads, always
2909 set inf->threads_up_to_date to 0.
2910 (inf_signal): Pass in new SIGCODE argument to msg_sig_post_untraced.
2911 (gnu_wait): Pass in new TIMEOUT arg to interrupt_operation.
2912 (proc_update_sc): Cast thread state arg to thread_set_state.
2913 (proc_get_state): Cast thread state arg to thread_get_state.
2914 (inf_validate_task_sc): Cast task_basic_info arg to task_info.
2915 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Call
2916 inf_update_procs before we lookup the thread.
2917 * config/i386/i386gnu.mh (MH_CFLAGS): New variable.
2918
2919Tue May 7 17:52:33 1996 Miles Bader <miles@gnu.ai.mit.edu>
2920
2921 * gnu-nat.c (gnu_kill_inferior): Use inf_set_task to clear the task.
2922
2923Mon May 6 19:06:49 1996 Miles Bader <miles@gnu.ai.mit.edu>
2924
2925 * gnu-nat.c (inf_set_traced): Use msg_set_init_int with
2926 INIT_TRACEMASK instead of setting the exec flags.
2927
2928Fri May 3 19:10:57 1996 Miles Bader <miles@gnu.ai.mit.edu>
2929
2930 * gnu-nat.c (inf_validate_procs): Don't clear INF->task if we find
2931 the task's died, so others have a chance at it.
2932 (gnu_resume): When single-stepping a single thread, given an error
2933 if there is no such thread. When single-stepping one but running
2934 the others, just given a warning and still run all the threads.
2935 (gnu_wait): If there seem to be no threads, look harder, and
2936 signal an error if there really aren't any.
2937 (gnu_attach): Reset thread numbering to 0.
2938
2939 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Give
2940 thread name in warning messages.
2941
2942 * gnu-nat.c (active_inf): New function.
2943 (show_sig_thread_cmd, show_stopped_cmd): Use it.
2944 (info_port_rights, info_send_rights_cmd, info_port_sets_cmd,
2945 info_recv_rights_cmd, info_port_rights_cmd, info_port_rights_cmd):
2946 New functions.
2947 (add_task_commands): Add new port-right info commands.
2948
2949Fri Apr 26 20:42:16 1996 Miles Bader <miles@gnu.ai.mit.edu>
2950
2951 * gnu-nat.c (gnu_wait): Instead of _hurd_intr_rpc_mach_msg, just
2952 use mach_msg with MACH_RCV_INTERRUPT.
2953 (set_noninvasive_cmd): New function.
2954 (add_task_commands): Add command entry for `set noninvasive'.
2955
2956Mon Mar 4 14:12:02 1996 Miles Bader <miles@gnu.ai.mit.edu>
2957
2958 * gnu-nat.c (gnu_read_inferior): Use hurd_safe_memmove, not safe_bcopy.
2959 (safe_bcopy): Function removed.
2960
2961Mon Dec 4 14:18:26 1995 Miles Bader <miles@gnu.ai.mit.edu>
2962
2963 * gnu-nat.c (proc_update_sc): Assert only threads can have state.
2964 (make_proc): Initialize state_valid & state_changed fields.
2965
2966Tue Nov 28 17:51:21 1995 Miles Bader <miles@gnu.ai.mit.edu>
2967
2968 * reply_mig_hack.awk: New file.
2969
2970Tue Nov 14 14:31:03 1995 Miles Bader <miles@gnu.ai.mit.edu>
2971
2972 * breakpoint.c (breakpoint_1): Print breakpoint thread field.
2973
2974 * lynx-nat.c (child_wait): Return TARGET_WAITKIND_SPURIOUS for new
2975 threads.
2976
2977Mon Nov 13 18:30:53 1995 Miles Bader <miles@gnu.ai.mit.edu>
2978
2979 * target.c (debug_to_check_threads): New function.
2980
2981 * inflow.c (terminal_init_inferior_with_pgrp): New function.
2982 (terminal_init_inferior): Call terminal_init_inferior_with_pgrp.
2983 * inferior.h (terminal_init_inferior_with_pgrp): New declaration,
2984 but only if PROCESS_GROUP_TYPE is defined.
2985
2986Mon Nov 6 16:42:09 1995 Miles Bader <miles@gnu.ai.mit.edu>
2987
2988 * target.c (debug_to_thread_alive): Pass through the return value.
2989
2990Thu Nov 2 18:05:00 1995 Miles Bader <miles@gnu.ai.mit.edu>
2991
2992 * target.c (signals, target_signal_from_host, target_signal_to_host):
2993 Add mach exceptions.
2994 * target.h (enum target_signal): Add mach exceptions.
2995
2996Mon Oct 30 16:41:04 1995 Miles Bader <miles@gnu.ai.mit.edu>
2997
2998 * gnu-nat.c: New file: gnu native backend.
2999 * i386gnu-nat.c: New file: i386-specific part of gnu native backend.
3000 * gnu-nat.h: New file.
3001 * config/nm-gnu.h: New file.
3002 * config/tm-i386gnu.h: New file.
3003 * config/xm-i386gnu.h: New file.
3004 * config/i386/i386gnu.mh: New file.
3005 * config/i386/i386gnu.mt: New file.
3006
8fe2b2c5
FF
3007Wed Feb 28 15:50:12 1996 Fred Fish <fnf@cygnus.com>
3008
3009 * Makefile.in (VERSION): Bump version to 4.15.2 to establish
3010 baseline for gdb 4.16 rerelease testing.
3011
a4f39c06
JL
3012Wed Feb 28 13:32:05 1996 Jeffrey A Law (law@cygnus.com)
3013
3014 * somsolib.c (som_solib_create_inferior_hook): Before returning
3015 call clear_symtab_users.
3016
3017Tue Feb 27 00:04:46 1996 Stu Grossman (grossman@critters.cygnus.com)
3018
3019 * remote-e7000.c (e7000_open): Delete all breakpoints when
3020 connecting to e7000. Change connect message to allow use of
3021 monitor.exp in test suite.
3022 * (e7000_load): Print transfer rate of download.
3023 * symfile.c (generic_load): Print transfer rate of download.
3024
8fa6fcf8
SS
3025Sun Feb 25 13:58:33 1996 Stan Shebs <shebs@andros.cygnus.com>
3026
3027 * configure.in (mips*-*-vxworks*): New config.
3028 * configure: Regenerated.
3029
3030 * config/mips/vxmips.mt, config/mips/tm-vxmips.h: New files.
3031 * remote-vxmips.c (vx_convert_to_virtual, vx_convert_from_virtual):
3032 Remove, never used.
3033
a97a483c
PS
3034Sat Feb 24 12:30:28 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3035
3036 * partial-stab.h (case N_FUN): Function symbols generated
3037 by SPARCworks cc have a meaningless zero value, do not update
3038 pst->textlow if the function symbol value is zero.
3039
3040 * stabsread.c (define_symbol): Initialize SYMBOL_TYPE field
3041 for function prototype declaration symbols.
3042
b5eccf74
SG
3043Fri Feb 23 22:33:04 1996 Stu Grossman (grossman@critters.cygnus.com)
3044
3045 * remote-e7000.c (e7000_load): New routine to download via the
3046 network.
3047 * (e7000_wait): Don't backup PC when we hit a breakpoint.
3048 Apparantly new sh2 pods get this right...
3049 * (e7000_ops): Add call to e7000_load.
3050
b7f3b6d5
C
3051Thu Feb 22 00:52:42 1996 J.T. Conklin <jtc@rtl.cygnus.com>
3052
3053 * config/m68k/{nbsd.mh,nbsd.mt,nm-nbsd.h,tm-nbsd.h,xm-nbsd.h},
3054 m68knbsd-nat.c: New files, support for NetBSD/m68k.
3055
3056 * configure.in (m68k-*-netbsd*): New config.
3057 * configure: Regenerated.
3058
517cb8d7 3059Wed Feb 21 19:00:21 1996 Fred Fish <fnf@cygnus.com>
6a6a552a
FF
3060
3061 * standalone.c (open, _initialize_standalone): Fix obvious typos
3062 reported by Martin Pool <martin@citr.uq.oz.au>.
3063
13f6c7ea
JL
3064Wed Feb 21 14:24:04 1996 Jeffrey A Law (law@cygnus.com)
3065
3066 * solib.c (solib_create_inferior_hook): Fix thinko.
3067
464c6c5f
JL
3068Tue Feb 20 23:59:19 1996 Jeffrey A Law (law@cygnus.com)
3069
3070 * solib.c (solib_break_names): Define for Solaris and Linux.
3071 (enable_break): For SVR4 systems, first try to use the debugger
3072 interfaces in the dynamic linker to track shared library events
3073 as they happen, then fall back to BKPT_AT_SYMBOL code. Convert
3074 BKPT_AT_SYMBOL code to use shared library event breakpoints.
3075 (solib_create_inferior_hook): Simplify BKPT_AT_SYMBOL code,
3076 it no longer needs to restart/wait on the inferior.
3077 * symfile.c (find_lowest_section): No longer static.
3078 * symfile.h (find_lowest_section): Corresponding changes.
3079
517cb8d7 3080Tue Feb 20 18:54:08 1996 Fred Fish <fnf@cygnus.com>
45c5fa78
FF
3081
3082 * valops.c (COERCE_FLOAT_TO_DOUBLE): Define default value.
3083 (value_arg_coerce): Use COERCE_FLOAT_TO_DOUBLE.
3084 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Define to 1.
3085 * config/mips/tm-mips.h: Ditto.
3086 * config/pa/tm-hppa.h: Ditto.
3087 * config/rs6000/tm-rs6000.h: Ditto.
3088 * config/sparc/tm-sparc.h: Ditto.
3089
48d27324
C
3090Tue Feb 20 17:32:05 1996 J.T. Conklin <jtc@rtl.cygnus.com>
3091
eb224848
C
3092 * config/{i386,ns32k}/nbsd.mh (NATDEPFILES): Remove core-aout.o.
3093
48d27324
C
3094 * config/nm-nbsd.h (FETCH_INFERIOR_REGISTERS): Defined.
3095 * config/xm-nbsd.h (CC_HAS_LONG_LONG, PRINTF_HAS_LONG_LONG):
3096 #ifdef'd out definitions --- Causes serious gdb failures on
3097 the i386. Need to investigate further before enabling.
3098
3099 * i386b-nat.c (fetch_inferior_registers, store_inferior_registers,
3100 fetch_core_registers): New functions. These functions are defined
3101 if FETCH_INFERIOR_REGISTERS is set. Registers are fetched/stored
3102 with ptrace PT_GETREGS/PT_SETREGS.
3103
95f6f926
SG
3104Tue Feb 20 16:55:06 1996 Stu Grossman (grossman@critters.cygnus.com)
3105
3106 * findvar.c (extract_floating store_floating): Replace `long
3107 double' with `DOUBLEST'.
3108
cb91ea56
C
3109Mon Feb 19 15:25:51 1996 J.T. Conklin <jtc@rtl.cygnus.com>
3110
3111 * config/xm-nbsd.h (CC_HAS_LONG_LONG, PRINTF_HAS_LONG_LONG):
3112 Define.
3113
9263da6f
JL
3114Mon Feb 19 10:32:05 1996 Jeffrey A Law (law@cygnus.com)
3115
3116 * symtab.h (looup_minimal_symbol_solib_trampoline): Declare.
3117
3118 * breakpoint.h (remove_solib_event_breakpoints): Declare.
3119 * breakpoint.c (remove_solib_event_breakpoints): New function.
3120 * somsolib.c (solib_create_inferior_hook): Remove all solib event
3121 breakpoints before inserting any new ones. Use a solib event
3122 breakpoint for the breakpoint at "_start".
3123 Remove extraneous "\n" from calls to warning.
3124
3125 * breakpoint.c (breakpoint_1): Add missing "sigtramp" to bptypes
3126 name array.
3127
0708e99f
FF
3128Mon Feb 19 01:09:32 1996 Doug Evans <dje@cygnus.com>
3129
3130 * dwarfread.c (add_partial_symbol): Use ADD_PSYMBOL_ADDR_TO_LIST
3131 for CORE_ADDR values.
3132 (new_symbol): Use SYMBOL_VALUE_ADDRESS for CORE_ADDR values.
3133 * symfile.h (add_psymbol_{,addr}to_list): Add prototypes.
3134
08dc1eeb
PS
3135Sun Feb 18 14:37:13 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3136
3137 * mipsread.c (mipscoff_symfile_read): Unconditionally add
3138 alpha coff dynamic symbols for all symbol files. Makes skipping
3139 over the trampoline code work when stepping from a function in a
3140 shared library into a function in a different shared library.
3141
1d6afd7f
SG
3142Sun Feb 18 09:27:10 1996 Stu Grossman (grossman@cygnus.com)
3143
3144 * config/sparc/tm-sparc.h: Define PS_FLAG_CARRY. Define
3145 RETURN_VALUE_ON_STACK to return long doubles on the stack.
3146
0708e99f 3147Sat Feb 17 16:33:11 1996 Fred Fish <fnf@cygnus.com>
176b2bee
FF
3148
3149 * Makefile.in (ch-exp.o): Add dependencies.
3150 (various): Add gdb_string.h to dependencies that need it.
3151
dcb6a7c0
FF
3152Sat Feb 17 08:57:50 1996 Fred Fish <fnf@cygnus.com>
3153
3154 * symmisc.c (print_symbol_bcache_statistics): Update description for
3155 printing byte cache statistics.
3156
aa220473
SG
3157Thu Feb 16 16:02:03 1996 Stu Grossman (grossman@cygnus.com)
3158
3159 * Add native support for long double data type.
3160 * c-exp.y (%union): Change dval to typed_val_float. Use DOUBLEST
3161 to store actual data. Change types of INT and FLOAT tokens to
3162 typed_val_int and typed_val_float respectively. Create new token
3163 DOUBLE_KEYWORD to specify the string `double'. Make production
3164 for FLOAT use type determined by parse_number. Add production for
3165 "long double" data type.
3166 * (parse_number): Use sscanf to parse numbers as float, double or
3167 long double depending upon the type of typed_val_float.dval. Also
3168 allow user to specify `f' or `l' suffix to explicitly specify
3169 float or long double constants. Change typed_val to
3170 typed_val_int.
3171 * (yylex): Change typed_val to typed_val_int. Also, scan for
3172 "double" keyword.
3173 * coffread.c (decode_base_type): Add support for T_LNGDBL basic
3174 type.
3175 * configure, configure.in: Add check for long double support in
3176 the host compiler.
3177 * defs.h: Define DOUBLEST appropriatly depending on whether
3178 HAVE_LONG_DOUBLE (from autoconf) is defined. Also, fix prototypes
3179 for functions that handle this type.
3180 * expression.h (union exp_element): doubleconst is now type
3181 DOUBLEST.
3182 * m2-exp.y f-exp.y (%union): dval becomes type DOUBLEST.
3183 * findvar.c (extract_floating): Make return value be DOUBLEST.
3184 Also, add support for numbers with size of long double.
3185 * (store_floating): Arg `val' is now type DOUBLEST. Handle all
3186 floating types.
3187 * parser-defs.h parse.c (write_exp_elt_dblcst): Arg expelt is now
3188 DOUBLEST.
3189 * valarith.c (value_binop): Change temp variables v1, v2 and v to
3190 type DOUBLEST. Coerce type of result to long double if either op
3191 was of that type.
3192 * valops.c (value_arg_coerce): If argument type is bigger than
3193 double, coerce to long double.
3194 * (call_function_by_hand): If REG_STRUCT_HAS_ADDR is defined, and
3195 arg type is float and > 8 bytes, then use pointer-to-object
3196 calling conventions.
3197 * valprint.c (print_floating): Arg doub is now type DOUBLEST.
3198 Use appropriate format and precision to print out floating point
3199 values.
3200 * value.h: Fixup prototypes for value_as_double,
3201 value_from_double, and unpack_double to use DOUBLEST.
3202 * values.c (record_latest_value): Remove check for invalid
3203 floats. Allow history to store them so that people may examine
3204 them in hex if they want.
3205 * (value_as_double unpack_double): Change return value to DOUBLEST.
3206 * (value_from_double): Arg `num' is now DOUBLEST.
3207 * (using_struct_return): Use RETURN_VALUE_ON_STACK macro (target
3208 specific) to expect certain types to always be returned on the stack.
3209
2ad5709f
FF
3210Fri Feb 16 14:00:54 1996 Fred Fish <fnf@cygnus.com>
3211
3212 * bcache.c, bcache.h: New files to implement a byte cache.
3213 * Makefile.in (SFILES): Add bcache.c.
3214 (symtab_h): Add bcache.h.
3215 (HFILES_NO_SRCDIR): add bcache.h
3216 (COMMON_OBJS): Add bcache.o
3217 (bcache.o): New target.
3218 * dbxread.c (start_psymtab): Make global_syms & static_syms
3219 type "partial_symbol **".
3220 * hpread.c (hpread_start_symtab): Ditto.
3221 * os9kread.c (os9k_start_psymtab): Ditto.
3222 * stabsread.h (start_psymtab): Ditto.
3223 * {symfile.c, symfile.h} (start_psymtab_common): Ditto.
3224 * maint.c (maintenance_print_statistics): Call
3225 print_symbol_bcache_statistics.
3226 * objfiles.c (allocate_objfile): Initialize psymbol bcache malloc
3227 and free pointers.
3228 * solib.c (allocate_rt_common_objfile): Ditto.
3229 * symfile.c (reread_symbols): Ditto.
3230 (free_objfile): Free psymbol bcache when objfile is freed.
3231 (objfile_relocate): Use new indirect psymbol pointers.
3232 * objfiles.h (struct objfile): Add psymbol cache.
3233 * symfile.c (compare_psymbols): Now passed pointers to pointers to
3234 psymbols.
3235 (reread_symbols): Free psymbol bcache when freeing other objfile
3236 resources.
3237 (add_psymbol_to_list, add_psymbol_addr_to_list): Initialize new
3238 psymbol using the psymbol bcache.
3239 (init_psymbol_list): Psymbol lists now contain pointers rather than
3240 the actual psymbols.
3241 * symfile.h (psymbol_allocation_list): Psymbol lists now dynamically
3242 grown arrays of pointers.
3243 (ADD_PSYMBOL_VT_TO_LIST): Initialize new symbol using the psymbol
3244 bcache.
3245 * symmisc.c (print_partial_symbols): Now takes pointer to pointer
3246 to partial symbol.
3247 (print_symbol_bcache_statistics): New function to print per objfile
3248 bcache statistics.
3249 (print_partial_symbol, print_partial_symbols,
3250 maintenance_check_symtabs, extend_psymbol_list):
3251 Account for change to pointer to pointer to partial symbol.
3252 * symtab.c (find_pc_psymbol, lookup_partial_symbol, decode_line_2,
3253 make_symbol_completion_list):
3254 Account for change to pointer to pointer to partial symbol.
3255 * symtab.h (bcache.h): Include.
3256 * xcoffread.c (xcoff_start_psymtab): Make global_syms & static_syms
3257 type "partial_symbol **".
3258
4a1d2ce2
FF
3259Fri Feb 16 10:02:34 1996 Fred Fish <fnf@cygnus.com>
3260
3261 * dwarfread.c (free_utypes): New function.
3262 (read_file_scope): Call free_utypes as cleanup, rather than just
3263 freeing the utypes pointer.
3264
81afee37
FF
3265Thu Feb 15 21:40:52 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3266
3267 * demangle.c (is_cplus_marker): New function, checks if a
3268 character is one of the commonly used C++ marker characters.
3269 * defs.h (is_cplus_marker): Add prototype.
3270 * c-typeprint.c (c_type_print_base), ch-lang.c (chill_demangle),
3271 cp-valprint.c (cp_print_class_method), mdebugread.c (parse_symbol),
3272 stabsread.c (define_symbol, read_member_functions, read_struct_fields),
3273 symtab.h (OPNAME_PREFIX_P, VTBL_PREFIX_P, DESTRUCTOR_PREFIX_P),
3274 values.c (vb_match): Use is_cplus_marker instead of comparison
3275 with CPLUS_MARKER.
3276
14b22711
FF
3277Thu Feb 15 18:08:13 1996 Fred Fish <fnf@cygnus.com>
3278
3279 * symfile.h (INLINE_ADD_PSYMBOL): Default this to 0 and possibly
3280 delete entirely someday.
3281
884fb64c
SS
3282Thu Feb 15 15:25:34 1996 Stan Shebs <shebs@andros.cygnus.com>
3283
3284 * mpw-make.sed: Edit out makefile rebuild rule.
3285 (host_alias, target_alias): Comment out instead of deleting.
3286 (@LIBS@): Edit out references.
3287
f1d39876
FF
3288Tue Feb 13 22:56:46 1996 Fred Fish <fnf@cygnus.com>
3289
3290 * symfile.c (add_psymbol_to_list, add_psymbol_addr_to_list):
3291 Use n_psyms in OBJSTAT, not psyms.
3292
3293Mon Feb 12 15:59:31 1996 Doug Evans <dje@charmed.cygnus.com>
3294
3295 * configure.in (sparclet-*-aout*): New config.
3296 * configure: Regenerated.
3297
c37c7c6c
FF
3298Mon Feb 12 14:17:52 1996 Fred Fish <fnf@cygnus.com>
3299
3300 * somsolib.c (som_solib_add): Use xmalloc rather than bare
3301 unchecked call to malloc.
3302 * remote-mips.c (pmon_load_fast): ditto.
3303 * remote-mm.c (mm_open): ditto.
3304 * hpread.c (hpread_lookup_type): ditto.
3305 * remote-adapt.c (adapt_open): ditto.
3306
6405302d
FF
3307Mon Feb 12 13:11:32 1996 Fred Fish <fnf@cygnus.com>
3308
3309 * f-lang.c (allocate_saved_bf_node, allocate_saved_function_node,
3310 allocate_saved_f77_common_node, allocate_common_entry_node,
3311 add_common_block): Use xmalloc rather than malloc, some of which
3312 were unchecked.
3313 * gnu-regex.c: At same point as other gdb specific changes
3314 #undef malloc and then #define it to xmalloc.
3315 * ch-exp.c (growbuf_by_size): Use xmalloc/xrealloc rather than
3316 bare unchecked calls to malloc/realloc.
3317 * stabsread.c (dbx_lookup_type): Use xmalloc rather than bare
3318 unchecked call to malloc.
3319
ff7116e2
SG
3320Wed Feb 7 11:31:26 1996 Stu Grossman (grossman@cygnus.com)
3321
3322 * symtab.c (gdb_mangle_name): Change opname var to be const to
3323 match return val of cplus_mangle_name.
3324 * i960-tdep.c: Change arg types of next_insn to match callers.
3325
b0ee0cf2
FF
3326Wed Feb 7 07:34:24 1996 Fred Fish <fnf@cygnus.com>
3327
3328 * config/i386/linux.mh (XM_CLIBS, GDBSERVER_LIBS): Remove. These
3329 apparently aren't needed in any reasonably recent version of
3330 linux.
3331
ec49fc98
PB
3332Tue Feb 6 21:37:03 1996 Per Bothner <bothner@kalessin.cygnus.com>
3333
3334 * stabsread.c (read_range_type): If !self-subrange and language
3335 is Chill, assume a true range. If a true_range is a sub_subrange,
3336 use builtin_type_int for index_type.
3337
3338Tue Feb 6 18:38:51 1996 J.T. Conklin <jtc@slave.cygnus.com>
3339
3340 * nindy-share/nindy.c (say): Use stdarg.h macros when compiling
3341 with an ANSI compiler.
3342
f0b0d915
TT
3343start-sanitize-gdbtk
3344Tue Feb 6 16:31:25 1996 Tom Tromey <tromey@creche.cygnus.com>
3345
3346 * gdbtk.tcl (create_file_win): Eliminate text widget B1 binding so
3347 double-clicking will work again.
3348 (create_asm_win): Put "break" at end of all B1 bindings.
3349 (create_file_win): Lower "sel" tag, don't raise it.
3350 (ensure_line_visible): New proc.
3351 (update_listing, update_assembly): Use it.
3352 (create_copyright_window): Destroy window on Leave event.
3353 (create_command_window): Put "break" at end of all B2 bindings.
3354
3355end-sanitize-gdbtk
263af172
SC
3356Mon Feb 5 18:24:28 1996 Steve Chamberlain <sac@slash.cygnus.com>
3357
3358 From Michael_Snyder@NeXT.COM (Michael Snyder):
3359 * valops.c (value_arg_coerce): Coerce float to double, unless the
3360 function prototype specifies float.
3361
fc71ad23 3362Mon Feb 5 09:51:55 1996 Tom Tromey <tromey@creche.cygnus.com>
8bdae156 3363
fc71ad23
TT
3364 * language.c (set_language_command): Use languages table when
3365 printing available languages.
3366
3367Sat Feb 3 12:22:05 1996 Fred Fish <fnf@cygnus.com>
3368
3369 Fix problems reported by Hans Verkuil (hans@wyst.hobby.nl):
3370 * command.c (add_cmd): Add missing initialization for enums member.
3371 Reorder members to match structure declaration to make it easier to
3372 tell when one is missing.
3373 * exec.c (exec_file_command): Fix problem where filename in malloc'd
3374 memory is referenced after being freed.
8bdae156 3375
255181a9
PS
3376Sat Feb 3 03:26:21 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3377
3378 * dwarfread.c (read_func_scope): Avoid GDB core dumps if
3379 AT_name tag is missing.
3380
3381 * procfs.c (procfs_stopped_by_watchpoint): Fix logic when
3382 FLTWATCH and FLTKWATCH are defined.
3383
3384 * remote.c (remote_read_bytes): Advance memaddr for transfers,
3385 return number of bytes transferred for partial reads.
3386
3387 * top.c (init_signals): Reset SIGTRAP to SIG_DFL.
3388
454ffae5
SC
3389Fri Feb 2 13:40:50 1996 Steve Chamberlain <sac@slash.cygnus.com>
3390
3391 * win32-nat.c (mappings): Add ppc registers.
9a763320 3392 (child_resume): Turn off step for ppc.
454ffae5 3393
3d78f532
SC
3394Thu Feb 1 10:29:31 1996 Steve Chamberlain <sac@slash.cygnus.com>
3395
3396 * config/powerpc/(cygwin32.mh, cygwin32.mt, tm-cygwin32.h,
3397 xm-cygwin32.h): New.
3398 * config/i386/(*win32*): Becomes *cygwin32*.
3399 * configure.in (i[3456]86-*-win32*): Becomes i[3456]86-*-cygwin32.
3400 (powerpcle-*-cygwin32): New.
3401 * configure: Regenerate.
3402 * win32-nat.c (child_create_inferior): Call CreateProcess
3403 with the right program arg.
3404
4ad70253
JL
3405Thu Feb 1 11:01:10 1996 Jeffrey A Law (law@cygnus.com)
3406
3407 * config/pa/tm-hppa.h (SOFT_FLOAT): Provide a default definition.
3408
0db5a6fe
FF
3409Wed Jan 31 19:01:28 1996 Fred Fish <fnf@cygnus.com>
3410
3411 * serial.c: Change fputc/fputs/fprintf to _unfiltered forms.
3412
28bc5ef7
SS
3413Wed Jan 31 18:36:27 1996 Stan Shebs <shebs@andros.cygnus.com>
3414
97abaf19
SS
3415 * config/sparc/xm-sun4os4.h (HAVE_TERMIOS): Remove.
3416
28bc5ef7
SS
3417 * config/sparc/xm-sparc.h (HAVE_WAIT_STRUCT): Remove, never used.
3418
97abaf19
SS
3419 * config/i386/nm-i386mach.h (CHILD_PREPARE_TO_STORE): Move to
3420 here from config/i386/xm-i386mach.h, fix name.
3421 * config/i386/nm-sun386.h: Ditto, from config/i386/xm-sun386.h.
3422 * config/i386/nm-ptx4.h (CHILD_PREPARE_TO_STORE): Move to
3423 here from config/i386/xm-ptx4.h.
3424 * config/i386/nm-ptx4.h: Ditto, from config/i386/xm-ptx.h.
3425 * config/i386/nm-symmetry.h: Ditto, from config/i386/xm-symmetry.h.
3426 * config/m68k/nm-sun3.h: Ditto, from config/m68k/xm-sun3.h.
3427 * config/sparc/nm-nbsd.h: Ditto, from config/sparc/xm-nbsd.h.
3428 * config/sparc/nm-sun4os4: Ditto, from config/sparc/xm-sparc.h.
3429
28bc5ef7
SS
3430 * config/sparc/nm-sun4sol2.h: New file, renamed from nm-sysv4.h.
3431 (PRSVADDR_BROKEN): Move here from xm-sun4sol2.h.
3432 * config/sparc/sun4sol2.mh (NAT_FILE): Update.
28bc5ef7 3433
17280c3f
JL
3434Wed Jan 31 17:20:26 1996 Jeffrey A Law (law@cygnus.com)
3435
3436 * config/pa/tm-hppa.h (EXTRACT_RETURN_VALUE): Handle software
3437 floating point correctly.
3438 (STORE_RETURN_VALUE): Likewise.
3439 * config/pa/tm-pro.h (SOFT_FLOAT): define.
3440
44e9f3b3
FF
3441Wed Jan 31 13:34:52 1996 Fred Fish <fnf@cygnus.com>
3442
3443 * config/i386/xm-linux.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
3444 Define to what should be reasonable values. However, apparently
3445 a bug in linux mmap prevents mapped symbol tables from working.
3446
ad1e42be
FF
3447Tue Jan 30 18:26:19 1996 Fred Fish <fnf@cygnus.com>
3448
3449 * defs.h (errno.h>: Move #include closer to head of file to solve
3450 obscure problem with systems that declare perror with const arg, in
3451 both errno.h and stdio.h, and const is defined away by intervening
3452 local include.
3453
d3ba76fc
FF
3454Tue Jan 30 15:41:10 1996 Fred Fish <fnf@cygnus.com>
3455
3456 From Jon Reeves <reeves@zk3.dec.com>:
3457 * i386-stub.c (getpacket): Change fprintf stream from "gdb" to stderr.
3458 (mem_fault_routine): Fix misplaced volatile type qualifier in decl.
3459
f6ade5dd
FF
3460Mon Jan 29 19:05:58 1996 Fred Fish <fnf@cygnus.com>
3461
3462 * Makefile.in (diststuff): Make all-doc; diststuff target does not
3463 exist in doc/Makefile.in.
3464
cdea3fd3
SS
3465Mon Jan 29 18:44:57 1996 Stan Shebs <shebs@andros.cygnus.com>
3466
3467 * config/m88k/xm-cxux.h (BP_HIT_COUNT): Remove, never used.
3468
d221b17e
WM
3469Mon Jan 29 00:10:35 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
3470
cdea3fd3
SS
3471 * ch-valprint.c (calculate_array_length): New function to
3472 determine the length of an array type.
d221b17e
WM
3473 (chill_val_print (case TYPE_CODE_ARRAY)): If the length of an
3474 array type is zero, call calculate_array_length.
3475
cdea3fd3
SS
3476 * gdbtypes.c (get_discrete_bounds (case TYPE_CODE_ENUM)): The
3477 values may not be sorted. Scan all entries and set the real lower
3478 and upper bound.
d221b17e 3479
fa9f5840
FF
3480Sun Jan 28 15:50:42 1996 Fred Fish <fnf@cygnus.com>
3481
3482 * config/xm-linux.h: Move include of solib.h and #define of
3483 SVR4_SHARED_LIBS from here ...
3484 * config/nm-linux.h: ...to here.
3485
4708ac65
FF
3486Sat Jan 27 10:34:05 1996 Fred Fish <fnf@cygnus.com>
3487
3488 * configure.in (AC_CHECK_HEADERS): Check for sys/procfs.h.
3489 Also check for gregset_t and fpregset_t types.
3490 * configure: Regenerate.
3491 * core-regset.c (sys/procfs.h): Only include if HAVE_SYS_PROCFS_H
3492 is defined.
3493 (fetch_core_registers): Turn into stub unless both HAVE_GREGSET_T
3494 and HAVE_FPREGSET_T are defined. These changes allow systems
3495 like linux that are migrating to /proc support to use a single
3496 configuration for both new and old versions.
3497
3498 * config/i386/linux.mt: Note that this is now for both a.out and
3499 ELF systems.
3500 * config/i386/linux.mh (NATDEPFILES): Add solib.o, core-regset.o,
3501 i386v4-nat.o
3502 * config/i386/tm-linux.h (tm-sysv4.h): Include.
3503 * config/i386/xm-linux.h (solib.h): Include
3504 (SVR4_SHARED_LIBS): Define.
3505 * i386v4-nat.c: Only compile if HAVE_SYS_PROCFS_H is defined.
3506 (supply_gregset, fill_gregset): Compile if HAVE_GREGSET_T defined.
cdea3fd3
SS
3507 (supply_fpregset, fill_fpregset): Compile if HAVE_FPREGSET_T
3508 defined.
4708ac65 3509
a77bf669
SS
3510Fri Jan 26 13:48:14 1996 Stan Shebs <shebs@andros.cygnus.com>
3511
3512 * config/sparc/xm-sparc.h (NEW_SUN_CORE): Remove, never used.
3513 * config/i386/xm-sun386.h: Ditto.
3514 * config/m68k/xm-sun2.h, config/m68k/xm-sun3.h: Ditto.
3515
3516Thu Jan 25 16:05:53 1996 Tom Tromey <tromey@creche.cygnus.com>
3517
3518 * Makefile.in (INSTALLED_LIBS, CLIBS): Include @LIBS@.
3519
a4b4479a
SC
3520Thu Jan 25 09:22:15 1996 Steve Chamberlain <sac@slash.cygnus.com>
3521
3522 From Greg McGary <gkm@gnu.ai.mit.edu>:
3523 * dcache.c (dcache_peek, dcache_poke): Advance addr for
3524 multi-byte I/O.
3525
4133a76e
JL
3526Thu Jan 25 13:08:51 1996 Doug Evans (dje@cygnus.com)
3527
3528 * infrun.c (normal_stop): Fix test for shared library event.
3529
146ee7db
DE
3530Thu Jan 25 03:26:38 1996 Doug Evans <dje@charmed.cygnus.com>
3531
3532 * configure.in (sparc64-*-*): Add default host configuration.
3533start-sanitize-gdbtk
3534 (sparc64-*-solaris2* host): Link statically if GCC used.
3535end-sanitize-gdbtk
3536 (sparc64-*-solaris2*): Add target configuration.
b23b4cb5 3537 * configure: Regenerated.
146ee7db
DE
3538 * sparc/sp64sol2.mt: New file.
3539
76336191
DE
3540Wed Jan 24 22:31:37 1996 Doug Evans <dje@charmed.cygnus.com>
3541
3542 * Makefile.in (RUNTEST): srcdir renamed to rootsrc.
3543
1a57cd09
TT
3544Wed Jan 24 15:42:24 1996 Tom Tromey <tromey@creche.cygnus.com>
3545
3546 * Makefile.in (lint): Close backquotes.
3547
3548start-sanitize-gdbtk
3549Wed Jan 24 15:28:41 1996 Tom Tromey <tromey@creche.cygnus.com>
3550
3551 * gdbtk.tcl, gdbtk.c: Updated copyrights.
3552
3553 * configure.in: Look for -ldl or -ldld when using Tcl 7.5 or
3554 greater.
3555 * configure: Rebuilt.
3556
3557end-sanitize-gdbtk
e8f1ad9a
FF
3558Wed Jan 24 13:19:10 1996 Fred Fish <fnf@cygnus.com>
3559
3560 * NEWS: Make note of new record and replay feature for
3561 remote debug sessions.
3562 * serial.c (gdbcmd.h): Include.
3563 (serial_logfile, serial_logfp, serial_reading, serial_writing):
3564 Define here, for remote debug session logging.
3565 (serial_log_command, serial_logchar, serial_write, serial_readchar):
3566 New functions for remote debug session logging.
3567 (serial_open): Open remote debug session log file when needed.
3568 (serial_close): Close remote debug session log file when needed.
3569 (_initialize_serial): Add set/show commands for name of remote
3570 debug session log file.
3571 * serial.h (serial_readchar): Declare
3572 (SERIAL_READCHAR): Call serial_readchar().
3573 (SERIAL_WRITE): Call serial_write().
3574 (serial_close): Declare as extern.
3575 (serial_logfile, serial_logfp): Declare.
3576 * top.c (execute_command): Declare serial_logfp. Log user command
3577 in remote debug session log if log file is open.
3578 * remote-array.c (array_wait): #ifdef out echo to gdb_stdout.
3579 (array_read_inferior_memory): Rewrite to fix memory overwrite bug.
3580 * remote-array.c (SREC_SIZE): Remove, duplicates define in
3581 monitor.h.
3582 * remote-array.c (hexchars, hex2mem): Remove, unused.
3583 * gdbserver/low-linux.c (store_inferior_registers): Remove
3584 unnecessary extern declaration of registers[].
3585 * gdbserver/Makefile.in (all): Add gdbreplay.
3586 * gdbserver/gdbreplay.c: New file.
3587 * gdbserver/README: Give example of recording a remote
3588 debug session with gdb and then replaying it with gdbreplay.
3589
c6038971
PB
3590Tue Jan 23 18:02:35 1996 Per Bothner <bothner@kalessin.cygnus.com>
3591
3592 * stabsread.c (rs6000_builtin_type): Make bool type unsigned.
3593 (read_one_struct_field): Support boolean bitfields.
3594 * c-valprint.c (c_val_print): Print booleans properly.
3595
5a8d8b8d
SS
3596Tue Jan 23 18:54:09 1996 Stan Shebs <shebs@andros.cygnus.com>
3597
3598 * remote-vxsparc.c (vx_convert_to_virtual, vx_convert_from_virtual):
3599 Remove, never used.
3600 * config/sparc/vxsparc.mt (TDEPFILES): Add remote-vxsparc.o.
3601
ec5f347c
PB
3602Tue Jan 23 14:36:05 1996 Per Bothner <bothner@kalessin.cygnus.com>
3603
9293e886
PB
3604 * ch-exp.c (parse_tuple): Error if invalid mode.
3605
533bda77
PB
3606 * value.h (COERCE_ARRAY): Don't coerce enums.
3607 (COERCE_ENUM): Don't COERCE_REF.
3608 (COERCE_NUMBER): New macro (same as COERCE_ARRAY then COERCE_ENUM).
3609 * valops.c (value_assign): Only do COERCE_ARRAY if internalvar (let
3610 value_cast handle it otherwise); do *not* COERCE_ENUM either way.
3611 * valarith.c: Use COERCE_NUMBER instead od COEREC_ARRAY.
3612 Add COERCE_REF before COERCE_ENUM.
3613 * values.c (value_as_long): Simplify.
3614
3615 * valops.c (value_array): Create internalvar if !c_style_arrays.
3616
ec5f347c
PB
3617 * language.c (lang_bool_type): Add Fortran support.
3618 * eval.c (OP_BOOL): Use LA_BOOL_TYPE.
3619
87273c71
JL
3620Tue Jan 23 13:08:26 1996 Jeffrey A Law (law@cygnus.com)
3621
3622 * symfile.c (auto_solib_add): Renamed from auto_solib_add_at_startup.
3623 All references changed.
3624 * breakpoint.c (bpstat_what): Add shlib_event to the class types.
3625 Update state table. Reformat so that it's still readable.
3626 When we hit the shlib_event breakpoint, set the calss of shlib_event.
3627 (breakpoint_1): Add "shlib events" as a breakpoint type.
3628 Print the shlib_event breakpoint like other breakpoints.
3629 (create_solib_event_breakpoint): New function.
3630 (breakpoint_re_set_one): Handle solib_event breakpoints.
3631 * breakpoint.h (enum bytype): Add bp_shlib_event breakpoint type.
3632 (enum bpstat_what_main_action): Add BPSTAT_WHAT_CHECK_SHLIBS
3633 action.
3634 (create_solib_event_breakpoint): Declare.
3635 * infrun.c (wait_for_inferior): Handle CHECK_SHLIBS bpstat.
3636 (normal_stop): Inform the user when the inferior stoped due
3637 to a shared library event.
a77bf669 3638 (_initialize_infrun): Add new set/show variable "stop-on-solib-events"
87273c71
JL
3639 to control whether or not gdb continues the inferior or stops it when
3640 a shared library event occurs.
3641 * minsyms.c (lookup_minimal_symbol_solib_trampoline): New function.
3642 * somsolib.c (TODO list): Update.
3643 (som_solib_create_inferior_hook): Arrange for gdb to be notified
3644 when significant shared library events occur.
3645 * hppa-tdep.c (find_unwind_entry): No longer static.
3646
fc941258
DE
3647Tue Jan 23 09:00:48 1996 Doug Evans <dje@charmed.cygnus.com>
3648
5a8d8b8d
SS
3649 * printcmd.c (print_insn): Pass fprintf_unfiltered to
3650 INIT_DISASSEMBLE_INFO.
3651start-sanitize-gdbtk
3652 * gdbtk.c (gdb_disassemble): Likewise.
3653end-sanitize-gdbtk
fc941258 3654
b3fd4c06
SS
3655Mon Jan 22 16:59:40 1996 Stan Shebs <shebs@andros.cygnus.com>
3656
3657 * remote.c (remotebreak): New GDB variable.
3658 (remote_break): New global.
3659 (remote_interrupt): Send a break instead of ^C if remote_break.
3660 * NEWS: Describe the new variable.
3661
d2f5fa49
DE
3662Mon Jan 22 16:24:11 1996 Doug Evans <dje@charmed.cygnus.com>
3663
3664 * sparc-tdep.c (_initialize_sparc_tdep): Always use print_insn_sparc.
3665
8c038399
FF
3666Fri Jan 19 07:19:38 1996 Fred Fish <fnf@cygnus.com>
3667
3668 * hp300ux-nat.c (getpagesize): Remove unused function
3669 fetch_core_registers.
3670 (hp300ux_core_fns): Remove, is unused.
3671 (_initialize_core_hp300ux): Remove, is unused.
3672 (gdbcore.h): Remove #include, no longer needed.
3673
a0d76829
JL
3674Fri Jan 19 00:59:53 1996 Jeffrey A Law (law@cygnus.com)
3675
3676 * rs6000-nat.c (exec_one_dummy_insn): Rework to avoid
3677 ptrace bug in aix4.1.3 on the rs6000.
3678
b6768627
SS
3679Wed Jan 17 13:22:27 1996 Stan Shebs <shebs@andros.cygnus.com>
3680
3681 * remote-hms.c (hms_ops): Add value for to_thread_alive.
3682 * remote-nindy.c (nindy_ops): Ditto.
3683 * remote-udi.c (udi_ops): Ditto.
3684
090d784a
JSC
3685Tue Jan 16 18:00:35 1996 James G. Smith <jsmith@cygnus.co.uk>
3686
3687 * remote-mips.c (pmon_opn, pmon_wait, pmon_makeb64, pmon_zeroset,
3688 pmon_checkset, pmon_make_fastrec, pmon_check_ack,
3689 pmon_load_fast): New functions. Support for the PMON monitor world.
3690 (common_open): New function to merge support for different monitors.
3691 (mips_open): Use common_open().
3692 (mips_send_command): New function.
3693 (mips_send_packet): Scan out-of-sequence packets.
3694 (mips_enter_debug, mips_exit_debug): New functions.
3695 (pmon_ops): New target definition structure.
3696
4e327047
TT
3697Tue Jan 16 11:22:58 1996 Stu Grossman (grossman@cygnus.com)
3698
3699 * Makefile.in (CLIBS): Add LIBS to allow libraries to be
3700 specified on the make command line (via make LIBS=xxx).
3701start-sanitize-gm
3702 * configure.in (enable-gm): magic.o -> gmagic.o.
3703end-sanitize-gm
3704
3705start-sanitize-gdbtk
3706Mon Jan 15 09:58:41 1996 Tom Tromey <tromey@creche.cygnus.com>
3707
3708 * gdbtk.tcl (create_expr_window): Many changes to update GUI.
3709 (add_expr): Changes from create_expr_window.
3710 (create_command_window): Set focus.
3711 (delete_expr): Rewrote.
3712 (expr_update_button): New proc.
3713 (add_expr): Put bindings on FocusIn, FocusOut.
3714 Don't allow .file_popup to be torn off.
3715end-sanitize-gdbtk
3716
1aac3d3c
JL
3717Fri Jan 12 21:41:58 1996 Jeffrey A Law (law@cygnus.com)
3718
3719 * symtab.c (find_pc_symtab): Don't lose if OBJF_REORDERED
3720 is set but there are no psymtabs.
3721
c84e5000
SC
3722Fri Jan 12 15:56:12 1996 Steve Chamberlain <sac@slash.cygnus.com>
3723
3724 * dsrec.c (load_srec): Remove unused variable.
1ef980b9 3725 * monitor.c (monitor_expect): Don't expect a ^C to echo.
c84e5000
SC
3726 * serial.c (serial_open): Add parallel interface.
3727 * sh3-rom.c (parallel, parallel_in_use): New.
3728 (sh3_load): If parallel_in_use, download though the
3729 parallel port.
3730 (sh3_open): Open parallel port if specified.
3731 (sh3_close): New function.
3732 (_inititalize_sh3): Add sh3_close hook and documentation.
3733 * monitor.c (monitor_close): Export.
3734 * monitor.h (monitor_close): Add prototype.
3735
2c441e7f
SS
3736Fri Jan 12 13:11:42 1996 Stan Shebs <shebs@andros.cygnus.com>
3737
3738 From Wilfried Moser <wilfried.moser@aut.alcatel.at>:
3739 * remote.c (remotetimeout): New GDB variable, use to set the
3740 remote timeout for reading.
3741
4e327047
TT
3742start-sanitize-gdbtk
3743Fri Jan 12 09:36:17 1996 Tom Tromey <tromey@creche.cygnus.com>
3744
3745 * gdbtk.tcl (gdbtk_tcl_query): Swap Yes and No buttons.
3746 (update_listing): Use lassign. Use "see" to scroll. Don't need
3747 screen_top, screen_bot, screen_height.
3748 (update_assembly): Use "see" to scroll.
3749 (textscrollproc): Removed.
3750 (create_file_win): Don't use textscrollproc.
3751 (asmscrollproc): Removed.
3752 (create_asm_window): Don't use asmscrollproc.
3753 (create_asm_win): Ditto.
3754 (screen_height, screen_top, screen_bot): Removed.
3755 (run_editor): New proc.
3756 (build_framework): Use it.
3757 (create_file_win, create_source_window): Don't use textscrollproc.
3758 (create_breakpoints_window): Set -xscrollcommand on canvas.
3759 (not_implemented_yet): Default button is 0.
3760 (delete_char): Don't use tk_textBackspace.
3761 (create_command_window): Allow Tk bindings to fire after deleting
3762 character.
3763 (create_command_window): Make Delete delete left, not right.
3764end-sanitize-gdbtk
3765
517cb8d7 3766Fri Jan 12 07:14:27 1996 Fred Fish <fnf@cygnus.com>
3730a0ed
FF
3767
3768 * lynx-nat.c, irix4-nat.c, sparc-nat.c: Include gdbcore.h
3769 to get "struct core_fns" defined.
3770 * Makefile.in (lynx-nat.o, irix4-nat.o, sparc-nat.o):
2c441e7f 3771 Are dependent upon gdbcore_h.
3730a0ed 3772
7ef89313
PB
3773Thu Jan 11 23:13:24 1996 Per Bothner <bothner@cygnus.com>
3774
3775 * symfile.c (decrement_reading_symtab): New function.
3776 * symfile.c, symtab.h (currently_reading_symtab): New variable.
3777 * symfile.c (psymtab_to_symtab): Adjust currently_reading_symtab.
3778 * gdbtypes.c (check_typedef): Don't call lookup_symbol if
3779 currently_reading_symtab (since that could infinitely recurse).
3780
1c486a2b
PB
3781Thu Jan 11 17:21:25 1996 Per Bothner <bothner@kalessin.cygnus.com>
3782
34cfa2da
PB
3783 * stabsread.c (read_struct_type): Trivial simplification.
3784
1c486a2b
PB
3785 * stabsread.c (define-symbol): Use invisible references
3786 for TYPE_CODE_SET and TYPE_CODE_BITSTRING too.
34cfa2da 3787 * valops.c (call_function_by_hand): Likewise.
1c486a2b
PB
3788 * eval.c (evaluate_subexp_standard): When known, use the formal
3789 parameter type as the expected type when evaluating arg expressions.
3790 * ch-lang.c (evaluate_subexp_chill): Likewise (for MULTI_SUBSCRIPT).
3791
4e327047
TT
3792start-sanitize-gdbtk
3793Thu Jan 11 10:08:14 1996 Tom Tromey <tromey@creche.cygnus.com>
3794
3795 * main.c (main): Disable window interface if --help or --version
3796 specified.
3797
3798 * gdbtk.tcl (FSBox): Don't use tk_listboxSingleSelect.
3799
3800 Changes in sync with expect:
3801 * configure.in (ENABLE_GDBTK): Use CY_AC_PATH_TCL and
3802 CY_AC_PATH_TK.
3803 * aclocal.m4: Replaced with version from expect.
3804 * configure: Regenerated.
3805end-sanitize-gdbtk
a1df8e78 3806
a1956677
BK
3807Wed Jan 10 16:08:49 1996 Brendan Kehoe <brendan@lisa.cygnus.com>
3808
3809 * configure.in, configure: Recognize rs6000-*-aix4*.
3810 * config/powerpc/xm-aix.h: Reduce to include "xm-aix4.h".
3811 * config/rs6000/aix4.mh (XM_FILE): Point to xm-aix4.h.
3812 * config/rs6000/xm-aix4.h: New file.
3813 * config/xm-aix4.h: New file.
3814
3730a0ed 3815Wed Jan 10 11:25:37 1996 Fred Fish <fnf@cygnus.com>
0d14c7df
FF
3816
3817 From Wilfried Moser <wilfried.moser@aut.alcatel.at>:
3818 * gdbserver/low-linux.c: New file.
3819 * remote.c (remote_read_bytes): Fix aborts on larger packets.
3820
3821 * config/i386/linux.mh (GDBSERVER_DEPFILES, GDBSERVER_LIBS):
3822 Define.
3823 * stabsread.c (define_symbol): If register value is too large,
3824 tell what it is and what max is.
3825
4e327047
TT
3826start-sanitize-gdbtk
3827Wed Jan 10 09:07:22 1996 Tom Tromey <tromey@creche.cygnus.com>
3828
3829 * gdbtk.tcl (gdbtk_tcl_fputs, gdbtk_tcl_fputs_error,
3830 gdbtk_tcl_flush): Use "see", not "yview".
3831 (gdbtk_tcl_query): Use questhead bitmap.
3832 various: Always wrap condition of 'if' in {...}.
3833 (add_breakpoint_frame): Set -value on radiobuttons.
3834 (lassign): New proc.
3835 (add_breakpoint_frame): Use lassign, not series of assignments.
3836 (decr): Made faster.
3837 (interactive_cmd): Use "see", not "yview".
3838 (not_implemented_yet): Use warning bitmap.
3839 (update_expr): Don't allow $expr to be evalled by Tcl.
3840 (create_expr_window): Don't use "focus".
3841 (delete_char, delete_line): Define globally.
3842 (delete_line, delete_char, create_command_window, update_autocmd,
3843 build_framework, create_asm_win, create_file_win): Use "see", not
3844 "yview".
3845 (create_copyright_window, center_window, bind_widget_after_class):
3846 New procs.
3847 (FSBox,create_command_window, create_autocmd_window): Binding
3848 changes for Tk4.
3849 (textscrollproc): Define globally.
3850 (build_framework): tk_menuBar no longer needed. Keys Prior, Next,
3851 Home, End, Up, and Down are all defined by Tk.
3852 (apply_filespec): Use error bitmap in dialog.
3853 (files_command): Don't use tk_listboxSingleSelect.
3854 (files_command): Don't use "uniq" to remove duplicates from a
3855 list.
3856 (update_assembly): Use lassign.
3857 (create_asm_win): Removed redundant bindings.
3858 (listing_window_button_1, file_popup_menu): Use tk_popup.
3859 (ButtonRelease-1 binding): Just remove tag from window; rest
3860 handled by Tk.
3861
3862 * gdbtk.c (gdbtk_query): Use Tcl_Merge to provide quoting.
3863 (call_wrapper): Use Tcl_Eval, not Tcl_VarEval.
3864 (gdbtk_call_command): Ditto.
3865end-sanitize-gdbtk
3866
60d5a517
JL
3867Tue Jan 9 09:33:53 1996 Jeffrey A Law (law@cygnus.com)
3868
3869 * hpread.c (hpread_build_psymtabs): Finish Jan 4th
3870 enum namespace -> enum_namespace change.
3871
d1f5c804
WM
3872Tue Jan 9 04:44:47 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
3873
2c441e7f
SS
3874 * ch-exp.c (parse_primval): In case ARRAY, add missing
3875 FORWARD_TOKEN ().
d1f5c804 3876
1f233758
SS
3877Mon Jan 8 13:29:34 1996 Stan Shebs <shebs@andros.cygnus.com>
3878
3879 * remote-mips.c (mips_receive_header): Recognize \012 instead
3880 of \n, but write \n when program sends a \012.
3881 * ser-mac.c (mac_input_buffer): Increase size of buffer.
3882
ed3b618d
JL
3883Mon Jan 8 12:00:40 1996 Jeffrey A Law (law@cygnus.com)
3884
3885 * infptrace.c (initialize_infptrace): Move function out of
3886 #ifdef conditional; put code within the function inside an
3887 #ifdef conditional.
436d4143
JL
3888
3889 * buildsym.c (end_symtab): Remove sort_pending and sort_linevec
3890 arguments. Sorting is now dependent on OBJF_REORDERED. All
3891 callers/references changed.
3892 * dbxread.c (read_ofile_symtab): Correctly determine value for
3893 last_source_start_addr for reordered executables.
3894 (process_one_symbol): Handle N_FUN with no name as an end of
3895 function marker.
3896 * partial-stab.h (case N_FN, N_TEXT): Don't assume CUR_SYMBOL_VALUE
3897 is the high text address for a psymtab.
3898 (case N_SO): Likewise.
3899 (case N_FUN): Handle N_FUN with no name as an end of function
3900 marker.
3901 * minsyms.c (lookup_minimal_symbol_by_pc): Examine all symbols
3902 at the same address rather than a random subset of them.
3903 * coffread.c (coff_symfile_init): Set OBJF_REORDERED.
3904 * elfread.c (elf_symfile_init): Similarly.
3905 * somread.c (som_symfile_init): Similarly.
3906 * xcoffread.c (xcoff_symfile_init): Similarly.
3907
5351b2a0
SG
3908Fri Jan 5 17:46:01 1996 Stu Grossman (grossman@cygnus.com)
3909
3910 * stack.c (print_stack_frame print_frame_info) symmisc.c
3911 (dump_symtab): Change RETURN_MASK_ERROR to RETURN_MASK_ALL so
3912 that catch_errors doesn't get blindsided by QUIT and lose the
3913 cleanup chain. This fixes a problem where ^C while in a
3914 user-defined command sometimes leaves instream NULL and causes a
3915 segfault in command_loop.
3916
127841e4
BK
3917Fri Jan 5 13:59:16 1996 Brendan Kehoe <brendan@lisa.cygnus.com>
3918
3919 * configure.in, configure: Add `-ldl -lw' for Solaris linking.
3920
6b4fe21d
SC
3921Fri Jan 5 12:02:00 1996 Steve Chamberlain <sac@slash.cygnus.com>
3922
3923 * config/sh/sh.mt, config/powerpc/*.mt, config/pa/hppapro.mt,
3924 config/m68k/monitor.mt, config/h8500/h8500.mt, config/h8300/h8300.mt:
3925 srec.o renamed to dsrec.o.
3926
0fe1522a
SG
3927Thu Jan 4 16:04:54 1996 Stu Grossman (grossman@cygnus.com)
3928
3929 * breakpoint.c (remove_breakpoint): Change error to warning so
3930 that hardware watchpoint removal problems won't leave breakpoint
3931 traps in the target.
d039321c 3932start-sanitize-gdbtk
0fe1522a 3933 * configure configure.in: Make --enable-gdbtk be the default.
d039321c 3934end-sanitize-gdbtk
0fe1522a
SG
3935 * remote-e7000.c (e7000_insert_breakpoint,
3936 e7000_remove_breakpoint): Use e7000 based breakpoints, not memory
3937 breakpoints.
3938 * (e7000_wait): Adjust PC back by two when we see a breakpoint to
3939 compensate for e7000 maladjustment.
3940 * sparcl-tdep.c (sparclite_check_watch_resources): Fix logic bug
3941 which prevented hardware watchpoints from working.
3942
517cb8d7 3943Thu Jan 4 10:44:17 1996 Fred Fish <fnf@cygnus.com>
7531f36e
FF
3944
3945 * infptrace.c (udot_info): New function.
3946 (PT_*): Define each individually if that one is not defined.
7531f36e
FF
3947 * rs6000-nat.c (kernel_u_size): New function
3948 Include <sys/user.h> for "struct user"
7531f36e
FF
3949 * alpha-nat.c (kernel_u_size): New function.
3950 Include <sys/user.h> for "struct user"
7531f36e
FF
3951 * sparc-nat.c (kernel_u_size): New function.
3952 Include <sys/user.h> for "struct user"
7531f36e 3953 * i386b-nat.c (kernel_u_size): New function.
7531f36e 3954 * i386v-nat.c (kernel_u_size): New function.
7531f36e
FF
3955 * config/i386/nm-fbsd.h (KERNEL_U_SIZE): Define.
3956 (kernel_u_size): Declare.
7531f36e
FF
3957 * config/i386/nm-linux.h (KERNEL_U_SIZE): Define.
3958 (kernel_u_size): Declare.
7531f36e
FF
3959 * config/sparc/nm-sun4os4.h (KERNEL_U_SIZE): Define.
3960 (kernel_u_size): Declare.
7531f36e
FF
3961 * config/alpha/nm-osf2.h (KERNEL_U_SIZE): Define.
3962 (kernel_u_size): Declare.
7531f36e
FF
3963 * config/rs6000/nm-rs6000.h (KERNEL_U_SIZE): Define.
3964 (kernel_u_size): Declare.
7531f36e 3965
1750a5ef
SC
3966Thu Jan 4 11:00:01 1996 steve chamberlain <sac@slash.cygnus.com>
3967
3968 * mdebugread.c (mylookup_symbol): enum namespace becomes
3969 enum_namespace type.
3970 * symfile.c (add_psymbol_to_list)
3971 (add_psymbol_addr_to_list): Ditto.
3972 * symtab.c (lookup_partial_symbol): Ditto.
3973 (lookup_symbol): Ditto.
3974 (lookup_block_symbol): Ditto.
3975 * win32-nat.c (handle_load_dll): Use incoming dll base.
3976 (child_wait): Catch DLL load errors.
3977 (create_child_inferior): Translated between paths correctly.
3978
e33aefba
FF
3979Wed Jan 3 23:13:53 1996 Fred Fish <fnf@cygnus.com>
3980
3981 * i386v4-nat.c (supply_gregset, fill_gregset): Subtract NUM_FREGS
3982 from NUM_REGS to get number of general registers that we care about.
e33aefba
FF
3983 * config/i386/tm-i386.h (REGISTER_BYTES): Define in terms
3984 of number of general regs and number of floating point regs.
e33aefba 3985
e02a2ad9
SC
3986Wed Jan 3 19:49:54 1996 steve chamberlain <sac@slash.cygnus.com>
3987
a3b64bf9
SC
3988 * config/i386/tm-win32.h (IN_SOLIB_CALL_TRAMPOLINE): New.
3989 (SKIP_TRAMPOLINE_CODE): New.
3990 * config/i386/xm-win32.h (CANT_FORK): Deleted.
3991 (SLASH*) Changed to use unix style slash.
e02a2ad9
SC
3992 * symtab.h (namespace enum): becomes typedef to avoid namespace
3993 collision in C++.
3994 * infcmd.c (path_command): Use empty string if PATH name not set.
3995 * i386-tdep.c (skip_trampoline_code): New function.
3996 * srec.c: Renamed dsrec.c to avoid filename collision.
3997 * Makefile.in: Cope with renaming.
e02a2ad9 3998
ef4d6187 3999Wed Jan 3 13:09:04 1996 Fred Fish <fnf@cygnus.com>
5eccb7dc 4000
ef4d6187
FF
4001 * symmisc.c (print_objfile_statistics): Print memory use statistics
4002 for objfile psymbol, symbol, and type obstacks.
5eccb7dc 4003
ef4d6187 4004Tue Jan 2 13:41:14 1996 Stan Shebs <shebs@andros.cygnus.com>
3dcd429f 4005
ef4d6187
FF
4006 * config/mips/nm-irix5.h: Restore.
4007 (TARGET_HAS_HARDWARE_WATCHPOINTS, etc): Define as for Irix 4;
4008 from Lee Iverson <leei@ai.sri.com>.
4009 * config/mips/irix5.mh (NAT_FILE): Use nm-irix5.h.
4010 * config/mips/irix[345].mh (MUNCH_DEFINE): Remove.
3dcd429f 4011
ef4d6187 4012For older changes see ChangeLog-95
bd5635a1
RP
4013\f
4014Local Variables:
4015mode: indented-text
4016left-margin: 8
4017fill-column: 74
4018version-control: never
4019End:
This page took 0.519821 seconds and 4 git commands to generate.