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