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