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