* stabsread.c (read_enum_type): Use TARGET_INT_BIT not sizeof (int).
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
b35885f2
JK
1Mon Jan 3 11:57:29 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2
eaba7fae
JK
3 * stabsread.c (read_enum_type): Use TARGET_INT_BIT not sizeof (int).
4
b35885f2
JK
5 * breakpoint.c (frame_in_dummy): Check PC as well as frame.
6
ae5c71d6
PS
7Mon Jan 3 02:47:03 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
8
9 * mdebugread.c (psymtab_to_symtab_1): Only pass N_STAB symbols
10 to process_one_symbol.
11 * symtab.c (find_pc_psymbol): Search global_psymbols as well to
12 avoid caching a bad endaddr in find_pc_partial_function.
13
d568b76a
JK
14Sun Jan 2 21:41:17 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
15
16 * config/m68k/tm-sun3.h: Don't define BELIEVE_PCC_PROMOTION.
17
9ddb33a8
PS
18Sat Jan 1 04:35:23 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
19
20 * infrun.c (wait_for_inferior): Do not step or step resume past
21 the end of a one-line function we just stepped into.
22
89a104c0
JK
23Fri Dec 31 14:33:49 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
24
25 * nindy-share/nindy.c: Fix order of arguments to store_unsigned_integer
26 (second and third arguments were reversed).
27 (say): Use varargs.
28
4c6071f7
JK
29Fri Dec 31 12:13:47 1993 Jim Kingdon (kingdon@deneb.cygnus.com)
30
31 * remote-mips.c: Add timeout parameter to mips_request and
32 mips_receive_packet.
33 (callers): pass in mips_receive_wait except mips_initialize (where
34 we use it to clean up the kludge where we had been changing
35 mips_receive_wait temporarily) and mips_wait (where we pass in
36 -1 for no timeout).
37
fa255c07
JK
38Fri Dec 31 14:33:49 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
39
40 * stack.c (print_block_frame_locals): Also print LOC_BASEREG variables.
41
d0cde99c
PS
42Fri Dec 31 06:55:38 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
43
44 * symtab.c (find_methods): Call fprintf_symbol_filtered with DMGL_ANSI.
45
05052b63
JK
46Thu Dec 30 10:16:54 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
47
ca0865db
JK
48 * values.c (unpack_long): Fix garbled error message.
49
4fb192be
JK
50 * remote-mips.c (mips_error): New function.
51 * remote-mips.c: Use it instead of error() most places.
96e5f161
JK
52 * remote-mips.c (mips_receive_packet): New arg throw_error.
53 (mips_initialize): Use it not catch_errors.
54 * defs.h: Declare error_pre_print and warning_pre_print here...
55 * main.c: ...not here.
4fb192be 56
05052b63
JK
57 * breakpoint.c (breakpoint_chain): Make static.
58 * breakpoint.c, breakpoint.h (frame_in_dummy): New function.
59 * stack.c (print_frame_info): Use it.
60
2d3ae7bf
PS
61Thu Dec 30 07:41:36 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
62
63 * exec.c (add_to_section_table): Check for SEC_ALLOC instead of
64 SEC_LOAD to handle .bss segments properly.
65
f1619234
JK
66Thu Dec 30 10:16:54 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
67
68 * infrun.c (wait_for_inferior): Enable code which assumes that if
69 we jump into the prologue from another function, then it was a
70 subroutine call. #if 0 AT_FUNCTION_START; the above code should
71 take care of this case.
72
4bfe9e81
JK
73Wed Dec 29 12:32:08 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
74
6f4baef6
JK
75 * valprint.c (val_print_string): Change chunksize from 200
76 to 8.
77
7ec52804
JK
78 * symfile.c (generic_load): If no arguments, get file name
79 from get_exec_file.
80
393e55ba
JK
81 * c-exp.y: Revert Kung's change. "..." is not a type, and the
82 change caused "p (...)0" to dump core.
83 * gdbtypes.c (check_stub_method): Don't pass "..." to
84 parse_and_eval_type. This should fix the bug which Kung was
85 trying to fix.
86
4bfe9e81
JK
87 * stabsread.c (define_symbol): If we choose not to combine
88 two symbols, don't just ignore the second (LOC_REGISTER) one.
89 * printcmd.c (print_frame_args): If we have a LOC_ARG and a
90 LOC_REGISTER, use the LOC_ARG not the LOC_REGISTER.
91
96e5cb21
FF
92Tue Dec 28 15:08:00 1993 Fred Fish (fnf@deneb.cygnus.com)
93
94 * solib.c (DEBUG_BASE): Remove macro and all references.
95 * solib.c (debug_base_symbols): Add array of symbols to lookup.
96 * solib.c (IGNORE_FIRST_LINK_MAP_ENTRY): Add macro.
97 * solib.c (look_for_base, locate_base): Use debug_base_symbols.
98 * solib.c (find_solib): Use IGNORE_FIRST_LINK_MAP_ENTRY.
99
bbc2cef2
KH
100Tue Dec 28 12:06:57 1993 Kung Hsu (kung@cirdan.cygnus.com)
101
102 * c-exp.y : fix grammar to parse ellipsis (...)
103
279a3cfd
KH
104Mon Dec 27 18:42:14 1993 Kung Hsu (kung@cirdan.cygnus.com)
105
106 * stabsread.c (read_type): fix problem when reading static member
107 of a class. caused by change to allow :: inside template
108 instantiated name.
109
404f69a8
JK
110Mon Dec 27 11:07:05 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
111
666e7e41
JK
112 * gdbtypes.h: Expand on comments for TYPE_CODE_BITSTRING and
113 TYPE_CODE_STRING a bit.
114
30ae2c91
JK
115 * m68k-tdep.c (m68k_skip_prologue, m68k_find_saved_regs):
116 Allow pea %fp; move.l %sp, %fp instead of link instruction to
117 set up the new frame.
118
d6bbac39
JK
119 * main.c (init_main): Change "set remotedebug" back to var_zinteger
120 from var_boolean.
121
dfb4a508
JK
122 * c-exp.y (yylex): Don't try to deal with nested types.
123
2d2fc7e4
JK
124 * cp-valprint.c (cplus_print_value): Call check_stub_type on
125 TYPE_BASECLASS (type, i) before we look at its name.
126
404f69a8
JK
127 * dbxread.c: Move default definition of GCC_COMPILED_FLAG_SYMBOL
128 from here . . .
129 * symtab.h: . . . to here.
130 * dbxread.c (record_minimal_symbol): Move check for gcc{,2}_compiled.
131 and __gnu_compiled* from here . . .
132 * minsyms.c (prim_record_minimal_symbol_and_info): . . . to here.
133 * minsyms.c (prim_record_minimal_symbol): Call
134 prim_record_minimal_symbol_and_info rather than duplicating code.
8d60affd
JK
135 * minsyms.c, symtab.h (prim_record_minimal_symbol{,_and_info}),
136 coffread.c (record_minimal_symbol),
137 xcoffread.c (RECORD_MINIMAL_SYMBOL), callers: Add objfile parameter.
404f69a8 138
2f8c3639
JL
139Sun Dec 26 20:44:02 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
140
141 * dbxread.c (process_one_symbol): Handle stabs-in-som just like
142 stabs-in-elf.
143 (pastab_build_psymtabs): Likewise.
144
145 * hppa-tdep.c: Change all comments to reference %r3 or frame
146 pointer rather than %r4.
147 (frame_chain, skip_prologue, dig_rp_from_stack): Handle %r3 as the
148 frame pointer.
149
150 * config/pa/tm-hppa.h (FP_REGNUM): Define as %r3.
151 (FIND_FRAME_SAVED_REGS): Handle %r3 as frame pointer.
152 (CALL_DUMMY): Likewise.
153
b2f03c30
JK
154Sun Dec 26 16:59:39 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
155
b02fd8ca
JK
156 * exec.c (exec_file_command): If error occurs after we have opened
157 exec_bfd but before we call push_target, make sure to close exec_bfd.
158
b2f03c30
JK
159 * infrun.c (wait_for_inferior): Remove confusing and inaccurate
160 stuff about subroutine calls, return, etc., from comment which
161 says "We've wandered out of the step range.".
162
163Sun Dec 26 09:18:10 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
164
165 * infrun.c (wait_for_inferior): When checking whether the line has
166 changed, check the symtab as well.
167
f4f0d174
JK
168Sun Dec 26 09:18:10 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
169
54613301
JK
170 * gdbtypes.c (force_to_range_type): Use switch statement.
171 complain() not warning() if the TYPE_CODE isn't one we know how to
172 deal with gracefully. Use builtin_type_int not
173 lookup_fundamental_type (the objfile we passed to
174 lookup_fundamental_type was sometimes NULL).
175
f4f0d174
JK
176 * valops.c (call_function_by_hand, push_word), defs.h (push_word),
177 convex-xdep.c, m88k-nat.c, i386m3-nat.c, mips-tdep.c, mipsm3-nat.c,
178 ns32km3-nat.c, remote-bug.c, m88k-tdep.c, remote-hms.c, remote-mips.c,
179 config/gould/tm-np1.h, hppa-tdep.c (hppa_fix_call_dummy), remote-vx.c:
180 Use REGISTER_SIZE, unsigned LONGEST, and
181 {store,extract}_unsigned_integer, instead of sizeof
182 (REGISTER_TYPE) and REGISTER_TYPE.
183 * All tm.h files: Change REGISTER_TYPE to REGISTER_SIZE.
184 * hppa-tdep.c (pa_print_fp_reg): Remove unused variable val.
185
186 * Makefile.in (ALLDEPFILES): Remove i386ly-nat.c and m68kly-nat.c.
187 Add lynx-nat.c.
188
192c3eeb
JL
189Sat Dec 25 20:05:41 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
190
191 * hppa-tdep.c (init_extra_frame_info): Correctly adjust the base
192 of the current frame when "fromleaf" is true. Do not adjust the
193 frame base of the innermost frame if it is a leaf function.
194
28f851f9
JK
195Sat Dec 25 13:39:21 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
196
197 * stabsread.c (define_symbol): Only combine a p/r pair into a
198 LOC_REGPARM if REG_STRUCT_HAS_ADDR.
199
008d4449
JK
200Sat Dec 25 09:50:29 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
201
202 * valops.c (value_struct_elt): Check for (value)-1 return from
203 search_struct_method.
204
ca603cff
JK
205Sat Dec 25 09:50:29 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
206
04f566a3
JK
207 * defs.h: Move definitions of TARGET_*_BIT after include of tm.h.
208 The old way (using #undef in tm.h) was ugly and asking for
209 trouble, because it makes it possible for some file to use the
210 wrong definition. Move definition of HOST_CHAR_BIT after definition
211 of TARGET_CHAR_BIT.
212 * config/alpha/tm-alpha.h, config/h8300/tm-h8300.h,
213 config/h8500/tm-h8500.h, config/z8k/tm-z8k.h: Don't undef TARGET_*_BIT
214 before defining them.
215
504ccfd7
JK
216 * mdebugread.c: Change the builtin_type_* in this file to
217 mdebug_type_* and make them static. Use TYPE_CODE_ERROR for
218 complex and float decimal.
219
ca603cff
JK
220 * printcmd.c (disassemble_command): Call wrap_here between printing
221 address and printing instruction.
222
7677d4fd
JK
223Fri Dec 24 14:23:57 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
224
225 * stabsread.c (read_type): Don't fall through 'S' case (the case it
ca603cff 226 was falling though happened to do the right thing ("break;") but that
7677d4fd
JK
227 is hardly a good thing to assume).
228
cba00921
PB
229Tue Dec 21 13:32:02 1993 Per Bothner (bothner@kalessin.cygnus.com)
230
231 * ch-exp.y (match_dollar_tokens): Fix off-by-one bug.
232 * ch-lang.c (chill_is_varying_struct), ch-lang.h: New function.
233 * ch-lang.c (chill_printstr): Use double quotes, not single quotes.
234 * ch-typeprint.c (chill_type_print_base): Handle TYPE_CODE_BITSTRING.
235 Improve printing of TYPE_CODE_STRING, TYPE_CODE_SET, and
236 TYPE_CODE_STRUCT (including checking chill_is_varying_struct).
237 Print TYPE_DUMMY_RANGE by printing its TYPE_TARGET_TYPE.
238 Handle TYPE_CODE_ENUM.
239 * ch-valprint.c (chill_val_print): Handle TYPE_CODE_BITSTRING.
240 For TYPE_CODE_STRING, never print address. Handle VARYING strings.
241 * gdbtypes.c (force_to_range_type): New.
242 * gdbtypes.c (create_set_type): Make work, following Chill layout.
243 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND, TYPE_DUMMY_RANGE): New.
244 * stabsread.c (read_type): Distinguish string and bitstring from
245 char-array and set.
246 * valarith.c (value_subscript), valops.c (value_coerce_array):
247 Handle STRINGs as well as ARRAYs.
248 * valarith.c (value_bit_index): Fix think. Use new macros.
249
250
251Fri Dec 17 10:45:32 1993 Kung Hsu (kung@cirdan.cygnus.com)
252
253 * symtab (decode_line_1): fix a bug when position char is not
254 set correctly.
255 * c-valprint (c_val_print): handle vtbl printing when vtbl is not
256 set up yet.
257
5ddff134
ILT
258Thu Dec 16 16:46:01 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
259
260 * mips-tdep.c (read_next_frame_reg): If SIGFRAME_REG_SIZE is not
261 defined, define it as 4.
262
27405a28
JL
263Thu Dec 16 13:08:01 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
264
265 * config/m68k/nm-hp300bsd.h: Correctly identify 4.3BSD vs 4.4BSD.
266
267 * config/m68k/tm-hp300bsd.h (REMOTE_BPT_VECTOR): Define.
268
269 * config/m68k/tm-m68k.h (REMOTE_BPT_VECTOR): Allow targets to
270 override.
271 (REMOTE_BREAKPOINT): Likewise.
272
e909f287
PB
273Mon Dec 13 20:17:39 1993 Per Bothner (bothner@kalessin.cygnus.com)
274
275 Implement support for Chill POWERSETs.
276 * ch-exp.y (operand_2): Implement 'Element IN PowerSet'.
277 * ch-typeprint.c (chill_type_print_base): Handle POWERSETs.
278 * ch-valprint.c (chill_val_print): Handle TYPE_CODE_SET.
279 * eval.c (evaluate_subexp): Implement BINOP_IN.
280 * expression.h (enum exp_opcode): Added BINOP_IN.
281 * gdbtypes.c (create_set_type), gdbtypes.h: New function.
282 * stabsread.c (read_type): If 'S', create a set type.
283 * valarith.c (value_bit_index, value_in), value.h: New functions,
284 for indexing in SETs.
285
f3628b39
FF
286Mon Dec 13 06:42:37 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
287
288 * paread.c (pa_symfile_init): Check for the existance of stabs
289 after DBX_TEXT_SECT has been initialized.
290
08c0d7b8
SC
291Tue Nov 23 17:29:28 1993 Steve Chamberlain (sac@jonny.cygnus.com)
292
23a0b2d0
SC
293 * config/h8300/tm-h8300.h (BREAKPOINT): Insn changed to sleep.
294 (DECP_PC_AFTER_BREAK): Now is 0.
295 * config/h8500/tm-h8500.h (REGISTER_BYTES, REGISTER_BYTE,
296 REGISTER_NAMES): update to new view. (INIT_EXTRA_FRAME_INFO): No
297 extra frame info now.
298 * config/sh/sh.h (NOP): Define NOP insn.
299 * config/z8k/tm-z8k.h (BIG): is now sim_z8001_mode.
300 * config/z8k/z8ksim.mt (TDEPFILES): Add remote-sim.o to list.
08c0d7b8
SC
301 * ser-go32.c: Lint. (strncasecmp): Removed, now in libiberty.
302 (go32_readchar): Special handling for faster polling. (async
303 structure): Volatile.
304 * h8300-tdep.c (print_register_hook): Allocate and use the right
305 number bytes for the raw register.
306 * h8500-tdep.c (regoff, frame_find_saved_reg, examine_prologue):
307 deleted. (h8500_register_size, h8500_register_virtual_type, ):
308 Use new way of counting registers.
309 * remote-e7000.c (echo_index): deleted. (expect): Better handling
310 of user interrupts. (expect_prompt): Remove never used log file
311 support. (want, want_nopc): Add support for H8/300H.
312 (fetch_regs_from_dump): Treat \r and \n as whitespace.
313 (e7000_drain): Send an "end" command before waiting for output to
314 stop. (e7000_wait): Cope with H8/300H, better handling of user
315 interrupts. (why_stop, expect_n, sub2_from_pc): New function.
316 * remote-utils.c (gr_load_image): call fflush and QUIT more regularly.
317 * utils.c (notice_quit): New function for polling for user interrupts.
318
11b959da
FF
319Fri Dec 10 15:53:56 1993 Per Bothner (bothner@kalessin.cygnus.com)
320
321 * stabsread.c (read_array_type): Allow negative array bounds,
322 without interpreting that to mean "adjustable."
323 * ch-valprint.c (chill_val_print): Handle RANGE types.
324 * ch-typeprint.c (chill_type_print_base): Handle BOOL.
325 Handle variant records. Handle RANGE types.
326
0c7b877b
ILT
327Tue Dec 7 15:41:32 1993 Ian Lance Taylor (ian@cygnus.com)
328
916b904d
ILT
329 * config/mips/idt.mt: Use tm-idt.h instead of tm-bigmips.h.
330 * config/mips/idtl.mt: Use tm-idtl.h instead of tm-mips.h.
9c5c676b 331 * config/mips/tm-idt.h, config/mips/tm-idtl.h: New files; use
916b904d
ILT
332 different BREAKPOINT value for IDT.
333
0c7b877b
ILT
334 * mipsread.c: Include bfd.h and coff/sym.h.
335
88cc9a42
RP
336Mon Dec 6 16:34:10 1993 K. Richard Pixley (rich@cygnus.com)
337
338 * ser-unix.c (set_tty_state): set the rest of the terminal state
339 pieces.
340
e03c0cc6
ILT
341Mon Dec 6 12:01:37 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
342
b60f6584
ILT
343 * configure.in: Recognize mips* for all mips targets.
344 (mips*el-*-elf*, mips*-*-elf*): New targets; use idt and idtl.
345
e03c0cc6
ILT
346 Added Irix 5 support.
347 * configure.in (mips-sgi-irix5*): New host and target. Use irix5
348 for both.
349 * config/mips/irix5.mh, config/mips/irix5.mt,
350 config/mips/xm-irix5.h, config/mips/nm-irix5.h,
351 config/mips/tm-irix5.h, irix5-nat.c: New files for Irix 5 support.
352 * mdebugread.c: New file, split out of mipsread.c. Added
353 elfmdebug_build_psymtabs routine. Added some checks on external
354 symbols. Changed code to keep ecoff_debug_info and
355 ecoff_debug_swap structs in the psymtab and in global pointers
356 rather than retrieving them from the bfd. Also changed to keep
357 the pending list with the psymtab rather than the objfile (each
358 psymtab for a single objfile points to the same pending list).
359 * mipsread.c: Bulk of file moved into mdebugread.c, leaving just
360 the sym_fns.
361 * Makefile.in (SFILES): Added mdebugread.c.
362 (OBS): Added mdebugread.o.
363 (mdebugread.o): New target.
364 * symfile.h: Declare mdebug_build_psymtabs and
365 elfmdebug_build_psymtabs.
366 * elfread.c (struct elfinfo): Added mdebugsect field.
367 (elf_locate_sections): Remember location of .mdebug section.
368 (elf_symfile_read): Call elfmdebug_build_psymtabs on .mdebug
369 section.
370 * infrun.c (AT_FUNCTION_START): Set to 0 if not already defined.
371 (wait_for_inferior): Use AT_FUNCTION_START if it is defined to see
372 if PC is at the start of a function.
373 * mips-tdep.c (read_next_frame_reg): Use SIGFRAME_REG_SIZE, and
374 give it a default definition.
375 (mips_skip_prologue): Skip instructions which initialize $gp
376 register.
377 (in_sigtramp): New procedure, moved in from mipsread.c.
378 * config/mips/tm-mips.h: Declare in_sigtramp.
379
380 * serial.h (serial_fdopen): Make parameter const to match
381 function definition.
382
383Fri Dec 3 14:20:43 1993 Stu Grossman (grossman at cygnus.com)
384
385 * config/mips/irix4.mh: Enable ser-tcp.o.
386
1f44fb57
ILT
387Tue Nov 30 15:24:24 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
388
389 * Makefile.in (check): Do not use subdir_do, so that
390 TARGET_FLAGS_TO_PASS is used correctly.
391
0bbe764a
SG
392Mon Nov 29 16:10:38 1993 Stu Grossman (grossman at cygnus.com)
393
394 * i386-nlmstub.c: Undo I/O redirection changes by Tom Lord.
395 These definitely won't work under Netware.
396
e9935d43
KH
397Mon Nov 29 15:34:58 1993 Kung Hsu (kung@cirdan.cygnus.com)
398
399 * stabsread.c(read_struct_field): Fix the check when getting to
400 member functions.
401
1d208eb3
ILT
402Mon Nov 29 16:48:16 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
403
404 gcc -Wall -O lint:
405 * mips-tdep.c (heuristic_proc_desc): Initialize reg30 to avoid
406 warning. Unnest comment.
407 (init_extra_frame_info): Remove unused variable mask.
408 (MASK): Fully parenthesize.
409 (mips_push_dummy_frame): Remove unused variable val.
410 (mips_skip_prologue): Remove unused variables f and b.
411
7aa77627
PS
412Mon Nov 29 12:23:25 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
413
008d4449 414 * mipsread.c (parse_symbol, parse_partial_symbols): Do not create
7aa77627
PS
415 (partial) symbols for opaque struct definitions.
416
d9542046
SG
417Mon Nov 29 11:36:57 1993 Stu Grossman (grossman at cygnus.com)
418
419 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Change call_inst
420 to unsigned char to avoid domain warning for some values.
421
422Mon Nov 22 23:42:59 1993 Steve Chamberlain (sac@jonny.cygnus.com)
423
424 * remote-e7000.c (e7000_wait): Cope with H8/300 register dump.
425 * config/h8300/h8300hms.mt: Add remote-e7000.
426
abab73c4
FF
427Mon Nov 22 11:03:45 1993 Fred Fish (fnf@cygnus.com)
428
429 Merged changes from kev@spuds.geg.mot.com (Kevin A. Buettner):
430 * gdb/config/m88k/delta88.mh (NATDEPFILES): Added corelow.o and
431 coredep.o to this list.
432 * gdb/m88k-nat.c (m88k_register_u_addr): Avoid error when passed
433 the number for an M88110 extended register by just returning the
434 address of r0.
435
d8b8343d
FF
436Sat Nov 20 09:20:51 1993 Fred Fish (fnf@rtl.cygnus.com)
437
438 * go32-xdep.c (re_comp, re_exec): Remove stubs now that gdb
439 always uses it's own version of regex.
440
f68fd5c0
KH
441Fri Nov 19 18:23:19 1993 Kung Hsu (kung@cirdan.cygnus.com)
442
443 * valops.c(value_struct_elt_for_reference): enhance search operator in
444 c++.
445 * symtab.c(decode_line_1): same as above.
446
dbdf5a2a
JK
447Fri Nov 19 15:08:47 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
448
449 * symtab.c (decode_line_1): Add comment about use of
450 return_to_top_level directly instead of error. Add comment saying
451 that the '' should not be needed--that the completer should be fixed.
452
7e6deb7a
KH
453Fri Nov 19 11:00:33 1993 Kung Hsu (kung@cirdan.cygnus.com)
454
455 * symtab.c(decode_line_1): fix the inconsistency of setting
456 breakpoint with '' or without them. The '' is needed when you
457 want name completion.
458
78555335
FF
459Thu Nov 18 08:25:50 1993 Fred Fish (fnf@cygnus.com)
460
461 * valprint.c (val_print_string): When looking for a null
462 terminator compare current bufsize to fetchlimit to determine
463 when to stop, instead of computing buffer+fetchlimit which
464 may overflow for very large limits (like "unlimited").
465
4f65eece
KH
466Wed Nov 17 18:23:09 1993 Kung Hsu (kung@cirdan.cygnus.com)
467
468 * eval.c(evaluate_subexp): to use unified search so type conversion
469 operator works in calling method.
470 * valarith.c(value_x_binop, value_x_unop): same as above.
6ebc9cdd 471 * valops.c(search_struct_method): same as above.
4f65eece 472
4f09de58
ILT
473Wed Nov 17 18:47:34 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
474
475 * mipsread.c: Change use of ECOFF information to correspond to
476 changes in bfd/libecoff.h.
477 (mipscoff_symfile_offsets): Made static.
478
40620258
KH
479Wed Nov 17 09:43:31 1993 Kung Hsu (kung@cirdan.cygnus.com)
480
481 * valops.c (typecmp): improve prototype matching when calling
482 a method. Make 'p (*(ostream *) &cout) << "lll" ' to work.
483 * eval.c(evalute_subexp): fix operator search problem when call
484 like p x.'operator+'(i).
485
069e0566
SG
486Tue Nov 16 17:15:03 1993 Stu Grossman (grossman at cygnus.com)
487
488 * i386ly-nat.c, i386lynx-nat.c, m68kly-nat.c: Remove. Move
489 common code into lynx-nat.c.
490 * lynx-nat.c: New module. Contains portable code for Lynx native
491 stuff (mostly ptrace related).
492 * config/i386/i386lynx.mh (NATDEPFILES): i386ly-nat.o -> lynx-nat.o
493 * config/m68k/m68klynx.mh (NATDEPFILES): i386ly-nat.o -> lynx-nat.o
494
495 * config/nm-lynx.h, config/tm-lynx.h: New files to contain
496 non-architecture specific native and target defs.
497 * config/i386/nm-i386lynx.h, config/i386/tm-i386lynx.h,
498 config/m68k/nm-m68klynx.h, config/m68k/tm-m68klynx.h: Move all
499 (arch) portable stuff into ../{tm nm}-lynx.h.
500
f0c84683
JK
501Tue Nov 16 13:33:47 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
502
d47a7f52
JK
503 * symtab.c (gdb_mangle_name): Only assume that the physname is
504 the entire mangled name if it looks like the mangled name of a
505 constructor. Needed for testsuite to work with GCC 2.4.5.
069e0566 506
6e03b2b8
JK
507 * a68v-nat.c: Replace with new version from Troy Rollo. The
508 version I am replacing appears to be an old copy of sun3-nat.c.
509 * dstread.c (dst_symfile_read): Replace sort_all_symtab_syms call
510 with loop.
511
f0c84683
JK
512 * Makefile.in (TAGS): Depend on TAGFILES_{NO,WITH}_SRCDIR.
513
514 * Makefile.in: (HFILES,TAGFILES): Split into _WITH_SRCDIR and
515 _NO_SRCDIR versions.
516 (TAGS): Only add srcdir to TAGFILES_NO_SRCDIR.
517 (This is part of a long saga involving me putting srcdir on
518 everything (perhaps for now-obsolete reasons, I forget), Rich
519 removing the srcdir from everything, Stu putting it back some
520 places for Sun make, and me just now getting around to fixing
521 `make TAGS' again).
522
9ed1a1d9
KH
523Mon Nov 15 12:29:10 1993 Kung Hsu (kung@cirdan.cygnus.com)
524
525 * stack.c(print_frame_info): print demangled function name
526 ansi style.
527
1b68cb4f
SC
528Mon Nov 15 14:32:29 1993 Steve Chamberlain (sac@jonny.cygnus.com)
529
530 * remote-e7000.c: New file to cope with the Hitachi E7000 ICE.
531 * remote-utils.c, remote-utils.h (gr_load_image): New function to
532 download to target.
533 * h8300-tdep.c, h8500-tdep.c, remote-z8k.c, sh-tdep.c z8k-tdep.c
534 (sim_load): delete.
2ede707a 535 * remote-sim.c (gdbsim_load): Use gr_load_image, rather than
1b68cb4f
SC
536 sim_load.
537 * config/sh/sh.mt: Add remote-e7000
538
5a356fb8
JK
539Mon Nov 15 11:38:25 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
540
541 * config/i386/linux.mh: Remove XM_CLIBS, TERMLIB, SYSV_DEFINE, and
542 REGEX.
543 * config/i386/xm-linux.h: Don't include xm-i386v.h. Define
544 HOST_BYTE_ORDER ourselves. Define HAVE_TERMIOS not HAVE_TERMIO.
545 Define NEED_POSIX_SETPGID. Include unistd.h.
546
adbdb527
KH
547Mon Nov 15 12:29:10 1993 Kung Hsu (kung@cirdan.cygnus.com)
548
549 * symtab.c(gdb_mangle_name): fix the problem with constructor
550 name mangling.
551
dda398c3
JK
552Mon Nov 15 11:38:25 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
553
554 * gdbtypes.h: Add TYPE_FLAG_TARGET_STUB.
555 * gdbtypes.c (check_stub_type): On TYPE_FLAG_TARGET_STUB, do
556 what cleanup_undefined_types does for arrays, except we clear
557 TYPE_FLAG_TARGET_STUB if we fix up the type.
558 * stabsread.c (cleanup_undefined_types): Add comments about how
559 doing arrays here is no longer the clean way to do it.
560 (read_array_type): Set TYPE_FLAG_TARGET_STUB as well as calling
561 add_undefined_type.
562 * c-typeprint.c, ch-typeprint.c: Move call to check_stub_type
563 outside switch so it happens for all type codes.
564 * cp-valprint.c (cp_print_value_fields): Recurse to val_print,
565 instead of c_val_print, so that check_stub_type gets called.
566
567 * gdbtypes.h, gdbtypes.c, m2-lang.c, ch-lang.c, c-lang.c: Remove
568 TYPE_FLAG_SIGNED. It was inconsistently set, never checked
569 (except in recursive_dump_type), and is pointless.
570
db98e4d8
JL
571Mon Nov 15 00:40:38 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
572
573 * paread.c (pa_symfile_init): Look for the $TEXT$ section rather
574 than the .text section.
575
79cf7e1f
JK
576Sun Nov 14 00:28:13 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
577
f6d7df56
JK
578 * stabsread.c: Remove #if 0'd dbx_class_complaint. We now handle
579 this (more or less) gracefully, and complain() was never a good
580 way of dealing with this.
581
79cf7e1f
JK
582 * stabsread.c (read_type): Skip the colon when reading a
583 cross-reference. Only complain, not error_type, on unrecognized
584 cross-reference types. error_type, not dump core, if the colon is
585 missing.
586
537eba71
SG
587Fri Nov 12 16:23:08 1993 Stu Grossman (grossman at cygnus.com)
588
589 * config/m68k/tm-sun3.h: Disable use of alternate breakpoint insn
590 when doing remote stuff.
591
9d271503
JK
592Fri Nov 12 16:22:39 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
593
963ee102
JK
594 * c-exp.y (yylex): Call lookup_symtab not lookup_partial_symtab.
595
9d271503
JK
596 * partial-stab.h: Ignore ':' symbol descriptors. Same case as
597 Kung's stabsread.c change.
598
624456be
KH
599Fri Nov 12 11:18:02 1993 Kung Hsu (kung@cirdan.cygnus.com)
600
2fb58b98
KH
601 * stabsread.c (patch_block_stabs, define_symbol, read_type): in
602 g++ template instantiation, nested class can be part of the
603 params, and '::' can gets into symbol or type names. This is
604 to fix the problem.
605
624456be
KH
606 * gdbtypes.c (lookup_struct_elt_type): Handle type ref or pointer
607 to struct/union case.
608
9a13e99e
SG
609Fri Nov 12 10:39:31 1993 Stu Grossman (grossman at cygnus.com)
610
611 * coff-solib.c (coff_solib_add): Cast result of alloca().
612 * m68k-tdep.c (m68k_saved_pc_after_call): Get rid of
613 GDB_TARGET_IS_SUN3. Use more general SYSCALL_TRAP macro.
614 * config/m68k/m68klynx.mh (NATDEPFILES): Remove exec.o (it's
615 already in TDEPFILES).
616 * config/m68k/tm-m68k.h (SAVED_PC_AFTER_CALL): Use
617 m68k_saved_pc_after_call.
618 * Remove all Sun3 specific stuff.
619 * (FIX_CALL_DUMMY): Cast arg to bfd_putb32 to unsigned char *.
620 * config/m68k/tm-m68klynx.h: Define SYSCALL_TRAP as trap #10.
621 Disable REMOTE_BREAKPOINT mechanism.
622 * config/m68k/tm-sun3.h: Get rid of GDB_TARGET_IS_SUN3.
623 * Protect from multiple includion.
624 * Move Sun3 specific stuff from tm-m68k.h to here.
625 * Define SYSCALL_TRAP as trap #0.
626 * Remove def of SAVED_PC_AFTER_CALL (now in tm-m68k.h).
627 * gdbserver/low-lynx.c: Redo all register store/fetch stuff to
628 make it portable for 386 and 68k.
629
002a422b
JK
630Fri Nov 12 09:53:26 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
631
632 * mips-tdep.c (init_extra_frame_info): Check to see whether the
633 registers mentioned in the proc_desc have been saved. This
634 generalizes mips_in_lenient_prologue in the sense that we keep
635 searching until we've found saves for all the registers, not just
636 look for a "lenient prologue" pattern.
637 * mips-tdep.c: #if 0 lenient prologue code.
638
639 * mips-tdep.c (heuristic_proc_desc): Don't assume a host short
640 is 16 bits.
641
4c7db70b
JK
642Thu Nov 11 19:58:05 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
643
6fd1e9ee
JK
644 * config/i386/i386sol2.mh: Comment out corelow.o.
645
4c7db70b
JK
646 * printcmd.c (address_info): Use filtered, not unfiltered functions.
647 We should be able to deal with a QUIT here.
648
91f87016
JL
649Thu Nov 11 15:22:20 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
650
651 * printcmd.c (address_info): Use fprintf_symbol_filtered
652 to print the symbol name.
653
654 * stabsread.c (define_symbol): Handle cfront lossage for
655 struct/union/enums and typedefs.
656
657 * partial-stab.h (case N_BINCL): Update psymtab_language
658 as appropriate when changing subfiles.
659 (case N_SOL): Update psymtab_language as appropriate when
660 changing subfiles. Add typedef for structs, unions, and enums
661 when processing C++ files.
662
66e8e483
JK
663Thu Nov 11 13:18:47 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
664
017dff70
JK
665 * README: Remove information on languages and just cite the (newly
666 updated) information in doc/gdb.texinfo instead.
667
66e8e483
JK
668 * delta68-nat.c: Fix typos (add missing ");" and stuct -> struct).
669
89ce0c8f
JK
670Wed Nov 10 09:31:10 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
671
71256429
JK
672 * dbxread.c (process_one_symbol, N_RBRAC): Don't clear
673 within_function just because local_symbols is NULL. It appears
674 that this bug has existed since the 10 Apr 89 change which started
675 clearing within_function here.
676
56756a5a
JK
677 * config/m68k/tm-m68k.h: Clean up CALL_DUMMY comment.
678 * config/m68k/{tm-hp300bsd.h,tm-hp300hpux.h,tm-m68k-em.h,
679 tm-monitor.h,tm-sun3.h,tm-vx68.h}, config/sparc/tm-sparc.h:
680 Define BELIEVE_PCC_PROMOTION.
4023311b
JK
681 * dbxread.c: Remove BELIEVE_PCC_PROMOTION define. The code which
682 used this was moved to stabsread.c a long time ago.
56756a5a 683
447bc3ed
JK
684 * dstread.c (dst_sym_fns): Update for flavours.
685 * symfile.c (find_sym_fns): Add kludge for apollo like for rs/6000.
686 * dstread.c (dst_symfile_offsets): Set objfile->num_sections.
687
89ce0c8f
JK
688 gcc -Wall lint:
689 * thread.c: Include "gdbcmd.h" and <ctype.h>.
690 * Makefile.in: Update dependency.
691 * thread.c (thread_command): Remove unused variable p.
692 * values.c (unpack_double): Use len instead of TYPE_LENGTH (type).
693 * valprint.c (print_floating): Correctly check sign bit now that
694 we are using unsigned arithmetic.
695 * symtab.c (find_pc_line_range): Remove unused variables exact_match,
696 ind, and l.
697
27ed24c3
KH
698Tue Nov 9 17:42:25 1993 Kung Hsu (kung@cirdan.cygnus.com)
699
700 * valarith.c (value_x_binop): fix search operator in class bug
701 * valarith.c (value_x_unop): fix search operator in class bug
702
7fb95139
JK
703Tue Nov 9 19:20:17 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
704
705 * Makefile.in (init.c): Add udi2go32.o to list of files that we
706 should not try to search for _initialize_* functions.
707
708 * remote-udi.c (udi_wait): Change UDIGdb_StdoutReady back to
709 UDIStdoutReady. It accidentally got changed on 24 Oct 93 when
710 stdout was changed to gdb_stdout. Likewise for UDIGetStdout,
711 UDIStderrReady, and UDIGetStderr.
712
eb279da1
TL
713Tue Nov 9 12:48:06 1993 Tom Lord (lord@cygnus.com)
714
715 * remote-hms.c (hms_wait): fixed too many arguments to putc_unfiltered.
716
36c848db
JK
717Tue Nov 9 12:20:46 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
718
7714a8b5
JK
719 * utils.c (quit): Also call gdb_flush on standard output and error.
720
36c848db
JK
721 * .gdbinit: Remove "source /.gdbinit". It causes a spurious error
722 if /.gdbinit doesn't exist (and I know of no convention of putting
723 something in /.gdbinit).
724
aa074e84
KH
725Mon Nov 8 18:17:11 1993 Kung Hsu (kung@cirdan.cygnus.com)
726
727 * cp-valprint.c (cp_print_value_fields): change output from <no
728 value> to <optimized out or zero length>
729
99c41106
JW
730Mon Nov 08 17:05:30 1993 Jeffrey Wheat (cassidy@cygnus.com)
731
732 * Makefile.in: Change RUNTEST_FLAGS back to RUNTESTFLAGS
733 Change RUNTEST = runtest to test for existance of
734 a runtest in the source tree first.
735
d4e68dec
JK
736Mon Nov 8 10:42:03 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
737
de759c83
JK
738 * Makefile.in: Remove unused variable GCC. Remove "#CC=cc" line
739 which doesn't really relate to anything.
740
058470e1
JK
741 * Makefile.in (CC_FOR_TARGET): Test for existence of gcc/xgcc, not
742 for existence of gcc/Makefile.
743
97f298e8
JK
744 * inflow.c (terminal_init_inferior), infptrace.c (child_resume):
745 Add comments about use of Lynx PIDGET and how we will want to
746 clean it up.
747
d4e68dec
JK
748 * stabsread.c: Remove long_kludge_name code (it was already #if 0).
749 * stabsread.c (read_one_struct_field): Clean up comments to reflect
750 Kung's change of 5 Nov 93.
1dfaef62
JK
751 * stabsread.c (read_one_struct_field): Don't give up on unknown
752 visibility character, just shove it in fip->list->visibility.
753 (read_baseclasses): Don't give up on unknown virtual or visibility
754 characters, just assume a reasonable default, complain, and keep
755 going.
756 (attach_fields_to_type): Complain on unrecognized visibility.
757 One result of all this is that '9' (VISIBILITY_IGNORE) can be used
758 in a stab as well as being something which GDB uses internally.
d4e68dec 759
71896de8
DE
760Mon Nov 8 07:57:30 1993 Doug Evans (dje@canuck.cygnus.com)
761
762 * configure.in: Remove h8300h, we have multilib now.
763
2fa6925b
DHW
764Mon Nov 8 06:11:24 1993 D. V. Henkel-Wallace (gumby@cirdan.cygnus.com)
765
766 * configure.in: Add unixware as a configuration alias for x86
767 sysv4
768
769 * config/i386/i386nw.mt: add i387-tdep.o, exec.o to TDEPFILES
770
2cacd1e3
PS
771Sun Nov 7 23:49:21 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
772
773 * symtab.c (decode_line_1, decode_line_2): Do not adjust pc by
774 FUNCTION_START_OFFSET if funfirstline is not set.
775
024f65b1
KH
776Fri Nov 5 17:19:30 1993 Kung Hsu (kung@cirdan.cygnus.com)
777
778 * gdbtypes.h : add a field 'ignore_field_bits in cplus_specific,
779 and macros to handle the bits.
780 * stabsread.c (read_one_struct_field): add VISIBILITY_IGNORE, and
781 for field of length 0, set this bit on.
782 * cp-valprint.c (cp_print_value_fields): for VISIBILITY_IGNORE
783 field, print <no value>.
784
f7ae8a41
JK
785Fri Nov 5 14:43:46 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
786
787 * Version 4.11.2.
788
5090e82c
SG
789Fri Nov 5 09:49:22 1993 Stu Grossman (grossman at cygnus.com)
790
791 * inflow.c (terminal_init_inferior): Temporarily use Lynx PIDGET
792 macro to set process groups.
793 * infptrace.c (child_resume): Temporarily use Lynx PIDGET to
794 specify resumption of all threads.
795 * infrun.c (wait_for_inferior): Fix handling of thread-specific
796 breakpoints for systems where DECR_PC_AFTER_BREAK > 0 (ie: backup
797 PC by the right amount when continuing the thread).
798 * thread.c (thread_apply_command): Add the `thread apply'
799 command to apply a given GDB command to a list of threads.
800
e2507f81
JK
801Fri Nov 5 05:58:03 1993 Jim Kingdon (kingdon@cygnus.com)
802
803 * Makefile.in (init.c): Don't call sed if filename is empty.
804
7079e766
JK
805Thu Nov 4 08:27:24 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
806
b30c81b6
JK
807 * dbxread.c (unknown_symchar_complaint): Make message refer to
808 "symbol descriptor" not "symbol type character" for consistency
809 with stabs.texinfo terminology.
810
f73fb0ce
JK
811 * stabsread.c (read_struct_fields): Accept either '$' or '.' as
812 the character which introduces a cpp_abbrev or anonymous type.
813
55768580
JK
814 * c-lang.c (c_printstr): Print "" to stream (like all the other
815 output from this function), not gdb_stdout.
816
c7d4c4c8
JK
817 * dbxread.c (process_one_symbol): Do relocate 'S' symbols by
818 the text offset (revert 12 Oct 93 change).
819
7079e766
JK
820 * configure.in: Make hppa*-*-hiux* use hppahpux,
821 not non-existent hppahiux.
822
f1c6dbf6
KH
823Wed Nov 3 16:24:09 1993 Kung Hsu (kung@cirdan.cygnus.com)
824
825 * values.c (value_fn_field): when physical name not found, do not
826 error, but return null.
827 * valops.c (value_struct_elt): when name and args match does not
828 mean it is the one, some times a typedef class can have the same
7079e766 829 member method and args. This probably will not happen with new
f1c6dbf6
KH
830 version of g++, but it does happen in old g++ and cause gdb error.
831
021a5c6b
JK
832Wed Nov 3 09:20:18 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
833
834 Merge changes for dos x udi:
835 * Makefile.in (udi2go32.o): add rule to build this file
836 * 29k-share/udi/udi2go32.c: new file
837 * config/a29k/a29k-udi.mt: add udi2go32.o
838 * 29k-share/udi/{udr.c, udip2soc.c}: #ifdef out the entire file
839 if __GO32__ is defined. What a hack.
840
87cd094b
JK
841Wed Nov 3 09:20:18 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
842
cba39837
JK
843 * remote.c (putpkt, getpkt): Don't call interrupt_query.
844
0ed85708
JK
845 * findvar.c (value_of_register): Rename val to reg_val to avoid
846 name conflict with some (e.g. tm-m68k.h) REGISTER_CONVERT_TO_VIRTUAL.
847
87cd094b
JK
848 * main.c: Add variables source_line_number, source_file_name,
849 source_error, source_error_allocated, and source_pre_error.
850 (command_line_input): If source_file_name set, increment
851 source_line_number and set error_pre_print with them.
852 (source_command): Set source_* and make a cleanup so they get
853 set back.
854
4142aab8
JK
855Tue Nov 2 16:28:34 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
856
4f983400
JK
857 * stack.c (down_silently_command): Add comment about PR 1913.
858
4142aab8
JK
859 * breakpoint.c (insert_breakpoints, delete_breakpoint): Call
860 target_terminal_ours_for_output before attempting output.
861
862 * fork-child.c (fork_inferior): Fix comment so that it suggests
863 "set shell" rather than having "set env SHELL" affect GDB's
864 operation.
865
eb279da1
TL
866Tue Nov 2 15:03:08 1993 Tom Lord (lord@rtl.cygnus.com)
867
868 * utils.c (vfprintf_unfiltered): don't use maybe_filtered
869 since it involves a fixed size buffer.
870
ad09cb2b
PS
871Tue Nov 2 13:42:30 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
872
873 * findvar.c (value_of_register, value_from_register),
874 hppa-tdep.c (pa_print_fp_reg), infcmd.c (do_registers_info),
875 valops.c (value_assign): Use REGISTER_CONVERT_TO_* only if
876 REGISTER_CONVERTIBLE is defined, otherwise just copy the content.
877 Pass desired type to REGISTER_CONVERT_TO_*.
878
879 * config/m68k/tm-m68k.h, config/i960/tm-i960.h (REGISTER_CONVERT_*):
880 Pass length of desired type to store/extract_floating.
881 * config/i386/tm-arm.h, config/i386/tm-i386aix.h,
882 config/i386/tm-sun386.h, config/i386/tm-symmetry.h,
883 config/m88k/tm-m88k.h config/rs6000/tm-rs6000.h (REGISTER_CONVERT_*):
884 Use extract_floating and store_floating with length of desired type.
885 * config/m68k/tm-news.h (STORE,EXTRACT_RETURN_VALUE): Add type
886 parameter to REGISTER_CONVERT_*.
887
888 * config/a29k/tm-a29k.h, config/convex/tm-convex.h,
889 config/gould/tm-np1.h, config/gould/tm-pn.h, config/h8300/tm-h8300.h,
890 config/h8500/tm-h8500.h, config/i386/tm-i386v.h,
891 config/mips/tm-mips.h, config/ns32k/tm-merlin.h,
892 config/ns32k/tm-umax.h, config/pa/tm-hppa.h, config/pyr/tm-pyr.h,
893 config/sh/tm-sh.h, config/sparc/tm-sparc.h, config/tahoe/tm-tahoe.h,
894 config/vax/tm-vax.h, config/z8k/tm-z8k.h (REGISTER_CONVERTIBLE,
895 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERT_TO_VIRTUAL): Remove
896 versions for which REGISTER_CONVERTIBLE is always false.
897 * z8k-tdep.c (register_convert_to_virtual, register_convert_to_raw):
898 Remove, no longer used.
899
900 * alpha-tdep.c (alpha_register_convert_to_raw,
901 alpha_register_convert_to_virtual): New routines to handle
902 the different raw formats in alpha floating point registers.
903 * config/alpha/tm-alpha.h (REGISTER_CONVERTIBLE,
904 REGISTER_CONVERT_TO_VIRTUAL, REGISTER_CONVERT_TO_RAW): Use them.
905
912be114
SS
906Tue Nov 2 12:45:23 1993 Stan Shebs (shebs@rtl.cygnus.com)
907
908 * gdbserver/configure.in: Recognize *-*-lynxos* instead of
909 *-*-lynx*, recognize sparc-*-lynxos*.
910 * gdbserver/Makefile.in (install, install_only): Add.
911 * gdbserver/gdbserver.1: New file, man page for gdbserver.
912
3fd4045f
JK
913Mon Nov 1 09:40:21 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
914
b86a1b3b
JK
915 * symtab.c, symtab.h, source.c: Change find_line_pc_range to take
916 a struct symtab_and_line argument, rather than a symtab and a line.
917 Re-write it to be based on the address rather than bogusly adding
918 one to the line number and hoping that has something to do with the
919 end of the line.
920
d566fd91
JK
921 * config/m88k/m88k.mh (NATDEPFILES): Remove exec.o.
922
3fd4045f
JK
923 * paread.c (pa_symtab_read): Change comments to say ignoring
924 labels really should be handled by the assembler/compiler.
925
926 * Makefile.in: Add -O to CXXFLAGS.
927
928 * TODO: Expand comments on fast watchpoints.
929
5c08b47f
JL
930Sun Oct 31 19:45:06 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
931
932 * paread.c (pa_symtab_read): Also filter out local symbols
933 starting with "L$".
934
f6c4bf1a
JK
935Sun Oct 31 09:28:46 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
936
0eed42de
JK
937 * symfile.h (sym_fns), symfile.c (find_sym_fns), xcoffread.c,
938 coffread.c, dbxread.c, elfread.c, mipsread.c, nlmread.c, paread.c:
939 Change from using bfd target name to using the flavour.
940
f6c4bf1a
JK
941 * objfiles.h, infcmd.c, symfile.c: Add comments about how various
942 objfiles get created and when we should blow them away.
943
4d57c599
JK
944Sat Oct 30 08:32:53 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
945
946 * symfile.c (reread_symbols): When re-reading symbols, do all the
947 right operations ourself, rather than calling symbol_file_command.
948 If we re-read something, call clear_symtab_users not just
949 breakpoint_re_set.
950 * objfiles.h, objfiles.c (build_objfile_section_table): No longer
951 static.
952 * symfile.c (clear_symtab_users): Call clear_pc_function_cache.
953 * coffread.c, dbxread.c, elfread.c, mipsread.c, nlmread.c, paread.c
954 (*_symfile_offsets): Set objfile->num_sections.
955 * remote.c (remote_wait), symfile.c (syms_from_objfile):
956 Don't muck with objfile->num_sections now that all the symbol
957 readers set it.
958 * elfread.c: Clean up obsolete comment about handling only DWARF.
959 * paread.c: Remove comment about how we should use an "ordinary"
960 file format with an hppa suffix. There is nothing ordinary about SOM.
961
962 * config/i386/{i386m3.mh,i386mk.mh}, config/mips/mipsm3.mh,
963 config/ns32k/ns32km3.mh: Change MMALLOC_LIB to MMALLOC.
964 * TODO: Update Mach stuff.
965
9bebe500
SS
966Fri Oct 29 16:30:36 1993 Stan Shebs (shebs@rtl.cygnus.com)
967
968 LynxOS support:
969 * configure.in: Change *-*-lynx* to *-*-lynxos*, add
970 sparc-*-lynxos*.
971 * Makefile.in (ALLDEPFILES): Add m68kly-nat.c, sparcly-nat.c.
972 Rename i386lynx-nat.[co] to i386ly-nat.[co].
973 (ALLCONFIG): Add config/{m68k,sparc}/{m68k,sparc}lynx.m[ht].
974 (m68kly-nat.o, sparcly-nat.o): Add rules.
975 * i386ly-tdep.c: Cosmetics.
976 * i386lynx-nat.c: Removed.
977 * i386ly-nat.c: New file, was i386lynx-nat.c.
978 * m68kly-nat.c: New file.
979 * sparcly-nat.c: New file.
980 * config/xm-lynx.h: New file, cpu-independent host info.
981 * config/i386/i386lynx.mh: Changes for consistency.
982 * config/i386/i386lynx.mt: Ditto.
983 * config/i386/tm-i386lynx.h: Ditto.
984 * config/i386/nm-i386lynx.h: Ditto.
985 * config/i386/xm-i386lynx.h: Include config/xm-lynx.h.
986 * config/m68k/m68klynx.mh, config/m68k/m68klynx.mt,
987 config/m68k/tm-m68klynx.h, config/m68k/nm-m68klynx.h,
988 config/m68k/xm-m68klynx.h: New files, M68K LynxOS support.
989 * config/sparc/sparclynx.mh, config/sparc/sparclynx.mt,
990 config/sparc/tm-sparclynx.h, config/sparc/nm-sparclynx.h,
991 config/sparc/xm-sparclynx.h: New files, Sparc LynxOS support.
992
bf5c0d64
JK
993Fri Oct 29 08:11:29 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
994
995 * defs.h, findvar.c (extract_floating, store_floating): New functions.
996 * Move SWAP_TARGET_AND_HOST from defs.h to findvar.c because it is
997 now used only by extract_floating and store_floating.
998 * valprint.c (print_floating): Use unsigned arithmetic. Use
999 extract_unsigned_integer instead of SWAP_TARGET_AND_HOST.
1000 Change sizeof (float) to 4 and sizeof (double) to 8 (those are always
1001 the relevant sizes for this code, which is in #ifdef IEEE_FLOAT).
1002 * values.c (unpack_long, unpack_double, value_from_double),
1003 valarith.c (value_binop), stabsread.c (define_symbol):
1004 Use extract_floating and store_floating instead of
1005 SWAP_TARGET_AND_HOST.
1006 * config/m68k/tm-m68k.h, config/i960/tm-i960.h (REGISTER_CONVERT_*):
1007 Use extract_floating and store_floating.
1008 * config/m88k/tm-m88k.h: Add comments (it should be doing the same).
1009 * i386-tdep.c (i386_extract_return_value),
1010 * remote-nindy.c (nindy_store_registers): Use store_floating.
1011
3beff94e
SC
1012Fri Oct 29 09:31:38 1993 Steve Chamberlain (sac@rtl.cygnus.com)
1013
1014 * remote-sim.c (gdbsim_store_register): Change var name so
1015 it compiles with non-ANSI compilers.
1016
ce31a796
JK
1017Fri Oct 29 08:11:29 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1018
1019 * TODO: Add idea for "disassemble" with source.
1020
34ec93be
FF
1021Fri Oct 29 00:41:01 1993 Fred Fish (fnf@cygnus.com)
1022
1023 * Makefile.in (VERSION): Bump to 4.11.1 after release and cvs
1024 tagging.
1025
4a44dc1a
JK
1026Thu Oct 28 09:14:42 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1027
1028 * TODO: Add section on Mach. Stop calling it a "bug list".
1029 Remove John's name and email address. Remove item on "always"
1030 ("hook-stop" takes care of this). Remove item on executables with
1031 no symbols (this works on some machines, at least). Remove item
1032 about calling error() during symbol reading (I think all the important
1033 ones have been cleaned up). Revise items about signals and remote
1034 systems. Remove section on ^Z requiring several continues to make
1035 it go (this now works. Perhaps the item is based on confusion over
1036 programs (like GDB itself) which catch SIGTSTP and then re-send
1037 themselves the signal. PR 2575 might contain relevant info).
1038
617b4ae8
FF
1039Thu Oct 28 16:55:34 1993 Fred Fish (fnf@cygnus.com)
1040
1041 * NEWS: Note improvements in C++ support, preliminary thread
1042 implementation, and LynxOS native and target support for 386.
1043
49043842
FF
1044Thu Oct 28 16:55:34 1993 Fred Fish (fnf@cygnus.com)
1045
1046 * README: Add note from Peter Schauer about OSF/1 shared
1047 libraries. Add note from Pace Willisson about configuring on BSDI
1048 BSD/386 release 1.0. Update gdb references to gdb 4.11.
1049
4d52ec86
JK
1050Thu Oct 28 09:14:42 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1051
803f7af5
JK
1052 * NEWS: Add notes about Alpha and "set remotedebug" for UDI.
1053
4d52ec86
JK
1054 * valops.c (value_assign): Change bitfield code to use a buffer of
1055 the correct size, rather than an int.
1056
73e7e447
JK
1057Wed Oct 27 13:43:07 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1058
4d52ec86
JK
1059 * config/i386/{i386m3.mt,i386m3.mh},
1060 config/mips/{mipsm3.mt,mipsm3.mh},
1061 config/ns32k/{ns32km3.mt,ns32km3.mh}: Use correct names for TM_FILE
1062 and XM_FILE. Replace host files *mach3-xdep.o with native
1063 files *m3-nat.o. Replace host file os-mach3.o with native
1064 file m3-nat.o.
cfe5ad2d 1065
b10f4dd9
JK
1066 * remote-udi.c: Remove LOG_FILE stuff; superceded by "set remotedebug".
1067 * remote-mon.c: Remove commented out "set remotedebug" command.
1068 * remote-nindy.c: Clean up comment about wanting alternative to
1069 options specified on the GDB command line.
1070
bc28a06c
JK
1071 * fork-child.c (fork_inferior): Set inferior_pid before calling
1072 init_trace_fun. Move the code which gets us through the shell
1073 to new function startup_inferior.
1074 * inferior.h: Declare startup_inferior.
1075 * procfs.c (procfs_init_inferior), inftarg.c (ptrace_him):
1076 Call startup_inferior.
1077 * m3-nat.c (m3_trace_him): Call intercept_exec_calls.
1078 * config/nm-m3.h: Don't define STARTUP_INFERIOR.
1079 * config/i386/tm-i386m3.h, config/ns32k/tm-ns32k.h,
1080 config/mips/tm-mipsm3.h: Don't define START_INFERIOR_TRAPS_EXPECTED.
1081
73e7e447
JK
1082 * m68k-stub.c: Change vector 13 from SIGFPE to SIGBUS.
1083
981ef35e
JK
1084Tue Oct 26 22:05:03 1993 Jim Kingdon (kingdon@deneb.cygnus.com)
1085
1086 * mips-tdep.c (mips_pop_frame): If proc_desc is NULL, don't dump core.
1087
f3d86961
JK
1088Tue Oct 26 15:07:29 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1089
6a6fe3db
JK
1090 gcc -Wall lint:
1091 * nlmread.c: Include stabsread.h.
1092 * Makefile.in: Update dependencies.
1093
f3d86961
JK
1094 * remote.c: Change PBUFSIZ back to 400. John's 28 Feb 1992 change
1095 to increase it broke the ability to write large chunks of memory
1096 with m68k-stub and i386-stub. Now we only use more than 400 on
1097 machines where we need that much to write the registers.
1098 * remote.c (remote_write_bytes): Eliminate possible abort(). The
1099 check for when to abort was off by a few bytes and besides which,
1100 it is handled by MAXBUFBYTES, which the caller uses.
1101 * m68k-stub.c: Add comments about trap #1 and trap #8 instructions.
1102
c7efaa16
DE
1103Tue Oct 26 08:36:07 1993 Doug Evans (dje@canuck.cygnus.com)
1104
1105 * remote-sim.h (SIM_ADDR): New type (same as CORE_ADDR).
1106 (sim_set_pc): Update prototype.
1107 (sim_read, sim_write): Ditto, and use unsigned char *buf.
1108 (sim_fetch_register, sim_store_register): Use unsigned char *buf.
1109 (sim_info): Pass printf function as argument, add verbose argument.
1110 (sim_stop_reason): Renamed from sim_stop_signal, fix prototype.
1111 * remote-sim.c (gdbsim_wait): Update call to sim_stop_reason.
1112 (gdbsim_files_info): Update call to sim_info.
1113
79971d11
JK
1114Tue Oct 26 10:41:29 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1115
1116 * valops.c (value_assign): Call reinit_frame_cache when assigning
1117 to a register.
1118
b58a1973
SG
1119Mon Oct 25 11:08:59 1993 Stu Grossman (grossman at cygnus.com)
1120
2cdce841
SG
1121 * infrun.c (wait_for_inferior): Fix PC out of objfile bounds
1122 check to just use stop_func_name == 0.
b58a1973
SG
1123 * remote-udi.c (store_register): Invalidate NPC/PC_REGNUM after
1124 changing PC.
1125
dfbb7762
JK
1126Mon Oct 25 14:57:45 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1127
a6e0dae9
JK
1128 * gdbserver/{low-lynx.c,low-sparc.c,low-sun3.c}, standalone.c,
1129 m3-nat.c, i386m3-nat.c, mipsm3-nat.c, ns32km3-nat.c: bcopy -> memcpy.
1130
dfbb7762
JK
1131 gcc -Wall lint:
1132 * breakpoint.c: Include thread.h.
1133 * coffread.c: Include stabsread.h.
1134 * Makefile.in: Update dependencies.
1135 * breakpoint.c (mention): Add bp_call_dummy to switch.
1136 * symmisc.c (dump_symtab): Use %d not %ld for line number.
1137
199b2450
TL
1138Sun Oct 24 18:29:32 1993 Tom Lord (lord@rtl.cygnus.com)
1139
1140 * every non-obsolete file except utils.c:
1141 Change the stream argument to _filtered to GDB_FILE *.
1142 Change all references to stdout/stderr to gdb_stdout/gdb_stderr.
1143 Replace all calls to stdio output functions with
1144 calls to corresponding _unfiltered functions.
1145 Replaced calls to fopen for output to gdb_fopen.
1146 Added sufficient goo to utils.c and defs.h to make the above
1147 work.
1148
1149 The net effect is that stdio output functions are only directly
1150 used in utils.c. Elsewhere, the _unfiltered and _filtered
1151 functions and GDB_FILE type are used.
1152
1153 In the near future, GDB_FILE will stop being equivalant to
1154 FILE.
1155
1156 The semantics of some commands has changed in a very subtle way:
1157 called in the right context, they may cause new occurences of
1158 prompt_for_continue() behavior.
1159
1160 Please respect this change by not reintroducing stdio output
1161 dependencies in the main body of gdb code. All output from
1162 commands should go to a GDB_FILE.
1163
abe28b92
JK
1164Sun Oct 24 20:16:38 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1165
1166 * parse.c, parser-defs.h (write_exp_msymbol): New function to write
1167 the appropriate expression for a minimal symbol. Taken from c-exp.y
1168 and m2-exp.y but handles mst_file_*.
1169 * c-exp.y, m2-exp.y: Use it.
1170
90141f9c
FF
1171Sun Oct 24 09:31:05 1993 Fred Fish (fnf@lisa.cygnus.com)
1172
1173 * elfread.c (elf_symtab_read): Use bfd convention that both
1174 initialized and uninitialized data sections have the SEC_ALLOC
1175 flag bit set, but only initialized sections have SEC_LOAD set.
1176 SEC_DATA is ignored since it only gets set for initialized
60d7eace 1177 data.
90141f9c 1178
592f517a
DE
1179Sat Oct 23 14:48:18 1993 Doug Evans (dje@canuck.cygnus.com)
1180
1181 * remote-sim.h (sim_stop): New enum.
1182 (sim_stop_signal): Change prototype, result is enum sim_stop.
1183 * remote-sim.c (gdbsim_wait): Update call to sim_stop_signal.
1184
3b891e0b
JK
1185Fri Oct 22 07:49:54 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1186
dcb38973
JK
1187 * stabsread.c (define_symbol): Skip the whole thing about "pcc
1188 promotion" on little-endian machines.
1189
94c74a0c
JK
1190 * remote-vx.c (vx_wait): Rename pid parameter to pid_to_wait_for.
1191 Some compilers (legitimately) don't like variables in the
1192 function's outermost block whose name is the the same as the name of
1193 a parameter.
c3cabecb 1194
835fe6e6
JK
1195 Merge Apollo patches from Troy Rollo (troy@cbme.unsw.edu.au):
1196 * dst.h, dstread.c, config/m68k/{apollo68b.mt,tm-apollo68b.h}:
1197 New files.
1198 * config/m68k/nm-apollo68b.h: Add more defines.
1199 * configure.in: Recognize apollo target, not just host.
1200
3b891e0b
JK
1201 * configure.in: Add * to end of all OS names.
1202
c8bd627f
FF
1203Fri Oct 22 06:14:01 1993 Fred Fish (fnf@cygnus.com)
1204
1205 * Makefile.in (ALLPARAM): Add config/m88k/xm-delta88v4.h
1206
c853c90d
JK
1207Thu Oct 21 12:23:12 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1208
976bb0be
JK
1209 * Makefile.in (init.c): Generate using the source, not munch. This
1210 cleans up all kinds of hassles (which nm to use in munch, etc). The
1211 new formatting conventions (mostly already followed) are that
1212 the name of the _initialize_* routines must start in column zero,
1213 and must not be inside #if.
1214 * munch: Removed.
1215 * Makefile.in: Remove references to munch.
1216 * serial.c, remote.c, infptrace.c, maint.c, convex-tdep.c,
1217 alpha-tdep.c, hp300ux-nat.c, hppab-nat.c, osfsolib.c, remote-es.c,
1218 procfs.c, remote-udi.c, ser-go32.c, ultra3-xdep.c, sh-tdep.c,
1219 i960-tdep.c, hppa-tdep.c, h8500-tdep.c, dpx2-nat.c, delta68-nat.c,
1220 z8k-tdep.c: Make sure the above conventions are followed. Make
1221 sure they are all declared as returning void. Clean up
1222 miscellaneous comments and such.
1223
c853c90d
JK
1224 * sh-tdep.c (sim_load): Add function.
1225
f7fa951f
DZ
1226Thu Oct 21 15:58:48 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
1227
1228 * remote-mips.c (mips_wait): add pid argument.
1229
100f92e2
JK
1230Thu Oct 21 12:23:12 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1231
1232 * Makefile.in (c-exp.tab.o): Remove notice about shift/reduce conflicts
1233 which no longer occur.
1234
1235 gcc -Wall lint:
1236 * findvar.c (symbol_read_needs_frame), corelow.c (ignore),
1237 inflow.c (gdb_has_a_terminal): Make sure to return a value.
1238 * regex.h: Declare re_set_syntax.
1239 * printcmd.c: Include valprint.h.
1240 * infcmd.c, exec.c, maint.c, core.c: Include language.h.
1241 * maint.c: Include expression.h.
1242 * infrun.c, fork-child.c, corelow.c, inflow.c: Include thread.h.
1243 * inftarg.c: Include command.h.
1244 * coredep.c: Include value.h.
1245 * c-exp.y, m2-exp.y, ch-exp.y: Include bfd.h, symfile.h and objfiles.h.
1246 * ch-typeprint.c: Include typeprint.h.
1247 * ch-valprint.c: Include c-lang.h.
1248 * nlmread.c: Include buildsym.h.
1249 * environ.c: Include gdbcore.h. Only include defs.h once.
1250 (set_in_environ): Cast const char * to char * when passing to
1251 set_gnutarget.
c853c90d 1252 * Makefile.in: Update dependencies to reflect all these new includes.
100f92e2
JK
1253 Remove unused variables:
1254 * printcmd.c (printf_command): args_to_vprintf.
1255 * coffread.c (coff_symfile_init): strsection.
1256 Move variables to within the #ifdefs where they are used:
1257 * symtab.c (gdb_mangle_name): opname.
1258 * inftarg.c (child_attach): pid and exec_file.
1259 * inftarg.c (child_detach): siggnal.
1260 * objfiles.c (allocate_objfile): mapto, md, and fd.
1261 * objfiles.c (free_objfile): mmfd.
1262 * infrun.c (wait_for_inferior): Include BPSTAT_WHAT_LAST in switch.
1263 * infrun.c (wait_for_inferior): Remove unused same_pid label.
1264 * inferior.h: Declare set_sigint_trap and clear_sigint_trap.
1265 * parser-defs.h: Declare write_exp_elt_block.
1266 * stabsread.h: Declare elfstab_offset_sections and
1267 coffstab_build_psymtabs.
1268
003ccb90
KR
1269Thu Oct 21 12:05:08 1993 Ken Raeburn (raeburn@cygnus.com)
1270
1271 Patch from Jeff Law:
1272 * paread.c: Fix references to "hppa" that should now be "som".
1273
ad0a2521
JK
1274Thu Oct 21 12:23:12 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1275
1276 * symtab.c (decode_line_1): Don't use SYMBOL_LINE for functions.
1277
cadd2c6f
SG
1278Thu Oct 21 02:59:07 1993 Stu Grossman (grossman at cygnus.com)
1279
1280 * remote-udi.c (udi_store_registers, store_register): Use
1281 UDI29KPC address space when modifying PC. It seems that you can't
1282 modify the PC directly (at least in the isstip simulator).
1283
a087ce71
JK
1284Wed Oct 20 11:35:43 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1285
9c38eb65
JK
1286 * target.h: Put remote_debug declaration back here. Add baud_rate.
1287 * remote.c, remote-udi.c, remote-utils.h: Let target.h take care of
1288 declaring these. Those random externs all over are error prone.
1289 * Move "set remotebaud" from remote-utils.c to main.c to it applies
1290 to remote.c as well.
1291
8f6960c9
JK
1292 * xcoffread.c (xcoff_symfile_read), coffread.c (coff_symfile_read):
1293 Sort symtabs for this objfile only, not for all objfiles.
1294 * symfile.c, symfile.h (sort_all_symtab_syms): Remove; no longer used.
1295
a087ce71
JK
1296 * mipsread.c (parse_symbol): In third-eye, a function has a block
1297 within it which represents the whole function. Create only one
1298 GDB block for both.
1299
d0d8484a
SG
1300Wed Oct 20 17:47:42 1993 Stu Grossman (grossman at cygnus.com)
1301
1302 * main.c: Make baud_rate and remote_debug be global variables,
1303 remove #include "remote-utils.h". This makes it possible to build
1304 GDB without remote-utils.c. Also, move setting of remote_debug
1305 into main, so that all remote*.c files can use it (not just the
1306 serial line ones). And, make baud_rate be an int.
1307 * remote-udi.c: Change kiodebug to remote_debug.
1308 * remote-utils.c: Move setting of baud rate and debug into main.c.
1309 * remote-utils.h: Redefine sr_{get set}_debug and sr_{get set}_baud
1310 to use baud_rate and remote_debug globals for compatibility.
1311 * remote.c: Use remote_debug and baud_rate globals directly,
1312 instead of sr_ functions, so that we don't need to load
1313 remote-utils.c.
5f22e4ed
SG
1314 * config/a29k/a29k-udi.mt: Define REMOTE_O as null so that we don't
1315 get the default remote* modules.
d0d8484a 1316
fc81adb8
JK
1317Wed Oct 20 11:35:43 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1318
1319 * stabsread.c (define_symbol): When combining a LOC_ARG and a
1320 LOC_REGISTER, use the type from the LOC_REGISTER, not from the
1321 LOC_ARG.
1322
921f2b29
RP
1323Wed Oct 20 14:34:38 1993 K. Richard Pixley (rich@sendai.cygnus.com)
1324
1325 * config/i386/xm-go32.h: define some signals if they aren't
1326 already defined.
1327
b8c0ec27
JK
1328Wed Oct 20 11:35:43 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1329
1330 * Makefile.in (INTERNAL_LDFLAGS): New macro. The new part is
1331 that we use CFLAGS and PROFILE_CFLAGS to link.
1332 (gdb, rapp, kdb): Use INTERNAL_LDFLAGS instead of
1333 LDFLAGS and/or GLOBAL_CFLAGS.
1334
36b1d528
SG
1335Wed Oct 20 09:29:55 1993 Stu Grossman (grossman at cygnus.com)
1336
1337 * Makefile.in: Add $(srcdir) to all refs to 29k-share
1338 directories.
1339
ed89c3d9
FF
1340Tue Oct 19 17:23:34 1993 Fred Fish (fnf@deneb.cygnus.com)
1341
1342 * Makefile.in (ALLCONFIG): Add config/i386/{i386m3.mh, i386m3.mt,
1343 i386/i386mk.mh i386/i386mk.mt}, config/mips/{mipsm3.mh,
1344 mipsm3.mt}, config/ns32k/{ns32km3.mh, ns32m3.mt}
1345 * Makefile.in (remote_utils_h): Add remote-sim.h
1346 * Makefile.in (NONSRC): Add i386-nlmstub.c
1347 * Makefile.in (HFILES): Add coff-solib.h
1348
731c7e17
KH
1349Tue Oct 19 14:15:40 1993 Kung Hsu (kung@cirdan.cygnus.com)
1350
1351 * values.c (value_virtual_fn_field): Fix the offset calculation
1352 when calling virtual functions. (gdb.t22/virtfunc.exp).
1353 * eval.c (evaluate_subexp): same as above.
1354
615289ec
JK
1355Tue Oct 19 10:43:16 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1356
1357 * config/rs6000/rs6000.mh (TERMCAP): Define to -lcurses.
1358
1359 * Makefile.in: Define CXXFLAGS.
1360
b4aa170e
SG
1361Tue Oct 19 09:28:52 1993 Stu Grossman (grossman@cygnus.com)
1362
1363 * sparclite/Makefile.in: Fixup so that this works with Sun make
1364 and VPATH.
1365
915e6cd9
JK
1366Tue Oct 19 10:43:16 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1367
2e142fde
JK
1368 * breakpoint.h (struct bpstat_what): Don't use bitfields.
1369
915e6cd9
JK
1370 * typeprint.c: Add "class CLASS-NAME" to docstring for ptype.
1371
2be58d45
FF
1372Tue Oct 19 06:17:10 1993 Fred Fish (fnf@cirdan.cygnus.com)
1373
0ac1a039
FF
1374 * Makefile.in (ALLPARAM): Add config/m88k/{nm-delta88v4.h,
1375 tm-delta88v4.h, xm-dgux.h}.
1376 * Makefile.in (ALLCONFIG): Add config/m88k/{delta88v4.mh,
1377 delta88v4.mt}.
1378
2be58d45
FF
1379 * README: Remove comment about SunOS 5.x programs leaving
1380 coredumps. Info from Sun is that this was not in customer
1381 releases.
1382
f91b837d
JK
1383Mon Oct 18 10:28:08 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1384
8c5e0021
JK
1385 * hppa-tdep.c (restore_pc_queue): Call target_terminal_ours after
1386 done stepping the inferior.
1387
adee89e8
JK
1388 * c-exp.y: Remove never-used (because of shift/reduce conflicts)
1389 rules for pointers to members.
1390 * Makefile.in: Remove notice about expected shift/reduce conflicts.
1391
f91b837d
JK
1392 * buildsym.c (finish_block): If we pop the context stack and it is
1393 not empty, complain () instead of abort ().
1394
1395Sun Oct 17 19:42:31 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1396
1397 * parse.c, parser-defs.h (follow_types): New function.
1398 * c-exp.y (ptype : typebase abs_decl): Use it.
1399 * c-exp.y (ptype): Add support for type qualifiers after the
1400 typebase. The typebase rule already has support for them before
1401 the typebase.
1402 * Makefile.in: Change the expected number of shift/reduce
1403 conflicts to 6. This is OK--the 2 new conflicts are basically the
1404 same as one of the old ones.
1405
cf4d8631
FF
1406Sun Oct 17 13:04:49 1993 Fred Fish (fnf@cygnus.com)
1407
1408 * Makefile.in (VERSION): Bump to 4.10.3.
1409
1410Sun Oct 17 09:18:57 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1411
1412 * infrun.c (wait_for_inferior): Clean up comments which were at
1413 the top of the file, making them more concise and moving them with
1414 the code (Sorry, Randy, but these stream-of-consciousness comments
1415 really have to go). Switch the order of the "&&", which makes
1416 things clearer and turns out to be an improvement with respect to
1417 side effects and speed.
1418
fb63d460
SG
1419Sun Oct 17 02:06:01 1993 Stu Grossman (grossman at cygnus.com)
1420
1421 * procfs.c: Handle process exits more elegantly by trapping on
36b1d528 1422 entry to _exit. Also, cleanup procinfo list when process dies of
fb63d460
SG
1423 it's own accord (as opposed to being killed).
1424
749e538b
JK
1425Sat Oct 16 20:47:30 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1426
df0d53e3
JK
1427 * config/m88k/xm-dgux.h: Define NO_PTRACE_H.
1428
4cc5b060
JK
1429 * corelow.c (add_to_thread_list): Need a cast to go from PTR to
1430 asection *.
1431
749e538b
JK
1432 * infrun.c: Add comment about signals.
1433
1434 * fork-child.c (fork_inferior): Remove CREATE_INFERIOR_HOOK again.
1435 Stu reinstated it (accidently I assume).
1436
0aede963
SG
1437Sat Oct 16 15:27:10 1993 Stu Grossman (grossman at cygnus.com)
1438
7c5d526e
SG
1439 * procfs.c (procfs_wait): Losing Unixware can't do poll on /proc
1440 files. Use PIOCWSTOP instead.
1441 * corelow.c (add_to_thread_list): Fix arg to match prototype.
1442
0aede963
SG
1443 * procfs.c (procfs_set_sproc_trap): Don't use this if sproc
1444 isn't available.
1445 * (procfs_notice_signals): Fix prototype.
1446
de43d7d0
SG
1447Fri Oct 15 22:46:07 1993 Stu Grossman (grossman at cygnus.com)
1448
1449 * breakpoint.c (breakpoint_thread_match break_command_1):
1450 Thread-specific breakpoint support.
1451 * breakpoint.h (struct breakpoint): Add thread id field.
1452 * fork-child.c (fork_inferior): Move call to init_thread_list()
1453 back a bit so that init_trace_fun can do thread functions.
1454 * hppa-tdep.c (restore_pc_queue): Add pid to call to target_wait.
1455 * hppab-nat.c (child_resume): Handle default pid.
1456 * hppah-nat.c (child_resume): Handle default pid.
1457 * i386lynx-nat.c (child_wait): New arg pid.
1458 * inflow.c (kill_command): Reset thread list.
1459 * infptrace.c (child_resume): Handle default pid.
1460 * infrun.c: Thread-specific breakpoint support.
1461 * inftarg.c (child_wait): Add pid arg.
1462 * osfsolib.c (solib_create_inferior_hook): Add pid to call to
1463 target_resume.
1464 * procfs.c: Multi-thread support.
1465 * remote-bug.c (bug_wait): Add pid arg.
1466 * remote-hms.c (hms_wait): Add pid arg.
1467 * remote-mips.c (mips_wait): Add pid arg.
1468 * remote-mon.c (monitor_wait): Add pid arg.
1469 * remote-nindy.c (nindy_wait): Add pid arg.
1470 * remote-sim.c (gdbsim_wait): Add pid arg.
1471 * remote-udi.c (udi_wait): Add pid arg.
1472 * remote-vx.c (vx_wait): Add pid arg.
1473 * remote-z8k.c (sim_wait): Add pid arg.
1474 * remote.c (remote_wait): Add pid arg.
1475 * solib.c (solib_create_inferior_hook): Add pid to call to
1476 target_resume.
1477 * target.h (struct target_ops): Add pid arg to to_wait and
1478 to_notice_signals.
1479 * thread.c (valid_thread_id): New func to validate thread #s.
1480 * (pid_to_thread_id): New func to do the obvious.
1481 * thread.h: Prototypes for above.
1482
1483 * coff-solib.c (coff_solib_add): Use nameoffset field to locate
1484 filename.
1485
88938c54
JK
1486Fri Oct 15 21:29:40 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1487
9bc3153e
JK
1488 * h8300-tdep.c, h8500-tdep.c: Define sim_load only, but not
1489 sim_kill, sim_open, or sim_set_args.
1490
921b588b
JK
1491 * stack.c (print_stack_frame): Put catch_errors around
1492 print_frame_info so (for example) error printing source doesn't
1493 cause auto-displays to get skipped in normal_stop.
12e0f766 1494
88938c54
JK
1495 * findvar.c (value_from_register): When preparing to cast a value
1496 from REGISTER_VIRTUAL_TYPE to type, copy the REGISTER_VIRTUAL_SIZE;
1497 the old code didn't copy the whole thing.
1498 * valops.c (value_assign): Add comment.
1499
c0e1076d
PS
1500Fri Oct 15 12:57:30 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1501
1502 * mipsread.c (upgrade_type): Replace bitsize sanity checks and
1503 complaint by a comment explaining why they were useless.
1504
78cab901
JK
1505Fri Oct 15 14:30:30 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1506
1507 * Move comments on bypassing call dummy breakpoint from stack.c
1508 to breakpoint.h.
1509
c540818b
JK
1510Fri Oct 15 11:52:56 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1511
1512 * symtab.c (lookup_partial_symtab): If filename is not found and
1513 contains no slashes, try again and compare without leading path
1514 components.
1515 * symtab.c (lookup_symtab_1): Replace open coded version of
1516 lookup_partial_symtab with a function call.
1517
5d76c8e6
JK
1518Thu Oct 14 20:34:15 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1519
1520 * fork-child.c (fork_inferior), remote-eb.c (eb_create_inferior),
1521 remote-mon.c (monitor_create_inferior), remote-nindy.c
1522 (nindy_create_inferior), remote-st.c (st2000_create_inferior),
1523 remote-vx.c (vx_create_inferior): Remove CREATE_INFERIOR_HOOK; it
1524 is replaced by init_trace_fun.
1525 * config/convex/xm-convex.h, convex-xdep.c: Add comments explaining
1526 how to do without CREATE_INFERIOR_HOOK for whoever fixes the Convex
1527 port.
1528
1529 * Makefile.in: Add Mach files to ALLDEPFILES, etc.
1530 * m3-nat.c: Clean up more hair--message(), cprocs.
1531 * configure.in: Recognize Mach targets and hosts.
1532 * config/ns32k/tm-umax.h: Add some #ifndef's so tm-ns32km3.h can
1533 include this file.
1534 * Mach headers in config/*/tm-*.h: Fix includes to match correct
1535 locations of files.
1536
8c4731b5
RS
1537Thu Oct 14 21:35:55 1993 Rob Savoye (rob@darkstar.cygnus.com)
1538
1539 * remote-mon.c (general_open): Set dev_name. Minor tweaking to get
1540 it working again.
1541 * config/m68k/tm-monitor.h: Remove floating point register names
1542 as there aren't any on any of the monitors that use this code.
1543
9309b4d9
JK
1544Wed Oct 13 11:47:23 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1545
179cd923
JK
1546 * inflow.c: Pass pointer to process group, not process group itself,
1547 to TIOCSPGRP ioctl.
1548
76e473bb
JK
1549 * inflow.c (terminal_ours_1): Don't print warning on failure to
1550 set process group.
1551
9309b4d9
JK
1552 * printcmd.c (printf_command): Instead of using makeva* and
1553 calling vprintf, just make the appropriate calls to printf.
1554 * printcmd.c, config/pa/xm-pa.h, config/mips/xm-makeva.h,
1555 config/alpha/xm-alpha.h, config/m88k/xm-m88k.h: Remove all
1556 traces of makeva*. My apologies to everyone (including me!)
1557 who spent so much time getting it to work on various machines,
1558 but look at the bright side, at least you won't have to do it
1559 again in the future.
1560
1561 * printcmd.c (printf_command): Make a cleanup for val_args (fixes
1562 a memory leak).
1563
d62e3f37
JK
1564Tue Oct 12 22:54:41 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1565
1566 * config/mips/xm-mips.h: Remove comment about HAVE_SGTTY vs. usleep.
1567
79f68f0f
DZ
1568Tue Oct 12 12:01:29 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
1569
1570 * configure.in: only configure gdbserver for native environments
1571
9438d642
JK
1572Tue Oct 12 08:59:15 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1573
4fc9d7c7
JK
1574 * stabsread.c (read_type): Treat a negative type number at the start
1575 of a type as a type reference, not as a definition of a type with
1576 "50=" omitted. This makes things work on the RS/6000 again (the
1577 14 Sep 1993 change broke it).
1578
d76eb5f4
JK
1579 * inflow.c: Use 0 (standard input) not scb->fd.
1580 (terminal_ours_1): If printing warning, don't claim it happened in
1581 terminal_inferior.
1582
4161c620
JK
1583 * blockframe.c (get_prev_frame_info): Don't error() if there are no
1584 frames; just return NULL.
1585
95171817
JK
1586 * xcoffsolib.h, xcoffexec.c: Undo the part of Fred's bfd->abfd
1587 change which involved structure elements. It was unnecessary and
1588 was not consistently done.
1589
9438d642
JK
1590 * stabsread.h, stabsread.c, dbxread.c (common_block*, copy_pending):
1591 Move common block handling from dbxread.c to stabsread.c.
1592 Use the name from the BCOMM instead of the ECOMM.
1593 Allocate things on the symbol_obstack.
1594 * xcoffread.c (process_xcoff_symbol): Process C_BCOMM, C_ECOMM,
1595 and C_ECOML. On unrecognized storage classes, go ahead and call
1596 define_symbol (after the complaint).
1597
1598 * dbxread.c (process_one_symbol): Don't relocate 'S' symbols by
1599 the text offset.
1600
49d607d2
PS
1601Tue Oct 12 12:33:09 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1602
1603 * osfsolib.c (solib_create_inferior_hook): Reset stop_soon_quietly
1604 after shared library symbol reading to get rid of warning from
1605 heuristic_proc_start.
1606
59c2be48
DZ
1607Tue Oct 12 12:01:29 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
1608
1609 * remote-sim.c: fix unterminated character string
1610
78934ba8
JK
1611Tue Oct 12 08:59:15 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1612
1613 * stabsread.c: Fix comment about gcc 2.3.3 stab for long long int.
1614
7da354f4
JK
1615Mon Oct 11 14:27:25 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1616
843cea0d
JK
1617 * m3-nat.c, config/nm-m3.h: Add a target_ops struct and other
1618 various things to try to get this to work.
1619
7da354f4
JK
1620 * symtab.h: Fix comments re headers, sharing blockvectors, etc.
1621
cabb6f59
DZ
1622Mon Oct 11 11:46:06 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
1623
1624 * config/i960/vxworks960.mt (REMOTE_O): add dcache.o and remote-utils.o
1625
3e6b0674
PS
1626Mon Oct 11 02:48:57 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1627
99a15c64
PS
1628 * mipsread.c (parse_partial_symbols): Do not add undefined
1629 symbols to the partial symbol table.
3e6b0674
PS
1630 * alpha-tdep.c (init_extra_frame_info): Remove kludge for gcc,
1631 gcc has to be compatible with the native tools.
1632 * alpha-tdep.c (alpha_push_arguments): Rename NUM_ARG_REGS to
1633 ALPHA_NUM_ARG_REGS and move its definition to tm-alpha.h.
1634 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Change it to the
1635 way the native tools define it, update comment.
1636
a71c0593
FF
1637Fri Oct 8 15:54:06 1993 Fred Fish (fnf@deneb.cygnus.com)
1638
1639 * osfsolib.c, remote-sim.c, remote.c, solib.c, xcoffexec.c,
1640 xcoffsolib.h: Use 'abfd' for bfd variables instead of 'bfd'.
1641 Sun cc doesn't like variable names that match their typedef'd type.
1642
443abae1
JK
1643Fri Oct 8 14:56:21 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1644
c18b613a 1645 * inflow.c: Remove unused includes of sys/param.h and sys/types.h.
a14a8fad
JK
1646
1647 * inflow.c, ser-unix.c, ser-go32.c, ser-tcp.c, serial.h,
c18b613a
JK
1648 terminal.h, fork-child.c, main.c, utils.c: Move all the process
1649 group stuff back to inflow.c and terminal.h; that's a better place
1650 for it and fixes problems with trying to get/set the process group
1651 of a tty we're doing remote debugging on.
1652 * terminal.h: Skip the redefines and includes if HAVE_TERMIOS.
a14a8fad 1653
443abae1
JK
1654 * findvar.c, value.h (symbol_read_needs_frame): New function.
1655 * c-exp.y, m2-exp.y: Call it instead of having our own switch on
1656 the symbol's class.
1657 * valops.c (value_of_variable): Use symbol_read_needs_frame to
1658 decide whether we care about finding a frame.
1659
747a6329
PS
1660Fri Oct 8 02:34:21 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1661
1662 * blockframe.c (get_frame_block): Do not adjust pc if the frame
1663 function was interrupted by a signal.
1664
f1e7bafc
JK
1665Thu Oct 7 19:20:11 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1666
1667 * config/h8300/tm-h8300.h: Don't define sr_get_debug.
1668 * remote-sim.c: Include remote-utils.h.
1669 * target.h: Add comment about target_has_execution.
1670
3f0184ac
SC
1671Thu Oct 7 16:14:19 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
1672
1673 * h8300-tdep.c (sim_load, sim_kill, sim_open, sim_set_args):
1674 New functions.
1675 * infrun.c (normal_stop): Don't try and set the pc in the current
1676 frame coredump if there isn't one.
1677 * remote-sim.c (gdbsim_store_register): Don't
1678 SWAP_TARGET_AND_HOST, sim_store_register takes bytes in raw order.
1679 (gdbsim_wait): Set status with WSETSTOP.
1680 * config/h8300/tm-h8300.h (sr_get_debug): Define
1681
2f1c7c3f
JK
1682Thu Oct 7 12:56:57 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1683
c2d751d5
JK
1684 New Mach stuff:
1685 * config/i386/i386mach.c: Explain this is for the old (probably
1686 non-functional and/or obsolete) Mach stuff.
1687 * m3-nat.c, config/nm-m3.h,
1688 i386m3-nat.c, mipsm3-nat.c, ns32km3-nat.c,
1689 config/i386/{i386m3.mh,i386m3.mt,tm-i386m3.h,xm-i386m3.h},
1690 config/i386/{i386mk.mh,i386mk.mt,tm-i386mk.h,xm-i386mk.h},
1691 config/mips/{mipsm3.mh,mipsm3.mt,tm-mipsm3.h,xm-mipsm3.h},
1692 config/ns32k/{ns32km3.mh,ns32km3.mt,tm-ns32km3.h,xm-ns32km3.h}:
1693 New files.
1694
2f1c7c3f
JK
1695 * blockframe.c (find_pc_partial_function): If we call
1696 PSYMTAB_TO_SYMTAB, call target_terminal_ours_for_output first.
1697 This is needed now that wait_for_inferior passes in endaddr.
1698 * infrun.c: Move call to target_terminal_inferior from proceed
1699 to resume.
1700
981a3309
SG
1701Thu Oct 7 09:22:04 1993 Stu Grossman (grossman at cygnus.com)
1702
1703 * blockframe.c (find_pc_partial_function): Fix handling for PCs
1704 beyond the end of the last function in an objfile.
1705 * coff-solib.c (coff_solib_add): Use BFD to get fields from .lib
1706 section.
1707 * infrun.c (wait_for_inferior): Modify test for subroutine entry
1708 to include pc out of bounds of the previous function.
1709 * remote.c (remote_wait): Use strtoul for parsing 'N' message.
1710 Add code to relocate symfile_objfile->sections.
1711
50a54039
JK
1712Thu Oct 7 06:22:43 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1713
1714 * config/sparc/sun4os4.mh: Add comment saying why we don't use
1715 -lresolv.
1716
747a6329 1717Thu Oct 7 09:29:11 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
cf3e377e
JK
1718
1719 * breakpoint.c, breakpoint.h (breakpoint_init_inferior): New function
1720 that clears the `inserted' flag for all breakpoints and deletes
1721 any breakpoints which should go away between runs of programs.
1722 * inflow.c (generic_mourn_inferior), infrun.c (init_wait_for_inferior),
1723 remote-es.c (es1800_load), comments in exec.c and corelow.c:
1724 Use it instead of mark_breakpoints_out.
1725 * breakpoint.c (mark_breakpoints_out): Update comment, tm-rs6000.h
1726 uses it in a completely different context.
1727 * breakpoint.c (breakpoint_re_set_one): Add bp_call_dummy case.
1728
747a6329 1729Thu Oct 7 09:29:11 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
f5ebb9ea
JK
1730
1731 * Makefile.in (REGEX, REGEX1): Always use our own version of
1732 regex.c to be consistent across hosts.
1733 * source.c (_initialize_source): Initialize regex to use grep
1734 style syntax as an approximation to POSIX basic regex syntax.
1735
8966221d
JK
1736Wed Oct 6 12:43:47 1993 Jeffrey A Law (law@snake.cs.utah.edu)
1737 Jim Kingdon (kingdon@lioth.cygnus.com)
1738
1739 * hppa-tdep.c (frame_chain): Rework so that it correctly
1740 handles boundaries where code with a frame pointer calls code
1741 without a frame pointer.
1742 (dig_fp_from_stack): New function.
1743
b4fd641f
JK
1744Wed Oct 6 12:43:47 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1745
ebad9e90
JK
1746 * breakpoint.c (delete_breakpoint): Don't insert a disabled breakpoint.
1747
b4fd641f
JK
1748 * README: Add Alpha notes from Schauer.
1749
ebccb10b
JK
1750Tue Oct 5 15:26:04 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1751
cfeed64e
JK
1752 * Makefile.in (install, uninstall): Remove $$n.1 stuff; I don't
1753 understand what it is trying to do, but I suspect it's not doing
1754 it.
1755
1756 * config/ns32k/merlin.mh: Add comment about M_INSTALL.
1757 * config/m88k/{delta88.mh,delta88v4.mh}: Remove M_INSTALL and
1758 M_UNINSTALL; it tries to install a non-existent file gdb.z.
1759 * Makefile.in: Remove M_INSTALL stuff; the above were the only uses.
1760
ebccb10b
JK
1761 * stabsread.c (read_range_type): Remove comment which recommends
1762 distinguishing float from complex by the name.
1763
cef4c2e7
PS
1764Tue Oct 5 12:17:40 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1765 Jim Kingdon (kingdon@cygnus.com)
1766 Stu Grossman (grossman@cygnus.com)
1767
1768 Changes to support alpha OSF/1 in native mode.
1769 * alpha-nat.c, alpha-tdep.c, config/alpha/alpha-osf1.mt,
1770 config/alpha/nm-alpha.h, config/alpha/tm-alpha.h, osfsolib.c:
1771 New files.
1772 * Makefile.in: Add new files and dependencies.
1773 * configure.in: Add alpha target.
1774 * config/alpha/alpha-osf1.mh (NATDEPFILES): Add osfsolib.o
1775 * config/alpha/alpha-osf1.mh (MH_CFLAGS): Remove, we can handle
1776 shared libraries now.
1777 * config/alpha/xm-alpha.h: Cleanup, get MAKEVA_* defines right.
1778
1779 * defs.h (CORE_ADDR): Make its type overridable via CORE_ADDR_TYPE,
1780 provide `unsigned int' default.
1781 * breakpoint.c (breakpoint_auto_delete): Delete only if we really
1782 stopped for the breakpoint.
1783 * stabsread.c, stabsread.h (define_symbol): Change valu parameter
1784 to a CORE_ADDR.
1785 * stabsread.c (read_range_type): Handle the case where the lower
1786 bound overflows and the upper doesn't and the range is legal.
1787 * infrun.c (resume): Do not step a breakpoint instruction if
1788 CANNOT_STEP_BREAKPOINT is defined.
1789
1790 * inferior.h (CALL_DUMMY_LOCATION): New variant AT_ENTRY_POINT.
1791 Now that we have the bp_call_dummy breakpoint the call dummy code
1792 is no longer needed. PUSH_DUMMY_FRAME, PUSH_ARGUMENTS and
1793 FIX_CALL_DUMMY can be used to set up everything for the dummy.
1794 The breakpoint for the dummy is set at the entry point and thats it.
1795 * blockframe.c (inside_entry_file, inside_entry_func): Do not stop
1796 backtraces if pc is in the call dummy at the entry point.
1797 * infcmd.c (run_stack_dummy): Handle AT_ENTRY_POINT case. Use
1798 the expected breakpoint pc when setting up the frame for
1799 set_momentary_breakpoint.
1800 * symfile.c (entry_point_address): New function for AT_ENTRY_POINT
1801 support.
1802 * valops.c (call_function_by_hand): Handle AT_ENTRY_POINT case.
1803
e8e13040
JK
1804Tue Oct 5 11:37:02 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1805
1806 * configure.in: Recognize hppa*-*-hiux* (currently synonym for hpux).
1807 Change other hppa host entries to use -*- not -hp-.
1808
1809Mon Oct 4 19:16:14 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1810
1811 * i386-nlmstub.c: New file; debugging stub for i386 NetWare. Must
1812 be compiled with NetWare header files and turned into an NLM with
1813 nlmconv.
1814
4abc83b9
JK
1815Mon Oct 4 11:02:11 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1816
291b84ff
JK
1817 * minsyms.c (lookup_minimal_symbol_by_pc): Don't use mst_abs symbols.
1818
7db8914c
JK
1819 * dbxread.c (process_one_symbol): Make n_opt_found static.
1820
c458501e
JK
1821 * Rename i386lynx-tdep.c to i386ly-tdep.c for 14 character file names.
1822 * Makefile.in, config/i386/i386lynx.mt: Change accordingly.
1823
4abc83b9
JK
1824 * values.c (record_latest_value): Fetch lazy values and set VALUE_LVAL
1825 to not_lval.
1826
965a5c32
SS
1827Sun Oct 3 15:54:51 1993 Stan Shebs (shebs@rtl.cygnus.com)
1828
4abc83b9 1829 * objfiles.h (objfile): New slot sym_stab_info, use by most
965a5c32
SS
1830 stab-reading formats.
1831 * gdb-stabs.h (DBX_SYMFILE_INFO): Access sym_stab_info instead of
1832 sym_private.
1833 * coffread.c (coff_symfile_init): Alloc struct for sym_stab_info.
1834 * dbxread.c, elfread.c, paread.c: Change sym_private references to
1835 sym_stab_info references.
1836
bde18e3e
JK
1837Sat Oct 2 19:28:35 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1838
77fe3f84
JK
1839 * mipsread.c, objfiles.c, utils.c: Use PTR not void *. RISC/OS
1840 4.02 lacks void *.
1841 * elfread.c: Use void * not PTR inside PARAMS.
1842
bde18e3e
JK
1843 * config/mips/news-mips.mh: Remove coredep.o; mips-nat.o does it.
1844 * config/mips/news-mips.mh: Define NAT_FILE not NM_FILE.
1845 * config/mips/nm-news-mips.h: Include mips/nm-mips.h not nm-mips.h.
1846
ead291d4
SG
1847Sat Oct 2 16:05:22 1993 Stu Grossman (grossman at cygnus.com)
1848
1849 * Makefile.in, coff-solib.c, coff-solib.h, i386lynx.mt,
1850 tm-i386lynx.h: Add support for SVR3 COFF shared libraries.
1851
e05fe481
JK
1852Sat Oct 2 15:50:41 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1853
422a1955
JK
1854 * m88k-nat.c (store_inferior_registers): When writing all registers,
1855 don't try to write EXIP_REGNUM or ENIP_REGNUM (not needed for this
1856 case, and they cause trouble).
1857
e05fe481
JK
1858 * TODO: Don't suggest doing fast watchpoints by stepping a line
1859 at a time. That would be really hairy and still not fast enough.
1860 Do suggest debug registers and page table diddling.
1861
f73b07c9
JK
1862Fri Oct 1 14:54:46 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1863
1864 * printcmd.c (do_examine): Make meaning of 'h', 'w', and 'g' not
1865 depend on builtin_type_*. Instead, it is always 2, 4, and 8 bytes
1866 like the documentation says.
1867 * printcmd.c (decode_format) [CC_HAS_LONG_LONG]: Remove 'l' as
1868 synonym for 'g'. This was never documented, it shouldn't depend on
1869 CC_HAS_LONG_LONG, and I don't see what's wrong with 'g'.
1870
6cb30309
KH
1871Fri Oct 1 10:06:35 1993 Kung Hsu (kung@cirdan.cygnus.com)
1872
1873 * symtab.c: fix a bug in testsuite (virtfunc.exp)
1874
01dfd415
JK
1875Thu Sep 30 11:30:56 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1876
3d8536f3
JK
1877 * m88k-nat.c (fill_gregset): Fix typo (R_SFIP -> R_FIP).
1878
1879 * c-typeprint.c (c_type_print_base, TYPE_FN_FIELD_STUB code):
1880 If demangled name lacks a colon, don't dump core.
1881
dfbf0208
JK
1882 * blockframe.c (find_pc_partial_function): If pst->readin is
1883 set, don't try to get symbols from pst.
1884
2289e1c3
JK
1885 * inflow.c (generic_mourn_inferior): Call reinit_frame_cache
1886 instead of doing it ourself.
1887 * blockframe.c (reinit_frame_cache): Use code which was in
1888 generic_mourn_inferior so we can use this function even when
1889 we have switched targets.
c5198d93
JK
1890 * corelow.c (core_detach): Call reinit_frame_cache.
1891 * target.c (target_detach): Don't call generic_mourn_inferior
1892 (revert yesterday's change, now handled by core_detach).
1893 * objfiles.c (free_objfile): Detach any core file if we call
1894 SOLIB_CLEAR. #include target.h.
1895
01dfd415
JK
1896 * fork-child.c (fork_inferior): Don't call target_terminal_init
1897 and target_terminal_inferior until we are sure that the inferior
1898 has called gdb_setpgid. This fixes PR 2900 (Schauer tracked it
1899 down and was able to reliably reproduce it by putting a sleep()
1900 before the gdb_setpgid()).
1901
8d658c08
PS
1902Thu Sep 30 12:00:49 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1903
1904 * c-exp.y, m2-exp.y: Change type of address for msymbol to
1905 builtin_type_long.
1906 * infptrace.c (fetch_register, store_inferior_register,
1907 child_xfer_memory): Use PTRACE_XFER_TYPE for the type of ptrace
1908 transfers. Provide an `int' default for PTRACE_XFER_TYPE.
1909
8f341c15
JK
1910Thu Sep 30 11:30:56 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1911
185d20fc
JK
1912 * defs.h (TARGET_*_BIT): Don't use host information (sizeof) in
1913 picking defaults.
1914
8f341c15
JK
1915 * cp-valprint.c (cp_is_vtbl_ptr_type): Continue to accept old form.
1916
1917Thu Sep 30 11:25:55 1993 Kung Hsu (kung@cygnus.com)
1918
1919 * cp-valprint.c (cp_is_vtbl_ptr_type):
36b1d528 1920 change vtable field name to __vtbl (pr2695).
8f341c15
JK
1921
1922 * symtab.c (gdb_mangle_name): fix a bug, to get mangled name right.
1923
9040a00b
SG
1924Wed Sep 29 18:34:22 1993 Stu Grossman (grossman at cygnus.com)
1925
1926 * Makefile.in: Add deps for i386lynx-nat.o and i386lynx-tdep.o to
1927 keep non-gnu makes happy.
1928
33f00b44
JK
1929Wed Sep 29 10:52:19 1993 Kung Hsu (kung@cygnus.com)
1930
1931 * c-valprint.c: to fix virtual table print bug (pr2695).
1932
49781499
JK
1933Wed Sep 29 10:52:19 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1934
1935 * target.c (target_detach): Call generic_mourn_inferior.
1936 * inflow.c (generic_mourn_inferior): Call flush_cached_frames.
1937
0ccbaadc
JK
1938Tue Sep 28 23:08:59 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1939
898140fe 1940 * dbxread.c, coffread.c, elfread.c: A few changes to comments.
0ccbaadc 1941
b5b186a2
SS
1942Tue Sep 28 18:39:37 1993 Stan Shebs (shebs@rtl.cygnus.com)
1943
1944 * configure.in: Rename ...-lynx* to ...-lynxos*.
1945 Add m68*-*-lynxos* configuration.
1946 * dbxread.c (coffstab_build_psymtabs): New function,
1947 interfaces coffread.c to dbxread functions.
1948 * coffread.c (coff_symfile_info): Expand to include
1949 dbx_symfile_info slots.
1950 (coff_symfile_init): Init coff_symfile_info struct.
1951 (coff_locate_sections): New functions, finds the stab and stabstr
1952 sections.
1953 (coff_symfile_read): Call coffstab_build_psymtabs if a stab
1954 section is present.
1955 (coff_section_offsets): Replace fake version with real offsets.
1956
f1ca2bdf
JK
1957Tue Sep 28 18:00:50 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1958
1959 * infcmd.c (run_stack_dummy): Set the frame in the bp_call_dummy
1960 breakpoint.
1961
01f5ed6d
ILT
1962Tue Sep 28 17:53:26 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1963
1964 * config/nm-sysv4.h: Include solib.h. Define SVR4_SHARED_LIBS.
1965 * config/tm-sysv4.h: Don't include solib.h.
1966 * config/xm-sysv4.h: Don't define SVR4_SHARED_LIBS.
1967 * config/i386/i386v4.mt (TDEPFILES): Move solib.o from here...
1968 * config/i386/i386v4.mh (NATDEPFILES): ...to here.
1969 * config/i386/nm-i386v4.h: Include nm-sysv4.h.
b5b186a2 1970 * config/m68k/amix.mt (TDEPFILES): Move solib.o from here...
01f5ed6d
ILT
1971 * config/m68k/amix.mh (NATDEPFILES): ...to here.
1972
5573d7d4
JK
1973Tue Sep 28 09:45:38 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1974
1975 * symmisc.c (print_symbol): Use %02x not %2x for LOC_CONST_BYTES.
1976
1977 Clean up problems with targets and hosts that have 64 bit longs
1978 and pointers and 32 bit ints.
1979 * breakpoint.c, buildsym.c, c-lang.c, c-valprint.c, ch-lang.c,
1980 ch-valprint.c, core.c, cp-valprint.c, dbxread.c, exec.c,
1981 expprint.c, gdbtypes.c, infcmd.c, language.c, language.h,
1982 m2-lang.c, maint.c, mips-tdep.c, mipsread.c, partial-stab.h,
1983 printcmd.c, remote-vx.c, solib.c, source.c, stack.c, symfile.c,
1984 symmisc.c, symtab.c, valops.c, valprint.c, xcoffexec.c:
1985 Change all printf formats from %x to %lx if outputting an address.
1986 Change la_*_format to use long format.
1987 local_hex_string, local_hex_string_custom now take an unsigned long
1988 argument, change all callers.
1989 * coffread.c (read_coff_symtab): Remove superfluous cast for
1990 complaint output.
1991 * dbxread.c (end_psymtab): Cast MSYMBOL_INFO to long, not int.
c9e92abd 1992 * findvar.c, value.h (write_register): Change val to LONGEST.
5573d7d4
JK
1993 * gdbtypes.h (struct type): Change `bitsize' to long as
1994 TYPE_FIELD_STATIC_PHYSNAME uses this field as a pointer.
1995 * inferior.h (struct inferior_status): Change type of stop_pc to
1996 CORE_ADDR.
1997 * language.h (local_octal_string, local_octal_string_custom):
1998 Remove prototype, the functions are neither defined nor used.
1999 * mipsread.c (parse_symbol): Use temporary variable for bitsize as
2000 f->bitsize is a long now.
2001 * objfiles.c (add_to_objfile_sections, build_objfile_section_table):
2002 Use unsigned long casts instead of int for abusing sections_end
2003 pointer as integer.
2004 * stack.c (parse_frame_specification): Change type of `args' to
2005 CORE_ADDR for SETUP_ARBITRARY_FRAME.
2006
2007 * printcmd.c (make_vasize): Allow redefinition via MAKEVA_SIZE.
2008 * mipsread.c (parse_type): Alpha cc now supports the t->continued
2009 bit, update algorithm to match the way the compiler uses it.
2010
aca4585c
JK
2011Tue Sep 28 12:05:11 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
2012
2013 * utils.c (fprintfi_filtered): Fix comments.
2014
f0fcf00a
SG
2015Mon Sep 27 18:10:08 1993 Stu Grossman (grossman at cygnus.com)
2016
2017 * coffread.c (read_coff_symtab): Don't call getfilename if there
2018 are no auxents.
2019
7fc6a6b5
JK
2020Mon Sep 27 10:22:37 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
2021
01d3fdba
JK
2022 * symtab.c (find_pc_line): Fix comments.
2023
7fc6a6b5
JK
2024 * remote-udi.c (udi_mourn): Don't pop target.
2025
d113e6b2
SG
2026Fri Sep 24 17:25:41 1993 Stu Grossman (grossman at cygnus.com)
2027
2028 * corelow.c: Add multi thread/process support for core files with
2029 .reg/XXX pseudo-sections.
2030 * i386lynx-nat.c thread.h thread.c: Remove unnecessary core file
2031 support.
2032
114221b5
JK
2033Thu Sep 23 10:49:37 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
2034
d113e6b2
SG
2035 * remote-udi.c (download): Skip zero length sections.
2036
d4778d0f
JK
2037 * valops.c (search_struct_method, value_struct_elt):
2038 Use (value)-1, not -1, for error.
2039
114221b5
JK
2040 * infcmd.c (step_1), infrun.c (wait_for_inferior): Add comments
2041 about SHIFT_INST_REGS.
2042
2043 * exec.c (exec_file_command): Set text_end based on all code readonly
2044 sections, not just ".text".
2045
2046 * defs.h, infcmd.c, config/z8k/tm-z8k.h, config/m88k/tm-m88k.h,
2047 config/sh/tm-sh.h, config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
2048 z8k-tdep.c: Remove all references to ADDR_BITS_SET.
2049 * config/m88k/tm-m88k.h: Define TARGET_WRITE_PC.
2050
abef03ce 2051 * config/m88k/tm-m88k.h, m88k-tdep.c: Add call function stuff.
114221b5 2052
8b52d486
PS
2053Thu Sep 23 00:13:06 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2054
2055 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Define as noop as
2056 the pushing of the struct return address is already handled in
2057 mips_push_arguments.
2058 * mips-tdep.c (reinit_frame_cache_sfunc): Fix typo in prototype
2059 declaration.
2060 * mipsread.c (parse_symbol, parse_type, upgrade_type): Add more
2061 sanity checks for corrupt symbol entries to avoid core dumps
2062 reported by benson@odi.com. Obviously Ultrix 4.3A cc now has
2063 the same problems as the OSF/1 alpha cc.
2064 * mipsread.c (parse_lines): Iterate over the range of the compressed
2065 line number entries, the old iteration sometimes failed to stop
2066 and wrote past the end of the LINETABLE. Add sanity check to avoid
2067 the same problem in case the line number info is corrupt.
2068 * mipsread.c (parse_procedure): Adjust pdr for alpha __sigtramp.
2069 * mipsread.c (parse_external, parse_partial_symbols): Ignore stNil
2070 symbols that are produced for statics in .o files and stLocal symbols
2071 that are produced for every section in OSF/1 dynamically linked
2072 executables.
2073 * mipsread.c (psymtab_to_symtab_1): Put out `undefined symbols'
2074 warning only under `verbose on' as there are many undefined symbols
2075 in a dynamically linked executable.
2076
6deb63ab
JK
2077Wed Sep 22 10:28:06 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
2078
a9b35c67
JK
2079 * config/i960/nindy960.mt: Don't define REMOTE_O; REMOTE_O was
2080 intended only for VxWorks. Remove dcache.o from TDEPFILES now
2081 that we pick it up from the default REMOTE_O.
2082
bdef72d2
JK
2083 * breakpoint.c (bpstat_what): Initialize retval.call_dummy and
2084 retval.step_resume.
2085
e797b4bc 2086 * mips-tdep.c (mips_frame_chain): If frame size zero, return zero.
3f528883 2087 * rs6000-tdep.c: Add comment about framelessness.
bdef72d2 2088
6deb63ab
JK
2089 * remote-nindy.c: Declare ninMemGet and ninMemPut.
2090
b1eaba9a
SG
2091Wed Sep 22 08:02:57 1993 Stu Grossman (grossman at cygnus.com)
2092
2093 * Makefile.in: Add i386lynx-tdep to the right places.
2094 (TARDIRS): Add gdbserver.
2095
2096 * exec.c (print_section_info): Print entry point.
2097 * i386lynx-nat.c (i386lynx_saved_pc_after_call): Move into
2098 i386lynx-tdep.c. Add core file support.
2099 * i386lynx-tdep.c: New module for Lynx/386 target dependant code.
2100 * maint.c: Add `maint info sections' command to print info about all
2101 sections that BFD knows about for exec and core files.
2102 * sparc-tdep.c (sparc_push_dummy_frame): Update stack pointer
2103 before putting frame on the stack. Consolidate writes to reduce
2104 traffic for remote debugging.
2105 * config/i386/i386lynx.mh (NATDEPFILES): Remove exec.o.
2106 * config/i386/i386lynx.mt (TDEPFILES): Add exec.o, i386lynx-tdep.o.
2107 * config/i386/nm-i386lynx.h: Add target_pid_to_str().
2108 * config/i386/tm-i386lynx.h: Remove target_pid_to_str().
2109 * sparclite/Makefile.in: Add deps to keep Sun make happy.
2110
cb6b0202
JK
2111Tue Sep 21 17:48:14 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
2112
2113 * breakpoint.h, breakpoint.c (bpstat_stop_status): Add new argument
2114 not_a_breakpoint.
2115 * infrun.c (wait_for_inferior): Pass it. Also consolidate the
2116 test of whether we are stepping into a CURRENTLY_STEPPING macro.
2117
817ac7f8
RP
2118Tue Sep 21 17:22:34 1993 K. Richard Pixley (rich@sendai.cygnus.com)
2119
2120 * breakpoint.c (bpstat_stop_status),
2121 infcmd.c (step_1),
cb6b0202
JK
2122 infrun.c (wait_for_inferior): collapse SHIFT_INST_REGS ifdef
2123 and insert macro.
817ac7f8
RP
2124
2125 * m88k-tdep.c: include ieee-float.h. new global target_is_m88110.
2126 new const struct ext_format_m88110 for float format.
2127 (pic_prologue_code): add braces.
2128 (next_insn): remove unused variable buf.
2129 (frame_find_saved_regs): remove unused variables next_addr,
2130 saved_regs, regnum.
2131 (frame_locals_address): remove unused variables frame, ap.
2132 (frame_args_address): remove unused variables frame, ap.
2133 (push_parameters): add some breaks and a default case.
2134
2135 * remote-bug.c: remove redundant includes of value.h, target.h,
2136 serial.h.
2137 (bug_open): corrected typo, sr_multi_scan -> gr_multi_scan.
2138 (bug_fetch_register): special case sfip register for m88110.
2139 remove flag bit masking of pc registers. This should be handled
2140 by the ADDR_BITS_* macros.
2141 (bug_store_register): special case sfip register for m88110.
2142 Corrected sprint format for extended registers.
2143
2144 * config/m88k/tm-m88k.h: white space and comment changes. include
2145 ieee-float.h. expanded to cope with m88110 extended registers.
2146 (R0_REGNUM, XFP_REGNUM, X0_REGNUM): new macros.
2147 (SHIFT_INST_REGS): becomes a real macro.
2148
bb7b3800
JK
2149Tue Sep 21 17:48:14 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
2150
2151 * breakpoint.c (breakpoint_1): Support bp_call_dummy.
2152
610a7e74
ILT
2153Tue Sep 21 17:06:19 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2154
2155 * elfread.c (record_minimal_symbol_and_info): Guess the section to
2156 use from the type.
2157 * objfiles.c: Include gdb-stabs.h for SECT_* macros.
2158 (objfile_relocate): Relocate textlow and texthigh in psymtabs.
2159 Relocate partial symbols. Check that minimal SYMBOL_SECTION is
2160 nonnegative before using it.
2161 * symtab.h: Adjust section field comment.
2162
2163 * remote.c (interrupt_query): New function.
2164 (remote_interrupt_twice): Call interrupt_query.
2165 (putpkt, getpkt): If quit_flag is set, call interrupt_query.
2166 (remote_wait): Don't bother with objfile_relocate if the addresses
2167 haven't changed.
2168 (remote_fetch_registers): If we see a packet that doesn't start
2169 with a hex character, fetch a new one.
2170
8b05f64a
JK
2171Tue Sep 21 11:44:00 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
2172
e15f2a54
JK
2173 * remote.c, remote-utils.c: Use SERIAL_FLUSH_INPUT after opening it.
2174
4ef6b451
JK
2175 * printcmd.c (print_scalar_formatted): When truncating value we are
2176 going to print as unsigned, handle it generally for any length
2177 less than sizeof (LONGEST), rather than special-casing sizeof (char),
2178 sizeof (short), and sizeof (long). Clarify comment on what this
2179 is for.
2180
8b05f64a
JK
2181 * symfile.c (deduce_language_from_filename): Accept .cxx for C++.
2182 * buildsym.c (start_subfile): Use deduce_language_from_filename
2183 rather than checking for .C or .cc ourself.
2184
424ab390
JK
2185Mon Sep 20 14:53:11 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
2186
1bef45ea
JK
2187 * defs.h: Declare argument of re_comp as const char *.
2188
66a48870
JK
2189 * remote.c, remote-mips.c: Use sr_get_debug not remote_debug.
2190
424ab390
JK
2191 * README: Say using bfd from another release doesn't generally work.
2192
84d59861
JK
2193Sat Sep 18 10:13:18 1993 Jim Kingdon (kingdon@poseidon.cygnus.com)
2194
1fdbc4d1
JK
2195 * mipsread.c (parse_type): Don't complain() if we guessed struct
2196 and it was a union, or vice versa.
2197
84d59861
JK
2198 * defs.h (make_cleanup): Change PTR to void * when inside PARAMS.
2199
2200 Some of the following is in #ifdef CALL_DUMMY_BREAKPOINT_OFFSET.
2201 * breakpoint.h (enum bptype): Add bp_call_dummy.
2202 (struct bpstat_what): Add call_dummy field.
2203 * infrun.c (wait_for_inferior): Deal with it.
2204 * breakpoint.c (bpstat_what): Deal with call dummy breakpoint.
2205 * infcmd.c (run_stack_dummy): Set the call dummy breakpoint.
2206 * config/sparc/tm-sparc.h: Define CALL_DUMMY_BREAKPOINT_OFFSET.
40b92220
JK
2207
2208 * remote-sim.h: New file.
2209 * remote-sim.c: Add remote debug feature. Rename stuff to distinguish
2210 interface to simulator from gdb-specific stuff. Other changes.
2211start-sanitize-v9
2212 * remote-sp64sim.c: Renamed to remote-sim.c.
2213 Use sr_get_debug instead of our own sim_verbose/simif_snoop.
2214 Use gnutarget in call to bfd_openr.
2215 Rename simif_* to gdbsim_*.
2216 * config/sparc/sp64sim.mt: Change remote-sp64sim.c to remote-sim.c.
2217end-sanitize-v9
2218
30d20d15
PS
2219Fri Sep 17 04:41:17 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2220
2221 * findvar.c (extract_signed_integer): Cast *p to LONGEST before doing
2222 the xor and subtract. Otherwise it will not sign extend if the type
2223 of LONGEST is larger than int.
2224 * cp-valprint.c (cp_print_class_method): Inhibit core dump if
2225 domain is an undefined cross reference.
2226 * valops.c (call_function_by_hand): Set real_pc to correct
2227 value if CALL_DUMMY_LOCATION != ON_STACK.
2228
f8efbf22
JK
2229Thu Sep 16 20:37:06 1993 Jim Kingdon (kingdon@cirdan.cygnus.com)
2230
2231 * config/a29k/tm-a29k.h (FRAME_CHAIN): If rsize is zero, return zero.
2232
c9de302b
SG
2233Thu Sep 16 13:16:22 1993 Stu Grossman (grossman at cygnus.com)
2234
2235 * infrun.c (wait_for_inferior): Allow user to single step within
2236 a stack dummy.
2237
2670a1dd
JK
2238Thu Sep 16 12:34:01 1993 Jim Kingdon (kingdon@cirdan.cygnus.com)
2239
2240 * dbxread.c (copy_pending): Deal with END NULL.
2241 (process_one_symbol): Add comments about what common_block NULL means.
2242
ca0622e7
JK
2243Wed Sep 15 14:50:26 1993 Jim Kingdon (kingdon@cirdan.cygnus.com)
2244
2245 * remote-udi.c, remote-adapt.c, remote-mm.c: Move processor_type
2246 to tm-a29k.h and a29k-tdep.c and make it an enum.
2247 * a29k-tdep.c (a29k_get_processor_type): New function. Fix many
2248 aspects of how we detected the processor type.
2249 * remote-udi.c, remote-adapt.c, remote-mm.c (*_open): Call it
2250 rather than figuring out the type ourselves.
2251
f2e21136
SG
2252Thu Sep 16 12:12:59 1993 Stu Grossman (grossman at cygnus.com)
2253
2254 * sparc-stub.c (_trap_low): Do restore/save sequence after
2255 setting sp to ensure that we load the previous window from the
2256 right place on the stack.
2257
85999c05
PS
2258Thu Sep 16 00:36:32 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2259
2260 * mipsread.c: Many changes for alpha ecoff format:
2261 Correct sizeof(int) == sizeof(long) assumptions.
2262 Replace stParsed hack by putting the parsed types on the pending chain.
2263 Replace mips specific ecoff mapping by ECOFF_REG_TO_REGNUM macro,
2264 provide default for cross debugging.
2265 Swapping the symbol back is no longer needed as the symbol is not
2266 modified anymore.
2267 Add new alpha basic types, handle btTypedef, handle stStaticProc
2268 external symbols .
2269 Update and clean up cross_ref for alpha cc cross ref variations.
2270 Allocate types on the type_obstack to inhibit storage leaks.
2271 * config/mips/tm-mips.h (ECOFF_REG_TO_REGNUM): Define.
2272 * gdbtypes.c (recursive_dump_type): Dump TYPE_TAG_NAME if it is set.
2273
5ed0ccaf
JK
2274Tue Sep 14 09:12:17 1993 Jim Kingdon (kingdon@cirdan.cygnus.com)
2275
2276 * stabsread.c (read_type): Process "s" (size) type attribute.
2277 If type is defined to another type, copy the type.
2278
aa8fe907
ILT
2279Tue Sep 14 18:37:17 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2280
2281 * config/i386/i386v4.mh (NATDEPFILES): Move exec.o from here...
2282 * config/i386/i386v4.mt (TDEPFILES): ...to here.
2283
a94abe5b
RP
2284Tue Sep 14 12:21:49 1993 K. Richard Pixley (rich@sendai.cygnus.com)
2285
b70b042d
RP
2286 * Makefile.in (remote_utils_h): add serial.h and target.h.
2287 (main.o, remote-es.o, remote-nindy.o, remote.o): remove target.h
2288 (already in remote_utils_h).
2289 (remote-utils.o): new rule.
2290
2291 * remote-utils.h: include serial.h.
2292
2293 * serial.h: ifdef protect from multiple inclusion.
2294
a94abe5b
RP
2295 * remote.c, remote-nindy.c, remote-mon.c, remote-es.c: include
2296 remote-utils.h.
2297
2298 * remote.c (remote_open), remote-nindy.c (nindy_open,
2299 nindy_files_info), remote-mon.c (general_open), remote-es.c
2300 (es1800_open): use remote-utils facilities for baud rate.
2301
899931b6
JK
2302Tue Sep 14 09:12:17 1993 Jim Kingdon (kingdon@cirdan.cygnus.com)
2303
5ed0ccaf 2304 * paread.c, coffread.c, elfread.c, dwarfread.c:
ddf5d7e8 2305 Include <time.h> and <sys/types.h> before libbfd.h.
1225fcbd
JK
2306
2307 * paread.c: Define BYTES_IN_WORD before including aout/aout64.h.
2308
899931b6
JK
2309 * Makefile.in (a29k-tdep.o): Depend on $(defs_h).
2310 * config/a29k/tm-a29k.h (SAVED_PC_AFTER_CALL): Use gr122 not lr0
2311 if this is a transparent procedure.
2312
55fea07b
JK
2313Mon Sep 13 16:06:43 1993 Jim Kingdon (kingdon@cirdan.cygnus.com)
2314
2315 * remote.c: Define remote_debug to 0 and #if 0 baud_rate. Temporary
2316 hack so this file compiles again.
2317
2318 * remote-utils.c (gr_multi_scan): Cast return value from alloca.
2319 (gr_multi_scan): #if 0 never-reached return(-1).
2320
2321 * remote-udi.c (udi_wait): Return inferior_pid not 0.
2322
c6f494e8
RP
2323Mon Sep 13 14:14:35 1993 K. Richard Pixley (rich@sendai.cygnus.com)
2324
2325 Collect some remote things into remote-utils.
2326 * remote-utils.[ch]: new files of functions collected from several
2327 different remote targets.
2328 * Makefile.in (REMOTE_O): add remote-utils.o.
2329 (dcache_h, remote_utils_h): new macros.
2330 (HFILES): add $(remote_utils_h).
2331 (ALLDEPFILES): add $(remote_utils_h).
2332 (dcache.o): new rule.
2333 (main.o, remote-bug.o): also depend on $(remote_utils_h).
2334 * target.h (remote_debug): extern moved to remote-utils.h.
2335 * target.c (find_default_run_target, find_core_target): initialize
2336 runable.
2337 (remote_debug): moved to remote-utils.c.
2338 (_initialize_targets): move declaration of user variable
2339 remotedebug to remote-utils.c.
2340 * remote-bug.c: include remote-utils.h rather than dcache.h.
2341 (bug_close, bug_write, bug_write_cr, desc, bug_dcache, timeout,
2342 dev_name, check_open, is_open, readchar, readchar_nofail,
2343 pollchar, expect, expect_prompt, get_hex_digit, get_hex_byte,
2344 get_hex_word, bug_kill, bug_detach, bug_create_inferior,
2345 multi-scan, bug_prepare_to_store, bug_fetch_word,
2346 bug_store_word, bug_files_info, bug_mourn, bug_com, bug_device,
2347 bug_speed): removed and replaced with facilities from
2348 remote-utils.[ch].
2349 (bug_read_inferior_memory): renamed to bug_read_memory.
2350 (bug_write_inferior_memory): renamed to bug_write_memory.
2351 (bug_xfer_inferior_memory): renamed to bug_xfer_memory.
2352 (get_word): comment out this unused function for now.
2353 (bug_settings, cpu_check_strings): new statics.
2354 (bug_open): rewritten to use gr_open.
2355 (_initialize_remote_bug): remove declarations of commands bug,
2356 device, speed.
2357 * main.c: include remote-utils.h.
2358 (baud_rate): removed to remote-utils.c.
2359 (main): handle baud rate settings using new facilities from
2360 remote-utils.
2361 * defs.h (baud_rate): removed extern.
2362
2363 m88110 support via bug-197 monitor.
2364 * remote-bug.c (get_reg_name, bug_fetch_register,
2365 bug_store_register): added m88110 extended register support.
2366 (wait_strings): added bug-197 prompt.
2367 (bug_wait): cope with bug-197 prompt.
2368 (start_load): cope with either bug-197 or bug-187 prompt.
2369
e3c16900
JK
2370Mon Sep 13 12:53:09 1993 Jim Kingdon (kingdon@cirdan.cygnus.com)
2371
37c99ddb
JK
2372 * inferior.h, infrun.c, thread.c, infcmd.c: Remove all uses of
2373 pc_changed. If it was ever set to a non-zero value, it was before
2374 GDB 2.8. It doesn't seem to have any useful function.
2375
e3c16900
JK
2376 * defs.h: Don't define NORETURN (see comment).
2377
2378Sat Sep 11 10:46:09 1993 Jim Kingdon (kingdon@poseidon.cygnus.com)
2379
2380 * m88k-nat.c (fill_gregset): Set r31 and sfip.
2381
f46ffb9e
JK
2382Thu Sep 9 10:18:29 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
2383
2384 * remote-udi.c (udi_wait, case UDIStdinNeeded): Use a loop calling
2385 getchar() (terminated only on '\n') instead of scanf. Send the
2386 '\n' which terminates it to the remote system.
2387
2388 More gcc lint:
2389 * exec.c (ignore): Return 0.
2390 * stack.c (return_command): Fetch lazy value directly, not via
2391 VALUE_CONTENTS, to avoid "value computed is not used".
2392 * inflow.c (new_tty): Move osigttou inside #if.
2393
2394 * remote.c (remote_fetch_registers): If remote reply is short, just
2395 note that fact and keep going (reading extra registers as all bits 0).
2396 (remote_store_registers): Send number of registers that were found
2397 by remote_fetch_registers.
2398 * m68k-tdep.c, config/m68k/tm-m68k.h, config/m68k/tm-*.h: Remove
2399 HAVE_68881. Define CANNOT_STORE_REGISTER if ptrace() can't write
2400 floating registers.
2401 * config/m68k/{tm-m68k-nofp.h,m68k-nofp.mt,tm-m68k-fp.h,m68k-fp.mt}:
2402 Remove, replaced by {tm-m68k-em.h,m68k-em.mt}.
2403 * Makefile.in, configure.in: Change accordingly.
2404
da398610
PS
2405Thu Sep 9 04:59:03 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2406
2407 * mipsread.c (cross_ref): Allow SGI extended symbol types as cross
2408 reference targets.
f46ffb9e 2409 * symmisc.c (print_symbol): Use TYPE_TAG_NAME not TYPE_NAME to avoid
da398610
PS
2410 printing of identities.
2411
93bb0afa
JK
2412Wed Sep 8 19:18:27 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
2413
2414 * breakpoint.c (breakpoint_1): Deal with step resume breakpoint.
2415
46c28185
RP
2416Wed Sep 8 13:01:10 1993 K. Richard Pixley (rich@cygnus.com)
2417
2418 Gcc lint.
89812a0e
RP
2419 * config/m88k/tm-m88k.h (frame_find_saved_regs): prototype.
2420 * config/h8300/tm-h8300.h (NUM_REGS): rewrite to avoid nested comment.
fee933f1
RP
2421 * blockframe.c (get_prev_frame_info): initialize address.
2422 * breakpoint.c (bpstat_copy): initialize retval.
2423 (bpstat_stop_status): initialize value_is_zero.
2424 (bpstat_what): initialize bs_class.
2425 (breakpoint_1, mention): add do-nothing case for bp_step_resume.
2426 (break_command_1): initialize cond_end, addr_end, &
2427 canonical_strings_chain.
2428 (enable_breakpoint): initialize save_selected_frame.
2429 * buildsym.c (end_symtab): initialize symtab & linetablesize.
72cd0384
RP
2430 * c-exp.y (parse_number): initialize i.
2431 * c-typeprint.c (c_type_print_varspec_prefix): include
2432 TYPE_CODE_BITSTRING in switch statements and do nothing.
2433 * c-valprint.c (c_val_print): removed unused variable c.
2434 * ch-valprint.c (chill_val_print): removed unused variable eltlen.
2435 * cp-valprint.c (cp_print_class_method): initialize f & j.
2436 * eval.c (evaluate_subexp): initialize pc2, arg1, arg2.
2437 * expprint.c (print_subexp): initialize myprec, assoc, & tempstr.
6406a867
RP
2438 * findvar.c (value_from_register): initialize first_addr.
2439 * gdbtypes.c (lookup_struct_elt_type): localize use of temporary
2440 variable typename.
2441 * infcmd.c (run_stack_dummy): return zero rather than simple
2442 return.
e7bf1152
RP
2443 * infrun.c (wait_for_inferior): initialize stop_sp, prologue_pc.
2444 remove symtab, appears unused.
2445 (restore_selected_frame): return 1.
2446 * mipsread.c (psymtab_to_symtab_1): initialize first_off.
2447 (fixup_sigtramp): initialize b0.
0ac0a9f6
RP
2448 * printcmd.c (do_examine): initialize val_type.
2449 (print_frame_args): initialize b.
2450 * ser-tcp.c (tcp_restore): comment out declaration. Appears
2451 unused.
2452 * ser-unix.c (hardwire_restore): comment out declaration. Appears
2453 unused.
2454 (hardwire_send_break): moved variable status into ifdef
2455 HAVE_SGTTY.
2456 (wait_for): moved variable numfds into ifdef HAVE_SGTTY.
2457 * serial.h: comment change only.
2458 * stabsread.c (rs6000_builtin_type): initialize rettype.
2459 (read_range_type): initialize nbits.
46c28185
RP
2460 * stack.c (print_frame_info): remove unused variable numargs.
2461 (parse_frame_specification): remove unused variables arg1, arg2,
2462 arg3.
2463 (return_command): initialize return_value.
2464 * symfile.c (cashier_psymtab): initialize pprev.
2465 * symtab.c (find_pc_psymbol): initialize best.
2466 (lookup_symbol): initialize s.
2467 (make_symbol_completion_list): initialize quote_pos.
2468 * thread.c: include command.h.
2469 (thread_info): static declaration removed; unused.
2470 (info_threads_command): fix == vs = typo.
2471 * typeprint.c (whatis_exp): initialize old_chain.
2472 * valprint.c (val_print_string): remove unused variable
2473 first_addr_err. Initialize old_chain.
2474 (_initialize_valprint): white space comment change.
2475 * values.c (show_values): rewrite if statement to avoid empty
2476 body.
2477 (vb_match): remove unused variable fieldtype_target_type.
2478
bf660885
JK
2479Wed Sep 8 10:21:33 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
2480
2481 * Makefile.in (mipsread.o): Depend on $(bfd_h).
2482
ed1a07ad
JK
2483Tue Sep 7 13:06:44 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
2484
8467b446
JK
2485 * gdbserver/Makefile.in (TAGS): config files are in
2486 $(srcdir)/../config, not $(srcdir)/config.
2487
ed1a07ad 2488 * config/pa/tm-hppa.h: Declare target_read_pc and target_write_pc.
bf660885 2489 (STORE_RETURN_VALUE): Pass the correct offset of the return
ed1a07ad
JK
2490 register to write_register_bytes.
2491 * hppa-tdep.c: Use target_write_pc if PCOQ_TAIL_REGNUM was not saved.
2492
4a87a64a
ILT
2493Tue Sep 7 14:30:34 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2494
4f8a48e5
ILT
2495 * remote.c (remote_wait): Don't call error. Instead, call warning
2496 inside a loop. User can ^C to get out.
2497
4a87a64a
ILT
2498 * config/m68k/tm-m68k.h (FIX_CALL_DUMMY): Changed name of swapping
2499 routine to match BFD name change.
2500 * config/z8k/tm-z8k.h (FIX_CALL_DUMMY): Likewise.
2501
538b2068
JW
2502Mon Sep 6 15:01:57 1993 Jeffrey Wheat (cassidy@cygnus.com)
2503
2504 * elfread.c: change elf32_symbol_type to elf_symbol_type
2505
758aeb93
ILT
2506Mon Sep 6 15:43:25 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2507
2508 * remote.c (remote_wait): Added 'W' and 'N' responses.
2509
ac7a377f
JK
2510Fri Sep 3 08:57:10 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
2511
9e19dee1
JK
2512 * main.c, utils.c: Add comments about immediate_quit.
2513
5ec3ba25
JK
2514 * elfread.c (elf_symtab_read): Don't add symbols starting with ".L"
2515 to minimal symbols.
2516
38c5f504
JK
2517 * target.c (pop_target): Don't try to deal with the stack becoming
2518 empty. Shouldn't happen and the code that tried was broken.
2519
ac7a377f
JK
2520 * dcache.c: Cast return value from xmalloc.
2521
2522 * remote.c: Move setting of immediate_quit from remote_open to
2523 remote_start_dummy and set it back to zero when done.
2524
22202966
JK
2525Thu Sep 2 00:07:36 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
2526
eba94f7d
JK
2527 * m88k-tdep.c: Remove a bunch of unused #includes.
2528
a3178c64
JK
2529 * language.h: Add comment about current_language.
2530
fb27a962
JK
2531 * mips-tdep.c (_initialize_mips_tdep): Change heuristic-fence-post
2532 from var_uinteger to var_zinteger.
2533
f9440640
JK
2534 * configure.in: Fix typo (delta88r4 -> delta88v4).
2535
2536 * config/m88k/xm-delta88.h: Don't include sys/siginfo.h. It was
2537 to make this work on SVR4 before SVR4 had its own configuration,
2538 and it breaks SVR3.
2539
2540 * config/m88k/tm-delta88v4.h: Define FRAME_CHAIN_VALID_ALTERNATE.
2541
7f5a51a4
JK
2542 * config/m88k/delta88v4.h (NATDEPFILES): Remove infptrace.o inftarg.o.
2543
22202966 2544 * config/m88k/xm-dgux.h: Renamed from config/m88k/xm-m88k.h.
d9a23ef7 2545 * config/m88k/m88k.mh: Use xm-dgux.h.
22202966
JK
2546 * config/m88k/xm-m88k.h: New file, with HOST_BYTE_ORDER,
2547 MAKEVA_END and MAKEVA_ARG.
2548 * config/m88k/xm-*.h: Include m88k/xm-m88k.h.
2549 * printcmd.c: Remove __INT_VARARGS_H code; now in xm-m88k.h.
2550
996ccb30
JK
2551Wed Sep 1 19:31:28 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
2552
a80193ba
JK
2553 * remote-udi.c (udi_wait): Call `warning' not `error'.
2554
67a64bec
JK
2555 * symtab.c (COMPLETION_LIST_ADD_SYMBOL): If the symbol has a
2556 demangling, don't put the mangled form in the completion list.
2557
996ccb30
JK
2558 * symtab.c, symfile.c, c-exp.y, ch-exp.y, m2-exp.y, buildsym.c,
2559 symfile.h, stabsread.c, minsyms.c, solib.c, nlmread.c, dwarfread.c
2560 partial-stab.h, symmisc.c, gdbtypes.c: Lint. Remove (or put
2561 inside #if) unused variables and labels. Fix unclosed comment.
2562 Deal with enumeration values unhandled in switch statements. Make
2563 sure non-void functions return values. Include appropriate
2564 headers.
2565 * dbxread.c (elfstab_build_psymtabs): Don't check for unsigned
2566 value < 0.
2567
c398de0c
RP
2568Wed Sep 1 14:36:00 1993 K. Richard Pixley (rich@sendai.cygnus.com)
2569
2570 * i960-tdep.c, ns32k-pinsn.c, remote-adapt.c, xcoffread.c:
2571 index -> strchr.
2572
98105ba2
JK
2573Wed Sep 1 11:35:49 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
2574
2575 * remote.c: Add comment explaining why dcache is disabled.
2576 (remote_fetch_word, remote_store_word): Make static and #if 0.
2577 They are not called from anywhere.
2578
2579Wed Sep 1 14:41:28 1993 K. Richard Pixley (rich@sendai.cygnus.com)
4ed97c9a
RP
2580
2581 * arm-tdep.c, convex-tdep.c, convex-xdep.c, dbxread.c,
2582 h8300-tdep.c, h8500-tdep.c, i960-pinsn.c, i960-tdep.c,
2583 infptrace.c, m88k-tdep.c, mips-tdep.c, regex.c, remote-vx.c,
2584 rs6000-tdep.c, xcoffexec.c, xcoffread.c, z8k-tdep.c,
2585 config/arm/tm-arm.h, config/convex/tm-convex.h,
2586 config/gould/tm-np1.h, config/gould/tm-pn.h,
2587 config/m68k/tm-isi.h, config/ns32k/tm-umax.h,
2588 config/pa/tm-hppa.h, config/pyr/tm-pyr.h,
2589 config/rs6000/tm-rs6000.h, config/tahoe/tm-tahoe.h,
2590 config/vax/tm-vax.h: bzero -> memset.
9823e3f4
RP
2591
2592 * regex.c: bcmp -> memcmp.
2593
c438b3af
JK
2594Wed Sep 1 11:35:49 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
2595
98105ba2
JK
2596 * symtab.c (find_pc_line, find_line_common),
2597 symtab.h (struct linetable), xcoffread.c (arrange_linetable):
c438b3af
JK
2598 Revise comments re linetable sorting.
2599 * buildsym.c (compare_line_numbers): Sort by pc, not by line.
2600 * coffread.c: Tell end_symtab to sort the line table.
2601
2602 * coffread.c: Re-work a lot of the coff-specific stuff to use stuff
2603 in buildsym.c. This includes coff_finish_block, coff_context_stack,
2604 coff_local_symbols, coff_file_symbols, coff_global_symbols,
2605 coff_end_symtab and coff_add_symbol_to_list.
2606 (read_enum_type): Deal with it now that we have a "struct pending"
2607 not a "struct coff_pending".
2608
2609 * buildsym.c (end_symtab): Don't realloc subfile->linetable.
2610
ade40d31
RP
2611Wed Sep 1 13:12:43 1993 K. Richard Pixley (rich@sendai.cygnus.com)
2612
2613 * a68v-nat.c, altos-xdep.c, convex-tdep.c, convex-xdep.c,
2614 findvar.c, hppab-nat.c, hppah-nat.c, i386mach-nat.c,
2615 irix4-nat.c, m68k-tdep.c, m88k-tdep.c, mipsread.c, regex.c,
2616 remote-bug.c, remote-hms.c, rs6000-nat.c, rs6000-tdep.c,
2617 sparc-nat.c, stabsread.c, sun3-nat.c, sun386-nat.c, symfile.c,
2618 umax-xdep.c, xcoffread.c, 29k-share/udi/udip2soc.c,
2619 29k-share/udi/udr.c, config/a29k/tm-a29k.h, config/arm/tm-arm.h,
2620 config/convex/tm-convex.h, config/gould/tm-np1.h,
2621 config/gould/tm-pn.h, config/h8300/tm-h8300.h,
2622 config/h8500/tm-h8500.h, config/i386/tm-i386aix.h,
2623 config/i386/tm-sun386.h, config/i386/tm-symmetry.h,
2624 config/i960/tm-i960.h, config/m68k/tm-news.h,
2625 config/m88k/tm-m88k.h, config/mips/tm-mips.h,
2626 config/ns32k/tm-merlin.h, config/ns32k/tm-umax.h,
2627 config/pa/tm-hppa.h, config/pyr/tm-pyr.h,
2628 config/rs6000/tm-rs6000.h, config/sh/tm-sh.h,
2629 config/tahoe/tm-tahoe.h, config/vax/tm-vax.h,
4ed97c9a 2630 config/z8k/tm-z8k.h, nindy-share/nindy.c: bcopy -> memcpy.
ade40d31 2631
e7e02420
PS
2632Wed Sep 1 05:05:53 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2633
2634 * mipsread.c (parse_partial_symbols): Use language from FDR if it
2635 is unambigous. Patch from ptf@delcam.co.uk (Paul Flinders).
2636 * mipsread.c (ecoff_symfile_info): New struct to hold the global
2637 pending_list.
2638 * mipsread.c (mipscoff_symfile_init, parse_partial_symbols):
2639 Allocate the global pending list and link it to the objfile.
2640 * mipsread.c (is_pending_symbol, add_pending): Use global pending
2641 list from objfile. Allocate pending list entries from the
2642 psymbol_obstack.
2643 * mipsread.c (free_pending): Remove. The pending list is now
2644 freed when the psymbol_obstack is freed.
2645 * mipsread.c (psymtab_to_symtab1): Remove pending list allocation,
2646 the global pending list is used now.
2647 * mipsread.c (parse_partial_symbols): Skip only the first
2648 file indirect entry when building the dependency list.
2649
755892d6
RP
2650Tue Aug 31 15:01:27 1993 K. Richard Pixley (rich@sendai.cygnus.com)
2651
d538b510
RP
2652 Break dcache code out of remote.c.
2653 * dcache.h: white space changes only.
2654 * dcache.c: add user settable variable to set whether data caching
2655 is in use.
2656 * remote.c: include dcache.h. removed data caching code which is
2657 now in dcache.c. Compile in data caching again. (data caching
2658 is currently off by default.)
2659 (remote_read_bytes, remote_write_bytes): change second arg to
2660 unsigned char.
2661 (remote_dcache): new static variable.
2662 * Makefile.in (REMOTE_O): add dcache.o.
2663 * config/m88k/m88k.mt (TDEPFILES): removed dcache.o.
2664
5a0a463f
RP
2665 Break dcache code out of remote-nindy.c.
2666 * remote-nindy.c: removed dcache code. Changed callers to use new
2667 conventions. include dcache.h.
2668 (nindy_dcache): new static variable.
2669 * config/i960/nindy960.mt (TDEPFILES): added dcache.o.
2670
755892d6
RP
2671 Break dcache code out of remote-bug.c into dcache.[hc].
2672 * Makefile.in (dcache_h): new macro.
2673 (HFILES): added $(dcache_h).
2674 (ALLDEPFILES): added dcache.c.
2675 (dcache.o): new rule.
2676 (remote-bug.o): now depends on $(dcache_h).
2677 * remote-bug.c: include dcache.h. remove externs for insque and
2678 remque, add extern for bcopy. Prototype bug_close,
2679 bug_clear_breakpoints, bug_write_cr. dcache code moved to
2680 dcache.[hc]. Changed dcache calling convention to include an
2681 initial DCACHE argument.
2682 (bug_dcache): new static variable.
2683 (bug_read_inferior_memory): change second arg to
2684 unsigned char.
2685 * dcache.[ch]: new files.
2686 * config/m88k/m88k.mt (TDEPFILES): add dcache.o.
2687
875fc229
JK
2688Tue Aug 31 10:33:13 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
2689
2690 * c-typeprint.c (c_print_type_base): Treat show = 0 just like
2691 show < 0. The only case where we had been distinguishing is that
2692 show = 0 used to print "struct " or "enum " instead of
2693 "struct {...}" or "enum {...}" which seems clearly wrong.
2694
df429798
RP
2695Mon Aug 30 17:51:32 1993 K. Richard Pixley (rich@sendai.cygnus.com)
2696
2697 * configure.in: recognize m88110 as an m88k.
2698
b556573d
JK
2699Mon Aug 30 16:07:59 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
2700
2701 * valops.c (call_function_by_hand): If we discard cleanups, call
2702 bpstat_clear (&inf_status.stop_bpstat).
2703
cbba020f
PS
2704Mon Aug 30 12:47:46 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2705
2706 * stabsread.h, dbxread.c (end_psymtab): Return NULL if the psymtab
2707 was empty and thrown away.
2708 * mipsread.c (parse_partial_symbols): Do not add empty psymtabs to
2709 dependency list, skip self dependencies.
2710 * mipsread.c (parse_fdr): Removed, obsolete.
2711 * mipsread.c (parse_lines): Check for cbLine being zero, not
2712 cbLineOffset.
2713 * mipsread.c (struct symloc): Add pst_language.
b556573d
JK
2714 * mipsread.c (parse_partial_symbols): Set up proper language for
2715 header files, save it in pst_language for psymtab_to_symtab_1.
cbba020f
PS
2716 * mipsread.c (psymtab_to_symtab_1): Use pst_language.
2717
d86a7c57
JK
2718Mon Aug 30 10:48:06 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
2719
2720 * configure.in: Fix typo m88*-motorola-svr4* -> sysv4*.
2721
61a29659
KR
2722Fri Aug 27 17:09:19 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
2723
2724 * paread.c: Include som.h instead of libhppa.h. (From Utah.)
2725
c033ec17
JK
2726Fri Aug 27 09:30:40 1993 Jim Kingdon (kingdon@deneb.cygnus.com)
2727
13bd9622
JK
2728 * symmisc.c (dump_symtab): Use catch_errors around print_symbol.
2729 Change calling sequence of print_symbol to fit catch_errors.
2730
427fec5d
JK
2731 * mips-tdep.c: Call reinit_frame_cache every time the user does
2732 "set heuristic-fence-post".
2733
20bee06d
JK
2734 * gdbserver/low-sun3.c: New file.
2735 * gdbserver/Makefile.in, config/m68k/sun3.mh: Change accordingly.
2736
c033ec17
JK
2737 * Rename files for 14-character limits:
2738 gdbserver/remote-gutils.c -> gdbserver/utils.c
2739 gdbserver/remote-inflow.c -> gdbserver/low-lynx.c
2740 gdbserver/remote-inflow-sparc.c -> gdbserver/low-sparc.c
2741 gdbserver/remote-server.c -> gdbserver/server.c
2742 remote-monitor.c -> remote-mon.c
f1538274
JK
2743 * Makefile.in, gdbserver/Makefile.in, gdbserver/configure.in,
2744 config/m68k/monitor.mt, config/i386/i386lynx.mh,
2745 config/sparc/sun4os4.mh: Change accordingly.
c033ec17
JK
2746 * gdbserver/Makefile.in: Remove more junk inherited from gdb Makefile.
2747
eb03abe8
JK
2748Thu Aug 26 14:32:51 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
2749
860a1754
JK
2750 * infcmd.c, inferior.h (run_stack_dummy): If we stop somewhere
2751 besides the dummy, return 1 rather than calling error().
2752 Let caller print the error message. Remove name argument.
2753 * valops.c (call_function_by_hand): Deal with changes to calling
2754 sequence of run_stack_dummy. Discard restore_inferior_status cleanup
2755 if run_stack_dummy returns 1.
2756
2757 * Version 4.10.2.
2758
2759 * config/mips/tm-mips.h (EXTRACT_STRUCT_VALUE_ADDRESS):
2760 Get struct return address from v0, not a0.
2761
eb03abe8
JK
2762 * infrun.c (restore_inferior_status): Use catch_errors when
2763 restoring selected frame.
2764
2765Wed Aug 25 21:52:25 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
2766
2767 * infrun.c (save_inferior_status, restore_inferior_status):
2768 Save and restore the registers too.
2769 * inferior.h (struct inferior_status): Add "registers".
2770
41a6194d
JK
2771Tue Aug 24 00:36:17 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
2772
fb2fc3b6
JK
2773 * dbxread.c (end_psymtab): Clean up comment.
2774
2775 * frame.h, symtab.h, findvar.c (read_var_value): Change basereg
2776 support to use LOC_BASEREG rather than SYMBOL_BASEREG_VALID.
a1c8d76e 2777 * dwarfread.c: Use LOC_BASEREG where appropriate.
fb2fc3b6
JK
2778 * Various: Support LOC_BASEREG and LOC_BASEREG_ARG.
2779
9c75ce9f
JK
2780 * coffread.c (init_lineno, init_stringtab): Don't check whether
2781 xmalloc returned NULL.
2782
0e646bd5
JK
2783 * config/vax/xm-vaxult.h: Define NO_PTRACE_H.
2784
41a6194d
JK
2785 * target.c, target.h: Add "set remotedebug" command.
2786 * remote-bug.c, remote.c, remote-mips.c: Remove "set remotedebug" and
2787 "set m88ksnoop" options and use generic "set remotedebug" instead.
2788 * NEWS: Describe this change.
2789
2731625a
JK
2790Mon Aug 23 20:26:22 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
2791
2792 * buildsym.h: Remove declaration of dbxread.c functions.
2793 * stabsread.h: Group together dbxread.c functions.
2794 Move elfstab_build_psymtabs here from symfile.h.
2795 Declare pastab_build_psymtabs.
2796 * elfread.c, paread.c: Include stabsread.h (for stabsread_new_init
2797 declaration, etc).
2798
e0508fdc
RP
2799Mon Aug 23 17:16:23 1993 K. Richard Pixley (rich@sendai.cygnus.com)
2800
16f6ab6b
RP
2801 * remote-bug.c: rename quiet to bug88k_snoop.
2802 (double_scan, multi_scan): generalize double_scan into a scan
2803 for multiple patterns. Rename to multi_scan.
2804 (bug_wait, bug_write_inferior_memory): adapt to use the new
2805 multi_scan in order to catch and represent target bus errors.
2806 (bug_scan): currently unused, so comment out.
2807 (bug_quiet): removed. Replaced with a standard user settable boolean.
2808
e0508fdc
RP
2809 * m88k-tdep.c: remove include of sys/dir.h. Appears unnecessary
2810 and isn't available on solaris.
2811
304977ab
JK
2812Mon Aug 23 14:56:42 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
2813
2814 * config/m88k/{delta88v4.mt,delta88v4.mh}: New files
2815 * config/m88k/delta88.mh: Fix comment.
2816 * config/m88k/tm-delta88.h: Remove unused BCS define.
2817 * config/m88k/{tm-delta88v4.h,xm-delta88v4.h,nm-delta88v4.h}:
2818 New files.
2819 * configure.in: Recognize m88*-motorola-sysv4*.
2820 * m88k-nat.c: Always include sys/types.h; don't depend on USG.
2821
f5d6b0c5
PS
2822Mon Aug 23 12:57:42 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2823
304977ab
JK
2824 * mipsread.c (parse_symbol, parse_type, cross_ref): Pass name of
2825 symbol as an argument and use it in complaints.
f5d6b0c5
PS
2826 * symmisc.c (dump_psymtab): Dump filenames of dependencies.
2827
a6565079
JK
2828Mon Aug 23 1993 Sean Fagan (sef@cygnus.com)
2829 and Jim Kingdon (kingdon@cygnus.com)
2830
2831 Add NetBSD support:
2832 * configure.in: Recognize netbsd.
2833
313dd520
JK
2834Fri Aug 20 14:01:39 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
2835
6ecb870e
JK
2836 * remote-nindy.c: Remove unused include of sys/ioctl.h.
2837
313dd520
JK
2838 * frame.h, symtab.h: Revise comments regarding baseregs.
2839
018ab14f
PS
2840Fri Aug 20 15:07:05 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2841
2842 * mipsread.c (parse_partial_symbols, psymtab_to_symtab_1):
2843 Set language for psymtab and symtab.
2844 * mipsread.c (new_symbol): Set language and initialize demangled
2845 name for symbol.
2846 * symmisc.c (print_symbol): Use SYMBOL_SOURCE_NAME when printing
2847 the symbol type.
2848 * symtab.c (decode_line_1): Inhibit coredumps with cfront executables.
2849
8af0de91
JK
2850Fri Aug 20 14:01:39 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
2851
0ca9bd12
JK
2852 * Move KERNEL_U_ADDR from xm-hp300bsd.h to nm-hp300bsd.h and make
2853 it conditionalized on 4.3 vs. 4.4.
2854 * config/m68k/nm-hp300bsd.h: Move REGISTER_U_ADDR out of 4.3 and
2855 4.4 sections; it was identical and now works for 4.4.
2856
b33e0e0b
JK
2857 * mips-tdep.c (is_delayed): Use INSN*BRANCH* not ANY_DELAY.
2858
8af0de91
JK
2859 * printcmd.c (MAKEVA_END): Update this version to use "aligner".
2860
6ac14d25
PS
2861Thu Aug 19 22:08:09 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2862
2863 * config/vax/tm-vax.h (BELIEVE_PCC_PROMOTION): Define.
2864 * mipsread.c (parse_symbol, parse_type, cross_ref): Handle corrupt
2865 file indirect entries with complaints instead of core dumps. Remove
2866 complaint for stTypedef within aggregates.
2867
522b9962
JK
2868Thu Aug 19 17:58:39 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
2869
e09c5e26
JK
2870 * coffread.c (process_coff_symbol): Ignore tagnames like .0fake.
2871
2872 * coffread.c (coff_read_enum_type): #if 0 out code which changes
2873 enum {FALSE, TRUE} into boolean.
2874
522b9962
JK
2875 * config/m68k/delta68.m{t,h}: Use nm-delta68.h, etc. not
2876 non-existent files nm-delta.h, etc.
2877 * config/m68k/tm-delta68.h: Define CANNOT_STORE_REGISTER.
2878 * delta68-nat.c: Add "[0]" in offsetof argument.
2879 * delta68-nat.c (_initialize_kernel_u_addr): Don't try to set up
2880 nl with initializer, just assign to it. Check n_scnum field on
2881 return.
2882
e56ac0ba
JK
2883Wed Aug 18 12:03:00 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
2884
b2ccb6a4
JK
2885 * printcmd.c (print_address), values.c (value_as_pointer): Don't
2886 use ADDR_BITS_REMOVE.
d3fa810c 2887 * defs.h: Try to clarify comment about ADDR_BITS_REMOVE.
b2ccb6a4 2888
479fdd26
JK
2889 * blockframe.c (block_innermost_frame): Uncomment.
2890 Return NULL if passed NULL.
2891 * frame.h: Declare it.
2892 * expression.h (union exp_element): Add field block.
2893 * parse.c (write_exp_elt_block): New function.
2894 * expression.h (OP_VAR_VALUE): Now takes additional struct block *.
2895 * *-exp.y: Write block for OP_VAR_VALUE.
2896 * eval.c, expprint.c, parse.c: Deal with block for OP_VAR_VALUE.
2897 * valops.c, value.h (value_of_variable), callers:
2898 Add second argument, for block.
2899
e56ac0ba
JK
2900 * main.c (gdb_readline): If we read some characters followed by EOF,
2901 return them rather than returning NULL.
2902
48be4c35
JK
2903Tue Aug 17 11:14:25 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
2904
2905 * mips-tdep.c: Remove unused #ifndef NUMERIC_REG_NAMES and add comment.
2906
2f03f9a6
RP
2907Tue Aug 17 15:10:04 1993 K. Richard Pixley (rich@sendai.cygnus.com)
2908
637603f9
RP
2909 * config/m88k/tm-m88k.h: Fix typo in comment.
2910 (FP_REGNUM): define in terms of SP_REGNUM
2911 rather than by absolute number. Also clearly comment that this
2912 is a convenient lie in order to decrease future confusion.
2913 (ACTUAL_FP_REGNUM): new macro for FP.
2914 (FRAME_CHAIN_VALID): removed. Standard default works fine.
2915 * m88k-tdep.c (frame_chain_valid): redundant, so removed.
2916 (NEXT_PROLOGUE_INSN): removed unused fourth arg, fixed all
2917 callers.
2918 (read_next_frame_reg): declare static.
2919 (examine_prologue): removed unused variabel insn2, rename insn1
2920 to insn, rewrote comment about finding fp, sp, etc. set frame_fp
2921 based on ACTUAL_FP_REGNUM rather than FP_REGNUM which is
2922 actually a scammed alias for SP_REGNUM on m88k.
2923
2f03f9a6
RP
2924 * frame.h: fixed typo in comment.
2925
4f1afa16
JK
2926Tue Aug 17 11:14:25 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
2927
b80bd1e0
JK
2928 * 29k-share/udi/udiphcfg.h: Always include udiphunix.h not udiphdos.h.
2929
4f1afa16
JK
2930 * complaints.c (complain): fflush (stdout) after output.
2931
d541211d
PS
2932Tue Aug 17 01:43:55 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2933
2934 * blockframe.c, frame.h (sigtramp_saved_pc): New routine to fetch
2935 the saved pc from sigcontext on the stack for BSD signal handling.
2936 * config/i386/tm-i386bsd.h (SIGTRAMP_START, SIGTRAMP_END, FRAME_CHAIN,
2937 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, SIGCONTEXT_PC_OFFSET):
2938 Define to make backtracing through sigtramp work.
2939 * config/vax/tm-vax.h (SIGTRAMP_START, SIGTRAMP_END, TARGET_UPAGES,
2940 FRAME_SAVED_PC, SIGCONTEXT_PC_OFFSET): Ditto.
2941
1109373a
JK
2942Mon Aug 16 13:52:14 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
2943
4f1afa16
JK
2944 * main.c (cd_command): If current_directory on entry is "/", then
2945 don't append an extra slash.
c307bb11 2946 Don't assume that /../.. means /.
4f1afa16 2947
d541211d
PS
2948 * target.c (target_xfer_memory): Clear errno before calling
2949 to_xfer_memory.
2950
1109373a
JK
2951 * stack.c (frame_info, print_frame_info): Add comment about using
2952 the starting source line number on a line boundary if backtracing
2953 through sigtramp.
2954
4fd0b84e
PS
2955Mon Aug 16 02:56:01 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2956
2957 * blockframe.c (create_new_frame, get_prev_frame_info):
2958 Use the function name when calling IN_SIGTRAMP.
2959 * config/m68k/tm-m68k.h (SIG_PC_FP_OFFSET, SIG_SP_FP_OFFSET):
36b1d528 2960 Define for correct handling of bachtraces through _sigtramp.
4fd0b84e
PS
2961 * m68k-tdep.c (m68k_find_saved_regs): Adjust saved sp for fake
2962 sigtramp frames.
2963 * mipsread.c (parse_type): Handle corrupt TIR info with complaint
2964 instead of core dump.
2965 * mipsread.c (parse_partial_symbols): Put static symbols into the
2966 mimimal symbol table, use proper mst_types for all minimal symbols.
2967 * stack.c (frame_info, print_frame_info): Use the starting source
2968 line number on a line boundary if backtracing through sigtramp.
2969
f2f848b8
RP
2970Fri Aug 13 14:37:05 1993 K. Richard Pixley (rich@sendai.cygnus.com)
2971
4fd0b84e
PS
2972 * remote-bug.c: include gdbcmd.h.
2973 (sleep, remque, insque): forward decls added.
2974 (bug_fetch_registers, bug_store_registers): forward decls
2975 removed.
2976 (bug_read_inferior_memory, bug_write_inferior_memory): forward
2977 decls added.
2978 (srec_frame, srec_max_retries, srec_bytes, srec_echo_pace,
2979 srec_sleep, srec_noise): new static variables for user settable
2980 options. Mostly these are for debugging and tuning. I don't
2981 expect them to stay user settable options for long.
2982 (timeout): change default to 4 seconds.
2983 (check_open): declare funtion static, force return value.
2984 (readchar_nofail): if timeout, then say so if not being quiet.
2985 (pollchar, double_scan, bug_scan, bug_srec_write_cr,
2986 start_load): new functions.
2987 (bug_wait): rewritten to use double scan.
2988 (expect): while (1) -> for (;;)
2989 (get_hex_digit): rewrite if condition to avoid gcc complaints.
2990 (bug_load, bug_create_inferior, bug_open, bug_store_register):
2991 removed unused variables.
2992 (bug_load): replaced DELTA macro with user settable srec_frame
2993 variable. Other minor lint.
2994 (find_end_of_word, is_baudrate_right, set_rate, not_bug_wait,
2995 gethex, timed_read, translate_addr, bug_before_main_loop):
2996 unsused and removed.
2997 (bug_resume): add missing first arg, pid.
2998 (get_reg_name): use ip rather than cr04.
2999 (bug_write, bug_write_cr, but_clear_breakpoints, bug_quiet):
3000 declare type, args, and explicitly return.
3001 (bug_store_register): straighten out the ip vs cr04 confusion.
3002 (bug_write_inferior_memory): rewrite to cope with errors while
3003 downloading s-records.
3004 (bug_read_inferior_memory): declare static.
3005 (bug_clear_breakpoints): expect nobr before prompt.
3006 (_initialize_remote_bug): add initializations for srec-bytes,
3007 srec-max-retries, srec-frame, srec-noise, srec-sleep,
3008 srec-echo-pace.
3009
4f4649a7
RP
3010 * Makefile.in (remote-bug.o): new rule.
3011 (ALLDEPFILES): added remote-bug.c
3012
e93790f0
RP
3013 * remote-hms.c (hms_wait): use -1 for timeout's which means block
3014 forever rather than 99999.
3015
057c2f47
RP
3016 * ser-unix.c (get_tty_state): if a descriptor is not a tty, then
3017 simply save encode this fact as the process group and return
3018 success rather than an error.
3019 (set_tty_state): if process group is -1, do not reset the
3020 process group.
3021 (hardwire_reachar): comment change.
3022
0e5f1b37
RP
3023 * serial.h: comment change.
3024
f2f848b8
RP
3025 * config/m88k/tm-m88k.h: comment change to remove embedded
3026 comment.
3027 (SKIP_PROLOGUE): skip_prologue returns a value which is expected
3028 to reset the pc argument. So reset it.
3029
5069d770
FF
3030Fri Aug 13 10:15:24 1993 Fred Fish (fnf@deneb.cygnus.com)
3031
3032 * Makefile.in (VERSION): Bump to 4.10.1 after release and cvs
3033 tagging.
3034
ff1cdb40
JK
3035Thu Aug 12 20:40:14 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
3036
3037 * gdbserver/Makefile.in: Use GDBSERVER_LIBS and
3038 GDBSERVER_DEPFILES. Also remove much (but not all that could be
3039 removed) crud inherited from gdb Makefile.in.
3040 * config/i386/i386lynx.mh, config/sparc/sun4os4.mh: Define GDBSERVER_*.
3041 * gdbserver/README: Say it works on Sun and change configuration
3042 instructions slightly.
3043
3044Wed Aug 11 18:56:59 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
3045
3046 * config/i386/i386v4.mh: use -lsocket and -lnsl, for remote
3047 targets that use BSD style network connections
3048
ae87844d
JK
3049Wed Aug 11 17:54:24 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
3050
3051 * remote-{monitor,bug}.c: Make bug_ops not static (forward declaration
3052 of statics doesn't work with SunOS4 /bin/cc).
3053 Rename the occurrence in remote-monitor.c to monitor_bug_ops.
3054
523ef121
JK
3055Tue Aug 10 13:07:14 1993 Jim Kingdon (kingdon@deneb.cygnus.com)
3056
3057 * blockframe.c (find_pc_partial_function),
3058 mips-tdep.c (find_proc_desc): Deal with "pathological" case.
3059
0f1b1bcc
JK
3060Tue Aug 10 14:50:30 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
3061
523ef121
JK
3062 * utils.c (wrap_here): Allow indent to be NULL.
3063 (fputs_filtered): Don't check for null wrap_indent (wrap_here now
3064 guarantees that it isn't, and anyway we were only checking one out
3065 of the two places we dereferenced it).
3066
0f1b1bcc
JK
3067 * objfiles.h (struct objfile): Clean up comments for
3068 {obj,sym}_private to clarify what they are private to.
3069
48f075eb
SS
3070Mon Aug 9 16:45:00 1993 Stan Shebs (shebs@rtl.cygnus.com)
3071
3072 * stabsread.c, buildsym.c (hashname): Moved function to
3073 buildsym.c, as suggested in the sources.
3074
0685d95f
JK
3075Mon Aug 9 09:53:45 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
3076
525390a2
JK
3077 * remote-udi.c: Make udi_ops extern rather than trying forward
3078 declaration of a static variable.
3079
8a99c712
JK
3080 * hppab-nat.c: Define ptrace to call_ptrace and pass the 5th arg
3081 there, rather than using an ANSI C specific macro.
3082
a2fbd4c8
JK
3083 * 29k-share/udi/udr.c: Include fcntl.h not sys/fcntl.h. Also put
3084 sys/types.h near the top (just on general principles).
3085
b992d16b
JK
3086 * environ.c (set_in_environ): Remove G960BASE and G960BIN; they are
3087 no longer used.
3088
0685d95f
JK
3089 * gdbcore.h: New variable gnutarget.
3090 * core.c: Add commands to set and show it.
3091 * Callers to bfd_*open*: Pass gnutarget instead of NULL as target.
3092 * environ.c (set_in_environ): For GNUTARGET, use set_gnutarget not
3093 putenv.
3094
3095 * symtab.c (decode_line_1): Give error on unmatched single quote.
3096
3da5198c
JK
3097Sun Aug 8 13:59:49 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
3098
95a98b5e
JK
3099 * ser-unix.c (hardwire_send_break) [HAVE_SGTTY]: Use select not usleep.
3100
3da5198c
JK
3101 * remote.c: Add comments about 'd', 'r', and unrecognized requests.
3102
3103 * inflow.c (terminal_init_inferior): Don't muck with tty state if
3104 gdb_has_a_terminal() is false.
3105
f645e835
FF
3106Sun Aug 8 10:07:47 1993 Fred Fish (fnf@cygnus.com)
3107
3108 * dwarfread.c (record_minimal_symbol): Remove prototype and
3109 function.
3110 * dwarfread.c (add_partial_symbol): Remove code to add minimal
3111 symbols and remove comment about limitations. Experiments show
3112 that now that gdb handles the ELF symtab better for creating
3113 minimal symbols, that no additional information is added by
3114 examining the DWARF information, and in fact, given the
3115 limitations, the DWARF code was actually making things worse.
3116
379dd965
FF
3117Sat Aug 7 10:59:03 1993 Fred Fish (fnf@deneb.cygnus.com)
3118
3119 * elfread.c (elf_symtab_read): Properly sort out the bss symbols
3120 from the data symbols and give them the correct minimal_symbol_type.
3121 Add file static symbols to the minimal symbol table, not just
36b1d528 3122 global symbols. Add absolute symbols as well (like _edata, _end).
6c8f91a1
FF
3123 Redo stabs-in-elf special symbol handling now that file static
3124 symbols are entered into the into the minimal symbol table.
379dd965
FF
3125 * dwarfread.c (add_partial_symbol): Add comment about limitations
3126 of DWARF symbols for distinquishing data from bss when adding
3127 minimal symbols. Add file local symbols to minimal symbols.
3128
8d9ec7b6
JK
3129Thu Aug 5 08:58:58 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
3130
80b4aa1c 3131 * ser-go32.c: Define job_control variable.
e917bef3 3132
80b4aa1c
JK
3133Thu Aug 5 15:56:13 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
3134
3135 * configure.in: z8k-coff is the same as z8k-sim
3136
3137Thu Aug 5 08:58:58 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
80b4aa1c 3138
038de493
JK
3139 * 29k-share/udi/udip2soc.c: Include sys/types.h before sys/file.h.
3140
a824e46e
JK
3141 * config/i386/tm-i386bsd.h (NUM_REGS): There are only 10, not 11.
3142
d625b398
JK
3143 * inflow.c: Put all uses of F_GETFL and F_SETFL in #ifdef F_GETFL.
3144
8d9ec7b6
JK
3145 * 29k-share/udi/udip2soc.c: Include fcntl.h not sys/fcntl.h.
3146
a88797b5
FF
3147Wed Aug 4 18:32:12 1993 Fred Fish (fnf@cygnus.com)
3148
3149 * inflow.c (pass_signal): Signal handlers take one int arg;
3150 supply an unused one to make it type compatible as an arg to
3151 signal().
3152
05e9e188
ILT
3153Tue Aug 3 18:34:14 1993 Ian Lance Taylor (ian@cygnus.com)
3154
3155 * config/mips/tm-mips.h: Include bfd.h before coff/sym.h.
3156
8e92ade7
FF
3157Tue Aug 3 15:34:57 1993 Fred Fish (fnf@cygnus.com)
3158
3159 * Makefile.in (ALLCONFIG): Add config/i386/i386nw.mt,
3160 config/m68k/delta68.mh, config/m68k/delta68.mt,
3161 config/m68k/dpx2.mh, config/m68k/dpx2.mt, config/mips/riscos.mh,
3162 config/mips/news-mips.mh.
3163 * Makefile.in (ALLPARAM): Add config/i386/nm-symmetry.h,
3164 config/i386/tm-i386nw.h, config/m68k/nm-delta68.h,
3165 config/m68k/tm-delta68.h, config/m68k/xm-delta68.h,
3166 config/m68k/nm-dpx2.h, config/m68k/tm-dpx2.h,
3167 config/m68k/xm-dpx2.h, config/mips/xm-makeva.h.
3168 * Makefile.in (ALLDEPFILES): Add dpx2-nat.c.
3169
e906e7fa
ILT
3170Tue Aug 3 12:02:09 1993 Ian Lance Taylor (ian@cygnus.com)
3171
3172 * mipsread.c: Updated for BFD ECOFF changes. Now gets the
3173 swapping routines and external structure sizes via the
3174 ecoff_backend information. No longer includes coff/mips.h.
3175
511e0322
FF
3176Tue Aug 3 10:58:04 1993 Fred Fish (fnf@cygnus.com)
3177
3178 * Makefile.in (SFILES): Add thread.c
3179
6eb0b283
DE
3180start-sanitize-v9
3181Tue Aug 3 10:21:58 1993 Doug Evans (dje@canuck.cygnus.com)
3182
3183 * remote-sp64sim.c (simif_create_inferior): Add FIXME regarding
3184 sim_set_args return code.
3185end-sanitize-v9
3186
90fcdfbf
RP
3187Mon Aug 2 16:35:31 1993 K. Richard Pixley (rich@sendai.cygnus.com)
3188
3189 * Makefile.in (VERSION): bumped to 4.9.4.
3190
3191 * remote-monitor.c: updated copyright.
3192 (bug_ops, monitor_desc): now static.
3193 (monitor_desc): in several places, check and/or set to NULL.
3194
3195 * remote-hms.c (hms_files_info): Add the appropriate items where
3196 missing in the printf call.
3197
3198 * remote-bug.c: new file for m88k bug support.
3199
3200 * config/m88k/m88k.mt (TDEPFILES): added remote-bug.o.
3201
a3059251
SC
3202Mon Aug 2 14:22:09 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
3203
3204 * h8300-tdep.c: Use new variable h8300hmode.
3205
ac88287f
JK
3206Mon Aug 2 12:06:00 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
3207
802d6308
JK
3208 * valops.c (typecmp): If we are passing a non-reference to a function
3209 which takes a reference, pass the address.
3210 (value_arg_coerce): Don't use COERCE_ENUM; we don't want to dereference
3211 references here.
3212
3082244d
JK
3213 * thread.c (thread_switch): Define as static.
3214 (add_thread): Cast return value from xmalloc.
3215
ac88287f
JK
3216 * gdbtypes.c (fill_in_vptr_fieldno): Call check_stub_type.
3217 * gdbtypes.{c,h}: Improve comments on vptr_fieldno.
3218
c178776d
FF
3219Mon Aug 2 11:58:52 1993 Fred Fish (fnf@deneb.cygnus.com)
3220
3221 * README: Elaborate on gdb C++ support and cfront support.
3222
da0baf42
SG
3223Mon Aug 2 11:30:57 1993 Stu Grossman (grossman at cygnus.com)
3224
3225 * i386lynx-nat.c, thread.c, thread.h: Update copyrights.
3226
afa2499d
JK
3227Mon Aug 2 12:06:00 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
3228
3229 * Makefile.in (ALLDEPFILES): Add i386lynx-nat.c.
3230
db691e4b
SG
3231Mon Aug 2 08:42:50 1993 Stu Grossman (grossman at cygnus.com)
3232
3233 * gdbserver/remote-inflow.c (create_inferior): Fix comments, and
3234 error msg. Setup seperate process group for child.
3235 * (write_inferior_memory): Sleep for 1 second and retry on ptrace
3236 failure.
3237
25286543
SG
3238Sun Aug 1 22:58:18 1993 Stu Grossman (grossman at cygnus.com)
3239
884914bf
SG
3240 * config/i386/i386lynx.mh (NATDEPFILES): Drop coredep (for now).
3241 * config/i386/nm-i386bsd.h: Protect from multiple inclusion.
3242 * config/i386/nm-i386lynx.h: Lotsa new host porting stuff.
3243 * config/i386/tm-i386lynx.h: Define SAVED_PC_AFTER_CALL and
3244 target_pid_to_str.
3245
25286543
SG
3246 * Makefile.in (CLIBS): Reorder to make Lynx ld happy.
3247 * (HFILES): New file thread.h.
3248 * (OBS): New file thread.c.
3249 * configure.in: Host config for Lynx/386.
3250 * fork-child.c (fork_inferior): Call init_thread_list().
3251 * infrun.c (resume): Add pid to invocation of target_resume().
3252 * (wait_for_inferior): Pay attention to pid from target_wait().
3253 Multi-threading code now uses this to determine what to do.
3254 * inftarg.c (child_wait): Conditionalize based on CHILD_WAIT macro.
3255 Use target_pid_to_str() macro throughout when printing pid.
3256 * inferior.h (child_resume): Add pid to prototype.
3257 * hppab-nat.c hppah-nat.c infptrace.c (child_resume): Pass in pid as
3258 argument, instead of using inferior_pid.
3259 * procfs.c (procfs_resume): Pass in pid as argument. Ignored for
3260 now. Use target_pid_to_str() macro throughout for printing process id.
3261 * remote-adapt.c (adapt_resume): Pass in pid as argument.
3262 * remote-eb.c (eb_resume): Pass in pid as argument.
3263 * remote-es.c (es1800_resume): Pass in pid as argument.
3264 * remote-hms.c (hms_resume): Pass in pid as argument.
3265 * remote-mips.c (mips_resume): Pass in pid as argument.
3266 * remote-mm.c (mm_resume): Pass in pid as argument.
3267 * remote-monitor.c (monitor_resume): Pass in pid as argument.
3268 * remote-nindy.c (nindy_resume): Pass in pid as argument.
3269 * remote-sa.sparc.c (remote_resume): Pass in pid as argument.
3270 * remote-sim.c (rem_resume): Pass in pid as argument.
38867a45 3271 start-sanitize-v9
25286543 3272 * remote-sp64sim.c (simif_resume): Pass in pid as argument.
38867a45 3273 end-sanitize-v9
25286543
SG
3274 * remote-st.c (st2000_resume): Pass in pid as argument.
3275 * remote-udi.c (udi_resume): Pass in pid as argument.
3276 * remote-vx.c (vx_resume): Pass in pid as argument.
3277 * remote-z8k.c (rem_resume): Pass in pid as argument.
3278 * remote.c (remote_resume): Pass in pid as argument.
3279 * solib.c (solid_create_inferior_hook): Pass inferior_pid to
3280 target_resume().
3281 * target.c (normal_pid_to_str): New routine to print out process
3282 ID normally.
3283 * target.h (struct target_ops): Add pid to prototype at
3284 to_resume(). (target_resume): Add pid argument.
3285 * (target_pid_to_str): Default definition for normal type pids.
38867a45 3286 * thread.h, thread.c: New modules for multi thread/process control.
25286543 3287
804d23f3
JG
3288Sun Aug 1 13:02:42 1993 John Gilmore (gnu@cygnus.com)
3289
3290 * README: Say that bug-gdb is also the place to send requests
3291 for help with GDB.
3292
d1445327
FF
3293Sun Aug 1 09:42:13 1993 Fred Fish (fnf@cygnus.com)
3294
84b5df32 3295 * Makefile.in (make-proto-gdb-1): Use -f opt on rm of Makefile.
d1445327
FF
3296 * h8500-tdep.c: Add parens around a few macro args.
3297
eec03ebb
JK
3298Fri Jul 30 15:43:49 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
3299
77eb2e8f
JK
3300 * TODO: Remove items about unix-to-unix/rapp debugging (now we
3301 have gdbserver), moving xm files to subdirectory, ptype yylval,
3302 and file-local symbols.
3303
eec03ebb
JK
3304 * gdbtypes.h: Improve comments about C++ methods.
3305
bcca9a08
FF
3306Fri Jul 30 14:16:32 1993 Fred Fish (fnf@deneb.cygnus.com)
3307
3308 * c-exp.y: Add missing 5th arg for one call to lookup_symbol, cast
3309 NULL in all other calls to correct pointer types.
3310
6cfec929
JK
3311Fri Jul 30 15:43:49 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
3312
3313 From Jeffrey Law:
3314 * tm-hppa.h (TARGET_WRITE_PC): Define.
3315 * hppa-tdep.c (hppa_fix_call_dummy): If in a syscall,
3316 then return the address of the dummy itself rather than
3317 the address of $$dyncall.
3318 (target_write_pc): New function to store a new PC.
3319
f5a197a2
PS
3320Fri Jul 30 12:51:27 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3321 and Jim Kingdon (kingdon@cygnus.com)
3322
3323 * breakpoint.c (breakpoint_re_set_one): Always reparse breakpoint
3324 conditions, they might contain symbol table references.
3325
3326Fri Jul 30 12:51:27 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3327
3328 * mipsread.c (parse_symbol): Handle opaque struct definitions and
3329 type naming for stTypedef symbols.
3330
96c68efa
JK
3331Fri Jul 30 14:44:21 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
3332
3333 * c-exp.y (yylex): Detect C++ nested types.
3334
38cbb25c
DE
3335start-sanitize-v9
3336Fri Jul 30 11:07:37 1993 Doug Evans (dje@canuck.cygnus.com)
3337
3338 * sp64-tdep.c (sparc64_frame_chain, sparc64_frame_saved_pc): Deleted.
3339 (dump_ccreg, sparc_print_register_hook): New fns.
3340 * remote-sim.h: New file.
3341 * remote-sp64sim.h (sim_*): External fns. (simif_*): Internal fns.
3342
3343 * config/sparc/sp64.mt: New file.
3344 * config/sparc/tm-sp64.h (FRAME_CHAIN, FRAME_SAVED_PC): Deleted.
3345 (PRINT_REGISTER_HOOK): Call new fn sparc_print_register_hook.
3346end-sanitize-v9
3347
6879f0db
FF
3348Fri Jul 30 10:15:01 1993 Fred Fish (fnf@deneb.cygnus.com)
3349
3350 * Makefile.in (ALLCONFIG): Add config/i386/ptx.mh
3351
ca33fca1
JK
3352Fri Jul 30 08:58:01 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
3353
d3862cae
JK
3354 From J. Law:
3355 * infcmd.c (read_pc): Remove PA specific code.
3356 * tm-hppa.h (TARGET_READ_PC): Define.
3357 * hppa-tdep.c (target_read_pc): New function.
3358
ca33fca1
JK
3359 * symtab.c (gdb_mangle_name): Deal with it if type lacks a name.
3360
598db9ee
FF
3361Fri Jul 30 07:36:53 1993 Fred Fish (fnf@deneb.cygnus.com)
3362
ebb962cd 3363 * NEWS: Add note that DEC alpha support is host only, not native.
598db9ee
FF
3364 * README: Emphasize that C++ support works best with GNU C++ and
3365 stabs debugging format.
3366 * delta68-nat.c: Add missing FSF copyright.
3367
f1a67de8
JK
3368Fri Jul 30 08:58:01 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
3369
3370 * paread.c (pa_symtab_read): Put file-local symbols in minimal symbols.
247145e6
JK
3371 * hppa-tdep.c (frame_chain_valid): Check that our function has the
3372 same address as _start, not that it must be the same symbol.
f1a67de8 3373
68f49dae
FF
3374Fri Jul 30 00:18:40 1993 Fred Fish (fnf@deneb.cygnus.com)
3375
3376 * Makefile.in (ALLDEPFILES): Add delta68-nat.c
3377 * Makefile.in (delta68-nat.o): Add dependency.
3378
54a11a1d
JK
3379Thu Jul 29 12:09:46 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
3380
5d38a0a8
JK
3381 * value.h (COERCE_ENUM): Use COERCE_REF to coerce refs; value_ind
3382 was adequate in gdb 3.5 but not now.
3383
3384 * valops.c (typecmp): An array in t2 matches a pointer in t1.
3385
3386 * valops.c (typecmp): When comparing type1& to type2, compare
3387 type1 and type2 as leniently as if we were comparing type1 to
3388 type2.
3389
1410f5f1
JK
3390 * cp-valprint.c (cplus_print_value): Don't dump core if the
3391 baseclass doesn't have a name.
3392 * values.c (vb_match): New function, which finds the virtual
3393 base class pointer even if the types are nameless.
3394 (baseclass_{addr,offset}): Use it.
3395
63757ecd
JK
3396 * hppa-tdep.c: Make "maintenance print unwind" command from old
3397 "unwind" command.
3398
54a11a1d
JK
3399 * remote-udi.c: Remove udi_timer, call to siginterrupt, and associated
3400 obsolete junk which apparently had been copied from the
3401 pre-serial.h remote.c, but which is no longer used.
3402
9b311b22
FF
3403Thu Jul 29 12:36:20 1993 Fred Fish (fnf@deneb.cygnus.com)
3404
3405 * Makefile.in (NONSRC): Need 29k-share/README, not
3406 29k-share/udi/README.
3407
6e35b037
JK
3408Thu Jul 29 12:09:46 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
3409
93af329a
JK
3410 * paread.c (pa_symfile_init): If error reading string table, don't
3411 use errno in cases where it hasn't been set.
3412
d4c22c52
JK
3413 * ser-unix.c (gdb_setpgid): Pass our pid, not 0, to setpgid.
3414
60a60032
JK
3415 * remote-monitor.c (_initialize_monitor): Comment out use of
3416 connect_command, since connect_command itself is commented out.
3417
3418 * remote-monitor.c (generic_open): Parse arguments the same way
3419 as remote.c.
3420
6e35b037
JK
3421 * hppa-tdep.c (pc_in_linker_stub): Fix unclosed comments.
3422
c4ed7353
JK
3423Wed Jul 28 13:19:34 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
3424
6e35b037
JK
3425 * config/mips/xm-mips.h: Define HAVE_TERMIOS.
3426
c4ed7353
JK
3427 * dbxread.c (record_minimal_symbol): Don't put gcc_compiled or
3428 __gnu_compiled* symbols into the minimal symbols.
3429
0907dc09
ILT
3430Wed Jul 28 08:26:58 1993 Ian Lance Taylor (ian@cygnus.com)
3431
3432 * remote-mips.c (_initialize_remote_mips): Added "timeout" and
3433 "retransmit-timeout" variables to set mips_receive_wait and
3434 mips_retransmit_wait, respectively.
3435
ffff16b3
PS
3436Wed Jul 28 03:58:58 1993 (pes@regent.e-technik.tu-muenchen.de)
3437
3438 * symmisc.c (dump_msymbols): Handle new mst_file_* types.
3439
7706616f
JK
3440Tue Jul 27 12:07:38 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
3441
157ea89d
JK
3442 * remote-udi.c: Remove old comment about download not implemented.
3443
704deef2
JK
3444 * serial.h, ser-{unix,go32,tcp}.c: Add flush_input and send_break.
3445 * nindy-share/*, remote-nindy.c: Extensive hacking to make it
3446 conform to GDB conventions like using memcpy not bcopy, serial.h,
3447 etc. This is to make it host on Solaris, AIX, etc.
3448 * Makefile.in: Reflect removed nindy-share files.
8805c1ee 3449 * config/i960/nindy960.mt (TDEPFILES): Remove ttybreak.o.
157ea89d 3450
efdd6b64
JK
3451 * stack.c (print_frame_info): Revise comment about `pathological'
3452 case (there was a wrong FIXME about text labels; also asm() can
3453 trigger this as well as versions of ar which truncate .o names).
3454
56ad756a
JK
3455 * buildsym.c (start_subfile): If a .c file includes a .C file, set
3456 the language of both of them to C++.
3457
7706616f
JK
3458 * config/sparc/xm-sun4os4.h: Define MEM_FNS_DECLARED and include
3459 <memory.h>.
3460 Include <malloc.h> rather than declaring malloc functions ourself.
3461
3462 * ser-unix.c (set_tty_state): Don't ignore errors setting process
3463 group.
3464 * inflow.c (terminal_inferior): If attach_flag set, ignore errors
3465 from set_tty_state.
3466
3467 * fork-child.c (fork_inferior): Only quote exec file if needed.
3468
3469 * mipsread.c (parse_symbol): Remove 21 Jul 93 change with
3470 stTypedef inside an stBlock.
3471
0eb22669
PS
3472Tue Jul 27 12:36:49 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3473
3474 * breakpoint.c (breakpoint_1): Walk the breakpoint chain to decide if
3475 we have breakpoints or watchpoints as we might have to ignore internal
3476 breakpoints.
3477
3478 Fix gdb core dumps after `file newfile' commands.
3479 * symtab.h, symfile.c (clear_symtab_users): New routine which
3480 unconditionally clears symtab users. clear_symtab_users_once
3481 commented out as it was a noop anyway.
3482 * objfiles.c (free_objfile): Don't call clear_symtab_users_once.
3483 * objfiles.c (free_all_objfiles), symfile.c (new_symfile_objfile),
3484 xcoffexec.c (exec_close): Call clear_symtab_users if necessary.
3485 * symfile.c (syms_from_objfile): Install cleanups for errors during
3486 symbol reading.
3487 * coffread.c, dbxread.c, mipsread.c, xcoffread.c (*_symfile_read):
3488 Lint cleanup code, call do_cleanups explicitly.
3489 * symfile.c (symbol_file_add): Call new_symfile_objfile and
36b1d528 3490 reinit_frame_cache _after_ the new symbols are read in.
0eb22669 3491
b31ca3de
PS
3492Tue Jul 27 01:57:01 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3493
3494 * mipsread.c (parse_type): Do not set tag name for compiler
3495 generated fake tag names.
3496
333355f3
RP
3497Mon Jul 26 17:31:49 1993 K. Richard Pixley (rich@rtl.cygnus.com)
3498
3499 * config/m88k/m88k.mt (TDEPFILES): add exec.o.
3500
91ab5674
JK
3501Mon Jul 26 13:17:36 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
3502
b8ec9a79
JK
3503 * hppa-tdep.c: Remove all uses of use_unwind and `set use_unwind'
3504 command. Now we use unwind info by default if we can find it.
3505
3506 * config/sparc: Move VARIABLES_INSIDE_BLOCK and SUN_FIXED_LBRAC_BUG
3507 to tm-sparc.h so they are shared between Solaris and SunOS4.
3508 * dbxread.c (process_one_symbol): Deal with SunOS4 acc N_STSYM and
3509 N_GSYM functions.
3510
41c86b69
JK
3511 * config/pa/tm-hppa.h (REGISTER_NAMES): Use "fr" rather than "fp"
3512 for floating point registers.
3513
1c8961dd
JK
3514 * mipsread.c (parse_symbol): Put stStaticProc symbols in minimal
3515 symbols as mst_file_text.
3516
08ecd8f3
JK
3517 * hppa-tdep.c (pc_in_linker_stub): Return 0 if can't read memory.
3518
230a3ab0
JK
3519 * stabsread.c (rs6000_builtin_type): Make logical types be
3520 TYPE_CODE_BOOL.
91ab5674 3521
d889f6b7
JK
3522Sun Jul 25 23:41:48 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
3523
3524 * breakpoint.{c,h} (struct breakpoint): Replace symtab field with
3525 source_file field.
3526
9aa3aa8c
JK
3527Fri Jul 23 09:57:25 1993 Jim Kingdon (kingdon@deneb.cygnus.com)
3528
d889f6b7
JK
3529 * remote.c: Don't error() on errors xferring memory.
3530 * target.h: Clean up comments about *xfer_memory.
3531
f47e56c9
JK
3532 * exec.c, corelow.c (target_ops struct): Don't allow
3533 {insert,remove}_breakpoints to be defaulted to
3534 memory_{insert_remove}_breakpoint.
3535
9aa3aa8c
JK
3536 * demangle.c: Make it so `help set dem' tells you how to get the
3537 list of demangling styles.
3538
f261333b
JK
3539Thu Jul 22 15:41:09 1993 Jim Kingdon (kingdon@deneb.cygnus.com)
3540
3541 * Makefile.in: Use REMOTE_O macro not remote.o.
3542 * config/i960/{nindy960,vxworks960}: Don't use remote.o.
3543
073c6b2b
ILT
3544Thu Jul 22 12:43:25 1993 Ian Lance Taylor (ian@cygnus.com)
3545
3546 * coredep.c: If NEED_SYS_CORE_H defined, include <sys/core.h>
3547 (can't include it in nm-*.h file because it causes conflicts with
3548 a.out symbol definitions).
3549 * hp300ux-nat.c (fetch_core_registers): Commented out; obsolete.
3550 * config/m68k/hp300hpux.mh (NATDEPFILES): Added coredep.o and
3551 corelow.o.
3552 * config/m68k/nm-hp300hpux.h (NEED_SYS_CORE_H): Defined.
3553 (REGISTER_U_ADDR): Defined.
3554 * config/m68k/xm-hp300hpux.h (HAVE_TERMIOS): Define instead of
3555 HAVE_TERMIO.
3556 * config/pa/xm-hppah.h: Likewise.
3557
22b4b223
JK
3558Wed Jul 21 11:37:30 1993 Jim Kingdon (kingdon@deneb.cygnus.com)
3559
70c7ec2e
JK
3560 * mipsread.c (parse_symbol): when stTypedef and friends occur within
3561 an stBlock, skip over the fields of the inner one.
3562
3563 * mips-tdep.c (init_extra_frame_info): If in lenient prologue, call
3564 heuristic_proc_desc rather than just assuming registers not saved.
3565
51b4195f
JK
3566 * Makefile.in (regex.o): Add dependency.
3567
72943ad0
JK
3568 * hppa{b,h}-nat.c: Warning, not error, if can't access registers.
3569
22b4b223
JK
3570 * config/pa/hppa{b,h}.h: Define ATTACH_DETACH.
3571
66fe7416
PS
3572Wed Jul 21 03:07:30 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3573
3574 * config/mips/xm-makeva.h: New file implements va_list alignment
3575 restrictions for mips hosts.
3576 * config/mips/{xm-irix3.h, xm-mips.h, xm-news-mips.h, xm-riscos.h}:
3577 Use it.
3578
579f0258
PS
3579Wed Jul 21 00:11:05 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3580
66fe7416
PS
3581 * mips-tdep.c (init_extra_frame_info): Do not check for
3582 mips_in_lenient_prologue if it is a dummy frame.
579f0258
PS
3583 * mipsread.c (fixup_sigtramp): Initialize pdr.adr, it is used by
3584 mips_in_lenient_prologue.
3585
f29b5686
JK
3586Tue Jul 20 12:53:47 1993 Jim Kingdon (kingdon@deneb.cygnus.com)
3587
23d35572
JK
3588 * mips-tdep.c (heuristic_proc_start): First time we print the
3589 warning, elaborate.
3590 (_initialize_mips_tdep): Improve docstring for `set heur'.
3591
726d33a4
JK
3592 * config/rs6000/tm-rs6000.h: Remove call to insert_step_breakpoint.
3593
f29b5686
JK
3594 * symtab.c (find_line_symtab): New function, to deal with multiple
3595 symtabs with the same name.
3596 (find_line_pc{,_range}): Use it.
3597 (find_pc_symtab): Add comment about overlapping symtabs.
3598
db85f523
FF
3599Mon Jul 19 21:29:14 1993 Fred Fish (fnf@deneb.cygnus.com)
3600
3601 * Makefile.in (SFILES): Add nlmread.c.
3602 * Makefile.in (OBS): Add nlmread.o.
3603 * Makefile.in (nlmread.o): Add new target.
3604 * configure.in (i[34]86-*-netware): New configuration.
3605 * nlmread.c, config/i386/{i386nw.mt, tm-i386nw.h}: New files
3606 for NLM/NetWare support.
3607
dc34b11d
JK
3608Mon Jul 19 11:48:57 1993 Jim Kingdon (kingdon@deneb.cygnus.com)
3609
164207ca
JK
3610 * symtab.h (enum minimal_symbol_type): Add mst_file_*.
3611 * partial-stab.h [DBXREAD_ONLY]: Record statics in miminal symbols.
3612 * dbxread.c (record_minimal_symbol): Deal with statics.
3613 * minsyms.c (lookup_minimal_symbol): Prefer externals to statics.
3614
3d7d2980
JK
3615 * config/i386/xm-i386sco.h: Define HAVE_TERMIOS.
3616
1cd080b5
JK
3617 * printcmd.c, config/pa/xm-pa.h, config/alpha/xm-alpha.h: Make it so
3618 arg_bytes field of makeva_list is always aligned.
3619 * config/pa/xm-pa.h: Make arglist_address a char *.
3620
dc34b11d
JK
3621 * ser-unix.c: Don't try to use job control with termio.
3622
6f87ec4a
PS
3623Sun Jul 18 23:11:28 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3624 and Jim Kingdon (kingdon@cygnus.com)
3625
3626 Make breakpoint_re_set_one work with overloaded member functions,
3627 `b 123' and `b foo' if foo is a static function.
3628 * symtab.c (decode_line_1, decode_line_2): New argument `canonical'
3629 to return canonical line specs if requested by the caller.
3630 * breakpoint.c, source.c, symtab.c, symtab.h: Change prototypes and
3631 callers accordingly.
3632 * symtab.c (build_canonical_line_spec): New helper function which
3633 constructs the canonical line spec.
3634 * breakpoint.c (break_command_1): Use canonical line spec instead
3635 of command string as addr_string if necessary.
3636 * source.c (line_info): Fix storage leak.
3637
fc39be58
JK
3638Sun Jul 18 15:22:45 1993 Jim Kingdon (kingdon@rtl.cygnus.com)
3639
56eec3c7
JK
3640 * infptrace.c: Split out define of PT_KILL; Sequent defines PT_KILL
3641 but not the others.
3642 * symm-tdep.c: Remove exec_file_command.
3643 [_SEQUENT_] (ptx_coff_regno_to_gdb, register_addr): New functions.
3644 A few miscellaneous cleanups.
3645 * symm-nat.c: Renamed from symm-xdep.c.
29b8ed0a 3646 * All symmetry dependent files: Many changes.
56eec3c7 3647
ee5fb959
JK
3648 * mips-tdep.c (mips_skip_prologue): New argument lenient.
3649 Use read_memory_nobpt.
3650 (is_delayed, mips_in_lenient_prologue): New functions.
3651 (init_extra_frame_info): If in the prologue, don't use saved registers.
3652 * config/mips/tm-mips.h: Declare mips_skip_prologue.
3653
fc39be58
JK
3654 * partial-stab.h (N_SO): Add the text offset to valu before, not after,
3655 passing it to END_PSYMTAB.
3656
ac82e9a5
JK
3657Fri Jul 16 18:48:52 1993 Jim Kingdon (kingdon@rtl.cygnus.com)
3658
3659 * symtab.c (find_pc_symtab): Call warning, not printf directly.
3660
3661 * solib.c (solib_add): Use x{re,m}alloc, not {re,m}alloc.
3662
2e9e6869
ILT
3663Fri Jul 16 09:56:42 1993 Ian Lance Taylor (ian@cygnus.com)
3664
3665 * mipsread.c: No longer need to undefine ZMAGIC.
3666
f75906eb
ILT
3667Thu Jul 15 18:03:37 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3668
3669 * m88k-pinsn.c: Moved code into opcodes/m88k-dis.c.
3670 (print_insn): Now just calls print_insn_m88k.
3671
ccdc578f
DE
3672Thu Jul 15 14:54:05 1993 Doug Evans (dje@canuck.cygnus.com)
3673
3674 * h8300-tdep.c (examine_prologue): Make prototype match definition.
3675
f09aae84
JK
3676Thu Jul 15 08:34:49 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
3677
5b336d29
JK
3678 * NEWS: Mention that remote.c now has a `load' operation.
3679
5ac7f56e
JK
3680 * hppa-tdep.c (pc_in_linker_stub): New function.
3681 (find_proc_framesize): Return 0 for linker stubs.
3682 (rp_saved): Tell the caller where rp is saved.
3683 (frame_chain_valid): Return 1 for linker stubs.
3684 (frame_saved_pc): Use return value from rp_saved.
3685
f09aae84
JK
3686 * stack.c (print_frame_info): When checking PC_IN_CALL_DUMMY,
3687 pass the sp relative to the frame in question, not the sp in the
3688 innermost frame.
3689
1ab786f4
JK
3690Wed Jul 14 17:37:03 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
3691
b5d4d6d7
JK
3692 * mipsread.c (parse_procedure): Take as argument the symtab to look
3693 the name up in. Look it up with mylookup_symbol, not lookup_symbol.
3694 (psymtab_to_symtab_1): For stabs, pass the symtab to parse_procedure.
9adb88b7
JK
3695
3696 * mipsread.c (mylookup_symbol): Use strcmp, not STREQ, as we have
3697 already checked the first characters.
3698
1ab786f4
JK
3699 Changes from Jeffrey Law:
3700 * printcmd.c (makeva_list): Use MAKEVA_EXTRA_INFO to define
3701 machine dependent fields in the makeva_list structure.
3702 (makeva_size): Allocate extra space to handle gaps made by
3703 alignment restrictions.
19318471 3704 * config/pa/xm-pa.h (MAKEVA_EXTRA_INFO): Define.
1ab786f4
JK
3705 (MAKEVA_START): Initialize arglist_address field.
3706 (MAKEVA_ARG): Always store arguments on natural alignment
3707 boundaries. Set arglist_address to the address right after
3708 the args.
3709 (MAKEVA_END): Simply return the value stored in arglist_address.
3710
968dca8d
JK
3711Wed Jul 14 13:51:54 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
3712
bf5b632d
JK
3713 * ch-valprint.c (chill_val_print, case TYPE_CODE_STRING): Print
3714 address, not addr.
3715
3716 * hppah-nat.c (store_inferior_registers): Don't print i in cases
3717 where we aren't using it.
3718
968dca8d
JK
3719 * a29k-tdep.c (get_saved_register): Fix typo.
3720
bd96254f
DE
3721Wed Jul 14 09:45:52 1993 Doug Evans (dje@canuck.cygnus.com)
3722
3723 * configure.in: Recognize h8300h (variant of h8300).
3724
3725start-sanitize-v9
3726Wed Jul 14 09:45:52 1993 Doug Evans (dje@canuck.cygnus.com)
3727
3728 * configure.in: Recognize sparc64-*-*.
3729end-sanitize-v9
3730
5af4f5f6
JK
3731Tue Jul 13 14:03:48 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
3732
3733 * stabsread.c (define_symbol): Make the caddr_t hack apply to `function
3734 returning foo' as well as `pointer to foo'.
3735
3736 * remote.c [REMOTE_BREAKPOINT]: Use for breakpoint insn if defined.
3737 * config/m68k/tm-m68k.h: Define it.
3738 * mem-break.c, breakpoint.c: Improve comments.
3739
3740Tue Jul 13 13:35:31 1993 Frederic Pierresteguy (F.Pierresteguy@frcl.bull.fr)
3741
3742 * config/m68k/tm-dpx2.h: Replace "tm-68k.h" with "m68k/tm-m68k.h".
3743 * config/m68k/xm-dpx2.h: Define HAVE_TERMIOS not HAVE_TERMIO.
3744
524895ab
DE
3745Tue Jul 13 11:50:38 1993 Doug Evans (dje@canuck.cygnus.com)
3746
3747 * gdbcore.h (read_memory_integer, read_memory_unsigned_integer):
3748 Make prototype match definition.
3749
98d82489
FF
3750Tue Jul 13 11:15:15 1993 Fred Fish (fnf@cygnus.com)
3751
8bdc1fd0
FF
3752 * elfread.c: Remove notice about file still being under
3753 construction.
98d82489
FF
3754 * Makefile.in (ultra3-xdep.o, umax-xdep.o): Add missing ')'.
3755
85494909
JK
3756Mon Jul 12 17:46:35 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
3757
3758 * a29k-tdep.c (read_register_stack): Make val static.
3759
e1f63216
DE
3760Mon Jul 12 14:10:48 1993 Doug Evans (dje@canuck.cygnus.com)
3761
3762 * config/h8300/tm-h8300.h (REGISTER_CONVERTIBLE): Change value to 0.
3763 (REGISTER_CONVERT_TO_VIRTUAL, REGISTER_CONVERT_TO_RAW): Move def'n to
3764 usual spot.
3765
eabbe766
JK
3766Mon Jul 12 11:29:44 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
3767
1326dace
JK
3768 * c-valprint.c (c_val_print): Fix thinko with unspecified length
3769 arrays.
3770
eabbe766
JK
3771 * hppa-tdep.c (find_proc_framesize): If there is a frame pointer,
3772 use it.
3773
f6365bd6
JK
3774Sun Jul 11 19:35:05 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
3775
f1ed4330
JK
3776 * symtab.c (decode_line_1): Use end of block to figure out whether
3777 val.end is in the same function, not minimal symbols.
3778
3779 * source.c (line_info): Add a few more wrap_here's.
3780
3781 * i386-tdep.c (i386_follow_jump): Do byteswapping where needed and
3782 don't make assumptions about sizes of host data types.
3783
3784 * blockframe.c, symtab.h (find_pc_partial_function): New arg endaddr.
3785 * infrun.c, breakpoint.c, printcmd.c: Change callers.
3786 * printcmd.c (containing_function_bounds): Remove.
3787 * printcmd.c (disassemble_command): Use find_pc_partial_function,
3788 not containing_function_bounds.
3789 * infcmd.c (step_1): Use find_pc_partial_function rather than
3790 trying to roll our own. Move check for a pc between SIGTRAMP_START and
3791 SIGTRAMP_END in find_pc_partial_function, not step_1.
3792
f6365bd6
JK
3793 * sparc-tdep.c (sparc_frame_chain, frame_saved_pc):
3794 Keep unswapped value in array of char, not REGISTER_TYPE.
3795 Use REGISTER_RAW_SIZE not sizeof (REGISTER_TYPE).
3796 (sparc_extract_struct_value_address): Use TARGET_PTR_BIT not
3797 sizeof (CORE_ADDR).
3798
0a8f1742
JK
3799Thu Jul 1 15:50:05 1993 Frederic Pierresteguy (F.Pierresteguy@frcl.bull.fr)
3800
3801 * configure.in (m68*-bull-sysv*): added support for Bull dpx2.
3802 * config/m68k/{t,x,n}m-dpx2.h, dpx2-nat.c: New files.
3803 * config/m68k/dpx2.m{h,t}: New files.
3804
53adb297
DE
3805Sun Jul 11 12:32:08 1993 Doug Evans (dje@canuck.cygnus.com)
3806
3807 * config/sparc/tm-sparc.h (PRINT_REGISTER_HOOK): Fix typo, add
3808 more parens around macro arg.
3809
fee44494
JK
3810Sat Jul 10 09:54:17 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
3811
fe675038
JK
3812 * infrun.c: Remove step_resume_{duplicate,shadow}. Replace
3813 step_resume_break_address with step_resume_breakpoint (now local
3814 to wait_for_inferior).
3815 ({insert,remove}_step_breakpoint): Remove.
3816 (wait_for_inferior): Set step resume break with
3817 set_momentary_breakpoint. Test hitting it with bpstat_stop_status
3818 and bpstat_what (stop_step_resume_break removed).
3819 * breakpoint.{h,c}, infrun.c: Return value from bpstat_what now struct
3820 which includes previous return value as main_action, and a step_resume
3821 bit.
3822 * breakpoint.c (delete_breakpoint): If breakpoint was inserted, and
3823 there is another breakpoint there, insert it.
3824 * infrun.c (wait_for_inferior): Rearrange the spaghetti a bit. Use
3825 a few more gotos.
3826 Various: Clean up and add comments.
3827
fee44494
JK
3828 * infrun.c [TDESC]: Remove remaining tdesc code (see ChangeLog
3829 for Wed Nov 13 16:45:13 1991).
3830
4d50f90a
JK
3831Fri Jul 9 12:36:46 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
3832
58e49e21
JK
3833 * values.c, value.h (modify_field), callers: Make fieldval a LONGEST.
3834
3835 * h8300-tdep.c (NEXT_PROLOGUE_INSN): Make pword1 an INSN_WORD *
3836 not short *.
3837
34df79fc
JK
3838 * findvar.c, defs.h
3839 ({extract,store}_{signed_integer,unsigned_integer,address}):
3840 New routines to replace SWAP_TARGET_AND_HOST.
3841 All over: All uses of SWAP_TARGET_AND_HOST on integers replaced.
3842
271d7387
JK
3843 * config/sparc/tm-sparc.h: Add comment suggesting that removing
3844 ins and locals from the registers array might clean things up.
3845
19bdd57f
JK
3846 * utils.c: Clean up comments about wrap buffer and wrap_here.
3847 * printcmd.c (printf_command): Call wrap_here before vprintf.
3848
28d14fd8
JK
3849 * mipsread.c (cross_ref): Set the name to unknown for "struct *" case.
3850 Patch from ptf@delcam.co.uk (Paul Flinders).
3851
4d50f90a
JK
3852 * a29k-tdep.c, findvar.c (get_saved_register): Fix byteswapping sins.
3853
2fcdae93
PS
3854Fri Jul 9 09:47:02 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3855
3856 * defs.h, remote-eb.c (TM_FILE_OVERRIDE): Remove it.
3857 * mips-tdep.c (init_extra_frame_info): Set proper fci->frame if pc
3858 is at the start of the dummy code.
3859
47976ba7
JK
3860Thu Jul 8 14:48:54 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
3861
dd99f8e4
JK
3862 * sparc-tdep.c (sparc_push_dummy_frame): Skip all the do_save_insn
3863 stuff, just write the sp and fp.
3864 (sparc_pop_frame): Skip the do_restore_insn; we already restore
3865 the sp with the other out registers.
3866
558f4183
JK
3867 * hppa-tdep.c (hppa_push_arguments): Allocate enough space for
3868 arguments.
3869
36b1d528 3870 * hppa-tdep.c: Change _initialize_hppab_tdep to _initialize_hppa_tdep.
47976ba7 3871
9fc8002c
DE
3872start-sanitize-v9
3873Thu Jul 8 14:47:00 1993 Doug Evans (dje@canuck.cygnus.com)
3874
3875 * sparc-tdep.c (sparc_frame_chain): Handle sizeof (CORE_ADDR)
3876 != sizeof (REGISTER_TYPE).
3877 (frame_saved_pc): Ditto.
3878end-sanitize-v9
3879
be474657
DE
3880Thu Jul 8 08:22:05 1993 Doug Evans (dje@canuck.cygnus.com)
3881
6de931d2 3882 * config/h8300/tm-h8300.h: (REGISTER_TYPES): Adjust for h8/300h.
bc4937f3
DE
3883 (REGISTER_RAW_SIZE): Ditto.
3884 (REGISTER_VIRTUAL_TYPE): Use builtin_type_unsigned_long for regs
3885 on the h8/300h (ints may still be 16 bits).
3886 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
3887 EXTRACT_STRUCT_VALUE_ADDRESS): Add FIXME's for h8/300h. Some
3888 thought needed here.
3889
d0414a11
DE
3890 * h8300-tdep.c (print_insn): Call print_insn_h8300h if h8/300h.
3891 (examine_prologue): reg_save_depth is 4 if h8/300h.
3892
be474657
DE
3893 * findvar.c (read_register): Provide some support for 64 bit regs.
3894 (write_register): Ditto.
3895
23a8e291
JK
3896Wed Jul 7 14:30:00 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
3897
3206db62
JK
3898 * config/mips/nm-riscos.h: machine/machparam.h is always the right
3899 place to look for BSD43_NBPG, not machine/vmparam.h
3900
54023465
JK
3901 * infcmd.c (run_stack_dummy): New argument name.
3902 Change error message in (another) attempt to make it comprehensible.
3903 * valops.c (call_function_by_hand): Pass name to run_stack_dummy.
3904 * symtab.h: Declare demangle and asm_demangle since macros use them.
3905
e860d210
JK
3906 * eval.c (evaluate_subexp): Add comment about calling a member
3907 function of a variable in a register.
3908
d3dd6800
JK
3909 * expression.h: Clean up comment about string in STRUCT_STRUCT etc.
3910
23a8e291
JK
3911 * config/{rs6000/tm-rs6000.h,sparc/tm-sparc.h,pyr/tm-pyr.h},
3912 inferior.h (PC_IN_CALL_DUMMY) [ON_STACK]: Add comments about stack
3913 frame tops and bottoms.
3914
3915 * frame.h, blockframe.c, stack.c, a29k-tdep.c,
3916 config/gould/tmp-{pn,np1}.h,
3917 config/{sparc/tm-sparc.h,pyr/tm-pyr.h,vax/tm-vax.h}: Remove field
3918 next_frame from struct frame_info. It has no purpose beyond
3919 ->next->frame and is an artifact from GDB 2.8.
3920
de6a2704
JK
3921Tue Jul 6 11:51:18 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
3922
c2153bf2
JK
3923 * Makefile.in: Remove gdb before creating a new one.
3924 Update init.c atomically.
3925
de6a2704
JK
3926 * Makefile.in (ALLPARAM): Add config/{alpha/xm-alpha.h,pa/xm-pa.h}.
3927 (ALLCONFIG): Add config/alpha/alpha-osf1.mh.
3928
3929 * infcmd.c (_initialize_infcmd): In docstring for "continue",
3930 describe argument as setting ignore count.
3931
b1d0b161
DE
3932Sun Jul 4 15:04:47 1993 Doug Evans (dje@cygnus.com)
3933
3934 * h8300-tdep.c (examine_prologue): Fix call to
3935 read_memory_unsigned_integer.
3936
fdf138bb
JK
3937Fri Jul 2 18:22:54 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
3938
0c5af733
JK
3939 * config/mips/{x,n}m-irix{3,4}.h: Make some definitions here
3940 rather than including xm-bigmips.h.
3941
1500864f
JK
3942 * eval.c (evaluate_subexp): Improve error messages for OP_TYPE and
3943 default cases.
3944
fdf138bb
JK
3945 * Makefile.in (distclean): Remove y.tab.h.
3946
fdf138bb
JK
3947Fri Jul 2 14:55:48 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3948
3949 * exec.c (exec_file_command): Remove Mar 28 hack as BFD handles
3950 file updates properly now.
3951 * mipsread.c (mips_coff_new_init): Force reevaluation of sigtramp
3952 addresses if switching to a new symbol file.
3953 * dbxread.c (process_one_symbol): Avoid dereferencing NULL
3954 symbols that might be returned from define_symbol.
3955
85e07872
SC
3956Fri Jul 2 13:33:12 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
3957
3958 New target macros for getting at the pc, sp and fp.
3959 * infcmd.c (read_pc, write_pc): Modify to use new macros.
3960 (read_sp, write_sp, read_fp, write_fp): New functions.
1500864f
JK
3961 * blockframe.c (reinit_frame_cache, get_prev_frame_info):
3962 Use new functions.
85e07872
SC
3963 * breakpoint.c (bpstat_alloc): ditto.
3964 * infrun.c (wait_for_inferior): ditto.
3965 * stack.c (print_frame_info): ditto.
3966 * valops (call_function_by_hand): ditto.
3967 * corelow.c (core_open): ditto.
3968 * h8500-tdep.c: (target_read_sp, target_write_sp, target_read_pc,
3969 target_write_pc, target_read_fp, target_write_fp): New functions.
3970 * inferior.h (read_sp, write_sp, read_fp, write_fp): Prototypes.
3971
3972 * config/alpha/xm-alpha.h: Add MAKEVA_END.
3973 * config/h8500/tm-h8500.h: Define new macros.
3974
d8a80e6d
ILT
3975Fri Jul 2 13:51:04 1993 Ian Lance Taylor (ian@cygnus.com)
3976
3977 * configure.in (mipos-*-riscos*): New host and target; use riscos.
3978 * config/mips/nm-riscos.h: If BSD43_NBPG is not defined by
3979 vmparam.h, include machparam.h.
3980 (KERNEL_U_ADDR): Define to be BSD43_UADDR.
3981
75fa3e0f
JK
3982Fri Jul 2 13:39:48 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
3983
c0bca41c
JK
3984 * c-exp.y (yylex): Give error if unmatched single quote.
3985
3986 * configure.in, config/m68k/*delta68*, delta68-nat.c: New port.
3987
75fa3e0f
JK
3988 * Remove unused STACK_END_ADDR in the following files (in other
3989 files it is used for something): tm-mips.h, tm-sun2.h, tm-news.h,
3990 tm-a29k, tm-i386v.h, tm-hppa.h, tm-nindy960.h, tm-amix.h,
3991 tm-hp300hpux.h, tm-isi.h.
3992
a77a5278
JK
3993Thu Jul 1 09:51:27 1993 Jim Kingdon (kingdon@cygnus.com)
3994
75fa3e0f
JK
3995 * config/mips/nm-riscos.h: Define NBPG and UPAGES.
3996 config/mips/xm-riscos.h: Include <sys/types.h>.
3997
3998 * ser-unix.c (hardwire_noflush_set_tty_state): Use an assignment,
3999 not an initializer, to copy the structure.
4000
4001 * gdbtypes.h (struct type): Add field tag_name.
4002 * gdbtypes.c (type_name_no_tag), c-typeprint.c (c_type_print_base):
4003 Use it.
4004 * {coff,dwarf,mips,stabs}read.c: Set it.
4005
1f72a94a
JK
4006 * xm-sysv4.h: Undefine HAVE_TERMIO.
4007
0abbc771
JK
4008 * config/mips/nm-riscos.h: Remove unmatched #endif.
4009 Define FETCH_INFERIOR_REGISTERS.
4010 * config/mips/riscos.mh: Don't include coredep.o; mips-nat.o is enough.
4011 Fix misspelling of NAT_FILE.
3762d624
JK
4012 * mips-nat.c (fetch_core_registers): If KERNEL_U_ADDR is not defined,
4013 we can still process "modern" core files.
0abbc771 4014
a77a5278
JK
4015 * ser-unix.c (hardwire_print_tty_state) [HAVE_TERMIOS]: Don't
4016 print c_line.
4017 (_initialize_ser_hardwire): Just check whether _POSIX_JOB_CONTROL
4018 is defined; don't care what it is defined to.
4019
95f2d253
JK
4020Wed Jun 30 20:06:46 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
4021
4022 * config/vax/xm-vaxult2.h: Define FD_SET and FD_ZERO.
4023
c2e247c4
JK
4024Tue Jun 29 11:02:58 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
4025
4026 * inftarg.c: Remove unused include of terminal.h.
4027 * signals.h: Don't undefine signals anymore.
4028 * main.c: Use job_control from serial.h.
4029 * fork-child.c (fork_inferior): Use gdb_setpgid.
4030 * serial.h, ser-unix.c, ser-go32.c: Provide gdb_setpgid.
4031 * utils.c (quit): Use current_target->to_terminal_ours to figure
36b1d528 4032 out whether we care about lack of job control, rather than __GO32__.
c2e247c4
JK
4033 * utils.c: Include serial.h not terminal.h
4034 (quit): Use job_control not TIOCGPGRP.
4035 * terminal.h: Don't undefine TIOCGPGRP.
4036 * serial.h, ser-unix.c, ser-go32.c, ser-tcp.c: Add SERIAL_FLUSH_OUTPUT.
4037 * utils.c (quit): Use it.
4038 * serial.h: Add SERIAL_UN_FDOPEN.
4039 * utils.c (quit): Use it.
4040 * ser-unix.c: Add process group to ttystate.
4041 [HAVE_SGTTY]: Add tchars, ltchars, and lmode to ttystate.
4042 * inflow.c: Include serial.h not terminal.h.
4043 Use serial.h stuff to replace most of the maze of #ifdef's.
4044 * inflow.c, main.c, inferior.h: make gdb_has_a_terminal a function.
4045 * serial.h: Document SERIAL_SET_TTY_STATE as being immediate.
4046 * ser-unix.c: Use TIOCSETN not TIOCSETP so it is true.
4047 * serial.h, ser-unix.c, ser-go32.c, ser-tcp.c:
4048 Add SERIAL_PRINT_TTY_STATE, SERIAL_NOFLUSH_SET_TTY_STATE, and
4049 SERIAL_SET_PROCESS_GROUP.
4050 * inflow.c: Use them.
4051 * config/xm-svr4.h, config/rs6000/xm-rs6000.h, config/sparc/sun4os4.h:
4052 Define HAVE_TERMIOS.
4053 * Various: Remove all use of TIOC*_BROKEN.
4054
eed6de01
PS
4055Wed Jun 30 12:20:51 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
4056
4057 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define.
4058
4059Tue Jun 29 13:44:41 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
4060
4061 * target.h (target_detach): Turn macro into function.
4062 * target.c (target_detach): Define it, do deferred register stores
4063 before calling the real target function.
4064
76a1bd4c
PS
4065Tue Jun 29 13:15:42 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
4066 and Jim Kingdon (kingdon@cygnus.com)
4067
4068 * symtab.h (BLOCK_SHOULD_SORT): Do not sort blocks corresponding to
4069 a function to avoid printing of function arguments in wrong order
4070 due to sorting.
4071 * symfile.c (compare_symbols): Remove code for sorting arguments
4072 as blocks containing arguments are no longer sorted.
4073 * symtab.c (lookup_block_symbol): Update comment accordingly.
4074
a8c25621
JK
4075Tue Jun 29 11:02:58 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
4076
64b09778
JK
4077 * config/pa/tm-hppa.h: Remove unused ARGS_GROW_DOC.
4078 (REG_STRUCT_HAS_ADDR): Add comment.
4079
a8c25621
JK
4080 * infrun.c (wait_for_inferior): Use find_pc_line not find_pc_symtab
4081 to check whether there is line number information.
4082
77641260
DZ
4083Tue Jun 29 08:29:17 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
4084
fe76016a
DZ
4085 * remote-udi.c: Fix docstring so that it compiles.
4086
a8c25621
JK
4087 * remote-mips.c, remote-nindy.c: move bfd.h before symfile.h
4088 (for file_ptr).
77641260 4089
d63aae7f
JK
4090Tue Jun 29 09:11:27 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
4091
fd09c963
JK
4092 * dbxread.c (process_one_symbol): If we find a LOC_BLOCK where we
4093 don't expect it, change it to LOC_STATIC so at least we don't coredump.
4094
4095 * c-typeprint.c (c_type_print_base): Don't error() on invalid type.
4096
a8c25621 4097 * symtab.h: Add comments about line numbers.
d63aae7f
JK
4098 * source.c (identify_source_line): Fix off by one bug with line.
4099
6b9561a4
JK
4100Mon Jun 28 10:09:08 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
4101
c702007b
JK
4102 * printcmd.c (makeva*): New interface, for making a va_list.
4103 (printf_command): Use it.
4104 * config/m88k/xm-delta88.h: Remove VPRINTF define, not needed.
4105 * config/pa/xm-pa.h: New file.
4106 * config/pa/xm-hppa{b,h}.h: Include it.
4107
6b9561a4
JK
4108 * xcoffread.c: Remove obsolete NO_TYPEDEFS comment.
4109
be2860fb
PS
4110Sun Jun 27 08:54:55 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
4111
4112 * valprint.c (val_print_type_code_int): Fix off by one error with
4113 eliminating leading zeroes for large little endian integers.
4114
ee0d1b65
JK
4115Sun Jun 27 08:58:56 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
4116
42280556
JK
4117 * config/mips/riscos.mh (CC): Use -systype sysv.
4118
68d2db62
JK
4119 * ser-unix.c: Move #include of <sys/time.h> to HAVE_SGTTY section.
4120
ee0d1b65
JK
4121 * Makefile.in (ALLPARAM): Add config/mips/{x,n}-{news-mips,riscos}.h.
4122
751b4006
JK
4123Fri Jun 25 11:22:28 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
4124
4125 * config/m68k/tm-m68k.h: Remove obsolete comment about duplicating
4126 CALL_DUMMY between different 68k machines.
4127
ea7f0a9f
SG
4128Fri Jun 25 17:02:45 1993 Stu Grossman (grossman at cygnus.com)
4129
4130 * gdbserver/Makefile.in: Add dependancies on server.h.
4131 * gdbserver/remote-gutils.c: Remove lots of unused functions and
4132 variables.
4133 * gdbserver/remote-inflow.c: Remove lots of unused variables and
4134 #includes. Also, use PTRACE_* symbols instead of constants.
4135 (mywait): Surround calls to wait() with enable/disable_async_io()
4136 so that we can be interrupted from GDB while waiting for the
4137 child. Also, handle child exit more gracefully.
4138 * gdbserver/remote-server.c: Remove lots of unused variables.
4139 Move all extern defs into server.h. Redo main loop so that
4140 failure from getpkt() causes communications to be re-established.
4141 Fix 'k' command so that it restarts the child.
4142 * gdbserver/remote-utils.c: Remove lots of unloved vars and
4143 subrs. Move many extern decls into server.h. (remote_open): For
4144 tcp, seperate usage of proto fd from connected fd. Close proto
4145 fd after getting connection. (putpkt/getpkt): Pay attention to
4146 errors when reading/writing. Report these to the caller. New
4147 routines input_interrupt/enable_async_io/disable_async_io to make
4148 it possible to get an I/O interrupt when data arrives from the
4149 comm link.
4150 * serial.h: New file to contain common defs for all remote files.
4151
a037b21e
SG
4152Fri Jun 25 17:02:45 1993 Stu Grossman (grossman at cygnus.com)
4153
4154 * remote.c: Add arg names to prototypes, in a modest effort at
4155 clarification. Also add prototypes for some new functions.
4156 * (remote_wait): Better error reporting for 'T' responses.
4157 * ser-go32.c (strncasecmp): Make str1 & str2 be const.
4158 * (dos_async_init): Make usage message reflect requested port #.
4159 * ser-tcp.c (tcp_open): Terminate hostname properly to prevent
4160 random hostname lookup failures. Add nicer message for unknown
4161 host error. (wait_for): Wake up in case of exceptions. Also,
4162 restart select() if we got EINTR.
4163 * ser-unix.c (wait_for): Restart select() if we got EINTR.
4164 * serial.c: (serial_close): Clean up code.
4165
ea7f0a9f
SG
4166Fri Jun 25 11:22:28 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
4167
4168 * config/m68k/tm-m68k.h: Remove obsolete comment about duplicating
4169 CALL_DUMMY between different 68k machines.
4170
a38b1233
JK
4171Fri Jun 25 11:22:28 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
4172
f3fe62b1
JK
4173 * Makefile.in (*.tab.c): Use ./c-exp.tab.c not just c-exp.tab.c.
4174 Make comment explaining this comprehensible.
4175 (TAGFILES): Include ALLDEPFILES.
4176 (ALLDEPFILES): udi2soc.c and udr.c are in 29k-share/udi, not
4177 29k-share/udi/udi.
4178 (update-alldeps): Remove; obsolete.
4179
e50ebec8
JK
4180 * remote.c: Move comments regarding packets to top of file with the
4181 rest of the protocol comments.
4182 Fix incorrect description of 'T' response.
4183
3576a412
JK
4184 * README (Reporting Bugs): Refer people to the GDB manual.
4185
7e71985c
JK
4186 * c-valprint.c (c_val_print): Handle TYPE_CODE_BOOLEAN.
4187 * stabsread.c: Type -16 is 4 bytes.
4188
a38b1233
JK
4189 * remote-udi.c: Improve docstring.
4190
872dd3fe
FF
4191Fri Jun 25 11:16:31 1993 Fred Fish (fnf@cygnus.com)
4192
a38b1233
JK
4193 * elfread.c (elf_symfile_read): Call bfd_elf_find_section, not
4194 bfd_elf32_find_section, to track bfd changes.
872dd3fe 4195
f75ad5da
JK
4196Fri Jun 25 11:22:28 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
4197
4198 * config/mips/riscos.mh (REGEX{,1}, MUNCH_DEFINE, MH_CFLAGS): Define.
ef3986bb 4199 * config/mips/xm-riscos.h: Define USG.
f75ad5da 4200
a32ebcfd
JK
4201Thu Jun 24 14:52:45 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
4202
4203 * main.c (filename_completer): Don't complete to files ending in ~.
4204
4205 * NEWS: Mention filename completion and "info line" enhancements.
4206
4207 * main.c (symbol_completion_function): On "info t foo", return NULL,
4208 don't error().
4209
4210 * main.c (symbol_completion_function): Don't use readline word
4211 breaking. Use new calling convention for c->completer and
4212 complete_on_cmdlist.
4213 * command.h (struct command): Change arguments; now the text passed
4214 to completer does not have any word breaking done. New arg word.
4215 * symtab.{c,h} (make_symbol_completion_list): Do word breaking. Take
4216 word argument.
4217 * {main.c,gdbcmd.h} ({filename,noop}_completer): Take word argument.
4218 * command.{c,h} (complete_on_cmdlist): Take word argument.
4219
4220 * command.c (lookup_cmd_1): Doc fix.
4221
b8774958
RP
4222Thu Jun 24 13:26:04 1993 K. Richard Pixley (rich@sendai.cygnus.com)
4223
4224 * Makefile.in (OP_INCLUDE): define.
4225 (OPCODE_CFLAGS): use OP_INCLUDE.
4226
4227 * config/i386/ncr3000.mh, config/i386/i386v4.mh,
4228 config/i386/i386sol2.mh, config/m68k/hp300hpux.mh,
4229 config/m68k/amix.mh, config/mips/irix[34].mh,
4230 config/m88k/delta88.mh, config/sparc/sun4sol2.mh (ALLOCA,
4231 ALLOCA1): macros removed.
4232
4233 * config/mips/decstation.mh, config/rs6000/rs6000.mh
4234 (MMALLOC_LIB): renamed to MMALLOC.
4235
4ae030b9
JK
4236Wed Jun 23 00:25:58 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
4237
4238 * partial-stab.h: Consolidate case statements for N_LSYM and N_FUN.
4239 * dbxread.c: Change comment regarding acc.
4240
c2df19bd
RP
4241Wed Jun 23 15:04:54 1993 K. Richard Pixley (rich@sendai.cygnus.com)
4242
7ae7b919
RP
4243 Makefile overhaul dropping autodepend features.
4244 * Makefile.in: many comment changes. forced consistent use of $()
4245 for makefile variables references. dropped leading ./ in file
4246 references. Drop $(srcdir)/ prefix on all dependencies.
4247 Inserted contents of alldeps.mak and depend.
b8774958 4248 (INCLUDE_CFLAGS): defined as new macro for getting libiberty's
7ae7b919
RP
4249 include directory into the compilation line.
4250 (GDB_CFLAGS): new macro to take up the semantic previously held
4251 by INCLUDE_CFLAGS.
4252 (LIBIBERTY): dropped ancient subdir macro. I last removed this
4253 macro in feb of '92. How does it keep coming back?
4254 (MMALLOC_LIB): renamed to MMALLOC.
4255 (BFD_SRC_DIR): renamed to BFD_SRC.
4256 (BFD_OBJ_DIR): renamed to BFD_DIR.
4257 (BFD_LIB): renamed to BFD.
4258 (BFD_INCLUDES): renamed to BFD_CFLAGS.
4259 (READLINE_DIR): now represents object directory.
4260 (RL_LIB): renamed to READLINE.
4261 (READLINE_SRC, READLINE_CFLAGS, OPCODES, OPCODES_CFLAGS): new
4262 macros.
4263 (INTERNAL_CFLAGS): added GDB_CFLAGS, OPCODES_CFLAGS,
4264 READLINE_CFLAGS, BFD_CFLAGS. Dropped USER_CFLAGS.
4265 (LDFLAGS): removed default assignment.
4266 (TEXIDIR, INCLUDE_DEP, MMALLOC_DIR, MMALLOC_DEP, BFD_DEP,
4267 READLINE_DEP, LIBIBERTY_DIR, TESTS, depend, STAGESTUFF): unused, so removed.
4268 (ALLOCA1, ALLOCA): removed all references. alloca is now in
4269 libiberty.
4270 (VERSION): unilaterally and arbitrarily bumped to 4.9.3.
4271 (SFILES, NONSRC, HFILES, ALLDEPFILES, ALLPARAM, ALLCONFIG):
4272 removed all $(srcdir) prefixes.
4273 (getopt_h, ieee-float_h, bfd_h, wait_h, dis-asm_h): new macros
4274 for potential dependencies. commented out by default.
4275 (readline_headers, udiheaders): convenient abbreviations.
4276 (gdbcore_h, frame_h, symtab_h, gdbtypes_h, expression_h,
4277 value_h, breakpoint_h, command_h, gdbcmd_h, defs_h, inferior_h):
4278 new macros used for header file dependencies.
4279 (install-info, clean-info): collapse into the info rule.
4280 (install): now depends on all.
4281 (install-only): new target for installing without depending on
4282 all.
4283 (uninstall): new target.
4284 (config-check, config-check-hosts, config-check-targets): added
4285 fixme comments.
4286 (ch-exp.tab.c, m2-exp.tab.c): added artificial dependencies in
4287 order to force parallel makes into keeping these rules separate.
4288 * configure.in: omit cat'ing depend file onto generated Makefile.
4289 * alldeps.mak, depend: removed.
4290
baa38372
RP
4291 * inferior.h: remove redundant include of symtab.h which is
4292 included in value.h via breakpoint.h.
4293
fbca7519
RP
4294 * alloca.c: removed. alloca is now in libiberty.
4295
88607839
RP
4296 * config/m88k/delta88.mh, config/ns32k/merlin.mh (M_UNINSTALL):
4297 new macro to undo what M_INSTALL does.
c2df19bd 4298
29f3879c
JK
4299Wed Jun 23 00:25:58 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
4300
4ae030b9
JK
4301 * config/ns32k/{merlin.mh,xm-merlin.h}: Be consistent about name
4302 of gdb-sh.
6ffbfcc2 4303
ec06a3cb
JK
4304 * dbxread.c (copy_pending): Change name and function of begi argument
4305 to endi, since that is what the caller needs.
4306
853a233b
JK
4307 * Makefile.in (TAGFILES): Don't include YYFILES.
4308
4309 * Makefile.in (HFILES): Include monitor.h.
4310
4311 * Makefile.in: Include text that used to be in alldeps.mak.
4312 Remove config/mips/{bigmips.mh,xm-bigmips} from it.
4313 * Makefile.in, configure.in: Remove all traces of alldeps.mak.
4314
29f3879c
JK
4315 * main.c (main): Print help message on stdout not stderr
4316 per standards.texi.
4317 New option --version per standards.texi.
4318 In help message, show long options with "--" not "-".
4319 Don't try to print help message or version until after we have
4320 called initialize_all_files.
4321
9ddfb9eb
JK
4322Tue Jun 22 03:15:38 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
4323
15d4eb21
JK
4324 * solib.c (solib_add_common_symbols): Don't call lookup_minimal_symbol.
4325 (solib_add): Call special_symbol_handling once, not once per library.
4326
59ba57da
JK
4327 * procfs.c (procfs_resume): Don't pass a SIGTSTP whose action
4328 is SIG_DFL.
4329
4330 * procfs.c (procfs_resume): Skip the unnecessary PRSVADDR on all
4331 systems, not just Solaris.
4332
9ddfb9eb
JK
4333 * stabsread.c: Include <ctype.h>.
4334
3768398d
JK
4335Mon Jun 21 16:09:46 1993 Jim Kingdon (kingdon@cygnus.com)
4336
4337 * fork-child.c (fork_inferior): Quote exec_file so it can contain
4338 funky characters.
4339
68eabdd3
FF
4340Mon Jun 21 16:56:47 1993 Fred Fish (fnf@cygnus.com)
4341
4342 * Makefile.in (INCLUDE_CFLAGS): Add BFD_INCLUDES for now, since
4343 bfd.h is included by target.h, which most of gdb includes.
4344 * depend: Hand remove BFD_INCLUDES from ${CC} lines, now that
4345 it's in INCLUDE_CFLAGS.
4346
c96d68c2
JK
4347Mon Jun 21 16:09:46 1993 Jim Kingdon (kingdon@cygnus.com)
4348
2c7ab4ca
JK
4349 * config/i386/*aix*, i386aix-nat.c: New files.
4350 * configure.in: Use them.
c96d68c2 4351 * alldeps.mak: List them.
2c7ab4ca
JK
4352 * coffread.c (decode_base_type): Deal with anonymous enum type.
4353 * i387-tdep.c (print_387_status_word): Add comment re "top".
4354 * i386-tdep.c [I386_AIX_TARGET] (i386_extract_return_value): New func.
4355 * dbxread.c: Use SEEK_SET and SEEK_CUR, not L_*. Define them if and
4356 only if not defined by a header file.
4357 * mipsread.c: Don't define L_SET or L_INCR.
c96d68c2 4358
200a3470
FF
4359Mon Jun 21 15:10:07 1993 Fred Fish (fnf@cygnus.com)
4360
4361 * Makefile.in (BFD_INCLUDES): Bfd.h is now back in bfd build dir.
4362 * depend: Hand updated to match.
4363
089dc220
JK
4364Sun Jun 20 13:11:11 1993 Jim Kingdon (kingdon@cygnus.com)
4365
4366 * stabsread.c (read_struct_fields): Don't call read_cpp_abbrev on $_.
4367 (read_cpp_abbrev): Don't complain specially for $_. Also return 0 if
4368 we don't recognize the abbrev.
4369
2a4e8cc3
JK
4370Sun Jun 20 00:24:41 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
4371
4372 * solib.c (solib_add_common_symbols): Add comment about performance.
4373
e64ec645
JK
4374Fri Jun 18 12:37:36 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
4375
ee06f230
JK
4376 * config/mips/{{x,n}m-riscos.h,riscos.mh}: New files.
4377 * configure.in (mips-*-sysv*): Use riscos for host, bigmips for target.
4378
b487ba2e
JK
4379 * config/mips/{{x,n}m-news-mips.h,news-mips.mh}: New files.
4380 * config/mips/{bigmips.mh,xm-bigmips.h}: Remove.
4381 * configure.in (mips-sony-*): Use news-mips for host.
4382
e64ec645
JK
4383 * buildsym.h: Doc fix for processing_acc_compilation.
4384
8715a9f3
JK
4385Thu Jun 17 19:57:08 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
4386
4387 * printcmd.c (print_formatted): Don't use tab in wrap_here arg.
4388
fc61e9ee
JK
4389Thu Jun 17 17:29:30 1993 Jim Kingdon (kingdon@lisa.cygnus.com)
4390
4391 * Makefile.in (INTERNAL_CFLAGS): Include ../include as well as
4392 ${srcdir}/../include.
4393
4394 * config/m88k/xm-delta88.h: Comment out unused defines which conflict
4395 with system headers.
4396 * printcmd.c (printf_command): Cast second arg to vprintf to PTR.
4397 Use VPRINTF macro if defined.
4398 * config/m88k/xm-delta88.h: Define VPRINTF. Include <sys/siginfo.h>.
4399 Define TIOC{GETC,GLTC}_BROKEN.
4400 * m88k-nat.c: Uncomment include of <sys/ptrace.h>.
4401 * main.c: Rename initialize_{main,cmd_lists,history} to init_* to
4402 make things easier on munch (apparently this matters on
4403 the delta88 with svr3).
4404
c8fee4a5
DZ
4405Thu Jun 17 16:53:56 1993 david d `zoo' zuhn (zoo@cygnus.com)
4406
4407 * Makefile.in: canonicalize install.sh; for use within
4408 this directory (and subdirs)
4409
4410Tue Jun 15 17:01:23 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
4411
4412 * Makefile.in: remove parentdir support; use INSTALL_XFORM
4413
7ccb1e44
SC
4414Thu Jun 17 15:08:35 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
4415
4416 * configure.in (alpha-*-osf*), config/alpha/alpha-osf.mh: New
4417 host.
4418 * sh-tdep.c (frame_find_saved_regs): Use NUM_REGS rather than hard
4419 wired (and wrong) constant.
4420 * values.c (unpack_long): Add case to unpack when target object is
4421 sizeof(int).
4422 * config/sh/tm-sh.h (REGISTER_NAMES): Know about the news ones the
4423 simulator defines.
4424
1c5d6049
RP
4425Wed Jun 16 16:08:18 1993 K. Richard Pixley (rich@sendai.cygnus.com)
4426
21cc14d8
RP
4427 * NEWS: tracking user visible changes starting with
4428 vxworks-timeout.
4429
1c5d6049
RP
4430 * remote-vx.c (_initialize_vx): rename user settable option from
4431 rpcTimeout to vxworks-timeout.
4432
3ef6f604
FF
4433Wed Jun 16 12:21:49 1993 Fred Fish (fnf@cygnus.com)
4434
53f0969b
FF
4435 * Makefile.in (depend): More makefile diddling.
4436 * alldeps.mak, depend: Update to latest automatically built
4437 versions.
4438
3ef6f604
FF
4439 * Makefile.in (depend): Bfd.h keeps moving, keep up with it.
4440 * alldeps.mak, depend: Update to latest automatically built
4441 versions.
4442
56894788
RP
4443Tue Jun 15 12:26:05 1993 K. Richard Pixley (rich@sendai.cygnus.com)
4444
4445 * remote-vx.c: include gdbcmd.h for setlist.
4446 (_initialize_vx): make rpcTimeout user settable.
4447
3a6249b1
JK
4448Mon Jun 14 09:23:51 1993 Jim Kingdon (kingdon@cygnus.com)
4449
bd50d1b0 4450 * main.c, gdbcmd.h: Add function filename_completer.
df0f0dcc
JK
4451 * main.c, symfile.c, source.c, exec.c, core.c: Use it for
4452 "directory", "source", "cd", "symbol-file" "add-symbol-file",
4453 "load", "file", "exec-file", "core-file" commands.
4454 (But '/' is a word break, limiting usefulness; see comments).
bd50d1b0
JK
4455
4456 * source.c (mod_path): Warning not error if can't find directory.
4457
3a6249b1
JK
4458 * isi-xdep.c: New file.
4459 * config/m68k/isi.mh (XDEPFILES): Add isi-xdep.o
4460
9748446f
JK
4461Sun Jun 13 09:17:48 1993 Jim Kingdon (kingdon@cygnus.com)
4462
f92d5249
JK
4463 * config/m68k/xm-news.h: Include <sys/param.h>.
4464
dbbf9508
JK
4465 * m88k-tdep.c (IEEE_isNAN): Remove.
4466 config/m88k/tm-m88k.h (INVALID_FLOAT): Return 0. This was the same
4467 broken isNAN as on the mips.
4468
198133b9
JK
4469 * valprint.c (_initialize_valprint): Use c->function.sfunc not just
4470 c->function.
4471
a5e6391b
JK
4472 * dbxread.c (process_one_symbol): If SUN_FIXED_LBRAC_BUG is not
4473 defined, don't worry about Sun's silly LBRAC bug.
4474 * config/m68k/tm-sun3.h: Define SUN_FIXED_LBRAC_BUG to 0.
4475
4476 * dbxread.c (process_one_symbol): If there's a symbol before an
4477 N_SO, don't error().
4478 (case N_BCOMM): complain () not error ().
4479
9748446f
JK
4480 * defs.h, main.c (catch_errors): Add return_mask arg.
4481 stack.c (print_frame_info): Pass RETURN_MASK_ERROR.
4482 other callers: Pass RETURN_MASK_ALL.
4483 (return_to_top_level), callers: Add return_reason arg.
4484 * utils.c (quit):
4485 Use return_to_top_level (RETURN_QUIT) instead of error ().
4486 * main.c (main), tm-nindy960.h (ADDITIONAL_OPTION_HANDLER):
4487 Use SET_TOP_LEVEL not setjmp (to_top_level).
4488 * remote-nindy.c: Use catch_errors not setjmp (to_top_level).
4489
6e6656cc
JK
4490Sat Jun 12 14:40:54 1993 Jim Kingdon (kingdon@cygnus.com)
4491
ff56144e
JK
4492 * solib.c (solib_create_inferior_hook) [SVR4_SHARED_LIBS]:
4493 Don't try to get the debug base yet.
4494
8357834f
JK
4495 * dbxread.c (process_one_symbol): Set n_opt_found based on whether
4496 a non-gcc N_OPT symbol is found. Make SUN_FIXED_LBRAC_BUG a macro
4497 which returns 0 or 1 to say whether to do it.
4498 * config/sparc/sun4{sol2,os4}.h
4499 (SUN_FIXED_LBRAC_BUG,VARIABLES_INSIDE_BLOCK): Use n_opt_found so
4500 the right thing happens for both acc and SunOS4 /bin/cc.
4501
4502 * valprint.c (print_hex_chars): Use local_hex_format_{pre,suf}fix.
4503 * printcmd.c (print_scalar_formatted): Use val_print_type_code_int.
4504
6e6656cc
JK
4505 * mips-tdep.c: Remove isa_NAN; it assumed sizeof(host int) == 4 and
4506 probably contained byte-order sins too.
4507 config/mips/tm-mips.h (INVALID_FLOAT): Define to 0 like most machines.
4508 The IEEE_FLOAT code in print_floating takes care of it.
4509
ce13daa7
FF
4510Sat Jun 12 14:47:04 1993 Fred Fish (fnf@cygnus.com)
4511
4512 * Makefile.in (VERSION): Bump to 4.9.2.
4513 * c-valprint.c (c_val_print): For array of chars printed with
4514 string syntax, don't print the address of the array. From
4515 bothner@cygnus.com.
4516 * c-exp.y (yylex): Recognize '.' as indicating a floating point
4517 number regardless of the radix. From wilson@cygnus.com.
4518 * valprint.c (set_input_radix_1, set_output_radix_1): New
4519 prototypes and functions that do the actual radix setting work.
4520 * valprint.c (set_radix, set_output_radix, set_input_radix):
4521 Rewrite to use set_input_radix_1 and set_output_radix_1.
4522 * valprint.c (initialize_valprint): Enable commands to
4523 independently set and show input and output radices.
4524 * valprint.c (show_radix): New prototype and function that
4525 handles separate input and output radices.
4526
112087ed
KR
4527Fri Jun 11 18:39:38 1993 Ken Raeburn (raeburn@cygnus.com)
4528
4529 Patches from Jeff Law, law@cs.utah.edu:
4530 * hppa-pinsn.c: Now uses disassembler from opcode library,
4531 this contains only the stub function print_insn.
4532
57cb418a
RP
4533Fri Jun 11 15:19:59 1993 K. Richard Pixley (rich@cygnus.com)
4534
4535 * main.c (main): back to two periods for elipse.
4536 (print_gdb_version): revised format for configuration info.
4537
ce13daa7
FF
4538Fri Jun 11 10:24:35 1993 Fred Fish (fnf@cygnus.com)
4539
4540 * defs.h (INT_MAX): Cast unsigned shift result to int.
4541
574dac8e
JK
4542Fri Jun 11 10:17:41 1993 Jim Kingdon (kingdon@cygnus.com)
4543
4544 * dbxread.c (process_one_symbol): Rather than having
4545 BLOCK_ADDRESS_FUNCTION_RELATIVE a macro, make it a variable which
4546 is true if we are doing stabs-in-elf, false otherwise.
4547 config/sparc/tm-sun4sol2.h: Don't define it.
4548
f63f30e2
ILT
4549Fri Jun 11 13:33:40 1993 Ian Lance Taylor (ian@cygnus.com)
4550
4551 * remote-mips.c (mips_send_packet): Don't print garbage character
4552 in debugging info.
4553 (mips_request): Don't check that remote pid is 0, because
4554 sometimes it isn't.
83909c43
ILT
4555 (mips_fetch_registers): Pass a pointer to SWAP_TARGET_AND_HOST,
4556 not an integer.
f63f30e2 4557
91c87211
JK
4558Fri Jun 11 10:17:41 1993 Jim Kingdon (kingdon@cygnus.com)
4559
c94e7e75
JK
4560 * stack.c (print_frame_info): Use catch_errors around print_frame_args.
4561
702c0ff7
JK
4562 * Makefile.in (install): Don't depend on gdb.
4563
91c87211
JK
4564 * Rename remote-es1800.c to remote-es.c
4565 and remote-st2000.c to remote-st.c for 14-char filenames.
4566 config/m68k/{es1800,st2000}: Use the new names.
4567
4568 * mips-tdep.c (isa_NAN): Don't return true on -0.
4569
dd577ca5
FF
4570Fri Jun 11 10:24:35 1993 Fred Fish (fnf@cygnus.com)
4571
4572 * defs.h (INT_MAX): Cast unsigned shift result to int.
4573
a608f919
FF
4574Thu Jun 10 13:26:41 1993 Fred Fish (fnf@cygnus.com)
4575
4576 * elfread.c (elf_symtab_read): Add bfd section address to bfd
4577 symbols, now that they are section relative.
4578 * solib.c (bfd_lookup_symbol): Ditto.
4579
4580Thu Jun 10 10:56:56 1993 Jim Kingdon (kingdon@cygnus.com)
4581
4582 * Makefile.in (depend): Add bfd -I's for paread.c and xcoffexec.c
4583 depend: Updated accordingly.
4584
39d4639b
JK
4585Wed Jun 9 16:08:44 1993 Jim Kingdon (kingdon@cygnus.com)
4586
4587 * Makefile.in (*.tab.c): Use mv for atomic update.
4588
4589 * Makefile.in ({dist,real}clean): Also remove nm.h.
4590 (realclean): Also remove ${TESTS}, y.output, yacc.{acts,tmp}.
4591 (distclean): Don't rebuild *.tab.c or TAGS.
4592
fa48972a
RP
4593Wed Jun 9 12:56:58 1993 K. Richard Pixley (rich@cygnus.com)
4594
90494078
RP
4595 * Makefile.in (version.c): add host and target names to version.c.
4596 * main.c (main): print three periods for the elipse.
4597 (print_gdb_version): also print configuration.
4598
a29be236
RP
4599 * udi/udiids.h, udi/udip2soc.c, udi/udiphcfg.h, udi/udiphunix.h,
4600 udi/udiproc.h, udi/udipt29k.h, udi/udiptcfg.h, udi/udisoc.h,
4601 udi/udr.c: Change AMD copyrights to FSF copyleft '93.
4602
4603 * remote-eb.c (get_hex_regs, eb_fetch_registers), remote-adapt.c
4604 (get_hex_regs, adapt_fetch_registers): cast args to
4605 supply_register to avoid gcc warning.
4606
0b3556fe
RP
4607 * config/a29k/a29k.mt (TDEPFILES): drop minimon support. It
4608 doesn't compile on solaris and is now obsolete.
4609
fa48972a
RP
4610 * config/sparc/sun4os4.mh (XM_CLIBS): remove -lresolv. This
4611 breaks stock sunos installations.
4612
b01c21d0
JK
4613Wed Jun 9 06:14:33 1993 Jim Kingdon (kingdon@cygnus.com)
4614
4640902b
JK
4615 * m68k-stub.c: Add comment about frame cache.
4616
b01c21d0
JK
4617 * target.h (target_store_registers): Doc fix re error handling.
4618
4619 * findvar.c (write_register): Call SWAP_TARGET_AND_HOST regardless
4620 of register_valid[regno].
4621
9745ba07
JK
4622Tue Jun 8 14:42:10 1993 Jim Kingdon (kingdon@rtl.cygnus.com)
4623
4624 * symtab.h, dwarfread.c: Doc fix re dependencies.
4625
f7630ec9
RS
4626Tue Jun 8 17:54:09 1993 Rob Savoye (rob@rtl.cygnus.com)
4627
4628 * serial.c (serial_close): If scb is NULL, don't try to close
4629 it.
1f72a94a 4630 * configure.in: Add support for rom68k and bug boot monitors.
f7630ec9 4631
df14b38b
SC
4632Tue Jun 8 17:39:12 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
4633
4634 * coffread.c (init_stringtab): Fix bug where sizeof(long) != 4.
4635 * gdbcore.h, core.c (read_memory_unsigned_integer): New function.
4636 * findvar.c (read_register, write_register): Fix thinko where
4637 sizeof(host long) != sizeof(target int).
4638 * h8300-tdep.c: Use new read_memory_unsigned_integer call.
4639 * sh-tdep.c (_initialize_sh_tdep): Add memory_size command.
4640
e7ac0161
JK
4641Tue Jun 8 14:42:10 1993 Jim Kingdon (kingdon@rtl.cygnus.com)
4642
4643 * Move config/m68k/tm-m68k.h (FRAME_FIND_SAVED_REGS) to
4644 m68k-tdep.c (m68k_find_saved_regs). Don't duplicate code between
4645 68881 and non-68881 cases. Check for a pair of movel instructions.
d9e5694c 4646
75c319ff
RP
4647Tue Jun 8 14:52:55 1993 K. Richard Pixley (rich@sendai.cygnus.com)
4648
54d44c8c
RP
4649 First cut at sparc-vxworks targetting.
4650 * config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt: new files.
4651 * configure.in: sparc-vxworks gdb_target now vxsparc.
4652
45d8db87 4653 * remote-eb.c, remote.c: symfile.h requires bfd.h so include it.
75c319ff 4654
683bf9b5
JK
4655Tue Jun 8 14:42:10 1993 Jim Kingdon (kingdon@rtl.cygnus.com)
4656
4657 * config/m68k/xm-news.h: add "extern int errno".
4658
35799202
RP
4659Tue Jun 8 13:45:07 1993 K. Richard Pixley (rich@sendai.cygnus.com)
4660
4661 * remove-vx.c (vx_read_register, vx_write_register): collapse
4662 ifdef I80960 else (assumes) m68k into parameterizable macros
4663 VX_NUM_REGS and VX_SIZE_FPREGS.
4664 * config/m68k/tm-vx68.h, config/i960/tm-vx960.h (VX_NUM_REGS,
4665 VX_SIZE_FPREGS): new definitions.
4666
6b27ebe8
JK
4667Tue Jun 8 11:08:29 1993 Jim Kingdon (kingdon@cygnus.com)
4668
4669 * symfile.{c,h} (generic_load): New function.
4670 remote{,-nindy,-eb,-mips}.c: Use it.
4671
a5d61570
SG
4672Mon Jun 7 20:07:30 1993 Stu Grossman (grossman@cygnus.com)
4673
4674 * Makefile.in (depend): More sed gubbish to deal with
4675 ../bfd/bfd.h being generated during the build.
4676 * depend: Re-done with corrected makefile.
4677
6f4a4fbb
FF
4678Mon Jun 7 16:32:05 1993 Fred Fish (fnf@cygnus.com)
4679
4680 * Makefile.in (BFD_SRC_DIR): Renamed def and usages from BFD_DIR.
4681 * Makefile.in (BFD_OBJ_DIR): New definition for the bfd build
4682 directory to find automatically generated header files and library.
4683 * Makefile.in (BFD_LIB): Use BFD_OBJ_DIR.
4684 * Makefile.in (LINTFLAGS): Include BFD_OBJ_DIR.
4685 * Makefile.in (saber_gdb): Include BFD_OBJ_DIR.
4686 * Makefile.in (depend): Include BFD_OBJ_DIR in gcc args.
4687 * Makefile.in (paread.o, xcoffexec.o): Remove, now in depend.
4688 * depend, alldeps.mak: Rebuild after Makefile.in changes.
4689
4690Fri Jun 4 10:18:51 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
4691
4692 * configure.in: change lynx support to CPU-*-lynxos*
4693
4694 * Makefile.in (subdir_do): change test from existence of directory
4695 to existence of Makefile (the directory may exist but not be configured)
4696
4697Thu Jun 3 01:18:51 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
4698
4699 * config/sparc/xm-sun4sol2.h: define MEM_FNS_DECLARED
4700
761d5a4b
ILT
4701Fri Jun 4 10:43:33 1993 Ian Lance Taylor (ian@cygnus.com)
4702
4703 * configure.in (mips-idt-ecoffl*): New target; use idtl.
4704 (mips-idt-ecoff*): Added trailing '*'.
4705 * config/mips/idtl.mt: New file; like idt.mt, but little endian.
4706
452b4b00
SG
4707Thu Jun 3 17:36:56 1993 Stu Grossman (grossman@cygnus.com)
4708
4709 * ser-go32.c: Clean up lots of compilation nits.
4710
e835b5e7
SG
4711Thu Jun 3 14:44:57 1993 Stu Grossman (grossman@cygnus.com)
4712
4713 * Patches from Jeffrey Law <law@cs.utah.edu>.
4714 * hppab-nat.c: Eliminate unnecessary ifdefs for
4715 FETCH_INFERIOR_REGISTERS, CANNOT_FETCH_REGISTER, and
4716 CANNOT_STORE_REGISTER.
4717 (fetch_register): Delete code to handle CANNOT_FETCH_REGISTER.
4718 * hppa-pinsn.c: Support 'I', 'J', and 'K' in output
4719 templates for 1.1 FP computational instructions.
4720
3af7fb94
SG
4721Thu Jun 3 03:34:49 1993 Stu Grossman (grossman@cygnus.com)
4722
bd91ddd1
SG
4723 * Makefile.in: Remove ser-tcp.[co]. (Use XDEPFILES instead.)
4724 * alldeps.mak, depend: Rebuild to account for ser-tcp.
4725 * config/sparc/sun4os4.mh: Add ser-tcp to XDEPFILES.
4726 * gdbserver/Makefile.in (gdbserver): Use -lbsd.
4727 * gdbserver/remote-inflow{-sparc}.c (create_inferior): Don't use a
4728 shell when running the child, as args have been expanded by the
4729 time we get here. Simplify calling convention.
4730 * gdbserver/remote-server.c (main): Use new calling convention
4731 for create_inferior, remove defunct code for coalescing argv.
4732 Remove extra calls to mywait(), as we no longer have to wade
4733 through a shell.
4734
3af7fb94
SG
4735 * target.c (target_read_memory_partial): Don't deref errnoptr
4736 when checking for null pointer.
4737
2b577349
JG
4738Wed Jun 2 19:58:46 1993 John Gilmore (gnu@cygnus.com)
4739
4740 * remote-es1800.c: Fix typo.
4741
68feeeed
FF
4742Tue Jun 1 21:22:39 1993 Fred Fish (fnf@cygnus.com)
4743
4744 * target.c (target_read_memory_partial): Like target_read_memory,
4745 but does partial reads, such as reads that bump into the end of
4746 the address space.
4747 * target.h (target_read_memory_partial): Add prototype.
4748 * valprint.c (PRINT_MAX_DEFAULT): New define, initial value 200.
4749 * valprint.c (val_print_string): Complete rewrite to fix bug with
4750 bumping into end of memory, avoiding unnecessarily long reads, and
4751 fixing bug when print_max is set to 0 (unlimited print length).
4752 * valprint.c (_initialize_valprint): Use PRINT_MAX_DEFAULT to
4753 initialize print_max.
4754
c1128340
RS
4755Tue Jun 1 18:11:35 1993 Rob Savoye (rob at darkstar.cygnus.com)
4756
4757 * configure.in: Add support for rom68k and bug boot monitors.
4758
574a2a49
JK
4759Mon May 31 10:37:04 1993 Jim Kingdon (kingdon@cygnus.com)
4760
6119aeeb
JK
4761 * printcmd.c (print_scalar_formatted): Print integers bigger than
4762 LONGEST in hex no matter how big, and no matter what the format
4763 and size.
4764
4765 * stabsread.c (read_type): Skip type attributes if present.
36bcda79 4766
574a2a49
JK
4767 * stabsread.c (read_huge_number): Don't accept '0' + radix as part
4768 of number, just through '0' + radix - 1.
4769
2707b48a
FF
4770Sun May 30 15:35:21 1993 Fred Fish (fnf@cygnus.com)
4771
8f1cc6c6
FF
4772 * Makefile.in (SER_HARDWIRE): Temporarily comment out ser-tcp.o.
4773
c701c14c
FF
4774 * {dbxread.c, dwarfread.c} (read_ofile_symtab): Rewrite to take
4775 single parameter, the pointer to the partial symtab, rather than
4776 a bunch of args that are derived from the partial symtab. Change
4777 prototypes and callers to match.
4778
2707b48a
FF
4779 * dbxread.c (read_ofile_symtab): Remove "#if 1" around code to
4780 set demangling style automatically.
4781 * defs.h (CPLUS_MARKER): Clarify comment that this is only for
4782 GNU C++, not C++ in general.
4783 * symtab.h (general_symbol_info): Simplify by eliminating one
4784 structure level for the language dependent info.
4785
86e3a5e4
FF
4786Sat May 29 15:59:29 1993 Fred Fish (fnf@cygnus.com)
4787
4788 * c-typeprint.c (c_type_print_base): Avoid dereferencing NULL
4789 names for TYPE_CODE_STRUCT and TYPE_CODE_UNION types.
4790 TYPE_CODE_ENUM was already testing for this.
4791
38dc5e12
SG
4792Fri May 28 17:18:05 1993 Stu Grossman (grossman@cygnus.com)
4793
4794 * Makefile.in: Add new file ser-tcp.c.
4795 * defs.h (memcmp): Add decl for memcmp to #ifndef MEM_FNS_DECLARED.
4796 * findvar.c (write_register): See if we are writing back the same
4797 value that's already in the register. If so, don't bother.
4798 * remote.c (putpkt, getpkt): Improve handling of communication
4799 problems.
4800 * ser-go32.c: Prototype it to death. Update serial_ops and add
4801 dummy routines where appropriate.
4802 * ser-tcp.c: New module to implement serial I/O via TCP
4803 connections.
4804 * ser-unix.c: Clean up getting/setting of tty state. Get rid of
4805 SERIAL_RESTORE, add SERIAL_{GET|SET}_TTY_STATE interfaces.
4806 * serial.c: Add start of support for connect command.
4807 (serial_open): Distinguish between tcp and local devices.
4808 * serial.h (struct serial_ops): Get rid of restore, add
4809 get_tty_state and set_tty_state. Define protoypes and macros for
4810 this mess.
4811 * gdbserver/remote-utils.c: Add tcp support. (readchar): Do
4812 some real buffering. Handle error conditions gracefully.
4813 * gdbserver/remote-inflow-sparc.c: Update to remote-inflow.c
4814 (Lynx), remove lots of cruft.
4815
633c8b0a
DZ
4816Fri May 28 17:24:51 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
4817
4818 * printcmd.c (print_address_symbolic): turn this into an assigment
4819 instead of an initialization (many compilers don't accept
4820 structure initialization).
4821
860b4da3
JK
4822Thu May 27 16:56:25 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
4823
4824 * xcoffread.c (read_xcoff_symtab): If several program csects in one
4825 source file, give them all the name of the source file, rather than
4826 the 2nd and subsequent ones having NULL names.
4827
b7ccd8e0
PS
4828Thu May 27 06:16:56 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
4829
4830 * printcmd.c (print_address_symbolic): Append source filename and
4831 linenumber of the symbol if print symbol-filename is on.
4832 (initialize_printcmd): `set print symbol-filename'.
4833
185a1705
SG
4834Wed May 26 13:46:16 1993 Stu Grossman (grossman@cygnus.com)
4835
5fa46c42
SG
4836 * configure.in: Add config for Lynx target. Configure gdbserver
4837 only for Lynx. Re-do selective configuration of sparclite.
4838
185a1705
SG
4839 * gdbserver/{remote-gutils.c remote-server.c Makefile.in
4840 configure.in remote-inflow.c remote-utils.c}: New files to
4841 support GDB remote server. Currently only works for Lynx.
4842
3a594d72
JK
4843Wed May 26 10:28:14 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
4844
59d69506
JK
4845 * stabsread.c (define_symbol, case 't'): Only set the name if it
4846 is not a pointer type.
4847
4848 * stabsread.c (define_symbol): Clean up logic; move the read_type
4849 calls to inside the switch statement (this improves the error
4850 handling).
4851
3a594d72
JK
4852 * mipsread.c (parse_symbol, parse_partial_symbols): Deal with Fortran
4853 common blocks.
4854
b9298844
JK
4855Tue May 25 20:44:24 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
4856
43795ece
JK
4857 * printcmd.c (print_formatted, case 'i'): Pass a tab to wrap_here.
4858
4859 * source.c (line_info): Change "pc" to "address" in messages and
4860 use print_address for addresses.
4861
2f2a70e5
JK
4862 * source.c (line_info): If we don't find a symtab, print more useful
4863 output, including the symbolic address.
4864
b9298844
JK
4865 * source.c (line_info): If --fullname, display the source.
4866 (identify_source_line), callers: Take pc as argument, rather than
4867 assuming innermost frame (emacs doesn't use this, so no one ever
4868 noticed).
4869 * symtab.h: Declare frame_file_full_name.
4870 * main.c: Don't.
4871
aea2312b
BK
4872Tue May 25 15:30:43 1993 Brendan Kehoe (brendan@lisa.cygnus.com)
4873
4874 * breakpoint.c (catch_command_1): Fix typo in error msg.
4875
6b346f51
KR
4876Tue May 25 16:05:55 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
4877
4878 * elfread.c (elf_symfile_read): Update ELF structure and routine
4879 names to specify 32-bit versions.
4880 (elf_symtab_read): Retrieve size field directly from symbol,
4881 instead of using old kludge.
4882
4883 * mips-pinsn.c (print_insn): Cast address to bfd_vma before
4884 calling opcodes library.
4885 * z8k-tdep.c (print_insn): Likewise.
4886
ea753d03
JK
4887Tue May 25 13:06:28 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
4888
4889 * stabsread.c: Remove all uses of error(). Make error_type and
4890 read_type_number static.
4891 (define_symbol): Don't try to deal with a missing symbol
4892 descriptor which isn't followed by digit, '(', or '-'.
4893 * stabsread.h: Don't declare read_type_number here.
4894 * gdbtypes.h: Don't declare error_type here.
4895 * xcoffread.c: Remove NO_TYPEDEFS code.
4896
619ccb24
ILT
4897Tue May 25 09:33:16 1993 Ian Lance Taylor (ian@cygnus.com)
4898
4899 * mips-tdep.c: Removed #include of many header files, and #define
4900 of MIPSMAGIC; no longer used.
4901
30ffb593
JK
4902Tue May 25 09:36:13 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
4903
6fe90fc8
JK
4904 * Many places: replace "the inferior" in messages with "the program"
4905 or "the program being debugged".
ea753d03 4906 * inflow.c (try_writing_regs): Remove; it's been #if 0'd forever
6fe90fc8
JK
4907 and I'm getting sick of maintaining it.
4908
30ffb593
JK
4909 * config/i386/linux.mh: Don't use \ newline; the awk scripts don't
4910 support it.
4911
4912 * config/i386/go32.mh: Define SER_HARDWIRE.
4913 * Makefile.in: Define SER_HARDWIRE.
4914 (DEPFILES): Use it.
4915 (alldeps.mak): Add SER_HARDWIRE.
4916 Remove all references to ser-hardwire.{c,o}.
4917 * configure.in: Remove all ser_hardwire and gdb_serial_driver stuff.
4918
1b71de8e
PS
4919Mon May 24 23:50:05 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
4920
4921 * sparc-nat.c (store_inferior_registers): Fill in all members of
4922 inferior_fp_registers by reading them from the inferior before
4923 modifying and writing them back.
4924 Fixes unexplainable inferior FP exceptions after calls to the inferior
4925 or setting of floating point registers.
4926 * mips-tdep.c (mips_skip_prologue): Skip move of argument register
4927 to register which is generated by gcc-2.4.
4928
3b17ee1b
KR
4929Tue May 25 00:42:39 1993 Ken Raeburn (raeburn@cygnus.com)
4930
4931 * hppa-pinsn.c: Define OLD_TABLE before including opcode/hppa.h.
4932
4933Mon May 24 13:55:14 1993 Stu Grossman (grossman@cygnus.com)
4934
4935 * config/i386/{i386lynx.mh i386lynx.mt nm-i386lynx.h tm-i386lynx.h
4936 xm-i386lynx.h}: New configuration for Lynx.
4937
8789d972
JK
4938Mon May 24 10:01:10 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
4939
87c942a8
JK
4940 * mipsread.c (parse_symbol): Deal with scVar and scVarRegister.
4941 * symtab.h: Comment that LOC_REGPARM_ADDR can be call by reference.
4942
8789d972
JK
4943 * c-typeprint.c (c_type_print_base): Don't print typedef'd names
4944 as struct, union, or enum tags.
4945
8537c754
PS
4946Mon May 24 01:10:01 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
4947
4948 * symmisc.c (dump_msymbols): Avoid gdb coredump with stripped
4949 executable.
4950
f52bde21
JK
4951Sat May 22 10:03:09 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
4952
2632d6df
JK
4953 * infrun.c (wait_for_inferior),
4954 infcmd.c (program_info, signal_command): Use symbolic signal names.
4955
6b82a761
JK
4956 * inftarg.c (child_wait): Deal with EINTR and include message from
4957 strerror if printing an error message.
4958
4959 * main.c (command_line_input): Use STOP_SIGNAL not SIGTSTP.
4960
f52bde21
JK
4961 * stabsread.c: Remove most uses of lookup_fundamental_type.
4962 (define_symbol): Use read_type for type of enum constant,
4963 not just read_type_number. Also don't call error().
4964 (define_symbol): For unrecognized constant type, one complaint (the
4965 one from error_type) is enough. Don't make our own in addition.
4966 (define_symbol): Don't treat an N_FUN 'R' as a prototype.
4967 * gdbtypes.h: Doc fixes.
4968
7cf92dd2
PS
4969Sat May 22 03:33:07 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
4970
36b1d528 4971 Fix stack unwinding through _sigtramp on Irix. These patches are from
7cf92dd2 4972 Paul Flinders <ptf@delcam.co.uk>.
36b1d528 4973 * mipsread.c (fixup_sigtramp): Find _sigtramp on Irix even when the
7cf92dd2
PS
4974 executable uses sigvec.
4975 * mips-tdep.c (read_next_frame_reg): Allow tm-file to override
4976 sigcontext offsets.
4977 * config/mips/tm-irix3.h: Add sigcontext offsets for Irix.
4978
101b7f9c
PS
4979Sat May 22 00:39:01 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
4980
4981 * infrun.c (wait_for_inferior): Clear stop_signal if it should not
4982 be passed to the inferior to make "handle <signal> nopass nostop" work.
4983
ac8cf67d
PS
4984Sat May 22 00:21:41 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
4985
4986 * config/mips/tm-irix3.h: Clean up, use tm-bigmips.h and redefine
4987 the necessary bits.
4988 * findvar.c (value_from_register): Fix uninitialized first_addr
4989 which caused problems with assignment of doubles to register variables
4990 on some targets.
4991 * mipsread.c: Remove TM_FILE_OVERRIDE, include tm.h and provide the
4992 missing mips definitions if necessary.
4993
4994 Fix handling of double register variables for mips targets and big
4995 endian hosts. These patches are from Paul Flinders <ptf@delcam.co.uk>.
4996 * config/mips/tm-mips.h: Increase MAX_REGISTER_{RAW,VIRTUAL}_SIZE to
4997 8 bytes for doubles.
4998 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): New macro for
4999 conversion of type held in multiple registers to host format.
5000 * config/mips/tm-mips.h (REGISTER_CONVERT_FROM_TYPE): New macro,
5001 companion to REGISTER_CONVERT_TO_TYPE.
5002 * config/mips/tm-mips.h (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE):
5003 Convert to function calls.
5004 * config/mips/tm-mips.h (FIX_CALL_DUMMY): New code for big endian
5005 mips targets.
5006 * mips-tdep.c (mips_print_register): Raw buffer now needs just
5007 MAX_REGISTER_RAW_SIZE bytes.
5008 * mips-tdep.c (mips_print_register): Use REGISTER_CONVERT_TO_TYPE
5009 (if defined) for doubles.
5010 * mips-tdep.c: (mips_extract_return_value, mips_store_return_value):
5011 New functions, take care of REGISTER_CONVERT_TO/FROM_TYPE.
5012 * valops.c (value_assign): Use REGISTER_CONVERT_TO_TYPE if
5013 defined.
5014 * findvar.c (value_from_register): Use REGISTER_CONVERT_TO_TYPE if
5015 defined.
5016
73262420
JK
5017Fri May 21 09:04:25 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
5018
e23a6896
JK
5019 * configure.in: Add i[34]86-*-isc*.
5020
5e27c054 5021 * stabsread.c: Make sure all complain() pass the address of the struct.
b646b438
JK
5022
5023 * xcoffread.c: Make sure all struct complaints are static not auto.
5024
5025 * Makefile.in: Add rule for xcoffexec.o like that for paread.o.
5026
73262420
JK
5027 * xcoffread.c (process_xcoff_symbol, case C_LSYM): Use define_symbol.
5028
2c6af8c0
JK
5029Wed May 19 12:33:59 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
5030
5031 * config/i386/linux.mh: Re-enable coredumps now that they should work.
5032
ee3d350d
RP
5033Wed May 19 15:44:20 1993 K. Richard Pixley (rich@cygnus.com)
5034
5035 * config/m68k/tm-m68k.h (FRAME_CHAIN): add missing close paren.
5036
f3fe87c7
SG
5037Wed May 19 15:33:57 1993 Stu Grossman (grossman@cygnus.com)
5038
5039 * config/pa/nm-hppab.h: Comment PTRACE_ARG3_TYPE.
5040
5b40415c
JK
5041Wed May 19 12:33:59 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
5042
5043 * Makefile.in (INSTALLED_LIBS): New variable.
5044
31d16514
JK
5045Tue May 18 14:08:50 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
5046
94d50340
JK
5047 * main.c (quit_command): In the "quit anyway?" message, tell the user
5048 whether we are planning to detach or kill the program.
5049
cdaa7905
JK
5050 * config/vax/vaxbsd.mh: Add "NAT_FILE= nm-vax.h".
5051 * config/vax/xm-vaxbsd.h: Use <sys/param.h> not <machine/limits.h>
5052
15f78602
JK
5053 * infcmd.c (read_pc): Doc fix.
5054
511933e7
JK
5055 * printcmd.c (print_address_symbolic): Use %u not %d for offset.
5056
993583e5
JK
5057 * blockframe.c (get_prev_frame_info): If pc in sigtramp, set
5058 signal_handler_caller.
5059 * tm-68k.h (FRAME_{CHAIN,SAVED_PC}): Deal with sigtramp.
5060 * tm-hp300bsd.h: Define SIGTRAMP_{START,END} not IN_SIGTRAMP.
5061 * inferior.h (IN_SIGTRAMP): Definition moved from infrun.c.
5062 Use SIGTRAMP_START if defined.
5063 * infcmd.c (step_1): Use SIGTRAMP_{START,END} if needed.
5064 * infrun.c (wait_for_inferior): Check IN_SIGTRAMP before SKIP_PROLOGUE.
5065
7f8253c7
JK
5066 * infptrace.c: Remove unused KERNEL_U_ADDR_HPUX code.
5067
b1b4a89e
JK
5068 * infcmd.c (step_1): Fix poorly worded error message.
5069
865e574b
JK
5070 * config/{i386/linux.mh,m68k/isi.mh} (NATDEPFILES):
5071 Comment out corelow.c because core dumps are broken on these machines.
5072
31d16514
JK
5073 * Makefile.in (depend): Put "${srcdir}" in generated dependencies
5074 if srcdir is not ".".
5075 Also put in -I${BFD_DIR} or -I${READLINE_DIR} for files which need it.
5076 (INCLUDE_CFLAGS): Remove BFD_DIR and READLINE_DIR.
5077 * depend: Update to latest automatically built version.
5078
6e50aeb4
FF
5079Tue May 18 08:10:45 1993 Fred Fish (fnf@cygnus.com)
5080
5081 * ChangeLog, ChangeLog-92: Split ChangeLog at 1993.
5082 * Makefile.in (NONSRC): Add ChangeLog-92
5083
5084Tue May 18 08:03:37 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
f49cf589
JK
5085
5086 * findvar.c ({read,write}_register): Use REGISTER_RAW_SIZE
5087 not typo RAW_REGISTER_SIZE.
5088
5089 * frame.h, inferior.h: Doc fixes.
5090
35247ccd
SG
5091Mon May 17 15:43:03 1993 Stu Grossman (grossman@cygnus.com)
5092
5093 * findvar.c (write_register): Add sanity check for register size.
5094 (read_register): Fixup sanity check for register size to be
5095 consistent with write_register().
5096
5097Mon May 17 07:36:20 1993 Ian Lance Taylor (ian@cygnus.com)
5098
5099 * sparclite/Makefile.in: Add dummy info, install and install-info
5100 targets.
5101
d968d5b4
RP
5102Thu May 13 07:30:22 1993 Ian Lance Taylor (ian@cygnus.com)
5103
5104 * remote-nindy.c: Removed declaration of coffstrip.
5105 * nindy-share/nindy.c: #if 0 coffstrip routine; no longer used.
5106
377f53d2
FF
5107Wed May 12 00:35:19 1993 Fred Fish (fnf@cygnus.com)
5108
5109 * Makefile.in (VERSION): Bump to 4.9.1 after release and cvs
5110 tagging.
5111
5112 * Makefile.in (VERSION): GDB 4.9 release.
5113
965a33af
FF
5114Tue May 11 08:04:41 1993 Fred Fish (fnf@cygnus.com)
5115
5116 * README: Update known bugs to include the Solaris bug that
5117 leaves core dumps in the current directory when restarting the
5118 inferior with "run". Expand on the testsuite information.
5119
5120 * Makefile.in (VERSION): Bump to 4.8.96 for what should hopefully
5121 be the last 4.9 prerelease test archive.
5122
d2712f02
JK
5123Mon May 10 22:13:23 1993 Jim Kingdon (kingdon@cygnus.com)
5124
5125 * config/m68k/xm-hp300bsd.h: Include <sys/param.h> to avoid INT_MAX
5126 redefined warnings.
5127
0a4a0f09
FF
5128Mon May 10 20:00:43 1993 Fred Fish (fnf@cygnus.com)
5129
5130 * README, NEWS: Update for gdb 4.9 release.
5131
57ffffe3
JG
5132Mon May 10 19:38:34 1993 John Gilmore (gnu@cygnus.com)
5133
5134 * ch-exp.y (MAX, MIN): Rename to MAX_TOKEN, MIN_TOKEN.
5135 * target.c (MIN): #undef before defining.
5136
4a2383c1
JK
5137Mon May 10 16:03:03 1993 Jim Kingdon (kingdon@cygnus.com)
5138
5139 Patch from Jeffrey Law:
5140 * gdb/config/pa/nm-hppab.h (PTRACE_ARG3_TYPE): Define as caddr_t.
5141
1edc5cd2
ILT
5142Mon May 10 15:28:27 1993 Ian Lance Taylor (ian@cygnus.com)
5143
5144 * hppa-tdep.c (hppa_push_arguments): Allocate correct amount of
5145 memory.
5146
f39a2631
FF
5147Mon May 10 13:14:46 1993 Fred Fish (fnf@cygnus.com)
5148
5149 * ch-exp.y (start): Apply work-around to avoid bison warning.
5150
67d2bd1a
FF
5151Sun May 9 07:25:02 1993 Fred Fish (fnf@cygnus.com)
5152
0b81fc43
FF
5153 * Makefile.in (BISON): Remove double quotes around BISON
5154 definition when bison is used.
5155
8f59e92b
FF
5156 * configure.in (hppa*-hp-bsd): Change to hppa*-hp-bsd*
5157 * configure.in (hppa*-hp-hpux): Change to hppa*-hp-hpux*
5158 * configure.in (m68*-hp-bsd): Change to m68*-hp-bsd*
5159 * configure.in (m68*-hp-hpux): Change to m68*-hp-hpux*
5160 * configure.in (hppa*-*-bsd): Change to hppa*-*-bsd*
5161 * configure.in (hppa*-*-hpux): Change to hppa*-*-hpux*
5162 * configure.in (m68*-hp-bsd): Change to m68*-hp-bsd*
5163 * configure.in (m68*-hp-hpux): Change to m68*-hp-hpux*
5164
67d2bd1a
FF
5165 * Makefile.in (VERSION): Bump to 4.8.6.
5166
64c5ac4f
FF
5167Sat May 8 12:36:03 1993 Fred Fish (fnf@cygnus.com)
5168
5169 * config/pa/xm-hppah.h (MALLOC_INCOMPATIBLE): Define it, and
5170 include declarations for malloc/realloc/free. Both malloc and
5171 realloc return 'void *' for non-ANSI compilations.
5172
1adf2ba9
PS
5173Sat May 8 01:39:30 1993 (pes@regent.e-technik.tu-muenchen.de)
5174
5175 * coffread.c (read_coff_symtab): Don't fclose stream as it is no
5176 longer opened twice.
5177
7a758f71
JK
5178Thu May 6 21:08:55 1993 Jim Kingdon (kingdon@cygnus.com)
5179
5180 * solib.c (clear_solib): Don't close bfd if it is NULL.
5181
34b70237
FF
5182Thu May 6 20:55:35 1993 Fred Fish (fnf@cygnus.com)
5183
5184 * core.c (dis_asm_read_memory): Cast second arg of
5185 target_read_memory to "char *".
5186 * breakpoint.c (watchpoint_check): Change arg type from PTR to
5187 "char *", to match other functions called by catch_errors().
5188
2c298c09
SG
5189Thu May 6 15:47:45 1993 Stu Grossman (grossman@cygnus.com)
5190
5191 * More patches from Jeffrey Law (law@cs.utah.edu).
35247ccd 5192 * gdb/config/nm-hppab.h (PTRACE_ARG3_TYPE): Define as caddr_t.
2c298c09
SG
5193 * gdb/config/pa/tm-hppah.h (millicode_start, millicode_end):
5194 Delete unnecessary declarations.
5195
9e15da4a
SG
5196Thu May 6 15:15:46 1993 Stu Grossman (grossman@cygnus.com)
5197
5198 * ser-unix.c (wait_for): Use VTIME to do timeouts instead of
5199 poll() for termio{s}.
5200
dfa592fb
JK
5201Thu May 6 10:03:41 1993 Jim Kingdon (kingdon@cygnus.com)
5202
5203 * i386-tdep.c (i386_frame_num_args): Always return -1.
5204
d83a6710
SG
5205Wed May 5 15:16:33 1993 Stu Grossman (grossman@cygnus.com)
5206
a34d4bc1 5207 * Patches from Jeffrey Law <law@cs.utah.edu>.
8fa74880
SG
5208 * gdb/hppa-tdep.c: Declare frame_saved_pc.
5209 (frameless_function_invocation): New function.
5210 (frame_saved_pc, init_extra_frame_info): Use
5211 frameless_function_invocation.
f45e781f 5212 * gdb/config/pa/tm-hppa.h (SAVED_PC_AFTER_CALL): Use saved_pc_after
8fa74880
SG
5213 call instead of just grabbing the value currently in %r2.
5214 (FRAMELESS_FUNCTION_INVOCATION): Use frameless_function_invocation.
f45e781f 5215 * gdb/config/pa/tm-hppah.h (SAVED_PC_AFTER_CALL): Delete private
8fa74880 5216 definition and use the common one in tm-hppa.h.
4b01383b
SG
5217 * gdb/hppa-tdep.c (frame_chain_valid): If "use_unwind" is true, then
5218 use unwind descriptors to determine if the frame chain is valid.
b227992a
SG
5219 * gdb/hppa-tdep.c (find_dummy_frame_regs): Rework so that
5220 it does not assume %r4 is the frame pointer.
68c8d698
SG
5221 * gdb/hppa-pinsn.c (print_insn): Handle 'r' and 'R' for break, rsm,
5222 and ssm instructions.
5223 * gdb/hppa-tdep.c (extract_5r_store, extract_5R_store): New
5224 helper functions for print_insn.
a34d4bc1 5225 * gdb/hppa-tdep.c (gcc_p, hpux_cc_p): Delete unused functions.
d83a6710 5226 * gdb/config/pa/tm-hppa.h (ABOUT_TO_RETURN): Handle a return
a34d4bc1 5227 which nullifies the following instruction.
d83a6710 5228
a7edcb25
JK
5229Tue May 4 12:11:38 1993 Jim Kingdon (kingdon@cygnus.com)
5230
d83a6710
SG
5231 * infptrace.c [FIVE_ARG_PTRACE]: Define ptrace to call_ptrace and
5232 pass the 5th arg there, rather than using an ANSI C-specific macro.
5233
a7edcb25
JK
5234 * Makefile.in (depend): Don't include ${CC} command for *.tab.c.
5235
d39fbfe3
FF
5236Tue May 4 19:33:12 1993 Fred Fish (fnf@cygnus.com)
5237
5238 * Makefile.in (VERSION): Bump to 4.8.5
5239 * Makefile.in (INCLUDE_CFLAGS): Add BFD_DIR and READLINE_DIR
5240 directories to include search path.
5241 * Makefile.in (CLIBS, CDEPS, ADD_FILES, ADD_DEPS): Clean up
5242 whitespace.
5243 * Makefile.in (depend): For gcc -MM line, use INTERNAL_CFLAGS
5244 * Makefile.in (main.o, dbxread.o, coffread.o, mipsread.o,
5245 elfread.o, dwarfread.o, stabsread.o, xcoffread.o, xcoffexec.o,
5246 xdr_ld.o, xdr_rdb.o, nindy.o, Onindy.o, ttybreak.o, ttyflush.o,
5247 udr.o, udip2soc.o): Remove explicit rules, use the ones that
5248 are automatically generated in "depend".
5249 * Makefile.in (paread.o): Document why a dependency doesn't get
5250 automatically generated in "depend" and leave this explicit rule
5251 in for now (FIXME).
5252 * depend: Update to latest automatically generated version.
5253
5b8462fa
JK
5254Tue May 4 12:11:38 1993 Jim Kingdon (kingdon@cygnus.com)
5255
67240bb8
JK
5256 * xcoffread.c: Doc fix.
5257
5b8462fa
JK
5258 * Makefile.in (depend): Include $(CC) command in generated output.
5259
5287eacd
FF
5260Mon May 3 22:51:05 1993 Fred Fish (fnf@cygnus.com)
5261
5262 * Makefile.in (NONSRC): Remove ${srcdir}/putenv.c.
5263 * Makefile.in (SFILES): Add ${srcdir}/putenv.c.
5264 * depend: Update to latest automatically built version.
5265
9775789d
SG
5266Mon May 3 19:20:20 1993 Stu Grossman (grossman@cygnus.com)
5267
f202f778
SG
5268 * sparclite/Makefile.in: Create default target that does nothing
5269 in order to force user to build by hand.
5270
1e8005d0
SG
5271 * sparclite/Makefile: Remove. It's not necessary anymore.
5272
9775789d
SG
5273 * ser-unix.c (wait_for): New routine to handle read timeouts,
5274 etc. Uses poll() if HAVE_TERMIO[S] is defined, select() otherwise.
5275
588cca90
ILT
5276Mon May 3 13:52:08 1993 Ian Lance Taylor (ian@cygnus.com)
5277
5278 * mips-pinsn.c (print_insn): Return value.
5279
ebd99d54
FF
5280Sun May 2 11:43:57 1993 Fred Fish (fnf@cygnus.com)
5281
588cca90
ILT
5282 * Makefile.in (SFILES): Remove ser-hardwire.c; it is a link made
5283 at configuration time and doesn't belong in the distribution archive.
5284
d8aaff82
FF
5285 * Makefile.in (NONSRC): Add 29k-share/README.
5286 * Makefile.in (HFILES): Add 29k-share/udi/udiids.h.
5287
ebd99d54
FF
5288 * defs.h (UINT_MAX, LONG_MAX, INT_MAX, INT_MIN): Replace hex
5289 constants with slightly more portable definitions (still depends
5290 on 2's complement arithmetic though).
5291 * config/i386/nm-linux.h: Define NO_SYS_REG_H for no <sys/reg.h>.
5292 * i386v-nat.c (sys/reg.h): Conditionalize include on
5293 NO_SYS_REG_H. Linux doesn't have <sys/reg.h>.
5294 * ser-unix.c (termio.h): Include <termio.h> like other files that
5295 include termio.h, not <sys/termio.h> which may not exist (on
5296 linux for example).
5297
9b25bb09
FF
5298Sat May 1 16:05:24 1993 Fred Fish (fnf@cygnus.com)
5299
5300 * valprint.c (print_longest): Change format parameter from a
5301 'char' to an 'int'. We can't have 'char' parameters with the
5302 current coding style, where we mix prototypes with pre-ANSI
5303 style declarations.
5304 * value.h (print_longest): Change format parameter in prototype
5305 from a 'char' to an 'int'.
5306
dea149ce
PS
5307Sat May 1 02:47:20 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
5308
23654371 5309 * config/mips/tm-mips.h (STAB_REG_TO_REGNUM): Match it with the gcc
dea149ce 5310 definition.
23654371 5311 * config/mips/tm-irix3.h (STAB_REG_TO_REGNUM): Add.
dea149ce
PS
5312 * irix4-nat.c (fill_fpregset): Fix bug with indexing into fpregsetp.
5313
2f1c04d1
SG
5314Fri Apr 30 17:45:32 1993 Stu Grossman (grossman@cygnus.com)
5315
5316 * The following patches are from Jeffrey Law <law@cs.utah.edu>.
5317 * config/pa/hppabsd.mh: Add more files to NATDEPFILES.
5318 * config/pa/xm-hppa[bh].h: Define FIVE_ARG_PTRACE.
5319 * hppab-nat.c: Delete WANT_NATIVE_TARGET ifdefs.
5320 ptrace needs 5 arguments, #define ptrace to always
5321 pass zero as the 5th argument.
5322
c7cb9064
SC
5323Fri Apr 30 15:54:13 1993 Steve Chamberlain (sac@thepub.cygnus.com)
5324
5325 * configure.in: Match z8k-*-sim for z8000.
5326 * config/h8500/tm-h8500.h, h8500-tdep.c: Lint.
5327 * remote-hms.c: Update to use new serial protocol.
5328
5385e525
RP
5329Fri Apr 30 16:50:38 1993 K. Richard Pixley (rich@rtl.cygnus.com)
5330
5084717f
RP
5331 * mips-tdep.c: remove include of sys/dir.h. Doesn't seem
5332 necessary and Solaris doesn't have it.
5333
0139c441
RP
5334 * Makefile.in (clean-info, install, install-info, info, dvi,
5335 check, all): do not echo recursion lines.
5336
5084717f 5337 * 29k-share/udip2soc.c (UDIConnect): replace union wait with int.
8317b39f 5338
13b464b2
RP
5339 * config/sparc/sun4sol2.mh (XM_CLIBS): add -lsocket which is
5340 required target ports which use sockets (like a29k-udi).
5341
2f1c04d1 5342 * remote-udi.c (udi_wait): Use SIGURG, as Solaris doesn't have SIGLOST.
5385e525 5343
8d57a263
JK
5344Fri Apr 30 11:05:42 1993 Jim Kingdon (kingdon@cygnus.com)
5345
eca29634
JK
5346 * ser-unix.c [USE_{TERMIO,ALARM}_TIMEOUT]: New code to deal with
5347 systems lacking select().
5348
db7c818b 5349 * Makefile.in (TAGS): Doc fix. Deal with empty DEPFILES.
8d57a263 5350
496ca67c
FF
5351Fri Apr 30 10:06:46 1993 Fred Fish (fnf@cygnus.com)
5352
5353 * alldeps.mak, depend: Update with latest automatically built
5354 versions.
5355
3717e95b
FF
5356Thu Apr 29 12:03:23 1993 Fred Fish (fnf@cygnus.com)
5357
d5f608a4
FF
5358 * Makefile.in (SFILES): Add ser-unix.c and ser-go32.c.
5359
97e72c06
FF
5360 * Makefile.in (make-proto-testsuite.dir): New target to make
5361 prototype testsuite tree.
97e72c06 5362
3717e95b
FF
5363 * Makefile.in (VERSION): Bump to 4.8.4.
5364
ff580c7b
JK
5365Thu Apr 29 08:46:22 1993 Jim Kingdon (kingdon@cygnus.com)
5366
5367 * stabsread.c (define_symbol): If unrecognized constant type,
5368 complain() not error().
5369
7efb57c3
FF
5370Thu Apr 29 00:03:59 1993 Fred Fish (fnf@cygnus.com)
5371
f43aec2e
FF
5372 * infptrace.c: Add missing close paren to test for
5373 FIVE_ARG_PTRACE defined.
5374
7efb57c3
FF
5375 * defs.h (CC_HAS_LONG_LONG): Set up to define CC_HAS_LONG_LONG
5376 when compiling with gcc, but disable it for now. See comment.
5377 * defs.h (LONGEST): Define as either "long" or "long long"
5378 based on CC_HAS_LONG_LONG.
5379 * defs.h (longest_to_int): Use CC_HAS_LONG_LONG to control
5380 how longest_to_int is defined.
5381 * c-valprint.c (c_val_print): Call print_longest.
5382 * expprint.c (dump_expression): Use PRINTF_HAS_LONG_LONG
5383 instead of LONG_LONG.
5384 * {printcmd.c, gdbtypes.h} (LONG_LONG): Replace usages with
5385 CC_HAS_LONG_LONG.
5386 * printcmd.c (print_scalar_formatted): Call print_longest
5387 and let it figure out what to do for PRINTF_HAS_LONG_LONG.
5388 * typeprint.c (print_type_scalar): Call print_longest and let
5389 it figure out what to do for PRINTF_HAS_LONG_LONG.
5390 * valprint.c (val_print_type_code_int): Call print_longest
5391 and let it figure out what to do for PRINTF_HAS_LONG_LONG.
5392 * stabsread.c (LONG_LONG): Replace usages with CC_HAS_LONG_LONG.
5393 * value.h (struct value): Replace usage of LONG_LONG with
5394 CC_HAS_LONG_LONG.
5395 * value.h (print_longest): Add prototype.
5396 * values.c (LONG_LONG): Replace usages with CC_HAS_LONG_LONG.
5397 * values.c (unpack_double): Collapse code that was unnecessarily
5398 dependent on CC_HAS_LONG_LONG. Use LONGEST instead of direct types.
5399 * values.c (value_from_longest): Remove dependency on
5400 CC_HAS_LONG_LONG and just use LONGEST.
5401 * solib.c (solib_map_sections): Use bfd_get_filename
5402 to access filename field.
5403 * solib.c (clear_solib): Save filename and free it later, after
5404 bfd_close, since bfd_close may reference it. Use bfd_get_filename
5405 to access the field.
5406 * config/convex/xm-convex.h (LONG_LONG): Replace with
5407 CC_HAS_LONG_LONG. Add define for PRINTF_HAS_LONG_LONG.
5408 * doc/gdbint.texinfo (LONG_LONG): Replace with CC_HAS_LONG_LONG.
5409 Add PRINTF_HAS_LONG_LONG references.
5410
0626f40d
JK
5411Wed Apr 28 06:11:38 1993 Jim Kingdon (kingdon@cygnus.com)
5412
31b56726
JK
5413 * inflow.c (kill_command), infcmd.c (attach_command),
5414 remote.c (remote_interrupt_twice): In messages for the user, call it
5415 "the program" or "the program being debugged" not "the inferior".
5416
0626f40d
JK
5417 * hp300ux-nat.c: Cast second arg to supply_register calls.
5418 (_initialize_kernel_u_addr, getpagesize): New functions.
5419 (store_inferior_register_1): Change arg name from value to val.
5420 (fetch_core_registers): Make arg core_reg_size unsigned.
5421 Pass 5 args to ptrace.
5422 * config/m68k/xm-hp300hpux.h: Define FIVE_ARG_PTRACE.
5423 Remove KERNEL_U_ADDR stuff.
5424 * infptrace.c [FIVE_ARG_PTRACE]: Pass 5th arg to ptrace.
5425 * config/m68k/hp300hpux.m{t,h}:
5426 Move exec.o from NATDEPFILES to TDEPFILES
5427 * config/m68k/hp300hpux.mt: Mention GAS requirement. Remove
5428 hp-include stuff. Add m68k-tdep.o to TDEPFILES.
5429
d8f23320
PS
5430Wed Apr 28 13:27:54 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
5431
5432 * ch-exp.y (yylex): Don't STREQ with simplename if it is NULL.
5433
08bb2617
JK
5434Wed Apr 28 06:11:38 1993 Jim Kingdon (kingdon@cygnus.com)
5435
5436 * config/sparc/xm-sun4os4.h [__STDC__]: Don't use MALLOC_INCOMPATIBLE.
5437
caa53d6d
RP
5438Wed Apr 28 11:39:18 1993 Roland H. Pesch (pesch@fowanton.cygnus.com)
5439
5440 * doc/gdb.texinfo: make node "Shell Commands" unconditional;
5441 describe `set demangle-style arm' (not cfront);
5442 mention can type `q' to discard output, when gdb pages
5443
212e10cf
PS
5444Wed Apr 28 11:32:39 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
5445
5446 * valops.c (search_struct_field): Fix gdb core dump with incomplete
5447 stabs info.
5448
ebdb9ade
JK
5449Wed Apr 28 06:11:38 1993 Jim Kingdon (kingdon@cygnus.com)
5450
5451 * remote.c: Change timeout to 2.
5452 (remote_open): Use unpush_target not remote_close.
5453 (remote_resume): If siggnal != 0, give warning not error().
5454 (remote_wait, remote_interrupt, remote_interrupt_twice):
5455 If we get two interrupts, let the user get out if they want.
5456 (remote_{kill,mourn}): New functions.
5457 i386-stub.c (handle_exception, case 'k'): Don't BREAKPOINT.
5458
c0f2f39c
ILT
5459Wed Apr 28 09:20:55 1993 Ian Lance Taylor (ian@rtl.cygnus.com)
5460
5461 * config/sparc/sun4sol2.mh (XM_CLIBS): Define to be -lnsl.
5462
609e1c57
JK
5463Wed Apr 28 06:11:38 1993 Jim Kingdon (kingdon@cygnus.com)
5464
71607f9d
JK
5465 * Remote targets (mourn): Call unpush_target.
5466
e82980e4
JK
5467 * config/sparc/xm-sun4os4.h: Declare free() to return int.
5468 Remove twisted use of PARAMS.
5469
609e1c57
JK
5470 * config/rs6000/xm-rs6000.h: Don't define MALLOC_INCOMPATIBLE now
5471 that ansidecl.h assumes ANSI on AIX.
5472
ab425a9b
JK
5473Tue Apr 27 10:01:33 1993 Jim Kingdon (kingdon@cygnus.com)
5474
5475 * README: Move most stuff about hacking GDB to doc/gdbint.texinfo.
5476 (Known bugs): Remove AIX bugs, revise SPARC struct bug description.
5477
f661c4ca
PS
5478Tue Apr 27 13:44:19 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
5479
5480 * expprint.c (print_subexp): Fix bug with OP_SCOPE operator output.
5481
ebe8362f
JK
5482Tue Apr 27 10:01:33 1993 Jim Kingdon (kingdon@cygnus.com)
5483
5484 * remote-vx.c (net_connect): Allow numeric IP address for host.
5485
9faacb92
SC
5486Mon Apr 26 17:59:38 1993 Steve Chamberlain (sac@thepub.cygnus.com)
5487
5488 * config/sh/sh.mt, config/sh/tm-sh.h, sh-tdep.c: New files.
5489
9aa31e91
JK
5490Mon Apr 26 07:13:32 1993 Jim Kingdon (kingdon@cygnus.com)
5491
5492 * rs6000-tdep.c (branch_dest): Deal with stepping through system call.
5493
5494 * symtab.h, xcoffread.c: Revise linetable sorting comments.
5495
24d45a63
PS
5496Sun Apr 25 02:32:16 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
5497
5498 * valops.c (value_cast): A cast might also change the object
5499 representation in C++.
5500 * dbxread.c (end_psymtab): Copy subpst read_symtab function from pst
5501 to get the proper read_symtab function when called from mipsread.c.
5502 * mipsread.c (mipscoff_psymtab_to_symtab, psymtab_to_symtab_1):
5503 Set cur_bfd in psymtab_to_symtab_1 as CURBFD(pst) is invalid
5504 for dummy psymtabs, inhibit processing of dummy psymtabs.
5505
8cba9703
JK
5506Sat Apr 24 19:59:54 1993 Jim Kingdon (kingdon@cygnus.com)
5507
87237c52
JK
5508 * Changes from (or inspired by) AMD:
5509 * remote-udi.c (udi_attach): Assignments to Space and Offset were
5510 switched, fix it.
5511 (udi_wait): Make error message (UDIGetStdout) match error.
5512 (udi_wait): Handle UDIStdinNeeded.
5513 * command.c [CANT_FORK]: Use system().
5514 * utils.c (prompt_for_continue): Allow quit with 'q'.
5515
8cba9703
JK
5516 * solib.c (solib_add): Don't call special_symbol_handling if there
5517 were errors in symbol_add_stub. Also set so->from_tty before
5518 calling symbol_add_stub.
5519
66a1aa07
SG
5520Fri Apr 23 16:17:00 1993 Stu Grossman (grossman@cygnus.com)
5521
5522 * Merge in HPPA/BSD patches from Utah:
5523 * defs.h: Add const to 2nd arg of psignal prototype.
5524 * hppah-tdep.c: Renamed to hppa-tdep.c 'cuz it's common code with
5525 BSD now.
5526 * hppab-core.c: Deleted. No longer useful.
5527 * hppab-nat.c: #include more files. Use PT_WUREGS, not
5528 PT_WRITE_U.
5529 * hppab-tdep.c: Deleted. Supplanted by hppa-tdep.c.
5530 * config/pa/hppabsd.mh (NATDEPFILES): Remove hppab-core.o.
5531 * config/pa/hppabsd.mt (TDEPFILES): hppab-tdep.o => hppa-tdep.o
5532 * config/pa/hppahpux.mt (TDEPFILES): hppab-tdep.o => hppa-tdep.o
5533 * config/pa/xm-hppab.h: #define SET_STACK_LIMIT_HUGE.
5534
b5728692
SG
5535Fri Apr 23 10:34:02 1993 Stu Grossman (grossman@cygnus.com)
5536
5537 * Fix two bugs found by deja-gnu. One is the incorrect reporting
5538 of the PC being in a stack dummy when looking at a core file
5539 without symbols. The other is the incorrect passing of char
5540 arguments during expression evaluation (ie: p foo('a','b') would
5541 mess up the passing of it's args because it wasn't coercing the
5542 char's to ints).
5543 * hppah-tdep.c: Rename global functions to have consistent hppa_
5544 prefix. Make more functions static. Drop hp_ prefix from static
5545 functions. (hppa_push_arguments): Call value_arg_coerce to cast
5546 char to int args if necessary. (hppa_fix_call_dummy): Create
5547 this routine from FIX_CALL_DUMMY macro in tm-hppa.h.
5548 * inferior.h (PC_IN_CALL_DUMMY): Check for frame_address being
5549 valid (ie: != 0) before doing comparison against PC.
5550 * valops.c (call_function_by_hand): Adjust call to FIX_CALL_DUMMY
5551 to reflect new arguments.
5552 * config/pa/tm-hppa.h (POP_FRAME, PUSH_ARGUMENTS): Use new hppa_
5553 prefix for func name. (FIX_CALL_DUMMY): Move code into
5554 hppah-tdep.c.
5555
5556 * testsuite/gdb.t16/gdbme.c, testsuite/gdb.t17/gdbme.c: Add calls
5557 to malloc() so that we can test GDB eval of dynamically created
5558 arrays (like char strings in `print "foo"').
5559
7586127f
PS
5560Fri Apr 23 01:28:14 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
5561
5562 * printcmd.c (print_address_symbolic): Search symtabs as well as the
5563 minimal symbols for a nearby symbol.
5564
158a0711
JG
5565Thu Apr 22 19:44:21 1993 John Gilmore (gnu@cacophony.cygnus.com)
5566
5567 * coffread.c: Comment changes around minimal symbol recording.
5568
3127785a
RP
5569Thu Apr 22 16:24:36 1993 K. Richard Pixley (rich@rtl.cygnus.com)
5570
158a0711 5571 * command.c: comment changes only.
f936e20d 5572
3127785a
RP
5573 * mips-tdep.c (heuristic_fence_post): new static variable.
5574 (heuristic_proc_start): use heuristic_fence_post, print better
5575 warnings, but only if not stop_soon_quietly.
5576 (_initialize_mips_tdep): add_set_cmd for heuristic-fence-post.
5577
5afa2040
JK
5578Thu Apr 22 14:50:05 1993 Jim Kingdon (kingdon@cygnus.com)
5579
5580 * symtab.h: Fix LOC_REF_ARG comment.
5581
5582Wed Apr 22 20:21:30 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
5583 and Jim Kingdon (kingdon@cygnus.com)
5584
5585 * stabsread.c (define_symbol): Combine a 'p', 'r' arg pair to a
5586 LOC_REGPARM symbol.
5587 * config/sparc/tm-sparc.h (REG_STRUCT_HAS_ADDR): Revise comments.
5588 symfile.c (compare_symbols): Don't check first character; STRCMP
5589 does that.
5590
5591 * stabsread.c (define_symbol): Generate a LOC_REGPARM_ADDR for
5592 structures that are passed by address in a register.
5593 * symtab.h (enum address_class): Add LOC_REGPARM_ADDR.
5594 * findvar.c (read_var_value),
5595 printcmd.c (address_info, print_frame_args),
5596 stack.c (print_frame_arg_vars), symmisc.c (print_{,partial_}symbol),
5597 * symtab.c (lookup_block_symbol): Deal with it.
5598
fce30fa1
JK
5599Thu Apr 22 09:07:24 1993 Jim Kingdon (kingdon@cygnus.com)
5600
4365c36c
JK
5601 * objfiles.h (obj_section), objfiles.c (build_objfile_section_table):
5602 Add objfile field.
5603 * objfiles.c (find_pc_section): Return a struct obj_section *.
5604 * sparc-tdep.c (in_solib_trampoline): Deal with find_pc_section return.
5605 * symfile.c (syms_from_objfile) [IBM6000_TARGET]:
5606 Don't use obj_section hack.
5607 * xcoffexec (vmap_symtab): Relocate obj_sections.
5608 * printcmd.c (containing_function_bounds): Use find_pc_section.
5609
fce30fa1
JK
5610 * symtab.h: Clean up SYMBOL_VALUE comments.
5611
f2c365f5
JK
5612Wed Apr 21 14:29:57 1993 Jim Kingdon (kingdon@cygnus.com)
5613
31258e4f
JK
5614 * stack.c (print_frame_arg_vars), printcmd.c (print_frame_args):
5615 Expand comments about LOC_ARG/LOC_LOCAL pairs.
5616
f2c365f5
JK
5617 * coffread.c (read_coff_symtab): Use rewind before fseek.
5618
32d8a6d3
PB
5619Wed Apr 21 14:24:19 1993 Per Bothner (bothner@cygnus.com)
5620
5621 * ch-exp.y: Removed unused structure_primitive_value and FIXME_23.
5622 * Makefile.in: Add $(YFLAGS) when using $(YACC).
5623 * Makefile.in: Remove message to expect conflicts and unused
5624 rules in ch-exp.y, since there no longer are any such.
5625
1b5c6c05
DZ
5626Wed Apr 21 13:27:50 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
5627
5628 * stabs.texinfo: fixed bad xrefs (un-initialized statics)
5629
cee86be3
JK
5630Tue Apr 20 08:55:11 1993 Jim Kingdon (kingdon@cygnus.com)
5631
4cdcf3b9
JK
5632 * xcoffexec.c (xcoff_relocate_core): If no exec file, error()
5633 rather than dumping core.
5634
24c2857c 5635 * Makefile.in: Add ${srcdir}/ to all source files.
4cdcf3b9 5636 (alldeps.mak): Add "${srcdir}/" to files when generating alldeps.mak.
24c2857c
JK
5637 (TAGS): Deal with srcdir and new config directory scheme.
5638 createtags: Remove.
5639 Makefile.in (NONSRC): Remove createtags.
5640 alldeps.mak: Updated.
5641
cee86be3
JK
5642 * rs6000-tdep.c: Delete unused function print_frame.
5643
5644 * frame.h (struct frame_info): Doc fix for next_frame.
5645 New field signal_handler_caller.
5646 blockframe.c (create_new_frame, get_prev_frame_info),
5647 config/rs6000/tm-rs6000.h (INIT_EXTRA_FRAME_INFO): Set it (needs
5648 INIT_FRAME_PC_FIRST).
5649 stack.c (print_frame_info), rs6000-tdep.c (rs6000_frame_chain):
5650 Check it.
5651
9583b295
SG
5652Mon Apr 19 22:52:33 1993 Stu Grossman (grossman@cygnus.com)
5653
5654 * irix4-nat.c (fetch_core_registers): Special version of this for
5655 Irix 4.x, which stores regs a bit differently from other /proc
5656 based systems.
5657 * procfs.c, core-svr4.c: Move fetch_core_registers from procfs.c
5658 to new file core-svr4.c.
5659 * config/i386/i386sol2.mh, config/i386/i386v4.mh, config/m68k/amix.mh,
5660 config/i386/ncr3000.mh, config/sparc/sun4sol2.mh: Add core-svr4.o
5661 to NATDEPFILES.
5662 * config/mips/irix4.mh: Add corelow.o to NATDEPFILES.
5663
3f06498a
JK
5664Mon Apr 19 11:13:34 1993 Jim Kingdon (kingdon@cygnus.com)
5665
5666 * i387-tdep.c: Remove unused #includes.
5667
5668 * configure.in: Match i[34]86-*-sysv3.2 not i[34]86-*-sysv32.
5669
5670 * config/i386/nm-i386v.h: Define NO_PTRACE_H.
5671
058eb766
JK
5672Sun Apr 18 10:39:35 1993 Jim Kingdon (kingdon@cygnus.com)
5673
5674 * xcoffread.c: Nuke NO_DEFINE_SYMBOL code. There is no going back.
5675
5676 * stabsread.c (define_symbol): 'R' is synonym for 'P', not 'r'.
5677 xcoffread.c (process_xcoff_symbol, case C_RPSYM):
5678 Don't muck with SYMBOL_CLASS.
5679
04c6a64f
SG
5680Fri Apr 16 17:38:33 1993 Stu Grossman (grossman@cygnus.com)
5681
5682 * munch: Don't use head command. It doesn't exist everywhere.
5683
9c225659
FF
5684Fri Apr 16 15:07:57 1993 Fred Fish (fnf@cygnus.com)
5685
5686 * inflow.c (new_tty): Remove spurious 'o' character at end
5687 of #endif line.
5688
e157305c
PS
5689Fri Apr 16 12:27:11 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
5690
5691 * mips-tdep.c (mips_skip_prologue): Always skip the typical prologue
5692 instructions and nothing more.
5693 * mipsread.c (add_line): Add comment why we have to combine line number
5694 entries for the same line number.
5695
0b28c260
JK
5696Fri Apr 16 09:42:03 1993 Jim Kingdon (kingdon@cygnus.com)
5697
5698 * symtab.{c,h}: Doc fixes (remove symseg references, last relevant
5699 in gdb 2.8!).
5700
dd052d9a
FF
5701Thu Apr 15 21:16:58 1993 Fred Fish (fnf@cygnus.com)
5702
5703 * depend, alldeps.mak: Update, now that gcc -MM bug is fixed.
5704
9fa59efd
JK
5705Thu Apr 15 12:38:39 1993 Jim Kingdon (kingdon@cygnus.com)
5706
5707 * source.c (select_source_symtab): Clean up comment. Also, if
5708 we have a current_source_symtab, and s is NULL, return without
5709 doing anything.
5710 xcoffread.c (xcoff_symfile_read): Don't call select_source_symtab.
5711 breakpoint.c (breakpoint_re_set): Don't call select_source_symtab.
5712
65ce5df4
JG
5713Thu Apr 15 02:37:48 1993 John Gilmore (gnu@cacophony.cygnus.com)
5714
5715 * dbxread.c (unknown_symchar_complaint): Add new complaint.
6f49b01e 5716 * stabsread.h: Declare it.
65ce5df4
JG
5717 * partial-stab.h: Use it.
5718
5719 * utils.c (malloc_botch): Don't forward-declare if NO_MMALLOC.
5720
486b440e
JK
5721Wed Apr 14 17:12:51 1993 Jim Kingdon (kingdon@cygnus.com)
5722
df2a1bd7
JK
5723 * stack.c (print_frame_info): Print specially if dummy frame.
5724
fa99ebe1
JK
5725 * breakpoint.c: Add comments regarding within_scope future direction.
5726
ee7e82fe
JK
5727 * Version 4.8.3.
5728
486b440e
JK
5729 * xcoffread.c (record_include_{begin,end}): Change fatal to complain.
5730
5731Wed Apr 14 14:03:18 1993 Per Bothner (bothner@cygnus.com)
5732
5733 * ch-exp.y: Fix thinko that broke parsing of FALSE.
5734
39cb3d04
PS
5735Wed Apr 14 12:49:29 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
5736
5737 * stabsread.c (read_member_functions): Initialize domain for stubbed
5738 member functions to avoid gdb core dumps when printing pointers
5739 to member functions.
5740 * cp-valprint.c (cp_print_class_method): Check for stubbed member
5741 functions.
5742
ccd87bf2
JK
5743Tue Apr 13 08:28:26 1993 Jim Kingdon (kingdon@cygnus.com)
5744
e2ff731b
JK
5745 * expprint.c (print_subexp): If opcode not found in op_print_tab,
5746 stop with an error().
5747 eval.c (evaluate_subexp): Change error message.
5748
ccd87bf2
JK
5749 * objfiles.c (build_objfile_section_table): Cast return value
5750 from obstack_finish.
5751
0a62ff36
JK
5752Mon Apr 12 10:53:50 1993 Jim Kingdon (kingdon@cygnus.com)
5753
f3649227
JK
5754 * config/rs6000/tm-rs6000.h, rs6000-tdep.c: Move FRAME_CHAIN
5755 to rs6000_frame_chain and deal with it if we're in a signal handler.
5756 (FRAME_SAVED_PC): Use rs6000_frame_chain.
5757
0a819c04
JK
5758 * breakpoint.c (within_scope): New function.
5759 (enable_breakpoint, watchpoint_check): Use it.
5760
affc9686
JK
5761 * source.c (openp): Handle "exec-file ./ls" correctly.
5762
0a62ff36
JK
5763 * breakpoint.c (breakpoint_1): Use wrap_here before "at".
5764
5a7c9cce
PB
5765Sat Apr 10 01:32:43 1993 Per Bothner (bothner@rtl.cygnus.com)
5766
5767 * ch-exp.y: Clean up lexing of identifiers and
5768 reserved words. (E.g. don't recognize FALSEXXX as the
5769 keyword FALSE followed by the identifier XXX.)
5770 Also, convert identifiers to lower case.
5771
1724c671
SG
5772Fri Apr 9 15:53:19 1993 Stu Grossman (grossman@cygnus.com)
5773
5774 * remote-mips.c, remote-monitor.c, remote-st2000.c: Convert to
5775 new serial interface.
5776
4febd102
SG
5777Fri Apr 9 15:01:12 1993 Stu Grossman (grossman@cygnus.com)
5778
5779 * remote.c (remote_open): Use SERIAL_OPEN instead of serial_open.
5780 (putpkt, getpkt): Use new return codes for SERIAL_READCHAR.
5781 * ser-go32.c: Return -1 on most failures, 0 on most successes,
5782 and use new return codes for go32_readchar().
5783 * ser-unix.c: Ditto. Also, move error handling up to caller for
5784 SERIAL_SETBAUDRATE().
5785 * serial.c (serial_open): Internal call, not SERIAL_OPEN to get
5786 to specific routine.
5787 (serial_close): New routine to wrap around device close routine.
5788 serial.h: Clean & document return values more clearly.
5789
a80c7bf6
JK
5790Fri Apr 9 10:20:55 1993 Jim Kingdon (kingdon@cygnus.com)
5791
944c1c2f
JK
5792 * rs6000-pinsn.c (print_operand): Deal with no operand instructions.
5793
5794 * rs6000-pinsn.c (print_operand, case LI): Print condition register
5795 operand in decimal rather than wrong textual versions.
5796
21486670
JK
5797 * printcmd.c (_initialize_printcmd): Clean up docstring for "x"
5798 (mention 't', remove false thing about 'g' only good with 'f').
5799
ddc6e6f7
JK
5800 * breakpoint.h: move "struct breakpoint" and friends to top of
5801 file so that bpstat_find_breakpoint prototype works.
5802
a80c7bf6
JK
5803 * solib.c (struct so_list): Add bfd field.
5804 (solib_map_sections): Leave bfd open and scratch_pathname allocated.
5805 Put the bfd in bfd field of the so_list.
5806 (clear_solib): Free bfd name and close_bfd on the bfd.
5807
47f366bc
PB
5808Fri Apr 9 00:45:41 1993 Per Bothner (bothner@rtl.cygnus.com)
5809
5810 * valarith.c (value_subscript): Add COERCE_REF.
5811 * ch-exp.y (operand_5): We can generalize the 2nd operand
5812 of a string repetition ot 'literal' without ambiguity.
5813
cabd4da6
JK
5814Thu Apr 8 10:15:10 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
5815
5816 * breakpoint.h (struct bpstat): Remove momentary field.
5817 Remove bpstat_momentary_breakpoint. This was always kludgy
5818 and is no longer used.
5819
5820 * breakpoint.h: Add enum bpstat_what.
5821 breakpoint.h (struct bpstat), breakpoint.c (bpstat_stop_status):
5822 stop and print fields of bpstat now per-breakpoint, not just
5823 one for the whole chain.
5824 breakpoint.{c,h} (bpstat_what): New function.
5825 breakpoint.h: Remove bpstat_stop and bpstat_should_print.
5826 infrun.c: Replace switch (stop_bpstat->breakpoint_at->type)
5827 with call to bpstat_what.
5828 README: Remove watchpoint/breakpoint bug from known bugs.
5829
5830 * breakpoint.h: Prototype bpstat_find_breakpoint.
5831
dfbfbd96
FF
5832Thu Apr 8 16:01:21 1993 Fred Fish (fnf@cygnus.com)
5833
5834 * symtab.c (find_methods, gdb_mangle_name): Note that functions
5835 are g++ specific.
5836 * symtab.h (VTBL_FNADDR_OFFSET, OPNAME_PREFIX_P, VTBL_PREFIX_P,
5837 DESTRUCTOR_PREFIX_P): Note that macros are g++ specific.
5838
5839Thu Apr 8 12:45:32 1993 Ian Lance Taylor (ian@cygnus.com)
5840
5841 * i960-pinsn.c (tabent): Copied struct definition from
5842 opcodes/i960-dis.c.
5843
ca6a826d
PS
5844Thu Apr 8 10:34:37 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
5845
5846 * symtab.h (DESTRUCTOR_PREFIX_P): New macro to check if physname
5847 is a C++ destructor.
5848 * symtab.c (gdb_mangle_name): Use it.
5849 * symtab.c (find_methods): Do not add destructors to choice list
5850 for constructors.
5851 * symtab.c (decode_line_1): Make breakpoints on destructors work
5852 for gcc-2.x again.
5853
40b56283
SG
5854Wed Apr 7 18:43:09 1993 Stu Grossman (grossman@cygnus.com)
5855
b83bf6b3
SG
5856 * ser-go32.c: Make it use serial port name.
5857 * go32-xdep.c: Put in def for strlwr, needed by dir.o in go32 libc.
5858
40b56283
SG
5859 * infcmd.c (read_pc): Make sure that we read PC_REGNUM when not
5860 in a system call!
5861
41faa775
SG
5862Wed Apr 7 15:52:11 1993 Stu Grossman (grossman@cygnus.com)
5863
5864 * configure.in: Only configure sparclite subdir when target_cpu
5865 is sparclite.
5866
f635bd47
JK
5867Wed Apr 7 10:11:22 1993 Jim Kingdon (kingdon@cygnus.com)
5868
ef5b809c
JK
5869 * xcoffread.c (struct coff_symbol): Change c_sclass to unsigned char.
5870 Remove FIXME comment regarding this.
5871
47045b36
JK
5872 * symfile.h: Change NULL->'\0' in comment (that wasn't a typo).
5873
f635bd47
JK
5874 * xcoffread.c (read_xcoff_symtab): Use E_SYMNMLEN.
5875
73d0fc78
RP
5876Tue Apr 6 22:30:58 1993 K. Richard Pixley (rich@cygnus.com)
5877
5878 Add section table to objfile struct. Use it for find_pc_section.
5879 * objfiles.c (add_to_objfile_sections,
5880 build_objfile_section_table, find_pc_section): new functions.
5881 (allocate_objfile): build section table.
5882 * objfiles.h (struct obj_section): new structure.
5883 (struct objfile): add section table.
5884 (find_pc_section): new prototype.
5885 * solib.[ch] (find_pc_section_from_so_list): removed.
5886 * sparc-tdep.c: include objfiles.h for find_pc_section. include
5887 symfile.h for objfiles.h.
5888 (in_solib_trampoline): adjusted for new find_pc_section
5889 prototype. Removed BAD_RICH_HACK ifdefs.
5890 * symfile.c (syms_from_objfile): offset objfile sections.
5891 (find_pc_section): removed. Also removed BAD_RICH_HACK ifdefs.
5892 * symfile.h (find_pc_section): prototype removed. Also fixed
5893 comment typo NUL -> NULL.
5894 * target.[ch] (find_pc_section_from_targets): removed.
5895 * config/sparc/tm-sun4sol2.h (BAD_RICHH_HACK): removed.
5896
07861607
SG
5897Tue Apr 6 21:41:13 1993 Stu Grossman (grossman@cygnus.com)
5898
5899 * ser-go32.c: Format. (go32_open): Use proper return value.
5900
5901 * configure.in: Undo conditional configdirs hack for sparclite.
5902
118ec55a
JW
5903Tue Apr 6 17:07:37 1993 Jim Wilson (wilson@sphagnum.cygnus.com)
5904
5905 * symtab.c (list_symbols): When call break_command, pass both
5906 filename and function name not just function name.
5907
5908Tue Apr 6 15:00:09 1993 Fred Fish (fnf@cygnus.com)
5909
5910 (Changes and new files to make "none" a full fledged configuration)
5911 * config/none/{nm-none.h, tm-none.h, xm-none.h}: New files.
5912 Currently only tm-none.h has any meaningful contents.
5913 * config/none/none.mh (NAT_FILE): Use nm-none.h
5914 * config/none/none.mh (XM_FILE): Use xm-none.h
5915 * config/none/none.mt (TM_FILE): Use tm-none.h
5916 * Makefile.in (depend): Remove comment about parse errors in
5917 valops.c, it now parses correctly and generates a correct depend
5918 line. Remove line that touches xm.h, tm.h, and nm.h; they are
5919 now linked to config/none/{xm-none.h, tm-none.h, nm-none.h}.
5920
786757a9
JK
5921Tue Apr 6 09:54:29 1993 Jim Kingdon (kingdon@cygnus.com)
5922
9925b928
JK
5923 * values.c (USE_STRUCT_RETURN): Only use gcc wierdness for gcc1.
5924
786757a9
JK
5925 * xcoffread.c (read_xcoff_symtab): Deal correctly with symbols of
5926 exactly 8 characters.
5927
0c101d49
SG
5928Tue Apr 6 10:31:26 1993 Stu Grossman (grossman@cygnus.com)
5929
5930 * configure.in: Sparclite uses sparc config dir. Also has it's
5931 own tm- & .mt files now. Also add sparclite to configdirs.
5932 * go32-xdep.c: Dummy routines for sigsetmask & strlwr.
5933 * config/i386/go32.mh: Nullify def of TERMCAP.
5934 * config/i386/xm-go32.h: Get rid of redef of EIO.
5935 * config/sparc/{sparclite.mh tm-sparclite.h}: New sparclite
5936 specific configs. Very similar to sun4os4, but without solib.
5937 * sparclite/{Makefile.in configure.in}: First cut at making this
5938 dir configgable.
5939
5d2b030a
SG
5940Tue Apr 6 03:10:44 1993 Stu Grossman (grossman@cygnus.com)
5941
5942 * ser-go32.c: First cut at adapting to new serial interface.
5943
4e772f44
SG
5944Mon Apr 5 22:29:43 1993 Stu Grossman (grossman@cygnus.com)
5945
5946 * Makefile.in (SFILES OBS): Add serial.[co] & ser-hardwire.[co].
5947 These implement a new serial line interface for talking to remote
5948 targets.
5949 * configure.in: Link ser-hardwire.c to ser-unix.c for all hosts,
5950 EXCEPT go32, which gets ser-go32.c.
5951 * remote.c: Use new serial interface. More remote-xxx's to be
5952 converted later.
5953 * ser-bsd.c, ser-termios.c: Removed.
5954 * serial.c: New. Implements common operations for all serial
5955 types.
5956 * ser-unix.c: New. Unix specific serial operations for various
5957 flavors of Unix (Posix, SysV, BSD).
5958 * serial.h: Generic serial interface defs.
5959 * config/i386/go32.mh, config/i386/i386bsd.h,
5960 config/m68k/apollo68b.mh, config/sparc/sun4os4.mh: Remove
5961 ser-bsd.o from XDEPFILES. All the magic is now handled in
5962 configure.in.
5963
9acdb2dc
SG
5964Mon Apr 5 20:48:54 1993 Stu Grossman (grossman@cygnus.com)
5965
5966 * config/h8500/tm-h8500.h: Clean up brain damage found by GCC.
5967
0848ad1c
JK
5968Fri Apr 2 08:23:14 1993 Jim Kingdon (kingdon@cygnus.com)
5969
1d7e34e1
JK
5970 * xcoffread.c (xcoff_symfile_offsets): Use 0 not addr for offsets.
5971
b0e932ad 5972 * rs6000-tdep.c (frameless_function_invocation): Don't even think
1d7e34e1 5973 about framelessness except on the innermost frame.
b0e932ad 5974
0848ad1c
JK
5975 * xcoffexec.c: Call fatal() not abort().
5976
5977 * stabsread.c (patch_block_stabs): If stab & no symbol, make
5978 a LOC_OPTIMIZED_OUT symbol.
5979 symtab.h (enum address_class): Add LOC_OPTIMIZED_OUT.
5980 findvar.c (read_var_value), printcmd.c (address_info),
5981 symmisc.c (print_{,partial_}symbol), c-exp.y (variable),
5982 m2-exp.y (yylex): Deal with it.
0848ad1c 5983 ch-exp.y (yylex): Deal with it.
0848ad1c
JK
5984
5985Thu Apr 1 18:43:02 1993 Stu Grossman (grossman@cygnus.com)
5986
5987 * findvar.c (value_from_register): H8500 specific, check to see
5988 if we are looking at short pointer. If so, skip crock.
5989 * h8500-tdep.c (h8500_frame_chain): Mask down value from
5990 read_memory_integer() to avoid getting messed up by sign extension.
5991
0e184833
RP
5992Thu Apr 1 16:44:41 1993 K. Richard Pixley (rich@rtl.cygnus.com)
5993
5994 * sparc-tdep.c (in_solib_trampoline), symfile.c (find_pc_section):
5995 ifdef protect using BAD_RICH_HACK. This should be removed soon.
5996 * config/sparc/tm-sun4sol2.h (BAD_RICH_HACK): define.
5997
a6cead71
JK
5998Thu Apr 1 09:01:38 1993 Jim Kingdon (kingdon@cygnus.com)
5999
720b3aed
JK
6000 * i960-pinsn.c, a29k-pinsn.c: Much abridged, just use libopcodes.a.
6001
6002 * core.c (dis_asm_print_address): New function.
6003
a6cead71
JK
6004 * core.c (dis_asm_read_memory): Reinstate 4th arg. The prototype
6005 has been fixed.
6006
494503c7
PS
6007Thu Apr 1 09:34:43 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
6008
6009 * breakpoint.c (bpstat_print, bpstat_stop_status): Change to walk the
6010 entire breakpoint chain and print only the first entry that needs to
6011 be printed and needs to be stopped for. Fixes problems with printing
6012 of multiple breakpoints with different conditions.
6013 * breakpoint.c (print_it_done): Renamed from print_it_noop as it
6014 effectively stops printing of the breakpoint chain.
6015 * breakpoint.c (print_it_noop): New routine to print nothing
6016 for this breakpoint entry and dont stop printing.
6017 * breakpoint.c (breakpoint_re_set_one): mention the reevaluated
6018 watchpoint only if it is enabled.
6019 * mipsread.c (parse_procedure): Correct incorrect setjmp procedure
6020 descriptor from the library to make backtraces through setjmp work.
6021 * mipsread.c (fixup_sigtramp): Correct pcreg and fregoffset for
6022 sigtramp.
6023 * mips-tdep.c (read_next_frame_reg): Provide correct values for
6024 all registers saved within sigtramp, cleanup.
6025
f7ed13c7
JK
6026Wed Mar 31 12:52:12 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
6027
6028 * sparc-pinsn.c: Much abridged, just calls version in libopcodes.a.
6029
bf097a0b
RP
6030Wed Mar 31 21:23:41 1993 K. Richard Pixley (rich@rtl.cygnus.com)
6031
6032 * core.c (dis_asm_read_memory): drop fourth arg which conflicts
6033 with prototype in ../include/dis-asm.h.
6034
5d0734a7
JK
6035Wed Mar 31 12:52:12 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
6036
6037 * core.c (dis_asm_{read_memory,memory_error}): New functions.
6038 m68k-pinsn.c, h8500-tdep.c, i386-pinsn.c, mips-pinsn.c, z8k-tdep.c:
6039 Use read_memory_func interface to disassembler.
6040
2093fe68
RP
6041Tue Mar 30 15:46:14 1993 K. Richard Pixley (rich@rtl.cygnus.com)
6042
6043 Teach sparc solaris to next over shared library functions.
6044 * solib.[hc] (find_pc_section_from_so_list): new function and
6045 prototype.
6046 * sparc-tdep.c (in_solib_trampoline): new function.
6047 * symfile.[hc] (find_pc_section): new function and prototypes.
6048 * target.[hc] (find_pc_section_from_targets): new function and
6049 prototypes.
6050 * config/sparc/tm-sun4sol2.h (IN_SOLIB_TRAMPOLINE): redefine to
6051 in_solib_trampoline.
6052
b27be792
JK
6053Tue Mar 30 08:06:24 1993 Jim Kingdon (kingdon@cygnus.com)
6054
deae7611
JK
6055 * infrun.c (wait_for_inferior): Revise comment.
6056
359a097f
JK
6057 * command.c (do_setshow_command): Use %u with var_{u,z}integer.
6058
6059 * command.{c,h}: New var_type var_integer.
6060 main.c: Use it for history_size.
6061
6062 * rs6000-tdep.c, xcoffexec.c, config/rs6000/xm-rs6000.h, breakpoint.c:
6063 Lint and byte-order fixups.
6064
3f031adf
JK
6065 * breakpoint.c (print_it_normal): Return 0 after hitting watchpoint.
6066
8af68e4e
JK
6067 * breakpoint.h (bpstat): New field print_it.
6068 breakpoint.c (bpstat_print): Use it.
6069 (print_it_normal): New function (from old bpstat_print code).
6070 (bpstat_{alloc,stop_status}): Set print_it field.
6071
6072 * breakpoint.c (bpstat_stop_status): Use catch_errors when
6073 evaluating watchpoint condition, via new function watchpoint_check.
6074 Also stop if watchpoint disabled due to leaving its block.
6075
b27be792
JK
6076 * findvar.c [REG_STRUCT_HAS_ADDR]: Add comment.
6077
aa66fddd
PS
6078Tue Mar 30 00:14:38 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
6079
6080 * mips-pinsn.c: Add missing include of dis-asm.h.
6081
d7d35f00
FF
6082Mon Mar 29 15:03:25 1993 Fred Fish (fnf@cygnus.com)
6083
239121e2
FF
6084 * Makefile.in (clean, distclean, realclean): Recursively apply
6085 to subdirs first, rather than last. This avoids, for example,
6086 Makefile being removed in a parent directory before the recursive
6087 make is run.
6088
141ccc03
FF
6089 * alldeps.mak, depend: Update for below changes.
6090
2225eb85
FF
6091 * config/m68k/tm-m68k.h: Renamed from config/m68k/tm-68k.h.
6092 * m68k/{tm-3b1.h, tm-altos.h, tm-amix.h, tm-es1800.h,
6093 tm-hp300bsd.h, tm-hp300hpux.h, tm-isi.h, tm-news.h, tm-os68k.h,
6094 tm-st2000.h, tm-sun2.h, tm-sun3.h, tm-vx68.h}: Include tm-m68k.h
6095 instead of tm-68k.h.
6096 * Makefile.in (HFILES): tm-68k.h renamed to tm-m68k.h.
6097 * README, a29k-pinsn.c, m68k-pinsn.c, m68k-stub.c, remote-vx.c,
6098 m68k/{altos.mh, altos.mt, apollo68b.mh, nm-apollo68b.h,
6099 nm-hp300bsd.h, config/m68k/xm-apollo68b.h}: Map '68k' to 'm68k'.
6100 * a29k/tm-a29k.h, doc/gdbint.texinfo: Account for renaming of
6101 tm-68k.h to tm-m68k.h.
6102 * m68k/m68k-fp.mt (TM_FILE): tm-68k-fp.h renamed to tm-m68k-fp.h.
6103 * m68k/m68k-nofp.mt (TM_FILE): tm-68k-nofp.h renamed to
6104 tm-m68k-nofp.h.
6105
d7d35f00
FF
6106 * config/a29k/tm-a29k.h: Renamed from config/a29k/tm-29k.h.
6107 * a29k-pinsn.c: Renamed from am29k-pinsn.c.
6108 * a29k-tdep.c: Renamed from am29k-tdep.c.
6109 * remote-eb.c, config/a29k/tm-ultra3.h: Include renamed tm-a29k.h.
6110 * remote-monitor.c, remote-st2000.c, config/a29k/{nm-ultra3.h,
6111 tm-a29k.h, xm-ultra3.h}, config/romp/rtbsd.mh, doc/gdbinv-s.texi,
6112 testsuite/gdb.t15/funcargs.exp, testsuite/gdb.t17/callfuncs.exp:
6113 Map '29k' to 'a29k'.
6114 * config/a29k/{a29k-kern.mt, a29k-udi.mt, a29k.mt, ultra3.mt}
6115 (TDEPFILES): Use renamed a29k-pinsn.o and a29k-tdep.o.
6116 * config/a29k/{a29k-udi.mt, a29k.mt} (TM_FILE): Use renamed
6117 tm-a29k.h.
6118 * config/a29k/a29k-udi.mt (MT_CFLAGS): Remove TARGET_AM29K
6119 define that does not appear anywhere else in the gdb source tree.
6120 * doc/gdbinit.texinfo: Document renaming of tm-29k.h to tm-a29k.h.
6121
ad376893
JK
6122Mon Mar 29 13:55:29 1993 Jim Kingdon (kingdon@cygnus.com)
6123
2225eb85
FF
6124 * breakpoint.c: Add comments regarding breakpoint_re_set.
6125
e5c00760
JK
6126 * xcoffread.c (sort_syms, compare_symbols): Remove.
6127 (xcoff_symfile_read): Use sort_all_symtab_syms from symfile.c
6128 not our own sort_syms (it is identical).
6129
ad376893
JK
6130 * xcoffread.c: Nuke NAMES_HAVE_DOT define (not used).
6131
0b0d6c3f
PS
6132Sun Mar 28 11:24:37 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
6133
6134 * breakpoint.c (breakpoint_re_set_one): Fix storage leak.
6135 * breakpoint.c (enable_breakpoint): Don't enable watchpoint if it
6136 went out of scope.
6137 * exec.c (exec_close): Fix storage leak.
6138 * exec.c (exec_file_command): Make sure that bfd doesn't realign the
6139 output sections when patching an executable.
6140 * mips-nat.c (store_inferior_registers): Use REGISTER_PTRACE_ADDR
6141 when writing all registers.
6142 * mips-tdep.c (mips_push_dummy_frame): Save floating point registers
6143 at the right offset in the dummy frame.
6144 * mipsread.c (psymtab_to_symtab_1): Do not complain for stProc,
6145 stStaticProc and stEnd symbols as they are generated by gcc-2.x.
6146 * mipsread.c (mipscoff_new_init): Initialize stabsread and buildsym.
6147
0f0834c5
JG
6148Fri Mar 26 15:25:05 1993 John Gilmore (gnu@cygnus.com)
6149
6150 * Makefile.in (TARFILES): Avoid trailing backslash.
6151
2d313932
JK
6152Fri Mar 26 11:29:30 1993 Jim Kingdon (kingdon@cygnus.com)
6153
d7d35f00
FF
6154 * breakpoint.{c,h}: Add exp_string to struct breakpoint and use
6155 it in breakpoint_re_set.
2d313932
JK
6156 * breakpoint.c (watch_command, enable_breakpoint): Fetch lazy values.
6157
6158 * rs6000-tdep.c (single_step): Misc cleanups (CORE_ADDR not int,
6159 don't use sizeof(int) for target stuff, etc).
6160
53f6119f 6161Thu Mar 25 15:03:53 1993 Fred Fish (fnf@cygnus.com)
3c02636b 6162
53f6119f
FF
6163 * alldeps.mak, configure.in, i860-break.h, i860-opcode.h,
6164 i860-pinsn.c, i860-tdep.c, config/i860/*: Remove incomplete i860
6165 support that can't be integrated anyway due to lack of clear
6166 authorship.
3c02636b 6167
ccf1e898
SG
6168Thu Mar 25 12:26:50 1993 Stu Grossman (grossman@cygnus.com)
6169
6170 * findvar.c (read_register, write_register): Make these capable
6171 of reading/writing registers that are shorter than REGISTER_TYPE.
6172 * (value_from_register): Install H8500 specific code to return
6173 proper value when register is being used as a pointer.
6174 * h8500-tdep.c: Remove extra defines of NUM_REGS.
6175 (h8500_skip_prologue): Use correct lengths for LINK instructions.
6176 (FRAME_CHAIN): Change name to h8500_frame_chain. Rewrite code to
6177 chain frames properly by combining frame pointer with T reg.
6178 (init_extra_frame_info): Delete. It's now a macro.
6179 (frame_args_address): Don't add PTR_SIZE. Stack args are already
6180 offset by the correct amount off of the frame pointer.
6181 (register_byte): Delete. It's now a macro.
6182 (register_raw_size, register_virtual_size): Delete. Replaced by
6183 common routine h8500_register_size, cuz there's no difference
6184 between the raw & virtual sizes on this machine.
6185 (register_convert_to_raw, register_convert_to_virtual): Delete,
6186 cuz there's no difference between the raw & virtual forms.
6187 Replaced by memcpy in tm file.
6188 (register_virtual_type): Rename to h8500_register_virtual_type.
36b1d528 6189 Get rid of pointer pseudo-regs, use _REGNUM with all reg names.
ccf1e898
SG
6190 (_initialize_h8500_tdep): Get rid of crock to ensure that GDB &
6191 emulator have same reg offsets. This is all handled in the
6192 simulator code now.
6193 (h8500_trapped_internalvar): New routine to detect references to
6194 convenience vars acting as pointer pseudo-regs.
6195 (h8500_value_trapped_internalvar): Conjure up value of pointer
6196 pseudo-regs.
6197 (h8500_set_trapped_internalvar): Convert set value in real
6198 register references.
6199 infcmd.c (read_pc, write_pc): Add h8500 specific code to handle
6200 code segment register.
6201 infrun.c (proceed): Simplify. Call write_pc instead of doing it
6202 by hand.
6203 (wait_for_inferior): Add h8500 specific code to add stack segment
6204 when reading SP register.
6205 remote-sim.c (fetch_register): Spacing.
6206 tm-h8500.h: #define GDB_TARGET_IS_H8500 to make it easier to
6207 detect cruft. Redo all register manipulation stuff. Get rid of
6208 pointer pseudo-regs. (INIT_EXTRA_FRAME_INFO): Adds stack segment
6209 to frame pointer. (IS_TRAPPED_INTERNALVAL,
6210 VALUE_OF_TRAPPED_INTERNALVAR, SET_TRAPPED_INTERNALVAR): Use these
6211 to create internal vars for pointer pseudo-regs.
6212
2531303c
FF
6213Thu Mar 25 10:10:28 1993 Fred Fish (fnf@cygnus.com)
6214
6215 * Makefile.in: Numerous small changes to macro definitions
6216 and rules for building gdb distribution tree. Many macros
6217 eliminated or merged, and rules simplified.
6218 * alldeps.mak: Update.
6219 * depend: Update.
6220
b396a969
DZ
6221Wed Mar 24 13:52:29 1993 david d `zoo' zuhn (zoo at poseidon.cygnus.com)
6222
6223 * Makefile.in: recurse through SUBDIRS for dvi target too
6224
53f6119f
FF
6225Wed Mar 24 08:48:30 1993 Jim Kingdon (kingdon@cygnus.com)
6226
6227 * Clean up xcoff relocation.
6228 objfiles.h (struct objfiles): Add section_offsets, num_sections.
6229 symfile.c (syms_from_objfile), xcoffread.c (xcoff_symfile_offsets):
6230 Set them.
6231 symtab.h (struct general_symbol_info): Add section field.
6232 minsyms.c (prim_record_minimal_symbol{,_and_info}): Set it.
6233 xcoffread.c: Set section for symbols and msymbols.
6234 (struct symtab): Add block_line_section field.
6235 buildsym.c (end_symtab): Set it.
6236 (end_symtab and callers): Add section parameter.
6237 objfiles.c (objfile_relocate): New funciton.
6238 xcoffexec.c (vmap_symtab): Use it.
6239 xcoffsolib.h (struct vmap): Remove unused fields.
6240 config/rs6000/tm-rs6000.h, stack.c, xcoffexec.c: Remove
6241 CORE_NEEDS_RELOCATION, symtab_relocated.
6242 config/rs6000/tm-rs6000.h: Remove use of loadinfotext.
6243 rs6000-tdep.c: Make loadinfotext static.
6244 breakpoint.c (fixup_breakpoints): Doc fix.
6245 symtab.h (struct symtab), config/rs6000/tm-rs6000.h, buildsym.c
6246 (end_symtab): primary field replaces nonreloc.
6247
ece2e98a
JG
6248Tue Mar 23 00:10:53 1993 John Gilmore (gnu@cygnus.com)
6249
6250 * symtab.h (struct linetable_entry): Remove confusing comment.
6251
80c8fd72
DZ
6252Tue Mar 23 00:01:23 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
6253
6254 * Makefile.in: add installcheck target
6255
1a0edbc7
FF
6256Mon Mar 22 16:17:58 1993 Fred Fish (fnf@cygnus.com)
6257
6258 * config/{a29k, arm, convex, gould, h8300, i386, i860, i960, m68k,
6259 m88k, mips, none, ns32k, pa, pyr, romp, rs6000, sparc, tahoe, vax,
6260 z8k}: New directories to hold cpu specific configuration files.
6261 Naming follows gcc convention.
6262 * config/{*.mt, *.mh}: All target and host makefile fragment
6263 config files moved to an appropriate config/<cpu> subdirectory.
6264 * nm-*, xm-*, tm-*: All native, host, and target files, which
6265 get linked to nm.h, xm.h, and tm.h respectively by configure,
6266 moved to appropriate config/<cpu> subdirectory.
6267 * nm-sysv4.h, xm-sysv4.h, tm-sysv4.h, tm-sunos.h, nm-trash.h:
6268 Native, host, and target files that are common across more than
6269 one cpu architecture and included by one of the configured
6270 native, host, or target files, get moved to config directory.
6271 * Makefile.in (INCLUDE_CFLAGS): Add -I${srcdir}/config to
6272 pick up native, host, or target include files moved to one of
6273 the config subdirectories, and that are included by other files.
6274 * Makefile.in (alldeps.mak): Modify to account for new config
6275 directory structure.
6276 * alldeps.mak, depend: Update for new config directory structure.
6277 * config/*/[ntx]m-*.h: Modify all files that include other
6278 [ntx]m-*.h files to use path relative to gdb/config. I.E.
6279 "a29k/tm-ultra3.h" includes "a29k/tm-29k.h" rather than just
6280 "tm-29k.h".
6281 * remote-eb.c (tm-29k.h): Include a29k/tm-29k.h.
6282 * mipsread.c (tm-mips.h): Include mips/tm-mips.h.
6283 * i860-pinsn.c (tm-i860.h): Include i860/tm-i860.h.
6284 * configure.in: Default gdb_host_cpu to host_cpu, and remap
6285 the ones where the default is not unique or different than the
6286 config subdirectory name. Similarly, handle gdb_target_cpu.
6287 Modify configure.in as appropriate to make use of gdb_host_cpu
6288 and gdb_target_cpu to find makefile fragments and make links.
6289
5f5341a7
ILT
6290Mon Mar 22 12:36:24 1993 Ian Lance Taylor (ian@cygnus.com)
6291
6292 * mipsread.c (compare_blocks): Sort blocks with the same start
6293 address by decreasing ending address.
6294
1a3579df
PS
6295Mon Mar 22 20:36:04 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
6296
6297 * mipsread.c (parse_procedure): Save cur_fdr accross call to
6298 lookup_symbol as it might get clobbered by the call.
6299
6300 * mipsread.c (parse_partial_symbols): Use ADD_PSYMBOL_ADDR_TO_LIST.
6301 The previous code did not initialize the language field for the psymtab
6302 entry.
6303
f24c159f
JG
6304Sat Mar 20 00:33:39 1993 John Gilmore (gnu@cygnus.com)
6305
6306 * c-exp.y (parse_number): Avoid shift warning.
6307 * serial.h (struct ttystate): Declare empty one on DOS.
6308
bc0d4cb9
SG
6309Fri Mar 19 12:59:50 1993 Stu Grossman (grossman@cygnus.com)
6310
733a9015
SG
6311 * xm-sun4os4.h: Return type of free() should be void, not int.
6312
bc0d4cb9
SG
6313 * vx-share/vxWorks.h: Remove #def of NULL.
6314
deb3f296
JK
6315Fri Mar 19 11:28:18 1993 Jim Kingdon (kingdon@cygnus.com)
6316
6317 * tm-rs6000.h: Nuke no-op STAB_REG_TO_REGNUM.
6318
52f8e6a0
SC
6319Fri Mar 19 07:40:09 1993 Steve Chamberlain (sac@cygnus.com)
6320
6321 * z8k-tdep.c (print_insn): Include the new dis-asm header file.
6322
00cea52f
PB
6323Thu Mar 18 14:26:57 1993 Per Bothner (bothner@rtl.cygnus.com)
6324
6325 * ieee-float.c: Moved to ../libiberty.
6326 * ieee-float.h: Moved to ../include.
6327 * Makefile.in: Update accordingly.
6328 * i386-pinsn.c (print_insn), m68k-pinsn.c (print_insn):
6329 Convert to stubs that call disassemblers in ../opcodes/*-dis.c.
6330 * m68k-tdep.c: Removed definition of ext_format ext_format_68881;
6331 it is now in ../opcodes/m68881-ext.c.
6332 * mips-tdep.c (mips_skip_prologue): Try to skip more of the
6333 prologue (some callers _do_ care).
6334 * mips-pinsn.c (print_insn), z8k-tdep.c (print_insn): Convert to
6335 new interface of ../opcodes/*-dis.c.
6336 * ch-exp.y: Add #include <ctype.h>.
6337
b60b2e3e
JK
6338Thu Mar 18 11:57:49 1993 Jim Kingdon (kingdon@cygnus.com)
6339
c161de74
JK
6340 * xcoffexec.c (exec_close): Don't close exec_bfd twice.
6341
b60b2e3e
JK
6342 * xcoffread.c (enter_line_range): endaddr is exclusive, not inclusive.
6343
ecfd2b60
JK
6344Wed Mar 17 09:46:31 1993 Jim Kingdon (kingdon@cygnus.com)
6345
6346 * xcoffread.c (arrange_linetable): Use x{m,re}alloc not {m,re}alloc.
6347
2d8d693a
SC
6348Wed Mar 17 11:28:11 1993 Steve Chamberlain (sac@thepub.cygnus.com)
6349
6350 * z8k-tdep.c (extract_return_value, write_return_value,
6351 store_struct_return): New functions from macros in tm-z8k.h.
6352
898e13c8
FF
6353Wed Mar 17 11:23:06 1993 Fred Fish (fnf@cygnus.com)
6354
6355 * valops.c (value_arg_coerce): Apply temporary patch to
6356 fix problem with coercion of array and function types when
6357 passed as arguments to C functions, pending a more complete
6358 review of when and how coercion should be done, depending
6359 upon context and language.
6360
9d61147e
JK
6361Wed Mar 17 09:46:31 1993 Jim Kingdon (kingdon@cygnus.com)
6362
3e57da38
JK
6363 * xcoffread.c (MIN_TBTABSIZ): Change to 12.
6364
9d61147e
JK
6365 * xcoffread.c (xcoff_symfile_read): Only read stringtab and
6366 debugsec if there are a non-zero number of symbols.
6367
3021c40d
JG
6368Tue Mar 16 18:08:45 1993 John Gilmore (gnu@cygnus.com)
6369
6370 * command.c (show_user): Avoid fprintf_filtered botch (AGAIN!).
6371
8112a711
JK
6372Tue Mar 16 15:18:17 1993 Jim Kingdon (kingdon@cygnus.com)
6373
6374 * xcoffexec.c (add_vmap): Wrap symbol read in catch_errors.
6375
6376 * xcoffread.c (read_symbol_lineno): Look to end of symbols for .bf,
6377 not just 50 symbols.
6378 (symtbl_num_syms): New variable.
6379 (read_xcoff_symtab): Set it.
6380 (read_symbol_nvalue): Check for bad symno.
6381 (read_symbol_{lineno,nvalue}, callers): Don't pass symtable; it's
6382 always symtbl.
6383
e829d983
SG
6384Tue Mar 16 10:09:05 1993 Stu Grossman (grossman@cygnus.com)
6385
6386 * config/rs6000.mh: Get rid of -Dfd_set=int crock.
6387 This is defined in defs.h if necessary.
6388 * vx-share/vxWorks.h: Remove #defs of min and max.
6389 * vx-share/xdr_ld.c, vx-share/xdr_ptrace.c,
6390 vx-share/xdr_rdb.c: include defs.h.
6391
c8ade719
JK
6392Fri Mar 12 09:33:23 1993 Jim Kingdon (kingdon@cygnus.com)
6393
6394 * xcoffread.c (retrieve_tracebackinfo): Move assignment out
6395 of while condition.
6396
6397 * xcoffread.c (enter_line_range): complain() on bad endoffset.
6398 xcoffread.c: Doc fixes.
6399
6400Tue Mar 9 09:56:12 1993 Jim Kingdon (kingdon@cygnus.com)
6401
6402 * tm-rs6000.h (CORE_NEEDS_RELOCATION): Just call xcoff_relocate_core.
6403 xcoffexec.c (xcoff_relocate_core): New function.
6404 (text_adjustment): Removed.
6405 (add_vmap): Return the vmap.
6406 rs6000-tdep.c (add_text_to_loadinfo): No longer static.
6407
6408Fri Mar 5 05:22:46 1993 Jim Kingdon (kingdon@cygnus.com)
6409
6410 * xcoffsolib.h: Add objfile member to struct vmap.
6411 xcoff{exec,solib}.c: Use it, not lookup_objfile_bfd.
6412 xcoffexec.c (add_vmap): Allocate objfiles here.
6413
48a522d9
JG
6414Sun Mar 14 02:54:15 1993 John Gilmore (gnu@cygnus.com)
6415
01deac12
JG
6416 Support 68000 series without floating point.
6417
6418 * configure.in (m68000-*-{aout,elf,coff}): New configs.
48a522d9
JG
6419 * tm-68k-nofp.h: New file, lacks 68881 support.
6420 * config/m68k-nofp.mt: New file.
6421
84a05e52
JG
6422Sun Mar 14 02:30:08 1993 John Gilmore (gnu@cygnus.com)
6423
6424 Remove a few remaining underscore/no-underscore remnants from
6425 config files.
6426
6427 * config/{m68k-un.mt, sparc-un.mt}: Remove.
6428 * config/m68k-noun.mt: Rename to m68k-fp.mt.
6429 * config/sparc-noun.mt: Rename to sparc-em.mt.
6430 * tm-68k-noun.h, tm-spc-noun.h: Remove.
6431 * tm-68k-un.h: Rename to tm-68k-fp.h.
6432 * tm-spc-un.h: Rename to tm-spc-em.h.
6433 * tm-sun4sol2.h: Cleanup.
6434 * configure.in (m68k-*, sparc-* targets): Corresponding changes.
6435
961ee88e
JG
6436Sat Mar 13 14:58:22 1993 John Gilmore (gnu@cygnus.com)
6437
6438 * symmisc.c (std_in, std_out, std_err): Move initializations
6439 to runtime code, in case they aren't constant.
6440
a8172eea
RP
6441Fri Mar 12 16:23:54 1993 K. Richard Pixley (rich@cygnus.com)
6442
aa8f3210
RP
6443 * symtab.c (find_pc_symtab): some object file formats, notably
6444 mips, have holes in the address ranges of symtabs. Change
0a4a0f09 6445 this algorithm from first hit to tightest fit.
aa8f3210 6446
a8172eea
RP
6447 * mips-tdep.c (heuristic_proc_start): if we walk the pc into the
6448 fence post without finding the enclosing function, then print a
6449 warning.
6450
bd5d07d9
FF
6451Thu Mar 11 09:33:01 1993 Fred Fish (fnf@cygnus.com)
6452
5e81259d
FF
6453 * utils.c (fputs_demangled, fprint_symbol): Remove.
6454 * utils.c (fprintf_symbol_filtered): New function which combines
6455 the functionality of fputs_demangled and fprint_symbol. Uses a
6456 caller provided language parameter to select the appropriate
6457 demangler, and caller provided args to pass to the demangler.
bd5d07d9
FF
6458 * defs.h (enum language): Move further up in file so enum can
6459 be used in prototypes.
5e81259d
FF
6460 * defs.h (fputs_demangled, fprint_symbol): Remove prototypes.
6461 * defs.h (fprintf_symbol_filtered): Add prototype.
6462 * c-typeprint.c (cp_type_print_method_args): Replace calls to
6463 fputs_demangled with call to fprintf_symbol_filtered.
6464 * cp-valprint.c (demangle.h): Include
6465 * cp-valprint.c (cp_print_value_fields): Replace calls to
6466 fprint_symbol with calls to fprintf_symbol_filtered.
6467 * printcmd.c (print_frame_args): Replace call to fprint_symbol
6468 with call to fprintf_symbol_filtered.
bd5d07d9
FF
6469 * stack.c (print_frame_info): Remove obsolete code so we don't
6470 have to update fputs_demangled usage in it.
6471 * stack.c (print_frame_info, frame_info): Add language variable
5e81259d
FF
6472 to pass to fprintf_symbol_demangled and initialize it from the
6473 symbol's language. Replace calls to fputs_demangled with calls
6474 to fprintf_symbol_filtered.
6475 * symtab.c (find_methods): Replace call to fputs_demangled with
6476 call to fprintf_symbol_filtered.
5e81259d
FF
6477 * ch-valprint.c (demangle.h): Include.
6478 * ch-valprint.c (chill_print_value_fields): Replace call to
6479 fprint_symbol with call to new fprintf_symbol_filtered.
bd5d07d9 6480
f77ad505
FF
6481Wed Mar 10 17:37:11 1993 Fred Fish (fnf@cygnus.com)
6482
0b96ed06
FF
6483 * Makefile.in (VERSION): Bump version to 4.8.2.
6484
f77ad505
FF
6485 * main.c (source_command): Require an explicit pathname of file
6486 to source, since previous behavior of defaulting to gdb init file
6487 was troublesome and undocumented.
6488 * printcmd.c (disassemble_command): Add missing '{}' pair to
6489 else with two statements. Bug reported by Stephane Tsacas
6490 <slt@isoft.fr>.
6491 * symtab.c (find_pc_line): Don't complain about zero length or
6492 negative length line numbers for the moment, since we may not own
6493 the terminal when called, such as when single stepping. (FIXME)
6494 * language.h (CAST_IS_CONVERSION): True if current language is
6495 C++ as well as C. Fix from Peter Schauer.
6496 * environ.c (get_in_environ, set_in_environ, unset_in_environ):
6497 Use STREQN macro rather than bare '!strncmp()'.
6498 * environ.c (unset_in_environ): Avoid use of memcpy on
6499 overlapping memory regions, as suggested by Paul Eggert
6500 <eggert@twinsun.com>.
6501 * c-exp.y (%union struct): Remove unused ulval as suggested
6502 by Paul Eggert <eggert@twinsun.com>.
6503
6504Mon Mar 8 19:03:06 1993 Fred Fish (fnf@cygnus.com)
6505
6506 * main.c (gdbinit): Make static.
6507 * main.c (inhibit_gdbinit): Move to file scope.
6508 * main.c (main): Remove local inhibit_gdbinit.
6509 * main.c (source_command): Don't source '.gdbinit' file by
6510 default if gdb has been told to ignore it.
6511
aecc5459
ILT
6512Sun Mar 7 21:58:53 1993 Ian Lance Taylor (ian@cygnus.com)
6513
6514 * Makefile.in (MAKEOVERRIDES): Define to be empty for GNU Make
6515 3.63.
6516
19327ea5
JG
6517Fri Mar 5 17:39:45 1993 John Gilmore (gnu@cacophony.cygnus.com)
6518
aecc5459
ILT
6519 * printcmd.c (print_address_symbolic): Only print if offset
6520 is shorter than max_symbolic_offset.
6521 (initialize_printcmd): `set print max-symbolic-offset'.
6522
946f014b
JG
6523 * am29k-tdep.c (TAGWORD_ZERO_MASK): New #define.
6524 (examine_tag): Use it.
6525 (read_register_stack): Only look in the local registers for a
6526 memory address if it's between rfb and rsp; go to memory otherwise.
6527 (initialize_29k): Fix call_scratch_address doc. Remove reginv_com.
19327ea5
JG
6528 (reginv_com): Remove ancient kludge command.
6529
81029114
RP
6530Fri Mar 5 17:16:26 1993 K. Richard Pixley (rich@rtl.cygnus.com)
6531
24365af9
RP
6532 * tm-irix3.h (ZERO_REGNUM): copy this macro from tm-mips.h so that
6533 irix4 will again compile.
6534
5870d848
RP
6535 * tm-mips.h (GDB_TARGET_IS_MIPS): no longer used, now removed.
6536
81029114
RP
6537 * configure.in: accept mips-sgi-irix4* for irix4.
6538
6539Fri Mar 5 07:49:48 1993 Steve Chamberlain (sac@lisa.cygnus.com)
6540
6541 * z8k-tdep.c (print_register_hook): Lint.
6542
4966c17c
JG
6543Thu Mar 4 17:42:03 1993 John Gilmore (gnu@cygnus.com)
6544
6545 Lint fixes from Paul Eggert (eggert@twinsun.com):
6546
6547 * command.c (do_setshow_command): var_uintegers are unsigned.
6548 * sparc-tdep.c (save_insn_opcodes, restore_insn_opcodes):
6549 unsigned, since they use hex values with the high bit set.
6550
83386662
FF
6551Thu Mar 4 08:22:55 1993 Fred Fish (fnf@cygnus.com)
6552
2456bacb
FF
6553 Fixes submitted by Karl Berry (karl@nermal.hq.ileaf.com):
6554 * m88k-pinsn.c (sprint_address): Use SYMBOL_NAME macro to
6555 access symbol name.
e5bb7e61 6556 * m88k-nat-c (SXIP_OFFSET, SNIP_OFFSET, SFIP_OFFSET): Enclose
2456bacb 6557 macro definitions in parenthesis.
e5bb7e61 6558
83386662
FF
6559 * dbxread.c (dbx_symfile_init): Catch the case where there is
6560 no string table, but the only way we find out is by reading zero
6561 bytes from EOF.
6562
69a272c4
FF
6563Wed Mar 3 15:51:28 1993 Fred Fish (fnf@cygnus.com)
6564
6565 * dbxread.c (dbx_symfile_init): Make size of the string table
6566 size field a define (DBX_STRINGTAB_SIZE_SIZE). Ensure that the
6567 offset to the string table is nonzero and handle the nonexistant
6568 string table case, should it occur. Ensure that the string table
6569 size read from the file is reasonable, with a minimum lower bound
6570 of DBX_STRINGTAB_SIZE_SIZE instead of zero.
6571
b010e283
ILT
6572Wed Mar 3 07:23:03 1993 Ian Lance Taylor (ian@cygnus.com)
6573
6574 * Makefile.in: Changes to build testsuite correctly.
6575 (FLAGS_TO_PASS): Added CXX and CXXFLAGS.
6576 (CC_FOR_TARGET, CXX, CXX_FOR_TARGET): New variables.
6577 (TARGET_FLAGS_TO_PASS): New variable.
6578 (SUBDIRS): Added testsuite.
6579 (all): Build testsuite using TARGET_FLAGS_TO_PASS, so that
6580 testsuite is compiled with CC_FOR_TARGET rather than CC.
6581
45364c8a
FF
6582Tue Mar 2 17:57:56 1993 Fred Fish (fnf@cygnus.com)
6583
6985bc54
FF
6584 * dbxread.c (dbx_symfile_init): Fix for nonexistant string table,
6585 reported by mycroft@gnu.ai.mit.edu.
6586
6587 (Ultrix 2.2 support from Michael Rendell <michael@mercury.cs.mun.ca>)
6588 * configure.in (vax-*-ultrix2*): New triplet.
6589 * config/vaxult2.mh: New file.
6590 * xm-vaxult2.h: New file.
6591
45364c8a
FF
6592 * c-exp.y (parse_number): Change high_bit to unsigned.
6593 * demangle.c: Change all references to cfront to ARM, since the
6594 actual algorithm is the one specified in the Annotated Reference
6595 Manual. This was confusing users into thinking that full cfront
6596 support was implemented.
6597 * dwarfread.c (CFRONT_PRODUCER): Remove, was never really used.
6598 * eval.c (evaluate_subexp): For STRUCTOP_PTR pass the arg type
6599 directly to lookup_struct_elt_type, which will do the
6600 dereferencing itself.
6601 * gdbtypes.c (lookup_struct_elt_type): Expand comments. Fix
6602 NULL dereferencing bug for unnamed structs, comment out
6603 questionable code.
6604
fefe2ed9
JG
6605Mon Mar 1 17:54:41 1993 John Gilmore (gnu@cygnus.com)
6606
1d9449ab
JG
6607 * coffread.c (process_coff_symbol): Change PCC argument correction
6608 so that it only happens on big-endian targets; so that it only
6609 happens if the short or char argument is aligned on an int
6610 boundary; and so that it changes the location, rather than the
6611 type, of the argument. These changes tend to parallel similar
6612 (old) changes in stabsread.c.
6613
6614 * coffread.c (coff_read_enum_type): Use the specified size for
6615 enums, don't assume that they are int-sized.
6616
6617 * c-valprint.c (c_val_print): Don't assume enums are the same as
6618 ints.
6619
fefe2ed9
JG
6620 * coredep.c: Handle NO_PTRACE_H in coredep.c. Fix by Michael
6621 Rendell, <michael@mercury.cs.mun.ca>.
6622
58a66e24
FF
6623Mon Mar 1 09:25:57 1993 Fred Fish (fnf@cygnus.com)
6624
6625 * language.h (local_decimal_format_custom): Add prototype.
6626 * language.c (local_decimal_format_custom): Add function, bug
6627 reported by Robert R. Henry (rrh@tera.com).
6628
9116f7c7
JG
6629Fri Feb 26 18:33:18 1993 John Gilmore (gnu@cacophony.cygnus.com)
6630
6631 * xcoffexec.c (vmap_ldinfo): Fix "/" for '/' typo, reported
6632 by Josef Leherbauer, joe@takeFive.co.at.
6633
6634Wed Feb 24 19:17:11 1993 John Gilmore (gnu@cacophony.cygnus.com)
6635
6636 * symfile.c (syms_from_objfile), tm-29k.h, tm-3b1.h, tm-68k-un.h,
6637 tm-altos.h, tm-arm.h, tm-convex.h, tm-es1800.h, tm-h8300.h,
6638 tm-hp300bsd.h, tm-hp300hpux.h, tm-hppa.h, tm-i386bsd.h,
6639 tm-i386v.h, tm-i960.h, tm-irix3.h, tm-isi.h, tm-linux.h,
6640 tm-m88k.h, tm-merlin.h, tm-mips.h, tm-news.h, tm-np1.h, tm-pn.h,
6641 tm-pyr.h, tm-rs6000.h, tm-spc-un.h, tm-sun386.h, tm-sunos.h,
6642 tm-symmetry.h, tm-sysv4.h, tm-tahoe.h, tm-umax.h, tm-vax.h,
6643 tm-vx68.h, tm-z8k.h: Remove remnants of NAMES_HAVE_UNDERSCORE.
6644
8fbdca53
FF
6645Wed Feb 24 07:41:15 1993 Fred Fish (fnf@cygnus.com)
6646
f31e2e7a
FF
6647 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Initialize contents
6648 of demangled name fields to NULL if no demangling exists for
6649 a symbol. SYMBOL_INIT_LANGUAGE_SPECIFIC does this for new
6650 symbols if their language is known at the time they are created,
6651 but sometimes the language is not known until later.
6652
8fbdca53
FF
6653 * ch-typeprint.c (chill_print_type_base): Name changed to
6654 chill_type_print_base to match pattern for C and C++ names.
6655 * ch-typeprint.c (chill_print_type): Change "char" to "CHAR"
6656 to be consistent with other usages.
6657 * ch-typeprint.c (chill_type_print_base): Add support for
6658 printing Chill STRUCT types.
6659 * ch-valprint.c: Include values.h.
6660 * ch-valprint.c (chill_print_value_fields): New function and
6661 prototype for printing Chill STRUCT values.
6662 * ch-valprint.c (chill_val_print): Fix call to val_print_string
6663 that was being called with two args instead of three.
6664 * ch-valprint.c (chill_val_print): Call chill_print_value_fields
6665 to print Chill STRUCT values.
8fbdca53 6666
b12529c1
MW
6667Tue Feb 23 18:58:11 1993 Mike Werner (mtw@poseidon.cygnus.com)
6668
6669 * configure.in: added testsuite to configdirs.
6670
c2dc518b
MS
6671Tue Feb 23 11:46:11 1993 Mike Stump (mrs@cygnus.com)
6672
6673 * doc/stabs.texi: The `this' pointer is now known by the name
6674 `this' instead of `$t'.
6675
b6236d6e
FF
6676Tue Feb 23 11:21:33 1993 Fred Fish (fnf@cygnus.com)
6677
bb6e8fe6
FF
6678 * dwarfread.c (read_tag_string_type): Rewrite to allow forward
6679 references of TAG_string_type DIEs in user defined types.
b6236d6e
FF
6680 * ch-lang.c (chill_create_fundamental_type): Track compiler
6681 change that now emits debugging info with the type long for Chill
6682 longs.
b6236d6e 6683
c2a0f1cb
ILT
6684Mon Feb 22 15:21:54 1993 Ian Lance Taylor (ian@cygnus.com)
6685
6686 * remote-mips.c: New file; implements MIPS remote debugging
6687 protocol.
6688 * config/idt.mt: New file; uses remote-mips.c
6689 * configure.in (mips-idt-ecoff): New target; uses idt.mt.
6690
6691 * mips-tdep.c (mips_fpu): New variable; controls use of MIPS
6692 floating point coprocessor.
6693 (mips_push_dummy_frame): If not mips_fpu, don't save floating
6694 point registers.
6695 (mips_pop_frame): If not mips_fpu, don't restore floating point
6696 registers.
6697 (_initialize_mips_tdep): New function; let the user reset mips_fpu
6698 variable.
6699 * tm-mips.h (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE): If not
6700 mips_fpu, don't use fp0 as floating point return register.
6701 (FIX_CALL_DUMMY): If not mips_fpu, don't save floating point
6702 registers.
6703
bf3d2b75
MW
6704Mon Feb 22 07:54:03 1993 Mike Werner (mtw@poseidon.cygnus.com)
6705
6706 * gdb/testsuite: made modifications to testcases, etc., to allow
6707 them to work properly given the reorganization of deja-gnu and the
6708 relocation of the testcases from deja-gnu to a "tool" subdirectory.
6709
19fa4a0a
MW
6710Sun Feb 21 10:55:55 1993 Mike Werner (mtw@poseidon.cygnus.com)
6711
6712 * gdb/testsuite: Initial creation of gdb/testsuite.
6713 Migrated dejagnu testcases and support files for testing nm to
6714 gdb/testsuite from deja-gnu. These files were moved "as is"
6715 with no modifications. This migration is part of a major overhaul
6716 of dejagnu. The modifications to these testcases, etc., which
6717 will allow them to work with the new version of dejagnu will be
6718 made in a future update.
6719
cb46c402
JG
6720Fri Feb 19 18:36:55 1993 John Gilmore (gnu@cygnus.com)
6721
6722 * NEWS: Add reminders for next release.
6723
254dec35
ILT
6724Fri Feb 19 10:01:39 1993 Ian Lance Taylor (ian@cygnus.com)
6725
6726 * mipsread.c (parse_lines): Correct check for files compiled with
6727 -g1.
6728
dba02c60
JG
6729Fri Feb 19 05:56:15 1993 John Gilmore (gnu@cygnus.com)
6730
6731 * Makefile.in (VERSION): 4.8.1 to distinguish local versions.
6732
c7cb1025 6733Fri Feb 19 01:32:58 1993 John Gilmore (gnu@cygnus.com)
ead97959
JG
6734
6735 * Makefile.in (VERSION): GDB-4.8 release!
dba02c60 6736 * README, NEWS: Update for release.
ead97959 6737
b9163d1a
SG
6738Thu Feb 18 22:44:40 1993 Stu Grossman (grossman@cygnus.com)
6739
6740 * am29k-pinsn.c (print_insn): Minor nits with const.
6741 * am29k-tdep.c: More minor nits with arg types for
6742 supply_register, NULL vs. 0, read_register_gen, & reginv_com.
6743
5e3d0ab0
JG
6744Thu Feb 18 22:38:03 1993 John Gilmore (gnu@cygnus.com)
6745
6746 * gcc.patch: Update for a different GCC (G++) bug.
6747 * main.c (print_gdb_version): Update copyright year to 1993.
6748 * nm-hp300bsd.h: Decide whether this is BSD 4.3 or 4.4,
6749 conditionalize this file on it. FIXME, right way is to split
6750 these into two config files.
6751 (ATTACH_DETACH): Define for BSD 4.4
6752 (PTRACE_ARG_TYPE): caddr_t for BSD 4.4, unset for 4.3.
6753 (U_REGS_OFFSET): Revise for 4.4.
6754 (REGISTER_U_ADDR): Separate for 4.4, but it doesn't work yet.
6755 * xm-hp300bsd.h: Move definitions of UINT_MAX, INT_MAX, INT_MIN,
6756 LONG_MAX into this file to avoid cpp "redefinition" warnings.
6757
add04f8b
RP
6758Thu Feb 18 16:13:28 1993 K. Richard Pixley (rich@rtl.cygnus.com)
6759
6760 * nm-hp300bsd.h (PTRACE_ARG3_TYPE): FSF's hp300's have int* not
6761 caddr_t.
6762
c5c00171
JG
6763Thu Feb 18 04:10:06 1993 John Gilmore (gnu@cygnus.com)
6764
961ccde6
JG
6765 * c-lang.c (c_printstr): Bugfix for length==0 case.
6766
c5c00171
JG
6767 * c-lang.c (c_printstr): If a C string ends in a null, don't
6768 print the null.
6769
eece984d
SG
6770Thu Feb 18 02:39:21 1993 Stu Grossman (grossman at cygnus.com)
6771
6772 * defs.h (STRCMP): Make it work for unsigned chars.
6773
ec4bf6a0
JG
6774Thu Feb 18 01:56:06 1993 John Gilmore (gnu@cygnus.com)
6775
6776 * nm-hp300bsd.h (ATTACH_DETACH, PTRACE_ATTACH, PTRACE_DETACH): define.
6777 * config/hp300bsd.mh (REGEX, REGEX1): Define.
36b1d528 6778 * m68k-pinsn.c (BREAK_UP_BIG_DECL, AND_OTHER_PART): #if __GNUC__,
ec4bf6a0
JG
6779 define to kludge the large opcode table into two smaller tables,
6780 since GCC take exponential space to build the table. Lint.
6781 (NOPCODES): Remove, use "numopcodes" from opcode/m68k.h instead.
6782
0ae975ea
JG
6783Wed Feb 17 19:24:40 1993 John Gilmore (gnu@cygnus.com)
6784
be220da1
JG
6785 * Makefile.in (VERSION): Roll to 4.7.9.
6786 * xm-hp300bsd.h: Define PSIGNAL_IN_SIGNAL_H and put a compatible
6787 definition here, to handle both BSD 4.3 and 4.4 systems.
5824e607
JG
6788 * mipsread.c (ZMAGIC): #undef to avoid duplicate define.
6789 * remote.c (alarm): Move declaration to global level, before
6790 first reference to it.
6791 * tm-i386bsd.h (NUM_REGS): There are only eleven, not twelve.
0ae975ea
JG
6792 * dbxread.c (process_one_symbol): Cast to unsigned char, not int.
6793
8631194d
RP
6794Wed Feb 17 13:40:29 1993 K. Richard Pixley (rich@cygnus.com)
6795
fce7f2d9
RP
6796 * remote.c (readchar): forward declare alarm which otherwise looks
6797 like an undeclared variable to gcc.
6798
040b9597
RP
6799 * dbxread.c (process_one_symbol): cast enum value N_SO into int
6800 when comparing against an int. Avoids superfluous warning from
6801 vax ultrix 4.2 cc.
6802
9549404e
RP
6803 * inflow.c (set_sigint_trap): add cast to assignment from signal.
6804 Avoids superfluous warnings from some systems and/or compilers
6805 (like vax ultrix 4.2.)
6806
8631194d
RP
6807 * language.c (struct op_print unk_op_print_tab): use the enum
6808 values rather naked zeros as initializers. Avoids warnings from
6809 ultrix type compilers.
6810
f4ed8840
JG
6811Tue Feb 16 00:53:20 1993 John Gilmore (gnu@cygnus.com)
6812
6813 * Makefile.in (VERSION): Roll to 4.7.6.
6814 (SFILES_SUBDIR): Add 29k-share/udi_soc.
6815 (SFILES_SUBSUBDIR): Move 29k-share/udi files to this macro.
62e859f0
JG
6816 (alldeps.mak): Make ALLDEPFILES_SUBSUBDIR for files in sub sub dirs.
6817 (ALLDEPFILES_SUBSUBDIR): Depend on this for deeper dep files.
f4ed8840
JG
6818 (HFILES): Remove all nm-* except nm-trash.h. Add ns32k-opcode.h.
6819 (depend): Fix bug where nm-files in config files weren't noticed.
6820 (make-proto-gdb-1): Avoid changing directories while building new
6821 prototype. Build SFILES_SUBSUBDIR with longer symlinks.
6822
7c622b41
JG
6823Mon Feb 15 20:48:09 1993 John Gilmore (gnu@cygnus.com)
6824
6825 * remote.c: Improve error recovery. Allow user to break out
6826 of initial connection attempt with INTERRUPT. Treat a timeout
6827 while waiting for remote packet like a retry, unless the remote
6828 side is actively running user code. Fix a few long printf_filtered's.
6829
6830 * xcoffread.c (read_xcoff_symtab): Don't use null symbol name for
6831 trampoline symbols.
6832
6833 * buildsym.c (start_subfile): Allow null file name.
6834
e9916390
RP
6835Fri Feb 12 15:46:49 1993 K. Richard Pixley (rich@cygnus.com)
6836
6837 * xcoffread.c (process_xcoff_symbol, read_symbol_lineno): complain
6838 expects a pointer to complaint rather than a complaint
6839 structure.
6d4ea3a5
RP
6840 (process_linenos): free the previously allocated subfile name,
6841 then allocate the new one from the heap.
e9916390 6842
256b4f37
SC
6843Fri Feb 12 08:06:05 1993 Steve Chamberlain (sac@thepub.cygnus.com)
6844
6845 * h8300-tdep.c, tm-h8300.h: turn off some experimental features
6846
e5eeaaf8
JG
6847Thu Feb 11 00:59:07 1993 John Gilmore (gnu@cygnus.com)
6848
256b4f37
SC
6849 * stabsread.c (dbx_lookup_type): Handle negative type numbers.
6850 Previously, would bogusly index off the bottom of type_vector.
6851 (rs6000_builtin_type): Accept type number as argument.
6852 (read_type, case '-'): Handle negatives like any other type number.
6853
6854 * symfile.c (deduce_language_from_filename): Handle null name.
6855
015605c5
JG
6856 * mips-tdep.c (isa_NAN): Fix byte order dependency.
6857 Reported by Nobuyuki Hikichi <hikichi@sra.co.jp>,
6858 fixed by sato@sm.sony.co.jp.
6859
e5eeaaf8
JG
6860 * xcoffread.c (parmsym): Don't use an initializer to set up
6861 this struct symbol. Set it up in initialize_xcoffread.
6862 (read_xcoff_symtab, xcoff_symfile_read): Surround code that only
6863 works on real rs/6000 target with #ifndef FAKING_RS6000.
6864
dd469789
JG
6865Wed Feb 10 23:42:37 1993 John Gilmore (gnu@cygnus.com)
6866
6867 * stabsread.c (rs6000_builtin_type): Move function from
6868 xcoffread.c:builtin_type.
6869 * xcoffread.c (builtin_type): Move to stabsread. Remove
6870 IBM6000_HOST dependency. Move misplaced comments.
6871 (various): Change printf's to complaints.
6872 (patch_block_stabs, process_xcoff_symbol case C_DECL): Add
6873 objfile argument to read_type calls under #if 0.
6874 (process_xcoff_symbol case C_RSYM): Fix typo in #ifdef.
6875 * xcoffexec.c (map_vmap): Don't allocate an objfile for the exec_file.
6876 * Makefile.in: xcoffread.o is not built by default.
364c1151 6877 * xm-rs6000.h (IBM6000_HOST): Remove.
dd469789
JG
6878 * config/rs6000.mh (NATDEPFILES): xcoffread.o is native only.
6879 * doc/gdbint.texinfo: Eliminate IBM6000_HOST, document
6880 IBM6000_TARGET.
6881
733a94e8
SG
6882Wed Feb 10 18:31:20 1993 Stu Grossman (grossman at cygnus.com)
6883
6884 * findvar.c (read_var_value): If REG_STRUCT_HAS_ADDR, then set
6885 VALUE_LVAL to be lval_memory so that we don't try to modify wild
6886 register numbers when user tries to modify elements in structs
6887 passed as arguments.
6888 * inflow.c (child_terminal_info): Move banner outside of system
6889 specific #ifdefs.
6890 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Define this for HPPA, which
6891 passes struct/union arguments by address.
6892
6893Wed Feb 10 15:34:46 1993 Ian Lance Taylor (ian@cygnus.com)
6894
14b1f0d9 6895 * Based on patch from Kean Johnston <maw@netcom.com>:
733a94e8
SG
6896 * nm-i386sco4.h: New file. Like nm-i386sco.h, but define
6897 ATTACH_DETACH, PTRACE_ATTACH and PTRACE_DETACH.
6898 * config/i386sco4.mh (NAT_FILE): Use nm-i386sco4.h.
6899
79533adf
JG
6900Tue Feb 9 20:07:18 1993 John Gilmore (gnu@cygnus.com)
6901
6902 * remote-udi.c (FREEZE_MODE): Fix && for & typo. Found and
6903 fixed by Lynn D. Shumaker, shumaker@saifr00.cfsat.honeywell.com.
6904
2368ffb6
ILT
6905Tue Feb 9 08:18:07 1993 Ian Lance Taylor (ian@cygnus.com)
6906
6907 * config/i386sco4.mh (MUNCH_DEFINE): Pass -p to nm to avoid bug in
6908 cc debugging output.
6909
2a021f21
JG
6910Tue Feb 9 00:19:28 1993 John Gilmore (gnu@cygnus.com)
6911
6912 * stabsread.c (define_symbol): Complain about unrecognized names
6913 that begin with CPLUS_MARKER (often '$'), but don't die. Fix
6914 suggested by gb@cs.purdue.edu (Gerald Baumgartner).
6915 (read_cpp_abbrev): Don't use the class name as part of the
6916 vtable pointer member name (_vptr$) in $vf abbrevs or unrecognized
6917 abbrevs. Inspired by Mike Tiemann.
6918 (read_tilde_fields): Comment. Remove ancient dead code.
6919 Remove erroneous but non-dead code. Simplify. Add complaints.
6920 (in general): Remove extraneous (parentheses) in return
6921 statements.
6922
c653bc6d
JG
6923Fri Feb 5 14:01:22 1993 John Gilmore (gnu@cygnus.com)
6924
931bf12a
JG
6925 * coffread.c (coff_lookup_type): Fix fencepost error reported
6926 by Art Berggreen, <arg@opal.acc.com>.
6927
c653bc6d 6928 Fix long file name bug reported on SCO Open Desktop 2.0 by Ulf Lunde
931bf12a 6929 <Ulf.Lunde@kvatro.no> and Dag H. Wanvik <Dag.H.Wanvik@kvatro.no>:
c653bc6d
JG
6930
6931 * coffread.c (getfilename): Eliminate COFF_NO_LONG_FILE_NAMES
6932 test, which is apparently left over from when we used native
6933 include files and couldn't depend on the member names being there.
6934 * tm-3b1.h, tm-altos.h, tm-i386v.h: Don't set it.
6935
6936Thu Feb 4 12:23:15 1993 Ian Lance Taylor (ian@cygnus.com)
6937
6938 * mipsread.c: Major overhaul to use new BFD symbol table reading
6939 routines. Now swaps information as it is needed, rather than
6940 swapping everything when the file is read.
6941
b076f024
JG
6942Thu Feb 4 01:52:36 1993 John Gilmore (gnu@cygnus.com)
6943
6944 * Makefile.in (TARDIRS): Add sparclite demo dir.
6945 (*.tab.c): Change dependency on Makefile to depend on
6946 Makefile.in, otherwise it always rebuilds after configuring.
6947 Force output *.tab.c file into current directory even in "make"
6948 versions that rewrite dependent file names used in command lines.
6949
6950 * TODO: Remove some things we did.
6951 * am29k-opcode.h, convx-opcode: Remove; now in ../include/opcode.
6952 * os68k-xdep.c: Remove; useless file (os68k is a target only).
6953 * convex-pinsn.c: Use ../include/opcode/convex.h. Add CONST.
6954 * symtab.h: Eliminate unnamed unions and structs.
6955
ad89bdfd
JG
6956Wed Feb 3 14:48:08 1993 John Gilmore (gnu@cygnus.com)
6957
6958 * Makefile.in (VERSION): Roll to 4.7.5.
ad89bdfd 6959
ca5a72cd
JG
6960Tue Feb 2 20:47:42 1993 John Gilmore (gnu@cygnus.com)
6961
6962 * breakpoint.c (breakpoint_re_set_one): Handle watchpoints when
6963 re-evaluating symbol pointers.
6964
9da75ad3
FF
6965Tue Feb 2 16:10:31 1993 Fred Fish (fnf@cygnus.com)
6966
6967 * c-exp.y (lcurly, rcurly): New nonterminals.
6968 * c-exp.y (exp): Use lcurly and rcurly for arrays and UNOP_MEMVAL
6969 constructs.
6970 * parse.c (free_funcalls): Moved prototype from parser-defs.h,
6971 made function static.
6972 * parse.c (struct funcall): Moved struct def from parser-defs.h.
6973 * parse.c (funcall_chain): Moved from parser-defs.h, made static.
6974 * parse.c (start_arglist):
6975 * parser-defs.h (free_funcalls): Moved prototype to parse.c.
6976 * parser-defs.h (struct funcall): Moved struct def to parse.c.
6977 * parser-defs.h (funcall_chain): Moved to parse.c.
6978 * printcmd.c (print_frame_nameless_args): Fix prototype.
6979 * tm-mips.h (setup_arbitrary_frame): Fix prototype.
6980 * tm-sparc.h (setup_arbitrary_frame): Fix prototype.
6981 * valops.c (typecmp): Moved prototype from values.h.
6982 * value.h (typecmp): Moved prototype to valops.c, made static.
9da75ad3 6983 * ch-exp.y (yylex): Change way control sequences are disabled.
9da75ad3 6984
58bcc08c
JG
6985Tue Feb 2 16:11:43 1993 John Gilmore (gnu@cygnus.com)
6986
6987 * tm-mips.h, tm-sparc.h: Fix thinko in SETUP_ARBITRARY_FRAME.
6988
fee754c9
ILT
6989Tue Feb 2 15:30:33 1993 Ian Lance Taylor (ian@cygnus.com)
6990
6991 * mipsread.c (upgrade_type): Build array types correctly, using
6992 create_range_type and create_array_type.
6993
7dc15bb7
JG
6994Tue Feb 2 00:19:08 1993 John Gilmore (gnu@cygnus.com)
6995
58bcc08c
JG
6996 * remote-nindy.c: Cleanup.
6997
1b6a2087
JG
6998 * infrun.c (wait_for_inferior): When rolling back the PC after
6999 a breakpoint, call write_pc so that NPC gets rolled back as well
7000 (for the 29K).
7001
d122f257
JG
7002 * blockframe.c (inside_entry_file, inside_main_func,
7003 inside_entry_func): PC of zero is always "bottom of stack".
7004
7dc15bb7
JG
7005 * printcmd.c (print_frame_args, print_frame_nameless_args):
7006 Let print_frame_nameless_args decide whether there are any,
7007 laying groundwork for possibly later printing 29K args for
7008 functions where we have tag words but no symbols.
7009
2b21d8aa
RP
7010Mon Feb 1 18:09:58 1993 Roland H. Pesch (pesch@fowanton.cygnus.com)
7011
7012 * Makefile.in: fix GDB doc targets for new doc subdir structure
7013
07c2fa3e
JG
7014Mon Feb 1 17:56:47 1993 John Gilmore (gnu@cygnus.com)
7015
7016 * stack.c (parse_frame_specification): Parse as many arguments
7017 as there are (up to MAXARGS). Pass all of them in argc, argv
7018 format to SETUP_ARBITRARY_FRAME. Put the burden of checking how
7019 many there were, onto SETUP_ARBITRARY_FRAME.
7020 * tm-mips.h, tm-sparc.h: Corresponding changes.
7021 * mips-tdep.c, sparc-tdep.c: Ditto.
7022
6edd74ae
JG
7023Mon Feb 1 17:19:37 1993 John Gilmore (gnu@cygnus.com)
7024
7025 * hp300ux-nat.c: Update copyrights.
7026 * mipsread.c (parse_partial_symbols): Complain about block
7027 indexes that go backwards. Fix from Peter Schauer.
7028 * symfile.c (syms_from_objfile, symbol_file_add): Allow a
7029 symbol-file that has no linkage symbols to be read.
7030 * tm-rs6000.h, xm-rs6000.h: (SIGWINCH_HANDLER and friends): Move
7031 from tm- file to xm-file, since they're host dependent.
7032 * valarith.c (value_binop): Typo.
797bc12b 7033
6edd74ae 7034Mon Feb 1 16:16:59 1993 Stu Grossman (grossman at cygnus.com)
797bc12b
SG
7035
7036 * sparclite/aload.c: Add copyleft.
7037 * sparclite/crt0.s: Add comment at beginning.
7038
2431d063
SC
7039Mon Feb 1 14:36:11 1993 Steve Chamberlain (sac@thepub.cygnus.com)
7040
7041 * remote-z8k.c, z8k-tdep.c: support for the Z8001 and Z8002.
7042 * parse.c (std_regs): Only declare if NO_STD_REGS is defined.
7043
d112a0c6
MT
7044Sun Jan 31 04:32:48 1993 Michael Tiemann (tiemann@rtl.cygnus.com)
7045
7cb0f870
MT
7046 * values.c (value_headof): Fix typo in which VTBL and ARG were
7047 being confused for one another.
7048
a163ddec
MT
7049 * valops.c (typecmp): Now static.
7050
edf67bd1
MT
7051 * gdbtypes.c (fill_in_vptr_fieldno): Don't ignore the first
7052 baseclass--we don't always inherit its virtual function table
7053 pointer.
7054
271e5030
MT
7055 * eval.c (evaluate_subexp): In OP_FUNCALL case, adjust `this'
7056 pointer correctly in case value_struct_elt moves it around.
7057
7058 * valops.c (typecmp): Now static. Also, now groks references
7059 better.
7060
d112a0c6 7061 * gdbtypes.c (lookup_struct_elt_type): Pass NOERR instead of
271e5030 7062 zero on recursive call. If NAME is the name of TYPE, return TYPE.
d112a0c6 7063
3d9b9577
JG
7064Sat Jan 30 19:55:52 1993 John Gilmore (gnu@cygnus.com)
7065
ec68a93f
JG
7066 * hppah-nat.c: Eliminate <sys/user.h> and other unnecessary stuff,
7067 to avoid "too much defining" error from native C compiler (!).
7068
3d9b9577
JG
7069 * Makefile.in (HFILES): Add typeprint.h.
7070 * typeprint.[ch]: Update copyrights.
7071
926d7800
JG
7072Thu Jan 28 19:09:02 1993 John Gilmore (gnu@cygnus.com)
7073
bdec39b3
JG
7074 * Makefile.in: Update to match doc/ subdir changes.
7075
92063c3e 7076 * config/hp300hpux.mh: No cross-host file needed, just native.
71e60679
JG
7077 * config/go32.mh: Remove nonexistent "native" support.
7078
2a770cac
JG
7079 M88K fixes reported by Carl Greco, <cgreco@Creighton.Edu>:
7080 * tm-m88k.h (REGISTER_CONVERT_TO_RAW): Fix typo.
7081 * m88k-tdep.c (next_insn): Lint, cleanup.
7082 (store_parm_word): Lint.
7083
926d7800
JG
7084 * README: Fix typo (reported by karl@hq.ileaf.com).
7085
2fcc38b8
FF
7086Wed Jan 27 21:34:21 1993 Fred Fish (fnf@cygnus.com)
7087
7088 * expression.h (BINOP_CONCAT): Document use for self concatenation
7089 an integral number of times.
7090 * language.c (binop_type_check): Extend BINOP_CONCAT for self
7091 concatenation case.
7092 * valarith.c (value_concat): Rewrite to support self
7093 concatenation an integral number of times.
2fcc38b8
FF
7094 * Makefile.in (ch-exp.tab.c): Change "expect" message.
7095 * ch-exp.y (FIXME's): Make all FIXME tokens distinct, to
7096 eliminate hundreds of spurious shift/reduce and reduce/reduce
7097 conflicts that mask the 5 real ones.
7098 * ch-exp.y (STRING, CONSTANT, SC): Remove unused tokens.
7099 * ch-exp.y (integer_literal_expression): Remove production,
7100 no longer used.
2fcc38b8
FF
7101
7102Thu Jan 21 09:58:36 1993 Fred Fish (fnf@cygnus.com)
7103
7104 * eval.c (evaluate_subexp): Fix OP_ARRAY, remove code that
7105 implied that "no side effects" was nonfunctional.
7106 * eval.c (evaluate_subexp): Add BINOP_CONCAT case to deal with
7107 character string and bitstring concatenation.
7108 * expprint.c (dump_expression): Add case for BINOP_CONCAT.
7109 * expression.h (exp_opcode): Add BINOP_CONCAT.
7110 * gdbtypes.h (type_code): Add TYPE_CODE_BITSTRING.
7111 * language.c (string_type): Add function to determine if a type
7112 is a string type.
7113 * language.c (binop_type_check): Add case for BINOP_CONCAT.
7114 * valarith.c (value_concat): New function to concatenate two
7115 values, such as character strings or bitstrings.
7116 * valops.c (value_string): Remove error stub and implement
7117 function body.
7118 * value.h (value_concat): Add prototype.
2fcc38b8
FF
7119 * ch-exp.y (operand_3): Add actions for SLASH_SLASH (//).
7120 * ch-exp.y (yylex): Recognize SLASH_SLASH.
7121 * ch-lang.c (chill_op_print_tab): Add SLASH_SLASH (//) as
7122 BINOP_CONCAT.
2fcc38b8
FF
7123
7124Tue Jan 19 14:26:15 1993 Fred Fish (fnf@cygnus.com)
7125
7126 * c-exp.y (exp): Add production to support direct creation
7127 of array constants using the obvious syntax.
7128 * c-valprint.c (c_val_print): Set printed string length.
7129 * dwarfread.c (read_tag_string_type): New prototype and
7130 function that handles TAG_string_type DIEs.
7131 * dwarfread.c (process_dies): Add case for TAG_string_type
7132 that calls new read_tag_string_type function.
7133 * expprint.c (print_subexp): Add support for OP_ARRAY.
7134 * gdbtypes.c (create_range_type, create_array_type): Inherit
7135 objfile from the index type.
2fcc38b8
FF
7136 * ch-typeprint.c (chill_print_type): Add case for
7137 TYPE_CODE_STRING.
7138 * ch-valprint.c (chill_val_print): Fix case for
7139 TYPE_CODE_STRING.
2fcc38b8 7140
201c1243
ILT
7141Mon Jan 18 11:58:45 1993 Ian Lance Taylor (ian@cygnus.com)
7142
7143 * mipsread.c (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB,
7144 MIPS_UNMARK_STAB, STABS_SYMBOLS): Removed; now in
7145 include/coff/mips.h.
7146
c4413e2c
FF
7147Fri Jan 15 20:26:50 1993 Fred Fish (fnf@cygnus.com)
7148
7149 * c-exp.y (exp:STRING): Convert C strings into array-of-char
7150 constants with an explicit null byte terminator. OP_STRING is
7151 now used for real string types.
7152 * c-lang.c (builtin_type_*): Move declarations to lang.c since
7153 they are used by all languages.
7154 * c-lang.c (_initialize_c_language): Move initializations of
7155 builtin_type_* to lang.c.
7156 * c-typeprint.c (c_type_print_varspec_prefix,
7157 c_type_print_varspec_suffix): TYPE_CODE_PASCAL_ARRAY renamed
7158 to TYPE_CODE_STRING.
7159 * c-valprint.c (c_val_print): Change the way character arrays
7160 are printed as strings to be consistent with the way strings
7161 are printed when pointer-to-char types are dereferenced.
7162 Remove test of print_max before calling val_print_string, which
7163 now does it's own test.
7164 * eval.c (evaluate_subexp): Add case for OP_ARRAY.
7165 * expprint.c (print_subexp, dump_expression): Add case for OP_ARRAY.
7166 * expression.h (enum exp_opcode): Add OP_ARRAY and document.
7167 * gdbtypes.c (builtin_type_*): Add declarations moved from
7168 c-lang.c.
7169 * gdbtypes.c (create_string_type): New function to create real
7170 string types.
7171 * gdbtypes.c (recursive_dump_type): TYPE_CODE_PASCAL_ARRAY
7172 renamed to TYPE_CODE_STRING.
7173 * gdbtypes.c (_initialize_gdbtypes): Add initializations of
7174 builtin_type_* types moved from c-lang.c.
7175 * gdbtypes.h (enum type_code): TYPE_CODE_PASCAL_ARRAY renamed
7176 to TYPE_CODE_STRING.
7177 * gdbtypes.h (builtin_type_string): Add extern declaration.
7178 * gdbtypes.h (create_string_type): Add prototype.
7179 * m2-lang.c (m2_create_fundamental_type): TYPE_CODE_PASCAL_ARRAY
7180 renamed to TYPE_CODE_STRING.
7181 * m88k-tdep.c (pushed_size): TYPE_CODE_PASCAL_ARRAY renamed to
7182 TYPE_CODE_STRING.
7183 * mipsread.c (_initialize_mipsread): TYPE_CODE_PASCAL_ARRAY
7184 renamed to TYPE_CODE_STRING.
7185 * parse.c (length_of_subexp, prefixify_subexp): Add case for
7186 OP_ARRAY.
7187 * printcmd.c (print_formatted): Recognize TYPE_CODE_STRING.
7188 * typeprint.c (print_type_scalar): TYPE_CODE_PASCAL_ARRAY renamed
7189 to TYPE_CODE_STRING.
7190 * valops.c (allocate_space_in_inferior): New function and
7191 prototype, using code ripped out of value_string.
7192 * valops.c (value_string): Rewritten to use new function
7193 allocate_space_in_inferior, but temporarily disabled until some
7194 other support is in place.
7195 * valops.c (value_array): New function to create array constants.
7196 * valprint.c (val_print_string): Add comment to document use,
7197 complete rewrite to fix several small buglets.
7198 * value.h (value_array): Add prototype.
7199 * value.h (val_print_string): Change prototype to match rewrite.
c4413e2c
FF
7200 * ch-valprint.c (chill_val_print): Add case for TYPE_CODE_STRING.
7201 * ch-exp.y (match_character_literal): Disable recognition of
7202 control sequence form of character literals and document why.
c4413e2c 7203
6d1e8f54
SG
7204Thu Jan 14 15:48:12 1993 Stu Grossman (grossman at cygnus.com)
7205
7206 * nindy-share/nindy.c: Add comments to #endif's to clarify
7207 grouping.
7208
7209 * hppa-pinsn.c (print_insn): Use read_memory_integer, instead of
7210 read_memory to get byte order right.
7211 * hppah-tdep.c (find_unwind_info): Don't read in unwind info
7212 anymore. This is done in paread.c now. We expect unwind info
7213 to hang off of objfiles, and search all of the objfiles when until
7214 we find a match.
7215 * (skip_trampoline_code): Cast arg to target_read_memory.
7216 * objfiles.h (struct objfile): Add new field obj_private to hold
7217 per object file private data (unwind info in this case).
7218 * paread.c (read_unwind_info): New routine to read unwind info
7219 for the objfile. This data is hung off of obj_private.
7220 * tm-hppa.h: Define struct obj_unwind_info, to hold pointers to
7221 the unwind info for this objfile. Also define OBJ_UNWIND_INFO to
7222 make this easier to access.
7223
c7da3ed3
FF
7224Wed Jan 13 20:49:59 1993 Fred Fish (fnf@cygnus.com)
7225
7226 * c-valprint.c (cp_print_class_member): Add extern decl.
7227 * c-valprint.c (c_val_print): Extract code for printing methods
7228 and move it to cp_print_class_method in cp-valprint.c.
7229 * c-valprint.c (c_val_print): Extract code to print strings and
7230 move it to val_print_string in valprint.c.
7231 * cp-valprint.c (cp_print_class_method): New function using
7232 code extracted from c_val_print.
7233 * valprint.c (val_print_string): New function using code
7234 extracted from c_val_print.
7235 * value.h (val_print_string): Add prototype.
c7da3ed3
FF
7236 * ch-exp.y (CHARACTER_STRING_LITERAL): Set correct token type.
7237 * ch-exp.y (literal): Add action for CHARACTER_STRING_LITERAL.
7238 * ch-exp.y (tempbuf, tempbufsize, tempbufindex, GROWBY_MIN_SIZE,
7239 CHECKBUF, growbuf_by_size): New variables, macros, and support
7240 functions for implementing a dynamically expandable temp buffer.
7241 * ch-exp.y (match_string_literal): New lexer function.
7242 * ch-exp.y (match_bitstring_literal): Dynamic buffer code
7243 removed and replaced with new CHECKBUF macro.
7244 * ch-exp.y (yylex): Call match_string_literal when appropriate.
7245 * ch-valprint.c (ch_val_print): Add code for TYPE_CODE_PTR.
c7da3ed3 7246
0213d96f
SG
7247Sat Jan 9 19:59:33 1993 Stu Grossman (grossman at cygnus.com)
7248
78205fb6
SG
7249 * Makefile.in: Add info for paread.o.
7250 * config/hppahpux.mh: Add paread.o to NATDEPFILES.
7251
0213d96f
SG
7252 * blockframe.c (frameless_look_for_prologue): Correct the
7253 comment.
7254 * gdbtypes.h, gdbtypes.c: Use const in decl of
7255 cplus_struct_default, now that pa-gas assembler has been fixed.
7256 * hppah-nat.c: Formatting.
7257 * hppah-tdep.c: Remove lots of useless externs for variables we
7258 don't use.
7259 * (find_unwind_entry): Speed up by using binary search, and a one
7260 entry cache.
7261 * (rp_saved): New routine to see what unwind info says about RP
7262 being saved on the stack frame.
7263 * (frame_saved_pc): Look for prologue to see if we need to
7264 examine the stack for the saved RP or not.
7265 * (init_extra_frame_info): Check for prologue, instead of
7266 framesize to determine if we are frameless or not.
7267 * (frame_chain_valid): Stop backtraces when we run into _start.
7268 * (push_dummy_frame): Reformat to make more readable.
7269 * (find_dummy_frame_regs): ditto.
7270 * (hp_pop_frame): ditto.
7271 * (hp_restore_pc_queue): small cleanup.
7272 * (hp_push_arguments): ditto.
7273 * (pa_do_registers_info): ditto.
7274 * (skip_prologue): New routine created from SKIP_PROLOGUE macro.
7275 * tm-hppa.h: Move contents of SKIP_PROLOGUE into hppah-tdep.c.
7276 * Define FRAME_CHAIN_VALID.
7277 * Turn on BELIEVE_PCC_PROMOTION so that we can access char args
7278 passed to functions.
7279
7280 * paread.c (pa_symtab_read): Use new bfd conventions for
7281 accessing linker symbol table.
7282 * (pa_symfile_init): Access embedded STAB info via BFD section
7283 mechanism and related macros.
7284
7285
bfc55a5d
SG
7286Sat Jan 9 19:31:43 1993 Stu Grossman (grossman at cygnus.com)
7287
7288 * sparc-stub.c: Use a seperate stack for our traps.
7289 * Handle recursive traps.
7290 * Remove all trap init code. This needs to be done by the
7291 environment.
7292 * (set_mem_fault_trap): Call exceptionHandler() to setup this
7293 trap.
7294 * (handle_exception): See if we are at breakinst, if so, then
7295 advance PC sp that users can just step out of breakpoint().
7296 * (case 'G'): Don't let GDB hack CWP. Also, copy saved regs to
7297 new place if SP has changed.
7298 * (case 's'): Get rid of this, we can't do it yet.
7299 * (case 't'): New command to test any old random feature.
7300 * (case 'r'): New command to reset the system.
7301 * (breakpoint): Add label to breakpoint trap instruction so that
7302 handle_exception() can detect where we are and get past the
7303 breakpoint trivially.
7304
f92743ae
ILT
7305Thu Jan 7 13:33:06 1993 Ian Lance Taylor (ian@cygnus.com)
7306
7307 * mips-pinsn.c: Actual work now done by opcodes/mips-dis.c.
7308
bfc55a5d
SG
7309Thu Jan 7 09:21:51 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
7310
7311 * configure.in: recognise all sparclite variants
7312
f92743ae
ILT
7313Wed Jan 6 10:14:51 1993 Steve Chamberlain (sac@thepub.cygnus.com)
7314
7315 * symfile.c: If O_BINARY isn't defined, set it to 0, call openp for
7316 binary files oring in the right bit.
7317
7318 * main.c, source.c, state.c, symmisc.c: use macros defined in
7319 fopen-{bin|both} when fopening files.
7320
81028ab0
FF
7321Wed Jan 6 08:19:11 1993 Fred Fish (fnf@cygnus.com)
7322
7323 * defs.h (HOST_CHAR_BIT): New macro, defaults to either CHAR_BIT
7324 from a configuration file (typically including <limits.h>), or to
7325 TARGET_CHAR_BIT if CHAR_BIT is not defined.
7326 * eval.c (evaluate_subexp): Use new BYTES_TO_EXP_ELEM macro.
7327 * eval.c (evaluate_subexp): Add case for OP_BITSTRING.
7328 * expprint.c (print_subexp): Use new BYTES_TO_EXP_ELEM macro.
7329 * exppritn.c (print_subexp, dump_expression): Add case for
7330 OP_BITSTRING.
7331 * expression.h (OP_BITSTRING): New expression element type for
7332 packed bitstrings.
7333 * expression.h (EXP_ELEM_TO_BYTES, BYTES_TO_EXP_ELEM): New
7334 macros to convert between number of expression elements and bytes
7335 to store that many elements.
7336 * i960-tdep.c (leafproc_return): Use new macros to access
7337 minimal symbol name and address fields.
7338 * m88k-pinsn.c (sprint_address): Use new macros to access
7339 minimal symbol name and address fields.
7340 * nindy-tdep.c (nindy_frame_chain_valid): Use new macro to access
7341 minimal symbol address field.
7342 * parse.c (write_exp_elt, write_exp_string, prefixify_expression,
7343 parse_exp_1): Use new EXP_ELEM_TO_BYTES macro.
7344 * parse.c (write_exp_string, length_of_subexp, prefixify_expression):
7345 Use new BYTES_TO_EXP_ELEM macro.
7346 * parse.c (write_exp_bitstring): New function to write packed
7347 bitstrings into the expression element vector.
7348 * parse.c (length_of_subexp, prefixify_subexp): Add case for
7349 OP_BITSTRING.
7350 * parser-defs.h (struct stoken): Document that it is used for
7351 OP_BITSTRING as well as OP_STRING.
7352 * parser-defs.h (write_exp_bitstring): Add prototype.
81028ab0
FF
7353 * ch-exp.y (BIT_STRING_LITERAL): Change token type to sval.
7354 * ch-exp.y (NUM, PRED, SUCC, ABS, CARD, MAX, MIN, SIZE, UPPER,
7355 LOWER, LENGTH): New tokens for keywords.
7356 * ch-exp.y (chill_value_built_in_routine_call, mode_argument,
7357 upper_lower_argument, length_argument, array_mode_name,
7358 string_mode_name, variant_structure_mode_name): New non-terminals
7359 and productions.
7360 * ch-exp.y (literal): Useful production for BIT_STRING_LITERAL.
7361 * ch-exp.y (match_bitstring_literal): New lexer support function
7362 to recognize bitstring literals.
7363 * ch-exp.y (tokentab6): New token table for 6 character keywords.
7364 * ch-exp.y (tokentab5): Add LOWER, UPPER.
7365 * ch-exp.y (tokentab4): Add PRED, SUCC, CARD, SIZE.
7366 * ch-exp.y (tokentab3): Add NUM, ABS, MIN, MAX.
7367 * ch-exp.y (yylex): Check tokentab6.
7368 * ch-exp.y (yylex): Call match_bitstring_literal.
81028ab0 7369
76a0ffb4
FF
7370Mon Jan 4 16:54:18 1993 Fred Fish (fnf@cygnus.com)
7371
2eda1cdf
FF
7372 * xcoffexec.c (vmap_symtab): Use new macros to access minimal
7373 symbol name and value fields.
7374
533d1dc7
FF
7375 * c-exp.y (yylex): Make static, to match prototype and other
7376 <lang>-exp.y files.
7377
76a0ffb4
FF
7378 * expression.h (exp_opcode): Add BINOP_MOD.
7379 * eval.c (evaluate_subexp): Handle new BINOP_MOD.
7380 * expprint.c (dump_expression): Handle new BINOP_MOD.
7381 * language.c (binop_type_check): Handle new BINOP_MOD.
7382 * main.c (float_handler): Re-enable float handler when hit.
7383 * valarith.c (language.h): Include, need current_language.
7384 * valarith.c (TRUNCATION_TOWARDS_ZERO): Define default macro
7385 for integer divide truncates towards zero for negative results.
7386 * valarith.c (value_x_binop): Handle BINOP_MOD if seen.
7387 * valarith.c (value_binop): Allow arithmetic operations on
7388 TYPE_CODE_CHAR variables. Add case to handle new BINOP_MOD.
76a0ffb4
FF
7389 * ch-exp.y (operand_4): Add useful actions for MOD and REM.
7390 * ch-exp.y (tokentab3): Add MOD and REM.
7391 * ch-exp.y (yylex): Set innermost_block for symbols found
7392 in local scopes. Return LOCATION_NAME for local symbols.
7393 * ch-lang.c (chill_op_print_tab): Fix MOD entry to use
7394 BINOP_MOD instead of BINOP_REM. Add REM entry, using BINOP_REM.
76a0ffb4 7395
f92743ae
ILT
7396Mon Jan 4 07:35:31 1993 Steve Chamberlain (sac@wahini.cygnus.com)
7397
7398 * command.c (shell_escape, make_command, _initialize_command):
7399 don't create or use fork if CANT_FORK is defined.
7400 * serial.h, ser-go32.c: now compiles, but "the obvious problems of
7401 code written for the IBM PC" remain.
7402 * xm-go32.h: define CANT_FORK
7403
ec25d19b
SC
7404Sun Jan 3 14:24:56 1993 Steve Chamberlain (sac@thepub.cygnus.com)
7405
7406 * remote-sim.c: first attempt at general simulator interface
7407 * remote-hms.c: whitespace
7408 * h8300-tdep.c: (h8300_skip_prologue, examine_prologue):
7409 understand new stack layout. (print_register_hook): print ccr
7410 register in a fancy way.
7411
fb6e675f
FF
7412Sun Jan 3 14:16:10 1993 Fred Fish (fnf@cygnus.com)
7413
7414 * eval.c (language.h): Include.
7415 * eval.c (evaluate_subexp_with_coercion): Only coerce arrays
7416 to pointer types when the current language is C. It loses for
7417 other languages when the lower index bound is nonzero.
7418 * valarith.c (value_subscript): Take array lower bounds into
7419 account when performing subscripting operations.
7420 * valops.c (value_coerce_array): Add comment describing why
7421 arrays with nonzero lower bounds are dealt with in value_subscript,
7422 rather than in value_coerce_array.
7423
54bbbfb4
FF
7424Sat Jan 2 12:16:41 1993 Fred Fish (fnf@cygnus.com)
7425
1188fbbf
FF
7426 * ch-exp.y (FLOAT_LITERAL): Add token.
7427 * ch-exp.y (literal): Add FLOAT_LITERAL.
7428 * ch-exp.y (match_float_literal): New lexer routine.
7429 * ch-exp.y (convert_float): Remove.
7430 * ch-exp.y (yylex): Call match_float_literal.
7431 * ch-exp.y (yylex): Match single '.' after trying
7432 to match floating point literals.
1188fbbf 7433
54bbbfb4
FF
7434 * eval.c (evaluate_subexp): Add case MULTI_SUBSCRIPT.
7435 * expprint.c (print_subexp): Rename BINOP_MULTI_SUBSCRIPT to
7436 MULTI_SUBSCRIPT.
7437 * expprint.c (dump_expression): New function for dumping
7438 expression vectors during gdb debugging.
7439 * expression.h (BINOP_MULTI_SUBSCRIPT): Name changed to
7440 MULTI_SUBSCRIPT and moved out of BINOP range.
7441 * expression.h (DUMP_EXPRESSION): New macro that calls
7442 dump_expression if DEBUG_EXPRESSIONS is defined.
7443 * m2-exp.y (BINOP_MULTI_SUBSCRIPT): Changed to MULTI_SUBSCRIPT.
7444 * parse.c (length_of_subexp, prefixify_subexp): Change
7445 BINOP_MULTI_SUBSCRIPT to MULTI_SUBSCRIPT.
7446 * parse.c (parse_exp_1): Call DUMP_EXPRESSION before and after
7447 prefixify'ing the expression.
7448 * printcmd.c (print_command_1): Add comment.
54bbbfb4
FF
7449 * ch-exp.y (expression_list): Add useful actions.
7450 * ch-exp.y (value_array_element): Add useful actions.
7451 * ch-exp.y (array_primitive_value): Add production.
7452 * ch-exp.y (yylex): Recognize ',' as a token.
54bbbfb4 7453
ea81b10d
DZ
7454Fri Jan 1 18:22:02 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
7455
7456 * Makefile.in: pass prefix and exec_prefix via FLAGS_TO_PASS,
7457 POSIXize the recursive makes (make [variable assignments] target{s})
7458
7532cf10
FF
7459Fri Jan 1 11:56:23 1993 Fred Fish (fnf@cygnus.com)
7460
7461 * tm-sun4sol2.h (CPLUS_MARKER): Remove, now set in tm-sysv4.h.
7462 * tm-sysv4.h (CPLUS_MARKER): By default, g++ uses '.' as the
7463 CPLUS_MARKER for all SVR4 systems, so follow suit.
7464 * defs.h (strdup_demangled): Remove prototype.
7465 * dwarfread.c (enum_type, synthesize_typedef): Use new macro
7466 SYMBOL_INIT_LANGUAGE_SPECIFIC.
7467 * dwarfread.c (new_symbol): Use SYMBOL_INIT_DEMANGLED_NAME.
7468 * minsyms.c (install_minimal_symbols, prim_record_minimal_symbol,
7469 prim_record_minimal_symbol_and_info): Use new macro
7470 SYMBOL_INIT_LANGUAGE_SPECIFIC.
7471 * minsyms.c (install_minimal_symbols): Use new macro
7472 SYMBOL_INIT_DEMANGLED_NAME.
7473 * stabsread.c (define_symbol): Use new macro
7474 SYMBOL_INIT_DEMANGLED_NAME.
7475 * symfile.c (add_psymbol_to_list, add_psymbol_addr_to_list):
7476 Use new macro SYMBOL_INIT_DEMANGLED_NAME.
7477 * symfile.h (ADD_PSYMBOL_VT_TO_LIST): Use new macro
7478 SYMBOL_INIT_DEMANGLED_NAME.
7479 * symmisc.c (dump_msymbols, dump_symtab, print_partial_symbol):
7480 SYMBOL_DEMANGLED_NAME now tests language itself.
7481 * symtab.c (COMPLETION_LIST_ADD_SYMBOL): SYMBOL_DEMANGLED_NAME
7482 now tests language itself.
7483 * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): New macro that does
7484 what SYMBOL_DEMANGLED_NAME used to do, directly access the C++
7485 mangled name member in the language dependent portion of a symbol.
7486 * symtab.h (SYMBOL_DEMANGLED_NAME): New macro that returns the
7487 mangled name member appropriate for a symbol's language.
7488 * symtab.h (SYMBOL_SOURCE_NAME, SYMBOL_LINKAGE_NAME,
7489 SYMBOL_MATCHES_NAME, SYMBOL_MATCHES_REGEXP):
7490 SYMBOL_DEMANGLED_NAME now tests language itself.
7491 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): New macro that
7492 initializes language dependent portion of symbol.
7493 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): New macro that
7494 demangles and caches the demangled form of symbol names.
7495 * utils.c (fputs_demangled, fprint_symbol): Use current language
7496 to select an appropriate demangling algorithm.
7497 * utils.c (strdup_demangled): Remove, no longer used.
7532cf10
FF
7498 * symtab.h (SYMBOL_CHILL_DEMANGLED_NAME): New macro that directly
7499 access the Chill mangled name member in the language dependent
7500 portion of a symbol.
7501 * ch-lang.c (chill_demangle): New function, simple demangler.
7502 * defs.h (chill_demangle): Add prototype.
7503 * symtab.h (language_dependent_info): Add struct for Chill.
7532cf10 7504
6e50aeb4 7505For older changes see ChangeLog-92
bd5635a1
RP
7506\f
7507Local Variables:
7508mode: indented-text
7509left-margin: 8
7510fill-column: 74
7511version-control: never
7512End:
This page took 0.561431 seconds and 4 git commands to generate.