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