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