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