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