* remote.c (remotewritesize): New GDB variable, controls size
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
4eaf7c0a
SS
1Thu Apr 11 18:49:42 1996 Stan Shebs <shebs@andros.cygnus.com>
2
3 * remote.c (remotewritesize): New GDB variable, controls size
4 of memory packets sent to the target.
5
a243a22f
SG
6Thu Apr 11 13:47:52 1996 Stu Grossman (grossman@critters.cygnus.com)
7
8 * dcache.c: Add prototypes. Make many functions static.
9 * (dcache_peek dcache_fetch dcache_poke): Make dcache_fetch and
10 dcache_poke call dcache_xfer_memory directly in order to fix
11 problems with turning off dcache. dcache_peek is now unnecessary,
12 so it goes away.
13
14 * defs.h: Define new macros HOST_{FLOAT DOUBLE LONG_DOUBLE}_FORMAT
15 and TARGET_{FLOAT DOUBLE LONG_DOUBLE}_FORMAT to specify a pointer
16 to a struct floatformat. This allows for better handling of
17 targets whose floating point formats differ from the host by more
18 than just byte order.
19 * (floatformat_to_long_double floatformat_from_long_double):
20 Prototypes for new functions in utils.c.
21 * (floatformat_to_doublest floatformat_from_doublest): Prototypes
22 for pointers to floating point conversion functions. The actual
23 function uses either double or long double if the host supports it.
24 * findvar.c (floatformat_to_doublest floatformat_from_doublest):
25 Initialize to point at correct function depending on HAVE_LONG_DOUBLE.
26 * (extract_floating store_floating): Rewrite. Now, if host fp
27 format is the same as the target, we just do a copy. Otherwise,
28 we call floatformat_{to from}_doublest.
29 * remote-nindy.c (nindy_xfer_inferior_memory): Change param
30 `write' to `should_write'.
31 * utils.c (floatformat_to_long_double
32 floatformat_from_long_double): New routines that implement long
33 double versions of functions in libiberty/floatformat.c.
34 * config/i960/tm-i960.h (TARGET_LONG_DOUBLE_FORMAT): Define this for
35 i960 extended real (80 bit) numbers.
36 * nindy-share/nindy.c (ninMemGet ninMemPut): Return number of bytes
37 actually read or written.
38
f046f4c8
WM
39Wed Apr 10 02:56:06 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
40
41 * ch-valprint.c (chill_val_print): Remove call to calculate_array_length.
42 (calculate_array_length): Move function from here ...
43
44 * ch-exp.c (calculate_array_length): ... to here.
45 (parse_primval): If we have a symbol with an array type
46 and the length is 0, call calculate_array_length.
47
a539f6d8
WM
48Tue Apr 9 01:23:05 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
49
50 * eval.c (evaluate_subexp_standard): In case of TYPE_CODE_SET:
51 Add some checks for powerset compatibility.
52
53 * valops.c (value_slice): Use lowbound instead of lowerbound for
54 call to slice_range_type to get correct bounds.
55
5579919f
FF
56Mon Apr 8 12:53:56 1996 Fred Fish <fnf@phydeaux.cygnus.com>
57
58 * Makefile.in (scm-exp.o, scm-lang.o, scm-valprint.o): Add targets and
59 dependencies.
60 * scm-lang.c (gdb_string.h): Include.
61 * objfiles.c (add_to_objfile_sections): Cast second arg of obstack_grow
62 call to correct type (char *).
63 * cp-valprint.c (cp_print_static_field): Ditto.
64 * somsolib.c (som_solib_create_inferior_hook): Add a declaration
65 for external find_unwind_entry function (from hppa-tdep.c).
66 * remote-pa.c (remote_write_bytes, remote_read_bytes): Change
67 type of second arg to "char *" to be type compatible with
68 dcache.
69 (remote_wait): Cast second arg to strtol to correct type.
70 * hppa-tdep.c (compare_unwind_entries): Change argument types to
71 "const void *" to be type compatible with qsort, and then
72 assign to local args prior to use.
73
75eb5231
JL
74Mon Apr 8 15:35:52 1996 Jeffrey A Law (law@cygnus.com)
75
76 * infptrace.c (kill_inferior): Remove call to "kill"; update
77 comments.
78
7782ee45
GN
79Mon Apr 8 14:05:07 1996 Geoffrey Noer <noer@cygnus.com>
80
81 * remote-e7000.c: don't append :23 to target port if __WIN32__
82 is defined (it's WinGDB).
83
ce0787ef
FF
84Sun Apr 7 22:34:29 1996 Fred Fish <fnf@cygnus.com>
85
86 From: Miles Bader <miles@gnu.ai.mit.edu>
87 * gnu-nat.c, gnu-nat.h, msg.defs, exc_request.defs, i386gnu-nat.c,
88 msg_reply.defs, notify.defs, process_reply.defs, reply_mig_hack.awk,
89 config/nm-gnu.h, config/i386/{i386gnu.mh, i386gnu.mt, nm-gnu.h,
90 m-i386gnu.h, xm-i386gnu.h}: New files for GNU hurd.
91
92Sun Apr 7 13:32:41 1996 Fred Fish <fnf@cygnus.com>
125c17af
FF
93
94 * configure.in (case host): Add i386sco5 host.
95 * configure: Regenerate.
96
97 From: Robert Lipe <robertl@dgii.com>
98 Add support for SCO OpenServer 5 (a.k.a. 3.2v5*) This
99 target is an SVR3.2 with COFF, ELF, and shared libes, but
100 no /proc.
101 * config/i386/i386sco5.mh: New file.
102 * config/i386/nm-i386sco5.h: New file.
103
a6b65627
FF
104Sat Apr 6 08:55:22 1996 Fred Fish <fnf@cygnus.com>
105
106 * bcache.c (bcache): When size of chunk to cache is exactly equal to
107 BCACHE_MAXLENGTH, stash chunk as unique copy.
108
eae8aa30
FF
109Sat Apr 6 00:46:26 1996 Fred Fish <fnf@cygnus.com>
110
111 * symfile.c (INLINE_ADD_PSYMBOL): Remove ifdef.
112 (add_psymbol_to_list): Add an arg for passing CORE_ADDR values and
113 use it, rather than calling add_psymbol_addr_to_list.
114 (add_psymbol_addr_to_list): Delete.
115 (add_psymbol_to_list): Make psymbol static to avoid random data in
116 gaps due to alignment of structure members.
117 * symfile.h (INLINE_ADD_PSYMBOL, ADD_PSYMBOL_TO_LIST,
118 ADD_PSYMBOL_ADDR_TO_LIST): Remove. Real world tests show no
119 performance improvements by inlining via complicated macros and
120 they just make gdb larger and harder to maintain.
121 * dwarfread.c (add_enum_psymbol): Replace ADD_PSYMBOL_TO_LIST
122 and/or ADD_PSYMBOL_ADDR_TO_LIST macro(s) with call to
123 add_psymbol_to_list with appropriate long or CORE_ADDR args.
124 (add_partial_symbol): Ditto.
125 * partial-stab.h: Ditto.
126 * os9kread.c (read_os9k_psymtab): Ditto
127 * mdebugread.c (parse_partial_symbols): Ditto.
128 (handle_psymbol_enumerators): Ditto.
129 (demangle.h): Include.
130 * hpread.c (hpread_build_psymtabs): Ditto.
131 (hpread_build_psymtabs): Ditto.
132 (demangle.h): Include
133
51bea8cf 134start-sanitize-gdbtk
fda6fadc
SS
135Fri Apr 5 13:44:40 1996 Stan Shebs <shebs@andros.cygnus.com>
136
137 * gdbtk.c (running_now): New global variable.
138 (gdb_cmd): Test it before executing any command.
139 (gdbtk_call_command): Set it when inferior is running.
140 * gdbtk.tcl (gdbtk_tcl_busy, gdbtk_tcl_idle): Enable and
141 disable interaction with command window's text appropriately.
142
8b3f9ed6
MM
143Fri Apr 5 13:25:42 1996 Michael Meissner <meissner@tiktok.cygnus.com>
144
145 * gdbtk.c (SIOCSPGRP, linux): If on Linux, undef SIOCSPGRP, since
146 some versions of the kernel don't support it.
51bea8cf 147end-sanitize-gdbtk
8b3f9ed6 148
72ae15f6
FF
149Thu Apr 4 20:16:55 1996 Fred Fish <fnf@cygnus.com>
150
151 * configure.in: Check for setpgid function.
152 * config.in: Regenerate with autoheader.
153 * configure: Regenerate with autoconf.
154 * inflow.c (_initialize_inflow): Only try to use _SC_JOB_CONTROL
155 if it is actually defined.
156 (gdb_setpgid): Use HAVE_SETPGID.
157 * ch-exp.c: Change include of <string.h> to "gdb_string.h".
fda6fadc
SS
158 * c-exp.y, f-exp.y, m2-exp.y: Ditto.
159 * c-exp.y, serial.c: Include <ctype.h>.
72ae15f6
FF
160 * config/m68k/nm-news.h: Add typedef for pid_t which is
161 apparently missing from <sys/types.h>. Enclose entire
162 file in NM_NEWS_H ifndef and define when included.
163 * config/mips/nm-news-mips.h: Ditto.
164 * config/m68k/tm-m68k.h (REGISTER_CONVERT_TO_VIRTUAL,
165 REGISTER_CONVERT_TO_RAW): Change name of temporary variable.
166
67c1413d
SS
167Thu Apr 4 19:04:18 1996 Stan Shebs <shebs@andros.cygnus.com>
168
72c9954b
SS
169 * arm-xdep.c: Move native-specific code to here from arm-tdep.c.
170 * arm-tdep.c (arm_apcs_32): New global.
171 (arm_addr_bits_remove, arm_saved_pc_after_call,
172 arm_push_dummy_frame, arm_pop_frame): New functions.
173 (arm_skip_prologue): Updated version from Richard Earnshaw.
174 (_initialize_arm_tdep): Add set/show "apcs32".
175 * config/arm/tm-arm.h (ADDR_BITS_REMOVE): Call
176 arm_addr_bits_remove.
177 (SAVED_PC_AFTER_CALL): Call arm_saved_pc_after_call.
178 (frame_find_saved_regs): Declare properly.
179 (PUSH_DUMMY_FRAME): Call arm_push_dummy_frame.
180 (POP_FRAME): Call arm_pop_frame, use ADDR_BITS_REMOVE instead of
181 explicit mask.
182 * config/arm/nm-arm.h: New file.
183 * config/arm/xm-arm.h (KERNEL_U_ADDR, FETCH_INFERIOR_REGISTERS):
184 Move definitions to nm-arm.h.
185 * config/arm/arm.mh (NAT_FILE): Define.
186
67c1413d
SS
187 * symfile.c (generic_load): Initialize data_count properly.
188
3e3ee48f
FF
189Thu Apr 4 17:17:53 1996 Fred Fish <fnf@cygnus.com>
190
191 * symmisc.c (print_objfile_statistics): Print memory used by
192 psymbol cache obstack.
193
72158e71
SS
194Thu Apr 4 15:43:07 1996 Stan Shebs <shebs@andros.cygnus.com>
195
196 * symfile.c (report_transfer_performance): New function.
197 (generic_load): Call it to report transfer rate.
198 * remote-e7000.c (e7000_load): Ditto.
199
761e98aa
SS
200Mon Apr 1 16:31:00 1996 Stan Shebs <shebs@andros.cygnus.com>
201
202 * mpw-make.sed: Change references to config.h to be in objdir,
203 edit out rules to rebuild config.h.
204
251b8ab9
FF
205Mon Apr 1 08:32:23 1996 Fred Fish <fnf@cygnus.com>
206
207 * hppa-tdep.c (hppa_pop_frame): Call clear_proceed_status before
208 proceeding.
209
771f63d3
FF
210Sun Mar 31 16:15:43 1996 Fred Fish <fnf@.cygnus.com>
211
212 * hppah-nat.c (store_inferior_registers, store_inferior_registers,
213 fetch_register, child_xfer_memory): Use call_ptrace function supplied
214 by infptrace.c rather than calling ptrace directly.
215
32b18604
SS
216Sun Mar 31 15:39:00 1996 Stan Shebs <shebs@andros.cygnus.com>
217
218 * mon960-rom.c: Cleanups and elimination of unused code,
219 clarify documentation string.
220 (mon960_serial, mon960_ttyname): Remove.
221 * config/i960/tm-mon960.h (ADDITIONAL_OPTIONS,
222 ADDITIONAL_OPTION_CASES, ADDITIONAL_OPTION_HELP): Remove.
223
07b77f5c
FF
224Sat Mar 30 11:00:22 1996 Fred Fish <fnf@cygnus.com>
225
226 * configure.in: Check whether printf family supports printing
227 long doubles or not and define PRINTF_HAS_LONG_DOUBLE if so.
228 * acconfig.h: Provide default undef for PRINTF_HAS_LONG_DOUBLE.
229 * configure: Regenerate.
230 * valprint.c (print_floating): Use PRINTF_HAS_LONG_DOUBLE.
231 * c-exp.y (parse_number): Use PRINTF_HAS_LONG_DOUBLE.
232 * configure.in: Fix have_gregset and have_fpregset autoconf
233 variable names so that they match the pattern required to
234 cache them.
235
b52cac6b
FF
236Fri Mar 29 21:39:56 1996 Fred Fish <fnf@cygnus.com>
237
238 * core-aout.c (fetch_core_registers): Cast core_reg_size to int
239 before testing against reg_ptr.
240 * eval.c (evaluate_subexp_standard): Cast type of
241 TYPE_FN_FIELD_VOFFSET to int.
242 * findvar.c (extract_signed_integer, extract_unsigned_integer,
243 extract_long_unsigned_integer): Cast type of sizeof to int.
244 * values.c (unpack_field_as_long, modify_field): Ditto.
245 * valops.c (value_assign, call_function_by_hand): Ditto.
246 * infcmd.c (do_registers_info): Ditto.
fda6fadc 247 * ser-tcp.c (tcp_open): Ditto.
b52cac6b
FF
248 * remote.c (putpkt): Ditto.
249 * dcache.c (dcache_peek): Ditto.
250 * dcache.c (dcache_poke): Ditto.
251 * m2-exp.y (yylex): Ditto.
252 * gnu-regex.c (re_match_2): Ditto.
253 * f-lang.c (ADD_BF_SYMNUM, saved_bf_list_end, tmp_bf_ptr): Ifdef
254 out unused macro definition and variables.
255 * inftarg.c (proc_wait): Move from main.c to here, and make static.
256 * valprint.c (val_print_string): Change bufsize from int to unsigned.
fda6fadc 257 * main.c (wait.h): Include.
b52cac6b
FF
258 * top.c (command_line_input): Remove unused variable "c".
259 * f-typeprint.c (f_type_print_varspec_prefix): Add missing enum
260 value TYPE_CODE_TYPEDEF to switch statement.
261 (f_type_print_varspec_suffix): Add missing enum value
262 TYPE_CODE_TYPEDEF to switch statement.
263 * ch-exp.c (parse_primval): Add remaining enumeration values to
264 switch statement, with no specific action.
265 (ch_lex): Add LOC_UNRESOLVED in switch statement.
266 (pushback_token): Ifdef out, since code using it is ifdef'd out.
267 * stabsread.c (cleanup_undefined_types): Remove unused label
268 "badtype".
269 * objfiles.h (print_symbol_bcache_statistics): Add prototype.
270 * maint.c (objfiles.h): Include.
271 (maintenance_print_statistics): Remove unused variable "temp".
272 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove
273 unused variable "found_file_symbol".
274 * m2-exp.y (yylex): Add LOC_UNRESOLVED case to switch.
275 * language.c (lang_bool_type): Use existing function local type
276 variable rather than create block local variables.
277 * solib.c (disable_break): Enclose in ifndef SVR4_SHARED_LIBS.
278 * infptrace.c (wait.h, command.h): Include.
279 * ser-tcp.c (gdb_string.h): Include
280 * i386-tdep.c (codestream_seek): Change "place" to CORE_ADDR.
281 (i386_get_frame_setup): Change "pc" from int to CORE_ADDR.
282 * command.c (complete_on_enum): Make assignment used as truth value
283 explictly check against NULL.
284 (wait.h): Include.
285 * infrun.c (wait_for_inferior): Ifdef out prologue_pc since code
286 that uses it is ifdef'd out.
287 * parser-defs.h: Add prototype for write_dollar_variable.
288 * infrun.c: Add prototype for write_pc_pid.
289 * breakpoint.h: Add prototype for re_enable_breakpoints_in_shlibs.
290 * symmisc.c (bcache.h): Include.
291 * bcache.h: Add prototype for print_bcache_statistics.
292 * symfile.c: Include <time.h>.
293 * printcmd.c (print_scalar_formatted): Change len to unsigned int.
294 * valarith.c (value_equal): Cast result of TYPE_LENGTH to int.
295 * valarith.c (value_binop): Change result_len, promoted_len1,
296 and promoted_len2 to unsigned int.
297 * valarith.c (value_subscripted_rvalue): Change elt_offs and
298 elt_size to unsigned int.
299 * valops.c (value_array): Change typelength to unsigned int.
300 (destructor_name_p): Change len to unsigned int.
301 * scm-lang.h (scm_parse): Add prototype for scm_unpack.
302 * symfile.c (decrement_reading_symtab): Change return type to void.
303 * valarith.c (value_subscript): Remove unused variable "word".
304 (value_subscript): Remove unused variable "tint".
305 * valops.c (auto_abandon): Ifdef out, since code using it is also
306 ifdef'd out.
307 * eval.c (init_array_element): Remove unused variable "val".
308 * Makefile.in (values.o): Depends on scm-lang.h.
309 (command.o): Depends upon wait_h.
310 (ser-tcp.o): Depends upon gdb_string.h.
311 (infptrace.o): Depends upon wait_h and command_h.
312 (maint.o): Depends on objfiles.h and symfile.h.
313 * values.c (allocate_repeat_value): Remove unused variable
314 "element_type".
315 (scm-lang.h): Include.
316 * breakpoint.c (create_longjmp_breakpoint): Enclose in
317 GET_LONGJMP_TARGET define, unused otherwise.
318 * config/i386/nm-linux.h: Add prototypes for i386_insert_watchpoint,
319 i386_remove_watchpoint and i386_stopped_by_watchpoint.
320
078aeca4
DE
321Thu Mar 28 12:53:19 1996 Doug Evans <dje@canuck.cygnus.com>
322
323 * configure.in (sparc64-*-solaris2*): Delete.
324 Stick with sparc-*-solaris2*.
325 * configure: Regenerated.
326
75225aa2
FF
327Thu Mar 28 06:51:26 1996 Fred Fish <fnf@cygnus.com>
328
329 * valops.c (value_assign): Make copy of internal variable value
330 before returning it as a new value, since it is owned by the
331 internal variable and will be freed along with it.
332
fa3764e2
JL
333Wed Mar 27 08:36:17 1996 Jeffrey A Law (law@cygnus.com)
334
335 * From Peter Schauer.
336 * breakpoint.c (breakpoint_re_set_one): Keep temporary
337 breakpoints bp_until, bp_finish, bp_watchpoint_cope, bp_call_dummy
338 and bp_step_resume in case breakpoint_re_set_one is called due
339 to a step over a dlopen call.
340 * infrun.c (wait_for_inferior): Always remove breakpoints from
341 inferior in BPSTAT_WHAT_CHECK_SHLIBS case.
342
7e2ff10d
FF
343Tue Mar 26 13:15:32 1996 Fred Fish <fnf@cygnus.com>
344
345 * config/mips/tm-mips.h (COERCE_FLOAT_TO_DOUBLE): Only prefer
346 non-prototyped case over prototyped case for C.
347 * config/pa/tm-hppa.h (COERCE_FLOAT_TO_DOUBLE): Ditto.
348
4cfb23a9
FF
349Sat Mar 23 17:24:28 1996 Fred Fish <fnf@cygnus.com>
350
351 * os9kread.c (os9k_process_one_symbol): Note nonportable
352 assumption that an int can hold a char *.
353
354 * bcache.h (struct hashlink): Wrap data[] inside union with
355 double to force longest alignment.
356 (BCACHE_DATA): New macro to access data[].
357 (BCACHE_ALIGNMENT): New macro to get offset to data[].
358 * bcache.c (lookup_cache, bcache): Use BCACHE_DATA to get
359 address of cached data. Use BCACHE_ALIGNMENT to compute
360 amount of space to allocate for each hashlink struct.
361
b9aa6215
FF
362Sat Mar 23 12:14:02 1996 Fred Fish <fnf@cygnus.com>
363
364 * ch-lang.c (evaluate_subexp_chill): Fix typo.
365
366Thu Mar 21 08:27:19 1996 Fred Fish <fnf@cygnus.com>
367
368 * Makefile.in (VERSION): Bump version to 4.15.3
369
18ea4416
ILT
370Thu Mar 21 10:56:41 1996 Ian Lance Taylor <ian@cygnus.com>
371
372 * config.in: Rename from config.h.in.
373 * configure.in: Call AC_CONFIG_HEADER with config.h:config.in.
374 Change CONFIG_HEADERS test in AC_OUTPUT accordingly.
375 * configure: Rebuild.
376 * Makefile.in (stamp-h): Depend upon config.in, not config.h.in.
377 Set CONFIG_HEADERS to config.h:config.in.
378
67718369
PS
379Tue Mar 19 12:47:51 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
380
381 * partial-stab.h (case N_ENDM): Finish current partial symbol
382 table for Solaris 2 cc.
383
a466b86a
JL
384Tue Mar 19 10:39:15 1996 Jeffrey A Law (law@cygnus.com)
385
386 * rs6000-nat.c (exec_one_dummy_insn): Don't clobber the
387 PC in the registers array. From Peter Schauer.
388
0ef22be9
FF
389Mon Mar 18 13:47:09 1996 Fred Fish <fnf@cygnus.com>
390
391 * symfile.c (reread_symbols): Reinitialize bcache struct
392 members to zero using memset. Also use memset to reinit
393 global_psymbols and static_psymbols, rather than explicitly
394 resetting each structure member.
395
31520669
FF
396Sat Mar 16 19:47:36 1996 Fred Fish <fnf@cygnus.com>
397
398 * configure.in: Add fragment to create stamp-h.
399
400 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
401 * configure.in (AC_CHECK_HEADERS): Check for link.h.
402 * configure: Regenerate with autoconf.
403 * config.h.in: Regenerate with autoheader.
404 * config/i386/nm-linux.h: Include solib.h only if HAVE_LINK_H
405 is defined.
406 * solib.c: Exclude most of the code if HAVE_LINK_H is not defined.
407 * config/i386/linux.mh: Reinstate XM_CLIBS, it is needed for
408 older a.out based systems.
409
bfcf3112 410Sat Mar 16 16:45:43 1996 Fred Fish <fnf@cygnus.com>
db210d08 411
bfcf3112 412 * config.h.in: New file.
db210d08
FF
413 * acconfig.h: New file, for autoheader.
414 * configure.in (AC_CONFIG_HEADER): Add, generate config.h.
415 * configure: Regenerate.
416 * Makefile.in (defs_h): Add config.h
bfcf3112
FF
417 (distclean): Remove config.h and stamp-h during distclean.
418 (config.h, stamp-h): New targets to remake config.h when necessary.
db210d08
FF
419 * defs.h (config.h): Include before any other includes or defines.
420 * i386-tdep.c (gdb_string.h): Move include after include of defs.h.
d58ffc6c 421 * i386v4-nat.c (defs.h): Include before testing HAVE_SYS_PROCFS_H.
db210d08 422
d5fde1c9
FF
423Sat Mar 16 14:55:27 1996 Fred Fish <fnf@cygnus.com>
424
425 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
426 * Makefile.in (INSTALLED_LIBS): Make sure that @LIBS@ will not
427 result in an empty line, to work around a bug in native Ultrix 4.4
428 and OSF/1-3.2C make.
429
3dedc867
FF
430Sat Mar 16 13:33:17 1996 Fred Fish <fnf@cygnus.com>
431
432 * configure.in: Add gdbserver to configdirs under linux.
433 * configure: Regenerate.
434
f727efb5
C
435Fri Mar 15 12:06:58 1996 J.T. Conklin <jtc@rtl.cygnus.com>
436
437 * config/i386/nm-nbsd.h (FLOAT_INFO): Comment out.
438 * config/i386/tm-nbsd.h (NUM_REGS): Define.
439
a404ea25
JL
440Thu Mar 14 10:31:18 1996 Jeffrey A Law (law@cygnus.com)
441
442 * solib.c (solib_break_names): Add _r_debug_state for
443 vanilla SVR4 implementations. From Peter Schauer.
444
445Mon Mar 11 14:24:57 1996 Dawn Perchik <dawn@critters.cygnus.com>
446
447 * mon960-rom.c: New file; support mon960 rom monitor on i960.
448 * monitor.c (monitor_debug): Change remotedebug to buffer strings.
449 * monitor.c (monitor_open): Add test for flag MO_NO_ECHO_ON_OPEN before
450 epecting prompt and echo during open.
451 * monitor.c (monitor_stop): Add test for flag MO_SEND_BREAK_ON_OPEN to
452 determine if break should be sent as stop command.
453 * monitor.h: Add flags MO_NO_ECHO_ON_OPEN and MO_SEND_BREAK_ON_OPEN.
454 * i960-tdep.c (mon960_frame_chain_valid): New function for getting
455 stack frame on mon960.
456 * Makefile.in: Add mon960 files.
457 * configure.in: Changed i960-*-coff* and i960-*-elf* to target mon960;
458 added i960-nindy-coff* and i960-nindy-elf* for target nindy.
459 * configure: Regenerated.
460 * config/i960/mon960.mt, config/i960/tm-mon960.h: New files;
461 support mon960 rom monitor on i960.
462
1ef980b9
SC
463Mon Mar 11 11:02:47 1996 Steve Chamberlain <sac@slash.cygnus.com>
464
465 With Michael Snyder:
466 * i386-tdep.c (skip_trampoline_code): Fix strncmp length.
467 * win32-nat.c (CHECK, DEBUG*, debug_*): New.
468 (handle_load_dll): Don't reload symbols.
469 (handle_exception): Use the DEBUG_* names.
470 (child_wait): Add DEBUG_* code.
471 (_initialize_inftarg): Add new commands to set debug_ names.
472
803a31a3
JL
473Mon Mar 11 09:19:58 1996 Jeffrey A Law (law@cygnus.com)
474
475 * From Peter Schauer:
476 * breakpoint.c (insert_breakpoints): Use ALL_BREAKPOINTS_SAFE.
477 (bpstat_stop_status): Likewise.
478 (remove_solib_event_breakpoints): Likewise.
479 (clear_momentary_breakpoints): Likewise.
480 (re_enable_breakpoints_in_shlibs): Don't reenable a breakpoint
481 if we still can't read the memory for that breakpoint.
482 (mention): Add bp_shlib_event case to keep gcc quiet.
483
484Fri Mar 8 12:08:12 1996 Jeffrey A Law (law@cygnus.com)
485
486 * breakpoint.h (enum enable): New enum shlib_disabled for
487 shared library breakpoints that have been temporarily disabled.
488 * breakpoint.c: Handle temporarily disabled shared library
489 breakpoints like disabled breakpoints in most places.
490 (insert_breakpoints): Use shlib_disabled to indicate
491 that an unsettable breakpoint is only temporarily disabled.
492 (re_enable_breakpoints_in_shlibs): New function.
493 * corelow.c (solib_add_stub): After adding shared libraries,
494 try to reenable any temporarily disabled breakpoints.
495 * infcmd.c (attach_command): Likewise.
496 * infrun.c (wait_for_inferior): Likewise.
497
4972c44e
ILT
498Fri Mar 8 11:41:25 1996 Ian Lance Taylor <ian@cygnus.com>
499
500 * defs.h (extract_long_unsigned_integer): Declare.
501 * findvar.c (extract_long_unsigned_integer): New function.
502 * printcmd.c (print_scalar_formatted): Use it.
503 * valprint.c (val_print_type_code_int): Likewise.
504
00dd4fd9
SS
505Thu Mar 7 17:40:50 1996 Stan Shebs <shebs@andros.cygnus.com>
506
507 * infcmd.c (do_registers_info): Ignore anonymous registers.
508 * sh-tdep.c (set processor): New command to set specific
509 processor type.
510 (sh_reg_names, sh3_reg_names): Arrays of register names for
511 SH and SH3 processors.
512 (sh_set_processor_type): New function.
513 * sh3-rom.c (sh3_open): Call it.
514 (sh3_regname): Add names of all the bank registers.
515 (sh3_supply_register): Clean up formatting.
516 * config/sh/tm-sh.h (NUM_REGS, NUM_REALREGS): Increase to include
517 bank registers.
518 (REGISTER_NAMES): Add names of bank registers.
519 (FP15_REGNUM): Define.
520 (REGISTER_VIRTUAL_TYPE): Use it.
521 * monitor.c: Clean up some comments.
522
43ece84d
C
523Thu Mar 7 12:09:51 1996 J.T. Conklin <jtc@rtl.cygnus.com>
524
525 * i386b-nat.c: Revert part of Mar 5 change. FreeBSD collapsed the
526 s* and t* symbols too.
527
5a367b09
JSC
528Thu Mar 7 15:18:51 1996 James G. Smith <jsmith@cygnus.co.uk>
529
530 * symfile.c (generic_load): Avoid division by zero.
531
653fed07
JL
532Wed Mar 6 17:57:59 1996 Jeffrey A Law (law@cygnus.com)
533
534 * breakpoint.c (bfd_lookup_symbol): Provide for all SVR4 systems,
535 not just those with HANDLE_SVR4_EXEC_EMULATORS.
27b6a1fa 536
00dd4fd9 537 From Peter Schauer:
27b6a1fa
JL
538 * breakpoint.c (internal_breakpoint_number): Move to file scope.
539 (create_solib_event_breakpoint): Use an internal breakpoint number.
540
bb901438
WM
541Wed Mar 6 00:32:44 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
542
543 * valarith.c (value_in): Change builtin_type_chill_bool to
544 LA_BOOL_TYPE.
545
c105168f
WM
546Tue Mar 5 23:48:36 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
547
548 * ch-exp.c (parse_primval): Handle CARD, MAX, MIN.
549 (match_string_literal): Handle control sequence.
550 (match_character_literal): Deto.
551
552 * ch-lang.c (chill_printchar): Change formating of nonprintable
553 characters from C'xx' to ^(num).
554 (chill_printstr): Deto.
555 (value_chill_card, value_chill_max_min): New functions to process
556 Chill's CARD, MAX, MIN.
557 (evaluate_subexp_chill): Process UNOP_CARD, UNOP_CHMAX, UNOP_CHMIN.
558
559 * expression.h (exp_opcode): Add UNOP_CARD, UNOP_CHMAX, UNOP_CHMIN
560 for Chill's CARD, MAX, MIN.
561
562 * valarith.c (value_in): Add processing of TYPE_CODE_RANGE
563 and change return type from builtin_type_int to
564 builtin_type_chill_bool.
565
d009ffd8
SS
566Tue Mar 5 18:54:04 1996 Stan Shebs <shebs@andros.cygnus.com>
567
b4692cbc
SS
568 * config/nm-nbsd.h (link_object, lo_name, etc): Move to here
569 from config/nm-nbsd.h.
570 * config/sparc/nm-nbsd.h (regs, fp_status, etc): Move to here
571 from config/sparc/tm-nbsd.h.
572
d009ffd8
SS
573 * config/m68k/nm-hp300hpux.h (FIVE_ARG_PTRACE): Define here
574 instead of in config/m68k/xm-hp300hpux.h.
575
d554e554
C
576Tue Mar 5 12:05:35 1996 J.T. Conklin <jtc@rtl.cygnus.com>
577
578 * i386b-nat.c, m68knbsd-nat.c (fetch_core_registers): Provide
579 implementation for NetBSD systems.
580
02e6e53d
PB
581Mon Mar 4 23:44:16 1996 Per Bothner <bothner@kalessin.cygnus.com>
582
8d67b75a
PB
583 * valarith.c (binop_user_defined_p): Return 0 for BINOP_CONCAT.
584 (value_concat): Handle varying strings (add COERCE_VARYING_ARRAY).
585
02e6e53d
PB
586 * ch-lang.c (evaluate_subexp_chill case MULTI_SUBSCRIPT): Error
587 if "function" is pointer to non-function.
588
f935141e
SS
589Mon Mar 4 17:47:03 1996 Stan Shebs <shebs@andros.cygnus.com>
590
591 * top.c (print_gdb_version): Update copyright year.
592
11be829f
JL
593Mon Mar 4 14:44:54 1996 Jeffrey A Law (law@cygnus.com)
594
f935141e 595 From Peter Schauer:
11be829f
JL
596 * infrun.c (wait_for_inferior): Remove breakpoints and
597 switch terminal settings before calling SOLIB_ADD.
598 * solib.c (enable_break, SVR4 variant): Don't map in symbols
599 for the dynamic linker, the namespace pollution causes real
600 problems.
601
4f005fea
JSC
602Sun Mar 3 17:18:57 1996 James G. Smith <jsmith@cygnus.co.uk>
603
604 * remote-mips.c (common_breakpoint): Explicitly terminate the
605 returned buffer.
606
cf3c0938
SS
607Wed Feb 28 22:32:18 1996 Stan Shebs <shebs@andros.cygnus.com>
608
609 From Wilfried Moser <wilfried.moser@aut.alcatel.at>:
610 * remote.c (remote_detach): Send a command 'D' to the target
611 when detaching, update the function's comments.
612
8fe2b2c5
FF
613Wed Feb 28 15:50:12 1996 Fred Fish <fnf@cygnus.com>
614
615 * Makefile.in (VERSION): Bump version to 4.15.2 to establish
616 baseline for gdb 4.16 rerelease testing.
617
a4f39c06
JL
618Wed Feb 28 13:32:05 1996 Jeffrey A Law (law@cygnus.com)
619
620 * somsolib.c (som_solib_create_inferior_hook): Before returning
621 call clear_symtab_users.
622
623Tue Feb 27 00:04:46 1996 Stu Grossman (grossman@critters.cygnus.com)
624
625 * remote-e7000.c (e7000_open): Delete all breakpoints when
626 connecting to e7000. Change connect message to allow use of
627 monitor.exp in test suite.
628 * (e7000_load): Print transfer rate of download.
629 * symfile.c (generic_load): Print transfer rate of download.
630
8fa6fcf8
SS
631Sun Feb 25 13:58:33 1996 Stan Shebs <shebs@andros.cygnus.com>
632
633 * configure.in (mips*-*-vxworks*): New config.
634 * configure: Regenerated.
635
636 * config/mips/vxmips.mt, config/mips/tm-vxmips.h: New files.
637 * remote-vxmips.c (vx_convert_to_virtual, vx_convert_from_virtual):
638 Remove, never used.
639
a97a483c
PS
640Sat Feb 24 12:30:28 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
641
642 * partial-stab.h (case N_FUN): Function symbols generated
643 by SPARCworks cc have a meaningless zero value, do not update
644 pst->textlow if the function symbol value is zero.
645
646 * stabsread.c (define_symbol): Initialize SYMBOL_TYPE field
647 for function prototype declaration symbols.
648
b5eccf74
SG
649Fri Feb 23 22:33:04 1996 Stu Grossman (grossman@critters.cygnus.com)
650
651 * remote-e7000.c (e7000_load): New routine to download via the
652 network.
653 * (e7000_wait): Don't backup PC when we hit a breakpoint.
654 Apparantly new sh2 pods get this right...
655 * (e7000_ops): Add call to e7000_load.
656
b7f3b6d5
C
657Thu Feb 22 00:52:42 1996 J.T. Conklin <jtc@rtl.cygnus.com>
658
659 * config/m68k/{nbsd.mh,nbsd.mt,nm-nbsd.h,tm-nbsd.h,xm-nbsd.h},
660 m68knbsd-nat.c: New files, support for NetBSD/m68k.
661
662 * configure.in (m68k-*-netbsd*): New config.
663 * configure: Regenerated.
664
6a6a552a
FF
665Wed Feb 21 19:00:21 1996 Fred Fish <fnf@ninemoons.com>
666
667 * standalone.c (open, _initialize_standalone): Fix obvious typos
668 reported by Martin Pool <martin@citr.uq.oz.au>.
669
13f6c7ea
JL
670Wed Feb 21 14:24:04 1996 Jeffrey A Law (law@cygnus.com)
671
672 * solib.c (solib_create_inferior_hook): Fix thinko.
673
464c6c5f
JL
674Tue Feb 20 23:59:19 1996 Jeffrey A Law (law@cygnus.com)
675
676 * solib.c (solib_break_names): Define for Solaris and Linux.
677 (enable_break): For SVR4 systems, first try to use the debugger
678 interfaces in the dynamic linker to track shared library events
679 as they happen, then fall back to BKPT_AT_SYMBOL code. Convert
680 BKPT_AT_SYMBOL code to use shared library event breakpoints.
681 (solib_create_inferior_hook): Simplify BKPT_AT_SYMBOL code,
682 it no longer needs to restart/wait on the inferior.
683 * symfile.c (find_lowest_section): No longer static.
684 * symfile.h (find_lowest_section): Corresponding changes.
685
45c5fa78
FF
686Tue Feb 20 18:54:08 1996 Fred Fish <fnf@rtl.cygnus.com>
687
688 * valops.c (COERCE_FLOAT_TO_DOUBLE): Define default value.
689 (value_arg_coerce): Use COERCE_FLOAT_TO_DOUBLE.
690 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Define to 1.
691 * config/mips/tm-mips.h: Ditto.
692 * config/pa/tm-hppa.h: Ditto.
693 * config/rs6000/tm-rs6000.h: Ditto.
694 * config/sparc/tm-sparc.h: Ditto.
695
48d27324
C
696Tue Feb 20 17:32:05 1996 J.T. Conklin <jtc@rtl.cygnus.com>
697
eb224848
C
698 * config/{i386,ns32k}/nbsd.mh (NATDEPFILES): Remove core-aout.o.
699
48d27324
C
700 * config/nm-nbsd.h (FETCH_INFERIOR_REGISTERS): Defined.
701 * config/xm-nbsd.h (CC_HAS_LONG_LONG, PRINTF_HAS_LONG_LONG):
702 #ifdef'd out definitions --- Causes serious gdb failures on
703 the i386. Need to investigate further before enabling.
704
705 * i386b-nat.c (fetch_inferior_registers, store_inferior_registers,
706 fetch_core_registers): New functions. These functions are defined
707 if FETCH_INFERIOR_REGISTERS is set. Registers are fetched/stored
708 with ptrace PT_GETREGS/PT_SETREGS.
709
95f6f926
SG
710Tue Feb 20 16:55:06 1996 Stu Grossman (grossman@critters.cygnus.com)
711
712 * findvar.c (extract_floating store_floating): Replace `long
713 double' with `DOUBLEST'.
714
cb91ea56
C
715Mon Feb 19 15:25:51 1996 J.T. Conklin <jtc@rtl.cygnus.com>
716
717 * config/xm-nbsd.h (CC_HAS_LONG_LONG, PRINTF_HAS_LONG_LONG):
718 Define.
719
9263da6f
JL
720Mon Feb 19 10:32:05 1996 Jeffrey A Law (law@cygnus.com)
721
722 * symtab.h (looup_minimal_symbol_solib_trampoline): Declare.
723
724 * breakpoint.h (remove_solib_event_breakpoints): Declare.
725 * breakpoint.c (remove_solib_event_breakpoints): New function.
726 * somsolib.c (solib_create_inferior_hook): Remove all solib event
727 breakpoints before inserting any new ones. Use a solib event
728 breakpoint for the breakpoint at "_start".
729 Remove extraneous "\n" from calls to warning.
730
731 * breakpoint.c (breakpoint_1): Add missing "sigtramp" to bptypes
732 name array.
733
0708e99f
FF
734Mon Feb 19 01:09:32 1996 Doug Evans <dje@cygnus.com>
735
736 * dwarfread.c (add_partial_symbol): Use ADD_PSYMBOL_ADDR_TO_LIST
737 for CORE_ADDR values.
738 (new_symbol): Use SYMBOL_VALUE_ADDRESS for CORE_ADDR values.
739 * symfile.h (add_psymbol_{,addr}to_list): Add prototypes.
740
08dc1eeb
PS
741Sun Feb 18 14:37:13 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
742
743 * mipsread.c (mipscoff_symfile_read): Unconditionally add
744 alpha coff dynamic symbols for all symbol files. Makes skipping
745 over the trampoline code work when stepping from a function in a
746 shared library into a function in a different shared library.
747
1d6afd7f
SG
748Sun Feb 18 09:27:10 1996 Stu Grossman (grossman@cygnus.com)
749
750 * config/sparc/tm-sparc.h: Define PS_FLAG_CARRY. Define
751 RETURN_VALUE_ON_STACK to return long doubles on the stack.
752
0708e99f 753Sat Feb 17 16:33:11 1996 Fred Fish <fnf@cygnus.com>
176b2bee
FF
754
755 * Makefile.in (ch-exp.o): Add dependencies.
756 (various): Add gdb_string.h to dependencies that need it.
757
dcb6a7c0
FF
758Sat Feb 17 08:57:50 1996 Fred Fish <fnf@cygnus.com>
759
760 * symmisc.c (print_symbol_bcache_statistics): Update description for
761 printing byte cache statistics.
762
aa220473
SG
763Thu Feb 16 16:02:03 1996 Stu Grossman (grossman@cygnus.com)
764
765 * Add native support for long double data type.
766 * c-exp.y (%union): Change dval to typed_val_float. Use DOUBLEST
767 to store actual data. Change types of INT and FLOAT tokens to
768 typed_val_int and typed_val_float respectively. Create new token
769 DOUBLE_KEYWORD to specify the string `double'. Make production
770 for FLOAT use type determined by parse_number. Add production for
771 "long double" data type.
772 * (parse_number): Use sscanf to parse numbers as float, double or
773 long double depending upon the type of typed_val_float.dval. Also
774 allow user to specify `f' or `l' suffix to explicitly specify
775 float or long double constants. Change typed_val to
776 typed_val_int.
777 * (yylex): Change typed_val to typed_val_int. Also, scan for
778 "double" keyword.
779 * coffread.c (decode_base_type): Add support for T_LNGDBL basic
780 type.
781 * configure, configure.in: Add check for long double support in
782 the host compiler.
783 * defs.h: Define DOUBLEST appropriatly depending on whether
784 HAVE_LONG_DOUBLE (from autoconf) is defined. Also, fix prototypes
785 for functions that handle this type.
786 * expression.h (union exp_element): doubleconst is now type
787 DOUBLEST.
788 * m2-exp.y f-exp.y (%union): dval becomes type DOUBLEST.
789 * findvar.c (extract_floating): Make return value be DOUBLEST.
790 Also, add support for numbers with size of long double.
791 * (store_floating): Arg `val' is now type DOUBLEST. Handle all
792 floating types.
793 * parser-defs.h parse.c (write_exp_elt_dblcst): Arg expelt is now
794 DOUBLEST.
795 * valarith.c (value_binop): Change temp variables v1, v2 and v to
796 type DOUBLEST. Coerce type of result to long double if either op
797 was of that type.
798 * valops.c (value_arg_coerce): If argument type is bigger than
799 double, coerce to long double.
800 * (call_function_by_hand): If REG_STRUCT_HAS_ADDR is defined, and
801 arg type is float and > 8 bytes, then use pointer-to-object
802 calling conventions.
803 * valprint.c (print_floating): Arg doub is now type DOUBLEST.
804 Use appropriate format and precision to print out floating point
805 values.
806 * value.h: Fixup prototypes for value_as_double,
807 value_from_double, and unpack_double to use DOUBLEST.
808 * values.c (record_latest_value): Remove check for invalid
809 floats. Allow history to store them so that people may examine
810 them in hex if they want.
811 * (value_as_double unpack_double): Change return value to DOUBLEST.
812 * (value_from_double): Arg `num' is now DOUBLEST.
813 * (using_struct_return): Use RETURN_VALUE_ON_STACK macro (target
814 specific) to expect certain types to always be returned on the stack.
815
2ad5709f
FF
816Fri Feb 16 14:00:54 1996 Fred Fish <fnf@cygnus.com>
817
818 * bcache.c, bcache.h: New files to implement a byte cache.
819 * Makefile.in (SFILES): Add bcache.c.
820 (symtab_h): Add bcache.h.
821 (HFILES_NO_SRCDIR): add bcache.h
822 (COMMON_OBJS): Add bcache.o
823 (bcache.o): New target.
824 * dbxread.c (start_psymtab): Make global_syms & static_syms
825 type "partial_symbol **".
826 * hpread.c (hpread_start_symtab): Ditto.
827 * os9kread.c (os9k_start_psymtab): Ditto.
828 * stabsread.h (start_psymtab): Ditto.
829 * {symfile.c, symfile.h} (start_psymtab_common): Ditto.
830 * maint.c (maintenance_print_statistics): Call
831 print_symbol_bcache_statistics.
832 * objfiles.c (allocate_objfile): Initialize psymbol bcache malloc
833 and free pointers.
834 * solib.c (allocate_rt_common_objfile): Ditto.
835 * symfile.c (reread_symbols): Ditto.
836 (free_objfile): Free psymbol bcache when objfile is freed.
837 (objfile_relocate): Use new indirect psymbol pointers.
838 * objfiles.h (struct objfile): Add psymbol cache.
839 * symfile.c (compare_psymbols): Now passed pointers to pointers to
840 psymbols.
841 (reread_symbols): Free psymbol bcache when freeing other objfile
842 resources.
843 (add_psymbol_to_list, add_psymbol_addr_to_list): Initialize new
844 psymbol using the psymbol bcache.
845 (init_psymbol_list): Psymbol lists now contain pointers rather than
846 the actual psymbols.
847 * symfile.h (psymbol_allocation_list): Psymbol lists now dynamically
848 grown arrays of pointers.
849 (ADD_PSYMBOL_VT_TO_LIST): Initialize new symbol using the psymbol
850 bcache.
851 * symmisc.c (print_partial_symbols): Now takes pointer to pointer
852 to partial symbol.
853 (print_symbol_bcache_statistics): New function to print per objfile
854 bcache statistics.
855 (print_partial_symbol, print_partial_symbols,
856 maintenance_check_symtabs, extend_psymbol_list):
857 Account for change to pointer to pointer to partial symbol.
858 * symtab.c (find_pc_psymbol, lookup_partial_symbol, decode_line_2,
859 make_symbol_completion_list):
860 Account for change to pointer to pointer to partial symbol.
861 * symtab.h (bcache.h): Include.
862 * xcoffread.c (xcoff_start_psymtab): Make global_syms & static_syms
863 type "partial_symbol **".
864
4a1d2ce2
FF
865Fri Feb 16 10:02:34 1996 Fred Fish <fnf@cygnus.com>
866
867 * dwarfread.c (free_utypes): New function.
868 (read_file_scope): Call free_utypes as cleanup, rather than just
869 freeing the utypes pointer.
870
81afee37
FF
871Thu Feb 15 21:40:52 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
872
873 * demangle.c (is_cplus_marker): New function, checks if a
874 character is one of the commonly used C++ marker characters.
875 * defs.h (is_cplus_marker): Add prototype.
876 * c-typeprint.c (c_type_print_base), ch-lang.c (chill_demangle),
877 cp-valprint.c (cp_print_class_method), mdebugread.c (parse_symbol),
878 stabsread.c (define_symbol, read_member_functions, read_struct_fields),
879 symtab.h (OPNAME_PREFIX_P, VTBL_PREFIX_P, DESTRUCTOR_PREFIX_P),
880 values.c (vb_match): Use is_cplus_marker instead of comparison
881 with CPLUS_MARKER.
882
14b22711
FF
883Thu Feb 15 18:08:13 1996 Fred Fish <fnf@cygnus.com>
884
885 * symfile.h (INLINE_ADD_PSYMBOL): Default this to 0 and possibly
886 delete entirely someday.
887
884fb64c
SS
888Thu Feb 15 15:25:34 1996 Stan Shebs <shebs@andros.cygnus.com>
889
890 * mpw-make.sed: Edit out makefile rebuild rule.
891 (host_alias, target_alias): Comment out instead of deleting.
892 (@LIBS@): Edit out references.
893
f1d39876
FF
894Tue Feb 13 22:56:46 1996 Fred Fish <fnf@cygnus.com>
895
896 * symfile.c (add_psymbol_to_list, add_psymbol_addr_to_list):
897 Use n_psyms in OBJSTAT, not psyms.
898
899Mon Feb 12 15:59:31 1996 Doug Evans <dje@charmed.cygnus.com>
900
901 * configure.in (sparclet-*-aout*): New config.
902 * configure: Regenerated.
903
c37c7c6c
FF
904Mon Feb 12 14:17:52 1996 Fred Fish <fnf@cygnus.com>
905
906 * somsolib.c (som_solib_add): Use xmalloc rather than bare
907 unchecked call to malloc.
908 * remote-mips.c (pmon_load_fast): ditto.
909 * remote-mm.c (mm_open): ditto.
910 * hpread.c (hpread_lookup_type): ditto.
911 * remote-adapt.c (adapt_open): ditto.
912
6405302d
FF
913Mon Feb 12 13:11:32 1996 Fred Fish <fnf@cygnus.com>
914
915 * f-lang.c (allocate_saved_bf_node, allocate_saved_function_node,
916 allocate_saved_f77_common_node, allocate_common_entry_node,
917 add_common_block): Use xmalloc rather than malloc, some of which
918 were unchecked.
919 * gnu-regex.c: At same point as other gdb specific changes
920 #undef malloc and then #define it to xmalloc.
921 * ch-exp.c (growbuf_by_size): Use xmalloc/xrealloc rather than
922 bare unchecked calls to malloc/realloc.
923 * stabsread.c (dbx_lookup_type): Use xmalloc rather than bare
924 unchecked call to malloc.
925
ff7116e2
SG
926Wed Feb 7 11:31:26 1996 Stu Grossman (grossman@cygnus.com)
927
928 * symtab.c (gdb_mangle_name): Change opname var to be const to
929 match return val of cplus_mangle_name.
930 * i960-tdep.c: Change arg types of next_insn to match callers.
931
b0ee0cf2
FF
932Wed Feb 7 07:34:24 1996 Fred Fish <fnf@cygnus.com>
933
934 * config/i386/linux.mh (XM_CLIBS, GDBSERVER_LIBS): Remove. These
935 apparently aren't needed in any reasonably recent version of
936 linux.
937
ec49fc98
PB
938Tue Feb 6 21:37:03 1996 Per Bothner <bothner@kalessin.cygnus.com>
939
940 * stabsread.c (read_range_type): If !self-subrange and language
941 is Chill, assume a true range. If a true_range is a sub_subrange,
942 use builtin_type_int for index_type.
943
944Tue Feb 6 18:38:51 1996 J.T. Conklin <jtc@slave.cygnus.com>
945
946 * nindy-share/nindy.c (say): Use stdarg.h macros when compiling
947 with an ANSI compiler.
948
f0b0d915
TT
949start-sanitize-gdbtk
950Tue Feb 6 16:31:25 1996 Tom Tromey <tromey@creche.cygnus.com>
951
952 * gdbtk.tcl (create_file_win): Eliminate text widget B1 binding so
953 double-clicking will work again.
954 (create_asm_win): Put "break" at end of all B1 bindings.
955 (create_file_win): Lower "sel" tag, don't raise it.
956 (ensure_line_visible): New proc.
957 (update_listing, update_assembly): Use it.
958 (create_copyright_window): Destroy window on Leave event.
959 (create_command_window): Put "break" at end of all B2 bindings.
960
961end-sanitize-gdbtk
263af172
SC
962Mon Feb 5 18:24:28 1996 Steve Chamberlain <sac@slash.cygnus.com>
963
964 From Michael_Snyder@NeXT.COM (Michael Snyder):
965 * valops.c (value_arg_coerce): Coerce float to double, unless the
966 function prototype specifies float.
967
fc71ad23 968Mon Feb 5 09:51:55 1996 Tom Tromey <tromey@creche.cygnus.com>
8bdae156 969
fc71ad23
TT
970 * language.c (set_language_command): Use languages table when
971 printing available languages.
972
973Sat Feb 3 12:22:05 1996 Fred Fish <fnf@cygnus.com>
974
975 Fix problems reported by Hans Verkuil (hans@wyst.hobby.nl):
976 * command.c (add_cmd): Add missing initialization for enums member.
977 Reorder members to match structure declaration to make it easier to
978 tell when one is missing.
979 * exec.c (exec_file_command): Fix problem where filename in malloc'd
980 memory is referenced after being freed.
8bdae156 981
255181a9
PS
982Sat Feb 3 03:26:21 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
983
984 * dwarfread.c (read_func_scope): Avoid GDB core dumps if
985 AT_name tag is missing.
986
987 * procfs.c (procfs_stopped_by_watchpoint): Fix logic when
988 FLTWATCH and FLTKWATCH are defined.
989
990 * remote.c (remote_read_bytes): Advance memaddr for transfers,
991 return number of bytes transferred for partial reads.
992
993 * top.c (init_signals): Reset SIGTRAP to SIG_DFL.
994
454ffae5
SC
995Fri Feb 2 13:40:50 1996 Steve Chamberlain <sac@slash.cygnus.com>
996
997 * win32-nat.c (mappings): Add ppc registers.
9a763320 998 (child_resume): Turn off step for ppc.
454ffae5 999
3d78f532
SC
1000Thu Feb 1 10:29:31 1996 Steve Chamberlain <sac@slash.cygnus.com>
1001
1002 * config/powerpc/(cygwin32.mh, cygwin32.mt, tm-cygwin32.h,
1003 xm-cygwin32.h): New.
1004 * config/i386/(*win32*): Becomes *cygwin32*.
1005 * configure.in (i[3456]86-*-win32*): Becomes i[3456]86-*-cygwin32.
1006 (powerpcle-*-cygwin32): New.
1007 * configure: Regenerate.
1008 * win32-nat.c (child_create_inferior): Call CreateProcess
1009 with the right program arg.
1010
4ad70253
JL
1011Thu Feb 1 11:01:10 1996 Jeffrey A Law (law@cygnus.com)
1012
1013 * config/pa/tm-hppa.h (SOFT_FLOAT): Provide a default definition.
1014
0db5a6fe
FF
1015Wed Jan 31 19:01:28 1996 Fred Fish <fnf@cygnus.com>
1016
1017 * serial.c: Change fputc/fputs/fprintf to _unfiltered forms.
1018
28bc5ef7
SS
1019Wed Jan 31 18:36:27 1996 Stan Shebs <shebs@andros.cygnus.com>
1020
97abaf19
SS
1021 * config/sparc/xm-sun4os4.h (HAVE_TERMIOS): Remove.
1022
28bc5ef7
SS
1023 * config/sparc/xm-sparc.h (HAVE_WAIT_STRUCT): Remove, never used.
1024
97abaf19
SS
1025 * config/i386/nm-i386mach.h (CHILD_PREPARE_TO_STORE): Move to
1026 here from config/i386/xm-i386mach.h, fix name.
1027 * config/i386/nm-sun386.h: Ditto, from config/i386/xm-sun386.h.
1028 * config/i386/nm-ptx4.h (CHILD_PREPARE_TO_STORE): Move to
1029 here from config/i386/xm-ptx4.h.
1030 * config/i386/nm-ptx4.h: Ditto, from config/i386/xm-ptx.h.
1031 * config/i386/nm-symmetry.h: Ditto, from config/i386/xm-symmetry.h.
1032 * config/m68k/nm-sun3.h: Ditto, from config/m68k/xm-sun3.h.
1033 * config/sparc/nm-nbsd.h: Ditto, from config/sparc/xm-nbsd.h.
1034 * config/sparc/nm-sun4os4: Ditto, from config/sparc/xm-sparc.h.
1035
28bc5ef7
SS
1036 * config/sparc/nm-sun4sol2.h: New file, renamed from nm-sysv4.h.
1037 (PRSVADDR_BROKEN): Move here from xm-sun4sol2.h.
1038 * config/sparc/sun4sol2.mh (NAT_FILE): Update.
28bc5ef7 1039
17280c3f
JL
1040Wed Jan 31 17:20:26 1996 Jeffrey A Law (law@cygnus.com)
1041
1042 * config/pa/tm-hppa.h (EXTRACT_RETURN_VALUE): Handle software
1043 floating point correctly.
1044 (STORE_RETURN_VALUE): Likewise.
1045 * config/pa/tm-pro.h (SOFT_FLOAT): define.
1046
44e9f3b3
FF
1047Wed Jan 31 13:34:52 1996 Fred Fish <fnf@cygnus.com>
1048
1049 * config/i386/xm-linux.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
1050 Define to what should be reasonable values. However, apparently
1051 a bug in linux mmap prevents mapped symbol tables from working.
1052
ad1e42be
FF
1053Tue Jan 30 18:26:19 1996 Fred Fish <fnf@cygnus.com>
1054
1055 * defs.h (errno.h>: Move #include closer to head of file to solve
1056 obscure problem with systems that declare perror with const arg, in
1057 both errno.h and stdio.h, and const is defined away by intervening
1058 local include.
1059
d3ba76fc
FF
1060Tue Jan 30 15:41:10 1996 Fred Fish <fnf@cygnus.com>
1061
1062 From Jon Reeves <reeves@zk3.dec.com>:
1063 * i386-stub.c (getpacket): Change fprintf stream from "gdb" to stderr.
1064 (mem_fault_routine): Fix misplaced volatile type qualifier in decl.
1065
f6ade5dd
FF
1066Mon Jan 29 19:05:58 1996 Fred Fish <fnf@cygnus.com>
1067
1068 * Makefile.in (diststuff): Make all-doc; diststuff target does not
1069 exist in doc/Makefile.in.
1070
cdea3fd3
SS
1071Mon Jan 29 18:44:57 1996 Stan Shebs <shebs@andros.cygnus.com>
1072
1073 * config/m88k/xm-cxux.h (BP_HIT_COUNT): Remove, never used.
1074
d221b17e
WM
1075Mon Jan 29 00:10:35 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
1076
cdea3fd3
SS
1077 * ch-valprint.c (calculate_array_length): New function to
1078 determine the length of an array type.
d221b17e
WM
1079 (chill_val_print (case TYPE_CODE_ARRAY)): If the length of an
1080 array type is zero, call calculate_array_length.
1081
cdea3fd3
SS
1082 * gdbtypes.c (get_discrete_bounds (case TYPE_CODE_ENUM)): The
1083 values may not be sorted. Scan all entries and set the real lower
1084 and upper bound.
d221b17e 1085
fa9f5840
FF
1086Sun Jan 28 15:50:42 1996 Fred Fish <fnf@cygnus.com>
1087
1088 * config/xm-linux.h: Move include of solib.h and #define of
1089 SVR4_SHARED_LIBS from here ...
1090 * config/nm-linux.h: ...to here.
1091
4708ac65
FF
1092Sat Jan 27 10:34:05 1996 Fred Fish <fnf@cygnus.com>
1093
1094 * configure.in (AC_CHECK_HEADERS): Check for sys/procfs.h.
1095 Also check for gregset_t and fpregset_t types.
1096 * configure: Regenerate.
1097 * core-regset.c (sys/procfs.h): Only include if HAVE_SYS_PROCFS_H
1098 is defined.
1099 (fetch_core_registers): Turn into stub unless both HAVE_GREGSET_T
1100 and HAVE_FPREGSET_T are defined. These changes allow systems
1101 like linux that are migrating to /proc support to use a single
1102 configuration for both new and old versions.
1103
1104 * config/i386/linux.mt: Note that this is now for both a.out and
1105 ELF systems.
1106 * config/i386/linux.mh (NATDEPFILES): Add solib.o, core-regset.o,
1107 i386v4-nat.o
1108 * config/i386/tm-linux.h (tm-sysv4.h): Include.
1109 * config/i386/xm-linux.h (solib.h): Include
1110 (SVR4_SHARED_LIBS): Define.
1111 * i386v4-nat.c: Only compile if HAVE_SYS_PROCFS_H is defined.
1112 (supply_gregset, fill_gregset): Compile if HAVE_GREGSET_T defined.
cdea3fd3
SS
1113 (supply_fpregset, fill_fpregset): Compile if HAVE_FPREGSET_T
1114 defined.
4708ac65 1115
a77bf669
SS
1116Fri Jan 26 13:48:14 1996 Stan Shebs <shebs@andros.cygnus.com>
1117
1118 * config/sparc/xm-sparc.h (NEW_SUN_CORE): Remove, never used.
1119 * config/i386/xm-sun386.h: Ditto.
1120 * config/m68k/xm-sun2.h, config/m68k/xm-sun3.h: Ditto.
1121
1122Thu Jan 25 16:05:53 1996 Tom Tromey <tromey@creche.cygnus.com>
1123
1124 * Makefile.in (INSTALLED_LIBS, CLIBS): Include @LIBS@.
1125
a4b4479a
SC
1126Thu Jan 25 09:22:15 1996 Steve Chamberlain <sac@slash.cygnus.com>
1127
1128 From Greg McGary <gkm@gnu.ai.mit.edu>:
1129 * dcache.c (dcache_peek, dcache_poke): Advance addr for
1130 multi-byte I/O.
1131
4133a76e
JL
1132Thu Jan 25 13:08:51 1996 Doug Evans (dje@cygnus.com)
1133
1134 * infrun.c (normal_stop): Fix test for shared library event.
1135
146ee7db
DE
1136Thu Jan 25 03:26:38 1996 Doug Evans <dje@charmed.cygnus.com>
1137
1138 * configure.in (sparc64-*-*): Add default host configuration.
1139start-sanitize-gdbtk
1140 (sparc64-*-solaris2* host): Link statically if GCC used.
1141end-sanitize-gdbtk
1142 (sparc64-*-solaris2*): Add target configuration.
b23b4cb5 1143 * configure: Regenerated.
146ee7db
DE
1144 * sparc/sp64sol2.mt: New file.
1145
76336191
DE
1146Wed Jan 24 22:31:37 1996 Doug Evans <dje@charmed.cygnus.com>
1147
1148 * Makefile.in (RUNTEST): srcdir renamed to rootsrc.
1149
1a57cd09
TT
1150Wed Jan 24 15:42:24 1996 Tom Tromey <tromey@creche.cygnus.com>
1151
1152 * Makefile.in (lint): Close backquotes.
1153
1154start-sanitize-gdbtk
1155Wed Jan 24 15:28:41 1996 Tom Tromey <tromey@creche.cygnus.com>
1156
1157 * gdbtk.tcl, gdbtk.c: Updated copyrights.
1158
1159 * configure.in: Look for -ldl or -ldld when using Tcl 7.5 or
1160 greater.
1161 * configure: Rebuilt.
1162
1163end-sanitize-gdbtk
e8f1ad9a
FF
1164Wed Jan 24 13:19:10 1996 Fred Fish <fnf@cygnus.com>
1165
1166 * NEWS: Make note of new record and replay feature for
1167 remote debug sessions.
1168 * serial.c (gdbcmd.h): Include.
1169 (serial_logfile, serial_logfp, serial_reading, serial_writing):
1170 Define here, for remote debug session logging.
1171 (serial_log_command, serial_logchar, serial_write, serial_readchar):
1172 New functions for remote debug session logging.
1173 (serial_open): Open remote debug session log file when needed.
1174 (serial_close): Close remote debug session log file when needed.
1175 (_initialize_serial): Add set/show commands for name of remote
1176 debug session log file.
1177 * serial.h (serial_readchar): Declare
1178 (SERIAL_READCHAR): Call serial_readchar().
1179 (SERIAL_WRITE): Call serial_write().
1180 (serial_close): Declare as extern.
1181 (serial_logfile, serial_logfp): Declare.
1182 * top.c (execute_command): Declare serial_logfp. Log user command
1183 in remote debug session log if log file is open.
1184 * remote-array.c (array_wait): #ifdef out echo to gdb_stdout.
1185 (array_read_inferior_memory): Rewrite to fix memory overwrite bug.
1186 * remote-array.c (SREC_SIZE): Remove, duplicates define in
1187 monitor.h.
1188 * remote-array.c (hexchars, hex2mem): Remove, unused.
1189 * gdbserver/low-linux.c (store_inferior_registers): Remove
1190 unnecessary extern declaration of registers[].
1191 * gdbserver/Makefile.in (all): Add gdbreplay.
1192 * gdbserver/gdbreplay.c: New file.
1193 * gdbserver/README: Give example of recording a remote
1194 debug session with gdb and then replaying it with gdbreplay.
1195
c6038971
PB
1196Tue Jan 23 18:02:35 1996 Per Bothner <bothner@kalessin.cygnus.com>
1197
1198 * stabsread.c (rs6000_builtin_type): Make bool type unsigned.
1199 (read_one_struct_field): Support boolean bitfields.
1200 * c-valprint.c (c_val_print): Print booleans properly.
1201
5a8d8b8d
SS
1202Tue Jan 23 18:54:09 1996 Stan Shebs <shebs@andros.cygnus.com>
1203
1204 * remote-vxsparc.c (vx_convert_to_virtual, vx_convert_from_virtual):
1205 Remove, never used.
1206 * config/sparc/vxsparc.mt (TDEPFILES): Add remote-vxsparc.o.
1207
ec5f347c
PB
1208Tue Jan 23 14:36:05 1996 Per Bothner <bothner@kalessin.cygnus.com>
1209
9293e886
PB
1210 * ch-exp.c (parse_tuple): Error if invalid mode.
1211
533bda77
PB
1212 * value.h (COERCE_ARRAY): Don't coerce enums.
1213 (COERCE_ENUM): Don't COERCE_REF.
1214 (COERCE_NUMBER): New macro (same as COERCE_ARRAY then COERCE_ENUM).
1215 * valops.c (value_assign): Only do COERCE_ARRAY if internalvar (let
1216 value_cast handle it otherwise); do *not* COERCE_ENUM either way.
1217 * valarith.c: Use COERCE_NUMBER instead od COEREC_ARRAY.
1218 Add COERCE_REF before COERCE_ENUM.
1219 * values.c (value_as_long): Simplify.
1220
1221 * valops.c (value_array): Create internalvar if !c_style_arrays.
1222
ec5f347c
PB
1223 * language.c (lang_bool_type): Add Fortran support.
1224 * eval.c (OP_BOOL): Use LA_BOOL_TYPE.
1225
87273c71
JL
1226Tue Jan 23 13:08:26 1996 Jeffrey A Law (law@cygnus.com)
1227
1228 * symfile.c (auto_solib_add): Renamed from auto_solib_add_at_startup.
1229 All references changed.
1230 * breakpoint.c (bpstat_what): Add shlib_event to the class types.
1231 Update state table. Reformat so that it's still readable.
1232 When we hit the shlib_event breakpoint, set the calss of shlib_event.
1233 (breakpoint_1): Add "shlib events" as a breakpoint type.
1234 Print the shlib_event breakpoint like other breakpoints.
1235 (create_solib_event_breakpoint): New function.
1236 (breakpoint_re_set_one): Handle solib_event breakpoints.
1237 * breakpoint.h (enum bytype): Add bp_shlib_event breakpoint type.
1238 (enum bpstat_what_main_action): Add BPSTAT_WHAT_CHECK_SHLIBS
1239 action.
1240 (create_solib_event_breakpoint): Declare.
1241 * infrun.c (wait_for_inferior): Handle CHECK_SHLIBS bpstat.
1242 (normal_stop): Inform the user when the inferior stoped due
1243 to a shared library event.
a77bf669 1244 (_initialize_infrun): Add new set/show variable "stop-on-solib-events"
87273c71
JL
1245 to control whether or not gdb continues the inferior or stops it when
1246 a shared library event occurs.
1247 * minsyms.c (lookup_minimal_symbol_solib_trampoline): New function.
1248 * somsolib.c (TODO list): Update.
1249 (som_solib_create_inferior_hook): Arrange for gdb to be notified
1250 when significant shared library events occur.
1251 * hppa-tdep.c (find_unwind_entry): No longer static.
1252
fc941258
DE
1253Tue Jan 23 09:00:48 1996 Doug Evans <dje@charmed.cygnus.com>
1254
5a8d8b8d
SS
1255 * printcmd.c (print_insn): Pass fprintf_unfiltered to
1256 INIT_DISASSEMBLE_INFO.
1257start-sanitize-gdbtk
1258 * gdbtk.c (gdb_disassemble): Likewise.
1259end-sanitize-gdbtk
fc941258 1260
b3fd4c06
SS
1261Mon Jan 22 16:59:40 1996 Stan Shebs <shebs@andros.cygnus.com>
1262
1263 * remote.c (remotebreak): New GDB variable.
1264 (remote_break): New global.
1265 (remote_interrupt): Send a break instead of ^C if remote_break.
1266 * NEWS: Describe the new variable.
1267
d2f5fa49
DE
1268Mon Jan 22 16:24:11 1996 Doug Evans <dje@charmed.cygnus.com>
1269
1270 * sparc-tdep.c (_initialize_sparc_tdep): Always use print_insn_sparc.
1271
8c038399
FF
1272Fri Jan 19 07:19:38 1996 Fred Fish <fnf@cygnus.com>
1273
1274 * hp300ux-nat.c (getpagesize): Remove unused function
1275 fetch_core_registers.
1276 (hp300ux_core_fns): Remove, is unused.
1277 (_initialize_core_hp300ux): Remove, is unused.
1278 (gdbcore.h): Remove #include, no longer needed.
1279
a0d76829
JL
1280Fri Jan 19 00:59:53 1996 Jeffrey A Law (law@cygnus.com)
1281
1282 * rs6000-nat.c (exec_one_dummy_insn): Rework to avoid
1283 ptrace bug in aix4.1.3 on the rs6000.
1284
b6768627
SS
1285Wed Jan 17 13:22:27 1996 Stan Shebs <shebs@andros.cygnus.com>
1286
1287 * remote-hms.c (hms_ops): Add value for to_thread_alive.
1288 * remote-nindy.c (nindy_ops): Ditto.
1289 * remote-udi.c (udi_ops): Ditto.
1290
090d784a
JSC
1291Tue Jan 16 18:00:35 1996 James G. Smith <jsmith@cygnus.co.uk>
1292
1293 * remote-mips.c (pmon_opn, pmon_wait, pmon_makeb64, pmon_zeroset,
1294 pmon_checkset, pmon_make_fastrec, pmon_check_ack,
1295 pmon_load_fast): New functions. Support for the PMON monitor world.
1296 (common_open): New function to merge support for different monitors.
1297 (mips_open): Use common_open().
1298 (mips_send_command): New function.
1299 (mips_send_packet): Scan out-of-sequence packets.
1300 (mips_enter_debug, mips_exit_debug): New functions.
1301 (pmon_ops): New target definition structure.
1302
4e327047
TT
1303Tue Jan 16 11:22:58 1996 Stu Grossman (grossman@cygnus.com)
1304
1305 * Makefile.in (CLIBS): Add LIBS to allow libraries to be
1306 specified on the make command line (via make LIBS=xxx).
1307start-sanitize-gm
1308 * configure.in (enable-gm): magic.o -> gmagic.o.
1309end-sanitize-gm
1310
1311start-sanitize-gdbtk
1312Mon Jan 15 09:58:41 1996 Tom Tromey <tromey@creche.cygnus.com>
1313
1314 * gdbtk.tcl (create_expr_window): Many changes to update GUI.
1315 (add_expr): Changes from create_expr_window.
1316 (create_command_window): Set focus.
1317 (delete_expr): Rewrote.
1318 (expr_update_button): New proc.
1319 (add_expr): Put bindings on FocusIn, FocusOut.
1320 Don't allow .file_popup to be torn off.
1321end-sanitize-gdbtk
1322
1aac3d3c
JL
1323Fri Jan 12 21:41:58 1996 Jeffrey A Law (law@cygnus.com)
1324
1325 * symtab.c (find_pc_symtab): Don't lose if OBJF_REORDERED
1326 is set but there are no psymtabs.
1327
c84e5000
SC
1328Fri Jan 12 15:56:12 1996 Steve Chamberlain <sac@slash.cygnus.com>
1329
1330 * dsrec.c (load_srec): Remove unused variable.
1ef980b9 1331 * monitor.c (monitor_expect): Don't expect a ^C to echo.
c84e5000
SC
1332 * serial.c (serial_open): Add parallel interface.
1333 * sh3-rom.c (parallel, parallel_in_use): New.
1334 (sh3_load): If parallel_in_use, download though the
1335 parallel port.
1336 (sh3_open): Open parallel port if specified.
1337 (sh3_close): New function.
1338 (_inititalize_sh3): Add sh3_close hook and documentation.
1339 * monitor.c (monitor_close): Export.
1340 * monitor.h (monitor_close): Add prototype.
1341
2c441e7f
SS
1342Fri Jan 12 13:11:42 1996 Stan Shebs <shebs@andros.cygnus.com>
1343
1344 From Wilfried Moser <wilfried.moser@aut.alcatel.at>:
1345 * remote.c (remotetimeout): New GDB variable, use to set the
1346 remote timeout for reading.
1347
4e327047
TT
1348start-sanitize-gdbtk
1349Fri Jan 12 09:36:17 1996 Tom Tromey <tromey@creche.cygnus.com>
1350
1351 * gdbtk.tcl (gdbtk_tcl_query): Swap Yes and No buttons.
1352 (update_listing): Use lassign. Use "see" to scroll. Don't need
1353 screen_top, screen_bot, screen_height.
1354 (update_assembly): Use "see" to scroll.
1355 (textscrollproc): Removed.
1356 (create_file_win): Don't use textscrollproc.
1357 (asmscrollproc): Removed.
1358 (create_asm_window): Don't use asmscrollproc.
1359 (create_asm_win): Ditto.
1360 (screen_height, screen_top, screen_bot): Removed.
1361 (run_editor): New proc.
1362 (build_framework): Use it.
1363 (create_file_win, create_source_window): Don't use textscrollproc.
1364 (create_breakpoints_window): Set -xscrollcommand on canvas.
1365 (not_implemented_yet): Default button is 0.
1366 (delete_char): Don't use tk_textBackspace.
1367 (create_command_window): Allow Tk bindings to fire after deleting
1368 character.
1369 (create_command_window): Make Delete delete left, not right.
1370end-sanitize-gdbtk
1371
3730a0ed
FF
1372Fri Jan 12 07:14:27 1996 Fred Fish <fnf@cirdan.cygnus.com>
1373
1374 * lynx-nat.c, irix4-nat.c, sparc-nat.c: Include gdbcore.h
1375 to get "struct core_fns" defined.
1376 * Makefile.in (lynx-nat.o, irix4-nat.o, sparc-nat.o):
2c441e7f 1377 Are dependent upon gdbcore_h.
3730a0ed 1378
7ef89313
PB
1379Thu Jan 11 23:13:24 1996 Per Bothner <bothner@cygnus.com>
1380
1381 * symfile.c (decrement_reading_symtab): New function.
1382 * symfile.c, symtab.h (currently_reading_symtab): New variable.
1383 * symfile.c (psymtab_to_symtab): Adjust currently_reading_symtab.
1384 * gdbtypes.c (check_typedef): Don't call lookup_symbol if
1385 currently_reading_symtab (since that could infinitely recurse).
1386
1c486a2b
PB
1387Thu Jan 11 17:21:25 1996 Per Bothner <bothner@kalessin.cygnus.com>
1388
34cfa2da
PB
1389 * stabsread.c (read_struct_type): Trivial simplification.
1390
1c486a2b
PB
1391 * stabsread.c (define-symbol): Use invisible references
1392 for TYPE_CODE_SET and TYPE_CODE_BITSTRING too.
34cfa2da 1393 * valops.c (call_function_by_hand): Likewise.
1c486a2b
PB
1394 * eval.c (evaluate_subexp_standard): When known, use the formal
1395 parameter type as the expected type when evaluating arg expressions.
1396 * ch-lang.c (evaluate_subexp_chill): Likewise (for MULTI_SUBSCRIPT).
1397
4e327047
TT
1398start-sanitize-gdbtk
1399Thu Jan 11 10:08:14 1996 Tom Tromey <tromey@creche.cygnus.com>
1400
1401 * main.c (main): Disable window interface if --help or --version
1402 specified.
1403
1404 * gdbtk.tcl (FSBox): Don't use tk_listboxSingleSelect.
1405
1406 Changes in sync with expect:
1407 * configure.in (ENABLE_GDBTK): Use CY_AC_PATH_TCL and
1408 CY_AC_PATH_TK.
1409 * aclocal.m4: Replaced with version from expect.
1410 * configure: Regenerated.
1411end-sanitize-gdbtk
a1df8e78 1412
a1956677
BK
1413Wed Jan 10 16:08:49 1996 Brendan Kehoe <brendan@lisa.cygnus.com>
1414
1415 * configure.in, configure: Recognize rs6000-*-aix4*.
1416 * config/powerpc/xm-aix.h: Reduce to include "xm-aix4.h".
1417 * config/rs6000/aix4.mh (XM_FILE): Point to xm-aix4.h.
1418 * config/rs6000/xm-aix4.h: New file.
1419 * config/xm-aix4.h: New file.
1420
3730a0ed 1421Wed Jan 10 11:25:37 1996 Fred Fish <fnf@cygnus.com>
0d14c7df
FF
1422
1423 From Wilfried Moser <wilfried.moser@aut.alcatel.at>:
1424 * gdbserver/low-linux.c: New file.
1425 * remote.c (remote_read_bytes): Fix aborts on larger packets.
1426
1427 * config/i386/linux.mh (GDBSERVER_DEPFILES, GDBSERVER_LIBS):
1428 Define.
1429 * stabsread.c (define_symbol): If register value is too large,
1430 tell what it is and what max is.
1431
4e327047
TT
1432start-sanitize-gdbtk
1433Wed Jan 10 09:07:22 1996 Tom Tromey <tromey@creche.cygnus.com>
1434
1435 * gdbtk.tcl (gdbtk_tcl_fputs, gdbtk_tcl_fputs_error,
1436 gdbtk_tcl_flush): Use "see", not "yview".
1437 (gdbtk_tcl_query): Use questhead bitmap.
1438 various: Always wrap condition of 'if' in {...}.
1439 (add_breakpoint_frame): Set -value on radiobuttons.
1440 (lassign): New proc.
1441 (add_breakpoint_frame): Use lassign, not series of assignments.
1442 (decr): Made faster.
1443 (interactive_cmd): Use "see", not "yview".
1444 (not_implemented_yet): Use warning bitmap.
1445 (update_expr): Don't allow $expr to be evalled by Tcl.
1446 (create_expr_window): Don't use "focus".
1447 (delete_char, delete_line): Define globally.
1448 (delete_line, delete_char, create_command_window, update_autocmd,
1449 build_framework, create_asm_win, create_file_win): Use "see", not
1450 "yview".
1451 (create_copyright_window, center_window, bind_widget_after_class):
1452 New procs.
1453 (FSBox,create_command_window, create_autocmd_window): Binding
1454 changes for Tk4.
1455 (textscrollproc): Define globally.
1456 (build_framework): tk_menuBar no longer needed. Keys Prior, Next,
1457 Home, End, Up, and Down are all defined by Tk.
1458 (apply_filespec): Use error bitmap in dialog.
1459 (files_command): Don't use tk_listboxSingleSelect.
1460 (files_command): Don't use "uniq" to remove duplicates from a
1461 list.
1462 (update_assembly): Use lassign.
1463 (create_asm_win): Removed redundant bindings.
1464 (listing_window_button_1, file_popup_menu): Use tk_popup.
1465 (ButtonRelease-1 binding): Just remove tag from window; rest
1466 handled by Tk.
1467
1468 * gdbtk.c (gdbtk_query): Use Tcl_Merge to provide quoting.
1469 (call_wrapper): Use Tcl_Eval, not Tcl_VarEval.
1470 (gdbtk_call_command): Ditto.
1471end-sanitize-gdbtk
1472
60d5a517
JL
1473Tue Jan 9 09:33:53 1996 Jeffrey A Law (law@cygnus.com)
1474
1475 * hpread.c (hpread_build_psymtabs): Finish Jan 4th
1476 enum namespace -> enum_namespace change.
1477
d1f5c804
WM
1478Tue Jan 9 04:44:47 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
1479
2c441e7f
SS
1480 * ch-exp.c (parse_primval): In case ARRAY, add missing
1481 FORWARD_TOKEN ().
d1f5c804 1482
1f233758
SS
1483Mon Jan 8 13:29:34 1996 Stan Shebs <shebs@andros.cygnus.com>
1484
1485 * remote-mips.c (mips_receive_header): Recognize \012 instead
1486 of \n, but write \n when program sends a \012.
1487 * ser-mac.c (mac_input_buffer): Increase size of buffer.
1488
ed3b618d
JL
1489Mon Jan 8 12:00:40 1996 Jeffrey A Law (law@cygnus.com)
1490
1491 * infptrace.c (initialize_infptrace): Move function out of
1492 #ifdef conditional; put code within the function inside an
1493 #ifdef conditional.
436d4143
JL
1494
1495 * buildsym.c (end_symtab): Remove sort_pending and sort_linevec
1496 arguments. Sorting is now dependent on OBJF_REORDERED. All
1497 callers/references changed.
1498 * dbxread.c (read_ofile_symtab): Correctly determine value for
1499 last_source_start_addr for reordered executables.
1500 (process_one_symbol): Handle N_FUN with no name as an end of
1501 function marker.
1502 * partial-stab.h (case N_FN, N_TEXT): Don't assume CUR_SYMBOL_VALUE
1503 is the high text address for a psymtab.
1504 (case N_SO): Likewise.
1505 (case N_FUN): Handle N_FUN with no name as an end of function
1506 marker.
1507 * minsyms.c (lookup_minimal_symbol_by_pc): Examine all symbols
1508 at the same address rather than a random subset of them.
1509 * coffread.c (coff_symfile_init): Set OBJF_REORDERED.
1510 * elfread.c (elf_symfile_init): Similarly.
1511 * somread.c (som_symfile_init): Similarly.
1512 * xcoffread.c (xcoff_symfile_init): Similarly.
1513
5351b2a0
SG
1514Fri Jan 5 17:46:01 1996 Stu Grossman (grossman@cygnus.com)
1515
1516 * stack.c (print_stack_frame print_frame_info) symmisc.c
1517 (dump_symtab): Change RETURN_MASK_ERROR to RETURN_MASK_ALL so
1518 that catch_errors doesn't get blindsided by QUIT and lose the
1519 cleanup chain. This fixes a problem where ^C while in a
1520 user-defined command sometimes leaves instream NULL and causes a
1521 segfault in command_loop.
1522
127841e4
BK
1523Fri Jan 5 13:59:16 1996 Brendan Kehoe <brendan@lisa.cygnus.com>
1524
1525 * configure.in, configure: Add `-ldl -lw' for Solaris linking.
1526
6b4fe21d
SC
1527Fri Jan 5 12:02:00 1996 Steve Chamberlain <sac@slash.cygnus.com>
1528
1529 * config/sh/sh.mt, config/powerpc/*.mt, config/pa/hppapro.mt,
1530 config/m68k/monitor.mt, config/h8500/h8500.mt, config/h8300/h8300.mt:
1531 srec.o renamed to dsrec.o.
1532
0fe1522a
SG
1533Thu Jan 4 16:04:54 1996 Stu Grossman (grossman@cygnus.com)
1534
1535 * breakpoint.c (remove_breakpoint): Change error to warning so
1536 that hardware watchpoint removal problems won't leave breakpoint
1537 traps in the target.
d039321c 1538start-sanitize-gdbtk
0fe1522a 1539 * configure configure.in: Make --enable-gdbtk be the default.
d039321c 1540end-sanitize-gdbtk
0fe1522a
SG
1541 * remote-e7000.c (e7000_insert_breakpoint,
1542 e7000_remove_breakpoint): Use e7000 based breakpoints, not memory
1543 breakpoints.
1544 * (e7000_wait): Adjust PC back by two when we see a breakpoint to
1545 compensate for e7000 maladjustment.
1546 * sparcl-tdep.c (sparclite_check_watch_resources): Fix logic bug
1547 which prevented hardware watchpoints from working.
1548
7531f36e
FF
1549Thu Jan 4 10:44:17 1996 Fred Fish <fnf@cirdan.cygnus.com>
1550
1551 * infptrace.c (udot_info): New function.
1552 (PT_*): Define each individually if that one is not defined.
7531f36e
FF
1553 * rs6000-nat.c (kernel_u_size): New function
1554 Include <sys/user.h> for "struct user"
7531f36e
FF
1555 * alpha-nat.c (kernel_u_size): New function.
1556 Include <sys/user.h> for "struct user"
7531f36e
FF
1557 * sparc-nat.c (kernel_u_size): New function.
1558 Include <sys/user.h> for "struct user"
7531f36e 1559 * i386b-nat.c (kernel_u_size): New function.
7531f36e 1560 * i386v-nat.c (kernel_u_size): New function.
7531f36e
FF
1561 * config/i386/nm-fbsd.h (KERNEL_U_SIZE): Define.
1562 (kernel_u_size): Declare.
7531f36e
FF
1563 * config/i386/nm-linux.h (KERNEL_U_SIZE): Define.
1564 (kernel_u_size): Declare.
7531f36e
FF
1565 * config/sparc/nm-sun4os4.h (KERNEL_U_SIZE): Define.
1566 (kernel_u_size): Declare.
7531f36e
FF
1567 * config/alpha/nm-osf2.h (KERNEL_U_SIZE): Define.
1568 (kernel_u_size): Declare.
7531f36e
FF
1569 * config/rs6000/nm-rs6000.h (KERNEL_U_SIZE): Define.
1570 (kernel_u_size): Declare.
7531f36e 1571
1750a5ef
SC
1572Thu Jan 4 11:00:01 1996 steve chamberlain <sac@slash.cygnus.com>
1573
1574 * mdebugread.c (mylookup_symbol): enum namespace becomes
1575 enum_namespace type.
1576 * symfile.c (add_psymbol_to_list)
1577 (add_psymbol_addr_to_list): Ditto.
1578 * symtab.c (lookup_partial_symbol): Ditto.
1579 (lookup_symbol): Ditto.
1580 (lookup_block_symbol): Ditto.
1581 * win32-nat.c (handle_load_dll): Use incoming dll base.
1582 (child_wait): Catch DLL load errors.
1583 (create_child_inferior): Translated between paths correctly.
1584
e33aefba
FF
1585Wed Jan 3 23:13:53 1996 Fred Fish <fnf@cygnus.com>
1586
1587 * i386v4-nat.c (supply_gregset, fill_gregset): Subtract NUM_FREGS
1588 from NUM_REGS to get number of general registers that we care about.
e33aefba
FF
1589 * config/i386/tm-i386.h (REGISTER_BYTES): Define in terms
1590 of number of general regs and number of floating point regs.
e33aefba 1591
e02a2ad9
SC
1592Wed Jan 3 19:49:54 1996 steve chamberlain <sac@slash.cygnus.com>
1593
a3b64bf9
SC
1594 * config/i386/tm-win32.h (IN_SOLIB_CALL_TRAMPOLINE): New.
1595 (SKIP_TRAMPOLINE_CODE): New.
1596 * config/i386/xm-win32.h (CANT_FORK): Deleted.
1597 (SLASH*) Changed to use unix style slash.
e02a2ad9
SC
1598 * symtab.h (namespace enum): becomes typedef to avoid namespace
1599 collision in C++.
1600 * infcmd.c (path_command): Use empty string if PATH name not set.
1601 * i386-tdep.c (skip_trampoline_code): New function.
1602 * srec.c: Renamed dsrec.c to avoid filename collision.
1603 * Makefile.in: Cope with renaming.
e02a2ad9 1604
ef4d6187 1605Wed Jan 3 13:09:04 1996 Fred Fish <fnf@cygnus.com>
5eccb7dc 1606
ef4d6187
FF
1607 * symmisc.c (print_objfile_statistics): Print memory use statistics
1608 for objfile psymbol, symbol, and type obstacks.
5eccb7dc 1609
ef4d6187 1610Tue Jan 2 13:41:14 1996 Stan Shebs <shebs@andros.cygnus.com>
3dcd429f 1611
ef4d6187
FF
1612 * config/mips/nm-irix5.h: Restore.
1613 (TARGET_HAS_HARDWARE_WATCHPOINTS, etc): Define as for Irix 4;
1614 from Lee Iverson <leei@ai.sri.com>.
1615 * config/mips/irix5.mh (NAT_FILE): Use nm-irix5.h.
1616 * config/mips/irix[345].mh (MUNCH_DEFINE): Remove.
3dcd429f 1617
ef4d6187 1618For older changes see ChangeLog-95
bd5635a1
RP
1619\f
1620Local Variables:
1621mode: indented-text
1622left-margin: 8
1623fill-column: 74
1624version-control: never
1625End:
This page took 0.393379 seconds and 4 git commands to generate.