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