* hppa-tdep.c (saved_pc_after_call): If the saved PC is in a
[binutils-gdb.git] / gdb / ChangeLog
1 Mon 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
15 Fri 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
21 Fri 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
26 Fri 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
33 Fri 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
38 Thu 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
70 Thu 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
76 Thu Jul 28 10:43:36 1994 Fred Fish (fnf@cygnus.com)
77
78 * Makefile.in (annotate.o): Add dependencies.
79
80 Wed Jul 27 14:34:42 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
81
82 * sparclite/aload.c: Added new -q (quiet) option.
83 return 0 exit status if file was successfully downloaded.
84
85 * nlm/gdbserve.c: merge in command line argument parsing changes
86 and bug fixes made to i386-nlmstub.c.
87
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
93 Wed 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
102 Tue Jul 26 14:15:53 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
103
104 * target.c (push_target): Cast result from xmalloc.
105
106 Tue 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
111 Mon 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
116 Mon Jul 25 15:38:23 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
117
118 * Makefile.in (clean): Remove libgdb-files.
119
120 Mon Jul 25 11:50:57 1994 Stan Shebs (shebs@andros.cygnus.com)
121
122 * coredep.c: Include inferior.h.
123
124 Mon Jul 25 11:36:02 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
125
126 * i386-nlmstub.c: Add support for NODE, PORT and BAUD command
127 line arguments.
128
129 Sat Jul 23 14:36:09 1994 Stan Shebs (shebs@andros.cygnus.com)
130
131 * symfile.c (deduce_language_from_filename): Recognize .S as asm,
132 .cp as C++, alphabetize better.
133
134 * breakpoint.c (ignore, condition): Move usage note into body of
135 help text, so first line can be one-line summary.
136
137 Sat 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
141 Fri 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
159 Tue Jul 19 13:25:06 1994 Stan Shebs (shebs@andros.cygnus.com)
160
161 * main.c: Include <ctype.h>.
162
163 Mon 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
168 Mon 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
172 Sun Jul 17 15:38:36 1994 Fred Fish (fnf@cygnus.com)
173
174 * Makefile.in (VERSION): Bump to 4.12.4.
175
176 Sun 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
194 Sat 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
199 Sat Jul 16 14:43:17 1994 Stan Shebs (shebs@andros.cygnus.com)
200
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
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
226 Fri 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
236 Fri 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
251 Fri 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
256 Thu 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
264 Thu 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
269 Wed 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
281 Tue 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
291 Mon 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
303 Sat 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
312 Wed 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
318 Wed 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
332 Mon 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
337 Mon 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
342 Sat 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
353 Thu 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
359 Wed Jun 29 18:53:36 1994 Stan Shebs (shebs@andros.cygnus.com)
360
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
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
376 Wed 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
384 Tue 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
389 Wed 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
397 Tue 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
408 Mon 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
421 Mon 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
429 Sun 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
439 Fri Jun 24 08:15:42 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
440
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).
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
452 Wed Jun 22 17:48:21 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
453
454 * gdba.el: Put program input and output in a separate buffer.
455
456 Wed 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
462 Wed 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
467 Tue 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
478 Mon 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
484 Mon 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
496 Fri Jun 17 20:58:58 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
497
498 * breakpoint.c: Include annotate.h. Call annotate_field rather
499 than printing annotation directly.
500
501 * main.c: Include string.h.
502
503 Thu Jun 16 14:41:37 1994 Stan Shebs (shebs@andros.cygnus.com)
504
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
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.
518 * Makefile.in (stop-gdb): New target.
519 * stop-gdb.c: New file, utility to get attention of waiting GDBs
520 in Mach 3.
521
522 Wed 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
528 Tue 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
534 Tue 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
538 Mon Jun 13 17:28:50 1994 Stan Shebs (shebs@andros.cygnus.com)
539
540 * config/i386/i386sco.mh, i386sco4.mh (XDEPFILES): Remove
541 i387-tdep.o.
542
543 Sun 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
570 Fri Jun 10 14:52:56 1994 Kung Hsu (kung@mexican.cygnus.com)
571
572 * breakpoint.c: fix a syntax error native cc does not like.
573
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
582 * sparclite/Makefile.in: fix INCLUDE_CFLAGS to have {srcdir}/../config.
583
584 Fri 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
593 Thu 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
614 Thu 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
622 Wed 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
636 Sat Jun 4 18:17:03 1994 Per Bothner (bothner@kalessin.cygnus.com)
637
638 Fix value_print, which used to be ostensibly language-independent,
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
642 la_value_print.
643 (LA_VALUE_PRINT): New macro.
644 * language.c (unk_lang_value_print): New stub/dummy function.
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
652 c_value_print in the la_value_print field.
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
665 Fri 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
676 Thu Jun 2 23:19:10 1994 Jeff Law (law@snake.cs.utah.edu)
677
678 * hppa-tdep.c (skip_trampoline_code): Fix typo.
679
680 Thu 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
687 Thu 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
734 Tue 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
744 Wed 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
759 Wed 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
764 Thu 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
772 Wed May 18 13:01:55 1994 Doug Evans (dje@canuck.cygnus.com)
773
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
791 * printcmd.c (decode_format): Allow TARGET_PTR_BIT to be non-constant.
792
793 Tue 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
799 Tue May 17 11:08:22 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
800
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
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
817 Sat 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
825 Sat 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
842 Fri May 13 08:10:21 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
843
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
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
900 Thu May 12 10:46:27 1994 Jeff Law (law@snake.cs.utah.edu)
901
902 * hppa-tdep.c (read_unwind_info): Make sure elf_unwind_size and
903 elf_unwind_entries are always initialized.
904
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
909 Wed 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
915 Tue 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
919 Tue 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
924 Fri 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
931 Fri May 6 13:24:04 1994 Steve Chamberlain (sac@cygnus.com)
932
933 * config/i386/go32.mh: Define CC.
934
935 Fri 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
947 Thu 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
952 Wed 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
962 Wed 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
967 Wed 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
983 Wed May 4 06:56:03 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
984
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
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
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
1002 Tue 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
1008 Fri 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
1013 Fri 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
1028 Thu Apr 28 08:40:56 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1029
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
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
1047 * utils.c (query): Change syntax of query annotations to be
1048 consistent with other input annotations.
1049 (prompt_for_continue): Likewise for prompt-for-continue annotation.
1050
1051 Thu 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
1059 Wed 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
1065 Wed 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
1070 Wed 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
1076 Tue 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
1083 Tue Apr 26 10:23:04 1994 Stu Grossman (grossman at cygnus.com)
1084
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
1090 * i386-nlmstub.c: An interim version till we get PIN for the x86.
1091
1092 Tue 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.
1108 * (get_offsets): Temporary kludge to force data & bss sections to
1109 have the same relocation.
1110 * stabsread.c (define_symbol, scan_file_globals): Record section
1111 info in sym.
1112
1113 Sat 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
1118 Fri Apr 22 16:43:54 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1119
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
1126 * stabsread.c (read_type): Call read_type, not nonexistent
1127 os9k_read_type.
1128
1129 Fri 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
1141 Fri 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
1146 Thu Apr 21 07:45:49 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1147
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
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.
1166 * printcmd.c (print_command_1): Add "value-history-value" annotation.
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
1170 Thu 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
1177 Wed 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
1186 Wed 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
1191 Mon 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
1206 Wed Apr 20 08:37:16 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1207
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
1212 * dstread.c, coffread.c: Don't define pending_blocks; buildsym.c
1213 takes care of it.
1214 * parse.c: Don't define block_found; it is defined in symtab.c.
1215 * parser-defs.h: Add comment regarding block_found.
1216
1217 Tue 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
1222 Mon 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
1228 Mon 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.
1233 * nm-hppah.h (KERNEL_U_ADDR): Define.
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
1248 Sat 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
1260 Fri 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
1270 Fri 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
1282 Thu 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.
1286 (procfs_set_watchpoint, procfs_stopped_by_watchpoint): Likewise.
1287
1288 Wed 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
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
1355 Mon 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
1362 Mon 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
1370 Mon 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
1376 Fri Apr 8 17:14:37 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
1377
1378 * config/m68k/es1800.mt: Change comments.
1379
1380 Fri 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
1384 Fri 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
1389 Fri Apr 8 14:53:35 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
1390
1391 * values.c (unpack_long): Remove obsolete comment about using a
1392 switch statement.
1393
1394 * symfile.c (symbol_file_command): Add comments about command syntax.
1395
1396 Thu 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
1411 Thu 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
1448 Thu 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
1453 Tue Apr 5 15:29:25 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
1454
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
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
1466 * xm-hppab.h: Never define USG.
1467 * xm-hppah.h: Always define USG.
1468
1469 Tue 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
1474 Fri 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
1478 Fri 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
1491 Wed 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
1499 Wed Mar 30 11:43:29 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1500
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
1505 * remote.c (getpkt): Remove unused "out" label.
1506
1507 Wed 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
1512 Wed 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
1516 Wed Mar 30 00:31:49 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1517
1518 * blockframe.c (find_pc_partial_function): mst_file_text
1519 symbols do not live in the shared library transfer table.
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
1558 Tue 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
1563 Tue Mar 29 21:14:04 1994 Per Bothner (bothner@kalessin.cygnus.com)
1564
1565 * ch-exp.y: Implement SIZE(mode_name) and SIZE(expression).
1566
1567 * ch-lang.c (chill_is_varying_struct): Magic string is
1568 was "<var_length>" is now "__var_length" (more portable).
1569
1570 Tue 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
1578 Tue Mar 29 16:06:01 1994 Kung Hsu (kung@mexican.cygnus.com)
1579
1580 * os9kread.c (record_minimal_symbol): add section_offset to
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
1590 Tue 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
1597 Sat Mar 26 07:05:18 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1598
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
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
1608 Fri Mar 25 12:40:41 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1609
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
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
1629 Fri Mar 25 10:14:03 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
1630
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
1637 * hppa-tdep.c (skip_prologue): Return "pc" not zero
1638 if no unwind descriptor is found.
1639
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
1652 * paread.c (read_unwind_info): Fix off-by-one error.
1653
1654 Fri 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
1658 Thu Mar 24 07:12:09 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1659
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
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
1669 * stabsread.c (patch_block_stabs): Add comment about what happens
1670 if the definition is in another compilation unit from the stab.
1671
1672 * dbxread.c (end_psymtab): Add comment about empty psymtabs.
1673
1674 Wed 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.
1683 Reverts change of 14 May 1989.
1684
1685 Wed 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
1691 Wed 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
1697 Tue Mar 22 20:12:53 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
1698
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
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
1717 Tue Mar 22 15:28:33 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1718
1719 * values.c (set_internalvar): Don't set var->value until we are
1720 sure there won't be an error().
1721
1722 * remote.c (get_offsets): Reinstate comment which was in
1723 remote_wait about use of SECT_OFF_TEXT and so on.
1724
1725 Mon 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
1742 Mon 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
1747 Mon 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
1779 Sun 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.
1783 * sp64-tdep.c (target_ptr_bit, set_target_ptr_bit): Deleted,
1784 can no longer set this at run time.
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.
1790
1791 Sat Mar 19 08:51:12 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1792
1793 * config/m68k/{cisco.mt,tm-cisco.h}: New files.
1794 * Makefile.in (ALLPARAM, ALLCONFIG): Add them.
1795 * configure.in: Recognize m68*-cisco*-*.
1796
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
1818 Fri 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
1822 Fri Mar 18 10:25:55 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1823
1824 * dstread.c (record_minimal_symbol): New arg objfile. Pass it to
1825 prim_record_minimal_symbol.
1826 Callers: Pass it.
1827
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
1835 Wed 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
1839 Wed Mar 16 07:18:43 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1840
1841 * printcmd.c: Remove "set print fast-symbolic-addr off" command.
1842 The bug which it worked around was fixed on 25 Feb 94 in coffread.c,
1843 so I'm nuking the command.
1844 * symtab.c (find_addr_symbol): Comment out, no longer used.
1845
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
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
1855 Tue 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
1876 Tue Mar 15 11:40:43 1994 Kung Hsu (kung@mexican.cygnus.com)
1877
1878 * c-exp.y(yylex): fix potential memory overflow.
1879
1880 Tue 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
1890 Tue Mar 15 10:05:27 1994 Jim Kingdon (kingdon@cygnus.com)
1891
1892 * rs6000-tdep.c: Change value to value_ptr.
1893
1894 Sun Mar 13 09:45:51 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1895
1896 * i386m3-nat.c: Include floatformat.h.
1897 (get_i387_state): Use memset not bzero.
1898
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
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
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
1914 Fri Mar 11 08:08:50 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1915
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
1919 * breakpoint.c (_initialize_breakpoint): Update docstring for
1920 tbreak to match what the code actually does. Don't mention tbreak
1921 in docstrings for "enable once" or "enable breakpoints once".
1922
1923 Thu 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
1937 Wed 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
1955 Wed 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
1961 Wed 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.
1975 * symfile.c (symbol_file_command): check if failed to link, also make
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
1980 Wed 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
1984 Tue 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
1988 Tue Mar 8 06:56:13 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1989
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
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
2004 * irix5-nat.c (find_solib): Cast o_path to CORE_ADDR when using it
2005 as one.
2006
2007 Mon Mar 7 13:00:50 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2008
2009 * alpha-tdep.c: Change value to value_ptr.
2010
2011 Sun 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
2020 Fri 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
2037 Thu Mar 3 12:41:16 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
2038
2039 * ch-exp.y (match_simple_name_string): Accept '_' as well as an
2040 alphabetic character as the start of a name.
2041
2042 * sparclite/Makefile.in (all install): Build and install aload.
2043
2044 * configure.in: Accept i[34]86-*-*sysv32 because that is what
2045 config.guess and config.sub produce.
2046
2047 * mips-tdep.c: Change value to value_ptr.
2048
2049 Wed 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
2075 Wed 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
2080 Wed 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
2086 Tue 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
2126 Tue 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
2149 Tue 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
2154 Tue 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
2164 Mon 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
2169 Mon Feb 28 12:40:46 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
2170
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
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
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
2190 Sun 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
2202 Sun 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
2211 Fri Feb 25 09:41:11 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
2212
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
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
2223 Thu Feb 24 08:30:33 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
2224
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
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
2253 * defs.h: Revert Kung change regarding FORCE_LONG_LONG.
2254
2255 Thu 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
2261 Thu 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.
2265 * dwarfread.c: Remove second inclusion of <sys/types.h>, which
2266 causes problems if <sys/types.h> has no multiple inclusion protection.
2267
2268 Wed 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
2274 Wed Feb 23 16:21:25 1994 Stu Grossman (grossman at cygnus.com)
2275
2276 * sparc-stub.c (trap_low): Make trap handler work for arbitrary
2277 numbers of register windows.
2278
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
2285 Wed 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
2290 Sat 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
2309 Fri 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
2317 Fri 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
2322 Fri 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
2327 Fri 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
2332 Fri Feb 18 08:26:29 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2333
2334 * Version 4.12.2.
2335
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
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
2346 * README: Change GhostScript to Ghostscript.
2347
2348 Fri Feb 18 07:30:55 1994 Jim Kingdon (kingdon@cygnus.com)
2349
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
2355 * config/mips/littlemips64.mt: Rename to mipsel64.mt for 14
2356 character file names.
2357 * Makefile.in: Add Kung's new mips64 files.
2358
2359 Thu 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
2367 Thu 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
2373 Fri 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
2379 Fri 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
2396 Tue 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
2409 Mon Feb 7 09:21:17 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2410
2411 * symtab.h: Always define BYTE_BITFIELD to nothing.
2412
2413 Mon 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
2419 Mon 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
2424 Sun Feb 6 06:55:15 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2425
2426 * target.c (target_preopen): If target_kill doesn't remove the
2427 target from the stack, use pop_target to do it.
2428
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
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.
2439 (udi_create_inferior): If udi_session_id is negative, open a new
2440 TIP rather than giving an error.
2441
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
2453 Sun 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
2458 Sun Feb 6 06:55:15 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2459
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
2464 * defs.h (alloca): Declare as void *, not char *, on hpux.
2465 Don't prototype it, just declare the return type.
2466
2467 Sun 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
2472 Sat Feb 5 08:03:41 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2473
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
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
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
2494 * remote-e7000.c: Replace "snoop" command (e7000_noecho) with
2495 remote_debug.
2496
2497 * config/rs6000/tm-rs6000.h (STORE_STRUCT_RETURN): Don't cast
2498 to unsigned int.
2499
2500 Sat 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
2508 Fri 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.
2514 * remote-e7000.c (_initialize_remote_e7000): Change name of snoop
2515 command.
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.
2523
2524 Fri 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
2529 Fri 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
2535 Thu 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
2542 Thu 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
2547 Thu Feb 3 12:38:58 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2548
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
2554 * stabsread.c (read_sun_builtin_type): Skip the semicolon at the end
2555 of the type if present.
2556
2557 Wed Feb 2 11:16:45 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2558
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.
2571 * language.h, c-lang.c, ch-lang.c, m2-lang.c, language.c: Remove
2572 longest_int and longest_unsigned_int.
2573 * value.h (struct value): Just align to LONGEST, rather than worrying
2574 about CC_HAS_LONG_LONG.
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.
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
2585 * command.c (add_set_cmd, not_just_help_class_command): Change
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
2594 * command.c (shell_escape): Report errors correctly (with error
2595 message from strerror).
2596
2597 Wed 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
2603 Wed 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
2616 Tue 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
2621 Tue 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
2626 Tue 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
2631 Tue 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
2637 Mon Jan 31 16:10:41 1994 Stu Grossman (grossman at cygnus.com)
2638
2639 * sparc-stub.c: Remove unnecessary #include of memory.h.
2640
2641 Mon Jan 31 12:12:34 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2642
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
2649 * remote-mips.c: Use unfiltered, not filtered, output most places.
2650
2651 * blockframe.c (get_prev_frame_info): Detect and stop an infinite
2652 backtrace. Revise comments.
2653
2654 Mon 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
2665 Sat 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
2673 Sat Jan 29 07:44:59 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
2674
2675 * serial.h (SERIAL_SET_TTY_STATE): Comment return value.
2676
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
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
2688 * config/m68k/monitor.mt (TDEPFILE): Add remote-es.o.
2689 * config/m68k/es1800.mt: Add comment.
2690 * remote-es.c: Extensive changes to update to current conventions.
2691
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
2697 Fri Jan 28 08:45:02 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
2698
2699 * c-exp.y (yylex): Reenable nested type code.
2700
2701 Fri Jan 28 15:40:33 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2702
2703 * a29k-tdep.c (examine_tag): Add comment regarding argcount.
2704
2705 * remote-mips.c (mips_ops): Fix docstring.
2706
2707 * remote-bug.c (bug_ops): Remove spurious newline from docstring.
2708
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.
2712 (HAVE_68881): Don't undefine; HAVE_68881 is obsolete.
2713 (REGISTER_NAMES): Don't muck with it; what tm-m68k.h has is fine.
2714 Add FIXME regarding GET_LONGJMP_TARGET.
2715
2716 * remote-udi.c (udi_close, udi_detach, udi_kill): Add comments.
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.
2721
2722 Fri 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
2727 Fri 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
2732 Fri 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
2738 Thu Jan 27 15:12:23 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2739
2740 * i386-stub.c: Add ".text" right before "mem_fault:".
2741
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
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
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
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
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
2781 Wed Jan 26 10:57:21 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2782
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
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
2819 Tue 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
2825 Tue Jan 25 11:31:53 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2826
2827 * stabsread.c (STABS_CONTINUE, error_type), partial-stab.h:
2828 AIX can use ? instead of \ for continuation. Deal with it.
2829
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
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.
2840
2841 Mon 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
2846 Fri 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
2851 Sat 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
2859 Sat 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
2862 pointer value when fixing up the frame at the start of a function.
2863
2864 Sat 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
2869 Sat Jan 22 08:30:42 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
2870
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
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
2884 Sat 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
2891 Sat 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
2897 Fri 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
2906 Fri 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
2912 Fri Jan 21 14:28:30 1994 Fred Fish (fnf@cygnus.com)
2913
2914 * Makefile.in (realclean): Remove info files per make-stds.texi.
2915
2916 Fri 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
2922 Thu 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
2927 Fri 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
2949 Fri Jan 21 09:23:33 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2950
2951 * xcoffread.c (xcoff_symfile_read): Make second parameter a
2952 struct section_offsets *, not a (nonexistent) struct section_offset *.
2953
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
2958 * coffread.c, xcoffread.c: Include <coff/internal.h>
2959 before "symfile.h".
2960
2961 Thu Jan 20 17:30:55 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2962
2963 * coffread.c (coff_getfilename): Make it not static.
2964
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
2970 Wed 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
2983 Wed 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
2996 Tue 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
3000 Tue 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
3005 Mon Jan 17 22:00:15 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
3006
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
3011 * infrun.c (_initialize_infrun): Add TARGET_SIGNAL_POLL to list of
3012 signals for which stop and print are cleared by default.
3013
3014 Mon Jan 17 20:00:51 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
3015
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
3032 * hppab-nat.c (_initialize_kernel_u_addr): Delete unwanted functions.
3033
3034 Mon 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
3041 Mon Jan 17 13:35:01 1994 Fred Fish (fnf@cygnus.com)
3042
3043 * Makefile.in (ALLPARAM): Change irix5.h to nm-irix5.h.
3044
3045 Mon Jan 17 12:35:42 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3046
3047 * README: Update notes for alpha port.
3048
3049 Mon 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
3054 Sun Jan 16 12:46:01 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
3055
3056 * Makefile.in (init.c): Add comment explaining formatting conventions.
3057
3058 * c-exp.y (parse_number): Assign to temporary between the right
3059 shifts, to work around a bug in the SCO compiler.
3060
3061 * Makefile.in (ALLCONFIG, ALLPARAM, ALLDEPFILES, HFILES_NO_SRCDIR):
3062 Add various files which were added to GDB recently.
3063
3064 * xcoffread.c (process_xcoff_symbol): Only change 'V' to 'S' if not
3065 within_function.
3066
3067 * Makefile.in: Add mostlyclean target.
3068
3069 Sat Jan 15 10:20:13 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
3070
3071 * Version 4.11.4.
3072
3073 Sat 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
3079 Sat Jan 15 10:20:13 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
3080
3081 * minsyms.c (prim_record_minimal_symbol_and_info): Make tempstring
3082 const char *, not char *.
3083
3084 * symtab.h (struct symbol): Make section short, not unsigned short.
3085
3086 * symtab.c (lookup_symbol): Add comment about QUIT here.
3087
3088 * utils.c (fputs_unfiltered): Call fputs, not fputs_maybe_filtered.
3089
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
3098 * c-typeprint.c (c_type_print_varspec_suffix, case TYPE_CODE_FUNC):
3099 Print our "()" first, then recurse for the target type.
3100
3101 Fri Jan 14 21:55:39 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
3102
3103 * remote-udi.c (udi_create_inferior): Quote empty execfile argument.
3104
3105 * gdbserver/low-lynx.c: Include <sys/wait.h> not "/usr/include/wait.h".
3106
3107 Fri 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
3114 Fri Jan 14 21:55:39 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
3115
3116 * i960-tdep.c: Include target.h.
3117
3118 Fri 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
3122 Fri 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
3128 Fri Jan 14 14:17:06 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
3129
3130 * Makefile.in (ALLPARAM): Add config/nm-lynx.h.
3131
3132 Fri 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
3136 Fri Jan 14 11:37:17 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
3137
3138 * config/i386/xm-linux.h: Define HAVE_TERMIOS.
3139
3140 Fri 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
3144 Thu Jan 13 10:32:38 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
3145
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
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
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
3167 * a29k-tdep.c (push_dummy_frame): Add comment about saving lr0.
3168
3169 Wed 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
3182 Wed 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
3188 Wed 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
3201 Wed 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
3207 Wed 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
3216 Wed 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
3222 Tue 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
3230 Tue 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
3240 Tue 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
3244 Tue Jan 11 14:27:03 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3245
3246 * remote-udi.c (udi_resume): Correct prototype.
3247
3248 Tue 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
3258 Tue Jan 11 06:59:10 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
3259
3260 * remote-mips.c (mips_wait): Use new function mips_signal_from_protocol
3261 to convert a signal number with appropriate bounds checking.
3262
3263 * remote-mips.c (mips_wait): Fix typos (0x177 -> 0177, 0x377 -> 0377).
3264
3265 Tue Jan 11 00:53:46 1994 John Gilmore (gnu@cygnus.com)
3266
3267 * stack.c (frame_info): If FRAME_FIND_SAVED_REGS isn't defined,
3268 print a newline to end the display anyway.
3269
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
3274 * sparc-nat.c (fetch_inferior_registers, store_inferior_registers):
3275 Read and write the fsr (float status register) to/from the child
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).
3279
3280 Mon 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
3288 Mon Jan 10 20:08:23 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
3289
3290 * c-valprint.c (c_val_print): Treat TYPE_CODE_RANGE like TYPE_CODE_INT.
3291
3292 * config/alpha/alpha-netware.mt: Rename to alpha-nw.mt for 14
3293 character filenames.
3294 * configure.in: Change accordingly.
3295
3296 Mon 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
3301 Fri 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
3309 Fri Jan 7 12:55:25 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
3310
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
3320 * i386b-nat.c (sregmap): If sEAX, etc., not defined, use tEAX, etc.
3321
3322 Thu Jan 6 07:17:53 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
3323
3324 * symtab.c (lookup_symbol): Don't try adding .c to the name.
3325
3326 * remote-bug.c: At the start of each section, reset srec_frame
3327 back to 160.
3328
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
3349 Tue 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
3355 Tue 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
3359 Tue 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
3395 Mon Jan 3 11:57:29 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
3396
3397 * stabsread.c (read_type): Allow defining several type numbers
3398 at once (e.g. "(1,2)=(3,4)="...).
3399
3400 * stabsread.c (read_enum_type): Use TARGET_INT_BIT not sizeof (int).
3401
3402 * breakpoint.c (frame_in_dummy): Check PC as well as frame.
3403
3404 Mon 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
3411 Sun 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
3415 Sat 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
3420 For older changes see ChangeLog-93
3421 \f
3422 Local Variables:
3423 mode: indented-text
3424 left-margin: 8
3425 fill-column: 74
3426 version-control: never
3427 End: