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