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