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