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