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