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