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