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