* config/tc-hppa.c (tc_gen_reloc): Cast return value from
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
edd86fb0
JL
1Mon Aug 1 01:36:13 1994 Jeff Law (law@snake.cs.utah.edu)
2
3 * hppa-tdep.c (saved_pc_after_call): If the saved PC is in a
4 linker stub, then return the address the stub will return to.
5 (frame_saved_pc): Correctly restart the search for the saved
6 pc when a linker stub is encountered.
7
8 * hppa-tdep.c (inst_saves_gr): Handle 16 and 8 bit instruction
9 register stores emitted by the version 9 HP compilers.
10 (inst_saves_fr): Relax test for a specific base register (%r1);
11 this avoids losing with the version 9 HP compilers.
12 (skip_prologue): Try to skip argument stores emitted by the HP
13 compilers. It's not perfect, but it's better than before.
14
43b20641
SG
15Fri Jul 29 23:20:30 1994 Stu Grossman (grossman@cygnus.com)
16
17 * findvar.c (write_pc write_pc_pid): Remove casts to long when
18 calling write_register_pid.
19 * (write_register_pid): Add prototype.
20
205fc02b
SC
21Fri Jul 29 21:56:23 1994 Steve Chamberlain (sac@jonny.cygnus.com)
22
23 * remote.c (read_frame): Split readchar/checksum calculation into
24 two parts since evaluation order is undefined.
25
0c18c737
FF
26Fri Jul 29 13:46:08 1994 Fred Fish (fnf@cygnus.com)
27
28 From Kevin A. Buettner (kev@cujo.geg.mot.com).
29 * Makefile.in (coredep.o): Add inferior.h as dependency.
30 * inflow.c: Add F_SETOWN to list of defines to check
31 around code that uses F_SETOWN.
32
998b321b
C
33Fri Jul 29 09:59:05 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
34
35 * Makefile.in (CC_FOR_TARGET, CXX_FOR_TARGET): If using newlib,
36 set the -L and -B directory prefixes so we can link with it.
37
754e5da2
SG
38Thu Jul 28 14:37:36 1994 Stu Grossman (grossman@cygnus.com)
39
40 * Makefile.in (INSTALLED_LIBS, CLIBS, DEPFILES): Add support for
41 --enable-xxx configure option by adding ENABLE_{CLIBS DEPFILES}
42 where appropriate.
43
44 * General hackery to support alternate user-interface.
45 * breakpoint.c (mention, delete_breakpoint, enable_breakpoint,
46 disable_breakpoint): Call hooks for alternate user-interface.
47 * defs.h: Add declarations for alternate user-interface hooks.
48 * main.c (main): Add --nw (and --nowindows) options to disable
49 the GUI.
50 * (near call to command_loop): Call command_loop_hook if set.
51 * (fputs_unfiltered): Call fputs_unfiltered_hook if set.
52 * stack.c: Call print_frame_info_listing_hook if set.
53 * top.c (gdb_init): Initialize targets.c and utils.c prior to
54 other files to make sure that calls to error and warning will
55 work. Call init_ui_hook after everything else.
56 * utils.c (query): Call query_hook if set.
57 * (gdb_flush): Call flush_hook if set.
58 * Change _initialize_utils to initialize_utils cuz we don't use
59 automatic initialization of utils.c anymore.
60
61 * Support for TK GUI.
62 * Makefile.in: Add rule for gdbtk.o.
63 * configure.in: Add support for --enable-gdbtk.
64 * gdbtk.c: New file. Contains support routines for TK interface.
65 * gdbtk.tcl: New file. Implements GUI policy.
66
67 * remote.c: Get rid of #ifdef DONT_USE_REMOTE. It's no longer
68 necessary.
69
b98612f1
C
70Thu Jul 28 14:52:01 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
71
72 * Makefile.in (CC_FOR_TARGET, CXX_FOR_TARGET): Use newlib if it is
73 there and we are using the gcc from the tree.
74 (LD_FOR_TARGET): Look for ld in ../ld/ld.new.
75
8aa8690c
FF
76Thu Jul 28 10:43:36 1994 Fred Fish (fnf@cygnus.com)
77
78 * Makefile.in (annotate.o): Add dependencies.
79
e356aae3
C
80Wed Jul 27 14:34:42 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
81
ff59855b
C
82 * sparclite/aload.c: Added new -q (quiet) option.
83 return 0 exit status if file was successfully downloaded.
84
1e47d512
C
85 * nlm/gdbserve.c: merge in command line argument parsing changes
86 and bug fixes made to i386-nlmstub.c.
87
e356aae3
C
88 * i386-nlmstub.c: The returnLength field must be initialized
89 before portConfig is passed to AIOGetPortConfiguration.
90 Compare command line arguments with strnicmp(); args are
91 case insensitive on netware.
92
de19d1ed
FF
93Wed Jul 27 09:24:19 1994 Fred Fish (fnf@cygnus.com)
94
95 * Makefile.in (DISTSTUFF): Add definition.
96 (diststuff): Add for new distribution support.
97 (gdb.tar.Z, make-proto-gdb.dir, setup-to-dist,
98 gdb-$(VERSION).tar.Z, make-proto-gdb-1, make-proto-testsuite.dir):
99 Remove old distribution building rules, now uses standard
100 distribution support in parent directory Makefile.in.
101
f6d5d006
JK
102Tue Jul 26 14:15:53 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
103
104 * target.c (push_target): Cast result from xmalloc.
105
d54b2c50
SS
106Tue Jul 26 18:20:46 1994 Paul Flinders (ptf@smee)
107
108 * elfread.c (elf_symtab_read): Discard compiler labels generated
109 by the Solaris 2.1/Intel SunPro compiler.
110
4fc5969d
SG
111Mon Jul 25 18:19:24 1994 Stu Grossman (grossman@cygnus.com)
112
113 * target.c (nomemory): Fix prototype and routine to take correct
114 args.
115
1ded65d1
JK
116Mon Jul 25 15:38:23 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
117
118 * Makefile.in (clean): Remove libgdb-files.
119
9a989b1f
SS
120Mon Jul 25 11:50:57 1994 Stan Shebs (shebs@andros.cygnus.com)
121
122 * coredep.c: Include inferior.h.
123
159f3816
C
124Mon Jul 25 11:36:02 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
125
159f3816
C
126 * i386-nlmstub.c: Add support for NODE, PORT and BAUD command
127 line arguments.
128
557f3a0e
SS
129Sat Jul 23 14:36:09 1994 Stan Shebs (shebs@andros.cygnus.com)
130
9e38b2fa
SS
131 * symfile.c (deduce_language_from_filename): Recognize .S as asm,
132 .cp as C++, alphabetize better.
133
557f3a0e
SS
134 * breakpoint.c (ignore, condition): Move usage note into body of
135 help text, so first line can be one-line summary.
136
67e947de
SG
137Sat Jul 23 00:58:15 1994 Stu Grossman (grossman@cygnus.com)
138
139 * target.c (unpush_target): Fix handling of removal of top target.
140
cad1498f
SG
141Fri Jul 22 17:30:39 1994 Stu Grossman (grossman@cygnus.com)
142
143 * Makefile.in: Add stuff to build nlmstub.
144 * Add rule for annotate.o to keep Sun make happy.
145 * configure.in: Add config for powerpc/Netware.
146
147 * partial-stab.h (near N_SO): Don't call START_PSYMTAB with null
148 filename. This speeds up handling of trailing N_SO stabs (they
149 mark the end of a .o file).
150
151 * target.c, target.h: Change the way pushing and popping of
152 targets work to support target overlays and inheritance.
153 * corelow.c, hppa-tdep.c, inflow.c, remote-nindy.c, utils.c:
154 Fixup references to current_target, due to previous changes.
155
156 * config/i386/tm-i386nw.h: Enable longjmp support. More work is
157 needed to get the address of longjmp out of the target.
158
844750e3
SS
159Tue Jul 19 13:25:06 1994 Stan Shebs (shebs@andros.cygnus.com)
160
161 * main.c: Include <ctype.h>.
162
b0a0ee52
KH
163Mon Jul 18 15:32:17 1994 Kung Hsu (kung@mexican.cygnus.com)
164
165 * remote-mips.c (mips_readchar): Fix a bug in checking <IDT>
166 prompt.
167
b0fbe5a2
SS
168Mon Jul 18 14:26:35 1994 Stan Shebs (shebs@andros.cygnus.com)
169
170 * solib.c (look_for_base): Don't deref exec_bfd if NULL.
171
0f221a69
FF
172Sun Jul 17 15:38:36 1994 Fred Fish (fnf@cygnus.com)
173
005234f5 174 * Makefile.in (VERSION): Bump to 4.12.4.
0f221a69
FF
175
176Sun Jul 17 12:20:35 1994 Stan Shebs (shebs@andros.cygnus.com)
177
178 Harris CX/UX support, from Bob Rusk (rrusk@mail.csd.harris.com).
179 * configure.in (m88*-harris-cxux*): New configuration.
180 * cxux-nat.c, config/m88k/cxux.mh, config/m88k/cxux.mt,
181 config/m88k/xm-cxux.h, config/m88k/tm-cxux.h, config/m88k/nm-cxux.h:
182 New files.
183 * config/m88k/tm-m88k.h: Add comment about Harris OS.
184 (TARGET_WRITE_PC): Pass pid through to register writers.
185
186 * configure.in (m68*): Put vendor-only-specified host configs
187 after vendor-and-os-specified configs.
188 (m68*-atari-sysv4*, m68*-cbm-sysv4*): Replace with m68*-*-sysv4.
189
190 * config/m88k/delta88.mh (MUNCH_DEFINE): Remove.
191 * config/m88k/delta88.mt, config/m88k/delta88v4.mh: Format
192 consistently.
193
00306b1e
PS
194Sat Jul 16 23:39:17 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
195
196 * elfread.c (elf_symtab_read): Handle error return from
197 bfd_get_dynamic_symtab_upper_bound gracefully.
198
49b476bd
SS
199Sat Jul 16 14:43:17 1994 Stan Shebs (shebs@andros.cygnus.com)
200
62a5dabc
SS
201 * inferior.h (ARCH_NUM_REGS): New macro, actual number of
202 registers in use by the inferior.
203 * coredep.c (fetch_core_registers, register_addr): Use it.
204 * findvar.c (registers_changed, registers_fetched,
205 read_register_bytes): Ditto.
206 * infcmd.c (do_registers_info, registers_info): Ditto.
207 * infptrace.c (fetch_inferior_registers,
208 store_inferior_registers): Ditto.
209 * stack.c (frame_info): Ditto.
210
211 * coredep.c (CORE_REGISTER_ADDR): New macro.
212 (fetch_core_registers): Use it.
213
49b476bd
SS
214 * breakpoint.c (ignore, condition): Add usage notes to help strings.
215 * symfile.c (add-symbol-file): Add usage note to help string.
216 (add_shared_symbol_files_command): New command.
217
218 gcc -Wall lint.
219 * inferior.h (read_pc_pid): Declare.
220 * breakpoint.c (watchpoint_check): Cache breakpoint in local
221 variable b, remove unused variable other_type_used.
222 * main.c (inferior.h, call-cmds.h): Include.
223 (gdb_init): Declare.
224 * remote.c (remote_wait): Return 0 by default.
225
0568ccb0
SS
226Fri Jul 15 16:43:33 1994 Stan Shebs (shebs@andros.cygnus.com)
227
228 Stop printing at null char option, from Oliver Meyer
229 (omeyer@i3.informatik.rwth-aachen.de).
230 * valprint.h, valprint.c (stop_print_at_null): New global.
231 * valprint.c (_initialize_valprint): New print set subcommand
232 "null-stop".
233 * c-valprint.c (c_val_print): If stop_print_at_null is on, and
234 printing a char array, adjust the number of chars to print.
235
08f32e32
SS
236Fri Jul 15 14:33:40 1994 Stan Shebs (shebs@andros.cygnus.com)
237
238 From Kevin A. Buettner (kev@cujo.geg.mot.com).
239 * m88k-tdep.c (examine_prologue): Modified to handle prologues for
240 pic code in addition to prologues where an instruction from the
241 prologue gets moved into the delay slot of a branch instruction
242 immediately following the prologue. A table of potential prologue
243 instructions (prologue_insn_tbl) is now used for picking apart a
244 function prologue.
245 (frame_find_saved_regs): Changed the way in which limit gets set
246 so that the delay slot of branch instructions immediately
247 following the prologue gets examined.
248 (pushed_size, store_parm_word, store_parm, push_parameters,
249 collect_returned_value): Deleted.
250
0b0ee55e
PS
251Fri Jul 15 01:06:00 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
252
253 * infrun.c (wait_for_inferior): Handle stepping into leaf
254 functions whose prologue consists of gp loading code only.
255
8e3ff823
SS
256Thu Jul 14 14:22:12 1994 Stan Shebs (shebs@andros.cygnus.com)
257
258 * dbxread.c: Don't include libbfd.h.
259 * dwarfread.c, elfread.c somread.c: Don't include libbfd.h,
260 <time.h>, or <sys/types.h>.
261 * elfread.c (elf_symfile_read): Use only standard BFD functions to
262 collect information about the stab and stab string sections.
263
8dbe58d8
KH
264Thu Jul 14 13:17:39 1994 Kung Hsu (kung@x1.cygnus.com)
265
266 * stabsread.c (read_huge_number): handle large unsigned number
267 for stabs generated by os9k C compiler.
268
9f577285
SS
269Wed Jul 13 18:58:15 1994 Stan Shebs (shebs@andros.cygnus.com)
270
271 Breakpoint hit counts, from Bob Rusk (rrusk@mail.csd.harris.com).
272 * breakpoint.h (hit_count): New breakpoint field.
273 * breakpoint.c (show_breakpoint_hit_counts): New variable.
274 (clear_breakpoint_hit_counts): New function.
275 (bpstat_stop_status): Increment the hit count.
276 (breakpoint_1): Display the hit count.
277 * infcmd.c (run_command): Reset breakpoint hit counts.
278 * target.c (generic_mourn_inferior): Don't clear ignore counts if
279 displaying hit counts.
280
6d9b8a93
PS
281Tue Jul 12 12:23:15 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
282
283 * elfread.c (elf_symfile_read): Unconditionally add dynamic
284 symbols for all symbol files. Makes skipping over the
285 trampoline code work when stepping from a function in a shared
286 library into a function in a different shared library for Irix 5.
287 Other ELF targets do not have enough information in their
288 dynamic symbol tables to make this work.
289 (elf_symtab_read): Relocate mst_solib_trampoline address.
290
02176ddb
SS
291Mon Jul 11 16:38:49 1994 Stan Shebs (shebs@andros.cygnus.com)
292
293 Atari support, from Uwe Seimet (seimet@chemie.uni-kl.de).
294 * configure.in (m68*-atari-sysv4*): New configuration.
295 (m68*-cbm-sysv4*): Use m68kv4 instead of amix.
296 * m68k-tdep.c (R_PS): Define as R_SR if necessary.
297 * config/m68k/m68kv4.mh, config/m68k/m68kv4.mt,
298 config/m68k/tm-m68kv4.h, config/m68k/xm-m68kv4.h: New files.
299 * config/m68k/amix.mh, config/m68k/amix.mt,
300 config/m68k/tm-amix.h, config/m68k/xm-amix.h: Removed, superseded
301 by m68kv4 files.
302
defa6c74
PS
303Sat Jul 9 16:28:43 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
304
305 * symtab.c (find_function_start_sal): New function to find
306 the start of a function from a function symbol.
307 (decode_line_1, decode_line_2): Use it instead of open coded
308 partial copies of the code.
309 (list_symbols): Quote symbol name before passing it to
310 break_command to enable proper handling of mangled symbols.
311
312Wed Jul 6 20:22:07 1994 Per Bothner (bothner@kalessin.cygnus.com)
313
314 * ch-exp.y (match_simple_name_string): Don't lower-case here.
315 * ch-exp.y (yylex): First try name lookup using exact name
316 typed by user; if that fails, try lower-cased name.
317
cef0333e
PS
318Wed Jul 6 00:48:57 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
319
320 * dbxread.c, elfread.c, mipsread.c, nlmread.c, os9kread.c:
321 Move "no debugging symbols found" test to symfile.c.
322 * symfile.c (syms_from_objfile, reread_symbols): Add
323 "no debugging symbols found" test.
324 * coffread.c (init_stringtab): Handle stripped files with a
325 stringtab offset of zero gracefully.
326 * osfsolib.c (solib_create_inferior_hook): Use DYNAMIC flag from
327 BFD instead of stop_pc heuristic to determine if it is a dynamically
328 linked object file.
329 * procfs.c (wait_fd): Handle ENOENT error return from PIOCWSTOP
330 ioctl, it indicates that the process has exited.
331
0fc27289
JL
332Mon Jul 4 19:28:56 1994 Jeff Law (law@snake.cs.utah.edu)
333
334 * hppa-tdep.c (read_unwind_info): ELF unwind information is in the
335 .PARISC.unwind section now.
336
51684caa
SS
337Mon Jul 4 17:06:26 1994 Stan Shebs (shebs@andros.cygnus.com)
338
339 * breakpoint.c (mention): Always show breakpoint address if no
340 source file.
341
342Sat Jul 2 01:51:33 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
343
344 * solib.c (bfd_lookup_symbol, look_for_base): Reinstate to reenable
345 handling of shared libraries for non-ELF executables, but only if
346 HANDLE_SVR4_EXEC_EMULATORS is defined.
347 (locate_base): Try to find debug_base in the dynamic linker
348 for non-ELF executables if HANDLE_SVR4_EXEC_EMULATORS is defined.
349 * config/sparc/tm-sun4sol2.h (HANDLE_SVR4_EXEC_EMULATORS):
350 Define to enable handling of shared libraries for a.out executables,
351 run under Solaris BCP.
352
018d94f5
JK
353Thu Jun 30 13:59:23 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
354
355 * infrun.c (wait_for_inferior): Print "Program exited normally"
356 regardless of batch_mode.
357 * defs.h, top.c (batch_mode): Removed.
358
7d13174e
SS
359Wed Jun 29 18:53:36 1994 Stan Shebs (shebs@andros.cygnus.com)
360
054308ad
SS
361 * Makefile.in (dcache_h): Remove redundant definition.
362 (init.c): Add a comment.
363 (top.c): Remove explicit compile action.
364 * breakpoint.c (mention): Share code indicating location of
365 break/watchpoints, don't print address if addressprint is off.
366 * breakpoint.c, c-typeprint.c, c-valprint.c, energize.c, symtab.h
367 (demangle): Remove redundant declarations.
368 * eval.c: Remove redundant function declarations.
369 * objfiles.h: Cosmetic and grammatical improvements.
370 * TODO: Various updates.
371
7d13174e
SS
372 * remote-mips.c: Replace all \r chars with \015.
373 (mips_receive_header): Display control characters readably.
374 (mips_xfer_memory): Add a simple progress display.
375
402b0d2e
SC
376Wed Jun 29 13:11:45 1994 Steve Chamberlain (sac@cirdan.cygnus.com)
377
378 * remote-e7000.c (e7000_open): Don't try a tcp open if we're
379 using go32.
380 * remote-hms.c (flush): New function.
381 (expect): Get edge case right.
382 (hms_read_inferior_memory): Be more tolerant of line noise.
383
3563094d
JMD
384Tue Jun 28 14:17:03 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
385
386 * configure.in: Use i386m3.mh and i386m3.mt as names of host and
387 target files, not non-existent mach3.mh and mach3.mt.
388
ca694bfd
PS
389Wed Jun 29 00:26:17 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
390
391 * dbxread.c (dbx_symfile_read): Unconditionally add dynamic
392 symbols for all symbol files. Makes skipping over the
393 trampoline code work when stepping from a function in a shared
394 library into a function in a different shared library.
395 (read_dbx_dynamic_symtab): Relocate mst_solib_trampoline address.
396
320f93f7
SG
397Tue Jun 28 15:28:01 1994 Stu Grossman (grossman@cygnus.com)
398
399 * dbxread.c, partial-stab.h (near N_SO): SO stabs with blank
400 names mean end of .o file.
401 * infrun.c (wait_for_inferior): Clean up multi-thread logic near
402 top of routine. Handle new thread notification cleanly.
403 * lynx-nat.c (child_wait): General cleanups, handle new LynxOS
404 thread notification scheme.
405 * (child_resume): General cleanups, handle resumption of all
406 threads properly.
407
aa48187b
SC
408Mon Jun 27 09:57:23 1994 Steve Chamberlain (sac@cirdan.cygnus.com)
409
410 * ser-go32.c: Rewrite to run under windows.
411 * ser-e7kpc.c: New file to support the E7000 with the PC ISA
412 bus interface.
413 * serial.c (serial_open): Notice device "pc".
414 * remote-e7000.c: Fix copyright date.
415 (expect): Compare \n and \r the same.
416 (e7000_open): Allow pc as a serial port
417 * sh/sh.mt: Add ser-e7kpc.
418 * h8300/h8300hms.mt: Add ser-e7kpc.
419 * main.c (proc_wait): Don't wait if using go32.
420
6a86fa48
JL
421Mon Jun 27 00:35:51 1994 Jeff Law (law@snake.cs.utah.edu)
422
423 * somread.c: Simplify by using stabsect_build_psymtabs.
424 * dbxread.c (stabsect_build_psymtabs): New argument "text_name"
425 corresponding to the name of the text section. All references
426 changed.
427 (somstab_build_psymtabs): Delete function, no longer needed.
428
bfe2f12b
JL
429Sun Jun 26 23:54:08 1994 Jeff Law (law@snake.cs.utah.edu)
430
431 * somread.c: Renamed from paread.c. Changed function names and
432 comments to reflect that this file deals with SOM (an object file
433 format), rather than the PA (a cpu).
434 (Makefile.in): Chaned appropriately.
435 (config/pa/hppabsd.mh, config/pa/hppahpux.mh): Likewise.
436 * dbxread.c (somstab_build_psymtabs): Renamed from
437 pastab_build_psymtabs.
438
a8044a2d
PS
439Fri Jun 24 08:15:42 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
440
256533df
PS
441 * core-sol2.c: New file to handle ELF and BCP core file flavours.
442 * config/sparc/sun4sol2.mh (NATDEPFILES): Use it instead of
443 core-svr4.
444 * Makefile.in: Updated for core-sol2.c.
445 * README: Add notes about SPARCworks cc under Solaris 2.x,
446 from Casper H.S. Dik (casper@fwi.uva.nl).
a8044a2d
PS
447 * config/mips/xm-makeva.h: Removed, no longer necessary.
448 * Makefile.in, config/mips/xm-irix3.h, config/mips/xm-irix5.h,
449 config/mips/xm-mips.h, config/mips/xm-news-mips.h,
450 config/mips/xm-riscos.h: Remove references to xm-makeva.h
451
cca32606
JK
452Wed Jun 22 17:48:21 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
453
6ccc157f 454 * gdba.el: Put program input and output in a separate buffer.
cca32606 455
b7ec5b8d
FF
456Wed Jun 22 16:54:15 1994 Fred Fish (fnf@cygnus.com)
457
458 * energize-patches, main.c (main), top.c (gdb_init, pwd_command),
459 top.h: Change all occurances of dirbuf to gdb_dirbuf. Collides
460 with global variable of same name in libnsl.so on UnixWare.
461
c79b49bb
KH
462Wed Jun 22 14:40:52 1994 Kung Hsu (kung@mexican.cygnus.com)
463
464 * symtab.c (decode_line_1): fix a bug in dealing with '<>'
465 embedded in template name.
466
416b47c6
KH
467Tue Jun 21 14:06:46 1994 Kung Hsu (kung@mexican.cygnus.com)
468
469 * config/i386/nm-linux.h: change calling convention of
470 TARGET_CAN_USE_HARDWARE_WATCHPOINT() and
471 target_insert_watchpoint() and
472 target_remove_watchpoint().
473
474 * config/mips/tm-mips64.h: define FORCE_LONG_LONG to force LONGEST
475 to be long long in gdb.
476 * config/mips/tm-bigmips.h: ditto.
477
2c068010
PS
478Mon Jun 20 23:54:37 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
479
480 * c-lang.c (asm_language_defn): New definitions for language_asm,
481 mostly copied from c_language_defn, to avoid warnings when
482 switching between c and asm stack frames.
483
6187dfac
ILT
484Mon Jun 20 13:51:55 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
485
486 * mdebugread.c (parse_symbol): Don't call ecoff_swap_tir_in or
487 ecoff_swap_rndx_in directly; use the debug_swap pointer instead.
488 (upgrade_type, handle_psymbol_enumerators): Likewise.
489 (has_opaque_xref, cross_ref): Likewise.
490 (elfmdebug_build_psymtabs): Call swap->read_debug_info to read
491 debugging information, rather than doing it here.
492 * mipsread.c (mipscoff_symfile_read): Call read_debug_info entry
493 point in ecoff_debug_swap backend structure, rather than calling
494 ecoff_slurp_symbolic_info directly.
495
afd3e3b1
JK
496Fri Jun 17 20:58:58 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
497
fb71d422
JK
498 * breakpoint.c: Include annotate.h. Call annotate_field rather
499 than printing annotation directly.
500
afd3e3b1
JK
501 * main.c: Include string.h.
502
6ec7e4d3
SS
503Thu Jun 16 14:41:37 1994 Stan Shebs (shebs@andros.cygnus.com)
504
9f8219f1
SS
505 * fork-child.c (startup_inferior) [STARTUP_INFERIOR]: If defined,
506 call it instead of doing normal loop.
507 * infcmd.c (attach_command): Don't call wait_for_inferior if
508 running Mach 3.
509 * infrun.c (proceed) [PREPARE_TO_PROCEED]: If defined, call
510 hook that can decide whether to step over the next breakpoint.
511 * utils.c (wrap_here): Abort if wrap_buffer not allocated.
512 (request_quit) [REQUEST_QUIT]: If defined, call it instead of
513 doing normal quit.
514
6ec7e4d3
SS
515 * configure.in: Improve sorting/formatting of hosts and targets.
516 (i[34]86-*-mach3*, i[34]86-*-osf1mk*, mips-*-mach3*,
517 m88*-*-mach3*, ns32k-*-mach3*): Recognize.
9f8219f1
SS
518 * Makefile.in (stop-gdb): New target.
519 * stop-gdb.c: New file, utility to get attention of waiting GDBs
6ec7e4d3
SS
520 in Mach 3.
521
f36b58b1
TL
522Wed Jun 15 00:41:03 1994 Tom Lord (lord@rtl.cygnus.com)
523
524 * top.c (gdb_init): Init current_directory in gdb_init. Probably
525 the identical initialization can be deleted from main.c, but i
526 haven't done so just in case.
527
e91c1816
TL
528Tue Jun 14 17:24:41 1994 Tom Lord (lord@x1.cygnus.com)
529
530 * gdba.el: Added menu windows and slightly improved window
531 handling to gdba.el. Fixed numerous minor bugs that were causing
532 emacs and gdb to fall out of sync.
533
f2d9c058
KH
534Tue Jun 14 16:18:44 1994 Kung Hsu (kung@mexican.cygnus.com)
535
536 * breakpoint.c: annotate changes lost at merge, put back in.
537
e884f418 538Mon Jun 13 17:28:50 1994 Stan Shebs (shebs@andros.cygnus.com)
2b14c195 539
e884f418
SS
540 * config/i386/i386sco.mh, i386sco4.mh (XDEPFILES): Remove
541 i387-tdep.o.
2b14c195 542
33c66e44
PS
543Sun Jun 12 03:51:52 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
544
545 * config/m68k/dpx2.mh (NATDEPFILES): Remove duplicate inclusion
546 of inftarg.o.
547 * config/m68k/tm-dpx2.h (CANNOT_STORE_REGISTER): Define to inhibit
548 writing of floating registers, the dpx2 kernel disallows it.
549 * irix5-nat.c (LM_ADDR): The loaded address of the shared library
550 is contained in o_praw.
551 * irix5-nat.c (solib_map_sections): Adjust sections by the
552 difference between the loaded address and the prelinked address.
553 * irix5-nat.c (solib_address): Use LM_ADDR for the loaded start
554 address.
555 * mdebugread.c (parse_symbol): Do not relocate stEnd/scText
556 symbols, their value is absolute.
557 * mdebugread.c (parse_partial_symbols): Handle Irix 5.2 shared
558 libraries fh->adr fields of zero. Relocate minimal symbol values
559 upon readin. Relocate non-stabs symbols upon readin.
560 * mdebugread.c (psymtab_to_symtab_1): Use pst->textlow for the
561 start address of the outermost block.
562 * mdebugread.c (parse_lines, parse_procedure): Pass in pst
563 instead of section_offsets and use relocated pst->textlow for
564 line number and procedure address relocations.
565
566 From gmo@MicroUnity.com (Guillermo A. Loyola):
567 * mdebugread.c (parse_symbol, parse_partial_symbols, cross_ref):
568 Handle SGI Irix5 stIndirect symbol type.
569
2c3fb46a
KH
570Fri Jun 10 14:52:56 1994 Kung Hsu (kung@mexican.cygnus.com)
571
11054881
KH
572 * breakpoint.c: fix a syntax error native cc does not like.
573
1782eb41
KH
574 * Makefile.in: change sparclite-tdep.c to sparcl-tdep.c.
575 * sparclite/Makefile.in: ditto.
576 * sparcl-tdpe.c: change file name because first 8 chars has to be
577 unique.
578 * sparcl-stub.c: ditto.
579
580 * .Sanitize: add sparclite-stub.c sparclite-tdep.c to keep.
581
2c3fb46a
KH
582 * sparclite/Makefile.in: fix INCLUDE_CFLAGS to have {srcdir}/../config.
583
e9a3cde8
JL
584Fri Jun 10 10:38:15 1994 Jeff Law (law@snake.cs.utah.edu)
585
586 * hppa-tdep.c (target_read_pc, target_write_pc): Accept (and
587 ignore) a PID argument.
588 (hppa_pop_frame): Pass a PID to target_write_pc.
589 * config/pa/tm-hppa.h (TARGET_READ_PC, TARGET_WRITE_PC): Accept
590 and pass through a PID argument.
591 (target_read_pc, target_write_pc): Update prototypes.
592
593Thu Jun 9 18:10:44 1994 Kung Hsu (kung@mexican.cygnus.com)
594
595 * Makefile.in: add new file sparclite-tdep.c.
596 * sparclite/Makefile.in: add new file sparclite-stub.c.
597 * sparclite/hw_breakpoint.note: note for SPARClite hardware breapoint
598 support.
599 * config/sparc/sparclite.mt: add sparclite-tdep.o.
600 * config/sparc/tm-sparclite.h: add hardware breakpoints support
601 defiines and code.
602 * sparclite-tdep.c: new file, contains hardware breakpoint support
603 code.
604 * sparclite-stub.c: new file, stub code that add support hardware
605 breakpoint support.
606 * breakpoint.c: add hardware breakpoint support.
607 * breakpoint.h: add new breakpoint type to support hardware
608 breakpoint.
609 * config/mips/nm-irix4.h: change interface for target dependent
610 code supporting watch point.
611 * config/pa/nm-hppab.h: change interface for target dependent
612 code supporting watch point.
613
2c012f9e
KH
614Thu Jun 9 14:59:58 1994 Kung Hsu (kung@mexican.cygnus.com)
615
616 * remote-os9k.c (rombuf_command): fix a bug accepting rombug
617 output.
618 * stabsread.c (read_struct_fields): os9k nested structure does not
619 have terminating ';', instead it just get to ',' and bit position
620 and length.
621
a4b4f520
SG
622Wed Jun 8 23:20:45 1994 Stu Grossman (grossman@cygnus.com)
623
624 * nlmread.c (nlm_symtab_read): Clean up a bit.
625 * (nlm_symfile_read): Record bounds of main() so that backtrace
626 command will know where to stop.
627 * objfiles.c (objfile_relocate): Relocate entry point/func info
628 for backtrace as well.
629 * objfiles.h: Define values for invalid PCs for entry point info.
630 * symfile.c (init_entry_point_info): Initialize invalid values
631 with aforementioned macros.
632 * config/alpha/tm-alphanw.h: Turn on FRAME_CHAIN_VALID_ALTERNATE
633 to cause backtrace to stop when it gets back to main().
634 * config/i386/tm-i386nw.h: Ditto.
635
e10cfcaa
PB
636Sat Jun 4 18:17:03 1994 Per Bothner (bothner@kalessin.cygnus.com)
637
e884f418 638 Fix value_print, which used to be ostensibly language-independent,
e10cfcaa
PB
639 but would print pointers and arrays in C syntax. Instead, call
640 a language-specific function.
641 * language.h (struct language_defn): New functional field
e884f418
SS
642 la_value_print.
643 (LA_VALUE_PRINT): New macro.
644 * language.c (unk_lang_value_print): New stub/dummy function.
e10cfcaa
PB
645 (unknown_language_defn, auto_language_defn, local_language_defn):
646 Use it.
647 * c-valprint.c (c_value_print): New function, with code moved from:
648 * valprint.c (value_print): ... here. Now just invoke
649 LA_VALUE_PRINT to do language-specific stuff.
650 * valprint.c (value_print_array_elements): Make non-static.
651 * c-lang.c (c_language_defn, cplus_language_defn): Add
e884f418 652 c_value_print in the la_value_print field.
e10cfcaa
PB
653 * m2-lang.c (m2_language_defn): Likewise.
654 * ch-lang.c (chill_language_defn): But here use chill_value_print.
655 * ch-valprint.c (chill_val_print): Print null pointer as NULL.
656 * ch-valprint.c (chill_value_print): New function, based on
657 c_value_print, but use Chill "look and feel."
658 * c-lang.h (c_value_print): New prototype.
659 * ch-lang.h (chill_value_print): New prototype.
660 * value.h (value_print_array_elements): New prototype.
661
662 * ch-valprint.c (chill_val_print, case TYPE_CODE_BITSTRING
663 and case TYPE_CODE_SET): Check that the element type isn't a stub.
664
172559ec
JK
665Fri Jun 3 09:15:00 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
666
667 * main.c: Move entire file except for #ifndef MAIN_OVERRIDE code
668 to new file top.c. Make things extern instead of static and
669 similar rearrangements to deal with this.
670 * top.h: New file.
671 * utils.c: Move fputs_unfiltered to main.c. Remove
672 FPUTS_UNFILTERED_OVERRIDE ifndef.
673 * Makefile.in: Change so that gdb uses main.c, utils.c, and top.c,
674 and libgdb uses utils.c and top.c.
675
36af5ec6
JL
676Thu Jun 2 23:19:10 1994 Jeff Law (law@snake.cs.utah.edu)
677
678 * hppa-tdep.c (skip_trampoline_code): Fix typo.
679
35f8a588
PB
680Thu Jun 2 18:09:59 1994 Per Bothner (bothner@kalessin.cygnus.com)
681
682 * ch-valprint.c (chill_val_print_array_elements): New function.
683 A Chill version of val_print_array_elements, it prints the
684 array index labels, in additions ot the array element values.
685 (chill_val_print): Use the new function.
686
2e6784a8
SG
687Thu Jun 2 08:50:00 1994 Stu Grossman (grossman@cygnus.com)
688
689 * configure.in: Add nlm subdir to configdirs for alpha-*-netware
690 target.
691 * defs.h (enum language): Add language_asm.
692 * findvar.c (read_register_bytes read_register_gen
693 write_register_bytes read_register read_register_pid
694 write_register write_register_pid supply_register): Move multi-
695 thread handling down into these routines. Create XXX_pid routines
696 that allow register references to specify the pid.
697 * findvar.c infcmd.c (read_pc read_pc_pid write_pc write_pc_pid
698 read_sp write_sp read_fp write_fp): Move these routines from
699 infcmd to findvar to centralize the whole mess.
700 * i386-nlmstub.c: Portability fixes.
701 * infptrace.c (child_resume): Conditionalize to allow other natives
702 to override it. Remove PIDGET gubbish, it's no longer necessary.
703 * infrun.c (wait_for_inferior): Put registers_changed() before
704 target_wait() to speed up remote debugging.
705 * Replace code that reads registers from other threads with much
706 nicer looking new function calls (see changes to findvar.c).
707 * Don't skip prologues if debugging assembly source.
708 * lynx-nat.c (child_resume): Lynx now needs it's own version of
709 child_resume to handle multi-thread debugging properly.
710 * remote.c: Add O response to get console output from target.
711 * (readchar): Add timeout parameter. Handle SERIAL_EOF and
712 SERIAL_ERROR here to simplify callers.
713 * Change static var timeout to remote_timeout.
714 * (fromhex): Remove unnecessary return -1 at end of routine.
715 * (remote_wait): Turn this into a big switch statement. Add
716 support for O response.
717 * (putpkt): Remove unnecessary handling of SERIAL_EOF/ERROR.
718 * (getpkt): Split getpkt into two parts. read_frame deals with
719 all formatting issues, run-length encoding, and framing. getpkt
720 now handles error recovery, and frame detection.
721 * ser-tcp.c (tcp_readchar): Handle EINTR from read().
722 * ser-unix.c (hardwire_raw): Set CLOCAL so that we ignore modem
723 control. (hardwire_readchar): Handle EINTR from read().
724 * symfile.c (deduce_language_from_filename): Add support for .s
725 files.
726 * config/nm-lynx.h: Define CHILD_WAIT so that lynx-nat.c can
727 override infptrace's child_wait.
728 * config/rs6000/rs6000lynx.mh: Use xm-rs6000ly.h & nm-rs6000ly.h
729 instead of XXXlynx.h.
730 * config/rs6000/rs6000lynx.mt: Use tm-rs6000ly.h instead of
731 tm-rs6000lynx.h.
732 * nlm/gdbserve.c: Portability fixes.
733
d3507982
JK
734Tue May 31 20:35:44 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
735
736 * inftarg.c (child_wait): Call proc_wait, not wait.
737 (child_mourn_inferior): Call proc_remove_foreign.
738 * main.c (gdb_init): Call init_proc.
739 * main.c: Provide dummy versions of init_proc, proc_wait, and
740 proc_remove_foreign for the gdb case (the libgdb case provides its
741 own versions of these functions).
742 * Makefile.in (libgdb-files): Add libproc.a.
743
6d40175d
SS
744Wed Jun 1 11:08:52 1994 Stan Shebs (shebs@andros.cygnus.com)
745
746 Hardware watchpoints for Linux, from Rick Sladkey
747 (jrs@world.std.com).
748 * infrun.c (wait_for_inferior) [HAVE_CONTINUABLE_WATCHPOINT]: Add
749 new hardware breakpoint recovery method.
750 * i386v-nat.c (i386_insert_watchpoint,
751 i386_insert_nonaligned_watchpoint, i386_remove_watchpoint,
752 i386_stopped_by_watchpoint) [TARGET_CAN_USE_HARWARE_WATCHPOINT]:
753 New functions to support the 386 hardware debugging registers.
754 * config/i386/nm-linux.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT,
755 HAVE_CONTINUABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
756 target_insert_watchpoint, target_remove_watchpoint): Define these
757 macros to use the hardware debugging functions in i386v-nat.c.
758
667fb5c3
JK
759Wed May 25 17:06:15 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
760
761 * Makefile.in: Replace libgdb.a with libgdb-files. Make "all"
762 build it.
763
429f1c9f
JK
764Thu May 19 09:56:20 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
765
766 * target.c, target.h: New variables target_activity_function and
767 target_activity_fd.
768 * inflow.c, inferior.h: New functions set_sigio_trap and
769 clear_sigio_trap.
770 * inftarg.c (child_wait), procfs.c (wait_fd): Call them.
771
bc67bf96
DE
772Wed May 18 13:01:55 1994 Doug Evans (dje@canuck.cygnus.com)
773
47424e79
DE
774 * remote-sim.h (sim_verbose): Delete.
775 Document callbacks needed.
776 (sim_*): Change result to void where there isn't one.
777 (sim_open): Clarify argument and error response.
778 (sim_close): Declare.
779 (sim_load): Change bfd_handle argument to file name. Clarify result.
780 (sim_create_inferior): Renamed from sim_set_args.
781 (sim_set_pc): Delete.
782 (sim_info): Delete printf_fn argument.
783 * remote-sim.c (gdbsim_kill): Add comment describing purpose.
784 (gdbsim_load): Try sim_load first.
785 (gdbsim_create_inferior): Call sim_create_inferior.
786 (gdbsim_open): Handle args == NULL. Update call to sim_open.
787 (gdbsim_close): Call sim_close.
788 (gdbsim_files_info): Update call to sim_info.
789 (gdbsim_ops): Realign comments.
790
bc67bf96
DE
791 * printcmd.c (decode_format): Allow TARGET_PTR_BIT to be non-constant.
792
298f0428
SS
793Tue May 17 16:45:20 1994 Stan Shebs (shebs@andros.cygnus.com)
794
795 * xcoffread.c (read_xcoff_symtab): For C_FILE symbols, only use
796 the auxent if the symbol's name is ".file". From David Edelsohn
797 <c1dje@watson.ibm.com>.
798
9c036bd8
JK
799Tue May 17 11:08:22 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
800
20b3c1aa
JK
801 * breakpoint.c (breakpoint_1): Fix typo.
802
803 * annotate.c (annotate_field_end): Fix typo.
804
805 * Makefile.in: Move annotate.o from COMMON_OBS to OBS.
806
807 * Makefile.in (TSSTART): Remove; no longer used.
808
9c036bd8
JK
809 * utils.c (vfprintf_maybe_filtered, vfprintf_unfiltered): Call
810 fputs_unfiltered and exit directly, rather than fatal. The latter
811 calls vfprintf_unfiltered!
812
813 * gdbtypes.h, gdbtypes.c (can_dereference): New function.
814 * value.h, printcmd.c (print_value_flags): Move from here...
815 * annotate.c: ...to here, and make it use can_dereference.
816
16d2cc80
SS
817Sat May 14 15:13:52 1994 Stan Shebs (shebs@andros.cygnus.com)
818
819 * inflow.c (job_control, attach_flag, generic_mourn_inferior):
820 Remove, needed for both native and cross.
821 * target.c (attach_flag, generic_mourn_inferior): Put here.
822 * utils.c (job_control): Put here.
823 (terminal.h): Don't include anymore.
824
d8fc8773
JK
825Sat May 14 09:11:44 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
826
827 * source.c (find_source_lines): Always use code that was #ifdef
828 BROKEN_LARGE_ALLOCA. Do the cleanup before returning, rather than
829 leaving it on the chain. Reindent much of this function.
830 * config/sparc/{xm-sun4sol2.h,xm-sun4os4.h},
831 config/i386/{xm-sun386.h,xm-i386m3.h,xm-i386mach.h},
832 config/m68k/{sun3os4.h,xm-news.h,xm-hp300hpux.h},
833 config/ns32k/xm-ns32km3.h: Remove all references to
834 BROKEN_LARGE_ALLOCA; with the above change it is no longer needed.
835 * main.c, fork-child.c, many config files: Remove all
836 SET_STACK_LIMIT_HUGE code; with the above changes it should no
837 longer be needed.
838
839 * symtab.c (lookup_partial_symbol): Use if and abort, not assert.
840 This avoids __eprintf troubles.
841
1c95d7ab
JK
842Fri May 13 08:10:21 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
843
d8fc8773
JK
844 * main.c (main): Surround in #ifndef MAIN_OVERRIDE. Move
845 initialization code which needs to be called even if we bypass the
846 command line stuff into gdb_init.
847 * utils.c (fputs_unfiltered): Surround in #ifndef
848 FPUTS_UNFILTERED_OVERRIDE.
849 * Makefile.in (libgdb.a): New target.
850
851 * utils.c: Rearrange I/O stuff a bit so that all output goes
852 through fputs_unfiltered. Use vasprintf; removes arbitrary limit
853 which made %s not work with arbitrarily large strings.
854 * printcmd.c (printf_command): Use printf_filtered, not
855 printf_unfiltered and printf, now that arbitrary limit is gone.
856
1c95d7ab
JK
857 gcc -Wall lint:
858 * breakpoint.c (watchpoint_check): Remove unused variable b.
859 * stack.c (print_frame_info): Move sp and buf inside #if.
860 * eval.c (evaluate_subexp): Remove unused variables pp,
861 mangle_ptr, ptr, and mangle_tstr.
862 * valarith.c (value_x_binop): Remove unused variables mangle_tstr
863 and mangle_ptr.
864 * symtab.c (lookup_symtab): Put variable copy inside #if.
865 (decode_line_1): Put variable q1 inside #if 0.
866 * target.h: Declare target_link.
867 * infrun.c (wait_for_inferior): Remove unused variables signame.
868 * remote.c (remote_resume): Remove unused variable name.
869 * c-exp.y (parse_number): Parenthesize operand of shift.
870 * dbxread.c (record_minimal_symbol): Parenthesize operand of &&
871 (this is a semantic change, the warning seems to have detected a bug).
872 * dbxread.c (end_psymtab): Move variable p1 inside #if.
873 * coffread.c: Move variable temptype inside #if.
874 * ch-typeprint.c (chill_type_print_base): Remove unused variable
875 name.
876 * ch-valprint.c: #include typeprint.h and ch-lang.h.
877 (chill_val_print): Remove unused variable in_range.
878 (chill_val_print): Remove statement "length > TYPE_LENGTH (type);".
879 (chill_val_print): Add default case for switch.
880 * stabsread.h: Declare stabsect_build_psymtabs.
881 * os9kread.c (read_minimal_symbols): Make this return void.
882 (os9k_symfile_read): Remove unused variables stb_exist and val.
883 (os9k_symfile_init): Remove unused variable val.
884 (fill_sym): Remove unused variable id.
885 (read_os9k_psymtab): Put variable back_to inside #if 0. Remove
886 unused variable nsl.
887 Remove unused variable symfile_bfd.
888 #if 0 unused variables lbrac_unmatched_complaint and
889 lbrac_mismatch_complaint.
890 Remove declaration for non-existent function os9k_next_symbol_text.
891
892 * annotate.c, annotate.h: New files, containing a function for
893 each annotation which outputs it.
894 * Move breakpoints_changed from breakpoint.c to annotate.c.
895 * breakpoint.c, blockframe.c, infrun.c, cp-valprint.c, main.c,
896 printcmd.c, source.c, stack.c, utils.c, valprint.c:
897 Use annotate.c functions to output annotations.
898 * Makefile.in (OBS): Add annotate.o.
899
88b91d4a
JL
900Thu May 12 10:46:27 1994 Jeff Law (law@snake.cs.utah.edu)
901
f55179cb
JL
902 * hppa-tdep.c (read_unwind_info): Make sure elf_unwind_size and
903 elf_unwind_entries are always initialized.
904
88b91d4a
JL
905 * hppa-tdep.c (skip_trampoline_code): Handle argument relocation
906 stubs which return directly to the caller rather than to the stub
907 itself.
908
8db1a922
SS
909Wed May 11 20:11:51 1994 Stan Shebs (shebs@andros.cygnus.com)
910
911 * c-exp.y (yyerror): Display a more informative error message.
912 * ch-exp.y (yyerror): Ditto, don't use global yychar.
913 * m2-exp.y (yyerror): Ditto.
914
91ecc8ef
SS
915Tue May 10 11:57:53 1994 Stan Shebs (shebs@andros.cygnus.com)
916
917 * inflow.c (job_control): Move definition to front of file.
918
0286d386
ILT
919Tue May 10 14:42:37 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
920
921 * maint.c (print_section_table): Rename SEC_SHARED_LIBRARY to
922 SEC_COFF_SHARED_LIBRARY to match corresponding change in bfd.
923
924Fri May 6 13:30:22 1994 Stan Shebs (shebs@andros.cygnus.com)
925
926 * Makefile.in (kdb): Remove old init.c creation commands.
927 * configure.in (sparclite): Match on sparclite*.
928 * sparclite/aload.c (main): Only change section addresses for
929 a.out format object files.
930
5ff7b328
SC
931Fri May 6 13:24:04 1994 Steve Chamberlain (sac@cygnus.com)
932
933 * config/i386/go32.mh: Define CC.
934
b292fca8
SS
935Fri May 6 11:56:54 1994 Stan Shebs (shebs@andros.cygnus.com)
936
937 * gdbserver/Makefile.in: Remove irrelevant definitions and
938 comments inherited from the gdb Makefile.
939 (BFD_DIR, BFD, BFD_SRC, BFD_CFLAGS): Add from gdb Makefile.
940 (VERSION): Update to 4.12.3.
941 (gdbserver): Remove any existing executable first.
942 (distclean, realclean): Remove nm.h.
943 * gdbserver/low-lynx.c: Add Sparc Lynx support.
944 * gdbserver/low-sparc.c, gdbserver/low-sun3.c (sys/wait.h):
945 Don't use absolute pathname.
946
947Thu May 5 12:00:22 1994 Stan Shebs (shebs@andros.cygnus.com)
948
949 * rs6000-nat.c (vmap_ldinfo): Don't fail if fstat returns an
950 error.
951
ee5fca1f
JK
952Wed May 4 06:56:03 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
953
954 * infrun.c (proceed, normal_stop, wait_for_inferior), breakpoint.c
955 (print_it_normal): Add annotations for the inferior starting and
956 stopping, and for all the various messages related to how it
957 stopped.
958
959 * printcmd.c (do_one_display): Annotate.
960 * stack.c (print_frame_info): Annotate printing of stack frames.
961
731dca94
SG
962Wed May 4 18:15:51 1994 Stu Grossman (grossman@cygnus.com)
963
964 * remote.c (get_offsets): Handle case where stub doesn't support
965 qOffsets message.
966
36a2283d
PB
967Wed May 4 15:30:39 1994 Per Bothner (bothner@kalessin.cygnus.com)
968
969 Add partial support for g++ code compiled with -fvtable-thunks.
970 * c-valprint.c (c_val_print): Add vtblprint support
971 when using thunks.
972 * cp-valprint.c (cp_is_vtbl_member): A vtable can be an array of
973 pointers (if using thunks) as well as array of structs (otherwise).
974 * cp-valprint.c (vtbl_ptr_name_old, vtbl_ptr_name): Move to global
975 level, and make the latter non-static (so define_symbol can use it).
976 * stabsread.c (define_symbol): If the type being defined is a
977 pointer type named "__vtbl_ptr_type", set the TYPE_NAME to that name.
978 * symtab.h (VTBL_PREFIX_P): Allow "_VT" as well as "_vt".
979 * values.c (value_virtual_fn_field): Handle thunks.
980 * values.c (value_headof): Minor efficiency hack.
981 * values.c (value_headof): Incomplete thunk support. FIXME.
982
997c6a1d
JK
983Wed May 4 06:56:03 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
984
d24c0599
JK
985 * valprint.c (print_longest): Clarify comment about use_local.
986 * printcmd.c, defs.h (print_address_numeric), callers in
987 symmisc.c, symfile.c, stack.c, source.c, remote.c, infcmd.c,
988 cp-valprint.c, core.c, ch-valprint.c, c-valprint.c, breakpoint.c,
989 exec.c: New argument use_local.
990 * source.c (identify_source_line): Use filtered output. Use
991 print_address_numeric.
992
e16b9023
JK
993 * core.c (memory_error), symtab.c (cplusplus_hint, decode_line_1),
994 language.c (type_error, range_error): Use filtered output.
995 * utils.c (error_begin): Update comment to tell people to use
996 filtered output.
997
997c6a1d
JK
998 * Makefile.in (HFILES_WITH_SRCDIR): List bfd.h.
999 (HFILES_NO_SRCDIR): List gdbcore.h not gdbcore_h, so as not to get
1000 bfd.h.
1001
3f5e2fb5
JK
1002Tue May 3 07:41:33 1994 Jim Kingdon (kingdon@cygnus.com)
1003
1004 * procfs.c (procfs_wait): Reinstate code which deduces the signal
1005 from the fault, #ifndef FAULTED_USE_SIGINFO.
1006 * config/sparc/tm-sun4sol2.h: Define FAULTED_USE_SIGINFO.
1007
47ebe8fd
JK
1008Fri Apr 29 18:15:04 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1009
1010 * breakpoint.c (breakpoint_1): Annotate each field of the headers.
1011 Explicitly annotate each record.
1012
0c4b30ea
SS
1013Fri Apr 29 15:56:18 1994 Stan Shebs (shebs@andros.cygnus.com)
1014
1015 * xcoffexec.c: Reformat to standards and lint.
1016 (language.h): Include.
1017 (exec_close): Declare arg "quitting".
1018 (file_command): Declare arg "from_tty".
1019 (map_vmap): Cast xmalloc result to PTR.
1020 * rs6000-nat.c: Reformat to standards and lint.
1021 (exec_one_dummy_insn): Use char array for saved instruction.
1022 (fixup_breakpoints): Declare.
1023 (vmap_ldinfo): Be more informative in fatal error messages.
1024 (xcoff_relocate_symtab): Define to return void.
1025 * xcoffsolib.h: Reformat to standards, improve comments.
1026 * config/rs6000/nm-rs6000.h (xcoff_relocate_symtab): Declare.
1027
d8742f46
JK
1028Thu Apr 28 08:40:56 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1029
a0cf4681
JK
1030 * utils.c, defs.h (error_begin): New function.
1031 (quit): Print annotation before printing the error message.
1032 * main.c (return_to_top_level): Print annotation before doing the
1033 longjmp.
1034 * symtab.c (decode_line_1): Call error not warning and then
1035 return_to_top_level. Call error_begin and printf_unfiltered
1036 rather calling warning (before calls to return_to_top_level).
1037 * core.c (memory_error): Use error_begin, printf_unfiltered,
1038 print_address_numeric and return_to_top_level instead of error.
1039 Cleans up a FIXME-32x64.
1040 * language.c (type_error, range_error): Call error_begin
1041 not just target_terminal_ours.
1042
21ad7c45
JK
1043 * dbxread.c (stabsect_build_psymtabs): Assign to sym_stab_info
1044 directly, rather than via DBX_SYMFILE_INFO. A cast on the left
1045 side of an assignment is non-portable.
1046
d8742f46
JK
1047 * utils.c (query): Change syntax of query annotations to be
1048 consistent with other input annotations.
4dd876ac 1049 (prompt_for_continue): Likewise for prompt-for-continue annotation.
d8742f46 1050
11d26982
PS
1051Thu Apr 28 01:20:39 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1052
1053 * mdebugread.c (psymtab_to_symtab_1): Do not call sort_blocks
1054 for stabs symtabs.
1055 * mips-tdep.c (mips_skip_prologue): Handle prologues for functions
1056 that have a stack frame size of 32k or larger (from Paul Flinders).
1057 Remove #if 0'd code.
1058
aa175216
SS
1059Wed Apr 27 16:33:51 1994 Stan Shebs (shebs@andros.cygnus.com)
1060
1061 * lynx-nat.c (CANNOT_STORE_REGISTER): Add a fallback definition
1062 for Lynx platforms that need it.
1063 * config/nm-lynx.h (__LYNXOS): Define if not already defined.
1064
890634ed
JK
1065Wed Apr 27 16:01:37 1994 Jim Kingdon (kingdon@cygnus.com)
1066
1067 * procfs.c (procfs_wait): Use the signal from the pr_info rather
1068 than trying to deduce it from the fault.
1069
c0c9b923
SC
1070Wed Apr 27 12:22:46 1994 Steve Chamberlain (sac@cygnus.com)
1071
1072 * printcmd.c (print_address_symbolic): Initialize name to empty
1073 string to avoid core dump if lookup fails.
1074 * remote-e7000.c (printf_e7000debug): Error if target not open.
1075
a49666fe
SG
1076Tue Apr 26 22:45:24 1994 Stu Grossman (grossman at cygnus.com)
1077
1078 * i386-nlmstub.c: Update to be more in line with PIN stub.
1079 * nlm/gdbserve.c (putDebugChar): Install bug fix from i386-nlmstub.
1080 * (hex2mem): Init ptr.
1081 * General cleanups to use ConsolePrintf, standard prologues, etc...
1082
d0e2b767
SG
1083Tue Apr 26 10:23:04 1994 Stu Grossman (grossman at cygnus.com)
1084
68ba2fa5
SG
1085 * i386-nlmstub.c: More changes to be compatible with remote.c.
1086
1087 * dbxread.c: Move a bunch of strncmps out of process_one_symbol
1088 into (the far less frequently called) dbx_symfile_read.
1089
d0e2b767
SG
1090 * i386-nlmstub.c: An interim version till we get PIN for the x86.
1091
a66e8382
SG
1092Tue Apr 26 09:50:45 1994 Stu Grossman (grossman at cygnus.com)
1093
1094 * dbxread.c (record_minimal_symbol): Record the section
1095 associated with the symbol to make dynmaic relocation work.
1096 * (dbx_symfile_read, process_one_symbol): Fixes to work around
1097 Solaris brain-damage which don't apply to relocatable object
1098 files.
1099 * (stabsect_build_psymtabs): New routine to read stabs out of an
1100 arbitrarily named section.
1101 * nlmread.c (nlm_symtab_read): Read ALL syms from the NLM, not just
1102 globals.
1103 * (nlm_symfile_read): Call stabsect_build_psymtabs to read the
1104 stabs out of the nlm.
1105 * partial-stabs.h (cases 'f' & 'F'): Fixes to work around Solaris
1106 brain-damage which don't apply to relocatable object files.
1107 * remote.c (putpkt): Improve error reporting and error handling.
1624c38f
SG
1108 * (get_offsets): Temporary kludge to force data & bss sections to
1109 have the same relocation.
a66e8382
SG
1110 * stabsread.c (define_symbol, scan_file_globals): Record section
1111 info in sym.
1112
fdb81aa1
JK
1113Sat Apr 23 19:05:52 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1114
1115 * breakpoint.c (breakpoint_1): Annotate each field of output. Add
1116 FIXME-32x64 comment.
1117
0a2e98a9
JK
1118Fri Apr 22 16:43:54 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1119
d084c93f
JK
1120 * infrun.c (wait_for_inferior): Move call to flush_cached_frames
1121 to after call to target_wait. This means that flush_cached_frames
1122 can call target_terminal_ours if it wants to.
1123 * infrun.c (wait_for_inferior) [HAVE_NONSTEPPABLE_WATCHPOINT]: Add
1124 comment about why the code is dubious.
1125
0a2e98a9
JK
1126 * stabsread.c (read_type): Call read_type, not nonexistent
1127 os9k_read_type.
1128
d5336fc5
KH
1129Fri Apr 22 14:25:36 1994 Kung Hsu (kung@mexican.cygnus.com)
1130
1131 * remote-os9k.c (rombug_fetch_registers): set trace mode
1132 correctly.
1133 * remote-os9k.c (rombug_read_inferior_memory): cache data in
1134 buffer.
1135 * os9kread,c (read_os9k_psymtab): process file symbol to truncate
1136 extra info.
1137 * os9kread.c (os9k_read_ofile_symtab): proper casting of args
1138 passed to process_one_symbol.
1139 * stabsread.c (read_type): process os9k functio prototype.
1140
f5a0908f
JK
1141Fri Apr 22 11:27:39 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1142
1143 * solib.c (symbol_add_stub): If so->textsection is NULL, don't
1144 dump core.
1145
9e8db445
JK
1146Thu Apr 21 07:45:49 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1147
da988c20
JK
1148 * utils.c (prompt_for_continue): Annotate prompt.
1149 (query): Annotate query.
1150 * printcmd.c (print_frame_args): Change syntax of argument
1151 annotation to make name and value part of a single group of
1152 annotations, not two separate groups.
1153 * cp-valprint.c (cp_print_value_fields): Likewise for fields.
1154 * valprint.c (val_print_array_elements): Change syntax of
1155 annotation to be more concise.
1156 * main.c, defs.h (command_line_input): New argument tells what
1157 string to include in the annotations.
1158 * symtab.c (decode_line_2), main.c (read_command_lines,
1159 command_loop): Change callers.
1160
9e8db445
JK
1161 * breakpoint.c (watch_command): Use (CORE_ADDR)0, not NULL, for
1162 target null pointer.
1163 * blockframe.c (find_frame_addr_in_frame_chain): Likewise.
1164
1165 * printcmd.c (output_command): Annotate things we print here too.
eb1e37a3 1166 * printcmd.c (print_command_1): Add "value-history-value" annotation.
9e8db445
JK
1167 * Move declaration of print_value_flags from defs.h to value.h.
1168 * main.c (command_line_input): Call wrap_here as well as gdb_flush.
1169
0683ac4b
PS
1170Thu Apr 21 09:29:37 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1171
1172 * dbxread.c (read_dbx_dynamic_symtab): Reinstall support for sun3,
1173 BFD handles sun3 dynamic relocations now.
1174 * elfread.c (elf_symtab_read, elf_symfile_read): Handle dynamic
1175 symbol table.
1176
96f7edbd
JK
1177Wed Apr 20 19:41:21 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1178
1179 * printcmd.c (print_command_1): Annotate the top-level expressions
1180 that we print.
1181 (print_frame_args): Annotate each argument.
1182 * printcmd.c, defs.h (print_value_flags): New function.
1183 * cp-valprint.c (cp_print_value_fields): Annotate each field.
1184 * valprint.c (val_print_array_elements): Annotate each array element.
1185
59746d9f
PS
1186Wed Apr 20 13:18:41 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1187
1188 * findvar.c (read_var_value): Handle LOC_REPARM_ADDR case correctly,
1189 the register contains a pointer to the type, not the type itself.
1190
6c803036
JK
1191Mon Apr 11 10:44:35 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
1192
1193 * main.c (main): Accept --annotate=N option and make --fullname
1194 the same as --annotate=1.
1195 (command_line_input): Print annotatation before and after prompt.
1196 * blockframe.c (flush_cached_frames): Print annotation.
1197 * Rename frame_file_full_name to annotation_level and move it from
1198 symtab.h to defs.h.
1199 * source.c (identify_source_line): If annotation_level > 1,
1200 change output format.
1201 * breakpoint.c: Print annotation whenever a breakpoint changes.
1202 * main.c: New variable server_command.
1203 (command_line_input): Parse "server " and set server_command.
1204 (dont_repeat): Check server_command.
1205
d7a96d67
JK
1206Wed Apr 20 08:37:16 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1207
963dbabe
JK
1208 * xcoffread.c (xcoff_next_symbol_text): Don't return before
1209 updating raw_symbol and symnum. Return a value in the case where
1210 we complained.
1211
d7a96d67
JK
1212 * dstread.c, coffread.c: Don't define pending_blocks; buildsym.c
1213 takes care of it.
703e4251
JK
1214 * parse.c: Don't define block_found; it is defined in symtab.c.
1215 * parser-defs.h: Add comment regarding block_found.
d7a96d67 1216
d782a995
JL
1217Tue Apr 19 09:46:05 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
1218
1219 * hppa-tdep.c (internalize_unwind_info): Delete unused indexp
1220 argument.
1221
be78eb1a
PS
1222Mon Apr 18 13:18:56 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1223
1224 * dbxread.c (read_dbx_dynamic_symtab): Relocate BFD symbols by
1225 section vma. Do not read dynamic relocs for sun3 executables to
1226 avoid BFD assertion message.
1227
9c842e0c
JL
1228Mon Apr 18 10:08:07 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
1229
1230 * nm-hppab.h (KERNEL_U_ADDR): Define.
1231 (FIVE_ARG_PTRACE): Likewise.
1232 (CANNOT_STORE_REGISTER): Likewise.
8bd8cef2 1233 * nm-hppah.h (KERNEL_U_ADDR): Define.
9c842e0c
JL
1234 (FIVE_ARG_PTRACE): Likewise.
1235 (CANNOT_STORE_REGISTER): Likewise.
1236 (NEED_TEXT_START_END): Likewise.
1237
1238 * tm-hppah.h (NEED_TEXT_START_END): Delete definition.
1239 * xm-hppah.h (KERNEL_U_ADDR): Delete definition.
1240 (FIVE_ARG_PTRACE): Likewise.
1241 * xm-hppab.h (KERNEL_U_ADDR): Delete definition.
1242 (FIVE_ARG_PTRACE): Likewise.
1243
1244 * hppa-tdep.c (read_unwind_info): Make static.
1245 (restore_pc_queue): Indirect through the target vector to
1246 reload the register state.
1247
c5152d42
JL
1248Sat Apr 16 22:20:51 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
1249
1250 * paread.c (compare_unwind_entries): Delete function. It's been
1251 moved into hppa-tdep.c.
1252 (read_unwind_info): Likewise.
1253 (pa_symfile_read): No longer call read_unwind_info. The unwind
1254 tables will be read in as they are needed.
1255
1256 * hppa-tdep.c (compare_unwind_entries): New function.
1257 (read_unwind_info, internalize_unwinds): Likewise.
1258 (find_unwind_entry): Read in unwind information on demand.
1259
fad466eb
SS
1260Fri Apr 15 11:53:46 1994 Stan Shebs (shebs@andros.cygnus.com)
1261
1262 * source.c (DIRNAME_SEPARATOR): New macro, replaces all references
1263 to : in search path processing.
1264 * defs.h (qsort): Rename argument in prototype.
1265 * symtab.h (SAYMBOL_VALUE): Rename value field, avoids bugs in
1266 some compilers.
1267 * breakpoint.c, exec.c, mdebugread.c, mipsread.c, xcoffexec.c
1268 (false): Eliminate usages.
1269
63eef03a
SC
1270Fri Apr 15 11:35:19 1994 Steve Chamberlain (sac@cygnus.com)
1271
1272 * h8500-tdep.c (initialize_h8500_tdep, large_command):
1273 All references to value changed to value_ptrlage_command is now
1274 called big_command.
1275 All references to value changed to value_ptr.
1276 * remote-e7000.c (e7000_wait): Use target_waitstatus and SETSTOP
1277 * remote-hms.c (hms_wait): Timeout after five seconds.
1278 * ser-go32.c (dosasync_read): Poll if timeout < 0.
1279 * config/tm/tm-h8500.h (BEFORE_MAIN_LOOP_HOOK): Deleted.
1280 * config/sh/tm-sh.h (BREAKPOINT): Is now sleep opcode.
1281
e6b8a171
JL
1282Thu Apr 14 07:01:56 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
1283
1284 * procfs.c (procfs_wait): Protect watchpoint code with appropriate
1285 #ifdefs.
6bc194d2 1286 (procfs_set_watchpoint, procfs_stopped_by_watchpoint): Likewise.
e6b8a171 1287
999dd04b
JL
1288Wed Apr 13 14:52:46 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
1289
1290 * breakpoint.h (enum bptype): Add bp_hardware_watchpoint and
1291 bp_watchpoint_scope breakpoints.
1292 (struct breakpoint): Add val_chain and related_breakpoint fields
1293 for use by watchpoints.
1294
1295 * breakpoint.c (within_scope): Delete. No longer used.
1296 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Provide default definition.
1297 (target_{remove,insert}_watchpoint): Likewise.
1298 (can_use_hardware_watchpoint): New function.
1299 (remove_breakpoint): New function to remove a single breakpoint
1300 or hardware watchpoint.
1301 (insert_breakpoints): Handle insertion of hardware watchpoints.
1302 Store a copy of the value chain derived from the watchpoint
1303 expression.
1304 (remove_breakpoints): Simplify by using remove_breakpoint.
1305 (delete_breakpoint): Likewise.
1306 (watchpoint_check): Delete the watchpoint and watchpoint scope
1307 breakpoints when the watchpoint goes out of scope. Save & restore
1308 the current frame after checking watchpoints.
1309 (breakpoint_init_inferior): Likewise (restarting the program
1310 makes all local watchpoints go out of scope).
1311 (bpstat_stop_status): Handle hardware watchpoints much like normal
1312 watchpoints. Delete the watchpoint and watchpoint scope breakpoint
1313 when the watchpoint goes out of scope. Remove and reinsert all
1314 breakpoints before returning if we stopped when a hardware watchpoint
1315 fired.
1316 (watch_command): Use a hardware watchpoint when possible. If
1317 watching a local expression, build a scope breakpoint too.
1318 (map_breakpoint_numbers): Also call given function for any
1319 related breakpoints.
1320 (disable_breakpoint): Never disable a scope breakpoint.
1321 (enable_breakpoint): Handle hardware breakpoints much like normal
1322 breakpoints, but recompute the watchpoint_scope breakpoint's
1323 frame and address (if we have an associated scope breakpoint).
1324 (read_memory_nobpt): Handle hardware watchpoints like normal
1325 watchpoints. When necessary handle watchpoint_scope breakpoints.
1326 (print_it_normal, bpstat_what, breakpoint_1, mention): Likewise.
1327 (clear_command, breakpoint_re_set_one, enable_command): Likewise.
1328 (disable_command): Likewise.
1329
1330 * blockframe.c (find_frame_addr_in_frame_chain): New function.
1331 Extern prototype added to frame.h
1332
1333 * infrun.c (wait_for_inferior): Set current_frame and select
1334 a frame before checking if we stopped due to a hardare watchpoint
1335 firing. Handle stepping over hardware watchpoints.
1336 (normal_stop): Remove unnecessary call to select_frame.
1337
1338 * value.h (value_release_to_mark): Declare.
1339 * values.c (value_release_to_mark): New function.
1340
1341 * procfs.c (procfs_wait): Add cases for hardware watchpoints.
1342 (procfs_set_watchpoint, procfs_stopped_by_watchpoint): New functions.
1343
1344 * hppab-nat.c (hppa_set_watchpoint): New function.
1345
1346 * config/pa/nm-hppab.h (STOPPED_BY_WATCHPOINT): Define.
1347 (HAVE_STEPPABLE_WATCHPOINT): Define.
1348 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Define.
1349 (target_{insert,delete}_watchpoint): Define.
1350
9ec76784
JL
1351 * config/mips/nm-irix4.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Define.
1352 (STOPPED_BY_WATCHPOINT, HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1353 (target_{insert,remove}_watchpoint): Likewise.
1354
70e375c3
SG
1355Mon Apr 11 19:21:27 1994 Stu Grossman (grossman at cygnus.com)
1356
1357 * xcoffread.c (read_xcoff_symtab): Ignore symbols of class C_EXT,
1358 smtyp XTY_LD, sclass XMC_DS (external data segment label). They
1359 often have the same names as debug symbols for functions, and
1360 confuse lookup_symbol().
1361
2ddeed27
JK
1362Mon Apr 11 10:44:35 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
1363
1364 * remote.c: Around redefinition of PBUFSIZE, adjust whitespace.
1365 * config/pa/tm-hppa.h (REGISTER_BYTES): Use 4 rather than
1366 REGISTER_RAW_SIZE (1).
1367 Together these changes work around a bug in HP's compiler. Both
1368 seem to be necessary.
1369
699daa9c
JL
1370Mon Apr 11 09:18:24 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
1371
1372 * paread.c (pa_symtab_read): Handle ST_STUB symbols and symbols
1373 with scope SS_EXTERNAL. ST_ENTRY symbols in dynamic executables
1374 are type mst_solib_trampoline.
1375
7b2b0758
JK
1376Fri Apr 8 17:14:37 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
1377
1378 * config/m68k/es1800.mt: Change comments.
1379
1380Fri Apr 8 17:14:37 1994 Rob Savoye (rob@darkstar.cygnus.com)
1381
1382 * config/m68k/monitor.mt (TDEPFILES): Don't include remote-es.o.
1383
790a14a8
SG
1384Fri Apr 8 15:35:30 1994 Stu Grossman (grossman at cygnus.com)
1385
1386 * lynx-nat.c: Restore regmap structure for SPARC. It's needed
1387 for core files.
1388
f3e4ac4a
JK
1389Fri Apr 8 14:53:35 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
1390
a110a1c3
JK
1391 * values.c (unpack_long): Remove obsolete comment about using a
1392 switch statement.
1393
f3e4ac4a
JK
1394 * symfile.c (symbol_file_command): Add comments about command syntax.
1395
2fe3b329
PS
1396Thu Apr 7 17:25:21 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1397 Jim Kingdon (kingdon@cygnus.com)
1398
1399 * infrun.c (IN_SOLIB_TRAMPOLINE): Correct comment, trampolines
1400 are in the .plt section.
1401 * minsyms.c (lookup_solib_trampoline_symbol_by_pc,
1402 find_solib_trampoline_target): New functions for handling
1403 stepping into -g compiled shared libraries.
1404 * symtab.h (lookup_solib_trampoline_symbol_by_pc,
1405 find_solib_trampoline_target): Add prototypes.
1406 * config/tm-sunos.h (IN_SOLIB_TRAMPOLINE, SKIP_TRAMPOLINE_CODE):
1407 Define to handle stepping into -g compiled shared libraries.
1408 * config/tm-sysv4.h (SKIP_TRAMPOLINE_CODE): Define to handle
1409 stepping into -g compiled shared libraries.
1410
1411Thu Apr 7 17:22:54 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1412
1413 * configure.in: Add mips-*-sysv4* support.
1414 * config/mips/mipsv4.mh, config/mips/mipsv4.mt,
1415 config/mips/tm-mipsv4.h, config/mips/xm-mipsv4.h, mipsv4-nat.c:
1416 New files for MIPS SVR4 support.
1417 * Makefile.in: Update for new mipsv4 files.
1418 * alpha-tdep.c (heuristic_proc_desc, find_proc_desc): Use
1419 read_next_frame_reg to obtain the frame relative stack pointer.
1420 * mips-tdep.c (heuristic_proc_desc): Use read_next_frame_reg to
1421 obtain the frame relative stack pointer.
1422 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab1):
1423 Handle stStatic and stStaticProc symbols in stabs-in-ecoff output
1424 by entering them into the minimal symbol table.
1425 * printcmd.c (print_scalar_formatted): Do not try to unpack to
1426 a long for float formats.
1427 * solib.c: Include "elf/mips.h" only if DT_MIPS_RLD_MAP does not
1428 get defined in <link.h>.
1429 * solib.c (solib_add): Add shared library sections to the section
1430 table of the target before adding the symbols.
1431 * partial-stab.h: Relocate static and global functions.
1432 * dbxread.c (read_dbx_symtab): Remove unused variable
1433 end_of_text_address. Relocate text_addr when passing it
1434 to end_psymtab.
1435
1436 For Alpha OSF/1 targets, enable gdb to set breakpoints in shared
1437 library functions before the executable is run. Retrieve dynamic
1438 symbols from stripped executables.
1439 * mipsread.c (read_alphacoff_dynamic_symtab): New function.
1440 * mipsread.c (mipscoff_symfile_read): Use it. Issue warning message
1441 if no debugging symbols were found.
1442 * alpha-tdep.c (alpha_skip_prologue): Silently return the unaltered
1443 pc if memory at the pc is not accessible and GDB_TARGET_HAS_SHARED_LIBS
1444 is defined.
1445 * config/alpha/nm-alpha.h (GDB_TARGET_HAS_SHARED_LIBS): Define,
1446 OSF/1 has shared libraries.
1447
192b64e7
ILT
1448Thu Apr 7 15:11:11 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1449
1450 * dbxread.c (read_dbx_dynamic_symtab): Adjust for recent changes
1451 to BFD handling of dynamic symbols.
1452
45568424
JL
1453Tue Apr 5 15:29:25 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
1454
4f915914
JL
1455 * hppa-tdep.c (hppa_fix_call_dummy): If FUN is a procedure label,
1456 then gets its real address into FUN and its GOT/DP value into %r19.
1457
1458 * tm-hppa.h (CALL_DUMMY): Use %r20, not %r19 as a temporary.
1459
7f43b9b7
JL
1460 * hppa-tdep.c (frameless_function_invocation): If no unwind
1461 descriptor was found, then assume this was not a frameless
1462 function invocation.
1463 (frame_saved_pc): If the saved PC is in a linker stub, then
1464 return the return address which the linker stub will return to.
1465
45568424
JL
1466 * xm-hppab.h: Never define USG.
1467 * xm-hppah.h: Always define USG.
1468
b96bc1e4
PB
1469Tue Apr 5 12:58:47 1994 Per Bothner (bothner@kalessin.cygnus.com)
1470
1471 * values.c (unpack_long, value_from_longest),
1472 valarith.c (value_binop): Allow TYPE_CODE_RANGE.
1473
d5412302
JK
1474Fri Apr 1 14:04:34 1994 Jason Merrill (jason@deneb.cygnus.com)
1475
1476 * symfile.c (deduce_language_from_filename): .cpp is a C++ extension.
1477
38b90473
PS
1478Fri Apr 1 00:44:00 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1479
1480 For SVR4 targets, enable gdb to set breakpoints in shared
1481 library functions before the executable is run.
1482 * elfread.c (elf_symtab_read): Handle symbols for shared library
1483 functions.
1484 * sparc-tdep.c (in_solib_trampoline): Renamed to in_plt_section
1485 and moved to objfiles.c.
1486 * objfiles.c (in_plt_section): Moved to here from sparc-tdep.
1487 * config/tm-sysv4.h (IN_SOLIB_TRAMPOLINE): Use new in_plt_section.
1488 * config/sparc/tm-sun4sol2.h (IN_SOLIB_TRAMPOLINE): Removed,
1489 the new generic definition from tm-sysv4.h works for Solaris.
1490
70f42bae
ILT
1491Wed Mar 30 16:14:27 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1492
1493 * elfread.c (elf_symtab_read): Change storage_needed,
1494 number_of_symbols and i to long. Rename get_symtab_upper_bound to
1495 bfd_get_symtab_upper_bound. Check for errors from
1496 bfd_get_symtab_upper_bound and bfd_canonicalize_symtab.
1497 * nlmread.c (nlm_symtab_read): Same changes.
1498
aece310f
JK
1499Wed Mar 30 11:43:29 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1500
34d265dc
JK
1501 * xcoffread.c (xcoff_next_symbol_text): New function.
1502 (read_xcoff_symtab): Set next_symbol_text_func to it.
1503 Move raw_symbol outside of read_xcoff_symtab.
1504
aece310f
JK
1505 * remote.c (getpkt): Remove unused "out" label.
1506
bd2f0c85
JL
1507Wed Mar 30 09:15:42 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
1508
1509 * breakpoint.c (print_it_normal): Allow GDB to notify the user
1510 about more than one watchpoint being triggered.
1511
c2216bfd
JK
1512Wed Mar 30 08:24:18 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1513
1514 * config/m68k/tm-dpx2.h: Include tm-m68k.h not nonexistent tm-68k.h.
1515
db2302cb
PS
1516Wed Mar 30 00:31:49 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1517
9e837b37
PS
1518 * blockframe.c (find_pc_partial_function): mst_file_text
1519 symbols do not live in the shared library transfer table.
db2302cb
PS
1520 * ch-exp.y (decode_integer_value, match_character_literal,
1521 match_bitstring_literal): Guard tolower calls with isupper,
1522 tolower on old BSD systems blindly subtracts a constant.
1523 * dbxread.c (read_ofile_symtab): Check for __gnu_compiled_* as
1524 well when determining the producer of the object file.
1525 * mdebugread.c (has_opaque_xref): New function to check for
1526 cross reference to an opaque aggregate.
1527 * mdebugread.c (parse_symbol, parse_partial_symbols): Do not
1528 enter typedefs to opaque aggregates into the symbol tables.
1529 * mdebugread.c (parse_external): Remove skip_procedures argument,
1530 it has always been 1. Remove code that handled stProc symbols,
1531 it was never executed and was wrong, as the index of a
1532 stProc symbol points to the local symbol table and not to the
1533 auxiliary symbol info. Update caller.
1534 * mdebugread.c (parse_partial_symbols): Do not enter external
1535 stProc symbols into the partial symbol table, they are already
1536 entered into the minimal symbol table.
1537 * config/i386/tm-symmetry.h: Clean up, it is now only used for Dynix.
1538 Remove all conditionals and definitions for ptx.
1539 I386_REGNO_TO_SYMMETRY moved to here from symm-tdep.c.
1540 Fix addresses of floating point registers in REGISTER_U_ADDR.
1541 STORE_STRUCT_RETURN now handles cc and gcc conventions.
1542 FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC,
1543 IN_SIGTRAMP, SIGCONTEXT_PC_OFFSET defined to make backtracing through
1544 signal trampoline code work.
1545 * config/i386/xm-symmetry.h: Clean up, it is now only used for Dynix.
1546 Remove all conditionals and definitions for ptx.
1547 Remove KDB definitions.
1548 * symm-nat.c (store_inferior_registers): Fetch registers before
1549 storing them to obtain valid floating point control registers.
1550 Store fpu registers.
1551 * symm-nat.c (print_1167_control_word): Dynix 3.1.1 defines
1552 FPA_PCR_CC_C0 and FPA_PCR_CC_C1, avoid duplicate case value.
1553 * symm-nat.c (fetch_inferior_registers, child_xfer_memory):
1554 Fix typos.
1555 * symm-nat.c (child_resume): Update type of `signal' parameter.
1556 * symm-tdep.c (I386_REGNO_TO_SYMMETRY): Moved to tm-symmetry.h.
1557
19cd0c1f
JL
1558Tue Mar 29 23:01:33 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
1559
1560 * hppa-tdep.c (hppa_fix_call_dummy): Use an alternate method for
1561 calling import stubs for functions in shared libraries.
1562
73cd3b49
PB
1563Tue Mar 29 21:14:04 1994 Per Bothner (bothner@kalessin.cygnus.com)
1564
58cda66e
PB
1565 * ch-exp.y: Implement SIZE(mode_name) and SIZE(expression).
1566
73cd3b49
PB
1567 * ch-lang.c (chill_is_varying_struct): Magic string is
1568 was "<var_length>" is now "__var_length" (more portable).
1569
0c993550
JK
1570Tue Mar 29 19:41:34 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1571
1572 * remote.c (getpkt): If we get a timeout, actually retry rather
1573 than just giving up the first time it happens.
1574 * remote.c: Document sequence numbers.
1575 (remote_store_registers): Change syntax of 'P' request so that it
1576 never looks like a sequence number.
1577
d80ff70c
KH
1578Tue Mar 29 16:06:01 1994 Kung Hsu (kung@mexican.cygnus.com)
1579
0c993550 1580 * os9kread.c (record_minimal_symbol): add section_offset to
d80ff70c
KH
1581 relocate minimal symbol table.
1582 * os9kread.c (read_minimal_symbols): ditto.
1583 * os9kread.c (os9k_symfile_init): increase size of dbg and stb
1584 file names.
1585 * os9kread.c (read_os9k_psymtab): if there's no dbg file, just
1586 return. Also if file addr is 0 leave it 0, not to relocate.
1587 * remote-os9k.c (_initialize_remote_os9k): add 'set remotexon',
1588 'set remotexoff' and 'set remotelog' commands.
1589
4aa6fe10
JK
1590Tue Mar 29 12:38:45 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1591
1592 * remote.c (remote_store_registers): Add 'P' request to set an
1593 individual register.
1594 (remote_write_bytes, remote_read_bytes): Use %lx, not %x, to print
1595 a target address.
1596
72e35288
JK
1597Sat Mar 26 07:05:18 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1598
649694ea
JK
1599 * config/sparc/tm-sparc.h: Define USE_REGISTER_NOT_ARG.
1600 * stabsread (define_symbol): If USE_REGISTER_NOT_ARG, go back to
1601 combining all 'p' and 'r' pairs into a LOC_REGPARM.
1602
72e35288
JK
1603 * command.c (do_setshow_command, case var_string): Never add a
1604 space to the end of the string.
1605 * NEWS: Document this change.
1606 * .gdbinit: Add a space to the "set prompt" command.
1607
59144a81
JK
1608Fri Mar 25 12:40:41 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1609
493424b1
JK
1610 * m3-nat.c, i386m3-nat.c, config/i386/i386m3.mh: Many minor
1611 changes to make it compile (it doesn't link yet).
1612
1613 * buildsym.c (start_subfile, patch_subfile_names), demangle.c
1614 (set_demangling_style, set_demangling_command): Use savestring not
1615 strdup. We were not dealing properly with a NULL return from
1616 strdup, and were not declaring strdup (the system header may or
1617 may not have it).
1618
59144a81
JK
1619 * valprint.c (val_print): Remove inaccurate comment about what
1620 types can be stub types.
1621
1622 * config/i386/ptx.mh (XDEPFILES): Add coredep.o. Delete infptrace.o.
1623 * symm-nat.c (child_wait, _initialize_symm_nat, kill_inferior):
1624 Supply alternate version if ATTACH_DETACH is not defined.
1625 * ptx4-nat.c, config/i386/{nm-ptx4.h, ptx4.mh, ptx.mt, ptx4.mt,
1626 tm-ptx.h, tm-ptx4.h, xm-ptx.h, xm-ptx4.h}: New files.
1627 * configure.in: Recognize i[34]86-sequent-sysv4* host.
1628
c8f75fe8
JL
1629Fri Mar 25 10:14:03 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
1630
de482138
JL
1631 * hppa-tdep.c (skip_prologue): Do nothing if not at the beginning
1632 of a function.
1633 (skip_trampoline_code): Rewrite and add support for argument
1634 relocation stubs stubs, import/export stubs, calls through
1635 "_sr4export" and cascaded trampolines.
1636
fdafbfad
JL
1637 * hppa-tdep.c (skip_prologue): Return "pc" not zero
1638 if no unwind descriptor is found.
1639
eb1167c6
JL
1640 * tm-hppa.h (NUM_REGS): Bump to 128 registers.
1641 (REGISTER_NAMES): Add entries for "right-half" of FP registers.
1642 (REGISTER_RAW_SIZE, MAX_REGISTER_RAW_SIZE): Do not treat FP regs
1643 differently. All registers are four bytes.
1644 (REGISTER_BYTES, REGISTER_BYTE): Simplify now that all registers are
1645 the same size.
1646 (REGISTER_VIRTUAL_TYPE): Use builtin_type_float for all FP regs.
1647
1648 * hppa-tdep.c (pa_print_fp_reg): Update to print even numbered FP
1649 registers as both single and double values (fetching 2nd 32bit half
1650 as necessary). Annotate each register printed with its precision.
1651
c8f75fe8
JL
1652 * paread.c (read_unwind_info): Fix off-by-one error.
1653
0c1af47f
JK
1654Fri Mar 25 08:33:28 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1655
1656 * main.c (complete_command): Deal with it if arg is NULL.
1657
5801f348
JK
1658Thu Mar 24 07:12:09 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1659
4df6dcd1
JK
1660 * config/mips/tm-mips.h (SETUP_ARBITRARY_FRAME): Revise comment
1661 regarding using the PC--using the PC is necessary and all the
1662 FIXME comments in the world won't make it go away.
1663
2f3b7d8e
JK
1664 * valops.c (value_at, value_at_lazy): Give error if we dereference
1665 a pointer to void.
1666 * gdbtypes.h: Fix comments regarding TYPE_CODE_VOID.
1667 * stabsread.c: Use 1, not 0, for TYPE_LENGTH of void types.
1668
553e1862
JK
1669 * stabsread.c (patch_block_stabs): Add comment about what happens
1670 if the definition is in another compilation unit from the stab.
acdec954 1671
5801f348
JK
1672 * dbxread.c (end_psymtab): Add comment about empty psymtabs.
1673
09973223
JK
1674Wed Mar 23 07:50:33 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1675
1676 * main.c (complete_command): New command, from Rick Sladkey
1677 <jrs@world.std.com>.
1678 (symbol_completion_function): Don't declare rl_point and
1679 rl_line_buffer; they are now declared in readline.h.
1680 (show_commands): Don't declare history_base; it is declared in
1681 history.h.
1682 * command.c (lookup_cmd): Don't delete trailing whitespace.
acdec954 1683 Reverts change of 14 May 1989.
09973223
JK
1684
1685Wed Mar 23 16:14:52 1994 Stu Grossman (grossman at cygnus.com)
1686
1687 * minsyms.c (prim_record_minimal_symbol): Move section deduction
1688 code from prim_record_minimal_symbol_and_info() to here. Callers
1689 of the latter can legitimately supply a section number of -1.
1690
e552788b
JK
1691Wed Mar 23 07:50:33 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1692
1693 * gdbtypes.h, gdbtypes.c: Add comments regarding whether static
1694 member functions have an element in args for a (nonexistent) this
1695 pointer.
1696
84ad95c1
JL
1697Tue Mar 22 20:12:53 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
1698
0a64709e
JL
1699 * config/pa/tm-hppao.h (NO_PC_SPACE_QUEUE_RESTORE): Define.
1700
1701 * hppa-tdep.c (hppa_pop_frame): Do not restore the PC space
1702 queue if NO_PC_SPACE_QUEUE_RESTORE is defined.
1703
84ad95c1
JL
1704 * stabsread.c (REG_STRUCT_HAS_ADDR): Accept additional argument
1705 for the structure's type. All callers changed.
1706
1707 * valops.c (call_function_by_hand): Check REG_STRUCT_HAS_ADDR
1708 for each structure argument rather than assuming it's either
1709 true or false for all structure arguments.
1710
1711 * config/pa/tm-hppa.h (REG_STRUCT_HAS_ADDR): Depend only
1712 on the length structure passed, not the compiler used.
1713
1714 * config/sparc/tm-sparc.h (REG_STRUCT_HAS_ADDR): Accept additional
1715 argument for the structure's type.
1716
29f2ceed
JK
1717Tue Mar 22 15:28:33 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1718
51f83933
JK
1719 * values.c (set_internalvar): Don't set var->value until we are
1720 sure there won't be an error().
1721
29f2ceed
JK
1722 * remote.c (get_offsets): Reinstate comment which was in
1723 remote_wait about use of SECT_OFF_TEXT and so on.
1724
1725Mon Mar 21 13:11:30 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1726
1727 * symmisc.c (maintenance_check_symtabs): New function to check
1728 consistency of psymtabs and symtabs.
1729 * symtab.h (maintenance_check_symtabs): Add prototype.
1730 * maint.c: Add new `maint check-symtabs' command.
1731 * config/i386/tm-i386aix.h, config/i386/tm-sun386.h,
1732 config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Fix typo.
1733 * config/i386/tm-symmetry.h: Make comment inside #if 0 a real
1734 comment.
1735 * config/i386/tm-symmetry.h (STORE_STRUCT_RETURN): Cast argument
1736 to write_memory to avoid warnings from gcc.
1737 * config/i386/xm-symmetry.h: Add missing #endif.
1738 * config/i386/nm-symmetry.h (NO_PTRACE_H): Add for Dynix.
1739 * config/i386/symmetry.mt (TDEPFILES): Add i386-tdep.o.
1740 * config/i386/symmetry.mh (NAT_FILE, NATDEPFILES): Add.
1741
4fd5eed4
JL
1742Mon Mar 21 11:50:28 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
1743
1744 * hppa-tdep.c (hppa_fix_call_dummy): Use value_ptr.
1745 (hppa_push_arguments): Likewise.
1746
72bba93b
SG
1747Mon Mar 21 11:02:51 1994 Stu Grossman (grossman at cygnus.com)
1748
1749 * alpha-tdep.c: Gobs of changes (many imported from mips-tdep) to
1750 improve remote debugging efficiency. Also fixed problems with
1751 doing function calls for programs with no entry points.
1752 * infcmd.c (run_stack_dummy): Use CALL_DUMMY_ADDRESS instead of
1753 entry_point_address.
1754 * inferior.h (PC_IN_CALL_DUMMY): ditto.
1755 * mdebugread.c (parse_symbol, parse_procedure, parse_external,
1756 parse_lines): Pass section_offsets info to these routines so that
1757 we can relocate symbol table entries upon readin.
1758 * (psymtab_to_symtab_1): Set symtab->primary to tell
1759 objfile_relocate to do relocations for our symbols.
1760 * (ecoff_relocate_efi): New routine to relocate adr field of PDRs
1761 (which hang off of the symbol table).
1762 * Use prim_record_minimal_symbols_and_info instead of
1763 prim_record_minimal_symbols to supply section info to make minimal
1764 symbol relocations work.
1765 * minsyms.c (prim_record_minimal_symbols_and_info): If section is
1766 -1, try to deduce it from ms_type.
1767 * objfiles.c (objfile_relocate): Use ALL_OBJFILE_SYMTABS where
1768 appropriate. Handle relocation of MIPS_EFI symbols special. Also,
1769 add code to relocate objfile->sections data structure.
1770 * remote.c (get_offsets): Use new protocol message to acquire
1771 section offsets from the target.
1772 * (remote_wait): Get rid of relocation stuff. That's all handled
1773 by objfile_relocate now.
1774 * config/alpha/alpha-nw.mt (TM_FILE): Use tm-alphanw.h.
1775 * config/alpha/tm-alpha.h: Define CALL_DUMMY_ADDRESS, and
1776 VM_MIN_ADDRESS.
1777 * config/alpha/tm-alphanw.h: DECR_PC_AFTER_BREAK=0, VM_MIN_ADDRESS=0.
1778
d148e8c4
DE
1779Sun Mar 20 15:21:57 1994 Doug Evans (dje@cygnus.com)
1780
1781 * sparc-tdep.c (sparc_frame_find_save_regs): Use REGISTER_RAW_SIZE
1782 instead of 4.
d3688932
DE
1783 * sp64-tdep.c (target_ptr_bit, set_target_ptr_bit): Deleted,
1784 can no longer set this at run time.
7f695c07
DE
1785 * config/sparc/sp64.mt (SIMFILES): Use remote-sim.o now.
1786 (TM_CLIBS): Define to -lm, the simulator uses the sqrt() function.
1787 * config/sparc/tm-sp64.h (FPS_REGNUM, CPS_REGNUM): Define (so
1788 sparc-tdep.c compiles).
1789 (TARGET_PTR_BIT): Must be a constant now, fix at 64.
d3688932 1790
94d4b713
JK
1791Sat Mar 19 08:51:12 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1792
d0bff94e
JK
1793 * config/m68k/{cisco.mt,tm-cisco.h}: New files.
1794 * Makefile.in (ALLPARAM, ALLCONFIG): Add them.
1795 * configure.in: Recognize m68*-cisco*-*.
1796
94d4b713
JK
1797 * Makefile.in (TAGS): Use variables directly, rather than using
1798 find, to locate TM_FILE, XM_FILE, and NAT_FILE. This is faster
1799 and means that these filenames no longer need be unique across all
1800 the config/* directories.
1801 * configure.in: Put the config/*/ into TM_FILE, etc.
1802
1803 * m68k-stub.c (computeSignal): Return SIGFPE, not SIGURG, for chk
1804 and trapv exceptions.
1805
1806 * target.h (struct section_table), objfiles.h (struct obj_section):
1807 Change name of field sec_ptr to the_bfd_section. More mnemonic
1808 and avoids the (sort of, for the ptx compiler) name clash with
1809 the name of the typedef.
1810 * exec.c, xcoffexec.c, sparc-tdep.c, rs6000-nat.c, osfsolib.c,
1811 solib.c, irix5-nat.c, objfiles.c, remote.c: Change users.
1812
1813 * utils.c: Include readline.h.
1814 * Makefile.in (utils.o): Add dependency.
1815
1816 * remote.c (getpkt): Add support for run-length encoding.
1817
8eec3310
SC
1818Fri Mar 18 19:11:15 1994 Steve Chamberlain (sac@jonny.cygnus.com)
1819
1820 * utils.c (prompt_for_continue): Call readline, not gdb_readline.
1821
ee6d646a
JK
1822Fri Mar 18 10:25:55 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1823
20657f71
JK
1824 * dstread.c (record_minimal_symbol): New arg objfile. Pass it to
1825 prim_record_minimal_symbol.
1826 Callers: Pass it.
1827
ee6d646a
JK
1828 * regex.c (EXTEND_BUFFER): Adjust pointers within buffer by
1829 computing their offset from the start of the old buffer and adding
1830 to the new buffer, rather than by assuming we can add the
1831 difference between the old buffer and the new buffer (it might not
1832 fit in an int). Merge in cosmetic differences from emacs regex.c
1833 version of this macro.
1834
478d3811
JK
1835Wed Mar 16 15:28:54 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1836
1837 * Makefile.in (install-only): Fix use of program_transform_name.
1838
c42b8af8
JK
1839Wed Mar 16 07:18:43 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1840
f8715549 1841 * printcmd.c: Remove "set print fast-symbolic-addr off" command.
478d3811 1842 The bug which it worked around was fixed on 25 Feb 94 in coffread.c,
f8715549
JK
1843 so I'm nuking the command.
1844 * symtab.c (find_addr_symbol): Comment out, no longer used.
1845
a645ccc9
JK
1846 * main.c (main): Don't init_source_path for the -cd argument. Now
1847 that source_path doesn't contain the current_directory from when
1848 GDB started up, init_source_path is no longer useful (and is
1849 harmful because it clobbers a source_path set in $HOME/.gdbinit).
1850
c42b8af8
JK
1851 * TODO: Remove item about line numbers being off. It is useless
1852 and confusing without a reproducible test case (it mentions
1853 proceed(), but I was able to step through proceed without trouble).
1854
ae6d035d
PS
1855Tue Mar 15 13:39:23 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1856
1857 For Sunos 4.x targets, enable gdb to set breakpoints in shared
1858 library functions before the executable is run. Retrieve dynamic
1859 symbols from stripped executables.
1860 * symtab.h (minimal_symbol_type): Add mst_solib_trampoline type.
1861 * parse.c (write_exp_msymbol), symmisc.c (dump_msymbols),
1862 symtab.c (list_symbols): Handle mst_solib_trampoline.
1863 * minsyms.c (lookup_minimal_symbol): Handle mst_solib_trampoline
1864 for all targets, remove IBM6000_TARGET dependencies.
1865 * dbxread.c (read_dbx_dynamic_symtab): New function.
1866 * dbxread.c (dbx_symfile_read): Use it.
1867 * dbxread.c (SET_NAMESTRING): Set namestring to
1868 "<bad string table index>" instead of "foo" if the string index is
1869 corrupt.
1870 * xcoffread.c (read_xcoff_symtab): Use mst_solib_trampoline instead
1871 of mst_unknown.
1872 * symtab.c (list_symbols): Take from_tty as parameter and pass it
1873 to break_command. Handle mst_file_* minimal symbol types.
1874 * config/i386/tm-i386bsd.h: Give just macro name, not args, to #undef.
1875
b427690a
KH
1876Tue Mar 15 11:40:43 1994 Kung Hsu (kung@mexican.cygnus.com)
1877
1878 * c-exp.y(yylex): fix potential memory overflow.
1879
f93b941b
JK
1880Tue Mar 15 10:33:28 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1881
1882 * environ.c (set_in_environ): Eliminate special handling of PATH and
1883 GNUTARGET.
1884 * putenv.c: Removed, conflicts with system declaration of
1885 putenv on RS/6000 running AIX 3.2.5, and above change makes it
1886 unnecessary.
1887 * Makefile.in: Change accordingly.
1888 * procfs.c (procfs_create_inferior): Change comment accordingly.
1889
17221e41
JK
1890Tue Mar 15 10:05:27 1994 Jim Kingdon (kingdon@cygnus.com)
1891
1892 * rs6000-tdep.c: Change value to value_ptr.
1893
8eb79598
JK
1894Sun Mar 13 09:45:51 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1895
c4ad6b09
JK
1896 * i386m3-nat.c: Include floatformat.h.
1897 (get_i387_state): Use memset not bzero.
1898
5fa83062
JK
1899 * Version 4.12.3.
1900
1901 * Makefile.in: Enable commented out getopt_h, bfd_h, etc. Change
1902 ieee-float.h to floatformat.h.
1903
79f3d586
JK
1904 * valprint.c (val_print_string): Ignore error if the error
1905 happened after a terminating '\0'.
1906
1907 * c-valprint.c (c_val_print): Never add 1 to return value from
1908 val_print_string; just return what it returns.
1909
8eb79598
JK
1910 * target.h (enum target_signal): Add TARGET_SIGNAL_FIRST, for
1911 looping through all of the enums.
1912 * infrun.c (signals_info): Use it.
1913
c4de6b30
JK
1914Fri Mar 11 08:08:50 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1915
8e4c7b3e
JK
1916 * main.c (main): When printing warning about bad baud rate, don't
1917 use warning(); it relies on current_target which isn't set up yet.
1918
c4de6b30 1919 * breakpoint.c (_initialize_breakpoint): Update docstring for
d1bdad57
JK
1920 tbreak to match what the code actually does. Don't mention tbreak
1921 in docstrings for "enable once" or "enable breakpoints once".
c4de6b30 1922
d78d4d16
JK
1923Thu Mar 10 08:52:38 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1924
1925 * symfile.h (ADD_PSYMBOL_VT_TO_LIST): Don't put a semicolon after
1926 while (0). That defeats the whole purpose of using do . . . while (0).
1927 * mdebugread.c (parse_partial_symbols): Don't use ?: expression as
1928 list for ADD_PSYMBOL_TO_LIST; the macro takes its address and
1929 using a ?: expression as an lvalue is not portable.
1930
1931 * stabsread.c (define_symbol): If REG_STRUCT_HAS_ADDR, also
1932 convert a LOC_ARG to a LOC_REF_ARG. Update code which combines
1933 'p' and 'r' symbol descriptors into a single symbol to look for a
1934 LOC_REF_ARG.
1935 * README, config/sparc/tm-sparc.h: Update comments.
1936
10373914
PS
1937Wed Mar 9 21:43:24 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1938
1939 * mdebugread.c (parse_type): Do not complain for types with
1940 an `indexNil' aux index, these are simply undefined types.
1941 Remove indexNil check from caller of parse_type.
1942 * mdebugread.c (parse_partial_symbols): Do not enter
1943 stGlobal, scCommon symbols into the minimal symbol table, their
1944 value is the size of the common, not its address.
1945 Handle scInit, scFini, scPData and scXData sections.
1946 Use minimal symbol type mst_file_* for stLabel symbols, instead of
1947 mst_*.
1948 Enter stProc symbols into the global_psymbols list once, not into
1949 the static_psymbols_list.
1950 Get rid of dummy psymtab if it is empty, to allow proper detection
1951 of stripped executables.
1952 * mdebugread.c (cross_ref): Allow cross references to Fortran
1953 common blocks.
1954
fddb9bda
JK
1955Wed Mar 9 15:23:19 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1956
1957 * stabsread.c (common_block_end, fix_common_block): Stash the
1958 struct pending * in the SYMBOL_TYPE, not the SYMBOL_NAMESPACE, so
1959 as to not assume that a pointer fits in an enum.
1960
d9389f37
KH
1961Wed Mar 9 18:56:36 1994 Kung Hsu (kung@mexican.cygnus.com)
1962
1963 * os9kread.c (fill_sym): check compiler verion number for pre-
1964 UltraC compiler.
1965 * os9kread.c (os9k_process_one_symbol): address of symbol is
1966 relative to section not module.
1967 * stabsread.c (define_symbol): add symbol type 's' as local
1968 symbol for os9k.
1969 * remote-os9k.c: add command 'set monitor_log' to turn on or off
1970 monitor logging.
1971 * remote-os9k.c: fix bug in delete breakpoint, single step trace.
1972 * remote-os9k.c: fix bug in 'set remotebaud' function.
1973 * remote-os9k.c (rombug_link): minimize checking so to improve
1974 speed.
fddb9bda 1975 * symfile.c (symbol_file_command): check if failed to link, also make
d9389f37
KH
1976 the command be able to accept more than one filenames.
1977 * target.c (target_link): check if failed to link with rombug.
1978 * config/i386/tm-i386os9k.h : add #define DECR_PC_AFTER_BREAK 0.
1979
cdc7029d
JK
1980Wed Mar 9 15:23:19 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1981
1982 * remote-es.c (es1800_child_ops): Don't declare it static.
1983
352c21dd
JK
1984Tue Mar 8 11:42:39 1994 Jim Kingdon (kingdon@cygnus.com)
1985
1986 * config/i386/tm-i386v4.h: Give just macro name, not args, to #undef.
1987
ce2f21b2
JK
1988Tue Mar 8 06:56:13 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1989
9d2b8d50
JK
1990 * dbxread.c: New variable lowest_text_address.
1991 (record_minimal_symbol, read_dbx_symtab): Set it.
1992 (read_dbx_symtab): Use lowest_text_address + text_size instead of
1993 end_of_text_address.
1994 * config/gould/tm-pn.h: Add comment regarding END_OF_TEXT_DEFAULT.
1995
1996 * dbxread.c (end_psymtab): Remove old and commented out
1997 capping_global and capping_static. Fix comments regarding
1998 N_SO_ADDRESS_MAYBE_MISSING to match the real name of the macro.
1999
79448221
JK
2000 * parser-defs.h: Add "extern" to start of variable declarations so
2001 we don't end up with commons.
2002 * parse.c: Define these variables.
2003
ce2f21b2
JK
2004 * irix5-nat.c (find_solib): Cast o_path to CORE_ADDR when using it
2005 as one.
2006
7810d333
JK
2007Mon Mar 7 13:00:50 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2008
2009 * alpha-tdep.c: Change value to value_ptr.
2010
a6e21fba
PS
2011Sun Mar 6 17:36:53 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2012
2013 * solib.c (elf_locate_base): New function to locate the address
2014 of the dynamic linker's runtime structure in the dynamic info section.
2015 * solib.c (locate_base): Use it instead of iterating over the list
2016 of mapped address segments.
2017 * solib.c (look_for_base, bfd_lookup_symbol): Removed, no longer
2018 necessary.
2019
70e43abe
JL
2020Fri Mar 4 09:50:47 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
2021
2022 * hppa-tdep.c (pc_in_linker_stub): Move decl to beginning of file.
2023 (pc_in_interrupt_handler): New function. Also add PARAM decl.
2024 (find_proc_framesize): Deal with HPUX setting SAVE_SP bit for
2025 signal trampoline and interrupt routines.
2026 (frame_saved_pc): Handle signal trampolines and interrupt routines.
2027 (frame_chain, frame_chain_valid): Likewise.
2028 (hppa_frame_find_saved_regs): Likewise. Also deal with special
2029 saved regs convention for SP.
2030
2031 * tm-hppa[bho].h: FRAME_FIND_SAVED_PC_IN_SIGTRAMP): Define.
2032 (FRAME_BASE_BEFORE_SIGTRAMP): Define.
2033 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Define.
2034
2035 * tm-hppah.h (IN_SIGTRAMP): Define.
2036
833a2895
JK
2037Thu Mar 3 12:41:16 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
2038
93dc3414
JK
2039 * ch-exp.y (match_simple_name_string): Accept '_' as well as an
2040 alphabetic character as the start of a name.
2041
b855dfe7
JK
2042 * sparclite/Makefile.in (all install): Build and install aload.
2043
d9a5e91f
JK
2044 * configure.in: Accept i[34]86-*-*sysv32 because that is what
2045 config.guess and config.sub produce.
2046
833a2895
JK
2047 * mips-tdep.c: Change value to value_ptr.
2048
82a2edfb
JK
2049Wed Mar 2 09:17:55 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
2050
2051 * breakpoint.c, breakpoint.h, c-valprint.c, ch-valprint.c,
2052 cp-valprint.c, eval.c, expprint.c, findvar.c, language.c,
2053 objfiles.h, infcmd.c, printcmd.c, stack.c, typeprint.c,
2054 valarith.c, valops.c, valprint.c, value.h, values.c: Replace
2055 value with value_ptr. This is for the ptx compiler.
2056 * objfiles.h, target.h: Don't declare a "sec_ptr" field using a
2057 "sec_ptr" typedef.
2058 * symm-nat.c: Add a bunch of stuff for symmetry's ptrace stuff.
2059 #if 0 i386_float_info.
2060 * symm-tdep.c (round): Remove. Also remove sgttyb.
2061 * symm-tdep.c: Remove lots of stuff which duplicates stuff from
2062 i386-tdep.c. Remove register_addr and ptx_coff_regno_to_gdb.
2063 * i386-tdep.c (i386_frame_find_saved_regs): Put in
2064 I386_REGNO_TO_SYMMETRY check in case it is needed for Dynix
2065 someday.
2066 * config/i386/nm-symmetry.h: Change KERNEL_U_ADDR. Move
2067 stuff from PTRACE_READ_REGS, PTRACE_WRITE_REGS macros to
2068 symm-nat.c. Define CHILD_WAIT and declare child_wait().
2069 * config/i386/tm-symmetry.h: Remove call function stuff; stuff in
2070 tm-i386v.h is apparently OK.
2071 * config/i386/xm-symmetry.h [_SEQUENT_]: Define HAVE_TERMIOS not
2072 HAVE_TERMIO. Define MEM_FNS_DECLARED, NEED_POSIX_SETPGID, and
2073 USE_O_NOCTTY.
2074
c485c7a9
PS
2075Wed Mar 2 11:31:08 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2076
2077 * osfsolib.c (xfer_link_map_member): Update to use new
2078 target_read_string interface.
2079
d1c0c6cf
JK
2080Wed Mar 2 09:17:55 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
2081
2082 * infrun.c (wait_for_inferior): In checking
2083 remove_breakpoints_on_following_step, check
2084 through_sigtramp_breakpoint as well as step_resume_breakpoint.
2085
25200748
JK
2086Tue Mar 1 16:22:56 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
2087
2088 * os9kread.c (os9k_process_one_symbol): Rename
2089 VARIABLES_INSIDE_BLOCK to OS9K_VARIABLES_INSIDE_BLOCK.
2090 * symfile.c (symbol_file_command): Check for (CORE_ADDR)-1, not
2091 (CORE_ADDR)0, from target_link, since that is what it uses.
2092 Process name at end, not during parsing (like we did before Kung's
2093 change), so that -readnow and -mapped can appear anywhere.
2094 Make text_relocation a local variable.
2095 * config/i386/i386os9k.mt: Fix comment.
2096 * Makefile.in (ALLDEPFILES): Add remote-os9k.c.
2097 * os9kread.c: Put "comments" after #endif inside /* */.
2098 * stabsread.h: Add os9k_stabs variable.
2099 * stabsread.c (start_stabs), os9kread.c (os9k_process_one_symbol):
2100 Set it.
2101 * stabsread.c (define_symbol): If os9k_stabs, put a 'V' symbol
2102 descriptor in global_symbols not local_symbols.
2103 (read_type): If os9k_stabs, accept 'c', 'i', and 'b' type
2104 descriptors.
2105 (read_type): If os9k_stabs, accept function parameters after 'f'
2106 type descriptor.
2107 (read_array_type): If os9k_stabs, don't expect index type and
2108 expect lower and upper to be separated by ',' not ';'.
2109 (read_enum_type): If os9k_stabs, read a number before the first
2110 enumeration constant.
2111 (os9k_init_type_vector): New function.
2112 (dbx_lookup_type): Call it when starting new type vector.
2113 * config/i386/tm-i386os9k.h: Define BELIEVE_PCC_PROMOTION.
2114 * (os9k_process_one_symbol): Call define_symbol not os9k_define_symbol.
2115 * os9kstab.c: Removed.
2116 * Makefile.in: Update accordingly.
2117 * objfiles.c (objfile_relocate_data): Removed.
2118 * remote-os9k.c (rombug_wait): Call objfile_relocate
2119 not objfile_relocate_data.
2120 * objfiles.h, objfiles.c: Remove find_pc_objfile.
2121 * remote-os9k.c (rombug_wait): Call find_pc_section not
2122 find_pc_objfile.
2123 * main.c (quit_command): Check inferior_pid; revert Kung change.
2124 * remote-os9k.c (rombug_create_inferior): Set inferior_pid.
2125
1340861c
KH
2126Tue Mar 1 14:56:14 1994 Kung Hsu (kung@mexican.cygnus.com)
2127
2128 * os9kread.c: New file to read os9000 style symbo table.
2129 * os9kstab.c: new file to read os9000 style stabs.
2130 * remote-os9k.c: remote protocol talking to os9000 rombug monitor.
2131 * objfiles.c (find_pc_objfile): new function to search objfile
2132 from pc.
2133 * objfiles.c (objfile_relocate_data): new function to relocate
2134 data symbols in symbol table.
2135 * objfiles.h: Add two aux fields in struct objfile to handle
2136 multiple symbol table files situation like in os9000.
2137 * symfile.c: Change so 'symbol-file' command can handle multiple
2138 files. Also call target_link() to get relocation infos.
2139 * target.c (target_link): new function to get relocation info when
2140 a symbol file is requested to load.
2141 * main.c (quit_command): take out 'inferior_pid != 0' condition,
2142 because in cross mode there's no inferior pid, bit they need to
2143 be detached.
2144 Makefile.in: add os9kread.c os9kstab.c and .o's.
2145 configure.in: add i386os9k target.
2146 config/i386/i386os9k.mt: new add.
2147 config/i386/tm-i386os9k.h: new add.
2148
137b6849
PS
2149Tue Mar 1 13:16:10 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2150
2151 * config/sparc/tm-sun4sol2.h (IN_SIGTRAMP): Handle ucbsigvechandler.
2152 * sparc-tdep.c (sparc_frame_saved_pc): Handle ucbsigvechandler.
2153
4ad0021e
JK
2154Tue Mar 1 11:54:11 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
2155
2156 * target.c, target.h (target_read_string): Provide error detection to
2157 caller. Put string in malloc'd space, so caller need not impose
2158 arbitrary limits.
2159 * solib.c (find_solib): Update to use new interface.
2160 * irix5-nat.c (find_solib): Read o_path from inferior
2161 (clear_solib): Free storage for o_path.
2162 * valprint.c (val_print_string): Add comments.
2163
e3d6ec4a
PS
2164Mon Feb 28 23:54:39 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2165
2166 * symtab.c (decode_line_1): Handle the case when skip_quoted does not
2167 advance `p'.
2168
c8ff77be
JK
2169Mon Feb 28 12:40:46 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
2170
30974778
JK
2171 * value.h (struct value): Add modifiable field.
2172 * values.c (allocate_value, record_latest_value, value_copy): Set it.
2173 (record_latest_value): Don't mess with VALUE_LVAL of value.
2174 * valops.c (value_assign): Check it. Reword existing error
2175 message on not_lval.
2176
b5aff268
JK
2177 * mips-tdep.c (mips_step_skips_delay), config/mips/tm-mips.h
2178 (STEP_SKIPS_DELAY): Added.
2179 * infrun.c (proceed) [STEP_SKIPS_DELAY]: Check for a breakpoint in
2180 the delay slot.
2181
c8ff77be
JK
2182 * valprint.c (val_print_string): If errcode is set, always print
2183 an error, regardless of force_ellipsis. In the non-EIO case,
2184 just print the error message rather than calling error(). Don't
2185 access *(bufptr-1) if bufptr points to the start of the buffer.
2186 When looking for '\0', don't increment bufptr and addr if bufptr
2187 started out already at limit. If an error happens on fetching the
2188 first character, don't print the string.
2189
2882219f
JK
2190Sun Feb 27 21:05:06 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
2191
2192 * config/m68k/tm-apollo68b.h: Remove HAVE_68881 define; it is
2193 obsolete.
2194
2195 * i387-tdep.c, i386-tdep.c i386v-nat.c, i386aix-nat.c,
2196 i386m3-nat.c, config/m68k/tm-m68k.h, i960-tdep.c
2197 config/i960/tm-i960.h, remote-nindy.c, config/m88k/tm-m88k.h,
2198 m88k-tdep.c: Use floatformat.h instead of ieee-float.h.
2199 * sparc-tdep.c: Remove now-obsolete ieee-float.h stuff
2200 * findvar.c: Update comment regarding ieee-float.h.
2201
28ee4b42
PS
2202Sun Feb 27 21:39:48 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2203
2204 * config/i386/tm-i386v4.h (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP,
2205 FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC):
2206 Define to make backtracing through the various sigtramp handlers
2207 work.
2208 * i386-tdep.c (i386v4_sigtramp_saved_pc): New routine to fetch
2209 the saved pc from ucontext on the stack for SVR4 signal handling.
2210
25354cef
JK
2211Fri Feb 25 09:41:11 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
2212
c20c1bdf
JK
2213 * remote.c, remote-mon.c, remote-utils.c, remote-utils.h,
2214 target.h, remote-es.c, remote-nindy.c: Don't set baud rate if
2215 baud_rate is -1. Remove sr_get_baud_rate and sr_set_baud_rate;
2216 just use the global variable itself. When printing baud rate,
2217 don't print a baud rate if baud_rate is -1.
2218
25354cef
JK
2219 * coffread.c (read_coff_symtab): Pass mst_file_* to
2220 record_minimal_symbol for C_STAT symbols. Put C_EXT and C_STAT
2221 symbols in the minimal symbols regardless of SDB_TYPE.
2222
7126c1d0
JK
2223Thu Feb 24 08:30:33 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
2224
bcc37718
JK
2225 * breakpoint.h (enum bptype): New type bp_through_sigtramp.
2226 (bpstat_what_main_action): New code BPSTAT_WHAT_THROUGH_SIGTRAMP.
2227 * breakpoint.c (bpstat_what): Return BPSTAT_WHAT_THROUGH_SIGTRAMP
2228 if we hit a bp_through_sigtramp breakpoint. Remove kludge which
2229 ignored bs->stop for a bp_step_resume breakpoint.
2230 * infrun.c (wait_for_inferior): Make a through_sigtramp_breakpoint
2231 which performs one (the check_sigtramp2 one) of the functions
2232 which had been handled by the step_resume_breakpoint. For each
2233 use of the step_resume_breakpoint, make it still use the
2234 step_resume_breakpoint, use the through_sigtramp_breakpoint, or
2235 operate on both.
2236 Deal with BPSTAT_WHAT_THROUGH_SIGTRAMP return from bpstat_what.
2237 When setting the frame address of the step resume breakpoint, set
2238 it to the address for frame *before* the call instruction is
2239 executed, not after.
2240
3fed1c4a
JK
2241 * mips-tdep.c (mips_print_register): Print integers using
2242 print_scalar_formatted rather than duplicating all the
2243 CC_HAS_LONG_LONG and so on.
2244 (mips_push_dummy_frame): Use read_register_gen rather than using
2245 read_register and then putting it back in target format with
2246 store_unsigned_integer. If registers are more than 4 bytes, give
2247 an error rather than have some registers overwrite other
2248 registers.
2249 #if 0 unused include of opcode/mips.h.
2250
2251 * symfile.h: Don't declare arguments for coff_getfilename.
2252
7126c1d0
JK
2253 * defs.h: Revert Kung change regarding FORCE_LONG_LONG.
2254
6bfd168c
JL
2255Thu Feb 24 08:06:52 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
2256
2257 * configure.in (hppa*-*-osf*): New configuration.
2258 * config/pa/hppaosf.mt: New target makefile fragment.
2259 * config/pa/tm-hppao.h: New target include file.
2260
5c07a10b
PS
2261Thu Feb 24 04:29:19 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2262
2263 * exec.c (print_section_info): Print entry point for exec_bfd only.
2264 * ser-unix.c (wait_for): Fix typo in HAVE_TERMIO case.
8ce2cfc0
PS
2265 * dwarfread.c: Remove second inclusion of <sys/types.h>, which
2266 causes problems if <sys/types.h> has no multiple inclusion protection.
5c07a10b 2267
fce7695f
JL
2268Wed Feb 23 16:28:55 1994 Jeffrey A. Law (law@cygnus.com)
2269
2270 * tm-hppa.h (CALL_DUMMY): Add two NOP instructions to the end of
2271 the call dummy to avoid kernel bugs in HPUX, BSD, and OSF1.
2272 (CALL_DUMMY_LENGTH): Changed accordingly.
2273
318ee78a
SG
2274Wed Feb 23 16:21:25 1994 Stu Grossman (grossman at cygnus.com)
2275
75a006d9
SG
2276 * sparc-stub.c (trap_low): Make trap handler work for arbitrary
2277 numbers of register windows.
2278
318ee78a
SG
2279 * sparclite/hello.c: Add factorial function for testing.
2280 * salib.c: Use macros instead of constants for I/O addresses to
2281 make 931 support easier.
2282 * sparclite.h: Change constraint for LOC to "rJ" to force use of
2283 register in sta/lda instructions.
2284
56dd4126
JK
2285Wed Feb 23 10:39:18 1994 Jim Kingdon (kingdon@rtl.cygnus.com)
2286
2287 * dbxread.c (process_one_symbol): Set
2288 block_address_function_relative for COFF like we do for ELF and SOM.
2289
847d9775
PS
2290Sat Feb 19 03:17:32 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2291
2292 * mdebugread.c (new_psymtab): Pass in section_offsets and set
2293 them in the pst.
2294 * mdebugread.c (handle_psymbol_enumerators): New function to enter
2295 the enumerators of an ecoff enum into the partial symbol table.
2296 * mdebugread.c (parse_partial_symbols): Call it.
2297 * symfile.c (reread_symbols): Initialize objfile->*_psymbols.next.
2298 * symmisc.c (dump_psymtab): Fix typo, clean up output of section
2299 offsets. Cast psymtab->read_symtab to PTR before passing it to
2300 gdb_print_address.
2301 * i386-tdep.c (i386_skip_prologue): Skip over instructions that
2302 set up the global offset table pointer in pic compiled code.
2303 * config/mips/tm-mips.h (FIX_CALL_DUMMY): For big endian targets,
2304 error() on TYPE_CODE_FLT arguments whose size is greater than 8,
2305 swap all other TYPE_CODE_FLT arguments as mips_push_arguments
2306 ensures that floats are promoted to doubles before they are pushed
2307 on the stack.
2308
9f35e15a
SG
2309Fri Feb 18 23:12:59 1994 Stu Grossman (grossman at cygnus.com)
2310
2311 * sparclite/Makefile.in, sparclite/salib.c, sparclite/sparclite.h:
2312 Fixup cache_on and flush_i_cache so that they work for both the
2313 930 and 932 processors. Rewrite most low level funcs (uart
2314 access & cache stuff) to use new ASI access macros in sparclite.h.
2315 Also make it easy to access second serial port.
2316
56173dc5
ILT
2317Fri Feb 18 22:17:33 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2318
2319 * hp300ux-nat.c: Don't incloude <sys/dir.h>, <sys/ioctl.h>, or
2320 <sys/stat.h>; not needed.
2321
c84bab2d
JK
2322Fri Feb 18 08:26:29 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2323
2324 * stack.c (print_frame_info): In "pathological" case, don't
2325 distrust the line number information.
2326
748d77d7
KH
2327Fri Feb 18 16:51:14 1994 Kung Hsu (kung@mexican.cygnus.com)
2328
2329 * mips-tdep.c (mips_print_register): handle 64 bits register.
2330 * valprint.c (print_longest): fix a bug in printing 64 bits value.
2331
889f1f03
JK
2332Fri Feb 18 08:26:29 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2333
1eb89b9e
JK
2334 * Version 4.12.2.
2335
ef1a0540
JK
2336 * Makefile.in (install): Do the sed for program_transform_name
2337 ourselves instead of worrying about INSTALL_XFORM. This enables
2338 users to override INSTALL_PROGRAM in the standard way.
2339
2340 * Makefile.in (c-exp.tab.o, ch-exp.tab.o, m2-exp.tab.o): Don't
2341 depend on Makefile.in.
2342
fb0f4231
JK
2343 * defs.h, valprint.c: Make longest_to_int a function not a macro.
2344 Only test against INT_MIN if a LONGEST is bigger than an int.
2345
889f1f03
JK
2346 * README: Change GhostScript to Ghostscript.
2347
662f3b3f
JK
2348Fri Feb 18 07:30:55 1994 Jim Kingdon (kingdon@cygnus.com)
2349
d5cb2f7d
JK
2350 * config/rs6000/{tm-rs6000lynx.h,nm-rs6000lynx.h,xm-rs6000lynx.h}:
2351 Rename to tm-rs6000ly.h, nm-rs6000ly.h, xm-rs6000ly.h for 14
2352 character file names.
2353 * Makefile.in (ALLPARAM): Add these files.
2354
662f3b3f
JK
2355 * config/mips/littlemips64.mt: Rename to mipsel64.mt for 14
2356 character file names.
d5cb2f7d 2357 * Makefile.in: Add Kung's new mips64 files.
662f3b3f 2358
70126bf9
KH
2359Thu Feb 17 17:25:47 1994 Kung Hsu (kung@mexican.cygnus.com)
2360
2361 * configure.in: add mips64-*-elf, mips64-*-ecoff, mips64el-*-elf,
2362 mips64el-*-ecoff and mips64-big-*.
2363 * defs.h: get rid of FORCE_LONG_LONG.
2364 * mips-tdep.c (mips_find_saved_regs): add sd and sdc1 instruction
2365 parsing. Change register size to be MIPS_REGSIZE.
2366
c4a081e1
DM
2367Thu Feb 17 09:30:22 1994 David J. Mackenzie (djm@thepub.cygnus.com)
2368
2369 * corelow.c, exec.c, irix5-nat.c, mipsread.c, objfiles.c,
2370 osfsolib.c, rs6000-nat.c, solib.c, symfile.c, utils.c,
2371 xcoffexec.c: Use bfd_get_error and bfd_set_error and new error names.
2372
3b5442f9
SC
2373Fri Feb 11 21:47:24 1994 Steve Chamberlain (sac@sphagnum.cygnus.com)
2374
2375 * remote-hms.c (readchar, hms_open, hms_fetch_register): Made more robust.
2376 (remove_commands, add_commands): Add/remove hms-drain when target
2377 is connected.
2378
d87d7b10
SG
2379Fri Feb 11 16:11:38 1994 Stu Grossman (grossman at cygnus.com)
2380
2381 * configure.in: Add Lynx/rs6000 support.
2382 * lynx-nat.c: Clean up some Sparc stuff. Clean up ptrace error
2383 messages. Add rs6000 support. Don't try to modify unwritable
2384 registers.
2385 * rs6000-nat.c: Move lots of native dependent stuff (like core
2386 file support) from rs6000-tdep.c & xcoffexec.c to here.
2387 * rs6000-tdep.c: Move native dependent stuff to nat.c.
2388 * xcoffexec.c: Move native dependent stuff to nat.c.
2389 * config/rs6000/nm-rs6000.h: Move defs of SOLIB_* macros to here
2390 from tm file.
2391 * config/rs6000/tm-rs6000.h: Remove defs of SOLIB_* funcs, cuz they're
2392 really native.
2393 * config/rs6000/tm-rs6000lynx.h, config/rs6000/xm-rs6000lynx.h:
2394 New files to support Lynx/rs6000.
2395
ba47c66a
PS
2396Tue Feb 8 00:32:28 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2397
2398 * README: Remove note about gcc warnings on alpha, these should be
2399 gone now.
2400 * c-exp.y, ch-exp.y, core.c, corelow.c, eval.c, fork-child.c,
2401 m2-exp.y, minsyms.c, nlmread.c, parse.c, putenv.c, regex.c
2402 remote-utils.c, stabsread.c: Include <string.h>.
2403 * regex.c: Include "defs.h", change re_comp argument to const char *.
2404 * infptrace.c (fetch_register, store_inferior_registers): Change
2405 regaddr to type CORE_ADDR.
2406 * config/alpha/alpha-nw.mt, config/alpha/alpha-osf1.mt (MT_CFLAGS):
2407 Remove, no longer necessary now that we use bfd_vma for a CORE_ADDR.
2408
2409Mon Feb 7 09:21:17 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2410
2411 * symtab.h: Always define BYTE_BITFIELD to nothing.
2412
ea5dad7f
JK
2413Mon Feb 7 08:44:17 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
2414
2415 * config/m68k/{m68k-em.mt,tm-m68k-em.h}: Remove; no longer used.
2416 * configure.in: Remove comment about m68k-em.mt.
2417 * Makefile.in: Remove references.
2418
6ddba992
JK
2419Mon Feb 7 08:22:42 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2420
2421 * defs.h [BFD64]: Use BFD_HOST_64_BIT, not nonexistent
2422 BFD_HOST_64_TYPE.
2423
01cd70b9
JK
2424Sun Feb 6 06:55:15 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2425
1dd29bef
JK
2426 * target.c (target_preopen): If target_kill doesn't remove the
2427 target from the stack, use pop_target to do it.
2428
704aea43
JK
2429 * coffread.c (process_coff_symbol, case C_TPDEF): Don't set name
2430 of TYPE_CODE_PTR or TYPE_CODE_FUNC types. This parallels similar
2431 changes to stabsread.c from summer 1993.
2432
4a00e1de
JK
2433 * remote-udi.c (udi_files_info): If prog_name is NULL, just skip
2434 printing the program, rather than passing NULL to printf.
2435 (udi_detach): Set udi_session_id to -1 so that udi_close doesn't
2436 try to call UDIDisconnect again. Print better message.
2437 (udi_kill): Just call UDIDisconnect ourselves, rather than doing
2438 it via udi_close.
4a00e1de
JK
2439 (udi_create_inferior): If udi_session_id is negative, open a new
2440 TIP rather than giving an error.
2441
01cd70b9
JK
2442 * config/mips/mipsm3.mh, config/i386/i386m3.mh,
2443 config/ns32k/ns32km3.mh: Define NAT_FILE.
2444 * config/nm-m3.h: Change guard from _OS_MACH3_H_ and _OS_MACH3_H
2445 (it was inconsistent and namespace-wrong) to NM_M3_H.
2446 * m3-nat.c (mach_really_wait): Change parameter name to ourstatus.
2447 (m3_open): New function.
2448 (m3_ops): Use it.
2449 * TODO: Update Mach section.
2450
2451 * Makefile.in: Remove "rapp" stuff; it is superseded by gdbserver.
2452
d41b3eed
PB
2453Sun Feb 6 13:26:21 1994 Per Bothner (bothner@kalessin.cygnus.com)
2454
2455 * printcmd.c (printf_command): Add missing single-letter
2456 backslash-escape sequences, and improve error message.
2457
7343d716
JK
2458Sun Feb 6 06:55:15 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2459
842cf831
JK
2460 * corelow.c (solib_add_stub, core_open): Pass address of from_tty
2461 rather than trying to shove an int into a pointer and back out
2462 again. This avoids compiler warnings.
2463
7343d716
JK
2464 * defs.h (alloca): Declare as void *, not char *, on hpux.
2465 Don't prototype it, just declare the return type.
2466
57a9fee3
PS
2467Sun Feb 6 03:25:41 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2468
2469 * config/i386/tm-sun386.h, config/i386/tm-symmetry.h
2470 (REGISTER_CONVERT_TO_RAW): Add missing backslash.
2471
a1bd6534
JK
2472Sat Feb 5 08:03:41 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2473
021b10e3
JK
2474 * remote-mips.c (mips_fetch_registers): If regno is FP_REGNUM or
2475 ZERO_REGNUM, just read it as zero without talking to the board.
2476
8b0a85ba
JK
2477 * config/i386/tm-i386aix.h (REGISTER_CONVERT_TO_RAW): Add missing
2478 backslash.
2479 * i386-tdep.c (i386_extract_return_value): Pass TYPE_LENGTH (type)
2480 to store_floating, not nonexistent variable len.
2481
aa56c716
JK
2482 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
2483 New functions.
2484 (mips_store_word): Change calling convention to return errors, and
2485 to provide old contents if the caller wants it.
2486 (mips_xfer_memory): Deal with errors from mips_store_word.
2487 * config/mips/tm-idt.h, config/mips/tm-idtl.h: Remove BREAKPOINT
2488 define now that remote-mips.c doesn't use BREAKPOINT.
2489
2490 * remote-mips.c (mips_create_inferior): Call warning if arguments
2491 specified, and then execute "set args" command. Call error, not
2492 mips_error, if executable file not specified.
2493
29fc92e8
JK
2494 * remote-e7000.c: Replace "snoop" command (e7000_noecho) with
2495 remote_debug.
2496
a1bd6534
JK
2497 * config/rs6000/tm-rs6000.h (STORE_STRUCT_RETURN): Don't cast
2498 to unsigned int.
2499
65e98f5b
PS
2500Sat Feb 5 05:27:05 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2501
2502 * value.h (print_longest): Rename "value" to "val" in prototype
2503 declaration because some compilers don't like arguments whose
2504 names are the same as types.
2505 * remote.c (remote_xfer_memory): Cast "myaddr" to unsigned char *
2506 before passing it to remote_*_bytes.
2507
edd01519
SC
2508Fri Feb 4 15:53:18 1994 Steve Chamberlain (sac@cygnus.com)
2509
2510 * h8500-tdep.c (saved_pc_after_call): The size of the
2511 pc is memory model dependent. (segmented_command,
2512 unsegmented_command, _initialize_h8500_tdep): New commands to
2513 change memory model.
29fc92e8 2514 * remote-e7000.c (_initialize_remote_e7000): Change name of snoop
edd01519 2515 command.
678ee700
SC
2516 * remote-hms.c (hms_load): Remove breakpoints when loaded.
2517 (hms_wait): Use new status structure
2518 (hms_open): Push the target here. (hms_before_main_loop): Not
2519 here. (supply_val, hms_fetch_register, hms_store_register): Cope
2520 with H8/500 names too. (hms_fetch_register): Take out REGISTER_TYPE.
2521 * sh-tdep.c (show_regs, initialize_sh_tdep): New command to print
2522 all registers in a compact way.
edd01519 2523
9c01440d
JK
2524Fri Feb 4 07:41:13 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
2525
2526 * config/rs6000/tm-rs6000.h: Declare rs6000_struct_return_address
2527 as CORE_ADDR to match definition in rs6000-tdep.c.
2528
4386eff2
PS
2529Fri Feb 4 01:14:20 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2530
2531 * dwarfread.c (process_dies): Skip nested TAG_compile_unit DIEs.
2532 * dwarfread.c (add_partial_symbol): Do not enter opaque aggregate
2533 definitions into the psymtab.
2534
d351c7a6
JK
2535Thu Feb 3 12:38:58 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2536
2537 * m68k-stub.c: Treat mc68332 like mc68020 most places. Provide
2538 a special exceptionSize for the 68332.
2539
2540 * remote-udi.c (udi_attach): If no arguments, print error.
2541
4901e77d
FF
2542Thu Feb 3 17:34:05 1994 Fred Fish (fnf@cygnus.com)
2543
2544 * Makefile.in (VERSION): Bump to 4.12.1
2545 * NEWS, README: Update to match 4.12 release.
2546
159ada02
JK
2547Thu Feb 3 12:38:58 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2548
4901e77d
FF
2549 * command.c (empty_sfunc): New function.
2550 (add_set_cmd): Use it instead of not_just_help_class_command.
2551 (not_just_help_class_command): Change calling convention back to
2552 what it was before yesterday's change.
2553
159ada02
JK
2554 * stabsread.c (read_sun_builtin_type): Skip the semicolon at the end
2555 of the type if present.
2556
5b3591ab
JK
2557Wed Feb 2 11:16:45 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2558
eade0c6c
JK
2559 * printcmd.c (decode_format): Don't blithely set the size for
2560 an address to 'w'. Make it 'g' or 'h', depending on TARGET_PTR_BIT.
2561
2562 * defs.h: Just typedef CORE_ADDR to bfd_vma. Include bfd.h.
2563 If BFD64, make a LONGEST a BFD_HOST_64_BIT.
2564 * defs.h (longest_to_int): Don't depend on CC_HAS_LONG_LONG; instead
2565 always just check against INT_MIN and INT_MAX (this also fixes things
2566 if sizeof (long) > sizeof (int), e.g. Alpha).
2567 * config/pa/tm-hppa.h, config/i386/sun386.h, config/rs6000/tm-rs6000.h:
2568 Don't define LONGEST or BUILTIN_TYPE_LONGEST.
2569 * gdbtypes.h: Remove BUILTIN_TYPE_LONGEST and
2570 BUILTIN_TYPE_UNSIGNED_LONGEST.
ce855594
JK
2571 * language.h, c-lang.c, ch-lang.c, m2-lang.c, language.c: Remove
2572 longest_int and longest_unsigned_int.
eade0c6c
JK
2573 * value.h (struct value): Just align to LONGEST, rather than worrying
2574 about CC_HAS_LONG_LONG.
b1de1647
JK
2575 * valarith.c (value_binop): Figure out type ourself based on
2576 sizeof (LONGEST) rather than relying on BUILTIN_TYPE_LONGEST. The
2577 point is that we don't depend on CC_HAS_LONG_LONG anymore.
eade0c6c
JK
2578 * valprint.c (val_print_type_code_int): Just call
2579 extract_unsigned_integer directly, rather than going through
2580 unpack_long.
2581 * printcmd.c (decode_format): Remove code which would sometimes
2582 change 'g' size to 'w' for integers. print_scalar_formatted handles
2583 printing huge integers well enough, thank you.
2584
4901e77d 2585 * command.c (add_set_cmd, not_just_help_class_command): Change
719d9abb
JK
2586 to make this the sfunc, not cfunc, since that is how we call it.
2587 * command.h: Comment difference between sfunc and cfunc.
2588 * demangle.c (set_demangling_command): Add third arg since that
2589 is how it is called.
2590 (_initialize_demangler): Use sfunc, not cfunc, for
2591 set_demangling_command, since that is how it is called.
2592 Remove show_demangling_command; it has no effect.
2593
5b3591ab
JK
2594 * command.c (shell_escape): Report errors correctly (with error
2595 message from strerror).
2596
37f24dc9
ILT
2597Wed Feb 2 14:35:41 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2598
2599 * xcoffread.c (read_xcoff_symtab): Change CSECT_LEN to use
2600 x_scnlen.l rather than x_scnlen to match corresponding change in
2601 coff/internal.h.
2602
61932a8e
JK
2603Wed Feb 2 11:16:45 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2604
2605 * gdbtypes.h, ch-typeprint.c, ch-valprint.c:
2606 Change comments regarding TYPE_CODE_BOOL.
2607 * language.c (boolean_type): Always return 1 for TYPE_CODE_BOOL,
2608 regardless of the language.
2609 (value_true): Just call value_logical_not regardless of language.
2610 * coffread.c (coff_read_enum_type), stabsread.c (read_enum_type):
2611 Remove #if 0'd code which makes some enums TYPE_CODE_BOOL.
2612 * language.h: Improve comment for la_builtin_type_vector.
2613 * m2-lang.c (_initialize_m2_language): Don't add any fields to
2614 builtin_type_m2_bool.
2615
7bec77b4
JK
2616Tue Feb 1 17:13:32 1994 Kevin Buettner (kev@cujo.geg.mot.com)
2617
2618 * config/m88k/{tm-delta88.h,tm-delta88v4.h}, m88k-tdep.c:
2619 Define IN_SIGTRAMP and backtrace correctly through signal handlers.
2620
8afd05c0
JK
2621Tue Feb 1 22:13:25 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2622
2623 * procfs.c (wait_fd): Handle EINTR error return from PIOCWSTOP ioctl
2624 by restarting the ioctl.
2625
10b9bb56
JK
2626Tue Feb 1 16:16:25 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2627
2628 * target.h (target_wait): Add comment about calling
2629 return_to_top_level.
2630
bf8d9d28
ILT
2631Tue Feb 1 12:21:00 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2632
2633 * coffread.c (read_one_sym): bfd_coff_swap_aux_in now takes
2634 additional arguments.
2635 * xcoffread.c (read_xcoff_symtab, read_symbol_lineno): Likewise.
2636
efe3ff3e
SG
2637Mon Jan 31 16:10:41 1994 Stu Grossman (grossman at cygnus.com)
2638
2639 * sparc-stub.c: Remove unnecessary #include of memory.h.
2640
37dea45f
JK
2641Mon Jan 31 12:12:34 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2642
14d79562
JK
2643 * mips-tdep.c: Remove code which sets saved_regs from
2644 init_extra_frame_info and put it in new function mips_find_saved_regs.
2645 (READ_FRAME_REG): Remove macro and replace uses with the expansion.
2646 * mips-tdep.c, config/mips/tm-mips.h: When examining ->saved_regs,
2647 check if it is NULL and call mips_find_saved_regs if so.
2648
47d52968
JK
2649 * remote-mips.c: Use unfiltered, not filtered, output most places.
2650
37dea45f
JK
2651 * blockframe.c (get_prev_frame_info): Detect and stop an infinite
2652 backtrace. Revise comments.
2653
0434c1a0
PS
2654Mon Jan 31 09:40:33 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2655
2656 * mdebugread.c (parse_procedure): Remove _sigtramp kludges for
2657 alpha and irix. The _sigtramp case has to be handled properly
2658 in the tdep files if we have no ecoff debugging info.
2659 * alpha-tdep.c (alpha_frame_saved_pc, alpha_frame_chain),
2660 mips-tdep.c (mips_frame_saved_pc): Handle signal handler frames
2661 without PC_REGNUM kludge.
2662 * mdebugread.c (fixup_sigtramp), mips-tdep.c (read_next_frame_reg):
2663 Clean up handling of mips sigtramp frames, improve comments.
2664
d64956fa
JL
2665Sat Jan 29 23:25:57 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
2666
2667 * paread.c (read_unwind_info): Fix typo.
2668
2669 * paread.c (pa_symtab_read): Update the "check_strange_names"
2670 filter to match GCC's current output. Filter out section symbols
2671 (which the HP linker sometimes puts in the wrong place).
2672
9db58d3a
JK
2673Sat Jan 29 07:44:59 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
2674
3a479851
JK
2675 * serial.h (SERIAL_SET_TTY_STATE): Comment return value.
2676
a0b352c0
JK
2677 * Makefile.in (TAGS): Just echo one line, rather than the whole thing.
2678
2679 * Makefile.in: Remove all references to sparcly-nat.c.
2680
2681 * Makefile.in (HFILES_NO_SRCDIR): Include dcache.h remote-utils.h
2682 remote-sim.h directly, rather than via $(remote_utils_h). This avoids
2683 duplicating serial.h and target.h.
2684
7a78db15
JK
2685 * Makefile.in: Don't set M_INSTALL and M_UNINSTALL. These variables
2686 are not used anywhere (a 5 Oct 1993 change removed the uses).
2687
895efe6b
JK
2688 * config/m68k/monitor.mt (TDEPFILE): Add remote-es.o.
2689 * config/m68k/es1800.mt: Add comment.
3a479851 2690 * remote-es.c: Extensive changes to update to current conventions.
895efe6b 2691
9db58d3a
JK
2692 * ser-unix.c (wait_for, hardwire_readchar) [HAVE_TERMIO, HAVE_TERMIOS]:
2693 If the timeout is too big to fit in c_cc[VTIME], then do multiple reads
2694 to achieve the desired timeout.
2695 * serial.h (serial_t): Add field timeout_remaining.
2696
f28c6e38
JK
2697Fri Jan 28 08:45:02 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
2698
2699 * c-exp.y (yylex): Reenable nested type code.
2700
b09f44d2
JK
2701Fri Jan 28 15:40:33 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2702
7f2ffa58
JK
2703 * a29k-tdep.c (examine_tag): Add comment regarding argcount.
2704
796d1fd3
JK
2705 * remote-mips.c (mips_ops): Fix docstring.
2706
97cc0428
JK
2707 * remote-bug.c (bug_ops): Remove spurious newline from docstring.
2708
ddd0223e
JK
2709 * config/m68k/tm-monitor.h: Changes to bring this into accordance
2710 with the old tm-m68k-em.h:
2711 (GDBINIT_FILENAME, DEFAULT_PROMPT): Remove.
97cc0428 2712 (HAVE_68881): Don't undefine; HAVE_68881 is obsolete.
ddd0223e
JK
2713 (REGISTER_NAMES): Don't muck with it; what tm-m68k.h has is fine.
2714 Add FIXME regarding GET_LONGJMP_TARGET.
2715
b09f44d2 2716 * remote-udi.c (udi_close, udi_detach, udi_kill): Add comments.
97cc0428
JK
2717 * infptrace.c (kill_inferior): Add comments.
2718 * main.c (quit_command): Call target_close after we kill or
2719 detach.
2720 * remote-udi.c (udi_close): Don't error() if QUITTING.
b09f44d2 2721
0ffba029
RS
2722Fri Jan 28 11:55:52 1994 Rob Savoye (rob@darkstar.cygnus.com)
2723
2724 * configure.in: Make m68k-coff and aout add monitor support in
2725 addition to the standard serial support.
2726
bb7cb982
JK
2727Fri Jan 28 08:45:02 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
2728
2729 * mdebugread.c (psymtab_to_symtab_1): Don't complain on stLabel with
2730 index indexNil.
2731
9fdb3f7a
JK
2732Fri Jan 28 10:40:34 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2733
2734 * config/pa/tm-hppa.h: Define macro SMASH_TEXT_ADDRESS.
2735 * elfread.c (record_minimal_symbol_and_info),
2736 dwarfread.c (process_dies), paread.c (pa_symtab_read): Use it.
2737
a28d16d3
JK
2738Thu Jan 27 15:12:23 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2739
6202263d
JK
2740 * i386-stub.c: Add ".text" right before "mem_fault:".
2741
9c41f6a6
JK
2742 * main.c (baud_rate): Add FIXME comment about printing -1 value.
2743
2744 * remote-utils.c (usage): Fix message to be accurate and conform
2745 more closely to normal conventions.
2746
2747 * remote-utils.c (gr_files_info): Have the exec_bfd test control
2748 whether to show information about exec_bfd, and not control whether
2749 to show information about device and speed.
2750
2751 * remote-utils.c (gr_open): If sr_get_device returns NULL, give
2752 usage message, don't dump core.
2753
2754 * remote-bug.c (bug_write_memory): Use alloca, not GCC extension
2755 for variable size array.
2756 (bug_fetch_register, bug_store_register): Rename "value" to
2757 "fpreg_buf" because some compilers don't like variables whose
2758 names are the same as types.
2759 (bug_store_register): Use a cast when converting char * to
2760 unsigned char *.
2761
d5c551c9
JK
2762 * symmisc.c (maintenance_print_symbols): Don't refer to the name
2763 of the command in error message (the text was referring to the old
2764 name of the command).
2765
2766 * symmisc.c (dump_symtab): Fix args to fprintf_filtered.
2767
0e4ad984
JK
2768 * c-typeprint.c (c_type_print_base): Have SHOW == 0 mean to print
2769 full details on structure elements without names. This partially
2770 reverts the changes of 1 Jul 1993 and 31 Aug 1993; I think this aspect
2771 of those changes was accidental.
2772
577da8cb
JK
2773 * stack.c (parse_frame_specification): If SETUP_ARBITRARY_FRAME is
2774 defined, make it an error to specify a single argument which is not
2775 a frame number.
2776
a28d16d3
JK
2777 * Makefile.in (version.c), main.c (print_gdb_version): Use
2778 host_alias and target_alias, not host_canonical and
2779 target_canonical, to print configuration.
2780
833e0d94
JK
2781Wed Jan 26 10:57:21 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2782
d92f3f08
JK
2783 * parse.c (write_exp_msymbol): Use new type msymbol_addr_type instead
2784 of builtin_type_long. It is necessary to get a type which is
2785 TARGET_PTR_BIT bits in size; builtin_type_long might not be big enough.
2786
833e0d94
JK
2787 Fix many sins which will come up in 32 bit x 64 bit GDB, and
2788 various miscellaneous things discovered in the process:
2789 * printcmd.c, defs.h (print_address_numeric): New function.
2790 * c-valprint.c (c_val_print), ch-valprint.c (chill_val_print)
2791 breakpoint.c (describe_other_breakpoints, breakpoint_1, mention),
2792 cp-valprint.c (cplus_print_value), infcmd.c (jump_command),
2793 printcmd.c, stack.c, symfile.c, symmisc.c, valprint.c:
2794 Use it.
2795 * utils.c, defs.h (gdb_print_address): New function.
2796 * expprint (dump_expression), gdbtypes.h: Use it.
2797 * breakpoint.c (describe_other_breakpoints),
2798 symmisc.c (dump_symtab, print_symbol):
2799 Use filtered not unfiltered I/O.
2800 (remove_breakpoints): Remove BREAKPOINT_DEBUG code. Might as well
2801 just run gdb under a debugger for this (and it had problems with
2802 printing addresses, how to print b->shadow, etc.).
2803 * buildsym.c (make_blockvector), core.c (memory_error),
2804 exec.c (print_section_info), maint.c (print_section_table),
2805 mdebugread.c (parse_procedure), solib.c, source.c, symfile.c,
2806 symmisc.c, symtab.c, valops.c, valprint.c, xcoffexec.c:
2807 Add comments saying code is broken. Marked with "FIXME-32x64".
2808 * dbxread.c (process_one_symbol), partial-stab.h (default),
2809 remote-vx.c (vx_run_files_info):
2810 Don't cast int being passed to local_hex_string.
2811 * symmisc.c (print_symbol): Don't cast long being passed to %lx.
2812 * symtab.h (general_symbol_info): Add comment about SYMBOL_VALUE
2813 only being a long.
2814 * symmisc.c (print_symbol): Print "offset" in message for LOC_ARG
2815 and LOC_LOCAL.
2816 * printcmd.c (print_address): Remove #if 0 code with ADDR_BITS_REMOVE.
2817 * source.c: Include <sys/types.h> regardless of USG.
2818
67e9b3b3
PS
2819Tue Jan 25 12:58:26 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2820
2821 * valops.c (value_assign): Set `type' after coercing toval.
2822 * c-valprint.c (c_val_print), ch-valprint.c (chill_val_print):
2823 Use extract_unsigned_integer to get the address of a reference.
2824
36464897
JK
2825Tue Jan 25 11:31:53 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2826
91a0575c
JK
2827 * stabsread.c (STABS_CONTINUE, error_type), partial-stab.h:
2828 AIX can use ? instead of \ for continuation. Deal with it.
2829
36464897
JK
2830 * paread.c (read_unwind_info): Just assign to objfile->obj_private,
2831 not OBJ_UNWIND_INFO. Assigning to a cast is a GCC-ism which
2832 the HP compiler in ANSI mode doesn't like.
2833
2834 * main.c: When defaulting HAVE_SIGSETMASK based on USG, just do it
3bc45b7a
JK
2835 based on USG, rather than defining HAVE_SIGSETMASK to an
2836 expression containing defined. Having a macro used in #if expand
2837 to an expression containing "defined" is undefined according to
2838 ANSI, and the HP compiler in ANSI mode doesn't do what we wanted
2839 it to.
36464897 2840
2ba6182b
JG
2841Mon Jan 24 20:51:29 1994 John Gilmore (gnu@cygnus.com)
2842
2843 * sparc-nat.c (fetch_inferior_registers, store_inferior_registers):
2844 Clean up the changes of 11 Jan, as recommended by Peter Schauer.
2845
96b6b765
PB
2846Fri Jan 21 19:10:44 1994 Per Bothner (bothner@kalessin.cygnus.com)
2847
2848 * ch-exp.y (match_string_literal): Allow a zero-length string.
2849 * ch-lang.c (chill_printstr): Don't print zero-length string funny.
2850
dfd4c728
JK
2851Sat Jan 22 17:08:48 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2852
2853 * i386aix-nat.c (i386_float_info): Reverse order of registers before
2854 passing them to print_387_status.
2855 (print_387_status): Don't subtract top from 7 before using it.
2856 * i387-tdep.c: Remove comment about AIX wanting "top" subtracted
2857 from 7; the above explains it.
2858
5efd597b
PS
2859Sat Jan 22 20:25:11 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2860
2861 * mips-tdep.c (init_extra_frame_info): Use frame relative stack
67e9b3b3 2862 pointer value when fixing up the frame at the start of a function.
5efd597b 2863
e90445c9
SG
2864Sat Jan 22 12:29:13 1994 Stu Grossman (grossman at cygnus.com)
2865
2866 * lynx-nat.c (fetch_core_registers): Load the I & L regs for the
2867 Sparc from the stack.
2868
08f74b92
JK
2869Sat Jan 22 08:30:42 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
2870
864df7e6
JK
2871 * remote-mips.c (mips_initialize): Clear mips_initializing via
2872 cleanup chain, not directly.
2873
2874 * ser-unix.c (wait_for) [HAVE_TERMIO, HAVE_TERMIOS]: Make a timeout
2875 of -1 mean forever, like in the HAVE_SGTTY case. Warn if we are
2876 munging the timeout due to the limited range of c_cc[VTIME].
2877
08f74b92
JK
2878 * fork-child.c, inferior.h (fork_inferior): New argument shell_file.
2879 * procfs.c (procfs_create_inferior), inftarg.c (child_create_inferior),
2880 m3-nat.c (m3_create_inferior): Pass it.
2881 * procfs.c: Remove ptrace function. It was declared in a way which
2882 conflicted with the prototype in unistd.h on Solaris.
2883
cdcf48be
PS
2884Sat Jan 22 01:37:40 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2885
2886 * sparc-tdep.c (frame_saved_pc): Get the pc from the saved pc
2887 in the sigcontext if it is a signal trampoline frame.
2888 * config/sparc/tm-sun4sol2.h (IN_SIGTRAMP, SIGCONTEXT_PC_OFFSET):
2889 Define for Solaris2.
2890
8bf94f44
SG
2891Sat Jan 22 00:34:47 1994 Stu Grossman (grossman at cygnus.com)
2892
2893 * sparc-tdep.c, lynx-nat.c, config/sparc/tm-sparc.h,
2894 config/sparc/tm-sparclynx.h: Move defs of FRAME_SAVED_I0/L0 to
2895 tm-sparc.h so they can be overridden if necessary.
2896
d575ddc0
SG
2897Fri Jan 21 17:49:28 1994 Stu Grossman (grossman at cygnus.com)
2898
2899 * lynx-nat.c: Add Sparc support.
2900 * sparcly-nat.c: Remove. It's useless.
2901 * config/sparc/nm-sparclynx.h: Rewrite.
2902 * config/sparc/sparclynx.mh (NATDEPFILES): Replace sparcly-nat.o
2903 with lynx-nat.o
2904 * config/sparc/tm-sparclynx.h: Rewrite.
2905
00240279
ILT
2906Fri Jan 21 19:08:48 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2907
2908 * rs6000-pinsn.c: Use the new disassembler in the opcodes
2909 directory. Old code was discarded, since the new opcode table has
2910 a different format.
2911
a2608ea1
FF
2912Fri Jan 21 14:28:30 1994 Fred Fish (fnf@cygnus.com)
2913
2914 * Makefile.in (realclean): Remove info files per make-stds.texi.
2915
6545c6a0
JK
2916Fri Jan 21 12:47:53 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2917
2918 * dbxread.c (end_psymtab): Only patch psymtab textlow and texthigh
2919 if N_SO_ADDRESS_MAYBE_MISSING is defined.
2920 * config/sparc/tm-sun4sol2.h: Define it.
2921
cd5ee294
JK
2922Thu Jan 20 15:04:24 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2923
2924 * printcmd.c (print_address_symbolic): Unconditionally use msymbol
2925 if we did not find a symbol.
2926
918fea3e
JL
2927Fri Jan 21 08:20:18 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
2928
2929 * infptrace.c (child_xfer_memory): Only use if CHILD_XFER_MEMORY
2930 is not defined.
2931
2932 * hppab-nat.c (call_ptrace): Delete redundant function.
2933 (kill_inferior, attach, detach, child_resume): Likewise.
2934 (child_xfer_memory): Likewise.
2935
2936 * hppah-nat.c (call_ptrace): Delete redundant function.
2937 (kill_inferior, attach, detach, child_resume): Likewise.
2938
2939 * config/pa/hppabsd.mh (NATDEPFILES): Add infptrace.o.
2940
2941 * config/pa/hppahpux.mh (NATDEPFILES): Add infptrace.o.
2942
2943 * config/pa/nm-hppab.h (FETCH_INFERIOR_REGISTERS): Define.
2944
2945 * config/pa/nm-hppah.h (FETCH_INFERIOR_REGISTERS): define.
2946 (CHILD_XFER_MEMORY): Define.
2947 (PT_*): Define so that generic infptrace.c code can be used.
2948
27ad511f
JK
2949Fri Jan 21 09:23:33 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2950
1b880e74
JK
2951 * xcoffread.c (xcoff_symfile_read): Make second parameter a
2952 struct section_offsets *, not a (nonexistent) struct section_offset *.
2953
6657a0c7
JK
2954 * xcoffread.c (read_xcoff_symtab): Make main_aux just a union
2955 internal_xcoff_symtab, not an array of one of them. Change lots of
2956 "main_aux" to "&main_aux" and so on.
2957
27ad511f
JK
2958 * coffread.c, xcoffread.c: Include <coff/internal.h>
2959 before "symfile.h".
2960
d4a0983a
JK
2961Thu Jan 20 17:30:55 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2962
dbb0fae2
JK
2963 * coffread.c (coff_getfilename): Make it not static.
2964
d4a0983a
JK
2965 * xcoffread.c (read_xcoff_symtab): complain() not abort().
2966
2967 * xcoffread.c (struct coff_symbol): Rename c_nsyms to c_naux (removes
2968 a completely gratuitous difference between xcoffread.c and coffread.c).
2969
d7e7e851
JK
2970Wed Jan 19 15:09:44 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2971
2972 * infrun.c (wait_for_inferior): Don't set frame for
2973 step_resume_breakpoint for IN_SIGTRAMP cases.
2974
2975 * infrun.c (wait_for_inferior), breakpoint.h (struct bpstat_what),
2976 breakpoint.c (bpstat_what): Move step_resume from its own field of
2977 the struct bpstat_what into the main_action. Make it override
2978 other breakpoints. This is a conservative change in the sense
2979 that before the step resume breakpoint was a breakpoint.c
2980 breakpoint, hitting the step resume breakpoint overrode even
2981 calling bpstat_stop_status.
2982
f1de67d3
PS
2983Wed Jan 19 12:40:25 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2984
2985 * infrun.c (normal_stop): Set stop_pc after popping the dummy frame
2986 in case execution was stopped in the called function.
2987 * stack.c (print_frame_info, frame_info): If backtracing through
2988 a call dummy, handle the starting source line number on a line
2989 boundary like backtracing through sigtramp.
2990 * sparc-tdep.c (sparc_frame_find_saved_regs): Get frame address
2991 for call dummy frame right. Remove old test for dummy frame,
2992 it has been unused at least since gdb-3.5.
2993 * sparc-tdep.c (sparc_push_dummy_frame): Set return address register
2994 of the dummy frame.
2995
c6e0f918
JK
2996Tue Jan 18 16:16:35 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2997
2998 * infcmd.c (signal_command): Accept 0 as legitimate signal number.
2999
db4340a6
JK
3000Tue Jan 18 14:09:25 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3001
3002 * infrun.c (signals_info), target.c (target_signal_from_name):
3003 Use ugly casts to avoid enumvar < enumvar or enumvar++.
3004
4d4f2d50
JK
3005Mon Jan 17 22:00:15 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
3006
d881dd86
JK
3007 * ser-unix.c (hardwire_noflush_set_tty_state): Don't muck with ICANON.
3008 * inflow.c (terminal_ours_1): When discussing how to deal with the
3009 tty state, make note of query() as well as readline.
3010
4d4f2d50
JK
3011 * infrun.c (_initialize_infrun): Add TARGET_SIGNAL_POLL to list of
3012 signals for which stop and print are cleared by default.
3013
5c38fcee
JL
3014Mon Jan 17 20:00:51 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
3015
c7f3b703
JL
3016 * config/pa/tm-hppa.h (unwind_table_entry): Use one of the
3017 reserved fields to hold a stub unwind entry type. Fix typo.
3018 (stub_unwind_entry): New structure for raw stub unwind entries.
3019 (stub_unwind_types): The types of stubs we may encounter.
3020 (UNWIND_ENTRY_SIZE, STUB_UNWIND_ENTRY_SIZE): New defines.
3021 * hppa-tdep.c (rp_saved): Use additional information provided
3022 by linker stub unwind descriptors.
3023 (frameless_function_invocation): Likewise.
3024 (frame_chain_valid): Likewise.
3025 * paread.c (compare_unwind_entries): New function for sorting
3026 unwind table entries.
3027 (read_unwind_info): Rewrite to remove dependency on host endianness.
3028 Read in data from the $UNWIND_END$ subspace which contains linker
3029 stub unwind descriptors. Merge that data into the basic unwind
3030 table.
3031
5c38fcee
JL
3032 * hppab-nat.c (_initialize_kernel_u_addr): Delete unwanted functions.
3033
af8b7906
JK
3034Mon Jan 17 22:00:15 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
3035
3036 * xcoffread.c (read_xcoff_symtab, case C_FILE): Accept the name
3037 from either the symbol name or the auxent.
3038 * coffread.c, symfile.h (coff_getfilename): Renamed from getfilename,
3039 no longer static.
3040
0e7da49c
FF
3041Mon Jan 17 13:35:01 1994 Fred Fish (fnf@cygnus.com)
3042
3043 * Makefile.in (ALLPARAM): Change irix5.h to nm-irix5.h.
3044
b90811f9
PS
3045Mon Jan 17 12:35:42 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3046
3047 * README: Update notes for alpha port.
3048
24a11a79
JK
3049Mon Jan 17 11:15:57 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
3050
3051 * i960-tdep.c (i960_fault_to_signal): Return TARGET_SIGNAL_ILL
3052 for operation fault, constraint fault, and type fault.
3053
b76dcd4b
JK
3054Sun Jan 16 12:46:01 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
3055
623d7380
JK
3056 * Makefile.in (init.c): Add comment explaining formatting conventions.
3057
a39f7739
JK
3058 * c-exp.y (parse_number): Assign to temporary between the right
3059 shifts, to work around a bug in the SCO compiler.
3060
07919221
JK
3061 * Makefile.in (ALLCONFIG, ALLPARAM, ALLDEPFILES, HFILES_NO_SRCDIR):
3062 Add various files which were added to GDB recently.
3063
91cc45da
JK
3064 * xcoffread.c (process_xcoff_symbol): Only change 'V' to 'S' if not
3065 within_function.
3066
b76dcd4b
JK
3067 * Makefile.in: Add mostlyclean target.
3068
d7a5ff3c
JK
3069Sat Jan 15 10:20:13 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
3070
3071 * Version 4.11.4.
3072
8b564df8
PB
3073Sat Jan 15 18:27:34 1994 Per Bothner (bothner@kalessin.cygnus.com)
3074
3075 * main.c (show_commands): Make return type of extern
3076 history_get be HIST_ENTRY, rather than struct _hist_entry.
3077 (The latter loses with the upcoming merged readline.)
3078
dac317dc
JK
3079Sat Jan 15 10:20:13 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
3080
ab5f7971
JK
3081 * minsyms.c (prim_record_minimal_symbol_and_info): Make tempstring
3082 const char *, not char *.
3083
fb155ce3
JK
3084 * symtab.h (struct symbol): Make section short, not unsigned short.
3085
87041845
JK
3086 * symtab.c (lookup_symbol): Add comment about QUIT here.
3087
f29351d9
JK
3088 * utils.c (fputs_unfiltered): Call fputs, not fputs_maybe_filtered.
3089
a9b32d61
JK
3090 * c-exp.y (parse_number): Check for overflow regardless of range
3091 checking. Fix overflow check to use unsigned LONGEST, not
3092 unsigned int.
3093
3094 * c-exp.y (parse_number): Make it so that integer constants are
3095 builtin_type_long_long if builtin_type_long isn't big enough or if
3096 an "LL" suffix is used. Properly handle "UL" or "LU" suffixes.
3097
dac317dc
JK
3098 * c-typeprint.c (c_type_print_varspec_suffix, case TYPE_CODE_FUNC):
3099 Print our "()" first, then recurse for the target type.
3100
4c0b3e57
JK
3101Fri Jan 14 21:55:39 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
3102
831a39d7
JK
3103 * remote-udi.c (udi_create_inferior): Quote empty execfile argument.
3104
4c0b3e57
JK
3105 * gdbserver/low-lynx.c: Include <sys/wait.h> not "/usr/include/wait.h".
3106
44a09a68
JK
3107Fri Jan 14 14:17:06 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
3108
3109 * utils.c (request_quit): Re-establish signal handler regardless
3110 of USG.
3111
3112 * config/mips/xm-irix4.h: Define HAVE_TERMIOS.
3113
98506620
JK
3114Fri Jan 14 21:55:39 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
3115
3116 * i960-tdep.c: Include target.h.
3117
658821b9
SS
3118Fri Jan 14 17:12:28 1994 Stan Shebs (shebs@andros.cygnus.com)
3119
3120 * lynx-nat.c (sys/wait.h): Don't use absolute pathname.
3121
3122Fri Jan 14 11:06:10 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
3123
3124 * lynx-nat.c (child_wait): Fix thinkos in struct target_waitstatus
3125 changes (status -> ourstatus; declare status, etc.).
3126 * config/nm-lynx.h: Fix child_wait prototype and include target.h.
3127
4e8bc56f
JK
3128Fri Jan 14 14:17:06 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
3129
3130 * Makefile.in (ALLPARAM): Add config/nm-lynx.h.
3131
aeb145f8
ILT
3132Fri Jan 14 11:49:44 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3133
3134 * remote-mips.c (mips_request, mips_wait): Correct prototypes.
3135
d253eb7a
JK
3136Fri Jan 14 11:37:17 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
3137
3138 * config/i386/xm-linux.h: Define HAVE_TERMIOS.
3139
52b3045e
PS
3140Fri Jan 14 01:04:36 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3141
3142 * config/alpha/tm-alpha.h (CALL_DUMMY): Improve comment.
3143
ae682b80
JK
3144Thu Jan 13 10:32:38 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
3145
d0acb092
JK
3146 * remote-vx.c (vx_wait): Only call i960_fault_to_signal if I80960
3147 is defined. Otherwise just report TARGET_SIGNAL_UNKNOWN.
3148
3149 * mips-tdep.c (mips_push_arguments): Byteswap struct_addr before
3150 writing it.
3151
63dcc380
JK
3152 Add search to target vector (#if 0'd until after 4.12):
3153 * target.h (to_search, target_search): Add.
3154 * gdbcore.h, core.c (generic_search): Add.
3155 * remote.c (remote_search): Add.
3156 * a29k-tdep.c (init_frame_info): Use target_search to find traceback
3157 tag.
3158
d6596eee
JK
3159 * printcmd.c (print_address_symbolic): If set print fast-symbolic-addr
3160 is on, call find_pc_function rather than relying just on the minimal
3161 symbols (probably only matters for symbol readers which don't put
3162 statics in the minimal symbols, but changing this strikes me as
3163 not conservative enough).
3164 Initialize name_location in all cases.
3165 If no symbol and no msymbol, don't print anything symbolic.
3166
ae682b80
JK
3167 * a29k-tdep.c (push_dummy_frame): Add comment about saving lr0.
3168
314e6bf3
JG
3169Wed Jan 12 20:53:16 1994 John Gilmore (gnu@cygnus.com)
3170
3171 * printcmd.c (print_address_symbolic): Make it search the
3172 symtabs for variables as well as functions. Add `set print
3173 fast-symbolic-addr' and default it to fast (the old way).
3174 Print line numbers for data items as well as functions.
3175
3176 * symtab.c (find_addr_symbol): Return the symtab and the symbol
3177 address, if a symbol is found (take two more args pointing to
3178 where to store these results).
3179
3180 * symtab.h (find_addr_symbol): Add prototype.
3181
470dfa0c
JK
3182Wed Jan 12 19:32:11 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
3183
3184 * objfiles.h: Fix comments to reflect the fact that the phrase
3185 "top of stack" always refers to where the pushing and popping takes
3186 place, regardless of whether it is at the highest or lowest address.
3187
a8c49897
PS
3188Wed Jan 12 13:23:37 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3189
3190 * mdebugread.c (parse_symbol): Do not set TYPE_TAG_NAME for
3191 compiler generated tag names.
3192 * mdebugread.c (parse_type): Handle cross references to qualified
3193 aggregate types.
3194 * valops.c (value_struct_elt): Improve error message if the
3195 address of a method is requested from an object instance.
3196 * valops.c (search_struct_method): Make name_matched non-static
3197 to get it initialized correctly.
3198 * config/i386/nm-i386sco.h (CANNOT_STORE_REGISTER): Define to
3199 exclude segment register which are not writable on newer SCO versions.
3200
4ad942bf
JK
3201Wed Jan 12 14:44:45 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
3202
3203 * go32-xdep.c: Remove unused function uerror.
3204 (sigsetmask): Declare return type. Declare argument (to match the
3205 way it is called). Explicitly return 0.
3206
21578747
JG
3207Wed Jan 12 01:44:25 1994 John Gilmore (gnu@cygnus.com)
3208
3209 * symtab.h (struct symbol, general_symbol_info, minimal_symbol,
3210 partial_symbol): Shrink the storage sizes of symbols, by making
3211 enums into 1-byte bitfields when compiled __GNUC__, moving all the
3212 enums and small ints to the end of each struct to improve
3213 alignment, and switching the section number from int to unsigned
3214 short.
3215
e0ea0fbd
JG
3216Wed Jan 12 00:16:26 1994 John Gilmore (gnu@cygnus.com)
3217
3218 * symtab.c (find_addr_symbol): New routine that will find the nearest
3219 symbol associated with an address. It does so by exhaustive
3220 search of the symtabs, so it's slow but complete.
3221
011d4ed9
JG
3222Tue Jan 11 23:57:30 1994 John Gilmore (gnu@cygnus.com)
3223
3224 * coffread.c (read_coff_symtab): Set PC bounds of _globals_ symtab
3225 to [0,0] rather than [0, end of first source file]. This avoids
3226 problems with other parts of GDB looking for linetables in the
3227 _globals_ symtab. Eliminate variables num_object_files and
3228 first_object_file_end.
3229
eb5b74ca
JG
3230Tue Jan 11 00:53:46 1994 John Gilmore (gnu@cygnus.com)
3231
3232 * a29k-tdep.c (init_frame_info): Cast null arg to examine_tag.
3233 (pop_frame): Restore PC2 and LR0 from dummy frames.
3234 (push_dummy_frame): Save PC2 and LR0 into dummy frames.
3235 (setup_arbitrary_frame): Handle 3 args and set up real frames.
3236 * config/a29k/tm-a29k.h (FRAME_NUM_ARGS): Update comments.
3237 (DUMMY_FRAME_RSIZE): Add 2 longwords for PC2 and LR0.
3238 (SETUP_ARBITRARY_FRAME): Define.
3239
4d69cf57
JK
3240Tue Jan 11 06:59:10 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
3241
3242 * infrun.c, config/mips/tm-irix5.h: Remove #if 0'd AT_FUNCTION_START.
3243
6a69975f
ILT
3244Tue Jan 11 14:27:03 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3245
3246 * remote-udi.c (udi_resume): Correct prototype.
3247
c598654a
JL
3248Tue Jan 11 11:10:30 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
3249
3250 * config/pa/tm-hppa.h (FRAME_FIND_SAVED_REGS): Call
3251 hppa_frame_find_saved_regs.
3252 * hppa-tdep.c (dig_fp_from_stack): Delete function.
3253 (prologue_inst_adjust_sp): New function.
3254 (is_branch, inst_saves_gr, inst_saves_fr): New functions.
3255 (skip_prologue): Completely rewrite to use unwind information.
3256 (hppa_frame_find_saved_regs): Likewise.
3257
6397809b
JK
3258Tue Jan 11 06:59:10 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
3259
f3fe8934
JK
3260 * remote-mips.c (mips_wait): Use new function mips_signal_from_protocol
3261 to convert a signal number with appropriate bounds checking.
3262
6397809b
JK
3263 * remote-mips.c (mips_wait): Fix typos (0x177 -> 0177, 0x377 -> 0377).
3264
c369b6a3
JG
3265Tue Jan 11 00:53:46 1994 John Gilmore (gnu@cygnus.com)
3266
a31f4b90
JG
3267 * stack.c (frame_info): If FRAME_FIND_SAVED_REGS isn't defined,
3268 print a newline to end the display anyway.
3269
c6d8db40
JG
3270 * sparc-tdep.c (sparc_pop_frame): Pop the fsr and csr (float and
3271 coprocessor status regs) when popping a frame. This fixes
3272 float exceptions that occur after calling inferior functions.
3273
c369b6a3
JG
3274 * sparc-nat.c (fetch_inferior_registers, store_inferior_registers):
3275 Read and write the fsr (float status register) to/from the child
c6d8db40
JG
3276 process along with the float regs. Remove Peter Schauer's change
3277 of May 24 '93, which has higher overhead and doesn't solve the
3278 real problem (which was that FSR wasn't being set).
c369b6a3 3279
7b2bcbf5
JG
3280Mon Jan 10 23:16:42 1994 John Gilmore (gnu@cygnus.com)
3281
3282 * a29k-tdep.c (examine_prologue): Don't worry if the ASGEQ
3283 stack overflow check isn't right after the register stack
3284 adjustment instruction. Metaware R2.3u compiler moves other
3285 things in front of it. This fix isn't perfect but is what's
3286 running.
3287
6aaa61de
JK
3288Mon Jan 10 20:08:23 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
3289
85b8aa88
JK
3290 * c-valprint.c (c_val_print): Treat TYPE_CODE_RANGE like TYPE_CODE_INT.
3291
6aaa61de
JK
3292 * config/alpha/alpha-netware.mt: Rename to alpha-nw.mt for 14
3293 character filenames.
3294 * configure.in: Change accordingly.
3295
ef118278
TL
3296Mon Jan 10 15:48:36 1994 Tom Lord (lord@rtl.cygnus.com)
3297
3298 * m68k-stub.c, sparc-stub.c: removed spurious introduction of
3299 _filtered io routines from these two files.
3300
9d51b3c5
PS
3301Fri Jan 7 12:42:45 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3302
3303 * config/i386/tm-i386v.h, config/m68k/tm-m68k.h, config/mips/tm-mips.h,
3304 config/vax/tm-vax.h (CALL_DUMMY_BREAKPOINT_OFFSET): Define.
3305 * mdebugread.c (parse_symbol): Handle enum sh.type produced by
3306 DEC c89.
3307 * mdebugread.c (add_line): Handle zero linenos produced by DEC c89.
3308
11ebf939
JK
3309Fri Jan 7 12:55:25 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
3310
17d059d4
JK
3311 * utils.c (print_sys_errmsg): Call gdb_flush (gdb_stdout) before
3312 printing to gdb_stderr.
3313
3314 * remote-udi.c (udi_kill): Don't close the connection, just set
3315 inferior_pid to zero.
3316 (udi_mourn): Call remove_breakpoints.
3317
3318 * remote-udi.c: Remove obsolete need_artificial_traps comment.
3319
11ebf939
JK
3320 * i386b-nat.c (sregmap): If sEAX, etc., not defined, use tEAX, etc.
3321
fcbc95a7
JK
3322Thu Jan 6 07:17:53 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
3323
d8a66e60
JK
3324 * symtab.c (lookup_symbol): Don't try adding .c to the name.
3325
e3a7e9d5
JK
3326 * remote-bug.c: At the start of each section, reset srec_frame
3327 back to 160.
3328
fcbc95a7
JK
3329 * target.h: Add TARGET_WAITKIND_LOADED and TARGET_WAITKIND_SPURIOUS.
3330 * target.c (store_waitstatus): Add CHILD_SPECIAL_WAITSTATUS hook.
3331 * infrun.c (wait_for_inferior): Replace SIGTRAP_STOP_AFTER_LOAD with
3332 code which looks for those two waitkinds. Use switch statement.
3333 * config/rs6000/tm-rs6000.h: Replace SIGTRAP_STOP_AFTER_LOAD with
3334 CHILD_SPECIAL_WAITSTATUS.
3335
3336 * procfs.c (procfs_wait): Fix argument name to match 4 Jan changes.
3337 * Move target_signal_from_host, target_signal_to_host, and
3338 store_waitstatus from inftarg.c to target.c. procfs needs them.
3339 * target.c: Include "wait.h" and <signal.h>.
3340 * target.h, infrun.c (proceed), proceed callers: Pass new code
3341 TARGET_SIGNAL_DEFAULT instead of -1. This avoids problems with
3342 enums being treated as unsigned and is cleaner.
3343 * infrun.c (signals_info): Don't print TARGET_SIGNAL_DEFAULT or
3344 TARGET_SIGNAL_0.
3345 * infcmd.c (signal_command), infrun.c (signals_info):
3346 Don't allow user to specify numeric equivalent of
3347 TARGET_SIGNAL_DEFAULT.
3348
7f85a716
SG
3349Tue Jan 4 15:34:36 1994 Stu Grossman (grossman@cygnus.com)
3350
3351 * config/alpha/alpha-netware.mt: New target support for Alpha
3352 running Netware.
3353 * configure.in: Add alpha-*-netware* target.
3354
5efb3899
SS
3355Tue Jan 4 14:51:35 1994 Stan Shebs (shebs@andros.cygnus.com)
3356
3357 * remote-mips.c (mips_wait): Fix ref to TARGET_WAITKIND_STOPPED.
3358
67ac9759
JK
3359Tue Jan 4 09:47:14 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
3360
3361 * target.h: Add enum target_waitkind, enum target_signal, and
3362 struct target_waitstatus. Change status argument to target_wait to
3363 be struct target_waitstatus * instead of int *.
3364 * target.h, infrun.c, all targets: Change type of signal arguments
3365 to resume(), proceed(), and target_resume() from int to enum
3366 target_signal.
3367 * All targets (*_wait, *_resume): Change accordingly.
3368 * infcmd.c (program_info, signal_command), throughout infrun.c,
3369 * fork-child.c, solib.c, hppa-tdep.c, osfsolib.c: Use this stuff.
3370 * convex-xdep.c, convex-tdep.c: Add FIXME's (getting the Convex
3371 signal code stuff right with the new signals would be non-trivial).
3372 * inferior.h (stop_signal): Make it enum target_signal not int.
3373 * target.c, target.h (target_signal_to_string, target_signal_to_name,
3374 target_signal_from_name): New functions.
3375 * inftarg.c, target.h (target_signal_to_host, target_signal_from_host,
3376 store_waitstatus): New functions.
3377 * procfs.c (procfs_notice_signals): Use them.
3378 * i960-tdep.c (i960_fault_to_signal): New function, to replace
3379 print_fault.
3380 * config/i960/tm-i960.h: Don't define PRINT_RANDOM_SIGNAL.
3381
3382 * objfiles.c (build_objfile_section_table): Don't abort() if
3383 objfile->sections is already set.
3384
3385 * objfiles.c (add_to_objfile_sections): Check SEC_ALLOC not SEC_LOAD
3386 to match recent change to exec.c.
3387
3388 * Version 4.11.3.
3389
3390 * main.c (print_gdb_version): Change year to 1994.
3391
3392 * ChangeLog, ChangeLog-93: Split ChangeLog at 1994.
3393 * Makefile.in (NONSRC): Add ChangeLog-93.
3394
b35885f2
JK
3395Mon Jan 3 11:57:29 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
3396
4b404661
JK
3397 * stabsread.c (read_type): Allow defining several type numbers
3398 at once (e.g. "(1,2)=(3,4)="...).
3399
eaba7fae
JK
3400 * stabsread.c (read_enum_type): Use TARGET_INT_BIT not sizeof (int).
3401
b35885f2
JK
3402 * breakpoint.c (frame_in_dummy): Check PC as well as frame.
3403
ae5c71d6
PS
3404Mon Jan 3 02:47:03 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3405
3406 * mdebugread.c (psymtab_to_symtab_1): Only pass N_STAB symbols
3407 to process_one_symbol.
3408 * symtab.c (find_pc_psymbol): Search global_psymbols as well to
3409 avoid caching a bad endaddr in find_pc_partial_function.
3410
d568b76a
JK
3411Sun Jan 2 21:41:17 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
3412
3413 * config/m68k/tm-sun3.h: Don't define BELIEVE_PCC_PROMOTION.
3414
9ddb33a8
PS
3415Sat Jan 1 04:35:23 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3416
3417 * infrun.c (wait_for_inferior): Do not step or step resume past
3418 the end of a one-line function we just stepped into.
3419
67ac9759 3420For older changes see ChangeLog-93
bd5635a1
RP
3421\f
3422Local Variables:
3423mode: indented-text
3424left-margin: 8
3425fill-column: 74
3426version-control: never
3427End:
This page took 0.645385 seconds and 4 git commands to generate.