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