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