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