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