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