Fri May 6 11:56:54 1994 Stan Shebs (shebs@andros.cygnus.com)
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 Fri May 6 11:56:54 1994 Stan Shebs (shebs@andros.cygnus.com)
2
3 * gdbserver/Makefile.in: Remove irrelevant definitions and
4 comments inherited from the gdb Makefile.
5 (BFD_DIR, BFD, BFD_SRC, BFD_CFLAGS): Add from gdb Makefile.
6 (VERSION): Update to 4.12.3.
7 (gdbserver): Remove any existing executable first.
8 (distclean, realclean): Remove nm.h.
9 * gdbserver/low-lynx.c: Add Sparc Lynx support.
10 * gdbserver/low-sparc.c, gdbserver/low-sun3.c (sys/wait.h):
11 Don't use absolute pathname.
12
13 Thu May 5 12:00:22 1994 Stan Shebs (shebs@andros.cygnus.com)
14
15 * rs6000-nat.c (vmap_ldinfo): Don't fail if fstat returns an
16 error.
17
18 Wed May 4 06:56:03 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
19
20 * infrun.c (proceed, normal_stop, wait_for_inferior), breakpoint.c
21 (print_it_normal): Add annotations for the inferior starting and
22 stopping, and for all the various messages related to how it
23 stopped.
24
25 * printcmd.c (do_one_display): Annotate.
26 * stack.c (print_frame_info): Annotate printing of stack frames.
27
28 Wed May 4 18:15:51 1994 Stu Grossman (grossman@cygnus.com)
29
30 * remote.c (get_offsets): Handle case where stub doesn't support
31 qOffsets message.
32
33 Wed May 4 15:30:39 1994 Per Bothner (bothner@kalessin.cygnus.com)
34
35 Add partial support for g++ code compiled with -fvtable-thunks.
36 * c-valprint.c (c_val_print): Add vtblprint support
37 when using thunks.
38 * cp-valprint.c (cp_is_vtbl_member): A vtable can be an array of
39 pointers (if using thunks) as well as array of structs (otherwise).
40 * cp-valprint.c (vtbl_ptr_name_old, vtbl_ptr_name): Move to global
41 level, and make the latter non-static (so define_symbol can use it).
42 * stabsread.c (define_symbol): If the type being defined is a
43 pointer type named "__vtbl_ptr_type", set the TYPE_NAME to that name.
44 * symtab.h (VTBL_PREFIX_P): Allow "_VT" as well as "_vt".
45 * values.c (value_virtual_fn_field): Handle thunks.
46 * values.c (value_headof): Minor efficiency hack.
47 * values.c (value_headof): Incomplete thunk support. FIXME.
48
49 Wed May 4 06:56:03 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
50
51 * valprint.c (print_longest): Clarify comment about use_local.
52 * printcmd.c, defs.h (print_address_numeric), callers in
53 symmisc.c, symfile.c, stack.c, source.c, remote.c, infcmd.c,
54 cp-valprint.c, core.c, ch-valprint.c, c-valprint.c, breakpoint.c,
55 exec.c: New argument use_local.
56 * source.c (identify_source_line): Use filtered output. Use
57 print_address_numeric.
58
59 * core.c (memory_error), symtab.c (cplusplus_hint, decode_line_1),
60 language.c (type_error, range_error): Use filtered output.
61 * utils.c (error_begin): Update comment to tell people to use
62 filtered output.
63
64 * Makefile.in (HFILES_WITH_SRCDIR): List bfd.h.
65 (HFILES_NO_SRCDIR): List gdbcore.h not gdbcore_h, so as not to get
66 bfd.h.
67
68 Tue May 3 07:41:33 1994 Jim Kingdon (kingdon@cygnus.com)
69
70 * procfs.c (procfs_wait): Reinstate code which deduces the signal
71 from the fault, #ifndef FAULTED_USE_SIGINFO.
72 * config/sparc/tm-sun4sol2.h: Define FAULTED_USE_SIGINFO.
73
74 Fri Apr 29 18:15:04 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
75
76 * breakpoint.c (breakpoint_1): Annotate each field of the headers.
77 Explicitly annotate each record.
78
79 Fri Apr 29 15:56:18 1994 Stan Shebs (shebs@andros.cygnus.com)
80
81 * xcoffexec.c: Reformat to standards and lint.
82 (language.h): Include.
83 (exec_close): Declare arg "quitting".
84 (file_command): Declare arg "from_tty".
85 (map_vmap): Cast xmalloc result to PTR.
86 * rs6000-nat.c: Reformat to standards and lint.
87 (exec_one_dummy_insn): Use char array for saved instruction.
88 (fixup_breakpoints): Declare.
89 (vmap_ldinfo): Be more informative in fatal error messages.
90 (xcoff_relocate_symtab): Define to return void.
91 * xcoffsolib.h: Reformat to standards, improve comments.
92 * config/rs6000/nm-rs6000.h (xcoff_relocate_symtab): Declare.
93
94 Thu Apr 28 08:40:56 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
95
96 * utils.c, defs.h (error_begin): New function.
97 (quit): Print annotation before printing the error message.
98 * main.c (return_to_top_level): Print annotation before doing the
99 longjmp.
100 * symtab.c (decode_line_1): Call error not warning and then
101 return_to_top_level. Call error_begin and printf_unfiltered
102 rather calling warning (before calls to return_to_top_level).
103 * core.c (memory_error): Use error_begin, printf_unfiltered,
104 print_address_numeric and return_to_top_level instead of error.
105 Cleans up a FIXME-32x64.
106 * language.c (type_error, range_error): Call error_begin
107 not just target_terminal_ours.
108
109 * dbxread.c (stabsect_build_psymtabs): Assign to sym_stab_info
110 directly, rather than via DBX_SYMFILE_INFO. A cast on the left
111 side of an assignment is non-portable.
112
113 * utils.c (query): Change syntax of query annotations to be
114 consistent with other input annotations.
115 (prompt_for_continue): Likewise for prompt-for-continue annotation.
116
117 Thu Apr 28 01:20:39 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
118
119 * mdebugread.c (psymtab_to_symtab_1): Do not call sort_blocks
120 for stabs symtabs.
121 * mips-tdep.c (mips_skip_prologue): Handle prologues for functions
122 that have a stack frame size of 32k or larger (from Paul Flinders).
123 Remove #if 0'd code.
124
125 Wed Apr 27 16:33:51 1994 Stan Shebs (shebs@andros.cygnus.com)
126
127 * lynx-nat.c (CANNOT_STORE_REGISTER): Add a fallback definition
128 for Lynx platforms that need it.
129 * config/nm-lynx.h (__LYNXOS): Define if not already defined.
130
131 Wed Apr 27 16:01:37 1994 Jim Kingdon (kingdon@cygnus.com)
132
133 * procfs.c (procfs_wait): Use the signal from the pr_info rather
134 than trying to deduce it from the fault.
135
136 Wed Apr 27 12:22:46 1994 Steve Chamberlain (sac@cygnus.com)
137
138 * printcmd.c (print_address_symbolic): Initialize name to empty
139 string to avoid core dump if lookup fails.
140 * remote-e7000.c (printf_e7000debug): Error if target not open.
141
142 Tue Apr 26 22:45:24 1994 Stu Grossman (grossman at cygnus.com)
143
144 * i386-nlmstub.c: Update to be more in line with PIN stub.
145 * nlm/gdbserve.c (putDebugChar): Install bug fix from i386-nlmstub.
146 * (hex2mem): Init ptr.
147 * General cleanups to use ConsolePrintf, standard prologues, etc...
148
149 Tue Apr 26 10:23:04 1994 Stu Grossman (grossman at cygnus.com)
150
151 * i386-nlmstub.c: More changes to be compatible with remote.c.
152
153 * dbxread.c: Move a bunch of strncmps out of process_one_symbol
154 into (the far less frequently called) dbx_symfile_read.
155
156 * i386-nlmstub.c: An interim version till we get PIN for the x86.
157
158 Tue Apr 26 09:50:45 1994 Stu Grossman (grossman at cygnus.com)
159
160 * dbxread.c (record_minimal_symbol): Record the section
161 associated with the symbol to make dynmaic relocation work.
162 * (dbx_symfile_read, process_one_symbol): Fixes to work around
163 Solaris brain-damage which don't apply to relocatable object
164 files.
165 * (stabsect_build_psymtabs): New routine to read stabs out of an
166 arbitrarily named section.
167 * nlmread.c (nlm_symtab_read): Read ALL syms from the NLM, not just
168 globals.
169 * (nlm_symfile_read): Call stabsect_build_psymtabs to read the
170 stabs out of the nlm.
171 * partial-stabs.h (cases 'f' & 'F'): Fixes to work around Solaris
172 brain-damage which don't apply to relocatable object files.
173 * remote.c (putpkt): Improve error reporting and error handling.
174 * (get_offsets): Temporary kludge to force data & bss sections to
175 have the same relocation.
176 * stabsread.c (define_symbol, scan_file_globals): Record section
177 info in sym.
178
179 Sat Apr 23 19:05:52 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
180
181 * breakpoint.c (breakpoint_1): Annotate each field of output. Add
182 FIXME-32x64 comment.
183
184 Fri Apr 22 16:43:54 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
185
186 * infrun.c (wait_for_inferior): Move call to flush_cached_frames
187 to after call to target_wait. This means that flush_cached_frames
188 can call target_terminal_ours if it wants to.
189 * infrun.c (wait_for_inferior) [HAVE_NONSTEPPABLE_WATCHPOINT]: Add
190 comment about why the code is dubious.
191
192 * stabsread.c (read_type): Call read_type, not nonexistent
193 os9k_read_type.
194
195 Fri Apr 22 14:25:36 1994 Kung Hsu (kung@mexican.cygnus.com)
196
197 * remote-os9k.c (rombug_fetch_registers): set trace mode
198 correctly.
199 * remote-os9k.c (rombug_read_inferior_memory): cache data in
200 buffer.
201 * os9kread,c (read_os9k_psymtab): process file symbol to truncate
202 extra info.
203 * os9kread.c (os9k_read_ofile_symtab): proper casting of args
204 passed to process_one_symbol.
205 * stabsread.c (read_type): process os9k functio prototype.
206
207 Fri Apr 22 11:27:39 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
208
209 * solib.c (symbol_add_stub): If so->textsection is NULL, don't
210 dump core.
211
212 Thu Apr 21 07:45:49 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
213
214 * utils.c (prompt_for_continue): Annotate prompt.
215 (query): Annotate query.
216 * printcmd.c (print_frame_args): Change syntax of argument
217 annotation to make name and value part of a single group of
218 annotations, not two separate groups.
219 * cp-valprint.c (cp_print_value_fields): Likewise for fields.
220 * valprint.c (val_print_array_elements): Change syntax of
221 annotation to be more concise.
222 * main.c, defs.h (command_line_input): New argument tells what
223 string to include in the annotations.
224 * symtab.c (decode_line_2), main.c (read_command_lines,
225 command_loop): Change callers.
226
227 * breakpoint.c (watch_command): Use (CORE_ADDR)0, not NULL, for
228 target null pointer.
229 * blockframe.c (find_frame_addr_in_frame_chain): Likewise.
230
231 * printcmd.c (output_command): Annotate things we print here too.
232 * printcmd.c (print_command_1): Add "value-history-value" annotation.
233 * Move declaration of print_value_flags from defs.h to value.h.
234 * main.c (command_line_input): Call wrap_here as well as gdb_flush.
235
236 Thu Apr 21 09:29:37 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
237
238 * dbxread.c (read_dbx_dynamic_symtab): Reinstall support for sun3,
239 BFD handles sun3 dynamic relocations now.
240 * elfread.c (elf_symtab_read, elf_symfile_read): Handle dynamic
241 symbol table.
242
243 Wed Apr 20 19:41:21 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
244
245 * printcmd.c (print_command_1): Annotate the top-level expressions
246 that we print.
247 (print_frame_args): Annotate each argument.
248 * printcmd.c, defs.h (print_value_flags): New function.
249 * cp-valprint.c (cp_print_value_fields): Annotate each field.
250 * valprint.c (val_print_array_elements): Annotate each array element.
251
252 Wed Apr 20 13:18:41 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
253
254 * findvar.c (read_var_value): Handle LOC_REPARM_ADDR case correctly,
255 the register contains a pointer to the type, not the type itself.
256
257 Mon Apr 11 10:44:35 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
258
259 * main.c (main): Accept --annotate=N option and make --fullname
260 the same as --annotate=1.
261 (command_line_input): Print annotatation before and after prompt.
262 * blockframe.c (flush_cached_frames): Print annotation.
263 * Rename frame_file_full_name to annotation_level and move it from
264 symtab.h to defs.h.
265 * source.c (identify_source_line): If annotation_level > 1,
266 change output format.
267 * breakpoint.c: Print annotation whenever a breakpoint changes.
268 * main.c: New variable server_command.
269 (command_line_input): Parse "server " and set server_command.
270 (dont_repeat): Check server_command.
271
272 Wed Apr 20 08:37:16 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
273
274 * xcoffread.c (xcoff_next_symbol_text): Don't return before
275 updating raw_symbol and symnum. Return a value in the case where
276 we complained.
277
278 * dstread.c, coffread.c: Don't define pending_blocks; buildsym.c
279 takes care of it.
280 * parse.c: Don't define block_found; it is defined in symtab.c.
281 * parser-defs.h: Add comment regarding block_found.
282
283 Tue Apr 19 09:46:05 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
284
285 * hppa-tdep.c (internalize_unwind_info): Delete unused indexp
286 argument.
287
288 Mon Apr 18 13:18:56 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
289
290 * dbxread.c (read_dbx_dynamic_symtab): Relocate BFD symbols by
291 section vma. Do not read dynamic relocs for sun3 executables to
292 avoid BFD assertion message.
293
294 Mon Apr 18 10:08:07 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
295
296 * nm-hppab.h (KERNEL_U_ADDR): Define.
297 (FIVE_ARG_PTRACE): Likewise.
298 (CANNOT_STORE_REGISTER): Likewise.
299 * nm-hppah.h (KERNEL_U_ADDR): Define.
300 (FIVE_ARG_PTRACE): Likewise.
301 (CANNOT_STORE_REGISTER): Likewise.
302 (NEED_TEXT_START_END): Likewise.
303
304 * tm-hppah.h (NEED_TEXT_START_END): Delete definition.
305 * xm-hppah.h (KERNEL_U_ADDR): Delete definition.
306 (FIVE_ARG_PTRACE): Likewise.
307 * xm-hppab.h (KERNEL_U_ADDR): Delete definition.
308 (FIVE_ARG_PTRACE): Likewise.
309
310 * hppa-tdep.c (read_unwind_info): Make static.
311 (restore_pc_queue): Indirect through the target vector to
312 reload the register state.
313
314 Sat Apr 16 22:20:51 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
315
316 * paread.c (compare_unwind_entries): Delete function. It's been
317 moved into hppa-tdep.c.
318 (read_unwind_info): Likewise.
319 (pa_symfile_read): No longer call read_unwind_info. The unwind
320 tables will be read in as they are needed.
321
322 * hppa-tdep.c (compare_unwind_entries): New function.
323 (read_unwind_info, internalize_unwinds): Likewise.
324 (find_unwind_entry): Read in unwind information on demand.
325
326 Fri Apr 15 11:53:46 1994 Stan Shebs (shebs@andros.cygnus.com)
327
328 * source.c (DIRNAME_SEPARATOR): New macro, replaces all references
329 to : in search path processing.
330 * defs.h (qsort): Rename argument in prototype.
331 * symtab.h (SAYMBOL_VALUE): Rename value field, avoids bugs in
332 some compilers.
333 * breakpoint.c, exec.c, mdebugread.c, mipsread.c, xcoffexec.c
334 (false): Eliminate usages.
335
336 Fri Apr 15 11:35:19 1994 Steve Chamberlain (sac@cygnus.com)
337
338 * h8500-tdep.c (initialize_h8500_tdep, large_command):
339 All references to value changed to value_ptrlage_command is now
340 called big_command.
341 All references to value changed to value_ptr.
342 * remote-e7000.c (e7000_wait): Use target_waitstatus and SETSTOP
343 * remote-hms.c (hms_wait): Timeout after five seconds.
344 * ser-go32.c (dosasync_read): Poll if timeout < 0.
345 * config/tm/tm-h8500.h (BEFORE_MAIN_LOOP_HOOK): Deleted.
346 * config/sh/tm-sh.h (BREAKPOINT): Is now sleep opcode.
347
348 Thu Apr 14 07:01:56 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
349
350 * procfs.c (procfs_wait): Protect watchpoint code with appropriate
351 #ifdefs.
352 (procfs_set_watchpoint, procfs_stopped_by_watchpoint): Likewise.
353
354 Wed Apr 13 14:52:46 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
355
356 * breakpoint.h (enum bptype): Add bp_hardware_watchpoint and
357 bp_watchpoint_scope breakpoints.
358 (struct breakpoint): Add val_chain and related_breakpoint fields
359 for use by watchpoints.
360
361 * breakpoint.c (within_scope): Delete. No longer used.
362 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Provide default definition.
363 (target_{remove,insert}_watchpoint): Likewise.
364 (can_use_hardware_watchpoint): New function.
365 (remove_breakpoint): New function to remove a single breakpoint
366 or hardware watchpoint.
367 (insert_breakpoints): Handle insertion of hardware watchpoints.
368 Store a copy of the value chain derived from the watchpoint
369 expression.
370 (remove_breakpoints): Simplify by using remove_breakpoint.
371 (delete_breakpoint): Likewise.
372 (watchpoint_check): Delete the watchpoint and watchpoint scope
373 breakpoints when the watchpoint goes out of scope. Save & restore
374 the current frame after checking watchpoints.
375 (breakpoint_init_inferior): Likewise (restarting the program
376 makes all local watchpoints go out of scope).
377 (bpstat_stop_status): Handle hardware watchpoints much like normal
378 watchpoints. Delete the watchpoint and watchpoint scope breakpoint
379 when the watchpoint goes out of scope. Remove and reinsert all
380 breakpoints before returning if we stopped when a hardware watchpoint
381 fired.
382 (watch_command): Use a hardware watchpoint when possible. If
383 watching a local expression, build a scope breakpoint too.
384 (map_breakpoint_numbers): Also call given function for any
385 related breakpoints.
386 (disable_breakpoint): Never disable a scope breakpoint.
387 (enable_breakpoint): Handle hardware breakpoints much like normal
388 breakpoints, but recompute the watchpoint_scope breakpoint's
389 frame and address (if we have an associated scope breakpoint).
390 (read_memory_nobpt): Handle hardware watchpoints like normal
391 watchpoints. When necessary handle watchpoint_scope breakpoints.
392 (print_it_normal, bpstat_what, breakpoint_1, mention): Likewise.
393 (clear_command, breakpoint_re_set_one, enable_command): Likewise.
394 (disable_command): Likewise.
395
396 * blockframe.c (find_frame_addr_in_frame_chain): New function.
397 Extern prototype added to frame.h
398
399 * infrun.c (wait_for_inferior): Set current_frame and select
400 a frame before checking if we stopped due to a hardare watchpoint
401 firing. Handle stepping over hardware watchpoints.
402 (normal_stop): Remove unnecessary call to select_frame.
403
404 * value.h (value_release_to_mark): Declare.
405 * values.c (value_release_to_mark): New function.
406
407 * procfs.c (procfs_wait): Add cases for hardware watchpoints.
408 (procfs_set_watchpoint, procfs_stopped_by_watchpoint): New functions.
409
410 * hppab-nat.c (hppa_set_watchpoint): New function.
411
412 * config/pa/nm-hppab.h (STOPPED_BY_WATCHPOINT): Define.
413 (HAVE_STEPPABLE_WATCHPOINT): Define.
414 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Define.
415 (target_{insert,delete}_watchpoint): Define.
416
417 * config/mips/nm-irix4.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Define.
418 (STOPPED_BY_WATCHPOINT, HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
419 (target_{insert,remove}_watchpoint): Likewise.
420
421 Mon Apr 11 19:21:27 1994 Stu Grossman (grossman at cygnus.com)
422
423 * xcoffread.c (read_xcoff_symtab): Ignore symbols of class C_EXT,
424 smtyp XTY_LD, sclass XMC_DS (external data segment label). They
425 often have the same names as debug symbols for functions, and
426 confuse lookup_symbol().
427
428 Mon Apr 11 10:44:35 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
429
430 * remote.c: Around redefinition of PBUFSIZE, adjust whitespace.
431 * config/pa/tm-hppa.h (REGISTER_BYTES): Use 4 rather than
432 REGISTER_RAW_SIZE (1).
433 Together these changes work around a bug in HP's compiler. Both
434 seem to be necessary.
435
436 Mon Apr 11 09:18:24 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
437
438 * paread.c (pa_symtab_read): Handle ST_STUB symbols and symbols
439 with scope SS_EXTERNAL. ST_ENTRY symbols in dynamic executables
440 are type mst_solib_trampoline.
441
442 Fri Apr 8 17:14:37 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
443
444 * config/m68k/es1800.mt: Change comments.
445
446 Fri Apr 8 17:14:37 1994 Rob Savoye (rob@darkstar.cygnus.com)
447
448 * config/m68k/monitor.mt (TDEPFILES): Don't include remote-es.o.
449
450 Fri Apr 8 15:35:30 1994 Stu Grossman (grossman at cygnus.com)
451
452 * lynx-nat.c: Restore regmap structure for SPARC. It's needed
453 for core files.
454
455 Fri Apr 8 14:53:35 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
456
457 * values.c (unpack_long): Remove obsolete comment about using a
458 switch statement.
459
460 * symfile.c (symbol_file_command): Add comments about command syntax.
461
462 Thu Apr 7 17:25:21 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
463 Jim Kingdon (kingdon@cygnus.com)
464
465 * infrun.c (IN_SOLIB_TRAMPOLINE): Correct comment, trampolines
466 are in the .plt section.
467 * minsyms.c (lookup_solib_trampoline_symbol_by_pc,
468 find_solib_trampoline_target): New functions for handling
469 stepping into -g compiled shared libraries.
470 * symtab.h (lookup_solib_trampoline_symbol_by_pc,
471 find_solib_trampoline_target): Add prototypes.
472 * config/tm-sunos.h (IN_SOLIB_TRAMPOLINE, SKIP_TRAMPOLINE_CODE):
473 Define to handle stepping into -g compiled shared libraries.
474 * config/tm-sysv4.h (SKIP_TRAMPOLINE_CODE): Define to handle
475 stepping into -g compiled shared libraries.
476
477 Thu Apr 7 17:22:54 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
478
479 * configure.in: Add mips-*-sysv4* support.
480 * config/mips/mipsv4.mh, config/mips/mipsv4.mt,
481 config/mips/tm-mipsv4.h, config/mips/xm-mipsv4.h, mipsv4-nat.c:
482 New files for MIPS SVR4 support.
483 * Makefile.in: Update for new mipsv4 files.
484 * alpha-tdep.c (heuristic_proc_desc, find_proc_desc): Use
485 read_next_frame_reg to obtain the frame relative stack pointer.
486 * mips-tdep.c (heuristic_proc_desc): Use read_next_frame_reg to
487 obtain the frame relative stack pointer.
488 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab1):
489 Handle stStatic and stStaticProc symbols in stabs-in-ecoff output
490 by entering them into the minimal symbol table.
491 * printcmd.c (print_scalar_formatted): Do not try to unpack to
492 a long for float formats.
493 * solib.c: Include "elf/mips.h" only if DT_MIPS_RLD_MAP does not
494 get defined in <link.h>.
495 * solib.c (solib_add): Add shared library sections to the section
496 table of the target before adding the symbols.
497 * partial-stab.h: Relocate static and global functions.
498 * dbxread.c (read_dbx_symtab): Remove unused variable
499 end_of_text_address. Relocate text_addr when passing it
500 to end_psymtab.
501
502 For Alpha OSF/1 targets, enable gdb to set breakpoints in shared
503 library functions before the executable is run. Retrieve dynamic
504 symbols from stripped executables.
505 * mipsread.c (read_alphacoff_dynamic_symtab): New function.
506 * mipsread.c (mipscoff_symfile_read): Use it. Issue warning message
507 if no debugging symbols were found.
508 * alpha-tdep.c (alpha_skip_prologue): Silently return the unaltered
509 pc if memory at the pc is not accessible and GDB_TARGET_HAS_SHARED_LIBS
510 is defined.
511 * config/alpha/nm-alpha.h (GDB_TARGET_HAS_SHARED_LIBS): Define,
512 OSF/1 has shared libraries.
513
514 Thu Apr 7 15:11:11 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
515
516 * dbxread.c (read_dbx_dynamic_symtab): Adjust for recent changes
517 to BFD handling of dynamic symbols.
518
519 Tue Apr 5 15:29:25 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
520
521 * hppa-tdep.c (hppa_fix_call_dummy): If FUN is a procedure label,
522 then gets its real address into FUN and its GOT/DP value into %r19.
523
524 * tm-hppa.h (CALL_DUMMY): Use %r20, not %r19 as a temporary.
525
526 * hppa-tdep.c (frameless_function_invocation): If no unwind
527 descriptor was found, then assume this was not a frameless
528 function invocation.
529 (frame_saved_pc): If the saved PC is in a linker stub, then
530 return the return address which the linker stub will return to.
531
532 * xm-hppab.h: Never define USG.
533 * xm-hppah.h: Always define USG.
534
535 Tue Apr 5 12:58:47 1994 Per Bothner (bothner@kalessin.cygnus.com)
536
537 * values.c (unpack_long, value_from_longest),
538 valarith.c (value_binop): Allow TYPE_CODE_RANGE.
539
540 Fri Apr 1 14:04:34 1994 Jason Merrill (jason@deneb.cygnus.com)
541
542 * symfile.c (deduce_language_from_filename): .cpp is a C++ extension.
543
544 Fri Apr 1 00:44:00 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
545
546 For SVR4 targets, enable gdb to set breakpoints in shared
547 library functions before the executable is run.
548 * elfread.c (elf_symtab_read): Handle symbols for shared library
549 functions.
550 * sparc-tdep.c (in_solib_trampoline): Renamed to in_plt_section
551 and moved to objfiles.c.
552 * objfiles.c (in_plt_section): Moved to here from sparc-tdep.
553 * config/tm-sysv4.h (IN_SOLIB_TRAMPOLINE): Use new in_plt_section.
554 * config/sparc/tm-sun4sol2.h (IN_SOLIB_TRAMPOLINE): Removed,
555 the new generic definition from tm-sysv4.h works for Solaris.
556
557 Wed Mar 30 16:14:27 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
558
559 * elfread.c (elf_symtab_read): Change storage_needed,
560 number_of_symbols and i to long. Rename get_symtab_upper_bound to
561 bfd_get_symtab_upper_bound. Check for errors from
562 bfd_get_symtab_upper_bound and bfd_canonicalize_symtab.
563 * nlmread.c (nlm_symtab_read): Same changes.
564
565 Wed Mar 30 11:43:29 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
566
567 * xcoffread.c (xcoff_next_symbol_text): New function.
568 (read_xcoff_symtab): Set next_symbol_text_func to it.
569 Move raw_symbol outside of read_xcoff_symtab.
570
571 * remote.c (getpkt): Remove unused "out" label.
572
573 Wed Mar 30 09:15:42 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
574
575 * breakpoint.c (print_it_normal): Allow GDB to notify the user
576 about more than one watchpoint being triggered.
577
578 Wed Mar 30 08:24:18 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
579
580 * config/m68k/tm-dpx2.h: Include tm-m68k.h not nonexistent tm-68k.h.
581
582 Wed Mar 30 00:31:49 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
583
584 * blockframe.c (find_pc_partial_function): mst_file_text
585 symbols do not live in the shared library transfer table.
586 * ch-exp.y (decode_integer_value, match_character_literal,
587 match_bitstring_literal): Guard tolower calls with isupper,
588 tolower on old BSD systems blindly subtracts a constant.
589 * dbxread.c (read_ofile_symtab): Check for __gnu_compiled_* as
590 well when determining the producer of the object file.
591 * mdebugread.c (has_opaque_xref): New function to check for
592 cross reference to an opaque aggregate.
593 * mdebugread.c (parse_symbol, parse_partial_symbols): Do not
594 enter typedefs to opaque aggregates into the symbol tables.
595 * mdebugread.c (parse_external): Remove skip_procedures argument,
596 it has always been 1. Remove code that handled stProc symbols,
597 it was never executed and was wrong, as the index of a
598 stProc symbol points to the local symbol table and not to the
599 auxiliary symbol info. Update caller.
600 * mdebugread.c (parse_partial_symbols): Do not enter external
601 stProc symbols into the partial symbol table, they are already
602 entered into the minimal symbol table.
603 * config/i386/tm-symmetry.h: Clean up, it is now only used for Dynix.
604 Remove all conditionals and definitions for ptx.
605 I386_REGNO_TO_SYMMETRY moved to here from symm-tdep.c.
606 Fix addresses of floating point registers in REGISTER_U_ADDR.
607 STORE_STRUCT_RETURN now handles cc and gcc conventions.
608 FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC,
609 IN_SIGTRAMP, SIGCONTEXT_PC_OFFSET defined to make backtracing through
610 signal trampoline code work.
611 * config/i386/xm-symmetry.h: Clean up, it is now only used for Dynix.
612 Remove all conditionals and definitions for ptx.
613 Remove KDB definitions.
614 * symm-nat.c (store_inferior_registers): Fetch registers before
615 storing them to obtain valid floating point control registers.
616 Store fpu registers.
617 * symm-nat.c (print_1167_control_word): Dynix 3.1.1 defines
618 FPA_PCR_CC_C0 and FPA_PCR_CC_C1, avoid duplicate case value.
619 * symm-nat.c (fetch_inferior_registers, child_xfer_memory):
620 Fix typos.
621 * symm-nat.c (child_resume): Update type of `signal' parameter.
622 * symm-tdep.c (I386_REGNO_TO_SYMMETRY): Moved to tm-symmetry.h.
623
624 Tue Mar 29 23:01:33 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
625
626 * hppa-tdep.c (hppa_fix_call_dummy): Use an alternate method for
627 calling import stubs for functions in shared libraries.
628
629 Tue Mar 29 21:14:04 1994 Per Bothner (bothner@kalessin.cygnus.com)
630
631 * ch-exp.y: Implement SIZE(mode_name) and SIZE(expression).
632
633 * ch-lang.c (chill_is_varying_struct): Magic string is
634 was "<var_length>" is now "__var_length" (more portable).
635
636 Tue Mar 29 19:41:34 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
637
638 * remote.c (getpkt): If we get a timeout, actually retry rather
639 than just giving up the first time it happens.
640 * remote.c: Document sequence numbers.
641 (remote_store_registers): Change syntax of 'P' request so that it
642 never looks like a sequence number.
643
644 Tue Mar 29 16:06:01 1994 Kung Hsu (kung@mexican.cygnus.com)
645
646 * os9kread.c (record_minimal_symbol): add section_offset to
647 relocate minimal symbol table.
648 * os9kread.c (read_minimal_symbols): ditto.
649 * os9kread.c (os9k_symfile_init): increase size of dbg and stb
650 file names.
651 * os9kread.c (read_os9k_psymtab): if there's no dbg file, just
652 return. Also if file addr is 0 leave it 0, not to relocate.
653 * remote-os9k.c (_initialize_remote_os9k): add 'set remotexon',
654 'set remotexoff' and 'set remotelog' commands.
655
656 Tue Mar 29 12:38:45 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
657
658 * remote.c (remote_store_registers): Add 'P' request to set an
659 individual register.
660 (remote_write_bytes, remote_read_bytes): Use %lx, not %x, to print
661 a target address.
662
663 Sat Mar 26 07:05:18 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
664
665 * config/sparc/tm-sparc.h: Define USE_REGISTER_NOT_ARG.
666 * stabsread (define_symbol): If USE_REGISTER_NOT_ARG, go back to
667 combining all 'p' and 'r' pairs into a LOC_REGPARM.
668
669 * command.c (do_setshow_command, case var_string): Never add a
670 space to the end of the string.
671 * NEWS: Document this change.
672 * .gdbinit: Add a space to the "set prompt" command.
673
674 Fri Mar 25 12:40:41 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
675
676 * m3-nat.c, i386m3-nat.c, config/i386/i386m3.mh: Many minor
677 changes to make it compile (it doesn't link yet).
678
679 * buildsym.c (start_subfile, patch_subfile_names), demangle.c
680 (set_demangling_style, set_demangling_command): Use savestring not
681 strdup. We were not dealing properly with a NULL return from
682 strdup, and were not declaring strdup (the system header may or
683 may not have it).
684
685 * valprint.c (val_print): Remove inaccurate comment about what
686 types can be stub types.
687
688 * config/i386/ptx.mh (XDEPFILES): Add coredep.o. Delete infptrace.o.
689 * symm-nat.c (child_wait, _initialize_symm_nat, kill_inferior):
690 Supply alternate version if ATTACH_DETACH is not defined.
691 * ptx4-nat.c, config/i386/{nm-ptx4.h, ptx4.mh, ptx.mt, ptx4.mt,
692 tm-ptx.h, tm-ptx4.h, xm-ptx.h, xm-ptx4.h}: New files.
693 * configure.in: Recognize i[34]86-sequent-sysv4* host.
694
695 Fri Mar 25 10:14:03 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
696
697 * hppa-tdep.c (skip_prologue): Do nothing if not at the beginning
698 of a function.
699 (skip_trampoline_code): Rewrite and add support for argument
700 relocation stubs stubs, import/export stubs, calls through
701 "_sr4export" and cascaded trampolines.
702
703 * hppa-tdep.c (skip_prologue): Return "pc" not zero
704 if no unwind descriptor is found.
705
706 * tm-hppa.h (NUM_REGS): Bump to 128 registers.
707 (REGISTER_NAMES): Add entries for "right-half" of FP registers.
708 (REGISTER_RAW_SIZE, MAX_REGISTER_RAW_SIZE): Do not treat FP regs
709 differently. All registers are four bytes.
710 (REGISTER_BYTES, REGISTER_BYTE): Simplify now that all registers are
711 the same size.
712 (REGISTER_VIRTUAL_TYPE): Use builtin_type_float for all FP regs.
713
714 * hppa-tdep.c (pa_print_fp_reg): Update to print even numbered FP
715 registers as both single and double values (fetching 2nd 32bit half
716 as necessary). Annotate each register printed with its precision.
717
718 * paread.c (read_unwind_info): Fix off-by-one error.
719
720 Fri Mar 25 08:33:28 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
721
722 * main.c (complete_command): Deal with it if arg is NULL.
723
724 Thu Mar 24 07:12:09 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
725
726 * config/mips/tm-mips.h (SETUP_ARBITRARY_FRAME): Revise comment
727 regarding using the PC--using the PC is necessary and all the
728 FIXME comments in the world won't make it go away.
729
730 * valops.c (value_at, value_at_lazy): Give error if we dereference
731 a pointer to void.
732 * gdbtypes.h: Fix comments regarding TYPE_CODE_VOID.
733 * stabsread.c: Use 1, not 0, for TYPE_LENGTH of void types.
734
735 * stabsread.c (patch_block_stabs): Add comment about what happens
736 if the definition is in another compilation unit from the stab.
737
738 * dbxread.c (end_psymtab): Add comment about empty psymtabs.
739
740 Wed Mar 23 07:50:33 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
741
742 * main.c (complete_command): New command, from Rick Sladkey
743 <jrs@world.std.com>.
744 (symbol_completion_function): Don't declare rl_point and
745 rl_line_buffer; they are now declared in readline.h.
746 (show_commands): Don't declare history_base; it is declared in
747 history.h.
748 * command.c (lookup_cmd): Don't delete trailing whitespace.
749 Reverts change of 14 May 1989.
750
751 Wed Mar 23 16:14:52 1994 Stu Grossman (grossman at cygnus.com)
752
753 * minsyms.c (prim_record_minimal_symbol): Move section deduction
754 code from prim_record_minimal_symbol_and_info() to here. Callers
755 of the latter can legitimately supply a section number of -1.
756
757 Wed Mar 23 07:50:33 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
758
759 * gdbtypes.h, gdbtypes.c: Add comments regarding whether static
760 member functions have an element in args for a (nonexistent) this
761 pointer.
762
763 Tue Mar 22 20:12:53 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
764
765 * config/pa/tm-hppao.h (NO_PC_SPACE_QUEUE_RESTORE): Define.
766
767 * hppa-tdep.c (hppa_pop_frame): Do not restore the PC space
768 queue if NO_PC_SPACE_QUEUE_RESTORE is defined.
769
770 * stabsread.c (REG_STRUCT_HAS_ADDR): Accept additional argument
771 for the structure's type. All callers changed.
772
773 * valops.c (call_function_by_hand): Check REG_STRUCT_HAS_ADDR
774 for each structure argument rather than assuming it's either
775 true or false for all structure arguments.
776
777 * config/pa/tm-hppa.h (REG_STRUCT_HAS_ADDR): Depend only
778 on the length structure passed, not the compiler used.
779
780 * config/sparc/tm-sparc.h (REG_STRUCT_HAS_ADDR): Accept additional
781 argument for the structure's type.
782
783 Tue Mar 22 15:28:33 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
784
785 * values.c (set_internalvar): Don't set var->value until we are
786 sure there won't be an error().
787
788 * remote.c (get_offsets): Reinstate comment which was in
789 remote_wait about use of SECT_OFF_TEXT and so on.
790
791 Mon Mar 21 13:11:30 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
792
793 * symmisc.c (maintenance_check_symtabs): New function to check
794 consistency of psymtabs and symtabs.
795 * symtab.h (maintenance_check_symtabs): Add prototype.
796 * maint.c: Add new `maint check-symtabs' command.
797 * config/i386/tm-i386aix.h, config/i386/tm-sun386.h,
798 config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Fix typo.
799 * config/i386/tm-symmetry.h: Make comment inside #if 0 a real
800 comment.
801 * config/i386/tm-symmetry.h (STORE_STRUCT_RETURN): Cast argument
802 to write_memory to avoid warnings from gcc.
803 * config/i386/xm-symmetry.h: Add missing #endif.
804 * config/i386/nm-symmetry.h (NO_PTRACE_H): Add for Dynix.
805 * config/i386/symmetry.mt (TDEPFILES): Add i386-tdep.o.
806 * config/i386/symmetry.mh (NAT_FILE, NATDEPFILES): Add.
807
808 Mon Mar 21 11:50:28 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
809
810 * hppa-tdep.c (hppa_fix_call_dummy): Use value_ptr.
811 (hppa_push_arguments): Likewise.
812
813 Mon Mar 21 11:02:51 1994 Stu Grossman (grossman at cygnus.com)
814
815 * alpha-tdep.c: Gobs of changes (many imported from mips-tdep) to
816 improve remote debugging efficiency. Also fixed problems with
817 doing function calls for programs with no entry points.
818 * infcmd.c (run_stack_dummy): Use CALL_DUMMY_ADDRESS instead of
819 entry_point_address.
820 * inferior.h (PC_IN_CALL_DUMMY): ditto.
821 * mdebugread.c (parse_symbol, parse_procedure, parse_external,
822 parse_lines): Pass section_offsets info to these routines so that
823 we can relocate symbol table entries upon readin.
824 * (psymtab_to_symtab_1): Set symtab->primary to tell
825 objfile_relocate to do relocations for our symbols.
826 * (ecoff_relocate_efi): New routine to relocate adr field of PDRs
827 (which hang off of the symbol table).
828 * Use prim_record_minimal_symbols_and_info instead of
829 prim_record_minimal_symbols to supply section info to make minimal
830 symbol relocations work.
831 * minsyms.c (prim_record_minimal_symbols_and_info): If section is
832 -1, try to deduce it from ms_type.
833 * objfiles.c (objfile_relocate): Use ALL_OBJFILE_SYMTABS where
834 appropriate. Handle relocation of MIPS_EFI symbols special. Also,
835 add code to relocate objfile->sections data structure.
836 * remote.c (get_offsets): Use new protocol message to acquire
837 section offsets from the target.
838 * (remote_wait): Get rid of relocation stuff. That's all handled
839 by objfile_relocate now.
840 * config/alpha/alpha-nw.mt (TM_FILE): Use tm-alphanw.h.
841 * config/alpha/tm-alpha.h: Define CALL_DUMMY_ADDRESS, and
842 VM_MIN_ADDRESS.
843 * config/alpha/tm-alphanw.h: DECR_PC_AFTER_BREAK=0, VM_MIN_ADDRESS=0.
844
845 Sun Mar 20 15:21:57 1994 Doug Evans (dje@cygnus.com)
846
847 * sparc-tdep.c (sparc_frame_find_save_regs): Use REGISTER_RAW_SIZE
848 instead of 4.
849
850 start-sanitize-v9
851 * sp64-tdep.c (target_ptr_bit, set_target_ptr_bit): Deleted,
852 can no longer set this at run time.
853 * config/sparc/sp64.mt (SIMFILES): Use remote-sim.o now.
854 (TM_CLIBS): Define to -lm, the simulator uses the sqrt() function.
855 * config/sparc/tm-sp64.h (FPS_REGNUM, CPS_REGNUM): Define (so
856 sparc-tdep.c compiles).
857 (TARGET_PTR_BIT): Must be a constant now, fix at 64.
858 end-sanitize-v9
859
860 Sat Mar 19 08:51:12 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
861
862 * config/m68k/{cisco.mt,tm-cisco.h}: New files.
863 * Makefile.in (ALLPARAM, ALLCONFIG): Add them.
864 * configure.in: Recognize m68*-cisco*-*.
865
866 * Makefile.in (TAGS): Use variables directly, rather than using
867 find, to locate TM_FILE, XM_FILE, and NAT_FILE. This is faster
868 and means that these filenames no longer need be unique across all
869 the config/* directories.
870 * configure.in: Put the config/*/ into TM_FILE, etc.
871
872 * m68k-stub.c (computeSignal): Return SIGFPE, not SIGURG, for chk
873 and trapv exceptions.
874
875 * target.h (struct section_table), objfiles.h (struct obj_section):
876 Change name of field sec_ptr to the_bfd_section. More mnemonic
877 and avoids the (sort of, for the ptx compiler) name clash with
878 the name of the typedef.
879 * exec.c, xcoffexec.c, sparc-tdep.c, rs6000-nat.c, osfsolib.c,
880 solib.c, irix5-nat.c, objfiles.c, remote.c: Change users.
881
882 * utils.c: Include readline.h.
883 * Makefile.in (utils.o): Add dependency.
884
885 * remote.c (getpkt): Add support for run-length encoding.
886
887 Fri Mar 18 19:11:15 1994 Steve Chamberlain (sac@jonny.cygnus.com)
888
889 * utils.c (prompt_for_continue): Call readline, not gdb_readline.
890
891 Fri Mar 18 10:25:55 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
892
893 * dstread.c (record_minimal_symbol): New arg objfile. Pass it to
894 prim_record_minimal_symbol.
895 Callers: Pass it.
896
897 * regex.c (EXTEND_BUFFER): Adjust pointers within buffer by
898 computing their offset from the start of the old buffer and adding
899 to the new buffer, rather than by assuming we can add the
900 difference between the old buffer and the new buffer (it might not
901 fit in an int). Merge in cosmetic differences from emacs regex.c
902 version of this macro.
903
904 Wed Mar 16 15:28:54 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
905
906 * Makefile.in (install-only): Fix use of program_transform_name.
907
908 Wed Mar 16 07:18:43 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
909
910 * printcmd.c: Remove "set print fast-symbolic-addr off" command.
911 The bug which it worked around was fixed on 25 Feb 94 in coffread.c,
912 so I'm nuking the command.
913 * symtab.c (find_addr_symbol): Comment out, no longer used.
914
915 * main.c (main): Don't init_source_path for the -cd argument. Now
916 that source_path doesn't contain the current_directory from when
917 GDB started up, init_source_path is no longer useful (and is
918 harmful because it clobbers a source_path set in $HOME/.gdbinit).
919
920 * TODO: Remove item about line numbers being off. It is useless
921 and confusing without a reproducible test case (it mentions
922 proceed(), but I was able to step through proceed without trouble).
923
924 Tue Mar 15 13:39:23 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
925
926 For Sunos 4.x targets, enable gdb to set breakpoints in shared
927 library functions before the executable is run. Retrieve dynamic
928 symbols from stripped executables.
929 * symtab.h (minimal_symbol_type): Add mst_solib_trampoline type.
930 * parse.c (write_exp_msymbol), symmisc.c (dump_msymbols),
931 symtab.c (list_symbols): Handle mst_solib_trampoline.
932 * minsyms.c (lookup_minimal_symbol): Handle mst_solib_trampoline
933 for all targets, remove IBM6000_TARGET dependencies.
934 * dbxread.c (read_dbx_dynamic_symtab): New function.
935 * dbxread.c (dbx_symfile_read): Use it.
936 * dbxread.c (SET_NAMESTRING): Set namestring to
937 "<bad string table index>" instead of "foo" if the string index is
938 corrupt.
939 * xcoffread.c (read_xcoff_symtab): Use mst_solib_trampoline instead
940 of mst_unknown.
941 * symtab.c (list_symbols): Take from_tty as parameter and pass it
942 to break_command. Handle mst_file_* minimal symbol types.
943 * config/i386/tm-i386bsd.h: Give just macro name, not args, to #undef.
944
945 Tue Mar 15 11:40:43 1994 Kung Hsu (kung@mexican.cygnus.com)
946
947 * c-exp.y(yylex): fix potential memory overflow.
948
949 Tue Mar 15 10:33:28 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
950
951 * environ.c (set_in_environ): Eliminate special handling of PATH and
952 GNUTARGET.
953 * putenv.c: Removed, conflicts with system declaration of
954 putenv on RS/6000 running AIX 3.2.5, and above change makes it
955 unnecessary.
956 * Makefile.in: Change accordingly.
957 * procfs.c (procfs_create_inferior): Change comment accordingly.
958
959 Tue Mar 15 10:05:27 1994 Jim Kingdon (kingdon@cygnus.com)
960
961 * rs6000-tdep.c: Change value to value_ptr.
962
963 Sun Mar 13 09:45:51 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
964
965 * i386m3-nat.c: Include floatformat.h.
966 (get_i387_state): Use memset not bzero.
967
968 * Version 4.12.3.
969
970 * Makefile.in: Enable commented out getopt_h, bfd_h, etc. Change
971 ieee-float.h to floatformat.h.
972
973 * valprint.c (val_print_string): Ignore error if the error
974 happened after a terminating '\0'.
975
976 * c-valprint.c (c_val_print): Never add 1 to return value from
977 val_print_string; just return what it returns.
978
979 * target.h (enum target_signal): Add TARGET_SIGNAL_FIRST, for
980 looping through all of the enums.
981 * infrun.c (signals_info): Use it.
982
983 Fri Mar 11 08:08:50 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
984
985 * main.c (main): When printing warning about bad baud rate, don't
986 use warning(); it relies on current_target which isn't set up yet.
987
988 * breakpoint.c (_initialize_breakpoint): Update docstring for
989 tbreak to match what the code actually does. Don't mention tbreak
990 in docstrings for "enable once" or "enable breakpoints once".
991
992 Thu Mar 10 08:52:38 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
993
994 * symfile.h (ADD_PSYMBOL_VT_TO_LIST): Don't put a semicolon after
995 while (0). That defeats the whole purpose of using do . . . while (0).
996 * mdebugread.c (parse_partial_symbols): Don't use ?: expression as
997 list for ADD_PSYMBOL_TO_LIST; the macro takes its address and
998 using a ?: expression as an lvalue is not portable.
999
1000 * stabsread.c (define_symbol): If REG_STRUCT_HAS_ADDR, also
1001 convert a LOC_ARG to a LOC_REF_ARG. Update code which combines
1002 'p' and 'r' symbol descriptors into a single symbol to look for a
1003 LOC_REF_ARG.
1004 * README, config/sparc/tm-sparc.h: Update comments.
1005
1006 Wed Mar 9 21:43:24 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1007
1008 * mdebugread.c (parse_type): Do not complain for types with
1009 an `indexNil' aux index, these are simply undefined types.
1010 Remove indexNil check from caller of parse_type.
1011 * mdebugread.c (parse_partial_symbols): Do not enter
1012 stGlobal, scCommon symbols into the minimal symbol table, their
1013 value is the size of the common, not its address.
1014 Handle scInit, scFini, scPData and scXData sections.
1015 Use minimal symbol type mst_file_* for stLabel symbols, instead of
1016 mst_*.
1017 Enter stProc symbols into the global_psymbols list once, not into
1018 the static_psymbols_list.
1019 Get rid of dummy psymtab if it is empty, to allow proper detection
1020 of stripped executables.
1021 * mdebugread.c (cross_ref): Allow cross references to Fortran
1022 common blocks.
1023
1024 Wed Mar 9 15:23:19 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1025
1026 * stabsread.c (common_block_end, fix_common_block): Stash the
1027 struct pending * in the SYMBOL_TYPE, not the SYMBOL_NAMESPACE, so
1028 as to not assume that a pointer fits in an enum.
1029
1030 Wed Mar 9 18:56:36 1994 Kung Hsu (kung@mexican.cygnus.com)
1031
1032 * os9kread.c (fill_sym): check compiler verion number for pre-
1033 UltraC compiler.
1034 * os9kread.c (os9k_process_one_symbol): address of symbol is
1035 relative to section not module.
1036 * stabsread.c (define_symbol): add symbol type 's' as local
1037 symbol for os9k.
1038 * remote-os9k.c: add command 'set monitor_log' to turn on or off
1039 monitor logging.
1040 * remote-os9k.c: fix bug in delete breakpoint, single step trace.
1041 * remote-os9k.c: fix bug in 'set remotebaud' function.
1042 * remote-os9k.c (rombug_link): minimize checking so to improve
1043 speed.
1044 * symfile.c (symbol_file_command): check if failed to link, also make
1045 the command be able to accept more than one filenames.
1046 * target.c (target_link): check if failed to link with rombug.
1047 * config/i386/tm-i386os9k.h : add #define DECR_PC_AFTER_BREAK 0.
1048
1049 Wed Mar 9 15:23:19 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1050
1051 * remote-es.c (es1800_child_ops): Don't declare it static.
1052
1053 Tue Mar 8 11:42:39 1994 Jim Kingdon (kingdon@cygnus.com)
1054
1055 * config/i386/tm-i386v4.h: Give just macro name, not args, to #undef.
1056
1057 Tue Mar 8 06:56:13 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1058
1059 * dbxread.c: New variable lowest_text_address.
1060 (record_minimal_symbol, read_dbx_symtab): Set it.
1061 (read_dbx_symtab): Use lowest_text_address + text_size instead of
1062 end_of_text_address.
1063 * config/gould/tm-pn.h: Add comment regarding END_OF_TEXT_DEFAULT.
1064
1065 * dbxread.c (end_psymtab): Remove old and commented out
1066 capping_global and capping_static. Fix comments regarding
1067 N_SO_ADDRESS_MAYBE_MISSING to match the real name of the macro.
1068
1069 * parser-defs.h: Add "extern" to start of variable declarations so
1070 we don't end up with commons.
1071 * parse.c: Define these variables.
1072
1073 * irix5-nat.c (find_solib): Cast o_path to CORE_ADDR when using it
1074 as one.
1075
1076 Mon Mar 7 13:00:50 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1077
1078 * alpha-tdep.c: Change value to value_ptr.
1079
1080 Sun Mar 6 17:36:53 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1081
1082 * solib.c (elf_locate_base): New function to locate the address
1083 of the dynamic linker's runtime structure in the dynamic info section.
1084 * solib.c (locate_base): Use it instead of iterating over the list
1085 of mapped address segments.
1086 * solib.c (look_for_base, bfd_lookup_symbol): Removed, no longer
1087 necessary.
1088
1089 Fri Mar 4 09:50:47 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
1090
1091 * hppa-tdep.c (pc_in_linker_stub): Move decl to beginning of file.
1092 (pc_in_interrupt_handler): New function. Also add PARAM decl.
1093 (find_proc_framesize): Deal with HPUX setting SAVE_SP bit for
1094 signal trampoline and interrupt routines.
1095 (frame_saved_pc): Handle signal trampolines and interrupt routines.
1096 (frame_chain, frame_chain_valid): Likewise.
1097 (hppa_frame_find_saved_regs): Likewise. Also deal with special
1098 saved regs convention for SP.
1099
1100 * tm-hppa[bho].h: FRAME_FIND_SAVED_PC_IN_SIGTRAMP): Define.
1101 (FRAME_BASE_BEFORE_SIGTRAMP): Define.
1102 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Define.
1103
1104 * tm-hppah.h (IN_SIGTRAMP): Define.
1105
1106 Thu Mar 3 12:41:16 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
1107
1108 * ch-exp.y (match_simple_name_string): Accept '_' as well as an
1109 alphabetic character as the start of a name.
1110
1111 * sparclite/Makefile.in (all install): Build and install aload.
1112
1113 * configure.in: Accept i[34]86-*-*sysv32 because that is what
1114 config.guess and config.sub produce.
1115
1116 * mips-tdep.c: Change value to value_ptr.
1117
1118 Wed Mar 2 09:17:55 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
1119
1120 * breakpoint.c, breakpoint.h, c-valprint.c, ch-valprint.c,
1121 cp-valprint.c, eval.c, expprint.c, findvar.c, language.c,
1122 objfiles.h, infcmd.c, printcmd.c, stack.c, typeprint.c,
1123 valarith.c, valops.c, valprint.c, value.h, values.c: Replace
1124 value with value_ptr. This is for the ptx compiler.
1125 * objfiles.h, target.h: Don't declare a "sec_ptr" field using a
1126 "sec_ptr" typedef.
1127 * symm-nat.c: Add a bunch of stuff for symmetry's ptrace stuff.
1128 #if 0 i386_float_info.
1129 * symm-tdep.c (round): Remove. Also remove sgttyb.
1130 * symm-tdep.c: Remove lots of stuff which duplicates stuff from
1131 i386-tdep.c. Remove register_addr and ptx_coff_regno_to_gdb.
1132 * i386-tdep.c (i386_frame_find_saved_regs): Put in
1133 I386_REGNO_TO_SYMMETRY check in case it is needed for Dynix
1134 someday.
1135 * config/i386/nm-symmetry.h: Change KERNEL_U_ADDR. Move
1136 stuff from PTRACE_READ_REGS, PTRACE_WRITE_REGS macros to
1137 symm-nat.c. Define CHILD_WAIT and declare child_wait().
1138 * config/i386/tm-symmetry.h: Remove call function stuff; stuff in
1139 tm-i386v.h is apparently OK.
1140 * config/i386/xm-symmetry.h [_SEQUENT_]: Define HAVE_TERMIOS not
1141 HAVE_TERMIO. Define MEM_FNS_DECLARED, NEED_POSIX_SETPGID, and
1142 USE_O_NOCTTY.
1143
1144 Wed Mar 2 11:31:08 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1145
1146 * osfsolib.c (xfer_link_map_member): Update to use new
1147 target_read_string interface.
1148
1149 Wed Mar 2 09:17:55 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
1150
1151 * infrun.c (wait_for_inferior): In checking
1152 remove_breakpoints_on_following_step, check
1153 through_sigtramp_breakpoint as well as step_resume_breakpoint.
1154
1155 Tue Mar 1 16:22:56 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
1156
1157 * os9kread.c (os9k_process_one_symbol): Rename
1158 VARIABLES_INSIDE_BLOCK to OS9K_VARIABLES_INSIDE_BLOCK.
1159 * symfile.c (symbol_file_command): Check for (CORE_ADDR)-1, not
1160 (CORE_ADDR)0, from target_link, since that is what it uses.
1161 Process name at end, not during parsing (like we did before Kung's
1162 change), so that -readnow and -mapped can appear anywhere.
1163 Make text_relocation a local variable.
1164 * config/i386/i386os9k.mt: Fix comment.
1165 * Makefile.in (ALLDEPFILES): Add remote-os9k.c.
1166 * os9kread.c: Put "comments" after #endif inside /* */.
1167 * stabsread.h: Add os9k_stabs variable.
1168 * stabsread.c (start_stabs), os9kread.c (os9k_process_one_symbol):
1169 Set it.
1170 * stabsread.c (define_symbol): If os9k_stabs, put a 'V' symbol
1171 descriptor in global_symbols not local_symbols.
1172 (read_type): If os9k_stabs, accept 'c', 'i', and 'b' type
1173 descriptors.
1174 (read_type): If os9k_stabs, accept function parameters after 'f'
1175 type descriptor.
1176 (read_array_type): If os9k_stabs, don't expect index type and
1177 expect lower and upper to be separated by ',' not ';'.
1178 (read_enum_type): If os9k_stabs, read a number before the first
1179 enumeration constant.
1180 (os9k_init_type_vector): New function.
1181 (dbx_lookup_type): Call it when starting new type vector.
1182 * config/i386/tm-i386os9k.h: Define BELIEVE_PCC_PROMOTION.
1183 * (os9k_process_one_symbol): Call define_symbol not os9k_define_symbol.
1184 * os9kstab.c: Removed.
1185 * Makefile.in: Update accordingly.
1186 * objfiles.c (objfile_relocate_data): Removed.
1187 * remote-os9k.c (rombug_wait): Call objfile_relocate
1188 not objfile_relocate_data.
1189 * objfiles.h, objfiles.c: Remove find_pc_objfile.
1190 * remote-os9k.c (rombug_wait): Call find_pc_section not
1191 find_pc_objfile.
1192 * main.c (quit_command): Check inferior_pid; revert Kung change.
1193 * remote-os9k.c (rombug_create_inferior): Set inferior_pid.
1194
1195 Tue Mar 1 14:56:14 1994 Kung Hsu (kung@mexican.cygnus.com)
1196
1197 * os9kread.c: New file to read os9000 style symbo table.
1198 * os9kstab.c: new file to read os9000 style stabs.
1199 * remote-os9k.c: remote protocol talking to os9000 rombug monitor.
1200 * objfiles.c (find_pc_objfile): new function to search objfile
1201 from pc.
1202 * objfiles.c (objfile_relocate_data): new function to relocate
1203 data symbols in symbol table.
1204 * objfiles.h: Add two aux fields in struct objfile to handle
1205 multiple symbol table files situation like in os9000.
1206 * symfile.c: Change so 'symbol-file' command can handle multiple
1207 files. Also call target_link() to get relocation infos.
1208 * target.c (target_link): new function to get relocation info when
1209 a symbol file is requested to load.
1210 * main.c (quit_command): take out 'inferior_pid != 0' condition,
1211 because in cross mode there's no inferior pid, bit they need to
1212 be detached.
1213 Makefile.in: add os9kread.c os9kstab.c and .o's.
1214 configure.in: add i386os9k target.
1215 config/i386/i386os9k.mt: new add.
1216 config/i386/tm-i386os9k.h: new add.
1217
1218 Tue Mar 1 13:16:10 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1219
1220 * config/sparc/tm-sun4sol2.h (IN_SIGTRAMP): Handle ucbsigvechandler.
1221 * sparc-tdep.c (sparc_frame_saved_pc): Handle ucbsigvechandler.
1222
1223 Tue Mar 1 11:54:11 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
1224
1225 * target.c, target.h (target_read_string): Provide error detection to
1226 caller. Put string in malloc'd space, so caller need not impose
1227 arbitrary limits.
1228 * solib.c (find_solib): Update to use new interface.
1229 * irix5-nat.c (find_solib): Read o_path from inferior
1230 (clear_solib): Free storage for o_path.
1231 * valprint.c (val_print_string): Add comments.
1232
1233 Mon Feb 28 23:54:39 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1234
1235 * symtab.c (decode_line_1): Handle the case when skip_quoted does not
1236 advance `p'.
1237
1238 Mon Feb 28 12:40:46 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
1239
1240 * value.h (struct value): Add modifiable field.
1241 * values.c (allocate_value, record_latest_value, value_copy): Set it.
1242 (record_latest_value): Don't mess with VALUE_LVAL of value.
1243 * valops.c (value_assign): Check it. Reword existing error
1244 message on not_lval.
1245
1246 * mips-tdep.c (mips_step_skips_delay), config/mips/tm-mips.h
1247 (STEP_SKIPS_DELAY): Added.
1248 * infrun.c (proceed) [STEP_SKIPS_DELAY]: Check for a breakpoint in
1249 the delay slot.
1250
1251 * valprint.c (val_print_string): If errcode is set, always print
1252 an error, regardless of force_ellipsis. In the non-EIO case,
1253 just print the error message rather than calling error(). Don't
1254 access *(bufptr-1) if bufptr points to the start of the buffer.
1255 When looking for '\0', don't increment bufptr and addr if bufptr
1256 started out already at limit. If an error happens on fetching the
1257 first character, don't print the string.
1258
1259 Sun Feb 27 21:05:06 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
1260
1261 * config/m68k/tm-apollo68b.h: Remove HAVE_68881 define; it is
1262 obsolete.
1263
1264 * i387-tdep.c, i386-tdep.c i386v-nat.c, i386aix-nat.c,
1265 i386m3-nat.c, config/m68k/tm-m68k.h, i960-tdep.c
1266 config/i960/tm-i960.h, remote-nindy.c, config/m88k/tm-m88k.h,
1267 m88k-tdep.c: Use floatformat.h instead of ieee-float.h.
1268 * sparc-tdep.c: Remove now-obsolete ieee-float.h stuff
1269 * findvar.c: Update comment regarding ieee-float.h.
1270
1271 Sun Feb 27 21:39:48 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1272
1273 * config/i386/tm-i386v4.h (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP,
1274 FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC):
1275 Define to make backtracing through the various sigtramp handlers
1276 work.
1277 * i386-tdep.c (i386v4_sigtramp_saved_pc): New routine to fetch
1278 the saved pc from ucontext on the stack for SVR4 signal handling.
1279
1280 Fri Feb 25 09:41:11 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
1281
1282 * remote.c, remote-mon.c, remote-utils.c, remote-utils.h,
1283 target.h, remote-es.c, remote-nindy.c: Don't set baud rate if
1284 baud_rate is -1. Remove sr_get_baud_rate and sr_set_baud_rate;
1285 just use the global variable itself. When printing baud rate,
1286 don't print a baud rate if baud_rate is -1.
1287
1288 * coffread.c (read_coff_symtab): Pass mst_file_* to
1289 record_minimal_symbol for C_STAT symbols. Put C_EXT and C_STAT
1290 symbols in the minimal symbols regardless of SDB_TYPE.
1291
1292 Thu Feb 24 08:30:33 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
1293
1294 * breakpoint.h (enum bptype): New type bp_through_sigtramp.
1295 (bpstat_what_main_action): New code BPSTAT_WHAT_THROUGH_SIGTRAMP.
1296 * breakpoint.c (bpstat_what): Return BPSTAT_WHAT_THROUGH_SIGTRAMP
1297 if we hit a bp_through_sigtramp breakpoint. Remove kludge which
1298 ignored bs->stop for a bp_step_resume breakpoint.
1299 * infrun.c (wait_for_inferior): Make a through_sigtramp_breakpoint
1300 which performs one (the check_sigtramp2 one) of the functions
1301 which had been handled by the step_resume_breakpoint. For each
1302 use of the step_resume_breakpoint, make it still use the
1303 step_resume_breakpoint, use the through_sigtramp_breakpoint, or
1304 operate on both.
1305 Deal with BPSTAT_WHAT_THROUGH_SIGTRAMP return from bpstat_what.
1306 When setting the frame address of the step resume breakpoint, set
1307 it to the address for frame *before* the call instruction is
1308 executed, not after.
1309
1310 * mips-tdep.c (mips_print_register): Print integers using
1311 print_scalar_formatted rather than duplicating all the
1312 CC_HAS_LONG_LONG and so on.
1313 (mips_push_dummy_frame): Use read_register_gen rather than using
1314 read_register and then putting it back in target format with
1315 store_unsigned_integer. If registers are more than 4 bytes, give
1316 an error rather than have some registers overwrite other
1317 registers.
1318 #if 0 unused include of opcode/mips.h.
1319
1320 * symfile.h: Don't declare arguments for coff_getfilename.
1321
1322 * defs.h: Revert Kung change regarding FORCE_LONG_LONG.
1323
1324 Thu Feb 24 08:06:52 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
1325
1326 * configure.in (hppa*-*-osf*): New configuration.
1327 * config/pa/hppaosf.mt: New target makefile fragment.
1328 * config/pa/tm-hppao.h: New target include file.
1329
1330 Thu Feb 24 04:29:19 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1331
1332 * exec.c (print_section_info): Print entry point for exec_bfd only.
1333 * ser-unix.c (wait_for): Fix typo in HAVE_TERMIO case.
1334 * dwarfread.c: Remove second inclusion of <sys/types.h>, which
1335 causes problems if <sys/types.h> has no multiple inclusion protection.
1336
1337 Wed Feb 23 16:28:55 1994 Jeffrey A. Law (law@cygnus.com)
1338
1339 * tm-hppa.h (CALL_DUMMY): Add two NOP instructions to the end of
1340 the call dummy to avoid kernel bugs in HPUX, BSD, and OSF1.
1341 (CALL_DUMMY_LENGTH): Changed accordingly.
1342
1343 Wed Feb 23 16:21:25 1994 Stu Grossman (grossman at cygnus.com)
1344
1345 * sparc-stub.c (trap_low): Make trap handler work for arbitrary
1346 numbers of register windows.
1347
1348 * sparclite/hello.c: Add factorial function for testing.
1349 * salib.c: Use macros instead of constants for I/O addresses to
1350 make 931 support easier.
1351 * sparclite.h: Change constraint for LOC to "rJ" to force use of
1352 register in sta/lda instructions.
1353
1354 Wed Feb 23 10:39:18 1994 Jim Kingdon (kingdon@rtl.cygnus.com)
1355
1356 * dbxread.c (process_one_symbol): Set
1357 block_address_function_relative for COFF like we do for ELF and SOM.
1358
1359 Sat Feb 19 03:17:32 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1360
1361 * mdebugread.c (new_psymtab): Pass in section_offsets and set
1362 them in the pst.
1363 * mdebugread.c (handle_psymbol_enumerators): New function to enter
1364 the enumerators of an ecoff enum into the partial symbol table.
1365 * mdebugread.c (parse_partial_symbols): Call it.
1366 * symfile.c (reread_symbols): Initialize objfile->*_psymbols.next.
1367 * symmisc.c (dump_psymtab): Fix typo, clean up output of section
1368 offsets. Cast psymtab->read_symtab to PTR before passing it to
1369 gdb_print_address.
1370 * i386-tdep.c (i386_skip_prologue): Skip over instructions that
1371 set up the global offset table pointer in pic compiled code.
1372 * config/mips/tm-mips.h (FIX_CALL_DUMMY): For big endian targets,
1373 error() on TYPE_CODE_FLT arguments whose size is greater than 8,
1374 swap all other TYPE_CODE_FLT arguments as mips_push_arguments
1375 ensures that floats are promoted to doubles before they are pushed
1376 on the stack.
1377
1378 Fri Feb 18 23:12:59 1994 Stu Grossman (grossman at cygnus.com)
1379
1380 * sparclite/Makefile.in, sparclite/salib.c, sparclite/sparclite.h:
1381 Fixup cache_on and flush_i_cache so that they work for both the
1382 930 and 932 processors. Rewrite most low level funcs (uart
1383 access & cache stuff) to use new ASI access macros in sparclite.h.
1384 Also make it easy to access second serial port.
1385
1386 Fri Feb 18 22:17:33 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1387
1388 * hp300ux-nat.c: Don't incloude <sys/dir.h>, <sys/ioctl.h>, or
1389 <sys/stat.h>; not needed.
1390
1391 Fri Feb 18 08:26:29 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1392
1393 * stack.c (print_frame_info): In "pathological" case, don't
1394 distrust the line number information.
1395
1396 Fri Feb 18 16:51:14 1994 Kung Hsu (kung@mexican.cygnus.com)
1397
1398 * mips-tdep.c (mips_print_register): handle 64 bits register.
1399 * valprint.c (print_longest): fix a bug in printing 64 bits value.
1400
1401 Fri Feb 18 08:26:29 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1402
1403 * Version 4.12.2.
1404
1405 * Makefile.in (install): Do the sed for program_transform_name
1406 ourselves instead of worrying about INSTALL_XFORM. This enables
1407 users to override INSTALL_PROGRAM in the standard way.
1408
1409 * Makefile.in (c-exp.tab.o, ch-exp.tab.o, m2-exp.tab.o): Don't
1410 depend on Makefile.in.
1411
1412 * defs.h, valprint.c: Make longest_to_int a function not a macro.
1413 Only test against INT_MIN if a LONGEST is bigger than an int.
1414
1415 * README: Change GhostScript to Ghostscript.
1416
1417 Fri Feb 18 07:30:55 1994 Jim Kingdon (kingdon@cygnus.com)
1418
1419 * config/rs6000/{tm-rs6000lynx.h,nm-rs6000lynx.h,xm-rs6000lynx.h}:
1420 Rename to tm-rs6000ly.h, nm-rs6000ly.h, xm-rs6000ly.h for 14
1421 character file names.
1422 * Makefile.in (ALLPARAM): Add these files.
1423
1424 * config/mips/littlemips64.mt: Rename to mipsel64.mt for 14
1425 character file names.
1426 * Makefile.in: Add Kung's new mips64 files.
1427
1428 Thu Feb 17 17:25:47 1994 Kung Hsu (kung@mexican.cygnus.com)
1429
1430 * configure.in: add mips64-*-elf, mips64-*-ecoff, mips64el-*-elf,
1431 mips64el-*-ecoff and mips64-big-*.
1432 * defs.h: get rid of FORCE_LONG_LONG.
1433 * mips-tdep.c (mips_find_saved_regs): add sd and sdc1 instruction
1434 parsing. Change register size to be MIPS_REGSIZE.
1435
1436 Thu Feb 17 09:30:22 1994 David J. Mackenzie (djm@thepub.cygnus.com)
1437
1438 * corelow.c, exec.c, irix5-nat.c, mipsread.c, objfiles.c,
1439 osfsolib.c, rs6000-nat.c, solib.c, symfile.c, utils.c,
1440 xcoffexec.c: Use bfd_get_error and bfd_set_error and new error names.
1441
1442 Fri Feb 11 21:47:24 1994 Steve Chamberlain (sac@sphagnum.cygnus.com)
1443
1444 * remote-hms.c (readchar, hms_open, hms_fetch_register): Made more robust.
1445 (remove_commands, add_commands): Add/remove hms-drain when target
1446 is connected.
1447
1448 Fri Feb 11 16:11:38 1994 Stu Grossman (grossman at cygnus.com)
1449
1450 * configure.in: Add Lynx/rs6000 support.
1451 * lynx-nat.c: Clean up some Sparc stuff. Clean up ptrace error
1452 messages. Add rs6000 support. Don't try to modify unwritable
1453 registers.
1454 * rs6000-nat.c: Move lots of native dependent stuff (like core
1455 file support) from rs6000-tdep.c & xcoffexec.c to here.
1456 * rs6000-tdep.c: Move native dependent stuff to nat.c.
1457 * xcoffexec.c: Move native dependent stuff to nat.c.
1458 * config/rs6000/nm-rs6000.h: Move defs of SOLIB_* macros to here
1459 from tm file.
1460 * config/rs6000/tm-rs6000.h: Remove defs of SOLIB_* funcs, cuz they're
1461 really native.
1462 * config/rs6000/tm-rs6000lynx.h, config/rs6000/xm-rs6000lynx.h:
1463 New files to support Lynx/rs6000.
1464
1465 Tue Feb 8 00:32:28 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1466
1467 * README: Remove note about gcc warnings on alpha, these should be
1468 gone now.
1469 * c-exp.y, ch-exp.y, core.c, corelow.c, eval.c, fork-child.c,
1470 m2-exp.y, minsyms.c, nlmread.c, parse.c, putenv.c, regex.c
1471 remote-utils.c, stabsread.c: Include <string.h>.
1472 * regex.c: Include "defs.h", change re_comp argument to const char *.
1473 * infptrace.c (fetch_register, store_inferior_registers): Change
1474 regaddr to type CORE_ADDR.
1475 * config/alpha/alpha-nw.mt, config/alpha/alpha-osf1.mt (MT_CFLAGS):
1476 Remove, no longer necessary now that we use bfd_vma for a CORE_ADDR.
1477
1478 Mon Feb 7 09:21:17 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1479
1480 * symtab.h: Always define BYTE_BITFIELD to nothing.
1481
1482 Mon Feb 7 08:44:17 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
1483
1484 * config/m68k/{m68k-em.mt,tm-m68k-em.h}: Remove; no longer used.
1485 * configure.in: Remove comment about m68k-em.mt.
1486 * Makefile.in: Remove references.
1487
1488 Mon Feb 7 08:22:42 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1489
1490 * defs.h [BFD64]: Use BFD_HOST_64_BIT, not nonexistent
1491 BFD_HOST_64_TYPE.
1492
1493 Sun Feb 6 06:55:15 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1494
1495 * target.c (target_preopen): If target_kill doesn't remove the
1496 target from the stack, use pop_target to do it.
1497
1498 * coffread.c (process_coff_symbol, case C_TPDEF): Don't set name
1499 of TYPE_CODE_PTR or TYPE_CODE_FUNC types. This parallels similar
1500 changes to stabsread.c from summer 1993.
1501
1502 * remote-udi.c (udi_files_info): If prog_name is NULL, just skip
1503 printing the program, rather than passing NULL to printf.
1504 (udi_detach): Set udi_session_id to -1 so that udi_close doesn't
1505 try to call UDIDisconnect again. Print better message.
1506 (udi_kill): Just call UDIDisconnect ourselves, rather than doing
1507 it via udi_close.
1508 (udi_create_inferior): If udi_session_id is negative, open a new
1509 TIP rather than giving an error.
1510
1511 * config/mips/mipsm3.mh, config/i386/i386m3.mh,
1512 config/ns32k/ns32km3.mh: Define NAT_FILE.
1513 * config/nm-m3.h: Change guard from _OS_MACH3_H_ and _OS_MACH3_H
1514 (it was inconsistent and namespace-wrong) to NM_M3_H.
1515 * m3-nat.c (mach_really_wait): Change parameter name to ourstatus.
1516 (m3_open): New function.
1517 (m3_ops): Use it.
1518 * TODO: Update Mach section.
1519
1520 * Makefile.in: Remove "rapp" stuff; it is superseded by gdbserver.
1521
1522 Sun Feb 6 13:26:21 1994 Per Bothner (bothner@kalessin.cygnus.com)
1523
1524 * printcmd.c (printf_command): Add missing single-letter
1525 backslash-escape sequences, and improve error message.
1526
1527 Sun Feb 6 06:55:15 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1528
1529 * corelow.c (solib_add_stub, core_open): Pass address of from_tty
1530 rather than trying to shove an int into a pointer and back out
1531 again. This avoids compiler warnings.
1532
1533 * defs.h (alloca): Declare as void *, not char *, on hpux.
1534 Don't prototype it, just declare the return type.
1535
1536 Sun Feb 6 03:25:41 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1537
1538 * config/i386/tm-sun386.h, config/i386/tm-symmetry.h
1539 (REGISTER_CONVERT_TO_RAW): Add missing backslash.
1540
1541 Sat Feb 5 08:03:41 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1542
1543 * remote-mips.c (mips_fetch_registers): If regno is FP_REGNUM or
1544 ZERO_REGNUM, just read it as zero without talking to the board.
1545
1546 * config/i386/tm-i386aix.h (REGISTER_CONVERT_TO_RAW): Add missing
1547 backslash.
1548 * i386-tdep.c (i386_extract_return_value): Pass TYPE_LENGTH (type)
1549 to store_floating, not nonexistent variable len.
1550
1551 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
1552 New functions.
1553 (mips_store_word): Change calling convention to return errors, and
1554 to provide old contents if the caller wants it.
1555 (mips_xfer_memory): Deal with errors from mips_store_word.
1556 * config/mips/tm-idt.h, config/mips/tm-idtl.h: Remove BREAKPOINT
1557 define now that remote-mips.c doesn't use BREAKPOINT.
1558
1559 * remote-mips.c (mips_create_inferior): Call warning if arguments
1560 specified, and then execute "set args" command. Call error, not
1561 mips_error, if executable file not specified.
1562
1563 * remote-e7000.c: Replace "snoop" command (e7000_noecho) with
1564 remote_debug.
1565
1566 * config/rs6000/tm-rs6000.h (STORE_STRUCT_RETURN): Don't cast
1567 to unsigned int.
1568
1569 Sat Feb 5 05:27:05 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1570
1571 * value.h (print_longest): Rename "value" to "val" in prototype
1572 declaration because some compilers don't like arguments whose
1573 names are the same as types.
1574 * remote.c (remote_xfer_memory): Cast "myaddr" to unsigned char *
1575 before passing it to remote_*_bytes.
1576
1577 Fri Feb 4 15:53:18 1994 Steve Chamberlain (sac@cygnus.com)
1578
1579 * h8500-tdep.c (saved_pc_after_call): The size of the
1580 pc is memory model dependent. (segmented_command,
1581 unsegmented_command, _initialize_h8500_tdep): New commands to
1582 change memory model.
1583 * remote-e7000.c (_initialize_remote_e7000): Change name of snoop
1584 command.
1585 * remote-hms.c (hms_load): Remove breakpoints when loaded.
1586 (hms_wait): Use new status structure
1587 (hms_open): Push the target here. (hms_before_main_loop): Not
1588 here. (supply_val, hms_fetch_register, hms_store_register): Cope
1589 with H8/500 names too. (hms_fetch_register): Take out REGISTER_TYPE.
1590 * sh-tdep.c (show_regs, initialize_sh_tdep): New command to print
1591 all registers in a compact way.
1592
1593 Fri Feb 4 07:41:13 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
1594
1595 * config/rs6000/tm-rs6000.h: Declare rs6000_struct_return_address
1596 as CORE_ADDR to match definition in rs6000-tdep.c.
1597
1598 Fri Feb 4 01:14:20 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1599
1600 * dwarfread.c (process_dies): Skip nested TAG_compile_unit DIEs.
1601 * dwarfread.c (add_partial_symbol): Do not enter opaque aggregate
1602 definitions into the psymtab.
1603
1604 Thu Feb 3 12:38:58 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1605
1606 * m68k-stub.c: Treat mc68332 like mc68020 most places. Provide
1607 a special exceptionSize for the 68332.
1608
1609 * remote-udi.c (udi_attach): If no arguments, print error.
1610
1611 Thu Feb 3 17:34:05 1994 Fred Fish (fnf@cygnus.com)
1612
1613 * Makefile.in (VERSION): Bump to 4.12.1
1614 * NEWS, README: Update to match 4.12 release.
1615
1616 Thu Feb 3 12:38:58 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1617
1618 * command.c (empty_sfunc): New function.
1619 (add_set_cmd): Use it instead of not_just_help_class_command.
1620 (not_just_help_class_command): Change calling convention back to
1621 what it was before yesterday's change.
1622
1623 * stabsread.c (read_sun_builtin_type): Skip the semicolon at the end
1624 of the type if present.
1625
1626 Wed Feb 2 11:16:45 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1627
1628 * printcmd.c (decode_format): Don't blithely set the size for
1629 an address to 'w'. Make it 'g' or 'h', depending on TARGET_PTR_BIT.
1630
1631 * defs.h: Just typedef CORE_ADDR to bfd_vma. Include bfd.h.
1632 If BFD64, make a LONGEST a BFD_HOST_64_BIT.
1633 * defs.h (longest_to_int): Don't depend on CC_HAS_LONG_LONG; instead
1634 always just check against INT_MIN and INT_MAX (this also fixes things
1635 if sizeof (long) > sizeof (int), e.g. Alpha).
1636 * config/pa/tm-hppa.h, config/i386/sun386.h, config/rs6000/tm-rs6000.h:
1637 Don't define LONGEST or BUILTIN_TYPE_LONGEST.
1638 * gdbtypes.h: Remove BUILTIN_TYPE_LONGEST and
1639 BUILTIN_TYPE_UNSIGNED_LONGEST.
1640 * language.h, c-lang.c, ch-lang.c, m2-lang.c, language.c: Remove
1641 longest_int and longest_unsigned_int.
1642 * value.h (struct value): Just align to LONGEST, rather than worrying
1643 about CC_HAS_LONG_LONG.
1644 * valarith.c (value_binop): Figure out type ourself based on
1645 sizeof (LONGEST) rather than relying on BUILTIN_TYPE_LONGEST. The
1646 point is that we don't depend on CC_HAS_LONG_LONG anymore.
1647 * valprint.c (val_print_type_code_int): Just call
1648 extract_unsigned_integer directly, rather than going through
1649 unpack_long.
1650 * printcmd.c (decode_format): Remove code which would sometimes
1651 change 'g' size to 'w' for integers. print_scalar_formatted handles
1652 printing huge integers well enough, thank you.
1653
1654 * command.c (add_set_cmd, not_just_help_class_command): Change
1655 to make this the sfunc, not cfunc, since that is how we call it.
1656 * command.h: Comment difference between sfunc and cfunc.
1657 * demangle.c (set_demangling_command): Add third arg since that
1658 is how it is called.
1659 (_initialize_demangler): Use sfunc, not cfunc, for
1660 set_demangling_command, since that is how it is called.
1661 Remove show_demangling_command; it has no effect.
1662
1663 * command.c (shell_escape): Report errors correctly (with error
1664 message from strerror).
1665
1666 Wed Feb 2 14:35:41 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1667
1668 * xcoffread.c (read_xcoff_symtab): Change CSECT_LEN to use
1669 x_scnlen.l rather than x_scnlen to match corresponding change in
1670 coff/internal.h.
1671
1672 Wed Feb 2 11:16:45 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1673
1674 * gdbtypes.h, ch-typeprint.c, ch-valprint.c:
1675 Change comments regarding TYPE_CODE_BOOL.
1676 * language.c (boolean_type): Always return 1 for TYPE_CODE_BOOL,
1677 regardless of the language.
1678 (value_true): Just call value_logical_not regardless of language.
1679 * coffread.c (coff_read_enum_type), stabsread.c (read_enum_type):
1680 Remove #if 0'd code which makes some enums TYPE_CODE_BOOL.
1681 * language.h: Improve comment for la_builtin_type_vector.
1682 * m2-lang.c (_initialize_m2_language): Don't add any fields to
1683 builtin_type_m2_bool.
1684
1685 Tue Feb 1 17:13:32 1994 Kevin Buettner (kev@cujo.geg.mot.com)
1686
1687 * config/m88k/{tm-delta88.h,tm-delta88v4.h}, m88k-tdep.c:
1688 Define IN_SIGTRAMP and backtrace correctly through signal handlers.
1689
1690 Tue Feb 1 22:13:25 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1691
1692 * procfs.c (wait_fd): Handle EINTR error return from PIOCWSTOP ioctl
1693 by restarting the ioctl.
1694
1695 Tue Feb 1 16:16:25 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1696
1697 * target.h (target_wait): Add comment about calling
1698 return_to_top_level.
1699
1700 Tue Feb 1 12:21:00 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1701
1702 * coffread.c (read_one_sym): bfd_coff_swap_aux_in now takes
1703 additional arguments.
1704 * xcoffread.c (read_xcoff_symtab, read_symbol_lineno): Likewise.
1705
1706 Mon Jan 31 16:10:41 1994 Stu Grossman (grossman at cygnus.com)
1707
1708 * sparc-stub.c: Remove unnecessary #include of memory.h.
1709
1710 Mon Jan 31 12:12:34 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1711
1712 * mips-tdep.c: Remove code which sets saved_regs from
1713 init_extra_frame_info and put it in new function mips_find_saved_regs.
1714 (READ_FRAME_REG): Remove macro and replace uses with the expansion.
1715 * mips-tdep.c, config/mips/tm-mips.h: When examining ->saved_regs,
1716 check if it is NULL and call mips_find_saved_regs if so.
1717
1718 * remote-mips.c: Use unfiltered, not filtered, output most places.
1719
1720 * blockframe.c (get_prev_frame_info): Detect and stop an infinite
1721 backtrace. Revise comments.
1722
1723 Mon Jan 31 09:40:33 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1724
1725 * mdebugread.c (parse_procedure): Remove _sigtramp kludges for
1726 alpha and irix. The _sigtramp case has to be handled properly
1727 in the tdep files if we have no ecoff debugging info.
1728 * alpha-tdep.c (alpha_frame_saved_pc, alpha_frame_chain),
1729 mips-tdep.c (mips_frame_saved_pc): Handle signal handler frames
1730 without PC_REGNUM kludge.
1731 * mdebugread.c (fixup_sigtramp), mips-tdep.c (read_next_frame_reg):
1732 Clean up handling of mips sigtramp frames, improve comments.
1733
1734 Sat Jan 29 23:25:57 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
1735
1736 * paread.c (read_unwind_info): Fix typo.
1737
1738 * paread.c (pa_symtab_read): Update the "check_strange_names"
1739 filter to match GCC's current output. Filter out section symbols
1740 (which the HP linker sometimes puts in the wrong place).
1741
1742 Sat Jan 29 07:44:59 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
1743
1744 * serial.h (SERIAL_SET_TTY_STATE): Comment return value.
1745
1746 * Makefile.in (TAGS): Just echo one line, rather than the whole thing.
1747
1748 * Makefile.in: Remove all references to sparcly-nat.c.
1749
1750 * Makefile.in (HFILES_NO_SRCDIR): Include dcache.h remote-utils.h
1751 remote-sim.h directly, rather than via $(remote_utils_h). This avoids
1752 duplicating serial.h and target.h.
1753
1754 * Makefile.in: Don't set M_INSTALL and M_UNINSTALL. These variables
1755 are not used anywhere (a 5 Oct 1993 change removed the uses).
1756
1757 * config/m68k/monitor.mt (TDEPFILE): Add remote-es.o.
1758 * config/m68k/es1800.mt: Add comment.
1759 * remote-es.c: Extensive changes to update to current conventions.
1760
1761 * ser-unix.c (wait_for, hardwire_readchar) [HAVE_TERMIO, HAVE_TERMIOS]:
1762 If the timeout is too big to fit in c_cc[VTIME], then do multiple reads
1763 to achieve the desired timeout.
1764 * serial.h (serial_t): Add field timeout_remaining.
1765
1766 Fri Jan 28 08:45:02 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
1767
1768 * c-exp.y (yylex): Reenable nested type code.
1769
1770 Fri Jan 28 15:40:33 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1771
1772 * a29k-tdep.c (examine_tag): Add comment regarding argcount.
1773
1774 * remote-mips.c (mips_ops): Fix docstring.
1775
1776 * remote-bug.c (bug_ops): Remove spurious newline from docstring.
1777
1778 * config/m68k/tm-monitor.h: Changes to bring this into accordance
1779 with the old tm-m68k-em.h:
1780 (GDBINIT_FILENAME, DEFAULT_PROMPT): Remove.
1781 (HAVE_68881): Don't undefine; HAVE_68881 is obsolete.
1782 (REGISTER_NAMES): Don't muck with it; what tm-m68k.h has is fine.
1783 Add FIXME regarding GET_LONGJMP_TARGET.
1784
1785 * remote-udi.c (udi_close, udi_detach, udi_kill): Add comments.
1786 * infptrace.c (kill_inferior): Add comments.
1787 * main.c (quit_command): Call target_close after we kill or
1788 detach.
1789 * remote-udi.c (udi_close): Don't error() if QUITTING.
1790
1791 Fri Jan 28 11:55:52 1994 Rob Savoye (rob@darkstar.cygnus.com)
1792
1793 * configure.in: Make m68k-coff and aout add monitor support in
1794 addition to the standard serial support.
1795
1796 Fri Jan 28 08:45:02 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
1797
1798 * mdebugread.c (psymtab_to_symtab_1): Don't complain on stLabel with
1799 index indexNil.
1800
1801 Fri Jan 28 10:40:34 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1802
1803 * config/pa/tm-hppa.h: Define macro SMASH_TEXT_ADDRESS.
1804 * elfread.c (record_minimal_symbol_and_info),
1805 dwarfread.c (process_dies), paread.c (pa_symtab_read): Use it.
1806
1807 Thu Jan 27 15:12:23 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1808
1809 * i386-stub.c: Add ".text" right before "mem_fault:".
1810
1811 * main.c (baud_rate): Add FIXME comment about printing -1 value.
1812
1813 * remote-utils.c (usage): Fix message to be accurate and conform
1814 more closely to normal conventions.
1815
1816 * remote-utils.c (gr_files_info): Have the exec_bfd test control
1817 whether to show information about exec_bfd, and not control whether
1818 to show information about device and speed.
1819
1820 * remote-utils.c (gr_open): If sr_get_device returns NULL, give
1821 usage message, don't dump core.
1822
1823 * remote-bug.c (bug_write_memory): Use alloca, not GCC extension
1824 for variable size array.
1825 (bug_fetch_register, bug_store_register): Rename "value" to
1826 "fpreg_buf" because some compilers don't like variables whose
1827 names are the same as types.
1828 (bug_store_register): Use a cast when converting char * to
1829 unsigned char *.
1830
1831 * symmisc.c (maintenance_print_symbols): Don't refer to the name
1832 of the command in error message (the text was referring to the old
1833 name of the command).
1834
1835 * symmisc.c (dump_symtab): Fix args to fprintf_filtered.
1836
1837 * c-typeprint.c (c_type_print_base): Have SHOW == 0 mean to print
1838 full details on structure elements without names. This partially
1839 reverts the changes of 1 Jul 1993 and 31 Aug 1993; I think this aspect
1840 of those changes was accidental.
1841
1842 * stack.c (parse_frame_specification): If SETUP_ARBITRARY_FRAME is
1843 defined, make it an error to specify a single argument which is not
1844 a frame number.
1845
1846 * Makefile.in (version.c), main.c (print_gdb_version): Use
1847 host_alias and target_alias, not host_canonical and
1848 target_canonical, to print configuration.
1849
1850 Wed Jan 26 10:57:21 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1851
1852 * parse.c (write_exp_msymbol): Use new type msymbol_addr_type instead
1853 of builtin_type_long. It is necessary to get a type which is
1854 TARGET_PTR_BIT bits in size; builtin_type_long might not be big enough.
1855
1856 Fix many sins which will come up in 32 bit x 64 bit GDB, and
1857 various miscellaneous things discovered in the process:
1858 * printcmd.c, defs.h (print_address_numeric): New function.
1859 * c-valprint.c (c_val_print), ch-valprint.c (chill_val_print)
1860 breakpoint.c (describe_other_breakpoints, breakpoint_1, mention),
1861 cp-valprint.c (cplus_print_value), infcmd.c (jump_command),
1862 printcmd.c, stack.c, symfile.c, symmisc.c, valprint.c:
1863 Use it.
1864 * utils.c, defs.h (gdb_print_address): New function.
1865 * expprint (dump_expression), gdbtypes.h: Use it.
1866 * breakpoint.c (describe_other_breakpoints),
1867 symmisc.c (dump_symtab, print_symbol):
1868 Use filtered not unfiltered I/O.
1869 (remove_breakpoints): Remove BREAKPOINT_DEBUG code. Might as well
1870 just run gdb under a debugger for this (and it had problems with
1871 printing addresses, how to print b->shadow, etc.).
1872 * buildsym.c (make_blockvector), core.c (memory_error),
1873 exec.c (print_section_info), maint.c (print_section_table),
1874 mdebugread.c (parse_procedure), solib.c, source.c, symfile.c,
1875 symmisc.c, symtab.c, valops.c, valprint.c, xcoffexec.c:
1876 Add comments saying code is broken. Marked with "FIXME-32x64".
1877 * dbxread.c (process_one_symbol), partial-stab.h (default),
1878 remote-vx.c (vx_run_files_info):
1879 Don't cast int being passed to local_hex_string.
1880 * symmisc.c (print_symbol): Don't cast long being passed to %lx.
1881 * symtab.h (general_symbol_info): Add comment about SYMBOL_VALUE
1882 only being a long.
1883 * symmisc.c (print_symbol): Print "offset" in message for LOC_ARG
1884 and LOC_LOCAL.
1885 * printcmd.c (print_address): Remove #if 0 code with ADDR_BITS_REMOVE.
1886 * source.c: Include <sys/types.h> regardless of USG.
1887
1888 Tue Jan 25 12:58:26 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1889
1890 * valops.c (value_assign): Set `type' after coercing toval.
1891 * c-valprint.c (c_val_print), ch-valprint.c (chill_val_print):
1892 Use extract_unsigned_integer to get the address of a reference.
1893
1894 Tue Jan 25 11:31:53 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1895
1896 * stabsread.c (STABS_CONTINUE, error_type), partial-stab.h:
1897 AIX can use ? instead of \ for continuation. Deal with it.
1898
1899 * paread.c (read_unwind_info): Just assign to objfile->obj_private,
1900 not OBJ_UNWIND_INFO. Assigning to a cast is a GCC-ism which
1901 the HP compiler in ANSI mode doesn't like.
1902
1903 * main.c: When defaulting HAVE_SIGSETMASK based on USG, just do it
1904 based on USG, rather than defining HAVE_SIGSETMASK to an
1905 expression containing defined. Having a macro used in #if expand
1906 to an expression containing "defined" is undefined according to
1907 ANSI, and the HP compiler in ANSI mode doesn't do what we wanted
1908 it to.
1909
1910 Mon Jan 24 20:51:29 1994 John Gilmore (gnu@cygnus.com)
1911
1912 * sparc-nat.c (fetch_inferior_registers, store_inferior_registers):
1913 Clean up the changes of 11 Jan, as recommended by Peter Schauer.
1914
1915 Fri Jan 21 19:10:44 1994 Per Bothner (bothner@kalessin.cygnus.com)
1916
1917 * ch-exp.y (match_string_literal): Allow a zero-length string.
1918 * ch-lang.c (chill_printstr): Don't print zero-length string funny.
1919
1920 Sat Jan 22 17:08:48 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1921
1922 * i386aix-nat.c (i386_float_info): Reverse order of registers before
1923 passing them to print_387_status.
1924 (print_387_status): Don't subtract top from 7 before using it.
1925 * i387-tdep.c: Remove comment about AIX wanting "top" subtracted
1926 from 7; the above explains it.
1927
1928 Sat Jan 22 20:25:11 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1929
1930 * mips-tdep.c (init_extra_frame_info): Use frame relative stack
1931 pointer value when fixing up the frame at the start of a function.
1932
1933 Sat Jan 22 12:29:13 1994 Stu Grossman (grossman at cygnus.com)
1934
1935 * lynx-nat.c (fetch_core_registers): Load the I & L regs for the
1936 Sparc from the stack.
1937
1938 Sat Jan 22 08:30:42 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
1939
1940 * remote-mips.c (mips_initialize): Clear mips_initializing via
1941 cleanup chain, not directly.
1942
1943 * ser-unix.c (wait_for) [HAVE_TERMIO, HAVE_TERMIOS]: Make a timeout
1944 of -1 mean forever, like in the HAVE_SGTTY case. Warn if we are
1945 munging the timeout due to the limited range of c_cc[VTIME].
1946
1947 * fork-child.c, inferior.h (fork_inferior): New argument shell_file.
1948 * procfs.c (procfs_create_inferior), inftarg.c (child_create_inferior),
1949 m3-nat.c (m3_create_inferior): Pass it.
1950 * procfs.c: Remove ptrace function. It was declared in a way which
1951 conflicted with the prototype in unistd.h on Solaris.
1952
1953 Sat Jan 22 01:37:40 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1954
1955 * sparc-tdep.c (frame_saved_pc): Get the pc from the saved pc
1956 in the sigcontext if it is a signal trampoline frame.
1957 * config/sparc/tm-sun4sol2.h (IN_SIGTRAMP, SIGCONTEXT_PC_OFFSET):
1958 Define for Solaris2.
1959
1960 Sat Jan 22 00:34:47 1994 Stu Grossman (grossman at cygnus.com)
1961
1962 * sparc-tdep.c, lynx-nat.c, config/sparc/tm-sparc.h,
1963 config/sparc/tm-sparclynx.h: Move defs of FRAME_SAVED_I0/L0 to
1964 tm-sparc.h so they can be overridden if necessary.
1965
1966 Fri Jan 21 17:49:28 1994 Stu Grossman (grossman at cygnus.com)
1967
1968 * lynx-nat.c: Add Sparc support.
1969 * sparcly-nat.c: Remove. It's useless.
1970 * config/sparc/nm-sparclynx.h: Rewrite.
1971 * config/sparc/sparclynx.mh (NATDEPFILES): Replace sparcly-nat.o
1972 with lynx-nat.o
1973 * config/sparc/tm-sparclynx.h: Rewrite.
1974
1975 Fri Jan 21 19:08:48 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1976
1977 * rs6000-pinsn.c: Use the new disassembler in the opcodes
1978 directory. Old code was discarded, since the new opcode table has
1979 a different format.
1980
1981 Fri Jan 21 14:28:30 1994 Fred Fish (fnf@cygnus.com)
1982
1983 * Makefile.in (realclean): Remove info files per make-stds.texi.
1984
1985 Fri Jan 21 12:47:53 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1986
1987 * dbxread.c (end_psymtab): Only patch psymtab textlow and texthigh
1988 if N_SO_ADDRESS_MAYBE_MISSING is defined.
1989 * config/sparc/tm-sun4sol2.h: Define it.
1990
1991 Thu Jan 20 15:04:24 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1992
1993 * printcmd.c (print_address_symbolic): Unconditionally use msymbol
1994 if we did not find a symbol.
1995
1996 Fri Jan 21 08:20:18 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
1997
1998 * infptrace.c (child_xfer_memory): Only use if CHILD_XFER_MEMORY
1999 is not defined.
2000
2001 * hppab-nat.c (call_ptrace): Delete redundant function.
2002 (kill_inferior, attach, detach, child_resume): Likewise.
2003 (child_xfer_memory): Likewise.
2004
2005 * hppah-nat.c (call_ptrace): Delete redundant function.
2006 (kill_inferior, attach, detach, child_resume): Likewise.
2007
2008 * config/pa/hppabsd.mh (NATDEPFILES): Add infptrace.o.
2009
2010 * config/pa/hppahpux.mh (NATDEPFILES): Add infptrace.o.
2011
2012 * config/pa/nm-hppab.h (FETCH_INFERIOR_REGISTERS): Define.
2013
2014 * config/pa/nm-hppah.h (FETCH_INFERIOR_REGISTERS): define.
2015 (CHILD_XFER_MEMORY): Define.
2016 (PT_*): Define so that generic infptrace.c code can be used.
2017
2018 Fri Jan 21 09:23:33 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2019
2020 * xcoffread.c (xcoff_symfile_read): Make second parameter a
2021 struct section_offsets *, not a (nonexistent) struct section_offset *.
2022
2023 * xcoffread.c (read_xcoff_symtab): Make main_aux just a union
2024 internal_xcoff_symtab, not an array of one of them. Change lots of
2025 "main_aux" to "&main_aux" and so on.
2026
2027 * coffread.c, xcoffread.c: Include <coff/internal.h>
2028 before "symfile.h".
2029
2030 Thu Jan 20 17:30:55 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2031
2032 * coffread.c (coff_getfilename): Make it not static.
2033
2034 * xcoffread.c (read_xcoff_symtab): complain() not abort().
2035
2036 * xcoffread.c (struct coff_symbol): Rename c_nsyms to c_naux (removes
2037 a completely gratuitous difference between xcoffread.c and coffread.c).
2038
2039 Wed Jan 19 15:09:44 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2040
2041 * infrun.c (wait_for_inferior): Don't set frame for
2042 step_resume_breakpoint for IN_SIGTRAMP cases.
2043
2044 * infrun.c (wait_for_inferior), breakpoint.h (struct bpstat_what),
2045 breakpoint.c (bpstat_what): Move step_resume from its own field of
2046 the struct bpstat_what into the main_action. Make it override
2047 other breakpoints. This is a conservative change in the sense
2048 that before the step resume breakpoint was a breakpoint.c
2049 breakpoint, hitting the step resume breakpoint overrode even
2050 calling bpstat_stop_status.
2051
2052 Wed Jan 19 12:40:25 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2053
2054 * infrun.c (normal_stop): Set stop_pc after popping the dummy frame
2055 in case execution was stopped in the called function.
2056 * stack.c (print_frame_info, frame_info): If backtracing through
2057 a call dummy, handle the starting source line number on a line
2058 boundary like backtracing through sigtramp.
2059 * sparc-tdep.c (sparc_frame_find_saved_regs): Get frame address
2060 for call dummy frame right. Remove old test for dummy frame,
2061 it has been unused at least since gdb-3.5.
2062 * sparc-tdep.c (sparc_push_dummy_frame): Set return address register
2063 of the dummy frame.
2064
2065 Tue Jan 18 16:16:35 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2066
2067 * infcmd.c (signal_command): Accept 0 as legitimate signal number.
2068
2069 Tue Jan 18 14:09:25 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2070
2071 * infrun.c (signals_info), target.c (target_signal_from_name):
2072 Use ugly casts to avoid enumvar < enumvar or enumvar++.
2073
2074 Mon Jan 17 22:00:15 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2075
2076 * ser-unix.c (hardwire_noflush_set_tty_state): Don't muck with ICANON.
2077 * inflow.c (terminal_ours_1): When discussing how to deal with the
2078 tty state, make note of query() as well as readline.
2079
2080 * infrun.c (_initialize_infrun): Add TARGET_SIGNAL_POLL to list of
2081 signals for which stop and print are cleared by default.
2082
2083 Mon Jan 17 20:00:51 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
2084
2085 * config/pa/tm-hppa.h (unwind_table_entry): Use one of the
2086 reserved fields to hold a stub unwind entry type. Fix typo.
2087 (stub_unwind_entry): New structure for raw stub unwind entries.
2088 (stub_unwind_types): The types of stubs we may encounter.
2089 (UNWIND_ENTRY_SIZE, STUB_UNWIND_ENTRY_SIZE): New defines.
2090 * hppa-tdep.c (rp_saved): Use additional information provided
2091 by linker stub unwind descriptors.
2092 (frameless_function_invocation): Likewise.
2093 (frame_chain_valid): Likewise.
2094 * paread.c (compare_unwind_entries): New function for sorting
2095 unwind table entries.
2096 (read_unwind_info): Rewrite to remove dependency on host endianness.
2097 Read in data from the $UNWIND_END$ subspace which contains linker
2098 stub unwind descriptors. Merge that data into the basic unwind
2099 table.
2100
2101 * hppab-nat.c (_initialize_kernel_u_addr): Delete unwanted functions.
2102
2103 Mon Jan 17 22:00:15 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2104
2105 * xcoffread.c (read_xcoff_symtab, case C_FILE): Accept the name
2106 from either the symbol name or the auxent.
2107 * coffread.c, symfile.h (coff_getfilename): Renamed from getfilename,
2108 no longer static.
2109
2110 Mon Jan 17 13:35:01 1994 Fred Fish (fnf@cygnus.com)
2111
2112 * Makefile.in (ALLPARAM): Change irix5.h to nm-irix5.h.
2113
2114 Mon Jan 17 12:35:42 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2115
2116 * README: Update notes for alpha port.
2117
2118 Mon Jan 17 11:15:57 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2119
2120 * i960-tdep.c (i960_fault_to_signal): Return TARGET_SIGNAL_ILL
2121 for operation fault, constraint fault, and type fault.
2122
2123 Sun Jan 16 12:46:01 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2124
2125 * Makefile.in (init.c): Add comment explaining formatting conventions.
2126
2127 * c-exp.y (parse_number): Assign to temporary between the right
2128 shifts, to work around a bug in the SCO compiler.
2129
2130 * Makefile.in (ALLCONFIG, ALLPARAM, ALLDEPFILES, HFILES_NO_SRCDIR):
2131 Add various files which were added to GDB recently.
2132
2133 * xcoffread.c (process_xcoff_symbol): Only change 'V' to 'S' if not
2134 within_function.
2135
2136 * Makefile.in: Add mostlyclean target.
2137
2138 Sat Jan 15 10:20:13 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2139
2140 * Version 4.11.4.
2141
2142 Sat Jan 15 18:27:34 1994 Per Bothner (bothner@kalessin.cygnus.com)
2143
2144 * main.c (show_commands): Make return type of extern
2145 history_get be HIST_ENTRY, rather than struct _hist_entry.
2146 (The latter loses with the upcoming merged readline.)
2147
2148 Sat Jan 15 10:20:13 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2149
2150 * minsyms.c (prim_record_minimal_symbol_and_info): Make tempstring
2151 const char *, not char *.
2152
2153 * symtab.h (struct symbol): Make section short, not unsigned short.
2154
2155 * symtab.c (lookup_symbol): Add comment about QUIT here.
2156
2157 * utils.c (fputs_unfiltered): Call fputs, not fputs_maybe_filtered.
2158
2159 * c-exp.y (parse_number): Check for overflow regardless of range
2160 checking. Fix overflow check to use unsigned LONGEST, not
2161 unsigned int.
2162
2163 * c-exp.y (parse_number): Make it so that integer constants are
2164 builtin_type_long_long if builtin_type_long isn't big enough or if
2165 an "LL" suffix is used. Properly handle "UL" or "LU" suffixes.
2166
2167 * c-typeprint.c (c_type_print_varspec_suffix, case TYPE_CODE_FUNC):
2168 Print our "()" first, then recurse for the target type.
2169
2170 Fri Jan 14 21:55:39 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2171
2172 * remote-udi.c (udi_create_inferior): Quote empty execfile argument.
2173
2174 * gdbserver/low-lynx.c: Include <sys/wait.h> not "/usr/include/wait.h".
2175
2176 Fri Jan 14 14:17:06 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2177
2178 * utils.c (request_quit): Re-establish signal handler regardless
2179 of USG.
2180
2181 * config/mips/xm-irix4.h: Define HAVE_TERMIOS.
2182
2183 Fri Jan 14 21:55:39 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2184
2185 * i960-tdep.c: Include target.h.
2186
2187 Fri Jan 14 17:12:28 1994 Stan Shebs (shebs@andros.cygnus.com)
2188
2189 * lynx-nat.c (sys/wait.h): Don't use absolute pathname.
2190
2191 Fri Jan 14 11:06:10 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
2192
2193 * lynx-nat.c (child_wait): Fix thinkos in struct target_waitstatus
2194 changes (status -> ourstatus; declare status, etc.).
2195 * config/nm-lynx.h: Fix child_wait prototype and include target.h.
2196
2197 Fri Jan 14 14:17:06 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2198
2199 * Makefile.in (ALLPARAM): Add config/nm-lynx.h.
2200
2201 Fri Jan 14 11:49:44 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2202
2203 * remote-mips.c (mips_request, mips_wait): Correct prototypes.
2204
2205 Fri Jan 14 11:37:17 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2206
2207 * config/i386/xm-linux.h: Define HAVE_TERMIOS.
2208
2209 Fri Jan 14 01:04:36 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2210
2211 * config/alpha/tm-alpha.h (CALL_DUMMY): Improve comment.
2212
2213 Thu Jan 13 10:32:38 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2214
2215 * remote-vx.c (vx_wait): Only call i960_fault_to_signal if I80960
2216 is defined. Otherwise just report TARGET_SIGNAL_UNKNOWN.
2217
2218 * mips-tdep.c (mips_push_arguments): Byteswap struct_addr before
2219 writing it.
2220
2221 Add search to target vector (#if 0'd until after 4.12):
2222 * target.h (to_search, target_search): Add.
2223 * gdbcore.h, core.c (generic_search): Add.
2224 * remote.c (remote_search): Add.
2225 * a29k-tdep.c (init_frame_info): Use target_search to find traceback
2226 tag.
2227
2228 * printcmd.c (print_address_symbolic): If set print fast-symbolic-addr
2229 is on, call find_pc_function rather than relying just on the minimal
2230 symbols (probably only matters for symbol readers which don't put
2231 statics in the minimal symbols, but changing this strikes me as
2232 not conservative enough).
2233 Initialize name_location in all cases.
2234 If no symbol and no msymbol, don't print anything symbolic.
2235
2236 * a29k-tdep.c (push_dummy_frame): Add comment about saving lr0.
2237
2238 Wed Jan 12 20:53:16 1994 John Gilmore (gnu@cygnus.com)
2239
2240 * printcmd.c (print_address_symbolic): Make it search the
2241 symtabs for variables as well as functions. Add `set print
2242 fast-symbolic-addr' and default it to fast (the old way).
2243 Print line numbers for data items as well as functions.
2244
2245 * symtab.c (find_addr_symbol): Return the symtab and the symbol
2246 address, if a symbol is found (take two more args pointing to
2247 where to store these results).
2248
2249 * symtab.h (find_addr_symbol): Add prototype.
2250
2251 Wed Jan 12 19:32:11 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2252
2253 * objfiles.h: Fix comments to reflect the fact that the phrase
2254 "top of stack" always refers to where the pushing and popping takes
2255 place, regardless of whether it is at the highest or lowest address.
2256
2257 Wed Jan 12 13:23:37 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2258
2259 * mdebugread.c (parse_symbol): Do not set TYPE_TAG_NAME for
2260 compiler generated tag names.
2261 * mdebugread.c (parse_type): Handle cross references to qualified
2262 aggregate types.
2263 * valops.c (value_struct_elt): Improve error message if the
2264 address of a method is requested from an object instance.
2265 * valops.c (search_struct_method): Make name_matched non-static
2266 to get it initialized correctly.
2267 * config/i386/nm-i386sco.h (CANNOT_STORE_REGISTER): Define to
2268 exclude segment register which are not writable on newer SCO versions.
2269
2270 Wed Jan 12 14:44:45 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2271
2272 * go32-xdep.c: Remove unused function uerror.
2273 (sigsetmask): Declare return type. Declare argument (to match the
2274 way it is called). Explicitly return 0.
2275
2276 Wed Jan 12 01:44:25 1994 John Gilmore (gnu@cygnus.com)
2277
2278 * symtab.h (struct symbol, general_symbol_info, minimal_symbol,
2279 partial_symbol): Shrink the storage sizes of symbols, by making
2280 enums into 1-byte bitfields when compiled __GNUC__, moving all the
2281 enums and small ints to the end of each struct to improve
2282 alignment, and switching the section number from int to unsigned
2283 short.
2284
2285 Wed Jan 12 00:16:26 1994 John Gilmore (gnu@cygnus.com)
2286
2287 * symtab.c (find_addr_symbol): New routine that will find the nearest
2288 symbol associated with an address. It does so by exhaustive
2289 search of the symtabs, so it's slow but complete.
2290
2291 Tue Jan 11 23:57:30 1994 John Gilmore (gnu@cygnus.com)
2292
2293 * coffread.c (read_coff_symtab): Set PC bounds of _globals_ symtab
2294 to [0,0] rather than [0, end of first source file]. This avoids
2295 problems with other parts of GDB looking for linetables in the
2296 _globals_ symtab. Eliminate variables num_object_files and
2297 first_object_file_end.
2298
2299 Tue Jan 11 00:53:46 1994 John Gilmore (gnu@cygnus.com)
2300
2301 * a29k-tdep.c (init_frame_info): Cast null arg to examine_tag.
2302 (pop_frame): Restore PC2 and LR0 from dummy frames.
2303 (push_dummy_frame): Save PC2 and LR0 into dummy frames.
2304 (setup_arbitrary_frame): Handle 3 args and set up real frames.
2305 * config/a29k/tm-a29k.h (FRAME_NUM_ARGS): Update comments.
2306 (DUMMY_FRAME_RSIZE): Add 2 longwords for PC2 and LR0.
2307 (SETUP_ARBITRARY_FRAME): Define.
2308
2309 Tue Jan 11 06:59:10 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
2310
2311 * infrun.c, config/mips/tm-irix5.h: Remove #if 0'd AT_FUNCTION_START.
2312
2313 Tue Jan 11 14:27:03 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2314
2315 * remote-udi.c (udi_resume): Correct prototype.
2316
2317 Tue Jan 11 11:10:30 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
2318
2319 * config/pa/tm-hppa.h (FRAME_FIND_SAVED_REGS): Call
2320 hppa_frame_find_saved_regs.
2321 * hppa-tdep.c (dig_fp_from_stack): Delete function.
2322 (prologue_inst_adjust_sp): New function.
2323 (is_branch, inst_saves_gr, inst_saves_fr): New functions.
2324 (skip_prologue): Completely rewrite to use unwind information.
2325 (hppa_frame_find_saved_regs): Likewise.
2326
2327 Tue Jan 11 06:59:10 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
2328
2329 * remote-mips.c (mips_wait): Use new function mips_signal_from_protocol
2330 to convert a signal number with appropriate bounds checking.
2331
2332 * remote-mips.c (mips_wait): Fix typos (0x177 -> 0177, 0x377 -> 0377).
2333
2334 Tue Jan 11 00:53:46 1994 John Gilmore (gnu@cygnus.com)
2335
2336 * stack.c (frame_info): If FRAME_FIND_SAVED_REGS isn't defined,
2337 print a newline to end the display anyway.
2338
2339 * sparc-tdep.c (sparc_pop_frame): Pop the fsr and csr (float and
2340 coprocessor status regs) when popping a frame. This fixes
2341 float exceptions that occur after calling inferior functions.
2342
2343 * sparc-nat.c (fetch_inferior_registers, store_inferior_registers):
2344 Read and write the fsr (float status register) to/from the child
2345 process along with the float regs. Remove Peter Schauer's change
2346 of May 24 '93, which has higher overhead and doesn't solve the
2347 real problem (which was that FSR wasn't being set).
2348
2349 Mon Jan 10 23:16:42 1994 John Gilmore (gnu@cygnus.com)
2350
2351 * a29k-tdep.c (examine_prologue): Don't worry if the ASGEQ
2352 stack overflow check isn't right after the register stack
2353 adjustment instruction. Metaware R2.3u compiler moves other
2354 things in front of it. This fix isn't perfect but is what's
2355 running.
2356
2357 Mon Jan 10 20:08:23 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
2358
2359 * c-valprint.c (c_val_print): Treat TYPE_CODE_RANGE like TYPE_CODE_INT.
2360
2361 * config/alpha/alpha-netware.mt: Rename to alpha-nw.mt for 14
2362 character filenames.
2363 * configure.in: Change accordingly.
2364
2365 Mon Jan 10 15:48:36 1994 Tom Lord (lord@rtl.cygnus.com)
2366
2367 * m68k-stub.c, sparc-stub.c: removed spurious introduction of
2368 _filtered io routines from these two files.
2369
2370 Fri Jan 7 12:42:45 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2371
2372 * config/i386/tm-i386v.h, config/m68k/tm-m68k.h, config/mips/tm-mips.h,
2373 config/vax/tm-vax.h (CALL_DUMMY_BREAKPOINT_OFFSET): Define.
2374 * mdebugread.c (parse_symbol): Handle enum sh.type produced by
2375 DEC c89.
2376 * mdebugread.c (add_line): Handle zero linenos produced by DEC c89.
2377
2378 Fri Jan 7 12:55:25 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2379
2380 * utils.c (print_sys_errmsg): Call gdb_flush (gdb_stdout) before
2381 printing to gdb_stderr.
2382
2383 * remote-udi.c (udi_kill): Don't close the connection, just set
2384 inferior_pid to zero.
2385 (udi_mourn): Call remove_breakpoints.
2386
2387 * remote-udi.c: Remove obsolete need_artificial_traps comment.
2388
2389 * i386b-nat.c (sregmap): If sEAX, etc., not defined, use tEAX, etc.
2390
2391 Thu Jan 6 07:17:53 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
2392
2393 * symtab.c (lookup_symbol): Don't try adding .c to the name.
2394
2395 * remote-bug.c: At the start of each section, reset srec_frame
2396 back to 160.
2397
2398 * target.h: Add TARGET_WAITKIND_LOADED and TARGET_WAITKIND_SPURIOUS.
2399 * target.c (store_waitstatus): Add CHILD_SPECIAL_WAITSTATUS hook.
2400 * infrun.c (wait_for_inferior): Replace SIGTRAP_STOP_AFTER_LOAD with
2401 code which looks for those two waitkinds. Use switch statement.
2402 * config/rs6000/tm-rs6000.h: Replace SIGTRAP_STOP_AFTER_LOAD with
2403 CHILD_SPECIAL_WAITSTATUS.
2404
2405 * procfs.c (procfs_wait): Fix argument name to match 4 Jan changes.
2406 * Move target_signal_from_host, target_signal_to_host, and
2407 store_waitstatus from inftarg.c to target.c. procfs needs them.
2408 * target.c: Include "wait.h" and <signal.h>.
2409 * target.h, infrun.c (proceed), proceed callers: Pass new code
2410 TARGET_SIGNAL_DEFAULT instead of -1. This avoids problems with
2411 enums being treated as unsigned and is cleaner.
2412 * infrun.c (signals_info): Don't print TARGET_SIGNAL_DEFAULT or
2413 TARGET_SIGNAL_0.
2414 * infcmd.c (signal_command), infrun.c (signals_info):
2415 Don't allow user to specify numeric equivalent of
2416 TARGET_SIGNAL_DEFAULT.
2417
2418 Tue Jan 4 15:34:36 1994 Stu Grossman (grossman@cygnus.com)
2419
2420 * config/alpha/alpha-netware.mt: New target support for Alpha
2421 running Netware.
2422 * configure.in: Add alpha-*-netware* target.
2423
2424 Tue Jan 4 14:51:35 1994 Stan Shebs (shebs@andros.cygnus.com)
2425
2426 * remote-mips.c (mips_wait): Fix ref to TARGET_WAITKIND_STOPPED.
2427
2428 Tue Jan 4 09:47:14 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2429
2430 * target.h: Add enum target_waitkind, enum target_signal, and
2431 struct target_waitstatus. Change status argument to target_wait to
2432 be struct target_waitstatus * instead of int *.
2433 * target.h, infrun.c, all targets: Change type of signal arguments
2434 to resume(), proceed(), and target_resume() from int to enum
2435 target_signal.
2436 * All targets (*_wait, *_resume): Change accordingly.
2437 * infcmd.c (program_info, signal_command), throughout infrun.c,
2438 * fork-child.c, solib.c, hppa-tdep.c, osfsolib.c: Use this stuff.
2439 * convex-xdep.c, convex-tdep.c: Add FIXME's (getting the Convex
2440 signal code stuff right with the new signals would be non-trivial).
2441 * inferior.h (stop_signal): Make it enum target_signal not int.
2442 * target.c, target.h (target_signal_to_string, target_signal_to_name,
2443 target_signal_from_name): New functions.
2444 * inftarg.c, target.h (target_signal_to_host, target_signal_from_host,
2445 store_waitstatus): New functions.
2446 * procfs.c (procfs_notice_signals): Use them.
2447 * i960-tdep.c (i960_fault_to_signal): New function, to replace
2448 print_fault.
2449 * config/i960/tm-i960.h: Don't define PRINT_RANDOM_SIGNAL.
2450
2451 * objfiles.c (build_objfile_section_table): Don't abort() if
2452 objfile->sections is already set.
2453
2454 * objfiles.c (add_to_objfile_sections): Check SEC_ALLOC not SEC_LOAD
2455 to match recent change to exec.c.
2456
2457 * Version 4.11.3.
2458
2459 * main.c (print_gdb_version): Change year to 1994.
2460
2461 * ChangeLog, ChangeLog-93: Split ChangeLog at 1994.
2462 * Makefile.in (NONSRC): Add ChangeLog-93.
2463
2464 Mon Jan 3 11:57:29 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2465
2466 * stabsread.c (read_type): Allow defining several type numbers
2467 at once (e.g. "(1,2)=(3,4)="...).
2468
2469 * stabsread.c (read_enum_type): Use TARGET_INT_BIT not sizeof (int).
2470
2471 * breakpoint.c (frame_in_dummy): Check PC as well as frame.
2472
2473 Mon Jan 3 02:47:03 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2474
2475 * mdebugread.c (psymtab_to_symtab_1): Only pass N_STAB symbols
2476 to process_one_symbol.
2477 * symtab.c (find_pc_psymbol): Search global_psymbols as well to
2478 avoid caching a bad endaddr in find_pc_partial_function.
2479
2480 Sun Jan 2 21:41:17 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2481
2482 * config/m68k/tm-sun3.h: Don't define BELIEVE_PCC_PROMOTION.
2483
2484 Sat Jan 1 04:35:23 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2485
2486 * infrun.c (wait_for_inferior): Do not step or step resume past
2487 the end of a one-line function we just stepped into.
2488
2489 For older changes see ChangeLog-93
2490 \f
2491 Local Variables:
2492 mode: indented-text
2493 left-margin: 8
2494 fill-column: 74
2495 version-control: never
2496 End:
This page took 0.084184 seconds and 4 git commands to generate.