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