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