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