2 Fri Apr 5 13:25:42 1996 Michael Meissner <meissner@tiktok.cygnus.com>
4 * gdbtk.c (SIOCSPGRP, linux): If on Linux, undef SIOCSPGRP, since
5 some versions of the kernel don't support it.
8 Thu Apr 4 20:16:55 1996 Fred Fish <fnf@cygnus.com>
10 * configure.in: Check for setpgid function.
11 * config.in: Regenerate with autoheader.
12 * configure: Regenerate with autoconf.
13 * inflow.c (_initialize_inflow): Only try to use _SC_JOB_CONTROL
14 if it is actually defined.
15 (gdb_setpgid): Use HAVE_SETPGID.
16 * ch-exp.c: Change include of <string.h> to "gdb_string.h".
20 * c-exp.y: Include <ctype.h>.
22 * config/m68k/nm-news.h: Add typedef for pid_t which is
23 apparently missing from <sys/types.h>. Enclose entire
24 file in NM_NEWS_H ifndef and define when included.
25 * config/mips/nm-news-mips.h: Ditto.
26 * config/m68k/tm-m68k.h (REGISTER_CONVERT_TO_VIRTUAL,
27 REGISTER_CONVERT_TO_RAW): Change name of temporary variable.
29 Thu Apr 4 19:04:18 1996 Stan Shebs <shebs@andros.cygnus.com>
31 * arm-xdep.c: Move native-specific code to here from arm-tdep.c.
32 * arm-tdep.c (arm_apcs_32): New global.
33 (arm_addr_bits_remove, arm_saved_pc_after_call,
34 arm_push_dummy_frame, arm_pop_frame): New functions.
35 (arm_skip_prologue): Updated version from Richard Earnshaw.
36 (_initialize_arm_tdep): Add set/show "apcs32".
37 * config/arm/tm-arm.h (ADDR_BITS_REMOVE): Call
39 (SAVED_PC_AFTER_CALL): Call arm_saved_pc_after_call.
40 (frame_find_saved_regs): Declare properly.
41 (PUSH_DUMMY_FRAME): Call arm_push_dummy_frame.
42 (POP_FRAME): Call arm_pop_frame, use ADDR_BITS_REMOVE instead of
44 * config/arm/nm-arm.h: New file.
45 * config/arm/xm-arm.h (KERNEL_U_ADDR, FETCH_INFERIOR_REGISTERS):
46 Move definitions to nm-arm.h.
47 * config/arm/arm.mh (NAT_FILE): Define.
49 * symfile.c (generic_load): Initialize data_count properly.
51 Thu Apr 4 17:17:53 1996 Fred Fish <fnf@cygnus.com>
53 * symmisc.c (print_objfile_statistics): Print memory used by
54 psymbol cache obstack.
56 Thu Apr 4 15:43:07 1996 Stan Shebs <shebs@andros.cygnus.com>
58 * symfile.c (report_transfer_performance): New function.
59 (generic_load): Call it to report transfer rate.
60 * remote-e7000.c (e7000_load): Ditto.
62 Mon Apr 1 16:31:00 1996 Stan Shebs <shebs@andros.cygnus.com>
64 * mpw-make.sed: Change references to config.h to be in objdir,
65 edit out rules to rebuild config.h.
67 Mon Apr 1 08:32:23 1996 Fred Fish <fnf@cygnus.com>
69 * hppa-tdep.c (hppa_pop_frame): Call clear_proceed_status before
72 Sun Mar 31 16:15:43 1996 Fred Fish <fnf@.cygnus.com>
74 * hppah-nat.c (store_inferior_registers, store_inferior_registers,
75 fetch_register, child_xfer_memory): Use call_ptrace function supplied
76 by infptrace.c rather than calling ptrace directly.
78 Sun Mar 31 15:39:00 1996 Stan Shebs <shebs@andros.cygnus.com>
80 * mon960-rom.c: Cleanups and elimination of unused code,
81 clarify documentation string.
82 (mon960_serial, mon960_ttyname): Remove.
83 * config/i960/tm-mon960.h (ADDITIONAL_OPTIONS,
84 ADDITIONAL_OPTION_CASES, ADDITIONAL_OPTION_HELP): Remove.
86 Sat Mar 30 11:00:22 1996 Fred Fish <fnf@cygnus.com>
88 * configure.in: Check whether printf family supports printing
89 long doubles or not and define PRINTF_HAS_LONG_DOUBLE if so.
90 * acconfig.h: Provide default undef for PRINTF_HAS_LONG_DOUBLE.
91 * configure: Regenerate.
92 * valprint.c (print_floating): Use PRINTF_HAS_LONG_DOUBLE.
93 * c-exp.y (parse_number): Use PRINTF_HAS_LONG_DOUBLE.
94 * configure.in: Fix have_gregset and have_fpregset autoconf
95 variable names so that they match the pattern required to
98 Fri Mar 29 21:39:56 1996 Fred Fish <fnf@cygnus.com>
100 * core-aout.c (fetch_core_registers): Cast core_reg_size to int
101 before testing against reg_ptr.
102 * eval.c (evaluate_subexp_standard): Cast type of
103 TYPE_FN_FIELD_VOFFSET to int.
104 * findvar.c (extract_signed_integer, extract_unsigned_integer,
105 extract_long_unsigned_integer): Cast type of sizeof to int.
106 * values.c (unpack_field_as_long, modify_field): Ditto.
107 * valops.c (value_assign, call_function_by_hand): Ditto.
108 * infcmd.c (do_registers_info): Ditto.
109 * ser-tcp.c (tcp_open): Ditto
110 * remote.c (putpkt): Ditto.
111 * dcache.c (dcache_peek): Ditto.
112 * dcache.c (dcache_poke): Ditto.
113 * m2-exp.y (yylex): Ditto.
114 * gnu-regex.c (re_match_2): Ditto.
115 * f-lang.c (ADD_BF_SYMNUM, saved_bf_list_end, tmp_bf_ptr): Ifdef
116 out unused macro definition and variables.
117 * inftarg.c (proc_wait): Move from main.c to here, and make static.
118 * valprint.c (val_print_string): Change bufsize from int to unsigned.
119 * main.c (wait.h): Include
120 * top.c (command_line_input): Remove unused variable "c".
121 * f-typeprint.c (f_type_print_varspec_prefix): Add missing enum
122 value TYPE_CODE_TYPEDEF to switch statement.
123 (f_type_print_varspec_suffix): Add missing enum value
124 TYPE_CODE_TYPEDEF to switch statement.
125 * ch-exp.c (parse_primval): Add remaining enumeration values to
126 switch statement, with no specific action.
127 (ch_lex): Add LOC_UNRESOLVED in switch statement.
128 (pushback_token): Ifdef out, since code using it is ifdef'd out.
129 * stabsread.c (cleanup_undefined_types): Remove unused label
131 * objfiles.h (print_symbol_bcache_statistics): Add prototype.
132 * maint.c (objfiles.h): Include.
133 (maintenance_print_statistics): Remove unused variable "temp".
134 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove
135 unused variable "found_file_symbol".
136 * m2-exp.y (yylex): Add LOC_UNRESOLVED case to switch.
137 * language.c (lang_bool_type): Use existing function local type
138 variable rather than create block local variables.
139 * solib.c (disable_break): Enclose in ifndef SVR4_SHARED_LIBS.
140 * infptrace.c (wait.h, command.h): Include.
141 * ser-tcp.c (gdb_string.h): Include
142 * i386-tdep.c (codestream_seek): Change "place" to CORE_ADDR.
143 (i386_get_frame_setup): Change "pc" from int to CORE_ADDR.
144 * command.c (complete_on_enum): Make assignment used as truth value
145 explictly check against NULL.
147 * infrun.c (wait_for_inferior): Ifdef out prologue_pc since code
148 that uses it is ifdef'd out.
149 * parser-defs.h: Add prototype for write_dollar_variable.
150 * infrun.c: Add prototype for write_pc_pid.
151 * breakpoint.h: Add prototype for re_enable_breakpoints_in_shlibs.
152 * symmisc.c (bcache.h): Include.
153 * bcache.h: Add prototype for print_bcache_statistics.
154 * symfile.c: Include <time.h>.
155 * printcmd.c (print_scalar_formatted): Change len to unsigned int.
156 * valarith.c (value_equal): Cast result of TYPE_LENGTH to int.
157 * valarith.c (value_binop): Change result_len, promoted_len1,
158 and promoted_len2 to unsigned int.
159 * valarith.c (value_subscripted_rvalue): Change elt_offs and
160 elt_size to unsigned int.
161 * valops.c (value_array): Change typelength to unsigned int.
162 (destructor_name_p): Change len to unsigned int.
163 * scm-lang.h (scm_parse): Add prototype for scm_unpack.
164 * symfile.c (decrement_reading_symtab): Change return type to void.
165 * valarith.c (value_subscript): Remove unused variable "word".
166 (value_subscript): Remove unused variable "tint".
167 * valops.c (auto_abandon): Ifdef out, since code using it is also
169 * eval.c (init_array_element): Remove unused variable "val".
170 * Makefile.in (values.o): Depends on scm-lang.h.
171 (command.o): Depends upon wait_h.
172 (ser-tcp.o): Depends upon gdb_string.h.
173 (infptrace.o): Depends upon wait_h and command_h.
174 (maint.o): Depends on objfiles.h and symfile.h.
175 * values.c (allocate_repeat_value): Remove unused variable
177 (scm-lang.h): Include.
178 * breakpoint.c (create_longjmp_breakpoint): Enclose in
179 GET_LONGJMP_TARGET define, unused otherwise.
180 * config/i386/nm-linux.h: Add prototypes for i386_insert_watchpoint,
181 i386_remove_watchpoint and i386_stopped_by_watchpoint.
183 Thu Mar 28 12:53:19 1996 Doug Evans <dje@canuck.cygnus.com>
185 * configure.in (sparc64-*-solaris2*): Delete.
186 Stick with sparc-*-solaris2*.
187 * configure: Regenerated.
189 Thu Mar 28 06:51:26 1996 Fred Fish <fnf@cygnus.com>
191 * valops.c (value_assign): Make copy of internal variable value
192 before returning it as a new value, since it is owned by the
193 internal variable and will be freed along with it.
195 Wed Mar 27 08:36:17 1996 Jeffrey A Law (law@cygnus.com)
197 * From Peter Schauer.
198 * breakpoint.c (breakpoint_re_set_one): Keep temporary
199 breakpoints bp_until, bp_finish, bp_watchpoint_cope, bp_call_dummy
200 and bp_step_resume in case breakpoint_re_set_one is called due
201 to a step over a dlopen call.
202 * infrun.c (wait_for_inferior): Always remove breakpoints from
203 inferior in BPSTAT_WHAT_CHECK_SHLIBS case.
205 Tue Mar 26 13:15:32 1996 Fred Fish <fnf@cygnus.com>
207 * config/mips/tm-mips.h (COERCE_FLOAT_TO_DOUBLE): Only prefer
208 non-prototyped case over prototyped case for C.
209 * config/pa/tm-hppa.h (COERCE_FLOAT_TO_DOUBLE): Ditto.
211 Sat Mar 23 17:24:28 1996 Fred Fish <fnf@cygnus.com>
213 * os9kread.c (os9k_process_one_symbol): Note nonportable
214 assumption that an int can hold a char *.
216 * bcache.h (struct hashlink): Wrap data[] inside union with
217 double to force longest alignment.
218 (BCACHE_DATA): New macro to access data[].
219 (BCACHE_ALIGNMENT): New macro to get offset to data[].
220 * bcache.c (lookup_cache, bcache): Use BCACHE_DATA to get
221 address of cached data. Use BCACHE_ALIGNMENT to compute
222 amount of space to allocate for each hashlink struct.
224 Sat Mar 23 12:14:02 1996 Fred Fish <fnf@cygnus.com>
226 * ch-lang.c (evaluate_subexp_chill): Fix typo.
228 Thu Mar 21 08:27:19 1996 Fred Fish <fnf@cygnus.com>
230 * Makefile.in (VERSION): Bump version to 4.15.3
232 Thu Mar 21 10:56:41 1996 Ian Lance Taylor <ian@cygnus.com>
234 * config.in: Rename from config.h.in.
235 * configure.in: Call AC_CONFIG_HEADER with config.h:config.in.
236 Change CONFIG_HEADERS test in AC_OUTPUT accordingly.
237 * configure: Rebuild.
238 * Makefile.in (stamp-h): Depend upon config.in, not config.h.in.
239 Set CONFIG_HEADERS to config.h:config.in.
241 Tue Mar 19 12:47:51 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
243 * partial-stab.h (case N_ENDM): Finish current partial symbol
244 table for Solaris 2 cc.
246 Tue Mar 19 10:39:15 1996 Jeffrey A Law (law@cygnus.com)
248 * rs6000-nat.c (exec_one_dummy_insn): Don't clobber the
249 PC in the registers array. From Peter Schauer.
251 Mon Mar 18 13:47:09 1996 Fred Fish <fnf@cygnus.com>
253 * symfile.c (reread_symbols): Reinitialize bcache struct
254 members to zero using memset. Also use memset to reinit
255 global_psymbols and static_psymbols, rather than explicitly
256 resetting each structure member.
258 Sat Mar 16 19:47:36 1996 Fred Fish <fnf@cygnus.com>
260 * configure.in: Add fragment to create stamp-h.
262 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
263 * configure.in (AC_CHECK_HEADERS): Check for link.h.
264 * configure: Regenerate with autoconf.
265 * config.h.in: Regenerate with autoheader.
266 * config/i386/nm-linux.h: Include solib.h only if HAVE_LINK_H
268 * solib.c: Exclude most of the code if HAVE_LINK_H is not defined.
269 * config/i386/linux.mh: Reinstate XM_CLIBS, it is needed for
270 older a.out based systems.
272 Sat Mar 16 16:45:43 1996 Fred Fish <fnf@cygnus.com>
274 * config.h.in: New file.
275 * acconfig.h: New file, for autoheader.
276 * configure.in (AC_CONFIG_HEADER): Add, generate config.h.
277 * configure: Regenerate.
278 * Makefile.in (defs_h): Add config.h
279 (distclean): Remove config.h and stamp-h during distclean.
280 (config.h, stamp-h): New targets to remake config.h when necessary.
281 * defs.h (config.h): Include before any other includes or defines.
282 * i386-tdep.c (gdb_string.h): Move include after include of defs.h.
283 * i386v4-nat.c (defs.h): Include before testing HAVE_SYS_PROCFS_H.
285 Sat Mar 16 14:55:27 1996 Fred Fish <fnf@cygnus.com>
287 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
288 * Makefile.in (INSTALLED_LIBS): Make sure that @LIBS@ will not
289 result in an empty line, to work around a bug in native Ultrix 4.4
292 Sat Mar 16 13:33:17 1996 Fred Fish <fnf@cygnus.com>
294 * configure.in: Add gdbserver to configdirs under linux.
295 * configure: Regenerate.
297 Fri Mar 15 12:06:58 1996 J.T. Conklin <jtc@rtl.cygnus.com>
299 * config/i386/nm-nbsd.h (FLOAT_INFO): Comment out.
300 * config/i386/tm-nbsd.h (NUM_REGS): Define.
302 Thu Mar 14 10:31:18 1996 Jeffrey A Law (law@cygnus.com)
304 * solib.c (solib_break_names): Add _r_debug_state for
305 vanilla SVR4 implementations. From Peter Schauer.
307 Mon Mar 11 14:24:57 1996 Dawn Perchik <dawn@critters.cygnus.com>
309 * mon960-rom.c: New file; support mon960 rom monitor on i960.
310 * monitor.c (monitor_debug): Change remotedebug to buffer strings.
311 * monitor.c (monitor_open): Add test for flag MO_NO_ECHO_ON_OPEN before
312 epecting prompt and echo during open.
313 * monitor.c (monitor_stop): Add test for flag MO_SEND_BREAK_ON_OPEN to
314 determine if break should be sent as stop command.
315 * monitor.h: Add flags MO_NO_ECHO_ON_OPEN and MO_SEND_BREAK_ON_OPEN.
316 * i960-tdep.c (mon960_frame_chain_valid): New function for getting
317 stack frame on mon960.
318 * Makefile.in: Add mon960 files.
319 * configure.in: Changed i960-*-coff* and i960-*-elf* to target mon960;
320 added i960-nindy-coff* and i960-nindy-elf* for target nindy.
321 * configure: Regenerated.
322 * config/i960/mon960.mt, config/i960/tm-mon960.h: New files;
323 support mon960 rom monitor on i960.
325 Mon Mar 11 11:02:47 1996 Steve Chamberlain <sac@slash.cygnus.com>
328 * i386-tdep.c (skip_trampoline_code): Fix strncmp length.
329 * win32-nat.c (CHECK, DEBUG*, debug_*): New.
330 (handle_load_dll): Don't reload symbols.
331 (handle_exception): Use the DEBUG_* names.
332 (child_wait): Add DEBUG_* code.
333 (_initialize_inftarg): Add new commands to set debug_ names.
335 Mon Mar 11 09:19:58 1996 Jeffrey A Law (law@cygnus.com)
337 * From Peter Schauer:
338 * breakpoint.c (insert_breakpoints): Use ALL_BREAKPOINTS_SAFE.
339 (bpstat_stop_status): Likewise.
340 (remove_solib_event_breakpoints): Likewise.
341 (clear_momentary_breakpoints): Likewise.
342 (re_enable_breakpoints_in_shlibs): Don't reenable a breakpoint
343 if we still can't read the memory for that breakpoint.
344 (mention): Add bp_shlib_event case to keep gcc quiet.
346 Fri Mar 8 12:08:12 1996 Jeffrey A Law (law@cygnus.com)
348 * breakpoint.h (enum enable): New enum shlib_disabled for
349 shared library breakpoints that have been temporarily disabled.
350 * breakpoint.c: Handle temporarily disabled shared library
351 breakpoints like disabled breakpoints in most places.
352 (insert_breakpoints): Use shlib_disabled to indicate
353 that an unsettable breakpoint is only temporarily disabled.
354 (re_enable_breakpoints_in_shlibs): New function.
355 * corelow.c (solib_add_stub): After adding shared libraries,
356 try to reenable any temporarily disabled breakpoints.
357 * infcmd.c (attach_command): Likewise.
358 * infrun.c (wait_for_inferior): Likewise.
360 Fri Mar 8 11:41:25 1996 Ian Lance Taylor <ian@cygnus.com>
362 * defs.h (extract_long_unsigned_integer): Declare.
363 * findvar.c (extract_long_unsigned_integer): New function.
364 * printcmd.c (print_scalar_formatted): Use it.
365 * valprint.c (val_print_type_code_int): Likewise.
367 Thu Mar 7 17:40:50 1996 Stan Shebs <shebs@andros.cygnus.com>
369 * infcmd.c (do_registers_info): Ignore anonymous registers.
370 * sh-tdep.c (set processor): New command to set specific
372 (sh_reg_names, sh3_reg_names): Arrays of register names for
373 SH and SH3 processors.
374 (sh_set_processor_type): New function.
375 * sh3-rom.c (sh3_open): Call it.
376 (sh3_regname): Add names of all the bank registers.
377 (sh3_supply_register): Clean up formatting.
378 * config/sh/tm-sh.h (NUM_REGS, NUM_REALREGS): Increase to include
380 (REGISTER_NAMES): Add names of bank registers.
381 (FP15_REGNUM): Define.
382 (REGISTER_VIRTUAL_TYPE): Use it.
383 * monitor.c: Clean up some comments.
385 Thu Mar 7 12:09:51 1996 J.T. Conklin <jtc@rtl.cygnus.com>
387 * i386b-nat.c: Revert part of Mar 5 change. FreeBSD collapsed the
388 s* and t* symbols too.
390 Thu Mar 7 15:18:51 1996 James G. Smith <jsmith@cygnus.co.uk>
392 * symfile.c (generic_load): Avoid division by zero.
394 Wed Mar 6 17:57:59 1996 Jeffrey A Law (law@cygnus.com)
396 * breakpoint.c (bfd_lookup_symbol): Provide for all SVR4 systems,
397 not just those with HANDLE_SVR4_EXEC_EMULATORS.
400 * breakpoint.c (internal_breakpoint_number): Move to file scope.
401 (create_solib_event_breakpoint): Use an internal breakpoint number.
403 Wed Mar 6 00:32:44 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
405 * valarith.c (value_in): Change builtin_type_chill_bool to
408 Tue Mar 5 23:48:36 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
410 * ch-exp.c (parse_primval): Handle CARD, MAX, MIN.
411 (match_string_literal): Handle control sequence.
412 (match_character_literal): Deto.
414 * ch-lang.c (chill_printchar): Change formating of nonprintable
415 characters from C'xx' to ^(num).
416 (chill_printstr): Deto.
417 (value_chill_card, value_chill_max_min): New functions to process
418 Chill's CARD, MAX, MIN.
419 (evaluate_subexp_chill): Process UNOP_CARD, UNOP_CHMAX, UNOP_CHMIN.
421 * expression.h (exp_opcode): Add UNOP_CARD, UNOP_CHMAX, UNOP_CHMIN
422 for Chill's CARD, MAX, MIN.
424 * valarith.c (value_in): Add processing of TYPE_CODE_RANGE
425 and change return type from builtin_type_int to
426 builtin_type_chill_bool.
428 Tue Mar 5 18:54:04 1996 Stan Shebs <shebs@andros.cygnus.com>
430 * config/nm-nbsd.h (link_object, lo_name, etc): Move to here
431 from config/nm-nbsd.h.
432 * config/sparc/nm-nbsd.h (regs, fp_status, etc): Move to here
433 from config/sparc/tm-nbsd.h.
435 * config/m68k/nm-hp300hpux.h (FIVE_ARG_PTRACE): Define here
436 instead of in config/m68k/xm-hp300hpux.h.
438 Tue Mar 5 12:05:35 1996 J.T. Conklin <jtc@rtl.cygnus.com>
440 * i386b-nat.c, m68knbsd-nat.c (fetch_core_registers): Provide
441 implementation for NetBSD systems.
443 Mon Mar 4 23:44:16 1996 Per Bothner <bothner@kalessin.cygnus.com>
445 * valarith.c (binop_user_defined_p): Return 0 for BINOP_CONCAT.
446 (value_concat): Handle varying strings (add COERCE_VARYING_ARRAY).
448 * ch-lang.c (evaluate_subexp_chill case MULTI_SUBSCRIPT): Error
449 if "function" is pointer to non-function.
451 Mon Mar 4 17:47:03 1996 Stan Shebs <shebs@andros.cygnus.com>
453 * top.c (print_gdb_version): Update copyright year.
455 Mon Mar 4 14:44:54 1996 Jeffrey A Law (law@cygnus.com)
458 * infrun.c (wait_for_inferior): Remove breakpoints and
459 switch terminal settings before calling SOLIB_ADD.
460 * solib.c (enable_break, SVR4 variant): Don't map in symbols
461 for the dynamic linker, the namespace pollution causes real
464 Sun Mar 3 17:18:57 1996 James G. Smith <jsmith@cygnus.co.uk>
466 * remote-mips.c (common_breakpoint): Explicitly terminate the
469 Wed Feb 28 22:32:18 1996 Stan Shebs <shebs@andros.cygnus.com>
471 From Wilfried Moser <wilfried.moser@aut.alcatel.at>:
472 * remote.c (remote_detach): Send a command 'D' to the target
473 when detaching, update the function's comments.
475 Wed Feb 28 15:50:12 1996 Fred Fish <fnf@cygnus.com>
477 * Makefile.in (VERSION): Bump version to 4.15.2 to establish
478 baseline for gdb 4.16 rerelease testing.
480 Wed Feb 28 13:32:05 1996 Jeffrey A Law (law@cygnus.com)
482 * somsolib.c (som_solib_create_inferior_hook): Before returning
483 call clear_symtab_users.
485 Tue Feb 27 00:04:46 1996 Stu Grossman (grossman@critters.cygnus.com)
487 * remote-e7000.c (e7000_open): Delete all breakpoints when
488 connecting to e7000. Change connect message to allow use of
489 monitor.exp in test suite.
490 * (e7000_load): Print transfer rate of download.
491 * symfile.c (generic_load): Print transfer rate of download.
493 Sun Feb 25 13:58:33 1996 Stan Shebs <shebs@andros.cygnus.com>
495 * configure.in (mips*-*-vxworks*): New config.
496 * configure: Regenerated.
498 * config/mips/vxmips.mt, config/mips/tm-vxmips.h: New files.
499 * remote-vxmips.c (vx_convert_to_virtual, vx_convert_from_virtual):
502 Sat Feb 24 12:30:28 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
504 * partial-stab.h (case N_FUN): Function symbols generated
505 by SPARCworks cc have a meaningless zero value, do not update
506 pst->textlow if the function symbol value is zero.
508 * stabsread.c (define_symbol): Initialize SYMBOL_TYPE field
509 for function prototype declaration symbols.
511 Fri Feb 23 22:33:04 1996 Stu Grossman (grossman@critters.cygnus.com)
513 * remote-e7000.c (e7000_load): New routine to download via the
515 * (e7000_wait): Don't backup PC when we hit a breakpoint.
516 Apparantly new sh2 pods get this right...
517 * (e7000_ops): Add call to e7000_load.
519 Thu Feb 22 00:52:42 1996 J.T. Conklin <jtc@rtl.cygnus.com>
521 * config/m68k/{nbsd.mh,nbsd.mt,nm-nbsd.h,tm-nbsd.h,xm-nbsd.h},
522 m68knbsd-nat.c: New files, support for NetBSD/m68k.
524 * configure.in (m68k-*-netbsd*): New config.
525 * configure: Regenerated.
527 Wed Feb 21 19:00:21 1996 Fred Fish <fnf@ninemoons.com>
529 * standalone.c (open, _initialize_standalone): Fix obvious typos
530 reported by Martin Pool <martin@citr.uq.oz.au>.
532 Wed Feb 21 14:24:04 1996 Jeffrey A Law (law@cygnus.com)
534 * solib.c (solib_create_inferior_hook): Fix thinko.
536 Tue Feb 20 23:59:19 1996 Jeffrey A Law (law@cygnus.com)
538 * solib.c (solib_break_names): Define for Solaris and Linux.
539 (enable_break): For SVR4 systems, first try to use the debugger
540 interfaces in the dynamic linker to track shared library events
541 as they happen, then fall back to BKPT_AT_SYMBOL code. Convert
542 BKPT_AT_SYMBOL code to use shared library event breakpoints.
543 (solib_create_inferior_hook): Simplify BKPT_AT_SYMBOL code,
544 it no longer needs to restart/wait on the inferior.
545 * symfile.c (find_lowest_section): No longer static.
546 * symfile.h (find_lowest_section): Corresponding changes.
548 Tue Feb 20 18:54:08 1996 Fred Fish <fnf@rtl.cygnus.com>
550 * valops.c (COERCE_FLOAT_TO_DOUBLE): Define default value.
551 (value_arg_coerce): Use COERCE_FLOAT_TO_DOUBLE.
552 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Define to 1.
553 * config/mips/tm-mips.h: Ditto.
554 * config/pa/tm-hppa.h: Ditto.
555 * config/rs6000/tm-rs6000.h: Ditto.
556 * config/sparc/tm-sparc.h: Ditto.
558 Tue Feb 20 17:32:05 1996 J.T. Conklin <jtc@rtl.cygnus.com>
560 * config/{i386,ns32k}/nbsd.mh (NATDEPFILES): Remove core-aout.o.
562 * config/nm-nbsd.h (FETCH_INFERIOR_REGISTERS): Defined.
563 * config/xm-nbsd.h (CC_HAS_LONG_LONG, PRINTF_HAS_LONG_LONG):
564 #ifdef'd out definitions --- Causes serious gdb failures on
565 the i386. Need to investigate further before enabling.
567 * i386b-nat.c (fetch_inferior_registers, store_inferior_registers,
568 fetch_core_registers): New functions. These functions are defined
569 if FETCH_INFERIOR_REGISTERS is set. Registers are fetched/stored
570 with ptrace PT_GETREGS/PT_SETREGS.
572 Tue Feb 20 16:55:06 1996 Stu Grossman (grossman@critters.cygnus.com)
574 * findvar.c (extract_floating store_floating): Replace `long
575 double' with `DOUBLEST'.
577 Mon Feb 19 15:25:51 1996 J.T. Conklin <jtc@rtl.cygnus.com>
579 * config/xm-nbsd.h (CC_HAS_LONG_LONG, PRINTF_HAS_LONG_LONG):
582 Mon Feb 19 10:32:05 1996 Jeffrey A Law (law@cygnus.com)
584 * symtab.h (looup_minimal_symbol_solib_trampoline): Declare.
586 * breakpoint.h (remove_solib_event_breakpoints): Declare.
587 * breakpoint.c (remove_solib_event_breakpoints): New function.
588 * somsolib.c (solib_create_inferior_hook): Remove all solib event
589 breakpoints before inserting any new ones. Use a solib event
590 breakpoint for the breakpoint at "_start".
591 Remove extraneous "\n" from calls to warning.
593 * breakpoint.c (breakpoint_1): Add missing "sigtramp" to bptypes
596 Mon Feb 19 01:09:32 1996 Doug Evans <dje@cygnus.com>
598 * dwarfread.c (add_partial_symbol): Use ADD_PSYMBOL_ADDR_TO_LIST
599 for CORE_ADDR values.
600 (new_symbol): Use SYMBOL_VALUE_ADDRESS for CORE_ADDR values.
601 * symfile.h (add_psymbol_{,addr}to_list): Add prototypes.
603 Sun Feb 18 14:37:13 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
605 * mipsread.c (mipscoff_symfile_read): Unconditionally add
606 alpha coff dynamic symbols for all symbol files. Makes skipping
607 over the trampoline code work when stepping from a function in a
608 shared library into a function in a different shared library.
610 Sun Feb 18 09:27:10 1996 Stu Grossman (grossman@cygnus.com)
612 * config/sparc/tm-sparc.h: Define PS_FLAG_CARRY. Define
613 RETURN_VALUE_ON_STACK to return long doubles on the stack.
615 Sat Feb 17 16:33:11 1996 Fred Fish <fnf@cygnus.com>
617 * Makefile.in (ch-exp.o): Add dependencies.
618 (various): Add gdb_string.h to dependencies that need it.
620 Sat Feb 17 08:57:50 1996 Fred Fish <fnf@cygnus.com>
622 * symmisc.c (print_symbol_bcache_statistics): Update description for
623 printing byte cache statistics.
625 Thu Feb 16 16:02:03 1996 Stu Grossman (grossman@cygnus.com)
627 * Add native support for long double data type.
628 * c-exp.y (%union): Change dval to typed_val_float. Use DOUBLEST
629 to store actual data. Change types of INT and FLOAT tokens to
630 typed_val_int and typed_val_float respectively. Create new token
631 DOUBLE_KEYWORD to specify the string `double'. Make production
632 for FLOAT use type determined by parse_number. Add production for
633 "long double" data type.
634 * (parse_number): Use sscanf to parse numbers as float, double or
635 long double depending upon the type of typed_val_float.dval. Also
636 allow user to specify `f' or `l' suffix to explicitly specify
637 float or long double constants. Change typed_val to
639 * (yylex): Change typed_val to typed_val_int. Also, scan for
641 * coffread.c (decode_base_type): Add support for T_LNGDBL basic
643 * configure, configure.in: Add check for long double support in
645 * defs.h: Define DOUBLEST appropriatly depending on whether
646 HAVE_LONG_DOUBLE (from autoconf) is defined. Also, fix prototypes
647 for functions that handle this type.
648 * expression.h (union exp_element): doubleconst is now type
650 * m2-exp.y f-exp.y (%union): dval becomes type DOUBLEST.
651 * findvar.c (extract_floating): Make return value be DOUBLEST.
652 Also, add support for numbers with size of long double.
653 * (store_floating): Arg `val' is now type DOUBLEST. Handle all
655 * parser-defs.h parse.c (write_exp_elt_dblcst): Arg expelt is now
657 * valarith.c (value_binop): Change temp variables v1, v2 and v to
658 type DOUBLEST. Coerce type of result to long double if either op
660 * valops.c (value_arg_coerce): If argument type is bigger than
661 double, coerce to long double.
662 * (call_function_by_hand): If REG_STRUCT_HAS_ADDR is defined, and
663 arg type is float and > 8 bytes, then use pointer-to-object
665 * valprint.c (print_floating): Arg doub is now type DOUBLEST.
666 Use appropriate format and precision to print out floating point
668 * value.h: Fixup prototypes for value_as_double,
669 value_from_double, and unpack_double to use DOUBLEST.
670 * values.c (record_latest_value): Remove check for invalid
671 floats. Allow history to store them so that people may examine
672 them in hex if they want.
673 * (value_as_double unpack_double): Change return value to DOUBLEST.
674 * (value_from_double): Arg `num' is now DOUBLEST.
675 * (using_struct_return): Use RETURN_VALUE_ON_STACK macro (target
676 specific) to expect certain types to always be returned on the stack.
678 Fri Feb 16 14:00:54 1996 Fred Fish <fnf@cygnus.com>
680 * bcache.c, bcache.h: New files to implement a byte cache.
681 * Makefile.in (SFILES): Add bcache.c.
682 (symtab_h): Add bcache.h.
683 (HFILES_NO_SRCDIR): add bcache.h
684 (COMMON_OBJS): Add bcache.o
685 (bcache.o): New target.
686 * dbxread.c (start_psymtab): Make global_syms & static_syms
687 type "partial_symbol **".
688 * hpread.c (hpread_start_symtab): Ditto.
689 * os9kread.c (os9k_start_psymtab): Ditto.
690 * stabsread.h (start_psymtab): Ditto.
691 * {symfile.c, symfile.h} (start_psymtab_common): Ditto.
692 * maint.c (maintenance_print_statistics): Call
693 print_symbol_bcache_statistics.
694 * objfiles.c (allocate_objfile): Initialize psymbol bcache malloc
696 * solib.c (allocate_rt_common_objfile): Ditto.
697 * symfile.c (reread_symbols): Ditto.
698 (free_objfile): Free psymbol bcache when objfile is freed.
699 (objfile_relocate): Use new indirect psymbol pointers.
700 * objfiles.h (struct objfile): Add psymbol cache.
701 * symfile.c (compare_psymbols): Now passed pointers to pointers to
703 (reread_symbols): Free psymbol bcache when freeing other objfile
705 (add_psymbol_to_list, add_psymbol_addr_to_list): Initialize new
706 psymbol using the psymbol bcache.
707 (init_psymbol_list): Psymbol lists now contain pointers rather than
709 * symfile.h (psymbol_allocation_list): Psymbol lists now dynamically
710 grown arrays of pointers.
711 (ADD_PSYMBOL_VT_TO_LIST): Initialize new symbol using the psymbol
713 * symmisc.c (print_partial_symbols): Now takes pointer to pointer
715 (print_symbol_bcache_statistics): New function to print per objfile
717 (print_partial_symbol, print_partial_symbols,
718 maintenance_check_symtabs, extend_psymbol_list):
719 Account for change to pointer to pointer to partial symbol.
720 * symtab.c (find_pc_psymbol, lookup_partial_symbol, decode_line_2,
721 make_symbol_completion_list):
722 Account for change to pointer to pointer to partial symbol.
723 * symtab.h (bcache.h): Include.
724 * xcoffread.c (xcoff_start_psymtab): Make global_syms & static_syms
725 type "partial_symbol **".
727 Fri Feb 16 10:02:34 1996 Fred Fish <fnf@cygnus.com>
729 * dwarfread.c (free_utypes): New function.
730 (read_file_scope): Call free_utypes as cleanup, rather than just
731 freeing the utypes pointer.
733 Thu Feb 15 21:40:52 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
735 * demangle.c (is_cplus_marker): New function, checks if a
736 character is one of the commonly used C++ marker characters.
737 * defs.h (is_cplus_marker): Add prototype.
738 * c-typeprint.c (c_type_print_base), ch-lang.c (chill_demangle),
739 cp-valprint.c (cp_print_class_method), mdebugread.c (parse_symbol),
740 stabsread.c (define_symbol, read_member_functions, read_struct_fields),
741 symtab.h (OPNAME_PREFIX_P, VTBL_PREFIX_P, DESTRUCTOR_PREFIX_P),
742 values.c (vb_match): Use is_cplus_marker instead of comparison
745 Thu Feb 15 18:08:13 1996 Fred Fish <fnf@cygnus.com>
747 * symfile.h (INLINE_ADD_PSYMBOL): Default this to 0 and possibly
748 delete entirely someday.
750 Thu Feb 15 15:25:34 1996 Stan Shebs <shebs@andros.cygnus.com>
752 * mpw-make.sed: Edit out makefile rebuild rule.
753 (host_alias, target_alias): Comment out instead of deleting.
754 (@LIBS@): Edit out references.
756 Tue Feb 13 22:56:46 1996 Fred Fish <fnf@cygnus.com>
758 * symfile.c (add_psymbol_to_list, add_psymbol_addr_to_list):
759 Use n_psyms in OBJSTAT, not psyms.
761 Mon Feb 12 15:59:31 1996 Doug Evans <dje@charmed.cygnus.com>
763 * configure.in (sparclet-*-aout*): New config.
764 * configure: Regenerated.
766 Mon Feb 12 14:17:52 1996 Fred Fish <fnf@cygnus.com>
768 * somsolib.c (som_solib_add): Use xmalloc rather than bare
769 unchecked call to malloc.
770 * remote-mips.c (pmon_load_fast): ditto.
771 * remote-mm.c (mm_open): ditto.
772 * hpread.c (hpread_lookup_type): ditto.
773 * remote-adapt.c (adapt_open): ditto.
775 Mon Feb 12 13:11:32 1996 Fred Fish <fnf@cygnus.com>
777 * f-lang.c (allocate_saved_bf_node, allocate_saved_function_node,
778 allocate_saved_f77_common_node, allocate_common_entry_node,
779 add_common_block): Use xmalloc rather than malloc, some of which
781 * gnu-regex.c: At same point as other gdb specific changes
782 #undef malloc and then #define it to xmalloc.
783 * ch-exp.c (growbuf_by_size): Use xmalloc/xrealloc rather than
784 bare unchecked calls to malloc/realloc.
785 * stabsread.c (dbx_lookup_type): Use xmalloc rather than bare
786 unchecked call to malloc.
788 Wed Feb 7 11:31:26 1996 Stu Grossman (grossman@cygnus.com)
790 * symtab.c (gdb_mangle_name): Change opname var to be const to
791 match return val of cplus_mangle_name.
792 * i960-tdep.c: Change arg types of next_insn to match callers.
794 Wed Feb 7 07:34:24 1996 Fred Fish <fnf@cygnus.com>
796 * config/i386/linux.mh (XM_CLIBS, GDBSERVER_LIBS): Remove. These
797 apparently aren't needed in any reasonably recent version of
800 Tue Feb 6 21:37:03 1996 Per Bothner <bothner@kalessin.cygnus.com>
802 * stabsread.c (read_range_type): If !self-subrange and language
803 is Chill, assume a true range. If a true_range is a sub_subrange,
804 use builtin_type_int for index_type.
806 Tue Feb 6 18:38:51 1996 J.T. Conklin <jtc@slave.cygnus.com>
808 * nindy-share/nindy.c (say): Use stdarg.h macros when compiling
809 with an ANSI compiler.
812 Tue Feb 6 16:31:25 1996 Tom Tromey <tromey@creche.cygnus.com>
814 * gdbtk.tcl (create_file_win): Eliminate text widget B1 binding so
815 double-clicking will work again.
816 (create_asm_win): Put "break" at end of all B1 bindings.
817 (create_file_win): Lower "sel" tag, don't raise it.
818 (ensure_line_visible): New proc.
819 (update_listing, update_assembly): Use it.
820 (create_copyright_window): Destroy window on Leave event.
821 (create_command_window): Put "break" at end of all B2 bindings.
824 Mon Feb 5 18:24:28 1996 Steve Chamberlain <sac@slash.cygnus.com>
826 From Michael_Snyder@NeXT.COM (Michael Snyder):
827 * valops.c (value_arg_coerce): Coerce float to double, unless the
828 function prototype specifies float.
830 Mon Feb 5 09:51:55 1996 Tom Tromey <tromey@creche.cygnus.com>
832 * language.c (set_language_command): Use languages table when
833 printing available languages.
835 Sat Feb 3 12:22:05 1996 Fred Fish <fnf@cygnus.com>
837 Fix problems reported by Hans Verkuil (hans@wyst.hobby.nl):
838 * command.c (add_cmd): Add missing initialization for enums member.
839 Reorder members to match structure declaration to make it easier to
840 tell when one is missing.
841 * exec.c (exec_file_command): Fix problem where filename in malloc'd
842 memory is referenced after being freed.
844 Sat Feb 3 03:26:21 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
846 * dwarfread.c (read_func_scope): Avoid GDB core dumps if
847 AT_name tag is missing.
849 * procfs.c (procfs_stopped_by_watchpoint): Fix logic when
850 FLTWATCH and FLTKWATCH are defined.
852 * remote.c (remote_read_bytes): Advance memaddr for transfers,
853 return number of bytes transferred for partial reads.
855 * top.c (init_signals): Reset SIGTRAP to SIG_DFL.
857 Fri Feb 2 13:40:50 1996 Steve Chamberlain <sac@slash.cygnus.com>
859 * win32-nat.c (mappings): Add ppc registers.
860 (child_resume): Turn off step for ppc.
862 Thu Feb 1 10:29:31 1996 Steve Chamberlain <sac@slash.cygnus.com>
864 * config/powerpc/(cygwin32.mh, cygwin32.mt, tm-cygwin32.h,
866 * config/i386/(*win32*): Becomes *cygwin32*.
867 * configure.in (i[3456]86-*-win32*): Becomes i[3456]86-*-cygwin32.
868 (powerpcle-*-cygwin32): New.
869 * configure: Regenerate.
870 * win32-nat.c (child_create_inferior): Call CreateProcess
871 with the right program arg.
873 Thu Feb 1 11:01:10 1996 Jeffrey A Law (law@cygnus.com)
875 * config/pa/tm-hppa.h (SOFT_FLOAT): Provide a default definition.
877 Wed Jan 31 19:01:28 1996 Fred Fish <fnf@cygnus.com>
879 * serial.c: Change fputc/fputs/fprintf to _unfiltered forms.
881 Wed Jan 31 18:36:27 1996 Stan Shebs <shebs@andros.cygnus.com>
883 * config/sparc/xm-sun4os4.h (HAVE_TERMIOS): Remove.
885 * config/sparc/xm-sparc.h (HAVE_WAIT_STRUCT): Remove, never used.
887 * config/i386/nm-i386mach.h (CHILD_PREPARE_TO_STORE): Move to
888 here from config/i386/xm-i386mach.h, fix name.
889 * config/i386/nm-sun386.h: Ditto, from config/i386/xm-sun386.h.
890 * config/i386/nm-ptx4.h (CHILD_PREPARE_TO_STORE): Move to
891 here from config/i386/xm-ptx4.h.
892 * config/i386/nm-ptx4.h: Ditto, from config/i386/xm-ptx.h.
893 * config/i386/nm-symmetry.h: Ditto, from config/i386/xm-symmetry.h.
894 * config/m68k/nm-sun3.h: Ditto, from config/m68k/xm-sun3.h.
895 * config/sparc/nm-nbsd.h: Ditto, from config/sparc/xm-nbsd.h.
896 * config/sparc/nm-sun4os4: Ditto, from config/sparc/xm-sparc.h.
898 * config/sparc/nm-sun4sol2.h: New file, renamed from nm-sysv4.h.
899 (PRSVADDR_BROKEN): Move here from xm-sun4sol2.h.
900 * config/sparc/sun4sol2.mh (NAT_FILE): Update.
902 Wed Jan 31 17:20:26 1996 Jeffrey A Law (law@cygnus.com)
904 * config/pa/tm-hppa.h (EXTRACT_RETURN_VALUE): Handle software
905 floating point correctly.
906 (STORE_RETURN_VALUE): Likewise.
907 * config/pa/tm-pro.h (SOFT_FLOAT): define.
909 Wed Jan 31 13:34:52 1996 Fred Fish <fnf@cygnus.com>
911 * config/i386/xm-linux.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
912 Define to what should be reasonable values. However, apparently
913 a bug in linux mmap prevents mapped symbol tables from working.
915 Tue Jan 30 18:26:19 1996 Fred Fish <fnf@cygnus.com>
917 * defs.h (errno.h>: Move #include closer to head of file to solve
918 obscure problem with systems that declare perror with const arg, in
919 both errno.h and stdio.h, and const is defined away by intervening
922 Tue Jan 30 15:41:10 1996 Fred Fish <fnf@cygnus.com>
924 From Jon Reeves <reeves@zk3.dec.com>:
925 * i386-stub.c (getpacket): Change fprintf stream from "gdb" to stderr.
926 (mem_fault_routine): Fix misplaced volatile type qualifier in decl.
928 Mon Jan 29 19:05:58 1996 Fred Fish <fnf@cygnus.com>
930 * Makefile.in (diststuff): Make all-doc; diststuff target does not
931 exist in doc/Makefile.in.
933 Mon Jan 29 18:44:57 1996 Stan Shebs <shebs@andros.cygnus.com>
935 * config/m88k/xm-cxux.h (BP_HIT_COUNT): Remove, never used.
937 Mon Jan 29 00:10:35 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
939 * ch-valprint.c (calculate_array_length): New function to
940 determine the length of an array type.
941 (chill_val_print (case TYPE_CODE_ARRAY)): If the length of an
942 array type is zero, call calculate_array_length.
944 * gdbtypes.c (get_discrete_bounds (case TYPE_CODE_ENUM)): The
945 values may not be sorted. Scan all entries and set the real lower
948 Sun Jan 28 15:50:42 1996 Fred Fish <fnf@cygnus.com>
950 * config/xm-linux.h: Move include of solib.h and #define of
951 SVR4_SHARED_LIBS from here ...
952 * config/nm-linux.h: ...to here.
954 Sat Jan 27 10:34:05 1996 Fred Fish <fnf@cygnus.com>
956 * configure.in (AC_CHECK_HEADERS): Check for sys/procfs.h.
957 Also check for gregset_t and fpregset_t types.
958 * configure: Regenerate.
959 * core-regset.c (sys/procfs.h): Only include if HAVE_SYS_PROCFS_H
961 (fetch_core_registers): Turn into stub unless both HAVE_GREGSET_T
962 and HAVE_FPREGSET_T are defined. These changes allow systems
963 like linux that are migrating to /proc support to use a single
964 configuration for both new and old versions.
966 * config/i386/linux.mt: Note that this is now for both a.out and
968 * config/i386/linux.mh (NATDEPFILES): Add solib.o, core-regset.o,
970 * config/i386/tm-linux.h (tm-sysv4.h): Include.
971 * config/i386/xm-linux.h (solib.h): Include
972 (SVR4_SHARED_LIBS): Define.
973 * i386v4-nat.c: Only compile if HAVE_SYS_PROCFS_H is defined.
974 (supply_gregset, fill_gregset): Compile if HAVE_GREGSET_T defined.
975 (supply_fpregset, fill_fpregset): Compile if HAVE_FPREGSET_T
978 Fri Jan 26 13:48:14 1996 Stan Shebs <shebs@andros.cygnus.com>
980 * config/sparc/xm-sparc.h (NEW_SUN_CORE): Remove, never used.
981 * config/i386/xm-sun386.h: Ditto.
982 * config/m68k/xm-sun2.h, config/m68k/xm-sun3.h: Ditto.
984 Thu Jan 25 16:05:53 1996 Tom Tromey <tromey@creche.cygnus.com>
986 * Makefile.in (INSTALLED_LIBS, CLIBS): Include @LIBS@.
988 Thu Jan 25 09:22:15 1996 Steve Chamberlain <sac@slash.cygnus.com>
990 From Greg McGary <gkm@gnu.ai.mit.edu>:
991 * dcache.c (dcache_peek, dcache_poke): Advance addr for
994 Thu Jan 25 13:08:51 1996 Doug Evans (dje@cygnus.com)
996 * infrun.c (normal_stop): Fix test for shared library event.
998 Thu Jan 25 03:26:38 1996 Doug Evans <dje@charmed.cygnus.com>
1000 * configure.in (sparc64-*-*): Add default host configuration.
1001 start-sanitize-gdbtk
1002 (sparc64-*-solaris2* host): Link statically if GCC used.
1004 (sparc64-*-solaris2*): Add target configuration.
1005 * configure: Regenerated.
1006 * sparc/sp64sol2.mt: New file.
1008 Wed Jan 24 22:31:37 1996 Doug Evans <dje@charmed.cygnus.com>
1010 * Makefile.in (RUNTEST): srcdir renamed to rootsrc.
1012 Wed Jan 24 15:42:24 1996 Tom Tromey <tromey@creche.cygnus.com>
1014 * Makefile.in (lint): Close backquotes.
1016 start-sanitize-gdbtk
1017 Wed Jan 24 15:28:41 1996 Tom Tromey <tromey@creche.cygnus.com>
1019 * gdbtk.tcl, gdbtk.c: Updated copyrights.
1021 * configure.in: Look for -ldl or -ldld when using Tcl 7.5 or
1023 * configure: Rebuilt.
1026 Wed Jan 24 13:19:10 1996 Fred Fish <fnf@cygnus.com>
1028 * NEWS: Make note of new record and replay feature for
1029 remote debug sessions.
1030 * serial.c (gdbcmd.h): Include.
1031 (serial_logfile, serial_logfp, serial_reading, serial_writing):
1032 Define here, for remote debug session logging.
1033 (serial_log_command, serial_logchar, serial_write, serial_readchar):
1034 New functions for remote debug session logging.
1035 (serial_open): Open remote debug session log file when needed.
1036 (serial_close): Close remote debug session log file when needed.
1037 (_initialize_serial): Add set/show commands for name of remote
1038 debug session log file.
1039 * serial.h (serial_readchar): Declare
1040 (SERIAL_READCHAR): Call serial_readchar().
1041 (SERIAL_WRITE): Call serial_write().
1042 (serial_close): Declare as extern.
1043 (serial_logfile, serial_logfp): Declare.
1044 * top.c (execute_command): Declare serial_logfp. Log user command
1045 in remote debug session log if log file is open.
1046 * remote-array.c (array_wait): #ifdef out echo to gdb_stdout.
1047 (array_read_inferior_memory): Rewrite to fix memory overwrite bug.
1048 * remote-array.c (SREC_SIZE): Remove, duplicates define in
1050 * remote-array.c (hexchars, hex2mem): Remove, unused.
1051 * gdbserver/low-linux.c (store_inferior_registers): Remove
1052 unnecessary extern declaration of registers[].
1053 * gdbserver/Makefile.in (all): Add gdbreplay.
1054 * gdbserver/gdbreplay.c: New file.
1055 * gdbserver/README: Give example of recording a remote
1056 debug session with gdb and then replaying it with gdbreplay.
1058 Tue Jan 23 18:02:35 1996 Per Bothner <bothner@kalessin.cygnus.com>
1060 * stabsread.c (rs6000_builtin_type): Make bool type unsigned.
1061 (read_one_struct_field): Support boolean bitfields.
1062 * c-valprint.c (c_val_print): Print booleans properly.
1064 Tue Jan 23 18:54:09 1996 Stan Shebs <shebs@andros.cygnus.com>
1066 * remote-vxsparc.c (vx_convert_to_virtual, vx_convert_from_virtual):
1068 * config/sparc/vxsparc.mt (TDEPFILES): Add remote-vxsparc.o.
1070 Tue Jan 23 14:36:05 1996 Per Bothner <bothner@kalessin.cygnus.com>
1072 * ch-exp.c (parse_tuple): Error if invalid mode.
1074 * value.h (COERCE_ARRAY): Don't coerce enums.
1075 (COERCE_ENUM): Don't COERCE_REF.
1076 (COERCE_NUMBER): New macro (same as COERCE_ARRAY then COERCE_ENUM).
1077 * valops.c (value_assign): Only do COERCE_ARRAY if internalvar (let
1078 value_cast handle it otherwise); do *not* COERCE_ENUM either way.
1079 * valarith.c: Use COERCE_NUMBER instead od COEREC_ARRAY.
1080 Add COERCE_REF before COERCE_ENUM.
1081 * values.c (value_as_long): Simplify.
1083 * valops.c (value_array): Create internalvar if !c_style_arrays.
1085 * language.c (lang_bool_type): Add Fortran support.
1086 * eval.c (OP_BOOL): Use LA_BOOL_TYPE.
1088 Tue Jan 23 13:08:26 1996 Jeffrey A Law (law@cygnus.com)
1090 * symfile.c (auto_solib_add): Renamed from auto_solib_add_at_startup.
1091 All references changed.
1092 * breakpoint.c (bpstat_what): Add shlib_event to the class types.
1093 Update state table. Reformat so that it's still readable.
1094 When we hit the shlib_event breakpoint, set the calss of shlib_event.
1095 (breakpoint_1): Add "shlib events" as a breakpoint type.
1096 Print the shlib_event breakpoint like other breakpoints.
1097 (create_solib_event_breakpoint): New function.
1098 (breakpoint_re_set_one): Handle solib_event breakpoints.
1099 * breakpoint.h (enum bytype): Add bp_shlib_event breakpoint type.
1100 (enum bpstat_what_main_action): Add BPSTAT_WHAT_CHECK_SHLIBS
1102 (create_solib_event_breakpoint): Declare.
1103 * infrun.c (wait_for_inferior): Handle CHECK_SHLIBS bpstat.
1104 (normal_stop): Inform the user when the inferior stoped due
1105 to a shared library event.
1106 (_initialize_infrun): Add new set/show variable "stop-on-solib-events"
1107 to control whether or not gdb continues the inferior or stops it when
1108 a shared library event occurs.
1109 * minsyms.c (lookup_minimal_symbol_solib_trampoline): New function.
1110 * somsolib.c (TODO list): Update.
1111 (som_solib_create_inferior_hook): Arrange for gdb to be notified
1112 when significant shared library events occur.
1113 * hppa-tdep.c (find_unwind_entry): No longer static.
1115 Tue Jan 23 09:00:48 1996 Doug Evans <dje@charmed.cygnus.com>
1117 * printcmd.c (print_insn): Pass fprintf_unfiltered to
1118 INIT_DISASSEMBLE_INFO.
1119 start-sanitize-gdbtk
1120 * gdbtk.c (gdb_disassemble): Likewise.
1123 Mon Jan 22 16:59:40 1996 Stan Shebs <shebs@andros.cygnus.com>
1125 * remote.c (remotebreak): New GDB variable.
1126 (remote_break): New global.
1127 (remote_interrupt): Send a break instead of ^C if remote_break.
1128 * NEWS: Describe the new variable.
1130 Mon Jan 22 16:24:11 1996 Doug Evans <dje@charmed.cygnus.com>
1132 * sparc-tdep.c (_initialize_sparc_tdep): Always use print_insn_sparc.
1134 Fri Jan 19 07:19:38 1996 Fred Fish <fnf@cygnus.com>
1136 * hp300ux-nat.c (getpagesize): Remove unused function
1137 fetch_core_registers.
1138 (hp300ux_core_fns): Remove, is unused.
1139 (_initialize_core_hp300ux): Remove, is unused.
1140 (gdbcore.h): Remove #include, no longer needed.
1142 Fri Jan 19 00:59:53 1996 Jeffrey A Law (law@cygnus.com)
1144 * rs6000-nat.c (exec_one_dummy_insn): Rework to avoid
1145 ptrace bug in aix4.1.3 on the rs6000.
1147 Wed Jan 17 13:22:27 1996 Stan Shebs <shebs@andros.cygnus.com>
1149 * remote-hms.c (hms_ops): Add value for to_thread_alive.
1150 * remote-nindy.c (nindy_ops): Ditto.
1151 * remote-udi.c (udi_ops): Ditto.
1153 Tue Jan 16 18:00:35 1996 James G. Smith <jsmith@cygnus.co.uk>
1155 * remote-mips.c (pmon_opn, pmon_wait, pmon_makeb64, pmon_zeroset,
1156 pmon_checkset, pmon_make_fastrec, pmon_check_ack,
1157 pmon_load_fast): New functions. Support for the PMON monitor world.
1158 (common_open): New function to merge support for different monitors.
1159 (mips_open): Use common_open().
1160 (mips_send_command): New function.
1161 (mips_send_packet): Scan out-of-sequence packets.
1162 (mips_enter_debug, mips_exit_debug): New functions.
1163 (pmon_ops): New target definition structure.
1165 Tue Jan 16 11:22:58 1996 Stu Grossman (grossman@cygnus.com)
1167 * Makefile.in (CLIBS): Add LIBS to allow libraries to be
1168 specified on the make command line (via make LIBS=xxx).
1170 * configure.in (enable-gm): magic.o -> gmagic.o.
1173 start-sanitize-gdbtk
1174 Mon Jan 15 09:58:41 1996 Tom Tromey <tromey@creche.cygnus.com>
1176 * gdbtk.tcl (create_expr_window): Many changes to update GUI.
1177 (add_expr): Changes from create_expr_window.
1178 (create_command_window): Set focus.
1179 (delete_expr): Rewrote.
1180 (expr_update_button): New proc.
1181 (add_expr): Put bindings on FocusIn, FocusOut.
1182 Don't allow .file_popup to be torn off.
1185 Fri Jan 12 21:41:58 1996 Jeffrey A Law (law@cygnus.com)
1187 * symtab.c (find_pc_symtab): Don't lose if OBJF_REORDERED
1188 is set but there are no psymtabs.
1190 Fri Jan 12 15:56:12 1996 Steve Chamberlain <sac@slash.cygnus.com>
1192 * dsrec.c (load_srec): Remove unused variable.
1193 * monitor.c (monitor_expect): Don't expect a ^C to echo.
1194 * serial.c (serial_open): Add parallel interface.
1195 * sh3-rom.c (parallel, parallel_in_use): New.
1196 (sh3_load): If parallel_in_use, download though the
1198 (sh3_open): Open parallel port if specified.
1199 (sh3_close): New function.
1200 (_inititalize_sh3): Add sh3_close hook and documentation.
1201 * monitor.c (monitor_close): Export.
1202 * monitor.h (monitor_close): Add prototype.
1204 Fri Jan 12 13:11:42 1996 Stan Shebs <shebs@andros.cygnus.com>
1206 From Wilfried Moser <wilfried.moser@aut.alcatel.at>:
1207 * remote.c (remotetimeout): New GDB variable, use to set the
1208 remote timeout for reading.
1210 start-sanitize-gdbtk
1211 Fri Jan 12 09:36:17 1996 Tom Tromey <tromey@creche.cygnus.com>
1213 * gdbtk.tcl (gdbtk_tcl_query): Swap Yes and No buttons.
1214 (update_listing): Use lassign. Use "see" to scroll. Don't need
1215 screen_top, screen_bot, screen_height.
1216 (update_assembly): Use "see" to scroll.
1217 (textscrollproc): Removed.
1218 (create_file_win): Don't use textscrollproc.
1219 (asmscrollproc): Removed.
1220 (create_asm_window): Don't use asmscrollproc.
1221 (create_asm_win): Ditto.
1222 (screen_height, screen_top, screen_bot): Removed.
1223 (run_editor): New proc.
1224 (build_framework): Use it.
1225 (create_file_win, create_source_window): Don't use textscrollproc.
1226 (create_breakpoints_window): Set -xscrollcommand on canvas.
1227 (not_implemented_yet): Default button is 0.
1228 (delete_char): Don't use tk_textBackspace.
1229 (create_command_window): Allow Tk bindings to fire after deleting
1231 (create_command_window): Make Delete delete left, not right.
1234 Fri Jan 12 07:14:27 1996 Fred Fish <fnf@cirdan.cygnus.com>
1236 * lynx-nat.c, irix4-nat.c, sparc-nat.c: Include gdbcore.h
1237 to get "struct core_fns" defined.
1238 * Makefile.in (lynx-nat.o, irix4-nat.o, sparc-nat.o):
1239 Are dependent upon gdbcore_h.
1241 Thu Jan 11 23:13:24 1996 Per Bothner <bothner@cygnus.com>
1243 * symfile.c (decrement_reading_symtab): New function.
1244 * symfile.c, symtab.h (currently_reading_symtab): New variable.
1245 * symfile.c (psymtab_to_symtab): Adjust currently_reading_symtab.
1246 * gdbtypes.c (check_typedef): Don't call lookup_symbol if
1247 currently_reading_symtab (since that could infinitely recurse).
1249 Thu Jan 11 17:21:25 1996 Per Bothner <bothner@kalessin.cygnus.com>
1251 * stabsread.c (read_struct_type): Trivial simplification.
1253 * stabsread.c (define-symbol): Use invisible references
1254 for TYPE_CODE_SET and TYPE_CODE_BITSTRING too.
1255 * valops.c (call_function_by_hand): Likewise.
1256 * eval.c (evaluate_subexp_standard): When known, use the formal
1257 parameter type as the expected type when evaluating arg expressions.
1258 * ch-lang.c (evaluate_subexp_chill): Likewise (for MULTI_SUBSCRIPT).
1260 start-sanitize-gdbtk
1261 Thu Jan 11 10:08:14 1996 Tom Tromey <tromey@creche.cygnus.com>
1263 * main.c (main): Disable window interface if --help or --version
1266 * gdbtk.tcl (FSBox): Don't use tk_listboxSingleSelect.
1268 Changes in sync with expect:
1269 * configure.in (ENABLE_GDBTK): Use CY_AC_PATH_TCL and
1271 * aclocal.m4: Replaced with version from expect.
1272 * configure: Regenerated.
1275 Wed Jan 10 16:08:49 1996 Brendan Kehoe <brendan@lisa.cygnus.com>
1277 * configure.in, configure: Recognize rs6000-*-aix4*.
1278 * config/powerpc/xm-aix.h: Reduce to include "xm-aix4.h".
1279 * config/rs6000/aix4.mh (XM_FILE): Point to xm-aix4.h.
1280 * config/rs6000/xm-aix4.h: New file.
1281 * config/xm-aix4.h: New file.
1283 Wed Jan 10 11:25:37 1996 Fred Fish <fnf@cygnus.com>
1285 From Wilfried Moser <wilfried.moser@aut.alcatel.at>:
1286 * gdbserver/low-linux.c: New file.
1287 * remote.c (remote_read_bytes): Fix aborts on larger packets.
1289 * config/i386/linux.mh (GDBSERVER_DEPFILES, GDBSERVER_LIBS):
1291 * stabsread.c (define_symbol): If register value is too large,
1292 tell what it is and what max is.
1294 start-sanitize-gdbtk
1295 Wed Jan 10 09:07:22 1996 Tom Tromey <tromey@creche.cygnus.com>
1297 * gdbtk.tcl (gdbtk_tcl_fputs, gdbtk_tcl_fputs_error,
1298 gdbtk_tcl_flush): Use "see", not "yview".
1299 (gdbtk_tcl_query): Use questhead bitmap.
1300 various: Always wrap condition of 'if' in {...}.
1301 (add_breakpoint_frame): Set -value on radiobuttons.
1302 (lassign): New proc.
1303 (add_breakpoint_frame): Use lassign, not series of assignments.
1304 (decr): Made faster.
1305 (interactive_cmd): Use "see", not "yview".
1306 (not_implemented_yet): Use warning bitmap.
1307 (update_expr): Don't allow $expr to be evalled by Tcl.
1308 (create_expr_window): Don't use "focus".
1309 (delete_char, delete_line): Define globally.
1310 (delete_line, delete_char, create_command_window, update_autocmd,
1311 build_framework, create_asm_win, create_file_win): Use "see", not
1313 (create_copyright_window, center_window, bind_widget_after_class):
1315 (FSBox,create_command_window, create_autocmd_window): Binding
1317 (textscrollproc): Define globally.
1318 (build_framework): tk_menuBar no longer needed. Keys Prior, Next,
1319 Home, End, Up, and Down are all defined by Tk.
1320 (apply_filespec): Use error bitmap in dialog.
1321 (files_command): Don't use tk_listboxSingleSelect.
1322 (files_command): Don't use "uniq" to remove duplicates from a
1324 (update_assembly): Use lassign.
1325 (create_asm_win): Removed redundant bindings.
1326 (listing_window_button_1, file_popup_menu): Use tk_popup.
1327 (ButtonRelease-1 binding): Just remove tag from window; rest
1330 * gdbtk.c (gdbtk_query): Use Tcl_Merge to provide quoting.
1331 (call_wrapper): Use Tcl_Eval, not Tcl_VarEval.
1332 (gdbtk_call_command): Ditto.
1335 Tue Jan 9 09:33:53 1996 Jeffrey A Law (law@cygnus.com)
1337 * hpread.c (hpread_build_psymtabs): Finish Jan 4th
1338 enum namespace -> enum_namespace change.
1340 Tue Jan 9 04:44:47 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
1342 * ch-exp.c (parse_primval): In case ARRAY, add missing
1345 Mon Jan 8 13:29:34 1996 Stan Shebs <shebs@andros.cygnus.com>
1347 * remote-mips.c (mips_receive_header): Recognize \012 instead
1348 of \n, but write \n when program sends a \012.
1349 * ser-mac.c (mac_input_buffer): Increase size of buffer.
1351 Mon Jan 8 12:00:40 1996 Jeffrey A Law (law@cygnus.com)
1353 * infptrace.c (initialize_infptrace): Move function out of
1354 #ifdef conditional; put code within the function inside an
1357 * buildsym.c (end_symtab): Remove sort_pending and sort_linevec
1358 arguments. Sorting is now dependent on OBJF_REORDERED. All
1359 callers/references changed.
1360 * dbxread.c (read_ofile_symtab): Correctly determine value for
1361 last_source_start_addr for reordered executables.
1362 (process_one_symbol): Handle N_FUN with no name as an end of
1364 * partial-stab.h (case N_FN, N_TEXT): Don't assume CUR_SYMBOL_VALUE
1365 is the high text address for a psymtab.
1366 (case N_SO): Likewise.
1367 (case N_FUN): Handle N_FUN with no name as an end of function
1369 * minsyms.c (lookup_minimal_symbol_by_pc): Examine all symbols
1370 at the same address rather than a random subset of them.
1371 * coffread.c (coff_symfile_init): Set OBJF_REORDERED.
1372 * elfread.c (elf_symfile_init): Similarly.
1373 * somread.c (som_symfile_init): Similarly.
1374 * xcoffread.c (xcoff_symfile_init): Similarly.
1376 Fri Jan 5 17:46:01 1996 Stu Grossman (grossman@cygnus.com)
1378 * stack.c (print_stack_frame print_frame_info) symmisc.c
1379 (dump_symtab): Change RETURN_MASK_ERROR to RETURN_MASK_ALL so
1380 that catch_errors doesn't get blindsided by QUIT and lose the
1381 cleanup chain. This fixes a problem where ^C while in a
1382 user-defined command sometimes leaves instream NULL and causes a
1383 segfault in command_loop.
1385 Fri Jan 5 13:59:16 1996 Brendan Kehoe <brendan@lisa.cygnus.com>
1387 * configure.in, configure: Add `-ldl -lw' for Solaris linking.
1389 Fri Jan 5 12:02:00 1996 Steve Chamberlain <sac@slash.cygnus.com>
1391 * config/sh/sh.mt, config/powerpc/*.mt, config/pa/hppapro.mt,
1392 config/m68k/monitor.mt, config/h8500/h8500.mt, config/h8300/h8300.mt:
1393 srec.o renamed to dsrec.o.
1395 Thu Jan 4 16:04:54 1996 Stu Grossman (grossman@cygnus.com)
1397 * breakpoint.c (remove_breakpoint): Change error to warning so
1398 that hardware watchpoint removal problems won't leave breakpoint
1399 traps in the target.
1400 start-sanitize-gdbtk
1401 * configure configure.in: Make --enable-gdbtk be the default.
1403 * remote-e7000.c (e7000_insert_breakpoint,
1404 e7000_remove_breakpoint): Use e7000 based breakpoints, not memory
1406 * (e7000_wait): Adjust PC back by two when we see a breakpoint to
1407 compensate for e7000 maladjustment.
1408 * sparcl-tdep.c (sparclite_check_watch_resources): Fix logic bug
1409 which prevented hardware watchpoints from working.
1411 Thu Jan 4 10:44:17 1996 Fred Fish <fnf@cirdan.cygnus.com>
1413 * infptrace.c (udot_info): New function.
1414 (PT_*): Define each individually if that one is not defined.
1415 * rs6000-nat.c (kernel_u_size): New function
1416 Include <sys/user.h> for "struct user"
1417 * alpha-nat.c (kernel_u_size): New function.
1418 Include <sys/user.h> for "struct user"
1419 * sparc-nat.c (kernel_u_size): New function.
1420 Include <sys/user.h> for "struct user"
1421 * i386b-nat.c (kernel_u_size): New function.
1422 * i386v-nat.c (kernel_u_size): New function.
1423 * config/i386/nm-fbsd.h (KERNEL_U_SIZE): Define.
1424 (kernel_u_size): Declare.
1425 * config/i386/nm-linux.h (KERNEL_U_SIZE): Define.
1426 (kernel_u_size): Declare.
1427 * config/sparc/nm-sun4os4.h (KERNEL_U_SIZE): Define.
1428 (kernel_u_size): Declare.
1429 * config/alpha/nm-osf2.h (KERNEL_U_SIZE): Define.
1430 (kernel_u_size): Declare.
1431 * config/rs6000/nm-rs6000.h (KERNEL_U_SIZE): Define.
1432 (kernel_u_size): Declare.
1434 Thu Jan 4 11:00:01 1996 steve chamberlain <sac@slash.cygnus.com>
1436 * mdebugread.c (mylookup_symbol): enum namespace becomes
1437 enum_namespace type.
1438 * symfile.c (add_psymbol_to_list)
1439 (add_psymbol_addr_to_list): Ditto.
1440 * symtab.c (lookup_partial_symbol): Ditto.
1441 (lookup_symbol): Ditto.
1442 (lookup_block_symbol): Ditto.
1443 * win32-nat.c (handle_load_dll): Use incoming dll base.
1444 (child_wait): Catch DLL load errors.
1445 (create_child_inferior): Translated between paths correctly.
1447 Wed Jan 3 23:13:53 1996 Fred Fish <fnf@cygnus.com>
1449 * i386v4-nat.c (supply_gregset, fill_gregset): Subtract NUM_FREGS
1450 from NUM_REGS to get number of general registers that we care about.
1451 * config/i386/tm-i386.h (REGISTER_BYTES): Define in terms
1452 of number of general regs and number of floating point regs.
1454 Wed Jan 3 19:49:54 1996 steve chamberlain <sac@slash.cygnus.com>
1456 * config/i386/tm-win32.h (IN_SOLIB_CALL_TRAMPOLINE): New.
1457 (SKIP_TRAMPOLINE_CODE): New.
1458 * config/i386/xm-win32.h (CANT_FORK): Deleted.
1459 (SLASH*) Changed to use unix style slash.
1460 * symtab.h (namespace enum): becomes typedef to avoid namespace
1462 * infcmd.c (path_command): Use empty string if PATH name not set.
1463 * i386-tdep.c (skip_trampoline_code): New function.
1464 * srec.c: Renamed dsrec.c to avoid filename collision.
1465 * Makefile.in: Cope with renaming.
1467 Wed Jan 3 13:09:04 1996 Fred Fish <fnf@cygnus.com>
1469 * symmisc.c (print_objfile_statistics): Print memory use statistics
1470 for objfile psymbol, symbol, and type obstacks.
1472 Tue Jan 2 13:41:14 1996 Stan Shebs <shebs@andros.cygnus.com>
1474 * config/mips/nm-irix5.h: Restore.
1475 (TARGET_HAS_HARDWARE_WATCHPOINTS, etc): Define as for Irix 4;
1476 from Lee Iverson <leei@ai.sri.com>.
1477 * config/mips/irix5.mh (NAT_FILE): Use nm-irix5.h.
1478 * config/mips/irix[345].mh (MUNCH_DEFINE): Remove.
1480 For older changes see ChangeLog-95
1486 version-control: never