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