3 * nlm/configure.in: ${gdb_host_cpu} defaults to ${host_cpu}.
5 * nlm/Makefile.in: Get rid of NWINCLUDES.
6 * config/{alpha,powerpc}/gdbserve.mt: Remove NWINCLUDES.
7 User should now configure with --with-headers.
11 * gdbserver/server.c (main): Silently accept all unrecognized
12 requests and send back a zero length acknowledge. That is what
13 *-stub.c do and is what remote.c expects.
17 * corelow.c (core_open): Copy the modified to_sections_end
18 vector from current_target to core_ops too.
20 * gdbserver/server.c (main): Silently accept query requests
21 and send back a zero length acknowledge.
25 * nlm/Makefile.in: Don't define NWINCLUDES.
26 * config/{alpha,powerpc}/gdbserve.mt: define NWINCLUDES.
30 * gdbserver/low-lynx.c (create_inferior): Pass all 4 args to ptrace.
34 * lynx-nat.c (child_wait): Use status.w_status, not status, in
35 arithmetic. status is a `union wait'.
37 * config/nm-lynx.h (PTRACE_ARG3_TYPE): Define to int, not char *.
39 * lynx-nat.c (child_wait): Pass fourth argument to ptrace.
43 * xcoffread.c (read_xcoff_symtab): Fix comment for yesterday's change.
47 * coffread.c (complete_symtab): If last_source_file is set upon
52 * xcoffread.c (read_xcoff_symtab, case C_FILE):
53 Set main_aux before using it.
55 * xcoffexec.c (exec_close): If quitting, don't call clear_symtab_users.
57 * xcoffread.c (read_xcoff_symtab): Process XTY_LD symbols we were
58 ignoring before. But continue to ignore XMC_DS.
62 * defs.h (misc_command_type): Remove trailing comma from
67 * hppa-tdep.c (frame_saved_pc): Fix thinko in code to dig saved pc
68 out of an interrupt frame.
72 * infcmd.c (do_registers_info) [INVALID_FLOAT]: Only use if
74 * values.c (unpack_double) [INVALID_FLOAT]: Ditto.
75 * mips-tdep.c (mips_print_register): Don't test float validity.
76 * config/a29k/tm-a29k.h, config/alpha/tm-alpha.h,
77 config/arm/tm-arm.h, config/convex/tm-convex.h,
78 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
79 config/i386/tm-i386v.h, config/i386/tm-sun386.h,
80 config/i960/tm-i960.h, config/m68k/tm-m68k.h,
81 config/m88k/tm-m88k.h, config/mips/tm-mips.h,
82 config/ns32k/tm-merlin.h, config/ns32k/tm-nbsd.h,
83 config/ns32k/tm-ns32km3.h, config/ns32k/tm-umax.h,
84 config/pa/tm-hppa.h, config/pyr/tm-pyr.h,
85 config/rs6000/tm-rs6000.h, config/sh/tm-sh.h,
86 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h (INVALID_FLOAT):
91 * TODO: Remove item about adding general multi-threaded stuff;
93 Remove item about specifying arbitrary locations of stack frames
94 (this works on some machines).
95 Remove item about debugging functions without a frame pointer
96 (this works on some machines).
97 Remove item about re-writing macros which handle frame chaining and
98 frameless functions. They have been re-written at least once
99 since that item was written.
100 Remove item about gdb catching SIGINT when attached; this is done.
101 Remove item about having list_command not read symbols--why bother?
105 * TODO: Append contents of Projects file.
110 * corelow.c (add_solib_stub): Remove copying of to_sections,
111 pass current_target to SOLIB_ADD. The Sep 10 change failed
112 if SOLIB_ADD errored out, or if SOLIB_ADD was trying to access
114 * corelow.c (core_open): After reading the shared libraries,
115 copy the modified to_sections vector from current_target to
116 core_ops, so that core_close can free it later.
117 * config/rs6000/nm-rs6000.h, rs6000-nat.c (xcoff_relocate_core):
118 Pass down target parameter from SOLIB_ADD and use it instead of
119 directly accessing core_ops.
123 * solib.c: *BSD systems need <a.out.h> to be included before
126 * i386b-nat.c: Add i386_float_info(), etc.
127 * config/i386/nm-nbsd.h: #define FLOAT_INFO.
129 * config/nm-nbsd.h: New file, for generic NetBSD native support.
130 * config/i386/nm-nbsd.h: Use it.
131 * config/sparc/nm-nbsd.h: Use it.
132 * config/ns32k/nm-nbsd.h: Use it.
134 * configure.in (i386-*-netbsd): Use config/i386/nbsd.m[ht].
135 (ns32k-*-netbsd): Use config/ns32k/nbsd.m[ht].
136 * config/i386/{nbsd.mh,nbsd.mt,nm-nbsd.h,tm-nbsd.h,xm-nbsd.h}:
137 New files, support for NetBSD/i386.
138 * config/ns32k/{nbsd.mh,nbsd.mh,nm-nbsd.h,tm-nbsd.h,xm-nbsd.h}:
139 New files, support for NetBSD/ns32k.
143 * .gdbinit: Add list-objfiles command.
145 * TODO: Reword item regarding NO_STD_REGS.
147 * coffread.c (record_minimal_symbol, coff_read_enum_type,
148 coff_read_struct_type): Allocate on symbol_obstack, not directly
149 via malloc/savestring.
153 * TODO: Add more items.
154 * tests: Remove the directory and all of its (obsolete) contents.
158 * coffread.c (init_stringtab): When copying length to stringtab,
159 use target format, not host format, since that is what the rest of
164 * Makefile.in: Removed prelude.o, i386-nlmstub.o, nlmstub.o,
165 nlmstub.nlm, and nlmstub targets. Removed NWSOURCE and
166 NWINCLUDES definitions.
167 * i386-nlmstub.c: Removed.
171 * dbxread.c (read_dbx_dynamic_symtab): Cast bfd_asymbol_name to
172 char * (from const char *) before assigning. Don't save string we
173 pass to record_minimal_symbol (it already saves it).
177 * gdbtk.tcl: Let ^U delete lines in the command window.
181 * cp-valprint.c (static_field_print): New variable, controls
182 printing of static members.
183 (_initialize_cp_valprint): New print set subcommand
184 "static-members". Turn on printing of static members by default.
185 (cp_print_value_fields): Print static members if necessary.
187 * solib.c: Remove inclusion of libelf.h and elf/mips.h.
188 (elf_locate_base): Use only standard BFD functions to collect
189 information about the .dynamic section. Check for DT_MIPS_RLD_MAP
190 tag only if it got defined via the inclusion of <link.h>.
192 * f-exp.y: Write block for OP_VAR_VALUE.
193 * f-valprint.c (info_common_command): Handle `info common'
194 without an argument correctly.
196 * c-typeprint.c (c_type_print_base): Handle template constructors.
197 * symtab.c (gdb_mangle_name): Handle template method mangling,
198 get rid of GCC_MANGLE_BUG code, which only applied to gcc-2.2.2.
202 * gdbtypes.h (TYPE_INDEX_TYPE): New macro.
203 * ch-typeprint.c, ch-valprint.c: Use TYPE_INDEX_TYPE.
204 * ch-valprint.c (chill_val_print): Pass index type directly
205 (instead of its TYPE_TARGET_TYPE) to print_type_scalar.
206 * stabsread.c (read_type): Don't set TYPE_FLAG_TARGET_STUB
207 if the index type is a stub.
211 * config/i386/{i386aix.mh, i386bsd.mh, i386lynx.mh, i386sco.mh,
212 i386sco4.mh, i386sol2.mh, i386v.mh, i386v32.mh, i386v4.mh,
213 ncr3000.mh, ptx.mh, ptx4.mh}, config/m68k/{altos.mh, apollo68v.mh,
214 delta68.mh, dpx2.mh, hp300bsd.mh, hp300hpux.mh, m68klynx.mh,
215 m68kv4.mh}, config/m88k/{delta88.mh, delta88v4.mh},
216 config/mips/riscos.mh, config/pa/hppahpux.mh,
217 config/rs6000/rs6000lynx.mh, config/sparc/{sparclynx.mh,
218 sun4sol2.mh}, config/tahoe/tahoe.mh, config/vax/{vaxbsd.mh,
219 vaxult.mh, vaxult2.mh} (REGEX, REGEX1, SYSV_DEFINE): No longer
221 * config/i386/i386sco4.mh (MUNCH_DEFINE): No longer define.
225 * defs.h (QUIT): Call interactive_hook to allow GUI to interrupt.
226 Also, add decl for symtab_to_filename.
227 * gdbtk.c: Replace calls to full_filename with symtab_to_filename.
228 * gdbtk.tcl: New routine pc_to_line replaces in line code. New
229 routine decr replaces in line code.
230 * (create_file_win): Use catch to handle open failures more
231 elegantly. Also, create special window to display file open
232 failure message. Move opening of file prior to creation of text
234 * (create_asm_win): Add PC as argument. We now base disassembly
235 on PC instead of function name, since function names can be
236 ambiguous (usually seen with shared libs). Also, use catch to
237 simplify code where we don't care about failures.
238 * source.c (symtab_to_filename): New. Returns the file
239 associated with a symtab.
240 * top.c: Define interactive_hook. Called during QUIT to animate
245 * stabsread.c (read_type): Handle stub types for bitstrings.
246 * stabsread.c (read_array_type): Check for stub domain type
247 using TYPE_FLAG_STUB, not its length.
248 * gdbtypes.c (create_set_type): Handle a stub domain type.
250 * ch-exp.y: Get rid of some extra non-terminals, and move
251 their rules into primitive_value.
252 * parser-defs.h: Add comment about unary postfix operators.
253 * ch-lang.c (chill_op_print_tab): Add '->', postfix and prefix.
254 * expprint.c (print_subexp): Recognize unary postfix operator.
258 * remote-hms.c: use remote_debug instead of hms_silent toggle.
259 Add warnings about depreciation of `snoop' cmd.
263 * remote-hms.c (hms_read_inferior_memory): Cope when
264 target sends both \r and \n.
268 * remote-mips.c (mips_error): Place NORETURN macro correctly.
269 * TODO: Add item about START_INFERIOR_TRAPS_EXPECTED.
273 * xcoffread.c (read_xcoff_symtab): Fix obsolete comment about
274 mst_solib_trampoline.
276 * f-valprint.c (f_val_print): Change cast of valaddr from
277 CORE_ADDR * to char **, since that is how it is used.
279 * dbxread.c (read_dbx_dynamic_symtab): Save copy of symbol names
280 using obsavestring, and pass that to prim_record_minimal_symbol.
281 Having the objfile point to bfd_asymbol_name directly doesn't work
282 if we save and restore a mapped symbol file.
286 * gdbtk.tcl: Add ref counts to breakpoint tags.
287 * Put quotes around function name in disassemble command to better
288 handle assembler names containing `.'.
289 * Make pclist element 0 be filler to avoid off-by-one problem with
291 * Set names of top-level windows.
292 * Add register display window.
293 * Add PC to label of assembly window.
297 * w89k-rom.c, op50-rom.c, monitor.c, config/pa/hppapro.mt: New files
298 to add a generic ROM monitor interface, and support file for the
299 WinBond W89K and the Oki OP50N PA based target boards.
303 * gdbtk.c (gdbtk_flush gdbtk_fputs): Buffer up output to make
304 disassembly more efficient.
305 * (breakpoint_notify): Include pc in gdbtk_tcl_breakpoint
307 * (gdb_loc): Include pc in return value. Also, return function
308 name if arg was specified.
309 * (gdb_cmd_stub): Call gdb_flush to drain internal GDB buffers
310 after command completes.
311 * (gdbtk_init): Improve error handling.
313 * gdbtk.tcl: Add lots of comments. Clean up code.
314 * (gdbtk_tcl_fputs): Make output window redirectable.
315 * Add assembly window, and breapoint support.
316 * Make button 1 in margin toggle breakpoints.
317 * Use stippling to indicate breakpoint disabling.
321 * config/pa/tm-hppa.h (REGISTER_NAMES): Use r26-r23 for arg0-arg3.
325 * irix5-nat.c, osfsolib.c, solib.c (solib_add): Simplify last
326 change by replacing `symbols_added' with `so_last'.
327 * mdebugread.c (parse_external, parse_partial_symbols): Ignore
328 global common symbols, they will be resolved by the runtime loader.
329 * mdebugread.c (parse_symbol, parse_partial_symbols, cross_ref):
330 Handle scSCommon like scCommon symbols.
334 * corelow.c (add_solib_stub): Copy to_sections changes from
335 core_ops to current_target after adding the shared libraries.
336 * partial-stab.h (N_EXCL), dbxread.c (add_old_header_file,
337 find_corresponding_bincl_psymtab): Change `repeated header not seen'
338 error to a complaint, simplify complaint.
339 * procfs.c (signalname, errnoname): Make `name' const.
340 * symfile.c (reread_symbols): Use filename from old BFD to
342 * values.c (record_latest_value): Don't record value in the
343 history chain until we are sure there won't be an error.
347 * nlm/Makefile.in: remove MMALLOC, READLINE, TERMCAP, and other
350 * config/i386/gdbserve.mt: New file, defs for i386 nlm stub.
354 * remote.c (fromhex): Make error more explicit.
355 (read_frame): Don't print bad checksum information unless
356 remote_debugging. Don't use repeat count unless it's > 0.
357 * remote-e7000.c (expect): When echoing, ignore multiple newlines.
358 (e7000_insert_breakpoint, e7000_remove_breakpoint, target_ops):
359 Optionally cope with BC style breakpoints.
360 (e7000_command): After command send directly to the E7000 mark
361 registers as changed.
362 (why_stop, e7000_wait: Understand BC style stop condition.
363 * sh-tdep.c (sh_skip_prologue): Understand more complicated
364 sequences. (frame_find_saved_regs): Likewise.
365 * config/h8500/tm-h8500.h (target_write_pc, TARGET_WRITE_PC):
367 * config/i386/xm-go32.h (GDBINIT_FILENAME): Set to gdb.ini.
368 (more work here to come)
369 * config/sh/tm-sh.h (EXTRA_FRAME_INFO): Add f_offset and leaf_function
374 * sparclite/Makefile.in: Assorted stuff needed for eload.
376 * sparclite/eload.c: Merge in command line argument parsing and
377 error message handling improvements orignally made to aload.c.
381 * defs.h (enum misc_command_type, command_control_type): Enums
382 for describing the command and control types.
383 (struct command_line): Add new fields to keep track of the command
384 type and body associated with the command.
385 * top.c: Include value.h. Delete whitespace at the end of lines.
386 (build_command_line, get_command_line): New functions.
387 (execute_control_command, while_command, if_command): Likewise.
388 (realloc_body_list, read_next_line): Likewise.
389 (recurse_read_control_structure): Likewise.
390 (execute_user_command): Call execute_control_command.
391 (read_command_lines): Simplify by calling read_next_line, call
392 read_control_structure for "if" and "while" commands.
393 (free_command_lines): Free new fields in the command structure.
394 (define_command): Reset control_level to zero.
395 (init_main): Install command handlers for "if" and "while" commands.
399 * c-typeprint.c (c_type_print_varspec_prefix,
400 c_type_print_varspec_suffix): Add cases for Fortran type codes.
401 * eval.c (evaluate_subexp): For OP_ARRAY expressions in Fortran,
402 call f77_value_literal_string instead.
403 * f_exp.y: Include <string.h>, move include of parser-defs.h.
404 (parse_number): Translate 'd' floats to 'e' so atof() works.
405 (yylex): Remove unused variables.
406 * f-lang.c: Include <string.h>.
407 (get_bf_for_fcn): Remove unused variable.
408 * f-typeprint.c (f_type_print_varspec_prefix,
409 f_type_print_varspec_suffix): Remove unused
410 variables, add cases to switch statements.
411 (f_type_print_base): Remove unused variables.
412 * f-valprint.c (gdbcore.h, command.h): Include.
413 (f77_get_dynamic_lowerbound, f77_get_dynamic_upperbound):
414 Call read_memory_integer with correct number of arguments.
415 (f77_get_dynamic_upperbound): Call f77_get_dynamic_lowerbound
416 with correct argument type.
417 (f77_print_array): Removed unused array array_size_array.
418 (f_val_print): Don't use a CORE_ADDR as a char *.
419 * valops.c (value_cast): Handle COMPLEX and BOOL types.
420 (value_assign): Handle Fortran literal string and complex values.
421 (f77_cast_into_complex, f77_assign_from_literal_string,
422 f77_assign_from_literal_complex): New functions.
426 * ch-typeprint.c (chill_type_print_base): Make TYPE_CODE_RANGE
431 * i960-tdep.c (signal.h): Don't include.
433 * cxux-nat.c (target_is_m88110): Remove definition.
435 * configure.in (config/nm-empty.h): If cross only, use instead
436 of config/nm-trash.h.
437 * config/nm-trash.h: Remove.
438 * config/nm-empty.h: New file.
439 * config/i386/nm-m3.h: New file, includes config/nm-m3.h.
440 * config/mips/nm-m3.h: New file, includes config/nm-m3.h.
441 * config/m68k/nm-sysv4.h: New file, includes config/nm-sysv4.h.
442 * config/mips/nm-sysv4.h: New file, includes config/nm-sysv4.h.
443 * config/sparc/nm-sysv4.h: New file, includes config/nm-sysv4.h.
447 * configure.in: Don't symlink to gdbtk.tcl if it's already there.
451 * configure.in: No longer look for nm, tm, and xm headers in
452 config/<header>; they are always in config/<cpu>/<header>.
456 * objfiles.c (allocate_objfile): Add the newly-created objfile to
457 the end of the list of objfiles, instead of at the beginning.
459 * xcoffread.c (allocate_include_entry): New function, abstracted
460 from code in record_include_begin.
461 (record_include_begin, record_include_end): Call it.
463 * blockframe.c (reinit_frame_cache): Test inferior_pid instead of
464 target_has_stack to decide whether to create a real stack frame
467 * coffread.c (process_coff_symbol) [CXUX_TARGET]: Ignore vendor
469 * config/m88k/tm-cxux.h (CXUX_TARGET): Define.
471 * h8300-tdep.c: Include "dis-asm.h" instead of <dis-asm.h>.
475 * config/sparc/tm-nbsd.h: Add #defines to map NetBSD struct and
476 field names into what is expected by sparc-nat.c.
480 * c-typeprint.c (c_typedef_print): Add missing Chill support.
484 * rs6000-pinsn.c (print_insn): Use powerpc disassembler when
486 * config/powerpc/tm-ppc-nw.h: Define GDB_TARGET_POWERPC.
488 * config/i386/i386lynx.mh, config/m68k/m68klynx.mh,
489 config/rs6000/rs6000lynx.mh, config/sparc/sparclynx.mh: Enable
492 * nlm/Makefile.in: Get rid of NWSOURCE.
493 * nlm/alpha-io.S (inVti, outVti): Remove extraneous ldha's.
494 * nlm/gdbserve.o: Add dummy __main routine.
495 * nlm/gdbserve.def: Turn on debug.
499 * config/xm-nbsd.h: Don't define SET_STACK_LIMIT_HUGE; it is obsolete.
503 * config/tm-nbsd.h: New file, support for all NetBSD targets.
504 * config/xm-nbsd.h: fix typo.
505 * config/sparc/{nm,tm,xm}-nbsd.h: New files, renamed from
506 {nm,tm,xm}-sparcnbsd.h to conform to prefered file naming
508 * configure.in: (sparc-*-netbsd): use config/sparc/nbsd.m[ht].
512 * remote-udi.c (udi_read_inferior_memory,udi_write_inferior_memory):
513 change typeo in error msg (`inferrior' -> `inferior').
517 * inflow.c (set_sigint_trap, clear_sigint_trap): Check for
518 attach_flag (this check was performed by the callers). Also check
519 inferior_thisrun_terminal.
520 * inftarg.c (child_wait), lynx-nat.c (child_wait),
521 procfs.c (wait_fd), symm-nat.c (child_wait): Don't check
522 attach_flag in deciding whether to call set_sigint_trap and
525 * value.h (struct value): Change literal_data from PTR to char *,
526 since that is the way it is used.
530 * somread.c (som_symfile_read): Force unwinds to be re-read after
531 reading in a new partial symbol table.
535 * config/h8500/tm-8500.h (DONT_USE_REMOTE): Remove definition,
536 an obsolete conditional.
537 * config/pa/tm-hppa.h (BREAKPOINT) [KERNELDEBUG]: Remove use,
538 an obsolete conditional.
539 * config/rs6000/rs6000.mh, config/rs6000/rs6000.mt: Clean up
544 * Makefile.in (ns32k-opcode.h): Remove reference.
545 (ns32k-pinsn.o): Update dependencies.
546 * ns32k-opcode.h: Remove file.
547 * ns32k-pinsn.c (print_insn): Call version in libopcodes, remove
548 all other code in this file.
552 * nlm/configure.in: Stop using cpu.c. Put it in TDEPFILES instead.
553 * config/alpha/gdbserve.mt (TDEPFILES): Remove alpha-patch.o.
555 * nlm/Makefile.in: Add rule for .S.o.
556 * nlm/aio.h: Protect from multiple inclusions.
557 * nlm/alpha-io.S: Remove everything we don't need.
558 * nlm/{alpha-patch.c, alpha-patch.h, alpha-uart.c, alpha-uart.h}:
559 Remove, no longer needed.
560 * nlm/alpha.c: Merge in lots of stuff from previous files.
561 * nlm/alpha.h: Don't #include alpha-patch.h. Make
562 breakpoint_insn extern.
563 * Move stuff from alpha-patch.h into here.
565 * config/alpha/gdbserve.mt (TDEPFILES): Get rid of alpha-uart.o.
569 * annotate.c (annotate_starting): Flush output.
573 * symfile.c (symbol_file_add): Move reinit_frame_cache call to
574 the callers of symbol_file_add. Gets rid of heuristic fence-post
575 warnings on mips and alpha targets when the PC resides in a shared
576 library which is not yet read in.
577 * coff-solib.c (coff_solib_add), cxux-nat.c (add_shared_symbol_files),
578 irix5-nat.c (solib_add), osfsolib.c (solib_add),
579 remote-vx.c (vx_open), solib.c (solib_add):
580 Add call to reinit_frame_cache after all shared libraries are read in.
581 * remote-udi.c (udi_load), remote-vx.c (vx_load_command),
582 symfile.c (symbol_file_command, add_symbol_file_command):
583 Add call to reinit_frame_cache after symbol_file_add.
587 * config/xm-nbsd.h: New file, support for all NetBSD ports.
588 * config/sparc/{nm-sparcnbsd.h,tm-sparcnbsd.h,xm-sparcnbsd.h,
589 sparcnbsd.mh,sparcnbsd.mt}: New files, support for NetBSD/sparc.
590 * configure.in: Add sparc-*-netbsd target.
594 * remote-vx.c (vx_attach): Interpret the command argument as an
599 * configure.in: Change i[34]86 to i[345]86.
600 * nlm/configure.in: Likewise.
601 * gdbserver/configure.in: Likewise.
605 * configure.in (i386-*-netware): Automatically configure nlm
610 * nlm/gdbserve.c: conditionalize header file inclusion for either
611 NetWare 4.0 or PIN targets.
612 * nlm/i386.c: include appropriate header files.
613 * nlm/prelude.c: define TERMINATE_BY_UNLOAD for NetWare 4.0
618 * nlm/ppc.c (set_step_traps clear_step_traps): Cleanups.
619 * nlm/gdbserve.def: Autoload clib.
623 * breakpoint.c (condition_command): Call breakpoints_changed.
625 * gdbtypes.h: Declare f77_create_literal_string_type and
626 f77_create_literal_complex_type.
627 * valops.c (f77_value_literal_string, f77_value_substring,
628 f77_value_literal_complex): Use xmalloc not malloc.
629 * valops.c (f77_value_literal_string, f77_value_substring):
630 Make addr char * not CORE_ADDR.
631 * value.h (struct value): Add new field literal_data of aligner union.
632 (VALUE_LITERAL_DATA): Use it.
633 * f-lang.h: Declare find_common_for_function.
634 * value.h, valops.c: Split VALUE_SUBSTRING_START into memaddr and
635 myaddr fields of a union. Don't overload it with the frame field
636 (not sure this is necessary; I'm not sure what lval_* codes
637 VALUE_SUBSTRING_* can be used with).
641 * config/a29k/{a29k-kern.mt,a29k-udi.mt,a29k.mt,ultra3.mh,
642 ultra3.mt}: Clean up comments, remove no-longer-used definitions.
644 * rs6000-nat.c: Include libbfd.h again, needed until reference
645 to bfd_cache_lookup is cleaned out.
647 * config/i386/linux.mh (XM_CLIBS): Add -lm.
651 Work to reduce the interrupts-off duration when running in DOS.
652 * ser-go32.c: (dos_async_ready): See if anything is in the buffer.
653 (dos_async_rx): rewrite to unpack as many characters from the
654 asynctsr as possible into a local buffer.
658 Initial Fortran language support, adapted from work by Farooq Butt
660 * Makefile.in: Add Fortran-related files and dependencies.
661 * defs.h (language_fortran): New language enum.
662 * language.h (_LANG_fortran): Define.
663 (MAX_FORTRAN_DIMS): Define.
664 * expression.h: Reformat to standard.
665 (MULTI_F77_SUBSCRIPT, OP_F77_UNDETERMINED_ARGLIST,
666 OP_F77_LITERAL_COMPLEX, OP_F77_SUBSTR): New expression opcodes.
667 * gdbtypes.h (TYPE_CODE_COMPLEX, TYPE_CODE_LITERAL_COMPLEX,
668 TYPE_CODE_LITERAL_STRING): New type codes.
669 (type): New fields upper_bound_type and lower_bound_type.
670 (TYPE_ARRAY_UPPER_BOUND_TYPE, TYPE_ARRAY_LOWER_BOUND_TYPE,
671 TYPE_ARRAY_UPPER_BOUND_VALUE, TYPE_ARRAY_LOWER_BOUND_VALUE): New
673 (builtin_type_f_character, etc): Declare.
674 * value.h (VALUE_LITERAL_DATA, VALUE_SUBSTRING_START): Define.
675 * f-exp.y: New file, Fortran expression grammar.
676 * f-lang.c: New file, Fortran language support functions.
677 * f-lang.h: New file, Fortran language support declarations.
678 * f-typeprint.c: New file, Fortran type printing.
679 * f-valprint.c: New file, Fortran value printing.
680 * eval.c (evaluate_subexp): Add code for new expression opcodes,
681 fix wording of error message.
682 * gdbtypes.c (f77_create_literal_complex_type,
683 f77_create_literal_string_type): New functions.
684 * language.c (set_language_command): Add Fortran info.
685 (calc_f77_array_dims): New function.
686 * parse.c (length_of_subexp, prefixify_subexp): Add cases for new
688 * symfile.c (deduce_language_from_filename): Recognize .f and .F
689 as Fortran source files.
690 * valops.c (f77_value_literal_string, f77_value_substring,
691 f77_value_literal_complex): New functions.
695 * c-typeprint.c (c_print_type): Assume demangled arguments
696 if a '(' is found in varstring, looking for ')' at the end of
697 varstring did fail with demangled const member functions, which
698 have a trailing `const'.
699 * remote.c (get_offsets, putpkt): Change to `char' buffers,
700 to avoid errors when compiling with DEC c89.
701 (remote_wait): Cast to `char *' before passing buffer to
702 fputs_filtered, to avoid errors when compiling with DEC c89.
703 (remote_wait): Do not return inferior_pid by default, this
704 statement is never reached, which causes warnings from some
706 * stabsread.c (scan_file_globals): Ignore static minimal symbols.
707 * symfile.c (load_command): If called with no argument, try
708 to get the filename from the executable file.
709 (generic_load): Remove check for NULL filename, it is done
714 * hppa-tdep.c (skip_trampoline_code): Revert incorrect change
715 from June 2, 1994 (what was I thinking?!?). Fix it right this
720 * nlm/i386.c, nlm/i386.h: New files that contain i386 specific code.
724 * README: Grammar improvements, clarifications, updates.
728 * Makefile.in (TARGET_FLAGS_TO_PASS): Pass down LD_FOR_TARGET and
729 NLMCONV_FOR_TARGET. (SUBDIRS): Add nlm target.
730 * configure.in (powerpc-*-netware*): Automatically configure nlm
732 * nlm/Makefile.in: Add {CC NLMCONV LD}_FOR_TARGET. Remove alpha
733 specific stuff. Make things more configurable.
734 * nlm/configure.in: Add powerpc-*-netware* target. Use
735 gdbserve.mt/cpu.c/cpu.h for target stuff. Get rid of tm/xm/nm.h
737 * nlm/gdbserve.c: Move Alpha specific stuff into other files.
738 Remove lots of architecture-specific stuff.
739 * nlm/gdbserve.def: Add new imports.
740 * nlm/ppc.c, nlm/ppc.h: New files that contain PowerPC specific code.
741 * nlm/prelude.c: Don't include libhooks.h, get rid of call to
743 * nlm/prelude.o: What was this doing here?
744 * config/alpha/gdbserve.mt: Defs for alpha nlm stub.
745 * config/powerpc/gdbserve.mt: Defs for PowerPC nlm stub.
746 * config/powerpc/ppc-nw.mt: Defs for PowerPC target for GDB.
747 * config/powerpc/tm-ppc-nw.h: Ditto.
749 * nlmstub.def: New file, contains imports for 386 nlm stub.
753 * remote-pa.c: New file for HPPA embedded support. Currently it's
755 * config/pa/hppabsd.mt,hppahpux.mt,hppaosf.mt: User remote-pa.c.
759 * config/m68k/tm-delta68.h (EXTRACT_RETURN_VALUE,
760 STORE_RETURN_VALUE): Define to use %a0 for pointers.
764 * remote-mips.c: Remove unused declaration of mips_load.
768 * coffread.c: General cleanup, and support for section offsets.
769 (time.h, sys/types.h, libbfd.h): Don't include.
770 (cur_src_start_addr, cur_src_end_addr): Rename to
771 current_source_start_addr, current_source_end_addr.
772 (nlist_stream_global): Remove.
773 (nlist_bfd_global): New global variable.
774 (coff_symfile_read): Remove code that gets and uses fileno()
776 (read_coff_symtab, enter_linenos, process_coff_symbol): Add
777 section_offsets parameter, add text/data section offset to
778 appropriate symbols' values.
779 (read_one_sym): Use bfd_read instead of fread.
780 (init_stringtab, init_lineno): Change first parameter to a bfd,
781 use bfd routines instead of raw I/O.
785 * symtab.c (decode_line_1): If funfirstline and we get a
786 non-LOC_BLOCK symbol (e.g. variable or type), then error().
788 * Makefile.in (TARFILES, NONSRC, SFILES_STAND, SFILES_KGDB):
790 (TAGFILES_NO_SRCDIR): Remove ALLPARAM.
791 (HFILES_NO_SRCDIR): Remove all files in config sub-directory.
792 (TAGS): Also pass result of find on config sub-directory to etags.
793 (ALLPARAM): Remove; now unused.
797 * Makefile.in (VERSION): Bump to 4.13.1
798 * NEWS, README: Update to match gdb 4.13 release version.
803 * cxux-nat.c: Remove dangling #else block.
804 (m88k_harris_core_register_addr): New function.
806 * environ.c (init_environ): If no environment, do nothing.
810 * remote.c (remote_wait): Return inferior_pid instead of 0 for
815 * sparclite/aload.c (sys_error, error): Use vfprintf for variable
820 * defs.h (concat, basename, buildargv, freeargv, strerrno, strsigno,
821 errno_max, signo_max, strtoerrno, strtosigno): Delete.
822 Include "libiberty.h" instead.
826 * i386v-nat.c (i386_insert_nonaligned_watchpoint):
827 add additional argument specifying raw address to permit
828 proper release of debug registers.
829 (i386_insert_watchpoint, i386_insert_aligned_watchpoint):
834 * defs.h, top.c: Use `extern' in declarations of GUI hooks, and
835 define them in top.c. Add comments to the hooks.
839 * remote-sim.c (gdbsim_ops): Set `to_insert_breakpoint' and
840 `to_remove_breakpoint' fields.
844 * infcmd.c (run_command): Remove comment suggesting using
845 target_has_execution instead of inferior_pid.
849 * remote-mips.c (mips_open): add code to handle baud rate.
853 * infrun.c (wait_for_inferior): Call target_resume() upon
854 detection of new processes.
856 * procfs.c (create_procinfo): Return pointer to new procinfo
858 * (do_detach): Spacing & formatting cleanup.
859 * (procfs_wait): Move wait_again label to ensure that we really
860 wait again. On exit from fork, release new child from gdbs'
862 * (procfs_set_sproc_trap): Enable trapping of fork and vfork.
866 * i386-nlmstub.c (handle_exception): Wait until the thread has
867 been started before killing the NLM by pointing the PC at
872 * config/mips/tm-irix5.h (IN_SIGTRAMP): Redefine for Irix 5,
873 Irix 5 has a standard _sigtramp signal handler.
874 * irix5-nat.c (solib_add): Get rid of sigtramp_address handling,
875 it is not needed for a standard _sigtramp signal handler.
876 Add shared library sections to the section table of the target
877 before adding the symbols.
878 * mips-tdep.c (mips_skip_prologue): Do not skip load immediate
879 instructions that do not prepare a stack adjustment.
880 * regex.c (SIGN_EXTEND_CHAR): Update to emacs-19.25 definition,
881 which does the right thing on machines where `char' is unsigned.
885 * remote.c (remote_open): Move setting of inferior_pid prior to
886 call to remote_start_remote. Also use unique value for pid to
887 avoid confusion with read_register_pid & friends.
888 * (remote_wait): Return inferior_pid instead of 0 in all cases.
892 * dwarfread.c (bfd.h): Don't include.
896 * i386-nlmstub.c (handle_exception): Point the PC at _exit() to
897 kill the program being debugged. KillMe(), the undocumented
898 call intended for this purpose, causes the server to hang.
902 * remote.c (read_frame): Calculate run length encoded checksum
904 * config/sh/stub.c: New file.
908 * target.c (find_default_run_target): Make sure to_can_run is set
913 * TODO: Remove note about fast watchpoints and remove obsolete
918 * config/i386/xm-i386v4.h, config/m68k/xm-m68kv4.h,
919 config/sparc/xm-sun4sol2.h (NORETURN): Don't define.
920 * config/m88k/tm-cxux.h (ARCH_NUM_REGS): Undefine before defining.
924 * target.c (add_target): Don't call clean_target on target
926 * (unpush_target): Test for to_close being set before calling.
927 * (target_xfer_memory, target_info): Check for to_has_memory
928 before playing with memory.
930 * remote.c (remote_open): Set inferior_pid to make kill command
932 * inflow.c (kill_command): Revert change of Aug 2. Use
933 inferior_pid to determine whether to print out "The program is not
938 * config/i386/i386m3.mh (NAT_CLIBS): Add -lmachid and -lnetname.
939 * m3-nat.c, config/nm-m3.h: #if 0 REQUEST_QUIT stuff.
940 * m3-nat.c: Pass argument to return_to_top_level.
941 Declare m3_kill_inferior before use.
942 (port_chain_insert): In "can't happen" case, abort rather than
943 setting `mid' to large decimal constant (which gcc warns about).
944 (get_thread_name): Use cast to convert const char * to char *.
945 (add_mach_specific_commands): #if 0 "thread break" command.
946 (m3_trace_him): Call push_target.
947 (mach_really_wait): New argument pid; remove unused
949 (intercept_exec_calls): Call target_terminal_init and
950 target_terminal_inferior once the child execs.
951 * infrun.c (proceed): Pass argument to PREPARE_TO_PROCEED.
955 * procfs.c (procfs_mourn_inferior): don't dereference the
956 procinfo pointer after it has been freed.
960 * breakpoint.c (breakpoint_1): Improve pluralization in display
961 of breakpoint hit counts.
963 * language.h (struct language_defn): Remove unused field
965 (longest_float): Remove, no longer used.
966 * language.c (unknown_language_defn, auto_language_defn,
967 local_language_defn): Remove init of la_longest_float field.
968 * c-lang.c (c_language_defn, cplus_language_defn,
969 asm_language_defn): Ditto.
970 * ch-lang.c (chill_language_defn): Ditto.
971 * m2-lang.c (m2_language_defn): Ditto.
975 * defs.h (bfd_read, bfd_seek): Remove declarations.
976 * os9kread.c, rs6000-nat.c (libbfd.h): Don't include.
980 * inflow.c (kill_command): Fix a bug which prevented target
981 programs to be killed.
985 * defs.h: Change two-line declarations to one-line form.
986 (NORETURN): Define as "volatile" only for older GCCs.
987 (ATTR_NORETURN): Define for newer GCCs.
988 * procfs.c (proc_init_failed): Add ATTR_NORETURN to declaration.
992 * breakpoint.c (mention), main.c (fputs_unfiltered): Add comments.
993 * breakpoint.c (delete_breakpoint, enable_breakpoint,
994 disable_breakpoint): Don't call breakpoints_changed; it is now
995 called via the *_breakpoint_hook functions.
996 * annotate.c (_initialize_annotate, breakpoint_changed): New functions.
1000 * stabsread.c (read_type): Fix a bug in enum size calculation.
1004 * hppa-tdep.c (compare_unwind_entries): Add "const" to both
1005 argument types to shut up GCC.
1007 * hppa-tdep.c (saved_pc_after_call): If the saved PC is in a
1008 linker stub, then return the address the stub will return to.
1009 (frame_saved_pc): Correctly restart the search for the saved
1010 pc when a linker stub is encountered.
1012 * hppa-tdep.c (inst_saves_gr): Handle 16 and 8 bit instruction
1013 register stores emitted by the version 9 HP compilers.
1014 (inst_saves_fr): Relax test for a specific base register (%r1);
1015 this avoids losing with the version 9 HP compilers.
1016 (skip_prologue): Try to skip argument stores emitted by the HP
1017 compilers. It's not perfect, but it's better than before.
1021 * findvar.c (write_pc write_pc_pid): Remove casts to long when
1022 calling write_register_pid.
1023 * (write_register_pid): Add prototype.
1027 * remote.c (read_frame): Split readchar/checksum calculation into
1028 two parts since evaluation order is undefined.
1033 * Makefile.in (coredep.o): Add inferior.h as dependency.
1034 * inflow.c: Add F_SETOWN to list of defines to check
1035 around code that uses F_SETOWN.
1039 * Makefile.in (CC_FOR_TARGET, CXX_FOR_TARGET): If using newlib,
1040 set the -L and -B directory prefixes so we can link with it.
1044 * Makefile.in (INSTALLED_LIBS, CLIBS, DEPFILES): Add support for
1045 --enable-xxx configure option by adding ENABLE_{CLIBS DEPFILES}
1048 * General hackery to support alternate user-interface.
1049 * breakpoint.c (mention, delete_breakpoint, enable_breakpoint,
1050 disable_breakpoint): Call hooks for alternate user-interface.
1051 * defs.h: Add declarations for alternate user-interface hooks.
1052 * main.c (main): Add --nw (and --nowindows) options to disable
1054 * (near call to command_loop): Call command_loop_hook if set.
1055 * (fputs_unfiltered): Call fputs_unfiltered_hook if set.
1056 * stack.c: Call print_frame_info_listing_hook if set.
1057 * top.c (gdb_init): Initialize targets.c and utils.c prior to
1058 other files to make sure that calls to error and warning will
1059 work. Call init_ui_hook after everything else.
1060 * utils.c (query): Call query_hook if set.
1061 * (gdb_flush): Call flush_hook if set.
1062 * Change _initialize_utils to initialize_utils cuz we don't use
1063 automatic initialization of utils.c anymore.
1065 * Support for TK GUI.
1066 * Makefile.in: Add rule for gdbtk.o.
1067 * configure.in: Add support for --enable-gdbtk.
1068 * gdbtk.c: New file. Contains support routines for TK interface.
1069 * gdbtk.tcl: New file. Implements GUI policy.
1071 * remote.c: Get rid of #ifdef DONT_USE_REMOTE. It's no longer
1076 * Makefile.in (CC_FOR_TARGET, CXX_FOR_TARGET): Use newlib if it is
1077 there and we are using the gcc from the tree.
1078 (LD_FOR_TARGET): Look for ld in ../ld/ld.new.
1082 * Makefile.in (annotate.o): Add dependencies.
1086 * sparclite/aload.c: Added new -q (quiet) option.
1087 return 0 exit status if file was successfully downloaded.
1089 * nlm/gdbserve.c: merge in command line argument parsing changes
1090 and bug fixes made to i386-nlmstub.c.
1092 * i386-nlmstub.c: The returnLength field must be initialized
1093 before portConfig is passed to AIOGetPortConfiguration.
1094 Compare command line arguments with strnicmp(); args are
1095 case insensitive on netware.
1099 * Makefile.in (DISTSTUFF): Add definition.
1100 (diststuff): Add for new distribution support.
1101 (gdb.tar.Z, make-proto-gdb.dir, setup-to-dist,
1102 gdb-$(VERSION).tar.Z, make-proto-gdb-1, make-proto-testsuite.dir):
1103 Remove old distribution building rules, now uses standard
1104 distribution support in parent directory Makefile.in.
1108 * target.c (push_target): Cast result from xmalloc.
1110 Tue Jul 26 18:20:46 1994 Paul Flinders (ptf@smee)
1112 * elfread.c (elf_symtab_read): Discard compiler labels generated
1113 by the Solaris 2.1/Intel SunPro compiler.
1117 * target.c (nomemory): Fix prototype and routine to take correct
1122 * Makefile.in (clean): Remove libgdb-files.
1126 * coredep.c: Include inferior.h.
1130 * i386-nlmstub.c: Add support for NODE, PORT and BAUD command
1135 * symfile.c (deduce_language_from_filename): Recognize .S as asm,
1136 .cp as C++, alphabetize better.
1138 * breakpoint.c (ignore, condition): Move usage note into body of
1139 help text, so first line can be one-line summary.
1143 * target.c (unpush_target): Fix handling of removal of top target.
1147 * Makefile.in: Add stuff to build nlmstub.
1148 * Add rule for annotate.o to keep Sun make happy.
1149 * configure.in: Add config for powerpc/Netware.
1151 * partial-stab.h (near N_SO): Don't call START_PSYMTAB with null
1152 filename. This speeds up handling of trailing N_SO stabs (they
1153 mark the end of a .o file).
1155 * target.c, target.h: Change the way pushing and popping of
1156 targets work to support target overlays and inheritance.
1157 * corelow.c, hppa-tdep.c, inflow.c, remote-nindy.c, utils.c:
1158 Fixup references to current_target, due to previous changes.
1160 * config/i386/tm-i386nw.h: Enable longjmp support. More work is
1161 needed to get the address of longjmp out of the target.
1165 * main.c: Include <ctype.h>.
1169 * remote-mips.c (mips_readchar): Fix a bug in checking <IDT>
1174 * solib.c (look_for_base): Don't deref exec_bfd if NULL.
1178 * Makefile.in (VERSION): Bump to 4.12.4.
1183 * configure.in (m88*-harris-cxux*): New configuration.
1184 * cxux-nat.c, config/m88k/cxux.mh, config/m88k/cxux.mt,
1185 config/m88k/xm-cxux.h, config/m88k/tm-cxux.h, config/m88k/nm-cxux.h:
1187 * config/m88k/tm-m88k.h: Add comment about Harris OS.
1188 (TARGET_WRITE_PC): Pass pid through to register writers.
1190 * configure.in (m68*): Put vendor-only-specified host configs
1191 after vendor-and-os-specified configs.
1192 (m68*-atari-sysv4*, m68*-cbm-sysv4*): Replace with m68*-*-sysv4.
1194 * config/m88k/delta88.mh (MUNCH_DEFINE): Remove.
1195 * config/m88k/delta88.mt, config/m88k/delta88v4.mh: Format
1200 * elfread.c (elf_symtab_read): Handle error return from
1201 bfd_get_dynamic_symtab_upper_bound gracefully.
1205 * inferior.h (ARCH_NUM_REGS): New macro, actual number of
1206 registers in use by the inferior.
1207 * coredep.c (fetch_core_registers, register_addr): Use it.
1208 * findvar.c (registers_changed, registers_fetched,
1209 read_register_bytes): Ditto.
1210 * infcmd.c (do_registers_info, registers_info): Ditto.
1211 * infptrace.c (fetch_inferior_registers,
1212 store_inferior_registers): Ditto.
1213 * stack.c (frame_info): Ditto.
1215 * coredep.c (CORE_REGISTER_ADDR): New macro.
1216 (fetch_core_registers): Use it.
1218 * breakpoint.c (ignore, condition): Add usage notes to help strings.
1219 * symfile.c (add-symbol-file): Add usage note to help string.
1220 (add_shared_symbol_files_command): New command.
1223 * inferior.h (read_pc_pid): Declare.
1224 * breakpoint.c (watchpoint_check): Cache breakpoint in local
1225 variable b, remove unused variable other_type_used.
1226 * main.c (inferior.h, call-cmds.h): Include.
1227 (gdb_init): Declare.
1228 * remote.c (remote_wait): Return 0 by default.
1232 Stop printing at null char option, from Oliver Meyer
1234 * valprint.h, valprint.c (stop_print_at_null): New global.
1235 * valprint.c (_initialize_valprint): New print set subcommand
1237 * c-valprint.c (c_val_print): If stop_print_at_null is on, and
1238 printing a char array, adjust the number of chars to print.
1243 * m88k-tdep.c (examine_prologue): Modified to handle prologues for
1244 pic code in addition to prologues where an instruction from the
1245 prologue gets moved into the delay slot of a branch instruction
1246 immediately following the prologue. A table of potential prologue
1247 instructions (prologue_insn_tbl) is now used for picking apart a
1249 (frame_find_saved_regs): Changed the way in which limit gets set
1250 so that the delay slot of branch instructions immediately
1251 following the prologue gets examined.
1252 (pushed_size, store_parm_word, store_parm, push_parameters,
1253 collect_returned_value): Deleted.
1257 * infrun.c (wait_for_inferior): Handle stepping into leaf
1258 functions whose prologue consists of gp loading code only.
1262 * dbxread.c: Don't include libbfd.h.
1263 * dwarfread.c, elfread.c somread.c: Don't include libbfd.h,
1264 <time.h>, or <sys/types.h>.
1265 * elfread.c (elf_symfile_read): Use only standard BFD functions to
1266 collect information about the stab and stab string sections.
1270 * stabsread.c (read_huge_number): handle large unsigned number
1271 for stabs generated by os9k C compiler.
1276 * breakpoint.h (hit_count): New breakpoint field.
1277 * breakpoint.c (show_breakpoint_hit_counts): New variable.
1278 (clear_breakpoint_hit_counts): New function.
1279 (bpstat_stop_status): Increment the hit count.
1280 (breakpoint_1): Display the hit count.
1281 * infcmd.c (run_command): Reset breakpoint hit counts.
1282 * target.c (generic_mourn_inferior): Don't clear ignore counts if
1283 displaying hit counts.
1287 * elfread.c (elf_symfile_read): Unconditionally add dynamic
1288 symbols for all symbol files. Makes skipping over the
1289 trampoline code work when stepping from a function in a shared
1290 library into a function in a different shared library for Irix 5.
1291 Other ELF targets do not have enough information in their
1292 dynamic symbol tables to make this work.
1293 (elf_symtab_read): Relocate mst_solib_trampoline address.
1298 * configure.in (m68*-atari-sysv4*): New configuration.
1299 (m68*-cbm-sysv4*): Use m68kv4 instead of amix.
1300 * m68k-tdep.c (R_PS): Define as R_SR if necessary.
1301 * config/m68k/m68kv4.mh, config/m68k/m68kv4.mt,
1302 config/m68k/tm-m68kv4.h, config/m68k/xm-m68kv4.h: New files.
1303 * config/m68k/amix.mh, config/m68k/amix.mt,
1304 config/m68k/tm-amix.h, config/m68k/xm-amix.h: Removed, superseded
1309 * symtab.c (find_function_start_sal): New function to find
1310 the start of a function from a function symbol.
1311 (decode_line_1, decode_line_2): Use it instead of open coded
1312 partial copies of the code.
1313 (list_symbols): Quote symbol name before passing it to
1314 break_command to enable proper handling of mangled symbols.
1318 * ch-exp.y (match_simple_name_string): Don't lower-case here.
1319 * ch-exp.y (yylex): First try name lookup using exact name
1320 typed by user; if that fails, try lower-cased name.
1324 * dbxread.c, elfread.c, mipsread.c, nlmread.c, os9kread.c:
1325 Move "no debugging symbols found" test to symfile.c.
1326 * symfile.c (syms_from_objfile, reread_symbols): Add
1327 "no debugging symbols found" test.
1328 * coffread.c (init_stringtab): Handle stripped files with a
1329 stringtab offset of zero gracefully.
1330 * osfsolib.c (solib_create_inferior_hook): Use DYNAMIC flag from
1331 BFD instead of stop_pc heuristic to determine if it is a dynamically
1333 * procfs.c (wait_fd): Handle ENOENT error return from PIOCWSTOP
1334 ioctl, it indicates that the process has exited.
1338 * hppa-tdep.c (read_unwind_info): ELF unwind information is in the
1339 .PARISC.unwind section now.
1343 * breakpoint.c (mention): Always show breakpoint address if no
1348 * solib.c (bfd_lookup_symbol, look_for_base): Reinstate to reenable
1349 handling of shared libraries for non-ELF executables, but only if
1350 HANDLE_SVR4_EXEC_EMULATORS is defined.
1351 (locate_base): Try to find debug_base in the dynamic linker
1352 for non-ELF executables if HANDLE_SVR4_EXEC_EMULATORS is defined.
1353 * config/sparc/tm-sun4sol2.h (HANDLE_SVR4_EXEC_EMULATORS):
1354 Define to enable handling of shared libraries for a.out executables,
1355 run under Solaris BCP.
1359 * infrun.c (wait_for_inferior): Print "Program exited normally"
1360 regardless of batch_mode.
1361 * defs.h, top.c (batch_mode): Removed.
1365 * Makefile.in (dcache_h): Remove redundant definition.
1366 (init.c): Add a comment.
1367 (top.c): Remove explicit compile action.
1368 * breakpoint.c (mention): Share code indicating location of
1369 break/watchpoints, don't print address if addressprint is off.
1370 * breakpoint.c, c-typeprint.c, c-valprint.c, energize.c, symtab.h
1371 (demangle): Remove redundant declarations.
1372 * eval.c: Remove redundant function declarations.
1373 * objfiles.h: Cosmetic and grammatical improvements.
1374 * TODO: Various updates.
1376 * remote-mips.c: Replace all \r chars with \015.
1377 (mips_receive_header): Display control characters readably.
1378 (mips_xfer_memory): Add a simple progress display.
1382 * remote-e7000.c (e7000_open): Don't try a tcp open if we're
1384 * remote-hms.c (flush): New function.
1385 (expect): Get edge case right.
1386 (hms_read_inferior_memory): Be more tolerant of line noise.
1390 * configure.in: Use i386m3.mh and i386m3.mt as names of host and
1391 target files, not non-existent mach3.mh and mach3.mt.
1395 * dbxread.c (dbx_symfile_read): Unconditionally add dynamic
1396 symbols for all symbol files. Makes skipping over the
1397 trampoline code work when stepping from a function in a shared
1398 library into a function in a different shared library.
1399 (read_dbx_dynamic_symtab): Relocate mst_solib_trampoline address.
1403 * dbxread.c, partial-stab.h (near N_SO): SO stabs with blank
1404 names mean end of .o file.
1405 * infrun.c (wait_for_inferior): Clean up multi-thread logic near
1406 top of routine. Handle new thread notification cleanly.
1407 * lynx-nat.c (child_wait): General cleanups, handle new LynxOS
1408 thread notification scheme.
1409 * (child_resume): General cleanups, handle resumption of all
1414 * ser-go32.c: Rewrite to run under windows.
1415 * ser-e7kpc.c: New file to support the E7000 with the PC ISA
1417 * serial.c (serial_open): Notice device "pc".
1418 * remote-e7000.c: Fix copyright date.
1419 (expect): Compare \n and \r the same.
1420 (e7000_open): Allow pc as a serial port
1421 * sh/sh.mt: Add ser-e7kpc.
1422 * h8300/h8300hms.mt: Add ser-e7kpc.
1423 * main.c (proc_wait): Don't wait if using go32.
1427 * somread.c: Simplify by using stabsect_build_psymtabs.
1428 * dbxread.c (stabsect_build_psymtabs): New argument "text_name"
1429 corresponding to the name of the text section. All references
1431 (somstab_build_psymtabs): Delete function, no longer needed.
1435 * somread.c: Renamed from paread.c. Changed function names and
1436 comments to reflect that this file deals with SOM (an object file
1437 format), rather than the PA (a cpu).
1438 (Makefile.in): Chaned appropriately.
1439 (config/pa/hppabsd.mh, config/pa/hppahpux.mh): Likewise.
1440 * dbxread.c (somstab_build_psymtabs): Renamed from
1441 pastab_build_psymtabs.
1445 * core-sol2.c: New file to handle ELF and BCP core file flavours.
1446 * config/sparc/sun4sol2.mh (NATDEPFILES): Use it instead of
1448 * Makefile.in: Updated for core-sol2.c.
1449 * README: Add notes about SPARCworks cc under Solaris 2.x,
1451 * config/mips/xm-makeva.h: Removed, no longer necessary.
1452 * Makefile.in, config/mips/xm-irix3.h, config/mips/xm-irix5.h,
1453 config/mips/xm-mips.h, config/mips/xm-news-mips.h,
1454 config/mips/xm-riscos.h: Remove references to xm-makeva.h
1458 * gdba.el: Put program input and output in a separate buffer.
1462 * energize-patches, main.c (main), top.c (gdb_init, pwd_command),
1463 top.h: Change all occurances of dirbuf to gdb_dirbuf. Collides
1464 with global variable of same name in libnsl.so on UnixWare.
1468 * symtab.c (decode_line_1): fix a bug in dealing with '<>'
1469 embedded in template name.
1473 * config/i386/nm-linux.h: change calling convention of
1474 TARGET_CAN_USE_HARDWARE_WATCHPOINT() and
1475 target_insert_watchpoint() and
1476 target_remove_watchpoint().
1478 * config/mips/tm-mips64.h: define FORCE_LONG_LONG to force LONGEST
1479 to be long long in gdb.
1480 * config/mips/tm-bigmips.h: ditto.
1484 * c-lang.c (asm_language_defn): New definitions for language_asm,
1485 mostly copied from c_language_defn, to avoid warnings when
1486 switching between c and asm stack frames.
1490 * mdebugread.c (parse_symbol): Don't call ecoff_swap_tir_in or
1491 ecoff_swap_rndx_in directly; use the debug_swap pointer instead.
1492 (upgrade_type, handle_psymbol_enumerators): Likewise.
1493 (has_opaque_xref, cross_ref): Likewise.
1494 (elfmdebug_build_psymtabs): Call swap->read_debug_info to read
1495 debugging information, rather than doing it here.
1496 * mipsread.c (mipscoff_symfile_read): Call read_debug_info entry
1497 point in ecoff_debug_swap backend structure, rather than calling
1498 ecoff_slurp_symbolic_info directly.
1502 * breakpoint.c: Include annotate.h. Call annotate_field rather
1503 than printing annotation directly.
1505 * main.c: Include string.h.
1509 * fork-child.c (startup_inferior) [STARTUP_INFERIOR]: If defined,
1510 call it instead of doing normal loop.
1511 * infcmd.c (attach_command): Don't call wait_for_inferior if
1513 * infrun.c (proceed) [PREPARE_TO_PROCEED]: If defined, call
1514 hook that can decide whether to step over the next breakpoint.
1515 * utils.c (wrap_here): Abort if wrap_buffer not allocated.
1516 (request_quit) [REQUEST_QUIT]: If defined, call it instead of
1519 * configure.in: Improve sorting/formatting of hosts and targets.
1520 (i[34]86-*-mach3*, i[34]86-*-osf1mk*, mips-*-mach3*,
1521 m88*-*-mach3*, ns32k-*-mach3*): Recognize.
1522 * Makefile.in (stop-gdb): New target.
1523 * stop-gdb.c: New file, utility to get attention of waiting GDBs
1528 * top.c (gdb_init): Init current_directory in gdb_init. Probably
1529 the identical initialization can be deleted from main.c, but i
1530 haven't done so just in case.
1534 * gdba.el: Added menu windows and slightly improved window
1535 handling to gdba.el. Fixed numerous minor bugs that were causing
1536 emacs and gdb to fall out of sync.
1540 * breakpoint.c: annotate changes lost at merge, put back in.
1544 * config/i386/i386sco.mh, i386sco4.mh (XDEPFILES): Remove
1549 * config/m68k/dpx2.mh (NATDEPFILES): Remove duplicate inclusion
1551 * config/m68k/tm-dpx2.h (CANNOT_STORE_REGISTER): Define to inhibit
1552 writing of floating registers, the dpx2 kernel disallows it.
1553 * irix5-nat.c (LM_ADDR): The loaded address of the shared library
1554 is contained in o_praw.
1555 * irix5-nat.c (solib_map_sections): Adjust sections by the
1556 difference between the loaded address and the prelinked address.
1557 * irix5-nat.c (solib_address): Use LM_ADDR for the loaded start
1559 * mdebugread.c (parse_symbol): Do not relocate stEnd/scText
1560 symbols, their value is absolute.
1561 * mdebugread.c (parse_partial_symbols): Handle Irix 5.2 shared
1562 libraries fh->adr fields of zero. Relocate minimal symbol values
1563 upon readin. Relocate non-stabs symbols upon readin.
1564 * mdebugread.c (psymtab_to_symtab_1): Use pst->textlow for the
1565 start address of the outermost block.
1566 * mdebugread.c (parse_lines, parse_procedure): Pass in pst
1567 instead of section_offsets and use relocated pst->textlow for
1568 line number and procedure address relocations.
1571 * mdebugread.c (parse_symbol, parse_partial_symbols, cross_ref):
1572 Handle SGI Irix5 stIndirect symbol type.
1576 * breakpoint.c: fix a syntax error native cc does not like.
1578 * Makefile.in: change sparclite-tdep.c to sparcl-tdep.c.
1579 * sparclite/Makefile.in: ditto.
1580 * sparcl-tdpe.c: change file name because first 8 chars has to be
1582 * sparcl-stub.c: ditto.
1584 * .Sanitize: add sparclite-stub.c sparclite-tdep.c to keep.
1586 * sparclite/Makefile.in: fix INCLUDE_CFLAGS to have {srcdir}/../config.
1590 * hppa-tdep.c (target_read_pc, target_write_pc): Accept (and
1591 ignore) a PID argument.
1592 (hppa_pop_frame): Pass a PID to target_write_pc.
1593 * config/pa/tm-hppa.h (TARGET_READ_PC, TARGET_WRITE_PC): Accept
1594 and pass through a PID argument.
1595 (target_read_pc, target_write_pc): Update prototypes.
1599 * Makefile.in: add new file sparclite-tdep.c.
1600 * sparclite/Makefile.in: add new file sparclite-stub.c.
1601 * sparclite/hw_breakpoint.note: note for SPARClite hardware breapoint
1603 * config/sparc/sparclite.mt: add sparclite-tdep.o.
1604 * config/sparc/tm-sparclite.h: add hardware breakpoints support
1606 * sparclite-tdep.c: new file, contains hardware breakpoint support
1608 * sparclite-stub.c: new file, stub code that add support hardware
1610 * breakpoint.c: add hardware breakpoint support.
1611 * breakpoint.h: add new breakpoint type to support hardware
1613 * config/mips/nm-irix4.h: change interface for target dependent
1614 code supporting watch point.
1615 * config/pa/nm-hppab.h: change interface for target dependent
1616 code supporting watch point.
1620 * remote-os9k.c (rombuf_command): fix a bug accepting rombug
1622 * stabsread.c (read_struct_fields): os9k nested structure does not
1623 have terminating ';', instead it just get to ',' and bit position
1628 * nlmread.c (nlm_symtab_read): Clean up a bit.
1629 * (nlm_symfile_read): Record bounds of main() so that backtrace
1630 command will know where to stop.
1631 * objfiles.c (objfile_relocate): Relocate entry point/func info
1632 for backtrace as well.
1633 * objfiles.h: Define values for invalid PCs for entry point info.
1634 * symfile.c (init_entry_point_info): Initialize invalid values
1635 with aforementioned macros.
1636 * config/alpha/tm-alphanw.h: Turn on FRAME_CHAIN_VALID_ALTERNATE
1637 to cause backtrace to stop when it gets back to main().
1638 * config/i386/tm-i386nw.h: Ditto.
1642 Fix value_print, which used to be ostensibly language-independent,
1643 but would print pointers and arrays in C syntax. Instead, call
1644 a language-specific function.
1645 * language.h (struct language_defn): New functional field
1647 (LA_VALUE_PRINT): New macro.
1648 * language.c (unk_lang_value_print): New stub/dummy function.
1649 (unknown_language_defn, auto_language_defn, local_language_defn):
1651 * c-valprint.c (c_value_print): New function, with code moved from:
1652 * valprint.c (value_print): ... here. Now just invoke
1653 LA_VALUE_PRINT to do language-specific stuff.
1654 * valprint.c (value_print_array_elements): Make non-static.
1655 * c-lang.c (c_language_defn, cplus_language_defn): Add
1656 c_value_print in the la_value_print field.
1657 * m2-lang.c (m2_language_defn): Likewise.
1658 * ch-lang.c (chill_language_defn): But here use chill_value_print.
1659 * ch-valprint.c (chill_val_print): Print null pointer as NULL.
1660 * ch-valprint.c (chill_value_print): New function, based on
1661 c_value_print, but use Chill "look and feel."
1662 * c-lang.h (c_value_print): New prototype.
1663 * ch-lang.h (chill_value_print): New prototype.
1664 * value.h (value_print_array_elements): New prototype.
1666 * ch-valprint.c (chill_val_print, case TYPE_CODE_BITSTRING
1667 and case TYPE_CODE_SET): Check that the element type isn't a stub.
1671 * main.c: Move entire file except for #ifndef MAIN_OVERRIDE code
1672 to new file top.c. Make things extern instead of static and
1673 similar rearrangements to deal with this.
1675 * utils.c: Move fputs_unfiltered to main.c. Remove
1676 FPUTS_UNFILTERED_OVERRIDE ifndef.
1677 * Makefile.in: Change so that gdb uses main.c, utils.c, and top.c,
1678 and libgdb uses utils.c and top.c.
1682 * hppa-tdep.c (skip_trampoline_code): Fix typo.
1686 * ch-valprint.c (chill_val_print_array_elements): New function.
1687 A Chill version of val_print_array_elements, it prints the
1688 array index labels, in additions ot the array element values.
1689 (chill_val_print): Use the new function.
1693 * configure.in: Add nlm subdir to configdirs for alpha-*-netware
1695 * defs.h (enum language): Add language_asm.
1696 * findvar.c (read_register_bytes read_register_gen
1697 write_register_bytes read_register read_register_pid
1698 write_register write_register_pid supply_register): Move multi-
1699 thread handling down into these routines. Create XXX_pid routines
1700 that allow register references to specify the pid.
1701 * findvar.c infcmd.c (read_pc read_pc_pid write_pc write_pc_pid
1702 read_sp write_sp read_fp write_fp): Move these routines from
1703 infcmd to findvar to centralize the whole mess.
1704 * i386-nlmstub.c: Portability fixes.
1705 * infptrace.c (child_resume): Conditionalize to allow other natives
1706 to override it. Remove PIDGET gubbish, it's no longer necessary.
1707 * infrun.c (wait_for_inferior): Put registers_changed() before
1708 target_wait() to speed up remote debugging.
1709 * Replace code that reads registers from other threads with much
1710 nicer looking new function calls (see changes to findvar.c).
1711 * Don't skip prologues if debugging assembly source.
1712 * lynx-nat.c (child_resume): Lynx now needs it's own version of
1713 child_resume to handle multi-thread debugging properly.
1714 * remote.c: Add O response to get console output from target.
1715 * (readchar): Add timeout parameter. Handle SERIAL_EOF and
1716 SERIAL_ERROR here to simplify callers.
1717 * Change static var timeout to remote_timeout.
1718 * (fromhex): Remove unnecessary return -1 at end of routine.
1719 * (remote_wait): Turn this into a big switch statement. Add
1720 support for O response.
1721 * (putpkt): Remove unnecessary handling of SERIAL_EOF/ERROR.
1722 * (getpkt): Split getpkt into two parts. read_frame deals with
1723 all formatting issues, run-length encoding, and framing. getpkt
1724 now handles error recovery, and frame detection.
1725 * ser-tcp.c (tcp_readchar): Handle EINTR from read().
1726 * ser-unix.c (hardwire_raw): Set CLOCAL so that we ignore modem
1727 control. (hardwire_readchar): Handle EINTR from read().
1728 * symfile.c (deduce_language_from_filename): Add support for .s
1730 * config/nm-lynx.h: Define CHILD_WAIT so that lynx-nat.c can
1731 override infptrace's child_wait.
1732 * config/rs6000/rs6000lynx.mh: Use xm-rs6000ly.h & nm-rs6000ly.h
1733 instead of XXXlynx.h.
1734 * config/rs6000/rs6000lynx.mt: Use tm-rs6000ly.h instead of
1736 * nlm/gdbserve.c: Portability fixes.
1740 * inftarg.c (child_wait): Call proc_wait, not wait.
1741 (child_mourn_inferior): Call proc_remove_foreign.
1742 * main.c (gdb_init): Call init_proc.
1743 * main.c: Provide dummy versions of init_proc, proc_wait, and
1744 proc_remove_foreign for the gdb case (the libgdb case provides its
1745 own versions of these functions).
1746 * Makefile.in (libgdb-files): Add libproc.a.
1750 Hardware watchpoints for Linux, from Rick Sladkey
1752 * infrun.c (wait_for_inferior) [HAVE_CONTINUABLE_WATCHPOINT]: Add
1753 new hardware breakpoint recovery method.
1754 * i386v-nat.c (i386_insert_watchpoint,
1755 i386_insert_nonaligned_watchpoint, i386_remove_watchpoint,
1756 i386_stopped_by_watchpoint) [TARGET_CAN_USE_HARWARE_WATCHPOINT]:
1757 New functions to support the 386 hardware debugging registers.
1758 * config/i386/nm-linux.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT,
1759 HAVE_CONTINUABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
1760 target_insert_watchpoint, target_remove_watchpoint): Define these
1761 macros to use the hardware debugging functions in i386v-nat.c.
1765 * Makefile.in: Replace libgdb.a with libgdb-files. Make "all"
1770 * target.c, target.h: New variables target_activity_function and
1772 * inflow.c, inferior.h: New functions set_sigio_trap and
1774 * inftarg.c (child_wait), procfs.c (wait_fd): Call them.
1778 * remote-sim.h (sim_verbose): Delete.
1779 Document callbacks needed.
1780 (sim_*): Change result to void where there isn't one.
1781 (sim_open): Clarify argument and error response.
1782 (sim_close): Declare.
1783 (sim_load): Change bfd_handle argument to file name. Clarify result.
1784 (sim_create_inferior): Renamed from sim_set_args.
1785 (sim_set_pc): Delete.
1786 (sim_info): Delete printf_fn argument.
1787 * remote-sim.c (gdbsim_kill): Add comment describing purpose.
1788 (gdbsim_load): Try sim_load first.
1789 (gdbsim_create_inferior): Call sim_create_inferior.
1790 (gdbsim_open): Handle args == NULL. Update call to sim_open.
1791 (gdbsim_close): Call sim_close.
1792 (gdbsim_files_info): Update call to sim_info.
1793 (gdbsim_ops): Realign comments.
1795 * printcmd.c (decode_format): Allow TARGET_PTR_BIT to be non-constant.
1799 * xcoffread.c (read_xcoff_symtab): For C_FILE symbols, only use
1800 the auxent if the symbol's name is ".file". From David Edelsohn
1805 * breakpoint.c (breakpoint_1): Fix typo.
1807 * annotate.c (annotate_field_end): Fix typo.
1809 * Makefile.in: Move annotate.o from COMMON_OBS to OBS.
1811 * Makefile.in (TSSTART): Remove; no longer used.
1813 * utils.c (vfprintf_maybe_filtered, vfprintf_unfiltered): Call
1814 fputs_unfiltered and exit directly, rather than fatal. The latter
1815 calls vfprintf_unfiltered!
1817 * gdbtypes.h, gdbtypes.c (can_dereference): New function.
1818 * value.h, printcmd.c (print_value_flags): Move from here...
1819 * annotate.c: ...to here, and make it use can_dereference.
1823 * inflow.c (job_control, attach_flag, generic_mourn_inferior):
1824 Remove, needed for both native and cross.
1825 * target.c (attach_flag, generic_mourn_inferior): Put here.
1826 * utils.c (job_control): Put here.
1827 (terminal.h): Don't include anymore.
1831 * source.c (find_source_lines): Always use code that was #ifdef
1832 BROKEN_LARGE_ALLOCA. Do the cleanup before returning, rather than
1833 leaving it on the chain. Reindent much of this function.
1834 * config/sparc/{xm-sun4sol2.h,xm-sun4os4.h},
1835 config/i386/{xm-sun386.h,xm-i386m3.h,xm-i386mach.h},
1836 config/m68k/{sun3os4.h,xm-news.h,xm-hp300hpux.h},
1837 config/ns32k/xm-ns32km3.h: Remove all references to
1838 BROKEN_LARGE_ALLOCA; with the above change it is no longer needed.
1839 * main.c, fork-child.c, many config files: Remove all
1840 SET_STACK_LIMIT_HUGE code; with the above changes it should no
1843 * symtab.c (lookup_partial_symbol): Use if and abort, not assert.
1844 This avoids __eprintf troubles.
1848 * main.c (main): Surround in #ifndef MAIN_OVERRIDE. Move
1849 initialization code which needs to be called even if we bypass the
1850 command line stuff into gdb_init.
1851 * utils.c (fputs_unfiltered): Surround in #ifndef
1852 FPUTS_UNFILTERED_OVERRIDE.
1853 * Makefile.in (libgdb.a): New target.
1855 * utils.c: Rearrange I/O stuff a bit so that all output goes
1856 through fputs_unfiltered. Use vasprintf; removes arbitrary limit
1857 which made %s not work with arbitrarily large strings.
1858 * printcmd.c (printf_command): Use printf_filtered, not
1859 printf_unfiltered and printf, now that arbitrary limit is gone.
1862 * breakpoint.c (watchpoint_check): Remove unused variable b.
1863 * stack.c (print_frame_info): Move sp and buf inside #if.
1864 * eval.c (evaluate_subexp): Remove unused variables pp,
1865 mangle_ptr, ptr, and mangle_tstr.
1866 * valarith.c (value_x_binop): Remove unused variables mangle_tstr
1868 * symtab.c (lookup_symtab): Put variable copy inside #if.
1869 (decode_line_1): Put variable q1 inside #if 0.
1870 * target.h: Declare target_link.
1871 * infrun.c (wait_for_inferior): Remove unused variables signame.
1872 * remote.c (remote_resume): Remove unused variable name.
1873 * c-exp.y (parse_number): Parenthesize operand of shift.
1874 * dbxread.c (record_minimal_symbol): Parenthesize operand of &&
1875 (this is a semantic change, the warning seems to have detected a bug).
1876 * dbxread.c (end_psymtab): Move variable p1 inside #if.
1877 * coffread.c: Move variable temptype inside #if.
1878 * ch-typeprint.c (chill_type_print_base): Remove unused variable
1880 * ch-valprint.c: #include typeprint.h and ch-lang.h.
1881 (chill_val_print): Remove unused variable in_range.
1882 (chill_val_print): Remove statement "length > TYPE_LENGTH (type);".
1883 (chill_val_print): Add default case for switch.
1884 * stabsread.h: Declare stabsect_build_psymtabs.
1885 * os9kread.c (read_minimal_symbols): Make this return void.
1886 (os9k_symfile_read): Remove unused variables stb_exist and val.
1887 (os9k_symfile_init): Remove unused variable val.
1888 (fill_sym): Remove unused variable id.
1889 (read_os9k_psymtab): Put variable back_to inside #if 0. Remove
1890 unused variable nsl.
1891 Remove unused variable symfile_bfd.
1892 #if 0 unused variables lbrac_unmatched_complaint and
1893 lbrac_mismatch_complaint.
1894 Remove declaration for non-existent function os9k_next_symbol_text.
1896 * annotate.c, annotate.h: New files, containing a function for
1897 each annotation which outputs it.
1898 * Move breakpoints_changed from breakpoint.c to annotate.c.
1899 * breakpoint.c, blockframe.c, infrun.c, cp-valprint.c, main.c,
1900 printcmd.c, source.c, stack.c, utils.c, valprint.c:
1901 Use annotate.c functions to output annotations.
1902 * Makefile.in (OBS): Add annotate.o.
1906 * hppa-tdep.c (read_unwind_info): Make sure elf_unwind_size and
1907 elf_unwind_entries are always initialized.
1909 * hppa-tdep.c (skip_trampoline_code): Handle argument relocation
1910 stubs which return directly to the caller rather than to the stub
1915 * c-exp.y (yyerror): Display a more informative error message.
1916 * ch-exp.y (yyerror): Ditto, don't use global yychar.
1917 * m2-exp.y (yyerror): Ditto.
1921 * inflow.c (job_control): Move definition to front of file.
1925 * maint.c (print_section_table): Rename SEC_SHARED_LIBRARY to
1926 SEC_COFF_SHARED_LIBRARY to match corresponding change in bfd.
1930 * Makefile.in (kdb): Remove old init.c creation commands.
1931 * configure.in (sparclite): Match on sparclite*.
1932 * sparclite/aload.c (main): Only change section addresses for
1933 a.out format object files.
1937 * config/i386/go32.mh: Define CC.
1941 * gdbserver/Makefile.in: Remove irrelevant definitions and
1942 comments inherited from the gdb Makefile.
1943 (BFD_DIR, BFD, BFD_SRC, BFD_CFLAGS): Add from gdb Makefile.
1944 (VERSION): Update to 4.12.3.
1945 (gdbserver): Remove any existing executable first.
1946 (distclean, realclean): Remove nm.h.
1947 * gdbserver/low-lynx.c: Add Sparc Lynx support.
1948 * gdbserver/low-sparc.c, gdbserver/low-sun3.c (sys/wait.h):
1949 Don't use absolute pathname.
1953 * rs6000-nat.c (vmap_ldinfo): Don't fail if fstat returns an
1958 * infrun.c (proceed, normal_stop, wait_for_inferior), breakpoint.c
1959 (print_it_normal): Add annotations for the inferior starting and
1960 stopping, and for all the various messages related to how it
1963 * printcmd.c (do_one_display): Annotate.
1964 * stack.c (print_frame_info): Annotate printing of stack frames.
1968 * remote.c (get_offsets): Handle case where stub doesn't support
1973 Add partial support for g++ code compiled with -fvtable-thunks.
1974 * c-valprint.c (c_val_print): Add vtblprint support
1976 * cp-valprint.c (cp_is_vtbl_member): A vtable can be an array of
1977 pointers (if using thunks) as well as array of structs (otherwise).
1978 * cp-valprint.c (vtbl_ptr_name_old, vtbl_ptr_name): Move to global
1979 level, and make the latter non-static (so define_symbol can use it).
1980 * stabsread.c (define_symbol): If the type being defined is a
1981 pointer type named "__vtbl_ptr_type", set the TYPE_NAME to that name.
1982 * symtab.h (VTBL_PREFIX_P): Allow "_VT" as well as "_vt".
1983 * values.c (value_virtual_fn_field): Handle thunks.
1984 * values.c (value_headof): Minor efficiency hack.
1985 * values.c (value_headof): Incomplete thunk support. FIXME.
1989 * valprint.c (print_longest): Clarify comment about use_local.
1990 * printcmd.c, defs.h (print_address_numeric), callers in
1991 symmisc.c, symfile.c, stack.c, source.c, remote.c, infcmd.c,
1992 cp-valprint.c, core.c, ch-valprint.c, c-valprint.c, breakpoint.c,
1993 exec.c: New argument use_local.
1994 * source.c (identify_source_line): Use filtered output. Use
1995 print_address_numeric.
1997 * core.c (memory_error), symtab.c (cplusplus_hint, decode_line_1),
1998 language.c (type_error, range_error): Use filtered output.
1999 * utils.c (error_begin): Update comment to tell people to use
2002 * Makefile.in (HFILES_WITH_SRCDIR): List bfd.h.
2003 (HFILES_NO_SRCDIR): List gdbcore.h not gdbcore_h, so as not to get
2008 * procfs.c (procfs_wait): Reinstate code which deduces the signal
2009 from the fault, #ifndef FAULTED_USE_SIGINFO.
2010 * config/sparc/tm-sun4sol2.h: Define FAULTED_USE_SIGINFO.
2014 * breakpoint.c (breakpoint_1): Annotate each field of the headers.
2015 Explicitly annotate each record.
2019 * xcoffexec.c: Reformat to standards and lint.
2020 (language.h): Include.
2021 (exec_close): Declare arg "quitting".
2022 (file_command): Declare arg "from_tty".
2023 (map_vmap): Cast xmalloc result to PTR.
2024 * rs6000-nat.c: Reformat to standards and lint.
2025 (exec_one_dummy_insn): Use char array for saved instruction.
2026 (fixup_breakpoints): Declare.
2027 (vmap_ldinfo): Be more informative in fatal error messages.
2028 (xcoff_relocate_symtab): Define to return void.
2029 * xcoffsolib.h: Reformat to standards, improve comments.
2030 * config/rs6000/nm-rs6000.h (xcoff_relocate_symtab): Declare.
2034 * utils.c, defs.h (error_begin): New function.
2035 (quit): Print annotation before printing the error message.
2036 * main.c (return_to_top_level): Print annotation before doing the
2038 * symtab.c (decode_line_1): Call error not warning and then
2039 return_to_top_level. Call error_begin and printf_unfiltered
2040 rather calling warning (before calls to return_to_top_level).
2041 * core.c (memory_error): Use error_begin, printf_unfiltered,
2042 print_address_numeric and return_to_top_level instead of error.
2043 Cleans up a FIXME-32x64.
2044 * language.c (type_error, range_error): Call error_begin
2045 not just target_terminal_ours.
2047 * dbxread.c (stabsect_build_psymtabs): Assign to sym_stab_info
2048 directly, rather than via DBX_SYMFILE_INFO. A cast on the left
2049 side of an assignment is non-portable.
2051 * utils.c (query): Change syntax of query annotations to be
2052 consistent with other input annotations.
2053 (prompt_for_continue): Likewise for prompt-for-continue annotation.
2057 * mdebugread.c (psymtab_to_symtab_1): Do not call sort_blocks
2059 * mips-tdep.c (mips_skip_prologue): Handle prologues for functions
2060 that have a stack frame size of 32k or larger (from Paul Flinders).
2061 Remove #if 0'd code.
2065 * lynx-nat.c (CANNOT_STORE_REGISTER): Add a fallback definition
2066 for Lynx platforms that need it.
2067 * config/nm-lynx.h (__LYNXOS): Define if not already defined.
2071 * procfs.c (procfs_wait): Use the signal from the pr_info rather
2072 than trying to deduce it from the fault.
2076 * printcmd.c (print_address_symbolic): Initialize name to empty
2077 string to avoid core dump if lookup fails.
2078 * remote-e7000.c (printf_e7000debug): Error if target not open.
2080 Tue Apr 26 22:45:24 1994 Stu Grossman (grossman at cygnus.com)
2082 * i386-nlmstub.c: Update to be more in line with PIN stub.
2083 * nlm/gdbserve.c (putDebugChar): Install bug fix from i386-nlmstub.
2084 * (hex2mem): Init ptr.
2085 * General cleanups to use ConsolePrintf, standard prologues, etc...
2087 Tue Apr 26 10:23:04 1994 Stu Grossman (grossman at cygnus.com)
2089 * i386-nlmstub.c: More changes to be compatible with remote.c.
2091 * dbxread.c: Move a bunch of strncmps out of process_one_symbol
2092 into (the far less frequently called) dbx_symfile_read.
2094 * i386-nlmstub.c: An interim version till we get PIN for the x86.
2096 Tue Apr 26 09:50:45 1994 Stu Grossman (grossman at cygnus.com)
2098 * dbxread.c (record_minimal_symbol): Record the section
2099 associated with the symbol to make dynmaic relocation work.
2100 * (dbx_symfile_read, process_one_symbol): Fixes to work around
2101 Solaris brain-damage which don't apply to relocatable object
2103 * (stabsect_build_psymtabs): New routine to read stabs out of an
2104 arbitrarily named section.
2105 * nlmread.c (nlm_symtab_read): Read ALL syms from the NLM, not just
2107 * (nlm_symfile_read): Call stabsect_build_psymtabs to read the
2108 stabs out of the nlm.
2109 * partial-stabs.h (cases 'f' & 'F'): Fixes to work around Solaris
2110 brain-damage which don't apply to relocatable object files.
2111 * remote.c (putpkt): Improve error reporting and error handling.
2112 * (get_offsets): Temporary kludge to force data & bss sections to
2113 have the same relocation.
2114 * stabsread.c (define_symbol, scan_file_globals): Record section
2119 * breakpoint.c (breakpoint_1): Annotate each field of output. Add
2120 FIXME-32x64 comment.
2124 * infrun.c (wait_for_inferior): Move call to flush_cached_frames
2125 to after call to target_wait. This means that flush_cached_frames
2126 can call target_terminal_ours if it wants to.
2127 * infrun.c (wait_for_inferior) [HAVE_NONSTEPPABLE_WATCHPOINT]: Add
2128 comment about why the code is dubious.
2130 * stabsread.c (read_type): Call read_type, not nonexistent
2135 * remote-os9k.c (rombug_fetch_registers): set trace mode
2137 * remote-os9k.c (rombug_read_inferior_memory): cache data in
2139 * os9kread,c (read_os9k_psymtab): process file symbol to truncate
2141 * os9kread.c (os9k_read_ofile_symtab): proper casting of args
2142 passed to process_one_symbol.
2143 * stabsread.c (read_type): process os9k functio prototype.
2147 * solib.c (symbol_add_stub): If so->textsection is NULL, don't
2152 * utils.c (prompt_for_continue): Annotate prompt.
2153 (query): Annotate query.
2154 * printcmd.c (print_frame_args): Change syntax of argument
2155 annotation to make name and value part of a single group of
2156 annotations, not two separate groups.
2157 * cp-valprint.c (cp_print_value_fields): Likewise for fields.
2158 * valprint.c (val_print_array_elements): Change syntax of
2159 annotation to be more concise.
2160 * main.c, defs.h (command_line_input): New argument tells what
2161 string to include in the annotations.
2162 * symtab.c (decode_line_2), main.c (read_command_lines,
2163 command_loop): Change callers.
2165 * breakpoint.c (watch_command): Use (CORE_ADDR)0, not NULL, for
2166 target null pointer.
2167 * blockframe.c (find_frame_addr_in_frame_chain): Likewise.
2169 * printcmd.c (output_command): Annotate things we print here too.
2170 * printcmd.c (print_command_1): Add "value-history-value" annotation.
2171 * Move declaration of print_value_flags from defs.h to value.h.
2172 * main.c (command_line_input): Call wrap_here as well as gdb_flush.
2176 * dbxread.c (read_dbx_dynamic_symtab): Reinstall support for sun3,
2177 BFD handles sun3 dynamic relocations now.
2178 * elfread.c (elf_symtab_read, elf_symfile_read): Handle dynamic
2183 * printcmd.c (print_command_1): Annotate the top-level expressions
2185 (print_frame_args): Annotate each argument.
2186 * printcmd.c, defs.h (print_value_flags): New function.
2187 * cp-valprint.c (cp_print_value_fields): Annotate each field.
2188 * valprint.c (val_print_array_elements): Annotate each array element.
2192 * findvar.c (read_var_value): Handle LOC_REPARM_ADDR case correctly,
2193 the register contains a pointer to the type, not the type itself.
2197 * main.c (main): Accept --annotate=N option and make --fullname
2198 the same as --annotate=1.
2199 (command_line_input): Print annotatation before and after prompt.
2200 * blockframe.c (flush_cached_frames): Print annotation.
2201 * Rename frame_file_full_name to annotation_level and move it from
2203 * source.c (identify_source_line): If annotation_level > 1,
2204 change output format.
2205 * breakpoint.c: Print annotation whenever a breakpoint changes.
2206 * main.c: New variable server_command.
2207 (command_line_input): Parse "server " and set server_command.
2208 (dont_repeat): Check server_command.
2212 * xcoffread.c (xcoff_next_symbol_text): Don't return before
2213 updating raw_symbol and symnum. Return a value in the case where
2216 * dstread.c, coffread.c: Don't define pending_blocks; buildsym.c
2218 * parse.c: Don't define block_found; it is defined in symtab.c.
2219 * parser-defs.h: Add comment regarding block_found.
2223 * hppa-tdep.c (internalize_unwind_info): Delete unused indexp
2228 * dbxread.c (read_dbx_dynamic_symtab): Relocate BFD symbols by
2229 section vma. Do not read dynamic relocs for sun3 executables to
2230 avoid BFD assertion message.
2234 * nm-hppab.h (KERNEL_U_ADDR): Define.
2235 (FIVE_ARG_PTRACE): Likewise.
2236 (CANNOT_STORE_REGISTER): Likewise.
2237 * nm-hppah.h (KERNEL_U_ADDR): Define.
2238 (FIVE_ARG_PTRACE): Likewise.
2239 (CANNOT_STORE_REGISTER): Likewise.
2240 (NEED_TEXT_START_END): Likewise.
2242 * tm-hppah.h (NEED_TEXT_START_END): Delete definition.
2243 * xm-hppah.h (KERNEL_U_ADDR): Delete definition.
2244 (FIVE_ARG_PTRACE): Likewise.
2245 * xm-hppab.h (KERNEL_U_ADDR): Delete definition.
2246 (FIVE_ARG_PTRACE): Likewise.
2248 * hppa-tdep.c (read_unwind_info): Make static.
2249 (restore_pc_queue): Indirect through the target vector to
2250 reload the register state.
2254 * paread.c (compare_unwind_entries): Delete function. It's been
2255 moved into hppa-tdep.c.
2256 (read_unwind_info): Likewise.
2257 (pa_symfile_read): No longer call read_unwind_info. The unwind
2258 tables will be read in as they are needed.
2260 * hppa-tdep.c (compare_unwind_entries): New function.
2261 (read_unwind_info, internalize_unwinds): Likewise.
2262 (find_unwind_entry): Read in unwind information on demand.
2266 * source.c (DIRNAME_SEPARATOR): New macro, replaces all references
2267 to : in search path processing.
2268 * defs.h (qsort): Rename argument in prototype.
2269 * symtab.h (SAYMBOL_VALUE): Rename value field, avoids bugs in
2271 * breakpoint.c, exec.c, mdebugread.c, mipsread.c, xcoffexec.c
2272 (false): Eliminate usages.
2276 * h8500-tdep.c (initialize_h8500_tdep, large_command):
2277 All references to value changed to value_ptrlage_command is now
2279 All references to value changed to value_ptr.
2280 * remote-e7000.c (e7000_wait): Use target_waitstatus and SETSTOP
2281 * remote-hms.c (hms_wait): Timeout after five seconds.
2282 * ser-go32.c (dosasync_read): Poll if timeout < 0.
2283 * config/tm/tm-h8500.h (BEFORE_MAIN_LOOP_HOOK): Deleted.
2284 * config/sh/tm-sh.h (BREAKPOINT): Is now sleep opcode.
2288 * procfs.c (procfs_wait): Protect watchpoint code with appropriate
2290 (procfs_set_watchpoint, procfs_stopped_by_watchpoint): Likewise.
2294 * breakpoint.h (enum bptype): Add bp_hardware_watchpoint and
2295 bp_watchpoint_scope breakpoints.
2296 (struct breakpoint): Add val_chain and related_breakpoint fields
2297 for use by watchpoints.
2299 * breakpoint.c (within_scope): Delete. No longer used.
2300 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Provide default definition.
2301 (target_{remove,insert}_watchpoint): Likewise.
2302 (can_use_hardware_watchpoint): New function.
2303 (remove_breakpoint): New function to remove a single breakpoint
2304 or hardware watchpoint.
2305 (insert_breakpoints): Handle insertion of hardware watchpoints.
2306 Store a copy of the value chain derived from the watchpoint
2308 (remove_breakpoints): Simplify by using remove_breakpoint.
2309 (delete_breakpoint): Likewise.
2310 (watchpoint_check): Delete the watchpoint and watchpoint scope
2311 breakpoints when the watchpoint goes out of scope. Save & restore
2312 the current frame after checking watchpoints.
2313 (breakpoint_init_inferior): Likewise (restarting the program
2314 makes all local watchpoints go out of scope).
2315 (bpstat_stop_status): Handle hardware watchpoints much like normal
2316 watchpoints. Delete the watchpoint and watchpoint scope breakpoint
2317 when the watchpoint goes out of scope. Remove and reinsert all
2318 breakpoints before returning if we stopped when a hardware watchpoint
2320 (watch_command): Use a hardware watchpoint when possible. If
2321 watching a local expression, build a scope breakpoint too.
2322 (map_breakpoint_numbers): Also call given function for any
2323 related breakpoints.
2324 (disable_breakpoint): Never disable a scope breakpoint.
2325 (enable_breakpoint): Handle hardware breakpoints much like normal
2326 breakpoints, but recompute the watchpoint_scope breakpoint's
2327 frame and address (if we have an associated scope breakpoint).
2328 (read_memory_nobpt): Handle hardware watchpoints like normal
2329 watchpoints. When necessary handle watchpoint_scope breakpoints.
2330 (print_it_normal, bpstat_what, breakpoint_1, mention): Likewise.
2331 (clear_command, breakpoint_re_set_one, enable_command): Likewise.
2332 (disable_command): Likewise.
2334 * blockframe.c (find_frame_addr_in_frame_chain): New function.
2335 Extern prototype added to frame.h
2337 * infrun.c (wait_for_inferior): Set current_frame and select
2338 a frame before checking if we stopped due to a hardare watchpoint
2339 firing. Handle stepping over hardware watchpoints.
2340 (normal_stop): Remove unnecessary call to select_frame.
2342 * value.h (value_release_to_mark): Declare.
2343 * values.c (value_release_to_mark): New function.
2345 * procfs.c (procfs_wait): Add cases for hardware watchpoints.
2346 (procfs_set_watchpoint, procfs_stopped_by_watchpoint): New functions.
2348 * hppab-nat.c (hppa_set_watchpoint): New function.
2350 * config/pa/nm-hppab.h (STOPPED_BY_WATCHPOINT): Define.
2351 (HAVE_STEPPABLE_WATCHPOINT): Define.
2352 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Define.
2353 (target_{insert,delete}_watchpoint): Define.
2355 * config/mips/nm-irix4.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Define.
2356 (STOPPED_BY_WATCHPOINT, HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2357 (target_{insert,remove}_watchpoint): Likewise.
2359 Mon Apr 11 19:21:27 1994 Stu Grossman (grossman at cygnus.com)
2361 * xcoffread.c (read_xcoff_symtab): Ignore symbols of class C_EXT,
2362 smtyp XTY_LD, sclass XMC_DS (external data segment label). They
2363 often have the same names as debug symbols for functions, and
2364 confuse lookup_symbol().
2368 * remote.c: Around redefinition of PBUFSIZE, adjust whitespace.
2369 * config/pa/tm-hppa.h (REGISTER_BYTES): Use 4 rather than
2370 REGISTER_RAW_SIZE (1).
2371 Together these changes work around a bug in HP's compiler. Both
2372 seem to be necessary.
2376 * paread.c (pa_symtab_read): Handle ST_STUB symbols and symbols
2377 with scope SS_EXTERNAL. ST_ENTRY symbols in dynamic executables
2378 are type mst_solib_trampoline.
2382 * config/m68k/es1800.mt: Change comments.
2386 * config/m68k/monitor.mt (TDEPFILES): Don't include remote-es.o.
2388 Fri Apr 8 15:35:30 1994 Stu Grossman (grossman at cygnus.com)
2390 * lynx-nat.c: Restore regmap structure for SPARC. It's needed
2395 * values.c (unpack_long): Remove obsolete comment about using a
2398 * symfile.c (symbol_file_command): Add comments about command syntax.
2403 * infrun.c (IN_SOLIB_TRAMPOLINE): Correct comment, trampolines
2404 are in the .plt section.
2405 * minsyms.c (lookup_solib_trampoline_symbol_by_pc,
2406 find_solib_trampoline_target): New functions for handling
2407 stepping into -g compiled shared libraries.
2408 * symtab.h (lookup_solib_trampoline_symbol_by_pc,
2409 find_solib_trampoline_target): Add prototypes.
2410 * config/tm-sunos.h (IN_SOLIB_TRAMPOLINE, SKIP_TRAMPOLINE_CODE):
2411 Define to handle stepping into -g compiled shared libraries.
2412 * config/tm-sysv4.h (SKIP_TRAMPOLINE_CODE): Define to handle
2413 stepping into -g compiled shared libraries.
2417 * configure.in: Add mips-*-sysv4* support.
2418 * config/mips/mipsv4.mh, config/mips/mipsv4.mt,
2419 config/mips/tm-mipsv4.h, config/mips/xm-mipsv4.h, mipsv4-nat.c:
2420 New files for MIPS SVR4 support.
2421 * Makefile.in: Update for new mipsv4 files.
2422 * alpha-tdep.c (heuristic_proc_desc, find_proc_desc): Use
2423 read_next_frame_reg to obtain the frame relative stack pointer.
2424 * mips-tdep.c (heuristic_proc_desc): Use read_next_frame_reg to
2425 obtain the frame relative stack pointer.
2426 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab1):
2427 Handle stStatic and stStaticProc symbols in stabs-in-ecoff output
2428 by entering them into the minimal symbol table.
2429 * printcmd.c (print_scalar_formatted): Do not try to unpack to
2430 a long for float formats.
2431 * solib.c: Include "elf/mips.h" only if DT_MIPS_RLD_MAP does not
2432 get defined in <link.h>.
2433 * solib.c (solib_add): Add shared library sections to the section
2434 table of the target before adding the symbols.
2435 * partial-stab.h: Relocate static and global functions.
2436 * dbxread.c (read_dbx_symtab): Remove unused variable
2437 end_of_text_address. Relocate text_addr when passing it
2440 For Alpha OSF/1 targets, enable gdb to set breakpoints in shared
2441 library functions before the executable is run. Retrieve dynamic
2442 symbols from stripped executables.
2443 * mipsread.c (read_alphacoff_dynamic_symtab): New function.
2444 * mipsread.c (mipscoff_symfile_read): Use it. Issue warning message
2445 if no debugging symbols were found.
2446 * alpha-tdep.c (alpha_skip_prologue): Silently return the unaltered
2447 pc if memory at the pc is not accessible and GDB_TARGET_HAS_SHARED_LIBS
2449 * config/alpha/nm-alpha.h (GDB_TARGET_HAS_SHARED_LIBS): Define,
2450 OSF/1 has shared libraries.
2454 * dbxread.c (read_dbx_dynamic_symtab): Adjust for recent changes
2455 to BFD handling of dynamic symbols.
2459 * hppa-tdep.c (hppa_fix_call_dummy): If FUN is a procedure label,
2460 then gets its real address into FUN and its GOT/DP value into %r19.
2462 * tm-hppa.h (CALL_DUMMY): Use %r20, not %r19 as a temporary.
2464 * hppa-tdep.c (frameless_function_invocation): If no unwind
2465 descriptor was found, then assume this was not a frameless
2466 function invocation.
2467 (frame_saved_pc): If the saved PC is in a linker stub, then
2468 return the return address which the linker stub will return to.
2470 * xm-hppab.h: Never define USG.
2471 * xm-hppah.h: Always define USG.
2475 * values.c (unpack_long, value_from_longest),
2476 valarith.c (value_binop): Allow TYPE_CODE_RANGE.
2480 * symfile.c (deduce_language_from_filename): .cpp is a C++ extension.
2484 For SVR4 targets, enable gdb to set breakpoints in shared
2485 library functions before the executable is run.
2486 * elfread.c (elf_symtab_read): Handle symbols for shared library
2488 * sparc-tdep.c (in_solib_trampoline): Renamed to in_plt_section
2489 and moved to objfiles.c.
2490 * objfiles.c (in_plt_section): Moved to here from sparc-tdep.
2491 * config/tm-sysv4.h (IN_SOLIB_TRAMPOLINE): Use new in_plt_section.
2492 * config/sparc/tm-sun4sol2.h (IN_SOLIB_TRAMPOLINE): Removed,
2493 the new generic definition from tm-sysv4.h works for Solaris.
2497 * elfread.c (elf_symtab_read): Change storage_needed,
2498 number_of_symbols and i to long. Rename get_symtab_upper_bound to
2499 bfd_get_symtab_upper_bound. Check for errors from
2500 bfd_get_symtab_upper_bound and bfd_canonicalize_symtab.
2501 * nlmread.c (nlm_symtab_read): Same changes.
2505 * xcoffread.c (xcoff_next_symbol_text): New function.
2506 (read_xcoff_symtab): Set next_symbol_text_func to it.
2507 Move raw_symbol outside of read_xcoff_symtab.
2509 * remote.c (getpkt): Remove unused "out" label.
2513 * breakpoint.c (print_it_normal): Allow GDB to notify the user
2514 about more than one watchpoint being triggered.
2518 * config/m68k/tm-dpx2.h: Include tm-m68k.h not nonexistent tm-68k.h.
2522 * blockframe.c (find_pc_partial_function): mst_file_text
2523 symbols do not live in the shared library transfer table.
2524 * ch-exp.y (decode_integer_value, match_character_literal,
2525 match_bitstring_literal): Guard tolower calls with isupper,
2526 tolower on old BSD systems blindly subtracts a constant.
2527 * dbxread.c (read_ofile_symtab): Check for __gnu_compiled_* as
2528 well when determining the producer of the object file.
2529 * mdebugread.c (has_opaque_xref): New function to check for
2530 cross reference to an opaque aggregate.
2531 * mdebugread.c (parse_symbol, parse_partial_symbols): Do not
2532 enter typedefs to opaque aggregates into the symbol tables.
2533 * mdebugread.c (parse_external): Remove skip_procedures argument,
2534 it has always been 1. Remove code that handled stProc symbols,
2535 it was never executed and was wrong, as the index of a
2536 stProc symbol points to the local symbol table and not to the
2537 auxiliary symbol info. Update caller.
2538 * mdebugread.c (parse_partial_symbols): Do not enter external
2539 stProc symbols into the partial symbol table, they are already
2540 entered into the minimal symbol table.
2541 * config/i386/tm-symmetry.h: Clean up, it is now only used for Dynix.
2542 Remove all conditionals and definitions for ptx.
2543 I386_REGNO_TO_SYMMETRY moved to here from symm-tdep.c.
2544 Fix addresses of floating point registers in REGISTER_U_ADDR.
2545 STORE_STRUCT_RETURN now handles cc and gcc conventions.
2546 FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC,
2547 IN_SIGTRAMP, SIGCONTEXT_PC_OFFSET defined to make backtracing through
2548 signal trampoline code work.
2549 * config/i386/xm-symmetry.h: Clean up, it is now only used for Dynix.
2550 Remove all conditionals and definitions for ptx.
2551 Remove KDB definitions.
2552 * symm-nat.c (store_inferior_registers): Fetch registers before
2553 storing them to obtain valid floating point control registers.
2554 Store fpu registers.
2555 * symm-nat.c (print_1167_control_word): Dynix 3.1.1 defines
2556 FPA_PCR_CC_C0 and FPA_PCR_CC_C1, avoid duplicate case value.
2557 * symm-nat.c (fetch_inferior_registers, child_xfer_memory):
2559 * symm-nat.c (child_resume): Update type of `signal' parameter.
2560 * symm-tdep.c (I386_REGNO_TO_SYMMETRY): Moved to tm-symmetry.h.
2564 * hppa-tdep.c (hppa_fix_call_dummy): Use an alternate method for
2565 calling import stubs for functions in shared libraries.
2569 * ch-exp.y: Implement SIZE(mode_name) and SIZE(expression).
2571 * ch-lang.c (chill_is_varying_struct): Magic string is
2572 was "<var_length>" is now "__var_length" (more portable).
2576 * remote.c (getpkt): If we get a timeout, actually retry rather
2577 than just giving up the first time it happens.
2578 * remote.c: Document sequence numbers.
2579 (remote_store_registers): Change syntax of 'P' request so that it
2580 never looks like a sequence number.
2584 * os9kread.c (record_minimal_symbol): add section_offset to
2585 relocate minimal symbol table.
2586 * os9kread.c (read_minimal_symbols): ditto.
2587 * os9kread.c (os9k_symfile_init): increase size of dbg and stb
2589 * os9kread.c (read_os9k_psymtab): if there's no dbg file, just
2590 return. Also if file addr is 0 leave it 0, not to relocate.
2591 * remote-os9k.c (_initialize_remote_os9k): add 'set remotexon',
2592 'set remotexoff' and 'set remotelog' commands.
2596 * remote.c (remote_store_registers): Add 'P' request to set an
2597 individual register.
2598 (remote_write_bytes, remote_read_bytes): Use %lx, not %x, to print
2603 * config/sparc/tm-sparc.h: Define USE_REGISTER_NOT_ARG.
2604 * stabsread (define_symbol): If USE_REGISTER_NOT_ARG, go back to
2605 combining all 'p' and 'r' pairs into a LOC_REGPARM.
2607 * command.c (do_setshow_command, case var_string): Never add a
2608 space to the end of the string.
2609 * NEWS: Document this change.
2610 * .gdbinit: Add a space to the "set prompt" command.
2614 * m3-nat.c, i386m3-nat.c, config/i386/i386m3.mh: Many minor
2615 changes to make it compile (it doesn't link yet).
2617 * buildsym.c (start_subfile, patch_subfile_names), demangle.c
2618 (set_demangling_style, set_demangling_command): Use savestring not
2619 strdup. We were not dealing properly with a NULL return from
2620 strdup, and were not declaring strdup (the system header may or
2623 * valprint.c (val_print): Remove inaccurate comment about what
2624 types can be stub types.
2626 * config/i386/ptx.mh (XDEPFILES): Add coredep.o. Delete infptrace.o.
2627 * symm-nat.c (child_wait, _initialize_symm_nat, kill_inferior):
2628 Supply alternate version if ATTACH_DETACH is not defined.
2629 * ptx4-nat.c, config/i386/{nm-ptx4.h, ptx4.mh, ptx.mt, ptx4.mt,
2630 tm-ptx.h, tm-ptx4.h, xm-ptx.h, xm-ptx4.h}: New files.
2631 * configure.in: Recognize i[34]86-sequent-sysv4* host.
2635 * hppa-tdep.c (skip_prologue): Do nothing if not at the beginning
2637 (skip_trampoline_code): Rewrite and add support for argument
2638 relocation stubs stubs, import/export stubs, calls through
2639 "_sr4export" and cascaded trampolines.
2641 * hppa-tdep.c (skip_prologue): Return "pc" not zero
2642 if no unwind descriptor is found.
2644 * tm-hppa.h (NUM_REGS): Bump to 128 registers.
2645 (REGISTER_NAMES): Add entries for "right-half" of FP registers.
2646 (REGISTER_RAW_SIZE, MAX_REGISTER_RAW_SIZE): Do not treat FP regs
2647 differently. All registers are four bytes.
2648 (REGISTER_BYTES, REGISTER_BYTE): Simplify now that all registers are
2650 (REGISTER_VIRTUAL_TYPE): Use builtin_type_float for all FP regs.
2652 * hppa-tdep.c (pa_print_fp_reg): Update to print even numbered FP
2653 registers as both single and double values (fetching 2nd 32bit half
2654 as necessary). Annotate each register printed with its precision.
2656 * paread.c (read_unwind_info): Fix off-by-one error.
2660 * main.c (complete_command): Deal with it if arg is NULL.
2664 * config/mips/tm-mips.h (SETUP_ARBITRARY_FRAME): Revise comment
2665 regarding using the PC--using the PC is necessary and all the
2666 FIXME comments in the world won't make it go away.
2668 * valops.c (value_at, value_at_lazy): Give error if we dereference
2670 * gdbtypes.h: Fix comments regarding TYPE_CODE_VOID.
2671 * stabsread.c: Use 1, not 0, for TYPE_LENGTH of void types.
2673 * stabsread.c (patch_block_stabs): Add comment about what happens
2674 if the definition is in another compilation unit from the stab.
2676 * dbxread.c (end_psymtab): Add comment about empty psymtabs.
2680 * main.c (complete_command): New command, from Rick Sladkey
2682 (symbol_completion_function): Don't declare rl_point and
2683 rl_line_buffer; they are now declared in readline.h.
2684 (show_commands): Don't declare history_base; it is declared in
2686 * command.c (lookup_cmd): Don't delete trailing whitespace.
2687 Reverts change of 14 May 1989.
2689 Wed Mar 23 16:14:52 1994 Stu Grossman (grossman at cygnus.com)
2691 * minsyms.c (prim_record_minimal_symbol): Move section deduction
2692 code from prim_record_minimal_symbol_and_info() to here. Callers
2693 of the latter can legitimately supply a section number of -1.
2697 * gdbtypes.h, gdbtypes.c: Add comments regarding whether static
2698 member functions have an element in args for a (nonexistent) this
2703 * config/pa/tm-hppao.h (NO_PC_SPACE_QUEUE_RESTORE): Define.
2705 * hppa-tdep.c (hppa_pop_frame): Do not restore the PC space
2706 queue if NO_PC_SPACE_QUEUE_RESTORE is defined.
2708 * stabsread.c (REG_STRUCT_HAS_ADDR): Accept additional argument
2709 for the structure's type. All callers changed.
2711 * valops.c (call_function_by_hand): Check REG_STRUCT_HAS_ADDR
2712 for each structure argument rather than assuming it's either
2713 true or false for all structure arguments.
2715 * config/pa/tm-hppa.h (REG_STRUCT_HAS_ADDR): Depend only
2716 on the length structure passed, not the compiler used.
2718 * config/sparc/tm-sparc.h (REG_STRUCT_HAS_ADDR): Accept additional
2719 argument for the structure's type.
2723 * values.c (set_internalvar): Don't set var->value until we are
2724 sure there won't be an error().
2726 * remote.c (get_offsets): Reinstate comment which was in
2727 remote_wait about use of SECT_OFF_TEXT and so on.
2731 * symmisc.c (maintenance_check_symtabs): New function to check
2732 consistency of psymtabs and symtabs.
2733 * symtab.h (maintenance_check_symtabs): Add prototype.
2734 * maint.c: Add new `maint check-symtabs' command.
2735 * config/i386/tm-i386aix.h, config/i386/tm-sun386.h,
2736 config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Fix typo.
2737 * config/i386/tm-symmetry.h: Make comment inside #if 0 a real
2739 * config/i386/tm-symmetry.h (STORE_STRUCT_RETURN): Cast argument
2740 to write_memory to avoid warnings from gcc.
2741 * config/i386/xm-symmetry.h: Add missing #endif.
2742 * config/i386/nm-symmetry.h (NO_PTRACE_H): Add for Dynix.
2743 * config/i386/symmetry.mt (TDEPFILES): Add i386-tdep.o.
2744 * config/i386/symmetry.mh (NAT_FILE, NATDEPFILES): Add.
2748 * hppa-tdep.c (hppa_fix_call_dummy): Use value_ptr.
2749 (hppa_push_arguments): Likewise.
2751 Mon Mar 21 11:02:51 1994 Stu Grossman (grossman at cygnus.com)
2753 * alpha-tdep.c: Gobs of changes (many imported from mips-tdep) to
2754 improve remote debugging efficiency. Also fixed problems with
2755 doing function calls for programs with no entry points.
2756 * infcmd.c (run_stack_dummy): Use CALL_DUMMY_ADDRESS instead of
2757 entry_point_address.
2758 * inferior.h (PC_IN_CALL_DUMMY): ditto.
2759 * mdebugread.c (parse_symbol, parse_procedure, parse_external,
2760 parse_lines): Pass section_offsets info to these routines so that
2761 we can relocate symbol table entries upon readin.
2762 * (psymtab_to_symtab_1): Set symtab->primary to tell
2763 objfile_relocate to do relocations for our symbols.
2764 * (ecoff_relocate_efi): New routine to relocate adr field of PDRs
2765 (which hang off of the symbol table).
2766 * Use prim_record_minimal_symbols_and_info instead of
2767 prim_record_minimal_symbols to supply section info to make minimal
2768 symbol relocations work.
2769 * minsyms.c (prim_record_minimal_symbols_and_info): If section is
2770 -1, try to deduce it from ms_type.
2771 * objfiles.c (objfile_relocate): Use ALL_OBJFILE_SYMTABS where
2772 appropriate. Handle relocation of MIPS_EFI symbols special. Also,
2773 add code to relocate objfile->sections data structure.
2774 * remote.c (get_offsets): Use new protocol message to acquire
2775 section offsets from the target.
2776 * (remote_wait): Get rid of relocation stuff. That's all handled
2777 by objfile_relocate now.
2778 * config/alpha/alpha-nw.mt (TM_FILE): Use tm-alphanw.h.
2779 * config/alpha/tm-alpha.h: Define CALL_DUMMY_ADDRESS, and
2781 * config/alpha/tm-alphanw.h: DECR_PC_AFTER_BREAK=0, VM_MIN_ADDRESS=0.
2785 * sparc-tdep.c (sparc_frame_find_save_regs): Use REGISTER_RAW_SIZE
2787 * sp64-tdep.c (target_ptr_bit, set_target_ptr_bit): Deleted,
2788 can no longer set this at run time.
2789 * config/sparc/sp64.mt (SIMFILES): Use remote-sim.o now.
2790 (TM_CLIBS): Define to -lm, the simulator uses the sqrt() function.
2791 * config/sparc/tm-sp64.h (FPS_REGNUM, CPS_REGNUM): Define (so
2792 sparc-tdep.c compiles).
2793 (TARGET_PTR_BIT): Must be a constant now, fix at 64.
2797 * config/m68k/{cisco.mt,tm-cisco.h}: New files.
2798 * Makefile.in (ALLPARAM, ALLCONFIG): Add them.
2799 * configure.in: Recognize m68*-cisco*-*.
2801 * Makefile.in (TAGS): Use variables directly, rather than using
2802 find, to locate TM_FILE, XM_FILE, and NAT_FILE. This is faster
2803 and means that these filenames no longer need be unique across all
2804 the config/* directories.
2805 * configure.in: Put the config/*/ into TM_FILE, etc.
2807 * m68k-stub.c (computeSignal): Return SIGFPE, not SIGURG, for chk
2808 and trapv exceptions.
2810 * target.h (struct section_table), objfiles.h (struct obj_section):
2811 Change name of field sec_ptr to the_bfd_section. More mnemonic
2812 and avoids the (sort of, for the ptx compiler) name clash with
2813 the name of the typedef.
2814 * exec.c, xcoffexec.c, sparc-tdep.c, rs6000-nat.c, osfsolib.c,
2815 solib.c, irix5-nat.c, objfiles.c, remote.c: Change users.
2817 * utils.c: Include readline.h.
2818 * Makefile.in (utils.o): Add dependency.
2820 * remote.c (getpkt): Add support for run-length encoding.
2824 * utils.c (prompt_for_continue): Call readline, not gdb_readline.
2828 * dstread.c (record_minimal_symbol): New arg objfile. Pass it to
2829 prim_record_minimal_symbol.
2832 * regex.c (EXTEND_BUFFER): Adjust pointers within buffer by
2833 computing their offset from the start of the old buffer and adding
2834 to the new buffer, rather than by assuming we can add the
2835 difference between the old buffer and the new buffer (it might not
2836 fit in an int). Merge in cosmetic differences from emacs regex.c
2837 version of this macro.
2841 * Makefile.in (install-only): Fix use of program_transform_name.
2845 * printcmd.c: Remove "set print fast-symbolic-addr off" command.
2846 The bug which it worked around was fixed on 25 Feb 94 in coffread.c,
2847 so I'm nuking the command.
2848 * symtab.c (find_addr_symbol): Comment out, no longer used.
2850 * main.c (main): Don't init_source_path for the -cd argument. Now
2851 that source_path doesn't contain the current_directory from when
2852 GDB started up, init_source_path is no longer useful (and is
2853 harmful because it clobbers a source_path set in $HOME/.gdbinit).
2855 * TODO: Remove item about line numbers being off. It is useless
2856 and confusing without a reproducible test case (it mentions
2857 proceed(), but I was able to step through proceed without trouble).
2861 For Sunos 4.x targets, enable gdb to set breakpoints in shared
2862 library functions before the executable is run. Retrieve dynamic
2863 symbols from stripped executables.
2864 * symtab.h (minimal_symbol_type): Add mst_solib_trampoline type.
2865 * parse.c (write_exp_msymbol), symmisc.c (dump_msymbols),
2866 symtab.c (list_symbols): Handle mst_solib_trampoline.
2867 * minsyms.c (lookup_minimal_symbol): Handle mst_solib_trampoline
2868 for all targets, remove IBM6000_TARGET dependencies.
2869 * dbxread.c (read_dbx_dynamic_symtab): New function.
2870 * dbxread.c (dbx_symfile_read): Use it.
2871 * dbxread.c (SET_NAMESTRING): Set namestring to
2872 "<bad string table index>" instead of "foo" if the string index is
2874 * xcoffread.c (read_xcoff_symtab): Use mst_solib_trampoline instead
2876 * symtab.c (list_symbols): Take from_tty as parameter and pass it
2877 to break_command. Handle mst_file_* minimal symbol types.
2878 * config/i386/tm-i386bsd.h: Give just macro name, not args, to #undef.
2882 * c-exp.y(yylex): fix potential memory overflow.
2886 * environ.c (set_in_environ): Eliminate special handling of PATH and
2888 * putenv.c: Removed, conflicts with system declaration of
2889 putenv on RS/6000 running AIX 3.2.5, and above change makes it
2891 * Makefile.in: Change accordingly.
2892 * procfs.c (procfs_create_inferior): Change comment accordingly.
2896 * rs6000-tdep.c: Change value to value_ptr.
2900 * i386m3-nat.c: Include floatformat.h.
2901 (get_i387_state): Use memset not bzero.
2905 * Makefile.in: Enable commented out getopt_h, bfd_h, etc. Change
2906 ieee-float.h to floatformat.h.
2908 * valprint.c (val_print_string): Ignore error if the error
2909 happened after a terminating '\0'.
2911 * c-valprint.c (c_val_print): Never add 1 to return value from
2912 val_print_string; just return what it returns.
2914 * target.h (enum target_signal): Add TARGET_SIGNAL_FIRST, for
2915 looping through all of the enums.
2916 * infrun.c (signals_info): Use it.
2920 * main.c (main): When printing warning about bad baud rate, don't
2921 use warning(); it relies on current_target which isn't set up yet.
2923 * breakpoint.c (_initialize_breakpoint): Update docstring for
2924 tbreak to match what the code actually does. Don't mention tbreak
2925 in docstrings for "enable once" or "enable breakpoints once".
2929 * symfile.h (ADD_PSYMBOL_VT_TO_LIST): Don't put a semicolon after
2930 while (0). That defeats the whole purpose of using do . . . while (0).
2931 * mdebugread.c (parse_partial_symbols): Don't use ?: expression as
2932 list for ADD_PSYMBOL_TO_LIST; the macro takes its address and
2933 using a ?: expression as an lvalue is not portable.
2935 * stabsread.c (define_symbol): If REG_STRUCT_HAS_ADDR, also
2936 convert a LOC_ARG to a LOC_REF_ARG. Update code which combines
2937 'p' and 'r' symbol descriptors into a single symbol to look for a
2939 * README, config/sparc/tm-sparc.h: Update comments.
2943 * mdebugread.c (parse_type): Do not complain for types with
2944 an `indexNil' aux index, these are simply undefined types.
2945 Remove indexNil check from caller of parse_type.
2946 * mdebugread.c (parse_partial_symbols): Do not enter
2947 stGlobal, scCommon symbols into the minimal symbol table, their
2948 value is the size of the common, not its address.
2949 Handle scInit, scFini, scPData and scXData sections.
2950 Use minimal symbol type mst_file_* for stLabel symbols, instead of
2952 Enter stProc symbols into the global_psymbols list once, not into
2953 the static_psymbols_list.
2954 Get rid of dummy psymtab if it is empty, to allow proper detection
2955 of stripped executables.
2956 * mdebugread.c (cross_ref): Allow cross references to Fortran
2961 * stabsread.c (common_block_end, fix_common_block): Stash the
2962 struct pending * in the SYMBOL_TYPE, not the SYMBOL_NAMESPACE, so
2963 as to not assume that a pointer fits in an enum.
2967 * os9kread.c (fill_sym): check compiler verion number for pre-
2969 * os9kread.c (os9k_process_one_symbol): address of symbol is
2970 relative to section not module.
2971 * stabsread.c (define_symbol): add symbol type 's' as local
2973 * remote-os9k.c: add command 'set monitor_log' to turn on or off
2975 * remote-os9k.c: fix bug in delete breakpoint, single step trace.
2976 * remote-os9k.c: fix bug in 'set remotebaud' function.
2977 * remote-os9k.c (rombug_link): minimize checking so to improve
2979 * symfile.c (symbol_file_command): check if failed to link, also make
2980 the command be able to accept more than one filenames.
2981 * target.c (target_link): check if failed to link with rombug.
2982 * config/i386/tm-i386os9k.h : add #define DECR_PC_AFTER_BREAK 0.
2986 * remote-es.c (es1800_child_ops): Don't declare it static.
2990 * config/i386/tm-i386v4.h: Give just macro name, not args, to #undef.
2994 * dbxread.c: New variable lowest_text_address.
2995 (record_minimal_symbol, read_dbx_symtab): Set it.
2996 (read_dbx_symtab): Use lowest_text_address + text_size instead of
2997 end_of_text_address.
2998 * config/gould/tm-pn.h: Add comment regarding END_OF_TEXT_DEFAULT.
3000 * dbxread.c (end_psymtab): Remove old and commented out
3001 capping_global and capping_static. Fix comments regarding
3002 N_SO_ADDRESS_MAYBE_MISSING to match the real name of the macro.
3004 * parser-defs.h: Add "extern" to start of variable declarations so
3005 we don't end up with commons.
3006 * parse.c: Define these variables.
3008 * irix5-nat.c (find_solib): Cast o_path to CORE_ADDR when using it
3013 * alpha-tdep.c: Change value to value_ptr.
3017 * solib.c (elf_locate_base): New function to locate the address
3018 of the dynamic linker's runtime structure in the dynamic info section.
3019 * solib.c (locate_base): Use it instead of iterating over the list
3020 of mapped address segments.
3021 * solib.c (look_for_base, bfd_lookup_symbol): Removed, no longer
3026 * hppa-tdep.c (pc_in_linker_stub): Move decl to beginning of file.
3027 (pc_in_interrupt_handler): New function. Also add PARAM decl.
3028 (find_proc_framesize): Deal with HPUX setting SAVE_SP bit for
3029 signal trampoline and interrupt routines.
3030 (frame_saved_pc): Handle signal trampolines and interrupt routines.
3031 (frame_chain, frame_chain_valid): Likewise.
3032 (hppa_frame_find_saved_regs): Likewise. Also deal with special
3033 saved regs convention for SP.
3035 * tm-hppa[bho].h: FRAME_FIND_SAVED_PC_IN_SIGTRAMP): Define.
3036 (FRAME_BASE_BEFORE_SIGTRAMP): Define.
3037 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Define.
3039 * tm-hppah.h (IN_SIGTRAMP): Define.
3043 * ch-exp.y (match_simple_name_string): Accept '_' as well as an
3044 alphabetic character as the start of a name.
3046 * sparclite/Makefile.in (all install): Build and install aload.
3048 * configure.in: Accept i[34]86-*-*sysv32 because that is what
3049 config.guess and config.sub produce.
3051 * mips-tdep.c: Change value to value_ptr.
3055 * breakpoint.c, breakpoint.h, c-valprint.c, ch-valprint.c,
3056 cp-valprint.c, eval.c, expprint.c, findvar.c, language.c,
3057 objfiles.h, infcmd.c, printcmd.c, stack.c, typeprint.c,
3058 valarith.c, valops.c, valprint.c, value.h, values.c: Replace
3059 value with value_ptr. This is for the ptx compiler.
3060 * objfiles.h, target.h: Don't declare a "sec_ptr" field using a
3062 * symm-nat.c: Add a bunch of stuff for symmetry's ptrace stuff.
3063 #if 0 i386_float_info.
3064 * symm-tdep.c (round): Remove. Also remove sgttyb.
3065 * symm-tdep.c: Remove lots of stuff which duplicates stuff from
3066 i386-tdep.c. Remove register_addr and ptx_coff_regno_to_gdb.
3067 * i386-tdep.c (i386_frame_find_saved_regs): Put in
3068 I386_REGNO_TO_SYMMETRY check in case it is needed for Dynix
3070 * config/i386/nm-symmetry.h: Change KERNEL_U_ADDR. Move
3071 stuff from PTRACE_READ_REGS, PTRACE_WRITE_REGS macros to
3072 symm-nat.c. Define CHILD_WAIT and declare child_wait().
3073 * config/i386/tm-symmetry.h: Remove call function stuff; stuff in
3074 tm-i386v.h is apparently OK.
3075 * config/i386/xm-symmetry.h [_SEQUENT_]: Define HAVE_TERMIOS not
3076 HAVE_TERMIO. Define MEM_FNS_DECLARED, NEED_POSIX_SETPGID, and
3081 * osfsolib.c (xfer_link_map_member): Update to use new
3082 target_read_string interface.
3086 * infrun.c (wait_for_inferior): In checking
3087 remove_breakpoints_on_following_step, check
3088 through_sigtramp_breakpoint as well as step_resume_breakpoint.
3092 * os9kread.c (os9k_process_one_symbol): Rename
3093 VARIABLES_INSIDE_BLOCK to OS9K_VARIABLES_INSIDE_BLOCK.
3094 * symfile.c (symbol_file_command): Check for (CORE_ADDR)-1, not
3095 (CORE_ADDR)0, from target_link, since that is what it uses.
3096 Process name at end, not during parsing (like we did before Kung's
3097 change), so that -readnow and -mapped can appear anywhere.
3098 Make text_relocation a local variable.
3099 * config/i386/i386os9k.mt: Fix comment.
3100 * Makefile.in (ALLDEPFILES): Add remote-os9k.c.
3101 * os9kread.c: Put "comments" after #endif inside /* */.
3102 * stabsread.h: Add os9k_stabs variable.
3103 * stabsread.c (start_stabs), os9kread.c (os9k_process_one_symbol):
3105 * stabsread.c (define_symbol): If os9k_stabs, put a 'V' symbol
3106 descriptor in global_symbols not local_symbols.
3107 (read_type): If os9k_stabs, accept 'c', 'i', and 'b' type
3109 (read_type): If os9k_stabs, accept function parameters after 'f'
3111 (read_array_type): If os9k_stabs, don't expect index type and
3112 expect lower and upper to be separated by ',' not ';'.
3113 (read_enum_type): If os9k_stabs, read a number before the first
3114 enumeration constant.
3115 (os9k_init_type_vector): New function.
3116 (dbx_lookup_type): Call it when starting new type vector.
3117 * config/i386/tm-i386os9k.h: Define BELIEVE_PCC_PROMOTION.
3118 * (os9k_process_one_symbol): Call define_symbol not os9k_define_symbol.
3119 * os9kstab.c: Removed.
3120 * Makefile.in: Update accordingly.
3121 * objfiles.c (objfile_relocate_data): Removed.
3122 * remote-os9k.c (rombug_wait): Call objfile_relocate
3123 not objfile_relocate_data.
3124 * objfiles.h, objfiles.c: Remove find_pc_objfile.
3125 * remote-os9k.c (rombug_wait): Call find_pc_section not
3127 * main.c (quit_command): Check inferior_pid; revert Kung change.
3128 * remote-os9k.c (rombug_create_inferior): Set inferior_pid.
3132 * os9kread.c: New file to read os9000 style symbo table.
3133 * os9kstab.c: new file to read os9000 style stabs.
3134 * remote-os9k.c: remote protocol talking to os9000 rombug monitor.
3135 * objfiles.c (find_pc_objfile): new function to search objfile
3137 * objfiles.c (objfile_relocate_data): new function to relocate
3138 data symbols in symbol table.
3139 * objfiles.h: Add two aux fields in struct objfile to handle
3140 multiple symbol table files situation like in os9000.
3141 * symfile.c: Change so 'symbol-file' command can handle multiple
3142 files. Also call target_link() to get relocation infos.
3143 * target.c (target_link): new function to get relocation info when
3144 a symbol file is requested to load.
3145 * main.c (quit_command): take out 'inferior_pid != 0' condition,
3146 because in cross mode there's no inferior pid, bit they need to
3148 Makefile.in: add os9kread.c os9kstab.c and .o's.
3149 configure.in: add i386os9k target.
3150 config/i386/i386os9k.mt: new add.
3151 config/i386/tm-i386os9k.h: new add.
3155 * config/sparc/tm-sun4sol2.h (IN_SIGTRAMP): Handle ucbsigvechandler.
3156 * sparc-tdep.c (sparc_frame_saved_pc): Handle ucbsigvechandler.
3160 * target.c, target.h (target_read_string): Provide error detection to
3161 caller. Put string in malloc'd space, so caller need not impose
3163 * solib.c (find_solib): Update to use new interface.
3164 * irix5-nat.c (find_solib): Read o_path from inferior
3165 (clear_solib): Free storage for o_path.
3166 * valprint.c (val_print_string): Add comments.
3170 * symtab.c (decode_line_1): Handle the case when skip_quoted does not
3175 * value.h (struct value): Add modifiable field.
3176 * values.c (allocate_value, record_latest_value, value_copy): Set it.
3177 (record_latest_value): Don't mess with VALUE_LVAL of value.
3178 * valops.c (value_assign): Check it. Reword existing error
3179 message on not_lval.
3181 * mips-tdep.c (mips_step_skips_delay), config/mips/tm-mips.h
3182 (STEP_SKIPS_DELAY): Added.
3183 * infrun.c (proceed) [STEP_SKIPS_DELAY]: Check for a breakpoint in
3186 * valprint.c (val_print_string): If errcode is set, always print
3187 an error, regardless of force_ellipsis. In the non-EIO case,
3188 just print the error message rather than calling error(). Don't
3189 access *(bufptr-1) if bufptr points to the start of the buffer.
3190 When looking for '\0', don't increment bufptr and addr if bufptr
3191 started out already at limit. If an error happens on fetching the
3192 first character, don't print the string.
3196 * config/m68k/tm-apollo68b.h: Remove HAVE_68881 define; it is
3199 * i387-tdep.c, i386-tdep.c i386v-nat.c, i386aix-nat.c,
3200 i386m3-nat.c, config/m68k/tm-m68k.h, i960-tdep.c
3201 config/i960/tm-i960.h, remote-nindy.c, config/m88k/tm-m88k.h,
3202 m88k-tdep.c: Use floatformat.h instead of ieee-float.h.
3203 * sparc-tdep.c: Remove now-obsolete ieee-float.h stuff
3204 * findvar.c: Update comment regarding ieee-float.h.
3208 * config/i386/tm-i386v4.h (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP,
3209 FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC):
3210 Define to make backtracing through the various sigtramp handlers
3212 * i386-tdep.c (i386v4_sigtramp_saved_pc): New routine to fetch
3213 the saved pc from ucontext on the stack for SVR4 signal handling.
3217 * remote.c, remote-mon.c, remote-utils.c, remote-utils.h,
3218 target.h, remote-es.c, remote-nindy.c: Don't set baud rate if
3219 baud_rate is -1. Remove sr_get_baud_rate and sr_set_baud_rate;
3220 just use the global variable itself. When printing baud rate,
3221 don't print a baud rate if baud_rate is -1.
3223 * coffread.c (read_coff_symtab): Pass mst_file_* to
3224 record_minimal_symbol for C_STAT symbols. Put C_EXT and C_STAT
3225 symbols in the minimal symbols regardless of SDB_TYPE.
3229 * breakpoint.h (enum bptype): New type bp_through_sigtramp.
3230 (bpstat_what_main_action): New code BPSTAT_WHAT_THROUGH_SIGTRAMP.
3231 * breakpoint.c (bpstat_what): Return BPSTAT_WHAT_THROUGH_SIGTRAMP
3232 if we hit a bp_through_sigtramp breakpoint. Remove kludge which
3233 ignored bs->stop for a bp_step_resume breakpoint.
3234 * infrun.c (wait_for_inferior): Make a through_sigtramp_breakpoint
3235 which performs one (the check_sigtramp2 one) of the functions
3236 which had been handled by the step_resume_breakpoint. For each
3237 use of the step_resume_breakpoint, make it still use the
3238 step_resume_breakpoint, use the through_sigtramp_breakpoint, or
3240 Deal with BPSTAT_WHAT_THROUGH_SIGTRAMP return from bpstat_what.
3241 When setting the frame address of the step resume breakpoint, set
3242 it to the address for frame *before* the call instruction is
3243 executed, not after.
3245 * mips-tdep.c (mips_print_register): Print integers using
3246 print_scalar_formatted rather than duplicating all the
3247 CC_HAS_LONG_LONG and so on.
3248 (mips_push_dummy_frame): Use read_register_gen rather than using
3249 read_register and then putting it back in target format with
3250 store_unsigned_integer. If registers are more than 4 bytes, give
3251 an error rather than have some registers overwrite other
3253 #if 0 unused include of opcode/mips.h.
3255 * symfile.h: Don't declare arguments for coff_getfilename.
3257 * defs.h: Revert Kung change regarding FORCE_LONG_LONG.
3261 * configure.in (hppa*-*-osf*): New configuration.
3262 * config/pa/hppaosf.mt: New target makefile fragment.
3263 * config/pa/tm-hppao.h: New target include file.
3267 * exec.c (print_section_info): Print entry point for exec_bfd only.
3268 * ser-unix.c (wait_for): Fix typo in HAVE_TERMIO case.
3269 * dwarfread.c: Remove second inclusion of <sys/types.h>, which
3270 causes problems if <sys/types.h> has no multiple inclusion protection.
3274 * tm-hppa.h (CALL_DUMMY): Add two NOP instructions to the end of
3275 the call dummy to avoid kernel bugs in HPUX, BSD, and OSF1.
3276 (CALL_DUMMY_LENGTH): Changed accordingly.
3278 Wed Feb 23 16:21:25 1994 Stu Grossman (grossman at cygnus.com)
3280 * sparc-stub.c (trap_low): Make trap handler work for arbitrary
3281 numbers of register windows.
3283 * sparclite/hello.c: Add factorial function for testing.
3284 * salib.c: Use macros instead of constants for I/O addresses to
3285 make 931 support easier.
3286 * sparclite.h: Change constraint for LOC to "rJ" to force use of
3287 register in sta/lda instructions.
3291 * dbxread.c (process_one_symbol): Set
3292 block_address_function_relative for COFF like we do for ELF and SOM.
3296 * mdebugread.c (new_psymtab): Pass in section_offsets and set
3298 * mdebugread.c (handle_psymbol_enumerators): New function to enter
3299 the enumerators of an ecoff enum into the partial symbol table.
3300 * mdebugread.c (parse_partial_symbols): Call it.
3301 * symfile.c (reread_symbols): Initialize objfile->*_psymbols.next.
3302 * symmisc.c (dump_psymtab): Fix typo, clean up output of section
3303 offsets. Cast psymtab->read_symtab to PTR before passing it to
3305 * i386-tdep.c (i386_skip_prologue): Skip over instructions that
3306 set up the global offset table pointer in pic compiled code.
3307 * config/mips/tm-mips.h (FIX_CALL_DUMMY): For big endian targets,
3308 error() on TYPE_CODE_FLT arguments whose size is greater than 8,
3309 swap all other TYPE_CODE_FLT arguments as mips_push_arguments
3310 ensures that floats are promoted to doubles before they are pushed
3313 Fri Feb 18 23:12:59 1994 Stu Grossman (grossman at cygnus.com)
3315 * sparclite/Makefile.in, sparclite/salib.c, sparclite/sparclite.h:
3316 Fixup cache_on and flush_i_cache so that they work for both the
3317 930 and 932 processors. Rewrite most low level funcs (uart
3318 access & cache stuff) to use new ASI access macros in sparclite.h.
3319 Also make it easy to access second serial port.
3323 * hp300ux-nat.c: Don't incloude <sys/dir.h>, <sys/ioctl.h>, or
3324 <sys/stat.h>; not needed.
3328 * stack.c (print_frame_info): In "pathological" case, don't
3329 distrust the line number information.
3333 * mips-tdep.c (mips_print_register): handle 64 bits register.
3334 * valprint.c (print_longest): fix a bug in printing 64 bits value.
3340 * Makefile.in (install): Do the sed for program_transform_name
3341 ourselves instead of worrying about INSTALL_XFORM. This enables
3342 users to override INSTALL_PROGRAM in the standard way.
3344 * Makefile.in (c-exp.tab.o, ch-exp.tab.o, m2-exp.tab.o): Don't
3345 depend on Makefile.in.
3347 * defs.h, valprint.c: Make longest_to_int a function not a macro.
3348 Only test against INT_MIN if a LONGEST is bigger than an int.
3350 * README: Change GhostScript to Ghostscript.
3354 * config/rs6000/{tm-rs6000lynx.h,nm-rs6000lynx.h,xm-rs6000lynx.h}:
3355 Rename to tm-rs6000ly.h, nm-rs6000ly.h, xm-rs6000ly.h for 14
3356 character file names.
3357 * Makefile.in (ALLPARAM): Add these files.
3359 * config/mips/littlemips64.mt: Rename to mipsel64.mt for 14
3360 character file names.
3361 * Makefile.in: Add Kung's new mips64 files.
3365 * configure.in: add mips64-*-elf, mips64-*-ecoff, mips64el-*-elf,
3366 mips64el-*-ecoff and mips64-big-*.
3367 * defs.h: get rid of FORCE_LONG_LONG.
3368 * mips-tdep.c (mips_find_saved_regs): add sd and sdc1 instruction
3369 parsing. Change register size to be MIPS_REGSIZE.
3373 * corelow.c, exec.c, irix5-nat.c, mipsread.c, objfiles.c,
3374 osfsolib.c, rs6000-nat.c, solib.c, symfile.c, utils.c,
3375 xcoffexec.c: Use bfd_get_error and bfd_set_error and new error names.
3379 * remote-hms.c (readchar, hms_open, hms_fetch_register): Made more robust.
3380 (remove_commands, add_commands): Add/remove hms-drain when target
3383 Fri Feb 11 16:11:38 1994 Stu Grossman (grossman at cygnus.com)
3385 * configure.in: Add Lynx/rs6000 support.
3386 * lynx-nat.c: Clean up some Sparc stuff. Clean up ptrace error
3387 messages. Add rs6000 support. Don't try to modify unwritable
3389 * rs6000-nat.c: Move lots of native dependent stuff (like core
3390 file support) from rs6000-tdep.c & xcoffexec.c to here.
3391 * rs6000-tdep.c: Move native dependent stuff to nat.c.
3392 * xcoffexec.c: Move native dependent stuff to nat.c.
3393 * config/rs6000/nm-rs6000.h: Move defs of SOLIB_* macros to here
3395 * config/rs6000/tm-rs6000.h: Remove defs of SOLIB_* funcs, cuz they're
3397 * config/rs6000/tm-rs6000lynx.h, config/rs6000/xm-rs6000lynx.h:
3398 New files to support Lynx/rs6000.
3402 * README: Remove note about gcc warnings on alpha, these should be
3404 * c-exp.y, ch-exp.y, core.c, corelow.c, eval.c, fork-child.c,
3405 m2-exp.y, minsyms.c, nlmread.c, parse.c, putenv.c, regex.c
3406 remote-utils.c, stabsread.c: Include <string.h>.
3407 * regex.c: Include "defs.h", change re_comp argument to const char *.
3408 * infptrace.c (fetch_register, store_inferior_registers): Change
3409 regaddr to type CORE_ADDR.
3410 * config/alpha/alpha-nw.mt, config/alpha/alpha-osf1.mt (MT_CFLAGS):
3411 Remove, no longer necessary now that we use bfd_vma for a CORE_ADDR.
3415 * symtab.h: Always define BYTE_BITFIELD to nothing.
3419 * config/m68k/{m68k-em.mt,tm-m68k-em.h}: Remove; no longer used.
3420 * configure.in: Remove comment about m68k-em.mt.
3421 * Makefile.in: Remove references.
3425 * defs.h [BFD64]: Use BFD_HOST_64_BIT, not nonexistent
3430 * target.c (target_preopen): If target_kill doesn't remove the
3431 target from the stack, use pop_target to do it.
3433 * coffread.c (process_coff_symbol, case C_TPDEF): Don't set name
3434 of TYPE_CODE_PTR or TYPE_CODE_FUNC types. This parallels similar
3435 changes to stabsread.c from summer 1993.
3437 * remote-udi.c (udi_files_info): If prog_name is NULL, just skip
3438 printing the program, rather than passing NULL to printf.
3439 (udi_detach): Set udi_session_id to -1 so that udi_close doesn't
3440 try to call UDIDisconnect again. Print better message.
3441 (udi_kill): Just call UDIDisconnect ourselves, rather than doing
3443 (udi_create_inferior): If udi_session_id is negative, open a new
3444 TIP rather than giving an error.
3446 * config/mips/mipsm3.mh, config/i386/i386m3.mh,
3447 config/ns32k/ns32km3.mh: Define NAT_FILE.
3448 * config/nm-m3.h: Change guard from _OS_MACH3_H_ and _OS_MACH3_H
3449 (it was inconsistent and namespace-wrong) to NM_M3_H.
3450 * m3-nat.c (mach_really_wait): Change parameter name to ourstatus.
3451 (m3_open): New function.
3453 * TODO: Update Mach section.
3455 * Makefile.in: Remove "rapp" stuff; it is superseded by gdbserver.
3459 * printcmd.c (printf_command): Add missing single-letter
3460 backslash-escape sequences, and improve error message.
3464 * corelow.c (solib_add_stub, core_open): Pass address of from_tty
3465 rather than trying to shove an int into a pointer and back out
3466 again. This avoids compiler warnings.
3468 * defs.h (alloca): Declare as void *, not char *, on hpux.
3469 Don't prototype it, just declare the return type.
3473 * config/i386/tm-sun386.h, config/i386/tm-symmetry.h
3474 (REGISTER_CONVERT_TO_RAW): Add missing backslash.
3478 * remote-mips.c (mips_fetch_registers): If regno is FP_REGNUM or
3479 ZERO_REGNUM, just read it as zero without talking to the board.
3481 * config/i386/tm-i386aix.h (REGISTER_CONVERT_TO_RAW): Add missing
3483 * i386-tdep.c (i386_extract_return_value): Pass TYPE_LENGTH (type)
3484 to store_floating, not nonexistent variable len.
3486 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
3488 (mips_store_word): Change calling convention to return errors, and
3489 to provide old contents if the caller wants it.
3490 (mips_xfer_memory): Deal with errors from mips_store_word.
3491 * config/mips/tm-idt.h, config/mips/tm-idtl.h: Remove BREAKPOINT
3492 define now that remote-mips.c doesn't use BREAKPOINT.
3494 * remote-mips.c (mips_create_inferior): Call warning if arguments
3495 specified, and then execute "set args" command. Call error, not
3496 mips_error, if executable file not specified.
3498 * remote-e7000.c: Replace "snoop" command (e7000_noecho) with
3501 * config/rs6000/tm-rs6000.h (STORE_STRUCT_RETURN): Don't cast
3506 * value.h (print_longest): Rename "value" to "val" in prototype
3507 declaration because some compilers don't like arguments whose
3508 names are the same as types.
3509 * remote.c (remote_xfer_memory): Cast "myaddr" to unsigned char *
3510 before passing it to remote_*_bytes.
3514 * h8500-tdep.c (saved_pc_after_call): The size of the
3515 pc is memory model dependent. (segmented_command,
3516 unsegmented_command, _initialize_h8500_tdep): New commands to
3517 change memory model.
3518 * remote-e7000.c (_initialize_remote_e7000): Change name of snoop
3520 * remote-hms.c (hms_load): Remove breakpoints when loaded.
3521 (hms_wait): Use new status structure
3522 (hms_open): Push the target here. (hms_before_main_loop): Not
3523 here. (supply_val, hms_fetch_register, hms_store_register): Cope
3524 with H8/500 names too. (hms_fetch_register): Take out REGISTER_TYPE.
3525 * sh-tdep.c (show_regs, initialize_sh_tdep): New command to print
3526 all registers in a compact way.
3530 * config/rs6000/tm-rs6000.h: Declare rs6000_struct_return_address
3531 as CORE_ADDR to match definition in rs6000-tdep.c.
3535 * dwarfread.c (process_dies): Skip nested TAG_compile_unit DIEs.
3536 * dwarfread.c (add_partial_symbol): Do not enter opaque aggregate
3537 definitions into the psymtab.
3541 * m68k-stub.c: Treat mc68332 like mc68020 most places. Provide
3542 a special exceptionSize for the 68332.
3544 * remote-udi.c (udi_attach): If no arguments, print error.
3548 * Makefile.in (VERSION): Bump to 4.12.1
3549 * NEWS, README: Update to match 4.12 release.
3553 * command.c (empty_sfunc): New function.
3554 (add_set_cmd): Use it instead of not_just_help_class_command.
3555 (not_just_help_class_command): Change calling convention back to
3556 what it was before yesterday's change.
3558 * stabsread.c (read_sun_builtin_type): Skip the semicolon at the end
3559 of the type if present.
3563 * printcmd.c (decode_format): Don't blithely set the size for
3564 an address to 'w'. Make it 'g' or 'h', depending on TARGET_PTR_BIT.
3566 * defs.h: Just typedef CORE_ADDR to bfd_vma. Include bfd.h.
3567 If BFD64, make a LONGEST a BFD_HOST_64_BIT.
3568 * defs.h (longest_to_int): Don't depend on CC_HAS_LONG_LONG; instead
3569 always just check against INT_MIN and INT_MAX (this also fixes things
3570 if sizeof (long) > sizeof (int), e.g. Alpha).
3571 * config/pa/tm-hppa.h, config/i386/sun386.h, config/rs6000/tm-rs6000.h:
3572 Don't define LONGEST or BUILTIN_TYPE_LONGEST.
3573 * gdbtypes.h: Remove BUILTIN_TYPE_LONGEST and
3574 BUILTIN_TYPE_UNSIGNED_LONGEST.
3575 * language.h, c-lang.c, ch-lang.c, m2-lang.c, language.c: Remove
3576 longest_int and longest_unsigned_int.
3577 * value.h (struct value): Just align to LONGEST, rather than worrying
3578 about CC_HAS_LONG_LONG.
3579 * valarith.c (value_binop): Figure out type ourself based on
3580 sizeof (LONGEST) rather than relying on BUILTIN_TYPE_LONGEST. The
3581 point is that we don't depend on CC_HAS_LONG_LONG anymore.
3582 * valprint.c (val_print_type_code_int): Just call
3583 extract_unsigned_integer directly, rather than going through
3585 * printcmd.c (decode_format): Remove code which would sometimes
3586 change 'g' size to 'w' for integers. print_scalar_formatted handles
3587 printing huge integers well enough, thank you.
3589 * command.c (add_set_cmd, not_just_help_class_command): Change
3590 to make this the sfunc, not cfunc, since that is how we call it.
3591 * command.h: Comment difference between sfunc and cfunc.
3592 * demangle.c (set_demangling_command): Add third arg since that
3593 is how it is called.
3594 (_initialize_demangler): Use sfunc, not cfunc, for
3595 set_demangling_command, since that is how it is called.
3596 Remove show_demangling_command; it has no effect.
3598 * command.c (shell_escape): Report errors correctly (with error
3599 message from strerror).
3603 * xcoffread.c (read_xcoff_symtab): Change CSECT_LEN to use
3604 x_scnlen.l rather than x_scnlen to match corresponding change in
3609 * gdbtypes.h, ch-typeprint.c, ch-valprint.c:
3610 Change comments regarding TYPE_CODE_BOOL.
3611 * language.c (boolean_type): Always return 1 for TYPE_CODE_BOOL,
3612 regardless of the language.
3613 (value_true): Just call value_logical_not regardless of language.
3614 * coffread.c (coff_read_enum_type), stabsread.c (read_enum_type):
3615 Remove #if 0'd code which makes some enums TYPE_CODE_BOOL.
3616 * language.h: Improve comment for la_builtin_type_vector.
3617 * m2-lang.c (_initialize_m2_language): Don't add any fields to
3618 builtin_type_m2_bool.
3622 * config/m88k/{tm-delta88.h,tm-delta88v4.h}, m88k-tdep.c:
3623 Define IN_SIGTRAMP and backtrace correctly through signal handlers.
3627 * procfs.c (wait_fd): Handle EINTR error return from PIOCWSTOP ioctl
3628 by restarting the ioctl.
3632 * target.h (target_wait): Add comment about calling
3633 return_to_top_level.
3637 * coffread.c (read_one_sym): bfd_coff_swap_aux_in now takes
3638 additional arguments.
3639 * xcoffread.c (read_xcoff_symtab, read_symbol_lineno): Likewise.
3641 Mon Jan 31 16:10:41 1994 Stu Grossman (grossman at cygnus.com)
3643 * sparc-stub.c: Remove unnecessary #include of memory.h.
3647 * mips-tdep.c: Remove code which sets saved_regs from
3648 init_extra_frame_info and put it in new function mips_find_saved_regs.
3649 (READ_FRAME_REG): Remove macro and replace uses with the expansion.
3650 * mips-tdep.c, config/mips/tm-mips.h: When examining ->saved_regs,
3651 check if it is NULL and call mips_find_saved_regs if so.
3653 * remote-mips.c: Use unfiltered, not filtered, output most places.
3655 * blockframe.c (get_prev_frame_info): Detect and stop an infinite
3656 backtrace. Revise comments.
3660 * mdebugread.c (parse_procedure): Remove _sigtramp kludges for
3661 alpha and irix. The _sigtramp case has to be handled properly
3662 in the tdep files if we have no ecoff debugging info.
3663 * alpha-tdep.c (alpha_frame_saved_pc, alpha_frame_chain),
3664 mips-tdep.c (mips_frame_saved_pc): Handle signal handler frames
3665 without PC_REGNUM kludge.
3666 * mdebugread.c (fixup_sigtramp), mips-tdep.c (read_next_frame_reg):
3667 Clean up handling of mips sigtramp frames, improve comments.
3671 * paread.c (read_unwind_info): Fix typo.
3673 * paread.c (pa_symtab_read): Update the "check_strange_names"
3674 filter to match GCC's current output. Filter out section symbols
3675 (which the HP linker sometimes puts in the wrong place).
3679 * serial.h (SERIAL_SET_TTY_STATE): Comment return value.
3681 * Makefile.in (TAGS): Just echo one line, rather than the whole thing.
3683 * Makefile.in: Remove all references to sparcly-nat.c.
3685 * Makefile.in (HFILES_NO_SRCDIR): Include dcache.h remote-utils.h
3686 remote-sim.h directly, rather than via $(remote_utils_h). This avoids
3687 duplicating serial.h and target.h.
3689 * Makefile.in: Don't set M_INSTALL and M_UNINSTALL. These variables
3690 are not used anywhere (a 5 Oct 1993 change removed the uses).
3692 * config/m68k/monitor.mt (TDEPFILE): Add remote-es.o.
3693 * config/m68k/es1800.mt: Add comment.
3694 * remote-es.c: Extensive changes to update to current conventions.
3696 * ser-unix.c (wait_for, hardwire_readchar) [HAVE_TERMIO, HAVE_TERMIOS]:
3697 If the timeout is too big to fit in c_cc[VTIME], then do multiple reads
3698 to achieve the desired timeout.
3699 * serial.h (serial_t): Add field timeout_remaining.
3703 * c-exp.y (yylex): Reenable nested type code.
3707 * a29k-tdep.c (examine_tag): Add comment regarding argcount.
3709 * remote-mips.c (mips_ops): Fix docstring.
3711 * remote-bug.c (bug_ops): Remove spurious newline from docstring.
3713 * config/m68k/tm-monitor.h: Changes to bring this into accordance
3714 with the old tm-m68k-em.h:
3715 (GDBINIT_FILENAME, DEFAULT_PROMPT): Remove.
3716 (HAVE_68881): Don't undefine; HAVE_68881 is obsolete.
3717 (REGISTER_NAMES): Don't muck with it; what tm-m68k.h has is fine.
3718 Add FIXME regarding GET_LONGJMP_TARGET.
3720 * remote-udi.c (udi_close, udi_detach, udi_kill): Add comments.
3721 * infptrace.c (kill_inferior): Add comments.
3722 * main.c (quit_command): Call target_close after we kill or
3724 * remote-udi.c (udi_close): Don't error() if QUITTING.
3728 * configure.in: Make m68k-coff and aout add monitor support in
3729 addition to the standard serial support.
3733 * mdebugread.c (psymtab_to_symtab_1): Don't complain on stLabel with
3738 * config/pa/tm-hppa.h: Define macro SMASH_TEXT_ADDRESS.
3739 * elfread.c (record_minimal_symbol_and_info),
3740 dwarfread.c (process_dies), paread.c (pa_symtab_read): Use it.
3744 * i386-stub.c: Add ".text" right before "mem_fault:".
3746 * main.c (baud_rate): Add FIXME comment about printing -1 value.
3748 * remote-utils.c (usage): Fix message to be accurate and conform
3749 more closely to normal conventions.
3751 * remote-utils.c (gr_files_info): Have the exec_bfd test control
3752 whether to show information about exec_bfd, and not control whether
3753 to show information about device and speed.
3755 * remote-utils.c (gr_open): If sr_get_device returns NULL, give
3756 usage message, don't dump core.
3758 * remote-bug.c (bug_write_memory): Use alloca, not GCC extension
3759 for variable size array.
3760 (bug_fetch_register, bug_store_register): Rename "value" to
3761 "fpreg_buf" because some compilers don't like variables whose
3762 names are the same as types.
3763 (bug_store_register): Use a cast when converting char * to
3766 * symmisc.c (maintenance_print_symbols): Don't refer to the name
3767 of the command in error message (the text was referring to the old
3768 name of the command).
3770 * symmisc.c (dump_symtab): Fix args to fprintf_filtered.
3772 * c-typeprint.c (c_type_print_base): Have SHOW == 0 mean to print
3773 full details on structure elements without names. This partially
3774 reverts the changes of 1 Jul 1993 and 31 Aug 1993; I think this aspect
3775 of those changes was accidental.
3777 * stack.c (parse_frame_specification): If SETUP_ARBITRARY_FRAME is
3778 defined, make it an error to specify a single argument which is not
3781 * Makefile.in (version.c), main.c (print_gdb_version): Use
3782 host_alias and target_alias, not host_canonical and
3783 target_canonical, to print configuration.
3787 * parse.c (write_exp_msymbol): Use new type msymbol_addr_type instead
3788 of builtin_type_long. It is necessary to get a type which is
3789 TARGET_PTR_BIT bits in size; builtin_type_long might not be big enough.
3791 Fix many sins which will come up in 32 bit x 64 bit GDB, and
3792 various miscellaneous things discovered in the process:
3793 * printcmd.c, defs.h (print_address_numeric): New function.
3794 * c-valprint.c (c_val_print), ch-valprint.c (chill_val_print)
3795 breakpoint.c (describe_other_breakpoints, breakpoint_1, mention),
3796 cp-valprint.c (cplus_print_value), infcmd.c (jump_command),
3797 printcmd.c, stack.c, symfile.c, symmisc.c, valprint.c:
3799 * utils.c, defs.h (gdb_print_address): New function.
3800 * expprint (dump_expression), gdbtypes.h: Use it.
3801 * breakpoint.c (describe_other_breakpoints),
3802 symmisc.c (dump_symtab, print_symbol):
3803 Use filtered not unfiltered I/O.
3804 (remove_breakpoints): Remove BREAKPOINT_DEBUG code. Might as well
3805 just run gdb under a debugger for this (and it had problems with
3806 printing addresses, how to print b->shadow, etc.).
3807 * buildsym.c (make_blockvector), core.c (memory_error),
3808 exec.c (print_section_info), maint.c (print_section_table),
3809 mdebugread.c (parse_procedure), solib.c, source.c, symfile.c,
3810 symmisc.c, symtab.c, valops.c, valprint.c, xcoffexec.c:
3811 Add comments saying code is broken. Marked with "FIXME-32x64".
3812 * dbxread.c (process_one_symbol), partial-stab.h (default),
3813 remote-vx.c (vx_run_files_info):
3814 Don't cast int being passed to local_hex_string.
3815 * symmisc.c (print_symbol): Don't cast long being passed to %lx.
3816 * symtab.h (general_symbol_info): Add comment about SYMBOL_VALUE
3818 * symmisc.c (print_symbol): Print "offset" in message for LOC_ARG
3820 * printcmd.c (print_address): Remove #if 0 code with ADDR_BITS_REMOVE.
3821 * source.c: Include <sys/types.h> regardless of USG.
3825 * valops.c (value_assign): Set `type' after coercing toval.
3826 * c-valprint.c (c_val_print), ch-valprint.c (chill_val_print):
3827 Use extract_unsigned_integer to get the address of a reference.
3831 * stabsread.c (STABS_CONTINUE, error_type), partial-stab.h:
3832 AIX can use ? instead of \ for continuation. Deal with it.
3834 * paread.c (read_unwind_info): Just assign to objfile->obj_private,
3835 not OBJ_UNWIND_INFO. Assigning to a cast is a GCC-ism which
3836 the HP compiler in ANSI mode doesn't like.
3838 * main.c: When defaulting HAVE_SIGSETMASK based on USG, just do it
3839 based on USG, rather than defining HAVE_SIGSETMASK to an
3840 expression containing defined. Having a macro used in #if expand
3841 to an expression containing "defined" is undefined according to
3842 ANSI, and the HP compiler in ANSI mode doesn't do what we wanted
3847 * sparc-nat.c (fetch_inferior_registers, store_inferior_registers):
3848 Clean up the changes of 11 Jan, as recommended by Peter Schauer.
3852 * ch-exp.y (match_string_literal): Allow a zero-length string.
3853 * ch-lang.c (chill_printstr): Don't print zero-length string funny.
3857 * i386aix-nat.c (i386_float_info): Reverse order of registers before
3858 passing them to print_387_status.
3859 (print_387_status): Don't subtract top from 7 before using it.
3860 * i387-tdep.c: Remove comment about AIX wanting "top" subtracted
3861 from 7; the above explains it.
3865 * mips-tdep.c (init_extra_frame_info): Use frame relative stack
3866 pointer value when fixing up the frame at the start of a function.
3868 Sat Jan 22 12:29:13 1994 Stu Grossman (grossman at cygnus.com)
3870 * lynx-nat.c (fetch_core_registers): Load the I & L regs for the
3871 Sparc from the stack.
3875 * remote-mips.c (mips_initialize): Clear mips_initializing via
3876 cleanup chain, not directly.
3878 * ser-unix.c (wait_for) [HAVE_TERMIO, HAVE_TERMIOS]: Make a timeout
3879 of -1 mean forever, like in the HAVE_SGTTY case. Warn if we are
3880 munging the timeout due to the limited range of c_cc[VTIME].
3882 * fork-child.c, inferior.h (fork_inferior): New argument shell_file.
3883 * procfs.c (procfs_create_inferior), inftarg.c (child_create_inferior),
3884 m3-nat.c (m3_create_inferior): Pass it.
3885 * procfs.c: Remove ptrace function. It was declared in a way which
3886 conflicted with the prototype in unistd.h on Solaris.
3890 * sparc-tdep.c (frame_saved_pc): Get the pc from the saved pc
3891 in the sigcontext if it is a signal trampoline frame.
3892 * config/sparc/tm-sun4sol2.h (IN_SIGTRAMP, SIGCONTEXT_PC_OFFSET):
3893 Define for Solaris2.
3895 Sat Jan 22 00:34:47 1994 Stu Grossman (grossman at cygnus.com)
3897 * sparc-tdep.c, lynx-nat.c, config/sparc/tm-sparc.h,
3898 config/sparc/tm-sparclynx.h: Move defs of FRAME_SAVED_I0/L0 to
3899 tm-sparc.h so they can be overridden if necessary.
3901 Fri Jan 21 17:49:28 1994 Stu Grossman (grossman at cygnus.com)
3903 * lynx-nat.c: Add Sparc support.
3904 * sparcly-nat.c: Remove. It's useless.
3905 * config/sparc/nm-sparclynx.h: Rewrite.
3906 * config/sparc/sparclynx.mh (NATDEPFILES): Replace sparcly-nat.o
3908 * config/sparc/tm-sparclynx.h: Rewrite.
3912 * rs6000-pinsn.c: Use the new disassembler in the opcodes
3913 directory. Old code was discarded, since the new opcode table has
3918 * Makefile.in (realclean): Remove info files per make-stds.texi.
3922 * dbxread.c (end_psymtab): Only patch psymtab textlow and texthigh
3923 if N_SO_ADDRESS_MAYBE_MISSING is defined.
3924 * config/sparc/tm-sun4sol2.h: Define it.
3928 * printcmd.c (print_address_symbolic): Unconditionally use msymbol
3929 if we did not find a symbol.
3933 * infptrace.c (child_xfer_memory): Only use if CHILD_XFER_MEMORY
3936 * hppab-nat.c (call_ptrace): Delete redundant function.
3937 (kill_inferior, attach, detach, child_resume): Likewise.
3938 (child_xfer_memory): Likewise.
3940 * hppah-nat.c (call_ptrace): Delete redundant function.
3941 (kill_inferior, attach, detach, child_resume): Likewise.
3943 * config/pa/hppabsd.mh (NATDEPFILES): Add infptrace.o.
3945 * config/pa/hppahpux.mh (NATDEPFILES): Add infptrace.o.
3947 * config/pa/nm-hppab.h (FETCH_INFERIOR_REGISTERS): Define.
3949 * config/pa/nm-hppah.h (FETCH_INFERIOR_REGISTERS): define.
3950 (CHILD_XFER_MEMORY): Define.
3951 (PT_*): Define so that generic infptrace.c code can be used.
3955 * xcoffread.c (xcoff_symfile_read): Make second parameter a
3956 struct section_offsets *, not a (nonexistent) struct section_offset *.
3958 * xcoffread.c (read_xcoff_symtab): Make main_aux just a union
3959 internal_xcoff_symtab, not an array of one of them. Change lots of
3960 "main_aux" to "&main_aux" and so on.
3962 * coffread.c, xcoffread.c: Include <coff/internal.h>
3967 * coffread.c (coff_getfilename): Make it not static.
3969 * xcoffread.c (read_xcoff_symtab): complain() not abort().
3971 * xcoffread.c (struct coff_symbol): Rename c_nsyms to c_naux (removes
3972 a completely gratuitous difference between xcoffread.c and coffread.c).
3976 * infrun.c (wait_for_inferior): Don't set frame for
3977 step_resume_breakpoint for IN_SIGTRAMP cases.
3979 * infrun.c (wait_for_inferior), breakpoint.h (struct bpstat_what),
3980 breakpoint.c (bpstat_what): Move step_resume from its own field of
3981 the struct bpstat_what into the main_action. Make it override
3982 other breakpoints. This is a conservative change in the sense
3983 that before the step resume breakpoint was a breakpoint.c
3984 breakpoint, hitting the step resume breakpoint overrode even
3985 calling bpstat_stop_status.
3989 * infrun.c (normal_stop): Set stop_pc after popping the dummy frame
3990 in case execution was stopped in the called function.
3991 * stack.c (print_frame_info, frame_info): If backtracing through
3992 a call dummy, handle the starting source line number on a line
3993 boundary like backtracing through sigtramp.
3994 * sparc-tdep.c (sparc_frame_find_saved_regs): Get frame address
3995 for call dummy frame right. Remove old test for dummy frame,
3996 it has been unused at least since gdb-3.5.
3997 * sparc-tdep.c (sparc_push_dummy_frame): Set return address register
4002 * infcmd.c (signal_command): Accept 0 as legitimate signal number.
4006 * infrun.c (signals_info), target.c (target_signal_from_name):
4007 Use ugly casts to avoid enumvar < enumvar or enumvar++.
4011 * ser-unix.c (hardwire_noflush_set_tty_state): Don't muck with ICANON.
4012 * inflow.c (terminal_ours_1): When discussing how to deal with the
4013 tty state, make note of query() as well as readline.
4015 * infrun.c (_initialize_infrun): Add TARGET_SIGNAL_POLL to list of
4016 signals for which stop and print are cleared by default.
4020 * config/pa/tm-hppa.h (unwind_table_entry): Use one of the
4021 reserved fields to hold a stub unwind entry type. Fix typo.
4022 (stub_unwind_entry): New structure for raw stub unwind entries.
4023 (stub_unwind_types): The types of stubs we may encounter.
4024 (UNWIND_ENTRY_SIZE, STUB_UNWIND_ENTRY_SIZE): New defines.
4025 * hppa-tdep.c (rp_saved): Use additional information provided
4026 by linker stub unwind descriptors.
4027 (frameless_function_invocation): Likewise.
4028 (frame_chain_valid): Likewise.
4029 * paread.c (compare_unwind_entries): New function for sorting
4030 unwind table entries.
4031 (read_unwind_info): Rewrite to remove dependency on host endianness.
4032 Read in data from the $UNWIND_END$ subspace which contains linker
4033 stub unwind descriptors. Merge that data into the basic unwind
4036 * hppab-nat.c (_initialize_kernel_u_addr): Delete unwanted functions.
4040 * xcoffread.c (read_xcoff_symtab, case C_FILE): Accept the name
4041 from either the symbol name or the auxent.
4042 * coffread.c, symfile.h (coff_getfilename): Renamed from getfilename,
4047 * Makefile.in (ALLPARAM): Change irix5.h to nm-irix5.h.
4051 * README: Update notes for alpha port.
4055 * i960-tdep.c (i960_fault_to_signal): Return TARGET_SIGNAL_ILL
4056 for operation fault, constraint fault, and type fault.
4060 * Makefile.in (init.c): Add comment explaining formatting conventions.
4062 * c-exp.y (parse_number): Assign to temporary between the right
4063 shifts, to work around a bug in the SCO compiler.
4065 * Makefile.in (ALLCONFIG, ALLPARAM, ALLDEPFILES, HFILES_NO_SRCDIR):
4066 Add various files which were added to GDB recently.
4068 * xcoffread.c (process_xcoff_symbol): Only change 'V' to 'S' if not
4071 * Makefile.in: Add mostlyclean target.
4079 * main.c (show_commands): Make return type of extern
4080 history_get be HIST_ENTRY, rather than struct _hist_entry.
4081 (The latter loses with the upcoming merged readline.)
4085 * minsyms.c (prim_record_minimal_symbol_and_info): Make tempstring
4086 const char *, not char *.
4088 * symtab.h (struct symbol): Make section short, not unsigned short.
4090 * symtab.c (lookup_symbol): Add comment about QUIT here.
4092 * utils.c (fputs_unfiltered): Call fputs, not fputs_maybe_filtered.
4094 * c-exp.y (parse_number): Check for overflow regardless of range
4095 checking. Fix overflow check to use unsigned LONGEST, not
4098 * c-exp.y (parse_number): Make it so that integer constants are
4099 builtin_type_long_long if builtin_type_long isn't big enough or if
4100 an "LL" suffix is used. Properly handle "UL" or "LU" suffixes.
4102 * c-typeprint.c (c_type_print_varspec_suffix, case TYPE_CODE_FUNC):
4103 Print our "()" first, then recurse for the target type.
4107 * remote-udi.c (udi_create_inferior): Quote empty execfile argument.
4109 * gdbserver/low-lynx.c: Include <sys/wait.h> not "/usr/include/wait.h".
4113 * utils.c (request_quit): Re-establish signal handler regardless
4116 * config/mips/xm-irix4.h: Define HAVE_TERMIOS.
4120 * i960-tdep.c: Include target.h.
4124 * lynx-nat.c (sys/wait.h): Don't use absolute pathname.
4128 * lynx-nat.c (child_wait): Fix thinkos in struct target_waitstatus
4129 changes (status -> ourstatus; declare status, etc.).
4130 * config/nm-lynx.h: Fix child_wait prototype and include target.h.
4134 * Makefile.in (ALLPARAM): Add config/nm-lynx.h.
4138 * remote-mips.c (mips_request, mips_wait): Correct prototypes.
4142 * config/i386/xm-linux.h: Define HAVE_TERMIOS.
4146 * config/alpha/tm-alpha.h (CALL_DUMMY): Improve comment.
4150 * remote-vx.c (vx_wait): Only call i960_fault_to_signal if I80960
4151 is defined. Otherwise just report TARGET_SIGNAL_UNKNOWN.
4153 * mips-tdep.c (mips_push_arguments): Byteswap struct_addr before
4156 Add search to target vector (#if 0'd until after 4.12):
4157 * target.h (to_search, target_search): Add.
4158 * gdbcore.h, core.c (generic_search): Add.
4159 * remote.c (remote_search): Add.
4160 * a29k-tdep.c (init_frame_info): Use target_search to find traceback
4163 * printcmd.c (print_address_symbolic): If set print fast-symbolic-addr
4164 is on, call find_pc_function rather than relying just on the minimal
4165 symbols (probably only matters for symbol readers which don't put
4166 statics in the minimal symbols, but changing this strikes me as
4167 not conservative enough).
4168 Initialize name_location in all cases.
4169 If no symbol and no msymbol, don't print anything symbolic.
4171 * a29k-tdep.c (push_dummy_frame): Add comment about saving lr0.
4175 * printcmd.c (print_address_symbolic): Make it search the
4176 symtabs for variables as well as functions. Add `set print
4177 fast-symbolic-addr' and default it to fast (the old way).
4178 Print line numbers for data items as well as functions.
4180 * symtab.c (find_addr_symbol): Return the symtab and the symbol
4181 address, if a symbol is found (take two more args pointing to
4182 where to store these results).
4184 * symtab.h (find_addr_symbol): Add prototype.
4188 * objfiles.h: Fix comments to reflect the fact that the phrase
4189 "top of stack" always refers to where the pushing and popping takes
4190 place, regardless of whether it is at the highest or lowest address.
4194 * mdebugread.c (parse_symbol): Do not set TYPE_TAG_NAME for
4195 compiler generated tag names.
4196 * mdebugread.c (parse_type): Handle cross references to qualified
4198 * valops.c (value_struct_elt): Improve error message if the
4199 address of a method is requested from an object instance.
4200 * valops.c (search_struct_method): Make name_matched non-static
4201 to get it initialized correctly.
4202 * config/i386/nm-i386sco.h (CANNOT_STORE_REGISTER): Define to
4203 exclude segment register which are not writable on newer SCO versions.
4207 * go32-xdep.c: Remove unused function uerror.
4208 (sigsetmask): Declare return type. Declare argument (to match the
4209 way it is called). Explicitly return 0.
4213 * symtab.h (struct symbol, general_symbol_info, minimal_symbol,
4214 partial_symbol): Shrink the storage sizes of symbols, by making
4215 enums into 1-byte bitfields when compiled __GNUC__, moving all the
4216 enums and small ints to the end of each struct to improve
4217 alignment, and switching the section number from int to unsigned
4222 * symtab.c (find_addr_symbol): New routine that will find the nearest
4223 symbol associated with an address. It does so by exhaustive
4224 search of the symtabs, so it's slow but complete.
4228 * coffread.c (read_coff_symtab): Set PC bounds of _globals_ symtab
4229 to [0,0] rather than [0, end of first source file]. This avoids
4230 problems with other parts of GDB looking for linetables in the
4231 _globals_ symtab. Eliminate variables num_object_files and
4232 first_object_file_end.
4236 * a29k-tdep.c (init_frame_info): Cast null arg to examine_tag.
4237 (pop_frame): Restore PC2 and LR0 from dummy frames.
4238 (push_dummy_frame): Save PC2 and LR0 into dummy frames.
4239 (setup_arbitrary_frame): Handle 3 args and set up real frames.
4240 * config/a29k/tm-a29k.h (FRAME_NUM_ARGS): Update comments.
4241 (DUMMY_FRAME_RSIZE): Add 2 longwords for PC2 and LR0.
4242 (SETUP_ARBITRARY_FRAME): Define.
4246 * infrun.c, config/mips/tm-irix5.h: Remove #if 0'd AT_FUNCTION_START.
4250 * remote-udi.c (udi_resume): Correct prototype.
4254 * config/pa/tm-hppa.h (FRAME_FIND_SAVED_REGS): Call
4255 hppa_frame_find_saved_regs.
4256 * hppa-tdep.c (dig_fp_from_stack): Delete function.
4257 (prologue_inst_adjust_sp): New function.
4258 (is_branch, inst_saves_gr, inst_saves_fr): New functions.
4259 (skip_prologue): Completely rewrite to use unwind information.
4260 (hppa_frame_find_saved_regs): Likewise.
4264 * remote-mips.c (mips_wait): Use new function mips_signal_from_protocol
4265 to convert a signal number with appropriate bounds checking.
4267 * remote-mips.c (mips_wait): Fix typos (0x177 -> 0177, 0x377 -> 0377).
4271 * stack.c (frame_info): If FRAME_FIND_SAVED_REGS isn't defined,
4272 print a newline to end the display anyway.
4274 * sparc-tdep.c (sparc_pop_frame): Pop the fsr and csr (float and
4275 coprocessor status regs) when popping a frame. This fixes
4276 float exceptions that occur after calling inferior functions.
4278 * sparc-nat.c (fetch_inferior_registers, store_inferior_registers):
4279 Read and write the fsr (float status register) to/from the child
4280 process along with the float regs. Remove Peter Schauer's change
4281 of May 24 '93, which has higher overhead and doesn't solve the
4282 real problem (which was that FSR wasn't being set).
4286 * a29k-tdep.c (examine_prologue): Don't worry if the ASGEQ
4287 stack overflow check isn't right after the register stack
4288 adjustment instruction. Metaware R2.3u compiler moves other
4289 things in front of it. This fix isn't perfect but is what's
4294 * c-valprint.c (c_val_print): Treat TYPE_CODE_RANGE like TYPE_CODE_INT.
4296 * config/alpha/alpha-netware.mt: Rename to alpha-nw.mt for 14
4297 character filenames.
4298 * configure.in: Change accordingly.
4302 * m68k-stub.c, sparc-stub.c: removed spurious introduction of
4303 _filtered io routines from these two files.
4307 * config/i386/tm-i386v.h, config/m68k/tm-m68k.h, config/mips/tm-mips.h,
4308 config/vax/tm-vax.h (CALL_DUMMY_BREAKPOINT_OFFSET): Define.
4309 * mdebugread.c (parse_symbol): Handle enum sh.type produced by
4311 * mdebugread.c (add_line): Handle zero linenos produced by DEC c89.
4315 * utils.c (print_sys_errmsg): Call gdb_flush (gdb_stdout) before
4316 printing to gdb_stderr.
4318 * remote-udi.c (udi_kill): Don't close the connection, just set
4319 inferior_pid to zero.
4320 (udi_mourn): Call remove_breakpoints.
4322 * remote-udi.c: Remove obsolete need_artificial_traps comment.
4324 * i386b-nat.c (sregmap): If sEAX, etc., not defined, use tEAX, etc.
4328 * symtab.c (lookup_symbol): Don't try adding .c to the name.
4330 * remote-bug.c: At the start of each section, reset srec_frame
4333 * target.h: Add TARGET_WAITKIND_LOADED and TARGET_WAITKIND_SPURIOUS.
4334 * target.c (store_waitstatus): Add CHILD_SPECIAL_WAITSTATUS hook.
4335 * infrun.c (wait_for_inferior): Replace SIGTRAP_STOP_AFTER_LOAD with
4336 code which looks for those two waitkinds. Use switch statement.
4337 * config/rs6000/tm-rs6000.h: Replace SIGTRAP_STOP_AFTER_LOAD with
4338 CHILD_SPECIAL_WAITSTATUS.
4340 * procfs.c (procfs_wait): Fix argument name to match 4 Jan changes.
4341 * Move target_signal_from_host, target_signal_to_host, and
4342 store_waitstatus from inftarg.c to target.c. procfs needs them.
4343 * target.c: Include "wait.h" and <signal.h>.
4344 * target.h, infrun.c (proceed), proceed callers: Pass new code
4345 TARGET_SIGNAL_DEFAULT instead of -1. This avoids problems with
4346 enums being treated as unsigned and is cleaner.
4347 * infrun.c (signals_info): Don't print TARGET_SIGNAL_DEFAULT or
4349 * infcmd.c (signal_command), infrun.c (signals_info):
4350 Don't allow user to specify numeric equivalent of
4351 TARGET_SIGNAL_DEFAULT.
4355 * config/alpha/alpha-netware.mt: New target support for Alpha
4357 * configure.in: Add alpha-*-netware* target.
4361 * remote-mips.c (mips_wait): Fix ref to TARGET_WAITKIND_STOPPED.
4365 * target.h: Add enum target_waitkind, enum target_signal, and
4366 struct target_waitstatus. Change status argument to target_wait to
4367 be struct target_waitstatus * instead of int *.
4368 * target.h, infrun.c, all targets: Change type of signal arguments
4369 to resume(), proceed(), and target_resume() from int to enum
4371 * All targets (*_wait, *_resume): Change accordingly.
4372 * infcmd.c (program_info, signal_command), throughout infrun.c,
4373 * fork-child.c, solib.c, hppa-tdep.c, osfsolib.c: Use this stuff.
4374 * convex-xdep.c, convex-tdep.c: Add FIXME's (getting the Convex
4375 signal code stuff right with the new signals would be non-trivial).
4376 * inferior.h (stop_signal): Make it enum target_signal not int.
4377 * target.c, target.h (target_signal_to_string, target_signal_to_name,
4378 target_signal_from_name): New functions.
4379 * inftarg.c, target.h (target_signal_to_host, target_signal_from_host,
4380 store_waitstatus): New functions.
4381 * procfs.c (procfs_notice_signals): Use them.
4382 * i960-tdep.c (i960_fault_to_signal): New function, to replace
4384 * config/i960/tm-i960.h: Don't define PRINT_RANDOM_SIGNAL.
4386 * objfiles.c (build_objfile_section_table): Don't abort() if
4387 objfile->sections is already set.
4389 * objfiles.c (add_to_objfile_sections): Check SEC_ALLOC not SEC_LOAD
4390 to match recent change to exec.c.
4394 * main.c (print_gdb_version): Change year to 1994.
4396 * ChangeLog, ChangeLog-93: Split ChangeLog at 1994.
4397 * Makefile.in (NONSRC): Add ChangeLog-93.
4401 * stabsread.c (read_type): Allow defining several type numbers
4402 at once (e.g. "(1,2)=(3,4)="...).
4404 * stabsread.c (read_enum_type): Use TARGET_INT_BIT not sizeof (int).
4406 * breakpoint.c (frame_in_dummy): Check PC as well as frame.
4410 * mdebugread.c (psymtab_to_symtab_1): Only pass N_STAB symbols
4411 to process_one_symbol.
4412 * symtab.c (find_pc_psymbol): Search global_psymbols as well to
4413 avoid caching a bad endaddr in find_pc_partial_function.
4417 * config/m68k/tm-sun3.h: Don't define BELIEVE_PCC_PROMOTION.
4421 * infrun.c (wait_for_inferior): Do not step or step resume past
4422 the end of a one-line function we just stepped into.
4424 For older changes see ChangeLog-93
4430 version-control: never