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