1 Sun Dec 19 18:56:38 1999 Andrew Cagney <cagney@b1.cygnus.com>
3 * breakpoint.c (mention): Delete ui-out breakpoint code. Mention
4 calls breakpoint_create_event and that, eventually, calls
5 gdb_breakpoint_query which displays the breakpoint details.
6 (hbreak_command_wrapper, thbreak_command_wrapper): Delete.
8 Wed Dec 29 17:41:11 1999 Andrew Cagney <cagney@b1.cygnus.com>
10 * breakpoint.c (create_breakpoints, parse_breapoint_sals,
11 breakpoint_sals_to_pc): New functions.
12 (break_command_1): Rewrite. Use create_breakpoints,
13 parse_breapoint_sals, breakpoint_sals_to_pcto create the list of
14 breakpoints specified in ``sals''. Delete unused variables.
15 Pre-allocate addr_strings for all breakpoints. Allocate a
16 separate cond and cond_string for each breakpoint.
17 (gdb_breakpoint, do_captured_breakpoint, struct
18 captured_breakpoint_args): Provide a library interface into
21 * defs.h (gdb_breakpoint): Add declaration.
23 1999-12-22 Michael Chastain <chastain@cygnus.com>
25 * dbxread.c (process_one_symbol): check for nested LBRAC
26 symbols before calling finish_block rather than after. Do not
27 call define_symbol for these symbols.
29 1999-12-21 Stan Shebs <shebs@andros.cygnus.com>
31 * blockframe.c (generic_pop_current_frame): Cosmetic changes to
34 1999-12-20 Michael Snyder <msnyder@cleaver.cygnus.com>
36 * procfs.c: Completely rewritten. All functions replaced, to make
37 maintainence easier in the presence of two very different versions
38 of /proc (ioctl vs. read/write).
39 * proc_api.c: New file, pretty-print /proc diagnostic trace info.
40 * proc_events.c: New file, pretty-print /proc signals, exceptions.
41 * proc_flags.c: New file, pretty-print /proc flags.
42 * proc_why.c: New file, pretty-print /proc reasons for stopping.
43 * Makefile.in: Add rules for above new files.
44 * config/i386/i386sol2.mh: Add above new files to NATDEPFILES.
45 * config/sparc/sun4sol2.mh: ditto.
46 * config/i386/i386dgux.mh: ditto.
47 * config/i386/i386v4.mh: ditto.
48 * config/i386/i386v42mp.mh: ditto.
49 * config/i386/ncr3000.mh: ditto.
50 * config/m68k/m68kv4.mh: ditto.
51 * config/m88k/delta88v4.mh: ditto.
52 * config/mips/irix4.mh: ditto.
53 * config/mips/irix5.mh: ditto.
54 * config/mips/mipsv4.mh: ditto.
55 * config/powerpc/solaris.mh: ditto.
56 * config/alpha/alpha-osf2.mh: ditto.
57 * config/alpha/alpha-osf3.mh: ditto.
58 * testsuite/gdb.base/callfuncs.exp: make "next" test match the
59 next source line, in case the "next" runs away.
60 * acconfig.h: remove obsolete def HAVE_MULTIPLE_PROC_FDS,
61 add new def NEW_PROC_API
63 * configure.in: Detect sparc solaris 7 and all versions of
64 UnixWare, and define NEW_PROC_API.
65 * configure: auto-generate.
66 * infrun.c (MAY_SWITCH_FROM_INFERIOR_PID): remove define, make it
67 the default behavior. (switched_from_inferior_pid): rename to
68 previous_inferior_pid. (handle_inferior_event): remove the
69 [Switching to thread...] message. (normal_stop): move the
70 [Switching to thread...] message to here.
71 * sol-thread.c (sol_find_new_threads): add a call to
72 procfs_find_new_threads, so that new LWPs are found too.
73 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
74 define to always use. (target_insert_watchpoint) define to use
75 new procfs call (one additional parameter).
76 (target_remove_watchpoint): ditto.
77 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT) define always true.
78 * config/mips/nm-irix4.h: ditto.
80 1999-12-21 Jim Blandy <jimb@cygnus.com>
82 * Makefile.in (elf_bfd_h): Look for elf-bfd.h in BFD_SRC, not
83 BFD_DIR. Unlike bfd.h, it is not a generated file.
85 Fri Dec 17 18:24:58 1999 David Taylor <taylor@texas.cygnus.com>
87 * language.c (_initialize_language): move settings of language,
88 range, and type and corresponding function calls
89 set_language_command, set_type_command, and set_range_command
90 closer together to match the model of having the user set the
91 variable via the 'set {language | range | type}' commands.
92 This eliminates startup noise introduced by Jimmy Guo's change
95 1999-12-17 Michael Snyder <msnyder@cleaver.cygnus.com>
97 * configure.in: test for <stdint.h>, which is not available
98 on earlier versions of Linux.
99 * config.in: define HAVE_STDINT_H if it's present.
100 * configure: autoconfiscate.
101 * lin-thread.c: if not HAVE_STDINT_H, stub out the entire module.
103 Fri Dec 17 20:45:21 1999 Andrew Cagney <cagney@b1.cygnus.com>
105 * target.c (find_target_beneath): Change ``='' in if to ``==''.
107 1999-12-16 Michael Snyder <msnyder@cleaver.cygnus.com>
109 * defs.h (TIDGET): add default definition.
110 * lin-thread.c (check_for_thread_event): for now, just provide
111 an empty definition (to be filled in later).
113 1999-12-16 Fernando Nasser <fnasser@totem.to.cygnus.com>
115 * varobj.c (varobj_list): Improve the test and the text of the
116 assertion that guards against wrong tally of root varobjs.
117 (uninstall_variable): Fix for a bug in which the number of root
118 varobjs was not decremented if the first one in the list was deleted.
120 1999-12-16 Michael Snyder <msnyder@cleaver.cygnus.com>
122 * linux-thread.c: Remove printf-debugging code.
123 * lin-thread.c: ditto.
124 * config/alpha/nm-linux.h: protect with NM_LINUX_H.
125 * testsuite/gdb.threads/linux-dp.exp: Make test for "New Thread"
126 message more forgiving. Ditto test for "info threads".
128 1999-12-16 Michael Snyder <msnyder@cleaver.cygnus.com>
130 * lin-thread.c: new file. Implements multi-thread debugging on
131 Linux using the thread_db API first implemented on Solaris. This
132 frees GDB from any dependency on the internal implementation of
133 the thread library. Future versions of the thread library will
134 implement a libthread_db API for debuggers, which GDB will use.
135 * config/i386/linux.mh: add lin-thread.o to the link, and add
136 -ldl and -rdynamic since libthread_db is a dynamic library.
137 * config/alpha/alpha-linux.mh: ditto.
138 * configure.in: test for thread_db.h, proc_service.h
139 * configure: autoconf.
140 * config.in: conditionally define HAVE_THREAD_DB_H
141 and HAVE_PROC_SERVICE_H
142 * gdb_thread_db.h: new file, used when the system doesn't have it.
143 * gdb_proc_service.h: ditto.
145 1999-12-16 Michael Snyder <msnyder@cleaver.cygnus.com>
147 * linux-thread.c: changes to accomodate the new lin-thread.c
148 module based on the thread_db API. These changes make parts of
149 linux-thread.c shareable with lin-thread.c.
150 (linuxthreads_wait_mask): replace with linuxthreads_block_mask.
151 (using_thread_db): new variable. Allows linux-thread module to
152 detect when lin-thread (thread_db API) module is in use.
153 (save_inferior_pid, restore_inferior_pid): make 32/64 bit safe.
154 (check_all_signal_numbers) make extern, shared with lin-thead.c.
155 (linuxthreads_new_objfile): use target_new_objfile_chain to share
156 this hook with the lin-thread module. Call the other module FIRST.
157 If using_thread_db is turned on by the other thread module, do not
158 set linuxthreads_debug and do not call update_stop_threads. Do call
159 check_all_signal_numbers, to be sure it gets set before target_wait.
160 (linux_child_wait): new function. Abstracts out the "child_wait"
161 functionality, so that it can be shared with the lin-thread module.
162 (linuxthreads_wait): call linux_child_wait, instead of doing the
163 waiting inline. If using_thread_db, do not call update_stop_threads
164 and do not turn on linuxthreads_debug.
165 (linuxthreads_mourn_inferior): abstract out the clearing of global
166 state, so that it can be shared with the lin-thread.c module.
167 (_initialize_linuxthreads): use linuxthreads_wait_mask to block
168 SIGCHLD exactly ONCE, and leave it blocked! Then linux_child_wait
169 will call sigsuspend when it wants to wait for this signal.
170 (thread_attach): abstract out ptrace attach to share with lin-thread.c
172 1999-12-16 Michael Snyder <msnyder@cleaver.cygnus.com>
174 Make target_pid_to_str a target_ops vector.
175 * target.h (target_pid_to_str): redefine to use a target_ops vector.
176 (target_tid_to_str): default to using target_pid_to_str.
177 (target_pid_or_tid_to_str): ditto.
178 * target.c (update_current_target): inherit to_pid_to_str method.
179 (find_target_beneath): new function. Find target stratum below
181 * config/nm-gnu.h: don't define target_pid_to_str.
182 * config/i386/tm-i386sol2.h: ditto.
183 * config/sparc/tm-sun4sol2.h: ditto.
184 * gnu-nat.c (init_gnu_ops): initialize to_pid_to_str vector.
185 * linux-thread.c (init_linuxthreads_ops): ditto.
186 * sol-thread.c (init_sol_thread_ops: ditto.
187 * procfs.c (init_procfs_ops): ditto.
188 * win32-nat.c (init_child_ops): ditto.
189 * config/i386/tm-cygwin.h: don't define target_pid_to_str.
190 * inftarg.c (child_pid_to_str): new function, used to initialize
191 to_pid_to_str vector. May be suppressed by defining CHILD_PID_TO_STR.
192 (init_child_ops): initialize to_pid_to_str using child_pid_to_str.
193 Derivative modules may substitute their own child_pid_to_str func
194 by defining CHILD_PID_TO_STR.
195 * lynx-nat.c (lynx_pid_to_str): rename to child_pid_to_str.
196 * config/nm-lynx.h: define CHILD_PID_TO_STR.
197 Don't define target_pid_to_str.
198 * hppah-nat.c (hppa_pid_to_str): rename to child_pid_to_str.
199 * infttrace.c (hppa_pid_or_tid_to_str): call child_pid_to str
200 instead of hppa_pid_to_str.
201 * config/pa/nm-hppah.h: define CHILD_PID_TO_STR.
202 Don't define target_pid_to_str.
204 1999-12-16 Michael Snyder <msnyder@cleaver.cygnus.com>
206 * i386-linux-nat.c: introduce PIDGET/TIDGET macros as on Solaris,
207 preparatory to using the thread_db debugging API for Linux.
208 (fill_gregset): guard against invalid input.
209 (fetch_regs): add a pid/thread_id argument, so we can fetch regs
210 from multiple processes/clones/threads. (store_regs): ditto.
211 (fetch_fpregs): ditto. (store_fpregs): ditto.
212 (fetch_xfpregs): ditto. (store_xfpregs): ditto.
213 (fetch_inferior_registers): use TIDGET to extract an appropriate
214 thread/clone/process id from inferior_pid, if there's one there,
215 and pass it to fetch_regs etc. (store_inferior_registers): ditto.
217 * infptrace.c: include every available version of wait.h.
218 introduce PIDGET/TIDGET macros for use with thread_db API on Linux.
219 (call_ptrace): rearrange lines that were split by an ifdef.
220 (fetch_register): use TIDGET to extract an appropriate process ID
221 from inferior_pid, in case we are debugging more than one process.
222 (store_register): ditto. This is for Linux.
223 (child_xfer_memory): use PIDGET to extract the main process id from
224 inferior_pid, in case we are debugging multiple processes that share
225 the same address space (as on Linux).
227 1999-12-16 Christopher Faylor <cgf@cygnus.com>
229 * win32-nat.c: Add a missing register to mappings array.
230 (child_fetch_inferior_registers): Use precalculated index into mappings
231 array as supply_registers argument.
232 (handle_output_debug_string): Avoid considering every debug string as a
234 (handle_exception): Trap first chance exceptions.
235 (child_create_inferior): Initialize Microsoft thread walking API.
236 (sgmb): New function. Used by Microsoft API for stack walking.
237 (child_frame_chain): New function. Uses Microsoft API for stack
239 (child_frame_chain_saved_pc): Ditto.
240 * config/i386/tm-cygwin.h: Define frame handling stuff.
242 1999-12-15 Stan Shebs <shebs@andros.cygnus.com>
244 ARM GNU/Linux support and general ARM target fixes/cleanup from
245 Scott Bambrough <scottb@netwinder.org>, plus obsoletion of the old
247 * NEWS: Mention addition and obsoletion.
248 * configure.host: Recognize arm* instead of just arm.
249 (arm*-*-linux*): Recognize.
250 * configure.tgt: Ditto, plus assume arm*-*-* is embedded.
251 * config/arm/arm.mh, config/arm/arm.mt, config/arm/nm-arm.h,
252 config/arm/xm-arm.h: Mark as OBSOLETE.
253 * config/arm/embed.mt, config/arm/tm-embed.h: New files.
254 * config/arm/linux.mh, config/arm/linux.mt, config/arm/nm-linux.h,
255 config/arm/tm-linux.h, config/arm/xm-linux.h: Ditto.
256 * config/arm/tm-arm.h: Add more comments, eliminate PARAMS.
257 (STACK_END_ADDR): Remove.
258 (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT, THUMB_LE_BREAKPOINT,
259 THUMB_BE_BREAKPOINT): Move to here from arm-tdep.c.
260 (NUM_REGS): Define as sum.
261 (NUM_FREGS, NUM_SREGS, NUM_GREGS): New definitions.
262 (FP_REGISTER_RAW_SIZE, FP_REGISTER_VIRTUAL_SIZE,
263 STATUS_REGISTER_SIZE): Define.
264 (REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE,
265 REGISTER_VIRTUAL_SIZE): Rewrite to use symbolic values.
266 (REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
267 REGISTER_CONVERT_TO_RAW, USE_STRUCT_CONVENTION,
268 EXTRACT_RETURN_VALUE): Rewrite to use new functions.
269 (IN_SIGTRAMP): Remove definition.
270 * arm-convert.s: Mark as OBSOLETE.
271 * arm-linux-nat.c: New file.
272 * Makefile.in: Add build rule for it.
273 * arm-tdep.c (struct frame_extra_info): New struct.
274 (arm_use_struct_convention): Rewrite.
275 (arm_push_arguments): Rewrite to handle more cases.
276 (arm_register_convertible, arm_register_convert_to_virtual,
277 arm_register_convert_to_raw, arm_extract_return_value): New
279 (LITTLE_BREAKPOINT, BIG_BREAKPOINT): Remove.
280 * arm-xdep.c: Mark as OBSOLETE.
282 1999-12-15 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
284 * infcmd.c (run_stack_dummy): Temporarily lie about the target
285 ability to support asynchronous execution.
287 * remote.c (remote_can_async_p, remote_is_async_p): Return true
288 iff to_async_mask_value is true too.
289 (remote_async): Error out if called when to_async_mask_value is 0.
290 (init_remote_async_ops): Initialize to_async_mask_value to 1.
291 (remote_async_detach, remote_async_resume, remote_async_wait,
292 remote_async_kill): Change SERIAL_IS_ASYNC_P call to
293 target_is_async_p call.
294 (remote_async_resume): Change SERIAL_CAN_ASYNC_P call to
295 target_can_async_p call.
297 * target.c (update_current_target): Inherit to_async_mask_value.
298 (target_async_mask): New function. To temporarily turn the target
299 into a synchronous one for inferior function calls, and back to
302 * target.h (to_async_mask_value): New entry in the target
304 (target_async_mask): Export.
305 (target_async_mask_value): Define.
307 Wed Dec 15 11:24:32 1999 Jeffrey A Law (law@cygnus.com)
309 * hp-psymtab-read.c (trans_lang): Use HP_LANGUAGE_FORTRAN instead
312 Wed Dec 15 13:37:55 1999 Andrew Cagney <cagney@b1.cygnus.com>
314 * gdb-events.h, gdb-events.c (set_gdb_event_hooks): Return the old
317 1999-08-13 Jim Kingdon <http://developer.redhat.com/>
319 * breakpoint.c (bpstat_stop_status): Revert 1998-09-08 change
320 to ->frame matching. The change did not match the ChangeLog
321 entry, looked fishy, and caused infinite stepping when running
322 "next" from main on sparc w/ RH Linux. Thanks to Jakub for the
325 1999-12-14 Stan Shebs <shebs@andros.cygnus.com>
327 * arm-tdep.c (arm_get_next_pc): Add argument to shifted_reg_val
330 1999-12-14 Mark Salter <msalter@cygnus.com>
332 * mips-tdep.c (mips_print_register): Fix printing of individual
333 registers when REGISTER_VIRTUAL_SIZE != REGISTER_RAW_SIZE.
335 Tue Dec 14 23:29:19 1999 Andrew Cagney <cagney@b1.cygnus.com>
337 * defs.h (mcalloc): Delcare.
338 * utils.c (xcalloc, mcalloc): New functions.
340 1999-12-13 Stan Shebs <shebs@andros.cygnus.com>
342 * config/arm/tm-arm.h: Reformat comments, in preparation for
344 * arm-tdep.c: Similarly, plus change function definitions to
347 1999-12-13 Michael Snyder <msnyder@cleaver.cygnus.com>
349 * breakpoint.h (enum bptype): add new BP type bp_thread_event.
350 This will be used when a target needs to set an invisible
351 breakpoint to detect events such as thread creation.
352 * breakpoint.c (interlan_breakpoint_number): remove ifdefs.
353 (create_thread_event_breakpoint): new function.
354 (remove_thread_event_breakpoints): new function.
355 (bpstat_what): don't stop at invisible thread_event breakpoints.
356 (update_breakpoints_after_exec): if bp_thread_event breakpoins
357 still exist after an exec, delete them. They'll need to be
358 found and installed anew anyway.
359 (print_it_typical): don't announce bp_thread_event breakpoints.
360 (print_one_breakpoint): account for new breakpoint type.
361 (mention): don't mention invisible bp_thread_event breakpoints.
362 (delete_command): don't delete invisible bp_thread_event bp's.
363 (breakpoint_re_set_one): don't touch bp_thread_event bp's.
365 Mon Dec 13 11:10:59 1999 Jimmy Guo <guo@cup.hp.com>
367 * language.h (longest_raw_hex_string, longest_local_hex_string,
368 longest_local_hex_string_custom): Declare.
369 * language.c: New functions, and misc. fixes.
370 (longest_raw_hex_string, longest_local_hex_string,
371 longest_local_hex_string_custom): New functions.
374 (c_type_print_varspec_prefix,c_type_print_varpsec_suffix): Add
375 TYPE_CODE_TEMPLATE case and default case.
376 (c_type_print_base): Revise how demangled_no_class is found;
377 print '}' before printing local file:line info.
378 * c-valprint.c (c_value_print): print reference type to class.
380 * valarith.c (value_binop): Add support for exponentiation,
382 (value_strcmp): New function.
383 (value_equal,value_less): Add string equality comparison support.
385 * m2-exp.y (lex): add default case statement to capture
386 unhandled token and call error().
388 1999-12-13 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
390 * main.c (main): Remove unused variable.
392 From Hubert VERSTRAETE (hubertV@bigfoot.com):
393 * main.c (captured_main): Disambiguate command line option '-d' by
394 preferring --directory over --dbx.
396 * top.c (return_to_top_level): Do not do exec cleanups if the
397 target is executing. Those cleanups are supposed to be done when
398 the target has stopped.
400 Mon Dec 13 20:52:37 1999 Andrew Cagney <cagney@b1.cygnus.com>
402 * breakpoint.c (do_captured_breakpoint_query,
403 gdb_breakpoint_query): New functions. Implement a breakpoint
406 * defs.h (enum gdb_rc): Declare.
407 (gdb_breakpoint_query): Declare.
409 Mon Dec 13 14:18:06 1999 Andrew Cagney <cagney@b1.cygnus.com>
411 * gdb-events.h: Fix typo in description of breakpoint events.
412 * gdb-events.sh: Update.
414 Mon Dec 13 13:57:26 1999 Andrew Cagney <cagney@b1.cygnus.com>
416 * breakpoint.c (ep_type_description_t): Delete.
417 (print_one_breakpoint): Add local declaration of struct
420 Mon Dec 13 12:38:31 1999 Andrew Cagney <cagney@b1.cygnus.com>
422 * top.h: Delete #include <setjmp.h>. Moved to top.c.
423 (SIGJMP_BUF, SIGSETJMP, SIGLONGJMP, SIGJMP_BUF, SIGSETJMP,
424 SIGLONGJMP): Delete. Moved to top.c
425 (error_return, quit_return): Delete extern declarations.
427 * top.c: #include <setjmp.h>.
428 (error_return, quit_return): Make static.
429 (SIGJMP_BUF, SIGSETJMP, SIGLONGJMP, SIGJMP_BUF, SIGSETJMP,
432 Mon Dec 13 11:54:12 1999 Andrew Cagney <cagney@b1.cygnus.com>
434 * tracepoint.c (trace_start_command, tracepoints_info): Print
435 step_count using %ld.
436 * Makefile.in (tracepoint.o): Compile tracepoint.o with -Werror.
438 1999-12-12 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
440 * target.h (enum target_waitkind): Add new enumeration value
441 TARGET_WAITKIND_IGNORE. For inferior events that we should do
444 * remote.c (remote_async_wait): After each character of console
445 output from the inferior, return to the event loop with an event
446 kind of TARGET_WAITKIND_IGNORE instead of looping here.
448 * infrun.c (handle_inferior_event): In case of
449 TARGET_WAITKIND_IGNORE, return immediately, and set things up so
450 that we are still waiting for the inferior.
452 1999-12-12 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
454 * event-loop.c (handle_timer_event): When calling the timer
455 procedure, use the saved_timer data, not the timer_ptr data,
456 because the latter has been already freed.
458 Fri Dec 10 12:01:43 1999 Andrew Cagney <cagney@b1.cygnus.com>
460 * eval.c (evaluate_subexp): Only inline when GNUC and not STDC.
462 Sat Dec 11 17:52:03 1999 Andrew Cagney <cagney@b1.cygnus.com>
464 * breakpoint.c (print_one_breakpoint): New function. Move
465 breakpoint print code to here.
466 (breakpoint_1): From here.
467 (print_one_breakpoint): Merge in ui-out code.
468 (print_one_breakpoint): Add local variabls ``stb'' and
470 (breakpoint_1): Use print_one_breakpoint when UI.
471 (print_one_breakpoint): Print breakpoint type when UI.
472 (breakpoint_1): Merge UI out code into non UI function.
474 * ui-out.c (make_cleanup_ui_out_stream_delete): New function. Wrap
476 (do_stream_delete): New function. Wrap ui_out_stream_delete.
477 * ui-out.h (make_cleanup_ui_out_stream_delete): Declare.
479 Sat Dec 11 00:12:41 1999 Andrew Cagney <cagney@b1.cygnus.com>
481 * breakpoint.c (breakpoint_1): Clone breakpoint_1 creating UI
484 Mon Dec 6 20:31:28 1999 Andrew Cagney <cagney@b1.cygnus.com>
486 * gdbarch.sh: Replace field init_p with invalid_p.
487 (TARGET_BFD_VMA_BIT): New architecture vector method. Defaults to
488 architecture bits_per_address.
489 * gdbarch.h, gdbarch.c: Update.
490 * defs.h (TARGET_BFD_VMA_BIT): Provide default of TARGET_PTR_BIT
491 for non- multi-arch case.
493 * gdbtypes.h (builtin_type_bfd_vma, builtin_type_ptr,
494 builtin_type_CORE_ADDR): New GDB specific address types.
495 * gdbtypes.c (_initialize_gdbtypes, build_gdbtypes): Initialize
498 Wed Dec 8 17:48:56 1999 Andrew Cagney <cagney@b1.cygnus.com>
500 * config/sparc/nm-nbsd.h (FETCH_INFERIOR_REGISTERS): Delete
501 definition. Already defined in config/nm-nbsd.h. Include the
502 more explicit config/nm-nbsd.h.
504 * config/sparc/nbsd.mt (TDEPFILES): Move solib.o from here.
505 * config/sparc/nbsd.mh (NATDEPFILES): To here.
506 * config/xm-nbsd.h: #include <sys/param.h> to get definition of
507 NGROUPS needed by <limits.h> and missing on some systems.
508 * config/nm-nbsd.h: Only macro's that match NetBSD definitions
509 with what is expected by solib.c when not SVR4_SHARED_LIBS.
511 * configure.host: Add patterns for sparc-*-netbsdaout* and
513 * config/sparc/nm-nbsdelf.h: New file.
514 * config/sparc/nbsdelf.mh: New file.
516 Wed Dec 8 19:56:48 1999 Andrew Cagney <cagney@b1.cygnus.com>
518 * frame.h, blockframe.c: Rename default_frame_chain_valid to
519 file_frame_chain_valid. Rename alternate_frame_chain_valid to
520 func_frame_chain_valid.
522 * config/sparc/tm-sparclite.h, config/mips/tm-mipsv4.h,
523 config/m88k/tm-delta88v4.h, config/m68k/tm-m68kv4.h,
524 config/m68k/tm-monitor.h, config/i386/tm-i386nw.h,
525 config/i386/tm-i386v4.h, config/h8300/tm-h8300.h: Update.
526 * mips-tdep.c (mips_gdbarch_init): Update.
528 Wed Dec 8 19:12:17 1999 Andrew Cagney <cagney@b1.cygnus.com>
530 * blockframe.c (generic_file_frame_chain_valid): Rename
531 generic_file_frame_chain_valid.
533 * config/fr30/tm-fr30.h, config/m32r/tm-m32r.h,
534 config/mn10200/tm-mn10200.h, config/mn10300/tm-mn10300.h,
535 config/sh/tm-sh.h, config/v850/tm-v850.h, config/mcore/tm-mcore.h:
538 * blockframe.c (generic_func_frame_chain_valid): New function.
539 Implement dummy-frame equivalent of function based frame chain
541 * frame.h (generic_func_frame_chain_valid): Declare.
543 Wed Dec 8 16:26:27 1999 Andrew Cagney <cagney@b1.cygnus.com>
545 * blockframe.c (alternate_frame_chain_valid,
546 default_frame_chain_valid): Swap implementations. The change Mon
547 Nov 30 11:18:48 1998 Andrew Cagney <cagney@chook> which converted
548 several macros to functions was backwards.
550 * mips-tdep.c (mips_gdbarch_init): Update. Call
551 alternate_frame_chain_valid and not default_frame_chain_valid.
553 Wed Dec 8 15:29:48 1999 Andrew Cagney <cagney@b1.cygnus.com>
555 * infptrace.c: Simplify handling of <sys/wait.h>. Always include
556 "wait.h" from the ../include/wait.h directory. #include
557 <sys/wait.h> was added as part of Mon Nov 29 12:14:10 1999 Andrew
558 Cagney <cagney@b1.cygnus.com> but the ChangeLog was omitted.
560 1999-12-07 Jim Blandy <jimb@cygnus.com>
562 Add support for SSE registers in core files.
563 * corelow.c (get_core_register_section): New function.
564 (get_core_registers): Fetch the new ".reg-xfp" sections,
565 in addition to the traditional ".reg" and ".reg2" sections.
566 Check for per-thread variants of all three. Use
567 get_core_register_section, instead of writing it out over and over
569 * i386-linux-nat.c (i386_linux_fetch_core_registers): New function.
570 (i386_linux_nat_core_fns): New core_fns structure. We do our own
571 core handling now, instead of using the generic code in core-regset.c.
572 (_initialize_i386_linux_nat): New function, needed to register
573 i386_linux_nat_core_fns.
574 * config/i386/linux.mh (NATDEPFILES): Remove core-regset.o;
575 i386-linux-nat.c has its own sniffer now.
576 * gdbcore.h: (struct core_fns): Doc fix.
578 * i386v-nat.c (i386_float_info): Definition is #if 0'd; delete it
579 altogether. This should use the function i387-tdep.c.
581 Patch from Mark Kettenis <kettenis@gnu.org>:
583 * config/i386/tm-i386.h (FLOAT_INFO): New define.
584 * i387-tdep.c (print_i387_value, print_i387_ext,
585 print_i387_status_word, print_i387_control_word, i387_float_info):
586 New functions, used to implement generic `info float' command.
588 1999-12-06 Christopher Faylor <cgf@cygnus.com>
590 * dcache.c (set_dcache_state): New function.
591 * dcache.h: Declare set_dcache_state().
593 Sat Dec 4 15:17:44 1999 Andrew Cagney <cagney@b1.cygnus.com>
595 * remote.c (build_remote_packet_sizes): Reduce the default packet
596 size of 400 bytes by one to 399. Stops GDB trashing stubs that
597 append a trailing NUL to an already full buffer.
599 Sat Dec 4 01:16:47 1999 Andrew Cagney <cagney@b1.cygnus.com>
601 * tracepoint.c (remote_get_noisy_reply): Add parameter sizeof_buf.
602 (finish_tfind_command): Add parameter sizeof_msg.
604 * remote.c (remote_threads_info): Move assignment operator to
605 outside of function call.
606 (remote_send): Add parameter sizeof_buf.
607 (getpkt): Add parameter sizeof_buf. Call read_frame passing in
610 * remote.h (getpkt): Update.
612 * tracepoint.c (remote_set_transparent_ranges,
613 remote_get_noisy_reply, trace_start_command, trace_stop_command,
614 trace_status_command, finish_tfind_command, trace_find_pc_command,
615 trace_find_tracepoint_command, trace_find_line_command,
616 trace_find_range_command, trace_find_outside_command): Update.
618 * remote.c (set_thread, remote_thread_alive,
619 remote_get_threadinfo, remote_get_threadlist,
620 remote_current_thread, remote_threads_info,
621 extended_remote_restart, get_offsets, remote_open_1,
622 remote_async_open_1, remote_wait, remote_async_wait,
623 remote_fetch_registers, check_binary_download, remote_write_bytes,
624 remote_read_bytes, remote_send, remote_detach,
625 remote_async_detach, remote_fetch_registers,
626 store_register_using_P, store_register_using_P,
627 remote_fetch_registers, remote_store_registers, putpkt_binary,
628 remote_insert_breakpoint, remote_remove_breakpoint,
629 compare_sections_command, remote_rcmd, packet_command,
630 remote_info_process, remote_query, remote_insert_watchpoint,
631 remote_search, remote_remove_watchpoint,
632 remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Update.
634 Fri Dec 3 17:38:06 1999 Andrew Cagney <cagney@b1.cygnus.com>
636 * (read_frame): Add sizeof_buf parameter. Don't allow repeat when
637 first character. Always leave space at the end of the buffer.
638 Return size of packet or -1.
639 (getpkt): Update. Pass in PBUFSIZ.
641 1999-12-02 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
643 * breakpoint.c (print_it_typical): Print reason for stopping in
646 Thu Dec 2 17:14:53 1999 Andrew Cagney <cagney@b1.cygnus.com>
648 * ser-pipe.c: Include <string.h> for memset().
650 1999-12-01 Jim Blandy <jimb@cygnus.com>
652 * gdbtypes.c (builtin_type_v4si, builtin_type_v8qi,
653 builtin_type_v4hi, builtin_type_v2si): New SIMD types.
654 (build_gdbtypes): Initialize them.
655 (_initialize_gdbtypes): Gdbarch_swap them.
656 * gdbtypes.h (builtin_type_v4si, builtin_type_v8qi,
657 builtin_type_v4hi, builtin_type_v2si): Declare them.
659 * findvar.c (read_register_bytes, write_register_bytes): Correctly
660 determine how the region the caller is writing overlaps with each
663 * value.h (struct value): Doc fixes.
665 * valops.c (value_assign): Clarify error message.
667 1999-12-01 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
669 * stack.c (return_command_wrapper): New function, to export
672 1999-12-01 Christopher Faylor <cgf@cygnus.com>
674 * config/i386/tm-cygwin.h: Change tm-i386.h include back to tm-i386v.h.
676 1999-12-01 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
678 * inf-loop.c (inferior_event_handler): In case of
679 INF_EXEC_CONTINUE, don't do all the regular continuations, but
680 just the intermediate ones.
682 * infcmd.c (step_once): Add the continuation to the
683 intermediate_continuation list instead of the regular continuation
686 * utils.c (add_intermediate_continuation): New function, to add
687 continuations to the intermedite_continuation list.
688 (do_all_intermediate_continuations): New function, do all the
689 continuations in the intermediate list.
690 (discard_all_intermediate_continuations): New function, discard
691 all the continuations in the intermediate list.
692 (intermediate_continuation): New global list for use by step_1().
694 * defs.h: Export intermediate_continuation,
695 add_intermediate_continuation, do_all_intermediate_continuations,
696 discard_all_intermediate_continuations.
698 1999-11-30 Christopher Faylor <cgf@cygnus.com>
700 * win32-nat.c (mappings): Reorganize slightly for new uniform i386
701 register configuration.
702 (do_child_fetch_inferior_registers): Handle special case floating point
704 (handle_output_debug_string): Handle cygwin-specific signals broadcast
706 (handle_exceptions): Add code to properly allow continuation after a
708 (child_continue): Accept propagated "continue_status" which controls
709 how the inferior should be continued.
710 (get_child_debug_event): New function.
711 (child_wait): Use above function to handle debug events.
712 (child_create_inferior): Add more intelligent method for running the
713 inferior to the appropriate point before handing it off to the rest of
715 (child_stop): Specifically send a CTRL-C to the debugged process.
716 (child_kill_inferior): Set global continue status here to cause
717 inferior to run to completion.
718 (child_resume): Eliminate code which attempts to decide how to continue
719 the inferior. This is now handled by child_continue.
720 * config/i386/tm-cygwin.h: Gut and reorganize for consistency with new
723 Patch from Egor Duda (deo@logos-m.ru)
724 * win32-nat.c (psapi_get_dll_name): New function.
725 (handle_load_dll): Correctly load DLL symbol tables after attaching to
728 1999-11-30 Michael Snyder <msnyder@cleaver.cygnus.com>
730 * infrun.c (handle_inferior_pid): revert 11-29 change: resuming
731 a thread other than the current thread with a signal. Apparently
732 target_resume with a specific pid, a specific signal, and no step
733 means to continue ALL threads but to only send the signal to one
734 (and not, as I had assumed, to continue only the specified thread).
735 * i386-linux-nat.c (fill_gregset): guard against invalid input.
737 1999-11-30 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
739 * infcmd.c (step_once): New function. Used to do just one step
741 (step_1_continuation): New function. Figure out if we need to step
742 again before returning control to the user.
743 (step_1): If we are in asynchronous mode, don't do the for loop,
744 but rather delegate to continuations the task of repeating the
747 * utils.c (do_all_continuations): Copy the continuation list aside
748 before working on it.
750 * target.h (enum inferior_event_type): Add new enum
753 * inf-loop.c (inferior_event_handler): Handle new case
756 * infrun.c (fetch_inferior_event): If we are in the middle of a
757 'step n' type command, don't say that the execution is complete,
758 but that it will have to continue.
760 1999-11-30 Kevin Buettner <kevinb@cygnus.com>
762 * utils.c (verror): Don't traverse va_list argument twice. Also,
763 removed extraneous va_end() call.
765 1999-11-29 Michael Snyder <msnyder@cleaver.cygnus.com>
767 * infrun.c (handle_inferior_pid): If a child thread stops on a
768 signal that we are ignoring, and GDB silently resumes the child,
769 resume ALL threads (not just the one that got the signal). All
770 threads are stopped, so all must be resumed.
771 (handle_inferior_event): on detecting a thread context switch,
772 swap infrun_state ONLY if both the old thread and the new one
773 are in the thread list. Otherwise state information will be lost!
774 Problem may arise with flaky back-ends.
776 1999-11-29 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
778 * infrun.c (print_stop_reason): Don't print end of stepping reason
779 if we are in the middle of a multistep command (same condition as
782 * breakpoint.c (bpstat_stop_status): Don't decrease hit_count
783 in case of a wp that has not changed.
785 Mon Nov 29 12:14:10 1999 Andrew Cagney <cagney@b1.cygnus.com>
787 * gdbtypes.c (init_simd_type): Make static.
789 * configure.in (AC_CHECK_HEADERS): Check for <sys/ioctl.h>.
790 * configure, config.h: Re-generate.
791 * inflow.c: Include <sys/ioctl.h>
793 * i386b-nat.c: Include "gdbcore.h".
794 * fork-child.c: Include "command.h".
796 * remote.c (remote_cisco_section_offsets,
797 remote_start_remote_dummy, store_register_using_P,
798 remote_info_process, remote_cisco_open, remote_cisco_close,
799 readsocket, readtty, minitelnet, remote_cisco_wait,
800 init_remote_async_ops, init_extended_async_remote_ops,
801 set_remote_cmd), infrun.c (default_skip_permanent_breakpoint): Use
802 ISO-C syntax for function definition.
804 Mon Nov 29 11:28:21 1999 Andrew Cagney <cagney@b1.cygnus.com>
806 * stabsread.c: Revert 1999-11-09 Jim Blandy
807 <jimb@zwingli.cygnus.com> and 1999-11-08 Jim Blandy
808 <jimb@cygnus.com>. Broken on non-Linux targets.
810 1999-11-26 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
812 * symfile.c (show_load_progress): Add total sent so far to the
813 information passsed to the hook users.
814 (generic_load): Collect total sent so far and pass that to the
817 * defs.h (show_load_progress): Update.
819 1999-11-25 Nick Clifton <nickc@cygnus.com>
821 * coffread.c (coff_symfile_read): Treat "epoc-pe" targets as "pe"
823 * dbxread.c (dbx_read_symfile): Treat "epoc-pe" targets as "pe"
826 Wed Nov 24 17:07:28 1999 Andrew Cagney <cagney@b1.cygnus.com>
828 * Makefile.in (init.c): Add SUBDIR_INIT_FILES so that sub
829 directories can hook in extra init files.
831 Wed Nov 24 11:41:01 1999 Andrew Cagney <cagney@b1.cygnus.com>
833 * ui-out.h (field_string_ftype, ui_out_field_string): Make string
835 * cli-out.c (cli_field_string): Update.
836 * ui-out.c (uo_field_string, ui_out_field_string,
837 default_field_string): Update.
839 1999-11-23 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
841 * defs.h (show_load_progress): Export.
843 * symfile.c (show_load_progress): New hook for download.
844 (generic_load): Collect total size of executable to load.
845 Call progress hook when downloading.
846 Add output for ui case.
847 (print_transfer_performance): Add output for ui case.
849 Thu Nov 18 11:54:24 1999 Andrew Cagney <cagney@b1.cygnus.com>
851 * arc-tdep.c (codestream_fill): Rewrite byte swap code using
852 function extract_unsigned_integer.
854 Wed Nov 17 17:01:06 1999 Andrew Cagney <cagney@b1.cygnus.com>
856 * arm-xdep.c: #include "arm-opcode.h" -> "opcode/arm.h".
858 1999-11-22 Jim Blandy <jimb@cygnus.com>
860 * Makefile.in (i386-tdep.o): Update list of dependencies.
862 1999-11-22 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
864 * stack.c (print_frame_info_base): Adjust output for stepi/nexti case.
866 1999-11-22 Jim Blandy <jimb@cygnus.com>
868 * config/i386/tm-i386v.h (NUM_REGS, REGISTER_NAMES,
869 REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE,
870 REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE,
871 MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE): Deleted. All
872 of these should inherit identical or compatible values from
873 tm-i386.h, as long as you don't define HAVE_SSE_REGS or
874 HAVE_I387_REGS, which are new anyway.
876 Mon Nov 22 21:39:27 1999 Andrew Cagney <cagney@b1.cygnus.com>
878 * target.c (do_target_signal_to_host): New function. Indicate of
879 the conversion was successful to the caller via an additional
881 (target_signal_to_host_p): New function. Return non-zero if the
882 GDB signal exists on the host system.
883 (target_signal_to_host): Rewrite. Use do_target_signal_to_host.
884 * target.h (target_signal_to_host_p): Add declaration. Document
885 target_singal vs host signal vs target OS signal confusion.
887 From 1999-11-08 Jimmy Guo <guo@cup.hp.com>:
888 * hppah-nat.c (require_notification_of_events): Start by ignoring
889 all signals and then adding back in ones we're interested in.
891 Thu Nov 18 18:12:48 1999 Andrew Cagney <cagney@b1.cygnus.com>
893 * jv-typeprint.c (java_type_print_base), kod-cisco.c
894 (cisco_kod_open), kod.c (kod_set_os), xcoffread.c
895 (process_linenos), symfile.c (add_symbol_file_command),
896 remote-rdi.c (arm_rdi_open, rdilogfile_command), main.c
897 (captured_main), go32-nat.c (go32_create_inferior), exec.c
898 (exec_file_attach), corefile.c (core_file_command,
899 reopen_exec_file): Replace strdup with xstrdup.
901 * varobj.c (varobj_gen_name, c_name_of_child, c_value_of_variable,
902 cplus_value_of_variable): Replace strdup with xstrdup.
903 * ui-out.c (ui_out_table_begin): Ditto.
905 Mon Nov 22 12:02:47 1999 Andrew Cagney <cagney@b1.cygnus.com>
907 * bcache.c (print_bcache_statistics): Fix printf_filtered
909 (print_percentage): Make function void.
911 1999-11-21 Jim Blandy <jimb@cygnus.com>
913 Make the bcache hash table grow.
914 * bcache.h (BCACHE_NUM_BUCKETS): Delete definition.
915 (struct bcache): Add new element: num_buckets. Make bucket be a
916 pointer to an array, not an array.
917 (free_bcache): New extern declaration.
918 * bcache.c (CHAIN_LENGTH_THRESHOLD): New constant.
919 (expand_hash_table): New function.
920 (bcache): Grow the hash table if the average chain length reaches
921 CHAIN_LENGTH_THRESHOLD.
922 (free_bcache): New function.
923 (print_bcache_statistics): Don't assume that the number of buckets
924 is constant any more.
925 (BSTRING_SIZE): Moved down to just above 'bcache' function, where
927 * objfiles.c (free_objfile): Call free_bcache, instead of just
928 freeing the bcache's obstack directly.
929 * symfile.c (reread_symbols): Same.
931 1999-11-20 Jim Blandy <jimb@cygnus.com>
933 * bcache.c, bcache.h: Rewritten. New version imposes less memory
934 overhead, and has a more effective hash function, so it's probably
937 * config/nm-linux.h: No need to check whether __STDC__ is
938 #defined --- GDB requires ANSI C now.
940 * config/i386/nm-linux.h (linuxthreads_pid_to_str,
941 linuxthreads_prepare_to_proceed): Delete declarations --- they're
942 provided by config/nm-linux.h now.
944 1999-11-19 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
946 * top.c (print_command_lines): Remove unused var.
948 1999-11-19 Jim Kingdon <kingdon@redhat.com>
950 Patch applied by Jim Blandy <jimb@cygnus.com>:
952 Enable threads for all linux architectures:
953 * config/nm-linux.h: New file.
954 config/alpha/nm-linux.h, config/i386/nm-linux.h,
955 config/m68k/nm-linux.h, config/sparc/nm-linux.h: Use it.
956 * config/tm-linux.h: New file.
957 * config/i386/tm-linux.h, config/m68k/tm-linux.h,
958 config/sparc/tm-linux.h, config/alpha/tm-alphalinux.h: Use it.
959 * config/m68k/linux.mh, config/sparc/linux.mh,
960 config/alpha/alpha-linux.mh: Add linux-thread.o.
962 1999-11-18 Tom Tromey <tromey@cygnus.com>
964 * tracepoint.h (get_tracepoint_by_number): Updated declaration.
965 * tracepoint.c (trace_pass_command): Better error message. Fixed
966 logic when `all' not specified.
967 (get_tracepoint_by_number): Added `optional_p' argument. Fixed
970 Wed Nov 17 17:40:30 1999 Andrew Cagney <cagney@b1.cygnus.com>
972 * findvar.c (SWAP_FLOATING): Delete macro. Unused.
974 1999-11-16 Mark Salter <msalter@cygnus.com>
976 * monitor.c (monitor_supply_register): Initialize value to zero.
978 1999-11-15 Eli Zaretskii <eliz@is.elta.co.il>
980 (Patches applied by Jim Blandy <jimb@zwingli.cygnus.com>)
982 Change DJGPP target use the common register layout in
983 config/i386/tm-i386.h.
984 * config/i386/tm-go32.h: #include "i386/tm-i386.h", not
986 (HAVE_I387_REGS): Define.
987 (HAVE_SSE_REGS): Undefine.
988 (NUM_FREGS, NUM_REGS, REGISTER_NAMES, FP_REGNUM, SP_REGNUM,
989 PS_REGNUM, PC_REGNUM, FP0_REGNUM, FPC_REGNUM, FPCWD_REGNUM,
990 FPSWD_REGNUM, FPTWD_REGNUM, FPIPO_REGNUM, FPIPS_REGNUM,
991 FPOOS_REGNUM, FPOPS_REGNUM, REGISTER_BYTES, REGISTER_BYTE,
992 REGBYTE_0, REGBYTE_10 REGBYTE_16, REGBYTE_24, REGBYTE_29,
993 REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE,
994 MAX_REGISTER_VIRTUAL_SIZE, REGISTER_CONVERTIBLE): Definitions
996 (i387_to_double, double_to_i387): Declarations deleted.
997 (REGISTER_CONVERT_TO_VIRTUAL, REGISTER_CONVERT_TO_RAW,
998 REGISTER_VIRTUAL_TYPE): Use definitions from
999 config/i386/tm-i386.h, unless LD_I387 is #defined.
1001 * go32-nat.c (go32_fetch_registers, store_register)
1002 (go32_create_inferior, init_go32_ops): Replace fatal with
1004 (sig_map): Map exception 7 to TARGET_SIGNAL_EMT.
1006 * utils.c (notice_quit): Doc fixes.
1008 1999-11-15 Kevin Buettner <kevinb@cygnus.com>
1010 * gdbserver/server.h (initialize_low): Declare this target
1012 * gdbserver/server.c (main): Call initialize_low.
1013 * gdbserver/low-hppabsd.c, gdbserver/low-linux.c,
1014 gdbserver/low-sim.c, gdbserver/low-sparc.c, gdbserver/low-sun3.c
1015 (initialize_low): Renamed from initialize. Also removed
1016 initialization of inferior_pid.
1017 (have_inferior_p): Removed.
1018 * gdbserver/low-lynx.c (initialize_low): New function.
1020 1999-11-12 Fernando Nasser <fnasser@totem.to.cygnus.com>
1022 * remote-rdi.c: Fix indentation accordingly to GNU standards.
1024 1999-11-11 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1026 * breakpoint.h: Export {watch, awatch, rwatch}_command_wrapper().
1028 * breakpoint.c (print_it_typical): Add output for bp_watchpoint,
1029 bp_hardware_watchpoint, read_watchpoint, access_watchpoint cases.
1030 (watchpoint_check): Add output for when the watchpoint goes out of
1032 (mention): Add output for bp_watchpoint, bp_hardware_watchpoint,
1033 read_watchpoint, access_watchpointcases. Move end of list to end
1035 ({watch, awatch, rwatch}_command_wrapper): New functions, to
1036 export {watch, awatch, rwatch}_command().
1038 Thu Oct 28 00:28:51 1999 Andrew Cagney <cagney@b1.cygnus.com>
1040 * d10v-tdep.c (d10v_gdbarch_init): Make the d10v:ts3 the default.
1042 Tue Oct 26 09:57:29 1999 Andrew Cagney <cagney@b1.cygnus.com>
1044 * gdbarch.sh: Re-sync with Cagney's earlier const change.
1046 Sun Oct 24 20:07:31 1999 Andrew Cagney <cagney@b1.cygnus.com>
1048 * d10v-tdep.c (struct gdbarch_tdep): Replace nr_a_regs,
1049 imap0_regnum, nr_imap_regs, dmap0_regnum, with dmap_register and
1051 (R0_REGNUM, LR_REGNUM, PSW_REGNUM, NR_IMAP_REGS, NR_A_REGS):
1053 (TS2_NR_A_REGS, TS2_NR_IMAP_REGS, TS3_NR_IMAP_REGS,
1054 TS3_NR_A_REGS): Delete.
1055 (d10v_ts2_dmap_register, d10v_ts3_dmap_register,
1056 d10v_ts2_imap_register, d10v_ts3_imap_register): New functions.
1057 (d10v_dmap_register, d10v_imap_register,
1058 d10v_ts2_register_sim_regno, d10v_ts3_register_sim_regno,
1060 (remote_d10v_translate_xfer_address): Rewrite. Use
1061 sim_d10v_translate_addr to translate addresses.
1062 (d10v_gdbarch_init): Initialize tdep members dmap_register and
1065 Sun Oct 24 00:12:44 1999 Andrew Cagney <cagney@b1.cygnus.com>
1067 * d10v-tdep.c (struct gdbarch_tdep): Declare.
1068 (NR_IMAP_REGS, NR_DMAP_REGS, A0_REGNUM, NR_A_REGS): Redefine using
1069 value in gdbarch_tdep.
1070 (d10v_dmap_register, d10v_imap_register): Ditto.
1071 (d10v_ts2_register_name, d10v_ts2_register_sim_regno): Rename
1072 d10v_register_name and d10v_register_sim_regno
1073 (enum ts3_regnums, d10v_ts3_register_name,
1074 d10v_ts3_register_sim_regno, d10v_register_sim_regno): New.
1075 (d10v_gdbarch_init): Configure registers and G packet according to
1076 d10v/ts2 and d10v/ts3.
1078 Sat Oct 23 21:28:02 1999 Andrew Cagney <cagney@b1.cygnus.com>
1080 * config/d10v/tm-d10v.h (IMAP0_REGNUM, IMAP1_REGNUM, DMAP_REGNUM):
1082 (R0_REGNUM, LR_REGNUM, PSW_REGNUM, A0_REGNUM): Move from here.
1083 * d10v-tdep.c: To here.
1085 * d10v-tdep.c: (NR_DMAP_REGS, NR_IMAP_REGS, NR_A_REGS): Define.
1086 (d10v_dmap_register, d10v_imap_register): New functions.
1087 (remote_d10v_translate_xfer_address): Make static.
1088 (d10v_register_virtual_size): Use TYPE_LENGTH of
1089 REGISTER_VIRTUAL_TYPE.
1090 (d10v_register_byte, do_d10v_pop_frame,
1091 remote_d10v_translate_xfer_address, show_regs,
1092 d10v_register_raw_size): Ditto.
1093 (d10v_register_virtual_type): Ditto. Use explicitly sized builtin
1096 Sat Oct 23 19:08:39 1999 Andrew Cagney <cagney@b1.cygnus.com>
1098 * d10v-tdep.c: Include "sim-d10v.h".
1099 (enum ts2_regnums): Declare.
1100 (d10v_register_sim_regno): New function.
1102 * config/d10v/tm-d10v.h: Delete pre multi-arch code.
1103 (REGISTER_SIM_REGNO): Define.
1104 (d10v_register_sim_regno): Declare.
1106 Sat Oct 23 16:39:34 1999 Andrew Cagney <cagney@b1.cygnus.com>
1108 * gdbarch.c (initialize_current_architecture): Make ``choice''
1111 Wed Nov 10 16:10:22 1999 Jeffrey A Law (law@cygnus.com)
1113 * hppa-tdep.c (hppa_fix_call_dummy): Fix typo in error message.
1115 Wed Nov 10 16:47:06 1999 Andrew Cagney <cagney@b1.cygnus.com>
1117 * utils.c (error_last_message): Use gdb_file_xstrdup.
1119 * defs.h (verror, internal_verror): Declare.
1121 * utils.c (verror, internal_error): New functions.
1122 (error, internal_error): Use verror / internal_verror.
1123 (error_stream): Use gdb_file_xstrdup. Correctly handle %s in
1125 (error_init): Use mem_fileopen.
1127 * corefile.c (memory_error): Use mem_fileopen instead of
1128 tui_sfileopen. Don't call error_begin.
1129 * varobj.c (c_value_of_variable): Use mem_fileopen () and
1130 gdb_file_xstrdup() instead of strdup and tui_sfileopen.
1131 * remote-sim.c (gdb_os_error): Rewrite using verror. Don't call
1134 Wed Nov 10 14:21:43 1999 Andrew Cagney <cagney@b1.cygnus.com>
1136 * defs.h (gdb_file_xstrdup): New function.
1137 * utils.c (gdb_file_xstrdup, do_gdb_file_xstrdup): Implement.
1138 * ui-out.c (ui_out_stream_new): Simplify, XMALLOC doesn't return
1139 if malloc failed. Use mem_fileopen and gdb_file_xstrdup.
1141 1999-11-09 Stan Shebs <shebs@andros.cygnus.com>
1143 * exec.c (exec_file_attach), irix5-nat.c, osfsolib.c, solib.c
1144 (info_sharedlibrary_command), pa64solib.c
1145 (pa64_sharedlibrary_info_command), somsolib.c
1146 (som_sharedlibrary_info_command): Replace "exec file" with
1147 "executable file" in messages.
1149 1999-11-09 Jim Blandy <jimb@zwingli.cygnus.com>
1151 Finish the job attempted by the previous change.
1152 * stabsread.c (read_range_type): Make n2 and n3 LONGEST. Adjust
1153 the various tests that check for maximum values, bit counts, etc.
1154 In the long run, it might have been simpler just to give GDB bignums.
1156 Tue Nov 9 18:34:13 1999 Andrew Cagney <cagney@amy.cygnus.com>
1158 * defs.h (gdb_file_put): Add parameter write.
1159 (gdb_file_put_method_ftype): New typedef.
1160 * utils.c (gdb_file_put, mem_file_put, tui_file_put,
1161 null_file_put): Update.
1163 * utils.c (struct gdb_file): Add field magic.
1164 (gdb_file_new): Initialize.
1165 (gdb_file_data): Verify.
1167 * utils.c (mem_file_fputs): Delete. Replaced by.
1168 (mem_file_write): New function. Rewrite mem_file.
1169 (mem_file_new): Update.
1171 Tue Nov 9 17:51:12 1999 Andrew Cagney <cagney@b1.cygnus.com>
1173 * remote-sim.c (gdb_os_write_stdout): Use gdb_file_write.
1174 (gdb_os_flush_stdout): Flush gdb_stdtarg instead of gdb_stdout.
1176 Tue Nov 9 15:33:43 1999 Andrew Cagney <cagney@b1.cygnus.com>
1178 * Makefile.in (procfs.o): Don't compile with -Werror for moment.
1179 * sol-thread.c (info_cb): Move assignments to outside of if
1181 (info_cb): Use paddr when printing addresses.
1183 1999-11-08 Jim Blandy <jimb@cygnus.com>
1185 * defs.h (ULONGEST_MAX, LONGEST_MAX): New definitions.
1186 * stabsread.c (read_huge_number): Parse and return LONGEST values.
1188 1999-11-08 Mark Salter <msalter@cygnus.com>
1190 * utils.c (floatformat_to_doublest): Fix conversion of denormals.
1192 1999-11-08 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1194 * breakpoint.c (hbreak_command_wrapper): New function, to export
1196 (thbreak_command_wrapper): New function, to export thbreak_command.
1198 * symtab.c (rbreak_command_wrapper): New function, to export
1201 * breakpoint.h (hbreak_command_wrapper, thbreak_command_wrapper,
1202 rbreak_command_wrapper): Export.
1204 Mon Nov 8 20:14:13 1999 Andrew Cagney <cagney@amy.cygnus.com>
1206 * remote.c (get_memory_read_packet_size): For moment limit read
1208 (putpkt_binary): Remove check on packet size. Allocate ``cnt +
1209 6'' characters for output buffer.
1210 (get_memory_packet_size): When packet size is ``fixed'' and the
1211 size is zero, return MAX_REMOTE_PACKET_SIZE. Check that packets
1212 are at least MIN_REMOTE_PACKET_SIZE.
1213 (set_memory_packet_size): Print usage when ``args'' is NULL.
1215 Mon Nov 8 18:18:07 1999 Andrew Cagney <cagney@b1.cygnus.com>
1217 * defs.h, utils.c (gdb_file_deallocate): Delete.
1218 * varobj.c (varobj_get_type, c_value_of_variable): Use
1219 make_cleanup_gdb_file_delete.
1220 * ui-out.c (ui_out_stream_delete): Use gdb_file_delete.
1221 * corefile.c (memory_error): Use make_cleanup_gdb_file_delete.
1223 * defs.h, utils.c (gdb_file_init_astring): Delete.
1225 * defs.h, utils.c (tui_file_get_strbuf): Rename
1226 gdb_file_get_strbuf.
1227 (tui_file_adjust_strbuf): Rename gdb_file_adjust_strbuf.
1228 * utils.c (error_stream, error_last_message): Update.
1229 * varobj.c (varobj_get_type, c_value_of_variable): Update.
1230 * ui-out.c (ui_out_field_stream): Update.
1232 Mon Nov 8 16:28:00 1999 Andrew Cagney <cagney@b1.cygnus.com>
1234 * defs.h, utils.c (gdb_fclose): Delete.
1235 * defs.h (make_cleanup_gdb_file): Declare.
1236 * utils.c (make_cleanup_gdb_file_delete, do_gdb_file_delete): New
1239 * symmisc.c (maintenance_print_symbols,
1240 maintenance_print_psymbols, maintenance_print_msymbols): Use
1241 make_cleanup_gdb_file_delete.
1242 * serial.c (do_serial_close): Use gdb_file_delete.
1244 Mon Nov 8 14:16:32 1999 Andrew Cagney <cagney@b1.cygnus.com>
1246 * defs.h (gdb_file_write_ftype, set_gdb_file_write,
1247 gdb_file_write): Declare.
1249 * utils.c (struct gdb_file): Add to_write member.
1250 (gdb_file_write, set_gdb_file_write): New functions.
1251 (gdb_file_new): Initialize the write method.
1252 (null_file_write): New function.
1253 (null_file_fputs, null_file_write): ``write'' calls ``fputs'' and
1254 ``fputs'' calls ``write'' when the other is implemented.
1255 (stdio_file_new): Initialize write method.
1256 (stdio_file_write): New function.
1258 * utils.c (putchar_unfiltered, fputc_unfiltered): Use
1261 Thu Nov 4 11:59:24 1999 Andrew Cagney <cagney@b1.cygnus.com>
1263 * remote.c (get_memory_packet_size, set_memory_packet_size,
1264 build_memory_packet_size): New functions. Set / compute / update
1265 the size of a memory read / write packet.
1266 (set_memory_read_packet_size, set_memory_write_packet_size): New
1267 functions. Verify changes to the memory read / write packet size.
1268 (prefered_memory_write_packet_size,
1269 current_memory_write_packet_size, prefered_memory_read_packet_size,
1270 current_memory_read_packet_size): New variables.
1271 (get_memory_read_packet_size, get_memory_write_packet_size): New
1272 functions. Determine the current memory read/write packet size. A
1273 function is needed as ``current_register_packet_size'', a variable
1274 is used in the calculation.
1275 (register_remote_packet_sizes, build_remote_packet_sizes):
1276 Initialize packet sizes according the current architecture.
1277 (remote_fetch_registers, remote_write_bytes, remote_read_bytes,
1278 build_remote_gdbarch_data): Update.
1279 (_initialize_remote): Add the commands ``set remote
1280 memory-read-packet-size'' and ``set remote
1281 memory-write-packet-size''. Deprecate ``set remotepacketsize''.
1283 Sun Nov 7 18:09:54 1999 Andrew Cagney <cagney@b1.cygnus.com>
1285 * target.h, target.c (target_load): Replace macro with a function.
1287 * config/i960/tm-nindy960.h (ADDITIONAL_OPTION_HANDLER): Rewrite
1288 replacing SET_TOP_LEVEL with catch_command_errors.
1289 (nindy_open): Add extern declaration.
1291 * top.h (top_level_val, SET_TOP_LEVEL): Delete.
1292 * defs.h (catch_command_errors_ftype, catch_command_errors): Add
1294 * top.c (struct captured_command_args): Declare.
1295 (do_captured_command, catch_command_errors): New functions. Call
1296 the command function via catch_errors.
1297 (catch_errors): Add more comments.
1299 * main.c (struct captured_main_args): Define.
1300 (captured_main): New. Rewrite main. Replace SET_TOP_LEVEL with
1301 calls to catch_command_errors. Delete calls to do_cleanups which
1302 are now handled by catch_errors. Call the command loop via
1303 captured_command_loop and catch_errors.
1304 (main): Move code body to captured_main. Call captured_main via
1306 (captured_command_loop): New function. Wrap call to command_loop.
1308 1999-11-05 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1310 * procfs.c (unconditionally_kill_inferior) (init_procinfo)
1311 (create_procinfo) (procfs_exit_handler) (proc_set_exec_trap)
1312 (do_attach) (do_detach) (procfs_wait) (set_proc_siginfo)
1313 (procfs_resume) (info_proc_mappings)
1314 (modify_run_on_last_close_flag) (procfs_lwp_creation_handler)
1315 (procfs_thread_alive): Remove unused variables, conditionalize
1316 vars declarations to eliminate compiler warnings.
1318 1999-11-05 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1320 * infcmd.c (print_return_value): Add output for UI.
1322 Fri Nov 5 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>
1324 * inferior.h (CALL_DUMMY_ADDRESS, CALL_DUMMY_START_OFFSET,
1325 CALL_DUMMY_BREAKPOINT_OFFSET, CALL_DUMMY_LENGTH,
1326 CALL_DUMMY_STACK_ADJUST, CALL_DUMMY_WORDS,
1327 SIZEOF_CALL_DUMMY_WORDS, PUSH_DUMMY_FRAME, FIX_CALL_DUMMY,
1328 STORE_STRUCT_RETURN), d10v-tdep.c (print_insn), d30v-tdep.c
1329 (print_insn), target.h (SOFTWARE_SINGLE_STEP): Call internal_error
1332 * utils.c (stdio_file_delete, stdio_file_flush, stdio_file_fputs,
1333 stdio_file_isatty, tui_file_delete, tui_file_isatty,
1334 tui_file_rewind, tui_file_put, gdb_file_init_astring,
1335 gdb_file_get_strbuf, gdb_file_adjust_strbuf): Call internal_error
1338 1999-11-04 Kevin Buettner <kevinb@cygnus.com>
1340 * remote.c (build_remote_gdbarch_data): Set remote_address_size...
1341 (_initialize_remote) ...but don't set it here. Also, tie
1342 remote_address_size to the target architecture via call to
1343 register_gdbarch_swap().
1345 1999-11-04 Jeff Holcomb <jeffh@cygnus.com>
1347 * remote-rdp.c (send_rdp): Fix typo.
1349 1999-11-04 Michael Snyder <msnyder@cleaver.cygnus.com>
1351 * breakpoint.c (commands_command): remove unprotected ref to
1352 args pointer (which may be null).
1354 1999-11-04 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1356 * infcmd.c (print_return_value): New function. Print return value
1357 from finish command.
1358 (finish_command_continuation): Call print_return_value().
1359 (finish_command): Ditto.
1361 1999-11-04 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1363 * breakpoint.c (print_it_typical): Print reason for stopping in
1366 1999-11-04 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1368 * infrun.c (handle_inferior_event): Add calls to print_stop_reason()
1369 for end of stepping range cases.
1370 (print_stop_reason): Add output for END_STEPPING_RANGE, EXITED,
1371 SIGNAL_EXITED, SIGNAL_RECEIVED cases.
1373 * breakpoint.c (print_it_typical): Add printing of stop reason for
1376 Thu Nov 4 17:46:36 1999 Andrew Cagney <cagney@b1.cygnus.com>
1378 * event-loop.c (gdb_do_one_event): Delete SET_TOP_LEVEL call.
1379 Move error code to start_event_loop.
1380 (start_event_loop): Call gdb_do_one_event via catch_errors.
1381 Handle caught errors.
1383 Thu Nov 4 17:36:27 1999 Andrew Cagney <cagney@b1.cygnus.com>
1385 * breakpoint.c (get_number): Delete static declaration.
1387 1999-11-03 Michael Snyder <msnyder@cleaver.cygnus.com>
1389 * breakpoint.c (map_breakpoint_numbers): use a match count
1392 1999-11-03 Nick Clifton <nickc@cygnus.com>
1394 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT): Change to
1397 1999-11-02 Michael Snyder <msnyder@cleaver.cygnus.com>
1399 * target.h (target_new_objfile) replace macro with function pointer
1400 hook. Any module needing notification of new objfiles may claim
1401 this hook. Multiple notification clients must cooperate by saving
1402 the previous pointer (if any) and calling it.
1403 * sol-thread.c (_initialize_sol_thread): point new_objfile hook at
1404 sol_thread_new_objfile. Save old pointer if any.
1405 (sol_thread_new_objfile): call old owner of event hook if any.
1406 * hpux-thread.c (_initialize_hpux_thread, hpux_thread_new_objfile):
1408 * linux-thread.c (_initialize_linux_thread, linux_thread_new_objfile):
1410 symfile.c (symbol_file_add, clear_symtab_users) call the new
1411 function pointer hook, instead of the macro.
1412 * config/sparc/nm-sun4sol2.h: remove define of target_new_objfile.
1413 * config/pa/nm-hppah.h: ditto.
1414 * config/i386/nm-i386sol2.h: ditto.
1415 * config/i386/nm-linux.h: ditto.
1417 1999-11-02 Tom Tromey <tromey@cygnus.com>
1419 * NEWS: Mention breakpoint ranges.
1421 1999-11-02 Fernando Nasser <fnasser@totem.to.cygnus.com>
1423 * rdi-share/devsw.c (openLogFile): Change a call to setlinebuf()
1424 to an equivalent call to setvbuf() to prevent an unresolved
1425 reference when building on cygwin.
1427 1999-11-02 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1429 * infrun.c (inferior_stop_reason): New enum, explicitly name the
1430 resons for which the inferior stops.
1431 (handle_inferior_event): Case TARGET_WAITKIND_EXITED: replace
1432 printf's with call to print_stop_reason(). Case
1433 TARGET_WAITKIND_SIGNALLED: Same. When stopped by random signal:
1435 (print_stop_reason): New static function. Print relevant messages
1438 1999-11-02 Fernando Nasser <fnasser@totem.to.cygnus.com>
1440 * rdi-share/Makefile.in: Rename dependency from bytesex.o to
1443 1999-11-02 Fernando Nasser <fnasser@totem.to.cygnus.com>
1445 * kod.c: Remove prototype for show_kod() which is no longer used.
1447 1999-11-01 Michael Snyder <msnyder@cygnus.com>
1448 Tom Tromey <tromey@cygnus.com>
1450 * tracepoint.h (get_tracepoint_by_number): Updated declaration.
1451 * tracepoint.c (get_tracepoint_by_number): Added `multi_p'
1452 argument. Now uses get_number_or_range and get_number.
1453 (trace_pass_command): Allow a tracepoint range.
1454 * breakpoint.h (get_number, get_number_or_range): Declare.
1455 * breakpoint.c (get_number_trailer): New function.
1456 (get_number): Rewrote to use get_number_trailer.
1457 (get_number_or_range): New function.
1458 (condition_command): Check `get_number' return value.
1459 (commands_command): Likewise.
1460 (ignore_command): Likewise.
1461 (map_breakpoint_numbers): Use get_number_or_range.
1463 1999-11-01 Fernando Nasser <fnasser@totem.to.cygnus.com>
1465 * remote-rdi.c (_initialize_remote_rdi): Make log commands
1466 subcommands of maintenance. Remove improper identation from
1467 command documentation.
1469 1999-11-01 Fernando Nasser <fnasser@totem.to.cygnus.com>
1471 From Grant Edwards <grante@visi.com>:
1472 * rdi-share/etherdrv.c (fetch_ports): Print out additional TCP/IP
1473 port information in ethernet driver if the DEBUG flag is set.
1474 * rdi-share/hostchan.c (Adp_addToQueue): Changed #if statement in
1475 hostchan.c to avoid compiler complaint when DEBUG macro was
1477 * rdi-share/unixcomm.c (Unix_ReadSerial): Print system error code
1478 if read() system call fails.
1480 1999-11-01 Fernando Nasser <fnasser@totem.to.cygnus.com>
1482 * rdi-share/bytesex.h: Deleted. Conflicts with a system header file
1483 on some systems like Linux Red Hat 5.2.
1484 * rdi-share/angel_bytesex.h: New file. Replaces the above.
1485 * rdi-share/bytesex.c: Deleted. Name changed to match the header
1486 mentioned above (this is the implementation file).
1487 * rdi-share/angel_bytesex.c: New file. Replaces the above.
1488 * rdi-share/Makefile.am: Reflect above changes.
1489 * rdi-share/Makefile.in: Reflect above changes.
1491 1999-11-01 Jimmy Guo <guo@cup.hp.com>
1493 * annotate.c (breakpoints_changed, annotate_ignore_count_change,
1494 annotate_stopped): Provide annotation for breakpoint ignore_count
1495 changes but only provide once at annotate_stopped time for
1496 sucessive ignore_count triggered breakpoint changes, to make GUIs
1498 * annotate.h (annotate_ignore_count_change): Declare.
1499 * breakpoint.c (bpstat_stop_status): Call
1500 annotate_ignore_count_change when ignore_count changes.
1502 1999-11-01 Fernando Nasser <fnasser@totem.to.cygnus.com>
1504 From Grant Edwards <grante@visi.com>:
1505 * rdi-share/ardi.c (HandleStoppedMessage): Changed code that
1506 handles the "stop" message so that unrecognized errors are
1507 returned as "Error" rather than "NoError". The old code resulted
1508 in some error conditions not being reported to the user.
1510 1999-11-01 Fernando Nasser <fnasser@totem.to.cygnus.com>
1512 From Grant Edwards <grante@visi.com>:
1513 * remote-rdi.c (arm_rdi_open): Added a call to Adp_CloseDevice()
1514 before attempting to open a connection. This allows the user to
1515 issue the "target rdi" command multiple times (in case the user
1516 needs to change options or re-initialize the link).
1518 1999-11-01 Fernando Nasser <fnasser@totem.to.cygnus.com>
1520 From Grant Edwards <grante@visi.com>:
1521 * rdi-share/endian.h: Deleted. Name clash with
1522 /usr/include/endian.h. This was causing the wrong byte order to
1523 be used by htons() in the RDI Ethernet driver.
1524 * rdi-share/angel_endian.h: New file. Replaces the above.
1525 * rdi-share/ardi.c: Replace include to reflect the above change.
1526 * rdi-share/etherdrv.c: Ditto.
1527 * rdi-share/hsys.c: Ditto.
1528 * rdi-share/msgbuild.c: Ditto.
1529 * rdi-share/params.c: Ditto.
1530 * rdi-share/rx.c: Ditto.
1531 * rdi-share/tx.c: Ditto.
1532 * rdi-share/Makefile.am: Reflect above changes.
1533 * rdi-share/Makefile.in: Reflect above changes.
1535 1999-11-01 Fernando Nasser <fnasser@totem.to.cygnus.com>
1537 From Grant Edwards <grante@visi.com>:
1538 * remote-rdi.c (_initialize_remote_rdi): Added command
1539 rdilogenable. Allows the user to log ADP packets that are
1540 exchanged between gdb and the target. Both the raw packets are
1541 shown and some minimal decoding is attempted. Default state is
1543 (_initialize_remote_rdi): Added command rdilogfile. Allows the
1544 user to specify the filename to which the ADP packet log is to be
1545 written. Default state is "rdi.log".
1546 (rdilogenable_command): New function. Related to rdilogenable.
1547 (rdilogfile_command): New function. Related to rdilogfile.
1548 * rdi-share/devsw.c (openLogFile, closeLogFile,
1549 DevSW_SetLogEnable, DevSW_SetLogfile, dumpPacket): New
1550 functions. Implement logging.
1551 (DevSW_Read): Log if requested.
1552 (DevSW_Write): Log if requested.
1553 * rdi-share/devsw.h: Add prototypes for DevSW_SetLogfile and
1555 * rdi-share/hostchan.c (Adp_SetLogEnable, Adp_SetLogfile): New
1556 functions. Related to rdilogenable and rdilogfile.
1557 * rdi-share/hostchan.h: Add prototypes for the above functions.
1559 1999-11-01 Fernando Nasser <fnasser@totem.to.cygnus.com>
1561 From Grant Edwards <grante@visi.com>:
1562 * remote-rdi.c (arm_rdi_open): Added code to split the arguments
1563 to the 'target rdi' command at the first space. The first word is
1564 passed to Adp_OpenDevice as the device name, the tail is passed as
1565 the "arguments" parameter. This allows user specified baud rates
1566 -- among other things that still need to be documented [e.g. (gdb)
1567 target rdi /dev/ttyS1 19200]. NB: With very limited testing, the
1568 ARM Embedded-ICE seems to run at 19.2K (though it is reported to
1569 be unreliable above 9600), and the EPI Jeeni seems to run at
1572 1999-11-01 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1574 * stack.c (print_frame_info_base): Do not change printing of stack
1575 frame info if not running with our interpreter.
1577 1999-11-01 Fernando Nasser <fnasser@totem.to.cygnus.com>
1579 From Grant Edwards <grante@visi.com>:
1580 * remote-rdi.c (_initialize_remote_rdi): Added the boolean
1581 set/show variable rdiromatzero. Should be set to true if the
1582 target has ROM at address 0. If true, then gdb will not tell the
1583 target to trap fetches to interrupt vectors (which are located at
1584 address 0). Using the Angel monitor, attempting to set
1585 breakpoints in ROM is an error. Using JTAG debugging of the
1586 ARM7TDMI, attempting to set more than two breakpoints in ROM is an
1587 error. Default state is false (vectors will be trapped) -- used to
1590 1999-11-01 Fernando Nasser <fnasser@totem.to.cygnus.com>
1592 From Grant Edwards <grante@visi.com>:
1593 * remote-rdi.c (_initialize_remote_rdi): Added the boolean
1594 set/show variable rdiheartbeat. This enables or disables ADP
1595 link-check "heartbeat" packets sent by the host to the target.
1596 Heartbeat packets can cause both the ARM Embedded-ICE and the EPI
1597 Jeeni to malfunction: If a heartbeat packet is received by the
1598 target while it is sending a packet, that packet will be aborted,
1599 and the ADP protocol engine then gets very confused. Default state
1600 is off -- used to hardwired on.
1602 1999-10-29 Kevin Buettner <kevinb@cygnus.com>
1604 * i386-linux-nat.c (dummy_sse_values): Also define for systems
1605 without PTRACE_GETXFPREGS.
1607 1999-10-29 Jim Blandy <jimb@zwingli.cygnus.com>
1609 Hardware watchpoint fix from Eli Zaretskii <eliz@gnu.org>:
1611 * breakpoint.c (insert_breakpoints): Fetch the value of the
1612 expression we need to watch. If it's a lazy memory lvalue, then
1613 we need to fetch it now, before we start the inferior again.
1614 (insert_breakpoints, remove_breakpoint, bpstat_stop_status,
1615 can_use_hardware_watchpoint): Only those values representing
1616 memory we actually fetched need to be watched.
1618 1999-10-29 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1620 * breakpoint.h (bpstat_print): Return 'enum print_stop_action',
1623 1999-10-29 Jim Blandy <jimb@zwingli.cygnus.com>
1625 * acconfig.h: Fix entries for HAVE_STRUCT_SAVE_STATE_T,
1626 HAVE_STRUCT_MEMBER_SS_WIDE, and HAVE_PTRACE_GETXFPREGS.
1627 * config.h.in: Regenerated.
1629 1999-10-28 Jim Blandy <jimb@zwingli.cygnus.com>
1631 Fixes for warnings from Andreas Jaeger <aj@suse.de>.
1632 * linux-thread.c (linuxthreads_sig_restart,
1633 linuxthreads_sig_cancel, linuxthreads_sig_debug): Add missing
1634 initializers to avoid gcc warnings.
1635 (resume_thread): Add braces as recommended by gcc -Wparentheses.
1636 (stop_thread): Likewise.
1637 (linuxthreads_wait): Likewise.
1638 (linuxthreads_find_trap): Likewise.
1640 1999-10-28 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1642 * infcmd.c: Fix typo.
1644 1999-10-28 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1646 * stack.c (select_frame_command_wrapper): Fix typo.
1648 * infcmd.c (interrupt_target_command_wrapper): Wrapper to allow use of
1649 static interrupt_target_command outside of file.
1651 * stack.c (select_frame_command_wrapper): Wrapper to allow use of
1652 static select_frame_command outside of file.
1654 1999-10-28 Jim Blandy <jimb@cygnus.com>
1656 * gdbtypes.c (init_simd_type): The upper bound to
1657 create_range_type is inclusive, not exclusive.
1659 Add preliminary support for the Pentium-III's Streaming SIMD
1660 Extensions --- specifically, the ability to read the XMM
1662 * Configure.in: Check for PTRACE_GETXFPREGS, and #define
1663 HAVE_PTRACE_GETXFPREGS if we have it.
1664 * acconfig.h: Add entry for HAVE_PTRACE_GETXFPREGS.
1665 * configure, config.in: Regenerated.
1666 * config/i386/tm-linux.h (HAVE_SSE_REGS): #define, iff the
1667 configure script #defined HAVE_PTRACE_GETXFPREGS.
1668 (REGISTER_VIRTUAL_TYPE): Provide the proper types for the pointer
1669 registers and the SSE registers.
1670 * i386-linux-nat.c (GETREGS_SUPPLIES, GETFPREGS_SUPPLIES,
1671 GETXFPREGS_SUPPLIES): New macros.
1672 (have_ptrace_getxfpregs): New variable.
1673 (FPREGSET_T_FPREG_ADDR): Renamed from FPREGSET_T_FPREG_OFFSET.
1674 (supply_fpregset, convert_to_fpregset): Callers changed.
1675 (supply_xfpregset, convert_to_xfpregset, fetch_xfpregs,
1676 store_xfpregs, dummy_sse_values): New functions.
1677 (fetch_inferior_registers, store_inferior_registers): Use the
1678 *_SUPPLIES macros to decide how to fetch a given register. Use
1679 {fetch,store}_xfpregs and dummy_sse_values to provide access to
1680 the SSE registers, on systems where they are present.
1682 1999-10-28 Kevin Buettner <kevinb@cygnus.com>
1684 * gdbserver/gdbreplay.c (config.h, errno.h): Include.
1685 (perror_with_name): Don't declare sys_nerr, sys_errlist, or errno
1686 when STDC_HEADERS is defined.
1687 * gdbserver/utils.c (STDC_HEADERS): Likewise.
1689 * gdbserver/low-hppabsd.c, gdbserver/low-linux.c,
1690 gdbserver/low-lynx.c, gdbserver/low-sim.c, gdbserver/low-sparc.c,
1691 gdbserver/low-sun3.c (my_registers): Declare.
1692 (registers): Changed from array type to pointer type in order
1693 to match declaration in inferior.h in main gdb sources.
1694 * gdbserver/server.h (registers): Likewise.
1695 * gdbserver/remote-utils.c (outreg): Removed declaration of
1698 * gdbserver/low-linux.c (fetch_register): Changed PTRACE_PEEKUSR to
1699 PTRACE_PEEKUSER. [Note the missing 'E'.]
1700 (store_inferior_registers): Likewise for PTRACE_POKEUSER.
1702 * gdbserver/low-linux.c (sys/ptrace.h): Move include to
1703 avoid conflict with #defines coming from <sys/user.h>.
1704 (sys/reg.h): Only include when HAVE_SYS_REG_H is defined.
1705 (PTRACE_XFER_TYPE): Provide a default type in case
1706 the target doesn't define it.
1707 (fetch_register, read_inferior_memory, write_inferior_memory):
1708 Use PTRACE_XFER_TYPE instead of int for ptrace() transfers.
1709 (I386_GNULINUX_TARGET): Use #ifdef with this symbol instead
1710 of assuming it's an x86 target when it's not a m68k target.
1711 (i386_register_raw_size, i386_register_byte): Define these arrays
1712 to match other changes that've been occuring to the x86 target
1713 in the main gdb sources.
1714 (initialize_arch): New (static) function for doing target arch
1715 specific initializations.
1717 * gdbserver/server.h (MAXBUFBYTES, PBUFSIZ): New defines
1718 [actually stolen from remote.c].
1719 * gdbserver/remote-utils.c (putpkt): Use PBUFSIZ to make
1720 sure that buffer is big enough.
1721 * gdbserver/server.c (main): Ditto.
1723 * gdbserver/remote-utils.c (outreg): Allow register numbers
1725 (prepare_resume_reply): Provide alternate mechanism,
1726 GDBSERVER_RESUME_REGS, for defining list of registers to send
1728 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Swapped order of
1729 INCLUDE_CFLAGS and BFD_CFLAGS to ensure that gdb's config.h
1730 gets found before bfd's config.h. Also added -DGDBSERVER
1732 (INCLUDE_CFLAGS): Added -I.. .
1734 1999-10-27 Nick Clifton <nickc@cygnus.com>
1736 * arm-tdep.c (THUMB_BE_BREAKPOINT): Change to 0xbebe.
1737 (THUMB_LE_BREAKPOINT): Change to 0xbebe.
1739 1999-10-25 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1741 * stack.c (print_frame_info_base): Don't print the arguments
1743 * stack.c (print_frame_info_base): When setting source to 0, save
1744 and restore old value. Do this only if source is greater than
1747 Mon Oct 25 18:22:06 1999 Andrew Cagney <cagney@b1.cygnus.com>
1749 * remote.c: Document future of compare_sections_command.
1750 (remote_insert_breakpoint, remote_remove_breakpoint,
1751 remote_insert_watchpoint, remote_insert_watchpoint,
1752 remote_remove_watchpoint, remote_insert_hw_breakpoint,
1753 remote_remove_hw_breakpoint): Use alloca instead of GCC's dynamic
1756 Mon Oct 25 18:08:31 1999 Andrew Cagney <cagney@b1.cygnus.com>
1758 * gdbarch.h (REGISTER_GDBARCH_SWAP): Define.
1759 * gdbarch.sh: Update.
1761 Sat Oct 23 16:39:34 1999 Andrew Cagney <cagney@b1.cygnus.com>
1763 * gdbarch.c (initialize_current_architecture): Make ``choice''
1766 1999-10-22 Tom Tromey <tromey@cygnus.com>
1768 * gdbarch.sh: Updated for gdbarch.[ch] changes.
1769 * top.c (gdb_init): Call initialize_current_architecture.
1770 * gdbarch.h (initialize_current_architecture): Declare.
1771 * gdbarch.c (initialize_current_architecture): New function.
1773 1999-10-22 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1775 * stack.c (print_frame_info_base): Check for value of source
1776 parameter equal to 2, and print address anyway. Set source to 0
1777 later, to avoid printing file & line info again.
1779 1999-10-21 Michael Snyder <msnyder@cleaver.cygnus.com>
1781 * utils.c (chars_per_line): fix typo in comment.
1783 1999-10-21 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1785 * breakpoint.h (bp_print_how): New enum, used for deciding how to
1786 print bpstat information when we stop, instead of having 3
1787 different functions.
1788 (struct bpstat): Change print_it field to be an enum instead of a
1791 * breakpoint.c (print_it_typical): New name for print_it_normal().
1792 (print_bp_stop_message): New function. High level routine for
1793 printing of why we stopped.
1794 (bpstat_print): Call print_bp_stop_message instead of using the
1795 print_it function pointer.
1796 (print_it_done, print_it_noop): Delete these functions.
1798 1999-10-21 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1800 * breakpoint.c (print_it_normal): Reorganize into a switch
1803 1999-10-21 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1805 * Makefile.in (event-top.o): Add dependency on target.h.
1806 * event-top.c: Make dependency on target.h explicit.
1808 * breakpoint.c (bpstat_print): Clean up logic. Remove recursion.
1809 (catch_exec_command_1): Surround with appropriate ifdef's,
1810 to avoid compiler warnings.
1811 (catch_fork_command_1): Ditto.
1813 1999-10-20 Jim Blandy <jimb@cygnus.com>
1815 * Makefile.in (dwarf2read.o): Note that this depends on bfd/elf-bfd.h.
1816 (elf_bfd_h): New variable.
1818 1999-10-19 Jim Blandy <jimb@cygnus.com>
1820 * config/i386/tm-i386.h (REGISTER_NAMES): Change names of FPU
1821 instruction and operand pointer registers to improve consistency,
1822 following J. T. Conklin's suggestions.
1824 1999-10-18 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1826 * stack.c (print_frame_info_base): Add printing of list
1829 * breakpoint.h: Change return type of field print_it of struct
1830 bpstats to enumeration print_stop_action.
1831 Define new enumeration print_stop_action.
1833 * breakpoint.c (print_it_normal): Change return type to
1834 enumeration type print_stop_action. Handle bp_shlib_event here
1835 instead of in normal_stop().
1836 (bpstat_print): Change return type to enumeration type
1838 (print_it_done): Ditto.
1839 (print_it_noop): Ditto.
1841 * infrun.c (is_internal_shlib_eventpoint): Delete this function.
1842 (stopped_for_internal_shlib_event): Delete.
1843 (normal_stop): Move logic to handle bp_shlib_event from here to
1844 print_it_normal(). Use switch to handle return value from
1847 Mon Oct 18 17:32:51 1999 Andrew Cagney <cagney@b1.cygnus.com>
1849 * symfile.c (generic_load): Rewrite. Make the size of each
1850 chunk/block write a run-time option. Check for quit_flag.
1851 Use target_write_memory_partial for downloads.
1853 1999-10-18 Jim Blandy <jimb@cygnus.com>
1855 Change Linux x86 register support to use the new tm-i386.h layout.
1856 * config/i386/tm-linux.h (HAVE_I387_REGS): #define this, so we get
1857 the full set of FP register definitions from tm-i386.h.
1858 (REGISTER_RAW_SIZE, REGISTER_NAMES, REGISTER_BYTES, REGISTER_BYTE,
1859 MAX_REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE, NUM_REGS,
1860 NUM_FREGS): Remove #undefs and subsequent redefinitions: we're
1861 using the values from tm-i386.h now.
1862 (FPSTART_REGNUM, FPCONTROL_REGNUM, FPSTATUS_REGNUM, FPTAG_REGNUM,
1863 FPDATA_REGNUM, FPEND_REGNUM, FPENV_BYTES, FPREG_RAW_SIZE,
1864 FPREG_BYTES): Deleted.
1865 (TARGET_LONG_DOUBLE_BIT): Deleted.
1866 (REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
1867 REGISTER_CONVERT_TO_RAW): Redefine these only if LD_I387 is #defined.
1868 * i386-linux-nat.c (convert_to_gregset, convert_to_fpregset,
1869 FPREGSET_T_FPREG_OFFSET): New functions and macros.
1870 (supply_gregset, fill_gregset, supply_fpregset,
1871 fill_fpregset, fetch_fpregs, store_fpregs, fetch_regs,
1872 store_regs, fetch_inferior_registers, store_inferior_registers):
1873 Adjusted to use new macros from tm-i386.h.
1875 * config/i386/tm-i386.h: Provide a decent x86 FPU description here,
1876 so that the various i386 targets can share more FPU handling code.
1877 (NUM_GREGS): New macro.
1878 (NUM_SSE_REGS): New macro, dependent on HAVE_SSE_REGS
1879 (NUM_FREGS): Depend on HAVE_I387_REGS.
1880 (NUM_REGS, REGISTER_BYTES): Define in terms of NUM_GREGS,
1881 NUM_FREGS, and NUM_SSE_REGS.
1882 (MAX_NUM_REGS): New macro.
1883 (REGISTER_NAMES): Expand name list with FPU control registers and
1885 (FP7_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM, FCS_REGNUM,
1886 FCOFF_REGNUM, FDS_REGNUM, FDOFF_REGNUM, FOP_REGNUM,
1887 FIRST_FPU_CTRL_REGNUM, LAST_FPU_CTRL_REGNUM): New macros, more
1888 fully describing the FPU register set.
1889 (XMM0_REGNUM, XMM7_REGNUM, MXCSR_REGNUM): New macros, describing
1890 the SSE register set.
1891 (IS_FP_REGNUM, IS_SSE_REGNUM, FPU_REG_RAW_SIZE, SIZEOF_GREGS,
1892 SIZEOF_FPU_REGS, SIZEOF_FPU_CTRL_REGS, SIZEOF_SSE_REGS): New
1894 (REGISTER_BYTE, REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Turn
1895 these into tables, since the register sizes are pretty irregular.
1896 (i386_register_byte, i386_register_raw_size,
1897 i386_register_virtual_size): New extern declarations.
1898 (TARGET_LONG_DOUBLE_BIT): Define.
1899 (MAX_REGISTER_RAW_SIZE): Bump to 16, for the SSE registers.
1900 (REGISTER_VIRTUAL_TYPE, REGISTER_CONVERTIBLE,
1901 REGISTER_CONVERT_TO_VIRTUAL, REGISTER_CONVERT_TO_RAW): New macros
1902 for handling floating-point registers.
1903 (i387_to_double, double_to_i387): New extern declarations.
1904 * i386-tdep.c (i386_register_byte, i386_register_raw_size,
1905 i386_register_virtual_size): New arrays.
1906 (_initialize_i386_tdep): Initialize i386_register_byte and
1907 i386_register_virtual_size.
1909 * i386-tdep.c (_initialize_i386_tdep): Move new_cmd to a block
1910 created specially for its use.
1912 Mon Oct 18 23:36:58 1999 Andrew Cagney <cagney@b1.cygnus.com>
1914 * symfile.c (generic_load): Cleanup the validate code - remove
1915 #ifdef, use paddr to print address.
1916 (validate_download): Static, replace VALIDATE_DOWNLOAD
1918 * symfile.c (generic_load): Use strtoul to scan the optional load
1919 offset. Allocate a filename of the correct size.
1921 Mon Oct 18 17:32:51 1999 Andrew Cagney <cagney@b1.cygnus.com>
1923 * symfile.c (generic_load): Don't filter output. Use
1924 print_transfer_performance for summary. Use paddr for addresses.
1925 (print_transfer_performance): New function. Includes write count.
1926 (report_transfer_performance): Call
1927 print_transfer_performance. Deprecate.
1929 * defs.h (print_transfer_performance): Add declaration.
1930 (generic_load): Move declaration to here.
1931 * symfile.h (generic_load): From here.
1933 Mon Oct 18 16:29:52 1999 Andrew Cagney <cagney@amy.cygnus.com>
1935 * remote.c (remote_write_bytes): Re-write. Transfer a single
1936 packet and then return the that packets byte size.
1938 Sun Oct 17 15:09:00 1999 Andrew Cagney <cagney@b1.cygnus.com>
1940 * remote.c (remote_console_output): Flush gdb_stdtarg after
1941 processing an ``O'' packet.
1942 * remote.h (remote_console_output): Strip PARAMS.
1944 Sun Oct 17 15:12:33 1999 Andrew Cagney <cagney@b1.cygnus.com>
1946 * target.c (target_xfer_memory_partial): New function. Simple
1947 implementation of partial memory reads.
1948 (target_read_memory_partial): New function. Replaces old
1949 target_read_memory_partial.
1950 (target_write_memory_partial): New function.
1953 * valprint.c (partial_memory_read): New function, based on old
1954 memory_read_partial. Implement partial memory reads the way that
1955 val_print_string likes.
1956 (val_print_string): Use partial_memory_read.
1958 Sun Oct 17 13:58:56 1999 Andrew Cagney <cagney@b1.cygnus.com>
1960 * defs.h (ui_load_progress_hook): Add declaration.
1961 * dsrec.c (ui_load_progress_hook): Delete extern declaration.
1963 * symfile.c (ui_load_progress_hook): Make first argument const.
1964 (generic_load): Don't cast the result of bfd_get_section_name.
1965 Replace ``sect'' with ``sect_name'', use consistently.
1967 1999-10-15 Jim Blandy <jimb@cygnus.com>
1969 Add beginnings of support for SIMD register types.
1970 * gdbtypes.c (init_simd_type): New function for building
1971 types for registers consisting of arrays of objects.
1972 (builtin_type_v4sf): New built-in type.
1973 (build_gdbtypes): Initialize it.
1974 (_initialize_gdbtypes): Arrange for gdbarch swapping.
1975 * gdbtypes.h (builtin_type_v4sf): Add external decl.
1977 Fri Oct 15 18:20:33 1999 Andrew Cagney <cagney@b1.cygnus.com>
1979 * remote-hms.c: Commented out H8 code.
1981 Fri Oct 15 17:46:39 1999 Andrew Cagney <cagney@b1.cygnus.com>
1983 * dcache.c (dcache_p): Rename variable remote_dcache. Make
1985 (_initialize_dcache): Fix description of ``set remotecache''.
1986 Cache is OFF by default.
1988 1999-10-13 Jim Blandy <jimb@cygnus.com>
1990 * valops.c (value_push): Don't forget to initialize container_len.
1992 Wed Oct 13 17:58:20 1999 Andrew Cagney <cagney@b1.cygnus.com>
1994 * utils.c (tui_file_flush): Don't call flush_hook. Don't try to
1996 * gdb-events.sh: Update
1997 * top.c (flush_hook): Delete.
1999 1999-10-13 Kevin Buettner <kevinb@cygnus.com>
2001 * mem-break.c (memory_insert_breakpoint,
2002 memory_remove_breakpoint): Added missing return statements.
2004 Wed Oct 13 20:53:42 1999 Andrew Cagney <cagney@b1.cygnus.com>
2006 * utils.c (mem_fileopen, mem_file_delete, mem_file_new,
2007 mem_file_rewind, mem_file_put, mem_file_fputs): New functions.
2008 * defs.h (mem_fileopen): Declare.
2010 1999-10-13 Kevin Buettner <kevinb@cygnus.com>
2012 * mem-break.c (default_memory_insert_breakpoint): Renamed from
2013 memory_insert_breakpoint.
2014 (default_memory_remove_breakpoint): Renamed from
2015 memory_remove_breakpoint.
2016 (memory_insert_breakpoint, memory_remove_breakpoint,
2017 MEMORY_INSERT_BREAKPOINT, MEMORY_REMOVE_BREAKPOINT): New
2019 * target.h (default_memory_remove_breakpoint,
2020 default_memory_insert_breakpoint): Added declarations.
2021 * gdbarch.sh (MEMORY_INSERT_BREAKPOINT, MEMORY_REMOVE_BREAKPOINT):
2023 * gdbarch.h, gdbarch.c (MEMORY_INSERT_BREAKPOINT,
2024 MEMORY_REMOVE_BREAKPOINT, gdbarch_memory_insert_breakpoint,
2025 gdbarch_memory_remove_breakpoint, set_gdbarch_memory_insert_breakpoint,
2026 set_gdbarch_memory_remove_breakpoint) : Generated from gdbarch.sh.
2028 Wed Oct 13 19:15:51 1999 Andrew Cagney <cagney@b1.cygnus.com>
2030 * defs.h: Remove PARAMS from all declarations. Re-indent. Clean
2031 up the gdb_file declarations.
2033 Tue Oct 12 12:19:07 1999 David Taylor <taylor@texas.cygnus.com>
2035 * i386-linux-nat.c (supply_fpregset, fill_fpregset): copy
2036 from/to start of fpregsetp not start of st_space as the first
2037 stuff we copy is the FP control registers not the actual FP values.
2039 1999-10-12 Fernando Nasser <fnasser@totem.to.cygnus.com>
2041 * eval.c (evaluate_subexp_standard): Fix gdb invocation of
2042 inferior C functions when debugging C++ code.
2043 * valops.c (find_overload_match): Ditto.
2044 * symtab.c (make_symbol_overload_list): Ditto.
2046 1999-10-11 Jim Blandy <jimb@zwingli.cygnus.com>
2048 * config/pa/tm-hppa.h (SYMBOLS_CAN_START_WITH_DOLLAR): It's not
2049 enough to #define this; you have to give it a non-zero value.
2051 1999-10-11 Jim Blandy <jimb@cygnus.com>
2053 Fix from Jim Kingdon <kingdon@redhat.com>, with tweaks to make it
2054 gdbarch- and bigendian-friendly:
2055 * valops.c (PARM_BOUNDARY): If not #defined, default to zero.
2056 (value_push): If PARM_BOUNDARY is not zero, align arguments to
2058 * config/i386/tm-i386.h: Define PARM_BOUNDARY.
2060 Mon Oct 11 14:23:55 1999 Fred Fish <fnf@cygnus.com>
2062 * config/mips/tm-irix3.h (PS_REGNUM): Don't undef if we aren't
2063 going to redefine it to something else.
2065 1999-10-11 Jason Merrill <jason@yorick.cygnus.com>
2067 * dwarfread.c (read_func_scope): Don't try to set main_func_*;
2068 we handle that in blockframe.c:inside_main_func.
2069 * dwarf2read.c (read_func_scope): Likewise.
2070 (dwarf2_add_field, dwarf2_add_member_fn): Get member function name
2071 directly, not from mangled name.
2072 (skip_member_fn_name): Lose.
2074 Mon Oct 11 12:24:52 1999 Andrew Cagney <cagney@b1.cygnus.com>
2076 * serial.h (enum serial_rc): Clarify SERIAL_TIMEOUT and
2077 restrictions on TIMEOUT in ASYNC mode.
2079 * serial.c (serial_readchar): Check for invalid timeout when in
2080 async mode. Disable test.
2082 Thu Oct 7 17:20:01 1999 Andrew Cagney <cagney@amy.cygnus.com>
2084 * monitor.c (monitor_printable_string): Add length argument. Don't
2085 return final string length.
2086 (monitor_printf_noecho, monitor_printf, monitor_expect): Update.
2087 (monitor_error): Pass real_len to monitor_printable_string.
2088 (monitor_error): Rewrite. Replace printf fmt string parameter with
2089 function name and message parameters.
2090 (monitor_read_memory_single, monitor_read_memory): Update.
2092 1999-10-07 Stan Shebs <shebs@andros.cygnus.com>
2094 * main.c (print_gdb_help): Fix bug reporting address.
2095 * gnu-regex.h, gnu-regex.c: Ditto.
2097 1999-10-07 Jim Blandy <jimb@zwingli.cygnus.com>
2099 * parse.c (SYMBOLS_CAN_START_WITH_DOLLAR): New macro,
2100 whose value can be overridden by target files.
2101 (write_dollar_variable): Don't check the symbol table for
2102 identifiers beginning with `$' unless
2103 SYMBOLS_CAN_START_WITH_DOLLAR is non-zero.
2104 * config/pa/tm-hppa.h (SYMBOLS_CAN_START_WITH_DOLLAR): Define.
2105 * doc/gdbint.texinfo (SYMBOLS_CAN_START_WITH_DOLLAR): Document.
2107 Remove all traces of the BINOP_SCOPE operator. It's never
2108 generated, and not implemented.
2109 * expression.h (enum exp_opcode): Delete BINOP_SCOPE.
2110 * c-lang.c (c_op_print_tab): Delete entry for BINOP_SCOPE.
2111 * eval.c (evaluate_subexp_standard): Doc fix.
2112 * expprint.c (op_name): Remove case for BINOP_SCOPE.
2113 (dump_subexp): Same.
2115 * dwarf2read.c (dwarf2_const_value): Treat DW_FORM_data1,
2116 DW_FORM_data2, DW_FORM_data4, and DW_FORM_data8 as signed values,
2117 since that's what read_var_value will do anyway.
2119 1999-10-07 Fred Fish <fnf@cygnus.com>
2121 * objfiles.h (struct objfile): Delete is_solib member, now handled
2122 by OBJF_SHARED bit in struct objfile's flags.
2123 * objfiles.c (objfile_purge_solibs): Check OBJF_SHARED bit in flags
2124 instead of old is_solib int member in objfile struct.
2126 * objfiles.c (allocate_objfile): Remove is_solib arg. Now passed
2127 as a bit in combined flags arg.
2128 * symfile.c (symbol_file_add): Ditto.
2129 * objfiles.h (allocate_objfile): Adjust prototype after removal
2131 * symtab.h (symbol_file_add): Ditto.
2133 * cxux-nat.c (add_shared_symbol_files): Remove zero passed to
2134 symbol_file_add in old is_solib arg, defaults to zero now in
2136 * irix5-nat.c (symbol_add_stub): Ditto.
2137 * remote-mm.c (mm_load): Ditto.
2138 * remote-udi.c (udi_load): Ditto.
2139 * remote-vx.c (vx_add_symbols): Ditto.
2140 * symfile.c (symbol_file_command): Ditto.
2141 (add_symbol_file_command): Ditto.
2143 * coff-solib.c (coff_solib_add): Call symbol_file_add with
2144 OBJF_SHARED in flags bit, rather than 1 in old is_solib
2146 * osfsolib.c (symbol_add_stub): Ditto.
2147 * pa64solib.c (pa64_solib_add_solib_objfile): Ditto.
2148 * solib.c (symbol_add_stub): Ditto.
2149 * somsolib.c (som_solib_add_solib_objfile): Ditto.
2150 * win32-nat.c (handle_load_dll): Ditto.
2152 * objfiles.c (allocate_objfile): Remove old args "mapped" and
2153 "user_loaded". Replaced with new arg "flags" containing specific
2154 If global var mapped_symbol_files is nonzero
2155 then set OBJF_MAPPED in flags arg. Check for OBJF_MAPPED bit in
2156 flags where we used to check mapped arg.
2157 Pass flags to open_mapped_file instead of mapped arg.
2158 Ensure that OBJF_MAPPED bit is reset in flags when the objfile
2159 is not mapped. Add passed flags bits to objfile's flags bits.
2160 (open_mapped_file): Replace "mapped" arg with new "flags" arg.
2161 Adjust prototype. Pass flags to open_existing_mapped_file.
2162 (open_existing_mapped_file): Replace "mapped" arg with new "flags".
2163 Check flags for OBJF_MAPPED.
2164 * objfiles.h (allocate_objfile): Adjust prototype.
2165 * rs6000-nat.c (add_vmap): Pass zero for combined flags, rather
2166 than separate zero ints for old "mapped" and "user_loaded" flags.
2167 * symfile.c (symbol_file_add): Pass allocate_objfile combined flags
2168 rather than individual mapped and user loaded bits.
2170 * symfile.c (symbol_file_add): Delete user_loaded arg.
2171 * symtab.h (symbol_file_add): Adjust prototype for deleted
2173 * objfiles.h (struct objfile): Delete user_loaded member.
2174 (OBJF_USERLOADED): New flag bit to replace user_loaded.
2176 * symfile.c (symbol_file_command): Add OBJF_USER_LOADED to flags
2177 passed to symbol_file_add. Delete previous passing of explicit 1
2179 (add_symbol_file_command): Ditto.
2181 * coff-solib.c (coff_solib_add): No longer pass zero for user loaded,
2182 now defaults to zero in flags.
2183 * cxux-nat.c (add_shared_symbol_files): Ditto.
2184 * irix5-nat.c (symbol_add_stub): Ditto.
2185 * osfsolib.c (symbol_add_stub): Ditto.
2186 * remote-mm.c (mm_load): Ditto.
2187 * pa64solib.c (pa64_solib_add_solib_objfile): Ditto.
2188 * remote-udi.c (udi_load): Ditto.
2189 * remote-vx.c (vx_add_symbols): Ditto.
2190 * solib.c (symbol_add_stub): Ditto.
2191 * somsolib.c (som_solib_add_solib_objfile): Ditto.
2192 * win32-nat.c (handle_load_dll): Ditto.
2194 Thu Oct 7 19:24:05 1999 Andrew Cagney <cagney@b1.cygnus.com>
2196 * Makefile.in (monitor.o): Allow monitor.o to be compiled with
2199 * monitor.c (monitor_debug_p): New variable. Replaces macro.
2200 (EXTRA_RDEBUG): Delete. Update all uses.
2201 (monitor_debug): New function. Replaces macro.
2202 (RDEBUG): Delete macro. Update all uses.
2203 debug output to gdb_stdlog and not the console.
2205 * monitor.c: Fix printf formating. Replace printf calls with
2208 1999-10-06 Stan Shebs <shebs@andros.cygnus.com>
2210 * MAINTAINERS: Switch ARM target maintenance from Elena
2211 Zannoni to Jim Ingham.
2213 1999-10-06 Frank Ch. Eigler <fche@cygnus.com>
2215 * remote.c (hexnumnstr): New function. Allow setting of width.
2216 (hexnumstr): Call the above.
2217 (remote_write_bytes): Fill in X-protocol address field more
2220 1999-10-06 Fred Fish <fnf@cygnus.com>
2222 * xcoffread.c (xcoff_symfile_offsets): Fix typo, addr->addrs.
2224 1999-10-06 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2226 * remote.c (handle_remote_sigint_twice): Make this signal be
2227 handled by inferior_event_handler, via the wrapper function.
2228 (async_remote_interrupt_twice): Make not static. Add debug print.
2229 * remote.h (async_remote_interrupt_twice): Export for use in
2232 * inf-loop.c (inferior_event_handler_wrapper): New function.
2233 (inferior_event_handler): Handle a request to quit and kill the
2236 * inf-loop.h (inferior_event_handler_wrapper): Export.
2238 1999-10-04 James Ingham <jingham@leda.cygnus.com>
2240 * remote-rdi.c (arm_rdi_open): If the angel_RDI_Open fails, close
2241 the serial port and raise an error. If you try to go on, you will
2242 stall forever down in the rdi-share code.
2244 1999-10-04 Fernando Nasser <fnasser@totem.to.cygnus.com>
2246 * printcmd.c (output_command): Makes sure result from the output
2247 command is printed before the next prompt.
2249 1999-10-04 Fernando Nasser <fnasser@totem.to.cygnus.com>
2251 * printcmd.c (print_formatted): Add missing stream parameter.
2252 (do_examine, print_command_1, output_command, do_one_display):
2253 Adjust call to print_formatted().
2255 1999-10-04 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2257 * infcmd.c: Remove include of event-loop.h.
2261 * infrun.c (fetch_inferior_event): Call inferior_event_handler
2262 when inferior stops, instead of doing work ourselves.
2263 (fetch_inferior_event): Use void* instead of gdb_client_data.
2264 Remove includes of event-top.h and event-loop.h. Add include of
2266 (complete_execution): Move from here.
2268 * inf-loop.c (complete_execution): To here.
2269 (inferior_event_handler): Handle inferior's execution completion
2271 * inf-loop.h: Add def of INF_LOOP_H.
2273 * event-top.h: Don't use gdb_client_data, use void*, to avoid
2274 dependency on event-loop.h.
2276 * remote.c (remote_async_resume): Set target_executing only after we
2277 actually register the inferior with the event loop.
2279 1999-10-04 Fernando Nasser <fnasser@totem.to.cygnus.com>
2281 * corefile.c (memory_error): Use error_stream() and eliminate call
2282 to return_to_top_level().
2284 1999-10-04 Fernando Nasser <fnasser@totem.to.cygnus.com>
2286 * utils.c (error): Save error message text (w/o new line).
2287 (error_last_message): New function. Returns the last message
2289 (error_init): New function. Initializes error handling machinery.
2290 (error_stream): New function. Allows the error message to be
2291 passed on a stream buffer.
2292 * defs.h: Add prototypes for error_stream() and
2293 error_last_message().
2294 * main.c (main): Add call to error_init().
2296 1999-10-04 Fernando Nasser <fnasser@totem.to.cygnus.com>
2298 * varobj.c (varobj_get_type): Call tui_sfileopen() instead of
2299 deprecated gdb_file_init_astream().
2300 (c_value_of_variable): Ditto.
2301 * ui-out.c (ui_out_stream_new): Ditto.
2303 1999-10-04 Fernando Nasser <fnasser@totem.to.cygnus.com>
2305 * utils.c (tui_sfileopen): New function. Replaces
2306 gdb_file_init_astring().
2307 * defs.h: Add prototype for the above.
2309 Mon Oct 4 19:25:55 1999 Andrew Cagney <cagney@b1.cygnus.com>
2311 * symfile.c (add_symbol_file_command): Fix -Wformat on query call.
2313 1999-10-01 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2315 * target.c (cleanup_target): Type of to_async param is now
2316 function with enum inferior_event_type param.
2318 * target.h (target_ops): Adjust to_async accordingly. Move enum
2319 inferior_event_type to this file. Don't have a typedef for
2320 inferior_event_type. Add more enumeration constants INF_QUIT_REQ,
2321 INF_EXEC_COMPLETE. Remove INF_SIGINT_FIRST, INF_SIGINT_SECOND.
2323 * inf-loop.c (inferior_event_handler): Change first param to tell
2324 the type of event we are dealing with. Deal with INF_ERROR and
2325 INF_REG_EVENT, for the moment.
2328 * inf-loop.h (inferior_event_handler): Adjust prototype. Remove
2329 enum inferior_event_type from here.
2331 * remote.c (remote_async_serial_handler): Pass INF_REG_EVENT to
2332 the client callback.
2333 (remote_async): Change callback's param type to inferior_event_type.
2334 (async_client_callback): Change type as above.
2336 1999-10-01 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2338 * event-top.c (stdin_event_handler): Delete fd parameter, use
2340 * event-top.h (stdin_event_handler): Delete fd parameter.
2342 * inf-loop.c (inferior_event_handler): Delete fd parameter. Use
2343 target_async() to unregister the inferior fd in case of errors.
2344 * inf-loop.h(inferior_event_handler): Delete fd parameter.
2346 * ser-unix.c (fd_event): Delete fd parameter. Use scb->fd,
2349 * remote.c (async_client_callback): Delete fd parameter.
2350 (remote_async_serial_handler): Ditto.
2351 (remote_async): Adjust to new type of callback function.
2353 * target.c (cleanup_target): Adjust parameters for to_async
2355 * target.h (*to_async): Delete fd parameter from cb function.
2357 * event-loop.h (handler_func): Delete fd parameter.
2358 * event-loop.c (handle_file_event): Delete fd param from call to
2359 proc. Do not include inferior.h.
2361 1999-10-01 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2363 * event-loop.c (inferior_event_handler,
2364 inferior_event_handler_wrapper): Move from here.
2365 * inf-loop.c: To here. New file.
2367 * event-loop.h (inferior_event_handler): Move from here.
2368 * inf-loop.h: To here. New file.
2370 * remote.c: Include inf-loop.h.
2371 (set_extende_protocol): Remove unused prototpye.
2373 * Makefile.in (SFILES): Add inf-loop.c.
2374 (inf_loop_h): Define.
2375 (COMMON_OBS): Add inf-loop.o.
2376 (inf-loop.o): Add rule.
2377 (remote.o): Add dependency on inf-loop.h.
2379 Fri Oct 1 19:59:31 1999 Andrew Cagney <cagney@b1.cygnus.com>
2381 * ser-unix.c: Add some notes on how the async code works.
2383 Fri Oct 1 01:45:32 1999 Jeffrey A Law (law@cygnus.com)
2385 * somread.c (som_symfile_offsets): Fix typo in last change.
2387 1999-09-30 Fred Fish <fnf@cygnus.com>
2389 * coff-solib.c (coff_solib_add): Adjust call to symbol_file_add.
2390 * cxux-nat.c (add_shared_symbol_files): Ditto.
2391 * irix5-nat.c (symbol_add_stub): Ditto.
2392 * osfsolib.c (symbol_add_stub): Ditto.
2393 * pa64solib.c (pa64_solib_add_solib_objfile): Ditto.
2394 * remote-mm.c (mm_load): Ditto.
2395 * remote-udi.c (udi_load): Ditto.
2396 * remote-vx.c (vx_add_symbols): Ditto.
2397 * solib.c (symbol_add_stub): Ditto.
2398 * somsolib.c (som_solib_add_solib_objfile): Ditto.
2399 * win32-nat.c (handle_load_dll): Ditto.
2401 * irix5-nat.c (symbol_add_stub): Add section_addrs, zero it.
2402 * cxux-nat.c (add_shared_symbol_files): Ditto.
2403 * osfsolib.c (symbol_add_stub): Ditto.
2404 * pa64solib.c (pa64_solib_add_solib_objfile): Ditto.
2405 * solib.c (symbol_add_stub): Ditto.
2406 * somsolib.c (som_solib_add_solib_objfile): Ditto.
2407 * symfile.c (symbol_file_command): Ditto.
2408 * win32-nat.c (handle_load_dll): Ditto.
2410 * irix5-nat.c (symbol_add_stub): Use section_addrs to pass text addr.
2411 * cxux-nat.c (add_shared_symbol_files): Ditto.
2412 * osfsolib.c (symbol_add_stub): Ditto.
2413 * pa64solib.c (pa64_solib_add_solib_objfile): Ditto.
2414 * solib.c (symbol_add_stub): Ditto.
2415 * somsolib.c (som_solib_add_solib_objfile): Ditto.
2416 * symfile.c (symbol_file_command): Ditto.
2417 * win32-nat.c (handle_load_dll): Ditto.
2419 * coff-solib.c (coff_solib_add): Call symbol_file_add with NULL ptr.
2420 * cxux-nat.c (add_shared_symbol_files): Ditto.
2421 * remote-udi.c (udi_load): Ditto.
2422 * remote-vx.c (vx_add_symbols): Ditto.
2423 * symfile.c (symbol_file_command): Ditto.
2425 * dstread.c (dst_symfile_offsets): Take "section_addr_info *"
2426 instead of CORE_ADDR.
2427 * somread.c (som_symfile_offsets): Ditto.
2428 * symfile.c (default_symfile_offsets): Ditto.
2429 * xcoffread.c (xcoff_symfile_offsets): Ditto.
2431 * symfile.h (default_symfile_offsets): Adjust prototype.
2432 (syms_from_objfile): Ditto.
2433 * symtab.h (symbol_file_add): Ditto.
2435 * rs6000-nat.c (objfile_symbol_add): Call syms_from_objfile with NULL.
2436 * xcoffsolib.c (solib_add): Ditto.
2437 * gdb-stabs.h (SECT_OFF_MAX): Increase from 4 to 16.
2438 * symtab.h (MAX_SECTIONS): Define.
2439 (struct section_addr_info): New struct for better control over
2440 changing load addresses of sections.
2441 * objfiles.h (OBJF_READNOW): Add new flag bit.
2442 * symfile.h (sym_offsets): Change second param from CORE_ADDR to
2443 "section_addr_info *".
2445 * symfile.c (symbol_file_add): Replace scalar arg "CORE_ADDR addr"
2446 with "struct section_addr_info *addrs".
2447 (syms_from_objfile): Ditto.
2448 (add_symbol_file_command): Remove local variables "readnow" and
2449 "mapped". Replaced with general "flags" variable.
2450 (symbol_file_command): Ditto.
2451 (add_symbol_file_command): Add local variables i, sec_num, argcnt,
2452 expecting_option, option_index, and opt. Rework option parsing code
2453 to handle additional options.
2454 (_initialize_symfile): Adjust add-symbol-file usage to match new
2456 (symbol_file_add): Remove parameters "mapped" and "readnow",
2457 replace with general "flags".
2458 (symbol_file_add): In call to allocate_objfile, replace "mapped"
2459 with extracted OBJF_MAPPED bit from flags.
2460 (symbol_file_add): Use OBJF_READNOW bit from flags, instead of
2462 (symbol_file_command): Set OBJF_MAPPED and OBJF_READNOW bits
2463 from parsed options. Pass flags to symbol_file_add.
2464 (add_symbol_file_command): Ditto.
2465 (syms_from_objfile): Add local variables i, sect, lower_sect,
2466 lower_offset, and local_addr. Substitute local_addr for addrs
2467 when addrs is NULL. Find lowest loadable section to be used as
2468 starting point for contiguous sections. Adjust offsets if segments
2469 are not contiguous. Call sym_offsets with section_addr_info
2470 instead of single addr.
2471 (default_symfile_offsets): Initialize objfile's section_offsets
2472 with user specified offsets.
2473 (symbol_file_add): Call syms_from_objfile with offsets.
2474 (unknown_option_complaint): Add.
2475 (add_symbol_file_command): Add "section_addrs", zero it with memset.
2477 1999-09-30 Jason Molenda (jsm@bugshack.cygnus.com)
2479 * configure.in: Call config.sub explicitly instead of misusing the
2480 autoconf internal variable $ac_config_sub.
2481 * configure: Regenerated.
2483 Thu Sep 30 15:53:59 1999 Andrew Cagney <cagney@b1.cygnus.com>
2485 * remote.c (readchar): When EOF mourn the inferior.
2486 (getpkt): Try QUIT. Might not be a watchdog timer timeout.
2487 (remote_async_serial_handler): Pass ``-1'' as the dummy FD. Safer
2490 * serial.h (enum serial_rc): Replace #define SERIAL_ERROR,
2491 SERIAL_TIMEOUT and SERIAL_EOF.
2492 (struct _serial_t): Add more notes on termios specific fields.
2494 * ser-unix.c (generic_readchar): Make SERIAL_ERROR sticky.
2495 (do_hardwire_readchar, do_unix_readchar): Don't use bufcnt as a
2496 tempoary for the return-value from read.
2498 * serial.c (serial_logchar): Add a stream parameter.
2499 (serial_readchar, serial_write, serial_send_break): Update.
2500 (serial_readchar): Add serial debug trace.
2502 Thu Sep 30 12:07:03 1999 Andrew Cagney <cagney@b1.cygnus.com>
2504 * serial.h (struct _serial_t): Add field async_state. Better
2505 document field bufcnt.
2506 (SERIAL_ERROR): Delete comment about errno.
2507 * serial.c (serial_open, serial_fdopen): Initialize async_state.
2509 * ser-unix.c (push_event, fd_event, reschedule): New functions.
2510 Handle ASYNC serial input.
2511 (ser_unix_async): Update.
2512 (generic_readchar): New function. Handle event scheduling. Make
2513 EOF condition sticky.
2514 (do_unix_readchar): Rename ser_unix_readchar.
2515 (ser_unix_readchar): New function, call do_unix_readchar via
2517 (do_hardwire_readchar, hardwire_readchar): Ditto.
2519 * ser-unix.c (ser_unix_readchar): Delete code working around ASYNC
2521 (hardwire_readchar): Delete code working around ASYNC fifo bugs.
2523 Wed Sep 29 21:27:16 1999 Jeffrey A Law (law@cygnus.com)
2525 * breakpoint.c (insert_breakpoints): Addresses are CORE_ADDRs,
2527 (remove_breakpoint): Likewise.
2529 1999-09-29 Fred Fish <fnf@cygnus.com>
2531 * breakpoint.c (breakpoint_1): Replace cast "(CORE_ADDR) - 1"
2532 with the more obviously intended expression "(CORE_ADDR) -1".
2533 * dwarf2read.c (scan_partial_symbols, read_file_scope): Ditto.
2534 * gnu-nat.c (gnu_create_inferior): Ditto.
2535 * go32-nat.c (go32_create_inferior): Ditto.
2536 * hppa-tdep.c (hppa_pop_frame): Ditto.
2537 * infcmd.c (continue_command, step_1, signal_command): Ditto.
2538 (until_next_command, finish_command): Ditto.
2539 * infrun.c (proceed): Ditto.
2540 * inftarg.c (child_create_inferior): Ditto.
2541 * m3-nat.c (m3_create_inferior): Ditto.
2542 * mac-nat.c (child_create_inferior): Ditto.
2543 * procfs.c (procfs_create_inferior): Ditto.
2544 * remote-sim.c (gdbsim_create_inferior): Ditto.
2545 * target.c (target_link): Ditto.
2546 * win32-nat.c (child_create_inferior): Ditto.
2547 * varobj.c (varobj_create, new_root_variable): Ditto.
2549 Thu Sep 30 10:36:19 1999 Andrew Cagney <cagney@b1.cygnus.com>
2551 * ser-unix.c (ser_unix_flush_input): New function. Discard input
2553 (hardwire_flush_input): Use ser_unix_flush_input.
2554 (ser_unix_nop_flush_input): Delete.
2555 * ser-unix.h (ser_unix_flush_input): Update.
2556 ser-tcp.c (_initialize_ser_tcp), ser-pipe.c
2557 (_initialize_ser_pipe): Update.
2559 * ser-unix.c (hardwire_write): Delete.
2560 (_initialize_ser_hardwire): Update, use ser_unix_write.
2562 Thu Sep 30 10:16:50 1999 Andrew Cagney <cagney@b1.cygnus.com>
2564 * ser-pipe.c (pipe_open): Don't make the FD non-blocking. Already
2565 being handled in ser_unix_wait_for by a select.
2567 Thu Sep 30 10:00:32 1999 Andrew Cagney <cagney@b1.cygnus.com>
2569 * serial.h (struct _serial_t): Add field debug_p.
2570 (SERIAL_DEBUG, SERIAL_DEBUG_P): Define.
2572 * serial.c (serial_open, serial_fdopen): Initialize debug_p.
2573 (serial_debug, serial_debug_p): New functions.
2574 (global_serial_debug_p): New variable.
2575 (_initialize_serial): Add ``set serialdebug'' command.
2577 Thu Sep 30 09:09:38 1999 Andrew Cagney <cagney@b1.cygnus.com>
2579 * serial.h (serial_event_ftype): Replace FD and ERROR args with
2581 * ser-unix.c (ser_unix_event): Update.
2583 * remote.c (remote_async_serial_handler): New function. Handle
2585 (remote_async): Pass remote_async_serial_handler to SERIAL.
2586 (async_client_callback, async_client_context): New variables.
2588 * remote.c (extended_remote_async_create_inferior): Use
2589 target_async to register the inferior event handler.
2591 Thu Sep 30 00:02:03 1999 Andrew Cagney <cagney@b1.cygnus.com>
2593 * configure.in (AC_CHECK_FUNCS): Test for sigprocmask.
2594 * configure, config.in: Re-generate.
2595 * event-top.c (async_stop_sig): Use sigprocmask when available.
2597 1999-09-29 Doug Evans <devans@casey.cygnus.com>
2599 * sh-stub.c (handle_exception): Fix typo in patch of 1999-08-26.
2600 * m68k-stub.c (handle_exception): Ditto.
2602 1999-09-28 Fred Fish <fnf@cygnus.com>
2604 * alpha-nat.c (alpha_osf_core_fns, alpha_elf_core_fns):
2605 Add default entries for check_format and core_sniffer.
2606 * core-aout.c (aout_core_fns): Ditto.
2607 * core-regset.c (regset_core_fns): Ditto.
2608 * core-sol2.c (solaris_core_fns): Ditto.
2609 * i386aix-nat.c (i386aix_core_fns): Ditto.
2610 * i386mach-nat.c (i386mach_core_fns): Ditto.
2611 * irix4-nat.c (irix4_core_fns): Ditto.
2612 * irix5-nat.c (irix5_core_fns): Ditto.
2613 * lynx-nat.c (lynx_core_fns): Ditto.
2614 * mips-nat.c (mips_core_fns): Ditto.
2615 * ns32knbsd-nat.c (nat_core_fns): Ditto.
2616 * rs6000-nat.c (rs6000_core_fns): Ditto.
2617 * sparc-nat.c (sparc_core_fns): Ditto.
2618 * sun-nat.c (sun3_core_fns): Ditto.
2619 * ultra3-nat.c (ultra3_core_fns): Ditto.
2621 * corelow.c (core_vec): New, for selected core file handler.
2622 (sniff_core_bfd): New function.
2623 (gdb_check_format): New function.
2624 (default_check_format): New function.
2625 (default_core_sniffer): New function.
2626 (sniff_core_bfd): New function.
2627 (core_close): Reset core_vec to NULL.
2628 (core_open): Fall back to gdb_check_format if bfd_check_format
2629 does not identify the file format. Call sniff_core_bfd to pick
2630 a core file handler.
2631 (get_core_registers): Remove code that is now in sniff_core_bfd.
2632 Use current core_vec.
2634 * gdbcore.h (check_format): New core_fns function, points to function
2635 to try and identify a core file format.
2636 (core_sniffer): New core_fns function, points to function to select
2637 a specific handler for the selected core file format.
2638 (default_core_sniffer): Add prototype.
2639 (default_check_format): Add prototype.
2641 * i960-tdep.c (inferior.h): Include.
2642 * mips-tdep.c (read_next_frame_reg): Use ADDR_BITS_REMOVE
2643 on addresses pulled from stack.
2645 1999-09-29 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2647 * event-loop.c (poll_timers): Check whether the timer list has any
2648 element on it by looking at the first element pointer, instead of
2651 Wed Sep 29 18:02:31 1999 Andrew Cagney <cagney@amy.cygnus.com>
2653 * command.c: Attempt to include POSIX <sys/wait.h> before
2656 * ser-unix.c (hardwire_print_tty_state): Ditto.
2657 * inflow.c (child_terminal_info): Fix printf args.
2659 1999-09-28 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2661 * remote.c (remote_async_resume): Register the inferior with the
2663 (remote_async_open_1): Don't put the target in async mode here,
2664 just do it when executing.
2666 * infrun.c (complete_execution): Unregister the inferior from the
2669 * event-top.c (async_disable_stdin): Don't add
2670 async_enable_stdin() to the exec_cleanups chain.
2672 Tue Sep 28 11:08:34 1999 Jeffrey A Law (law@cygnus.com)
2674 * hppa-tdep.c (hppa_fix_call_dummy): Ignore IMPORT_SHLIB stubs
2675 except for hpux11 native. Break out of the loop to find a
2676 stub as soon as we find an IMPORT stub.
2677 (skip_prologue_hard_way): Also recognize copy %ret1,target and
2678 all PA64 argument stores as prologue instructions.
2680 1999-09-28 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2682 * breakpoint.c, defs.h, event-top.c, infcmd.c, infrun.c, main.c,
2683 remote.c, top.c, tracepoint.c, utils.c (async_p): Change var name
2686 1999-09-28 Jim Blandy <jimb@cygnus.com>
2688 * hppa-tdep.c (skip_prologue_hard_way): Recognize ldo insns
2689 which generate pointers into the argument list.
2691 Tue Sep 28 13:56:49 1999 Andrew Cagney <cagney@b1.cygnus.com>
2693 * remote.h (cleanup_sigint_signal_handler,
2694 initialize_sigint_signal_handler): Delete extern declarations.
2695 * event-top.c, infrun.c: No longer need to include "remote.h".
2696 * remote.c (cleanup_sigint_signal_handler,
2697 initialize_sigint_signal_handler): Make static.
2698 * Makefile.in (event-top.o): Delete dependency on "remote.h".
2700 * remote.c (remote_async_terminal_ours_p): New static global. Keep
2701 track of who currently owns the terminal.
2702 (remote_async_open_1): Initialize.
2703 (remote_async_terminal_inferior): Test
2704 remote_async_terminal_ours_p. Claim CNTRL-C handler as part of
2705 transfering the terminal to the target.
2706 (remote_async_terminal_ours): Similar.
2708 Mon Sep 27 12:33:45 1999 Andrew Cagney <cagney@b1.cygnus.com>
2710 * remote.c (async_interrupt_query): Delete function. Merged into
2711 interrupt_query. Async cases handled by target_terminal_ours,
2712 target_terminal_inferior and SERIAL_CLOSE.
2713 (async_remote_interrupt_twice): Update.
2714 (remote_async_terminal_ours, remote_async_terminal_inferior): New
2715 functions. Steal STDIN from GDB's CLI.
2716 (init_remote_async_ops): Initialize to_terminal_ours and
2717 to_terminal_inferior.
2719 * event-top.c (async_disable_stdin, async_disable_stdin): Use
2720 target_terminal_ours / target_terminal_inferior to transfer
2721 ownership of the terminal between GDB and the target.
2723 1999-09-27 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2725 * infcmd.c (run_command): Call async_disable_stdin() only if
2726 dealing with an asynchronous target.
2728 Mon Sep 27 11:48:38 1999 Andrew Cagney <cagney@b1.cygnus.com>
2730 * target.h (struct target_ops): Add to_can_async_p, to_is_async_p,
2731 to_async. Delete to_has_async. These correspond well with
2732 SERIAL* async methods.
2733 (target_can_async_p, target_is_async_p, target_async): Define.
2734 * target.c (update_current_target, cleanup_target): Update.
2736 * remote.c (remote_async_open_1): Change target to async using
2738 (remote_can_async_p, remote_is_async_p, remote_async): New
2740 (remote_async_wait, remote_async_open_1): Add FIXME about how
2741 wait_forever_enabled_p can almost be deleted once the client can
2742 enable/disable target_async.
2744 * breakpoint.c (until_break_command), infrun.c (proceed), infcmd.c
2745 (run_command, continue_command, step_1, jump_command,
2746 until_command, finish_command, interrupt_target_command), top.c
2747 (return_to_top_level, execute_command), event-top.c
2748 (command_handler): Replace target_has_async with
2751 Sun Sep 26 02:10:47 1999 Andrew Cagney <cagney@b1.cygnus.com>
2753 * remote.c (remote_async_open_1): If we go into async mode, never
2756 * infcmd.c: Include "event-top.h".
2757 (run_command, continue_command, jump_command, until_command,
2758 finish_command): Use async_disable_stdin to disable the console
2759 for synchronous commands.
2761 * remote.c (async_interrupt_query): Only disconnect the console
2762 from the terminal when sync_execution.
2764 * remote.c (initialize_sigint_signal_handler): Move declaration
2766 * remote.h: To here. Make non-static.
2768 * remote.c (remote_async_resume, async_interrupt_query): Move
2769 prompt code from here.
2770 * event-top.c (async_disable_stdin, async_enable_stdin): To
2773 * infrun.c (start_remote): Delete commented out code.
2775 Fri Sep 24 12:38:31 1999 Andrew Cagney <cagney@b1.cygnus.com>
2777 * remote.c (remote_async_open_1): Perform the initial async_open
2778 using only synchronous calls. Only after the target is fully
2779 connected, switch to async mode. Include FIXME about now it
2780 currently works VS how it should be working.
2781 (remote_async_open_1, set_extended_protocol): Delete function
2782 set_extended_protocol. All open communication is now done
2784 (forever_enabled_p): New variable. Determine if remote_async_wait
2785 should block FOREVER when fetching target information.
2786 (remote_cisco_open, remote_open_1): Set forever_enabled_p.
2788 * infrun.c (start_remote): During the initial connect, always use
2791 Sat Sep 25 18:13:38 1999 Andrew Cagney <cagney@b1.cygnus.com>
2793 * Makefile.in (event-top.o): Add dependency.
2794 * event-top.c: Include "remote.h".
2795 * remote.c (async_interrupt_query), event-top.c:
2796 (async_enable_stdin): Pass dummy parameter to
2797 cleanup_sigint_signal_handler.
2798 * remote.c (cleanup_sigint_signal_handler), remote.h
2799 (cleanup_sigint_signal_handler), event-top.c (async_enable_stdin),
2800 event-top.h (async_enable_stdin): Change signature to match
2801 make_exec_error_cleanup handler pararameter.
2803 Thu Sep 23 20:48:22 1999 Andrew Cagney <cagney@b1.cygnus.com>
2805 * defs.h (enum command_class): Move from here.
2806 * command.h (command_class): To here.
2808 1999-09-24 Kevin Buettner <kevinb@cygnus.com>
2809 * breakpoint.c (bpstat_stop_status): Use not_a_breakpoint to
2810 help properly set bp_addr.
2811 * infrun.c (handle_inferior_event): Simplify calls to
2814 1999-09-24 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2816 * top.c (return_to_top_level): Do exec_error cleanups if are
2817 interrupting a simulated synchronous execution command.
2819 * infrun.c (start_remote): Create a cleanup to enable stdin in
2820 case of error from this command.
2821 (complete_execution): Do the enabling of stdin via the exec_error
2822 cleanups, when needed.
2824 * remote.c (remote_async_resume): Make sure we re-enable stdin in
2825 case of error from the target.
2826 (handle_remote_sigint_twice): The handler to be set is
2827 async_remote_interrupt_twice, not async_remote_interrupt.
2828 (async_remote_interrupt_twice): Don't do anything if the target
2829 has been killed already. Call async_interrupt_query, instead of
2831 (async_interrupt_query): New function. Async case of
2834 * event-top.c (async_enable_stdin): New function. Reinstate stdin
2835 with the event loop.
2836 * event-top.h (async_enable_stdin): Export.
2838 * utils.c (exec_error_cleanup_chain): New cleanup chain.
2839 (make_exec_error_cleanup, do_exec_error_cleanups,
2840 discard_exec_error_cleanups): New functions.
2841 * defs.h (make_exec_error_cleanup, do_exec_error_cleanups,
2842 discard_exec_error_cleanups): Export.
2844 1999-09-24 Jim Blandy <jimb@zwingli.cygnus.com>
2846 * ax-gdb.c (expr_to_agent): Don't forget to pass argument to
2849 1999-09-24 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2851 * event-loop.c (fetch_inferior_event_wrapper): New
2852 function. Wrapper to pass to catch_errors.
2853 (inferior_event_handler): Pop the target if things go bad with it.
2854 Call fetch_inferior_event() from within catch_errors().
2856 1999-09-24 Jim Blandy <jimb@zwingli.cygnus.com>
2858 * ax-gdb.c: Use internal_error instead of error, where
2861 1999-09-23 James Ingham <jingham@leda.cygnus.com>
2863 * target.c (target_resize_to_sections): New function. Gather the
2864 resizing code for the to_sections field into one place, and make
2865 sure you update the other targets that are sharing the to_sections
2867 * target.h: Declare the target_resize_to_sections function.
2868 * solib.c (solib_add): use target_resize_to_sections.
2869 * somsolib.c (som_solib_load_symbols): ditto
2870 * rs6000-nat.c (xcoff_relocate_core): ditto
2871 * pa64solib.c (pa64_solib_load_symbols): ditto
2872 * irix5-nat.c (solib_add):ditto
2874 * top.c: Define the attach & detach hooks
2875 * defs.h: Declare the attach & detach hooks.
2876 * infcmd.c (attach_command): call the attach hook if it exists.
2877 (detach_command): call the detach hook if it exists.
2879 * complaints.c (complain): Send the complaints to stderr rather
2880 than stdout, so they don't get mixed into the result stream from
2883 1999-09-23 Fernando Nasser <fnasser@totem.to.cygnus.com>
2885 * varobj.c (varobj_set_value): Fix handling of baseclasses and
2886 correct the behavior when it is not a baseclass (both cases were
2889 1999-09-23 Fernando Nasser <fnasser@totem.to.cygnus.com>
2891 * varobj.c (varobj_update): Fix setting of child error field.
2893 1999-09-23 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2895 * event-loop.c (poll_timers): Use correct timeval field names,
2896 when setting the notifier timeouts, in case of select() used.
2897 (gdb_wait_for_event): Pass a pointer to the timeout structure to
2898 select(), not the structure.
2900 1999-09-23 Fernando Nasser <fnasser@totem.to.cygnus.com>
2902 * varobj.c (varobj_gen_name): Dynamically allocate variable object
2904 (varobj_update): Fix creation of result list.
2906 Wed Sep 22 10:35:32 1999 Andrew Cagney <cagney@b1.cygnus.com>
2908 * Makefile.in (init.c): Change generated file to include "defs.h"
2909 and "call-cmds.h". Use initialize_file_ftype when declaring
2910 each initialize functions.
2911 (call_cmds_h): Add definition.
2912 (init.o): Add target and dependencies.
2913 (init.c): Don't grep for _initialize* in init.c.
2915 * defs.h (initialize_file_ftype): Add function typedef.
2917 1999-09-22 Michael Snyder <msnyder@cleaver.cygnus.com>
2919 * procfs.c (init_procinfo): move fltset initialization to caller.
2920 (do_attach, create_procinfo): initialize fltset.
2922 1999-09-22 Fernando Nasser <fnasser@totem.to.cygnus.com>
2924 * varobj.c (_initialize_varobj): Rename varobjdebug to debugvarobj
2925 to avoid conflict with "set var".
2927 1999-09-22 Fernando Nasser <fnasser@totem.to.cygnus.com>
2929 * varobj.c (varobj_get_type, c_value_of_variable): Remove
2930 dependency on ui_out.[ch].
2932 1999-09-22 Fernando Nasser <fnasser@totem.to.cygnus.com>
2934 * varobj.c (varobj_update): Fix order in which changed variables
2935 are reported to match that of the old code.
2937 1999-09-22 Fernando Nasser <fnasser@totem.to.cygnus.com>
2939 * varobj.c (type_changeable): Fix for testsuite case 2.12. Do not
2940 report as changed a structure when one of it's children has changed.
2941 (get_type, get_type_deref): Remove uneeded initialization.
2943 1999-09-22 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2945 * event-loop.c, event-top.c, event-loop.h: Rerun indent.
2947 1999-09-21 Doug Evans <devans@casey.cygnus.com>
2949 * m32r-stub.c (handle_exception): Fix typo in patch of 1999-08-26.
2951 1999-09-21 Fernando Nasser <fnasser@totem.to.cygnus.com>
2953 * varobj.c (_initialize_varobj): Add set/show for varobjdebug.
2954 (uninstall_variable): Test for varobjdebug before printing trace
2955 and send it to gdb_stdlog.
2957 1999-09-21 Fernando Nasser <fnasser@totem.to.cygnus.com>
2959 * varobj.c (c_type_of_child): Fix missing break, improve comment
2961 (c_number_of_children): Add comment.
2963 Tue Sep 21 14:55:29 1999 Andrew Cagney <cagney@b1.cygnus.com>
2965 From 1999-08-20 J.T. Conklin <jtc@redback.com>:
2966 * remote.c (read_frame): expand cisco run-length encoding variant
2967 inline as is done for the standard encoding.
2968 (remote_cisco_expand): Removed.
2970 1999-09-20 Fernando Nasser <fnasser@totem.to.cygnus.com>
2972 * varobj.c (varobj_update): Test for illegal invocation for
2973 non-root variable object.
2975 1999-09-20 Fernando Nasser <fnasser@totem.to.cygnus.com>
2977 * varobj.c (my_value_equal): Style. Eliminate side-effects.
2978 (varobj_update): Adjust calls to reflect the above change.
2980 1999-09-20 Fernando Nasser <fnasser@totem.to.cygnus.com>
2982 * varobj.c (c_value_of_variable): Fix return value for struct
2983 members when parent is a invalid pointer.
2985 1999-09-20 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2987 * event-loop.c: Include <sys/time.h>.
2989 1999-09-20 Fernando Nasser <fnasser@totem.to.cygnus.com>
2991 * varobj.c (cplus_number_of_children): Coding style improvement.
2992 (cplus_value_of_child): Ditto.
2994 1999-09-20 Fernando Nasser <fnasser@totem.to.cygnus.com>
2996 * varobj.c (c_name_of_child): Add missing default clause in switch
2998 (c_type_of_child): Ditto.
2999 (varobj_set_value): Test for NULL type.
3001 1999-09-20 Fernando Nasser <fnasser@totem.to.cygnus.com>
3003 * varobj.c (varobj_set_value): Wrap call to evaluate_expression.
3005 1999-09-20 Fernando Nasser <fnasser@totem.to.cygnus.com>
3007 * varobj.c (format_string[]): Remove unused variable(s).
3008 (varobj_set_value): Ditto.
3009 (c_value_of_root): Ditto.
3010 (cplus_value_of_child): Ditto.
3012 1999-09-20 Fernando Nasser <fnasser@totem.to.cygnus.com>
3014 * varobj.c: Add missing header file include.
3015 (new_variable, new_root_variable): Fix prototype and header.
3016 (_initialize_varobj): Add prototype.
3018 1999-09-20 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
3020 * ser-ocd.c: (ser_ocd_open, ser_ocd_raw, ser_ocd_readchar,
3021 ser_ocd_setbaudrate, ser_ocd_write, ser_ocd_close,
3022 ser_ocd_get_tty_state, ser_ocd_set_tty_state): Remove unused
3024 (ocd_readremote): Remove.
3025 (ocd_write): Remove unused var 'c'.
3027 1999-09-20 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
3029 * event-top.c (change_line_handler): Cleanup dead code. Add comments.
3030 * event-loop.c: Cleanup #if 0 code.
3032 * event-loop.h (timer_handler_func): New function type.
3033 (create_timer): Export function.
3034 (delete_timer): Export function.
3036 * event-loop.c: Add timeout and timeout_valid fields to
3037 gdb_notifier. New structures gdb_timer and timer_list.
3038 (gdb_do_one_event): Check whether there are any timers tht are
3039 ready, before going to wait.
3040 (gdb_wait_for_event): If the timeout structure is meaningful, pass
3041 that to select()/poll().
3042 (create_timer): New function. Creates a timer.
3043 (delete_timer): New function. Deletes a timer.
3044 (handle_timer_event): New function. Deals with timers that are ready.
3045 (poll_timers): New Function. Chack whether timers have expired.
3047 Mon Sep 20 17:00:06 1999 Andrew Cagney <cagney@b1.cygnus.com>
3049 * remote.c (getpkt, putpkt, remote_console_output): Move
3050 declaration from here.
3051 * remote.h: To here. New file.
3052 * tracepoint.c(putpkt, getpkt, remote_console_output): Delete
3053 declarations. Moved to "remote.h".
3054 * Makefile.in (remote_h): Define.
3055 * remote.c, tracepoint.c: Include "remote.h".
3056 * Makefile.in (tracepoint.o, remote.o): Add dependency on
3059 * remote.h (remote_cisco_objfile_relocate,
3060 cleanup_sigint_signal_handler): Add declaration. Include FIXME.
3061 * infrun.c: Include "remote.h".
3062 (complete_execution): Delete local extern declaration
3063 of ``cleanup_sigint_signal_handler''.
3064 * Makefile.in (infrun.o): Add dependency on remote.h.
3066 Mon Sep 20 16:15:29 1999 Andrew Cagney <cagney@b1.cygnus.com>
3068 * ui-out.h (ui_out_test_flags): Add missing declaration.
3070 Mon Sep 20 13:41:04 1999 Andrew Cagney <cagney@b1.cygnus.com>
3072 * kod.c (ecos_kod_open, ecos_kod_request, ecos_kod_close,
3073 cisco_kod_open, cisco_kod_request, cisco_kod_close): Move
3074 declarations from here.
3075 * kod.h: To here. New file.
3076 * kod-cisco.c, kod.c: Include "kod.h".
3077 * Makefile.in (kod-cisco.o, kod.o): Add dependency on "kod.h".
3079 * kod.h (kod_display_callback_ftype, kod_query_callback_ftype):
3081 * kod.h (kod_cisco_open): Use in declaration.
3082 * kod.c (gdb_kod_open): Update definition.
3083 * kod-cisco.c (cisco_kod_open): Update definition.
3085 Mon Sep 20 12:13:27 1999 Andrew Cagney <cagney@b1.cygnus.com>
3087 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
3089 * breakpoint.c (until_break_command_continuation): Add
3090 declaration. Make static.
3091 * event-top.c (rl_callback_read_char_wrapper): Ditto.
3093 Mon Sep 20 10:54:19 1999 Andrew Cagney <cagney@b1.cygnus.com>
3095 * Makefile.in (varobj.o): Disable warnings. Currently
3098 Fri Sep 17 19:28:17 1999 Andrew Cagney <cagney@b1.cygnus.com>
3100 * source.c: Include "source.h".
3101 (open_source_file, find_source_lines): Move declaration from here.
3102 * source.h: New file. To here.
3103 * Makefile.in (source.o): Add dependency on source.h.
3105 * breakpoints.c (delete_command): Move declaration from here.
3106 * breakpoints.h (delete_command): To here.
3108 1999-09-18 Jim Blandy <jimb@cygnus.com>
3110 * hppa-tdep.c (in_solib_call_trampoline): If we can't recognize
3111 the instruction we're at, we're not in a stub.
3113 Sat Sep 18 07:13:03 1999 Jeffrey A Law (law@cygnus.com)
3115 * dwarf2read.c (dwarf_decode_lines): Correctly handle
3116 DW_LNS_const_add_pc.
3118 1999-09-18 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
3120 * remote.c (remote_async_open_1): Use inferior_event_handler to
3121 handle inferior events.
3122 (extended_remote_async_create_inferior): Ditto.
3124 * serial.h (serial_event_ftype): Add two pars.
3126 * ser-unix.c (ser_unix_event): Add two parameters, error and fd.
3127 Pass those into the call to the actual inferior event handler.
3129 * infrun.c (complete_execution): Stdin handler is stdin_event_handler.
3131 * event-top.h (stdin_event_handler): Export new function.
3133 * event-top.c (stdin_event_handler): New function. Smarter handler
3134 for events on stdin.
3135 (change_line_handler): Don't need to update the handler for stdin
3137 (_initialize_event_loop): Stdin handler is now stdin_event_handler.
3139 * event-loop.h: (handler_func): Change signature, adding two new
3141 (sig_handler_func): New function type. It is the old handler_func.
3142 (create_async_signal_handler): Update to use sig_handler_func.
3143 (delete_async_signal_handler): Prototype for new function.
3145 * event-loop.c: Include "inferior.h".
3146 (struct file_handler): Add field error, to indicate error
3148 (struct async_signal_handler): Rename type of proc field.
3149 (add_file_handler): Add exception condition as something select()
3151 (handle_file_event): In case of error on the fd, record this in
3152 the file_handler structure. Update call to (*proc)() to match new
3154 (gdb_wait_for_event): If select() or poll() return error, report
3156 (create_async_signal_handler): Change first param type to
3158 (inferior_event_handler): New function. Smarter inferior event
3161 1999-09-18 Jim Blandy <jimb@cygnus.com>
3163 * pa64solib.c (pa64_solib_create_inferior_hook): Remove code which
3164 tries to set __d_pid; it's not relevant to PA64 shared libraries.
3166 A psymtab's texthigh element, and a block's endaddr element, are
3167 the address past the end of the address range, never the address
3168 of the last byte. These data structures mean the same thing on
3169 forty different architectures; there's no reason they should be
3171 * symtab.c (find_pc_sect_psymtab): Remove special case for HP/UX.
3172 (find_pc_sect_symtab): Same.
3173 * objfiles.c (find_pc_sect_section): Same.
3175 Sat Sep 18 07:13:03 1999 Jeffrey A Law (law@cygnus.com)
3177 * hppa-tdep.c (internalize_unwinds): Handle PA64 shared libraries
3180 * hppa-tdep.c (in_solib_call_trampoline): Handle PA64 shared library
3183 1999-09-17 Fernando Nasser <fnasser@totem.to.cygnus.com>
3185 * wrapper.h: Add missing define brackets.
3187 1999-09-17 Jim Blandy <jimb@zwingli.cygnus.com>
3189 * breakpoint.c (permanent_breakpoint_here_p): Delete.
3190 Accidentally left over from previous changes.
3192 1999-09-17 Jim Blandy <jimb@cygnus.com>
3194 * config/pa/tm-hppa64.h (ARGS_GROW_DOWNWARD): Deleted. There are
3195 many more differences between the 32- and 64-bit ABI's than the
3196 direction the arguments grow, so this name is misleading.
3197 (PA20W_CALLING_CONVENTIONS): Define this instead.
3198 * config/pa/tm-hppa.h (ARGS_GROW_DOWNWARD): Delete.
3199 * hppa-tdep.c (hppa_push_arguments): Split into two separate
3200 functions, depending on whether PA20W_CALLING_CONVENTIONS is
3201 #defined. These implement completely separate specifications,
3202 they don't really share that much code anyway, and this is much
3203 more readable. Specifically: leave a 16-byte, not 32-byte, frame
3204 marker; correctly align objects larger than eight bytes; promote
3205 all integral scalar arguments smaller than eight bytes to a full
3206 register width; pad aggregates smaller than eight bytes on the
3209 1999-09-17 Fernando Nasser <fnasser@totem.to.cygnus.com>
3211 * Makefile.in: Add entries for varobj.[cho] and wrapper.[cho].
3212 gdbtk-varobj.[co]. gdbtk-varobj.o is not yet on the COMMON_OBS
3213 list because it conflicts with the older gdbtk-variable.o which
3214 is still the default.
3216 1999-09-17 Fernando Nasser <fnasser@totem.to.cygnus.com>
3218 * varobj.h: New file. GDB variable objects API.
3219 * varobj.c: New file. Implementation of the GDB variable objects
3222 1999-09-17 Fernando Nasser <fnasser@totem.to.cygnus.com>
3224 * wrapper.h: New file. Longjump free calls to gdb internal
3226 * wrapper.c (gdb_evaluate_expression, wrap_evaluate_expression,
3227 gdb_value_fetch_lazy, wrap_value_fetch_lazy, gdb_value_equal,
3228 wrap_value_equal, gdb_value_ind, wrap_value_ind): New functions.
3230 Thu Sep 16 17:33:35 1999 Andrew Cagney <cagney@b1.cygnus.com>
3232 * remote.c (remote_async_open_1): Use SERIAL_ASYNC to
3233 enable/disable async event callback on serial port. Use
3234 SERIAL_CAN_ASYNC_P / SERIAL_IS_ASYNC_P to determine if / when
3236 (remote_async_resume, remote_async_detach, remote_async_kill,
3237 extended_remote_async_create_inferior, remote_async_wait): Ditto.
3239 * ser-unix.c (hardwire_readchar): When ASYNC, only read a single
3241 (ser_unix_readchar): Ditto. Problems occure with back-to-back
3242 data from a target. The ASYNC code can loose the second data
3245 * serial.c (serial_fdopen): Initialize async_handler and
3248 1999-09-16 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
3250 * utils.c (discard_all_continuations): New function.
3251 * defs.h: (discard_all_continuations): Add prototype.
3253 1999-09-16 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
3255 * valops.c: Remove prototype for search_struct_field_aux(). THe
3256 function was nowhere in the file.
3257 (value_ind): Remove unused var real_val.
3258 (value_find_oload_method_list): Remove unused var v.
3259 (find_overload_match): Remove extra declaration of var jj.
3261 * Makefile.in (event_top_h): Define. Add dependency on this for
3262 every file that includes event-top.h.
3264 Thu Sep 16 17:33:35 1999 Andrew Cagney <cagney@b1.cygnus.com>
3266 * serial.c (serial_open): Delete ``&'' device.
3267 * ser-unix.c (_initialize_ser_hardwire): Make the "hardwire"
3268 device async. Delete temporary "async-hardwire" device.
3270 Thu Sep 16 16:27:13 1999 Andrew Cagney <cagney@b1.cygnus.com>
3272 * serial.h (SERIAL_IS_ASYNC_P): Define. Non-zero when serial
3273 device is in async mode.
3274 (SERIAL_CAN_ASYNC_P): Rename SERIAL_ASYNC_P.
3275 * serial.c (serial_is_async_p): Implement.
3276 (serial_can_async_p): Rename serial_async_p.
3277 (serial_open): Initialize ASYNC_HANDLER and ASYNC_CONTEXT. Save
3278 the original name in SCB instead of the stripped name.
3280 Thu Sep 16 12:20:11 1999 Andrew Cagney <cagney@b1.cygnus.com>
3282 * serial.h (struct serial_ops): Add field ASYNC.
3283 (SERIAL_ASYNC, SERIAL_ASYNC_P): New macros.
3284 (struct _serial_t): Add fields async_context and async_handler.
3285 * serial.c (serial_async, serial_async_p): Implement.
3287 * ser-unix.c: Include "event-loop.h".
3288 (ser_unix_async), ser-unix.c: New function. Implement async mode.
3289 (async_event): Handle async events.
3290 * ser-unix.c (_initialize_ser_hardwire), ser-tcp.c
3291 (_initialize_ser_tcp), ser-pipe.c (_initialize_ser_pipe): Enable
3294 * serial.c (serial_open): Discard leading ``|'' before opening a
3296 * ser-pipe.c (pipe_open): Adjust.
3297 * serial.c (serial_open): Add ``&'' prefix so that
3298 "async-hardwire" device can be explicitly selected. Work in
3300 * ser-unix.c: Register "async-hardwire" device.
3302 Thu Sep 16 09:04:53 1999 Andrew Cagney <cagney@b1.cygnus.com>
3304 * ser-unix.h: New file. Declare generic ser_unix functions.
3305 * ser-unix.c (ser_unix_nop_get_tty_state,
3306 ser_unix_nop_set_tty_state, ser_unix_nop_raw, ser_unix_wait_for,
3307 ser_unix_readchar, ser_unix_nop_noflush_set_tty_state,
3308 ser_unix_nop_print_tty_state, ser_unix_nop_setbaudrate,
3309 ser_unix_nop_setstopbits, ser_unix_write,
3310 ser_unix_nop_flush_output, ser_unix_nop_flush_input,
3311 ser_unix_nop_send_break, ser_unix_nop_drain_output): New
3313 * ser-unix.c: Include <sys/wait.h>, <sys/socket.h>,
3316 * ser-tcp.c (_initialize_ser_tcp), ser-unix.c
3317 (_initialize_ser_hardwire), ser-pipe.c (_initialize_ser_tcp):
3318 Initialize ops vector using assignment.
3320 * ser-pipe.c, ser-tcp.c, ser-unix.c: Include ser-unix.h.
3322 * ser-pipe.c (pipe_get_tty_state, pipe_set_tty_state,
3323 pipe_return_0, pipe_raw, wait_for, pipe_readchar,
3324 pipe_noflush_set_tty_state, pipe_print_tty_state,
3325 pipe_setbaudrate, pipe_setstopbits, pipe_write), ser-tcp.c
3326 (tcp_get_tty_state, tcp_set_tty_state, tcp_return_0, tcp_raw,
3327 wait_for, tcp_readchar, tcp_noflush_set_tty_state,
3328 tcp_print_tty_state, tcp_setbaudrate, tcp_setstopbits, tcp_write):
3331 1999-09-15 Stan Shebs <shebs@andros.cygnus.com>
3333 * d10v-tdep.c (remote_d10v_translate_xfer_address): Move to here
3334 from remote-d10v.c, also change the memory translation to its
3336 * remote-d10v.c: Remove.
3337 * config/d10v/d10v.mt (TDEPFILES): Remove remote-d10v.o.
3339 1999-09-15 Jim Blandy <jimb@cygnus.com>
3341 * breakpoint.c (remove_breakpoint): Return zero, not nothing.
3343 1999-09-14 Jim Blandy <jimb@cygnus.com>
3345 * hppa-tdep.c (frame_chain): If the unwind info says we've saved
3346 r3, don't trust it. Call get_frame_saved_regs and see if we can
3347 actually find an address for r3 there.
3349 * pa64solib.c (pa64_sharedlibrary_info_command): Text fix.
3351 Tue Sep 14 14:34:28 1999 Andrew Cagney <cagney@b1.cygnus.com>
3353 * serial.h (DEPRECATED_SERIAL_FD): Define.
3354 * serial.c (deprecated_serial_fd): New function.
3356 * remote.c (remote_async_open_1, remote_async_open_1,
3357 remote_async_detach, remote_async_kill,
3358 extended_remote_async_create_inferior, minitelnet): Update.
3359 * remote-es.c (es1800_open, es1800_close, es1800_transparent): Update.
3361 * remote-st.c (connect_command), remote-os9k.c (connect_command):
3362 Fix. Call FD_SET et.al. with FD instead of serial_t.
3364 1999-09-14 Jim Blandy <jimb@cygnus.com>
3366 * hppa-tdep.c (hppa_frame_find_saved_regs): The two possible
3367 instructions for saving the return pointer (32- and 64-bit) save
3368 it at different offsets.
3370 * config/pa/tm-hppa64.h: Doc fix.
3372 * defs.h (continuation): Make this a typedef.
3374 * Makefile.in (gdbtk.o, gdbtk-cmds.o): Depend on $(top_h).
3376 * Makefile.in (i386-linux-nat.o): Depend on symfile.h, not
3377 $(symfile_h); the latter has no definition.
3379 * breakpoint.c (breakpoint_here_p): Remove meaningless code,
3380 testing b->enable against shlib_disabled and call_disabled after
3381 we know it is enabled.
3383 Implement "permanent breakpoints" --- breakpoints that are
3384 hardwired into the inferior's code. GDB knows they're there, but
3385 doesn't try to insert or remove them, etc.
3386 * breakpoint.h (enum enable): Add `permanent' enablement state.
3387 * breakpoint.c (make_breakpoint_permanent): New function.
3388 * breakpoint.h (make_breakpoint_permanent): Add declaration.
3389 * breakpoint.c (insert_breakpoints): Don't bother to insert
3390 permanent breakpoints...
3391 (remove_breakpoint): ... or remove them.
3392 (breakpoint_here_p): Handle `permanent' like `enabled'. Change
3393 return value to indicate whether it's a permanent breakpoint here,
3394 or an ordinary breakpoint.
3395 * breakpoint.h (enum breakpoint_here): New enum.
3396 (breakpoint_here_p): Change declaration.
3397 * breakpoint.h (breakpoint_1): Extend bpenables to cover all the
3399 (describe_other_breakpoints): Describe permanent breakpoints.
3400 (check_duplicates): If one of the breakpoints at ADDRESS is a
3401 permanent breakpoint, treat all the others as the duplicates, so
3402 we don't try to insert or remove any of them. Verify that only
3403 the permanent breakpoint is actually inserted.
3404 (delete_breakpoint): Complain if we discover that another
3405 breakpoint was inserted at the same place as a permanent
3407 (disable_breakpoint): Fail silently if asked to disable a
3408 permanent breakpoint.
3409 (do_enable_breakpoint): Don't change a permanent breakpoint's
3410 enablement to ordinary `enabled'. Leave it alone.
3411 (create_solib_event_breakpoint): Return the
3412 breakpoint object created.
3413 * breakpoint.h (create_solib_event_breakpoint): Fix declaration.
3414 * pa64solib.c (pa64_solib_create_inferior_hook): Do turn on the
3415 DT_HP_DEBUG_CALLBACK flag in the dynamic linker, so it will call
3416 __dld_break, which contains the permanent breakpoint, when interesting
3417 things happen. Tell GDB that the breakpoint in __dld_break is
3419 * gdbtk-cmds.c (gdb_get_breakpoint_info): Report a permanent
3420 breakpoint as enabled.
3421 * infrun.c (SKIP_PERMANENT_BREAKPOINT): Provide default definition.
3422 (default_skip_permanent_breakpoint): New function.
3423 (resume): If we're trying to resume at a permanent breakpoint, use
3424 SKIP_PERMANENT_BREAKPOINT to step over it.
3425 * hppa-tdep.c (hppa_skip_permanent_breakpoint): New function.
3426 * config/pa/tm-hppa.h (hppa_skip_permanent_breakpoint): Declare.
3427 (SKIP_PERMANENT_BREAKPOINT): Define.
3429 1999-09-14 Kevin Buettner <kevinb@cygnus.com>
3431 * symtab.h, minsyms.c (find_stab_function_addr): Changed
3432 type of second parameter from partial_symtab * to char *.
3434 * minsyms.c (find_stab_function_addr): Look for minimal
3435 symbol without filename if filename based search fails.
3436 * dbxread.c (process_one_symbol): Call find_stab_function_addr()
3437 in place of inline code with identical functionality.
3438 * partial-stab.h (case N_FUN, descriptors 'F' and 'f'): Look
3439 up symbol's address from minimal symbol table when N_FUN
3440 address is missing. Also, make sure this value is used for
3441 calculating the value of the texthigh field.
3443 1999-09-14 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
3445 * event-loop.c (create_file_handler): Increment the total number
3446 of file descriptors for the poll case, only if this is a new file
3449 1999-09-14 Eli Zaretskii <eliz@is.elta.co.il>
3451 * go32-nat.c: misc minor cleanups and fixes missed in last patch.
3453 Tue Sep 14 12:37:33 1999 Andrew Cagney <cagney@b1.cygnus.com>
3455 * serial.h (SERIAL_PRINT_TTY_STATE): Add STREAM parameter.
3456 (union serial_ops): Update.
3458 * ser-unix.c (hardwire_print_tty_state, ser-tcp.c
3459 (tcp_print_tty_state), ser-pipe.c (pipe_print_tty_state,
3460 ser-go32.c (dos_print_tty_state, ser-mac.c (mac_print_tty_state,
3461 ser-ocd.c (ocd_print_tty_state, ser-e7kpc.c
3462 (e7000pc_print_tty_state): Update.
3463 * inflow.c (child_terminal_info): Update.
3464 * serial.c (serial_print_tty_state): Update.
3466 Tue Sep 14 11:41:37 1999 Andrew Cagney <cagney@b1.cygnus.com>
3468 * serial.c, serial.h, ser-tcp.c, ser-unix.c, ser-pipe.c: Convert
3469 all functions to ISO-C.
3470 * serial.h, serial.c: Move all indirect macro function calls from
3471 serial.h into serial.c.
3472 (serial_drain_output, serial_flush_output, serial_flush_input,
3473 serial_raw, serial_get_tty_state, serial_set_tty_state,
3474 serial_print_tty_state, serial_noflush_set_tty_state,
3475 serial_setbaudrate, serial_setstopbits): New functions.
3476 (do_serial_close): Rename serial_close.
3477 (serial_close, serial_un_fdopen): New functions. Call
3480 1999-09-13 James Ingham <jingham@leda.cygnus.com>
3482 * symtab.c (decode_line_1): Find the rightmost parenthesis in the
3483 expression, not the leftmost. This allows us to parse function
3484 declarations with embedded function prototypes.
3486 Mon Sep 13 18:39:31 1999 Jeffrey A Law (law@cygnus.com)
3488 * pa64solib.c (pa64_sharedlibrary_info_command): Fix typos.
3490 1999-09-13 Kevin Buettner <kevinb@cygnus.com>
3492 * i386-tdep.c (i386_extract_return_value): ifdef'd so that
3493 non-linux targets will work again.
3494 (i386_do_registers_info, i386_print_register): Revert changes
3495 of 1999-09-03; these functions have been removed because they
3496 are Linux specific and break non-Linux builds. This functionality
3497 will be restored after FP support unification has been achieved.
3498 * i387-tdep.c (i387_print_register, void i387_float_info):
3500 * config/i386/tm-linux.h (i387_float_info, FLOAT_INFO,
3501 DO_REGISTERS_INFO, i386_do_registers_info,
3502 i387_print_register): Likewise.
3504 1999-09-13 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
3506 * event-top.c (call_readline): Change to accept gdb_client_data as
3508 (rl_callback_read_char_wrapper): New function to match what the
3509 event loop expects and what readline expects.
3510 (change_line_handler): Make call_readline point to
3511 rl_callback_read_char_wrapper, instead of rl_callback_read_char.
3512 (_initialize_event_loop): Ditto.
3513 (gdb_readline2): Change parameter to gdb_client_data.
3514 * event-top.h (call_readline, gdb_readline2): Change accordingly.
3516 * event-loop.c (add_file_handler): Change 2nd par to
3517 handler_func*. No more need for casting.
3518 * event-loop.h (create_async_signal_handler): Change accordingly.
3520 * inferior.h (fetch_inferior_event): Change parameter to void*.
3521 * infrun.c (fetch_inferior_event): Ditto.
3523 1999-09-13 Stan Shebs <shebs@andros.cygnus.com>
3525 * infrun.c (step_into_function): New function, broken out from the
3526 step_into_function label in handle_inferior_event.
3527 (handle_inferior_event): Change a goto into a function call.
3529 1999-09-13 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
3531 * event-top.h: New file. All the exported vars and functions from
3534 * event-loop.h (struct gdb_event, event_handler_func,
3535 file_handler, async_signal_handler, SELECT_MASK, fd_mask, NBBY,
3536 FD_SETSIZE, howmany, NFDBITS, MASK_SIZE): Move to event-loop.c.
3537 (struct prompts, PROMPT, PREFIX, SUFFIX, display_gdb_prompt,
3538 async_init_signals, set_async_editing_command,
3539 set_async_annotation_level, set_async_prompt, handle_stop_sig,
3540 handle_sigint, pop_prompt, push_prompt, gdb_readline2,
3541 mark_async_signal_handler_wrapper, async_request_quit,
3542 async_command_editing_p, exec_done_display_p,
3543 async_annotation_suffix, new_async_prompt, the_prompts,
3544 call_readline, input_handler, input_fd): Move to event-top.h.
3545 (All function prototypes): Don't use PARAMS anymore.
3547 * event-loop.c: (struct gdb_event, event_handler_func,
3548 file_handler, async_signal_handler, SELECT_MASK, fd_mask, NBBY,
3549 FD_SETSIZE, howmany, NFDBITS, MASK_SIZE): Move to here from
3551 Include event-top.h. Remove use of PARAMS. ANSIfy functions headers.
3553 * event-top.c: Include event-top.h. Include "signals.h", not
3555 Remove use of PARAMS. ANSIfy functions headers.
3556 (handle_stop_sig): move prototype to event-top.h.
3558 * remote.c: Include event-top.h. Make it understand
3559 async_signal_handler type.
3560 * infrun.c: Include event-top.h.
3565 Mon Sep 13 18:54:05 1999 Andrew Cagney <cagney@b1.cygnus.com>
3567 * gdbarch.sh: Describe each of the fields.
3569 Mon Sep 13 17:51:28 1999 Andrew Cagney <cagney@b1.cygnus.com>
3571 From 1999-09-12 Jim Blandy <jimb@cygnus.com>:
3572 * gdbarch.sh (generating setters): Use sed to generate the proper
3573 indentation, not tr; tr's behavior is notoriously unportable.
3575 1999-09-10 Jim Blandy <jimb@zwingli.cygnus.com>
3577 * i387-tdep.c (print_387_control_bits): Don't print newline; the
3578 callers take care of that. (Thanks to H.J. Lu.)
3580 1999-09-09 Stan Shebs <shebs@andros.cygnus.com>
3582 * d10v-tdep.c (DMEM_START): Set to 0x2000000.
3583 (itrace, iuntrace, info itrace, itdisassemble, itracedisplay,
3584 itracesource): Add 'i' prefix to commands, so as not to conflict
3585 with generic trace commands.
3587 1999-09-09 Fernando Nasser <fnasser@totem.to.cygnus.com>
3589 * remote.c (_initialize_remote): Fix the specification of the
3590 "remote" prefix to set and show commands.
3592 1999-09-09 Fernando Nasser <fnasser@totem.to.cygnus.com>
3594 * command.c (print_doc_line): Update to use ui_out.
3595 (do_setshow_command): Ditto.
3596 (cmd_show_list): Ditto.
3598 1999-09-09 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
3600 * event-loop.c (create_file_event): New function. Creates a gdb
3601 event for a given fd.
3602 (gdb_wait_for_event): Use create_file_event().
3603 * event-loop.h: export create_file_event().
3605 * event-loop.c (delete_file_handler): Move the clearing of the
3606 mask to later on in the function, because we need it in order to
3607 deactivate the correct fd when using select().
3609 * m32r-tdep.c (decode_prologue): Fix typo. Instructions starting
3610 with 0xf are branch instructions.
3611 (m32r_scan_prologue): Initialize framesize to 0.
3613 1999-09-07 J.T. Conklin <jtc@redback.com>
3615 * i386-stub.c (exceptionHook, oldExceptionHook): Removed.
3616 (handle_exception): Removed #if'd out exception hook code.
3618 * i386-stub.c, m68k-stub.c (error): Removed unused variable.
3620 * i386-stub.c, m68k-stub.c, sh-stub.c, sparc-stub.c,
3621 sparcl-stub.c, sparclet-stub.c (remcomInBuffer, remcomOutBuffer):
3624 Tue Sep 7 14:06:22 1999 Kevin Buettner <kevinb@cygnus.com>
3626 * config/i386/tm-linux.h (SOFUN_ADDRESS_MAYBE_MISSING):
3629 Tue Sep 7 08:18:01 1999 Kevin Buettner <kevinb@cygnus.com>
3631 From Jim Blandy <jimb@cygnus.com>:
3633 Step into calls to functions in shared libraries properly. See
3634 the comments for SKIP_SOLIB_RESOLVER atop infrun.c for details.
3635 * infrun.c (SKIP_SOLIB_RESOLVER): New macro.
3637 1999-09-05 Fred Fish <fnf@cygnus.com>
3639 * elfread.c (elf_symtab_read): Remove separately passed bfd
3640 pointer and offset. Pick up bfd pointer from objfile, and
3641 get offset from objfile's section_offsets.
3643 Fri Sep 3 22:29:39 1999 Kevin Buettner <kevinb@cygnus.com>
3645 * config/i386/tm-linux.h (REGISTER_NAMES): Changed register
3646 named "foo" to "fopo" which more accurately describes the FPU
3647 Operand Pointer Offset. The real reason for this change, of
3648 course, is that many programmers use $foo as a convenience
3649 variable and are likely to be unpleasantly surprised to find
3650 that they're unwittingly changing the state of their ia32 FPU.
3652 1999-09-03 Jason Molenda (jsm@bugshack.cygnus.com)
3654 * monitor.c (monitor_supply_register): Stop scanning val string
3655 if a newline is encountered.
3657 1999-09-03 Jason Molenda (jsm@bugshack.cygnus.com)
3659 monitor.c (TARGET_BUF_SIZE): New macro, defined to 2048.
3660 (monitor_expect_regexp, monitor_wait, monitor_dump_reg_block,
3661 monitor_dump_reg_block): Dump hard-coded constants in favor
3664 (readchar): Re-enable output of characters read from monitor when
3667 (monitor_supply_register): Use ULONGEST to hold value.
3668 Replace strtoul() call with hand-coded loop to handle values
3671 (monitor_store_register): Use ULONGEST to hold value.
3673 Fri Sep 3 00:47:44 1999 Kevin Buettner <kevinb@cygnus.com>
3675 [Merged linux/x86 floating point code from Bill Metzenthen,
3676 Jim Blandy, Anthony Green, H. J. Lu, and possibly others. The
3677 following remarks are Jim Blandy's.]
3679 * findvar.c (extract_floating): Call TARGET_EXTRACT_FLOATING, if
3681 (store_floating): Call TARGET_STORE_FLOATING, if #defined.
3683 * i386-tdep.c (i386_print_register, i386_do_registers_info): New
3685 (i386_extract_return_value): GNU/Linux returns floating point
3686 values in a floating point register too.
3687 (set_disassembly_flavor): Add prototype.
3688 (i386_extract_return_value): Use FPDATA_REGNUM, not FP0_REGNUM (
3689 which wasn't the first FP data register).
3690 (i386_do_registers_info): Use FPSTART_REGNUM and FPEND_REGNUM as
3691 the limits of the FPU-related registers.
3692 (i386_extract_return_value): Tell GDB how to find return values
3693 larger than four bytes. (Thanks to Paul N. Hilfinger for the bug
3696 * i387-tdep.c (print_387_control_word): Break out bit-splitting into...
3697 (print_387_control_bits): New function.
3698 (print_387_status_word): Break out bit-splitting into...
3699 (print_387_status_bits): New function.
3700 (i387_print_register, i387_float_info, i387_hex_float_input): New
3702 (i387_extract_floating, i387_store_floating): New functions.
3704 * valprint.c (print_floating): Use macro TARGET_ANALYZE_FLOATING,
3705 if it's #defined. Tolerate values of `nonnegative' other than
3708 * i386-linux-nat.c: New file.
3709 * Makefile.in (ALLDEPFILES): Mention i386-linux-nat.c.
3710 (i386-linux-nat.o): New rule, listing dependencies.
3711 * config/i386/linux.mh (NATDEPFILES): Use i386-linux-nat.o, not
3712 the plain i386v4-nat.o.
3713 * config/i386/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
3714 * config/i386/xm-linux.h: Define HOST_I386.
3716 * config/i386/tm-linux.h (FP0_REGNUM): Replaced by...
3717 (FPSTART_REGNUM, FPCONTROL_REGNUM, FPSTATUS_REGNUM, FPTAG_REGNUM,
3718 FPDATA_REGNUM, FPEND_REGNUM): New definitions.
3719 (REGISTER_BYTES): Changed accordingly.
3720 (SKIP_SOLIB_RESOLVER): #define this.
3721 (i386_linux_skip_solib_resolver): New declaration.
3722 (i387_float_info): Added extern decl for this function.
3723 (TARGET_EXTRACT_FLOATING, TARGET_STORE_FLOATING,
3724 TARGET_ANALYZE_FLOATING): Define.
3725 (i387_extract_floating, i387_store_floating): New extern decls.
3726 (I386_GNULINUX_TARGET): Define.
3727 (NUM_REGS, NUM_FREGS, REGISTER_NAMES, FP0_REGNUM, FPDATA_REGNUM,
3728 FPENV_BYTES, FPREG_RAW_SIZE, FPREG_BYTES, REGISTER_BYTES,
3729 REGISTER_BYTE, REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE,
3730 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
3731 TARGET_LONG_DOUBLE_BIT, FLOAT_INFO, DO_REGISTERS_INFO): New
3732 definitions, perhaps overriding those inherited from
3733 config/i386/tm-i386.h.
3734 (i386_do_registers_info, i387_print_register, double_to_i387,
3735 i387_to_double): New declarations.
3736 (LD_I387): Define iff both the host and target are using i387
3738 (HEX_FLOAT_INPUT, REGISTER_CONVERTIBLE,
3739 REGISTER_CONVERT_TO_VIRTUAL, REGISTER_CONVERT_TO_RAW,
3740 REGISTER_VIRTUAL_TYPE): Define these if LD_I387 is defined.
3742 * source.c (list_command): List the right number of source lines,
3743 even if we're at the top of the file.
3745 1999-09-02 Stan Shebs <shebs@andros.cygnus.com>
3747 * infrun.c (step_over_function): New function, broken out from the
3748 step_over_function label in handle_inferior_event.
3749 (handle_inferior_event): Change a goto into a function call.
3751 Thu Sep 2 18:26:04 1999 Andrew Cagney <cagney@b1.cygnus.com>
3753 * Makefile.in (GDB_WERROR_CFLAGS, GBB_WARN_CFLAGS): Define.
3754 (INTERNAL_CFLAGS): Update
3755 * configure.in (WERROR_CFLAGS, WARN_CFLAGS): Sync with
3756 ../sim/common/aclocal.m4.
3757 * configure: Re-generate.
3759 Thu Sep 2 00:27:36 1999 Andrew Cagney <cagney@b1.cygnus.com>
3761 * Makefile.in (z8k-tdep.o): For moment, don't try to compile with
3762 -Werror. See Makefile.in.
3763 * z8k-tdep.c (z8k_set_pointer_size): Document problem.
3765 * config/z8k/tm-z8k.h (z8k_print_register_hook, z8k_frame_chain,
3766 z8k_saved_pc_after_call, z8k_frame_saved_pc,
3767 z8k_set_pointer_size): Declare.
3768 (z8k_skip_prologue): Fix typo. Was mz8k_skip_prologue.
3769 (FRAME_CHAIN, PRINT_REGISTER_HOOK, FRAME_SAVED_PC,
3770 SAVED_PC_AFTER_CALL): Update.
3771 * z8k-tdep.c (z8k_print_register_hook): Rename
3772 z8k_print_register_hook.
3773 (z8k_frame_chain): Rename frame_chain.
3774 (z8k_saved_pc_after_call): Rename saved_pc_after_call.
3775 (z8k_frame_saved_pc): Rename frame_saved_pc.
3776 (z8k_print_register_hook): Fix printf.
3777 (read_memory_pointer): Add declaration.
3778 ("value.h"): Include.
3779 * Makefile.in (z8k-tdep.o): Add dependency on value.h.
3781 * config/sparc/tm-sparc.h (PRINT_EXTRA_FRAME_INFO): Fix
3783 * Makefile.in (remote-e7000.o): For moment, don't try to compile
3784 with -Werror. See Makefile.in.
3785 * sh-tdep.c (sh_show_regs): Fix printf calls.
3786 * xcoffsolib.c (solib_info): Fix Printf calls.
3787 * dink32-rom.c: #include "symfile.h" for generic_load and
3788 "inferior.h" for write_pc.
3789 * Makefile.in (dink32-rom.o): Update.
3791 * config/mn10300/tm-mn10300.h (mn10300_store_struct_return),
3792 config/mn10200/tm-mn10200.h (mn10200_store_struct_return): Add
3795 Tue Aug 31 00:48:27 1999 Andrew Cagney <cagney@amy.cygnus.com>
3797 * config/mips/tm-tx49el.h (REGISTER_SIM_REGNO): Define.
3799 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
3800 Pass REGISTER_SIM_REGNO converted register number to the
3803 1999-09-01 Tom Tromey <tromey@cygnus.com>
3805 * config/i386/nm-linux.h (PREPARE_TO_PROCEED): Added argument.
3807 1999-09-01 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
3809 * values.c (value_virtual_fn_field): Remove unused var(s).
3810 * thread.c (prune_threads): Ditto.
3811 * symtab.c (lookup_transparent_type): Ditto.
3812 (decode_line_1): Ditto.
3813 (make_symbol_overload_list): Ditto.
3814 * rs6000-tdep.c (frame_get_saved_regs): Ditto.
3815 (set_processor): Ditto.
3816 * remote.c (remote_remove_breakpoint): Ditto.
3817 (remote_query): Ditto.
3819 * remote-sds.c (sds_fetch_registers): Ditto.
3820 (putmessage): Ditto.
3821 * ppcbug-rom.c (ppcbug_supply_register): Ditto.
3822 (ppcbug_open): Remove unused prototype.
3823 * parse.c (parse_nested_classes_for_hpacc): Remove unused var(s).
3824 * ocd.c (ocd_open): Ditto.
3825 (ocd_get_packet): Ditto.
3826 * monitor.c (monitor_error): Ditto.
3827 (monitor_wait_srec_ack): Ditto.
3828 * main.c (main): Ditto.
3829 * gdbtypes.c (count_virtual_fns): Ditto.
3830 * exec.c (exec_file_command): Ditto.
3832 * event-top.c: Include handle_sigwinch() function prototype within
3835 * eval.c (evaluate_subexp_standard): Remove unused variable.
3836 (evaluate_subexp_standard): Remove unused variables.
3837 * dink32-rom.c (dink32_supply_register): Remove unused variable.
3838 * dbxread.c (elfstab_build_psymtabs): Ditto.
3839 * command.c (do_setshow_command): Ditto.
3840 * breakpoint.c (solib_load_unload_1): Remove unused variables 'i'
3842 (until_break_command): Remove unused variables 'arg1' and 'arg2'.
3843 (create_exception_catchpoint): Remove unused variable 'i'.
3844 * ax-gdb.c (gen_sub): Remove unused variable.
3845 (_initialize_ax_gdb): Ditto.
3847 * ser-pipe.c (pipe_readchar): If timeout is expired return
3849 * ser-tcp.c (tcp_readchar): If timeout is expired return
3852 Wed Sep 1 15:07:25 1999 Andrew Cagney <cagney@b1.cygnus.com>
3854 * version.h: New file.
3855 * Makefile.in (version_h): Define.
3856 (version.o): Add target.
3858 * remote-array.c: #include "version.h".
3859 (version): Delete extern declarations.
3860 * Makefile.in (remote-array.o): Add dependency on version.h.
3862 * top.c: #include "version.h".
3863 (version, host_name, target_name): Delete extern declarations.
3864 * Makefile.in (top.o): Add dependency on version.h.
3866 * remote.c (remote_remove_watchpoint, remote_insert_watchpoint),
3867 remote-array.c (array_open), remote-mips.c (send_srec),
3868 dve3900-rom.c (store_bitmapped_register): Fix Printfs.
3870 * mips-tdep.c (mips_print_extra_frame_info, print_unpack),
3871 m32r-rom.c (m32r_load_section), m32r-tdep.c (m32r_frame_chain),
3872 dsrec.c (load_srec): Fix printf problems.
3874 Wed Sep 1 13:16:49 1999 Andrew Cagney <cagney@b1.cygnus.com>
3876 * Makefile.in (monitor.o): For moment, don't try to compile with
3877 -Werror. monitor.c has -Wformat problems. See Makefile.in for
3880 Tue Aug 31 21:23:38 1999 Jeffrey A Law (law@cygnus.com)
3882 * hppa-tdep.c (prologue_inst_adjust_sp): Correct offset computation
3883 for doubleword store instructions.
3884 (hppa_frame_find_saved_regs): Similarly.
3886 Wed Sep 1 09:22:50 1999 Andrew Cagney <cagney@b1.cygnus.com>
3888 * d30v-tdep.c (d30v_print_register):
3889 (tdisassemble_command):
3891 * d10v-tdep.c (show_regs, trace_info, tdisassemble_command): Fix
3894 * remote-sim.c (dump_mem), remote-rdi.c (arm_rdi_create_inferior):
3895 Fix printf arguments.
3897 * remote-mips.c, mips-tdep.c: Move declaration of
3898 ``mips_set_processor_type_command'' from here.
3899 * config/mips/tm-mips.h: To here.
3900 * remote-array.c: #include "inferior.h".
3901 * config/mips/tm-embed.h (remote_mips_stopped_by_watchpoint): Add
3903 * remote-mips.c (remote_mips_stopped_by_watchpoint): Define using
3905 (monitor_supports_breakpoints): Integer variable.
3907 * m32r-rom.c: #include "inferior.h" and <ctype.h>
3908 * config/m32r/tm-m32r.h (m32r_write_sp): Add declaration.
3910 * config/i960/tm-i960.h (leafproc_return, i960_pop_frame): Add
3912 (POP_FRAME): Call i960_pop_frame.
3913 * i960-tdep.c (i960_pop_frame): Rename pop_frame.
3914 * mon960-rom.c: #include "inferior.h" for declaration of write_pc.
3916 1999-08-15 Fred Fish <fnf@cygnus.com>
3918 * objfiles.c (objfile_relocate): Use SIZEOF_SECTION_OFFSETS when
3919 allocating section_offsets array.
3920 * remote-os9k.c (rombug_wait): Ditto.
3921 * remote-vx.c (vx_add_symbols): Ditto.
3922 * remote.c (get_offsets): Ditto.
3923 (remote_cisco_objfile_relocate): Ditto.
3924 * rs6000-nat.c (vmap_symtab): Ditto.
3926 * dstread.c (dst_symfile_offsets): Set section_offsets directly instead
3927 of returning a pointer to section offsets.
3928 * somread.c (som_symfile_offsets): Ditto.
3929 * xcoffread.c (xcoff_symfile_offsets): Ditto.
3930 * symfile.c (default_symfile_offsets): Ditto.
3931 (syms_from_objfile): The sym_offsets function has already set section
3932 offsets and no longer returns a value.
3934 * xcoffread.c (scan_xcoff_symtab): Eliminate section_offsets passed
3935 separate from objfile.
3936 (xcoff_start_psymtab): Ditto.
3937 (START_PSYMTAB): Ditto.
3938 * os9kread.c (read_minimal_symbols): Ditto.
3939 (read_os9k_psymtab): Ditto.
3940 (os9k_start_psymtab): Ditto.
3941 (record_minimal_symbol): Ditto.
3942 * dbxread.c (START_PSYMTAB): Ditto.
3943 (start_psymtab): Ditto.
3944 * mdebugread.c (START_PSYMTAB): Ditto.
3945 (elfmdebug_build_psymtabs): Ditto.
3946 (mdebug_build_psymtabs): Ditto.
3947 (parse_partial_symbols): Ditto.
3948 (new_psymtab): Ditto.
3949 * dwarfread.c (dwarf_build_psymtabs): Ditto.
3950 * partial-stab.h (START_PSYMTAB): Ditto.
3951 * stabsread.h (start_psymtab): Ditto.
3952 * dwarf2read.c (dwarf2_build_psymtabs): Ditto.
3953 (dwarf2_build_psymtabs_easy): Ditto.
3954 (dwarf2_build_psymtabs_hard): Ditto.
3955 * hp-psymtab-read.c (hpread_build_psymtabs): Ditto.
3956 (hpread_quick_traverse): Ditto.
3957 (hpread_start_psymtab): Ditto.
3958 (scan_procs): Ditto.
3959 * hpread.c (hpread_build_psymtabs): Ditto.
3960 * symfile.h (dwarf2_build_psymtabs): Ditto.
3962 * dbxread.c (read_dbx_symtab): Use ANOFFSET to access section
3964 * coffread.c (enter_linenos): Pass objfile instead of section
3967 * dbxread.c (dbx_symfile_read): No need to explicitly pass
3968 text addr and size. Let read_dbx_symtab find them.
3969 (read_dbx_symtab): Get text addr and size from objfile.
3970 (dbx_symfile_read): Remove dead code (call to strlen);
3972 1999-08-31 Michael Snyder <msnyder@cleaver.cygnus.com>
3974 * Makefile.in: add rule for sol-thread.o.
3975 Add rule for linux-thread.o.
3977 1999-08-13 Jim Kingdon <kingdon@redhat.com>
3979 Threads code from gdb 4.18-codefusion-990706
3980 [Thanks to Eric Paire, H. J. Lu, Jim Blandy and others]
3981 * infrun.c (signal_stop_update, signal_print_update,
3982 signal_pass_update): new functions.
3983 * inferior.h: new prototypes for above functions.
3984 * target.h (enum strata): add thread stratum.
3985 * linux-thread.c: new file. Support for debugging linux threads.
3986 * config/i386/nm-linux.h: several new prototypes for above.
3987 * config/i386/linux.mh: add linux-thread.o to NATDEPFILES.
3989 More threads code from the same place:
3990 * config/i386/tm-linux.h (REALTIME_LO, REALTIME_HI): Add
3992 * target.h (enum target_signal): Add TARGET_SIGNAL_REALTIME_32.
3993 * target.c (signals, target_signal_from_host,
3994 target_signal_to_host): Add clauses for
3995 TARGET_SIGNAL_REALTIME_32.
3997 1999-08-31 Neil Schellenberger <neil.schellenberger@crosskeys.com>
3999 * sol-thread.c (sol_thread_detach): strip thread-id out of
4000 inferior_pid, so that procfs_detach can't choke on it.
4002 1999-08-31 J.T. Conklin <jtc@redback.com>
4004 * i386-stub.c, m32r-stub.c, m68k-stub.c, sh-stub.c, sparc-stub.c,
4005 sparcl-stub.c, sparclet-stub.c (getpacket): Remove 'buffer' arg,
4006 define it as a pointer to &remcomInBuffer[0].
4007 (handle_exception): Update.
4009 * sparc-stub.c, sparcl-stub.c, sparclet-stub.c (handle_exception):
4010 Removed #ifdef'd out code which implements the non-standard 'b'
4011 (set baud rate) command.
4013 1999-08-31 Stan Shebs <shebs@andros.cygnus.com>
4015 * infrun.c (keep_going): New function, broken out from the
4016 keep_going label in handle_inferior_event.
4017 (handle_inferior_event): Change more gotos into function calls.
4019 Tue Aug 31 02:29:27 1999 Jeffrey A Law (law@cygnus.com)
4021 * hppa-tdep.c (read_unwind_info): Handle multiple unwind sections.
4023 Tue Aug 31 15:28:44 1999 Andrew Cagney <cagney@b1.cygnus.com>
4025 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Fix printf
4027 * alpha-tdep.c (heuristic_proc_start): Ditto.
4029 From Stan Shebs <shebs@andros.cygnus.com>:
4030 * defs.h (strlen_paddr): Fix prototype - add void argument list.
4032 Tue Aug 31 14:02:12 1999 Andrew Cagney <cagney@b1.cygnus.com>
4034 * defs.h (gdb_print_host_address), utils.c
4035 (gdb_print_host_address): Rename gdb_print_address.
4037 * expprint.c, gdbtypes.c, symmisc.c: Update.
4039 *expprint.c: Use gdb_print_host_address when displaying native
4042 Sat Aug 28 14:23:29 1999 Andrew Cagney <cagney@b1.cygnus.com>
4044 * scm-valprint.c (scm_ipruk), jv-valprint.c (java_value_print),
4045 cp-valprint.c (cp_print_class_member), exec.c (exec_files_info),
4046 remote.c (putpkt_binary, compare_sections_command,
4047 remote_cisco_section_offsets), dcache.c (dcache_info),
4048 breakpoint.c (break_at_finish_at_depth_command_1,
4049 break_at_finish_command_1), symfile.c (generic_load),
4050 (report_transfer_performance), top.c (get_prompt_1), f-valprint.c
4051 (f_val_print), maint.c (maintenance_translate_address): Fix printf
4052 -Wformat warnings. Use paddr, paddr_nz, sizeof_paddr, paddr_u and
4053 paddr_d to print addresses. Change ``d'' to ``ld''.
4055 * utils.c (strlen_paddr): New function.
4057 Tue Aug 31 01:36:44 1999 Andrew Cagney <cagney@b1.cygnus.com>
4059 * config/d30v/tm-d30v.h (d30v_frame_chain,
4060 d30v_init_frame_pc): Add declaration.
4062 * arc-tdep.c (arc_pop_frame): Rename pop_frame.
4063 (arc_push_dummy_frame): Rename push_dummy_frame.
4064 (arc_set_cpu_type_command): Add declaration.
4066 * config/arc/tm-arc.h (arc_pop_frame, arc_push_dummy_frame): Add
4069 1999-08-30 Stan Shebs <shebs@andros.cygnus.com>
4071 * infrun.c (prepare_to_wait): New function, broken out from the
4072 wfi_continue label in handle_inferior_event.
4073 (handle_inferior_event): Change more gotos into function calls.
4075 1999-08-30 Michael Snyder <msnyder@cleaver.cygnus.com>
4077 * tracepoint.c: -Wall warning cleanup.
4078 (parse_and_eval_memrange): remove (unused).
4079 (output_command, args_info, locals_info, registers_info): add decls.
4080 (getpkt, putpkt, remote_console_output): add decls.
4081 (isalnum, isspace): cast arg to avoid warning.
4082 (printf, fprintf, sprintf): use [fs]printf_vma for printing addrs.
4084 Mon Aug 30 21:47:58 1999 Andrew Cagney <cagney@b1.cygnus.com>
4086 * d10v-tdep.c: #include "language.h".
4088 Mon Aug 30 20:38:57 1999 Andrew Cagney <cagney@b1.cygnus.com>
4090 * configure.in (AC_CHECK_HEADERS): Check for <time.h>.
4091 * configure, acconfig.in: Re-generate.
4093 * remote-rdp.c: #include <time.h>
4095 * config/arm/tm-arm.h (arm_float_info): Add declaration.
4097 * arm-tdep.c (convert_from_extended, convert_to_extended): Change
4098 double ptr arg to void ptr arg.
4100 * config/arm/tm-arm.h (arm_frameless_function_invocation): Add
4102 (arm_frame_find_saved_regs): Rename frame_find_saved_regs.
4103 (convert_from_extended, convert_to_extended): Add declaration.
4105 Mon Aug 30 19:05:32 1999 Andrew Cagney <cagney@b1.cygnus.com>
4107 * configure.in (WERR_CFLAGS): Separate the -Werror flag.
4108 * configure: Re-generate.
4110 * Makefile.in (INTERNAL_CFLAGS): Re-define using
4111 INTERNAL_WARN_CFLAGS.
4112 (INTERNAL_WARN_CFLAGS): Define. Leave off WERR_CFLAGS.
4113 (tracepoint.o): Add explicit rule.
4114 (WERR_CFLAGS): Add definition.
4116 Mon Aug 30 17:52:17 1999 Andrew Cagney <cagney@b1.cygnus.com>
4118 * utils.c: #include "event-loop.h" for declaration of
4120 * Makefile.in (utils.o): Add dependency on event-loop.h.
4122 * event-top.c (mark_async_signal_handler_wrapper,
4123 async_request_quit): Move declaration from here.
4124 * event-loop.h: To here.
4126 * defs.h: Add declaration of exec.c:exec_set_section_offsets.
4128 * event-top.c: #include "gdbcmd.h" which includes "command.h" and
4129 hence expose declaration of function dont_repeat.
4131 * top.c (ISATTY), tracepoint.c (ISATTY), utils.c (ISATTY),
4132 event-top.c (ISATTY): Move definitions from here.
4133 * defs.h (ISATTY): To here. #include <unistd.h>.
4135 * sol-thread.c, solib.c, source.c, sparcl-tdep.c, tracepoint.c,
4136 utils.c, win32-nat.c, wince.c, top.c, symfile.c, ser-unix.c,
4137 ser-tcp.c, procfs.c, maint.c, infttrace.c, hppa-tdep.c,
4138 ser-pipe.c, remote-rdp.c, main.c, inftarg.c, inflow.c,
4139 hpux-thread.c, hp-psymtab-read.c, go32-nat.c, fork-child.c,
4140 corelow.c, command.c: Do not #include <unistd.h>, moved to defs.h.
4142 Mon Aug 30 15:14:43 1999 Andrew Cagney <cagney@b1.cygnus.com>
4144 * defs.h (struct tui_stream, enum streamtype): Move from here.
4147 * main.c (tui_file_fputs): Move from here.
4150 Sun Aug 29 10:03:32 1999 Andrew Cagney <cagney@b1.cygnus.com>
4152 * gdb-events.h, gdb-events.c, gdb-events.sh: New files.
4154 1999-08-27 Michael Snyder <msnyder@cleaver.cygnus.com>
4156 * solib.c (open_symbol_file_object): new function.
4157 Called when attaching to a new process, if there is no loaded
4158 symbol file. Attempts to locate the executable file for the
4159 attached process and load symbols from it.
4160 (solib_add): Call open_symbol_file_object if attaching to a
4161 new process and no open symbol file.
4163 1999-08-27 Jason Molenda (jsm@bugshack.cygnus.com)
4165 * config/i386/tm-sun386.h (GDB_TARGET_IS_SUN386): Definition
4166 removed--no longer checked anywhere in gdb.
4168 1999-08-27 Stan Shebs <shebs@andros.cygnus.com>
4170 * infrun.c (stop_stepping): New function, broken out from
4171 stop_stepping label in handle_inferior_event.
4172 (handle_inferior_event): Change gotos into function calls.
4174 Fri Aug 27 20:13:22 1999 Andrew Cagney <cagney@b1.cygnus.com>
4176 * defs.h (LONGEST): Move definition to earlier in file - to just
4178 (paddr_u, paddr_d): Declare.
4179 * utils.c (decimal2str): New function.
4180 (paddr_u, paddr_d): Define.
4182 * remote.c (remote_cisco_section_offsets,
4183 compare_sections_command): Fix XprintfX arguments. Use paddr...
4184 (putpkt_binary): Fix XprintfX arguments.
4186 Tue Aug 24 21:30:36 1999 Andrew Cagney <cagney@b1.cygnus.com>
4188 * arm-tdep.c (arm_init_extra_frame_info): Add braces. Recommended
4189 by gcc -Wparentheses.
4191 1999-08-26 Stan Shebs <shebs@andros.cygnus.com>
4193 * infrun.c (check_sigtramp2): New function, broken out from
4194 check_sigtramp2 label in handle_inferior_event.
4195 (handle_inferior_event): Change gotos into function calls.
4197 Declare Tahoe configuration obsolete.
4198 * configure.host, configure.tgt: Comment out Tahoe configs.
4199 * Makefile.in: Comment out Tahoe-related action.
4200 * tahoe-tdep.c, config/tahoe/*: Comment out.
4201 * NEWS: Mention obsolete status.
4203 1999-08-26 J.T. Conklin <jtc@redback.com>
4205 * i386-stub.c, m32r-stub.c, m68k-stub.c, sh-stub.c, sh-stub.c,
4206 sparc-stub, sparcl-stub.c sparclet-stub.c (getpacket): If '$',
4207 the packet start character is received in the 'middle' of a
4208 packet, assume that packet end character has been lost and
4211 * i386-stub.c, m32r-stub.c, m68k-stub.c, sh-stub.c, sparc-stub.c,
4212 sparcl-stub.c sparclet-stub.c (getpacket): Changed to return ptr
4213 to first character of input buffer. Removed & 0x7f masks.
4214 (handle_exception): Don't access remcomInBuffer directly.
4216 1999-08-25 Stan Shebs <shebs@andros.cygnus.com>
4218 * breakpoint.c (disable_breakpoints_in_shlibs): Only disable
4219 enabled breakpoints.
4221 Tue Aug 24 14:59:23 1999 Andrew Cagney <cagney@b1.cygnus.com>
4223 * tracepoint.c, remote.c, pa64solib.h, value.h, somsolib.h,
4224 solib.h, scm-lang.h, language.h, inferior.h, defs.h, coff-solib.h,
4225 ch-lang.h, breakpoint.h, annotate.h: Remove #if __STDC__ wrapping
4226 struct declarations.
4228 * config/sparc/nm-sun4sol2.h, config/mn10300/tm-mn10300.h,
4229 config/mn10200/tm-mn10200.h, config/i386/tm-i386.h,
4230 config/i386/tm-i386v.h, config/i386/nm-i386sol2.h,
4231 config/pa/nm-hppah.h, config/rs6000/nm-rs6000.h,
4232 config/sparc/tm-sp64.h, config/v850/tm-v850.h,
4233 config/tic80/tm-tic80.h, config/sparc/tm-sparc.h,
4234 config/sh/tm-sh.h, config/rs6000/tm-rs6000.h, config/pa/tm-hppa.h,
4235 config/mips/tm-mips.h, config/m68k/tm-m68k.h,
4236 config/m32r/tm-m32r.h, config/i960/tm-mon960.h,
4237 config/fr30/tm-fr30.h, config/h8300/tm-h8300.h,
4238 config/arm/tm-arm.h, config/alpha/tm-alpha.h,
4239 config/a29k/tm-a29k.h: Ditto.
4241 Wed Aug 25 10:45:33 1999 Andrew Cagney <cagney@b1.cygnus.com>
4243 * Makefile.in (gdb$(EXEEXT)): Add dependency on TDEPLIBS.
4245 * config/arm/arm.mt (TDEPLIBS): Define. Move libangsd.a to here.
4246 (TDEPFILES): From here.
4248 1999-08-24 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
4250 * top.c (init_main): Add new set/show command exec-done-display,
4251 default value is off.
4252 * event-loop.h: Export exec_done_display_p.
4253 * event-top.c: New variable exec_done_display_p.
4254 * infrun.c (complete_execution): Print completion message if
4255 corresponding flag is set.
4257 * top.c (DEFAULT_PROMPT): Add space after "(gdb)" at end of prompt.
4259 From: J.T. Conklin <jtc@redback.com>
4260 * top.c (DEFAULT_PROMPT): Set to "(gdb)" if not already defined.
4261 (init_main): Always use DEFAULT_PROMPT.
4263 Tue Aug 24 03:23:31 1999 Jeffrey A Law (law@cygnus.com)
4265 * hppa-tdep.c: Remove useless "purecov: deadcode" comments.
4266 (hppa_use_struct_convention): Update for PA64.
4267 (hppa_frame_saved_pc): Properly extract the saved PC in a call
4269 (in_solib_call_trampoline): Return nonzero if we are in a function
4271 (prologue_inst_adjust_sp): Handle std,ma.
4272 (skip_prologue_hard_way): Handle more PA2.0/PA64 insns.
4273 (hppa_frame_find_saved_regs): Similarly. Handle indirect save of
4276 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Define.
4277 (CALL_DUMMY_BREAKPOINT_OFFSET): Define.
4279 Tue Aug 24 14:59:23 1999 Andrew Cagney <cagney@b1.cygnus.com>
4281 * Makefile.in (gdb$(EXEEXT)): Add dependency on main.o that was
4282 lost when libgdb.a was added.
4284 Tue Aug 24 14:26:34 1999 Andrew Cagney <cagney@b1.cygnus.com>
4286 * gdbarch.c, gdbarch.h: Convert to pure ISO-C.
4288 * gdbarch.sh: New file.
4289 * gdbarch.c, gdbarch.h: Add note describing gdbarch.sh
4291 Mon Aug 23 19:36:17 1999 Andrew Cagney <cagney@b1.cygnus.com>
4293 * Makefile.in (libgdb.a): New target.
4294 (gdb$(EXEEXT)): Add dependency on libgdb.a.
4295 (libgdb-files, LIBGDB_OBS, libgdb, LIBGDBDEPS, LIBGDBFILES): Delete.
4297 Mon Aug 23 10:16:32 1999 Jeffrey A Law (law@cygnus.com)
4299 * infttrate.c (child_pid_to_exec_file): Find the correct base
4300 of the stack for PA64.
4302 * pa64solib.c: Fix some minor whitespace problems.
4303 (bfd_lookup_symbol): New function.
4304 (pa64_solib_create_inferior_hook): Find the address __dld_break
4305 in the dynamic linker. Try to set a shlib event breakpoint in
4307 (add_to_solist): Do not add the same shared library to the shlib
4308 list more than once.
4310 Sun Aug 22 14:49:40 1999 Andrew Cagney <cagney@b1.cygnus.com>
4312 * value.h (enum lval_type): Move declaration from here.
4313 * defs.h (enum lval_type): To here.
4314 * frame.h, gdbarch.h: Delete incomplete declaration of ``enum
4317 1999-08-20 Michael Snyder <msnyder@cleaver.cygnus.com>
4319 * breakpoint.c (can_use_hardware_watchpoint): reject expressions
4320 that refer to registers or register variables.
4322 Fri Aug 20 10:53:38 1999 Jeffrey A Law (law@cygnus.com)
4324 * hppa-tdep.c (hppa_fix_call_dummy): Provide PA2.0W aware code.
4326 * pa64solib.c pa64solib.h: New files.
4328 * config/pa/hppa64.mt: Delete commented out code that is and
4329 never will be appropriate for this target.
4330 * config/pa/hpux11w.mt (TDEPFILES): Remove SOM references. Also
4332 * config/pa/hpux11w.mh (NATDEPFILES): Remove SOM references.
4334 * configure.host; Use "hpux11w" and "hpux11" instead of
4335 "hpux1100w" and "hpux1100" respectively
4336 * config/pa/hpux11w.mh: Renamed from hpux1100w.mh.
4337 * config/pa/hpux11w.mt, config/pa/hpux11.mh: Likewise.
4338 * config/pa/hpux11.mt: Likewise.
4340 1999-08-19 Michael Snyder <msnyder@cleaver.cygnus.com>
4342 * breakpoint.h (target_hw_bp_type): new enum.
4343 * breakpoint.c (insert_breakpoints): use enum instead of consts.
4344 (remove_breakpoint): use enum instead of consts.
4345 (throughout): use "warning" instead of "fprintf(stderr, ..."
4346 [Also clean up a bunch of excessively long lines.]
4348 1999-08-19 J.T. Conklin <jtc@redback.com>
4350 * i386-stub.c (waitabit): Removed.
4351 (breakpoint): Update.
4353 * i386-stub.c, m32r-stub.c, sparc-stub.c, sparcl-stub.c,
4354 sparclet-stub.c (set_debug_traps): Don't send gratuitous ACK.
4356 * m68k-stub.c (putpacket): Restore code so that packets are sent
4357 until an ACK is received.
4359 1999-08-19 Eli Zaretskii <eliz@is.elta.co.il>
4361 * breakpoint.c (bpstat_stop_status): Accept triggered addresses
4362 anywhere inside the region occupied by a watched variable as a
4363 sign that the watchpoint fired. Don't stop if some watchpoint
4364 was triggered, but its address doesn't match the address of this
4366 (TARGET_REGION_OK_FOR_HW_WATCHPOINT): New macro.
4367 Default definition is to call TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT.
4368 (can_use_hardware_watchpoint): Call TARGET_REGION_OK_FOR_HW_WATCHPOINT;
4369 if it returns zero, return zero immediately.
4370 (insert_breakpoints): Try to insert watchpoints for all the values
4371 on the value chain, even if some of them fail to insert. Remove
4372 the breakpoint if parts of its value chain couldn't be inserted.
4374 1999-08-19 Eli Zaretskii <eliz@is.elta.co.il>
4376 * go32-nat.c (go32_stopped_by_watchpoint): Remove unused code.
4378 1999-08-19 Eli Zaretskii <eliz@is.elta.co.il>
4380 * go32-nat.c (tcgetpgrp, tcsetpgrp): New functions.
4382 1999-08-19 Eli Zaretskii <eliz@is.elta.co.il>
4384 * go32-nat.c (go32_wait): If we are in a single-step mode, and the
4385 next instruction is INT nn or INTO, use a temporary breakpoint to
4386 simulate single-step mode, and reset the trace flag.
4388 1999-08-19 Eli Zaretskii <eliz@is.elta.co.il>
4390 * go32-nat.c (wp_op): New typedef.
4391 (SHOW_DR): Print the length of watched region as well.
4392 (go32_insert_aligned_watchpoint): Remove unused argument PID. All
4393 callers and the prototype changed.
4394 (go32_handle_nonaligned_watchpoint): Renamed from
4395 go32_insert_nonaligned_watchpoint. Now handles all operations on
4396 non-aligned watchpoints: insertion, deletion, and counting. If
4397 called with wp_count as the first argument, return the count of
4398 debug registers needed to watch the region. Don't break out of
4399 the loop before all the addresses in the region are processed.
4400 (go32_remove_watchpoint): Call go32_remove_aligned_watchpoint to
4402 (go32_remove_aligned_watchpoint): New function, modeled after
4403 go32_insert_aligned_watchpoint. Removes watchpoints that watch
4404 regions of arbitrary length by calling
4405 go32_handle_nonaligned_watchpoint as needed.
4406 (go32_region_ok_for_watchpoint): New function, called from
4407 can_use_hardware_watchpoint via the new macro
4408 TARGET_REGION_OK_FOR_HW_WATCHPOINT.
4410 * config/i386/nm-go32.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
4411 Define to call go32_region_ok_for_watchpoint.
4412 (DECR_PC_AFTER_HW_BREAK): Define back to zero (previous redefinition
4413 to 1 was due to a bug in go32-nat.c).
4415 1999-08-19 Eli Zaretskii <eliz@is.elta.co.il>
4417 * go32-nat.c (cleanup_dregs): New function.
4418 (go32_mourn_inferior): Call it.
4419 (IS_REG_FREE, LOCAL_ENABLE_REG, GLOBAL_ENABLE_REG, DISABLE_REG,
4420 SET_BREAK, SET_WATCH, IS_WATCH, WATCH_HIT): Protect arguments with
4422 (SET_BREAK): Increment the debug register's reference count.
4423 (DR_DEF): New macro, returns the access and length bits of the
4425 (SHOW_DR): Print the reference count of each register. Disable or
4426 enable print-out depending on an environment variable GDB_SHOW_DR.
4427 (go32_insert_aligned_watchpoint): Look for an occupied debug
4428 register with the same address and access/length bits, and reuse
4429 it by incrementing reference the count, before occupying another
4430 register. Return zero upon success.
4431 (go32_insert_nonaligned_watchpoint): Pass the read/write bits to
4432 go32_remove_watchpoint.
4433 (go32_remove_watchpoint): Accept an additional parameter: the
4434 read/write bits of the watchpoint to remove, and only remove a
4435 watchpoint if it's occupied and its address and read/write bits
4436 match. Only disable the register if its reference count is zero;
4437 otherwise just decrease the reference count.
4438 (go32_remove_hw_breakpoint): Only decrease reference count and
4439 disable the debug register if it is occupied and its access bits
4440 match those of an instruction breakpoint.
4441 (go32_insert_hw_breakpoint): Before occupying another debug
4442 register, look for an already occupied register that defines an
4443 instruction breakpoint with the same address. If found, increment
4444 its reference count. Call SHOW_DR even if failed to insert a
4447 * config/i386/nm-go32.h (target_remove_watchpoint): Accept the
4448 TYPE argument as well.
4450 Wed Aug 18 17:47:25 1999 Andrew Cagney <cagney@b1.cygnus.com>
4452 * mips-tdep.c: Add more comments.
4454 1999-08-17 Stan Shebs <shebs@andros.cygnus.com>
4456 * blockframe.c: Don't use PARAMS anymore, remove obsolete comment
4457 about frameless functions.
4459 1999-08-16 Michael Snyder <msnyder@cleaver.cygnus.com>
4461 * thread.c (delete_thread): delete any step_resume breakpoint
4462 held by the thread. (prune_threads): call delete_thread.
4463 * breakpoint.c (breakpoint_init_inferior): if startup, then
4464 delete any remaining step_resume breakpoints.
4465 * infrun.c (handle_inferior_event): add cautionary comment.
4467 1999-08-16 Fernando Nasser <fnasser@totem.to.cygnus.com>
4469 * remote.c (remote_async_mourn): New function. Async version of
4472 1999-08-16 Eli Zaretskii <eliz@is.elta.co.il>
4474 * terminal.h [__GO32__]: Remove conditional; DJGPP now supports
4477 1999-08-16 Eli Zaretskii <eliz@is.elta.co.il>
4479 * command.c (CANT_FORK) [__MSDOS__]: Define.
4480 (shell_escape) [CANT_FORK]: If ARG is NULL, pass an empty string
4482 [__DJGPP__]: Return to the original directory after the shell
4485 1999-08-16 Eli Zaretskii <eliz@is.elta.co.il>
4487 * config/i386/xm-go32.h (ROOTED_P): Don't reference X[1] if X[0]
4488 is a null character.
4490 * config/i386/nm-go32.h (DECR_PC_AFTER_HW_BREAK): Define to 1.
4492 1999-08-16 Eli Zaretskii <eliz@is.elta.co.il>
4494 * go32-nat.c (redir_cmdline_parse, redir_cmdline_delete,
4495 redir_to_child, redir_to_debugger, redir_debug_init)
4496 [__DJGPP_MINOR__ < 3]: Dummy stubs for redirecting debuggee's
4498 (print_387_status): Print "last FP instruction", not "last
4499 exception". Restore the upper 5 bits of the opcode that aren't
4500 stored in the FPU state. Print the FPU stack in its physical
4501 order, not relative to ST(0). Print "special", not "trap" for
4502 unnormals and infinities. Print all 10 bytes of each FP register,
4503 and print them with 19 significant digits.
4504 (regno_mapping): Make the mapping consistent with tm-go32.h.
4505 (sig_map): Add mappings for SIGQUIT, SIGFPE, SIGALRM. Map NMI to
4507 (excep_map): New variable, maps GDB signals to DJGPP exceptions.
4508 (go32_attach): Signal an error: we cannot attach to other
4510 (go32_resume): Record the signal with which the inferior should be
4511 resumed, mapped to the DJGPP exception number.
4512 (go32_wait): Pass the signal recorded in go32_resume to the
4513 debuggee. Save and restore debugger's and debuggee's current
4515 [__DJGPP_MINOR__ < 3]: Save and restore inferior's FPU state.
4516 (store_register): FPU regsiters have numbers less than 31.
4517 (go32_kill_inferior): Delete the parsed command-line storage.
4518 (go32_create_inferior): Initialize the parsed command-line
4519 storage. Parse the command line and create the redirections for
4520 inferior's standard handles.
4521 [__DJGPP_MINOR__ < 3]: Init the inferior's FPU state.
4522 (ignore2): Function deleted.
4523 (device_mode): New function, switches a character device between
4524 raw and cooked mode.
4525 (go32_terminal_init): Invalidate the raw/cooked mode information.
4526 (go32_terminal_info): Print whether the inferior's terminal is in
4528 [__DJGPP_MINOR__ > 2]: Say if standard handles are redirected or
4529 closed by the inferior.
4530 (go32_terminal_inferior): Switch standard handles to the
4531 inferior's files/devices. Put the inferior's input device to
4532 raw/cooked mode, exactly like we found it last time.
4533 (go32_terminal_ours): Restore debugger's standard handles and put
4534 the terminal into cooked mode. Save the mode of inferior's input
4536 (init_go32_ops): Assign go32_ops.to_attach,
4537 go32_ops.to_terminal_info, go32_ops.to_terminal_ours_for_output.
4538 Initialize inferior's cwd and the command-line storage.
4540 Mon Aug 16 14:29:30 1999 Jeffrey A Law (law@cygnus.com)
4542 * config/pa/tm-hppa.h (ARGS_GROW_DOWNWARD): Define.
4543 * config/pa/tm-hppa64.h (ARGS_GROW_DOWNWARD): Undefine.
4544 * hppa-tdep.c (hppa_push_arguments): Handle arguments growing in
4545 both directions depending ARGS_GROW_DOWNWARD.
4546 (hppa_find_saved_regs): Update for 64bit wide registers & pointers
4549 * hppa-tdep.c (hppa_pop_frame): Various fixes for 64bit wide
4550 registers and pointers.
4551 (hppa_fix_call_dummy, skip_trampoline_code): Likewise.
4552 (restore_pc_queue): Update tests for width of memory loads.
4553 (hppa_push_arguments): Delete version that was #if 0'd out.
4555 * hppa-tdep.c (push_dummy_frame): Handle the new 64it ABI.
4556 (find_dummy_frame_regs): Corresponding changes.
4558 * hppa-tdep.c (read_unwind_info): Initialize obj_private->dp.
4559 (internalize_unwinds): Improve test for when to use segment
4560 relative code for unwinder bounds.
4561 (rp_saved): Fix offset of saved return pointer for the 64bit ABI.
4562 (hppa_frame_saved_pc): Various updates to handle 64bit registers
4564 (frame_chain, restore_pc_queue): Likewise.
4566 * hppa-tdep.c (rp_saved): RP is saved at frame-16 when
4567 pointers are 64bits wide.
4569 * hppa-tdep.c (record_text_segment_lowaddr): New function.
4570 (internalize_unwinds): Use it if addressess are 8 bytes wide.
4572 * symfile.c (syms_from_objfile): No longer warn if the lowest
4573 section does not have SEC_CODE set.
4575 * Makefile.in (pa64solib.o): Add dependencies.
4577 * hppah-nat.c (store_inferior_registers): Do not try to write a
4578 nonzero value to the high part of IPSW. Fix typo in unable to store
4581 * config/pa/tm-hppa.h (opd_data structure): Delete. Not actually
4583 (struct obj_private_struct): Add new entry for the objfile's DP
4585 * config/pa/tm-hppa64.h (CALL_DUMMY): Add a nop to make it an even
4586 number of instructions. Pack the dummy into word sized hunks.
4587 (CALL_DUMMY_LENGTH): Update appropriately.
4588 (PC_IN_CALL_DUMMY, CALL_DUMMY_LOCATION_AFTER_TEXT_END): Delete.
4590 Mon Aug 16 19:08:19 1999 Andrew Cagney <cagney@b1.cygnus.com>
4592 * configure.in: Try -lsocket when looking for socketpair.
4593 * configure, config.h: Re-generate.
4595 1999-08-13 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
4597 From Christopher Faylor <cgf@cygnus.com>:
4599 * event-loop.c (gdb_wait_for_event): Before going to wait for
4600 another event with select or poll, flush the error and the output
4603 * event-top.c (gdb_readline2): Do not buffer the input, because
4604 doing so can interfere with select/poll in bad ways.
4606 Fri Aug 13 17:36:56 1999 Eli Zaretskii <eliz@is.elta.co.il>
4608 * maint.c (maintenance_dump_me) [__DJGPP__]: Simulate a core dump
4610 * utils.c (quit) [__MSDOS__]: Don't mention SIGINT, since it's not
4612 (notice_quit): No need to define this function for the DJGPP port.
4614 1999-08-13 James Ingham <jingham@leda.cygnus.com>
4616 * arm-tdep.c (arm_frameless_function_invocation): SKIP_PROLOGUE
4617 macro no longer modifies its argument. Update uses to accord.
4619 * config/arm/arm.mt (TDEPFILES): Add the remote-rdi.o to the
4621 * configure.tgt: Add rdi-share to configdir for the Arm targets.
4623 Fri Aug 13 11:16:32 1999 Jeffrey A Law (law@cygnus.com)
4625 * hppah-nat.c (store_inferior_registers): Revamp to be PA2.0W
4628 * infttrace.c (ttrace_write_reg_64): New function.
4630 * hp-symtab-read.c (is_in_import_list): Delete extern declaration.
4631 * somread.c (is_in_import_list): Delete function.
4632 * objfiles.c (is_in_import_list): New function.
4633 * objfiles.h (is_in_import_list): Declare.
4635 * config/pa/tm-hppa64.h (GDB_TARGET_IS_HPPA20W): Define before
4636 including tm-hppah.h.
4637 (PC_IN_CALL_DUMMY): Define.
4638 (HPUX_1100): Similarly.
4639 * config/pa/tm-hppa.h (somsolib.h, pa64solib.h): Conditionalize
4640 includes on GDB_TARGET_IS_HPPA20W.
4642 * configure.host: Distinguish between wide and narrow modes
4644 * config/pa/hpux1100w.mh, config/pa/hpux1100w.mt: New files.
4646 * config/pa/tm-hppa64.h (STACK_ALIGN): Redefine.
4647 (REG_PARM_STACK_SPACE): Likewise.
4649 * config/pa/tm-hppa.h (CLEAN_UP_REGISTER_VALUE): Handle 64bit
4650 PA target correctly.
4651 (REG_PARM_STACK_SPACE): Define.
4652 (struct unwind_table_entry): region_start and region_end are
4654 (typedef opd_data): New.
4655 (obj_private_data_t): Include pointer to opd_data structure.
4657 1999-08-13 Keith Seitz <keiths@cygnus.com>
4659 * stabsread.c (stabsread_clear_cache): New funciton which clears
4660 an optimization cache of the reader.
4662 * coffread.c (coff_symfile_finish): Give stabs reader a chance to
4665 * win32-nat.c (handle_load_dll): Don't suppress re-reading symbols
4666 from a DLL if an objfile for it already exists. (Not that this should
4667 happen anymore anyway...)
4669 1999-08-13 Keith Seitz <keiths@cygnus.com>
4671 * config/mcore/tm-mcore.h (SAVE_DUMMY_FRAME_TOS): Define for MCore,
4672 which also requires that the stack pointer be saved for call
4673 dummies BEFORE arguments get pushed onto it.
4675 1999-08-12 Stan Shebs <shebs@andros.cygnus.com>
4677 From Eli Zaretskii <eliz@is.elta.co.il>:
4678 * source.c (mod_path) [_WIN32 || __DJGPP__]: Don't remove trailing
4679 slash from "d:/". Don't overstep the beginning of name.
4680 [_WIN32 || __MSDOS__]: Convert "d:" to "d:.", otherwise appending
4681 a slash changes its meaning.
4682 (openp): Use SLASH_P, not equality with SLASH_CHAR.
4683 (print_source_lines_base) [CRLF_SOURCE_FILES]: Skip \r only before
4685 (forward_search_command) [CRLF_SOURCE_FILES]: Remove \r at the end
4687 (reverse_search_command) [CRLF_SOURCE_FILES]: Likewise.
4689 * gnu-regex.c (CHAR_CLASS_MAX_LENGTH): Don't use wide characters
4690 unless HAVE_BTOWC is defined.
4692 Fri Aug 13 10:20:12 1999 Andrew Cagney <cagney@b1.cygnus.com>
4694 From J.T. Conklin <jtc@redback.com>:
4695 * gdbinit.in: Change the template .gdbinit to match the recent
4696 fatal error handling change.
4698 1999-08-11 Keith Seitz <keiths@cygnus.com>
4700 * maint.c (maintenance_internal_error): Fix typo in prototype.
4702 Wed Aug 11 15:38:05 1999 Andrew Cagney <cagney@amy.cygnus.com>
4704 * remote.c (remote_rcmd): Pass an empty command across to the
4705 target. Check for and handle an ``Enn'' return status.
4707 Tue Aug 10 13:59:45 1999 Andrew Cagney <cagney@b1.cygnus.com>
4709 * maint.c (_initialize_maint_cmds): Add ``maintenance
4710 internal-error'' command.
4711 (maintenance_internal_error): New function.
4713 1999-08-10 James Ingham <jingham@leda.cygnus.com>
4715 * top.c: Remove the disassembly_flavor_hook, use the new set_hook
4718 * arm-tdep.c (set_disassembly_flavor_sfunc): Ditto.
4720 1999-08-10 Michael Snyder <msnyder@cleaver.cygnus.com>
4722 * config/i386/nm-i386sol2.h (FIND_NEW_THREADS): remove, obsolete.
4723 * config/sparc/nm-sun4sol2.h (FIND_NEW_THREADS): remove, obsolete.
4725 1999-08-10 J.T. Conklin <jtc@redback.com>
4727 * configure.tgt (i[3456]86-*-aout*, i[3456]86-*-coff*,
4728 i[3456]86-*-elf*): Use embed.mt.
4729 * config/i386/embed.mt: New file.
4731 1999-08-10 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
4733 * remote.c (remote_async_open_1): Remove casting in call to
4735 (extended_remote_async_create_inferior): Ditto.
4737 * event-top.c (change_line_handler): Ditto.
4738 (_initialize_event_loop): Ditto.
4740 * infrun.c (complete_execution): Ditto.
4742 * event-loop.c (add_file_handler): Change proc parameter to be ptr
4743 to func with void parameter, rather than void*. Coerce second
4744 paramter in calls to create_file_handler. Replace
4745 async_handler_func and file_handler_func with handler_func.
4747 * event-loop.h: Get rid of typedefs for file_handler_func and
4748 async_handler_func, just have one, and call it handler_func.
4749 Replace async_handler_func and file_handler_func occurrences with
4752 Tue Aug 10 03:13:03 1999 Jeffrey A Law (law@cygnus.com)
4754 * hppa-tdep.c: Delete random #if 0 code.
4755 (is_branch): Handle new branching opcodes from PA2.0
4756 (inst_saves_gr, inst_saves_fr): Handle additional instructions
4757 used to save general and floating point registers in the stack.
4758 (skip_prologue_hard_way): Handle additional instructions to
4759 save the return pointer in the stack.
4760 (after_prologue): Fix mis-guided and incorrect code to find
4761 the end of the prologue using debug symbols.
4762 (hppa_skip_prologue): Generally clean up comments, lose code
4763 which does not apply to the PA, etc.
4765 Sun Aug 8 17:53:41 1999 Andrew Cagney <cagney@amy.cygnus.com>
4767 * MAINTAINERS: Make Andrew Cagney the mn10300 maintainer.
4768 Transfer responsibility for the PowerPC from Andrew Cagney to
4771 Tue Aug 10 13:59:45 1999 Andrew Cagney <cagney@b1.cygnus.com>
4773 Based on code from J.T. Conklin <jtc@redback.com>:
4774 * utils.c (internal_error): Make quit? and coredump? separate
4775 questions so that the user can dump-core and not quit.
4776 (internal_error): Cleanup error message.
4778 1999-08-09 Tom Tromey <tromey@cygnus.com>
4780 * kod-cisco.c (cisco_kod_open): Removed incorrect `arg' argument.
4782 Sun Aug 8 12:06:47 1999 Fred Fish <fnf@cygnus.com>
4784 * coffread.c (process_coff_symbol): Remove section_offsets from
4785 prototype and function definition. Get section_offsets from the
4786 passed objfile and pass it on to callees the same way.
4787 (coff_symtab_read): Ditto.
4788 (coff_symfile_read): Ditto.
4789 * dbxread.c (read_dbx_dynamic_symtab): Ditto.
4790 (read_dbx_symtab): Ditto.
4791 (dbx_symfile_read): Ditto.
4792 (coffstab_build_psymtabs): Ditto.
4793 (elfstab_build_psymtabs): Ditto.
4794 (stabsect_build_psymtabs): Ditto.
4795 * dstread.c (dst_symfile_read): Ditto.
4796 * elfread.c (elf_symfile_read): Ditto.
4797 * jv-class.c (jv_class_symfile_read): Ditto.
4798 * mipsread.c (mipscoff_symfile_read): Ditto.
4799 * nlmread.c (nlm_symfile_read): Ditto.
4800 * os9kread.c (os9k_symfile_read): Ditto.
4801 * somread.c (som_symfile_read): Ditto.
4802 * stabsread.h (elfstab_build_psymtabs): Ditto.
4803 * xcoffread.c (xcoff_initial_scan): Ditto.
4805 * symfile.h (sym_read): Remove section_offsets from prototype.
4806 * symfile.c (syms_from_objfile): Call sym_read without
4808 (reread_symbols): Ditto.
4810 * elfread.c (elfstab_offset_sections): Use SIZEOF_SECTION_OFFSETS
4811 to allocate sections offsets array.
4812 * xcoffread.c (xcoff_symfile_offsets): Ditto.
4814 * partial-stab.h (section_offsets): Get from objfile.
4815 * dbxread.c (read_dbx_symtab): Fix typo that made -1 casted
4816 to a CORE_ADDR look like an subtraction expression.
4817 * objfiles.h: Add some comments.
4818 * symfile.c: Add some comments.
4819 * objfiles.c: Add some comments.
4820 (objfile_relocated): Use ALL_OBJFILE_OSECTIONS to iterate over
4822 (find_pc_sect_sections): Use ALL_OBJSECTIONS to iterate over all
4823 sections in all objfiles.
4824 * symfile.c (syms_from_objfile): Use ALL_OBJFILE_OSECTIONS.
4826 * irix5-nat.c (symbol_add_stub): Fix typo that made taking the
4827 address of lowest_sect with '&' look like a bitwise and op.
4828 * osfsolib.c (symbol_add_stub): Ditto.
4829 * solib.c (symbol_add_stub): Ditto.
4830 * symfile.c (syms_from_objfile): Ditto.
4832 * dwarf2read.c (dwarf2_build_psymtabs_hard): Minor format tweak.
4833 * symfile.c (syms_from_objfile): Ditto, and fix typo.
4834 * top.c (init_main): Fix typo in comment (DEFULAT_PROMPT).
4835 * doc/gdbint.texinfo (find_sym_fns): This replaces symfile_init.
4837 1999-08-08 James Ingham <jingham@leda.cygnus.com>
4839 * remote.c (remote_insert_breakpoint): Fix typo in Z packet support.
4840 Also move Z packet support OUTSIDE of REMOTE_BREAKPOINT ifdef,
4841 since this is not set for all targets that support the Z packet.
4843 Sun Aug 8 17:24:09 1999 Andrew Cagney <cagney@b1.cygnus.com>
4845 * ui-out.c (ui_out_table_begin, ui_out_table_body,
4846 ui_out_table_end, ui_out_table_header, ui_out_list_begin,
4847 ui_out_list_end, ui_out_stream_new, verify_field_proper_position,
4848 verify_field_alignment): Replace incorrect calls to error with
4849 calls to internal_error.
4851 Fri Aug 6 17:17:28 1999 Andrew Cagney <cagney@b1.cygnus.com>
4853 * defs.h (fatal): Delete declaration.
4854 (internal_error): Declare.
4855 * utils.c (nomem): Call internal_error instead of fatal.
4856 (fatal_dump_core): Delete.
4857 (malloc_botch): Print message direct to stderr.
4858 (fatal): Delete definition.
4859 * utils.c (internal_error): Define.
4861 * gdbarch.h, gdbarch.c, hppah-nat.c, ch-exp.c, dsrec.c, sh-tdep.c,
4862 infptrace.c, f-lang.c, symm-nat.c, top.c, m3-nat.c, v850-tdep.c,
4863 remote-vx.c, remote-sim.c, remote-mips.c, source.c, infcmd.c,
4864 findvar.c, remote.c: Replace fatal with call to internal_error.
4866 Sun Aug 8 15:28:33 1999 Andrew Cagney <cagney@b1.cygnus.com>
4868 * ser-pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Move
4869 definition from here.
4872 Sat Aug 7 21:44:59 1999 Fred Fish <fnf@cygnus.com>
4874 * remote.c (remote_insert_breakpoint): Fix typo, missing ';'.
4876 Sun Aug 8 11:26:57 1999 Andrew Cagney <cagney@b1.cygnus.com>
4878 * mips-tdep.c (mips_gdbarch_init): Add break; to the default case.
4880 Fri Aug 6 19:26:03 1999 Andrew Cagney <cagney@b1.cygnus.com>
4882 * defs.h: Delete #if ANSI_PROTOTYPES code, GDB assumes ISO-C.
4883 * remote-rdp.c (send_rdp), remote-os9k.c (printf_monitor),
4884 remote-mips.c: (mips_error), remote-array.c: (printf_monitor,
4885 debuglogs), complaints.c (complain), monitor.c:
4886 (monitor_printf_noecho, monitor_printf), language.c (type_error,
4887 range_error), remote-st.c: (printf_stdebug), remote-sim.c
4888 (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
4889 gdb_os_evprintf_filtered, gdb_os_error), serial.c (serial_printf),
4890 utils.c (warning, error, fatal, fatal_dump_core, (query,
4891 fprintf_filtered, fprintf_unfiltered, fprintfi_filtered,
4892 printf_filtered, printf_unfiltered, printfi_filtered): Delete
4893 legacy #ifndef ANSI_PROTOTYPES varargs code.
4895 * defs.h: Don't #include <varargs.h>.
4896 * remote-rdp.c, remote-os9k.c, remote-mips.c, remote-array.c,
4897 monitor.c, remote-st.c: Don't include <varargs.h> or <stdarg.h>.
4899 1999-08-06 James Ingham <jingham@leda.cygnus.com>
4901 * configure.in, configure: add the --enable-multi-ice to determine
4902 whether to configure and build the multi-ice-gdb-server. Note,
4903 for now this only builds on cygwin, so don't enable it for other
4906 1999-08-06 Tom Tromey <tromey@cygnus.com>
4908 * Makefile.in (SFILES): Added kod.c and kod-cisco.c.
4909 (COMMON_OBS): Added kod.o and kod-cisco.o.
4910 (kod-cisco.o): New target.
4911 (kod.o): New target.
4912 * kod-cisco.c: New file.
4915 1999-08-06 James Ingham <jingham@leda.cygnus.com>
4917 These are some fixups for the Arm, and support for the
4918 disassembly-flavor for the ARM.
4920 * defs.h: Declare the disassembly_flavor_hook
4921 * top.c: Define the disassembly_flavor_hook
4922 * i386-tdep.c: Remove unnecessary declaration of the
4923 disassembly_flavor_hook.
4925 * config/arm/tm-arm.h: Change definition of
4926 arm_init_extra_frame_info.
4927 Add a few more comments.
4928 * arm-tdep.c (arm_init_extra_frame_info): Listen to and use the
4929 fromleaf parameter passed into init_extra_frame_info.
4930 (set_disassembly_flavor_sfunc): New Function.
4931 (set_disassembly_flavor): New Function.
4932 (arm_othernames): Use the set_disassembly_flavor.
4933 (_initialize_arm_tdep): Setup the disassembly flavor commands, and
4934 initialize the flavor.
4935 (arm_frameless_function_invocation): Adjust for
4936 frameless functions that have 1 or 2 instructions that mimic the
4938 (arm_scan_prologue): Be more careful about scanning the function
4939 prologue. Don't match things that just have a few of the prologue
4940 instructions out of order, and don't get thrown by the scheduler
4941 migrating instructions into the prologue.
4943 Add support for the "Z" and "z" packets to request the stub
4944 to set a breakpoint.
4946 * remote.c (set_remote_protocol_Z_packet_cmd): New function.
4947 (show_remote_protocol_Z_packet_cmd): New Function.
4948 (remote_open_1): Init the Z packet config.
4949 (remote_async_open_1): Init the Z packet config.
4950 (remote_insert_breakpoint): Use the "Z" packet if supported.
4951 (remote_remove_breakpoint): Use the "z" packet if supported.
4952 (remote_insert_watchpoint): New Function - currently wired to
4954 (remote_remove_watchpoint): Ditto.
4955 (remote_insert_hw_breakpoint): Ditto.
4956 (remote_remove_hw_breakpoint): Ditto.
4958 1999-08-06 Stan Shebs <shebs@andros.cygnus.com>
4960 * infcmd.c: Include parser-defs.h.
4961 (interrupt_target_command): Declare.
4962 (stack_dummy_testing): Remove old funky flag.
4963 (run_stack_dummy): Remove unused reference to old funky flag.
4965 1999-08-06 Tom Tromey <tromey@cygnus.com>
4967 * command.c (do_setshow_command): Call set_hook if not NULL.
4968 * top.c (set_hook): New hook definition.
4969 * defs.h (set_hook): Declare.
4971 1999-08-05 Stan Shebs <shebs@andros.cygnus.com>
4973 * infrun.c: Convert code to pure standard C, elim some warnings.
4974 (stopped_for_shlib_catchpoint): Remove, never used.
4976 1999-08-05 Keith Seitz <keiths@cygnus.com>
4978 * NEWS: Mention new Motorola MCore target.
4980 * sparc-tdep.c (gdb_print_insn_sparc): Print insns of the current
4983 Thu Aug 5 20:41:22 1999 Andrew Cagney <cagney@b1.cygnus.com>
4985 * configure.in (configdirs): Add check for socketpair.
4986 * configure, config.in: Re-generate.
4988 From Mon Jul 19 10:46:18 1999 Philippe De Muyter <phdm@macqel.be>:
4989 * ser-pipe.c (sys/wait.h): Include this file only #if HAVE_SYS_WAIT_H.
4990 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Macros defined if needed.
4992 Thu Aug 5 20:04:17 1999 Andrew Cagney <cagney@b1.cygnus.com>
4994 * target.c (debug_to_open, debug_to_attach, debug_to_post_attach,
4995 debug_to_require_attach, debug_to_detach, debug_to_require_detach,
4996 debug_to_wait, debug_to_post_wait, debug_to_fetch_registers,
4997 debug_to_store_registers, debug_to_prepare_to_store,
4998 debug_to_xfer_memory, debug_to_files_info,
4999 debug_to_insert_breakpoint, debug_to_remove_breakpoint,
5000 debug_to_terminal_init, debug_to_terminal_inferior,
5001 debug_to_terminal_ours_for_output, debug_to_terminal_ours,
5002 debug_to_terminal_info, debug_to_kill, debug_to_load,
5003 debug_to_lookup_symbol, debug_to_create_inferior,
5004 debug_to_post_startup_inferior,
5005 debug_to_acknowledge_created_inferior,
5006 debug_to_clone_and_follow_inferior,
5007 debug_to_post_follow_inferior_by_clone,
5008 debug_to_insert_fork_catchpoint, debug_to_remove_fork_catchpoint,
5009 debug_to_insert_vfork_catchpoint,
5010 debug_to_remove_vfork_catchpoint, debug_to_has_forked,
5011 debug_to_has_vforked, debug_to_can_follow_vfork_prior_to_exec,
5012 debug_to_post_follow_vfork, debug_to_insert_exec_catchpoint,
5013 debug_to_remove_exec_catchpoint, debug_to_has_execd,
5014 debug_to_reported_exec_events_per_exec_call,
5015 debug_to_has_syscall_event, debug_to_has_exited,
5016 debug_to_mourn_inferior, debug_to_can_run,
5017 debug_to_notice_signals, debug_to_thread_alive, debug_to_stop,
5018 debug_to_query, debug_to_rcmd, debug_to_enable_exception_callback,
5019 debug_to_get_current_exception_event, debug_to_pid_to_exec_file,
5020 debug_to_core_file_to_sym_file, debug_to_close): Send trace output
5021 to ``gdb_stdlog'' instead of ``gdb_stderr''.
5023 Thu Aug 5 16:22:10 1999 Andrew Cagney <cagney@b1.cygnus.com>
5025 * remote.c (init_remote_ops): Initialize remote_ops.to_rcmd.
5026 (init_remote_async_ops): Initialize remote_async_ops.to_query.
5027 (remote_rcmd): New function.
5029 * monitor.c (monitor_rcmd): Rename monitor_command.
5030 (init_base_monitor_ops): Initialize monitor_ops.to_rcmd.
5031 (_initialize_remote_monitors): Move "monitor" command from here.
5032 * target.c (initialize_targets): To here.
5033 (monitor_command): New function. Implement "monitor" command.
5035 * target.c (cleanup_target): de_fault to_rcmd.
5036 (update_current_target): INHERIT to_rcmd.
5037 (debug_to_rcmd): New function.
5038 (setup_target_debug): Initialize current_target.to_rcmd.
5040 * target.h (struct target_ops): Add field to_rcmd.
5041 (target_rcmd): Define.
5043 Thu Aug 5 14:24:07 1999 Andrew Cagney <cagney@b1.cygnus.com>
5045 * remote.c: Replace comment describing remote protocol with
5046 pointer to official document.
5048 Thu Aug 5 11:59:06 1999 Andrew Cagney <cagney@b1.cygnus.com>
5050 * remote.c (remote_protocol_binary_download): New variable.
5051 Replace ``remote_binary_download'' and ``remote_binary_checked''.
5052 (set_remote_protocol_binary_download_cmd,
5053 show_remote_protocol_binary_download_cmd): New functions.
5054 (remote_open_1, remote_async_open_1, remote_cisco_open):
5055 Initialize ``remote_protocol_binary_download'' instead of
5056 ``remote_binary_download''.
5057 (check_binary_download): Re-write.
5058 (remote_write_bytes): Ditto.
5059 (_initialize_remote): Add ``set remote X-packet'' and ``show
5060 remote X-packet'' commands. Disable old ``set
5061 remotebinarydownload'' command.
5063 1999-08-04 Keith Seitz <keiths@cygnus.com>
5065 * remote-rdi.c (arm_rdi_close): Close the transport device, too.
5067 Wed Aug 4 10:42:58 1999 Fred Fish <fnf@cygnus.com>
5069 * xcoffread.c (scan_xcoff_symtab): Change main_aux into
5070 an array of 5 internal_auxent to leave room for bfd to
5071 write n_numaux entries. Change code to use the first one.
5073 Wed Aug 4 19:58:15 1999 Andrew Cagney <cagney@b1.cygnus.com>
5075 * ui-out.h (cli_out_new): Move declaration from here.
5076 * cli-out.h: To here. New file.
5077 * Makefile.in (ui-out.o): Add missing dependencies.
5079 * top.c, cli-out.c: #include "cli-out.h".
5081 1999-08-02 Stan Shebs <shebs@andros.cygnus.com>
5083 * c-valprint.c (c_val_print): When printing decimal equivalent
5084 of a char, cast appropriately.
5086 1999-08-02 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
5088 From Jonathan Larmour <jlarmour@cygnus.co.uk>:
5089 * main.c (print_gdb_help): Use gdbinit variable to determine file
5090 name used for --nx help
5092 1999-08-01 Jason Molenda (jsm@bugshack.cygnus.com)
5094 * config/mips/tm-mips.h (BIG_ENDIAN): Don't define here.
5096 1999-08-01 Jim Blandy <jimb@zwingli.cygnus.com>
5098 * stabsread.c (read_range_type): Handle an unsigned range type
5099 whose length in bytes is any power of two, not just a few
5102 * monitor.c (monitor_expect): When we receive a character that
5103 isn't part of the string we were expecting, don't just start
5104 matching again at the beginning of the string --- some shorter
5105 suffix of the input might be a prefix of the string too.
5107 1999-07-31 Fred Fish <fnf@cygnus.com>
5109 * symfile.c (symbol_file_command): Fix typo that made -1 casted
5110 to a CORE_ADDR look like an subtraction expression.
5111 (add_symbol_file_command): Ditto.
5113 1999-07-30 Jim Blandy <jimb@cygnus.com>
5115 * hppa-tdep.c (pa_print_registers): Frob register output some more.
5117 1999-07-29 Jim Blandy <jimb@cygnus.com>
5119 * config/pa/nm-hppah.h (PTRACE_ARG3_TYPE): After more
5120 consideration, make this a CORE_ADDR, like WDB did.
5122 Rather than casting every single use of really_free_pendings to
5123 make_cleanup_func, why not actually make it have that type? Golly!
5124 * buildsym.c (really_free_pendings): Change argument type to PTR.
5125 buildsym.h (really_free_pendings): Fix declaration.
5126 * dbxread.c (dbx_symfile_read, dbx_psymtab_to_symtab_1),
5127 dwarf2read.c (psymtab_to_symtab_1), dwarfread
5128 (psymtab_to_symtab_1), hp-psymtab-read.c (hpread_build_psymtabs),
5129 os9kread.c (os9k_symfile_read, os9k_psymtab_to_symtab_1),
5130 xcoffread.c (xcoff_psymtab_to_symtab_1, xcoff_initial_scan):
5133 Pass a CORE_ADDR safely through catch_errors.
5134 * hppa-tdep.c (args_for_find_stub): New member, return_val.
5135 (cover_find_stub_with_shl_get): Change argument and return type to
5136 match catch_errors. Save return value of find_stub_with_shl_get
5138 (initialize_hp_cxx_exception_support): Collect value of
5139 eh_notify_callback_addr from args.
5141 Get rid of some noise. It would be nice to get helpful warnings
5142 from the compiler about lossy conversions.
5143 * hppa-tdep.c (eh_notify_hook_addr, eh_notify_callback_addr,
5144 eh_break_addr, eh_catch_catch_addr, eh_catch_throw_addr,
5145 break_callback_sal): Initialize these to zero, not NULL, to shush
5147 * infttrace.c (thread_fake_step): Compare signal to
5148 TARGET_SIGNAL_0, not NULL, to avoid warnings.
5149 (_initialize_infttrace): Add sanity check.
5151 * config/pa/nm-hppah.h (PTRACE_ARG3_TYPE): Define this to be
5152 long, so we can pass arguments properly to ptrace.
5154 * hppah-nat.c (child_xfer_memory): Correctly compute mask to round
5155 address to an int boundary.
5157 1999-07-29 Jim Blandy <jimb@cygnus.com>
5159 Change from Ian Lance Taylor <ian@zembu.com>. The
5160 i386_linux_sigtramp* functions should be moved to
5161 i386-linux-tdep.c, when that file is introduced.
5163 * config/i386/tm-linux.h (LINUX_SIGCONTEXT_SIZE): Define.
5164 (LINUX_SIGCONTEXT_PC_OFFSET): Define.
5165 (LINUX_SIGCONTEXT_SP_OFFSET): Define.
5166 (SIGCONTEXT_PC_OFFSET): Don't define.
5167 (I386_LINUX_SIGTRAMP): Define.
5168 (IN_SIGTRAMP): Define.
5169 (i386_linux_sigtramp): Declare.
5170 (sigtramp_saved_pc): Define.
5171 (i386_linux_sigtramp_saved_pc): Declare.
5172 (FRAMELESS_SIGNAL): Define.
5173 (FRAME_CHAIN, FRAME_SAVED_PC): Define after #undef.
5174 * i386-tdep.c (i386_linux_sigtramp_start): New static function if
5175 I386_LINUX_SIGTRAMP.
5176 (i386_linux_sigtramp): New function if I386_LINUX_SIGTRAMP.
5177 (i386_linux_sigtramp_saved_pc): Likewise.
5178 (i386_linux_sigtramp_saved_sp): Likewise.
5180 1999-07-28 Jim Blandy <jimb@cygnus.com>
5182 * infrun.c (handle_inferior_event): Don't try to use the code for
5183 stepping over a function call to also handle stepping out of a
5184 sigtramp on HP-UX. That ends up trashing step-resume breakpoints.
5185 This change reverts some of David Taylor's change of 31 Dec 1998.
5186 The HP-UX maintainer needs to submit a new change for whatever
5187 problem the original change was trying to fix.
5189 1999-07-28 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
5191 * event-top.c (command_line_handler): Don't treat an empty line
5192 from readline the same way as a multiline command. This avoids
5193 missing detecting when the user presses just 'enter'.
5195 1999-07-28 Jim Blandy <jimb@cygnus.com>
5197 Provide more sanity checking:
5198 * infrun.c (handle_inferior_event): Before assigning a new
5199 breakpoint to step_resume_breakpoint, make sure it's not already
5200 pointing at one; if it is, that's a bug.
5201 (check_for_old_step_resume_breakpoint): New function.
5203 1999-07-28 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
5205 From Eli Zaretskii <eliz@is.elta.co.il>:
5206 * top.c (gdb_init) [__MSDOS__]: Arrange for GDB to return to the
5207 original directory before exiting.
5208 (cd_command) [_WIN32 || __MSDOS__]: Canonicalize the new directory
5209 name explicitly. Handle "d:/" names correctly.
5210 (init_history) [__MSDOS__]: Use _gdb_history as the default GDB
5213 Mon Jul 26 17:13:39 1999 Andrew Cagney <cagney@b1.cygnus.com>
5215 * remote.c (enum packet_support, enum packet_detect, struct
5216 packet_config): Define.
5217 (set_packet_config_cmd, show_packet_config_cmd,
5218 add_packet_config_cmd, init_packet_config): New functions.
5219 Generic support for optional packets.
5220 (remote_protocol_P): Replace stub_supports_P.
5221 (set_remote_protocol_P_packet_cmd, show_remote_protocol_P_packet_cmd):
5223 (_initialize_remote): Add ``set remote-protocol-P-packet'' command.
5224 (remote_open_1, remote_async_open_1, remote_cisco_open):
5225 Initialize ``remote_protocol_P''.
5226 (remote_store_registers): Re-write ``P'' probe logic.
5227 (store_register_using_P): New function.
5229 From Ian Lance Taylor <ian@airs.com>:
5230 (remote_prepare_to_store): Only read registers when ``P'' packet
5231 is in state unsupported or support-unknown.
5233 1999-07-24 Fred Fish <fnf@cygnus.com>
5235 * symfile.c (default_symfile_offsets): Clear section_offsets
5236 before filling it in.
5238 1999-07-16 Keith Seitz <keiths@cygnus.com>
5240 * remote.c (_initialize_remote): "remotebreak" should be a var_boolean.
5242 1999-07-15 Jim Blandy <jimb@cygnus.com>
5244 Make the output from "info registers" fit withinin 80 columns.
5245 * hppa-tdep.c (pa_print_registers): Make it easy to change row and
5246 column counts. Switch to three columns, instead of four, and
5249 First cut at supporting HPPA2.0 in "wide" (64-bit) mode.
5250 * configure.tgt: Add hppa2.0w target.
5251 * config/pa/hppa64.mt, config/pa/tm-hppa64.h: New files.
5252 * hppa-tdep.c (hppa_fix_call_dummy): Dyke out code to tweak the
5253 call dummy, if target is PA2.0w. This is temporary, until I get
5254 function calls working.
5255 * hppah-nat.c (fetch_register): Rewritten to handle both narrow
5256 and wide register requests.
5257 (HPPAH_OFFSETOF): New macro.
5259 * gdbtypes.c (is_integral_type): New function.
5260 * gdbtypes.h: Prototype for above.
5262 1999-07-15 J.T. Conklin <jtc@redback.com>
5264 * configure.tgt (i[3456]86-*-vxworks*): New target.
5265 * config/i386/vxworks.mt: New file, x86 VxWorks target
5266 * config/i386/tm-vxworks.h: New file.
5268 * configure.tgt (powerpc-*-vxworks*): New target.
5269 * config/powerpc/vxworks.mt: New file, PowerPC VxWorks target
5270 * config/powerpc/tm-vxworks.h: New file.
5272 * NEWS: Mention the new configs.
5274 1999-07-15 Fernando Nasser <fnasser@totem.to.cygnus.com>
5276 * ui-out.c (struct ui_out): Remove deprecated fields.
5278 1999-07-15 Fernando Nasser <fnasser@cygnus.com>
5280 * target.c (target_preopen): Prevent query when not from_tty.
5281 * infcmd.c (run_command): Prevent query when not from_tty.
5283 1999-07-15 Fernando Nasser <fnasser@cygnus.com>
5285 * event-loop.c: Fix typo in comment.
5287 1999-07-15 Fernando Nasser <fnasser@cygnus.com>
5289 * breakpoint.c (breakpoint_1): Fix output when no breakpoins are
5292 1999-07-15 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
5294 * event-top.c (display_gdb_prompt): Don't do anything if we are
5295 running under the interpreter.
5297 Wed Jul 14 17:29:31 1999 Andrew Cagney <cagney@b1.cygnus.com>
5299 * ser-pipe.c (struct pipe_state): Define.
5300 (pipe_close): Retain the PID of the sub-process using ``struct
5301 pipe_state''. Delete #ifdef code that used popen().
5302 (pipe_close): Kill of the sub-process as part of the cleanup.
5304 * serial.h (struct _serial_t): Add field ``state''.
5306 1999-07-13 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
5308 * event-top.c (display_gdb_prompt): Don't display the prompt if we
5309 are in the middle of an execution command. Also trick readline so
5310 it doesn't try to display the prompt.
5311 (command_line_handler): Get rid of change_prompt, unused variable.
5312 Use {push, pop}_prompt mechanism in case of multiline commands.
5314 * infrun.c (complete_execution): Set target_executing to 0 as
5315 first thing, so that display_gdb_prompt does the right thing.
5317 Tue Jul 13 20:29:46 1999 Andrew Cagney <cagney@b1.cygnus.com>
5319 * parse.c (build_parse): Fix conditional increment of num_std_regs
5320 for SP_REGNUM. Was conditional on FP_REGNUM.
5322 Tue Jul 13 16:44:58 1999 Andrew Cagney <cagney@b1.cygnus.com>
5324 * gdbarch.h, gdbarch.c: Revert 1999-07-07 Stan Shebs
5325 <shebs@andros.cygnus.com> indentation change. Don't let indent
5326 mess with these files.
5328 Mon Jul 12 11:15:09 1999 Andrew Cagney <cagney@b1.cygnus.com>
5330 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_RAW,
5331 REGISTER_CONVERT_TO_VIRTUAL, REGISTER_CONVERTIBLE): Define.
5332 (REGISTER_RAW_SIZE): Re-define as mips_register_convert_to_raw.
5333 * mips-tdep.c (mips_register_convert_to_raw,
5334 mips_register_convert_to_virtual, ): New functions.
5335 (mips_register_raw_size, mips_register_convertible): New
5336 functions. Handle bug introduced by ``Wed Apr 1 23:13:23 1998
5337 Andrew Cagney <cagney@b1.cygnus.com>'' where remote mips64 target
5338 transfers SR as 64 bits yet GDB expected only 32 bits.
5339 (mips64_transfers_32bit_regs): New static variable.
5340 (_initialize_mips_tdep): Add obscure command ``set
5341 remote-mips64-transfers-32bit-regs'' that provides backward
5343 (do_gp_register_row): Extract register values from raw buffer.
5345 * NEWS: Document protocol change.
5347 1999-07-12 Keith Seitz <keiths@cygnus.com>
5349 * rdi-share/unixcomm.c (Unix_ResetSerial): Remove CYGWIN32
5350 conditional. It's no longer needed.
5351 (SERPORT1, SERPORT2): Linux serial ports are "/dev/ttyX", not
5352 "/dev/cuaX" (X=0,1,2,3,...).
5354 Mon Jul 12 02:02:00 1999 Andrew Cagney <cagney@amy.cygnus.com>
5356 * defs.h, utils.c (fputstrn_filtered, fputstrn_unfiltered,
5357 fputstrnn_unfiltered): New functions.
5358 (gdb_printchar): Delete.
5360 * remote.c (print_packet): Replace gdb_printchar with
5362 (getpkt): Use fputstrn_unfiltered to dump packet received.
5363 (putpkt_binary): Use fputstrnn_unfiltered to dump packet sent.
5365 1999-07-09 Keith Seitz <keiths@cygnus.com>
5367 * blockframe.c (blockvector_for_pc_sect): When looking for a block,
5368 we want the one whose end is greater than our PC, not greater or equal.
5370 1999-07-08 Stan Shebs <shebs@andros.cygnus.com>
5372 * sparcl-tdep.c (init_sparclite_ops): Fix doc strings, remove
5374 (sparclite_ops): Remove redundant decl.
5376 Thu Jul 8 16:48:40 1999 Andrew Cagney <cagney@b1.cygnus.com>
5378 * ser-pipe.c (pipe_open): Bi-directional popen found on both
5380 * ser-pipe.c: New file. Implement popen() style serial interface.
5382 * Makefile.in (ALLDEPFILES): Add ser-pipe.c.
5383 (ser-pipe.o): Add new target. Specify dependencies.
5384 (SER_HARDWIRE): Add ser-pipe.o.
5385 * serial.c (serial_open): Recognize a serial pipe ``|''.
5387 1999-07-07 Stan Shebs <shebs@andros.cygnus.com>
5389 * All C files except *-stub.c and *-share/*: Indent to GNU
5390 standard, using indent 1.9.1.
5391 * defs.h: Make indent ignore this file, macros confuse it.
5393 * gnu-regex.c, gnu-regex.h: Don't let indent mess with these.
5395 Wed Jul 7 13:06:24 1999 Andrew Cagney <cagney@b1.cygnus.com>
5397 * remote-mips.c (fputs_readable): Rename puts_readable, add struct
5399 (fputc_readable): Rename putc_readable, add struct gdb_file
5402 * remote-mips.c (mips_expect_timeout, mips_receive_header,
5403 mips_send_packet, mips_receive_packet), remote-rdp.c (put_byte,
5404 get_byte, put_word, rdp_init, rdp_init), remote-sds.c
5405 (sds_interrupt, sds_wait, readchar, putmessage, read_frame,
5406 getmessage), remote-udi.c (udi_store_registers, fetch_register):
5407 (store_register), xmodem.c (readchar), utils.c (puts_debug),
5408 gnu-nat.h (debug), parse.c (parse_exp_1): Cleanup - send debug/log
5409 messages to gdb_stdlog.
5411 1999-07-06 Stan Shebs <shebs@andros.cygnus.com>
5413 * exec.c: Remove long-#ifed-out section of code that confuses
5415 * gdbtypes.c (add_mangled_type): Add some braces to indicate
5417 * gnu-nat.c: Remove literal newlines embedded in strings,
5418 causes indent to weird out.
5419 * language.c (binop_result_type): Remove extra paren.
5420 * lynx-nat.c: Add a missing paren to fetch_core_registers decl.
5421 * nec4102rom.c (vr4102_insert_step): Fix typos.
5422 (_initialize_vr4102_rom): Remove literal newline in string.
5423 * config/a29k/tm-a29k.h: Suppress formatting of pictures.
5424 * config/m68k/xm-3b1.h: Remove excess #endif.
5426 Declare Pyramid configuration obsolete.
5427 * configure.host, configure.tgt: Comment out Pyramid configs.
5428 * Makefile.in: Comment out Pyramid-related actions.
5429 * pyr-xdep.c, pyr-tdep.c, config/pyr/*: Comment out.
5430 * NEWS: Mention obsolete status.
5432 1999-07-06 Jason Molenda (jsm@bugshack.cygnus.com)
5434 * remote.c: Include <sys/time.h> to pick up FD_SET et al defns on
5435 some old Linux distributions.
5436 * remote-os9k.c, remote-st.c, ser-tcp.c, ser-unix.c,
5437 sparcl-tdep.c, remote.c: Back out inclusion of <sys/select.h>.
5438 It isn't necessary after all.
5440 1999-07-06 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
5442 * infcmd.c (strip_bg_char): Remove assignment from 'if' condition.
5444 1999-07-05 Jason Molenda (jsm@bugshack.cygnus.com)
5446 * remote.c: Include <sys/select.h> if it exists in order to pick up
5448 * remote-os9k.c: Same.
5449 * remote-st.c: Same.
5452 * sparcl-tdep.c: Same.
5454 Fri Jul 2 19:38:43 1999 Andrew Cagney <cagney@b1.cygnus.com>
5456 * top.c (target_output_hook): Delete definition.
5457 * defs.h (target_output_hook): Delete declaration.
5459 * remote.c (remote_console_output): Delete call to
5460 target_output_hook(). Send target output to gdb_stdtarg using an
5461 unfiltered write. Make more robust.
5463 * remote-sim.c (gdb_os_write_stdout, gdb_os_write_stderr):
5464 Ditto. For moment, do not try to separate target stdout and stderr
5467 * defs.h (gdb_stdtarg): New global. Output from target and
5470 1999-07-02 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
5472 * top.c (return_to_top_level): Do all the exec_cleanups too.
5474 * event-top.c (command_handler): Set up for a continuation, if we
5475 are in the middle of running an execution command which will
5476 finish later on. Do cleanups, an display of time/space only if not
5477 running with an async target or not running an execution command.
5478 (command_line_handler_continuation): New function. Continuation
5479 for command_line_handler.
5481 * utils.c (exec_cleanup_chain): New cleanup chain to be used in
5482 async mode for the execution commands.
5483 (make_exec_cleanup): New function. Add a cleanup to the
5485 (do_exec_cleanups): New Function. Do cleanups on the
5487 (add_continuation): New function. Add a new continuation to the
5488 cmd_continuation list.
5489 (do_all_continuations): New function. Do all the continuations on
5490 the cmd_continuation list.
5492 * top.h (ALL_CLEANUPS): Move from here to defs.h.
5494 * defs.h (struct continuation_arg): New structure. Arg to pass to
5495 the call to a command continuation.
5496 (struct continuation): New structure. Continuation for an
5498 (ALL_CLEANUPS): Move here from top.h.
5500 * remote.c (remote_async_open_1): Set things up for telling the
5501 target we are running the extended protocol, only after the target
5503 (set_extended_protocol): New function. Tell the target we are
5504 using the extended protocol.
5505 (remote_async_resume): Set things up for sync execution only if
5506 this is the first time we are called.
5508 * breakpoint.c (until_break_command_continuation): New function.
5509 Stuff to be done after the target stops during the 'until'
5511 (until_break_command): Set things up for completing the 'until'
5512 command later on. Do the final cleanups only if not running
5513 asynchronously or async execution is not supported by the target.
5515 * infcmd.c (until_command): Recognize '&' at end of command and
5517 (finish_command_continuation): New function. Do whatever is needed
5518 after the target has stopped.
5519 (finish_command): Recognize '&' at end of command and handle it
5520 properly. Don't do stuff needed after target has stopped if
5521 running asynchronously and target has async. Use exec_cleanup_chain
5522 if running asynchronously and target is asynchronous.
5524 * infrun.c (cmd_continuation): New gloabl variable. Used to
5525 coplete execution commands in async mode, after the target has
5527 (fetch_inferior_event): Use exec_cleanup_chain, instead of
5528 cleanup_chain. Do all the exec cleanups at the end. Do all the
5529 continuations at the end. Call complete_execution from here,
5530 instead of normal_stop.
5531 (complete_execution): Cleanup the signals handlers for SIGINT
5532 before displaying the prompt.
5533 (start_remote): Set target_executing to 1.
5534 (normal_stop): Don't call complete_execution from here.
5536 Thu Jul 1 19:14:30 1999 Andrew Cagney <cagney@b1.cygnus.com>
5538 * blockframe.c (struct dummy_frame): Add member ``top''.
5539 (generic_push_dummy_frame): Initialize top to sp.
5540 (generic_save_dummy_frame_tos): New function. Initialize top.
5541 (generic_find_dummy_frame): Check for the top of the frame.
5543 * blockframe.c (generic_push_dummy_frame): Free the dummy_frame
5546 * config/mn10300/tm-mn10300.h (SAVE_DUMMY_FRAME_TOS): Define.
5547 (TARGET_READ_FP): Return the SP as a best guess.
5549 Wed Jun 30 15:45:48 1999 Jeffrey A Law (law@cygnus.com)
5551 * configure.host (hppa*-*-hpux11*): Accept any version of hpux11
5552 instead of hpux11.0*.
5554 1999-06-30 Fernando Nasser <fnasser@totem.to.cygnus.com>
5556 * source.c (directory_command): Add missing test for from_tty.
5558 1999-06-29 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
5560 * remote.c: Include event-loop.h.
5561 (remote_async_ops, extended_async_remote_ops): Define new target
5562 vector structures for asynchronous debugging.
5563 (remote_async_open): New function. Asynchronous version of
5565 (extended_remote_async_open): New function. Asynchronous version
5566 of extended_remote_open.
5567 (remote_async_open_1): New function. Async version of
5569 (remote_async_detach): New function. Async version of
5571 (remote_async_resume): New function. Async version of
5573 (initialize_sigint_signal_handler, handle_remote_sigint,
5574 handle_remote_sigint_twice, async_remote_interrupt,
5575 async_remote_interrupt_twice, cleanup_sigint_signal_handler): New
5576 functions. Used for handling ^C while target is running.
5577 (remote_async_wait): New function. Async version of remote_wait.
5578 (remote_async_kill): New function. Async version of remote_kill.
5579 (extended_remote_async_create_inferior): New function. Async
5580 version of extended_remote_create_inferior.
5581 (init_remote_async_ops): New function. Initialize target vector
5583 (init_extended_async_remote_ops): New function. Initialize target
5584 vector for target extended-async.
5585 (_initialize_remote): Initialize remote_async_ops and
5586 extended_async_remote_ops.
5588 * infrun.c: Include "event-loop.h".
5589 (sync_execution): new global variable.
5590 (proceed): Invoke wait_for_inferior and normal_stop only if not
5591 running in async mode or if target doesn't support async
5593 (start_remote): Don't call wait_for_inferior and normal_stop if
5594 not running in async mode or if target not async. If running async
5595 and target is async, start the target in simulated synchronous
5597 (async_ecss, async_ecs): New global vars, for inferior state.
5598 (fetch_inferior_event): New function. Async version of
5600 (complete_execution): New function. Reset of gdb prompt and stdin,
5601 after inferior execution has completed.
5602 (normal_stop): Call complete_execution at end of asynchronous
5605 * infcmd.c (strip_bg_char): New function to detect the background
5607 (run_command): Modify to support background and foreground
5608 execution in async mode.
5609 (continue_command): Ditto.
5611 (jump_command): Ditto.
5612 (interrupt_target_command): New function. Interrupt the
5614 (_initialize_infcmd): Add new command 'interrupt'.
5616 * top.c (target_executing): New global variable.
5617 (execute_command): Reject commands that cannot be executed while
5618 the target is running asynchronously.
5620 * event-top.c (push_prompt): Make non static.
5621 (pop_prompt): Make non static. If the current prompt is empty,
5622 don't try to copy it over the previous one.
5623 (handle_sigint): Make non static.
5624 (command_handler): Do the cleanups only when not executing with an
5625 asynchronous target.
5627 * event-loop.c (delete_async_signal_handler): Pass a pointer to a
5628 pointer to a signal handler, so that is can be freed at the end.
5630 * target.c (update_current_target): Inherit to_has_async_exec.
5632 * inferior.h: Add global variables target_executing, and
5633 sync_execution. Export function fetch_inferior_event.
5635 * event-loop.h: Add push_prompt, pop_prompt, handle_sigint to the
5636 exported functions. Update prototype for delete_signal_handler.
5638 * target.h (struct target_ops): New target op: to_has_async_exec.
5639 (target_has_async): New macro.
5641 * Makefile.in (infrun.o): Add dependency on event-loop.h.
5644 1999-06-28 Jim Blandy <jimb@zwingli.cygnus.com>
5646 * solib.c (clear_solib): Don't disable breakpoints if we're
5647 running an a.out executable (Solaris's SunOS emulation).
5649 1999-06-25 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
5651 * main.c (main): Remove intialization of command_loop_hook, it
5652 is now done in _initialize_event_loop().
5653 * event-loop.c (gdb_do_one_event): Make static.
5654 (start_event_loop): New function. Just start the event loop.
5655 * event-top.c (cli_command_loop): New name for start_event_loop().
5656 (gdb_readline2): Make non static.
5657 (_initialize_event_loop): Set command_loop_hook to cli_command_loop.
5658 * event-loop.h: Adjust exported functions accordingly.
5660 * top.c (init_main): Move setting of async_command_editing_p from
5662 * event-top.c (_initialize_event_loop): To here.
5663 (change_line_handler): Revert previous change. Add comment.
5664 (_initialize_event_loop): Revert previous change.
5665 (cli_command_loop): New name for start_event_loop().
5666 (start_event_loop): New function. This just starts up the event loop.
5667 (gdb_readline2): Make non static.
5668 (_initialize_event_loop): Set command_loop_hook to cli_command_loop.
5670 1999-06-25 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
5672 * event-top.c (change_line_handler): Get rid of the global
5673 variable input_fd, use `fileno (instream)' instead.
5674 (_initialize_event_loop): Ditto
5676 * event-loop.c (add_file_handler): New function. Wrapper for
5677 create_file_handler.
5678 (create_file_handler): Make static.
5679 * event-top.c (_initialize_event_loop): Call add_file_handler,
5680 instead of create_file_handler.
5681 (change_line_handler): Ditto.
5682 Remove poll.h include.
5683 * event-loop.h: Export add_file_handler instead of
5684 create_file_handler.
5686 1999-06-24 Stan Shebs <shebs@andros.cygnus.com>
5688 Declare Altos configuration obsolete.
5689 * configure.host, configure.tgt: Comment out Altos config.
5690 * Makefile.in: Comment out Altos-related actions.
5691 * altos-xdep.c, config/m68k/altos.mh, altos.mt, tm-altos.h,
5692 xm-altos.h: Comment out.
5693 * NEWS: Mention obsolete status.
5695 1999-06-24 Jason Molenda (jsm@bugshack.cygnus.com)
5697 * Makefile.in: Add MAKEHTML and MAKEHTMLFLAGS; pass them down;
5698 recognize html and install-html targets.
5699 * gdbserver/Makefile.in: Add empty html and install-html targets.
5700 * nlm/Makefile.in: Ditto.
5701 * rdi-share/Makefile.in: Ditto.
5703 1999-06-24 Jim Blandy <jimb@zwingli.cygnus.com>
5705 * ax-gdb.c (agent_command): Remove vestigial call to ax_reqs.
5707 1999-06-24 James Ingham <jingham@leda.cygnus.com>
5709 * arm-tdep.c (arm_othernames): Change both gdb's register display
5710 AND the opcode disassembly register naming if the othernames
5711 command. Fixes the gdb part of CR 101177.
5713 1999-06-23 Stan Shebs <shebs@andros.cygnus.com>
5715 Declare Convex configuration obsolete.
5716 * configure.host, configure.tgt: Comment out Convex configs.
5717 * Makefile.in: Comment out Convex-related actions.
5718 * convex-xdep.c, convex-tdep.c, config/convex/*: Comment out.
5719 * NEWS: Mention obsolete status.
5721 1999-06-23 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
5723 * main.c: Turn on async by default by setting async_p to 1.
5725 Wed Jun 23 20:39:24 1999 Andrew Cagney <cagney@b1.cygnus.com>
5727 * main.c (main): Recognize --ui. Will eventually replace
5730 Wed Jun 23 15:44:39 1999 Andrew Cagney <cagney@b1.cygnus.com>
5732 From Jimmy Guo <guo@cup.hp.com>:
5733 * frame.h (enum lval_type): Delcare when an __STDC__ compiler.
5734 Reverts Mon Aug 11 16:08:52 1997 Fred Fish <fnf@cygnus.com>
5736 * utils.c (gdb_file_rewind, gdb_file_put): Fix. A void function
5737 does not return a result.
5739 Wed Jun 23 15:30:46 1999 Andrew Cagney <cagney@b1.cygnus.com>
5741 * remote.c (set_thread, remote_get_threadinfo,
5742 remote_threads_info, remote_current_thread, remote_get_threadlist,
5743 extended_remote_restart, get_offsets, remote_open_1,
5744 remote_detach, remote_resume, remote_wait, remote_fetch_registers,
5745 remote_store_registers, check_binary_download, remote_write_bytes,
5746 remote_read_bytes, remote_search, putpkt_binary, putpkt_binary,
5747 read_frame, compare_sections_command, remote_query,
5748 packet_command, remote_info_process): Use alloca to create space
5749 for arrays of size PBUFSIZ.
5751 1999-06-22 Jason Molenda (jsm@bugshack.cygnus.com)
5753 * top.c: Update copyright years to include 1999.
5755 1999-06-18 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
5757 * top.c: Move include of event-loop.h, to avoid redefinition of
5760 * event-loop.c (create_file_handler): Do not do a realloc of the
5761 pollfd structure of the notifier, unless there is already one.
5762 Include <sys/types.h> for platforms that have no poll.
5764 * event-top.c: Fix prototype for _initialize_event_loop.
5765 (_initialize_event_loop): Do something only if running in async
5768 1999-06-17 Jim Blandy <jimb@zwingli.cygnus.com>
5770 Make the '/c' print format use a true character type. This is
5771 more appropriate than builtin_type_char for languages other than
5772 C, and C tolerates it.
5773 * gdbtypes.c (builtin_type_true_char): New variable.
5774 (build_gdbtypes): Initialize it.
5775 * gdbtypes.h (builtin_type_true_char): New declaration.
5776 * printcmd.c (print_scalar_formatted): When the format is 'c',
5777 extract the value as a builtin_type_true_char.
5779 * jv-exp.y (yylex): Say character literals are java_char_type, not
5780 builtin_type_char. Java treats the latter like `byte'.
5782 1999-06-17 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
5784 * Makefile.in (top_h): Define.
5785 (event-loop.o): Add dependencies on top.h and defs.h.
5786 (event-top.o): Add dependency on terminal.h.
5788 * event-loop.c: Get rid of #include <readline.h>.
5790 * event-loop.h: Get rid of nested #include's.
5791 * event-loop.c: Rearrange includes to accomodate change in
5792 event-loop.h. Include poll.h, not sys/poll.h.
5793 * event-top.c: Ditto.
5796 1999-06-16 David Taylor <taylor@louisiana.cygnus.com>
5798 * alpha-tdep.c (alpha_pop_frame): if frame->proc_desc
5799 is NULL, call find_proc_desc so we know how to restore
5802 1999-06-16 Fernando Nasser <fnasser@totem.to.cygnus.com>
5804 * cli-out.c (cli_out_new): Add flags argument to ui-out-new call.
5805 * source.c (print_source_lines_base): Test for ui_source_list flag
5806 and use ui_out for file and line output.
5807 * ui-out.c (struct ui_out): Add flags field to struct and to default
5809 (ui_out_set_flags): New function. Handle flags.
5810 (ui_out_clear_flags): New function. Ditto.
5811 (ui_out_test_flags): New function. Ditto.
5812 (ui_out_new): Add flags parameter.
5813 * ui-out.h: Add flags argument to ui_out_new declaration.
5814 Add declarations for ui_out_*_flags functions.
5815 (enum ui_flags): New enum. Defines ui_out flags.
5816 * top.c (gdb_init): Fix misspelling typo.
5818 1999-06-15 Michael Snyder <msnyder@cleaver.cygnus.com>
5820 * event-top.c (start_event_loop): call get_prompt.
5821 (display_gdb_prompt): call get_prompt.
5822 (async_stop_sig): call get_prompt.
5824 1999-06-15 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
5826 * event-loop.c (delete_file_handler): When positioning prev_ptr,
5827 keep looping while the one after is not equal to file_ptr, instead
5830 1999-06-14 Stan Shebs <shebs@andros.cygnus.com>
5832 * MAINTAINERS: Add Jimmy Guo and Jim Blandy as HP testsuite and
5833 SVR4 solib maintainers, respectively.
5835 1999-06-14 Michael Snyder <msnyder@cleaver.cygnus.com>
5837 Add parameters to the gdb prompt.
5838 * top.c (prompt): Rename to gdb_prompt_string for clarity.
5839 (command_line_input): rename "prrompt" to prompt_arg for clarity.
5840 (gdb_readline): rename "prrompt" to prompt_arg for clarity.
5841 (read_command_lines): rename "prompt" to prompt_arg for clarity.
5842 (stop_sig): call get_prompt instead of reading prompt string directly.
5843 (command_loop): ditto.
5844 (simplified_command_loop): ditto.
5845 (gdb_prompt_escape): New variable. Esc char for prompt parameters.
5846 (get_prompt_1): New function, workhorse for get_prompt.
5847 (get_prompt): Completely rewrite. Add functionality for a
5848 parameterized prompt, ie. the displayed prompt can change according
5849 to the value of one or more expressions given as parameters in the
5851 (init_main): use renamed variable gdb_prompt_string. Add new
5852 command "set prompt-escape-char" to set gdb_prompt_escape.
5854 Sun Jun 13 10:44:13 1999 Andrew Cagney <cagney@b1.cygnus.com>
5856 * defs.h (gdb_stdlog), main.c: Declare.
5857 * main.c (main): Initialize.
5858 * gdbarch.c: Write trace messages to the log file.
5859 * remote.c: Update any debug/log prints.
5861 1999-06-11 Michael Snyder <msnyder@cleaver.cygnus.com>
5863 * remote.c (remote_wait): Clean up new thread handling.
5864 (record_currthread): Announce new threads.
5866 1999-06-11 Jim Blandy <jimb@zwingli.cygnus.com>
5868 * partial-stab.h (case N_LSYM, 'T' descriptor): Don't create
5869 partial symbol table entries for nameless enums, even if the type
5870 name is " ". (We still pick up the enum elements, though.)
5872 * partial-stab.h: Remove #if 0'd sections, dating back to 1992,
5873 which set a variable which exists nowhere else in the source.
5874 Please examine your test suite output carefully, and report any
5877 1999-06-11 Fernando Nasser <fnasser@totem.to.cygnus.com>
5879 * top.c (gdb_init): Add pre-processor test for UI_OUT.
5881 1999-06-11 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
5883 * event-top.c (setup_event_loop): Change name to start_event_loop.
5884 Move the intialization of event-loop variables to
5885 _initialize_event_loop.
5886 (_initialize_event_loop): New function. Called at init time, to
5887 set up important event-loop variables.
5889 * event-loop.h: setup_event_loop is now start_event_loop.
5890 * main.c (main): Ditto.
5892 Fri Jun 11 18:34:33 1999 Andrew Cagney <cagney@b1.cygnus.com>
5894 * defs.h (gdb_file_rewind_ftype, gdb_file_rewind,
5895 set_gdb_file_rewind, gdb_file_put_ftype, gdb_file_put,
5896 set_gdb_file_put): Declare.
5898 * utils.c (gdb_file_new): Initialize ``rewind'' and ``put''.
5899 (struct gdb_file): Add to_rewind and to_put.
5900 (null_file_put, null_file_rewind, gdb_file_put, gdb_file_rewind,
5901 set_gdb_file_put, set_gdb_file_rewind): New functions.
5902 (tui_file_rewind, tui_file_put): New functions.
5903 (tui_file_new): Add rewind and put.
5905 * cli-out.c (cli_spaces): Replace gdb_stdout with data->stream.
5906 (cli_text, cli_message, cli_flush, out_field_fmt,
5907 field_separator): Ditto.
5909 Fri Jun 11 16:08:37 1999 Andrew Cagney <cagney@b1.cygnus.com>
5911 * cli-out.c (cli_out_new): Replace init_cli_out,
5912 * top.c (gdb_init): Call cli_out_new.
5913 * main.c (main): Delete call to set_ui_out_impl.
5915 * ui-out.h (set_ui_out_impl, cli_ui_out_impl), ui-out.c: Delete.
5916 (cli_out_new): Add declaration. Will move later.
5918 * ui-out.c (ui_out_new, ui_out_data), ui-out.h: New functions.
5919 (struct ui_out): Add field data.
5920 (ui_out_new): Replace init_ui_out_state.
5922 * ui-out.c (XMALLOC): Define.
5923 (ui_out_stream_new, append_header_to_list): Use XMALLOC instead of
5925 * cli-out.c (XMALLOC): Define.
5927 Fri Jun 11 10:31:29 1999 Andrew Cagney <cagney@b1.cygnus.com>
5929 * ui-out.c (ui_out_field_int, ui_out_field_skip,
5930 ui_out_field_fmt): Rewrite statements to remove infix operators.
5932 * ui-out.c (get_curr_header, verify_field_proper_position,
5933 verify_field_alignment, init_ui_out_state, set_ui_out_impl,
5934 append_header_to_list): Add explicit ui_out parameter.
5935 (struct ui_out): Move the local variables ``table_flag'',
5936 ``body_flag'', ``table_columns'', ``table_id'', ``list_flat'',
5937 ``field_count'', ``headerfirst'', ``headerlast'', ``headercurr''
5939 (typedef ui_out_hdr): Delete.
5940 (struct ui_out_hdr): Rename struct _ui_out_hdr.
5941 (ui_out_table_begin, ui_out_table_end, ui_out_table_body,
5942 ui_out_table_header, ui_out_field_int, ui_out_list_begin,
5943 ui_out_table_end, ui_out_list_end, ui_out_field_skip,
5944 ui_out_table_body, ui_out_list_begin, ui_out_list_end,
5945 ui_out_field_string, ui_out_field_fmt, init_ui_out_state,
5946 verify_field_proper_position, verify_field_alignment,
5947 clear_header_list, append_header_to_list, _initialize_ui_out):
5950 * ui-out.h (typedef streambuf): Delete.
5951 (struct _streambuf): Rename to struct ui_stream.
5952 * breakpoint.c (breakpoint_1), stack.c (print_frame_info_base),
5953 printcmd.c (print_frame_args): Rename streambuf to struct
5956 Fri Jun 11 15:10:32 1999 Andrew Cagney <cagney@b1.cygnus.com>
5958 * d10v-tdep.c (d10v_push_arguments): Fix order of arguments passed
5961 Fri Jun 11 10:31:29 1999 Andrew Cagney <cagney@b1.cygnus.com>
5963 * remote.c (tty_input): Change array to pointer.
5964 (_initialize_remote): Call build_remote_gdbarch_data.
5965 (build_remote_gdbarch_data): New function. Allocate space for
5967 (readsocket, readtty): Delete extern declaration of tty_input.
5969 1999-06-10 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
5971 * event-top.c (gdb_readline2): Call the command handling function
5972 via the input_handler pointer.
5973 (change_line_handler): When turning off editing, set input_handler
5976 * utils.c (prompt_for_continue): If running asynchronously, call
5977 async_request_quit, instead of request_quit.
5979 * tracepoint.c (read_actions): If running asynchronously, set the
5980 signal handler for STOP_SIGNAL to handle_stop_sig.
5982 * top.h: (source_line_number, source_file_name, source_error,
5983 source_pre_error, history_expansion_p, server_command): export for
5986 * event-top.c: Include top.h and terminal.h.
5987 (instream): Remove extern declaration.
5988 (handle_sigint, handle_sigquit, handle_sighup, handle_sigfpe,
5989 handle_sigwinch, async_do_nothing, async_disconnect,
5990 async_float_handler, async_stop_sig): Make static.
5991 (async_request_quit, async_do_nothing, async_disconnect,
5992 async_float_handler, async_stop_sig): Add gdb_glient_data
5994 (handle_stop_sig): New function.
5995 (sigtstp_token): New variable.
5996 (sigint_token, sigquit_token, sigfpe_token, sigwinch_token):
5997 Change their type tp PTR.
5998 (mark_async_signal_handler_wrapper): New function.
5999 (setup_event_loop): Initialize all the variables used by readline
6000 only if not already done while reading the .gdbinit file. Display
6001 the initial gdb prompt, if .gdbinit took care of setting things up
6003 (change_line_handler): When turning on the use of readline,
6004 initialize input_handler as well.
6005 (command_line_handler): Set up the signal handler for STOP_SIGNAL
6006 to be handle_stop_sig.
6007 (async_init_signals): Remove coercion of signal handlers in calls
6008 to create_async_signal_handler. Initialize token for stop signal.
6009 (handle_sigint): Call async_request_quit using one argument.
6010 (handle_sigint, handle_sigquit, handle_sighup, handle_sigfpe,
6011 handle_sigwinch): Call mark_async_signal_handler_wrapper instead
6012 of mark_async_signal_handler.
6014 * event-loop.h: Add extern declarations for handle_stop_sig,
6015 async_command_editing_p, async_annotation_suffix,
6016 new_async_prompt, the_prompts.
6018 * top.c (command_line_input): Set the signal handler to be
6019 handle_stop_sig, in case gdb is running asynchronously.
6020 (get_prompt): Return the top of the prompt stack if running
6022 (set_prompt): Set the top of the prompt stack if running
6024 (init_main): Move ``extern'' vars from here to event-loop.h.
6026 1999-06-10 Michael Snyder <msnyder@cleaver.cygnus.com>
6028 * values.c (value_from_string): new function. Make a value_ptr
6029 from a string, with storage in local GDB memory (not in inferior).
6030 * value.h (value_from_string): add prototype.
6031 * remote.c (remote_cisco_ops): New remote target, "target cisco".
6032 (init_remote_cisco_ops): New function, initialize new target.
6033 (remote_cisco_mourn, remote_cisco_wait, remote_cisco_open,
6034 remote_cisco_close): New functions, implement new target cisco.
6035 (minitelnet, readtty, readsocket) New functions, implement the
6036 I/O pass-through mode for target cisco.
6037 (remote_wait): Detect special enhanced version of the 'S' packet
6039 (remote_cisco_expand): Perform Cisco variant of RLL decoding.
6041 1999-06-10 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
6043 * event-loop.c (gdb_wait_for_event): Initialize num_found to 0.
6045 * top.c (print_prompt): Delete this function.
6047 From: Andrew Cagney <cagney@b1.cygnus.com>
6049 * event-top.c (async_hook): Delete extern declaration.
6051 * defs.h: Replace ``async_hook'' with ``async_p''.
6052 * top.c (gdb_init, init_main, init_main, init_main, init_main):
6053 Replace ``async_hook'' with ``async_p''.
6055 * main.c: Rename ``async'' to ``async_p''.
6056 (main): Add --noasync option.
6057 (main): Hook in the asynchronous event-loop based CLI using
6058 command_loop_hook instead of async_hook. Delete call to
6061 Thu Jun 10 21:14:16 1999 Andrew Cagney <cagney@b1.cygnus.com>
6063 * mn10300-tdep.c (mn10300_store_return_value,
6064 mn10300_extract_struct_value_address,
6065 mn10300_extract_return_value), config/mn10300/tm-mn10300.h: New
6067 * config/mn10300/tm-mn10300.h (EXTRACT_STRUCT_VALUE_ADDRESS,
6068 STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE): Update.
6069 (TARGET_MN10300): Delete macro. Not used.
6071 Thu Jun 10 20:04:02 1999 Andrew Cagney <cagney@b1.cygnus.com>
6073 * mn10300-tdep.c (mn10300_register_names): Make static.
6074 (STORE_STRUCT_RETURN): Do not modify SP.
6076 * config/mn10300/tm-mn10300.h(mn10300_register_name),
6077 mn10300-tdep.c : New function.
6078 * config/mn10300/tm-mn10300.h (REGISTER_NAME): Update.
6079 * config/mn10300/tm-mn10300.h (mn10300_saved_pc_after_call),
6080 mn10300-tdep.c: New function.
6081 * config/mn10300/tm-mn10300.h (SAVED_PC_AFTER_CALL): Update.
6083 Wed Jun 9 16:42:16 1999 Andrew Cagney <cagney@b1.cygnus.com>
6085 * top.h, top.c (simplified_command_loop): Make global.
6087 * main.c (main): Delete call to call_interp_loop. Interpreters
6088 hook in using command_loop_hook.
6089 * top.c (call_interp_loop): Delete function.
6091 1999-06-10 Keith Seitz <keiths@cygnus.com>
6093 * mcore-rom.c (picobug_dumpregs): Return a value. Any value, it
6095 * mcore-tdep.c (mcore_analyze_prologue): Set NO_MORE_FRAMES
6096 if the start of the function is the entry point.
6097 (mcore_analyze_prologue): rotli takes an immediate, not an
6099 (mcore_push_arguments): Fix compiler warning.
6101 1999-06-09 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
6103 * rs6000-tdep.c (skip_prologue): Don't mistake a branch for a
6106 1999-06-08 Michael Snyder <msnyder@cleaver.cygnus.com>
6108 * remote.c (remote_wait): Add 'N' response packet, which is a
6109 stop with signal number plus section offsets for .text, .data and
6110 .bss. This is used by Cisco to indicate relocation offsets.
6111 (remote_cisco_section_offsets, remote_cisco_objfile_relocate):
6112 new files to support 'N' packet.
6113 (remote_info_process): New function. Implements the
6114 "info remote-process" command, by means of which the remote target
6115 can report anything it wants to about the remote process/app being
6117 (_initialize_remote): add info remote-proc command.
6118 (remote_threads_info): New function for "info threads" command.
6119 Attempts to use new query "qfThreadInfo" instead of the old
6121 * exec.c (exec_set_section_offsets) new files to support 'N' packet.
6123 Tue Jun 8 13:33:42 1999 Andrew Cagney <cagney@amy.cygnus.com>
6125 * inferior.h (generic_target_read_pc, generic_target_write_pc,
6126 generic_target_read_fp, generic_target_write_fp,
6127 generic_target_read_sp, generic_target_write_sp): Declare new
6129 * findvar.c (generic_target_read_pc, generic_target_write_pc,
6130 generic_target_read_fp, generic_target_write_fp,
6131 generic_target_read_sp, generic_target_write_sp): New functions.
6132 (TARGET_READ_PC, TARGET_WRITE_PC, TARGET_READ_FP, TARGET_WRITE_FP,
6133 TARGET_READ_SP, TARGET_WRITE_SP): Default to corresponding generic
6135 (write_pc_pid, write_pc_pid, read_sp, write_sp, read_fp,
6136 write_fp): Simplify.
6138 * gdbarch.c (verify_gdbarch): Always verify TARGET_PTR_BIT,
6139 TARGET_SHORT_BIT, TARGET_INT_BIT, TARGET_LONG_BIT,
6140 TARGET_LONG_LONG_BIT, TARGET_FLOAT_BIT, TARGET_DOUBLE_BIT,
6141 TARGET_LONG_DOUBLE_BIT, TARGET_READ_PC, TARGET_WRITE_PC,
6142 TARGET_READ_FP, TARGET_WRITE_FP, TARGET_READ_SP, TARGET_WRITE_SP,
6143 USE_GENERIC_DUMMY_FRAMES, CALL_DUMMY_BREAKPOINT_OFFSET_P,
6144 CALL_DUMMY_P, CALL_DUMMY_STACK_ADJUST_P, GET_SAVED_REGISTER,
6145 REGISTER_CONVERTIBLE, PUSH_ARGUMENTS, PUSH_RETURN_ADDRESS,
6147 (GET_GDBARCH, SET_GDBARCH): Delete macros. Implement functions
6149 * gdbarch.h, gdbarch.c: Call fatal() instead of abort(). Identify
6150 the function / macro with a problem. Always verify a architecture
6151 attribute before returning it.
6152 * gdbarch.h, gdbarch.c (generic_register_convertible_not): New
6155 * mips-tdep.c (mips_push_return_address): New function.
6156 * config/mips/tm-mips.h (PUSH_RETURN_ADDRESS): Define.
6158 * mips-tdep.c (mips_gdbarch_init): Initialize short_bit,
6159 double_bit, long_double_bit, read_pc, write_pc, read_fp, write_fp,
6160 read_sp, write_sp, frame_chain_valid, get_saved_register,
6161 push_arguments, push_return_address, register_convertible,
6162 call_dummy_p, use_generic_dummy_frames,
6163 call_dummy_breakpoint_offset_p, call_dummy_stack_adjust_p,
6164 call_dummy_words and sizeof_call_dummy_words.
6165 * config/mips/tm-mips.h: Don't define CALL_DUMMY when multi-arch.
6167 1999-06-07 Keith Seitz <keiths@cygnus.com>
6169 * v850ice.c (init_hidden_window): Do not rely on the existence of
6170 a gui for window creation. Return boolean status.
6171 (v850ice_open): Use boolean status of init_hidden_window.
6172 Allow any ICE execution command to run under CLI. Maybe one
6173 day gdb will use a real event loop and allow this code to run.
6174 * configure.tgt: Configure the v850 ice for all cygwin-hosted
6177 Mon Jun 7 23:37:26 1999 Andrew Cagney <cagney@amy.cygnus.com>
6179 * config/mips/tm-mips.h (EXTRA_FRAME_INFO): Delete.
6180 * mips-tdep.c (mips_init_extra_frame_info): Allocate saved_regs.
6181 (temp_saved_regs): Replace struct with a simple pointer.
6182 (set_reg_offset, mips32_heuristic_proc_desc, heuristic_proc_desc,
6183 mips_init_extra_frame_info): Update.
6185 Mon Jun 7 21:40:12 1999 Andrew Cagney <cagney@amy.cygnus.com>
6187 * config/mips/tm-mips.h (EXTRA_FRAME_INFO): Move elements from here.
6188 * mips-tdep.c (struct frame_extra_info): To here.
6190 * mips-tdep.c (mips_print_extra_frame_info, mips_find_saved_regs,
6191 mips_init_extra_frame_info, mips_pop_frame): Update
6192 (mips_init_extra_frame_info): Allocate space for the extra info.
6194 Mon Jun 7 21:08:50 1999 Andrew Cagney <cagney@amy.cygnus.com>
6196 * config/mips/tm-mips.h (mips_init_extra_frame_info), mips-tdep.c:
6197 Rename init_extra_frame_info. Add argument ``fromleaf''.
6198 mips-tdep.c (mips_gdbarch_init): Add mips_init_extra_frame_info.
6200 * config/mips/tm-mips.h (mips_print_extra_frame_info),
6201 mips-tdep.c: New function.
6202 (PRINT_EXTRA_FRAME_INFO): Update definition.
6204 Mon Jun 7 20:11:07 1999 Andrew Cagney <cagney@amy.cygnus.com>
6206 * config/mips/tm-mips.h, config/mips/tm-irix3.h,
6207 config/mips/tm-tx19.h, config/mips/tm-tx19l.h,
6208 config/mips/tm-tx39.h, config/mips/tm-tx39l.h: Rename macro
6209 REGISTER_NAMES to MIPS_REGISTER_NAMES.
6211 * config/mips/tm-mips.h (REGISTER_NAME): Define.
6212 * mips-tdep.c (mips_processor_reg_names): New static variable.
6213 (mips_register_name): New function.
6214 (mips_set_processor_type): Update mips_processor_reg_names.
6215 (mips_generic_reg_names): Initialize using MIPS_REGISTER_NAMES.
6216 (mips_gdbarch_init): Add mips_register_name.
6218 Sun Jun 6 11:09:19 1999 Andrew Cagney <cagney@b1.cygnus.com>
6220 * remote.c (PBUFSIZ): Re-define so that value is computed at
6222 (MAXBUFBYTES): Re-define as a macro function.
6223 * gdbarch.h, gdbarch.c: Add multi-arch support for REGISTER_BYTES.
6224 * d10v-tdep.c, config/d10v/tm-d10v.h: Update.
6226 1999-06-05 Fernando Nasser <fnasser@totem.to.cygnus.com>
6228 * symtab.c (decode_line_1): Accept filenames with spaces in
6229 'linespecs' when enclosed in double quotation marks and handle
6230 drive specification is DOS format (D:).
6232 1999-06-04 Jim Blandy <jimb@zwingli.cygnus.com>
6234 * parse.c: Don't include <ctype.h> twice.
6236 1999-06-04 David Taylor <taylor@louisiana.cygnus.com>
6238 Sat May 15 12:16:09 1999 Per Bothner <bothner@deneb.cygnus.com>
6240 * eval.c (evaluate_subexp_standard): Remove Gilmore rant.
6241 (Of course C has "expected types", at least if you allow
6242 brace-initializer expressions - as in Gcc.)
6243 Remove NULLing out expect_type. Do pass NULL_TYPE in place
6244 the incoming expect_type where appropriate.
6246 Fri Jun 4 10:56:23 1999 Jeffrey A Law (law@cygnus.com)
6248 * hppa-tdep.c (hppa_fix_call_dummy): Make it work for GCC compiled
6249 executables without end.o. Clean up lots of mis-guided comments.
6251 Fri Jun 4 17:10:36 1999 Andrew Cagney <cagney@b1.cygnus.com>
6253 * parser-defs.h (std_regs): Replace array with pointer.
6254 * parse.c (build_parse): Build the std_regs table according to the
6255 standard registers available.
6256 (_initialize_parse): Register std_regs and num_std_regs as
6257 architecture specific.
6258 * gdbarch.h, gdbarch.c: Add multi-arch support for SP_REGNUM,
6259 FP_REGNUM, PC_REGNUM, NUM_REGS, REGISTER_NAME.
6260 * d10v-tdep.c, config/d10v/tm-d10v.h: Update.
6262 1999-06-03 Fernando Nasser <fnasser@totem.to.cygnus.com>
6264 * printcmd.c (print_frame_args): Convert some of the output to use
6266 * stack.c (print_frame_info_base): Adjust the call to the above
6269 1999-06-03 Michael Snyder <msnyder@cleaver.cygnus.com>
6271 * thread.c: eliminate the target_thread_vector (functionality
6272 moved into the standard target vector).
6273 * gdbthread.h: eliminate target_thread_vector. Move all related
6274 defines into remote.c, since they are no longer shared with thread.c.
6275 * remote.c: eliminate the target_thread_vector.
6276 (remote_find_new_threads): change return type to void, consistent
6277 with the target vector table. (cont_thread): rename continue_thread.
6278 (record_currthread): remove dead code. (remote_thread_alive):
6279 clean up and simplify. (threadref etc.): move definitions to here
6282 1999-06-02 Jason Molenda (jsm@bugshack.cygnus.com)
6284 * inftarg.c (child_create_inferior): Remove dead HPUX specific code
6285 which tries to find csh.
6286 * fork-child.c: Remove DEBUGGING predefine and conditionalized
6288 (fork_inferior): Remove dead HPUX specific code which assumes shell
6291 * hppa-tdep.c: Remove DEBUGGING and #if 0 debugging printfs.
6295 * gdbarch.h: Forward decl of struct value.
6297 Thu Jun 3 10:12:38 1999 Andrew Cagney <cagney@b1.cygnus.com>
6299 * d10v-tdep.c (do_d10v_pop_frame): Rename d10v_pop_frame. Make
6301 * d10v-tdep.c (d10v_pop_frame), config/d10v/tm-d10v.h: New
6302 function. Call generic_pop_current_frame.
6303 * config/d10v/tm-d10v.h (POP_FRAME): Update.
6304 * gdbarch.h, gdbarch.c (frame_num_args_unknown): New function.
6305 * gdbarch.h, gdbarch.c: Add multi-arch support for POP_FRAME,
6306 SKIP_PROLOGUE, INNER_THAN, DECR_PC_AFTER_BREAK,
6307 FUNCTION_START_OFFSET, REMOTE_TRANSLATE_XFER_ADDRESS, FRAME_CHAIN,
6308 FRAME_CHAIN_VALID, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS,
6309 FRAME_LOCALS_ADDRESS, FRAME_ARGS_SKIP,
6310 FRAMELESS_FUNCTION_INVOCATION, REGISTER_BYTE, REGISTER_RAW_SIZE,
6311 REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, SAVED_PC_AFTER_CALL,
6312 FRAME_NUM_ARGS, MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
6314 * d10v-tdep.c, config/d10v/tm-d10v.h: Update.
6315 * config/d10v/tm-d10v.h (DMEM_START, IMEM_START, STACK_START,
6316 ARG1_REGNUM, ARGN_REGNUM, RET1_REGNUM): Move definitions from
6318 * d10v-tdep.c: To here.
6319 * config/d10v/tm-d10v.h (struct type): Move declaration from here.
6320 * gdbarch.h: To here.
6321 * config/d10v/tm-d10v.h (struct frame_info, struct
6322 frame_saved_regs, struct type): Delete declarations.
6324 1999-06-02 Robert Hoehne <robert.hoehne@gmx.net>
6326 * go32-nat.c: go32_terminal_init, go32_terminal_inferior and
6327 go32_terminal_ours are new functions to save/restore the inferior`s
6328 stdin/stdout filemodes
6330 1999-06-02 Stan Shebs <shebs@andros.cygnus.com>
6332 * MAINTAINERS: Add Mark Kettenis, Jeff Law, and Philippe De Muyter
6333 as maintainers for Hurd, HP/UX, and COFF, respectively.
6335 1999-06-02 Mark Kettenis <kettenis@gnu.org>
6337 * gnu-nat.c (inf_continue): New function.
6338 (struct inf): Use `unsigned int' instead of `int' for bit-fields.
6339 Add new bit-field named `nomsg'.
6340 (inf_validate_procinfo): Renamed from inf_validate_stopped, all
6341 callers changed. Also update the `nomsg' and `traced' fields of
6343 (make_inf): Initialize INF->nomsg.
6344 (inf_cleanup): Reset INF->nomsg.
6345 (inf_detach): Call `inf_validate_procinfo'. Call `inf_continue'
6346 instead of `inf_signal' if the inferior does not have a message
6348 (gnu_resume): Likewise.
6349 (gnu_create_inferior): Reset INF->nomsg in `attach_to_child'.
6350 Call `inf_validate_procinfo' after returning from `fork_inferior'.
6351 (gnu_attach): Update signal thread and tracing state.
6353 * config/i386/tm-i386gnu.h: Include "i386/tm-i386.h" instead of
6355 (STACK_END_ADDR): Remove.
6356 (SIGCONTEXT_PC_OFFSET): New define.
6357 Include "tm-sysv4.h".
6359 1999-06-02 J.T. Conklin <jtc@redback.com>
6361 * config/tm-vxworks.h: New file, header for definitions common to
6362 all vxWorks targets.
6363 * config/a29k/tm-vx29k.h, config/i960/tm-vx960.h,
6364 config/m68k/tm-vx68.h, config/mips/tm-vxmips.h,
6365 config/sparc/tm-vxsparc.h: Include tm-vxworks.h.
6367 Wed Jun 2 17:37:03 1999 Jeffrey A Law (law@cygnus.com)
6369 * config/pa/tm-hppa.h (IMPORT_SHLIB): New unwind stub type.
6371 1999-06-02 Christopher Faylor <cgf@cygnus.com>
6373 * configure.tgt: Alphabetically reorder some targets.
6375 1999-06-02 Keith Seitz <keiths@cygnus.com>
6377 * v850ice.c (v850ice_xfer_memory): Insert lost "break".
6379 1999-06-02 Jim Blandy <jimb@zwingli.cygnus.com>
6381 * rs6000-tdep.c (variants): Fix description of 750 register set.
6382 (Thanks to J. T. Conklin.)
6384 Wed Jun 2 16:10:08 1999 Andrew Cagney <cagney@b1.cygnus.com>
6386 * gdbarch.h, gdbarch.c: Add multi-arch support for
6387 STORE_STRUCT_RETURN, STORE_RETURN_VALUE,
6388 EXTRACT_STRUCT_VALUE_ADDRESS, USE_STRUCT_CONVENTION,
6389 FRAME_INIT_SAVED_REGS and INIT_EXTRA_FRAME_INFO.
6390 * d10v-tdep.c, config/d10v/tm-d10v.h: Update.
6392 * config/d10v/tm-d10v.h (FRAME_INIT_SAVED_REGS): Replace
6393 FRAME_FIND_SAVED_REGS.
6394 (d10v_frame_init_saved_regs): Replace d10v_frame_find_saved_regs.
6395 * d10v-tdep.c (d10v_pop_frame, d10v_frame_chain,
6396 d10v_frame_init_saved_regs): Update.
6397 * gdbarch.h: Disallow FRAME_FIND_SAVED_REGS when multi-arch.
6399 * gdbarch.h, gdbarch.c: Add multi-arch support for
6400 D10V_MAKE_DADDR, D10V_MAKE_IADDR, D10V_DADDR_P, D10V_IADDR_P,
6401 D10V_CONVERT_DADDR_TO_RAW and D10V_CONVERT_IADDR_TO_RAW.
6402 * d10v-tdep.c, config/d10v/tm-d10v.h: Update.
6404 * config/d10v/tm-d10v.h (EXTRA_FRAME_INFO): Delete.
6405 * d10v-tdep.c (struct frame_extra_info): Define.
6406 (d10v_init_extra_frame_info, d10v_pop_frame, d10v_frame_chain,
6407 d10v_frame_find_saved_regs): Update.
6408 * gdbarch.h: Disallow EXTRA_FRAME_INFO when multi-arch.
6410 Tue Jun 1 13:36:31 1999 Philippe De Muyter <phdm@macqel.be>
6412 * config/m68k/tm-delta68.h (FRAME_NUM_ARGS): Macro prototype fixed.
6413 * config/m68k/tm-news.h, config/ns32k/tm-merlin.h: Ditto.
6414 * config/ns32k/tm-umax.h (FRAME_NUM_ARGS): Old macro definition
6415 removed; new macro prototype fixed.
6417 Wed Jun 2 11:18:37 1999 Andrew Cagney <cagney@b1.cygnus.com>
6419 * gdbarch.h, gdbarch.c: Add multi-arch support for
6420 EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS, PUSH_DUMMY_FRAME,
6421 PUSH_RETURN_ADDRESS, POP_FRAME, FRAME_FIND_SAVED_REGS.
6422 * d10v-tdep.c, config/d10v/tm-d10v.h: Update.
6424 * gdbarch.h, gdbarch.c: Add multi-arch support for
6425 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
6426 REGISTER_CONVERT_TO_RAW.
6427 * config/d10v/tm-d10v.h, d10v-tdep.c (d10v_gdbarch_init): Update.
6429 * defs.h (REGISTER_NAME): Move compatibility definition from here.
6430 * gdbarch.h: To here.
6432 * frame.h, blockframe.c (generic_fix_call_dummy): New
6434 * gdbarch.h, gdbarch.c: Add multi-arch support for FIX_CALL_DUMMY.
6435 * config/d10v/tm-d10v.h, d10v-tdep.c (d10v_gdbarch_init): Update.
6437 Tue Jun 1 20:06:38 1999 Andrew Cagney <cagney@b1.cygnus.com>
6439 * d10v-tdep.c (d10v_gdbarch_init): Set get_saved_register.
6440 * config/d10v/tm-d10v.h: Update.
6442 Tue Jun 1 19:50:05 1999 Andrew Cagney <cagney@b1.cygnus.com>
6444 * gdbarch.h, gdbarch.c: Add multi-arch support for TARGET_READ_PC,
6445 TARGET_WRITE_PC, TARGET_READ_FP, TARGET_WRITE_FP, TARGET_READ_SP
6446 and TARGET_WRITE_SP.
6447 * config/d10v/tm-d10v.h, d10v-tdep.c (d10v_gdbarch_init): Update.
6449 Tue Jun 1 19:19:02 1999 Andrew Cagney <cagney@b1.cygnus.com>
6451 * gdbarch.c (default_gdbarch): Set field GET_SAVED_REGISTER to
6452 generic_get_saved_register.
6453 * gdbarch.c: Change update dispatch functions so that they check
6454 for a NULL function pointer.
6456 Tue Jun 1 19:19:02 1999 Andrew Cagney <cagney@b1.cygnus.com>
6458 * gdbarch.h, gdbarch.c: Add multi-arch support for TARGET_INT_BIT,
6459 TARGET_CHAR_BIT, TARGET_SHORT_BIT, TARGET_FLOAT_BIT,
6460 TARGET_DOUBLE_BIT and TARGET_LONG_DOUBLE_BIT.
6461 * config/d10v/tm-d10v.h, d10v-tdep.c (d10v_gdbarch_init): Update.
6463 Tue Jun 1 18:47:54 1999 Andrew Cagney <cagney@b1.cygnus.com>
6465 * parse.c (build_parse): New function. Initialize
6466 msym_text_symbol_type, msym_data_symbol_type and
6467 msym_unknown_symbol_type.
6468 (_initialize_parse): Call build_parse.
6469 (_initialize_parse): Register variables msym_text_symbol_type,
6470 msym_data_symbol_type as msym_unknown_symbol_type as
6473 Tue Jun 1 11:30:09 1999 Andrew Cagney <cagney@b1.cygnus.com>
6475 * d10v-tdep.c (_initialize_d10v_tdep): Register d10v as an
6477 (d10v_gdbarch_init): New function.
6478 * confg/d10v/tm-d10v.h (GDB_MULTI_ARCH): Define.
6480 Tue Jun 1 10:45:24 1999 Andrew Cagney <cagney@b1.cygnus.com>
6482 * config/d10v/tm-d10v.h (REGISTER_CONVERTIBLE,
6483 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERT_TO_VIRTUAL): Convert
6484 macros into functions.
6485 * config/d10v/tm-d10v.h, d10v-tdep.c (d10v_register_convertable,
6486 d10v_register_convert_to_virtual, d10v_register_convert_to_raw):
6489 1999-05-31 Fernando Nasser <fnasser@totem.to.cygnus.com>
6491 * breakpoint.c (print_it_normal): Convertion of part of the output
6493 (mention): Same as above.
6494 * infcmd.c (run_command): Same.
6495 * source.c (print_source_lines_base): Same.
6496 * stack.c (print_frame_info_base): Same.
6498 1999-05-31 Fernando Nasser <fnasser@totem.to.cygnus.com>
6500 * breakpoint.c (breakpoint_1): Fix names of fields on ui_out
6502 * ui-out.h: Cosmetic change.
6504 1999-05-31 Fernando Nasser <fnasser@totem.to.cygnus.com>
6506 * stack.c (print_args_stub): Add missing stream parameter.
6508 Mon May 31 15:50:08 1999 Andrew Cagney <cagney@b1.cygnus.com>
6510 Fri May 28 16:51:00 1999 Martin Dorey <martin.dorey@madge.com>:
6511 * valops.c, value.h (default_push_arguments): Fix order of
6512 parameters to match PUSH_ARGUMENTS arguments.
6514 1999-05-28 Fernando Nasser <fnasser@totem.to.cygnus.com>
6516 * top.c (print_command_lines): Simplified script format for
6519 1999-05-28 Fernando Nasser <fnasser@totem.to.cygnus.com>
6521 * top.c (print_command_lines): Fixed printing of if clauses.
6522 * breakpoint.c (breakpoint_1): Adjust call to the above.
6523 * top.c (show_user_1): Same as above.
6525 1999-05-27 Fernando Nasser <fnasser@totem.to.cygnus.com>
6527 * top.c (call_interp_loop): Correct build problem with UI_OUT defined.
6529 Thu May 27 11:42:55 1999 Andrew Cagney <cagney@b1.cygnus.com>
6531 * gdbarch.h (EXTRACT_STRUCT_VALUE_ADDRESS): Return 0.
6533 * valops.c (value_assign): Delete redundant test of
6534 REGISTER_CONVERTIBLE.
6536 Thu May 27 11:33:57 1999 Andrew Cagney <cagney@b1.cygnus.com>
6538 * config/w65/tm-w65.h, config/tic80/tm-tic80.h, config/sh/tm-sh.h,
6539 config/i386/tm-i386m3.h, config/i386/tm-go32.h,
6540 config/i386/tm-cygwin.h, config/h8500/tm-h8500.h,
6541 config/d30v/tm-d30v.h, config/d10v/tm-d10v.h: Delete definition of
6542 macro NAMES_HAVE_UNDERSCORE.
6544 Thu May 27 09:31:06 1999 Andrew Cagney <cagney@b1.cygnus.com>
6546 * gdbarch.h (EXTRACT_STRUCT_VALUE_ADDRESS,
6547 EXTRACT_STRUCT_VALUE_ADDRESS_P): Provide default definitions.
6548 * values.c (value_being_returned): Use
6549 EXTRACT_STRUCT_VALUE_ADDRESS when EXTRACT_STRUCT_VALUE_ADDRESS_P.
6551 Wed May 26 13:51:25 1999 Andrew Cagney <cagney@b1.cygnus.com>
6553 * utils.c (tui_file_new, tui_file_delete, tui_fileopen): New
6555 (tui_file_isatty): Rename gdb_file_isatty.
6556 (gdb_file_init_astring): Use tui_file_new to create stream.
6557 (gdb_file_get_strbuf, gdb_file_adjust_strbuf): Call gdb_file_data
6558 to access the tui_stream.
6559 (tui_file_flush): Rename gdb_flush. Call gdb_file_data to access
6560 the tui_stream. Pass FILE and not STREAM down.
6562 * utils.c (struct stdio_file, stdio_file_flush, stdio_file_fputs,
6563 stdio_file_isatty, stdio_file_delete, stdio_file_new,
6564 stdio_fileopen): Define type and functions. Implement a simple
6565 STDIO based gdb_file.
6566 (struct gdb_file, gdb_file_new, gdb_file_delete, null_file_isatty,
6567 null_file_flush, null_file_fputs, null_file_delete, gdb_file_data,
6568 set_gdb_file_flush, set_gdb_file_isatty, set_gdb_file_fputs,
6569 set_gdb_file_data, fputs_unfiltered, gdb_flush, gdb_file_isatty):
6570 Define type and functions. Implement virtual functions for
6573 * defs.h (struct gdb_file): Declare.
6574 (GDB_FILE): Change type to struct gdb_file. Deprecate.
6575 (gdb_file_flush_ftype, gdb_file_fputs_ftype,
6576 gdb_file_isatty_ftype, gdb_file_delete_ftype): Add function type
6579 * defs.h (set_gdb_file_flush, set_gdb_file_fputs,
6580 set_gdb_file_isatty, set_gdb_file_data, gdb_file_new,
6581 gdb_file_delete, gdb_file_data, stdio_fileopen, tui_fileopen): Add
6582 function declarations.
6583 (gdb_fopen): Re-implement. Call stdio_file_new.
6584 (gdb_fclose): Re-implement. Call gdb_file_delete.
6586 * main.c (tui_file_fputs): Rename fputs_unfiltered. Use
6587 gdb_file_data to gain access to the tui_stream data. Use FILE
6588 instead of STREAM where applicable.
6589 (main): Create gdb_stdout and gdb_stderr using tui_fileopen.
6591 * defs.h (struct tui_stream): Add field ts_magic.
6592 * utils.c (tui_file_magic): Local variable.
6593 (tui_file_new): Set field ts_magic.
6594 (tui_file_delete, tui_file_isatty, gdb_file_init_astring,
6595 gdb_file_get_strbuf, gdb_file_adjust_strbuf, tui_file_flush):
6598 1999-05-25 Fernando Nasser <fnasser@totem.to.cygnus.com>
6600 * top.c (print_command_lines): New function, fix bug in printing
6601 while commands and uses ui_out.
6602 * gdbcmd.c: Add prototype for the above.
6603 * breakpoint.c (breakpoint_1): Fix breakpoint script printing.
6604 * command.c (show_user_1): Fix user command script printing.
6606 1999-05-25 Jim Blandy <jimb@zwingli.cygnus.com>
6608 * breakpoint.c (insert_breakpoints, remove_breakpoint,
6609 breakpoint_1): Add a 'default' case, which prints a warning
6610 message, to remove EGCS warnings.
6612 1999-05-25 Fernando Nasser <fnasser@totem.to.cygnus.com>
6614 * utils.c (gdb_file_adjust_strbuf): Take into account the
6615 possibility that the buffer has not been allocated yet.
6617 Tue May 25 16:05:11 1999 Andrew Cagney <cagney@b1.cygnus.com>
6619 * gdbarch.h (REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
6620 REGISTER_CONVERT_TO_RAW): Provide default definition.
6622 * valops.c (value_assign), infcmd.c (do_registers_info), findvar.c
6623 (value_from_register, value_of_register): Remove #ifdef
6624 REGISTER_CONVERTIBLE. Assume REGISTER_CONVERTIBLE etc defined.
6626 1999-05-25 Keith Seitz <keiths@cygnus.com>
6628 * config/mcore/tm-mcore.h (FRAME_NUM_ARGS): Re-write definition of
6629 FRAME_NUM_ARGS so that it returns NUM_ARGS as a result instead of
6630 setting a variable as a side effect.
6632 Tue May 25 16:18:25 1999 Andrew Cagney <cagney@amy.cygnus.com>
6634 * remote-d10v.c (d10v_eva_prepare_to_trace,
6635 d10v_eva_get_trace_data), remote-sim.c (_initialize_remote_sim):
6636 Add declaraton. Make static.
6638 * remote-d10v.c (_initialize_remote_d10v), d10v-tdep.c
6639 (_initialize_d10v_tdep): Add declaration.
6640 * config/d10v/tm-d10v.h (d10v_frame_chain): Add declaration.
6642 Tue May 25 15:20:58 1999 Andrew Cagney <cagney@amy.cygnus.com>
6644 * main.c (init_proc, proc_remove_foreign): Delete function.
6645 * inftarg.c (child_mourn_inferior): Update. Delete call to
6646 proc_remove_foreign().
6647 * top.c (gdb_init): Update. Delete call to init_proc().
6649 * utils.c (pollquit, fmthex, hexlate): Delete function.
6651 Tue May 25 13:01:43 1999 Andrew Cagney <cagney@amy.cygnus.com>
6653 * main.c (gdb_init): Move declaration from here.
6656 * main.c (call_interp_loop): Move declaration from here.
6659 * defs.h (init_page_info): Add declaration.
6661 * top.c (initialize_utils): Move declaration from here.
6664 * infcmd.c (target_map_name_to_register): Move declaration from
6666 * parser-defs.h: To here.
6668 * c-typeprint.c (cp_type_print_method_args), target.c
6669 (nosupport_runtime, normal_target_post_startup_inferior): Add
6670 declaration. Make static.
6672 Tue May 25 13:53:23 1999 Andrew Cagney <cagney@amy.cygnus.com>
6674 * main.c: Include "event-loop.h".
6675 * Makefile.in (main.o): Add dependency.
6677 * top.h (setup_event_loop, async_init_signals), top.c
6678 (set_async_editing_command, set_async_annotation_level,
6679 set_async_prompt), event-loop.c (display_gdb_prompt): Move
6680 declarations from here.
6681 * event-loop.h: To here.
6683 * event-loop.h (delete_async_signal_handler): Add function
6686 * event-top.c (change_annotation_level, command_handler): Add
6687 declaration. Make static.
6689 Tue May 25 12:44:58 1999 Andrew Cagney <cagney@amy.cygnus.com>
6691 * tracepoint.c (free_actions_list, add_register): Add declaration.
6693 (free_actions_list_cleanup_wrapper): New function. Wraps
6694 free_actions_list for make_cleanup.
6695 (trace_start_command): Pass free_actions_list_cleanup_wrapper
6696 instead of free_actions_list to make_cleanup.
6697 (_initialize_tracepoint): Add extern declaration.
6699 Tue May 25 12:23:39 1999 Andrew Cagney <cagney@amy.cygnus.com>
6701 * jv-typeprint.c (java_type_print_base, jv-valprint.c
6702 (java_print_value_fields): Add static declaration.
6704 * jv-lang.c (java_lookup_type, get_java_utf8_name,
6705 java_lookup_type): Add static declaration.
6706 (get_java_class_symtab, java_class_is_primitive,
6707 java_value_string): Add declaration. Make static.
6708 (java_rerun_cleanup): Add extern declaration for this stub
6711 Tue May 25 12:06:29 1999 Andrew Cagney <cagney@b1.cygnus.com>
6713 * gdbarch.h: When multi-arch, check that REGISTER_NAMES was not
6716 Mon May 24 16:16:29 1999 Andrew Cagney <cagney@amy.cygnus.com>
6718 * inflow.c (_initialize_inflow), annotate.c
6719 (_initialize_annotate), os9kread.c (_initialize_os9kread),
6720 serial.c (_initialize_serial), nlmread.c (_initialize_nlmread),
6721 f-valprint.c (_initialize_f_valprint), cp-valprint.c
6722 (_initialize_cp_valprint), typeprint.c (_initialize_typeprint),
6723 complaints.c (_initialize_complaints), scm-lang.c
6724 (_initialize_scheme_language), m2-lang.c
6725 (_initialize_m2_language), dbxread.c (_initialize_dbxread),
6726 f-lang.c (_initialize_f_language), ch-lang.c
6727 (_initialize_chill_language), c-lang.c (_initialize_c_language),
6728 corefile.c (_initialize_core), stabsread.c
6729 (_initialize_stabsread), mipsread.c (_initialize_mipsread),
6730 elfread.c (_initialize_elfread), coffread.c
6731 (_initialize_coffread), maint.c (_initialize_maint_cmds),
6732 demangle.c (_initialize_demangler), maint.c
6733 (_initialize_maint_cmds), language.c (_initialize_language): Add
6734 external declaration.
6735 * ui-out.c (_initialize_ui_out), cli-out.c (_initialize_cli_out):
6738 Mon May 24 10:04:56 1999 Andrew Cagney <cagney@b1.cygnus.com>
6740 * config/z8k/tm-z8k.h, config/w65/tm-w65.h, config/v850/tm-v850.h,
6741 config/tic80/tm-tic80.h, config/tahoe/tm-tahoe.h,
6742 config/rs6000/tm-rs6000.h, config/sparc/tm-sparc.h,
6743 config/sh/tm-sh.h, config/pyr/tm-pyr.h, config/pa/tm-hppa.h,
6744 config/ns32k/tm-merlin.h, config/mn10300/tm-mn10300.h,
6745 config/mn10200/tm-mn10200.h, config/mips/tm-mips.h,
6746 config/m88k/tm-m88k.h, config/m68k/tm-news.h,
6747 config/m68k/tm-delta68.h, config/m68k/tm-isi.h,
6748 config/m68k/tm-m68k.h, config/m32r/tm-m32r.h,
6749 config/i960/tm-i960.h, config/i386/tm-i386v.h,
6750 config/i386/tm-i386.h, config/h8500/tm-h8500.h,
6751 config/h8300/tm-h8300.h, config/fr30/tm-fr30.h,
6752 config/d30v/tm-d30v.h, config/d10v/tm-d10v.h,
6753 config/convex/tm-convex.h, config/arc/tm-arc.h,
6754 config/arm/tm-arm.h, config/alpha/tm-alpha.h,
6755 config/a29k/tm-a29k.h: Re-write definition of FRAME_NUM_ARGS so
6756 that it returns NUM_ARGS as a result instead of setting a variable
6759 * ns32k-tdep.c (merlin_frame_num_args), tahoe-tdep.c
6760 (tahoe_frame_num_args), vax-tdep.c (vax_frame_num_args),
6761 m68k-tdep.c (news_frame_num_args, delta68_frame_num_args,
6762 isi_frame_num_args), convex-tdep.c (convex_frame_num_args): New
6765 * stack.c (print_args_stub): Update use of FRAME_NUM_ARGS.
6767 Mon May 24 11:57:04 1999 Andrew Cagney <cagney@b1.cygnus.com>
6769 * remote.c (remote_xfer_memory): Re-write with assumption that
6770 REMOTE_TRANSLATE_XFER_ADDRESS is defined. Pass targ_addr and
6771 targ_len by reference.
6772 (REMOTE_TRANSLATE_XFER_ADDRESS): Provide default definition.
6774 * remote-d10v.c (remote_d10v_translate_xfer_address): Update.
6775 * config/d10v/tm-d10v.h (REMOTE_TRANSLATE_XFER_ADDRESS): Update.
6777 Mon May 24 12:10:58 1999 Andrew Cagney <cagney@amy.cygnus.com>
6779 * value.h (default_push_arguments): Add function declaration.
6781 * alpha-tdep.c (alpha_about_to_return), gdbarch.c (verify_gdbarch,
6782 arch_ok, set_arch), command.c (find_cmd), infrun.c
6783 (follow_inferior_fork, follow_fork, follow_vfork,
6784 set_schedlock_func, is_internal_shlib_eventpoint,
6785 stopped_for_internal_shlib_event, stopped_for_shlib_catchpoint,
6786 xdb_handle_command), infcmd.c (run_no_args_command, go_command),
6787 symfile.c (add_filename_language, set_ext_lang_command,
6788 info_ext_lang_command, init_filename_language_table), symtab.c
6789 (overload_list_add_symbol), defs.h (default_get_saved_register),
6790 ax-general.c (grow_expr, append_const, read_const, generic_ext):
6793 * infrun.c (currently_stepping): Ditto. Make static.
6795 * valops.c (hand_function_call): Explictly type static variable
6798 Mon May 24 08:36:18 1999 Andrew Cagney <cagney@b1.cygnus.com>
6800 * d10v-tdep.c (d10v_breakpoint_from_pc, d10v_register_name,
6801 d10v_register_byte, d10v_register_raw_size,
6802 d10v_register_virtual_size, d10v_register_virtual_type,
6803 d10v_make_daddr, d10v_make_iaddr, d10v_daddr_p, d10v_iaddr_p,
6804 d10v_convert_iaddr_to_raw, d10v_convert_daddr_to_raw,
6805 d10v_store_struct_return, d10v_store_return_value,
6806 d10v_extract_struct_value_address, d10v_frame_saved_pc,
6807 d10v_frame_args_address, d10v_frame_locals_address,
6808 d10v_saved_pc_after_call): New functions.
6810 * config/d10v/tm-d10v.h (REGISTER_BYTE, REGISTER_RAW_SIZE,
6811 REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN,
6812 D10V_MAKE_DADDR, D10V_MAKE_IADDR, D10V_DADDR_P, D10V_IADDR_P,
6813 D10V_CONVERT_DADDR_TO_RAW, D10V_CONVERT_IADDR_TO_RAW,
6814 STORE_STRUCT_RETURN, STORE_RETURN_VALUE,
6815 EXTRACT_STRUCT_VALUE_ADDRESS, SAVED_PC_AFTER_CALL, FRAME_SAVED_PC,
6816 FRAME_ARGS_ADDRESS): Re-define using new functions.
6818 * config/d10v/tm-d10v.h (BREAKPOINT_FROM_PC): Replace BREAKPOINT.
6819 (REGISTER_NAME): Replace REGISTER_NAMES.
6821 * utils.c (core_addr_lessthan, core_addr_greaterthan): New
6823 * defs.h (core_addr_lessthan, core_addr_greaterthan): Declare.
6825 Sat May 22 16:44:06 1999 Andrew Cagney <cagney@b1.cygnus.com>
6827 * utils.c (n_spaces): Handle case where first call has N equal to
6829 (print_spaces): Use n_spaces.
6831 Fri May 21 11:23:54 1999 Andrew Cagney <cagney@b1.cygnus.com>
6833 * valops.c (value_push): Remove conditional definition based on
6834 absense of macro PUSH_ARGUMENTS. Pass SP and STRUCT_ADDR by
6836 (default_push_arguments): New function.
6838 * config/v850/tm-v850.h, config/tic80/tm-tic80.h,
6839 config/sparc/tm-sparc.h, config/sparc/tm-sp64.h,
6840 config/sh/tm-sh.h, config/rs6000/tm-rs6000.h, config/pa/tm-hppa.h,
6841 config/mn10300/tm-mn10300.h, config/mn10200/tm-mn10200.h,
6842 config/mips/tm-mips.h, config/m32r/tm-m32r.h,
6843 config/h8300/tm-h8300.h, config/fr30/tm-fr30.h,
6844 config/d30v/tm-d30v.h, config/d10v/tm-d10v.h, config/arm/tm-arm.h,
6845 config/alpha/tm-alpha.h: Update definition of PUSH_ARGUMENTS.
6848 * rs6000-tdep.c (rs6000_push_arguments): Rename push_arguments.
6850 1999-05-21 Fernando Nasser <fnasser@totem.to.cygnus.com>
6852 * breakpoint.c (breakpoint_1): Added ui_out output code but still
6853 uses old code by default.
6855 1999-05-21 Fernando Nasser <fnasser@totem.to.cygnus.com>
6857 * Makefile.in: Added ui-ou files.
6858 * main.c (main): Install cli_out by default.
6859 * ui-out.c (ui_out_table_begin): Use saved table id.
6861 1999-05-21 Fernando Nasser <fnasser@totem.to.cygnus.com>
6863 * ui-out.h: Export implementation vectors so they can be
6864 installed in main.c and top.c.
6866 1999-05-21 Fernando Nasser <fnasser@totem.to.cygnus.com>
6868 * ui-out.h: New file. Defines the ui_out API.
6869 * ui-out.c: New file. Implements the ui_out API abstraction only.
6870 * cli-out.c: New file. Implements low-level ui-out primitives for
6871 CLI-based interaction.
6873 1999-05-20 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
6875 * top.c (simplified_command_loop): Reformat using GNU style.
6876 (call_interp_loop): Ditto.
6878 Thu May 20 12:18:28 1999 Andrew Cagney <cagney@b1.cygnus.com>
6880 * blockframe.c (get_prev_frame): Remove #ifdef around test for
6881 FRAMELESS_FUNCTION_INVOCATION.
6882 (get_prev_frame): Change FRAMELESS_FUNCTION_INVOCATION call to a
6883 function invocation.
6884 * i386-tdep.c (i386_frame_num_args), stack.c (frame_info): Ditto.
6885 * config/z8k/tm-z8k.h, config/w65/tm-w65.h, config/vax/tm-vax.h,
6886 config/sparc/tm-sparc.h, config/sh/tm-sh.h,
6887 config/rs6000/tm-rs6000.h, config/pa/tm-hppa.h,
6888 config/mips/tm-mips.h, config/m88k/tm-m88k.h,
6889 config/m68k/tm-m68k.h, config/i960/tm-i960.h,
6890 config/i386/tm-sun386.h, config/i386/tm-i386v.h,
6891 config/i386/tm-i386.h, config/h8500/tm-h8500.h,
6892 config/h8300/tm-h8300.h, config/fr30/tm-fr30.h,
6893 config/d30v/tm-d30v.h, config/d10v/tm-d10v.h,
6894 config/convex/tm-convex.h, config/arm/tm-arm.h,
6895 config/arc/tm-arc.h, config/alpha/tm-alpha.h,
6896 config/a29k/tm-a29k.h: Update FRAMELESS_FUNCTION_INVOCATION.
6897 * fr30-tdep.c (fr30_frameless_function_invocation), convex-tdep.c
6898 (convex_frameless_function_invocation), arm-tdep.c
6899 (arm_frameless_function_invocation): New functions.
6901 1999-05-20 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
6903 * top.c: Change dates in comments to ISO format.
6905 * event-top.c: Ditto.
6906 * event-loop.c: Ditto.
6909 1999-05-20 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
6911 * top.c (simplified_command_loop): New function. It is just a
6912 bare minimal command_loop.
6913 (call_interp_loop): New function. Call the correct version of the
6914 command loop, with the appropriate input reading function,
6915 depending on which interpreter gdb was invoked with.
6917 * main.c (main): Recognize and handle the new command line option
6918 --interpreter. If an interpreter is specified, call the appropriate
6919 command handling function.
6921 1999-05-19 Keith Seitz <keiths@cygnus.com>
6923 * config/mcore/tm-mcore.h (BELIEVE_PCC_PROMOTION): Define. We
6924 really do want to believe what gcc tells us about types...
6926 1999-05-19 Keith Seitz <keiths@cygnus.com>
6928 * config/mcore/tm-mcore.h (FRAME_ARGS_ADDRESS): Define to a function.
6929 (FRAME_LOCALS_ADDRESS): Ditto.
6930 * mcore-tdep.c (mcore_frame_args_addcress): New function.
6931 (mcore_frame_locals_address): New function.
6933 * monitor.c (monitor_open): Only assume we have eight
6934 breakpoints if the monitor implementation does not tell
6935 us how many there really are. Alloc memory for these
6937 (monitor_close): Free memory associated with breakpoint
6939 (monitor_insert_breakpoint): Don't rely on a hardcoded
6940 number of breakpoints.
6941 (monitor_remove_breakpoint): Ditto.
6942 (NUM_MONITOR_BREAKPOINTS): Removed and replaced with monitor_ops
6944 * monitor.h (struct monitor_ops): Add new member so that the
6945 individual monitor implementations can tell us how many
6946 breakpoints the monitor supports.
6948 * mcore-rom.c (init_picobug_cmds): Add number of breakpoints supported
6951 1999-05-18 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
6953 From Philippe De Muyter <phdm@macqel.be>:
6954 * event-loop.h: Include sys/wait.h only if HAVE_SYS_WAIT_H.
6956 1999-05-17 Keith Seitz <keiths@cygnus.com>
6958 * configure.tgt: Add MCore target.
6959 * Makefile.in: Add mcore-tdep.c and mcore-rom.c
6960 * config/mcore/tm-mcore.h: New file.
6961 * config/mcore/mcore.mt: New file.
6962 * mcore-rom.c: New file.
6963 * mcore-tdep.c: New file.
6965 1999-05-17 Fernando Nasser <fnasser@totem.to.cygnus.com>
6967 * top.c (print_command_line): Added the missing stream argument.
6968 * gdbcmd.h: Added argument to prototype.
6969 * command.c: Fixed call to include extra argument.
6970 * breakpoint.c: Same.
6972 1999-05-14 Jim Blandy <jimb@zwingli.cygnus.com>
6974 Targets are #defining PREPARE_TO_PROCEED with inconsistent numbers
6975 of arguments. Since the Mach 3 target needs an argument, we'll
6976 make things consistent by adding an argument everywhere.
6977 * infrun.c (proceed): Pass an argument to PREPARE_TO_PROCEED.
6978 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Add ignored argument
6981 1999-05-11 Stan Shebs <shebs@andros.cygnus.com>
6983 Fri Apr 23 13:27:34 PDT 1999 Toshiyasu Morita (tm@netcom.com)
6984 * sh-stub.c: Mostly localize processor dependencies.
6986 1999-05-10 Martin Hunt <hunt@cygnus.com>
6988 * debugify.c, debugify.h: Removed because they are no
6991 1999-05-08 Jim Blandy <jimb@zwingli.cygnus.com>
6993 * infrun.c (_initialize_infrun): Handle TARGET_SIGNAL_LWP,
6994 TARGET_SIGNAL_WAITING, and TARGET_SIGNAL_CANCEL like SIGALRM or
6995 SIGIO --- pass them through to the inferior silently.
6996 * target.h (enum target_signals): Add TARGET_SIGNAL_CANCEL, for
6997 Solaris's SIGCANCEL.
6998 * target.c (target_signal_from_host, target_signal_to_host): Add
6999 mapping between SIGCANCEL and TARGET_SIGNAL_CANCEL.
7000 (signals): Add entry for SIGCANCEL.
7002 1999-05-07 Stan Shebs <shebs@andros.cygnus.com>
7004 After years of talking about it, finally break up the
7005 wait_for_inferior loop.
7006 * infrun.c (struct execution_control_state): New struct,
7007 holds what used to be local vars governing wfi behavior.
7008 (init_execution_control_state): New function, was code in
7009 wfi that set up execution control state.
7010 (handle_inferior_event): New function, was body of main
7011 wfi loop. Rewrite all local var references to go through
7012 the ecs structure passed into this function.
7013 (wait_for_inferior): Rewrite to set up and use execution control
7014 state, and to call the new functions.
7015 (currently_stepping): New function, was the macro
7017 (enum infwait_states): Rename from wfi_states.
7018 (infwait_normal_state, etc): Similarly.
7020 Thu May 6 15:25:32 1999 Philippe De Muyter <phdm@macqel.be>
7022 * coffread.c (coff_symtab_read): Call `record_line' with the line
7023 number of the ".bf" symbol only for one-line functions.
7025 1999-05-06 Michael Snyder <msnyder@cleaver.cygnus.com>
7027 * Makefile.in: thread.o depends on target.h.
7029 1999-05-06 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
7031 * event-top.c (change_line_handler): Use POLLIN instead of
7032 POLLRDNORM, for compatibility with Linux.
7033 (setup_event_loop): Ditto.
7035 1999-05-06 Jim Blandy <jimb@zwingli.cygnus.com>
7037 * mips-tdep.c (heuristic_proc_start): Rewrite cryptic error
7038 message about hitting the "heuristic fence post" with something
7039 that actually gives the user a fighting chance of figuring out
7042 1999-05-06 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
7044 * top.c: Include event-loop.h.
7045 (init_main): Add async version of 'set prompt' command.
7046 If in async mode define the editing and annotate set
7047 commands in a different way.
7048 Initialize new variable asyn_command_editing_p to 1.
7049 Initialize the gdb prompt for async mode.
7050 (quit_cover): Make not static, for use by the event loop.
7051 (gdb_init): Call async_init_signals for the asynchronous case.
7052 (source_line_number, source_file_name, source_error,
7053 source_pre_error, history_expansion_p): Make non-static, so
7054 event-top.c can use them.
7055 (command_loop_marker): Make non-static, for use in event-top.c.
7056 Include event-loop.h.
7058 * top.h: Add prototype for async_init_signals.
7059 (SET_TOP_LEVEL): Move here from main.c.
7060 Add setup_event_loop to exported functions.
7062 * defs.h: Add async_hook to exported variables.
7064 * main.c (SET_TOP_LEVEL): Move to top.h, so that it is visible in
7065 event-loop.c. Add new global variable async to determine whether
7066 we are running in async mode or not.
7067 (main): Add support for --async switch. Use async_hook to call
7068 setup_event_loop, when running in async mode.
7070 * event-top.c: New file. Gdb input line handler and command line
7071 handler for the event loop. Initialization of signal handlers.
7072 All the handled signals have handlers called handle_<signalname>.
7073 Set up all the appropriate tokens for asynchronous signal
7076 * event-loop.h: New file. Data structures and definitions for the
7079 * event-loop.c: New file. Functions for the event loop
7082 * config.in: Regenerate with autoheader.
7084 * configure.in (AC_CHECK_FUNCS): Add poll to list of functions
7087 * configure: Regenerate.
7089 * Makefile.in (SFILES): Add new source files.
7090 (eventloop_h): Define.
7091 (COMMON_OBS): Add new object files.
7092 (event-loop.o): Add rule for target object.
7093 (event-top.o): Ditto.
7095 1999-05-05 Stan Shebs <shebs@andros.cygnus.com>
7097 * infrun.c (wait_for_inferior): Transform breaks and continues
7098 into gotos, move the target_wait to the very top of the loop.
7100 1999-05-05 Jonathan Larmour <jlarmour@cygnus.co.uk>
7102 * configure.in: Ensure that GDB links with libuser32.a under
7103 cygwin because libreadline requires it.
7104 * Makefile.in (WIN32LIBS): Substitute in result from configure
7105 * configure: regenerate
7107 1999-05-04 Jim Blandy <jimb@zwingli.cygnus.com>
7109 Fix from John Rigby. Richard Henderson says it seems okay.
7110 * alpha-tdep.c (PROC_DUMMY_FRAME): As long as we're abusing fields
7111 of (proc)->pdr, we ought to at least abuse one large enough to
7112 hold the value we're trying to store in it. iopt is only 32 bits
7113 wide; cbLineOffset is a bfd_vma.
7115 1999-05-04 DJ Delorie <dj@cygnus.com>
7117 DJGPP changes from Robert Hoehne <robert.hoehne@gmx.net>
7119 * ser-go32.c: correct includes
7120 * source.c (openp): use ROOTED_P instead of SLASH_P
7121 * go32-nat.c: enhance exception and NPX handling
7122 (go32_kill_inferior): fix small bug killing inferior
7123 * configure.in: don't look for termcap with djgpp
7124 * configure: rebuild
7126 1999-05-04 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
7128 * main.c (main): Comment out unused and undocumented command line
7131 1999-04-30 Jim Blandy <jimb@zwingli.cygnus.com>
7133 Cleanup from Philippe De Muyter:
7134 * configure.in (BFD_NEED_DECLARATION): Check also for strstr.
7135 * acconfig.h (NEED_DECLARATION_MALLOC, NEED_DECLARATION_REALLOC,
7136 NEED_DECLARATION_FREE, NEED_DECLARATION_STRERROR): Define slots
7137 removed; they are now generated automatically.
7138 * gdb_string.h (strstr): Provide function prototype if
7139 NEED_DECLARATION_STRSTR.
7140 * configure, config.in: Regenerated.
7142 Fri Apr 30 11:16:09 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
7144 * target.h (to_find_new_threads): new target ops vector.
7145 (target_find_new_threads): define.
7146 * target.c (update_current_target): inherit new target ops vector.
7147 * remote.c: Setup to_find_new_threads vector.
7148 * sol-thread.c: ditto.
7149 * thread.c (target_find_new_threads): rename: local_find_new_threads.
7150 (info_threads_command): call target_find_new_threads by new method,
7151 as a target ops vector, rather than previous macro definition method.
7152 * infcmd.c (go_command): define only if in xdb mode.
7153 * procfs.c: fix typo in comment.
7155 Fri Apr 30 01:02:05 1999 Jeffrey A Law (law@cygnus.com)
7157 * hppah-nat.c: Fix various coding convention violations introduced
7159 (child_acknowledge_created_inferior): Do nothing if PT_SET_EVENT_MASK
7162 1999-04-28 Stan Shebs <shebs@andros.cygnus.com>
7164 * TODO: Add some items inspired by review of the manual.
7166 Tue Apr 27 17:38:19 1999 Andrew Cagney <cagney@b1.cygnus.com>
7168 * config/z8k/tm-z8k.h, config/v850/tm-v850.h,
7169 config/tic80/tm-tic80.h, config/sparc/tm-sparc.h,
7170 config/sh/tm-sh.h, config/pyr/tm-pyr.h, config/pa/tm-hppa.h,
7171 config/mn10300/tm-mn10300.h, config/mn10200/tm-mn10200.h,
7172 config/mips/tm-mips.h, config/m88k/tm-m88k.h,
7173 config/m68k/tm-m68k.h, config/m32r/tm-m32r.h,
7174 config/i960/tm-i960.h, config/i386/tm-i386.h,
7175 config/h8500/tm-h8500.h, config/h8300/tm-h8300.h,
7176 config/fr30/tm-fr30.h, config/d30v/tm-d30v.h,
7177 config/d10v/tm-d10v.h, config/alpha/tm-alpha.h,
7178 config/arm/tm-arm.h, config/a29k/tm-a29k.h, config/arc/tm-arc.h:
7179 Change SKIP_PROLOGUE and SKIP_PROLOGUE_FRAMELESS_P macros so that
7180 they return the new address.
7182 * sparc-tdep.c (sparc_skip_prologue), hppa-tdep.c
7183 (hppa_skip_prologue), m88k-tdep.c
7184 (m88k_skip_prologue), i960-tdep.c
7185 (i960_skip_prologue), arc-tdep.c
7186 (arc_skip_prologue), a29k-tdep.c (a29k_skip_prologue): Rename
7187 skip_prologue function.
7189 * config/m68k/tm-isi.h: Convert macro SKIP_PROLOGUE into a new
7191 * m68k-tdep.c (isi_skip_prologue): That new function.
7192 * vax-tdep.c (vax_skip_prologue), config/vax/tm-vax.h: Ditto.
7193 * tahoe-tdep.c (tahoe_skip_prologue), config/tahoe/tm-tahoe.h: Ditto.
7194 * rs6000-tdep.c (rs6000_skip_prologue), config/rs6000/tm-rs6000.h:
7196 * ns32k-tdep.c (umax_skip_prologue), config/ns32k/tm-umax.h: Ditto.
7197 * config/ns32k/tm-merlin.h, ns32k-tdep.c (merlin_skip_prologue):
7199 * config/m68k/tm-altos.h, m68k-tdep.c (altos_skip_prologue): Ditto.
7200 * config/convex/tm-convex.h, convex-tdep.c (convex_skip_prologue):
7203 * symtab.c (in_prologue, find_function_start_sal, decode_line_1),
7204 infrun.c (wait_for_inferior), blockframe.c
7205 (frameless_look_for_prologue): Update.
7206 * config/fr30/tm-fr30.h (FRAMELESS_FUNCTION_INVOCATION): Update.
7208 1999-04-27 Stan Shebs <shebs@andros.cygnus.com>
7210 * TODO: Remove item about DEBUG_EXPRESSIONS, no longer meaningful.
7212 * infrun.c (enum wfi_state): New enum.
7213 (wait_for_inferior): Merge all but one of the target_wait calls
7214 into a single call, add a wfi_state variable to encode which of
7215 the calls is being made.
7217 1999-04-26 Jim Blandy <jimb@zwingli.cygnus.com>
7219 Fix from Dave Holcomb.
7220 * hpux-thread.c (init_hpux_thread_ops): Use the right function
7221 name when initializing hpux_thread_ops.to_thread_alive.
7223 * coffread.c (coff_symfile_read): If we have a `.stab' section,
7224 but no `.stabstr' section, then print an error message; don't
7227 1999-04-26 Jim Blandy <jimb@zwingli.cygnus.com>
7229 1999-04-25 Mark Kettenis <kettenis@gnu.org>
7231 * gnu-nat.c (gnu_attach): Call target_terminal_init before calling
7232 inf_set_traced, since that function calls code that might try to
7233 restore the terminal settings.
7235 Mon Apr 26 08:55:46 1999 Andrew Cagney <cagney@b1.cygnus.com>
7237 * gdbarch.h, gdbarch.c: More format cleanups.
7239 Sun Apr 25 18:54:51 1999 Andrew Cagney <cagney@b1.cygnus.com>
7241 * gdbarch.h (CALL_DUMMY_STACK_ADJUST_P): Replace
7242 SIZEOF_CALL_DUMMY_STACK_ADJUST_P.
7243 (CALL_DUMMY_STACK_ADJUST): Replace
7244 SIZEOF_CALL_DUMMY_STACK_ADJUST_P.
7245 * gdbarch.c (gdbarch_call_dummy_stack_adjust,
7246 set_gdbarch_call_dummy_stack_adjust): Define.
7248 Fri Apr 23 15:00:25 1999 Andrew Cagney <cagney@b1.cygnus.com>
7250 * gdbarch.c (arch_ok): New function. Fix logic test for a valid
7254 1999-04-22 Jason Molenda (jsm@bugshack.cygnus.com)
7256 * README: Note that readline is not installed as a part of
7259 Thu Apr 22 21:02:28 1999 Andrew Cagney <cagney@b1.cygnus.com>
7261 * gdbarch.h, gdbarch.c (GET_SAVED_REGISTER, get_saved_register):
7263 (struct gdbarch, verify_gdbarch, gdbarch_alloc, gdbarch_dump,
7264 default_gdbarch): Update.
7266 * value.h (get_saved_register): Cleanup prototype.
7267 * findvar.c (default_get_saved_register): Rename function
7269 (GET_SAVED_REGISTER): Define as default_get_saved_register when
7271 (get_saved_register): Always declare. Call GET_SAVED_REGISTER.
7273 * sparc-tdep.c (sparc_get_saved_register): Rename function
7275 * config/sparc/tm-sparc.h (GET_SAVED_REGISTER): Update.
7276 * a29k-tdep.c (a29k_get_saved_register): Rename function
7278 * config/a29k/tm-a29k.h (GET_SAVED_REGISTER): Update.
7280 * config/d10v/tm-d10v.h, config/powerpc/tm-ppc-eabi.h,
7281 config/h8300/tm-h8300.h, config/m32r/tm-m32r.h,
7282 config/mn10200/tm-mn10200.h, config/mn10300/tm-mn10300.h,
7283 config/sh/tm-sh.h, config/tic80/tm-tic80.h, config/v850/tm-v850.h:
7284 Update macro GET_SAVED_REGISTER so that it calls
7285 generic_get_saved_register.
7286 * v850-tdep.c, tic80-tdep.c, sh-tdep.c, mn10300-tdep.c,
7287 mn10200-tdep.c, m32r-tdep.c, h8300-tdep.c, rs6000-tdep.c: Delete
7288 function get_saved_register.
7290 Thu Apr 22 13:32:23 1999 Andrew Cagney <cagney@b1.cygnus.com>
7292 * gdbarch.c: Cleanup. Re-order the definition of the ``struct
7293 gdbarch'' initialization functions so that maintenance is more
7296 Thu Apr 22 11:07:21 1999 Andrew Cagney <cagney@b1.cygnus.com>
7298 * gdbarch.h, gdbarch.c (use_generic_dummy_frames,
7299 USE_GENERIC_DUMMY_FRAMES): Add.
7300 (struct gdbarch, verify_gdbarch, gdbarch_alloc, gdbarch_dump,
7301 default_gdbarch): Update.
7303 * config/v850/tm-v850.h, config/tic80/tm-tic80.h,
7304 config/sh/tm-sh.h, config/powerpc/tm-ppc-eabi.h,
7305 config/mn10300/tm-mn10300.h, config/mn10200/tm-mn10200.h,
7306 config/m32r/tm-m32r.h, config/h8300/tm-h8300.h,
7307 config/fr30/tm-fr30.h, config/d10v/tm-d10v.h: Give the
7308 USE_GENERIC_DUMMY_FRAMES macro the value one.
7309 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Default to a value of
7312 * blockframe.c (generic_find_dummy_frame,
7313 generic_pc_in_call_dummy, generic_read_register_dummy,
7314 generic_push_dummy_frame, generic_pop_current_frame,
7315 generic_pop_dummy_frame, generic_frame_chain_valid,
7316 generic_get_saved_register): Always define.
7318 * breakpoint.c (frame_in_dummy): Convert #ifdef
7319 USE_GENERIC_DUMMY_FRAMES to runtime test.
7321 * rs6000-tdep.c (pop_frame, push_arguments, push_arguments,
7322 push_arguments, frame_saved_pc, rs6000_frame_chain,
7323 rs6000_frame_chain): Convert #ifdef USE_GENERIC_DUMMY_FRAMES to
7325 (get_saved_register): Always define.
7327 Wed Apr 21 17:15:52 1999 Andrew Cagney <cagney@b1.cygnus.com>
7329 * gdbarch.c (gdbarch_dump): Fix robustness check on
7330 BELIEVE_PCC_PROMOTION_TYPE.
7332 Wed Apr 21 15:39:27 1999 Andrew Cagney <cagney@b1.cygnus.com>
7334 * gdbarch.h (TARGET_BYTE_ORDER_SELECTABLE_P): When multi-arch,
7335 force selectable byte order.
7336 (CALL_DUMMY): Check for CALL_DUMMY definition when multi-arch. Are
7338 * gdbarch.c (verify_gdbarch): Check call_dummy_stack_adjust.
7340 Wed Apr 21 14:45:44 1999 Andrew Cagney <cagney@b1.cygnus.com>
7342 * gdbarch.c (gdbarch_update): Move dump-arch code from here.
7343 (gdbarch_dump): To here. Make more robust.
7344 * gdbarch.h (gdbarch_dump): Add prototype.
7346 * gdbarch.c (enum set_arch): Declare.
7347 (set_arch): Add type parameter. Only disable
7348 ``target_architecture_auto'' when set_arch_manual.
7349 (set_architecture, set_architecture_from_arch_mach,
7350 set_architecture_from_file): Update.
7351 (set_arch): When ``gdbarch_debug'', gdbarch_dump() the current
7354 Wed Apr 21 10:48:53 1999 Andrew Cagney <cagney@b1.cygnus.com>
7356 * frame.h (generic_pc_in_call_dummy): Make signature consistent
7357 with other pc_in_call_dummy functions by adding SP parameter.
7358 * blockframe.c (generic_pc_in_call_dummy): Update. Pass SP and
7359 not FP to generic_find_dummy_frame().
7360 * breakpoint.c (frame_in_dummy): Update.
7361 * config/v850/tm-v850.h, config/tic80/tm-tic80.h,
7362 config/sh/tm-sh.h, config/mn10300/tm-mn10300.h,
7363 config/mn10200/tm-mn10200.h, config/m32r/tm-m32r.h,
7364 config/h8300/tm-h8300.h, config/fr30/tm-fr30.h,
7365 config/d10v/tm-d10v.h: Update PC_IN_CALL_DUMMY definition.
7367 Tue Apr 20 12:15:45 1999 Andrew Cagney <cagney@b1.cygnus.com>
7369 * config/d10v/tm-d10v.h (GDB_TARGET_IS_D10V): Move from here.
7370 * gdbarch.h (GDB_TARGET_IS_D10V): To here. Implement using
7371 TARGET_ARCHITECTURE.
7372 (D10V_MAKE_DADDR, D10V_MAKE_IADDR): Provide fatal default
7375 * valops.c (value_at): Replace #ifdef GDB_TARGET_IS_D10V code with
7377 (value_fetch_lazy): Ditto.
7378 * values.c (unpack_long): Ditto.
7379 * printcmd.c (print_frame_args): Ditto.
7381 Sat Apr 17 15:39:33 1999 Andrew Cagney <cagney@b1.cygnus.com>
7383 * gdbarch.h: Cleanup multi-arch comments.
7385 Fri Apr 16 15:39:10 1999 Andrew Cagney <cagney@b1.cygnus.com>
7387 * gdbarch.h: Provide definition if GDB_MULTI_ARCH > 1 or
7388 GDB_MULTI_ARCH > 0 and no previous definition.
7389 * gdbarch.c (verify_gdbarch): Only verify a full multi-arch
7392 1999-04-15 Stan Shebs <shebs@andros.cygnus.com>
7394 * infrun.c (wait_for_inferior) [HAVE_STEPPABLE_WATCHPOINT,
7395 HAVE_NONSTEPPABLE_WATCHPOINT, HAVE_CONTINUABLE_WATCHPOINT]: Test
7396 at runtime instead of compile time.
7398 Thu Apr 15 15:15:07 1999 Andrew Cagney <cagney@amy.cygnus.com>
7400 * mips-tdep.c (struct gdbarch_tdep): Rename elf_abi to
7401 elf_flags. Check ABFD is elf_flavour before extracting elf_flags.
7402 Match ARCH against entire elf_flags instead of just the
7404 (mips_gdbarch_init): Extract/print ef_mips_arch and
7405 ef_mips_bitptrs and ef_mips_abi fields from elf_flags.
7407 1999-04-14 Philippe De Muyter <phdm@macqel.be>
7409 * breakpoint.c (maintenance_info_breakpoints): Function made
7410 static to match previous prototype.
7412 * coffread.c (coff_record_line): Static function removed.
7413 (enter_linenos): Call `record_line' instead of `coff_record_line'.
7414 (FILE-LEVEL, coff_start_symtab, coff_end_symtab): `coff_record_line'
7415 -related stuff removed.
7416 (coff_symfile_read): Redundant statement removed.
7417 (coff_symtab_read): `record_line' is now called with the first line
7418 number of each function, given by the ".bf" symbol. This solves
7419 the line-number bug for one-line functions.
7421 Wed Apr 14 11:09:45 1999 Andrew Cagney <cagney@b1.cygnus.com>
7423 * gdbarch.h (BELIEVE_PCC_PROMOTION_TYPE, BELIEVE_PCC_PROMOTION):
7424 Add multi-arch definitions.
7425 * gdbarch.c (gdbarch_believe_pcc_promotion,
7426 gdbarch_believe_pcc_promotion_type): New functions.
7427 (gdbarch_update): Update
7428 (struct gdbarch default_gdbarch): Update.
7430 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Provide default.
7431 (define_symbol): Change #if BELIEVE_PCC_PROMOTION_TYPE and #if
7432 BELIEVE_PCC_PROMOTION to if().
7434 1999-04-13 Jason Molenda (jsm@bugshack.cygnus.com)
7436 * configure.in (HAVE_MULTIPLE_PROC_FDS): Don't define if we're
7437 on a Solaris host (of any architecture).
7438 * configure: Regenerated.
7440 Wed Apr 14 08:23:32 1999 Andrew Cagney <cagney@b1.cygnus.com>
7442 * gdbarch.c (SET_GDBARCH, GET_GDBARCH, FSET_GDBARCH): New macros.
7443 (gdbarch_byte_order, gdbarch_long_bit, gdbarch_long_long_bit,
7444 gdbarch_ptr_bit, gdbarch_call_dummy_location,
7445 gdbarch_call_dummy_address, gdbarch_call_dummy_address,
7446 gdbarch_call_dummy_breakpoint_offset,
7447 gdbarch_call_dummy_breakpoint_offset, gdbarch_call_dummy_length,
7448 gdbarch_pc_in_call_dummy, dbarch_call_dummy_breakpoint_offset_p,
7449 dbarch_call_dummy_p, dbarch_call_dummy_words,
7450 dbarch_sizeof_call_dummy_words, dbarch_call_dummy_stack_adjust,
7451 dbarch_call_dummy_stack_adjust_p): Define using new macros.
7453 1999-04-13 Jason Molenda (jsm@bugshack.cygnus.com)
7455 * rom68k-rom.c (init_rom68k_cmds): Fix an accidental substitution
7456 in monitor command strings, fix some formatting mistakes.
7458 1999-04-13 Stan Shebs <shebs@andros.cygnus.com>
7460 * configure.tgt (arm-*-*): Whack another vestige of wingdb.
7462 1999-04-12 James Ingham <jingham@cygnus.com>
7464 * arm-tdep.c (arm_pop_frame): don't clobber the previous frame's
7465 stack pointer (stored in frame->framereg's register) BEFORE
7466 reading it. This was causing "return" to behave very oddly.
7468 1999-04-12 Stan Shebs <shebs@andros.cygnus.com>
7470 * NEWS: Mention tic80.
7472 1999-04-12 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
7474 * a68v-nat.c: Remove reference to 'extern char registers[]' throughout.
7475 * altos-xdep.c: Ditto.
7476 * arm-xdep.c: Ditto.
7477 * convex-xdep.c: Ditto.
7478 * cxux-nat.c: Ditto.
7479 * hp300ux-nat.c: Ditto.
7480 * hppab-nat.c: Ditto.
7481 * i386aix-nat.c: Ditto.
7482 * i386mach-nat.c: Ditto.
7483 * m88k-nat.c: Ditto.
7484 * ptx4-nat.c: Ditto.
7485 * pyr-xdep.c: Ditto.
7486 * rs6000-nat.c: Ditto.
7487 * sun3-nat.c: Ditto.
7488 * sun386-nat.c: Ditto.
7489 * symm-nat.c: Ditto.
7490 * umax-xdep.c: Ditto.
7491 * i386v4-nat.c: Ditto. Also include inferior.h.
7492 * m68k-tdep.c: Ditto. Also include inferior.h.
7494 Mon Apr 12 15:57:16 1999 Andrew Cagney <cagney@b1.cygnus.com>
7496 * inferior.h (CALL_DUMMY_STACK_ADJUST, CALL_DUMMY_STACK_ADJUST_P):
7497 Provide default definitions.
7498 * valops.c (hand_function_call): Replace #ifdef
7499 CALL_DUMMY_STACK_ADJUST with if (CALL_DUMMY_STACK_ADJUST_P).
7501 * gdbarch.h (SIZEOF_CALL_DUMMY_STACK_ADJUST,
7502 (SIZEOF_CALL_DUMMY_STACK_ADJUST_P): Define
7503 * gdbarch.c (struct gdbarch): Add call_dummy_stack_adjust,
7504 call_dummy_stack_adjust_p.
7505 (gdbarch_call_dummy_stack_adjust,
7506 set_gdbarch_call_dummy_stack_adjust,
7507 gdbarch_call_dummy_stack_adjust_p,
7508 set_gdbarch_call_dummy_stack_adjust_p): New functions.
7509 (default_gdbarch): Update.
7511 1999-04-09 Jim Blandy <jimb@zwingli.cygnus.com>
7513 * ax-gdb.c, ax-gdb.h, ax-general.c, ax.h: Remove RCS Id strings.
7516 * GDB 4.18 released.
7517 * Makefile.in (VERSION): Bump to 4.18.1.
7519 Thu Apr 8 16:04:34 1999 Andrew Cagney <cagney@b1.cygnus.com>
7521 * inferior.h (CALL_DUMMY_P, CALL_DUMMY_WORDS,
7522 SIZEOF_CALL_DUMMY_WORDS): Define macros.
7523 (PUSH_DUMMY_FRAME, FIX_CALL_DUMMY, STORE_STRUCT_RETURN): Provide
7526 * inferior.h, gdbarch.c (call_dummy_words,
7527 sizeof_call_dummy_words): Declare/Define variables.
7528 * valops.c (value_arg_coerce, find_function_addr,
7529 call_function_by_hand): Always define.
7530 (hand_function_call): Rename CALL_DUMMY version of
7531 call_function_by_hand. Make static. Add prototype.
7532 (hand_function_call): Update. Allocate space for *dummy and
7533 *dummy1 using alloca.
7534 * breakpoint.c (frame_in_dummy): Update.
7536 * gdbarch.h (CALL_DUMMY_P, CALL_DUMMY_WORDS,
7537 SIZEOF_CALL_DUMMY_WORDS): Define.
7538 * gdbarch.c (gdbarch_call_dummy_p, set_gdbarch_call_dummy_p,
7539 gdbarch_call_dummy_words, set_gdbarch_call_dummy_words,
7540 gdbarch_sizeof_call_dummy_words,
7541 set_gdbarch_sizeof_call_dummy_words): New functions.
7542 (gdbarch_alloc, verify_gdbarch, gdbarch_update, struct
7543 default_gdbarch): Update.
7545 1999-04-08 Jason Molenda (jsm@bugshack.cygnus.com)
7547 * monitor.c (monitor_read_memory): If a MO_GETMEM_NEEDS_RANGE
7548 monitor, increase the end address by one byte.
7550 1999-04-08 Jason Molenda (jsm@bugshack.cygnus.com)
7552 * dbug-rom.c (init_dbug_cmds): Fix strings in
7553 dbug_cmds.{step,clr_break,clr_all_break,fill} to send correct
7554 commands to the monitor.
7556 1999-04-08 Keith Seitz <keiths@cygnus.com>
7558 * m32r-stub.c (branchDestination): Undo overly ambitious
7559 sed script's conversion of cast from "char" to "unsigned char".
7560 Return offset should now be properly computed.
7562 Thu Apr 8 14:13:19 1999 Andrew Cagney <cagney@b1.cygnus.com>
7564 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): New macro.
7565 Non-zero when CALL_DUMMY_BREAKPOINT_OFFSET is valid.
7567 * infcmd.c (breakpoint_auto_delete_contents): Always define.
7568 (run_stack_dummy): Update.
7569 * infrun.c (wait_for_inferior): Update
7571 * gdbarch.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): New macro.
7572 * gdbarch.c (set_gdbarch_call_dummy_breakpoint_offset_p,
7573 gdbarch_call_dummy_breakpoint_offset_p): New functions.
7574 (struct gdbarch, gdbarch_alloc, default_gdbarch, gdbarch_update):
7577 1999-04-07 Stan Shebs <shebs@andros.cygnus.com>
7579 * MAINTAINERS: Mark Alexander can no longer maintain
7580 h8300 and other embedded targets, sniff.
7582 1999-04-06 Stan Shebs <shebs@andros.cygnus.com>
7584 * inftarg.c (child_wait): Initialize execd_pathname.
7585 * target.c (debug_to_has_execd): Handle NULL execd_pathname.
7587 * solib.c (clear_solib): Don't call disable_breakpoints_in_shlibs,
7588 this breaks rerunning on sun4 native.
7590 1999-04-06 Jim Blandy <jimb@zwingli.cygnus.com>
7592 * config/sparc/nm-linux.h: Don't redefine PT_ATTACH to use the
7593 deprecated PTRACE_SUNATTACH compatibility commands. The
7594 definitions from <sys/ptrace.h> are fine.
7596 1999-04-06 Martin Hunt <hunt@cygnus.com>
7598 * annotate.h: Declare annotate_signal_hook.
7600 * annotate.c (annotate_signal): Add a call to
7601 annotate_signal_hook().
7603 1999-04-06 Jim Blandy <jimb@zwingli.cygnus.com>
7605 * dwarf2read.c (dwarf_decode_lines): Don't call record_line when
7606 we hit a DW_LNE_end_sequence instruction.
7608 * README: Note that GDB requires an ANSI C compiler, and explain
7613 1999-04-05 Stan Shebs <shebs@andros.cygnus.com>
7615 * NEWS: Add more notes about user-visible changes.
7617 Mon Apr 5 14:56:59 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
7619 * target.c (target_signal_to_string): check for signal
7620 number in range; otherwise if the target board returns
7621 a bogus signal number we might core dump (per David Taylor).
7623 1999-04-05 David Taylor <taylor@ryobi.cygnus.com>
7625 * utils.c (fputs_maybe_filtered): test value of
7626 pagination_enabled before paginating.
7628 1999-04-02 James Ingham <jingham@cygnus.com>
7630 * blockframe.c (get_prev_frame): Remove the redundant
7631 get_prev_frame_info. It is now exactly the same as
7632 get_prev_frame, so there is no reason to have both functions.
7634 * rs6000-tdep.c (rs6000_init_extra_frame_info):
7636 a29k-tdep.c (init_extra_frame_info):
7637 config/a29k/tm-a29k.h:
7639 Change all references to get_prev_frame_info to get_prev_frame.
7641 1999-04-02 Stan Shebs <shebs@andros.cygnus.com>
7643 * bcache.c, bcache.h, breakpoint.c, defs.h, expprint.c,
7644 expression.h, gdbarch.c, gdbtypes.c, gdbtypes.h, gnu-nat.c,
7645 gnu-nat.h, hppa-tdep.c, maint.c, monitor.c, objfiles.h, parse.c,
7646 remote-mips.c, remote-sds.c, remote.c, sol-thread.c, symmisc.c,
7647 symtab.h, target.c, top.c, typeprint.c, config/nm-gnu.h: Evaporate
7648 the unused MAINTENANCE_CMDS conditional.
7650 1999-04-02 James Ingham <jingham@cygnus.com>
7652 * config/arm/tm-arm.h: (EXTRACT_STRUCT_VALUE_ADDRESS): This needs
7653 to call extract_address, not just cast the first 4 bytes, since
7654 the result will be passed to value_at which expects host-byte
7657 * arm-tdep.c (arm_scan_prologue): The prologue_start address was
7658 directly &'ed with 0x03fffffc, rather than using
7659 ADDR_BITS_REMOVE. This would cause inferior function calls to
7660 report the stack incorrectly on return.
7663 1999-04-02 Keith Seitz <keiths@cygnus.com>
7665 * top.c (ui_loop_hook): Change declaration. Now returns an int.
7666 * win32-nat.c (child_wait): Timeout WaitForDebugEvent and call
7667 the ui_loop_hook if there was no debug event.
7668 * top.c (ui_loop_hook): Change to return an int and include
7669 on all non-Cygwin builds.
7670 * v850ice.c: Change prototype of ui_loop_hook.
7671 (v850ice_wait): Update call to ui_loop_hook.
7672 * ser-unix.c (hardwire_readchar): Enable ui_loop_hook callbacks
7673 for non-Cygwin builds. Check return status of ui_loop_hook and
7674 return a timeout if told to detach. Add more documentation.
7675 * ser-tcp.c (tcp_readchar): Break up timeouts into one second
7676 intervals and call ui_loop_hook so that other UIs can
7677 keep up to date. If ui_loop_hook returns non-zero, then
7678 return SERIAL_TIMEOUT to facilitate detaching from the
7680 * remote.c (remote_interrupted_already): Remove.
7681 (remote_interrupt_twice): Revive.
7682 (remote_interrupt): Call remote_stop to interrupt the target
7683 and install remote_interrupt_twice to take more severe
7684 actions if this fails.
7685 (remote_stop): Only attempt to stop the target. This separates
7686 the command line from other UIs.
7687 * remote-sim.c (gdb_os_poll_quit): Add a call to ui_loop_hook,
7690 1999-04-01 Jim Blandy <jimb@zwingli.cygnus.com>
7692 Fix for cross-debugging on an AIX host from Johanna Svenningsson:
7693 * ax-gdb.h (enum axs_lvalue_kind): Remove trailing comma from enum.
7694 * ax.h (enum agent_op): Same.
7695 * tracepoint.h (enum actionline_type): Same.
7696 * config/xm-aix4.h: Add declaration for termdef.
7698 1999-03-31 Stan Shebs <shebs@andros.cygnus.com>
7700 * jv-lang.h (dynamics_objfile): Remove decl, conflicts with static
7703 * infrun.c (follow_inferior_fork): Add ifdefs around
7704 SOLIB_REMOVE_INFERIOR_HOOK.
7706 Wed Mar 31 11:39:49 1999 David Taylor <taylor@ryobi.cygnus.com>
7708 * valops.c (search_struct_field): revert HP merge change
7709 to this function -- it causes messages to be printed about
7710 member class ambiguity when the compiler is happy.
7711 (search_struct_field_aux): delete -- added as part of HP merge
7712 change; with aforementioned change it is no longer called.
7714 1999-03-30 Stan Shebs <shebs@andros.cygnus.com>
7716 Make more HPUX-specific code generic.
7717 * infrun.c: Include top.h.
7718 (MAY_SWITCH_FROM_INFERIOR_PID, MAY_FOLLOW_EXEC,
7719 USE_THREAD_STEP_NEEDED): New native macros.
7720 (may_switch_from_inferior_pid, may_follow_exec,
7721 use_thread_step_needed): New globals.
7722 (follow_inferior_fork): Remove HPUXHPPA ifdef.
7723 (follow_exec): Ditto, also save run target and re-push instead of
7724 always pushing child_ops, add ifdefs around SOLIB_RESTART and
7725 SOLIB_CREATE_INFERIOR_HOOK.
7726 (wait_for_inferior): Use new globals instead of ifdefing HPUXHPPA,
7727 always use printf_filtered to report new threads.
7728 (normal_stop): Ditto.
7729 * target.h, target.c (find_run_target): New function.
7730 * config/pa/nm-hppah.h: Define new macros.
7732 1999-03-29 Stan Shebs <shebs@andros.cygnus.com>
7734 * top.h: Include setjmp.h here.
7735 * main.c, top.c: Don't include it here.
7737 1999-03-29 Keith Seitz <keiths@cygnus.com>
7739 * symtab.c (decode_line_1): Take out change which breaks symbols
7740 which include class names and methods, e.g., "Foo::bar".
7742 1999-03-26 Stan Shebs <shebs@andros.cygnus.com>
7744 * configure.tgt (i[3456]86-*-sysv4.2MP, i[3456]86-*-sysv4.2uw2*):
7745 Recognize both, as i[3456]86-*-sysv4.2*.
7746 (i[3456]86-*-sysv5*): Recognize.
7748 * infrun.c (wait_for_inferior): Remove most #if 0 segments.
7750 Fri Mar 26 17:27:27 1999 Andrew Cagney <cagney@b1.cygnus.com>
7752 * blockframe.c (pc_in_call_dummy_on_stack): Fix. Had copied code
7753 from at_entry_point.
7755 Thu Mar 25 19:30:02 1999 Andrew Cagney <cagney@amy.cygnus.com>
7757 * gdbarch.c: Include all headers.
7758 (struct gdbarch), gdbarch.h (CALL_DUMMY_LOCATION,
7759 CALL_DUMMY_ADDRESS, CALL_DUMMY_START_OFFSET,
7760 CALL_DUMMY_BREAKPOINT_OFFSET, CALL_DUMMY_LENGTH,
7761 PC_IN_CALL_DUMMY): Add ``call_dummy_location'',
7762 ``call_dummy_length'', ``pc_in_call_dummy'',
7763 ``call_dummy_start_offset'', ``call_dummy_breakpoint_offset'' to
7764 multi-arch framework.
7766 * inferior.h, blockframe.c (pc_in_call_dummy_before_text_end,
7767 pc_in_call_dummy_after_text_end, pc_in_call_dummy_on_stack,
7768 pc_in_call_dummy_at_entry_point): Convert PC_IN_CALL_DUMMY macro's
7771 * mips-tdep.c (mips_gdbarch_init): Initialize above
7773 Tue Mar 23 17:22:57 1999 Philippe De Muyter <phdm@macqel.be>
7775 * remote.c, parse.c: Include ctype.h.
7777 1999-03-24 Stan Shebs <shebs@andros.cygnus.com>
7779 * configure.host (mips-dec-mach3*): Use mipsm3 not mach3.
7781 Attempt to sort out SCO-related configs.
7782 * configure.host (i[3456]86-*-sysv4.2*): Use instead of
7783 i[3456]86-*-sysv4.2MP and i[3456]86-*-sysv4.2uw2*.
7784 (i[3456]86-*-sysv5*): Recognize.
7785 * configure.tgt (i[3456]86-*-sco3.2v5*, i[3456]86-*-sco3.2v4*):
7788 Wed Mar 24 16:19:01 1999 Christopher Faylor <cgf@cygnus.com>
7790 * MAINTAINERS: Add DJ Delorie (dj@cygnus.com) as the djgpp
7793 Wed Mar 24 21:19:57 1999 Andrew Cagney <cagney@amy.cygnus.com>
7795 * target.h (enum target_signal): Do not hardwire values of MACH
7798 1999-03-14 Ken Raeburn <raeburn@raeburn.org>
7800 * target.h (enum target_signal): Add TARGET_SIGNAL_INFO.
7801 * target.c (signals): Add SIGINFO description.
7802 (target_signal_from_host, target_signal_to_host): Translate
7803 SIGINFO to/from TARGET_SIGNAL_INFO.
7805 Wed Mar 24 01:01:27 1999 Andrew Cagney <cagney@sludge.cygnus.com>
7807 * rs6000-tdep.c (rs6000_software_single_step): Change SIGNAL to
7810 From Rodney Brown <rodneybrown@pmsc.com>
7811 * target.h (enum thread_control_capabilities), breakpoint.h (enum
7812 bptype), breakpoint.c (enum insertion_state_t): Strict ISO-C
7813 doesn't allow trailing comma in enum definition.
7815 Mon Mar 22 15:56:04 1999 Andrew Cagney <cagney@b1.cygnus.com>
7817 * blockframe.c (inside_entry_file, inside_entry_func): Convert #if
7818 CALL_DUMMY_LOCATION to if.
7819 * valops.c (call_function_by_hand): Ditto.
7820 * infcmd.c (run_stack_dummy): Ditto.
7821 * inferior.h (CALL_DUMMY_ADDRESS, CALL_DUMMY_START_OFFSET,
7822 CALL_DUMMY_BREAKPOINT_OFFSET): Provide default.
7824 1999-03-23 Jason Molenda (jsm@bugshack.cygnus.com)
7826 * hppa-tdep.c (pa_register_look_aside): Remove CPU_HPPA_RISC_20
7827 check, test for presence of struct save_state_t and the ss_wide
7829 * configure.in: Remove CPU_HPPA_RISC_20 test. Add tests for
7830 HAVE_STRUCT_SAVE_STATE_T and HAVE_STRUCT_MEMBER_SS_WIDE.
7831 * acconfig.h: Add HAVE_STRUCT_SAVE_STATE_T HAVE_STRUCT_MEMBER_SS_WIDE.
7832 * configure, config.in: Regenerated.
7834 Mon Mar 22 13:25:13 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
7836 * infttrace.c (proc_wait): rename to ptrace_wait.
7838 1999-03-18 Jim Blandy <jimb@zwingli.cygnus.com>
7840 * dwarf2read.c: Correctly recognize location expressions that
7841 designate LOC_REF_ARG arguments. Doc fixes.
7842 (isderef): New global. (Yuck.)
7843 (dwarf2_complex_location_expr): New complaint.
7844 (read_func_scope): Reject frame_base attributes that use the
7845 `deref' opcode as too complex.
7846 (new_symbol): If both regoff and isderef are set, and the base
7847 register is the frame pointer, then it's a LOC_REF_ARG argument.
7848 (decode_locdesc): Recognize the `deref' opcode in location
7849 expressions. Complain if it's not the last op in the expression.
7851 * config/fr30/tm-fr30.h (COERCE_FLOAT_TO_DOUBLE): #define this to
7852 be true, or else value_arg_coere won't respect the (accurate)
7853 information we have about whether a function is prototyped.
7855 1999-03-17 Jim Blandy <jimb@zwingli.cygnus.com>
7857 * config/fr30/tm-fr30.h (STACK_ALIGN): Define this here, so
7858 calling functions by hand with odd-sized arguments doesn't munge
7861 1999-03-17 Jason Molenda (jsm@bugshack.cygnus.com)
7863 * configure.in (HAVE_MULTIPLE_PROC_FDS): Don't define for Solaris
7864 hosts--gdb doesn't support this yet.
7865 * configure: Regenerated.
7867 1999-03-16 Keith Seitz <keiths@cygnus.com>
7869 * remote.c (remote_binary_checked): New file global.
7870 (check_binary_download): New function to check if
7871 stub supports binary downloading that works with
7872 stubs that are not eight bit clean.
7873 (remote_write_bytes): Check for binary download capability
7874 and use it if available.
7875 Remove references to global remote_binary_length. What a hack.
7876 (putpkt_binary): New function.
7877 (putpkt): Call putpkt_binary.
7878 Use xor to escape trouble characters.
7879 * m32r-stub.c (bin2mem): Follow escape char convention change.
7881 Tue Mar 16 01:11:33 1999 Andrew Cagney <cagney@rhino.cygnus.com>
7883 * target.h (struct target_ops), target.c (debug_to_query),
7884 remote.c (pack_hex_byte, remote_query): Promote char parameters to
7885 int. Stops compile problems with pedantic ISO-C compilers.
7887 Tue Mar 16 15:29:04 1999 Stan Shebs <shebs@andros.cygnus.com>
7889 * go32-xdep.c: Remove, no longer used by anything.
7890 * Makefile.in: Remove references.
7892 * jv-lang.c, jv-lang.h (java_primitive_type): Declare argument
7893 as int instead of char.
7895 Mon Mar 15 11:42:43 1999 Andrew Cagney <cagney@b1.cygnus.com>
7897 * d10v-tdep.c (push_stack_item, pop_stack_item): New function.
7898 (d10v_push_arguments): Use.
7900 From Martin M. Hunt <hunt@cygnus.com>:
7901 * d10v-tdep.c (d10v_push_arguments): When arguments
7902 must be pushed onto the stack, they go on in
7905 1999-03-16 Jim Blandy <jimb@zwingli.cygnus.com>
7907 * symtab.c (make_symbol_overload_list): Don't try to stuff minimal
7908 or partial symbols into the overload list; we don't know their
7909 types. (Thanks to Rajiv Mirani.)
7911 1999-03-15 Jason Molenda (jsm@bugshack.cygnus.com)
7913 * acinclude.m4 (--with-itclconfig, --with-itkconfig, --with-tixconfig):
7914 Fix whitespace so --help messages line up.
7915 * configure.in (--with-cpu): Fix capitalization for --help messages.
7916 * configure, aclocal.m4: Regenerated.
7918 Mon Mar 15 11:39:03 1999 Ian Carmichael <iancarm@cygnus.com>
7920 Support building gdb w/o simulator:
7921 * configure.in: Support --disable-sim. Check for sim directory.
7922 * Makefile.in (IGNORE_SIM, IGNORE_SIM_OBS): New.
7923 * acconfig.h (WITH_SIM): Define.
7924 * configure, config.in: Regenerate.
7926 Mon Mar 15 08:01:33 1999 Elena Zannoni <ezannoni@cygnus.com>
7928 Patch from Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
7930 * top.c (read_command_lines): Reset control_level to 0.
7931 (define_command): Don't do it here.
7933 Sun Mar 14 16:12:15 1999 Andrew Cagney <cagney@rhino.cygnus.com>
7935 * hppah-nat.c (store_inferior_registers): Delete extern
7936 registers[] declaration.
7938 Sun Mar 14 19:17:30 1999 Andrew Cagney <cagney@b1.cygnus.com>
7940 * infrun.c (write_inferior_status_register): New function. Provide
7941 update access to an inf_status register buffer. Only used by HP.
7942 * inferior.h (write_inferior_status_register): Add prototype.
7944 * hppa-tdep.c (push_dummy_frame): Use
7945 write_inferior_status_register when hacking around a sleeping
7946 inferior. Accidently fix byte-order problem.
7948 Sun Mar 14 16:40:10 1999 Andrew Cagney <cagney@b1.cygnus.com>
7950 * config/pa/tm-hppa.h (PUSH_DUMMY_FRAME): Fix parameter. Address
7953 Fri Mar 12 13:11:48 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
7955 * remote.c (remote_write_bytes): fix 'X' packet protocol so that it
7956 can't overwrite the end of its buffer with escaped characters.
7958 1999-03-12 Jim Blandy <jimb@zwingli.cygnus.com>
7960 Alpha patches from Richard Henderson:
7962 * alpha-tdep.c (alpha_skip_prologue): Recognize subq.
7964 * config/alpha/tm-alpha.h (REGISTER_NAMES): No f31, but fpcr.
7966 (REGISTER_CONVERTIBLE): Don't convert fpcr.
7967 (REGISTER_VIRTUAL_TYPE): Don't make fpcr a double.
7969 * stabsread.c (define_symbol): Only consider live range extension
7970 if we have an open parenthesis.
7972 1999-03-11 Jim Blandy <jimb@zwingli.cygnus.com>
7974 * monitor.c (monitor_fetch_register): Print RDEBUG info correctly
7975 when the register name is null.
7977 Thu Mar 11 19:33:07 1999 Stan Shebs <shebs@andros.cygnus.com>
7979 * infrun.c (wait_for_inferior): Change #if DECR_PC_AFTER_BREAK
7980 uses to expressions, remove redundant extern decls.
7982 Thu Mar 11 18:05:11 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
7984 * infptrace.c (proc_wait): Rename to ptrace_wait.
7985 * inftarg.c (child_wait): call ptrace_wait instead of proc_wait.
7986 * inferior.h: Declare ptrace_wait instead of proc_wait.
7988 Thu Mar 11 11:46:25 1999 Andrew Cagney <cagney@amy.cygnus.com>
7990 * breakpoint.c (create_solib_load_unload_event_breakpoint,
7991 create_fork_vfork_event_catchpoint, tcatch_command,
7992 create_exception_catchpoint, break_at_finish_at_depth_command_1,
7993 catch_fork_command_1, ep_skip_leading_whitespace,
7994 break_at_finish_command_1, catch_exec_command_1,
7995 catch_exception_command_1, stop_command, stopin_command,
7996 stopat_command, ep_parse_optional_filename,
7997 ep_find_event_name_end, ep_parse_optional_if_clause,
7998 catch_fork_command_1), stack.c (show_and_print_stack_frame_stub,
7999 print_stack_frame_stub, print_only_stack_frame_stub,
8000 backtrace_command_1, backtrace_full_command, func_command),
8001 valprint.c (print_decimal), source.c (print_source_lines_base):
8004 * stack.c (print_stack_frame_stub, show_and_print_stack_frame_stub,
8005 print_only_stack_frame_stub): Make param void*.
8007 Wed Mar 10 19:33:28 1999 Geoffrey Noer <noer@cygnus.com>
8009 * win32-nat.c: If old Cygwin Win32 API headers aren't being used,
8010 define some gdb-specific defines that shouldn't have been in the
8013 Wed Mar 10 21:20:25 1999 Andrew Cagney <cagney@b1.cygnus.com>
8015 * findvar.c (registers, register_valid): Replace array with pointer.
8016 (build_findvar): New function. Allocate space for REGISTERS and
8018 (_initialize_findvar): Call build_findvar.
8019 (_initialize_findvar): Register REGISTERS and REGISTER_VALID as
8022 * inferior.h (registers, register_valid): Replace array with
8025 * inferior.h (struct inferior_status): Move definition from here.
8027 * infrun.c (struct inferior_status): To here.
8028 (struct inferior_status): Change ``stop_registers'' and
8029 ``registers'' to pointers.
8030 (xmalloc_inferior_status, free_inferior_status): New functions.
8031 (restore_inferior_status): Call free_inferior_status.
8032 (save_inferior_status): Call xmalloc_inferior_status.
8033 (discard_inferior_status): New function, discard inf_status
8034 buffer. Call free_inferior_status.
8036 * inferior.h (stop_registers): Replace array with pointer.
8037 * infrun.c (stop_registers): Update.
8038 (build_infrun): Initialize stop_registers.
8039 (_initialize_infrun): Call build_infrun.
8040 (_initialize_infrun): Register ``stop_registers'' as arch dependant.
8042 Wed Mar 10 14:50:42 1999 Andrew Cagney <cagney@amy.cygnus.com>
8044 * alpha-tdep.c (alpha_linux_sigtramp_offset): Only compile when
8045 LINUXALPHA target. Hack.
8047 * infrun.c (set_follow_fork_mode_command): Make static. Add
8049 * tracepoint.c (add_register): Ditto.
8050 * valprint.c (strcat_longest): Comment out. Does not appear to be
8052 * valops.c (find_method_list): Make static. Add prototype.
8053 * thread.c (target_find_new_threads): Make static. Add prototype.
8054 * stack.c (stack_publish_stopped_with_no_frame,
8055 select_and_maybe_print_frame): Comment out. Does not appear to be
8057 (current_frame_command): Add prototype.
8058 * breakpoint.c (break_at_finish_command,
8059 break_at_finish_at_depth_command, tbreak_at_finish_command): Make
8060 static. Add prototype.
8061 * findvar.c (read_relative_register_raw_bytes_for_frame): Ditto.
8063 Wed Mar 10 23:38:54 1999 Andrew Cagney <cagney@b1.cygnus.com>
8065 * corefile.c (registers): Delete redundant variable declaration.
8066 * inferior.h (run_stack_dummy): Change array argument to pointer.
8067 * infcmd.c (run_stack_dummy): Update.
8068 * value.h (value_being_returned): Change RETBUF to a pointer.
8069 * values.c (value_being_returned): Update.
8071 Wed Mar 10 11:08:16 1999 Andrew Cagney <cagney@amy.cygnus.com>
8073 * source.c (list_command): GCC suggested explicit braces to avoid
8076 * jv-typeprint.c: Include "c-lang.h".
8077 * Makefile.in (jv-typeprint.o): Add dependency.
8078 * jv-valprint.c: Include "gdbcore.h", "annotate.h".
8079 * Makefile.in (jv-valprint.o): Add dependencies.
8080 * objfiles.c: Include "breakpoint.h".
8081 * Makefile.in (objfiles.o): Add dependency.
8082 * main.c: Include <unistd.h>.
8083 * parse.c: Include <ctype.h>.
8084 * remote.c: Include <ctype.h>.
8085 * ser-tcp.c: Include <unistd.h>.
8086 * ax-general.c: Include "value.h".
8087 * Makefile.in (ax-general.o): Add dependency.
8089 * alpha-tdep.c (alpha_push_arguments): Make ``i'' an int instead
8091 * frame.h (show_and_print_stack_frame): Add function prototype.
8092 * language.h (language_enum): Add function prototype.
8093 * value.h (find_overload_match): Add function prototype.
8095 * defs.h, utils.c (subset_compare): Rename subsetCompare. Add
8097 * stack.c (backtrace_command): Update.
8099 Wed Mar 10 13:58:36 1999 Andrew Cagney <cagney@b1.cygnus.com>
8101 * configure.in (AC_CHECK_HEADERS): Check for <sys/select.h>
8102 * configure, config.in: Re-generate.
8103 * inflow.c: Conditionally include <sys/select.h>.
8105 Wed Mar 10 13:44:38 1999 Andrew Cagney <cagney@b1.cygnus.com>
8107 * frame.h (struct dummy_frame): Move from here.
8108 * blockframe.c (struct dummy_frame): To here.
8110 * blockframe.c (struct dummy_frame): Replace ``regs'' with pointer
8112 (generic_pop_dummy_frame): Free it.
8113 (generic_push_dummy_frame): Allocate dummy frame register buffer.
8115 Wed Mar 10 11:08:16 1999 Andrew Cagney <cagney@amy.cygnus.com>
8117 * thread.c (_initialize_thread): Delete redundant ``extern struct
8118 cmd_list_element *cmdlist''.
8119 * printcmd.c (print_command_1): Ditto for ``objectprint'';
8121 1999-03-09 Stan Shebs <shebs@andros.cygnus.com>
8123 * MAINTAINERS: New file, list of maintainers and areas they
8126 1999-03-09 Rodney Brown <RodneyBrown@pmsc.com>
8128 Get working on UnixWare 2.1.1.
8129 * acconfig.h: Update for defines for procfs.c.
8130 * configure.in: Identify defines for procfs.c.
8131 * configure.host: i386-*-sysv4.2uw2* => i386v42mp
8132 * configure.tgt: i386-*-sysv4.2uw2* => i386v42mp
8133 * configure, config.in: Regenerate.
8134 * procfs.c: Rename HAVE_NO_PRRUN_T to HAVE_PRRUN_T (autoconf
8135 standard), wrap UNIXWARE difference in THE_PR_LWP macro for
8137 * config/i386/tm-i386v42mp.h: Remove HAVE_PSTATUS_T,
8138 HAVE_NO_PRRUN_T; now set by configure.
8140 Tue Mar 9 16:29:24 1999 Andrew Cagney <cagney@b1.cygnus.com>
8142 * i386-tdep.c (gdb_print_insn_i386): Abort when disassembly_flavor
8145 * fr30-tdep.c (_initialize_fr30_tdep): Add prototype. Fix
8148 * target.c (debug_to_enable_exception_callback,
8149 debug_to_get_current_exception_event): Return result of call to
8152 1999-03-09 Jim Blandy <jimb@zwingli.cygnus.com>
8154 Another HURD fix from Mark Kettenis:
8155 * gnu-nat.c: Include <string.h>. Remove declaration of strerror.
8156 Include <bits/waitflags.h> instead of <waitflags.h> and define
8157 _SYS_WAIT_H to prevent the warning that we should not include it.
8158 (gnu_create_inferior): Change return type of attach_to_child to
8159 void. Do not return INFERIOR_PID.
8160 (gnu_pid_to_exec_file): Change return type to char *.
8163 Fix for the HURD from Mark Kettenis:
8164 * configure.in: Add AC_PROG_AWK. Needed by the machine-dependent
8165 makefile fragments for the Hurd.
8166 * Makefile.in (AWK): Add. Set by configure.
8167 * configure: Regenerated.
8169 1999-03-08 Jason Molenda (jsm@bugshack.cygnus.com)
8171 * infttrace.c (hppa_get_process_events): Removed. Function only
8172 usable on HPUX 10 and above. It is not called by any other part
8174 * hppah-nat.c (hppa_get_process_events): Ditto.
8175 (child_pid_to_exec_file): Only call ptrace with
8176 PT_GET_PROCESS_PATHNAME if that symbol has been defined.
8177 * config/pa/nm-hppah.h: Don't set up prototypes et al for
8178 hppa_get_process_events.
8180 * config/pa/hppahpux.mh (TERM_LIB): Do not initialize, let autoconf
8181 determine best library automatically.
8182 * config/pa/hpux1020.mh: Ditto.
8183 * config/pa/hpux1100.mh: Ditto.
8184 * configure.in (TERM_LIB): Also check for libHcurses.
8185 * configure: Regenerated.
8187 Thu Mar 4 17:16:04 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
8189 * m32r-stub.c: add support for crc "Compare" command.
8191 1999-03-04 Jim Blandy <jimb@zwingli.cygnus.com>
8193 * fr30-tdep.c (fr30_store_return_value): Allocate zeroes
8194 dynamically, to save BSS space, and to remove assumptions about
8195 the size of the largest value we'll return.
8197 * config/fr30/tm-fr30.h (fr30_store_return_value): Use PARAMS in
8200 Thu Mar 4 08:37:35 1999 Andrew Cagney <cagney@b1.cygnus.com>
8202 * sh3-rom.c (sh3_supply_register, sh3_supply_register),
8203 mips-tdep.c (mips_push_arguments), m32r-rom.c
8204 (m32r_upload_command), m32r-tdep.c (decode_prologue), monitor.c
8205 (longlong_hexchars), tracepoint.c (validate_actionline,
8206 read_actions), mdebugread.c
8207 (parse_symbol), jv-typeprint.c
8208 (java_type_print_base, java_type_print_base), mdebugread.c
8209 (parse_symbol), top.c (source_command), utils.c
8210 (floatformat_to_doublest): GCC suggest explicit braces to avoid
8213 * tracepoint.c (map_args_over_tracepoints, trace_actions_command),
8214 m32r-rom.c (m32r_supply_register), win32-nat.c
8215 (handle_output_debug_string, child_continue), i960-tdep.c
8216 (pop_frame), m32r-rom.c (m32r_upload_command): GCC suggested
8217 parentheses around assignment used as truth value.
8219 * remote-sds.c (sds_wait), monitor.c (monitor_fetch_register),
8220 ser-e7kpc.c, (dosasync_write), arc-tdep.c (arc_get_frame_setup):
8221 GCC suggested parentheses around operands.
8223 * c-typeprint.c (c_type_print_base): GCC suggested enclosing
8224 "while" expression in paren.
8226 Wed Mar 3 18:14:33 1999 Andrew Cagney <cagney@chook.cygnus.com>
8228 * sol-thread.c (save_inferior_pid): Cast the saved pid to void*.
8229 (restore_inferior_pid): Takes void* as required by make_cleanup.
8230 Casts pid back to an int.
8232 * procfs.c (make_cleanup_close_proc_file,
8233 close_proc_file_cleanup): Create a proc_file cleanup.
8236 * defs.h (make_cleanup_freeargv): Helper function. Establish
8237 cleanup using freeargv. Can not just typecast/pass freeargv as it
8239 * utils.c (do_freeargv): Helper.
8240 (make_cleanup_freeargv): New function.
8242 * symmisc.c (maintenance_print_symbols,
8243 maintenance_print_psymbols, maintenance_print_msymbols), symfile.c
8244 (symbol_file_command), stack.c (backtrace_command), remote-sim.c
8245 (gdbsim_create_inferior, gdbsim_open), remote-mips.c
8246 (common_open), procfs.c (info_proc), infrun.c (handle_command,
8247 xdb_handle_command), exec.c (exec_file_attach): Call
8248 make_cleanup_freeargv.
8250 1999-03-03 James Ingham <jingham@cygnus.com>
8252 * i386-tdep.c (_initialize_i386_tdep): Set the inital value for
8253 disassembly flavor at startup, rather than hardcoding it.
8255 1999-03-03 Jim Blandy <jimb@zwingli.cygnus.com>
8257 Put return values in the right place.
8258 * fr30-tdep.c (fr30_store_return_value): New function.
8259 * config/fr30/tm-fr30.h (STORE_RETURN_VALUE): Call
8260 fr30_store_return_value.
8262 Wed Mar 3 18:10:55 1999 Andrew Cagney <cagney@chook.cygnus.com>
8264 * gdbtypes.c (virtual_base_list_aux): Return void. Add prototype.
8266 * breakpoint.c (map_catch_names): Comment out unused function.
8268 1999-03-02 Jason Molenda (jsm@bugshack.cygnus.com)
8270 * hppa-tdep.c (pa_register_look_aside): Only refer to save_state_t
8271 structure on PA 2.0 systems.
8273 1999-03-02 Stan Shebs <shebs@andros.cygnus.com>
8275 From Gary Thomas <gthomas@cygnus.co.uk>:
8276 * arm-tdep.c (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT,
8277 THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Use illegal instruction
8279 * config/arm/tm-arm.h (CALL_DUMMY): Ditto.
8280 (IN_SIGTRAMP): Define.
8282 1999-03-02 Nick Clifton <nickc@cygnus.com>
8284 * findvar.c (store_address): Delete incorrect big endian
8287 Tue Mar 2 18:02:42 1999 Andrew Cagney <cagney@chook>
8289 * configure.in (gdb_cv_os_cygwin): Compat. Continue to reconize
8292 1999-03-01 Jason Molenda (jsm@bugshack.cygnus.com)
8294 * configure.in: Move setting of gdb_cv_os_cygwin to before
8295 setting of TERM_LIB. Check for __CYGWIN__ instead of __CYGWIN32__.
8296 * configure: Regenerated.
8298 1999-03-01 DJ Delorie <dj@cygnus.com>
8300 * configure.in: Change -cygwin32* to -cygwin*.
8303 1999-02-25 Stan Shebs <shebs@andros.cygnus.com>
8305 * breakpoint.c (SOLIB_LOADED_LIBRARY_PATHNAME,
8306 SOLIB_UNLOADED_LIBRARY_PATHNAME, SOLIB_CREATE_CATCH_LOAD_HOOK,
8307 SOLIB_CREATE_CATCH_UNLOAD_HOOK): Supply default definitions.
8308 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Ditto.
8310 1999-02-25 Keith Seitz <keiths@cygnus.com>
8312 * corelow.c (core_close): Clear out solib state before
8313 closing the bfd associated with the core file.
8314 * solib.c (clear_solib): Mention that clear_solib requires
8315 an open BFD in order for disable_breakpoints_in_shlibs to
8316 determine whether breakpoints live in shared libraries.
8318 1999-02-24 Jason Molenda (jsm@bugshack.cygnus.com)
8320 * configure.in: Set CPU_HPPA_RISC_20 if the host CPU is a PA 2.0
8322 * acconfig.h: Add CPU_HPPA_RISC_20
8323 * config.in, configure: Regenerated.
8324 * hppa-tdep.c (pa_register_look_aside): Only refer to new
8325 structure elements if we are on a PA2.0 system.
8326 * defs.h: Include limits.h.
8328 Tue Feb 23 14:37:08 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
8330 * infrun.c (wait_for_inferior): Check scheduler_locking state
8331 before resuming after a thread-specific breakpoint.
8333 1999-02-23 Jim Blandy <jimb@zwingli.cygnus.com>
8335 * aclocal.m4, config.in, configure: Regenerated with latest
8338 Mon Feb 22 12:32:19 1999 Per Bothner <bothner@cygnus.com>
8340 * jv-valprint.c (java_val_print): Restore line that somehow got lost.
8342 * jv-valprint.c (java_print_value_fields): Check for NULL type.
8344 1999-02-21 Jim Blandy <jimb@zwingli.cygnus.com>
8346 * tm-h8500.h, i386lynx-nat.c: Removed. These files are long
8347 dead; it seems that they only appeared due to some CVS weirdness.
8348 If they appear again, we may need to distribute garlic and holy
8351 1999-02-19 Jason Molenda (jsm@bugshack.cygnus.com)
8353 * configure.in (TERM_LIB): Move checking for TERM_LIB, substituting.
8354 * configure: Regenerated.
8356 1999-02-19 Robert Hoehne (robert.hoehne@gmx.net)
8358 * configure.host (i[3456]86-*-msdosdjgpp*): New host.
8359 * configure.tgt (i[3456]86-*-msdosdjgpp*): New target.
8360 * go32-nat.c: New file, native DJGPP support.
8361 * config/i386/go32.mh: Rewrite for DJGPP (go32) host.
8362 * config/i386/go32.mt: New file, DJGPP (go32) target.
8363 * config/i386/nm-go32.h: New file.
8364 * config/i386/tm-go32.h: New file.
8365 * config/i386/xm-go32.h: Rewritten for current DJGPP.
8367 1999-02-18 Jason Molenda (jsm@bugshack.cygnus.com)
8369 * reply_mig_hack.awk, config/nm-gnu.h, config/alpha/nm-linux.h
8370 config/alpha/xm-alphalinux.h, config/alpha/xm-alphaosf.h
8371 config/i386/nm-i386sco5.h, config/i386/tm-fbsd.h, config/i386/tm-i386.h
8372 config/powerpc/nm-aix.h, config/powerpc/tm-macos.h
8373 config/powerpc/tm-ppc-aix.h, config/powerpc/xm-aix.h
8374 config/rs6000/tm-rs6000-aix4.h, testsuite/gdb.chill/tests1.ch
8375 testsuite/gdb.chill/tests2.ch, testsuite/gdb.chill/tests2.exp:
8376 Update FSF address in copyright notices.
8378 1999-02-18 Jason Molenda (jsm@bugshack.cygnus.com)
8380 * configure.in: Quote "$GCC" correctly.
8381 * configure: Regenerated.
8383 1999-02-18 Jim Blandy <jimb@zwingli.cygnus.com>
8385 * dbxread.c (elfstab_build_psymtabs): Don't assume that there's a
8386 section named ".text", which has all the code in it. Instead, look
8387 at all the sections in the file with the `code' flag set.
8388 (find_text_range): New function, that does all the work.
8390 Thu Feb 18 17:50:45 1999 Andrew Cagney <cagney@b1.cygnus.com>
8392 * mips-tdep.c (FP_REGISTER_DOUBLE): Conditionally define.
8394 Fri Jan 29 16:51:11 1999 Andrew Cagney <cagney@chook.cygnus.com>
8396 * mips-tdep.c (return_value_location): New function. Merge/rewrite
8397 of return-value code in mips_extract_return_value,
8398 mips_store_return_value. Stop buffer overflow when 64 bit value
8399 in 32 bit registers. Extract 64bit float from 32 bit register
8400 pair of correct order.
8401 (mips_extract_return_value, mips_store_return_value): Call
8402 return_value_location. For store, ensure that remainder of
8405 Thu Jan 28 18:58:02 1999 Andrew Cagney <cagney@chook.cygnus.com>
8407 From John Metzler <jmetzler@cygnus.com>:
8408 * mips-tdep.c (struct gdbarch_tdep): Add mips_saved_regsize.
8409 (MIPS_SAVED_REGSIZE): Define.
8410 (mips_find_saved_regs, read_next_frame_reg, mips_pop_frame):
8411 Read/write MIPS_SAVED_REGSIZE bytes of register on stack instead
8413 (mips_gdbarch_init): Initialize mips_saved_regsize.
8415 * mips-tdep.c (mips_frame_saved_pc, mips16_heuristic_proc_desc,
8416 mips_push_arguments, mips_push_dummy_frame,
8417 mips_use_struct_convention): Ditto. For MIPS_SAVED_REGSIZE <
8418 REGISTER_RAW_SIZE, handle little/big endian issues from only using
8420 (STACK_ARGSIZE): Default to MIPS_SAVED_REGSIZE instead of
8423 * mips-tdep.c (struct gdbarch_tdep, FP_REGISTER_DOUBLE,
8424 mips_gdbarch_init): Apply similar changes. Add
8425 mips_fp_register_double to struct.
8427 Wed Feb 17 10:10:27 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
8429 * gdbtypes.h (get_discrete_bounds): Remove duplicate decl.
8431 * jv-typeprint.c (java_type_print_base): Change fputs => fputs_filtered.
8433 Mon Jan 25 18:30:57 1999 Per Bothner <bothner@cygnus.com>
8435 * jv-lang.h (JAVA_OBJECT_SIZE): Change from hard-wired constant.
8436 (java_primitive_type_from_name, get_java_object_header_size): Declare.
8437 * jv-lang.c (java_class_from_object): Use get_java_object_type.
8438 * jv-lang.c: Update Class field names: dtable->vtable,
8439 msize->method_count, nfields->field_count, bfsize->size_in_bytes,
8440 nmethods->method_count.
8441 (type_from_class): Demangle array type names.
8442 (java_link_class_type): Array type names are now demangled.
8443 (get_java_object_type): If not defined yet, try looking it up.
8444 (get_java_object_header_size): New function.
8445 (java_primitive_type_from_name): New function.
8446 (java_demangled_signature_length, java_demangled_signature_copy): New.
8447 (java_demangle_type_signature): Re-implement using above functions.
8448 (evaluate_subexp_java): For UNOP_IND, call evaluate_subexp_java
8449 to evaluate subexp (not evaluate_subexp_standard).
8450 For BINOP_SUBSCRIPT update for new array type naming scheme.
8451 * jv-valprint.c (java_value_print): Use java_class_from_object.
8452 Update array printing to new array type naming convention.
8453 (java_val_print): Doing check_typedef when printing a pointer is
8454 is a waste of effort. Also, handle TYPE_CODE_INT, to make sure
8455 Java bytes as not printed as C chars.
8457 Fri Jan 8 16:58:22 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
8459 * blockframe.c (find_pc_sect_partial_function): Search full symtabs as
8460 a last ditch effort (after the partial & minimal symtabs).
8461 * defs.h utils.c: Fixup prototypes for vprintf_filtered,
8462 vfprintf_filtered, vfprintf_unfiltered and vprintf_unfiltered to return
8463 ints to match their standard equivalents.
8464 * defs.h symtab.c top.c: Create skip_prologue_hook to allow Java to
8465 control the prologue skipping process.
8466 * jv-typeprint.c (java_type_print_base): Remove extern for
8467 jv_class_demangle, add new arg for objfile (NULL).
8468 * symtab.h: Remove struct sourcevector and struct source. Definately
8470 * values.c (value_virtual_fn_field): Fixes code to handle new vtable
8471 debug info format. Patch from marka.
8473 Wed Dec 16 23:11:25 1998 Stu Grossman <grossman@fencer.cygnus.com>
8475 * jv-lang.c (java_class_from_object java_class_is_primitive
8476 is_object_type): Change dtable to vtable.
8477 * (java_primitive_type): Change arg to type char.
8478 * (_initialize_java_language): Make java_char_type be unsigned.
8479 * jv-lang.h: Fixup prototypes.
8481 Mon Dec 7 19:02:15 1998 Stu Grossman <grossman@babylon-5.cygnus.com>
8483 * jv-valprint.c (java_value_print): Fix printing of values where
8484 run time type != compile time type.
8486 Fri Dec 4 15:23:38 1998 Stu Grossman <grossman@fencer.cygnus.com>
8488 * Makefile.in: Whack out m2-typeprint.c.
8489 * c-typeprint.c (c_type_print_varspec_suffix) typeprint.h: Make this
8490 global. It's needed by Java.
8491 * (c_type_print_base): Whack prefix off of qualified method names
8492 (names with name spaces).
8493 * gdbtypes.h (struct cplus_struct_type): Add bits for Java attributes.
8495 to 16 bits to compensate for added bits above (hopefully this is still
8497 * Add new accessor macros (TYPE_FND_FIELD_PUBLIC, ...) for all new
8499 * jv-typeprint.c (java_type_print_base): Fix printing of method
8500 attributes. Handle JVM style manglings.
8501 * (java_print_type): Enable code type print varspec_suffix to allow
8502 array indices to print out.
8503 * jv-valprint.c (java_val_print): Minor formatting.
8504 * m2-lang.c (m2_language_d): Change m2_print_type to c_print_type.
8505 * stabsread.c (read_member_functions): Save public and static attributes.
8507 Wed Feb 17 15:32:57 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
8509 * breakpoint.c (watch_command_1): Reformat comment.
8511 * c-typeprint.c (c_type_print_base): Reformat comments.
8513 1999-02-17 Jim Blandy <jimb@zwingli.cygnus.com>
8515 * Makefile.in (VERSION): Bump version to 4.17.2.
8517 Tue Feb 16 15:48:20 1999 Edith Epstein <eepstein@sophia.cygnus.com>
8519 * config/pa/nm-hppah.h: Added prototype declarations for
8520 hppa_enable_page_protection_events and
8521 hppa_disable_page_protection_events.
8523 * inftarg.c (child_wait): Fixed code that checks whether
8524 or not the target program has done a fork/vfork.
8525 related_pid does not have a value unless the target
8526 program has forked/vforked.
8528 * infttrace.c (hppa_insert_hw_watchpoint): Make sure that
8529 function always returns a value.
8530 (hppa_remove_hw_watchpoint): Make sure that function always
8533 Tue Feb 16 06:31:58 1999 Keith Seitz <keiths@cygnus.com>
8535 * config/powerpc/tm-ppc-eabi.h: Do not define PC_IN_CALL_DUMMY,
8536 let the generic call dummy infrastructure do it.
8538 Sun Feb 14 18:21:08 1999 Mark Alexander <marka@cygnus.com>
8540 * config/sh/tm-sh.h (BELIEVE_PCC_PROMOTION): Define, so that
8541 coffread.c will correctly handle char or short function parameters.
8543 1999-02-11 Jason Molenda (jsm@bugshack.cygnus.com)
8545 * configure, aclocal.m4: Regenerate with correct version of aclocal.
8547 1999-02-10 Syd Polk <spolk@cygnus.com>
8549 * acinclude.m4: Fix for new location of itclConfig.sh and itkConfig.sh.
8550 * aclocal.m4: Regnerate.
8551 * configure: Regenerate.
8553 1999-02-10 Jason Molenda (jsm@bugshack.cygnus.com)
8555 * demangle.c: Fix comments to mention "set demangle-style"
8556 instead of "set demangle".
8557 Run through indent to fix minor indenting problems.
8559 Wed Feb 10 17:53:09 1999 Bob Manson <manson@charmed.cygnus.com>
8561 * i386-tdep.c (gdb_print_insn_i386): Add missing returns.
8563 Wed Feb 10 13:17:21 1999 Stan Shebs <shebs@andros.cygnus.com>
8565 Declare Gould configuration obsolete:
8566 * configure.host, configure.tgt: Comment out Gould configs.
8567 * Makefile.in: Comment out Gould-related actions.
8568 * gould-xdep.c, gould-tdep.c, config/gould/*: Comment out.
8569 * NEWS: Mention obsolete status.
8571 1999-02-09 DJ Delorie <dj@cygnus.com>
8573 * sparcl-tdep.c: UDP download works in cygwin
8575 1999-02-08 Jason Molenda (jsm@bugshack.cygnus.com)
8577 * gnu-regex.c: Check ENABLE_NLS instead of HAVE_LIBINTL_H.
8578 * configure.in: Don't check for libintl.h.
8579 * configure, config.in: Regenerated.
8581 Mon Feb 8 18:10:50 1999 Stan Shebs <shebs@andros.cygnus.com>
8583 * NEWS: Mention new X packet and PowerPC variant support.
8585 1999-02-08 Nick Clifton <nickc@cygnus.com>
8587 * configure.host: Add support for StrongARM host.
8588 * configure.tgt: Add support for StrongARM target.
8590 Mon Feb 8 12:05:05 1999 David Taylor <taylor@texas.cygnus.com>
8592 * dsrec.c (make_srec): Cast targ_addr to int in call to sprintf
8593 otherwise on big endian machine with a bfd_vma of 64 bits,
8594 *everything* gets loaded at location 0.
8596 Mon Feb 7 10:05:43 1999 Frank Ch. Eigler <fche@cygnus.com>
8598 * infrun.c (wait_for_inferior): Allow SIGTRAP to be "pass"ed
8601 Fri Feb 5 16:46:14 1999 Stan Shebs <shebs@andros.cygnus.com>
8603 * NEWS: Add mentions of various new things.
8605 Thu Feb 4 00:19:14 1999 Christopher Faylor <cgf@cygnus.com>
8607 * configure.in: Move termcap determination later in the
8608 file to catch setting of cygwin flag.
8609 * configure: Regenerate.
8611 Wed Feb 3 14:16:38 1999 Christopher Faylor <cgf@cygnus.com>
8613 * config/i386/cygwin.mh: Move TERMCAP test code to configure.in.
8614 * configure.in: Treat libtermcap.a detection as a special case
8615 when hosting on cygwin.
8616 * configure: Regenerate.
8618 1999-02-03 Keith Seitz <keiths@cygnus.com>
8620 * remote.c (remote_binary_download, remote_binary_length): New
8621 static globals for dealing with binary transmissions.
8622 (remote_write_bytes): Add support for binary downloads
8623 by shadowing the "M" packet with a new "X" packet. This
8624 defaults to ON; if the stub does not understand this, it
8625 will fall back to using "M".
8626 (putpkt): Add support for binary downloading.
8627 * monitor.c (monitor_expect): The mon2000 monitor
8628 on the MSA2000 will also emit random DC1/DC3 chars.
8629 * m32r-stub.c: Change all char's to unsigned char's
8630 to support binary downloading.
8631 (handle_exception): Add support for binary downloading
8632 via a new "X" packet.
8633 (getpacket): Do NOT strip eighth bit of incoming chars.
8634 Watch out for escaped characters in the incoming stream.
8635 (putpacket): Do NOT strip eighth bit of incoming chars.
8636 (bin2mem): New function to write binary data directly to
8638 * m32r-rom.c: Add new "mon2000" target.
8640 Tue Feb 2 18:40:29 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
8642 * hp-psymtab-read.c (hpread_build_psymtabs): Coerce first arg
8643 passed to make_cleanup to the correct type.
8644 (hpread_quick_traverse): Change fifth arg to call to
8645 hpread_end_psymtab to be 0.
8646 Compare CURR_MODULE_END to 0 rather than NULL.
8647 Get rid of ifdef'ed out code.
8648 (scan_procs): Get rid of ifdef'ed out code.
8650 * somread.c (som_symfile_read): Coerce first argument passed to
8651 make_cleanup to the correct type.
8653 Tue Feb 2 17:36:29 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
8655 * hp-psymtab-read.c (do_pxdb): New function. Check whether the
8656 file needs to be processed by pxdb (an HP debug info massaging
8657 tool), if so call it.
8658 (hpread_build_psymtabs): Initialize scan_start to 0 and
8659 simplify flow of control.
8661 * somread.c (som_symfile_read): Add call to do_pxdb (),
8662 in hp-psymtab-read.c.
8664 * symfile.c (symbol_file_add): Remove ifdef'ed out HPUX specific
8666 (symfile_bfd_open): Remove HPUXHPPA ifdef'ed code. Code is now
8667 in hp-psymtab-read.c.
8669 1999-02-02 Martin Hunt <hunt@cygnus.com>
8671 * printcmd.c (print_scalar_formatted): Use strcat to concat all
8672 the output together before calling fprintf_filtered().
8674 1999-02-01 Jason Molenda (jsm@bugshack.cygnus.com)
8676 * configure.in: Require autoconf 2.13.
8677 (AM_EXEEXT): Replace with new AC_EXEEXT.
8678 * acinclude.m4: Move itcl header macros from aclocal.m4 to here.
8679 * aclocal.m4: Regenerated.
8680 * configure: Regenerated.
8682 1999-02-01 Jim Blandy <jimb@zwingli.cygnus.com>
8684 Allow PPC users to select which PPC/RS6000 variant they're
8685 debugging at run-time. At the moment, the only thing this affects
8686 is the set of registers visible.
8687 * config/rs6000/tm-rs6000.h (REGISTER_NAME): Define this as a call
8688 to the function rs6000_register_name.
8689 (rs6000_register_name): Include extern decl.
8690 (NUM_REGS): Bump to 183. What's the right way to do this?
8691 (FIRST_UISA_SP_REGNUM, LAST_UISA_SP_REGNUM): Renamed from
8692 FIRST_SP_REGNUM, LAST_SP_REGNUM.
8693 (REGISTER_BYTES): Recompute this.
8694 * rs6000-tdep.c: Renamed all uses of FIRST_SP_REGNUM and
8695 LAST_SP_REGNUM to FIRST_UISA_SP_REGNUM and LAST_UISA_SP_REGNUM, with
8696 some concomitant formatting changes.
8697 #include "gdbcmd.h", so we can define commands here.
8698 (struct variant): New structure.
8699 (COMMON_UISA_REG_NAMES, PPC_UISA_SPR_NAMES, PPC_SEGMENT_REG_NAMES,
8700 PPC_32_OEA_SPR_NAMES, num_registers): New macros.
8701 (register_names_rs6000, register_names_uisa, register_names_403,
8702 register_names_403GC, register_names_505, register_names_860,
8703 register_names_601, register_names_602, register_names_603,
8704 register_names_604, register_names_750, variants): New variables.
8705 (rs6000_register_name, install_variant, find_variant_by_name,
8706 install_variant_by_name, list_variants, show_current_variant,
8707 set_processor, show_processor): New functions.
8708 (_initialize_rs6000_tdep): Define new commands `set processor' and
8709 `show processor', and call install_variant_by_name to set the
8711 * rs6000-nat.c: Renamed all uses of FIRST_SP_REGNUM and
8712 LAST_SP_REGNUM to FIRST_UISA_SP_REGNUM and LAST_UISA_SP_REGNUM, with
8713 some concomitant formatting changes.
8714 * configure.in: Accept the `--with-cpu' flag, to specify a default
8716 * acconfig.h: Provide a blurb for TARGET_CPU_DEFAULT, which is set
8717 by configure's `--with-cpu' flag.
8718 * config.in, configure: Regenerated.
8720 Sun Jan 31 15:24:24 1999 Stan Shebs <shebs@andros.cygnus.com>
8722 * buildsym.h, buildsym.c: Convert to ANSI-only.
8724 * buildsym.h, buildsym.c: Reformat to standard.
8726 * buildsym.c (merge_symbol_lists): Remove unused variable.
8727 (_initialize_buildsym): Remove, does nothing.
8729 1999-01-31 J.T. Conklin <jtc@redbacknetworks.com>
8731 * i386-stub.c, m32r-stub.c, m68k-stub.c, sh-stub.c, sparc-stub.c,
8732 sparcl-stub, sparclet-stub.c: Change declaration of putDebugChar
8733 to include explicit void return type as per documentation. Fix up
8734 occasions where stubs erroneously checked return type.
8736 Sun Jan 31 13:18:33 1999 Stan Shebs <shebs@andros.cygnus.com>
8738 From J.T. Conklin <jtc@redbacknetworks.com>:
8739 * remote.c (remote_query): Fix tipo.
8741 Fri Jan 29 15:25:09 1999 Stan Shebs <shebs@andros.cygnus.com>
8743 * configure.tgt (v850): Add wildcard to match.
8745 Fri Jan 29 16:44:01 1999 Edith Epstein <eepstein@sophia.cygnus.com>
8747 * inferior.h: Ran indent.
8749 * fork-child.c: Ran indent.
8751 * infrun.c : Ran indent.
8753 Fri Jan 29 12:57:34 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
8755 * infrun.c (_initialize_infrun): Do not stop or print anything
8756 when a SIGWINCH is received.
8758 * Makefile.in (m2-exp.tab.c): Use YACC not BISON.
8759 (f-exp.tab.c): Ditto.
8760 (jv-exp.tab.c): Ditto.
8761 (c-exp.tab.c): Ditto.
8762 (YACC): Define as @YACC@.
8764 1999-01-29 Martin Hunt <hunt@cygnus.com>
8766 Changes from Keith Seitz <keiths@cygnus.com>
8767 * valops.c (value_assign): Add calls to register_changed_hook and
8768 memory_changed_hook to inform UIs that the user has changed
8769 the target's registers/memory.
8770 * findvar.c (write_register_gen): Remove call to pc_changed_hook.
8771 * defs.h: Remove declaration for pc_changed_hook and
8772 add declarations for register_changed_hook and
8773 memory_changed_hook.
8776 1999-01-29 Mark Alexander <marka@cygnus.com>
8778 * procfs.c (wait_fd): Handle deleted threads correctly.
8780 1999-01-28 Jason Molenda (jsm@bugshack.cygnus.com)
8782 * utils.c (init_page_info): Force window size if running under emacs.
8784 1999-01-27 James Ingham <jingham@cygnus.com>
8786 * typeprint.c (whatis_exp): Remove static declaration.
8788 Wed Jan 27 16:50:25 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
8790 * hp-psymtab-read.c: Reformat using indent.
8792 Wed Jan 27 13:20:25 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
8794 * hp-psymtab-read.c: Reformat comments, update copyright.
8796 Wed Jan 27 15:09:22 1999 Andrew Cagney <cagney@chook.cygnus.com>
8798 * mips-tdep.c (mips_gdbarch_init): Trace e_flags from BFD
8801 Tue Jan 26 16:02:47 1999 Mark Alexander <marka@cygnus.com>
8803 * v850-tdep.c (v850_generic_reg_names, v850e_reg_names,
8804 v850_register_names, v850_processor_type_table): Declare tables
8805 and structures for handling differences in register names for
8807 (struct reg_list): Define new structure for creating tables
8808 of register bit masks in v850e instrutions.
8809 (handle_prepare, handle_pushm): New helpers for v850_scan_prologue.
8810 (v850_scan_prologue): Recognize v850e instructions: callt, prepare,
8812 (v850_target_architecture_hook): New function to set register
8813 names based on current machine.
8814 (_initialize_v850_tdep): Set up target_architecture_hook.
8815 * config/v850/tm-v850.h (v850_register_names): Declare.
8816 (REGISTER_NAME): Define to refer to v850_register_names.
8817 (SR0_REGNUM, CTBP_REGNUM): Define.
8818 (PS_REGNUM): Redefine in terms of SR0_REGNUM.
8820 Tue Jan 26 18:27:26 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
8822 * Makefile.in (c-exp.tab.c): Use BISON instead of YACC, to pick
8823 the correct value from configure output.
8824 (jv-exp.tab.c): Ditto.
8825 (f-exp.tab.c): Ditto.
8826 (m2-exp.tab.c): Ditto.
8828 1999-01-26 Jason Molenda (jsm@bugshack.cygnus.com)
8830 * breakpoint.h (ep_is_exception_catchpoint): Add prototype.
8831 * frame.h (select_and_print_frame): Add prototype.
8832 * stack.c (func_command): Call select_and_print_frame with correct
8833 number of arguments. Reformat whitespace.
8835 Tue Jan 26 16:53:54 1999 Fernando Nasser <fnasser@cygnus.com>
8837 * remote.c (remote_query): fix maximum packet size to account for
8839 (putpkt): add comment to alert about extra byte need.
8841 Mon Jan 25 19:55:30 1999 Mark Alexander <marka@cygnus.com>
8843 * sh-tdep.c (sh_target_architecture_hook): Return immediately
8844 when a matching machine is found.
8846 Fri Jan 22 09:10:35 1999 Mark Alexander <marka@cygnus.com>
8848 * remote-mips.c (mips_initialize): Fix parameters to clear_breakpoint.
8849 (common_breakpoint): Restore support for instruction breakpoints
8852 Thu Jan 21 17:16:19 1999 Andrew Cagney <cagney@b1.cygnus.com>
8854 * stack.c: Close open comment.
8855 * symtab.c (find_pc_sect_line): Ditto.
8857 Thu Jan 21 17:51:51 1999 Stan Shebs <shebs@andros.cygnus.com>
8859 * procfs.c (init_procfs_ops): New function, fills in procfs_ops,
8860 init only nonzero fields, leave to_require_attach and
8861 to_require_detach empty, not needed for /proc systems yet.
8862 (_initialize_procfs): Call init_procfs_ops.
8864 From J.T. Conklin <jtc@redbacknetworks.com>:
8865 * top.c (init_main): Fix tipo in description of the remotetimeout
8867 * breakpoint.c (bpstat_stop_status): Handle systems where
8868 DECR_PC_AFTER_BREAK != DECR_PC_AFTER_HW_BREAK.
8870 Thu Jan 21 17:25:46 1999 Mark Alexander <marka@cygnus.com>
8872 * mon960-rom.c (_initialize_mon960): Call init_mon960_cmds
8873 to fill in mon960_cmds structure properly.
8875 Wed Jan 20 17:53:22 1999 Stan Shebs <shebs@andros.cygnus.com>
8877 * remote-sds.c (sds_ops): Define only once.
8878 (init_sds_ops, sds_command, _initialize_remote_sds): Declare.
8879 (init_sds_ops): Init only non-zero fields.
8881 Wed Jan 20 15:45:15 1999 Mark Alexander <marka@cygnus.com>
8883 * h8300-tdep.c (original_register_names, h8300h_register_names,
8884 h8300_register_names): Define new variables.
8885 (set_register_names): New function to set register names based on
8887 (h8300_command, h8300h_command, h8300s_command): Call
8889 * config/h8300/tm-h8300.h (h8300_register_names): Declare.
8890 (REGISTER_NAME): Define to refer to h8300_register_names.
8892 1999-01-19 Fernando Nasser <fnasser@totem.to.cygnus.com>
8894 * sol-thread.c abug-rom.c cpu32bug-rom.c dbug-rom.c m32r-rom.c
8895 mac-nat.c mon960-rom.c op50-rom.c ppc-bdm.c remote-adapt.c
8896 remote-array.c remote-bug.c remote-e7000.c remote-eb.c remote-es.c
8897 remote-est.c remote-hms.c remote-mm.c remote-nindy.c remote-nrom.c
8898 remote-os9k.c remote-rdp.c remote-sds.c remote-sim.c remote-st.c
8899 remote-udi.c rom68k-rom.c sh3-rom.c sparcl-tdep.c sparclet-rom.c
8900 v850ice.c win32-nat.c: cosmetic changes to conform to coding
8903 1999-01-19 Jim Blandy <jimb@zwingli.cygnus.com>
8905 Use aclocal to generate GDB's aclocal.m4 script.
8906 * acinclude.m4: New file, containing the hand-written local macro
8907 definitions that used to be in aclocal.m4. Don't sinclude
8908 ../bfd/aclocal.m4 any more; running aclocal in this directory will
8909 get us the definitions we need. HOWEVER: Do sinclude
8910 ../bfd/acinclude.m4, because we need the definition of
8911 BFD_NEED_DECLARATION.
8912 * aclocal.m4: Regenerated by aclocal.
8913 * configure: Regenerated by autoconf.
8915 Tue Jan 19 10:27:23 1999 David Taylor <taylor@texas.cygnus.com>
8917 * breakpoint.c (disable_breakpoints_in_shlibs): new parameter,
8918 silent, controls whether to print message about removal of shared
8919 library breakpoints.
8920 * breakpoint.h (disable_breakpoints_in_shlibs): decl updated.
8921 * irix5-nat.c (clear_solib): call disable_breakpoints_in_shlibs.
8922 * osfsolib.c (clear_solib): ditto.
8923 * solib.c (clear_solib): ditto.
8924 * somsolib.c (som_solib_restart): update call to
8925 disable_breakpoints_in_shlibs.
8927 * target.h (child_post_attach): only declare if CHILD_POST_ATTACH
8930 Tue Jan 19 18:07:11 1999 Andrew Cagney <cagney@b1.cygnus.com>
8932 * corelow.c (solib_add_stub): Ditto.
8933 (core_file_to_sym_file): Cast make_cleanup parameter.
8935 * solib.c (symbol_add_stub, solib_map_sections): Change argument
8936 to PTR insted of a char*. Matches catch_errors interface.
8938 Mon Jan 18 14:01:24 1999 Andrew Cagney <cagney@b1.cygnus.com>
8940 * remote-array.c (array_open): Don't use fprintf_filtered to send
8941 data to the log file.
8943 * remote-array.c (handle_load_dll): Change argument type to PTR so
8944 that it is compatible with catch_errors.
8945 * ocd.c (ocd_start_remote): Ditto.
8946 * remote-sds.c (sds_start_remote): Ditto.
8948 * win32-nat.c (win32_child_thread_alive): Namespace proof
8950 (init_child_ops): Update.
8952 Mon Jan 18 12:03:47 1999 Andrew Cagney <cagney@b1.cygnus.com>
8954 * remote-rdi.c (arm_rdi_open): Set gdb_hostif.hostosarg and
8955 gdb_hostif.dbgarg to NULL instead of stdout.
8956 (voiddummy, myprint, mywritec): Use gdb_stdout instead of stdout.
8958 Mon Jan 18 16:40:50 1999 Stan Shebs <shebs@andros.cygnus.com>
8960 * ser-ocd.c (ocd_open): Handle Unix case gracefully.
8962 * target.c (dummy_target): Don't initialize statically.
8963 (init_dummy_target): New function, fills in dummy_target.
8964 (initialize_targets): Use it.
8965 * hpux-thread.c (hpux_thread_ops): Don't initialize statically.
8966 (init_hpux_thread_ops): New function, fills in hpux_thread_ops.
8967 (_initialize_hpux_thread): Use it.
8968 * m3-nat.c (m3_ops): Don't initialize statically.
8969 (init_m3_ops): New function, fills in m3_ops.
8970 (_initialize_m3): Use it.
8972 1999-01-18 Fernando Nasser <fnasser@totem.to.cygnus.com>
8974 * sol-thread.c: delete compile time initialization of target_ops
8975 (_initialize_sol_thread): initialize target_ops at run time.
8976 * hpux-thread.c: added target_ops entry.
8979 Mon Jan 18 15:19:13 1999 David Taylor <taylor@texas.cygnus.com>
8981 * procfs.c (procfs_ops): delete compile time initialization.
8982 (_initialize_procfs): initialize procfs_ops at run time.
8984 Mon Jan 18 12:51:44 1999 Christopher Faylor <cgf@cygnus.com>
8986 * configure.in: Ensure that -luser32 is always linked in
8988 * configure: Regenerated.
8990 Mon Jan 18 08:38:05 1999 Mark Alexander <marka@cygnus.com>
8992 * values.c (value_virtual_fn_field): Clear the pointed-to
8993 offset when casting to the base class.
8995 Mon Jan 18 10:30:51 1999 David Taylor <taylor@texas.cygnus.com>
8997 * remote-udi.c (init_udi_ops): change non-existant udi_run_ops to
8998 udi_ops; delete NULL initializers.
9000 Mon Jan 18 12:03:47 1999 Andrew Cagney <cagney@b1.cygnus.com>
9002 * serial.c (serial_close): gdb_fclose tages gdb_file** arg, not
9005 * f-valprint.c, target.c, gdbarch.c: Pass gdb_stderr not stderr.
9007 Mon Jan 18 10:46:12 1999 Andrew Cagney <cagney@b1.cygnus.com>
9009 * stack.c (print_frame_info_base): Don't cast call to
9011 (print_args_stub): Change char* arg to PTR.
9012 * symmisc.c (print_symbol): Ditto.
9013 * top.c (quit_cover): Ditto.
9014 * remote.c (remote_open_1, remote_start_remote): Ditto.
9015 * infrun.c (normal_stop, hook_stop_stub, restore_selected_frame):
9018 * stack.c (backtrace_command): Cast first arg of make_cleanup to
9020 * remote.c (remote_kill): Cast putpkt arg to catch_errors_ftype.
9022 Mon Jan 18 08:47:02 1999 Andrew Cagney <cagney@b1.cygnus.com>
9024 * defs.h (catch_errors_ftype): Define.
9025 (catch_errors): Replace char* arg with PTR arg.
9026 * top.c (catch_errors): Update
9028 * breakpoint.c (bpstat_stop_status, bpstat_stop_status,
9029 delete_breakpoint, breakpoint_re_set): Delete all casts in call to
9031 (breakpoint_cond_eval, watchpoint_check,
9032 cover_target_enable_exception_callback, breakpoint_re_set_one):
9033 Arg is PTR not char*.
9035 * breakpoint.c (cover_target_enable_exception_callback): Change
9036 type to int. Check for cast values of 0 and -1. Return a result!
9037 (insert_breakpoints): Move declaration of SAL and ARGS to where
9040 1999-01-16 Fernando Nasser <fnasser@totem.to.cygnus.com>
9042 * remote.c (remote_query): new function - creates proper interface
9043 to the remote protocol "q" command.
9045 Fri Jan 15 17:11:48 EST 1999 Zdenek Radouch (radouch@cygnus.com)
9047 * config/fr30/tm-fr30.h: Changed ABI to match GCC change
9048 (always use pointer for structs passed by value).
9050 1999-01-15 Fernando Nasser <fnasser@totem.to.cygnus.com>
9052 * target.h: added entry for target queries (to_query)
9055 Thu Jan 14 18:29:17 1999 David Taylor <taylor@texas.cygnus.com>
9057 * mips-tdep.c (mips_gdbarch_init): fix stream arg in
9058 fprintf_unfiltered calls.
9059 * remote-mm.c (mm_wait): fix stream arg to gdb_flush.
9060 * remote-udi.c (udi_wait): fix stream arg to fwrite.
9061 * symmisc.c (maintenance_check_symtabs): fix stream argument to
9062 print_address_numeric.
9064 Wed Jan 13 19:33:16 1999 David Taylor <taylor@texas.cygnus.com>
9066 * breakpoint.c (insert_breakpoints): insert cast to eliminate
9069 Wed Jan 13 14:59:02 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
9071 * infrun.c (set/show scheduler-locking) New command. Set a
9072 mode bit that will control how GDB attempts to control thread
9073 scheduling for step, continue, etc. (resume): make use of
9074 the schedule-locking mode.
9075 * target.h (struct target_ops): new field to_has_thread_control.
9076 * sol-thread.c: initialize target_ops to_has_thread_control.
9081 * hpux-thread.c: ditto.
9082 * thread.c: cull duplicate prototypes. Move prototypes to top.
9083 * serial.c: indentation cleanup.
9084 * breakpoint.c: add casts to eliminate compiler warnings.
9086 Tue Jan 12 17:00:00 1999 Edith Epstein <eepstein@sophia.cygnus.com>
9088 * inftarg.c (child_create_inferior): fixed HPUXHPPA specific
9089 call to fork_inferior. The shell param is now NULL.
9091 1999-01-12 Jason Molenda (jsm@bugshack.cygnus.com)
9093 * monitor.c (init_base_monitor_ops): Whitespace cleanup.
9094 (_initialize_remote_monitors): Same.
9096 1999-01-12 Jason Molenda (jsm@bugshack.cygnus.com)
9098 * monitor.c (init_monitor_ops): Initialize the monitor_ops
9099 structure if it hasn't already been done.
9101 Tue Jan 12 14:50:10 1999 Stan Shebs <shebs@andros.cygnus.com>
9103 * inftarg.c (child_ops): Don't initialize statically.
9104 (init_child_ops): New function, fills in child_ops.
9105 (_initialize_inftarg): Use it.
9106 (child_post_attach): Declare extern.
9107 (child_wait): Fix ambiguous parens.
9108 (child_attach_to_process): Remove unused local wstatus.
9109 (child_insert_fork_catchpoint, child_remove_fork_catchpoint,
9110 child_insert_vfork_catchpoint, child_remove_vfork_catchpoint,
9111 child_has_forked, child_insert_exec_catchpoint,
9112 child_remove_exec_catchpoint): Return a value.
9114 Mon Jan 11 16:43:44 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
9116 * remote.c (remote_wait): Add inferior_pid to thread list only
9117 if it is not already there.
9119 1999-01-11 Jason Molenda (jsm@bugshack.cygnus.com)
9121 * scm-tags.h: Update FSF's address on copyright notice.
9122 * ser-e7kpc.c: Same.
9125 Mon Jan 11 13:45:57 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
9127 * dwarf2read.c (dump_die): Change stderr to gdb_stderr.
9128 * expprint.c (print_subexp): fprintf => fprintf_unfiltered.
9129 * jv-typeprint.c (java_type_print_base): fputs => fputs_filtered.
9130 * stack.c (struct function_bounds): Remove superfluous `typedef'.
9131 * symfile.c (list_overlays_command): stdout => gdb_stdout.
9132 * symmisc.c (maintenance_check_symtabs): stdout => gdb_stdout.
9133 * utils.c (print_spaces): Make more efficient.
9135 Mon Jan 11 13:55:51 1999 David Taylor <taylor@texas.cygnus.com>
9137 * utils (print_spaces): fix arg to strcat; fix formatting.
9139 Fri Jan 8 11:57:24 1999 Stan Shebs <shebs@andros.cygnus.com>
9141 * exec.c (exec_ops): Don't initialize statically.
9142 (init_exec_ops): New function, fills in exec_ops.
9143 (_initialize_exec): Use it.
9145 Thu Jan 7 17:50:15 EST 1999 Zdenek Radouch (radouch@cygnus.com)
9149 * config/fr30/tm-fr30.h
9151 Wed Jan 6 12:28:35 1999 David Taylor <taylor@texas.cygnus.com>
9153 * configure.in: Add an --enable-tui argument. Construct
9154 tui/Makefile from tui/Makefile.in. Use AM_PROG_CC_STDC. If we
9155 have the GUI, then we need this to process libgui.h.
9156 (ENABLE_CFLAGS): define and export BUILD_TUI.
9157 (AC_CHECK_HEADERS): Add check for term.h.
9159 * configure.host (hppa-*-hpux10.20, hppa-*-hpux11.0*): New configs.
9161 * config.in, configure : regenerated.
9163 * Makefile.in: Allow the TUI code to be conditionally enabled.
9164 (TUI_LIBRARY): New variable, value are set by the configuration
9165 script. Set to the empty string when the TUI isn't enabled.
9166 (gdb$(GDBEXT)): Use those, instead of referring to all-tui and
9167 tui/libtui.a directly.
9168 (BUILD_TUI): build the tui -- only when configured with
9170 (YLWRAP): use ylwrap to avoid problems on systems w/o bison.
9171 (gdb$(EXEEXT)): make it dependent on BUILD_TUI.
9172 (all-tui): remove dependency from phony target.
9173 (c-exp.tab.c): use ylwrap instead of bison.
9174 (jv-exp.tab.c): ditto.
9175 (f-exp.tab.c): ditto.
9176 (m2-exp.tab.c): ditto.
9177 (ALLDEPFILES): add somread.c, hp-psymtab-read.c, hp-symtab-read.c.
9178 (SFILES): remove the above files
9179 (COMMON_OBS): remove somread.o
9180 (SFILES): Add the tui files to this, so they get included in etags
9182 (gdb$(EXEEXT)): Add all-tui to the list of dependencies, and add
9183 tui/libtui.a to the link list.
9184 (all-tui): New rule, which does a recursive make in the tui
9186 (tui/libtui.a): When recursing, pass down ${FLAGS_TO_PASS}. And
9187 don't echo the make command. This is closer to what the other
9189 (HFILES_NO_SRCDIR): add hpread.h
9190 (COMMON_OBS): add hp-psymtab-read.o, hp-symtab-read.o
9191 (SFILES): add hp-psymtab-read.c, hp-symtab-read.c add rules for
9192 the new files. Remove hpread.c, hpread.o
9193 (gdb$(EXEEXT)): Depend on the actual tui library, not on a
9194 fictitious target. Since the fictitious target never existed,
9195 make would always relink.
9196 (tui/libtui.a): Always recurse to make sure the library is up to
9199 Wed Jan 6 12:05:12 1999 Stan Shebs <shebs@andros.cygnus.com>
9201 * remote.c: Pacify --enable-build-warnings, reformat code
9202 to conform to standards, fix spelling errors.
9203 (ishex, stubhex, record_currthread, etc): Declare.
9204 (ishex, stubhex): Declare char arg as int.
9205 (pack_string): Comment out, never used but possibly useful.
9206 (threadref_to_int, remote_get_threadinfo, etc): Make static.
9208 Wed Jan 6 11:43:32 1999 David Taylor <taylor@texas.cygnus.com>
9210 The following changes were made by Elena Zannoni
9211 <ezannoni@cygnus.com> and Edith Epstein <eepstein@cygnus.com> as
9212 part of a project to merge in changes made by HP.
9214 * c-exp.y: use external flag hp_som_som_object_present to decide
9215 whether code was compiled by HP's compilers. Add two new C++
9216 tokens for true and false.
9217 (yylex): check for template name is done differently for the
9218 HP/aCC compiler case. Change some of the template processing code
9219 for handling HP aCC templates. Handle true and false tokens.
9221 Tue Jan 5 11:13:36 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
9223 * remote.c (record_curthread): Must not modify inferior_pid when
9224 called from wait_for_inferior. Instead, if a new thread-id is
9225 detected, call add_thread.
9226 (MAGIC_NULL_PID): new macro, use instead of the magic number
9228 (remote_find_new_threads): if inferior_pid is unknown, get and use
9229 the current thread id.
9230 (remote_start_remote): on connecting, attempt to get the current
9231 thread id for inferior_pid.
9232 (remote_resume): If pid == -1, then resume any-thread (not the
9233 current thread specifically). Also some cosmetic fixups.
9235 * thread.c (info_threads_command): don't initialize current_pid
9236 until after call to FIND_NEW_THREADS (which may change inferior_pid).
9237 Also some cosmetic fixups.
9238 * infrun.c: cosmetic fixups and casts to avoid warnings.
9239 * infcmd.c: cosmetic fixups, mainly long lines.
9241 Tue Jan 5 11:55:57 1999 David Taylor <taylor@texas.cygnus.com>
9243 * target.c (noprocess): terminate sentence with a period.
9244 * breakpoint.c (catch_command_1): ditto.
9246 * c-valprint.c (c_value_print): remove hack^2 from HP; it causes
9247 testsuite losses with no real gain.
9249 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): restore, but only
9250 if tm-*.h hasn't overridden default value.
9252 1999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
9254 * configure.in: Fix whitespace indentation for --help.
9255 * configure: Regenerated.
9257 1999-01-04 Manuel Bouyer <bouyer@antioche.lip6.fr>
9259 * main.c: Add --write command line option, document -w.
9260 * gdb.1: Document --write.
9262 1999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
9264 * configure.in: Require autoconf 2.12.1 or higher.
9265 * doc/configure.in: Ditto.
9266 * nlm/configure.in: Ditto.
9267 * rdi-share/configure.in: Ditto.
9268 * testsuite/configure.in: Ditto.
9269 * doc/Makefile.in: Don't hardcode $(SHELL).
9270 * nlm/Makefile.in: Ditto.
9271 * rdi-share/Makefile.in: Ditto.
9272 * testsuite/Makefile.in: Ditto.
9274 Mon Jan 4 12:53:03 1999 Stan Shebs <shebs@andros.cygnus.com>
9276 * remote-vx.c (init_vx_ops, init_vx_run_ops): Remove unneeded
9277 inits of new fields, including ref to bogus field.
9278 (vx_ops, vx_run_ops): Make static.
9280 Mon Jan 4 15:05:29 1999 David Taylor <taylor@texas.cygnus.com>
9282 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): delete,
9283 already defined in tm.h.
9285 * inftarg.c: change <sys/unistd.h> to <unistd.h> and
9286 conditionalize its inclusion.
9287 * infttrace.c: ditto.
9289 For older changes see ChangeLog-1998
9295 version-control: never