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