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