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