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