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