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