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 * acconfig.h: remove obsolete def HAVE_MULTIPLE_PROC_FDS,
59 add new def NEW_PROC_API
61 * configure.in: Detect sparc solaris 7 and all versions of
62 UnixWare, and define NEW_PROC_API.
63 * configure: auto-generate.
64 * infrun.c (MAY_SWITCH_FROM_INFERIOR_PID): remove define, make it
65 the default behavior. (switched_from_inferior_pid): rename to
66 previous_inferior_pid. (handle_inferior_event): remove the
67 [Switching to thread...] message. (normal_stop): move the
68 [Switching to thread...] message to here.
69 * sol-thread.c (sol_find_new_threads): add a call to
70 procfs_find_new_threads, so that new LWPs are found too.
71 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
72 define to always use. (target_insert_watchpoint) define to use
73 new procfs call (one additional parameter).
74 (target_remove_watchpoint): ditto.
75 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT) define always true.
76 * config/mips/nm-irix4.h: ditto.
78 1999-12-21 Jim Blandy <jimb@cygnus.com>
80 * Makefile.in (elf_bfd_h): Look for elf-bfd.h in BFD_SRC, not
81 BFD_DIR. Unlike bfd.h, it is not a generated file.
83 Fri Dec 17 18:24:58 1999 David Taylor <taylor@texas.cygnus.com>
85 * language.c (_initialize_language): move settings of language,
86 range, and type and corresponding function calls
87 set_language_command, set_type_command, and set_range_command
88 closer together to match the model of having the user set the
89 variable via the 'set {language | range | type}' commands.
90 This eliminates startup noise introduced by Jimmy Guo's change
93 1999-12-17 Michael Snyder <msnyder@cleaver.cygnus.com>
95 * configure.in: test for <stdint.h>, which is not available
96 on earlier versions of Linux.
97 * config.in: define HAVE_STDINT_H if it's present.
98 * configure: autoconfiscate.
99 * lin-thread.c: if not HAVE_STDINT_H, stub out the entire module.
101 Fri Dec 17 20:45:21 1999 Andrew Cagney <cagney@b1.cygnus.com>
103 * target.c (find_target_beneath): Change ``='' in if to ``==''.
105 1999-12-16 Michael Snyder <msnyder@cleaver.cygnus.com>
107 * defs.h (TIDGET): add default definition.
108 * lin-thread.c (check_for_thread_event): for now, just provide
109 an empty definition (to be filled in later).
111 1999-12-16 Fernando Nasser <fnasser@totem.to.cygnus.com>
113 * varobj.c (varobj_list): Improve the test and the text of the
114 assertion that guards against wrong tally of root varobjs.
115 (uninstall_variable): Fix for a bug in which the number of root
116 varobjs was not decremented if the first one in the list was deleted.
118 1999-12-16 Michael Snyder <msnyder@cleaver.cygnus.com>
120 * linux-thread.c: Remove printf-debugging code.
121 * lin-thread.c: ditto.
122 * config/alpha/nm-linux.h: protect with NM_LINUX_H.
124 1999-12-16 Michael Snyder <msnyder@cleaver.cygnus.com>
126 * lin-thread.c: new file. Implements multi-thread debugging on
127 Linux using the thread_db API first implemented on Solaris. This
128 frees GDB from any dependency on the internal implementation of
129 the thread library. Future versions of the thread library will
130 implement a libthread_db API for debuggers, which GDB will use.
131 * config/i386/linux.mh: add lin-thread.o to the link, and add
132 -ldl and -rdynamic since libthread_db is a dynamic library.
133 * config/alpha/alpha-linux.mh: ditto.
134 * configure.in: test for thread_db.h, proc_service.h
135 * configure: autoconf.
136 * config.in: conditionally define HAVE_THREAD_DB_H
137 and HAVE_PROC_SERVICE_H
138 * gdb_thread_db.h: new file, used when the system doesn't have it.
139 * gdb_proc_service.h: ditto.
141 1999-12-16 Michael Snyder <msnyder@cleaver.cygnus.com>
143 * linux-thread.c: changes to accomodate the new lin-thread.c
144 module based on the thread_db API. These changes make parts of
145 linux-thread.c shareable with lin-thread.c.
146 (linuxthreads_wait_mask): replace with linuxthreads_block_mask.
147 (using_thread_db): new variable. Allows linux-thread module to
148 detect when lin-thread (thread_db API) module is in use.
149 (save_inferior_pid, restore_inferior_pid): make 32/64 bit safe.
150 (check_all_signal_numbers) make extern, shared with lin-thead.c.
151 (linuxthreads_new_objfile): use target_new_objfile_chain to share
152 this hook with the lin-thread module. Call the other module FIRST.
153 If using_thread_db is turned on by the other thread module, do not
154 set linuxthreads_debug and do not call update_stop_threads. Do call
155 check_all_signal_numbers, to be sure it gets set before target_wait.
156 (linux_child_wait): new function. Abstracts out the "child_wait"
157 functionality, so that it can be shared with the lin-thread module.
158 (linuxthreads_wait): call linux_child_wait, instead of doing the
159 waiting inline. If using_thread_db, do not call update_stop_threads
160 and do not turn on linuxthreads_debug.
161 (linuxthreads_mourn_inferior): abstract out the clearing of global
162 state, so that it can be shared with the lin-thread.c module.
163 (_initialize_linuxthreads): use linuxthreads_wait_mask to block
164 SIGCHLD exactly ONCE, and leave it blocked! Then linux_child_wait
165 will call sigsuspend when it wants to wait for this signal.
166 (thread_attach): abstract out ptrace attach to share with lin-thread.c
168 1999-12-16 Michael Snyder <msnyder@cleaver.cygnus.com>
170 Make target_pid_to_str a target_ops vector.
171 * target.h (target_pid_to_str): redefine to use a target_ops vector.
172 (target_tid_to_str): default to using target_pid_to_str.
173 (target_pid_or_tid_to_str): ditto.
174 * target.c (update_current_target): inherit to_pid_to_str method.
175 (find_target_beneath): new function. Find target stratum below
177 * config/nm-gnu.h: don't define target_pid_to_str.
178 * config/i386/tm-i386sol2.h: ditto.
179 * config/sparc/tm-sun4sol2.h: ditto.
180 * gnu-nat.c (init_gnu_ops): initialize to_pid_to_str vector.
181 * linux-thread.c (init_linuxthreads_ops): ditto.
182 * sol-thread.c (init_sol_thread_ops: ditto.
183 * procfs.c (init_procfs_ops): ditto.
184 * win32-nat.c (init_child_ops): ditto.
185 * config/i386/tm-cygwin.h: don't define target_pid_to_str.
186 * inftarg.c (child_pid_to_str): new function, used to initialize
187 to_pid_to_str vector. May be suppressed by defining CHILD_PID_TO_STR.
188 (init_child_ops): initialize to_pid_to_str using child_pid_to_str.
189 Derivative modules may substitute their own child_pid_to_str func
190 by defining CHILD_PID_TO_STR.
191 * lynx-nat.c (lynx_pid_to_str): rename to child_pid_to_str.
192 * config/nm-lynx.h: define CHILD_PID_TO_STR.
193 Don't define target_pid_to_str.
194 * hppah-nat.c (hppa_pid_to_str): rename to child_pid_to_str.
195 * infttrace.c (hppa_pid_or_tid_to_str): call child_pid_to str
196 instead of hppa_pid_to_str.
197 * config/pa/nm-hppah.h: define CHILD_PID_TO_STR.
198 Don't define target_pid_to_str.
200 1999-12-16 Michael Snyder <msnyder@cleaver.cygnus.com>
202 * i386-linux-nat.c: introduce PIDGET/TIDGET macros as on Solaris,
203 preparatory to using the thread_db debugging API for Linux.
204 (fill_gregset): guard against invalid input.
205 (fetch_regs): add a pid/thread_id argument, so we can fetch regs
206 from multiple processes/clones/threads. (store_regs): ditto.
207 (fetch_fpregs): ditto. (store_fpregs): ditto.
208 (fetch_xfpregs): ditto. (store_xfpregs): ditto.
209 (fetch_inferior_registers): use TIDGET to extract an appropriate
210 thread/clone/process id from inferior_pid, if there's one there,
211 and pass it to fetch_regs etc. (store_inferior_registers): ditto.
213 * infptrace.c: include every available version of wait.h.
214 introduce PIDGET/TIDGET macros for use with thread_db API on Linux.
215 (call_ptrace): rearrange lines that were split by an ifdef.
216 (fetch_register): use TIDGET to extract an appropriate process ID
217 from inferior_pid, in case we are debugging more than one process.
218 (store_register): ditto. This is for Linux.
219 (child_xfer_memory): use PIDGET to extract the main process id from
220 inferior_pid, in case we are debugging multiple processes that share
221 the same address space (as on Linux).
223 1999-12-16 Christopher Faylor <cgf@cygnus.com>
225 * win32-nat.c: Add a missing register to mappings array.
226 (child_fetch_inferior_registers): Use precalculated index into mappings
227 array as supply_registers argument.
228 (handle_output_debug_string): Avoid considering every debug string as a
230 (handle_exception): Trap first chance exceptions.
231 (child_create_inferior): Initialize Microsoft thread walking API.
232 (sgmb): New function. Used by Microsoft API for stack walking.
233 (child_frame_chain): New function. Uses Microsoft API for stack
235 (child_frame_chain_saved_pc): Ditto.
236 * config/i386/tm-cygwin.h: Define frame handling stuff.
238 1999-12-15 Stan Shebs <shebs@andros.cygnus.com>
240 ARM GNU/Linux support and general ARM target fixes/cleanup from
241 Scott Bambrough <scottb@netwinder.org>, plus obsoletion of the old
243 * NEWS: Mention addition and obsoletion.
244 * configure.host: Recognize arm* instead of just arm.
245 (arm*-*-linux*): Recognize.
246 * configure.tgt: Ditto, plus assume arm*-*-* is embedded.
247 * config/arm/arm.mh, config/arm/arm.mt, config/arm/nm-arm.h,
248 config/arm/xm-arm.h: Mark as OBSOLETE.
249 * config/arm/embed.mt, config/arm/tm-embed.h: New files.
250 * config/arm/linux.mh, config/arm/linux.mt, config/arm/nm-linux.h,
251 config/arm/tm-linux.h, config/arm/xm-linux.h: Ditto.
252 * config/arm/tm-arm.h: Add more comments, eliminate PARAMS.
253 (STACK_END_ADDR): Remove.
254 (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT, THUMB_LE_BREAKPOINT,
255 THUMB_BE_BREAKPOINT): Move to here from arm-tdep.c.
256 (NUM_REGS): Define as sum.
257 (NUM_FREGS, NUM_SREGS, NUM_GREGS): New definitions.
258 (FP_REGISTER_RAW_SIZE, FP_REGISTER_VIRTUAL_SIZE,
259 STATUS_REGISTER_SIZE): Define.
260 (REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE,
261 REGISTER_VIRTUAL_SIZE): Rewrite to use symbolic values.
262 (REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
263 REGISTER_CONVERT_TO_RAW, USE_STRUCT_CONVENTION,
264 EXTRACT_RETURN_VALUE): Rewrite to use new functions.
265 (IN_SIGTRAMP): Remove definition.
266 * arm-convert.s: Mark as OBSOLETE.
267 * arm-linux-nat.c: New file.
268 * Makefile.in: Add build rule for it.
269 * arm-tdep.c (struct frame_extra_info): New struct.
270 (arm_use_struct_convention): Rewrite.
271 (arm_push_arguments): Rewrite to handle more cases.
272 (arm_register_convertible, arm_register_convert_to_virtual,
273 arm_register_convert_to_raw, arm_extract_return_value): New
275 (LITTLE_BREAKPOINT, BIG_BREAKPOINT): Remove.
276 * arm-xdep.c: Mark as OBSOLETE.
278 1999-12-15 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
280 * infcmd.c (run_stack_dummy): Temporarily lie about the target
281 ability to support asynchronous execution.
283 * remote.c (remote_can_async_p, remote_is_async_p): Return true
284 iff to_async_mask_value is true too.
285 (remote_async): Error out if called when to_async_mask_value is 0.
286 (init_remote_async_ops): Initialize to_async_mask_value to 1.
287 (remote_async_detach, remote_async_resume, remote_async_wait,
288 remote_async_kill): Change SERIAL_IS_ASYNC_P call to
289 target_is_async_p call.
290 (remote_async_resume): Change SERIAL_CAN_ASYNC_P call to
291 target_can_async_p call.
293 * target.c (update_current_target): Inherit to_async_mask_value.
294 (target_async_mask): New function. To temporarily turn the target
295 into a synchronous one for inferior function calls, and back to
298 * target.h (to_async_mask_value): New entry in the target
300 (target_async_mask): Export.
301 (target_async_mask_value): Define.
303 Wed Dec 15 11:24:32 1999 Jeffrey A Law (law@cygnus.com)
305 * hp-psymtab-read.c (trans_lang): Use HP_LANGUAGE_FORTRAN instead
308 Wed Dec 15 13:37:55 1999 Andrew Cagney <cagney@b1.cygnus.com>
310 * gdb-events.h, gdb-events.c (set_gdb_event_hooks): Return the old
313 1999-08-13 Jim Kingdon <http://developer.redhat.com/>
315 * breakpoint.c (bpstat_stop_status): Revert 1998-09-08 change
316 to ->frame matching. The change did not match the ChangeLog
317 entry, looked fishy, and caused infinite stepping when running
318 "next" from main on sparc w/ RH Linux. Thanks to Jakub for the
321 1999-12-14 Stan Shebs <shebs@andros.cygnus.com>
323 * arm-tdep.c (arm_get_next_pc): Add argument to shifted_reg_val
326 1999-12-14 Mark Salter <msalter@cygnus.com>
328 * mips-tdep.c (mips_print_register): Fix printing of individual
329 registers when REGISTER_VIRTUAL_SIZE != REGISTER_RAW_SIZE.
331 Tue Dec 14 23:29:19 1999 Andrew Cagney <cagney@b1.cygnus.com>
333 * defs.h (mcalloc): Delcare.
334 * utils.c (xcalloc, mcalloc): New functions.
336 1999-12-13 Stan Shebs <shebs@andros.cygnus.com>
338 * config/arm/tm-arm.h: Reformat comments, in preparation for
340 * arm-tdep.c: Similarly, plus change function definitions to
343 1999-12-13 Michael Snyder <msnyder@cleaver.cygnus.com>
345 * breakpoint.h (enum bptype): add new BP type bp_thread_event.
346 This will be used when a target needs to set an invisible
347 breakpoint to detect events such as thread creation.
348 * breakpoint.c (interlan_breakpoint_number): remove ifdefs.
349 (create_thread_event_breakpoint): new function.
350 (remove_thread_event_breakpoints): new function.
351 (bpstat_what): don't stop at invisible thread_event breakpoints.
352 (update_breakpoints_after_exec): if bp_thread_event breakpoins
353 still exist after an exec, delete them. They'll need to be
354 found and installed anew anyway.
355 (print_it_typical): don't announce bp_thread_event breakpoints.
356 (print_one_breakpoint): account for new breakpoint type.
357 (mention): don't mention invisible bp_thread_event breakpoints.
358 (delete_command): don't delete invisible bp_thread_event bp's.
359 (breakpoint_re_set_one): don't touch bp_thread_event bp's.
361 Mon Dec 13 11:10:59 1999 Jimmy Guo <guo@cup.hp.com>
363 * language.h (longest_raw_hex_string, longest_local_hex_string,
364 longest_local_hex_string_custom): Declare.
365 * language.c: New functions, and misc. fixes.
366 (longest_raw_hex_string, longest_local_hex_string,
367 longest_local_hex_string_custom): New functions.
370 (c_type_print_varspec_prefix,c_type_print_varpsec_suffix): Add
371 TYPE_CODE_TEMPLATE case and default case.
372 (c_type_print_base): Revise how demangled_no_class is found;
373 print '}' before printing local file:line info.
374 * c-valprint.c (c_value_print): print reference type to class.
376 * valarith.c (value_binop): Add support for exponentiation,
378 (value_strcmp): New function.
379 (value_equal,value_less): Add string equality comparison support.
381 * m2-exp.y (lex): add default case statement to capture
382 unhandled token and call error().
384 1999-12-13 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
386 * main.c (main): Remove unused variable.
388 From Hubert VERSTRAETE (hubertV@bigfoot.com):
389 * main.c (captured_main): Disambiguate command line option '-d' by
390 preferring --directory over --dbx.
392 * top.c (return_to_top_level): Do not do exec cleanups if the
393 target is executing. Those cleanups are supposed to be done when
394 the target has stopped.
396 Mon Dec 13 20:52:37 1999 Andrew Cagney <cagney@b1.cygnus.com>
398 * breakpoint.c (do_captured_breakpoint_query,
399 gdb_breakpoint_query): New functions. Implement a breakpoint
402 * defs.h (enum gdb_rc): Declare.
403 (gdb_breakpoint_query): Declare.
405 Mon Dec 13 14:18:06 1999 Andrew Cagney <cagney@b1.cygnus.com>
407 * gdb-events.h: Fix typo in description of breakpoint events.
408 * gdb-events.sh: Update.
410 Mon Dec 13 13:57:26 1999 Andrew Cagney <cagney@b1.cygnus.com>
412 * breakpoint.c (ep_type_description_t): Delete.
413 (print_one_breakpoint): Add local declaration of struct
416 Mon Dec 13 12:38:31 1999 Andrew Cagney <cagney@b1.cygnus.com>
418 * top.h: Delete #include <setjmp.h>. Moved to top.c.
419 (SIGJMP_BUF, SIGSETJMP, SIGLONGJMP, SIGJMP_BUF, SIGSETJMP,
420 SIGLONGJMP): Delete. Moved to top.c
421 (error_return, quit_return): Delete extern declarations.
423 * top.c: #include <setjmp.h>.
424 (error_return, quit_return): Make static.
425 (SIGJMP_BUF, SIGSETJMP, SIGLONGJMP, SIGJMP_BUF, SIGSETJMP,
428 Mon Dec 13 11:54:12 1999 Andrew Cagney <cagney@b1.cygnus.com>
430 * tracepoint.c (trace_start_command, tracepoints_info): Print
431 step_count using %ld.
432 * Makefile.in (tracepoint.o): Compile tracepoint.o with -Werror.
434 1999-12-12 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
436 * target.h (enum target_waitkind): Add new enumeration value
437 TARGET_WAITKIND_IGNORE. For inferior events that we should do
440 * remote.c (remote_async_wait): After each character of console
441 output from the inferior, return to the event loop with an event
442 kind of TARGET_WAITKIND_IGNORE instead of looping here.
444 * infrun.c (handle_inferior_event): In case of
445 TARGET_WAITKIND_IGNORE, return immediately, and set things up so
446 that we are still waiting for the inferior.
448 1999-12-12 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
450 * event-loop.c (handle_timer_event): When calling the timer
451 procedure, use the saved_timer data, not the timer_ptr data,
452 because the latter has been already freed.
454 Fri Dec 10 12:01:43 1999 Andrew Cagney <cagney@b1.cygnus.com>
456 * eval.c (evaluate_subexp): Only inline when GNUC and not STDC.
458 Sat Dec 11 17:52:03 1999 Andrew Cagney <cagney@b1.cygnus.com>
460 * breakpoint.c (print_one_breakpoint): New function. Move
461 breakpoint print code to here.
462 (breakpoint_1): From here.
463 (print_one_breakpoint): Merge in ui-out code.
464 (print_one_breakpoint): Add local variabls ``stb'' and
466 (breakpoint_1): Use print_one_breakpoint when UI.
467 (print_one_breakpoint): Print breakpoint type when UI.
468 (breakpoint_1): Merge UI out code into non UI function.
470 * ui-out.c (make_cleanup_ui_out_stream_delete): New function. Wrap
472 (do_stream_delete): New function. Wrap ui_out_stream_delete.
473 * ui-out.h (make_cleanup_ui_out_stream_delete): Declare.
475 Sat Dec 11 00:12:41 1999 Andrew Cagney <cagney@b1.cygnus.com>
477 * breakpoint.c (breakpoint_1): Clone breakpoint_1 creating UI
480 Mon Dec 6 20:31:28 1999 Andrew Cagney <cagney@b1.cygnus.com>
482 * gdbarch.sh: Replace field init_p with invalid_p.
483 (TARGET_BFD_VMA_BIT): New architecture vector method. Defaults to
484 architecture bits_per_address.
485 * gdbarch.h, gdbarch.c: Update.
486 * defs.h (TARGET_BFD_VMA_BIT): Provide default of TARGET_PTR_BIT
487 for non- multi-arch case.
489 * gdbtypes.h (builtin_type_bfd_vma, builtin_type_ptr,
490 builtin_type_CORE_ADDR): New GDB specific address types.
491 * gdbtypes.c (_initialize_gdbtypes, build_gdbtypes): Initialize
494 Wed Dec 8 17:48:56 1999 Andrew Cagney <cagney@b1.cygnus.com>
496 * config/sparc/nm-nbsd.h (FETCH_INFERIOR_REGISTERS): Delete
497 definition. Already defined in config/nm-nbsd.h. Include the
498 more explicit config/nm-nbsd.h.
500 * config/sparc/nbsd.mt (TDEPFILES): Move solib.o from here.
501 * config/sparc/nbsd.mh (NATDEPFILES): To here.
502 * config/xm-nbsd.h: #include <sys/param.h> to get definition of
503 NGROUPS needed by <limits.h> and missing on some systems.
504 * config/nm-nbsd.h: Only macro's that match NetBSD definitions
505 with what is expected by solib.c when not SVR4_SHARED_LIBS.
507 * configure.host: Add patterns for sparc-*-netbsdaout* and
509 * config/sparc/nm-nbsdelf.h: New file.
510 * config/sparc/nbsdelf.mh: New file.
512 Wed Dec 8 19:56:48 1999 Andrew Cagney <cagney@b1.cygnus.com>
514 * frame.h, blockframe.c: Rename default_frame_chain_valid to
515 file_frame_chain_valid. Rename alternate_frame_chain_valid to
516 func_frame_chain_valid.
518 * config/sparc/tm-sparclite.h, config/mips/tm-mipsv4.h,
519 config/m88k/tm-delta88v4.h, config/m68k/tm-m68kv4.h,
520 config/m68k/tm-monitor.h, config/i386/tm-i386nw.h,
521 config/i386/tm-i386v4.h, config/h8300/tm-h8300.h: Update.
522 * mips-tdep.c (mips_gdbarch_init): Update.
524 Wed Dec 8 19:12:17 1999 Andrew Cagney <cagney@b1.cygnus.com>
526 * blockframe.c (generic_file_frame_chain_valid): Rename
527 generic_file_frame_chain_valid.
529 * config/fr30/tm-fr30.h, config/m32r/tm-m32r.h,
530 config/mn10200/tm-mn10200.h, config/mn10300/tm-mn10300.h,
531 config/sh/tm-sh.h, config/v850/tm-v850.h, config/mcore/tm-mcore.h:
534 * blockframe.c (generic_func_frame_chain_valid): New function.
535 Implement dummy-frame equivalent of function based frame chain
537 * frame.h (generic_func_frame_chain_valid): Declare.
539 Wed Dec 8 16:26:27 1999 Andrew Cagney <cagney@b1.cygnus.com>
541 * blockframe.c (alternate_frame_chain_valid,
542 default_frame_chain_valid): Swap implementations. The change Mon
543 Nov 30 11:18:48 1998 Andrew Cagney <cagney@chook> which converted
544 several macros to functions was backwards.
546 * mips-tdep.c (mips_gdbarch_init): Update. Call
547 alternate_frame_chain_valid and not default_frame_chain_valid.
549 Wed Dec 8 15:29:48 1999 Andrew Cagney <cagney@b1.cygnus.com>
551 * infptrace.c: Simplify handling of <sys/wait.h>. Always include
552 "wait.h" from the ../include/wait.h directory. #include
553 <sys/wait.h> was added as part of Mon Nov 29 12:14:10 1999 Andrew
554 Cagney <cagney@b1.cygnus.com> but the ChangeLog was omitted.
556 1999-12-07 Jim Blandy <jimb@cygnus.com>
558 Add support for SSE registers in core files.
559 * corelow.c (get_core_register_section): New function.
560 (get_core_registers): Fetch the new ".reg-xfp" sections,
561 in addition to the traditional ".reg" and ".reg2" sections.
562 Check for per-thread variants of all three. Use
563 get_core_register_section, instead of writing it out over and over
565 * i386-linux-nat.c (i386_linux_fetch_core_registers): New function.
566 (i386_linux_nat_core_fns): New core_fns structure. We do our own
567 core handling now, instead of using the generic code in core-regset.c.
568 (_initialize_i386_linux_nat): New function, needed to register
569 i386_linux_nat_core_fns.
570 * config/i386/linux.mh (NATDEPFILES): Remove core-regset.o;
571 i386-linux-nat.c has its own sniffer now.
572 * gdbcore.h: (struct core_fns): Doc fix.
574 * i386v-nat.c (i386_float_info): Definition is #if 0'd; delete it
575 altogether. This should use the function i387-tdep.c.
577 Patch from Mark Kettenis <kettenis@gnu.org>:
579 * config/i386/tm-i386.h (FLOAT_INFO): New define.
580 * i387-tdep.c (print_i387_value, print_i387_ext,
581 print_i387_status_word, print_i387_control_word, i387_float_info):
582 New functions, used to implement generic `info float' command.
584 1999-12-06 Christopher Faylor <cgf@cygnus.com>
586 * dcache.c (set_dcache_state): New function.
587 * dcache.h: Declare set_dcache_state().
589 Sat Dec 4 15:17:44 1999 Andrew Cagney <cagney@b1.cygnus.com>
591 * remote.c (build_remote_packet_sizes): Reduce the default packet
592 size of 400 bytes by one to 399. Stops GDB trashing stubs that
593 append a trailing NUL to an already full buffer.
595 Sat Dec 4 01:16:47 1999 Andrew Cagney <cagney@b1.cygnus.com>
597 * tracepoint.c (remote_get_noisy_reply): Add parameter sizeof_buf.
598 (finish_tfind_command): Add parameter sizeof_msg.
600 * remote.c (remote_threads_info): Move assignment operator to
601 outside of function call.
602 (remote_send): Add parameter sizeof_buf.
603 (getpkt): Add parameter sizeof_buf. Call read_frame passing in
606 * remote.h (getpkt): Update.
608 * tracepoint.c (remote_set_transparent_ranges,
609 remote_get_noisy_reply, trace_start_command, trace_stop_command,
610 trace_status_command, finish_tfind_command, trace_find_pc_command,
611 trace_find_tracepoint_command, trace_find_line_command,
612 trace_find_range_command, trace_find_outside_command): Update.
614 * remote.c (set_thread, remote_thread_alive,
615 remote_get_threadinfo, remote_get_threadlist,
616 remote_current_thread, remote_threads_info,
617 extended_remote_restart, get_offsets, remote_open_1,
618 remote_async_open_1, remote_wait, remote_async_wait,
619 remote_fetch_registers, check_binary_download, remote_write_bytes,
620 remote_read_bytes, remote_send, remote_detach,
621 remote_async_detach, remote_fetch_registers,
622 store_register_using_P, store_register_using_P,
623 remote_fetch_registers, remote_store_registers, putpkt_binary,
624 remote_insert_breakpoint, remote_remove_breakpoint,
625 compare_sections_command, remote_rcmd, packet_command,
626 remote_info_process, remote_query, remote_insert_watchpoint,
627 remote_search, remote_remove_watchpoint,
628 remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Update.
630 Fri Dec 3 17:38:06 1999 Andrew Cagney <cagney@b1.cygnus.com>
632 * (read_frame): Add sizeof_buf parameter. Don't allow repeat when
633 first character. Always leave space at the end of the buffer.
634 Return size of packet or -1.
635 (getpkt): Update. Pass in PBUFSIZ.
637 1999-12-02 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
639 * breakpoint.c (print_it_typical): Print reason for stopping in
642 Thu Dec 2 17:14:53 1999 Andrew Cagney <cagney@b1.cygnus.com>
644 * ser-pipe.c: Include <string.h> for memset().
646 1999-12-01 Jim Blandy <jimb@cygnus.com>
648 * gdbtypes.c (builtin_type_v4si, builtin_type_v8qi,
649 builtin_type_v4hi, builtin_type_v2si): New SIMD types.
650 (build_gdbtypes): Initialize them.
651 (_initialize_gdbtypes): Gdbarch_swap them.
652 * gdbtypes.h (builtin_type_v4si, builtin_type_v8qi,
653 builtin_type_v4hi, builtin_type_v2si): Declare them.
655 * findvar.c (read_register_bytes, write_register_bytes): Correctly
656 determine how the region the caller is writing overlaps with each
659 * value.h (struct value): Doc fixes.
661 * valops.c (value_assign): Clarify error message.
663 1999-12-01 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
665 * stack.c (return_command_wrapper): New function, to export
668 1999-12-01 Christopher Faylor <cgf@cygnus.com>
670 * config/i386/tm-cygwin.h: Change tm-i386.h include back to tm-i386v.h.
672 1999-12-01 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
674 * inf-loop.c (inferior_event_handler): In case of
675 INF_EXEC_CONTINUE, don't do all the regular continuations, but
676 just the intermediate ones.
678 * infcmd.c (step_once): Add the continuation to the
679 intermediate_continuation list instead of the regular continuation
682 * utils.c (add_intermediate_continuation): New function, to add
683 continuations to the intermedite_continuation list.
684 (do_all_intermediate_continuations): New function, do all the
685 continuations in the intermediate list.
686 (discard_all_intermediate_continuations): New function, discard
687 all the continuations in the intermediate list.
688 (intermediate_continuation): New global list for use by step_1().
690 * defs.h: Export intermediate_continuation,
691 add_intermediate_continuation, do_all_intermediate_continuations,
692 discard_all_intermediate_continuations.
694 1999-11-30 Christopher Faylor <cgf@cygnus.com>
696 * win32-nat.c (mappings): Reorganize slightly for new uniform i386
697 register configuration.
698 (do_child_fetch_inferior_registers): Handle special case floating point
700 (handle_output_debug_string): Handle cygwin-specific signals broadcast
702 (handle_exceptions): Add code to properly allow continuation after a
704 (child_continue): Accept propagated "continue_status" which controls
705 how the inferior should be continued.
706 (get_child_debug_event): New function.
707 (child_wait): Use above function to handle debug events.
708 (child_create_inferior): Add more intelligent method for running the
709 inferior to the appropriate point before handing it off to the rest of
711 (child_stop): Specifically send a CTRL-C to the debugged process.
712 (child_kill_inferior): Set global continue status here to cause
713 inferior to run to completion.
714 (child_resume): Eliminate code which attempts to decide how to continue
715 the inferior. This is now handled by child_continue.
716 * config/i386/tm-cygwin.h: Gut and reorganize for consistency with new
719 Patch from Egor Duda (deo@logos-m.ru)
720 * win32-nat.c (psapi_get_dll_name): New function.
721 (handle_load_dll): Correctly load DLL symbol tables after attaching to
724 1999-11-30 Michael Snyder <msnyder@cleaver.cygnus.com>
726 * infrun.c (handle_inferior_pid): revert 11-29 change: resuming
727 a thread other than the current thread with a signal. Apparently
728 target_resume with a specific pid, a specific signal, and no step
729 means to continue ALL threads but to only send the signal to one
730 (and not, as I had assumed, to continue only the specified thread).
731 * i386-linux-nat.c (fill_gregset): guard against invalid input.
733 1999-11-30 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
735 * infcmd.c (step_once): New function. Used to do just one step
737 (step_1_continuation): New function. Figure out if we need to step
738 again before returning control to the user.
739 (step_1): If we are in asynchronous mode, don't do the for loop,
740 but rather delegate to continuations the task of repeating the
743 * utils.c (do_all_continuations): Copy the continuation list aside
744 before working on it.
746 * target.h (enum inferior_event_type): Add new enum
749 * inf-loop.c (inferior_event_handler): Handle new case
752 * infrun.c (fetch_inferior_event): If we are in the middle of a
753 'step n' type command, don't say that the execution is complete,
754 but that it will have to continue.
756 1999-11-30 Kevin Buettner <kevinb@cygnus.com>
758 * utils.c (verror): Don't traverse va_list argument twice. Also,
759 removed extraneous va_end() call.
761 1999-11-29 Michael Snyder <msnyder@cleaver.cygnus.com>
763 * infrun.c (handle_inferior_pid): If a child thread stops on a
764 signal that we are ignoring, and GDB silently resumes the child,
765 resume ALL threads (not just the one that got the signal). All
766 threads are stopped, so all must be resumed.
767 (handle_inferior_event): on detecting a thread context switch,
768 swap infrun_state ONLY if both the old thread and the new one
769 are in the thread list. Otherwise state information will be lost!
770 Problem may arise with flaky back-ends.
772 1999-11-29 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
774 * infrun.c (print_stop_reason): Don't print end of stepping reason
775 if we are in the middle of a multistep command (same condition as
778 * breakpoint.c (bpstat_stop_status): Don't decrease hit_count
779 in case of a wp that has not changed.
781 Mon Nov 29 12:14:10 1999 Andrew Cagney <cagney@b1.cygnus.com>
783 * gdbtypes.c (init_simd_type): Make static.
785 * configure.in (AC_CHECK_HEADERS): Check for <sys/ioctl.h>.
786 * configure, config.h: Re-generate.
787 * inflow.c: Include <sys/ioctl.h>
789 * i386b-nat.c: Include "gdbcore.h".
790 * fork-child.c: Include "command.h".
792 * remote.c (remote_cisco_section_offsets,
793 remote_start_remote_dummy, store_register_using_P,
794 remote_info_process, remote_cisco_open, remote_cisco_close,
795 readsocket, readtty, minitelnet, remote_cisco_wait,
796 init_remote_async_ops, init_extended_async_remote_ops,
797 set_remote_cmd), infrun.c (default_skip_permanent_breakpoint): Use
798 ISO-C syntax for function definition.
800 Mon Nov 29 11:28:21 1999 Andrew Cagney <cagney@b1.cygnus.com>
802 * stabsread.c: Revert 1999-11-09 Jim Blandy
803 <jimb@zwingli.cygnus.com> and 1999-11-08 Jim Blandy
804 <jimb@cygnus.com>. Broken on non-Linux targets.
806 1999-11-26 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
808 * symfile.c (show_load_progress): Add total sent so far to the
809 information passsed to the hook users.
810 (generic_load): Collect total sent so far and pass that to the
813 * defs.h (show_load_progress): Update.
815 1999-11-25 Nick Clifton <nickc@cygnus.com>
817 * coffread.c (coff_symfile_read): Treat "epoc-pe" targets as "pe"
819 * dbxread.c (dbx_read_symfile): Treat "epoc-pe" targets as "pe"
822 Wed Nov 24 17:07:28 1999 Andrew Cagney <cagney@b1.cygnus.com>
824 * Makefile.in (init.c): Add SUBDIR_INIT_FILES so that sub
825 directories can hook in extra init files.
827 Wed Nov 24 11:41:01 1999 Andrew Cagney <cagney@b1.cygnus.com>
829 * ui-out.h (field_string_ftype, ui_out_field_string): Make string
831 * cli-out.c (cli_field_string): Update.
832 * ui-out.c (uo_field_string, ui_out_field_string,
833 default_field_string): Update.
835 1999-11-23 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
837 * defs.h (show_load_progress): Export.
839 * symfile.c (show_load_progress): New hook for download.
840 (generic_load): Collect total size of executable to load.
841 Call progress hook when downloading.
842 Add output for ui case.
843 (print_transfer_performance): Add output for ui case.
845 Thu Nov 18 11:54:24 1999 Andrew Cagney <cagney@b1.cygnus.com>
847 * arc-tdep.c (codestream_fill): Rewrite byte swap code using
848 function extract_unsigned_integer.
850 Wed Nov 17 17:01:06 1999 Andrew Cagney <cagney@b1.cygnus.com>
852 * arm-xdep.c: #include "arm-opcode.h" -> "opcode/arm.h".
854 1999-11-22 Jim Blandy <jimb@cygnus.com>
856 * Makefile.in (i386-tdep.o): Update list of dependencies.
858 1999-11-22 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
860 * stack.c (print_frame_info_base): Adjust output for stepi/nexti case.
862 1999-11-22 Jim Blandy <jimb@cygnus.com>
864 * config/i386/tm-i386v.h (NUM_REGS, REGISTER_NAMES,
865 REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE,
866 REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE,
867 MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE): Deleted. All
868 of these should inherit identical or compatible values from
869 tm-i386.h, as long as you don't define HAVE_SSE_REGS or
870 HAVE_I387_REGS, which are new anyway.
872 Mon Nov 22 21:39:27 1999 Andrew Cagney <cagney@b1.cygnus.com>
874 * target.c (do_target_signal_to_host): New function. Indicate of
875 the conversion was successful to the caller via an additional
877 (target_signal_to_host_p): New function. Return non-zero if the
878 GDB signal exists on the host system.
879 (target_signal_to_host): Rewrite. Use do_target_signal_to_host.
880 * target.h (target_signal_to_host_p): Add declaration. Document
881 target_singal vs host signal vs target OS signal confusion.
883 From 1999-11-08 Jimmy Guo <guo@cup.hp.com>:
884 * hppah-nat.c (require_notification_of_events): Start by ignoring
885 all signals and then adding back in ones we're interested in.
887 Thu Nov 18 18:12:48 1999 Andrew Cagney <cagney@b1.cygnus.com>
889 * jv-typeprint.c (java_type_print_base), kod-cisco.c
890 (cisco_kod_open), kod.c (kod_set_os), xcoffread.c
891 (process_linenos), symfile.c (add_symbol_file_command),
892 remote-rdi.c (arm_rdi_open, rdilogfile_command), main.c
893 (captured_main), go32-nat.c (go32_create_inferior), exec.c
894 (exec_file_attach), corefile.c (core_file_command,
895 reopen_exec_file): Replace strdup with xstrdup.
897 * varobj.c (varobj_gen_name, c_name_of_child, c_value_of_variable,
898 cplus_value_of_variable): Replace strdup with xstrdup.
899 * ui-out.c (ui_out_table_begin): Ditto.
901 Mon Nov 22 12:02:47 1999 Andrew Cagney <cagney@b1.cygnus.com>
903 * bcache.c (print_bcache_statistics): Fix printf_filtered
905 (print_percentage): Make function void.
907 1999-11-21 Jim Blandy <jimb@cygnus.com>
909 Make the bcache hash table grow.
910 * bcache.h (BCACHE_NUM_BUCKETS): Delete definition.
911 (struct bcache): Add new element: num_buckets. Make bucket be a
912 pointer to an array, not an array.
913 (free_bcache): New extern declaration.
914 * bcache.c (CHAIN_LENGTH_THRESHOLD): New constant.
915 (expand_hash_table): New function.
916 (bcache): Grow the hash table if the average chain length reaches
917 CHAIN_LENGTH_THRESHOLD.
918 (free_bcache): New function.
919 (print_bcache_statistics): Don't assume that the number of buckets
920 is constant any more.
921 (BSTRING_SIZE): Moved down to just above 'bcache' function, where
923 * objfiles.c (free_objfile): Call free_bcache, instead of just
924 freeing the bcache's obstack directly.
925 * symfile.c (reread_symbols): Same.
927 1999-11-20 Jim Blandy <jimb@cygnus.com>
929 * bcache.c, bcache.h: Rewritten. New version imposes less memory
930 overhead, and has a more effective hash function, so it's probably
933 * config/nm-linux.h: No need to check whether __STDC__ is
934 #defined --- GDB requires ANSI C now.
936 * config/i386/nm-linux.h (linuxthreads_pid_to_str,
937 linuxthreads_prepare_to_proceed): Delete declarations --- they're
938 provided by config/nm-linux.h now.
940 1999-11-19 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
942 * top.c (print_command_lines): Remove unused var.
944 1999-11-19 Jim Kingdon <kingdon@redhat.com>
946 Patch applied by Jim Blandy <jimb@cygnus.com>:
948 Enable threads for all linux architectures:
949 * config/nm-linux.h: New file.
950 config/alpha/nm-linux.h, config/i386/nm-linux.h,
951 config/m68k/nm-linux.h, config/sparc/nm-linux.h: Use it.
952 * config/tm-linux.h: New file.
953 * config/i386/tm-linux.h, config/m68k/tm-linux.h,
954 config/sparc/tm-linux.h, config/alpha/tm-alphalinux.h: Use it.
955 * config/m68k/linux.mh, config/sparc/linux.mh,
956 config/alpha/alpha-linux.mh: Add linux-thread.o.
958 1999-11-18 Tom Tromey <tromey@cygnus.com>
960 * tracepoint.h (get_tracepoint_by_number): Updated declaration.
961 * tracepoint.c (trace_pass_command): Better error message. Fixed
962 logic when `all' not specified.
963 (get_tracepoint_by_number): Added `optional_p' argument. Fixed
966 Wed Nov 17 17:40:30 1999 Andrew Cagney <cagney@b1.cygnus.com>
968 * findvar.c (SWAP_FLOATING): Delete macro. Unused.
970 1999-11-16 Mark Salter <msalter@cygnus.com>
972 * monitor.c (monitor_supply_register): Initialize value to zero.
974 1999-11-15 Eli Zaretskii <eliz@is.elta.co.il>
976 (Patches applied by Jim Blandy <jimb@zwingli.cygnus.com>)
978 Change DJGPP target use the common register layout in
979 config/i386/tm-i386.h.
980 * config/i386/tm-go32.h: #include "i386/tm-i386.h", not
982 (HAVE_I387_REGS): Define.
983 (HAVE_SSE_REGS): Undefine.
984 (NUM_FREGS, NUM_REGS, REGISTER_NAMES, FP_REGNUM, SP_REGNUM,
985 PS_REGNUM, PC_REGNUM, FP0_REGNUM, FPC_REGNUM, FPCWD_REGNUM,
986 FPSWD_REGNUM, FPTWD_REGNUM, FPIPO_REGNUM, FPIPS_REGNUM,
987 FPOOS_REGNUM, FPOPS_REGNUM, REGISTER_BYTES, REGISTER_BYTE,
988 REGBYTE_0, REGBYTE_10 REGBYTE_16, REGBYTE_24, REGBYTE_29,
989 REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE,
990 MAX_REGISTER_VIRTUAL_SIZE, REGISTER_CONVERTIBLE): Definitions
992 (i387_to_double, double_to_i387): Declarations deleted.
993 (REGISTER_CONVERT_TO_VIRTUAL, REGISTER_CONVERT_TO_RAW,
994 REGISTER_VIRTUAL_TYPE): Use definitions from
995 config/i386/tm-i386.h, unless LD_I387 is #defined.
997 * go32-nat.c (go32_fetch_registers, store_register)
998 (go32_create_inferior, init_go32_ops): Replace fatal with
1000 (sig_map): Map exception 7 to TARGET_SIGNAL_EMT.
1002 * utils.c (notice_quit): Doc fixes.
1004 1999-11-15 Kevin Buettner <kevinb@cygnus.com>
1006 * gdbserver/server.h (initialize_low): Declare this target
1008 * gdbserver/server.c (main): Call initialize_low.
1009 * gdbserver/low-hppabsd.c, gdbserver/low-linux.c,
1010 gdbserver/low-sim.c, gdbserver/low-sparc.c, gdbserver/low-sun3.c
1011 (initialize_low): Renamed from initialize. Also removed
1012 initialization of inferior_pid.
1013 (have_inferior_p): Removed.
1014 * gdbserver/low-lynx.c (initialize_low): New function.
1016 1999-11-12 Fernando Nasser <fnasser@totem.to.cygnus.com>
1018 * remote-rdi.c: Fix indentation accordingly to GNU standards.
1020 1999-11-11 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1022 * breakpoint.h: Export {watch, awatch, rwatch}_command_wrapper().
1024 * breakpoint.c (print_it_typical): Add output for bp_watchpoint,
1025 bp_hardware_watchpoint, read_watchpoint, access_watchpoint cases.
1026 (watchpoint_check): Add output for when the watchpoint goes out of
1028 (mention): Add output for bp_watchpoint, bp_hardware_watchpoint,
1029 read_watchpoint, access_watchpointcases. Move end of list to end
1031 ({watch, awatch, rwatch}_command_wrapper): New functions, to
1032 export {watch, awatch, rwatch}_command().
1034 Thu Oct 28 00:28:51 1999 Andrew Cagney <cagney@b1.cygnus.com>
1036 * d10v-tdep.c (d10v_gdbarch_init): Make the d10v:ts3 the default.
1038 Tue Oct 26 09:57:29 1999 Andrew Cagney <cagney@b1.cygnus.com>
1040 * gdbarch.sh: Re-sync with Cagney's earlier const change.
1042 Sun Oct 24 20:07:31 1999 Andrew Cagney <cagney@b1.cygnus.com>
1044 * d10v-tdep.c (struct gdbarch_tdep): Replace nr_a_regs,
1045 imap0_regnum, nr_imap_regs, dmap0_regnum, with dmap_register and
1047 (R0_REGNUM, LR_REGNUM, PSW_REGNUM, NR_IMAP_REGS, NR_A_REGS):
1049 (TS2_NR_A_REGS, TS2_NR_IMAP_REGS, TS3_NR_IMAP_REGS,
1050 TS3_NR_A_REGS): Delete.
1051 (d10v_ts2_dmap_register, d10v_ts3_dmap_register,
1052 d10v_ts2_imap_register, d10v_ts3_imap_register): New functions.
1053 (d10v_dmap_register, d10v_imap_register,
1054 d10v_ts2_register_sim_regno, d10v_ts3_register_sim_regno,
1056 (remote_d10v_translate_xfer_address): Rewrite. Use
1057 sim_d10v_translate_addr to translate addresses.
1058 (d10v_gdbarch_init): Initialize tdep members dmap_register and
1061 Sun Oct 24 00:12:44 1999 Andrew Cagney <cagney@b1.cygnus.com>
1063 * d10v-tdep.c (struct gdbarch_tdep): Declare.
1064 (NR_IMAP_REGS, NR_DMAP_REGS, A0_REGNUM, NR_A_REGS): Redefine using
1065 value in gdbarch_tdep.
1066 (d10v_dmap_register, d10v_imap_register): Ditto.
1067 (d10v_ts2_register_name, d10v_ts2_register_sim_regno): Rename
1068 d10v_register_name and d10v_register_sim_regno
1069 (enum ts3_regnums, d10v_ts3_register_name,
1070 d10v_ts3_register_sim_regno, d10v_register_sim_regno): New.
1071 (d10v_gdbarch_init): Configure registers and G packet according to
1072 d10v/ts2 and d10v/ts3.
1074 Sat Oct 23 21:28:02 1999 Andrew Cagney <cagney@b1.cygnus.com>
1076 * config/d10v/tm-d10v.h (IMAP0_REGNUM, IMAP1_REGNUM, DMAP_REGNUM):
1078 (R0_REGNUM, LR_REGNUM, PSW_REGNUM, A0_REGNUM): Move from here.
1079 * d10v-tdep.c: To here.
1081 * d10v-tdep.c: (NR_DMAP_REGS, NR_IMAP_REGS, NR_A_REGS): Define.
1082 (d10v_dmap_register, d10v_imap_register): New functions.
1083 (remote_d10v_translate_xfer_address): Make static.
1084 (d10v_register_virtual_size): Use TYPE_LENGTH of
1085 REGISTER_VIRTUAL_TYPE.
1086 (d10v_register_byte, do_d10v_pop_frame,
1087 remote_d10v_translate_xfer_address, show_regs,
1088 d10v_register_raw_size): Ditto.
1089 (d10v_register_virtual_type): Ditto. Use explicitly sized builtin
1092 Sat Oct 23 19:08:39 1999 Andrew Cagney <cagney@b1.cygnus.com>
1094 * d10v-tdep.c: Include "sim-d10v.h".
1095 (enum ts2_regnums): Declare.
1096 (d10v_register_sim_regno): New function.
1098 * config/d10v/tm-d10v.h: Delete pre multi-arch code.
1099 (REGISTER_SIM_REGNO): Define.
1100 (d10v_register_sim_regno): Declare.
1102 Sat Oct 23 16:39:34 1999 Andrew Cagney <cagney@b1.cygnus.com>
1104 * gdbarch.c (initialize_current_architecture): Make ``choice''
1107 Wed Nov 10 16:10:22 1999 Jeffrey A Law (law@cygnus.com)
1109 * hppa-tdep.c (hppa_fix_call_dummy): Fix typo in error message.
1111 Wed Nov 10 16:47:06 1999 Andrew Cagney <cagney@b1.cygnus.com>
1113 * utils.c (error_last_message): Use gdb_file_xstrdup.
1115 * defs.h (verror, internal_verror): Declare.
1117 * utils.c (verror, internal_error): New functions.
1118 (error, internal_error): Use verror / internal_verror.
1119 (error_stream): Use gdb_file_xstrdup. Correctly handle %s in
1121 (error_init): Use mem_fileopen.
1123 * corefile.c (memory_error): Use mem_fileopen instead of
1124 tui_sfileopen. Don't call error_begin.
1125 * varobj.c (c_value_of_variable): Use mem_fileopen () and
1126 gdb_file_xstrdup() instead of strdup and tui_sfileopen.
1127 * remote-sim.c (gdb_os_error): Rewrite using verror. Don't call
1130 Wed Nov 10 14:21:43 1999 Andrew Cagney <cagney@b1.cygnus.com>
1132 * defs.h (gdb_file_xstrdup): New function.
1133 * utils.c (gdb_file_xstrdup, do_gdb_file_xstrdup): Implement.
1134 * ui-out.c (ui_out_stream_new): Simplify, XMALLOC doesn't return
1135 if malloc failed. Use mem_fileopen and gdb_file_xstrdup.
1137 1999-11-09 Stan Shebs <shebs@andros.cygnus.com>
1139 * exec.c (exec_file_attach), irix5-nat.c, osfsolib.c, solib.c
1140 (info_sharedlibrary_command), pa64solib.c
1141 (pa64_sharedlibrary_info_command), somsolib.c
1142 (som_sharedlibrary_info_command): Replace "exec file" with
1143 "executable file" in messages.
1145 1999-11-09 Jim Blandy <jimb@zwingli.cygnus.com>
1147 Finish the job attempted by the previous change.
1148 * stabsread.c (read_range_type): Make n2 and n3 LONGEST. Adjust
1149 the various tests that check for maximum values, bit counts, etc.
1150 In the long run, it might have been simpler just to give GDB bignums.
1152 Tue Nov 9 18:34:13 1999 Andrew Cagney <cagney@amy.cygnus.com>
1154 * defs.h (gdb_file_put): Add parameter write.
1155 (gdb_file_put_method_ftype): New typedef.
1156 * utils.c (gdb_file_put, mem_file_put, tui_file_put,
1157 null_file_put): Update.
1159 * utils.c (struct gdb_file): Add field magic.
1160 (gdb_file_new): Initialize.
1161 (gdb_file_data): Verify.
1163 * utils.c (mem_file_fputs): Delete. Replaced by.
1164 (mem_file_write): New function. Rewrite mem_file.
1165 (mem_file_new): Update.
1167 Tue Nov 9 17:51:12 1999 Andrew Cagney <cagney@b1.cygnus.com>
1169 * remote-sim.c (gdb_os_write_stdout): Use gdb_file_write.
1170 (gdb_os_flush_stdout): Flush gdb_stdtarg instead of gdb_stdout.
1172 Tue Nov 9 15:33:43 1999 Andrew Cagney <cagney@b1.cygnus.com>
1174 * Makefile.in (procfs.o): Don't compile with -Werror for moment.
1175 * sol-thread.c (info_cb): Move assignments to outside of if
1177 (info_cb): Use paddr when printing addresses.
1179 1999-11-08 Jim Blandy <jimb@cygnus.com>
1181 * defs.h (ULONGEST_MAX, LONGEST_MAX): New definitions.
1182 * stabsread.c (read_huge_number): Parse and return LONGEST values.
1184 1999-11-08 Mark Salter <msalter@cygnus.com>
1186 * utils.c (floatformat_to_doublest): Fix conversion of denormals.
1188 1999-11-08 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1190 * breakpoint.c (hbreak_command_wrapper): New function, to export
1192 (thbreak_command_wrapper): New function, to export thbreak_command.
1194 * symtab.c (rbreak_command_wrapper): New function, to export
1197 * breakpoint.h (hbreak_command_wrapper, thbreak_command_wrapper,
1198 rbreak_command_wrapper): Export.
1200 Mon Nov 8 20:14:13 1999 Andrew Cagney <cagney@amy.cygnus.com>
1202 * remote.c (get_memory_read_packet_size): For moment limit read
1204 (putpkt_binary): Remove check on packet size. Allocate ``cnt +
1205 6'' characters for output buffer.
1206 (get_memory_packet_size): When packet size is ``fixed'' and the
1207 size is zero, return MAX_REMOTE_PACKET_SIZE. Check that packets
1208 are at least MIN_REMOTE_PACKET_SIZE.
1209 (set_memory_packet_size): Print usage when ``args'' is NULL.
1211 Mon Nov 8 18:18:07 1999 Andrew Cagney <cagney@b1.cygnus.com>
1213 * defs.h, utils.c (gdb_file_deallocate): Delete.
1214 * varobj.c (varobj_get_type, c_value_of_variable): Use
1215 make_cleanup_gdb_file_delete.
1216 * ui-out.c (ui_out_stream_delete): Use gdb_file_delete.
1217 * corefile.c (memory_error): Use make_cleanup_gdb_file_delete.
1219 * defs.h, utils.c (gdb_file_init_astring): Delete.
1221 * defs.h, utils.c (tui_file_get_strbuf): Rename
1222 gdb_file_get_strbuf.
1223 (tui_file_adjust_strbuf): Rename gdb_file_adjust_strbuf.
1224 * utils.c (error_stream, error_last_message): Update.
1225 * varobj.c (varobj_get_type, c_value_of_variable): Update.
1226 * ui-out.c (ui_out_field_stream): Update.
1228 Mon Nov 8 16:28:00 1999 Andrew Cagney <cagney@b1.cygnus.com>
1230 * defs.h, utils.c (gdb_fclose): Delete.
1231 * defs.h (make_cleanup_gdb_file): Declare.
1232 * utils.c (make_cleanup_gdb_file_delete, do_gdb_file_delete): New
1235 * symmisc.c (maintenance_print_symbols,
1236 maintenance_print_psymbols, maintenance_print_msymbols): Use
1237 make_cleanup_gdb_file_delete.
1238 * serial.c (do_serial_close): Use gdb_file_delete.
1240 Mon Nov 8 14:16:32 1999 Andrew Cagney <cagney@b1.cygnus.com>
1242 * defs.h (gdb_file_write_ftype, set_gdb_file_write,
1243 gdb_file_write): Declare.
1245 * utils.c (struct gdb_file): Add to_write member.
1246 (gdb_file_write, set_gdb_file_write): New functions.
1247 (gdb_file_new): Initialize the write method.
1248 (null_file_write): New function.
1249 (null_file_fputs, null_file_write): ``write'' calls ``fputs'' and
1250 ``fputs'' calls ``write'' when the other is implemented.
1251 (stdio_file_new): Initialize write method.
1252 (stdio_file_write): New function.
1254 * utils.c (putchar_unfiltered, fputc_unfiltered): Use
1257 Thu Nov 4 11:59:24 1999 Andrew Cagney <cagney@b1.cygnus.com>
1259 * remote.c (get_memory_packet_size, set_memory_packet_size,
1260 build_memory_packet_size): New functions. Set / compute / update
1261 the size of a memory read / write packet.
1262 (set_memory_read_packet_size, set_memory_write_packet_size): New
1263 functions. Verify changes to the memory read / write packet size.
1264 (prefered_memory_write_packet_size,
1265 current_memory_write_packet_size, prefered_memory_read_packet_size,
1266 current_memory_read_packet_size): New variables.
1267 (get_memory_read_packet_size, get_memory_write_packet_size): New
1268 functions. Determine the current memory read/write packet size. A
1269 function is needed as ``current_register_packet_size'', a variable
1270 is used in the calculation.
1271 (register_remote_packet_sizes, build_remote_packet_sizes):
1272 Initialize packet sizes according the current architecture.
1273 (remote_fetch_registers, remote_write_bytes, remote_read_bytes,
1274 build_remote_gdbarch_data): Update.
1275 (_initialize_remote): Add the commands ``set remote
1276 memory-read-packet-size'' and ``set remote
1277 memory-write-packet-size''. Deprecate ``set remotepacketsize''.
1279 Sun Nov 7 18:09:54 1999 Andrew Cagney <cagney@b1.cygnus.com>
1281 * target.h, target.c (target_load): Replace macro with a function.
1283 * config/i960/tm-nindy960.h (ADDITIONAL_OPTION_HANDLER): Rewrite
1284 replacing SET_TOP_LEVEL with catch_command_errors.
1285 (nindy_open): Add extern declaration.
1287 * top.h (top_level_val, SET_TOP_LEVEL): Delete.
1288 * defs.h (catch_command_errors_ftype, catch_command_errors): Add
1290 * top.c (struct captured_command_args): Declare.
1291 (do_captured_command, catch_command_errors): New functions. Call
1292 the command function via catch_errors.
1293 (catch_errors): Add more comments.
1295 * main.c (struct captured_main_args): Define.
1296 (captured_main): New. Rewrite main. Replace SET_TOP_LEVEL with
1297 calls to catch_command_errors. Delete calls to do_cleanups which
1298 are now handled by catch_errors. Call the command loop via
1299 captured_command_loop and catch_errors.
1300 (main): Move code body to captured_main. Call captured_main via
1302 (captured_command_loop): New function. Wrap call to command_loop.
1304 1999-11-05 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1306 * procfs.c (unconditionally_kill_inferior) (init_procinfo)
1307 (create_procinfo) (procfs_exit_handler) (proc_set_exec_trap)
1308 (do_attach) (do_detach) (procfs_wait) (set_proc_siginfo)
1309 (procfs_resume) (info_proc_mappings)
1310 (modify_run_on_last_close_flag) (procfs_lwp_creation_handler)
1311 (procfs_thread_alive): Remove unused variables, conditionalize
1312 vars declarations to eliminate compiler warnings.
1314 1999-11-05 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1316 * infcmd.c (print_return_value): Add output for UI.
1318 Fri Nov 5 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>
1320 * inferior.h (CALL_DUMMY_ADDRESS, CALL_DUMMY_START_OFFSET,
1321 CALL_DUMMY_BREAKPOINT_OFFSET, CALL_DUMMY_LENGTH,
1322 CALL_DUMMY_STACK_ADJUST, CALL_DUMMY_WORDS,
1323 SIZEOF_CALL_DUMMY_WORDS, PUSH_DUMMY_FRAME, FIX_CALL_DUMMY,
1324 STORE_STRUCT_RETURN), d10v-tdep.c (print_insn), d30v-tdep.c
1325 (print_insn), target.h (SOFTWARE_SINGLE_STEP): Call internal_error
1328 * utils.c (stdio_file_delete, stdio_file_flush, stdio_file_fputs,
1329 stdio_file_isatty, tui_file_delete, tui_file_isatty,
1330 tui_file_rewind, tui_file_put, gdb_file_init_astring,
1331 gdb_file_get_strbuf, gdb_file_adjust_strbuf): Call internal_error
1334 1999-11-04 Kevin Buettner <kevinb@cygnus.com>
1336 * remote.c (build_remote_gdbarch_data): Set remote_address_size...
1337 (_initialize_remote) ...but don't set it here. Also, tie
1338 remote_address_size to the target architecture via call to
1339 register_gdbarch_swap().
1341 1999-11-04 Jeff Holcomb <jeffh@cygnus.com>
1343 * remote-rdp.c (send_rdp): Fix typo.
1345 1999-11-04 Michael Snyder <msnyder@cleaver.cygnus.com>
1347 * breakpoint.c (commands_command): remove unprotected ref to
1348 args pointer (which may be null).
1350 1999-11-04 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1352 * infcmd.c (print_return_value): New function. Print return value
1353 from finish command.
1354 (finish_command_continuation): Call print_return_value().
1355 (finish_command): Ditto.
1357 1999-11-04 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1359 * breakpoint.c (print_it_typical): Print reason for stopping in
1362 1999-11-04 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1364 * infrun.c (handle_inferior_event): Add calls to print_stop_reason()
1365 for end of stepping range cases.
1366 (print_stop_reason): Add output for END_STEPPING_RANGE, EXITED,
1367 SIGNAL_EXITED, SIGNAL_RECEIVED cases.
1369 * breakpoint.c (print_it_typical): Add printing of stop reason for
1372 Thu Nov 4 17:46:36 1999 Andrew Cagney <cagney@b1.cygnus.com>
1374 * event-loop.c (gdb_do_one_event): Delete SET_TOP_LEVEL call.
1375 Move error code to start_event_loop.
1376 (start_event_loop): Call gdb_do_one_event via catch_errors.
1377 Handle caught errors.
1379 Thu Nov 4 17:36:27 1999 Andrew Cagney <cagney@b1.cygnus.com>
1381 * breakpoint.c (get_number): Delete static declaration.
1383 1999-11-03 Michael Snyder <msnyder@cleaver.cygnus.com>
1385 * breakpoint.c (map_breakpoint_numbers): use a match count
1388 1999-11-03 Nick Clifton <nickc@cygnus.com>
1390 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT): Change to
1393 1999-11-02 Michael Snyder <msnyder@cleaver.cygnus.com>
1395 * target.h (target_new_objfile) replace macro with function pointer
1396 hook. Any module needing notification of new objfiles may claim
1397 this hook. Multiple notification clients must cooperate by saving
1398 the previous pointer (if any) and calling it.
1399 * sol-thread.c (_initialize_sol_thread): point new_objfile hook at
1400 sol_thread_new_objfile. Save old pointer if any.
1401 (sol_thread_new_objfile): call old owner of event hook if any.
1402 * hpux-thread.c (_initialize_hpux_thread, hpux_thread_new_objfile):
1404 * linux-thread.c (_initialize_linux_thread, linux_thread_new_objfile):
1406 symfile.c (symbol_file_add, clear_symtab_users) call the new
1407 function pointer hook, instead of the macro.
1408 * config/sparc/nm-sun4sol2.h: remove define of target_new_objfile.
1409 * config/pa/nm-hppah.h: ditto.
1410 * config/i386/nm-i386sol2.h: ditto.
1411 * config/i386/nm-linux.h: ditto.
1413 1999-11-02 Tom Tromey <tromey@cygnus.com>
1415 * NEWS: Mention breakpoint ranges.
1417 1999-11-02 Fernando Nasser <fnasser@totem.to.cygnus.com>
1419 * rdi-share/devsw.c (openLogFile): Change a call to setlinebuf()
1420 to an equivalent call to setvbuf() to prevent an unresolved
1421 reference when building on cygwin.
1423 1999-11-02 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1425 * infrun.c (inferior_stop_reason): New enum, explicitly name the
1426 resons for which the inferior stops.
1427 (handle_inferior_event): Case TARGET_WAITKIND_EXITED: replace
1428 printf's with call to print_stop_reason(). Case
1429 TARGET_WAITKIND_SIGNALLED: Same. When stopped by random signal:
1431 (print_stop_reason): New static function. Print relevant messages
1434 1999-11-02 Fernando Nasser <fnasser@totem.to.cygnus.com>
1436 * rdi-share/Makefile.in: Rename dependency from bytesex.o to
1439 1999-11-02 Fernando Nasser <fnasser@totem.to.cygnus.com>
1441 * kod.c: Remove prototype for show_kod() which is no longer used.
1443 1999-11-01 Michael Snyder <msnyder@cygnus.com>
1444 Tom Tromey <tromey@cygnus.com>
1446 * tracepoint.h (get_tracepoint_by_number): Updated declaration.
1447 * tracepoint.c (get_tracepoint_by_number): Added `multi_p'
1448 argument. Now uses get_number_or_range and get_number.
1449 (trace_pass_command): Allow a tracepoint range.
1450 * breakpoint.h (get_number, get_number_or_range): Declare.
1451 * breakpoint.c (get_number_trailer): New function.
1452 (get_number): Rewrote to use get_number_trailer.
1453 (get_number_or_range): New function.
1454 (condition_command): Check `get_number' return value.
1455 (commands_command): Likewise.
1456 (ignore_command): Likewise.
1457 (map_breakpoint_numbers): Use get_number_or_range.
1459 1999-11-01 Fernando Nasser <fnasser@totem.to.cygnus.com>
1461 * remote-rdi.c (_initialize_remote_rdi): Make log commands
1462 subcommands of maintenance. Remove improper identation from
1463 command documentation.
1465 1999-11-01 Fernando Nasser <fnasser@totem.to.cygnus.com>
1467 From Grant Edwards <grante@visi.com>:
1468 * rdi-share/etherdrv.c (fetch_ports): Print out additional TCP/IP
1469 port information in ethernet driver if the DEBUG flag is set.
1470 * rdi-share/hostchan.c (Adp_addToQueue): Changed #if statement in
1471 hostchan.c to avoid compiler complaint when DEBUG macro was
1473 * rdi-share/unixcomm.c (Unix_ReadSerial): Print system error code
1474 if read() system call fails.
1476 1999-11-01 Fernando Nasser <fnasser@totem.to.cygnus.com>
1478 * rdi-share/bytesex.h: Deleted. Conflicts with a system header file
1479 on some systems like Linux Red Hat 5.2.
1480 * rdi-share/angel_bytesex.h: New file. Replaces the above.
1481 * rdi-share/bytesex.c: Deleted. Name changed to match the header
1482 mentioned above (this is the implementation file).
1483 * rdi-share/angel_bytesex.c: New file. Replaces the above.
1484 * rdi-share/Makefile.am: Reflect above changes.
1485 * rdi-share/Makefile.in: Reflect above changes.
1487 1999-11-01 Jimmy Guo <guo@cup.hp.com>
1489 * annotate.c (breakpoints_changed, annotate_ignore_count_change,
1490 annotate_stopped): Provide annotation for breakpoint ignore_count
1491 changes but only provide once at annotate_stopped time for
1492 sucessive ignore_count triggered breakpoint changes, to make GUIs
1494 * annotate.h (annotate_ignore_count_change): Declare.
1495 * breakpoint.c (bpstat_stop_status): Call
1496 annotate_ignore_count_change when ignore_count changes.
1498 1999-11-01 Fernando Nasser <fnasser@totem.to.cygnus.com>
1500 From Grant Edwards <grante@visi.com>:
1501 * rdi-share/ardi.c (HandleStoppedMessage): Changed code that
1502 handles the "stop" message so that unrecognized errors are
1503 returned as "Error" rather than "NoError". The old code resulted
1504 in some error conditions not being reported to the user.
1506 1999-11-01 Fernando Nasser <fnasser@totem.to.cygnus.com>
1508 From Grant Edwards <grante@visi.com>:
1509 * remote-rdi.c (arm_rdi_open): Added a call to Adp_CloseDevice()
1510 before attempting to open a connection. This allows the user to
1511 issue the "target rdi" command multiple times (in case the user
1512 needs to change options or re-initialize the link).
1514 1999-11-01 Fernando Nasser <fnasser@totem.to.cygnus.com>
1516 From Grant Edwards <grante@visi.com>:
1517 * rdi-share/endian.h: Deleted. Name clash with
1518 /usr/include/endian.h. This was causing the wrong byte order to
1519 be used by htons() in the RDI Ethernet driver.
1520 * rdi-share/angel_endian.h: New file. Replaces the above.
1521 * rdi-share/ardi.c: Replace include to reflect the above change.
1522 * rdi-share/etherdrv.c: Ditto.
1523 * rdi-share/hsys.c: Ditto.
1524 * rdi-share/msgbuild.c: Ditto.
1525 * rdi-share/params.c: Ditto.
1526 * rdi-share/rx.c: Ditto.
1527 * rdi-share/tx.c: Ditto.
1528 * rdi-share/Makefile.am: Reflect above changes.
1529 * rdi-share/Makefile.in: Reflect above changes.
1531 1999-11-01 Fernando Nasser <fnasser@totem.to.cygnus.com>
1533 From Grant Edwards <grante@visi.com>:
1534 * remote-rdi.c (_initialize_remote_rdi): Added command
1535 rdilogenable. Allows the user to log ADP packets that are
1536 exchanged between gdb and the target. Both the raw packets are
1537 shown and some minimal decoding is attempted. Default state is
1539 (_initialize_remote_rdi): Added command rdilogfile. Allows the
1540 user to specify the filename to which the ADP packet log is to be
1541 written. Default state is "rdi.log".
1542 (rdilogenable_command): New function. Related to rdilogenable.
1543 (rdilogfile_command): New function. Related to rdilogfile.
1544 * rdi-share/devsw.c (openLogFile, closeLogFile,
1545 DevSW_SetLogEnable, DevSW_SetLogfile, dumpPacket): New
1546 functions. Implement logging.
1547 (DevSW_Read): Log if requested.
1548 (DevSW_Write): Log if requested.
1549 * rdi-share/devsw.h: Add prototypes for DevSW_SetLogfile and
1551 * rdi-share/hostchan.c (Adp_SetLogEnable, Adp_SetLogfile): New
1552 functions. Related to rdilogenable and rdilogfile.
1553 * rdi-share/hostchan.h: Add prototypes for the above functions.
1555 1999-11-01 Fernando Nasser <fnasser@totem.to.cygnus.com>
1557 From Grant Edwards <grante@visi.com>:
1558 * remote-rdi.c (arm_rdi_open): Added code to split the arguments
1559 to the 'target rdi' command at the first space. The first word is
1560 passed to Adp_OpenDevice as the device name, the tail is passed as
1561 the "arguments" parameter. This allows user specified baud rates
1562 -- among other things that still need to be documented [e.g. (gdb)
1563 target rdi /dev/ttyS1 19200]. NB: With very limited testing, the
1564 ARM Embedded-ICE seems to run at 19.2K (though it is reported to
1565 be unreliable above 9600), and the EPI Jeeni seems to run at
1568 1999-11-01 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1570 * stack.c (print_frame_info_base): Do not change printing of stack
1571 frame info if not running with our interpreter.
1573 1999-11-01 Fernando Nasser <fnasser@totem.to.cygnus.com>
1575 From Grant Edwards <grante@visi.com>:
1576 * remote-rdi.c (_initialize_remote_rdi): Added the boolean
1577 set/show variable rdiromatzero. Should be set to true if the
1578 target has ROM at address 0. If true, then gdb will not tell the
1579 target to trap fetches to interrupt vectors (which are located at
1580 address 0). Using the Angel monitor, attempting to set
1581 breakpoints in ROM is an error. Using JTAG debugging of the
1582 ARM7TDMI, attempting to set more than two breakpoints in ROM is an
1583 error. Default state is false (vectors will be trapped) -- used to
1586 1999-11-01 Fernando Nasser <fnasser@totem.to.cygnus.com>
1588 From Grant Edwards <grante@visi.com>:
1589 * remote-rdi.c (_initialize_remote_rdi): Added the boolean
1590 set/show variable rdiheartbeat. This enables or disables ADP
1591 link-check "heartbeat" packets sent by the host to the target.
1592 Heartbeat packets can cause both the ARM Embedded-ICE and the EPI
1593 Jeeni to malfunction: If a heartbeat packet is received by the
1594 target while it is sending a packet, that packet will be aborted,
1595 and the ADP protocol engine then gets very confused. Default state
1596 is off -- used to hardwired on.
1598 1999-10-29 Kevin Buettner <kevinb@cygnus.com>
1600 * i386-linux-nat.c (dummy_sse_values): Also define for systems
1601 without PTRACE_GETXFPREGS.
1603 1999-10-29 Jim Blandy <jimb@zwingli.cygnus.com>
1605 Hardware watchpoint fix from Eli Zaretskii <eliz@gnu.org>:
1607 * breakpoint.c (insert_breakpoints): Fetch the value of the
1608 expression we need to watch. If it's a lazy memory lvalue, then
1609 we need to fetch it now, before we start the inferior again.
1610 (insert_breakpoints, remove_breakpoint, bpstat_stop_status,
1611 can_use_hardware_watchpoint): Only those values representing
1612 memory we actually fetched need to be watched.
1614 1999-10-29 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1616 * breakpoint.h (bpstat_print): Return 'enum print_stop_action',
1619 1999-10-29 Jim Blandy <jimb@zwingli.cygnus.com>
1621 * acconfig.h: Fix entries for HAVE_STRUCT_SAVE_STATE_T,
1622 HAVE_STRUCT_MEMBER_SS_WIDE, and HAVE_PTRACE_GETXFPREGS.
1623 * config.h.in: Regenerated.
1625 1999-10-28 Jim Blandy <jimb@zwingli.cygnus.com>
1627 Fixes for warnings from Andreas Jaeger <aj@suse.de>.
1628 * linux-thread.c (linuxthreads_sig_restart,
1629 linuxthreads_sig_cancel, linuxthreads_sig_debug): Add missing
1630 initializers to avoid gcc warnings.
1631 (resume_thread): Add braces as recommended by gcc -Wparentheses.
1632 (stop_thread): Likewise.
1633 (linuxthreads_wait): Likewise.
1634 (linuxthreads_find_trap): Likewise.
1636 1999-10-28 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1638 * infcmd.c: Fix typo.
1640 1999-10-28 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1642 * stack.c (select_frame_command_wrapper): Fix typo.
1644 * infcmd.c (interrupt_target_command_wrapper): Wrapper to allow use of
1645 static interrupt_target_command outside of file.
1647 * stack.c (select_frame_command_wrapper): Wrapper to allow use of
1648 static select_frame_command outside of file.
1650 1999-10-28 Jim Blandy <jimb@cygnus.com>
1652 * gdbtypes.c (init_simd_type): The upper bound to
1653 create_range_type is inclusive, not exclusive.
1655 Add preliminary support for the Pentium-III's Streaming SIMD
1656 Extensions --- specifically, the ability to read the XMM
1658 * Configure.in: Check for PTRACE_GETXFPREGS, and #define
1659 HAVE_PTRACE_GETXFPREGS if we have it.
1660 * acconfig.h: Add entry for HAVE_PTRACE_GETXFPREGS.
1661 * configure, config.in: Regenerated.
1662 * config/i386/tm-linux.h (HAVE_SSE_REGS): #define, iff the
1663 configure script #defined HAVE_PTRACE_GETXFPREGS.
1664 (REGISTER_VIRTUAL_TYPE): Provide the proper types for the pointer
1665 registers and the SSE registers.
1666 * i386-linux-nat.c (GETREGS_SUPPLIES, GETFPREGS_SUPPLIES,
1667 GETXFPREGS_SUPPLIES): New macros.
1668 (have_ptrace_getxfpregs): New variable.
1669 (FPREGSET_T_FPREG_ADDR): Renamed from FPREGSET_T_FPREG_OFFSET.
1670 (supply_fpregset, convert_to_fpregset): Callers changed.
1671 (supply_xfpregset, convert_to_xfpregset, fetch_xfpregs,
1672 store_xfpregs, dummy_sse_values): New functions.
1673 (fetch_inferior_registers, store_inferior_registers): Use the
1674 *_SUPPLIES macros to decide how to fetch a given register. Use
1675 {fetch,store}_xfpregs and dummy_sse_values to provide access to
1676 the SSE registers, on systems where they are present.
1678 1999-10-28 Kevin Buettner <kevinb@cygnus.com>
1680 * gdbserver/gdbreplay.c (config.h, errno.h): Include.
1681 (perror_with_name): Don't declare sys_nerr, sys_errlist, or errno
1682 when STDC_HEADERS is defined.
1683 * gdbserver/utils.c (STDC_HEADERS): Likewise.
1685 * gdbserver/low-hppabsd.c, gdbserver/low-linux.c,
1686 gdbserver/low-lynx.c, gdbserver/low-sim.c, gdbserver/low-sparc.c,
1687 gdbserver/low-sun3.c (my_registers): Declare.
1688 (registers): Changed from array type to pointer type in order
1689 to match declaration in inferior.h in main gdb sources.
1690 * gdbserver/server.h (registers): Likewise.
1691 * gdbserver/remote-utils.c (outreg): Removed declaration of
1694 * gdbserver/low-linux.c (fetch_register): Changed PTRACE_PEEKUSR to
1695 PTRACE_PEEKUSER. [Note the missing 'E'.]
1696 (store_inferior_registers): Likewise for PTRACE_POKEUSER.
1698 * gdbserver/low-linux.c (sys/ptrace.h): Move include to
1699 avoid conflict with #defines coming from <sys/user.h>.
1700 (sys/reg.h): Only include when HAVE_SYS_REG_H is defined.
1701 (PTRACE_XFER_TYPE): Provide a default type in case
1702 the target doesn't define it.
1703 (fetch_register, read_inferior_memory, write_inferior_memory):
1704 Use PTRACE_XFER_TYPE instead of int for ptrace() transfers.
1705 (I386_GNULINUX_TARGET): Use #ifdef with this symbol instead
1706 of assuming it's an x86 target when it's not a m68k target.
1707 (i386_register_raw_size, i386_register_byte): Define these arrays
1708 to match other changes that've been occuring to the x86 target
1709 in the main gdb sources.
1710 (initialize_arch): New (static) function for doing target arch
1711 specific initializations.
1713 * gdbserver/server.h (MAXBUFBYTES, PBUFSIZ): New defines
1714 [actually stolen from remote.c].
1715 * gdbserver/remote-utils.c (putpkt): Use PBUFSIZ to make
1716 sure that buffer is big enough.
1717 * gdbserver/server.c (main): Ditto.
1719 * gdbserver/remote-utils.c (outreg): Allow register numbers
1721 (prepare_resume_reply): Provide alternate mechanism,
1722 GDBSERVER_RESUME_REGS, for defining list of registers to send
1724 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Swapped order of
1725 INCLUDE_CFLAGS and BFD_CFLAGS to ensure that gdb's config.h
1726 gets found before bfd's config.h. Also added -DGDBSERVER
1728 (INCLUDE_CFLAGS): Added -I.. .
1730 1999-10-27 Nick Clifton <nickc@cygnus.com>
1732 * arm-tdep.c (THUMB_BE_BREAKPOINT): Change to 0xbebe.
1733 (THUMB_LE_BREAKPOINT): Change to 0xbebe.
1735 1999-10-25 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1737 * stack.c (print_frame_info_base): Don't print the arguments
1739 * stack.c (print_frame_info_base): When setting source to 0, save
1740 and restore old value. Do this only if source is greater than
1743 Mon Oct 25 18:22:06 1999 Andrew Cagney <cagney@b1.cygnus.com>
1745 * remote.c: Document future of compare_sections_command.
1746 (remote_insert_breakpoint, remote_remove_breakpoint,
1747 remote_insert_watchpoint, remote_insert_watchpoint,
1748 remote_remove_watchpoint, remote_insert_hw_breakpoint,
1749 remote_remove_hw_breakpoint): Use alloca instead of GCC's dynamic
1752 Mon Oct 25 18:08:31 1999 Andrew Cagney <cagney@b1.cygnus.com>
1754 * gdbarch.h (REGISTER_GDBARCH_SWAP): Define.
1755 * gdbarch.sh: Update.
1757 Sat Oct 23 16:39:34 1999 Andrew Cagney <cagney@b1.cygnus.com>
1759 * gdbarch.c (initialize_current_architecture): Make ``choice''
1762 1999-10-22 Tom Tromey <tromey@cygnus.com>
1764 * gdbarch.sh: Updated for gdbarch.[ch] changes.
1765 * top.c (gdb_init): Call initialize_current_architecture.
1766 * gdbarch.h (initialize_current_architecture): Declare.
1767 * gdbarch.c (initialize_current_architecture): New function.
1769 1999-10-22 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1771 * stack.c (print_frame_info_base): Check for value of source
1772 parameter equal to 2, and print address anyway. Set source to 0
1773 later, to avoid printing file & line info again.
1775 1999-10-21 Michael Snyder <msnyder@cleaver.cygnus.com>
1777 * utils.c (chars_per_line): fix typo in comment.
1779 1999-10-21 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1781 * breakpoint.h (bp_print_how): New enum, used for deciding how to
1782 print bpstat information when we stop, instead of having 3
1783 different functions.
1784 (struct bpstat): Change print_it field to be an enum instead of a
1787 * breakpoint.c (print_it_typical): New name for print_it_normal().
1788 (print_bp_stop_message): New function. High level routine for
1789 printing of why we stopped.
1790 (bpstat_print): Call print_bp_stop_message instead of using the
1791 print_it function pointer.
1792 (print_it_done, print_it_noop): Delete these functions.
1794 1999-10-21 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1796 * breakpoint.c (print_it_normal): Reorganize into a switch
1799 1999-10-21 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1801 * Makefile.in (event-top.o): Add dependency on target.h.
1802 * event-top.c: Make dependency on target.h explicit.
1804 * breakpoint.c (bpstat_print): Clean up logic. Remove recursion.
1805 (catch_exec_command_1): Surround with appropriate ifdef's,
1806 to avoid compiler warnings.
1807 (catch_fork_command_1): Ditto.
1809 1999-10-20 Jim Blandy <jimb@cygnus.com>
1811 * Makefile.in (dwarf2read.o): Note that this depends on bfd/elf-bfd.h.
1812 (elf_bfd_h): New variable.
1814 1999-10-19 Jim Blandy <jimb@cygnus.com>
1816 * config/i386/tm-i386.h (REGISTER_NAMES): Change names of FPU
1817 instruction and operand pointer registers to improve consistency,
1818 following J. T. Conklin's suggestions.
1820 1999-10-18 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1822 * stack.c (print_frame_info_base): Add printing of list
1825 * breakpoint.h: Change return type of field print_it of struct
1826 bpstats to enumeration print_stop_action.
1827 Define new enumeration print_stop_action.
1829 * breakpoint.c (print_it_normal): Change return type to
1830 enumeration type print_stop_action. Handle bp_shlib_event here
1831 instead of in normal_stop().
1832 (bpstat_print): Change return type to enumeration type
1834 (print_it_done): Ditto.
1835 (print_it_noop): Ditto.
1837 * infrun.c (is_internal_shlib_eventpoint): Delete this function.
1838 (stopped_for_internal_shlib_event): Delete.
1839 (normal_stop): Move logic to handle bp_shlib_event from here to
1840 print_it_normal(). Use switch to handle return value from
1843 Mon Oct 18 17:32:51 1999 Andrew Cagney <cagney@b1.cygnus.com>
1845 * symfile.c (generic_load): Rewrite. Make the size of each
1846 chunk/block write a run-time option. Check for quit_flag.
1847 Use target_write_memory_partial for downloads.
1849 1999-10-18 Jim Blandy <jimb@cygnus.com>
1851 Change Linux x86 register support to use the new tm-i386.h layout.
1852 * config/i386/tm-linux.h (HAVE_I387_REGS): #define this, so we get
1853 the full set of FP register definitions from tm-i386.h.
1854 (REGISTER_RAW_SIZE, REGISTER_NAMES, REGISTER_BYTES, REGISTER_BYTE,
1855 MAX_REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE, NUM_REGS,
1856 NUM_FREGS): Remove #undefs and subsequent redefinitions: we're
1857 using the values from tm-i386.h now.
1858 (FPSTART_REGNUM, FPCONTROL_REGNUM, FPSTATUS_REGNUM, FPTAG_REGNUM,
1859 FPDATA_REGNUM, FPEND_REGNUM, FPENV_BYTES, FPREG_RAW_SIZE,
1860 FPREG_BYTES): Deleted.
1861 (TARGET_LONG_DOUBLE_BIT): Deleted.
1862 (REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
1863 REGISTER_CONVERT_TO_RAW): Redefine these only if LD_I387 is #defined.
1864 * i386-linux-nat.c (convert_to_gregset, convert_to_fpregset,
1865 FPREGSET_T_FPREG_OFFSET): New functions and macros.
1866 (supply_gregset, fill_gregset, supply_fpregset,
1867 fill_fpregset, fetch_fpregs, store_fpregs, fetch_regs,
1868 store_regs, fetch_inferior_registers, store_inferior_registers):
1869 Adjusted to use new macros from tm-i386.h.
1871 * config/i386/tm-i386.h: Provide a decent x86 FPU description here,
1872 so that the various i386 targets can share more FPU handling code.
1873 (NUM_GREGS): New macro.
1874 (NUM_SSE_REGS): New macro, dependent on HAVE_SSE_REGS
1875 (NUM_FREGS): Depend on HAVE_I387_REGS.
1876 (NUM_REGS, REGISTER_BYTES): Define in terms of NUM_GREGS,
1877 NUM_FREGS, and NUM_SSE_REGS.
1878 (MAX_NUM_REGS): New macro.
1879 (REGISTER_NAMES): Expand name list with FPU control registers and
1881 (FP7_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM, FCS_REGNUM,
1882 FCOFF_REGNUM, FDS_REGNUM, FDOFF_REGNUM, FOP_REGNUM,
1883 FIRST_FPU_CTRL_REGNUM, LAST_FPU_CTRL_REGNUM): New macros, more
1884 fully describing the FPU register set.
1885 (XMM0_REGNUM, XMM7_REGNUM, MXCSR_REGNUM): New macros, describing
1886 the SSE register set.
1887 (IS_FP_REGNUM, IS_SSE_REGNUM, FPU_REG_RAW_SIZE, SIZEOF_GREGS,
1888 SIZEOF_FPU_REGS, SIZEOF_FPU_CTRL_REGS, SIZEOF_SSE_REGS): New
1890 (REGISTER_BYTE, REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Turn
1891 these into tables, since the register sizes are pretty irregular.
1892 (i386_register_byte, i386_register_raw_size,
1893 i386_register_virtual_size): New extern declarations.
1894 (TARGET_LONG_DOUBLE_BIT): Define.
1895 (MAX_REGISTER_RAW_SIZE): Bump to 16, for the SSE registers.
1896 (REGISTER_VIRTUAL_TYPE, REGISTER_CONVERTIBLE,
1897 REGISTER_CONVERT_TO_VIRTUAL, REGISTER_CONVERT_TO_RAW): New macros
1898 for handling floating-point registers.
1899 (i387_to_double, double_to_i387): New extern declarations.
1900 * i386-tdep.c (i386_register_byte, i386_register_raw_size,
1901 i386_register_virtual_size): New arrays.
1902 (_initialize_i386_tdep): Initialize i386_register_byte and
1903 i386_register_virtual_size.
1905 * i386-tdep.c (_initialize_i386_tdep): Move new_cmd to a block
1906 created specially for its use.
1908 Mon Oct 18 23:36:58 1999 Andrew Cagney <cagney@b1.cygnus.com>
1910 * symfile.c (generic_load): Cleanup the validate code - remove
1911 #ifdef, use paddr to print address.
1912 (validate_download): Static, replace VALIDATE_DOWNLOAD
1914 * symfile.c (generic_load): Use strtoul to scan the optional load
1915 offset. Allocate a filename of the correct size.
1917 Mon Oct 18 17:32:51 1999 Andrew Cagney <cagney@b1.cygnus.com>
1919 * symfile.c (generic_load): Don't filter output. Use
1920 print_transfer_performance for summary. Use paddr for addresses.
1921 (print_transfer_performance): New function. Includes write count.
1922 (report_transfer_performance): Call
1923 print_transfer_performance. Deprecate.
1925 * defs.h (print_transfer_performance): Add declaration.
1926 (generic_load): Move declaration to here.
1927 * symfile.h (generic_load): From here.
1929 Mon Oct 18 16:29:52 1999 Andrew Cagney <cagney@amy.cygnus.com>
1931 * remote.c (remote_write_bytes): Re-write. Transfer a single
1932 packet and then return the that packets byte size.
1934 Sun Oct 17 15:09:00 1999 Andrew Cagney <cagney@b1.cygnus.com>
1936 * remote.c (remote_console_output): Flush gdb_stdtarg after
1937 processing an ``O'' packet.
1938 * remote.h (remote_console_output): Strip PARAMS.
1940 Sun Oct 17 15:12:33 1999 Andrew Cagney <cagney@b1.cygnus.com>
1942 * target.c (target_xfer_memory_partial): New function. Simple
1943 implementation of partial memory reads.
1944 (target_read_memory_partial): New function. Replaces old
1945 target_read_memory_partial.
1946 (target_write_memory_partial): New function.
1949 * valprint.c (partial_memory_read): New function, based on old
1950 memory_read_partial. Implement partial memory reads the way that
1951 val_print_string likes.
1952 (val_print_string): Use partial_memory_read.
1954 Sun Oct 17 13:58:56 1999 Andrew Cagney <cagney@b1.cygnus.com>
1956 * defs.h (ui_load_progress_hook): Add declaration.
1957 * dsrec.c (ui_load_progress_hook): Delete extern declaration.
1959 * symfile.c (ui_load_progress_hook): Make first argument const.
1960 (generic_load): Don't cast the result of bfd_get_section_name.
1961 Replace ``sect'' with ``sect_name'', use consistently.
1963 1999-10-15 Jim Blandy <jimb@cygnus.com>
1965 Add beginnings of support for SIMD register types.
1966 * gdbtypes.c (init_simd_type): New function for building
1967 types for registers consisting of arrays of objects.
1968 (builtin_type_v4sf): New built-in type.
1969 (build_gdbtypes): Initialize it.
1970 (_initialize_gdbtypes): Arrange for gdbarch swapping.
1971 * gdbtypes.h (builtin_type_v4sf): Add external decl.
1973 Fri Oct 15 18:20:33 1999 Andrew Cagney <cagney@b1.cygnus.com>
1975 * remote-hms.c: Commented out H8 code.
1977 Fri Oct 15 17:46:39 1999 Andrew Cagney <cagney@b1.cygnus.com>
1979 * dcache.c (dcache_p): Rename variable remote_dcache. Make
1981 (_initialize_dcache): Fix description of ``set remotecache''.
1982 Cache is OFF by default.
1984 1999-10-13 Jim Blandy <jimb@cygnus.com>
1986 * valops.c (value_push): Don't forget to initialize container_len.
1988 Wed Oct 13 17:58:20 1999 Andrew Cagney <cagney@b1.cygnus.com>
1990 * utils.c (tui_file_flush): Don't call flush_hook. Don't try to
1992 * gdb-events.sh: Update
1993 * top.c (flush_hook): Delete.
1995 1999-10-13 Kevin Buettner <kevinb@cygnus.com>
1997 * mem-break.c (memory_insert_breakpoint,
1998 memory_remove_breakpoint): Added missing return statements.
2000 Wed Oct 13 20:53:42 1999 Andrew Cagney <cagney@b1.cygnus.com>
2002 * utils.c (mem_fileopen, mem_file_delete, mem_file_new,
2003 mem_file_rewind, mem_file_put, mem_file_fputs): New functions.
2004 * defs.h (mem_fileopen): Declare.
2006 1999-10-13 Kevin Buettner <kevinb@cygnus.com>
2008 * mem-break.c (default_memory_insert_breakpoint): Renamed from
2009 memory_insert_breakpoint.
2010 (default_memory_remove_breakpoint): Renamed from
2011 memory_remove_breakpoint.
2012 (memory_insert_breakpoint, memory_remove_breakpoint,
2013 MEMORY_INSERT_BREAKPOINT, MEMORY_REMOVE_BREAKPOINT): New
2015 * target.h (default_memory_remove_breakpoint,
2016 default_memory_insert_breakpoint): Added declarations.
2017 * gdbarch.sh (MEMORY_INSERT_BREAKPOINT, MEMORY_REMOVE_BREAKPOINT):
2019 * gdbarch.h, gdbarch.c (MEMORY_INSERT_BREAKPOINT,
2020 MEMORY_REMOVE_BREAKPOINT, gdbarch_memory_insert_breakpoint,
2021 gdbarch_memory_remove_breakpoint, set_gdbarch_memory_insert_breakpoint,
2022 set_gdbarch_memory_remove_breakpoint) : Generated from gdbarch.sh.
2024 Wed Oct 13 19:15:51 1999 Andrew Cagney <cagney@b1.cygnus.com>
2026 * defs.h: Remove PARAMS from all declarations. Re-indent. Clean
2027 up the gdb_file declarations.
2029 Tue Oct 12 12:19:07 1999 David Taylor <taylor@texas.cygnus.com>
2031 * i386-linux-nat.c (supply_fpregset, fill_fpregset): copy
2032 from/to start of fpregsetp not start of st_space as the first
2033 stuff we copy is the FP control registers not the actual FP values.
2035 1999-10-12 Fernando Nasser <fnasser@totem.to.cygnus.com>
2037 * eval.c (evaluate_subexp_standard): Fix gdb invocation of
2038 inferior C functions when debugging C++ code.
2039 * valops.c (find_overload_match): Ditto.
2040 * symtab.c (make_symbol_overload_list): Ditto.
2042 1999-10-11 Jim Blandy <jimb@zwingli.cygnus.com>
2044 * config/pa/tm-hppa.h (SYMBOLS_CAN_START_WITH_DOLLAR): It's not
2045 enough to #define this; you have to give it a non-zero value.
2047 1999-10-11 Jim Blandy <jimb@cygnus.com>
2049 Fix from Jim Kingdon <kingdon@redhat.com>, with tweaks to make it
2050 gdbarch- and bigendian-friendly:
2051 * valops.c (PARM_BOUNDARY): If not #defined, default to zero.
2052 (value_push): If PARM_BOUNDARY is not zero, align arguments to
2054 * config/i386/tm-i386.h: Define PARM_BOUNDARY.
2056 Mon Oct 11 14:23:55 1999 Fred Fish <fnf@cygnus.com>
2058 * config/mips/tm-irix3.h (PS_REGNUM): Don't undef if we aren't
2059 going to redefine it to something else.
2061 1999-10-11 Jason Merrill <jason@yorick.cygnus.com>
2063 * dwarfread.c (read_func_scope): Don't try to set main_func_*;
2064 we handle that in blockframe.c:inside_main_func.
2065 * dwarf2read.c (read_func_scope): Likewise.
2066 (dwarf2_add_field, dwarf2_add_member_fn): Get member function name
2067 directly, not from mangled name.
2068 (skip_member_fn_name): Lose.
2070 Mon Oct 11 12:24:52 1999 Andrew Cagney <cagney@b1.cygnus.com>
2072 * serial.h (enum serial_rc): Clarify SERIAL_TIMEOUT and
2073 restrictions on TIMEOUT in ASYNC mode.
2075 * serial.c (serial_readchar): Check for invalid timeout when in
2076 async mode. Disable test.
2078 Thu Oct 7 17:20:01 1999 Andrew Cagney <cagney@amy.cygnus.com>
2080 * monitor.c (monitor_printable_string): Add length argument. Don't
2081 return final string length.
2082 (monitor_printf_noecho, monitor_printf, monitor_expect): Update.
2083 (monitor_error): Pass real_len to monitor_printable_string.
2084 (monitor_error): Rewrite. Replace printf fmt string parameter with
2085 function name and message parameters.
2086 (monitor_read_memory_single, monitor_read_memory): Update.
2088 1999-10-07 Stan Shebs <shebs@andros.cygnus.com>
2090 * main.c (print_gdb_help): Fix bug reporting address.
2091 * gnu-regex.h, gnu-regex.c: Ditto.
2093 1999-10-07 Jim Blandy <jimb@zwingli.cygnus.com>
2095 * parse.c (SYMBOLS_CAN_START_WITH_DOLLAR): New macro,
2096 whose value can be overridden by target files.
2097 (write_dollar_variable): Don't check the symbol table for
2098 identifiers beginning with `$' unless
2099 SYMBOLS_CAN_START_WITH_DOLLAR is non-zero.
2100 * config/pa/tm-hppa.h (SYMBOLS_CAN_START_WITH_DOLLAR): Define.
2102 Remove all traces of the BINOP_SCOPE operator. It's never
2103 generated, and not implemented.
2104 * expression.h (enum exp_opcode): Delete BINOP_SCOPE.
2105 * c-lang.c (c_op_print_tab): Delete entry for BINOP_SCOPE.
2106 * eval.c (evaluate_subexp_standard): Doc fix.
2107 * expprint.c (op_name): Remove case for BINOP_SCOPE.
2108 (dump_subexp): Same.
2110 * dwarf2read.c (dwarf2_const_value): Treat DW_FORM_data1,
2111 DW_FORM_data2, DW_FORM_data4, and DW_FORM_data8 as signed values,
2112 since that's what read_var_value will do anyway.
2114 1999-10-07 Fred Fish <fnf@cygnus.com>
2116 * objfiles.h (struct objfile): Delete is_solib member, now handled
2117 by OBJF_SHARED bit in struct objfile's flags.
2118 * objfiles.c (objfile_purge_solibs): Check OBJF_SHARED bit in flags
2119 instead of old is_solib int member in objfile struct.
2121 * objfiles.c (allocate_objfile): Remove is_solib arg. Now passed
2122 as a bit in combined flags arg.
2123 * symfile.c (symbol_file_add): Ditto.
2124 * objfiles.h (allocate_objfile): Adjust prototype after removal
2126 * symtab.h (symbol_file_add): Ditto.
2128 * cxux-nat.c (add_shared_symbol_files): Remove zero passed to
2129 symbol_file_add in old is_solib arg, defaults to zero now in
2131 * irix5-nat.c (symbol_add_stub): Ditto.
2132 * remote-mm.c (mm_load): Ditto.
2133 * remote-udi.c (udi_load): Ditto.
2134 * remote-vx.c (vx_add_symbols): Ditto.
2135 * symfile.c (symbol_file_command): Ditto.
2136 (add_symbol_file_command): Ditto.
2138 * coff-solib.c (coff_solib_add): Call symbol_file_add with
2139 OBJF_SHARED in flags bit, rather than 1 in old is_solib
2141 * osfsolib.c (symbol_add_stub): Ditto.
2142 * pa64solib.c (pa64_solib_add_solib_objfile): Ditto.
2143 * solib.c (symbol_add_stub): Ditto.
2144 * somsolib.c (som_solib_add_solib_objfile): Ditto.
2145 * win32-nat.c (handle_load_dll): Ditto.
2147 * objfiles.c (allocate_objfile): Remove old args "mapped" and
2148 "user_loaded". Replaced with new arg "flags" containing specific
2149 If global var mapped_symbol_files is nonzero
2150 then set OBJF_MAPPED in flags arg. Check for OBJF_MAPPED bit in
2151 flags where we used to check mapped arg.
2152 Pass flags to open_mapped_file instead of mapped arg.
2153 Ensure that OBJF_MAPPED bit is reset in flags when the objfile
2154 is not mapped. Add passed flags bits to objfile's flags bits.
2155 (open_mapped_file): Replace "mapped" arg with new "flags" arg.
2156 Adjust prototype. Pass flags to open_existing_mapped_file.
2157 (open_existing_mapped_file): Replace "mapped" arg with new "flags".
2158 Check flags for OBJF_MAPPED.
2159 * objfiles.h (allocate_objfile): Adjust prototype.
2160 * rs6000-nat.c (add_vmap): Pass zero for combined flags, rather
2161 than separate zero ints for old "mapped" and "user_loaded" flags.
2162 * symfile.c (symbol_file_add): Pass allocate_objfile combined flags
2163 rather than individual mapped and user loaded bits.
2165 * symfile.c (symbol_file_add): Delete user_loaded arg.
2166 * symtab.h (symbol_file_add): Adjust prototype for deleted
2168 * objfiles.h (struct objfile): Delete user_loaded member.
2169 (OBJF_USERLOADED): New flag bit to replace user_loaded.
2171 * symfile.c (symbol_file_command): Add OBJF_USER_LOADED to flags
2172 passed to symbol_file_add. Delete previous passing of explicit 1
2174 (add_symbol_file_command): Ditto.
2176 * coff-solib.c (coff_solib_add): No longer pass zero for user loaded,
2177 now defaults to zero in flags.
2178 * cxux-nat.c (add_shared_symbol_files): Ditto.
2179 * irix5-nat.c (symbol_add_stub): Ditto.
2180 * osfsolib.c (symbol_add_stub): Ditto.
2181 * remote-mm.c (mm_load): Ditto.
2182 * pa64solib.c (pa64_solib_add_solib_objfile): Ditto.
2183 * remote-udi.c (udi_load): Ditto.
2184 * remote-vx.c (vx_add_symbols): Ditto.
2185 * solib.c (symbol_add_stub): Ditto.
2186 * somsolib.c (som_solib_add_solib_objfile): Ditto.
2187 * win32-nat.c (handle_load_dll): Ditto.
2189 Thu Oct 7 19:24:05 1999 Andrew Cagney <cagney@b1.cygnus.com>
2191 * Makefile.in (monitor.o): Allow monitor.o to be compiled with
2194 * monitor.c (monitor_debug_p): New variable. Replaces macro.
2195 (EXTRA_RDEBUG): Delete. Update all uses.
2196 (monitor_debug): New function. Replaces macro.
2197 (RDEBUG): Delete macro. Update all uses.
2198 debug output to gdb_stdlog and not the console.
2200 * monitor.c: Fix printf formating. Replace printf calls with
2203 1999-10-06 Stan Shebs <shebs@andros.cygnus.com>
2205 * MAINTAINERS: Switch ARM target maintenance from Elena
2206 Zannoni to Jim Ingham.
2208 1999-10-06 Frank Ch. Eigler <fche@cygnus.com>
2210 * remote.c (hexnumnstr): New function. Allow setting of width.
2211 (hexnumstr): Call the above.
2212 (remote_write_bytes): Fill in X-protocol address field more
2215 1999-10-06 Fred Fish <fnf@cygnus.com>
2217 * xcoffread.c (xcoff_symfile_offsets): Fix typo, addr->addrs.
2219 1999-10-06 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2221 * remote.c (handle_remote_sigint_twice): Make this signal be
2222 handled by inferior_event_handler, via the wrapper function.
2223 (async_remote_interrupt_twice): Make not static. Add debug print.
2224 * remote.h (async_remote_interrupt_twice): Export for use in
2227 * inf-loop.c (inferior_event_handler_wrapper): New function.
2228 (inferior_event_handler): Handle a request to quit and kill the
2231 * inf-loop.h (inferior_event_handler_wrapper): Export.
2233 1999-10-04 James Ingham <jingham@leda.cygnus.com>
2235 * remote-rdi.c (arm_rdi_open): If the angel_RDI_Open fails, close
2236 the serial port and raise an error. If you try to go on, you will
2237 stall forever down in the rdi-share code.
2239 1999-10-04 Fernando Nasser <fnasser@totem.to.cygnus.com>
2241 * printcmd.c (output_command): Makes sure result from the output
2242 command is printed before the next prompt.
2244 1999-10-04 Fernando Nasser <fnasser@totem.to.cygnus.com>
2246 * printcmd.c (print_formatted): Add missing stream parameter.
2247 (do_examine, print_command_1, output_command, do_one_display):
2248 Adjust call to print_formatted().
2250 1999-10-04 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2252 * infcmd.c: Remove include of event-loop.h.
2256 * infrun.c (fetch_inferior_event): Call inferior_event_handler
2257 when inferior stops, instead of doing work ourselves.
2258 (fetch_inferior_event): Use void* instead of gdb_client_data.
2259 Remove includes of event-top.h and event-loop.h. Add include of
2261 (complete_execution): Move from here.
2263 * inf-loop.c (complete_execution): To here.
2264 (inferior_event_handler): Handle inferior's execution completion
2266 * inf-loop.h: Add def of INF_LOOP_H.
2268 * event-top.h: Don't use gdb_client_data, use void*, to avoid
2269 dependency on event-loop.h.
2271 * remote.c (remote_async_resume): Set target_executing only after we
2272 actually register the inferior with the event loop.
2274 1999-10-04 Fernando Nasser <fnasser@totem.to.cygnus.com>
2276 * corefile.c (memory_error): Use error_stream() and eliminate call
2277 to return_to_top_level().
2279 1999-10-04 Fernando Nasser <fnasser@totem.to.cygnus.com>
2281 * utils.c (error): Save error message text (w/o new line).
2282 (error_last_message): New function. Returns the last message
2284 (error_init): New function. Initializes error handling machinery.
2285 (error_stream): New function. Allows the error message to be
2286 passed on a stream buffer.
2287 * defs.h: Add prototypes for error_stream() and
2288 error_last_message().
2289 * main.c (main): Add call to error_init().
2291 1999-10-04 Fernando Nasser <fnasser@totem.to.cygnus.com>
2293 * varobj.c (varobj_get_type): Call tui_sfileopen() instead of
2294 deprecated gdb_file_init_astream().
2295 (c_value_of_variable): Ditto.
2296 * ui-out.c (ui_out_stream_new): Ditto.
2298 1999-10-04 Fernando Nasser <fnasser@totem.to.cygnus.com>
2300 * utils.c (tui_sfileopen): New function. Replaces
2301 gdb_file_init_astring().
2302 * defs.h: Add prototype for the above.
2304 Mon Oct 4 19:25:55 1999 Andrew Cagney <cagney@b1.cygnus.com>
2306 * symfile.c (add_symbol_file_command): Fix -Wformat on query call.
2308 1999-10-01 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2310 * target.c (cleanup_target): Type of to_async param is now
2311 function with enum inferior_event_type param.
2313 * target.h (target_ops): Adjust to_async accordingly. Move enum
2314 inferior_event_type to this file. Don't have a typedef for
2315 inferior_event_type. Add more enumeration constants INF_QUIT_REQ,
2316 INF_EXEC_COMPLETE. Remove INF_SIGINT_FIRST, INF_SIGINT_SECOND.
2318 * inf-loop.c (inferior_event_handler): Change first param to tell
2319 the type of event we are dealing with. Deal with INF_ERROR and
2320 INF_REG_EVENT, for the moment.
2323 * inf-loop.h (inferior_event_handler): Adjust prototype. Remove
2324 enum inferior_event_type from here.
2326 * remote.c (remote_async_serial_handler): Pass INF_REG_EVENT to
2327 the client callback.
2328 (remote_async): Change callback's param type to inferior_event_type.
2329 (async_client_callback): Change type as above.
2331 1999-10-01 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2333 * event-top.c (stdin_event_handler): Delete fd parameter, use
2335 * event-top.h (stdin_event_handler): Delete fd parameter.
2337 * inf-loop.c (inferior_event_handler): Delete fd parameter. Use
2338 target_async() to unregister the inferior fd in case of errors.
2339 * inf-loop.h(inferior_event_handler): Delete fd parameter.
2341 * ser-unix.c (fd_event): Delete fd parameter. Use scb->fd,
2344 * remote.c (async_client_callback): Delete fd parameter.
2345 (remote_async_serial_handler): Ditto.
2346 (remote_async): Adjust to new type of callback function.
2348 * target.c (cleanup_target): Adjust parameters for to_async
2350 * target.h (*to_async): Delete fd parameter from cb function.
2352 * event-loop.h (handler_func): Delete fd parameter.
2353 * event-loop.c (handle_file_event): Delete fd param from call to
2354 proc. Do not include inferior.h.
2356 1999-10-01 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2358 * event-loop.c (inferior_event_handler,
2359 inferior_event_handler_wrapper): Move from here.
2360 * inf-loop.c: To here. New file.
2362 * event-loop.h (inferior_event_handler): Move from here.
2363 * inf-loop.h: To here. New file.
2365 * remote.c: Include inf-loop.h.
2366 (set_extende_protocol): Remove unused prototpye.
2368 * Makefile.in (SFILES): Add inf-loop.c.
2369 (inf_loop_h): Define.
2370 (COMMON_OBS): Add inf-loop.o.
2371 (inf-loop.o): Add rule.
2372 (remote.o): Add dependency on inf-loop.h.
2374 Fri Oct 1 19:59:31 1999 Andrew Cagney <cagney@b1.cygnus.com>
2376 * ser-unix.c: Add some notes on how the async code works.
2378 Fri Oct 1 01:45:32 1999 Jeffrey A Law (law@cygnus.com)
2380 * somread.c (som_symfile_offsets): Fix typo in last change.
2382 1999-09-30 Fred Fish <fnf@cygnus.com>
2384 * coff-solib.c (coff_solib_add): Adjust call to symbol_file_add.
2385 * cxux-nat.c (add_shared_symbol_files): Ditto.
2386 * irix5-nat.c (symbol_add_stub): Ditto.
2387 * osfsolib.c (symbol_add_stub): Ditto.
2388 * pa64solib.c (pa64_solib_add_solib_objfile): Ditto.
2389 * remote-mm.c (mm_load): Ditto.
2390 * remote-udi.c (udi_load): Ditto.
2391 * remote-vx.c (vx_add_symbols): Ditto.
2392 * solib.c (symbol_add_stub): Ditto.
2393 * somsolib.c (som_solib_add_solib_objfile): Ditto.
2394 * win32-nat.c (handle_load_dll): Ditto.
2396 * irix5-nat.c (symbol_add_stub): Add section_addrs, zero it.
2397 * cxux-nat.c (add_shared_symbol_files): Ditto.
2398 * osfsolib.c (symbol_add_stub): Ditto.
2399 * pa64solib.c (pa64_solib_add_solib_objfile): Ditto.
2400 * solib.c (symbol_add_stub): Ditto.
2401 * somsolib.c (som_solib_add_solib_objfile): Ditto.
2402 * symfile.c (symbol_file_command): Ditto.
2403 * win32-nat.c (handle_load_dll): Ditto.
2405 * irix5-nat.c (symbol_add_stub): Use section_addrs to pass text addr.
2406 * cxux-nat.c (add_shared_symbol_files): Ditto.
2407 * osfsolib.c (symbol_add_stub): Ditto.
2408 * pa64solib.c (pa64_solib_add_solib_objfile): Ditto.
2409 * solib.c (symbol_add_stub): Ditto.
2410 * somsolib.c (som_solib_add_solib_objfile): Ditto.
2411 * symfile.c (symbol_file_command): Ditto.
2412 * win32-nat.c (handle_load_dll): Ditto.
2414 * coff-solib.c (coff_solib_add): Call symbol_file_add with NULL ptr.
2415 * cxux-nat.c (add_shared_symbol_files): Ditto.
2416 * remote-udi.c (udi_load): Ditto.
2417 * remote-vx.c (vx_add_symbols): Ditto.
2418 * symfile.c (symbol_file_command): Ditto.
2420 * dstread.c (dst_symfile_offsets): Take "section_addr_info *"
2421 instead of CORE_ADDR.
2422 * somread.c (som_symfile_offsets): Ditto.
2423 * symfile.c (default_symfile_offsets): Ditto.
2424 * xcoffread.c (xcoff_symfile_offsets): Ditto.
2426 * symfile.h (default_symfile_offsets): Adjust prototype.
2427 (syms_from_objfile): Ditto.
2428 * symtab.h (symbol_file_add): Ditto.
2430 * rs6000-nat.c (objfile_symbol_add): Call syms_from_objfile with NULL.
2431 * xcoffsolib.c (solib_add): Ditto.
2432 * gdb-stabs.h (SECT_OFF_MAX): Increase from 4 to 16.
2433 * symtab.h (MAX_SECTIONS): Define.
2434 (struct section_addr_info): New struct for better control over
2435 changing load addresses of sections.
2436 * objfiles.h (OBJF_READNOW): Add new flag bit.
2437 * symfile.h (sym_offsets): Change second param from CORE_ADDR to
2438 "section_addr_info *".
2440 * symfile.c (symbol_file_add): Replace scalar arg "CORE_ADDR addr"
2441 with "struct section_addr_info *addrs".
2442 (syms_from_objfile): Ditto.
2443 (add_symbol_file_command): Remove local variables "readnow" and
2444 "mapped". Replaced with general "flags" variable.
2445 (symbol_file_command): Ditto.
2446 (add_symbol_file_command): Add local variables i, sec_num, argcnt,
2447 expecting_option, option_index, and opt. Rework option parsing code
2448 to handle additional options.
2449 (_initialize_symfile): Adjust add-symbol-file usage to match new
2451 (symbol_file_add): Remove parameters "mapped" and "readnow",
2452 replace with general "flags".
2453 (symbol_file_add): In call to allocate_objfile, replace "mapped"
2454 with extracted OBJF_MAPPED bit from flags.
2455 (symbol_file_add): Use OBJF_READNOW bit from flags, instead of
2457 (symbol_file_command): Set OBJF_MAPPED and OBJF_READNOW bits
2458 from parsed options. Pass flags to symbol_file_add.
2459 (add_symbol_file_command): Ditto.
2460 (syms_from_objfile): Add local variables i, sect, lower_sect,
2461 lower_offset, and local_addr. Substitute local_addr for addrs
2462 when addrs is NULL. Find lowest loadable section to be used as
2463 starting point for contiguous sections. Adjust offsets if segments
2464 are not contiguous. Call sym_offsets with section_addr_info
2465 instead of single addr.
2466 (default_symfile_offsets): Initialize objfile's section_offsets
2467 with user specified offsets.
2468 (symbol_file_add): Call syms_from_objfile with offsets.
2469 (unknown_option_complaint): Add.
2470 (add_symbol_file_command): Add "section_addrs", zero it with memset.
2472 1999-09-30 Jason Molenda (jsm@bugshack.cygnus.com)
2474 * configure.in: Call config.sub explicitly instead of misusing the
2475 autoconf internal variable $ac_config_sub.
2476 * configure: Regenerated.
2478 Thu Sep 30 15:53:59 1999 Andrew Cagney <cagney@b1.cygnus.com>
2480 * remote.c (readchar): When EOF mourn the inferior.
2481 (getpkt): Try QUIT. Might not be a watchdog timer timeout.
2482 (remote_async_serial_handler): Pass ``-1'' as the dummy FD. Safer
2485 * serial.h (enum serial_rc): Replace #define SERIAL_ERROR,
2486 SERIAL_TIMEOUT and SERIAL_EOF.
2487 (struct _serial_t): Add more notes on termios specific fields.
2489 * ser-unix.c (generic_readchar): Make SERIAL_ERROR sticky.
2490 (do_hardwire_readchar, do_unix_readchar): Don't use bufcnt as a
2491 tempoary for the return-value from read.
2493 * serial.c (serial_logchar): Add a stream parameter.
2494 (serial_readchar, serial_write, serial_send_break): Update.
2495 (serial_readchar): Add serial debug trace.
2497 Thu Sep 30 12:07:03 1999 Andrew Cagney <cagney@b1.cygnus.com>
2499 * serial.h (struct _serial_t): Add field async_state. Better
2500 document field bufcnt.
2501 (SERIAL_ERROR): Delete comment about errno.
2502 * serial.c (serial_open, serial_fdopen): Initialize async_state.
2504 * ser-unix.c (push_event, fd_event, reschedule): New functions.
2505 Handle ASYNC serial input.
2506 (ser_unix_async): Update.
2507 (generic_readchar): New function. Handle event scheduling. Make
2508 EOF condition sticky.
2509 (do_unix_readchar): Rename ser_unix_readchar.
2510 (ser_unix_readchar): New function, call do_unix_readchar via
2512 (do_hardwire_readchar, hardwire_readchar): Ditto.
2514 * ser-unix.c (ser_unix_readchar): Delete code working around ASYNC
2516 (hardwire_readchar): Delete code working around ASYNC fifo bugs.
2518 Wed Sep 29 21:27:16 1999 Jeffrey A Law (law@cygnus.com)
2520 * breakpoint.c (insert_breakpoints): Addresses are CORE_ADDRs,
2522 (remove_breakpoint): Likewise.
2524 1999-09-29 Fred Fish <fnf@cygnus.com>
2526 * breakpoint.c (breakpoint_1): Replace cast "(CORE_ADDR) - 1"
2527 with the more obviously intended expression "(CORE_ADDR) -1".
2528 * dwarf2read.c (scan_partial_symbols, read_file_scope): Ditto.
2529 * gnu-nat.c (gnu_create_inferior): Ditto.
2530 * go32-nat.c (go32_create_inferior): Ditto.
2531 * hppa-tdep.c (hppa_pop_frame): Ditto.
2532 * infcmd.c (continue_command, step_1, signal_command): Ditto.
2533 (until_next_command, finish_command): Ditto.
2534 * infrun.c (proceed): Ditto.
2535 * inftarg.c (child_create_inferior): Ditto.
2536 * m3-nat.c (m3_create_inferior): Ditto.
2537 * mac-nat.c (child_create_inferior): Ditto.
2538 * procfs.c (procfs_create_inferior): Ditto.
2539 * remote-sim.c (gdbsim_create_inferior): Ditto.
2540 * target.c (target_link): Ditto.
2541 * win32-nat.c (child_create_inferior): Ditto.
2542 * varobj.c (varobj_create, new_root_variable): Ditto.
2544 Thu Sep 30 10:36:19 1999 Andrew Cagney <cagney@b1.cygnus.com>
2546 * ser-unix.c (ser_unix_flush_input): New function. Discard input
2548 (hardwire_flush_input): Use ser_unix_flush_input.
2549 (ser_unix_nop_flush_input): Delete.
2550 * ser-unix.h (ser_unix_flush_input): Update.
2551 ser-tcp.c (_initialize_ser_tcp), ser-pipe.c
2552 (_initialize_ser_pipe): Update.
2554 * ser-unix.c (hardwire_write): Delete.
2555 (_initialize_ser_hardwire): Update, use ser_unix_write.
2557 Thu Sep 30 10:16:50 1999 Andrew Cagney <cagney@b1.cygnus.com>
2559 * ser-pipe.c (pipe_open): Don't make the FD non-blocking. Already
2560 being handled in ser_unix_wait_for by a select.
2562 Thu Sep 30 10:00:32 1999 Andrew Cagney <cagney@b1.cygnus.com>
2564 * serial.h (struct _serial_t): Add field debug_p.
2565 (SERIAL_DEBUG, SERIAL_DEBUG_P): Define.
2567 * serial.c (serial_open, serial_fdopen): Initialize debug_p.
2568 (serial_debug, serial_debug_p): New functions.
2569 (global_serial_debug_p): New variable.
2570 (_initialize_serial): Add ``set serialdebug'' command.
2572 Thu Sep 30 09:09:38 1999 Andrew Cagney <cagney@b1.cygnus.com>
2574 * serial.h (serial_event_ftype): Replace FD and ERROR args with
2576 * ser-unix.c (ser_unix_event): Update.
2578 * remote.c (remote_async_serial_handler): New function. Handle
2580 (remote_async): Pass remote_async_serial_handler to SERIAL.
2581 (async_client_callback, async_client_context): New variables.
2583 * remote.c (extended_remote_async_create_inferior): Use
2584 target_async to register the inferior event handler.
2586 Thu Sep 30 00:02:03 1999 Andrew Cagney <cagney@b1.cygnus.com>
2588 * configure.in (AC_CHECK_FUNCS): Test for sigprocmask.
2589 * configure, config.in: Re-generate.
2590 * event-top.c (async_stop_sig): Use sigprocmask when available.
2592 1999-09-29 Doug Evans <devans@casey.cygnus.com>
2594 * sh-stub.c (handle_exception): Fix typo in patch of 1999-08-26.
2595 * m68k-stub.c (handle_exception): Ditto.
2597 1999-09-28 Fred Fish <fnf@cygnus.com>
2599 * alpha-nat.c (alpha_osf_core_fns, alpha_elf_core_fns):
2600 Add default entries for check_format and core_sniffer.
2601 * core-aout.c (aout_core_fns): Ditto.
2602 * core-regset.c (regset_core_fns): Ditto.
2603 * core-sol2.c (solaris_core_fns): Ditto.
2604 * i386aix-nat.c (i386aix_core_fns): Ditto.
2605 * i386mach-nat.c (i386mach_core_fns): Ditto.
2606 * irix4-nat.c (irix4_core_fns): Ditto.
2607 * irix5-nat.c (irix5_core_fns): Ditto.
2608 * lynx-nat.c (lynx_core_fns): Ditto.
2609 * mips-nat.c (mips_core_fns): Ditto.
2610 * ns32knbsd-nat.c (nat_core_fns): Ditto.
2611 * rs6000-nat.c (rs6000_core_fns): Ditto.
2612 * sparc-nat.c (sparc_core_fns): Ditto.
2613 * sun-nat.c (sun3_core_fns): Ditto.
2614 * ultra3-nat.c (ultra3_core_fns): Ditto.
2616 * corelow.c (core_vec): New, for selected core file handler.
2617 (sniff_core_bfd): New function.
2618 (gdb_check_format): New function.
2619 (default_check_format): New function.
2620 (default_core_sniffer): New function.
2621 (sniff_core_bfd): New function.
2622 (core_close): Reset core_vec to NULL.
2623 (core_open): Fall back to gdb_check_format if bfd_check_format
2624 does not identify the file format. Call sniff_core_bfd to pick
2625 a core file handler.
2626 (get_core_registers): Remove code that is now in sniff_core_bfd.
2627 Use current core_vec.
2629 * gdbcore.h (check_format): New core_fns function, points to function
2630 to try and identify a core file format.
2631 (core_sniffer): New core_fns function, points to function to select
2632 a specific handler for the selected core file format.
2633 (default_core_sniffer): Add prototype.
2634 (default_check_format): Add prototype.
2636 * i960-tdep.c (inferior.h): Include.
2637 * mips-tdep.c (read_next_frame_reg): Use ADDR_BITS_REMOVE
2638 on addresses pulled from stack.
2640 1999-09-29 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2642 * event-loop.c (poll_timers): Check whether the timer list has any
2643 element on it by looking at the first element pointer, instead of
2646 Wed Sep 29 18:02:31 1999 Andrew Cagney <cagney@amy.cygnus.com>
2648 * command.c: Attempt to include POSIX <sys/wait.h> before
2651 * ser-unix.c (hardwire_print_tty_state): Ditto.
2652 * inflow.c (child_terminal_info): Fix printf args.
2654 1999-09-28 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2656 * remote.c (remote_async_resume): Register the inferior with the
2658 (remote_async_open_1): Don't put the target in async mode here,
2659 just do it when executing.
2661 * infrun.c (complete_execution): Unregister the inferior from the
2664 * event-top.c (async_disable_stdin): Don't add
2665 async_enable_stdin() to the exec_cleanups chain.
2667 Tue Sep 28 11:08:34 1999 Jeffrey A Law (law@cygnus.com)
2669 * hppa-tdep.c (hppa_fix_call_dummy): Ignore IMPORT_SHLIB stubs
2670 except for hpux11 native. Break out of the loop to find a
2671 stub as soon as we find an IMPORT stub.
2672 (skip_prologue_hard_way): Also recognize copy %ret1,target and
2673 all PA64 argument stores as prologue instructions.
2675 1999-09-28 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2677 * breakpoint.c, defs.h, event-top.c, infcmd.c, infrun.c, main.c,
2678 remote.c, top.c, tracepoint.c, utils.c (async_p): Change var name
2681 1999-09-28 Jim Blandy <jimb@cygnus.com>
2683 * hppa-tdep.c (skip_prologue_hard_way): Recognize ldo insns
2684 which generate pointers into the argument list.
2686 Tue Sep 28 13:56:49 1999 Andrew Cagney <cagney@b1.cygnus.com>
2688 * remote.h (cleanup_sigint_signal_handler,
2689 initialize_sigint_signal_handler): Delete extern declarations.
2690 * event-top.c, infrun.c: No longer need to include "remote.h".
2691 * remote.c (cleanup_sigint_signal_handler,
2692 initialize_sigint_signal_handler): Make static.
2693 * Makefile.in (event-top.o): Delete dependency on "remote.h".
2695 * remote.c (remote_async_terminal_ours_p): New static global. Keep
2696 track of who currently owns the terminal.
2697 (remote_async_open_1): Initialize.
2698 (remote_async_terminal_inferior): Test
2699 remote_async_terminal_ours_p. Claim CNTRL-C handler as part of
2700 transfering the terminal to the target.
2701 (remote_async_terminal_ours): Similar.
2703 Mon Sep 27 12:33:45 1999 Andrew Cagney <cagney@b1.cygnus.com>
2705 * remote.c (async_interrupt_query): Delete function. Merged into
2706 interrupt_query. Async cases handled by target_terminal_ours,
2707 target_terminal_inferior and SERIAL_CLOSE.
2708 (async_remote_interrupt_twice): Update.
2709 (remote_async_terminal_ours, remote_async_terminal_inferior): New
2710 functions. Steal STDIN from GDB's CLI.
2711 (init_remote_async_ops): Initialize to_terminal_ours and
2712 to_terminal_inferior.
2714 * event-top.c (async_disable_stdin, async_disable_stdin): Use
2715 target_terminal_ours / target_terminal_inferior to transfer
2716 ownership of the terminal between GDB and the target.
2718 1999-09-27 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2720 * infcmd.c (run_command): Call async_disable_stdin() only if
2721 dealing with an asynchronous target.
2723 Mon Sep 27 11:48:38 1999 Andrew Cagney <cagney@b1.cygnus.com>
2725 * target.h (struct target_ops): Add to_can_async_p, to_is_async_p,
2726 to_async. Delete to_has_async. These correspond well with
2727 SERIAL* async methods.
2728 (target_can_async_p, target_is_async_p, target_async): Define.
2729 * target.c (update_current_target, cleanup_target): Update.
2731 * remote.c (remote_async_open_1): Change target to async using
2733 (remote_can_async_p, remote_is_async_p, remote_async): New
2735 (remote_async_wait, remote_async_open_1): Add FIXME about how
2736 wait_forever_enabled_p can almost be deleted once the client can
2737 enable/disable target_async.
2739 * breakpoint.c (until_break_command), infrun.c (proceed), infcmd.c
2740 (run_command, continue_command, step_1, jump_command,
2741 until_command, finish_command, interrupt_target_command), top.c
2742 (return_to_top_level, execute_command), event-top.c
2743 (command_handler): Replace target_has_async with
2746 Sun Sep 26 02:10:47 1999 Andrew Cagney <cagney@b1.cygnus.com>
2748 * remote.c (remote_async_open_1): If we go into async mode, never
2751 * infcmd.c: Include "event-top.h".
2752 (run_command, continue_command, jump_command, until_command,
2753 finish_command): Use async_disable_stdin to disable the console
2754 for synchronous commands.
2756 * remote.c (async_interrupt_query): Only disconnect the console
2757 from the terminal when sync_execution.
2759 * remote.c (initialize_sigint_signal_handler): Move declaration
2761 * remote.h: To here. Make non-static.
2763 * remote.c (remote_async_resume, async_interrupt_query): Move
2764 prompt code from here.
2765 * event-top.c (async_disable_stdin, async_enable_stdin): To
2768 * infrun.c (start_remote): Delete commented out code.
2770 Fri Sep 24 12:38:31 1999 Andrew Cagney <cagney@b1.cygnus.com>
2772 * remote.c (remote_async_open_1): Perform the initial async_open
2773 using only synchronous calls. Only after the target is fully
2774 connected, switch to async mode. Include FIXME about now it
2775 currently works VS how it should be working.
2776 (remote_async_open_1, set_extended_protocol): Delete function
2777 set_extended_protocol. All open communication is now done
2779 (forever_enabled_p): New variable. Determine if remote_async_wait
2780 should block FOREVER when fetching target information.
2781 (remote_cisco_open, remote_open_1): Set forever_enabled_p.
2783 * infrun.c (start_remote): During the initial connect, always use
2786 Sat Sep 25 18:13:38 1999 Andrew Cagney <cagney@b1.cygnus.com>
2788 * Makefile.in (event-top.o): Add dependency.
2789 * event-top.c: Include "remote.h".
2790 * remote.c (async_interrupt_query), event-top.c:
2791 (async_enable_stdin): Pass dummy parameter to
2792 cleanup_sigint_signal_handler.
2793 * remote.c (cleanup_sigint_signal_handler), remote.h
2794 (cleanup_sigint_signal_handler), event-top.c (async_enable_stdin),
2795 event-top.h (async_enable_stdin): Change signature to match
2796 make_exec_error_cleanup handler pararameter.
2798 Thu Sep 23 20:48:22 1999 Andrew Cagney <cagney@b1.cygnus.com>
2800 * defs.h (enum command_class): Move from here.
2801 * command.h (command_class): To here.
2803 1999-09-24 Kevin Buettner <kevinb@cygnus.com>
2804 * breakpoint.c (bpstat_stop_status): Use not_a_breakpoint to
2805 help properly set bp_addr.
2806 * infrun.c (handle_inferior_event): Simplify calls to
2809 1999-09-24 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2811 * top.c (return_to_top_level): Do exec_error cleanups if are
2812 interrupting a simulated synchronous execution command.
2814 * infrun.c (start_remote): Create a cleanup to enable stdin in
2815 case of error from this command.
2816 (complete_execution): Do the enabling of stdin via the exec_error
2817 cleanups, when needed.
2819 * remote.c (remote_async_resume): Make sure we re-enable stdin in
2820 case of error from the target.
2821 (handle_remote_sigint_twice): The handler to be set is
2822 async_remote_interrupt_twice, not async_remote_interrupt.
2823 (async_remote_interrupt_twice): Don't do anything if the target
2824 has been killed already. Call async_interrupt_query, instead of
2826 (async_interrupt_query): New function. Async case of
2829 * event-top.c (async_enable_stdin): New function. Reinstate stdin
2830 with the event loop.
2831 * event-top.h (async_enable_stdin): Export.
2833 * utils.c (exec_error_cleanup_chain): New cleanup chain.
2834 (make_exec_error_cleanup, do_exec_error_cleanups,
2835 discard_exec_error_cleanups): New functions.
2836 * defs.h (make_exec_error_cleanup, do_exec_error_cleanups,
2837 discard_exec_error_cleanups): Export.
2839 1999-09-24 Jim Blandy <jimb@zwingli.cygnus.com>
2841 * ax-gdb.c (expr_to_agent): Don't forget to pass argument to
2844 1999-09-24 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2846 * event-loop.c (fetch_inferior_event_wrapper): New
2847 function. Wrapper to pass to catch_errors.
2848 (inferior_event_handler): Pop the target if things go bad with it.
2849 Call fetch_inferior_event() from within catch_errors().
2851 1999-09-24 Jim Blandy <jimb@zwingli.cygnus.com>
2853 * ax-gdb.c: Use internal_error instead of error, where
2856 1999-09-23 James Ingham <jingham@leda.cygnus.com>
2858 * target.c (target_resize_to_sections): New function. Gather the
2859 resizing code for the to_sections field into one place, and make
2860 sure you update the other targets that are sharing the to_sections
2862 * target.h: Declare the target_resize_to_sections function.
2863 * solib.c (solib_add): use target_resize_to_sections.
2864 * somsolib.c (som_solib_load_symbols): ditto
2865 * rs6000-nat.c (xcoff_relocate_core): ditto
2866 * pa64solib.c (pa64_solib_load_symbols): ditto
2867 * irix5-nat.c (solib_add):ditto
2869 * top.c: Define the attach & detach hooks
2870 * defs.h: Declare the attach & detach hooks.
2871 * infcmd.c (attach_command): call the attach hook if it exists.
2872 (detach_command): call the detach hook if it exists.
2874 * complaints.c (complain): Send the complaints to stderr rather
2875 than stdout, so they don't get mixed into the result stream from
2878 1999-09-23 Fernando Nasser <fnasser@totem.to.cygnus.com>
2880 * varobj.c (varobj_set_value): Fix handling of baseclasses and
2881 correct the behavior when it is not a baseclass (both cases were
2884 1999-09-23 Fernando Nasser <fnasser@totem.to.cygnus.com>
2886 * varobj.c (varobj_update): Fix setting of child error field.
2888 1999-09-23 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2890 * event-loop.c (poll_timers): Use correct timeval field names,
2891 when setting the notifier timeouts, in case of select() used.
2892 (gdb_wait_for_event): Pass a pointer to the timeout structure to
2893 select(), not the structure.
2895 1999-09-23 Fernando Nasser <fnasser@totem.to.cygnus.com>
2897 * varobj.c (varobj_gen_name): Dynamically allocate variable object
2899 (varobj_update): Fix creation of result list.
2901 Wed Sep 22 10:35:32 1999 Andrew Cagney <cagney@b1.cygnus.com>
2903 * Makefile.in (init.c): Change generated file to include "defs.h"
2904 and "call-cmds.h". Use initialize_file_ftype when declaring
2905 each initialize functions.
2906 (call_cmds_h): Add definition.
2907 (init.o): Add target and dependencies.
2908 (init.c): Don't grep for _initialize* in init.c.
2910 * defs.h (initialize_file_ftype): Add function typedef.
2912 1999-09-22 Michael Snyder <msnyder@cleaver.cygnus.com>
2914 * procfs.c (init_procinfo): move fltset initialization to caller.
2915 (do_attach, create_procinfo): initialize fltset.
2917 1999-09-22 Fernando Nasser <fnasser@totem.to.cygnus.com>
2919 * varobj.c (_initialize_varobj): Rename varobjdebug to debugvarobj
2920 to avoid conflict with "set var".
2922 1999-09-22 Fernando Nasser <fnasser@totem.to.cygnus.com>
2924 * varobj.c (varobj_get_type, c_value_of_variable): Remove
2925 dependency on ui_out.[ch].
2927 1999-09-22 Fernando Nasser <fnasser@totem.to.cygnus.com>
2929 * varobj.c (varobj_update): Fix order in which changed variables
2930 are reported to match that of the old code.
2932 1999-09-22 Fernando Nasser <fnasser@totem.to.cygnus.com>
2934 * varobj.c (type_changeable): Fix for testsuite case 2.12. Do not
2935 report as changed a structure when one of it's children has changed.
2936 (get_type, get_type_deref): Remove uneeded initialization.
2938 1999-09-22 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2940 * event-loop.c, event-top.c, event-loop.h: Rerun indent.
2942 1999-09-21 Doug Evans <devans@casey.cygnus.com>
2944 * m32r-stub.c (handle_exception): Fix typo in patch of 1999-08-26.
2946 1999-09-21 Fernando Nasser <fnasser@totem.to.cygnus.com>
2948 * varobj.c (_initialize_varobj): Add set/show for varobjdebug.
2949 (uninstall_variable): Test for varobjdebug before printing trace
2950 and send it to gdb_stdlog.
2952 1999-09-21 Fernando Nasser <fnasser@totem.to.cygnus.com>
2954 * varobj.c (c_type_of_child): Fix missing break, improve comment
2956 (c_number_of_children): Add comment.
2958 Tue Sep 21 14:55:29 1999 Andrew Cagney <cagney@b1.cygnus.com>
2960 From 1999-08-20 J.T. Conklin <jtc@redback.com>:
2961 * remote.c (read_frame): expand cisco run-length encoding variant
2962 inline as is done for the standard encoding.
2963 (remote_cisco_expand): Removed.
2965 1999-09-20 Fernando Nasser <fnasser@totem.to.cygnus.com>
2967 * varobj.c (varobj_update): Test for illegal invocation for
2968 non-root variable object.
2970 1999-09-20 Fernando Nasser <fnasser@totem.to.cygnus.com>
2972 * varobj.c (my_value_equal): Style. Eliminate side-effects.
2973 (varobj_update): Adjust calls to reflect the above change.
2975 1999-09-20 Fernando Nasser <fnasser@totem.to.cygnus.com>
2977 * varobj.c (c_value_of_variable): Fix return value for struct
2978 members when parent is a invalid pointer.
2980 1999-09-20 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2982 * event-loop.c: Include <sys/time.h>.
2984 1999-09-20 Fernando Nasser <fnasser@totem.to.cygnus.com>
2986 * varobj.c (cplus_number_of_children): Coding style improvement.
2987 (cplus_value_of_child): Ditto.
2989 1999-09-20 Fernando Nasser <fnasser@totem.to.cygnus.com>
2991 * varobj.c (c_name_of_child): Add missing default clause in switch
2993 (c_type_of_child): Ditto.
2994 (varobj_set_value): Test for NULL type.
2996 1999-09-20 Fernando Nasser <fnasser@totem.to.cygnus.com>
2998 * varobj.c (varobj_set_value): Wrap call to evaluate_expression.
3000 1999-09-20 Fernando Nasser <fnasser@totem.to.cygnus.com>
3002 * varobj.c (format_string[]): Remove unused variable(s).
3003 (varobj_set_value): Ditto.
3004 (c_value_of_root): Ditto.
3005 (cplus_value_of_child): Ditto.
3007 1999-09-20 Fernando Nasser <fnasser@totem.to.cygnus.com>
3009 * varobj.c: Add missing header file include.
3010 (new_variable, new_root_variable): Fix prototype and header.
3011 (_initialize_varobj): Add prototype.
3013 1999-09-20 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
3015 * ser-ocd.c: (ser_ocd_open, ser_ocd_raw, ser_ocd_readchar,
3016 ser_ocd_setbaudrate, ser_ocd_write, ser_ocd_close,
3017 ser_ocd_get_tty_state, ser_ocd_set_tty_state): Remove unused
3019 (ocd_readremote): Remove.
3020 (ocd_write): Remove unused var 'c'.
3022 1999-09-20 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
3024 * event-top.c (change_line_handler): Cleanup dead code. Add comments.
3025 * event-loop.c: Cleanup #if 0 code.
3027 * event-loop.h (timer_handler_func): New function type.
3028 (create_timer): Export function.
3029 (delete_timer): Export function.
3031 * event-loop.c: Add timeout and timeout_valid fields to
3032 gdb_notifier. New structures gdb_timer and timer_list.
3033 (gdb_do_one_event): Check whether there are any timers tht are
3034 ready, before going to wait.
3035 (gdb_wait_for_event): If the timeout structure is meaningful, pass
3036 that to select()/poll().
3037 (create_timer): New function. Creates a timer.
3038 (delete_timer): New function. Deletes a timer.
3039 (handle_timer_event): New function. Deals with timers that are ready.
3040 (poll_timers): New Function. Chack whether timers have expired.
3042 Mon Sep 20 17:00:06 1999 Andrew Cagney <cagney@b1.cygnus.com>
3044 * remote.c (getpkt, putpkt, remote_console_output): Move
3045 declaration from here.
3046 * remote.h: To here. New file.
3047 * tracepoint.c(putpkt, getpkt, remote_console_output): Delete
3048 declarations. Moved to "remote.h".
3049 * Makefile.in (remote_h): Define.
3050 * remote.c, tracepoint.c: Include "remote.h".
3051 * Makefile.in (tracepoint.o, remote.o): Add dependency on
3054 * remote.h (remote_cisco_objfile_relocate,
3055 cleanup_sigint_signal_handler): Add declaration. Include FIXME.
3056 * infrun.c: Include "remote.h".
3057 (complete_execution): Delete local extern declaration
3058 of ``cleanup_sigint_signal_handler''.
3059 * Makefile.in (infrun.o): Add dependency on remote.h.
3061 Mon Sep 20 16:15:29 1999 Andrew Cagney <cagney@b1.cygnus.com>
3063 * ui-out.h (ui_out_test_flags): Add missing declaration.
3065 Mon Sep 20 13:41:04 1999 Andrew Cagney <cagney@b1.cygnus.com>
3067 * kod.c (ecos_kod_open, ecos_kod_request, ecos_kod_close,
3068 cisco_kod_open, cisco_kod_request, cisco_kod_close): Move
3069 declarations from here.
3070 * kod.h: To here. New file.
3071 * kod-cisco.c, kod.c: Include "kod.h".
3072 * Makefile.in (kod-cisco.o, kod.o): Add dependency on "kod.h".
3074 * kod.h (kod_display_callback_ftype, kod_query_callback_ftype):
3076 * kod.h (kod_cisco_open): Use in declaration.
3077 * kod.c (gdb_kod_open): Update definition.
3078 * kod-cisco.c (cisco_kod_open): Update definition.
3080 Mon Sep 20 12:13:27 1999 Andrew Cagney <cagney@b1.cygnus.com>
3082 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
3084 * breakpoint.c (until_break_command_continuation): Add
3085 declaration. Make static.
3086 * event-top.c (rl_callback_read_char_wrapper): Ditto.
3088 Mon Sep 20 10:54:19 1999 Andrew Cagney <cagney@b1.cygnus.com>
3090 * Makefile.in (varobj.o): Disable warnings. Currently
3093 Fri Sep 17 19:28:17 1999 Andrew Cagney <cagney@b1.cygnus.com>
3095 * source.c: Include "source.h".
3096 (open_source_file, find_source_lines): Move declaration from here.
3097 * source.h: New file. To here.
3098 * Makefile.in (source.o): Add dependency on source.h.
3100 * breakpoints.c (delete_command): Move declaration from here.
3101 * breakpoints.h (delete_command): To here.
3103 1999-09-18 Jim Blandy <jimb@cygnus.com>
3105 * hppa-tdep.c (in_solib_call_trampoline): If we can't recognize
3106 the instruction we're at, we're not in a stub.
3108 Sat Sep 18 07:13:03 1999 Jeffrey A Law (law@cygnus.com)
3110 * dwarf2read.c (dwarf_decode_lines): Correctly handle
3111 DW_LNS_const_add_pc.
3113 1999-09-18 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
3115 * remote.c (remote_async_open_1): Use inferior_event_handler to
3116 handle inferior events.
3117 (extended_remote_async_create_inferior): Ditto.
3119 * serial.h (serial_event_ftype): Add two pars.
3121 * ser-unix.c (ser_unix_event): Add two parameters, error and fd.
3122 Pass those into the call to the actual inferior event handler.
3124 * infrun.c (complete_execution): Stdin handler is stdin_event_handler.
3126 * event-top.h (stdin_event_handler): Export new function.
3128 * event-top.c (stdin_event_handler): New function. Smarter handler
3129 for events on stdin.
3130 (change_line_handler): Don't need to update the handler for stdin
3132 (_initialize_event_loop): Stdin handler is now stdin_event_handler.
3134 * event-loop.h: (handler_func): Change signature, adding two new
3136 (sig_handler_func): New function type. It is the old handler_func.
3137 (create_async_signal_handler): Update to use sig_handler_func.
3138 (delete_async_signal_handler): Prototype for new function.
3140 * event-loop.c: Include "inferior.h".
3141 (struct file_handler): Add field error, to indicate error
3143 (struct async_signal_handler): Rename type of proc field.
3144 (add_file_handler): Add exception condition as something select()
3146 (handle_file_event): In case of error on the fd, record this in
3147 the file_handler structure. Update call to (*proc)() to match new
3149 (gdb_wait_for_event): If select() or poll() return error, report
3151 (create_async_signal_handler): Change first param type to
3153 (inferior_event_handler): New function. Smarter inferior event
3156 1999-09-18 Jim Blandy <jimb@cygnus.com>
3158 * pa64solib.c (pa64_solib_create_inferior_hook): Remove code which
3159 tries to set __d_pid; it's not relevant to PA64 shared libraries.
3161 A psymtab's texthigh element, and a block's endaddr element, are
3162 the address past the end of the address range, never the address
3163 of the last byte. These data structures mean the same thing on
3164 forty different architectures; there's no reason they should be
3166 * symtab.c (find_pc_sect_psymtab): Remove special case for HP/UX.
3167 (find_pc_sect_symtab): Same.
3168 * objfiles.c (find_pc_sect_section): Same.
3170 Sat Sep 18 07:13:03 1999 Jeffrey A Law (law@cygnus.com)
3172 * hppa-tdep.c (internalize_unwinds): Handle PA64 shared libraries
3175 * hppa-tdep.c (in_solib_call_trampoline): Handle PA64 shared library
3178 1999-09-17 Fernando Nasser <fnasser@totem.to.cygnus.com>
3180 * wrapper.h: Add missing define brackets.
3182 1999-09-17 Jim Blandy <jimb@zwingli.cygnus.com>
3184 * breakpoint.c (permanent_breakpoint_here_p): Delete.
3185 Accidentally left over from previous changes.
3187 1999-09-17 Jim Blandy <jimb@cygnus.com>
3189 * config/pa/tm-hppa64.h (ARGS_GROW_DOWNWARD): Deleted. There are
3190 many more differences between the 32- and 64-bit ABI's than the
3191 direction the arguments grow, so this name is misleading.
3192 (PA20W_CALLING_CONVENTIONS): Define this instead.
3193 * config/pa/tm-hppa.h (ARGS_GROW_DOWNWARD): Delete.
3194 * hppa-tdep.c (hppa_push_arguments): Split into two separate
3195 functions, depending on whether PA20W_CALLING_CONVENTIONS is
3196 #defined. These implement completely separate specifications,
3197 they don't really share that much code anyway, and this is much
3198 more readable. Specifically: leave a 16-byte, not 32-byte, frame
3199 marker; correctly align objects larger than eight bytes; promote
3200 all integral scalar arguments smaller than eight bytes to a full
3201 register width; pad aggregates smaller than eight bytes on the
3204 1999-09-17 Fernando Nasser <fnasser@totem.to.cygnus.com>
3206 * Makefile.in: Add entries for varobj.[cho] and wrapper.[cho].
3207 gdbtk-varobj.[co]. gdbtk-varobj.o is not yet on the COMMON_OBS
3208 list because it conflicts with the older gdbtk-variable.o which
3209 is still the default.
3211 1999-09-17 Fernando Nasser <fnasser@totem.to.cygnus.com>
3213 * varobj.h: New file. GDB variable objects API.
3214 * varobj.c: New file. Implementation of the GDB variable objects
3217 1999-09-17 Fernando Nasser <fnasser@totem.to.cygnus.com>
3219 * wrapper.h: New file. Longjump free calls to gdb internal
3221 * wrapper.c (gdb_evaluate_expression, wrap_evaluate_expression,
3222 gdb_value_fetch_lazy, wrap_value_fetch_lazy, gdb_value_equal,
3223 wrap_value_equal, gdb_value_ind, wrap_value_ind): New functions.
3225 Thu Sep 16 17:33:35 1999 Andrew Cagney <cagney@b1.cygnus.com>
3227 * remote.c (remote_async_open_1): Use SERIAL_ASYNC to
3228 enable/disable async event callback on serial port. Use
3229 SERIAL_CAN_ASYNC_P / SERIAL_IS_ASYNC_P to determine if / when
3231 (remote_async_resume, remote_async_detach, remote_async_kill,
3232 extended_remote_async_create_inferior, remote_async_wait): Ditto.
3234 * ser-unix.c (hardwire_readchar): When ASYNC, only read a single
3236 (ser_unix_readchar): Ditto. Problems occure with back-to-back
3237 data from a target. The ASYNC code can loose the second data
3240 * serial.c (serial_fdopen): Initialize async_handler and
3243 1999-09-16 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
3245 * utils.c (discard_all_continuations): New function.
3246 * defs.h: (discard_all_continuations): Add prototype.
3248 1999-09-16 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
3250 * valops.c: Remove prototype for search_struct_field_aux(). THe
3251 function was nowhere in the file.
3252 (value_ind): Remove unused var real_val.
3253 (value_find_oload_method_list): Remove unused var v.
3254 (find_overload_match): Remove extra declaration of var jj.
3256 * Makefile.in (event_top_h): Define. Add dependency on this for
3257 every file that includes event-top.h.
3259 Thu Sep 16 17:33:35 1999 Andrew Cagney <cagney@b1.cygnus.com>
3261 * serial.c (serial_open): Delete ``&'' device.
3262 * ser-unix.c (_initialize_ser_hardwire): Make the "hardwire"
3263 device async. Delete temporary "async-hardwire" device.
3265 Thu Sep 16 16:27:13 1999 Andrew Cagney <cagney@b1.cygnus.com>
3267 * serial.h (SERIAL_IS_ASYNC_P): Define. Non-zero when serial
3268 device is in async mode.
3269 (SERIAL_CAN_ASYNC_P): Rename SERIAL_ASYNC_P.
3270 * serial.c (serial_is_async_p): Implement.
3271 (serial_can_async_p): Rename serial_async_p.
3272 (serial_open): Initialize ASYNC_HANDLER and ASYNC_CONTEXT. Save
3273 the original name in SCB instead of the stripped name.
3275 Thu Sep 16 12:20:11 1999 Andrew Cagney <cagney@b1.cygnus.com>
3277 * serial.h (struct serial_ops): Add field ASYNC.
3278 (SERIAL_ASYNC, SERIAL_ASYNC_P): New macros.
3279 (struct _serial_t): Add fields async_context and async_handler.
3280 * serial.c (serial_async, serial_async_p): Implement.
3282 * ser-unix.c: Include "event-loop.h".
3283 (ser_unix_async), ser-unix.c: New function. Implement async mode.
3284 (async_event): Handle async events.
3285 * ser-unix.c (_initialize_ser_hardwire), ser-tcp.c
3286 (_initialize_ser_tcp), ser-pipe.c (_initialize_ser_pipe): Enable
3289 * serial.c (serial_open): Discard leading ``|'' before opening a
3291 * ser-pipe.c (pipe_open): Adjust.
3292 * serial.c (serial_open): Add ``&'' prefix so that
3293 "async-hardwire" device can be explicitly selected. Work in
3295 * ser-unix.c: Register "async-hardwire" device.
3297 Thu Sep 16 09:04:53 1999 Andrew Cagney <cagney@b1.cygnus.com>
3299 * ser-unix.h: New file. Declare generic ser_unix functions.
3300 * ser-unix.c (ser_unix_nop_get_tty_state,
3301 ser_unix_nop_set_tty_state, ser_unix_nop_raw, ser_unix_wait_for,
3302 ser_unix_readchar, ser_unix_nop_noflush_set_tty_state,
3303 ser_unix_nop_print_tty_state, ser_unix_nop_setbaudrate,
3304 ser_unix_nop_setstopbits, ser_unix_write,
3305 ser_unix_nop_flush_output, ser_unix_nop_flush_input,
3306 ser_unix_nop_send_break, ser_unix_nop_drain_output): New
3308 * ser-unix.c: Include <sys/wait.h>, <sys/socket.h>,
3311 * ser-tcp.c (_initialize_ser_tcp), ser-unix.c
3312 (_initialize_ser_hardwire), ser-pipe.c (_initialize_ser_tcp):
3313 Initialize ops vector using assignment.
3315 * ser-pipe.c, ser-tcp.c, ser-unix.c: Include ser-unix.h.
3317 * ser-pipe.c (pipe_get_tty_state, pipe_set_tty_state,
3318 pipe_return_0, pipe_raw, wait_for, pipe_readchar,
3319 pipe_noflush_set_tty_state, pipe_print_tty_state,
3320 pipe_setbaudrate, pipe_setstopbits, pipe_write), ser-tcp.c
3321 (tcp_get_tty_state, tcp_set_tty_state, tcp_return_0, tcp_raw,
3322 wait_for, tcp_readchar, tcp_noflush_set_tty_state,
3323 tcp_print_tty_state, tcp_setbaudrate, tcp_setstopbits, tcp_write):
3326 1999-09-15 Stan Shebs <shebs@andros.cygnus.com>
3328 * d10v-tdep.c (remote_d10v_translate_xfer_address): Move to here
3329 from remote-d10v.c, also change the memory translation to its
3331 * remote-d10v.c: Remove.
3332 * config/d10v/d10v.mt (TDEPFILES): Remove remote-d10v.o.
3334 1999-09-15 Jim Blandy <jimb@cygnus.com>
3336 * breakpoint.c (remove_breakpoint): Return zero, not nothing.
3338 1999-09-14 Jim Blandy <jimb@cygnus.com>
3340 * hppa-tdep.c (frame_chain): If the unwind info says we've saved
3341 r3, don't trust it. Call get_frame_saved_regs and see if we can
3342 actually find an address for r3 there.
3344 * pa64solib.c (pa64_sharedlibrary_info_command): Text fix.
3346 Tue Sep 14 14:34:28 1999 Andrew Cagney <cagney@b1.cygnus.com>
3348 * serial.h (DEPRECATED_SERIAL_FD): Define.
3349 * serial.c (deprecated_serial_fd): New function.
3351 * remote.c (remote_async_open_1, remote_async_open_1,
3352 remote_async_detach, remote_async_kill,
3353 extended_remote_async_create_inferior, minitelnet): Update.
3354 * remote-es.c (es1800_open, es1800_close, es1800_transparent): Update.
3356 * remote-st.c (connect_command), remote-os9k.c (connect_command):
3357 Fix. Call FD_SET et.al. with FD instead of serial_t.
3359 1999-09-14 Jim Blandy <jimb@cygnus.com>
3361 * hppa-tdep.c (hppa_frame_find_saved_regs): The two possible
3362 instructions for saving the return pointer (32- and 64-bit) save
3363 it at different offsets.
3365 * config/pa/tm-hppa64.h: Doc fix.
3367 * defs.h (continuation): Make this a typedef.
3369 * Makefile.in (gdbtk.o, gdbtk-cmds.o): Depend on $(top_h).
3371 * Makefile.in (i386-linux-nat.o): Depend on symfile.h, not
3372 $(symfile_h); the latter has no definition.
3374 * breakpoint.c (breakpoint_here_p): Remove meaningless code,
3375 testing b->enable against shlib_disabled and call_disabled after
3376 we know it is enabled.
3378 Implement "permanent breakpoints" --- breakpoints that are
3379 hardwired into the inferior's code. GDB knows they're there, but
3380 doesn't try to insert or remove them, etc.
3381 * breakpoint.h (enum enable): Add `permanent' enablement state.
3382 * breakpoint.c (make_breakpoint_permanent): New function.
3383 * breakpoint.h (make_breakpoint_permanent): Add declaration.
3384 * breakpoint.c (insert_breakpoints): Don't bother to insert
3385 permanent breakpoints...
3386 (remove_breakpoint): ... or remove them.
3387 (breakpoint_here_p): Handle `permanent' like `enabled'. Change
3388 return value to indicate whether it's a permanent breakpoint here,
3389 or an ordinary breakpoint.
3390 * breakpoint.h (enum breakpoint_here): New enum.
3391 (breakpoint_here_p): Change declaration.
3392 * breakpoint.h (breakpoint_1): Extend bpenables to cover all the
3394 (describe_other_breakpoints): Describe permanent breakpoints.
3395 (check_duplicates): If one of the breakpoints at ADDRESS is a
3396 permanent breakpoint, treat all the others as the duplicates, so
3397 we don't try to insert or remove any of them. Verify that only
3398 the permanent breakpoint is actually inserted.
3399 (delete_breakpoint): Complain if we discover that another
3400 breakpoint was inserted at the same place as a permanent
3402 (disable_breakpoint): Fail silently if asked to disable a
3403 permanent breakpoint.
3404 (do_enable_breakpoint): Don't change a permanent breakpoint's
3405 enablement to ordinary `enabled'. Leave it alone.
3406 (create_solib_event_breakpoint): Return the
3407 breakpoint object created.
3408 * breakpoint.h (create_solib_event_breakpoint): Fix declaration.
3409 * pa64solib.c (pa64_solib_create_inferior_hook): Do turn on the
3410 DT_HP_DEBUG_CALLBACK flag in the dynamic linker, so it will call
3411 __dld_break, which contains the permanent breakpoint, when interesting
3412 things happen. Tell GDB that the breakpoint in __dld_break is
3414 * gdbtk-cmds.c (gdb_get_breakpoint_info): Report a permanent
3415 breakpoint as enabled.
3416 * infrun.c (SKIP_PERMANENT_BREAKPOINT): Provide default definition.
3417 (default_skip_permanent_breakpoint): New function.
3418 (resume): If we're trying to resume at a permanent breakpoint, use
3419 SKIP_PERMANENT_BREAKPOINT to step over it.
3420 * hppa-tdep.c (hppa_skip_permanent_breakpoint): New function.
3421 * config/pa/tm-hppa.h (hppa_skip_permanent_breakpoint): Declare.
3422 (SKIP_PERMANENT_BREAKPOINT): Define.
3424 1999-09-14 Kevin Buettner <kevinb@cygnus.com>
3426 * symtab.h, minsyms.c (find_stab_function_addr): Changed
3427 type of second parameter from partial_symtab * to char *.
3429 * minsyms.c (find_stab_function_addr): Look for minimal
3430 symbol without filename if filename based search fails.
3431 * dbxread.c (process_one_symbol): Call find_stab_function_addr()
3432 in place of inline code with identical functionality.
3433 * partial-stab.h (case N_FUN, descriptors 'F' and 'f'): Look
3434 up symbol's address from minimal symbol table when N_FUN
3435 address is missing. Also, make sure this value is used for
3436 calculating the value of the texthigh field.
3438 1999-09-14 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
3440 * event-loop.c (create_file_handler): Increment the total number
3441 of file descriptors for the poll case, only if this is a new file
3444 1999-09-14 Eli Zaretskii <eliz@is.elta.co.il>
3446 * go32-nat.c: misc minor cleanups and fixes missed in last patch.
3448 Tue Sep 14 12:37:33 1999 Andrew Cagney <cagney@b1.cygnus.com>
3450 * serial.h (SERIAL_PRINT_TTY_STATE): Add STREAM parameter.
3451 (union serial_ops): Update.
3453 * ser-unix.c (hardwire_print_tty_state, ser-tcp.c
3454 (tcp_print_tty_state), ser-pipe.c (pipe_print_tty_state,
3455 ser-go32.c (dos_print_tty_state, ser-mac.c (mac_print_tty_state,
3456 ser-ocd.c (ocd_print_tty_state, ser-e7kpc.c
3457 (e7000pc_print_tty_state): Update.
3458 * inflow.c (child_terminal_info): Update.
3459 * serial.c (serial_print_tty_state): Update.
3461 Tue Sep 14 11:41:37 1999 Andrew Cagney <cagney@b1.cygnus.com>
3463 * serial.c, serial.h, ser-tcp.c, ser-unix.c, ser-pipe.c: Convert
3464 all functions to ISO-C.
3465 * serial.h, serial.c: Move all indirect macro function calls from
3466 serial.h into serial.c.
3467 (serial_drain_output, serial_flush_output, serial_flush_input,
3468 serial_raw, serial_get_tty_state, serial_set_tty_state,
3469 serial_print_tty_state, serial_noflush_set_tty_state,
3470 serial_setbaudrate, serial_setstopbits): New functions.
3471 (do_serial_close): Rename serial_close.
3472 (serial_close, serial_un_fdopen): New functions. Call
3475 1999-09-13 James Ingham <jingham@leda.cygnus.com>
3477 * symtab.c (decode_line_1): Find the rightmost parenthesis in the
3478 expression, not the leftmost. This allows us to parse function
3479 declarations with embedded function prototypes.
3481 Mon Sep 13 18:39:31 1999 Jeffrey A Law (law@cygnus.com)
3483 * pa64solib.c (pa64_sharedlibrary_info_command): Fix typos.
3485 1999-09-13 Kevin Buettner <kevinb@cygnus.com>
3487 * i386-tdep.c (i386_extract_return_value): ifdef'd so that
3488 non-linux targets will work again.
3489 (i386_do_registers_info, i386_print_register): Revert changes
3490 of 1999-09-03; these functions have been removed because they
3491 are Linux specific and break non-Linux builds. This functionality
3492 will be restored after FP support unification has been achieved.
3493 * i387-tdep.c (i387_print_register, void i387_float_info):
3495 * config/i386/tm-linux.h (i387_float_info, FLOAT_INFO,
3496 DO_REGISTERS_INFO, i386_do_registers_info,
3497 i387_print_register): Likewise.
3499 1999-09-13 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
3501 * event-top.c (call_readline): Change to accept gdb_client_data as
3503 (rl_callback_read_char_wrapper): New function to match what the
3504 event loop expects and what readline expects.
3505 (change_line_handler): Make call_readline point to
3506 rl_callback_read_char_wrapper, instead of rl_callback_read_char.
3507 (_initialize_event_loop): Ditto.
3508 (gdb_readline2): Change parameter to gdb_client_data.
3509 * event-top.h (call_readline, gdb_readline2): Change accordingly.
3511 * event-loop.c (add_file_handler): Change 2nd par to
3512 handler_func*. No more need for casting.
3513 * event-loop.h (create_async_signal_handler): Change accordingly.
3515 * inferior.h (fetch_inferior_event): Change parameter to void*.
3516 * infrun.c (fetch_inferior_event): Ditto.
3518 1999-09-13 Stan Shebs <shebs@andros.cygnus.com>
3520 * infrun.c (step_into_function): New function, broken out from the
3521 step_into_function label in handle_inferior_event.
3522 (handle_inferior_event): Change a goto into a function call.
3524 1999-09-13 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
3526 * event-top.h: New file. All the exported vars and functions from
3529 * event-loop.h (struct gdb_event, event_handler_func,
3530 file_handler, async_signal_handler, SELECT_MASK, fd_mask, NBBY,
3531 FD_SETSIZE, howmany, NFDBITS, MASK_SIZE): Move to event-loop.c.
3532 (struct prompts, PROMPT, PREFIX, SUFFIX, display_gdb_prompt,
3533 async_init_signals, set_async_editing_command,
3534 set_async_annotation_level, set_async_prompt, handle_stop_sig,
3535 handle_sigint, pop_prompt, push_prompt, gdb_readline2,
3536 mark_async_signal_handler_wrapper, async_request_quit,
3537 async_command_editing_p, exec_done_display_p,
3538 async_annotation_suffix, new_async_prompt, the_prompts,
3539 call_readline, input_handler, input_fd): Move to event-top.h.
3540 (All function prototypes): Don't use PARAMS anymore.
3542 * event-loop.c: (struct gdb_event, event_handler_func,
3543 file_handler, async_signal_handler, SELECT_MASK, fd_mask, NBBY,
3544 FD_SETSIZE, howmany, NFDBITS, MASK_SIZE): Move to here from
3546 Include event-top.h. Remove use of PARAMS. ANSIfy functions headers.
3548 * event-top.c: Include event-top.h. Include "signals.h", not
3550 Remove use of PARAMS. ANSIfy functions headers.
3551 (handle_stop_sig): move prototype to event-top.h.
3553 * remote.c: Include event-top.h. Make it understand
3554 async_signal_handler type.
3555 * infrun.c: Include event-top.h.
3560 Mon Sep 13 18:54:05 1999 Andrew Cagney <cagney@b1.cygnus.com>
3562 * gdbarch.sh: Describe each of the fields.
3564 Mon Sep 13 17:51:28 1999 Andrew Cagney <cagney@b1.cygnus.com>
3566 From 1999-09-12 Jim Blandy <jimb@cygnus.com>:
3567 * gdbarch.sh (generating setters): Use sed to generate the proper
3568 indentation, not tr; tr's behavior is notoriously unportable.
3570 1999-09-10 Jim Blandy <jimb@zwingli.cygnus.com>
3572 * i387-tdep.c (print_387_control_bits): Don't print newline; the
3573 callers take care of that. (Thanks to H.J. Lu.)
3575 1999-09-09 Stan Shebs <shebs@andros.cygnus.com>
3577 * d10v-tdep.c (DMEM_START): Set to 0x2000000.
3578 (itrace, iuntrace, info itrace, itdisassemble, itracedisplay,
3579 itracesource): Add 'i' prefix to commands, so as not to conflict
3580 with generic trace commands.
3582 1999-09-09 Fernando Nasser <fnasser@totem.to.cygnus.com>
3584 * remote.c (_initialize_remote): Fix the specification of the
3585 "remote" prefix to set and show commands.
3587 1999-09-09 Fernando Nasser <fnasser@totem.to.cygnus.com>
3589 * command.c (print_doc_line): Update to use ui_out.
3590 (do_setshow_command): Ditto.
3591 (cmd_show_list): Ditto.
3593 1999-09-09 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
3595 * event-loop.c (create_file_event): New function. Creates a gdb
3596 event for a given fd.
3597 (gdb_wait_for_event): Use create_file_event().
3598 * event-loop.h: export create_file_event().
3600 * event-loop.c (delete_file_handler): Move the clearing of the
3601 mask to later on in the function, because we need it in order to
3602 deactivate the correct fd when using select().
3604 * m32r-tdep.c (decode_prologue): Fix typo. Instructions starting
3605 with 0xf are branch instructions.
3606 (m32r_scan_prologue): Initialize framesize to 0.
3608 1999-09-07 J.T. Conklin <jtc@redback.com>
3610 * i386-stub.c (exceptionHook, oldExceptionHook): Removed.
3611 (handle_exception): Removed #if'd out exception hook code.
3613 * i386-stub.c, m68k-stub.c (error): Removed unused variable.
3615 * i386-stub.c, m68k-stub.c, sh-stub.c, sparc-stub.c,
3616 sparcl-stub.c, sparclet-stub.c (remcomInBuffer, remcomOutBuffer):
3619 Tue Sep 7 14:06:22 1999 Kevin Buettner <kevinb@cygnus.com>
3621 * config/i386/tm-linux.h (SOFUN_ADDRESS_MAYBE_MISSING):
3624 Tue Sep 7 08:18:01 1999 Kevin Buettner <kevinb@cygnus.com>
3626 From Jim Blandy <jimb@cygnus.com>:
3628 Step into calls to functions in shared libraries properly. See
3629 the comments for SKIP_SOLIB_RESOLVER atop infrun.c for details.
3630 * infrun.c (SKIP_SOLIB_RESOLVER): New macro.
3632 1999-09-05 Fred Fish <fnf@cygnus.com>
3634 * elfread.c (elf_symtab_read): Remove separately passed bfd
3635 pointer and offset. Pick up bfd pointer from objfile, and
3636 get offset from objfile's section_offsets.
3638 Fri Sep 3 22:29:39 1999 Kevin Buettner <kevinb@cygnus.com>
3640 * config/i386/tm-linux.h (REGISTER_NAMES): Changed register
3641 named "foo" to "fopo" which more accurately describes the FPU
3642 Operand Pointer Offset. The real reason for this change, of
3643 course, is that many programmers use $foo as a convenience
3644 variable and are likely to be unpleasantly surprised to find
3645 that they're unwittingly changing the state of their ia32 FPU.
3647 1999-09-03 Jason Molenda (jsm@bugshack.cygnus.com)
3649 * monitor.c (monitor_supply_register): Stop scanning val string
3650 if a newline is encountered.
3652 1999-09-03 Jason Molenda (jsm@bugshack.cygnus.com)
3654 monitor.c (TARGET_BUF_SIZE): New macro, defined to 2048.
3655 (monitor_expect_regexp, monitor_wait, monitor_dump_reg_block,
3656 monitor_dump_reg_block): Dump hard-coded constants in favor
3659 (readchar): Re-enable output of characters read from monitor when
3662 (monitor_supply_register): Use ULONGEST to hold value.
3663 Replace strtoul() call with hand-coded loop to handle values
3666 (monitor_store_register): Use ULONGEST to hold value.
3668 Fri Sep 3 00:47:44 1999 Kevin Buettner <kevinb@cygnus.com>
3670 [Merged linux/x86 floating point code from Bill Metzenthen,
3671 Jim Blandy, Anthony Green, H. J. Lu, and possibly others. The
3672 following remarks are Jim Blandy's.]
3674 * findvar.c (extract_floating): Call TARGET_EXTRACT_FLOATING, if
3676 (store_floating): Call TARGET_STORE_FLOATING, if #defined.
3678 * i386-tdep.c (i386_print_register, i386_do_registers_info): New
3680 (i386_extract_return_value): GNU/Linux returns floating point
3681 values in a floating point register too.
3682 (set_disassembly_flavor): Add prototype.
3683 (i386_extract_return_value): Use FPDATA_REGNUM, not FP0_REGNUM (
3684 which wasn't the first FP data register).
3685 (i386_do_registers_info): Use FPSTART_REGNUM and FPEND_REGNUM as
3686 the limits of the FPU-related registers.
3687 (i386_extract_return_value): Tell GDB how to find return values
3688 larger than four bytes. (Thanks to Paul N. Hilfinger for the bug
3691 * i387-tdep.c (print_387_control_word): Break out bit-splitting into...
3692 (print_387_control_bits): New function.
3693 (print_387_status_word): Break out bit-splitting into...
3694 (print_387_status_bits): New function.
3695 (i387_print_register, i387_float_info, i387_hex_float_input): New
3697 (i387_extract_floating, i387_store_floating): New functions.
3699 * valprint.c (print_floating): Use macro TARGET_ANALYZE_FLOATING,
3700 if it's #defined. Tolerate values of `nonnegative' other than
3703 * i386-linux-nat.c: New file.
3704 * Makefile.in (ALLDEPFILES): Mention i386-linux-nat.c.
3705 (i386-linux-nat.o): New rule, listing dependencies.
3706 * config/i386/linux.mh (NATDEPFILES): Use i386-linux-nat.o, not
3707 the plain i386v4-nat.o.
3708 * config/i386/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
3709 * config/i386/xm-linux.h: Define HOST_I386.
3711 * config/i386/tm-linux.h (FP0_REGNUM): Replaced by...
3712 (FPSTART_REGNUM, FPCONTROL_REGNUM, FPSTATUS_REGNUM, FPTAG_REGNUM,
3713 FPDATA_REGNUM, FPEND_REGNUM): New definitions.
3714 (REGISTER_BYTES): Changed accordingly.
3715 (SKIP_SOLIB_RESOLVER): #define this.
3716 (i386_linux_skip_solib_resolver): New declaration.
3717 (i387_float_info): Added extern decl for this function.
3718 (TARGET_EXTRACT_FLOATING, TARGET_STORE_FLOATING,
3719 TARGET_ANALYZE_FLOATING): Define.
3720 (i387_extract_floating, i387_store_floating): New extern decls.
3721 (I386_GNULINUX_TARGET): Define.
3722 (NUM_REGS, NUM_FREGS, REGISTER_NAMES, FP0_REGNUM, FPDATA_REGNUM,
3723 FPENV_BYTES, FPREG_RAW_SIZE, FPREG_BYTES, REGISTER_BYTES,
3724 REGISTER_BYTE, REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE,
3725 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
3726 TARGET_LONG_DOUBLE_BIT, FLOAT_INFO, DO_REGISTERS_INFO): New
3727 definitions, perhaps overriding those inherited from
3728 config/i386/tm-i386.h.
3729 (i386_do_registers_info, i387_print_register, double_to_i387,
3730 i387_to_double): New declarations.
3731 (LD_I387): Define iff both the host and target are using i387
3733 (HEX_FLOAT_INPUT, REGISTER_CONVERTIBLE,
3734 REGISTER_CONVERT_TO_VIRTUAL, REGISTER_CONVERT_TO_RAW,
3735 REGISTER_VIRTUAL_TYPE): Define these if LD_I387 is defined.
3737 * source.c (list_command): List the right number of source lines,
3738 even if we're at the top of the file.
3740 1999-09-02 Stan Shebs <shebs@andros.cygnus.com>
3742 * infrun.c (step_over_function): New function, broken out from the
3743 step_over_function label in handle_inferior_event.
3744 (handle_inferior_event): Change a goto into a function call.
3746 Thu Sep 2 18:26:04 1999 Andrew Cagney <cagney@b1.cygnus.com>
3748 * Makefile.in (GDB_WERROR_CFLAGS, GBB_WARN_CFLAGS): Define.
3749 (INTERNAL_CFLAGS): Update
3750 * configure.in (WERROR_CFLAGS, WARN_CFLAGS): Sync with
3751 ../sim/common/aclocal.m4.
3752 * configure: Re-generate.
3754 Thu Sep 2 00:27:36 1999 Andrew Cagney <cagney@b1.cygnus.com>
3756 * Makefile.in (z8k-tdep.o): For moment, don't try to compile with
3757 -Werror. See Makefile.in.
3758 * z8k-tdep.c (z8k_set_pointer_size): Document problem.
3760 * config/z8k/tm-z8k.h (z8k_print_register_hook, z8k_frame_chain,
3761 z8k_saved_pc_after_call, z8k_frame_saved_pc,
3762 z8k_set_pointer_size): Declare.
3763 (z8k_skip_prologue): Fix typo. Was mz8k_skip_prologue.
3764 (FRAME_CHAIN, PRINT_REGISTER_HOOK, FRAME_SAVED_PC,
3765 SAVED_PC_AFTER_CALL): Update.
3766 * z8k-tdep.c (z8k_print_register_hook): Rename
3767 z8k_print_register_hook.
3768 (z8k_frame_chain): Rename frame_chain.
3769 (z8k_saved_pc_after_call): Rename saved_pc_after_call.
3770 (z8k_frame_saved_pc): Rename frame_saved_pc.
3771 (z8k_print_register_hook): Fix printf.
3772 (read_memory_pointer): Add declaration.
3773 ("value.h"): Include.
3774 * Makefile.in (z8k-tdep.o): Add dependency on value.h.
3776 * config/sparc/tm-sparc.h (PRINT_EXTRA_FRAME_INFO): Fix
3778 * Makefile.in (remote-e7000.o): For moment, don't try to compile
3779 with -Werror. See Makefile.in.
3780 * sh-tdep.c (sh_show_regs): Fix printf calls.
3781 * xcoffsolib.c (solib_info): Fix Printf calls.
3782 * dink32-rom.c: #include "symfile.h" for generic_load and
3783 "inferior.h" for write_pc.
3784 * Makefile.in (dink32-rom.o): Update.
3786 * config/mn10300/tm-mn10300.h (mn10300_store_struct_return),
3787 config/mn10200/tm-mn10200.h (mn10200_store_struct_return): Add
3790 Tue Aug 31 00:48:27 1999 Andrew Cagney <cagney@amy.cygnus.com>
3792 * config/mips/tm-tx49el.h (REGISTER_SIM_REGNO): Define.
3794 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
3795 Pass REGISTER_SIM_REGNO converted register number to the
3798 1999-09-01 Tom Tromey <tromey@cygnus.com>
3800 * config/i386/nm-linux.h (PREPARE_TO_PROCEED): Added argument.
3802 1999-09-01 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
3804 * values.c (value_virtual_fn_field): Remove unused var(s).
3805 * thread.c (prune_threads): Ditto.
3806 * symtab.c (lookup_transparent_type): Ditto.
3807 (decode_line_1): Ditto.
3808 (make_symbol_overload_list): Ditto.
3809 * rs6000-tdep.c (frame_get_saved_regs): Ditto.
3810 (set_processor): Ditto.
3811 * remote.c (remote_remove_breakpoint): Ditto.
3812 (remote_query): Ditto.
3814 * remote-sds.c (sds_fetch_registers): Ditto.
3815 (putmessage): Ditto.
3816 * ppcbug-rom.c (ppcbug_supply_register): Ditto.
3817 (ppcbug_open): Remove unused prototype.
3818 * parse.c (parse_nested_classes_for_hpacc): Remove unused var(s).
3819 * ocd.c (ocd_open): Ditto.
3820 (ocd_get_packet): Ditto.
3821 * monitor.c (monitor_error): Ditto.
3822 (monitor_wait_srec_ack): Ditto.
3823 * main.c (main): Ditto.
3824 * gdbtypes.c (count_virtual_fns): Ditto.
3825 * exec.c (exec_file_command): Ditto.
3827 * event-top.c: Include handle_sigwinch() function prototype within
3830 * eval.c (evaluate_subexp_standard): Remove unused variable.
3831 (evaluate_subexp_standard): Remove unused variables.
3832 * dink32-rom.c (dink32_supply_register): Remove unused variable.
3833 * dbxread.c (elfstab_build_psymtabs): Ditto.
3834 * command.c (do_setshow_command): Ditto.
3835 * breakpoint.c (solib_load_unload_1): Remove unused variables 'i'
3837 (until_break_command): Remove unused variables 'arg1' and 'arg2'.
3838 (create_exception_catchpoint): Remove unused variable 'i'.
3839 * ax-gdb.c (gen_sub): Remove unused variable.
3840 (_initialize_ax_gdb): Ditto.
3842 * ser-pipe.c (pipe_readchar): If timeout is expired return
3844 * ser-tcp.c (tcp_readchar): If timeout is expired return
3847 Wed Sep 1 15:07:25 1999 Andrew Cagney <cagney@b1.cygnus.com>
3849 * version.h: New file.
3850 * Makefile.in (version_h): Define.
3851 (version.o): Add target.
3853 * remote-array.c: #include "version.h".
3854 (version): Delete extern declarations.
3855 * Makefile.in (remote-array.o): Add dependency on version.h.
3857 * top.c: #include "version.h".
3858 (version, host_name, target_name): Delete extern declarations.
3859 * Makefile.in (top.o): Add dependency on version.h.
3861 * remote.c (remote_remove_watchpoint, remote_insert_watchpoint),
3862 remote-array.c (array_open), remote-mips.c (send_srec),
3863 dve3900-rom.c (store_bitmapped_register): Fix Printfs.
3865 * mips-tdep.c (mips_print_extra_frame_info, print_unpack),
3866 m32r-rom.c (m32r_load_section), m32r-tdep.c (m32r_frame_chain),
3867 dsrec.c (load_srec): Fix printf problems.
3869 Wed Sep 1 13:16:49 1999 Andrew Cagney <cagney@b1.cygnus.com>
3871 * Makefile.in (monitor.o): For moment, don't try to compile with
3872 -Werror. monitor.c has -Wformat problems. See Makefile.in for
3875 Tue Aug 31 21:23:38 1999 Jeffrey A Law (law@cygnus.com)
3877 * hppa-tdep.c (prologue_inst_adjust_sp): Correct offset computation
3878 for doubleword store instructions.
3879 (hppa_frame_find_saved_regs): Similarly.
3881 Wed Sep 1 09:22:50 1999 Andrew Cagney <cagney@b1.cygnus.com>
3883 * d30v-tdep.c (d30v_print_register):
3884 (tdisassemble_command):
3886 * d10v-tdep.c (show_regs, trace_info, tdisassemble_command): Fix
3889 * remote-sim.c (dump_mem), remote-rdi.c (arm_rdi_create_inferior):
3890 Fix printf arguments.
3892 * remote-mips.c, mips-tdep.c: Move declaration of
3893 ``mips_set_processor_type_command'' from here.
3894 * config/mips/tm-mips.h: To here.
3895 * remote-array.c: #include "inferior.h".
3896 * config/mips/tm-embed.h (remote_mips_stopped_by_watchpoint): Add
3898 * remote-mips.c (remote_mips_stopped_by_watchpoint): Define using
3900 (monitor_supports_breakpoints): Integer variable.
3902 * m32r-rom.c: #include "inferior.h" and <ctype.h>
3903 * config/m32r/tm-m32r.h (m32r_write_sp): Add declaration.
3905 * config/i960/tm-i960.h (leafproc_return, i960_pop_frame): Add
3907 (POP_FRAME): Call i960_pop_frame.
3908 * i960-tdep.c (i960_pop_frame): Rename pop_frame.
3909 * mon960-rom.c: #include "inferior.h" for declaration of write_pc.
3911 1999-08-15 Fred Fish <fnf@cygnus.com>
3913 * objfiles.c (objfile_relocate): Use SIZEOF_SECTION_OFFSETS when
3914 allocating section_offsets array.
3915 * remote-os9k.c (rombug_wait): Ditto.
3916 * remote-vx.c (vx_add_symbols): Ditto.
3917 * remote.c (get_offsets): Ditto.
3918 (remote_cisco_objfile_relocate): Ditto.
3919 * rs6000-nat.c (vmap_symtab): Ditto.
3921 * dstread.c (dst_symfile_offsets): Set section_offsets directly instead
3922 of returning a pointer to section offsets.
3923 * somread.c (som_symfile_offsets): Ditto.
3924 * xcoffread.c (xcoff_symfile_offsets): Ditto.
3925 * symfile.c (default_symfile_offsets): Ditto.
3926 (syms_from_objfile): The sym_offsets function has already set section
3927 offsets and no longer returns a value.
3929 * xcoffread.c (scan_xcoff_symtab): Eliminate section_offsets passed
3930 separate from objfile.
3931 (xcoff_start_psymtab): Ditto.
3932 (START_PSYMTAB): Ditto.
3933 * os9kread.c (read_minimal_symbols): Ditto.
3934 (read_os9k_psymtab): Ditto.
3935 (os9k_start_psymtab): Ditto.
3936 (record_minimal_symbol): Ditto.
3937 * dbxread.c (START_PSYMTAB): Ditto.
3938 (start_psymtab): Ditto.
3939 * mdebugread.c (START_PSYMTAB): Ditto.
3940 (elfmdebug_build_psymtabs): Ditto.
3941 (mdebug_build_psymtabs): Ditto.
3942 (parse_partial_symbols): Ditto.
3943 (new_psymtab): Ditto.
3944 * dwarfread.c (dwarf_build_psymtabs): Ditto.
3945 * partial-stab.h (START_PSYMTAB): Ditto.
3946 * stabsread.h (start_psymtab): Ditto.
3947 * dwarf2read.c (dwarf2_build_psymtabs): Ditto.
3948 (dwarf2_build_psymtabs_easy): Ditto.
3949 (dwarf2_build_psymtabs_hard): Ditto.
3950 * hp-psymtab-read.c (hpread_build_psymtabs): Ditto.
3951 (hpread_quick_traverse): Ditto.
3952 (hpread_start_psymtab): Ditto.
3953 (scan_procs): Ditto.
3954 * hpread.c (hpread_build_psymtabs): Ditto.
3955 * symfile.h (dwarf2_build_psymtabs): Ditto.
3957 * dbxread.c (read_dbx_symtab): Use ANOFFSET to access section
3959 * coffread.c (enter_linenos): Pass objfile instead of section
3962 * dbxread.c (dbx_symfile_read): No need to explicitly pass
3963 text addr and size. Let read_dbx_symtab find them.
3964 (read_dbx_symtab): Get text addr and size from objfile.
3965 (dbx_symfile_read): Remove dead code (call to strlen);
3967 1999-08-31 Michael Snyder <msnyder@cleaver.cygnus.com>
3969 * Makefile.in: add rule for sol-thread.o.
3970 Add rule for linux-thread.o.
3972 1999-08-13 Jim Kingdon <kingdon@redhat.com>
3974 Threads code from gdb 4.18-codefusion-990706
3975 [Thanks to Eric Paire, H. J. Lu, Jim Blandy and others]
3976 * infrun.c (signal_stop_update, signal_print_update,
3977 signal_pass_update): new functions.
3978 * inferior.h: new prototypes for above functions.
3979 * target.h (enum strata): add thread stratum.
3980 * linux-thread.c: new file. Support for debugging linux threads.
3981 * config/i386/nm-linux.h: several new prototypes for above.
3982 * config/i386/linux.mh: add linux-thread.o to NATDEPFILES.
3984 More threads code from the same place:
3985 * config/i386/tm-linux.h (REALTIME_LO, REALTIME_HI): Add
3987 * target.h (enum target_signal): Add TARGET_SIGNAL_REALTIME_32.
3988 * target.c (signals, target_signal_from_host,
3989 target_signal_to_host): Add clauses for
3990 TARGET_SIGNAL_REALTIME_32.
3992 1999-08-31 Neil Schellenberger <neil.schellenberger@crosskeys.com>
3994 * sol-thread.c (sol_thread_detach): strip thread-id out of
3995 inferior_pid, so that procfs_detach can't choke on it.
3997 1999-08-31 J.T. Conklin <jtc@redback.com>
3999 * i386-stub.c, m32r-stub.c, m68k-stub.c, sh-stub.c, sparc-stub.c,
4000 sparcl-stub.c, sparclet-stub.c (getpacket): Remove 'buffer' arg,
4001 define it as a pointer to &remcomInBuffer[0].
4002 (handle_exception): Update.
4004 * sparc-stub.c, sparcl-stub.c, sparclet-stub.c (handle_exception):
4005 Removed #ifdef'd out code which implements the non-standard 'b'
4006 (set baud rate) command.
4008 1999-08-31 Stan Shebs <shebs@andros.cygnus.com>
4010 * infrun.c (keep_going): New function, broken out from the
4011 keep_going label in handle_inferior_event.
4012 (handle_inferior_event): Change more gotos into function calls.
4014 Tue Aug 31 02:29:27 1999 Jeffrey A Law (law@cygnus.com)
4016 * hppa-tdep.c (read_unwind_info): Handle multiple unwind sections.
4018 Tue Aug 31 15:28:44 1999 Andrew Cagney <cagney@b1.cygnus.com>
4020 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Fix printf
4022 * alpha-tdep.c (heuristic_proc_start): Ditto.
4024 From Stan Shebs <shebs@andros.cygnus.com>:
4025 * defs.h (strlen_paddr): Fix prototype - add void argument list.
4027 Tue Aug 31 14:02:12 1999 Andrew Cagney <cagney@b1.cygnus.com>
4029 * defs.h (gdb_print_host_address), utils.c
4030 (gdb_print_host_address): Rename gdb_print_address.
4032 * expprint.c, gdbtypes.c, symmisc.c: Update.
4034 *expprint.c: Use gdb_print_host_address when displaying native
4037 Sat Aug 28 14:23:29 1999 Andrew Cagney <cagney@b1.cygnus.com>
4039 * scm-valprint.c (scm_ipruk), jv-valprint.c (java_value_print),
4040 cp-valprint.c (cp_print_class_member), exec.c (exec_files_info),
4041 remote.c (putpkt_binary, compare_sections_command,
4042 remote_cisco_section_offsets), dcache.c (dcache_info),
4043 breakpoint.c (break_at_finish_at_depth_command_1,
4044 break_at_finish_command_1), symfile.c (generic_load),
4045 (report_transfer_performance), top.c (get_prompt_1), f-valprint.c
4046 (f_val_print), maint.c (maintenance_translate_address): Fix printf
4047 -Wformat warnings. Use paddr, paddr_nz, sizeof_paddr, paddr_u and
4048 paddr_d to print addresses. Change ``d'' to ``ld''.
4050 * utils.c (strlen_paddr): New function.
4052 Tue Aug 31 01:36:44 1999 Andrew Cagney <cagney@b1.cygnus.com>
4054 * config/d30v/tm-d30v.h (d30v_frame_chain,
4055 d30v_init_frame_pc): Add declaration.
4057 * arc-tdep.c (arc_pop_frame): Rename pop_frame.
4058 (arc_push_dummy_frame): Rename push_dummy_frame.
4059 (arc_set_cpu_type_command): Add declaration.
4061 * config/arc/tm-arc.h (arc_pop_frame, arc_push_dummy_frame): Add
4064 1999-08-30 Stan Shebs <shebs@andros.cygnus.com>
4066 * infrun.c (prepare_to_wait): New function, broken out from the
4067 wfi_continue label in handle_inferior_event.
4068 (handle_inferior_event): Change more gotos into function calls.
4070 1999-08-30 Michael Snyder <msnyder@cleaver.cygnus.com>
4072 * tracepoint.c: -Wall warning cleanup.
4073 (parse_and_eval_memrange): remove (unused).
4074 (output_command, args_info, locals_info, registers_info): add decls.
4075 (getpkt, putpkt, remote_console_output): add decls.
4076 (isalnum, isspace): cast arg to avoid warning.
4077 (printf, fprintf, sprintf): use [fs]printf_vma for printing addrs.
4079 Mon Aug 30 21:47:58 1999 Andrew Cagney <cagney@b1.cygnus.com>
4081 * d10v-tdep.c: #include "language.h".
4083 Mon Aug 30 20:38:57 1999 Andrew Cagney <cagney@b1.cygnus.com>
4085 * configure.in (AC_CHECK_HEADERS): Check for <time.h>.
4086 * configure, acconfig.in: Re-generate.
4088 * remote-rdp.c: #include <time.h>
4090 * config/arm/tm-arm.h (arm_float_info): Add declaration.
4092 * arm-tdep.c (convert_from_extended, convert_to_extended): Change
4093 double ptr arg to void ptr arg.
4095 * config/arm/tm-arm.h (arm_frameless_function_invocation): Add
4097 (arm_frame_find_saved_regs): Rename frame_find_saved_regs.
4098 (convert_from_extended, convert_to_extended): Add declaration.
4100 Mon Aug 30 19:05:32 1999 Andrew Cagney <cagney@b1.cygnus.com>
4102 * configure.in (WERR_CFLAGS): Separate the -Werror flag.
4103 * configure: Re-generate.
4105 * Makefile.in (INTERNAL_CFLAGS): Re-define using
4106 INTERNAL_WARN_CFLAGS.
4107 (INTERNAL_WARN_CFLAGS): Define. Leave off WERR_CFLAGS.
4108 (tracepoint.o): Add explicit rule.
4109 (WERR_CFLAGS): Add definition.
4111 Mon Aug 30 17:52:17 1999 Andrew Cagney <cagney@b1.cygnus.com>
4113 * utils.c: #include "event-loop.h" for declaration of
4115 * Makefile.in (utils.o): Add dependency on event-loop.h.
4117 * event-top.c (mark_async_signal_handler_wrapper,
4118 async_request_quit): Move declaration from here.
4119 * event-loop.h: To here.
4121 * defs.h: Add declaration of exec.c:exec_set_section_offsets.
4123 * event-top.c: #include "gdbcmd.h" which includes "command.h" and
4124 hence expose declaration of function dont_repeat.
4126 * top.c (ISATTY), tracepoint.c (ISATTY), utils.c (ISATTY),
4127 event-top.c (ISATTY): Move definitions from here.
4128 * defs.h (ISATTY): To here. #include <unistd.h>.
4130 * sol-thread.c, solib.c, source.c, sparcl-tdep.c, tracepoint.c,
4131 utils.c, win32-nat.c, wince.c, top.c, symfile.c, ser-unix.c,
4132 ser-tcp.c, procfs.c, maint.c, infttrace.c, hppa-tdep.c,
4133 ser-pipe.c, remote-rdp.c, main.c, inftarg.c, inflow.c,
4134 hpux-thread.c, hp-psymtab-read.c, go32-nat.c, fork-child.c,
4135 corelow.c, command.c: Do not #include <unistd.h>, moved to defs.h.
4137 Mon Aug 30 15:14:43 1999 Andrew Cagney <cagney@b1.cygnus.com>
4139 * defs.h (struct tui_stream, enum streamtype): Move from here.
4142 * main.c (tui_file_fputs): Move from here.
4145 Sun Aug 29 10:03:32 1999 Andrew Cagney <cagney@b1.cygnus.com>
4147 * gdb-events.h, gdb-events.c, gdb-events.sh: New files.
4149 1999-08-27 Michael Snyder <msnyder@cleaver.cygnus.com>
4151 * solib.c (open_symbol_file_object): new function.
4152 Called when attaching to a new process, if there is no loaded
4153 symbol file. Attempts to locate the executable file for the
4154 attached process and load symbols from it.
4155 (solib_add): Call open_symbol_file_object if attaching to a
4156 new process and no open symbol file.
4158 1999-08-27 Jason Molenda (jsm@bugshack.cygnus.com)
4160 * config/i386/tm-sun386.h (GDB_TARGET_IS_SUN386): Definition
4161 removed--no longer checked anywhere in gdb.
4163 1999-08-27 Stan Shebs <shebs@andros.cygnus.com>
4165 * infrun.c (stop_stepping): New function, broken out from
4166 stop_stepping label in handle_inferior_event.
4167 (handle_inferior_event): Change gotos into function calls.
4169 Fri Aug 27 20:13:22 1999 Andrew Cagney <cagney@b1.cygnus.com>
4171 * defs.h (LONGEST): Move definition to earlier in file - to just
4173 (paddr_u, paddr_d): Declare.
4174 * utils.c (decimal2str): New function.
4175 (paddr_u, paddr_d): Define.
4177 * remote.c (remote_cisco_section_offsets,
4178 compare_sections_command): Fix XprintfX arguments. Use paddr...
4179 (putpkt_binary): Fix XprintfX arguments.
4181 Tue Aug 24 21:30:36 1999 Andrew Cagney <cagney@b1.cygnus.com>
4183 * arm-tdep.c (arm_init_extra_frame_info): Add braces. Recommended
4184 by gcc -Wparentheses.
4186 1999-08-26 Stan Shebs <shebs@andros.cygnus.com>
4188 * infrun.c (check_sigtramp2): New function, broken out from
4189 check_sigtramp2 label in handle_inferior_event.
4190 (handle_inferior_event): Change gotos into function calls.
4192 Declare Tahoe configuration obsolete.
4193 * configure.host, configure.tgt: Comment out Tahoe configs.
4194 * Makefile.in: Comment out Tahoe-related action.
4195 * tahoe-tdep.c, config/tahoe/*: Comment out.
4196 * NEWS: Mention obsolete status.
4198 1999-08-26 J.T. Conklin <jtc@redback.com>
4200 * i386-stub.c, m32r-stub.c, m68k-stub.c, sh-stub.c, sh-stub.c,
4201 sparc-stub, sparcl-stub.c sparclet-stub.c (getpacket): If '$',
4202 the packet start character is received in the 'middle' of a
4203 packet, assume that packet end character has been lost and
4206 * i386-stub.c, m32r-stub.c, m68k-stub.c, sh-stub.c, sparc-stub.c,
4207 sparcl-stub.c sparclet-stub.c (getpacket): Changed to return ptr
4208 to first character of input buffer. Removed & 0x7f masks.
4209 (handle_exception): Don't access remcomInBuffer directly.
4211 1999-08-25 Stan Shebs <shebs@andros.cygnus.com>
4213 * breakpoint.c (disable_breakpoints_in_shlibs): Only disable
4214 enabled breakpoints.
4216 Tue Aug 24 14:59:23 1999 Andrew Cagney <cagney@b1.cygnus.com>
4218 * tracepoint.c, remote.c, pa64solib.h, value.h, somsolib.h,
4219 solib.h, scm-lang.h, language.h, inferior.h, defs.h, coff-solib.h,
4220 ch-lang.h, breakpoint.h, annotate.h: Remove #if __STDC__ wrapping
4221 struct declarations.
4223 * config/sparc/nm-sun4sol2.h, config/mn10300/tm-mn10300.h,
4224 config/mn10200/tm-mn10200.h, config/i386/tm-i386.h,
4225 config/i386/tm-i386v.h, config/i386/nm-i386sol2.h,
4226 config/pa/nm-hppah.h, config/rs6000/nm-rs6000.h,
4227 config/sparc/tm-sp64.h, config/v850/tm-v850.h,
4228 config/tic80/tm-tic80.h, config/sparc/tm-sparc.h,
4229 config/sh/tm-sh.h, config/rs6000/tm-rs6000.h, config/pa/tm-hppa.h,
4230 config/mips/tm-mips.h, config/m68k/tm-m68k.h,
4231 config/m32r/tm-m32r.h, config/i960/tm-mon960.h,
4232 config/fr30/tm-fr30.h, config/h8300/tm-h8300.h,
4233 config/arm/tm-arm.h, config/alpha/tm-alpha.h,
4234 config/a29k/tm-a29k.h: Ditto.
4236 Wed Aug 25 10:45:33 1999 Andrew Cagney <cagney@b1.cygnus.com>
4238 * Makefile.in (gdb$(EXEEXT)): Add dependency on TDEPLIBS.
4240 * config/arm/arm.mt (TDEPLIBS): Define. Move libangsd.a to here.
4241 (TDEPFILES): From here.
4243 1999-08-24 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
4245 * top.c (init_main): Add new set/show command exec-done-display,
4246 default value is off.
4247 * event-loop.h: Export exec_done_display_p.
4248 * event-top.c: New variable exec_done_display_p.
4249 * infrun.c (complete_execution): Print completion message if
4250 corresponding flag is set.
4252 * top.c (DEFAULT_PROMPT): Add space after "(gdb)" at end of prompt.
4254 From: J.T. Conklin <jtc@redback.com>
4255 * top.c (DEFAULT_PROMPT): Set to "(gdb)" if not already defined.
4256 (init_main): Always use DEFAULT_PROMPT.
4258 Tue Aug 24 03:23:31 1999 Jeffrey A Law (law@cygnus.com)
4260 * hppa-tdep.c: Remove useless "purecov: deadcode" comments.
4261 (hppa_use_struct_convention): Update for PA64.
4262 (hppa_frame_saved_pc): Properly extract the saved PC in a call
4264 (in_solib_call_trampoline): Return nonzero if we are in a function
4266 (prologue_inst_adjust_sp): Handle std,ma.
4267 (skip_prologue_hard_way): Handle more PA2.0/PA64 insns.
4268 (hppa_frame_find_saved_regs): Similarly. Handle indirect save of
4271 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Define.
4272 (CALL_DUMMY_BREAKPOINT_OFFSET): Define.
4274 Tue Aug 24 14:59:23 1999 Andrew Cagney <cagney@b1.cygnus.com>
4276 * Makefile.in (gdb$(EXEEXT)): Add dependency on main.o that was
4277 lost when libgdb.a was added.
4279 Tue Aug 24 14:26:34 1999 Andrew Cagney <cagney@b1.cygnus.com>
4281 * gdbarch.c, gdbarch.h: Convert to pure ISO-C.
4283 * gdbarch.sh: New file.
4284 * gdbarch.c, gdbarch.h: Add note describing gdbarch.sh
4286 Mon Aug 23 19:36:17 1999 Andrew Cagney <cagney@b1.cygnus.com>
4288 * Makefile.in (libgdb.a): New target.
4289 (gdb$(EXEEXT)): Add dependency on libgdb.a.
4290 (libgdb-files, LIBGDB_OBS, libgdb, LIBGDBDEPS, LIBGDBFILES): Delete.
4292 Mon Aug 23 10:16:32 1999 Jeffrey A Law (law@cygnus.com)
4294 * infttrate.c (child_pid_to_exec_file): Find the correct base
4295 of the stack for PA64.
4297 * pa64solib.c: Fix some minor whitespace problems.
4298 (bfd_lookup_symbol): New function.
4299 (pa64_solib_create_inferior_hook): Find the address __dld_break
4300 in the dynamic linker. Try to set a shlib event breakpoint in
4302 (add_to_solist): Do not add the same shared library to the shlib
4303 list more than once.
4305 Sun Aug 22 14:49:40 1999 Andrew Cagney <cagney@b1.cygnus.com>
4307 * value.h (enum lval_type): Move declaration from here.
4308 * defs.h (enum lval_type): To here.
4309 * frame.h, gdbarch.h: Delete incomplete declaration of ``enum
4312 1999-08-20 Michael Snyder <msnyder@cleaver.cygnus.com>
4314 * breakpoint.c (can_use_hardware_watchpoint): reject expressions
4315 that refer to registers or register variables.
4317 Fri Aug 20 10:53:38 1999 Jeffrey A Law (law@cygnus.com)
4319 * hppa-tdep.c (hppa_fix_call_dummy): Provide PA2.0W aware code.
4321 * pa64solib.c pa64solib.h: New files.
4323 * config/pa/hppa64.mt: Delete commented out code that is and
4324 never will be appropriate for this target.
4325 * config/pa/hpux11w.mt (TDEPFILES): Remove SOM references. Also
4327 * config/pa/hpux11w.mh (NATDEPFILES): Remove SOM references.
4329 * configure.host; Use "hpux11w" and "hpux11" instead of
4330 "hpux1100w" and "hpux1100" respectively
4331 * config/pa/hpux11w.mh: Renamed from hpux1100w.mh.
4332 * config/pa/hpux11w.mt, config/pa/hpux11.mh: Likewise.
4333 * config/pa/hpux11.mt: Likewise.
4335 1999-08-19 Michael Snyder <msnyder@cleaver.cygnus.com>
4337 * breakpoint.h (target_hw_bp_type): new enum.
4338 * breakpoint.c (insert_breakpoints): use enum instead of consts.
4339 (remove_breakpoint): use enum instead of consts.
4340 (throughout): use "warning" instead of "fprintf(stderr, ..."
4341 [Also clean up a bunch of excessively long lines.]
4343 1999-08-19 J.T. Conklin <jtc@redback.com>
4345 * i386-stub.c (waitabit): Removed.
4346 (breakpoint): Update.
4348 * i386-stub.c, m32r-stub.c, sparc-stub.c, sparcl-stub.c,
4349 sparclet-stub.c (set_debug_traps): Don't send gratuitous ACK.
4351 * m68k-stub.c (putpacket): Restore code so that packets are sent
4352 until an ACK is received.
4354 1999-08-19 Eli Zaretskii <eliz@is.elta.co.il>
4356 * breakpoint.c (bpstat_stop_status): Accept triggered addresses
4357 anywhere inside the region occupied by a watched variable as a
4358 sign that the watchpoint fired. Don't stop if some watchpoint
4359 was triggered, but its address doesn't match the address of this
4361 (TARGET_REGION_OK_FOR_HW_WATCHPOINT): New macro.
4362 Default definition is to call TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT.
4363 (can_use_hardware_watchpoint): Call TARGET_REGION_OK_FOR_HW_WATCHPOINT;
4364 if it returns zero, return zero immediately.
4365 (insert_breakpoints): Try to insert watchpoints for all the values
4366 on the value chain, even if some of them fail to insert. Remove
4367 the breakpoint if parts of its value chain couldn't be inserted.
4369 1999-08-19 Eli Zaretskii <eliz@is.elta.co.il>
4371 * go32-nat.c (go32_stopped_by_watchpoint): Remove unused code.
4373 1999-08-19 Eli Zaretskii <eliz@is.elta.co.il>
4375 * go32-nat.c (tcgetpgrp, tcsetpgrp): New functions.
4377 1999-08-19 Eli Zaretskii <eliz@is.elta.co.il>
4379 * go32-nat.c (go32_wait): If we are in a single-step mode, and the
4380 next instruction is INT nn or INTO, use a temporary breakpoint to
4381 simulate single-step mode, and reset the trace flag.
4383 1999-08-19 Eli Zaretskii <eliz@is.elta.co.il>
4385 * go32-nat.c (wp_op): New typedef.
4386 (SHOW_DR): Print the length of watched region as well.
4387 (go32_insert_aligned_watchpoint): Remove unused argument PID. All
4388 callers and the prototype changed.
4389 (go32_handle_nonaligned_watchpoint): Renamed from
4390 go32_insert_nonaligned_watchpoint. Now handles all operations on
4391 non-aligned watchpoints: insertion, deletion, and counting. If
4392 called with wp_count as the first argument, return the count of
4393 debug registers needed to watch the region. Don't break out of
4394 the loop before all the addresses in the region are processed.
4395 (go32_remove_watchpoint): Call go32_remove_aligned_watchpoint to
4397 (go32_remove_aligned_watchpoint): New function, modeled after
4398 go32_insert_aligned_watchpoint. Removes watchpoints that watch
4399 regions of arbitrary length by calling
4400 go32_handle_nonaligned_watchpoint as needed.
4401 (go32_region_ok_for_watchpoint): New function, called from
4402 can_use_hardware_watchpoint via the new macro
4403 TARGET_REGION_OK_FOR_HW_WATCHPOINT.
4405 * config/i386/nm-go32.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
4406 Define to call go32_region_ok_for_watchpoint.
4407 (DECR_PC_AFTER_HW_BREAK): Define back to zero (previous redefinition
4408 to 1 was due to a bug in go32-nat.c).
4410 1999-08-19 Eli Zaretskii <eliz@is.elta.co.il>
4412 * go32-nat.c (cleanup_dregs): New function.
4413 (go32_mourn_inferior): Call it.
4414 (IS_REG_FREE, LOCAL_ENABLE_REG, GLOBAL_ENABLE_REG, DISABLE_REG,
4415 SET_BREAK, SET_WATCH, IS_WATCH, WATCH_HIT): Protect arguments with
4417 (SET_BREAK): Increment the debug register's reference count.
4418 (DR_DEF): New macro, returns the access and length bits of the
4420 (SHOW_DR): Print the reference count of each register. Disable or
4421 enable print-out depending on an environment variable GDB_SHOW_DR.
4422 (go32_insert_aligned_watchpoint): Look for an occupied debug
4423 register with the same address and access/length bits, and reuse
4424 it by incrementing reference the count, before occupying another
4425 register. Return zero upon success.
4426 (go32_insert_nonaligned_watchpoint): Pass the read/write bits to
4427 go32_remove_watchpoint.
4428 (go32_remove_watchpoint): Accept an additional parameter: the
4429 read/write bits of the watchpoint to remove, and only remove a
4430 watchpoint if it's occupied and its address and read/write bits
4431 match. Only disable the register if its reference count is zero;
4432 otherwise just decrease the reference count.
4433 (go32_remove_hw_breakpoint): Only decrease reference count and
4434 disable the debug register if it is occupied and its access bits
4435 match those of an instruction breakpoint.
4436 (go32_insert_hw_breakpoint): Before occupying another debug
4437 register, look for an already occupied register that defines an
4438 instruction breakpoint with the same address. If found, increment
4439 its reference count. Call SHOW_DR even if failed to insert a
4442 * config/i386/nm-go32.h (target_remove_watchpoint): Accept the
4443 TYPE argument as well.
4445 Wed Aug 18 17:47:25 1999 Andrew Cagney <cagney@b1.cygnus.com>
4447 * mips-tdep.c: Add more comments.
4449 1999-08-17 Stan Shebs <shebs@andros.cygnus.com>
4451 * blockframe.c: Don't use PARAMS anymore, remove obsolete comment
4452 about frameless functions.
4454 1999-08-16 Michael Snyder <msnyder@cleaver.cygnus.com>
4456 * thread.c (delete_thread): delete any step_resume breakpoint
4457 held by the thread. (prune_threads): call delete_thread.
4458 * breakpoint.c (breakpoint_init_inferior): if startup, then
4459 delete any remaining step_resume breakpoints.
4460 * infrun.c (handle_inferior_event): add cautionary comment.
4462 1999-08-16 Fernando Nasser <fnasser@totem.to.cygnus.com>
4464 * remote.c (remote_async_mourn): New function. Async version of
4467 1999-08-16 Eli Zaretskii <eliz@is.elta.co.il>
4469 * terminal.h [__GO32__]: Remove conditional; DJGPP now supports
4472 1999-08-16 Eli Zaretskii <eliz@is.elta.co.il>
4474 * command.c (CANT_FORK) [__MSDOS__]: Define.
4475 (shell_escape) [CANT_FORK]: If ARG is NULL, pass an empty string
4477 [__DJGPP__]: Return to the original directory after the shell
4480 1999-08-16 Eli Zaretskii <eliz@is.elta.co.il>
4482 * config/i386/xm-go32.h (ROOTED_P): Don't reference X[1] if X[0]
4483 is a null character.
4485 * config/i386/nm-go32.h (DECR_PC_AFTER_HW_BREAK): Define to 1.
4487 1999-08-16 Eli Zaretskii <eliz@is.elta.co.il>
4489 * go32-nat.c (redir_cmdline_parse, redir_cmdline_delete,
4490 redir_to_child, redir_to_debugger, redir_debug_init)
4491 [__DJGPP_MINOR__ < 3]: Dummy stubs for redirecting debuggee's
4493 (print_387_status): Print "last FP instruction", not "last
4494 exception". Restore the upper 5 bits of the opcode that aren't
4495 stored in the FPU state. Print the FPU stack in its physical
4496 order, not relative to ST(0). Print "special", not "trap" for
4497 unnormals and infinities. Print all 10 bytes of each FP register,
4498 and print them with 19 significant digits.
4499 (regno_mapping): Make the mapping consistent with tm-go32.h.
4500 (sig_map): Add mappings for SIGQUIT, SIGFPE, SIGALRM. Map NMI to
4502 (excep_map): New variable, maps GDB signals to DJGPP exceptions.
4503 (go32_attach): Signal an error: we cannot attach to other
4505 (go32_resume): Record the signal with which the inferior should be
4506 resumed, mapped to the DJGPP exception number.
4507 (go32_wait): Pass the signal recorded in go32_resume to the
4508 debuggee. Save and restore debugger's and debuggee's current
4510 [__DJGPP_MINOR__ < 3]: Save and restore inferior's FPU state.
4511 (store_register): FPU regsiters have numbers less than 31.
4512 (go32_kill_inferior): Delete the parsed command-line storage.
4513 (go32_create_inferior): Initialize the parsed command-line
4514 storage. Parse the command line and create the redirections for
4515 inferior's standard handles.
4516 [__DJGPP_MINOR__ < 3]: Init the inferior's FPU state.
4517 (ignore2): Function deleted.
4518 (device_mode): New function, switches a character device between
4519 raw and cooked mode.
4520 (go32_terminal_init): Invalidate the raw/cooked mode information.
4521 (go32_terminal_info): Print whether the inferior's terminal is in
4523 [__DJGPP_MINOR__ > 2]: Say if standard handles are redirected or
4524 closed by the inferior.
4525 (go32_terminal_inferior): Switch standard handles to the
4526 inferior's files/devices. Put the inferior's input device to
4527 raw/cooked mode, exactly like we found it last time.
4528 (go32_terminal_ours): Restore debugger's standard handles and put
4529 the terminal into cooked mode. Save the mode of inferior's input
4531 (init_go32_ops): Assign go32_ops.to_attach,
4532 go32_ops.to_terminal_info, go32_ops.to_terminal_ours_for_output.
4533 Initialize inferior's cwd and the command-line storage.
4535 Mon Aug 16 14:29:30 1999 Jeffrey A Law (law@cygnus.com)
4537 * config/pa/tm-hppa.h (ARGS_GROW_DOWNWARD): Define.
4538 * config/pa/tm-hppa64.h (ARGS_GROW_DOWNWARD): Undefine.
4539 * hppa-tdep.c (hppa_push_arguments): Handle arguments growing in
4540 both directions depending ARGS_GROW_DOWNWARD.
4541 (hppa_find_saved_regs): Update for 64bit wide registers & pointers
4544 * hppa-tdep.c (hppa_pop_frame): Various fixes for 64bit wide
4545 registers and pointers.
4546 (hppa_fix_call_dummy, skip_trampoline_code): Likewise.
4547 (restore_pc_queue): Update tests for width of memory loads.
4548 (hppa_push_arguments): Delete version that was #if 0'd out.
4550 * hppa-tdep.c (push_dummy_frame): Handle the new 64it ABI.
4551 (find_dummy_frame_regs): Corresponding changes.
4553 * hppa-tdep.c (read_unwind_info): Initialize obj_private->dp.
4554 (internalize_unwinds): Improve test for when to use segment
4555 relative code for unwinder bounds.
4556 (rp_saved): Fix offset of saved return pointer for the 64bit ABI.
4557 (hppa_frame_saved_pc): Various updates to handle 64bit registers
4559 (frame_chain, restore_pc_queue): Likewise.
4561 * hppa-tdep.c (rp_saved): RP is saved at frame-16 when
4562 pointers are 64bits wide.
4564 * hppa-tdep.c (record_text_segment_lowaddr): New function.
4565 (internalize_unwinds): Use it if addressess are 8 bytes wide.
4567 * symfile.c (syms_from_objfile): No longer warn if the lowest
4568 section does not have SEC_CODE set.
4570 * Makefile.in (pa64solib.o): Add dependencies.
4572 * hppah-nat.c (store_inferior_registers): Do not try to write a
4573 nonzero value to the high part of IPSW. Fix typo in unable to store
4576 * config/pa/tm-hppa.h (opd_data structure): Delete. Not actually
4578 (struct obj_private_struct): Add new entry for the objfile's DP
4580 * config/pa/tm-hppa64.h (CALL_DUMMY): Add a nop to make it an even
4581 number of instructions. Pack the dummy into word sized hunks.
4582 (CALL_DUMMY_LENGTH): Update appropriately.
4583 (PC_IN_CALL_DUMMY, CALL_DUMMY_LOCATION_AFTER_TEXT_END): Delete.
4585 Mon Aug 16 19:08:19 1999 Andrew Cagney <cagney@b1.cygnus.com>
4587 * configure.in: Try -lsocket when looking for socketpair.
4588 * configure, config.h: Re-generate.
4590 1999-08-13 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
4592 From Christopher Faylor <cgf@cygnus.com>:
4594 * event-loop.c (gdb_wait_for_event): Before going to wait for
4595 another event with select or poll, flush the error and the output
4598 * event-top.c (gdb_readline2): Do not buffer the input, because
4599 doing so can interfere with select/poll in bad ways.
4601 Fri Aug 13 17:36:56 1999 Eli Zaretskii <eliz@is.elta.co.il>
4603 * maint.c (maintenance_dump_me) [__DJGPP__]: Simulate a core dump
4605 * utils.c (quit) [__MSDOS__]: Don't mention SIGINT, since it's not
4607 (notice_quit): No need to define this function for the DJGPP port.
4609 1999-08-13 James Ingham <jingham@leda.cygnus.com>
4611 * arm-tdep.c (arm_frameless_function_invocation): SKIP_PROLOGUE
4612 macro no longer modifies its argument. Update uses to accord.
4614 * config/arm/arm.mt (TDEPFILES): Add the remote-rdi.o to the
4616 * configure.tgt: Add rdi-share to configdir for the Arm targets.
4618 Fri Aug 13 11:16:32 1999 Jeffrey A Law (law@cygnus.com)
4620 * hppah-nat.c (store_inferior_registers): Revamp to be PA2.0W
4623 * infttrace.c (ttrace_write_reg_64): New function.
4625 * hp-symtab-read.c (is_in_import_list): Delete extern declaration.
4626 * somread.c (is_in_import_list): Delete function.
4627 * objfiles.c (is_in_import_list): New function.
4628 * objfiles.h (is_in_import_list): Declare.
4630 * config/pa/tm-hppa64.h (GDB_TARGET_IS_HPPA20W): Define before
4631 including tm-hppah.h.
4632 (PC_IN_CALL_DUMMY): Define.
4633 (HPUX_1100): Similarly.
4634 * config/pa/tm-hppa.h (somsolib.h, pa64solib.h): Conditionalize
4635 includes on GDB_TARGET_IS_HPPA20W.
4637 * configure.host: Distinguish between wide and narrow modes
4639 * config/pa/hpux1100w.mh, config/pa/hpux1100w.mt: New files.
4641 * config/pa/tm-hppa64.h (STACK_ALIGN): Redefine.
4642 (REG_PARM_STACK_SPACE): Likewise.
4644 * config/pa/tm-hppa.h (CLEAN_UP_REGISTER_VALUE): Handle 64bit
4645 PA target correctly.
4646 (REG_PARM_STACK_SPACE): Define.
4647 (struct unwind_table_entry): region_start and region_end are
4649 (typedef opd_data): New.
4650 (obj_private_data_t): Include pointer to opd_data structure.
4652 1999-08-13 Keith Seitz <keiths@cygnus.com>
4654 * stabsread.c (stabsread_clear_cache): New funciton which clears
4655 an optimization cache of the reader.
4657 * coffread.c (coff_symfile_finish): Give stabs reader a chance to
4660 * win32-nat.c (handle_load_dll): Don't suppress re-reading symbols
4661 from a DLL if an objfile for it already exists. (Not that this should
4662 happen anymore anyway...)
4664 1999-08-13 Keith Seitz <keiths@cygnus.com>
4666 * config/mcore/tm-mcore.h (SAVE_DUMMY_FRAME_TOS): Define for MCore,
4667 which also requires that the stack pointer be saved for call
4668 dummies BEFORE arguments get pushed onto it.
4670 1999-08-12 Stan Shebs <shebs@andros.cygnus.com>
4672 From Eli Zaretskii <eliz@is.elta.co.il>:
4673 * source.c (mod_path) [_WIN32 || __DJGPP__]: Don't remove trailing
4674 slash from "d:/". Don't overstep the beginning of name.
4675 [_WIN32 || __MSDOS__]: Convert "d:" to "d:.", otherwise appending
4676 a slash changes its meaning.
4677 (openp): Use SLASH_P, not equality with SLASH_CHAR.
4678 (print_source_lines_base) [CRLF_SOURCE_FILES]: Skip \r only before
4680 (forward_search_command) [CRLF_SOURCE_FILES]: Remove \r at the end
4682 (reverse_search_command) [CRLF_SOURCE_FILES]: Likewise.
4684 * gnu-regex.c (CHAR_CLASS_MAX_LENGTH): Don't use wide characters
4685 unless HAVE_BTOWC is defined.
4687 Fri Aug 13 10:20:12 1999 Andrew Cagney <cagney@b1.cygnus.com>
4689 From J.T. Conklin <jtc@redback.com>:
4690 * gdbinit.in: Change the template .gdbinit to match the recent
4691 fatal error handling change.
4693 1999-08-11 Keith Seitz <keiths@cygnus.com>
4695 * maint.c (maintenance_internal_error): Fix typo in prototype.
4697 Wed Aug 11 15:38:05 1999 Andrew Cagney <cagney@amy.cygnus.com>
4699 * remote.c (remote_rcmd): Pass an empty command across to the
4700 target. Check for and handle an ``Enn'' return status.
4702 Tue Aug 10 13:59:45 1999 Andrew Cagney <cagney@b1.cygnus.com>
4704 * maint.c (_initialize_maint_cmds): Add ``maintenance
4705 internal-error'' command.
4706 (maintenance_internal_error): New function.
4708 1999-08-10 James Ingham <jingham@leda.cygnus.com>
4710 * top.c: Remove the disassembly_flavor_hook, use the new set_hook
4713 * arm-tdep.c (set_disassembly_flavor_sfunc): Ditto.
4715 1999-08-10 Michael Snyder <msnyder@cleaver.cygnus.com>
4717 * config/i386/nm-i386sol2.h (FIND_NEW_THREADS): remove, obsolete.
4718 * config/sparc/nm-sun4sol2.h (FIND_NEW_THREADS): remove, obsolete.
4720 1999-08-10 J.T. Conklin <jtc@redback.com>
4722 * configure.tgt (i[3456]86-*-aout*, i[3456]86-*-coff*,
4723 i[3456]86-*-elf*): Use embed.mt.
4724 * config/i386/embed.mt: New file.
4726 1999-08-10 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
4728 * remote.c (remote_async_open_1): Remove casting in call to
4730 (extended_remote_async_create_inferior): Ditto.
4732 * event-top.c (change_line_handler): Ditto.
4733 (_initialize_event_loop): Ditto.
4735 * infrun.c (complete_execution): Ditto.
4737 * event-loop.c (add_file_handler): Change proc parameter to be ptr
4738 to func with void parameter, rather than void*. Coerce second
4739 paramter in calls to create_file_handler. Replace
4740 async_handler_func and file_handler_func with handler_func.
4742 * event-loop.h: Get rid of typedefs for file_handler_func and
4743 async_handler_func, just have one, and call it handler_func.
4744 Replace async_handler_func and file_handler_func occurrences with
4747 Tue Aug 10 03:13:03 1999 Jeffrey A Law (law@cygnus.com)
4749 * hppa-tdep.c: Delete random #if 0 code.
4750 (is_branch): Handle new branching opcodes from PA2.0
4751 (inst_saves_gr, inst_saves_fr): Handle additional instructions
4752 used to save general and floating point registers in the stack.
4753 (skip_prologue_hard_way): Handle additional instructions to
4754 save the return pointer in the stack.
4755 (after_prologue): Fix mis-guided and incorrect code to find
4756 the end of the prologue using debug symbols.
4757 (hppa_skip_prologue): Generally clean up comments, lose code
4758 which does not apply to the PA, etc.
4760 Sun Aug 8 17:53:41 1999 Andrew Cagney <cagney@amy.cygnus.com>
4762 * MAINTAINERS: Make Andrew Cagney the mn10300 maintainer.
4763 Transfer responsibility for the PowerPC from Andrew Cagney to
4766 Tue Aug 10 13:59:45 1999 Andrew Cagney <cagney@b1.cygnus.com>
4768 Based on code from J.T. Conklin <jtc@redback.com>:
4769 * utils.c (internal_error): Make quit? and coredump? separate
4770 questions so that the user can dump-core and not quit.
4771 (internal_error): Cleanup error message.
4773 1999-08-09 Tom Tromey <tromey@cygnus.com>
4775 * kod-cisco.c (cisco_kod_open): Removed incorrect `arg' argument.
4777 Sun Aug 8 12:06:47 1999 Fred Fish <fnf@cygnus.com>
4779 * coffread.c (process_coff_symbol): Remove section_offsets from
4780 prototype and function definition. Get section_offsets from the
4781 passed objfile and pass it on to callees the same way.
4782 (coff_symtab_read): Ditto.
4783 (coff_symfile_read): Ditto.
4784 * dbxread.c (read_dbx_dynamic_symtab): Ditto.
4785 (read_dbx_symtab): Ditto.
4786 (dbx_symfile_read): Ditto.
4787 (coffstab_build_psymtabs): Ditto.
4788 (elfstab_build_psymtabs): Ditto.
4789 (stabsect_build_psymtabs): Ditto.
4790 * dstread.c (dst_symfile_read): Ditto.
4791 * elfread.c (elf_symfile_read): Ditto.
4792 * jv-class.c (jv_class_symfile_read): Ditto.
4793 * mipsread.c (mipscoff_symfile_read): Ditto.
4794 * nlmread.c (nlm_symfile_read): Ditto.
4795 * os9kread.c (os9k_symfile_read): Ditto.
4796 * somread.c (som_symfile_read): Ditto.
4797 * stabsread.h (elfstab_build_psymtabs): Ditto.
4798 * xcoffread.c (xcoff_initial_scan): Ditto.
4800 * symfile.h (sym_read): Remove section_offsets from prototype.
4801 * symfile.c (syms_from_objfile): Call sym_read without
4803 (reread_symbols): Ditto.
4805 * elfread.c (elfstab_offset_sections): Use SIZEOF_SECTION_OFFSETS
4806 to allocate sections offsets array.
4807 * xcoffread.c (xcoff_symfile_offsets): Ditto.
4809 * partial-stab.h (section_offsets): Get from objfile.
4810 * dbxread.c (read_dbx_symtab): Fix typo that made -1 casted
4811 to a CORE_ADDR look like an subtraction expression.
4812 * objfiles.h: Add some comments.
4813 * symfile.c: Add some comments.
4814 * objfiles.c: Add some comments.
4815 (objfile_relocated): Use ALL_OBJFILE_OSECTIONS to iterate over
4817 (find_pc_sect_sections): Use ALL_OBJSECTIONS to iterate over all
4818 sections in all objfiles.
4819 * symfile.c (syms_from_objfile): Use ALL_OBJFILE_OSECTIONS.
4821 * irix5-nat.c (symbol_add_stub): Fix typo that made taking the
4822 address of lowest_sect with '&' look like a bitwise and op.
4823 * osfsolib.c (symbol_add_stub): Ditto.
4824 * solib.c (symbol_add_stub): Ditto.
4825 * symfile.c (syms_from_objfile): Ditto.
4827 * dwarf2read.c (dwarf2_build_psymtabs_hard): Minor format tweak.
4828 * symfile.c (syms_from_objfile): Ditto, and fix typo.
4829 * top.c (init_main): Fix typo in comment (DEFULAT_PROMPT).
4831 1999-08-08 James Ingham <jingham@leda.cygnus.com>
4833 * remote.c (remote_insert_breakpoint): Fix typo in Z packet support.
4834 Also move Z packet support OUTSIDE of REMOTE_BREAKPOINT ifdef,
4835 since this is not set for all targets that support the Z packet.
4837 Sun Aug 8 17:24:09 1999 Andrew Cagney <cagney@b1.cygnus.com>
4839 * ui-out.c (ui_out_table_begin, ui_out_table_body,
4840 ui_out_table_end, ui_out_table_header, ui_out_list_begin,
4841 ui_out_list_end, ui_out_stream_new, verify_field_proper_position,
4842 verify_field_alignment): Replace incorrect calls to error with
4843 calls to internal_error.
4845 Fri Aug 6 17:17:28 1999 Andrew Cagney <cagney@b1.cygnus.com>
4847 * defs.h (fatal): Delete declaration.
4848 (internal_error): Declare.
4849 * utils.c (nomem): Call internal_error instead of fatal.
4850 (fatal_dump_core): Delete.
4851 (malloc_botch): Print message direct to stderr.
4852 (fatal): Delete definition.
4853 * utils.c (internal_error): Define.
4855 * gdbarch.h, gdbarch.c, hppah-nat.c, ch-exp.c, dsrec.c, sh-tdep.c,
4856 infptrace.c, f-lang.c, symm-nat.c, top.c, m3-nat.c, v850-tdep.c,
4857 remote-vx.c, remote-sim.c, remote-mips.c, source.c, infcmd.c,
4858 findvar.c, remote.c: Replace fatal with call to internal_error.
4860 Sun Aug 8 15:28:33 1999 Andrew Cagney <cagney@b1.cygnus.com>
4862 * ser-pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Move
4863 definition from here.
4866 Sat Aug 7 21:44:59 1999 Fred Fish <fnf@cygnus.com>
4868 * remote.c (remote_insert_breakpoint): Fix typo, missing ';'.
4870 Sun Aug 8 11:26:57 1999 Andrew Cagney <cagney@b1.cygnus.com>
4872 * mips-tdep.c (mips_gdbarch_init): Add break; to the default case.
4874 Fri Aug 6 19:26:03 1999 Andrew Cagney <cagney@b1.cygnus.com>
4876 * defs.h: Delete #if ANSI_PROTOTYPES code, GDB assumes ISO-C.
4877 * remote-rdp.c (send_rdp), remote-os9k.c (printf_monitor),
4878 remote-mips.c: (mips_error), remote-array.c: (printf_monitor,
4879 debuglogs), complaints.c (complain), monitor.c:
4880 (monitor_printf_noecho, monitor_printf), language.c (type_error,
4881 range_error), remote-st.c: (printf_stdebug), remote-sim.c
4882 (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
4883 gdb_os_evprintf_filtered, gdb_os_error), serial.c (serial_printf),
4884 utils.c (warning, error, fatal, fatal_dump_core, (query,
4885 fprintf_filtered, fprintf_unfiltered, fprintfi_filtered,
4886 printf_filtered, printf_unfiltered, printfi_filtered): Delete
4887 legacy #ifndef ANSI_PROTOTYPES varargs code.
4889 * defs.h: Don't #include <varargs.h>.
4890 * remote-rdp.c, remote-os9k.c, remote-mips.c, remote-array.c,
4891 monitor.c, remote-st.c: Don't include <varargs.h> or <stdarg.h>.
4893 1999-08-06 James Ingham <jingham@leda.cygnus.com>
4895 * configure.in, configure: add the --enable-multi-ice to determine
4896 whether to configure and build the multi-ice-gdb-server. Note,
4897 for now this only builds on cygwin, so don't enable it for other
4900 1999-08-06 Tom Tromey <tromey@cygnus.com>
4902 * Makefile.in (SFILES): Added kod.c and kod-cisco.c.
4903 (COMMON_OBS): Added kod.o and kod-cisco.o.
4904 (kod-cisco.o): New target.
4905 (kod.o): New target.
4906 * kod-cisco.c: New file.
4909 1999-08-06 James Ingham <jingham@leda.cygnus.com>
4911 These are some fixups for the Arm, and support for the
4912 disassembly-flavor for the ARM.
4914 * defs.h: Declare the disassembly_flavor_hook
4915 * top.c: Define the disassembly_flavor_hook
4916 * i386-tdep.c: Remove unnecessary declaration of the
4917 disassembly_flavor_hook.
4919 * config/arm/tm-arm.h: Change definition of
4920 arm_init_extra_frame_info.
4921 Add a few more comments.
4922 * arm-tdep.c (arm_init_extra_frame_info): Listen to and use the
4923 fromleaf parameter passed into init_extra_frame_info.
4924 (set_disassembly_flavor_sfunc): New Function.
4925 (set_disassembly_flavor): New Function.
4926 (arm_othernames): Use the set_disassembly_flavor.
4927 (_initialize_arm_tdep): Setup the disassembly flavor commands, and
4928 initialize the flavor.
4929 (arm_frameless_function_invocation): Adjust for
4930 frameless functions that have 1 or 2 instructions that mimic the
4932 (arm_scan_prologue): Be more careful about scanning the function
4933 prologue. Don't match things that just have a few of the prologue
4934 instructions out of order, and don't get thrown by the scheduler
4935 migrating instructions into the prologue.
4937 Add support for the "Z" and "z" packets to request the stub
4938 to set a breakpoint.
4940 * remote.c (set_remote_protocol_Z_packet_cmd): New function.
4941 (show_remote_protocol_Z_packet_cmd): New Function.
4942 (remote_open_1): Init the Z packet config.
4943 (remote_async_open_1): Init the Z packet config.
4944 (remote_insert_breakpoint): Use the "Z" packet if supported.
4945 (remote_remove_breakpoint): Use the "z" packet if supported.
4946 (remote_insert_watchpoint): New Function - currently wired to
4948 (remote_remove_watchpoint): Ditto.
4949 (remote_insert_hw_breakpoint): Ditto.
4950 (remote_remove_hw_breakpoint): Ditto.
4952 1999-08-06 Stan Shebs <shebs@andros.cygnus.com>
4954 * infcmd.c: Include parser-defs.h.
4955 (interrupt_target_command): Declare.
4956 (stack_dummy_testing): Remove old funky flag.
4957 (run_stack_dummy): Remove unused reference to old funky flag.
4959 1999-08-06 Tom Tromey <tromey@cygnus.com>
4961 * command.c (do_setshow_command): Call set_hook if not NULL.
4962 * top.c (set_hook): New hook definition.
4963 * defs.h (set_hook): Declare.
4965 1999-08-05 Stan Shebs <shebs@andros.cygnus.com>
4967 * infrun.c: Convert code to pure standard C, elim some warnings.
4968 (stopped_for_shlib_catchpoint): Remove, never used.
4970 1999-08-05 Keith Seitz <keiths@cygnus.com>
4972 * NEWS: Mention new Motorola MCore target.
4974 * sparc-tdep.c (gdb_print_insn_sparc): Print insns of the current
4977 Thu Aug 5 20:41:22 1999 Andrew Cagney <cagney@b1.cygnus.com>
4979 * configure.in (configdirs): Add check for socketpair.
4980 * configure, config.in: Re-generate.
4982 From Mon Jul 19 10:46:18 1999 Philippe De Muyter <phdm@macqel.be>:
4983 * ser-pipe.c (sys/wait.h): Include this file only #if HAVE_SYS_WAIT_H.
4984 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Macros defined if needed.
4986 Thu Aug 5 20:04:17 1999 Andrew Cagney <cagney@b1.cygnus.com>
4988 * target.c (debug_to_open, debug_to_attach, debug_to_post_attach,
4989 debug_to_require_attach, debug_to_detach, debug_to_require_detach,
4990 debug_to_wait, debug_to_post_wait, debug_to_fetch_registers,
4991 debug_to_store_registers, debug_to_prepare_to_store,
4992 debug_to_xfer_memory, debug_to_files_info,
4993 debug_to_insert_breakpoint, debug_to_remove_breakpoint,
4994 debug_to_terminal_init, debug_to_terminal_inferior,
4995 debug_to_terminal_ours_for_output, debug_to_terminal_ours,
4996 debug_to_terminal_info, debug_to_kill, debug_to_load,
4997 debug_to_lookup_symbol, debug_to_create_inferior,
4998 debug_to_post_startup_inferior,
4999 debug_to_acknowledge_created_inferior,
5000 debug_to_clone_and_follow_inferior,
5001 debug_to_post_follow_inferior_by_clone,
5002 debug_to_insert_fork_catchpoint, debug_to_remove_fork_catchpoint,
5003 debug_to_insert_vfork_catchpoint,
5004 debug_to_remove_vfork_catchpoint, debug_to_has_forked,
5005 debug_to_has_vforked, debug_to_can_follow_vfork_prior_to_exec,
5006 debug_to_post_follow_vfork, debug_to_insert_exec_catchpoint,
5007 debug_to_remove_exec_catchpoint, debug_to_has_execd,
5008 debug_to_reported_exec_events_per_exec_call,
5009 debug_to_has_syscall_event, debug_to_has_exited,
5010 debug_to_mourn_inferior, debug_to_can_run,
5011 debug_to_notice_signals, debug_to_thread_alive, debug_to_stop,
5012 debug_to_query, debug_to_rcmd, debug_to_enable_exception_callback,
5013 debug_to_get_current_exception_event, debug_to_pid_to_exec_file,
5014 debug_to_core_file_to_sym_file, debug_to_close): Send trace output
5015 to ``gdb_stdlog'' instead of ``gdb_stderr''.
5017 Thu Aug 5 16:22:10 1999 Andrew Cagney <cagney@b1.cygnus.com>
5019 * remote.c (init_remote_ops): Initialize remote_ops.to_rcmd.
5020 (init_remote_async_ops): Initialize remote_async_ops.to_query.
5021 (remote_rcmd): New function.
5023 * monitor.c (monitor_rcmd): Rename monitor_command.
5024 (init_base_monitor_ops): Initialize monitor_ops.to_rcmd.
5025 (_initialize_remote_monitors): Move "monitor" command from here.
5026 * target.c (initialize_targets): To here.
5027 (monitor_command): New function. Implement "monitor" command.
5029 * target.c (cleanup_target): de_fault to_rcmd.
5030 (update_current_target): INHERIT to_rcmd.
5031 (debug_to_rcmd): New function.
5032 (setup_target_debug): Initialize current_target.to_rcmd.
5034 * target.h (struct target_ops): Add field to_rcmd.
5035 (target_rcmd): Define.
5037 Thu Aug 5 14:24:07 1999 Andrew Cagney <cagney@b1.cygnus.com>
5039 * remote.c: Replace comment describing remote protocol with
5040 pointer to official document.
5042 Thu Aug 5 11:59:06 1999 Andrew Cagney <cagney@b1.cygnus.com>
5044 * remote.c (remote_protocol_binary_download): New variable.
5045 Replace ``remote_binary_download'' and ``remote_binary_checked''.
5046 (set_remote_protocol_binary_download_cmd,
5047 show_remote_protocol_binary_download_cmd): New functions.
5048 (remote_open_1, remote_async_open_1, remote_cisco_open):
5049 Initialize ``remote_protocol_binary_download'' instead of
5050 ``remote_binary_download''.
5051 (check_binary_download): Re-write.
5052 (remote_write_bytes): Ditto.
5053 (_initialize_remote): Add ``set remote X-packet'' and ``show
5054 remote X-packet'' commands. Disable old ``set
5055 remotebinarydownload'' command.
5057 1999-08-04 Keith Seitz <keiths@cygnus.com>
5059 * remote-rdi.c (arm_rdi_close): Close the transport device, too.
5061 Wed Aug 4 10:42:58 1999 Fred Fish <fnf@cygnus.com>
5063 * xcoffread.c (scan_xcoff_symtab): Change main_aux into
5064 an array of 5 internal_auxent to leave room for bfd to
5065 write n_numaux entries. Change code to use the first one.
5067 Wed Aug 4 19:58:15 1999 Andrew Cagney <cagney@b1.cygnus.com>
5069 * ui-out.h (cli_out_new): Move declaration from here.
5070 * cli-out.h: To here. New file.
5071 * Makefile.in (ui-out.o): Add missing dependencies.
5073 * top.c, cli-out.c: #include "cli-out.h".
5075 1999-08-02 Stan Shebs <shebs@andros.cygnus.com>
5077 * c-valprint.c (c_val_print): When printing decimal equivalent
5078 of a char, cast appropriately.
5080 1999-08-02 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
5082 From Jonathan Larmour <jlarmour@cygnus.co.uk>:
5083 * main.c (print_gdb_help): Use gdbinit variable to determine file
5084 name used for --nx help
5086 1999-08-01 Jason Molenda (jsm@bugshack.cygnus.com)
5088 * config/mips/tm-mips.h (BIG_ENDIAN): Don't define here.
5090 1999-08-01 Jim Blandy <jimb@zwingli.cygnus.com>
5092 * stabsread.c (read_range_type): Handle an unsigned range type
5093 whose length in bytes is any power of two, not just a few
5096 * monitor.c (monitor_expect): When we receive a character that
5097 isn't part of the string we were expecting, don't just start
5098 matching again at the beginning of the string --- some shorter
5099 suffix of the input might be a prefix of the string too.
5101 1999-07-31 Fred Fish <fnf@cygnus.com>
5103 * symfile.c (symbol_file_command): Fix typo that made -1 casted
5104 to a CORE_ADDR look like an subtraction expression.
5105 (add_symbol_file_command): Ditto.
5107 1999-07-30 Jim Blandy <jimb@cygnus.com>
5109 * hppa-tdep.c (pa_print_registers): Frob register output some more.
5111 1999-07-29 Jim Blandy <jimb@cygnus.com>
5113 * config/pa/nm-hppah.h (PTRACE_ARG3_TYPE): After more
5114 consideration, make this a CORE_ADDR, like WDB did.
5116 Rather than casting every single use of really_free_pendings to
5117 make_cleanup_func, why not actually make it have that type? Golly!
5118 * buildsym.c (really_free_pendings): Change argument type to PTR.
5119 buildsym.h (really_free_pendings): Fix declaration.
5120 * dbxread.c (dbx_symfile_read, dbx_psymtab_to_symtab_1),
5121 dwarf2read.c (psymtab_to_symtab_1), dwarfread
5122 (psymtab_to_symtab_1), hp-psymtab-read.c (hpread_build_psymtabs),
5123 os9kread.c (os9k_symfile_read, os9k_psymtab_to_symtab_1),
5124 xcoffread.c (xcoff_psymtab_to_symtab_1, xcoff_initial_scan):
5127 Pass a CORE_ADDR safely through catch_errors.
5128 * hppa-tdep.c (args_for_find_stub): New member, return_val.
5129 (cover_find_stub_with_shl_get): Change argument and return type to
5130 match catch_errors. Save return value of find_stub_with_shl_get
5132 (initialize_hp_cxx_exception_support): Collect value of
5133 eh_notify_callback_addr from args.
5135 Get rid of some noise. It would be nice to get helpful warnings
5136 from the compiler about lossy conversions.
5137 * hppa-tdep.c (eh_notify_hook_addr, eh_notify_callback_addr,
5138 eh_break_addr, eh_catch_catch_addr, eh_catch_throw_addr,
5139 break_callback_sal): Initialize these to zero, not NULL, to shush
5141 * infttrace.c (thread_fake_step): Compare signal to
5142 TARGET_SIGNAL_0, not NULL, to avoid warnings.
5143 (_initialize_infttrace): Add sanity check.
5145 * config/pa/nm-hppah.h (PTRACE_ARG3_TYPE): Define this to be
5146 long, so we can pass arguments properly to ptrace.
5148 * hppah-nat.c (child_xfer_memory): Correctly compute mask to round
5149 address to an int boundary.
5151 1999-07-29 Jim Blandy <jimb@cygnus.com>
5153 Change from Ian Lance Taylor <ian@zembu.com>. The
5154 i386_linux_sigtramp* functions should be moved to
5155 i386-linux-tdep.c, when that file is introduced.
5157 * config/i386/tm-linux.h (LINUX_SIGCONTEXT_SIZE): Define.
5158 (LINUX_SIGCONTEXT_PC_OFFSET): Define.
5159 (LINUX_SIGCONTEXT_SP_OFFSET): Define.
5160 (SIGCONTEXT_PC_OFFSET): Don't define.
5161 (I386_LINUX_SIGTRAMP): Define.
5162 (IN_SIGTRAMP): Define.
5163 (i386_linux_sigtramp): Declare.
5164 (sigtramp_saved_pc): Define.
5165 (i386_linux_sigtramp_saved_pc): Declare.
5166 (FRAMELESS_SIGNAL): Define.
5167 (FRAME_CHAIN, FRAME_SAVED_PC): Define after #undef.
5168 * i386-tdep.c (i386_linux_sigtramp_start): New static function if
5169 I386_LINUX_SIGTRAMP.
5170 (i386_linux_sigtramp): New function if I386_LINUX_SIGTRAMP.
5171 (i386_linux_sigtramp_saved_pc): Likewise.
5172 (i386_linux_sigtramp_saved_sp): Likewise.
5174 1999-07-28 Jim Blandy <jimb@cygnus.com>
5176 * infrun.c (handle_inferior_event): Don't try to use the code for
5177 stepping over a function call to also handle stepping out of a
5178 sigtramp on HP-UX. That ends up trashing step-resume breakpoints.
5179 This change reverts some of David Taylor's change of 31 Dec 1998.
5180 The HP-UX maintainer needs to submit a new change for whatever
5181 problem the original change was trying to fix.
5183 1999-07-28 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
5185 * event-top.c (command_line_handler): Don't treat an empty line
5186 from readline the same way as a multiline command. This avoids
5187 missing detecting when the user presses just 'enter'.
5189 1999-07-28 Jim Blandy <jimb@cygnus.com>
5191 Provide more sanity checking:
5192 * infrun.c (handle_inferior_event): Before assigning a new
5193 breakpoint to step_resume_breakpoint, make sure it's not already
5194 pointing at one; if it is, that's a bug.
5195 (check_for_old_step_resume_breakpoint): New function.
5197 1999-07-28 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
5199 From Eli Zaretskii <eliz@is.elta.co.il>:
5200 * top.c (gdb_init) [__MSDOS__]: Arrange for GDB to return to the
5201 original directory before exiting.
5202 (cd_command) [_WIN32 || __MSDOS__]: Canonicalize the new directory
5203 name explicitly. Handle "d:/" names correctly.
5204 (init_history) [__MSDOS__]: Use _gdb_history as the default GDB
5207 Mon Jul 26 17:13:39 1999 Andrew Cagney <cagney@b1.cygnus.com>
5209 * remote.c (enum packet_support, enum packet_detect, struct
5210 packet_config): Define.
5211 (set_packet_config_cmd, show_packet_config_cmd,
5212 add_packet_config_cmd, init_packet_config): New functions.
5213 Generic support for optional packets.
5214 (remote_protocol_P): Replace stub_supports_P.
5215 (set_remote_protocol_P_packet_cmd, show_remote_protocol_P_packet_cmd):
5217 (_initialize_remote): Add ``set remote-protocol-P-packet'' command.
5218 (remote_open_1, remote_async_open_1, remote_cisco_open):
5219 Initialize ``remote_protocol_P''.
5220 (remote_store_registers): Re-write ``P'' probe logic.
5221 (store_register_using_P): New function.
5223 From Ian Lance Taylor <ian@airs.com>:
5224 (remote_prepare_to_store): Only read registers when ``P'' packet
5225 is in state unsupported or support-unknown.
5227 1999-07-24 Fred Fish <fnf@cygnus.com>
5229 * symfile.c (default_symfile_offsets): Clear section_offsets
5230 before filling it in.
5232 1999-07-16 Keith Seitz <keiths@cygnus.com>
5234 * remote.c (_initialize_remote): "remotebreak" should be a var_boolean.
5236 1999-07-15 Jim Blandy <jimb@cygnus.com>
5238 Make the output from "info registers" fit withinin 80 columns.
5239 * hppa-tdep.c (pa_print_registers): Make it easy to change row and
5240 column counts. Switch to three columns, instead of four, and
5243 First cut at supporting HPPA2.0 in "wide" (64-bit) mode.
5244 * configure.tgt: Add hppa2.0w target.
5245 * config/pa/hppa64.mt, config/pa/tm-hppa64.h: New files.
5246 * hppa-tdep.c (hppa_fix_call_dummy): Dyke out code to tweak the
5247 call dummy, if target is PA2.0w. This is temporary, until I get
5248 function calls working.
5249 * hppah-nat.c (fetch_register): Rewritten to handle both narrow
5250 and wide register requests.
5251 (HPPAH_OFFSETOF): New macro.
5253 * gdbtypes.c (is_integral_type): New function.
5254 * gdbtypes.h: Prototype for above.
5256 1999-07-15 J.T. Conklin <jtc@redback.com>
5258 * configure.tgt (i[3456]86-*-vxworks*): New target.
5259 * config/i386/vxworks.mt: New file, x86 VxWorks target
5260 * config/i386/tm-vxworks.h: New file.
5262 * configure.tgt (powerpc-*-vxworks*): New target.
5263 * config/powerpc/vxworks.mt: New file, PowerPC VxWorks target
5264 * config/powerpc/tm-vxworks.h: New file.
5266 * NEWS: Mention the new configs.
5268 1999-07-15 Fernando Nasser <fnasser@totem.to.cygnus.com>
5270 * ui-out.c (struct ui_out): Remove deprecated fields.
5272 1999-07-15 Fernando Nasser <fnasser@cygnus.com>
5274 * target.c (target_preopen): Prevent query when not from_tty.
5275 * infcmd.c (run_command): Prevent query when not from_tty.
5277 1999-07-15 Fernando Nasser <fnasser@cygnus.com>
5279 * event-loop.c: Fix typo in comment.
5281 1999-07-15 Fernando Nasser <fnasser@cygnus.com>
5283 * breakpoint.c (breakpoint_1): Fix output when no breakpoins are
5286 1999-07-15 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
5288 * event-top.c (display_gdb_prompt): Don't do anything if we are
5289 running under the interpreter.
5291 Wed Jul 14 17:29:31 1999 Andrew Cagney <cagney@b1.cygnus.com>
5293 * ser-pipe.c (struct pipe_state): Define.
5294 (pipe_close): Retain the PID of the sub-process using ``struct
5295 pipe_state''. Delete #ifdef code that used popen().
5296 (pipe_close): Kill of the sub-process as part of the cleanup.
5298 * serial.h (struct _serial_t): Add field ``state''.
5300 1999-07-13 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
5302 * event-top.c (display_gdb_prompt): Don't display the prompt if we
5303 are in the middle of an execution command. Also trick readline so
5304 it doesn't try to display the prompt.
5305 (command_line_handler): Get rid of change_prompt, unused variable.
5306 Use {push, pop}_prompt mechanism in case of multiline commands.
5308 * infrun.c (complete_execution): Set target_executing to 0 as
5309 first thing, so that display_gdb_prompt does the right thing.
5311 Tue Jul 13 20:29:46 1999 Andrew Cagney <cagney@b1.cygnus.com>
5313 * parse.c (build_parse): Fix conditional increment of num_std_regs
5314 for SP_REGNUM. Was conditional on FP_REGNUM.
5316 Tue Jul 13 16:44:58 1999 Andrew Cagney <cagney@b1.cygnus.com>
5318 * gdbarch.h, gdbarch.c: Revert 1999-07-07 Stan Shebs
5319 <shebs@andros.cygnus.com> indentation change. Don't let indent
5320 mess with these files.
5322 Mon Jul 12 11:15:09 1999 Andrew Cagney <cagney@b1.cygnus.com>
5324 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_RAW,
5325 REGISTER_CONVERT_TO_VIRTUAL, REGISTER_CONVERTIBLE): Define.
5326 (REGISTER_RAW_SIZE): Re-define as mips_register_convert_to_raw.
5327 * mips-tdep.c (mips_register_convert_to_raw,
5328 mips_register_convert_to_virtual, ): New functions.
5329 (mips_register_raw_size, mips_register_convertible): New
5330 functions. Handle bug introduced by ``Wed Apr 1 23:13:23 1998
5331 Andrew Cagney <cagney@b1.cygnus.com>'' where remote mips64 target
5332 transfers SR as 64 bits yet GDB expected only 32 bits.
5333 (mips64_transfers_32bit_regs): New static variable.
5334 (_initialize_mips_tdep): Add obscure command ``set
5335 remote-mips64-transfers-32bit-regs'' that provides backward
5337 (do_gp_register_row): Extract register values from raw buffer.
5339 * NEWS: Document protocol change.
5341 1999-07-12 Keith Seitz <keiths@cygnus.com>
5343 * rdi-share/unixcomm.c (Unix_ResetSerial): Remove CYGWIN32
5344 conditional. It's no longer needed.
5345 (SERPORT1, SERPORT2): Linux serial ports are "/dev/ttyX", not
5346 "/dev/cuaX" (X=0,1,2,3,...).
5348 Mon Jul 12 02:02:00 1999 Andrew Cagney <cagney@amy.cygnus.com>
5350 * defs.h, utils.c (fputstrn_filtered, fputstrn_unfiltered,
5351 fputstrnn_unfiltered): New functions.
5352 (gdb_printchar): Delete.
5354 * remote.c (print_packet): Replace gdb_printchar with
5356 (getpkt): Use fputstrn_unfiltered to dump packet received.
5357 (putpkt_binary): Use fputstrnn_unfiltered to dump packet sent.
5359 1999-07-09 Keith Seitz <keiths@cygnus.com>
5361 * blockframe.c (blockvector_for_pc_sect): When looking for a block,
5362 we want the one whose end is greater than our PC, not greater or equal.
5364 1999-07-08 Stan Shebs <shebs@andros.cygnus.com>
5366 * sparcl-tdep.c (init_sparclite_ops): Fix doc strings, remove
5368 (sparclite_ops): Remove redundant decl.
5370 Thu Jul 8 16:48:40 1999 Andrew Cagney <cagney@b1.cygnus.com>
5372 * ser-pipe.c (pipe_open): Bi-directional popen found on both
5374 * ser-pipe.c: New file. Implement popen() style serial interface.
5376 * Makefile.in (ALLDEPFILES): Add ser-pipe.c.
5377 (ser-pipe.o): Add new target. Specify dependencies.
5378 (SER_HARDWIRE): Add ser-pipe.o.
5379 * serial.c (serial_open): Recognize a serial pipe ``|''.
5381 1999-07-07 Stan Shebs <shebs@andros.cygnus.com>
5383 * All C files except *-stub.c and *-share/*: Indent to GNU
5384 standard, using indent 1.9.1.
5385 * defs.h: Make indent ignore this file, macros confuse it.
5387 * gnu-regex.c, gnu-regex.h: Don't let indent mess with these.
5389 Wed Jul 7 13:06:24 1999 Andrew Cagney <cagney@b1.cygnus.com>
5391 * remote-mips.c (fputs_readable): Rename puts_readable, add struct
5393 (fputc_readable): Rename putc_readable, add struct gdb_file
5396 * remote-mips.c (mips_expect_timeout, mips_receive_header,
5397 mips_send_packet, mips_receive_packet), remote-rdp.c (put_byte,
5398 get_byte, put_word, rdp_init, rdp_init), remote-sds.c
5399 (sds_interrupt, sds_wait, readchar, putmessage, read_frame,
5400 getmessage), remote-udi.c (udi_store_registers, fetch_register):
5401 (store_register), xmodem.c (readchar), utils.c (puts_debug),
5402 gnu-nat.h (debug), parse.c (parse_exp_1): Cleanup - send debug/log
5403 messages to gdb_stdlog.
5405 1999-07-06 Stan Shebs <shebs@andros.cygnus.com>
5407 * exec.c: Remove long-#ifed-out section of code that confuses
5409 * gdbtypes.c (add_mangled_type): Add some braces to indicate
5411 * gnu-nat.c: Remove literal newlines embedded in strings,
5412 causes indent to weird out.
5413 * language.c (binop_result_type): Remove extra paren.
5414 * lynx-nat.c: Add a missing paren to fetch_core_registers decl.
5415 * nec4102rom.c (vr4102_insert_step): Fix typos.
5416 (_initialize_vr4102_rom): Remove literal newline in string.
5417 * config/a29k/tm-a29k.h: Suppress formatting of pictures.
5418 * config/m68k/xm-3b1.h: Remove excess #endif.
5420 Declare Pyramid configuration obsolete.
5421 * configure.host, configure.tgt: Comment out Pyramid configs.
5422 * Makefile.in: Comment out Pyramid-related actions.
5423 * pyr-xdep.c, pyr-tdep.c, config/pyr/*: Comment out.
5424 * NEWS: Mention obsolete status.
5426 1999-07-06 Jason Molenda (jsm@bugshack.cygnus.com)
5428 * remote.c: Include <sys/time.h> to pick up FD_SET et al defns on
5429 some old Linux distributions.
5430 * remote-os9k.c, remote-st.c, ser-tcp.c, ser-unix.c,
5431 sparcl-tdep.c, remote.c: Back out inclusion of <sys/select.h>.
5432 It isn't necessary after all.
5434 1999-07-06 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
5436 * infcmd.c (strip_bg_char): Remove assignment from 'if' condition.
5438 1999-07-05 Jason Molenda (jsm@bugshack.cygnus.com)
5440 * remote.c: Include <sys/select.h> if it exists in order to pick up
5442 * remote-os9k.c: Same.
5443 * remote-st.c: Same.
5446 * sparcl-tdep.c: Same.
5448 Fri Jul 2 19:38:43 1999 Andrew Cagney <cagney@b1.cygnus.com>
5450 * top.c (target_output_hook): Delete definition.
5451 * defs.h (target_output_hook): Delete declaration.
5453 * remote.c (remote_console_output): Delete call to
5454 target_output_hook(). Send target output to gdb_stdtarg using an
5455 unfiltered write. Make more robust.
5457 * remote-sim.c (gdb_os_write_stdout, gdb_os_write_stderr):
5458 Ditto. For moment, do not try to separate target stdout and stderr
5461 * defs.h (gdb_stdtarg): New global. Output from target and
5464 1999-07-02 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
5466 * top.c (return_to_top_level): Do all the exec_cleanups too.
5468 * event-top.c (command_handler): Set up for a continuation, if we
5469 are in the middle of running an execution command which will
5470 finish later on. Do cleanups, an display of time/space only if not
5471 running with an async target or not running an execution command.
5472 (command_line_handler_continuation): New function. Continuation
5473 for command_line_handler.
5475 * utils.c (exec_cleanup_chain): New cleanup chain to be used in
5476 async mode for the execution commands.
5477 (make_exec_cleanup): New function. Add a cleanup to the
5479 (do_exec_cleanups): New Function. Do cleanups on the
5481 (add_continuation): New function. Add a new continuation to the
5482 cmd_continuation list.
5483 (do_all_continuations): New function. Do all the continuations on
5484 the cmd_continuation list.
5486 * top.h (ALL_CLEANUPS): Move from here to defs.h.
5488 * defs.h (struct continuation_arg): New structure. Arg to pass to
5489 the call to a command continuation.
5490 (struct continuation): New structure. Continuation for an
5492 (ALL_CLEANUPS): Move here from top.h.
5494 * remote.c (remote_async_open_1): Set things up for telling the
5495 target we are running the extended protocol, only after the target
5497 (set_extended_protocol): New function. Tell the target we are
5498 using the extended protocol.
5499 (remote_async_resume): Set things up for sync execution only if
5500 this is the first time we are called.
5502 * breakpoint.c (until_break_command_continuation): New function.
5503 Stuff to be done after the target stops during the 'until'
5505 (until_break_command): Set things up for completing the 'until'
5506 command later on. Do the final cleanups only if not running
5507 asynchronously or async execution is not supported by the target.
5509 * infcmd.c (until_command): Recognize '&' at end of command and
5511 (finish_command_continuation): New function. Do whatever is needed
5512 after the target has stopped.
5513 (finish_command): Recognize '&' at end of command and handle it
5514 properly. Don't do stuff needed after target has stopped if
5515 running asynchronously and target has async. Use exec_cleanup_chain
5516 if running asynchronously and target is asynchronous.
5518 * infrun.c (cmd_continuation): New gloabl variable. Used to
5519 coplete execution commands in async mode, after the target has
5521 (fetch_inferior_event): Use exec_cleanup_chain, instead of
5522 cleanup_chain. Do all the exec cleanups at the end. Do all the
5523 continuations at the end. Call complete_execution from here,
5524 instead of normal_stop.
5525 (complete_execution): Cleanup the signals handlers for SIGINT
5526 before displaying the prompt.
5527 (start_remote): Set target_executing to 1.
5528 (normal_stop): Don't call complete_execution from here.
5530 Thu Jul 1 19:14:30 1999 Andrew Cagney <cagney@b1.cygnus.com>
5532 * blockframe.c (struct dummy_frame): Add member ``top''.
5533 (generic_push_dummy_frame): Initialize top to sp.
5534 (generic_save_dummy_frame_tos): New function. Initialize top.
5535 (generic_find_dummy_frame): Check for the top of the frame.
5537 * blockframe.c (generic_push_dummy_frame): Free the dummy_frame
5540 * config/mn10300/tm-mn10300.h (SAVE_DUMMY_FRAME_TOS): Define.
5541 (TARGET_READ_FP): Return the SP as a best guess.
5543 Wed Jun 30 15:45:48 1999 Jeffrey A Law (law@cygnus.com)
5545 * configure.host (hppa*-*-hpux11*): Accept any version of hpux11
5546 instead of hpux11.0*.
5548 1999-06-30 Fernando Nasser <fnasser@totem.to.cygnus.com>
5550 * source.c (directory_command): Add missing test for from_tty.
5552 1999-06-29 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
5554 * remote.c: Include event-loop.h.
5555 (remote_async_ops, extended_async_remote_ops): Define new target
5556 vector structures for asynchronous debugging.
5557 (remote_async_open): New function. Asynchronous version of
5559 (extended_remote_async_open): New function. Asynchronous version
5560 of extended_remote_open.
5561 (remote_async_open_1): New function. Async version of
5563 (remote_async_detach): New function. Async version of
5565 (remote_async_resume): New function. Async version of
5567 (initialize_sigint_signal_handler, handle_remote_sigint,
5568 handle_remote_sigint_twice, async_remote_interrupt,
5569 async_remote_interrupt_twice, cleanup_sigint_signal_handler): New
5570 functions. Used for handling ^C while target is running.
5571 (remote_async_wait): New function. Async version of remote_wait.
5572 (remote_async_kill): New function. Async version of remote_kill.
5573 (extended_remote_async_create_inferior): New function. Async
5574 version of extended_remote_create_inferior.
5575 (init_remote_async_ops): New function. Initialize target vector
5577 (init_extended_async_remote_ops): New function. Initialize target
5578 vector for target extended-async.
5579 (_initialize_remote): Initialize remote_async_ops and
5580 extended_async_remote_ops.
5582 * infrun.c: Include "event-loop.h".
5583 (sync_execution): new global variable.
5584 (proceed): Invoke wait_for_inferior and normal_stop only if not
5585 running in async mode or if target doesn't support async
5587 (start_remote): Don't call wait_for_inferior and normal_stop if
5588 not running in async mode or if target not async. If running async
5589 and target is async, start the target in simulated synchronous
5591 (async_ecss, async_ecs): New global vars, for inferior state.
5592 (fetch_inferior_event): New function. Async version of
5594 (complete_execution): New function. Reset of gdb prompt and stdin,
5595 after inferior execution has completed.
5596 (normal_stop): Call complete_execution at end of asynchronous
5599 * infcmd.c (strip_bg_char): New function to detect the background
5601 (run_command): Modify to support background and foreground
5602 execution in async mode.
5603 (continue_command): Ditto.
5605 (jump_command): Ditto.
5606 (interrupt_target_command): New function. Interrupt the
5608 (_initialize_infcmd): Add new command 'interrupt'.
5610 * top.c (target_executing): New global variable.
5611 (execute_command): Reject commands that cannot be executed while
5612 the target is running asynchronously.
5614 * event-top.c (push_prompt): Make non static.
5615 (pop_prompt): Make non static. If the current prompt is empty,
5616 don't try to copy it over the previous one.
5617 (handle_sigint): Make non static.
5618 (command_handler): Do the cleanups only when not executing with an
5619 asynchronous target.
5621 * event-loop.c (delete_async_signal_handler): Pass a pointer to a
5622 pointer to a signal handler, so that is can be freed at the end.
5624 * target.c (update_current_target): Inherit to_has_async_exec.
5626 * inferior.h: Add global variables target_executing, and
5627 sync_execution. Export function fetch_inferior_event.
5629 * event-loop.h: Add push_prompt, pop_prompt, handle_sigint to the
5630 exported functions. Update prototype for delete_signal_handler.
5632 * target.h (struct target_ops): New target op: to_has_async_exec.
5633 (target_has_async): New macro.
5635 * Makefile.in (infrun.o): Add dependency on event-loop.h.
5638 1999-06-28 Jim Blandy <jimb@zwingli.cygnus.com>
5640 * solib.c (clear_solib): Don't disable breakpoints if we're
5641 running an a.out executable (Solaris's SunOS emulation).
5643 1999-06-25 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
5645 * main.c (main): Remove intialization of command_loop_hook, it
5646 is now done in _initialize_event_loop().
5647 * event-loop.c (gdb_do_one_event): Make static.
5648 (start_event_loop): New function. Just start the event loop.
5649 * event-top.c (cli_command_loop): New name for start_event_loop().
5650 (gdb_readline2): Make non static.
5651 (_initialize_event_loop): Set command_loop_hook to cli_command_loop.
5652 * event-loop.h: Adjust exported functions accordingly.
5654 * top.c (init_main): Move setting of async_command_editing_p from
5656 * event-top.c (_initialize_event_loop): To here.
5657 (change_line_handler): Revert previous change. Add comment.
5658 (_initialize_event_loop): Revert previous change.
5659 (cli_command_loop): New name for start_event_loop().
5660 (start_event_loop): New function. This just starts up the event loop.
5661 (gdb_readline2): Make non static.
5662 (_initialize_event_loop): Set command_loop_hook to cli_command_loop.
5664 1999-06-25 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
5666 * event-top.c (change_line_handler): Get rid of the global
5667 variable input_fd, use `fileno (instream)' instead.
5668 (_initialize_event_loop): Ditto
5670 * event-loop.c (add_file_handler): New function. Wrapper for
5671 create_file_handler.
5672 (create_file_handler): Make static.
5673 * event-top.c (_initialize_event_loop): Call add_file_handler,
5674 instead of create_file_handler.
5675 (change_line_handler): Ditto.
5676 Remove poll.h include.
5677 * event-loop.h: Export add_file_handler instead of
5678 create_file_handler.
5680 1999-06-24 Stan Shebs <shebs@andros.cygnus.com>
5682 Declare Altos configuration obsolete.
5683 * configure.host, configure.tgt: Comment out Altos config.
5684 * Makefile.in: Comment out Altos-related actions.
5685 * altos-xdep.c, config/m68k/altos.mh, altos.mt, tm-altos.h,
5686 xm-altos.h: Comment out.
5687 * NEWS: Mention obsolete status.
5689 1999-06-24 Jason Molenda (jsm@bugshack.cygnus.com)
5691 * Makefile.in: Add MAKEHTML and MAKEHTMLFLAGS; pass them down;
5692 recognize html and install-html targets.
5693 * gdbserver/Makefile.in: Add empty html and install-html targets.
5694 * nlm/Makefile.in: Ditto.
5695 * rdi-share/Makefile.in: Ditto.
5697 1999-06-24 Jim Blandy <jimb@zwingli.cygnus.com>
5699 * ax-gdb.c (agent_command): Remove vestigial call to ax_reqs.
5701 1999-06-24 James Ingham <jingham@leda.cygnus.com>
5703 * arm-tdep.c (arm_othernames): Change both gdb's register display
5704 AND the opcode disassembly register naming if the othernames
5705 command. Fixes the gdb part of CR 101177.
5707 1999-06-23 Stan Shebs <shebs@andros.cygnus.com>
5709 Declare Convex configuration obsolete.
5710 * configure.host, configure.tgt: Comment out Convex configs.
5711 * Makefile.in: Comment out Convex-related actions.
5712 * convex-xdep.c, convex-tdep.c, config/convex/*: Comment out.
5713 * NEWS: Mention obsolete status.
5715 1999-06-23 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
5717 * main.c: Turn on async by default by setting async_p to 1.
5719 Wed Jun 23 20:39:24 1999 Andrew Cagney <cagney@b1.cygnus.com>
5721 * main.c (main): Recognize --ui. Will eventually replace
5724 Wed Jun 23 15:44:39 1999 Andrew Cagney <cagney@b1.cygnus.com>
5726 From Jimmy Guo <guo@cup.hp.com>:
5727 * frame.h (enum lval_type): Delcare when an __STDC__ compiler.
5728 Reverts Mon Aug 11 16:08:52 1997 Fred Fish <fnf@cygnus.com>
5730 * utils.c (gdb_file_rewind, gdb_file_put): Fix. A void function
5731 does not return a result.
5733 Wed Jun 23 15:30:46 1999 Andrew Cagney <cagney@b1.cygnus.com>
5735 * remote.c (set_thread, remote_get_threadinfo,
5736 remote_threads_info, remote_current_thread, remote_get_threadlist,
5737 extended_remote_restart, get_offsets, remote_open_1,
5738 remote_detach, remote_resume, remote_wait, remote_fetch_registers,
5739 remote_store_registers, check_binary_download, remote_write_bytes,
5740 remote_read_bytes, remote_search, putpkt_binary, putpkt_binary,
5741 read_frame, compare_sections_command, remote_query,
5742 packet_command, remote_info_process): Use alloca to create space
5743 for arrays of size PBUFSIZ.
5745 1999-06-22 Jason Molenda (jsm@bugshack.cygnus.com)
5747 * top.c: Update copyright years to include 1999.
5749 1999-06-18 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
5751 * top.c: Move include of event-loop.h, to avoid redefinition of
5754 * event-loop.c (create_file_handler): Do not do a realloc of the
5755 pollfd structure of the notifier, unless there is already one.
5756 Include <sys/types.h> for platforms that have no poll.
5758 * event-top.c: Fix prototype for _initialize_event_loop.
5759 (_initialize_event_loop): Do something only if running in async
5762 1999-06-17 Jim Blandy <jimb@zwingli.cygnus.com>
5764 Make the '/c' print format use a true character type. This is
5765 more appropriate than builtin_type_char for languages other than
5766 C, and C tolerates it.
5767 * gdbtypes.c (builtin_type_true_char): New variable.
5768 (build_gdbtypes): Initialize it.
5769 * gdbtypes.h (builtin_type_true_char): New declaration.
5770 * printcmd.c (print_scalar_formatted): When the format is 'c',
5771 extract the value as a builtin_type_true_char.
5773 * jv-exp.y (yylex): Say character literals are java_char_type, not
5774 builtin_type_char. Java treats the latter like `byte'.
5776 1999-06-17 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
5778 * Makefile.in (top_h): Define.
5779 (event-loop.o): Add dependencies on top.h and defs.h.
5780 (event-top.o): Add dependency on terminal.h.
5782 * event-loop.c: Get rid of #include <readline.h>.
5784 * event-loop.h: Get rid of nested #include's.
5785 * event-loop.c: Rearrange includes to accomodate change in
5786 event-loop.h. Include poll.h, not sys/poll.h.
5787 * event-top.c: Ditto.
5790 1999-06-16 David Taylor <taylor@louisiana.cygnus.com>
5792 * alpha-tdep.c (alpha_pop_frame): if frame->proc_desc
5793 is NULL, call find_proc_desc so we know how to restore
5796 1999-06-16 Fernando Nasser <fnasser@totem.to.cygnus.com>
5798 * cli-out.c (cli_out_new): Add flags argument to ui-out-new call.
5799 * source.c (print_source_lines_base): Test for ui_source_list flag
5800 and use ui_out for file and line output.
5801 * ui-out.c (struct ui_out): Add flags field to struct and to default
5803 (ui_out_set_flags): New function. Handle flags.
5804 (ui_out_clear_flags): New function. Ditto.
5805 (ui_out_test_flags): New function. Ditto.
5806 (ui_out_new): Add flags parameter.
5807 * ui-out.h: Add flags argument to ui_out_new declaration.
5808 Add declarations for ui_out_*_flags functions.
5809 (enum ui_flags): New enum. Defines ui_out flags.
5810 * top.c (gdb_init): Fix misspelling typo.
5812 1999-06-15 Michael Snyder <msnyder@cleaver.cygnus.com>
5814 * event-top.c (start_event_loop): call get_prompt.
5815 (display_gdb_prompt): call get_prompt.
5816 (async_stop_sig): call get_prompt.
5818 1999-06-15 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
5820 * event-loop.c (delete_file_handler): When positioning prev_ptr,
5821 keep looping while the one after is not equal to file_ptr, instead
5824 1999-06-14 Stan Shebs <shebs@andros.cygnus.com>
5826 * MAINTAINERS: Add Jimmy Guo and Jim Blandy as HP testsuite and
5827 SVR4 solib maintainers, respectively.
5829 1999-06-14 Michael Snyder <msnyder@cleaver.cygnus.com>
5831 Add parameters to the gdb prompt.
5832 * top.c (prompt): Rename to gdb_prompt_string for clarity.
5833 (command_line_input): rename "prrompt" to prompt_arg for clarity.
5834 (gdb_readline): rename "prrompt" to prompt_arg for clarity.
5835 (read_command_lines): rename "prompt" to prompt_arg for clarity.
5836 (stop_sig): call get_prompt instead of reading prompt string directly.
5837 (command_loop): ditto.
5838 (simplified_command_loop): ditto.
5839 (gdb_prompt_escape): New variable. Esc char for prompt parameters.
5840 (get_prompt_1): New function, workhorse for get_prompt.
5841 (get_prompt): Completely rewrite. Add functionality for a
5842 parameterized prompt, ie. the displayed prompt can change according
5843 to the value of one or more expressions given as parameters in the
5845 (init_main): use renamed variable gdb_prompt_string. Add new
5846 command "set prompt-escape-char" to set gdb_prompt_escape.
5848 Sun Jun 13 10:44:13 1999 Andrew Cagney <cagney@b1.cygnus.com>
5850 * defs.h (gdb_stdlog), main.c: Declare.
5851 * main.c (main): Initialize.
5852 * gdbarch.c: Write trace messages to the log file.
5853 * remote.c: Update any debug/log prints.
5855 1999-06-11 Michael Snyder <msnyder@cleaver.cygnus.com>
5857 * remote.c (remote_wait): Clean up new thread handling.
5858 (record_currthread): Announce new threads.
5860 1999-06-11 Jim Blandy <jimb@zwingli.cygnus.com>
5862 * partial-stab.h (case N_LSYM, 'T' descriptor): Don't create
5863 partial symbol table entries for nameless enums, even if the type
5864 name is " ". (We still pick up the enum elements, though.)
5866 * partial-stab.h: Remove #if 0'd sections, dating back to 1992,
5867 which set a variable which exists nowhere else in the source.
5868 Please examine your test suite output carefully, and report any
5871 1999-06-11 Fernando Nasser <fnasser@totem.to.cygnus.com>
5873 * top.c (gdb_init): Add pre-processor test for UI_OUT.
5875 1999-06-11 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
5877 * event-top.c (setup_event_loop): Change name to start_event_loop.
5878 Move the intialization of event-loop variables to
5879 _initialize_event_loop.
5880 (_initialize_event_loop): New function. Called at init time, to
5881 set up important event-loop variables.
5883 * event-loop.h: setup_event_loop is now start_event_loop.
5884 * main.c (main): Ditto.
5886 Fri Jun 11 18:34:33 1999 Andrew Cagney <cagney@b1.cygnus.com>
5888 * defs.h (gdb_file_rewind_ftype, gdb_file_rewind,
5889 set_gdb_file_rewind, gdb_file_put_ftype, gdb_file_put,
5890 set_gdb_file_put): Declare.
5892 * utils.c (gdb_file_new): Initialize ``rewind'' and ``put''.
5893 (struct gdb_file): Add to_rewind and to_put.
5894 (null_file_put, null_file_rewind, gdb_file_put, gdb_file_rewind,
5895 set_gdb_file_put, set_gdb_file_rewind): New functions.
5896 (tui_file_rewind, tui_file_put): New functions.
5897 (tui_file_new): Add rewind and put.
5899 * cli-out.c (cli_spaces): Replace gdb_stdout with data->stream.
5900 (cli_text, cli_message, cli_flush, out_field_fmt,
5901 field_separator): Ditto.
5903 Fri Jun 11 16:08:37 1999 Andrew Cagney <cagney@b1.cygnus.com>
5905 * cli-out.c (cli_out_new): Replace init_cli_out,
5906 * top.c (gdb_init): Call cli_out_new.
5907 * main.c (main): Delete call to set_ui_out_impl.
5909 * ui-out.h (set_ui_out_impl, cli_ui_out_impl), ui-out.c: Delete.
5910 (cli_out_new): Add declaration. Will move later.
5912 * ui-out.c (ui_out_new, ui_out_data), ui-out.h: New functions.
5913 (struct ui_out): Add field data.
5914 (ui_out_new): Replace init_ui_out_state.
5916 * ui-out.c (XMALLOC): Define.
5917 (ui_out_stream_new, append_header_to_list): Use XMALLOC instead of
5919 * cli-out.c (XMALLOC): Define.
5921 Fri Jun 11 10:31:29 1999 Andrew Cagney <cagney@b1.cygnus.com>
5923 * ui-out.c (ui_out_field_int, ui_out_field_skip,
5924 ui_out_field_fmt): Rewrite statements to remove infix operators.
5926 * ui-out.c (get_curr_header, verify_field_proper_position,
5927 verify_field_alignment, init_ui_out_state, set_ui_out_impl,
5928 append_header_to_list): Add explicit ui_out parameter.
5929 (struct ui_out): Move the local variables ``table_flag'',
5930 ``body_flag'', ``table_columns'', ``table_id'', ``list_flat'',
5931 ``field_count'', ``headerfirst'', ``headerlast'', ``headercurr''
5933 (typedef ui_out_hdr): Delete.
5934 (struct ui_out_hdr): Rename struct _ui_out_hdr.
5935 (ui_out_table_begin, ui_out_table_end, ui_out_table_body,
5936 ui_out_table_header, ui_out_field_int, ui_out_list_begin,
5937 ui_out_table_end, ui_out_list_end, ui_out_field_skip,
5938 ui_out_table_body, ui_out_list_begin, ui_out_list_end,
5939 ui_out_field_string, ui_out_field_fmt, init_ui_out_state,
5940 verify_field_proper_position, verify_field_alignment,
5941 clear_header_list, append_header_to_list, _initialize_ui_out):
5944 * ui-out.h (typedef streambuf): Delete.
5945 (struct _streambuf): Rename to struct ui_stream.
5946 * breakpoint.c (breakpoint_1), stack.c (print_frame_info_base),
5947 printcmd.c (print_frame_args): Rename streambuf to struct
5950 Fri Jun 11 15:10:32 1999 Andrew Cagney <cagney@b1.cygnus.com>
5952 * d10v-tdep.c (d10v_push_arguments): Fix order of arguments passed
5955 Fri Jun 11 10:31:29 1999 Andrew Cagney <cagney@b1.cygnus.com>
5957 * remote.c (tty_input): Change array to pointer.
5958 (_initialize_remote): Call build_remote_gdbarch_data.
5959 (build_remote_gdbarch_data): New function. Allocate space for
5961 (readsocket, readtty): Delete extern declaration of tty_input.
5963 1999-06-10 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
5965 * event-top.c (gdb_readline2): Call the command handling function
5966 via the input_handler pointer.
5967 (change_line_handler): When turning off editing, set input_handler
5970 * utils.c (prompt_for_continue): If running asynchronously, call
5971 async_request_quit, instead of request_quit.
5973 * tracepoint.c (read_actions): If running asynchronously, set the
5974 signal handler for STOP_SIGNAL to handle_stop_sig.
5976 * top.h: (source_line_number, source_file_name, source_error,
5977 source_pre_error, history_expansion_p, server_command): export for
5980 * event-top.c: Include top.h and terminal.h.
5981 (instream): Remove extern declaration.
5982 (handle_sigint, handle_sigquit, handle_sighup, handle_sigfpe,
5983 handle_sigwinch, async_do_nothing, async_disconnect,
5984 async_float_handler, async_stop_sig): Make static.
5985 (async_request_quit, async_do_nothing, async_disconnect,
5986 async_float_handler, async_stop_sig): Add gdb_glient_data
5988 (handle_stop_sig): New function.
5989 (sigtstp_token): New variable.
5990 (sigint_token, sigquit_token, sigfpe_token, sigwinch_token):
5991 Change their type tp PTR.
5992 (mark_async_signal_handler_wrapper): New function.
5993 (setup_event_loop): Initialize all the variables used by readline
5994 only if not already done while reading the .gdbinit file. Display
5995 the initial gdb prompt, if .gdbinit took care of setting things up
5997 (change_line_handler): When turning on the use of readline,
5998 initialize input_handler as well.
5999 (command_line_handler): Set up the signal handler for STOP_SIGNAL
6000 to be handle_stop_sig.
6001 (async_init_signals): Remove coercion of signal handlers in calls
6002 to create_async_signal_handler. Initialize token for stop signal.
6003 (handle_sigint): Call async_request_quit using one argument.
6004 (handle_sigint, handle_sigquit, handle_sighup, handle_sigfpe,
6005 handle_sigwinch): Call mark_async_signal_handler_wrapper instead
6006 of mark_async_signal_handler.
6008 * event-loop.h: Add extern declarations for handle_stop_sig,
6009 async_command_editing_p, async_annotation_suffix,
6010 new_async_prompt, the_prompts.
6012 * top.c (command_line_input): Set the signal handler to be
6013 handle_stop_sig, in case gdb is running asynchronously.
6014 (get_prompt): Return the top of the prompt stack if running
6016 (set_prompt): Set the top of the prompt stack if running
6018 (init_main): Move ``extern'' vars from here to event-loop.h.
6020 1999-06-10 Michael Snyder <msnyder@cleaver.cygnus.com>
6022 * values.c (value_from_string): new function. Make a value_ptr
6023 from a string, with storage in local GDB memory (not in inferior).
6024 * value.h (value_from_string): add prototype.
6025 * remote.c (remote_cisco_ops): New remote target, "target cisco".
6026 (init_remote_cisco_ops): New function, initialize new target.
6027 (remote_cisco_mourn, remote_cisco_wait, remote_cisco_open,
6028 remote_cisco_close): New functions, implement new target cisco.
6029 (minitelnet, readtty, readsocket) New functions, implement the
6030 I/O pass-through mode for target cisco.
6031 (remote_wait): Detect special enhanced version of the 'S' packet
6033 (remote_cisco_expand): Perform Cisco variant of RLL decoding.
6035 1999-06-10 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
6037 * event-loop.c (gdb_wait_for_event): Initialize num_found to 0.
6039 * top.c (print_prompt): Delete this function.
6041 From: Andrew Cagney <cagney@b1.cygnus.com>
6043 * event-top.c (async_hook): Delete extern declaration.
6045 * defs.h: Replace ``async_hook'' with ``async_p''.
6046 * top.c (gdb_init, init_main, init_main, init_main, init_main):
6047 Replace ``async_hook'' with ``async_p''.
6049 * main.c: Rename ``async'' to ``async_p''.
6050 (main): Add --noasync option.
6051 (main): Hook in the asynchronous event-loop based CLI using
6052 command_loop_hook instead of async_hook. Delete call to
6055 Thu Jun 10 21:14:16 1999 Andrew Cagney <cagney@b1.cygnus.com>
6057 * mn10300-tdep.c (mn10300_store_return_value,
6058 mn10300_extract_struct_value_address,
6059 mn10300_extract_return_value), config/mn10300/tm-mn10300.h: New
6061 * config/mn10300/tm-mn10300.h (EXTRACT_STRUCT_VALUE_ADDRESS,
6062 STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE): Update.
6063 (TARGET_MN10300): Delete macro. Not used.
6065 Thu Jun 10 20:04:02 1999 Andrew Cagney <cagney@b1.cygnus.com>
6067 * mn10300-tdep.c (mn10300_register_names): Make static.
6068 (STORE_STRUCT_RETURN): Do not modify SP.
6070 * config/mn10300/tm-mn10300.h(mn10300_register_name),
6071 mn10300-tdep.c : New function.
6072 * config/mn10300/tm-mn10300.h (REGISTER_NAME): Update.
6073 * config/mn10300/tm-mn10300.h (mn10300_saved_pc_after_call),
6074 mn10300-tdep.c: New function.
6075 * config/mn10300/tm-mn10300.h (SAVED_PC_AFTER_CALL): Update.
6077 Wed Jun 9 16:42:16 1999 Andrew Cagney <cagney@b1.cygnus.com>
6079 * top.h, top.c (simplified_command_loop): Make global.
6081 * main.c (main): Delete call to call_interp_loop. Interpreters
6082 hook in using command_loop_hook.
6083 * top.c (call_interp_loop): Delete function.
6085 1999-06-10 Keith Seitz <keiths@cygnus.com>
6087 * mcore-rom.c (picobug_dumpregs): Return a value. Any value, it
6089 * mcore-tdep.c (mcore_analyze_prologue): Set NO_MORE_FRAMES
6090 if the start of the function is the entry point.
6091 (mcore_analyze_prologue): rotli takes an immediate, not an
6093 (mcore_push_arguments): Fix compiler warning.
6095 1999-06-09 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
6097 * rs6000-tdep.c (skip_prologue): Don't mistake a branch for a
6100 1999-06-08 Michael Snyder <msnyder@cleaver.cygnus.com>
6102 * remote.c (remote_wait): Add 'N' response packet, which is a
6103 stop with signal number plus section offsets for .text, .data and
6104 .bss. This is used by Cisco to indicate relocation offsets.
6105 (remote_cisco_section_offsets, remote_cisco_objfile_relocate):
6106 new files to support 'N' packet.
6107 (remote_info_process): New function. Implements the
6108 "info remote-process" command, by means of which the remote target
6109 can report anything it wants to about the remote process/app being
6111 (_initialize_remote): add info remote-proc command.
6112 (remote_threads_info): New function for "info threads" command.
6113 Attempts to use new query "qfThreadInfo" instead of the old
6115 * exec.c (exec_set_section_offsets) new files to support 'N' packet.
6117 Tue Jun 8 13:33:42 1999 Andrew Cagney <cagney@amy.cygnus.com>
6119 * inferior.h (generic_target_read_pc, generic_target_write_pc,
6120 generic_target_read_fp, generic_target_write_fp,
6121 generic_target_read_sp, generic_target_write_sp): Declare new
6123 * findvar.c (generic_target_read_pc, generic_target_write_pc,
6124 generic_target_read_fp, generic_target_write_fp,
6125 generic_target_read_sp, generic_target_write_sp): New functions.
6126 (TARGET_READ_PC, TARGET_WRITE_PC, TARGET_READ_FP, TARGET_WRITE_FP,
6127 TARGET_READ_SP, TARGET_WRITE_SP): Default to corresponding generic
6129 (write_pc_pid, write_pc_pid, read_sp, write_sp, read_fp,
6130 write_fp): Simplify.
6132 * gdbarch.c (verify_gdbarch): Always verify TARGET_PTR_BIT,
6133 TARGET_SHORT_BIT, TARGET_INT_BIT, TARGET_LONG_BIT,
6134 TARGET_LONG_LONG_BIT, TARGET_FLOAT_BIT, TARGET_DOUBLE_BIT,
6135 TARGET_LONG_DOUBLE_BIT, TARGET_READ_PC, TARGET_WRITE_PC,
6136 TARGET_READ_FP, TARGET_WRITE_FP, TARGET_READ_SP, TARGET_WRITE_SP,
6137 USE_GENERIC_DUMMY_FRAMES, CALL_DUMMY_BREAKPOINT_OFFSET_P,
6138 CALL_DUMMY_P, CALL_DUMMY_STACK_ADJUST_P, GET_SAVED_REGISTER,
6139 REGISTER_CONVERTIBLE, PUSH_ARGUMENTS, PUSH_RETURN_ADDRESS,
6141 (GET_GDBARCH, SET_GDBARCH): Delete macros. Implement functions
6143 * gdbarch.h, gdbarch.c: Call fatal() instead of abort(). Identify
6144 the function / macro with a problem. Always verify a architecture
6145 attribute before returning it.
6146 * gdbarch.h, gdbarch.c (generic_register_convertible_not): New
6149 * mips-tdep.c (mips_push_return_address): New function.
6150 * config/mips/tm-mips.h (PUSH_RETURN_ADDRESS): Define.
6152 * mips-tdep.c (mips_gdbarch_init): Initialize short_bit,
6153 double_bit, long_double_bit, read_pc, write_pc, read_fp, write_fp,
6154 read_sp, write_sp, frame_chain_valid, get_saved_register,
6155 push_arguments, push_return_address, register_convertible,
6156 call_dummy_p, use_generic_dummy_frames,
6157 call_dummy_breakpoint_offset_p, call_dummy_stack_adjust_p,
6158 call_dummy_words and sizeof_call_dummy_words.
6159 * config/mips/tm-mips.h: Don't define CALL_DUMMY when multi-arch.
6161 1999-06-07 Keith Seitz <keiths@cygnus.com>
6163 * v850ice.c (init_hidden_window): Do not rely on the existence of
6164 a gui for window creation. Return boolean status.
6165 (v850ice_open): Use boolean status of init_hidden_window.
6166 Allow any ICE execution command to run under CLI. Maybe one
6167 day gdb will use a real event loop and allow this code to run.
6168 * configure.tgt: Configure the v850 ice for all cygwin-hosted
6171 Mon Jun 7 23:37:26 1999 Andrew Cagney <cagney@amy.cygnus.com>
6173 * config/mips/tm-mips.h (EXTRA_FRAME_INFO): Delete.
6174 * mips-tdep.c (mips_init_extra_frame_info): Allocate saved_regs.
6175 (temp_saved_regs): Replace struct with a simple pointer.
6176 (set_reg_offset, mips32_heuristic_proc_desc, heuristic_proc_desc,
6177 mips_init_extra_frame_info): Update.
6179 Mon Jun 7 21:40:12 1999 Andrew Cagney <cagney@amy.cygnus.com>
6181 * config/mips/tm-mips.h (EXTRA_FRAME_INFO): Move elements from here.
6182 * mips-tdep.c (struct frame_extra_info): To here.
6184 * mips-tdep.c (mips_print_extra_frame_info, mips_find_saved_regs,
6185 mips_init_extra_frame_info, mips_pop_frame): Update
6186 (mips_init_extra_frame_info): Allocate space for the extra info.
6188 Mon Jun 7 21:08:50 1999 Andrew Cagney <cagney@amy.cygnus.com>
6190 * config/mips/tm-mips.h (mips_init_extra_frame_info), mips-tdep.c:
6191 Rename init_extra_frame_info. Add argument ``fromleaf''.
6192 mips-tdep.c (mips_gdbarch_init): Add mips_init_extra_frame_info.
6194 * config/mips/tm-mips.h (mips_print_extra_frame_info),
6195 mips-tdep.c: New function.
6196 (PRINT_EXTRA_FRAME_INFO): Update definition.
6198 Mon Jun 7 20:11:07 1999 Andrew Cagney <cagney@amy.cygnus.com>
6200 * config/mips/tm-mips.h, config/mips/tm-irix3.h,
6201 config/mips/tm-tx19.h, config/mips/tm-tx19l.h,
6202 config/mips/tm-tx39.h, config/mips/tm-tx39l.h: Rename macro
6203 REGISTER_NAMES to MIPS_REGISTER_NAMES.
6205 * config/mips/tm-mips.h (REGISTER_NAME): Define.
6206 * mips-tdep.c (mips_processor_reg_names): New static variable.
6207 (mips_register_name): New function.
6208 (mips_set_processor_type): Update mips_processor_reg_names.
6209 (mips_generic_reg_names): Initialize using MIPS_REGISTER_NAMES.
6210 (mips_gdbarch_init): Add mips_register_name.
6212 Sun Jun 6 11:09:19 1999 Andrew Cagney <cagney@b1.cygnus.com>
6214 * remote.c (PBUFSIZ): Re-define so that value is computed at
6216 (MAXBUFBYTES): Re-define as a macro function.
6217 * gdbarch.h, gdbarch.c: Add multi-arch support for REGISTER_BYTES.
6218 * d10v-tdep.c, config/d10v/tm-d10v.h: Update.
6220 1999-06-05 Fernando Nasser <fnasser@totem.to.cygnus.com>
6222 * symtab.c (decode_line_1): Accept filenames with spaces in
6223 'linespecs' when enclosed in double quotation marks and handle
6224 drive specification is DOS format (D:).
6226 1999-06-04 Jim Blandy <jimb@zwingli.cygnus.com>
6228 * parse.c: Don't include <ctype.h> twice.
6230 1999-06-04 David Taylor <taylor@louisiana.cygnus.com>
6232 Sat May 15 12:16:09 1999 Per Bothner <bothner@deneb.cygnus.com>
6234 * eval.c (evaluate_subexp_standard): Remove Gilmore rant.
6235 (Of course C has "expected types", at least if you allow
6236 brace-initializer expressions - as in Gcc.)
6237 Remove NULLing out expect_type. Do pass NULL_TYPE in place
6238 the incoming expect_type where appropriate.
6240 Fri Jun 4 10:56:23 1999 Jeffrey A Law (law@cygnus.com)
6242 * hppa-tdep.c (hppa_fix_call_dummy): Make it work for GCC compiled
6243 executables without end.o. Clean up lots of mis-guided comments.
6245 Fri Jun 4 17:10:36 1999 Andrew Cagney <cagney@b1.cygnus.com>
6247 * parser-defs.h (std_regs): Replace array with pointer.
6248 * parse.c (build_parse): Build the std_regs table according to the
6249 standard registers available.
6250 (_initialize_parse): Register std_regs and num_std_regs as
6251 architecture specific.
6252 * gdbarch.h, gdbarch.c: Add multi-arch support for SP_REGNUM,
6253 FP_REGNUM, PC_REGNUM, NUM_REGS, REGISTER_NAME.
6254 * d10v-tdep.c, config/d10v/tm-d10v.h: Update.
6256 1999-06-03 Fernando Nasser <fnasser@totem.to.cygnus.com>
6258 * printcmd.c (print_frame_args): Convert some of the output to use
6260 * stack.c (print_frame_info_base): Adjust the call to the above
6263 1999-06-03 Michael Snyder <msnyder@cleaver.cygnus.com>
6265 * thread.c: eliminate the target_thread_vector (functionality
6266 moved into the standard target vector).
6267 * gdbthread.h: eliminate target_thread_vector. Move all related
6268 defines into remote.c, since they are no longer shared with thread.c.
6269 * remote.c: eliminate the target_thread_vector.
6270 (remote_find_new_threads): change return type to void, consistent
6271 with the target vector table. (cont_thread): rename continue_thread.
6272 (record_currthread): remove dead code. (remote_thread_alive):
6273 clean up and simplify. (threadref etc.): move definitions to here
6276 1999-06-02 Jason Molenda (jsm@bugshack.cygnus.com)
6278 * inftarg.c (child_create_inferior): Remove dead HPUX specific code
6279 which tries to find csh.
6280 * fork-child.c: Remove DEBUGGING predefine and conditionalized
6282 (fork_inferior): Remove dead HPUX specific code which assumes shell
6285 * hppa-tdep.c: Remove DEBUGGING and #if 0 debugging printfs.
6289 * gdbarch.h: Forward decl of struct value.
6291 Thu Jun 3 10:12:38 1999 Andrew Cagney <cagney@b1.cygnus.com>
6293 * d10v-tdep.c (do_d10v_pop_frame): Rename d10v_pop_frame. Make
6295 * d10v-tdep.c (d10v_pop_frame), config/d10v/tm-d10v.h: New
6296 function. Call generic_pop_current_frame.
6297 * config/d10v/tm-d10v.h (POP_FRAME): Update.
6298 * gdbarch.h, gdbarch.c (frame_num_args_unknown): New function.
6299 * gdbarch.h, gdbarch.c: Add multi-arch support for POP_FRAME,
6300 SKIP_PROLOGUE, INNER_THAN, DECR_PC_AFTER_BREAK,
6301 FUNCTION_START_OFFSET, REMOTE_TRANSLATE_XFER_ADDRESS, FRAME_CHAIN,
6302 FRAME_CHAIN_VALID, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS,
6303 FRAME_LOCALS_ADDRESS, FRAME_ARGS_SKIP,
6304 FRAMELESS_FUNCTION_INVOCATION, REGISTER_BYTE, REGISTER_RAW_SIZE,
6305 REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, SAVED_PC_AFTER_CALL,
6306 FRAME_NUM_ARGS, MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
6308 * d10v-tdep.c, config/d10v/tm-d10v.h: Update.
6309 * config/d10v/tm-d10v.h (DMEM_START, IMEM_START, STACK_START,
6310 ARG1_REGNUM, ARGN_REGNUM, RET1_REGNUM): Move definitions from
6312 * d10v-tdep.c: To here.
6313 * config/d10v/tm-d10v.h (struct type): Move declaration from here.
6314 * gdbarch.h: To here.
6315 * config/d10v/tm-d10v.h (struct frame_info, struct
6316 frame_saved_regs, struct type): Delete declarations.
6318 1999-06-02 Robert Hoehne <robert.hoehne@gmx.net>
6320 * go32-nat.c: go32_terminal_init, go32_terminal_inferior and
6321 go32_terminal_ours are new functions to save/restore the inferior`s
6322 stdin/stdout filemodes
6324 1999-06-02 Stan Shebs <shebs@andros.cygnus.com>
6326 * MAINTAINERS: Add Mark Kettenis, Jeff Law, and Philippe De Muyter
6327 as maintainers for Hurd, HP/UX, and COFF, respectively.
6329 1999-06-02 Mark Kettenis <kettenis@gnu.org>
6331 * gnu-nat.c (inf_continue): New function.
6332 (struct inf): Use `unsigned int' instead of `int' for bit-fields.
6333 Add new bit-field named `nomsg'.
6334 (inf_validate_procinfo): Renamed from inf_validate_stopped, all
6335 callers changed. Also update the `nomsg' and `traced' fields of
6337 (make_inf): Initialize INF->nomsg.
6338 (inf_cleanup): Reset INF->nomsg.
6339 (inf_detach): Call `inf_validate_procinfo'. Call `inf_continue'
6340 instead of `inf_signal' if the inferior does not have a message
6342 (gnu_resume): Likewise.
6343 (gnu_create_inferior): Reset INF->nomsg in `attach_to_child'.
6344 Call `inf_validate_procinfo' after returning from `fork_inferior'.
6345 (gnu_attach): Update signal thread and tracing state.
6347 * config/i386/tm-i386gnu.h: Include "i386/tm-i386.h" instead of
6349 (STACK_END_ADDR): Remove.
6350 (SIGCONTEXT_PC_OFFSET): New define.
6351 Include "tm-sysv4.h".
6353 1999-06-02 J.T. Conklin <jtc@redback.com>
6355 * config/tm-vxworks.h: New file, header for definitions common to
6356 all vxWorks targets.
6357 * config/a29k/tm-vx29k.h, config/i960/tm-vx960.h,
6358 config/m68k/tm-vx68.h, config/mips/tm-vxmips.h,
6359 config/sparc/tm-vxsparc.h: Include tm-vxworks.h.
6361 Wed Jun 2 17:37:03 1999 Jeffrey A Law (law@cygnus.com)
6363 * config/pa/tm-hppa.h (IMPORT_SHLIB): New unwind stub type.
6365 1999-06-02 Christopher Faylor <cgf@cygnus.com>
6367 * configure.tgt: Alphabetically reorder some targets.
6369 1999-06-02 Keith Seitz <keiths@cygnus.com>
6371 * v850ice.c (v850ice_xfer_memory): Insert lost "break".
6373 1999-06-02 Jim Blandy <jimb@zwingli.cygnus.com>
6375 * rs6000-tdep.c (variants): Fix description of 750 register set.
6376 (Thanks to J. T. Conklin.)
6378 Wed Jun 2 16:10:08 1999 Andrew Cagney <cagney@b1.cygnus.com>
6380 * gdbarch.h, gdbarch.c: Add multi-arch support for
6381 STORE_STRUCT_RETURN, STORE_RETURN_VALUE,
6382 EXTRACT_STRUCT_VALUE_ADDRESS, USE_STRUCT_CONVENTION,
6383 FRAME_INIT_SAVED_REGS and INIT_EXTRA_FRAME_INFO.
6384 * d10v-tdep.c, config/d10v/tm-d10v.h: Update.
6386 * config/d10v/tm-d10v.h (FRAME_INIT_SAVED_REGS): Replace
6387 FRAME_FIND_SAVED_REGS.
6388 (d10v_frame_init_saved_regs): Replace d10v_frame_find_saved_regs.
6389 * d10v-tdep.c (d10v_pop_frame, d10v_frame_chain,
6390 d10v_frame_init_saved_regs): Update.
6391 * gdbarch.h: Disallow FRAME_FIND_SAVED_REGS when multi-arch.
6393 * gdbarch.h, gdbarch.c: Add multi-arch support for
6394 D10V_MAKE_DADDR, D10V_MAKE_IADDR, D10V_DADDR_P, D10V_IADDR_P,
6395 D10V_CONVERT_DADDR_TO_RAW and D10V_CONVERT_IADDR_TO_RAW.
6396 * d10v-tdep.c, config/d10v/tm-d10v.h: Update.
6398 * config/d10v/tm-d10v.h (EXTRA_FRAME_INFO): Delete.
6399 * d10v-tdep.c (struct frame_extra_info): Define.
6400 (d10v_init_extra_frame_info, d10v_pop_frame, d10v_frame_chain,
6401 d10v_frame_find_saved_regs): Update.
6402 * gdbarch.h: Disallow EXTRA_FRAME_INFO when multi-arch.
6404 Tue Jun 1 13:36:31 1999 Philippe De Muyter <phdm@macqel.be>
6406 * config/m68k/tm-delta68.h (FRAME_NUM_ARGS): Macro prototype fixed.
6407 * config/m68k/tm-news.h, config/ns32k/tm-merlin.h: Ditto.
6408 * config/ns32k/tm-umax.h (FRAME_NUM_ARGS): Old macro definition
6409 removed; new macro prototype fixed.
6411 Wed Jun 2 11:18:37 1999 Andrew Cagney <cagney@b1.cygnus.com>
6413 * gdbarch.h, gdbarch.c: Add multi-arch support for
6414 EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS, PUSH_DUMMY_FRAME,
6415 PUSH_RETURN_ADDRESS, POP_FRAME, FRAME_FIND_SAVED_REGS.
6416 * d10v-tdep.c, config/d10v/tm-d10v.h: Update.
6418 * gdbarch.h, gdbarch.c: Add multi-arch support for
6419 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
6420 REGISTER_CONVERT_TO_RAW.
6421 * config/d10v/tm-d10v.h, d10v-tdep.c (d10v_gdbarch_init): Update.
6423 * defs.h (REGISTER_NAME): Move compatibility definition from here.
6424 * gdbarch.h: To here.
6426 * frame.h, blockframe.c (generic_fix_call_dummy): New
6428 * gdbarch.h, gdbarch.c: Add multi-arch support for FIX_CALL_DUMMY.
6429 * config/d10v/tm-d10v.h, d10v-tdep.c (d10v_gdbarch_init): Update.
6431 Tue Jun 1 20:06:38 1999 Andrew Cagney <cagney@b1.cygnus.com>
6433 * d10v-tdep.c (d10v_gdbarch_init): Set get_saved_register.
6434 * config/d10v/tm-d10v.h: Update.
6436 Tue Jun 1 19:50:05 1999 Andrew Cagney <cagney@b1.cygnus.com>
6438 * gdbarch.h, gdbarch.c: Add multi-arch support for TARGET_READ_PC,
6439 TARGET_WRITE_PC, TARGET_READ_FP, TARGET_WRITE_FP, TARGET_READ_SP
6440 and TARGET_WRITE_SP.
6441 * config/d10v/tm-d10v.h, d10v-tdep.c (d10v_gdbarch_init): Update.
6443 Tue Jun 1 19:19:02 1999 Andrew Cagney <cagney@b1.cygnus.com>
6445 * gdbarch.c (default_gdbarch): Set field GET_SAVED_REGISTER to
6446 generic_get_saved_register.
6447 * gdbarch.c: Change update dispatch functions so that they check
6448 for a NULL function pointer.
6450 Tue Jun 1 19:19:02 1999 Andrew Cagney <cagney@b1.cygnus.com>
6452 * gdbarch.h, gdbarch.c: Add multi-arch support for TARGET_INT_BIT,
6453 TARGET_CHAR_BIT, TARGET_SHORT_BIT, TARGET_FLOAT_BIT,
6454 TARGET_DOUBLE_BIT and TARGET_LONG_DOUBLE_BIT.
6455 * config/d10v/tm-d10v.h, d10v-tdep.c (d10v_gdbarch_init): Update.
6457 Tue Jun 1 18:47:54 1999 Andrew Cagney <cagney@b1.cygnus.com>
6459 * parse.c (build_parse): New function. Initialize
6460 msym_text_symbol_type, msym_data_symbol_type and
6461 msym_unknown_symbol_type.
6462 (_initialize_parse): Call build_parse.
6463 (_initialize_parse): Register variables msym_text_symbol_type,
6464 msym_data_symbol_type as msym_unknown_symbol_type as
6467 Tue Jun 1 11:30:09 1999 Andrew Cagney <cagney@b1.cygnus.com>
6469 * d10v-tdep.c (_initialize_d10v_tdep): Register d10v as an
6471 (d10v_gdbarch_init): New function.
6472 * confg/d10v/tm-d10v.h (GDB_MULTI_ARCH): Define.
6474 Tue Jun 1 10:45:24 1999 Andrew Cagney <cagney@b1.cygnus.com>
6476 * config/d10v/tm-d10v.h (REGISTER_CONVERTIBLE,
6477 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERT_TO_VIRTUAL): Convert
6478 macros into functions.
6479 * config/d10v/tm-d10v.h, d10v-tdep.c (d10v_register_convertable,
6480 d10v_register_convert_to_virtual, d10v_register_convert_to_raw):
6483 1999-05-31 Fernando Nasser <fnasser@totem.to.cygnus.com>
6485 * breakpoint.c (print_it_normal): Convertion of part of the output
6487 (mention): Same as above.
6488 * infcmd.c (run_command): Same.
6489 * source.c (print_source_lines_base): Same.
6490 * stack.c (print_frame_info_base): Same.
6492 1999-05-31 Fernando Nasser <fnasser@totem.to.cygnus.com>
6494 * breakpoint.c (breakpoint_1): Fix names of fields on ui_out
6496 * ui-out.h: Cosmetic change.
6498 1999-05-31 Fernando Nasser <fnasser@totem.to.cygnus.com>
6500 * stack.c (print_args_stub): Add missing stream parameter.
6502 Mon May 31 15:50:08 1999 Andrew Cagney <cagney@b1.cygnus.com>
6504 Fri May 28 16:51:00 1999 Martin Dorey <martin.dorey@madge.com>:
6505 * valops.c, value.h (default_push_arguments): Fix order of
6506 parameters to match PUSH_ARGUMENTS arguments.
6508 1999-05-28 Fernando Nasser <fnasser@totem.to.cygnus.com>
6510 * top.c (print_command_lines): Simplified script format for
6513 1999-05-28 Fernando Nasser <fnasser@totem.to.cygnus.com>
6515 * top.c (print_command_lines): Fixed printing of if clauses.
6516 * breakpoint.c (breakpoint_1): Adjust call to the above.
6517 * top.c (show_user_1): Same as above.
6519 1999-05-27 Fernando Nasser <fnasser@totem.to.cygnus.com>
6521 * top.c (call_interp_loop): Correct build problem with UI_OUT defined.
6523 Thu May 27 11:42:55 1999 Andrew Cagney <cagney@b1.cygnus.com>
6525 * gdbarch.h (EXTRACT_STRUCT_VALUE_ADDRESS): Return 0.
6527 * valops.c (value_assign): Delete redundant test of
6528 REGISTER_CONVERTIBLE.
6530 Thu May 27 11:33:57 1999 Andrew Cagney <cagney@b1.cygnus.com>
6532 * config/w65/tm-w65.h, config/tic80/tm-tic80.h, config/sh/tm-sh.h,
6533 config/i386/tm-i386m3.h, config/i386/tm-go32.h,
6534 config/i386/tm-cygwin.h, config/h8500/tm-h8500.h,
6535 config/d30v/tm-d30v.h, config/d10v/tm-d10v.h: Delete definition of
6536 macro NAMES_HAVE_UNDERSCORE.
6538 Thu May 27 09:31:06 1999 Andrew Cagney <cagney@b1.cygnus.com>
6540 * gdbarch.h (EXTRACT_STRUCT_VALUE_ADDRESS,
6541 EXTRACT_STRUCT_VALUE_ADDRESS_P): Provide default definitions.
6542 * values.c (value_being_returned): Use
6543 EXTRACT_STRUCT_VALUE_ADDRESS when EXTRACT_STRUCT_VALUE_ADDRESS_P.
6545 Wed May 26 13:51:25 1999 Andrew Cagney <cagney@b1.cygnus.com>
6547 * utils.c (tui_file_new, tui_file_delete, tui_fileopen): New
6549 (tui_file_isatty): Rename gdb_file_isatty.
6550 (gdb_file_init_astring): Use tui_file_new to create stream.
6551 (gdb_file_get_strbuf, gdb_file_adjust_strbuf): Call gdb_file_data
6552 to access the tui_stream.
6553 (tui_file_flush): Rename gdb_flush. Call gdb_file_data to access
6554 the tui_stream. Pass FILE and not STREAM down.
6556 * utils.c (struct stdio_file, stdio_file_flush, stdio_file_fputs,
6557 stdio_file_isatty, stdio_file_delete, stdio_file_new,
6558 stdio_fileopen): Define type and functions. Implement a simple
6559 STDIO based gdb_file.
6560 (struct gdb_file, gdb_file_new, gdb_file_delete, null_file_isatty,
6561 null_file_flush, null_file_fputs, null_file_delete, gdb_file_data,
6562 set_gdb_file_flush, set_gdb_file_isatty, set_gdb_file_fputs,
6563 set_gdb_file_data, fputs_unfiltered, gdb_flush, gdb_file_isatty):
6564 Define type and functions. Implement virtual functions for
6567 * defs.h (struct gdb_file): Declare.
6568 (GDB_FILE): Change type to struct gdb_file. Deprecate.
6569 (gdb_file_flush_ftype, gdb_file_fputs_ftype,
6570 gdb_file_isatty_ftype, gdb_file_delete_ftype): Add function type
6573 * defs.h (set_gdb_file_flush, set_gdb_file_fputs,
6574 set_gdb_file_isatty, set_gdb_file_data, gdb_file_new,
6575 gdb_file_delete, gdb_file_data, stdio_fileopen, tui_fileopen): Add
6576 function declarations.
6577 (gdb_fopen): Re-implement. Call stdio_file_new.
6578 (gdb_fclose): Re-implement. Call gdb_file_delete.
6580 * main.c (tui_file_fputs): Rename fputs_unfiltered. Use
6581 gdb_file_data to gain access to the tui_stream data. Use FILE
6582 instead of STREAM where applicable.
6583 (main): Create gdb_stdout and gdb_stderr using tui_fileopen.
6585 * defs.h (struct tui_stream): Add field ts_magic.
6586 * utils.c (tui_file_magic): Local variable.
6587 (tui_file_new): Set field ts_magic.
6588 (tui_file_delete, tui_file_isatty, gdb_file_init_astring,
6589 gdb_file_get_strbuf, gdb_file_adjust_strbuf, tui_file_flush):
6592 1999-05-25 Fernando Nasser <fnasser@totem.to.cygnus.com>
6594 * top.c (print_command_lines): New function, fix bug in printing
6595 while commands and uses ui_out.
6596 * gdbcmd.c: Add prototype for the above.
6597 * breakpoint.c (breakpoint_1): Fix breakpoint script printing.
6598 * command.c (show_user_1): Fix user command script printing.
6600 1999-05-25 Jim Blandy <jimb@zwingli.cygnus.com>
6602 * breakpoint.c (insert_breakpoints, remove_breakpoint,
6603 breakpoint_1): Add a 'default' case, which prints a warning
6604 message, to remove EGCS warnings.
6606 1999-05-25 Fernando Nasser <fnasser@totem.to.cygnus.com>
6608 * utils.c (gdb_file_adjust_strbuf): Take into account the
6609 possibility that the buffer has not been allocated yet.
6611 Tue May 25 16:05:11 1999 Andrew Cagney <cagney@b1.cygnus.com>
6613 * gdbarch.h (REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
6614 REGISTER_CONVERT_TO_RAW): Provide default definition.
6616 * valops.c (value_assign), infcmd.c (do_registers_info), findvar.c
6617 (value_from_register, value_of_register): Remove #ifdef
6618 REGISTER_CONVERTIBLE. Assume REGISTER_CONVERTIBLE etc defined.
6620 1999-05-25 Keith Seitz <keiths@cygnus.com>
6622 * config/mcore/tm-mcore.h (FRAME_NUM_ARGS): Re-write definition of
6623 FRAME_NUM_ARGS so that it returns NUM_ARGS as a result instead of
6624 setting a variable as a side effect.
6626 Tue May 25 16:18:25 1999 Andrew Cagney <cagney@amy.cygnus.com>
6628 * remote-d10v.c (d10v_eva_prepare_to_trace,
6629 d10v_eva_get_trace_data), remote-sim.c (_initialize_remote_sim):
6630 Add declaraton. Make static.
6632 * remote-d10v.c (_initialize_remote_d10v), d10v-tdep.c
6633 (_initialize_d10v_tdep): Add declaration.
6634 * config/d10v/tm-d10v.h (d10v_frame_chain): Add declaration.
6636 Tue May 25 15:20:58 1999 Andrew Cagney <cagney@amy.cygnus.com>
6638 * main.c (init_proc, proc_remove_foreign): Delete function.
6639 * inftarg.c (child_mourn_inferior): Update. Delete call to
6640 proc_remove_foreign().
6641 * top.c (gdb_init): Update. Delete call to init_proc().
6643 * utils.c (pollquit, fmthex, hexlate): Delete function.
6645 Tue May 25 13:01:43 1999 Andrew Cagney <cagney@amy.cygnus.com>
6647 * main.c (gdb_init): Move declaration from here.
6650 * main.c (call_interp_loop): Move declaration from here.
6653 * defs.h (init_page_info): Add declaration.
6655 * top.c (initialize_utils): Move declaration from here.
6658 * infcmd.c (target_map_name_to_register): Move declaration from
6660 * parser-defs.h: To here.
6662 * c-typeprint.c (cp_type_print_method_args), target.c
6663 (nosupport_runtime, normal_target_post_startup_inferior): Add
6664 declaration. Make static.
6666 Tue May 25 13:53:23 1999 Andrew Cagney <cagney@amy.cygnus.com>
6668 * main.c: Include "event-loop.h".
6669 * Makefile.in (main.o): Add dependency.
6671 * top.h (setup_event_loop, async_init_signals), top.c
6672 (set_async_editing_command, set_async_annotation_level,
6673 set_async_prompt), event-loop.c (display_gdb_prompt): Move
6674 declarations from here.
6675 * event-loop.h: To here.
6677 * event-loop.h (delete_async_signal_handler): Add function
6680 * event-top.c (change_annotation_level, command_handler): Add
6681 declaration. Make static.
6683 Tue May 25 12:44:58 1999 Andrew Cagney <cagney@amy.cygnus.com>
6685 * tracepoint.c (free_actions_list, add_register): Add declaration.
6687 (free_actions_list_cleanup_wrapper): New function. Wraps
6688 free_actions_list for make_cleanup.
6689 (trace_start_command): Pass free_actions_list_cleanup_wrapper
6690 instead of free_actions_list to make_cleanup.
6691 (_initialize_tracepoint): Add extern declaration.
6693 Tue May 25 12:23:39 1999 Andrew Cagney <cagney@amy.cygnus.com>
6695 * jv-typeprint.c (java_type_print_base, jv-valprint.c
6696 (java_print_value_fields): Add static declaration.
6698 * jv-lang.c (java_lookup_type, get_java_utf8_name,
6699 java_lookup_type): Add static declaration.
6700 (get_java_class_symtab, java_class_is_primitive,
6701 java_value_string): Add declaration. Make static.
6702 (java_rerun_cleanup): Add extern declaration for this stub
6705 Tue May 25 12:06:29 1999 Andrew Cagney <cagney@b1.cygnus.com>
6707 * gdbarch.h: When multi-arch, check that REGISTER_NAMES was not
6710 Mon May 24 16:16:29 1999 Andrew Cagney <cagney@amy.cygnus.com>
6712 * inflow.c (_initialize_inflow), annotate.c
6713 (_initialize_annotate), os9kread.c (_initialize_os9kread),
6714 serial.c (_initialize_serial), nlmread.c (_initialize_nlmread),
6715 f-valprint.c (_initialize_f_valprint), cp-valprint.c
6716 (_initialize_cp_valprint), typeprint.c (_initialize_typeprint),
6717 complaints.c (_initialize_complaints), scm-lang.c
6718 (_initialize_scheme_language), m2-lang.c
6719 (_initialize_m2_language), dbxread.c (_initialize_dbxread),
6720 f-lang.c (_initialize_f_language), ch-lang.c
6721 (_initialize_chill_language), c-lang.c (_initialize_c_language),
6722 corefile.c (_initialize_core), stabsread.c
6723 (_initialize_stabsread), mipsread.c (_initialize_mipsread),
6724 elfread.c (_initialize_elfread), coffread.c
6725 (_initialize_coffread), maint.c (_initialize_maint_cmds),
6726 demangle.c (_initialize_demangler), maint.c
6727 (_initialize_maint_cmds), language.c (_initialize_language): Add
6728 external declaration.
6729 * ui-out.c (_initialize_ui_out), cli-out.c (_initialize_cli_out):
6732 Mon May 24 10:04:56 1999 Andrew Cagney <cagney@b1.cygnus.com>
6734 * config/z8k/tm-z8k.h, config/w65/tm-w65.h, config/v850/tm-v850.h,
6735 config/tic80/tm-tic80.h, config/tahoe/tm-tahoe.h,
6736 config/rs6000/tm-rs6000.h, config/sparc/tm-sparc.h,
6737 config/sh/tm-sh.h, config/pyr/tm-pyr.h, config/pa/tm-hppa.h,
6738 config/ns32k/tm-merlin.h, config/mn10300/tm-mn10300.h,
6739 config/mn10200/tm-mn10200.h, config/mips/tm-mips.h,
6740 config/m88k/tm-m88k.h, config/m68k/tm-news.h,
6741 config/m68k/tm-delta68.h, config/m68k/tm-isi.h,
6742 config/m68k/tm-m68k.h, config/m32r/tm-m32r.h,
6743 config/i960/tm-i960.h, config/i386/tm-i386v.h,
6744 config/i386/tm-i386.h, config/h8500/tm-h8500.h,
6745 config/h8300/tm-h8300.h, config/fr30/tm-fr30.h,
6746 config/d30v/tm-d30v.h, config/d10v/tm-d10v.h,
6747 config/convex/tm-convex.h, config/arc/tm-arc.h,
6748 config/arm/tm-arm.h, config/alpha/tm-alpha.h,
6749 config/a29k/tm-a29k.h: Re-write definition of FRAME_NUM_ARGS so
6750 that it returns NUM_ARGS as a result instead of setting a variable
6753 * ns32k-tdep.c (merlin_frame_num_args), tahoe-tdep.c
6754 (tahoe_frame_num_args), vax-tdep.c (vax_frame_num_args),
6755 m68k-tdep.c (news_frame_num_args, delta68_frame_num_args,
6756 isi_frame_num_args), convex-tdep.c (convex_frame_num_args): New
6759 * stack.c (print_args_stub): Update use of FRAME_NUM_ARGS.
6761 Mon May 24 11:57:04 1999 Andrew Cagney <cagney@b1.cygnus.com>
6763 * remote.c (remote_xfer_memory): Re-write with assumption that
6764 REMOTE_TRANSLATE_XFER_ADDRESS is defined. Pass targ_addr and
6765 targ_len by reference.
6766 (REMOTE_TRANSLATE_XFER_ADDRESS): Provide default definition.
6768 * remote-d10v.c (remote_d10v_translate_xfer_address): Update.
6769 * config/d10v/tm-d10v.h (REMOTE_TRANSLATE_XFER_ADDRESS): Update.
6771 Mon May 24 12:10:58 1999 Andrew Cagney <cagney@amy.cygnus.com>
6773 * value.h (default_push_arguments): Add function declaration.
6775 * alpha-tdep.c (alpha_about_to_return), gdbarch.c (verify_gdbarch,
6776 arch_ok, set_arch), command.c (find_cmd), infrun.c
6777 (follow_inferior_fork, follow_fork, follow_vfork,
6778 set_schedlock_func, is_internal_shlib_eventpoint,
6779 stopped_for_internal_shlib_event, stopped_for_shlib_catchpoint,
6780 xdb_handle_command), infcmd.c (run_no_args_command, go_command),
6781 symfile.c (add_filename_language, set_ext_lang_command,
6782 info_ext_lang_command, init_filename_language_table), symtab.c
6783 (overload_list_add_symbol), defs.h (default_get_saved_register),
6784 ax-general.c (grow_expr, append_const, read_const, generic_ext):
6787 * infrun.c (currently_stepping): Ditto. Make static.
6789 * valops.c (hand_function_call): Explictly type static variable
6792 Mon May 24 08:36:18 1999 Andrew Cagney <cagney@b1.cygnus.com>
6794 * d10v-tdep.c (d10v_breakpoint_from_pc, d10v_register_name,
6795 d10v_register_byte, d10v_register_raw_size,
6796 d10v_register_virtual_size, d10v_register_virtual_type,
6797 d10v_make_daddr, d10v_make_iaddr, d10v_daddr_p, d10v_iaddr_p,
6798 d10v_convert_iaddr_to_raw, d10v_convert_daddr_to_raw,
6799 d10v_store_struct_return, d10v_store_return_value,
6800 d10v_extract_struct_value_address, d10v_frame_saved_pc,
6801 d10v_frame_args_address, d10v_frame_locals_address,
6802 d10v_saved_pc_after_call): New functions.
6804 * config/d10v/tm-d10v.h (REGISTER_BYTE, REGISTER_RAW_SIZE,
6805 REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN,
6806 D10V_MAKE_DADDR, D10V_MAKE_IADDR, D10V_DADDR_P, D10V_IADDR_P,
6807 D10V_CONVERT_DADDR_TO_RAW, D10V_CONVERT_IADDR_TO_RAW,
6808 STORE_STRUCT_RETURN, STORE_RETURN_VALUE,
6809 EXTRACT_STRUCT_VALUE_ADDRESS, SAVED_PC_AFTER_CALL, FRAME_SAVED_PC,
6810 FRAME_ARGS_ADDRESS): Re-define using new functions.
6812 * config/d10v/tm-d10v.h (BREAKPOINT_FROM_PC): Replace BREAKPOINT.
6813 (REGISTER_NAME): Replace REGISTER_NAMES.
6815 * utils.c (core_addr_lessthan, core_addr_greaterthan): New
6817 * defs.h (core_addr_lessthan, core_addr_greaterthan): Declare.
6819 Sat May 22 16:44:06 1999 Andrew Cagney <cagney@b1.cygnus.com>
6821 * utils.c (n_spaces): Handle case where first call has N equal to
6823 (print_spaces): Use n_spaces.
6825 Fri May 21 11:23:54 1999 Andrew Cagney <cagney@b1.cygnus.com>
6827 * valops.c (value_push): Remove conditional definition based on
6828 absense of macro PUSH_ARGUMENTS. Pass SP and STRUCT_ADDR by
6830 (default_push_arguments): New function.
6832 * config/v850/tm-v850.h, config/tic80/tm-tic80.h,
6833 config/sparc/tm-sparc.h, config/sparc/tm-sp64.h,
6834 config/sh/tm-sh.h, config/rs6000/tm-rs6000.h, config/pa/tm-hppa.h,
6835 config/mn10300/tm-mn10300.h, config/mn10200/tm-mn10200.h,
6836 config/mips/tm-mips.h, config/m32r/tm-m32r.h,
6837 config/h8300/tm-h8300.h, config/fr30/tm-fr30.h,
6838 config/d30v/tm-d30v.h, config/d10v/tm-d10v.h, config/arm/tm-arm.h,
6839 config/alpha/tm-alpha.h: Update definition of PUSH_ARGUMENTS.
6842 * rs6000-tdep.c (rs6000_push_arguments): Rename push_arguments.
6844 1999-05-21 Fernando Nasser <fnasser@totem.to.cygnus.com>
6846 * breakpoint.c (breakpoint_1): Added ui_out output code but still
6847 uses old code by default.
6849 1999-05-21 Fernando Nasser <fnasser@totem.to.cygnus.com>
6851 * Makefile.in: Added ui-ou files.
6852 * main.c (main): Install cli_out by default.
6853 * ui-out.c (ui_out_table_begin): Use saved table id.
6855 1999-05-21 Fernando Nasser <fnasser@totem.to.cygnus.com>
6857 * ui-out.h: Export implementation vectors so they can be
6858 installed in main.c and top.c.
6860 1999-05-21 Fernando Nasser <fnasser@totem.to.cygnus.com>
6862 * ui-out.h: New file. Defines the ui_out API.
6863 * ui-out.c: New file. Implements the ui_out API abstraction only.
6864 * cli-out.c: New file. Implements low-level ui-out primitives for
6865 CLI-based interaction.
6867 1999-05-20 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
6869 * top.c (simplified_command_loop): Reformat using GNU style.
6870 (call_interp_loop): Ditto.
6872 Thu May 20 12:18:28 1999 Andrew Cagney <cagney@b1.cygnus.com>
6874 * blockframe.c (get_prev_frame): Remove #ifdef around test for
6875 FRAMELESS_FUNCTION_INVOCATION.
6876 (get_prev_frame): Change FRAMELESS_FUNCTION_INVOCATION call to a
6877 function invocation.
6878 * i386-tdep.c (i386_frame_num_args), stack.c (frame_info): Ditto.
6879 * config/z8k/tm-z8k.h, config/w65/tm-w65.h, config/vax/tm-vax.h,
6880 config/sparc/tm-sparc.h, config/sh/tm-sh.h,
6881 config/rs6000/tm-rs6000.h, config/pa/tm-hppa.h,
6882 config/mips/tm-mips.h, config/m88k/tm-m88k.h,
6883 config/m68k/tm-m68k.h, config/i960/tm-i960.h,
6884 config/i386/tm-sun386.h, config/i386/tm-i386v.h,
6885 config/i386/tm-i386.h, config/h8500/tm-h8500.h,
6886 config/h8300/tm-h8300.h, config/fr30/tm-fr30.h,
6887 config/d30v/tm-d30v.h, config/d10v/tm-d10v.h,
6888 config/convex/tm-convex.h, config/arm/tm-arm.h,
6889 config/arc/tm-arc.h, config/alpha/tm-alpha.h,
6890 config/a29k/tm-a29k.h: Update FRAMELESS_FUNCTION_INVOCATION.
6891 * fr30-tdep.c (fr30_frameless_function_invocation), convex-tdep.c
6892 (convex_frameless_function_invocation), arm-tdep.c
6893 (arm_frameless_function_invocation): New functions.
6895 1999-05-20 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
6897 * top.c: Change dates in comments to ISO format.
6899 * event-top.c: Ditto.
6900 * event-loop.c: Ditto.
6903 1999-05-20 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
6905 * top.c (simplified_command_loop): New function. It is just a
6906 bare minimal command_loop.
6907 (call_interp_loop): New function. Call the correct version of the
6908 command loop, with the appropriate input reading function,
6909 depending on which interpreter gdb was invoked with.
6911 * main.c (main): Recognize and handle the new command line option
6912 --interpreter. If an interpreter is specified, call the appropriate
6913 command handling function.
6915 1999-05-19 Keith Seitz <keiths@cygnus.com>
6917 * config/mcore/tm-mcore.h (BELIEVE_PCC_PROMOTION): Define. We
6918 really do want to believe what gcc tells us about types...
6920 1999-05-19 Keith Seitz <keiths@cygnus.com>
6922 * config/mcore/tm-mcore.h (FRAME_ARGS_ADDRESS): Define to a function.
6923 (FRAME_LOCALS_ADDRESS): Ditto.
6924 * mcore-tdep.c (mcore_frame_args_addcress): New function.
6925 (mcore_frame_locals_address): New function.
6927 * monitor.c (monitor_open): Only assume we have eight
6928 breakpoints if the monitor implementation does not tell
6929 us how many there really are. Alloc memory for these
6931 (monitor_close): Free memory associated with breakpoint
6933 (monitor_insert_breakpoint): Don't rely on a hardcoded
6934 number of breakpoints.
6935 (monitor_remove_breakpoint): Ditto.
6936 (NUM_MONITOR_BREAKPOINTS): Removed and replaced with monitor_ops
6938 * monitor.h (struct monitor_ops): Add new member so that the
6939 individual monitor implementations can tell us how many
6940 breakpoints the monitor supports.
6942 * mcore-rom.c (init_picobug_cmds): Add number of breakpoints supported
6945 1999-05-18 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
6947 From Philippe De Muyter <phdm@macqel.be>:
6948 * event-loop.h: Include sys/wait.h only if HAVE_SYS_WAIT_H.
6950 1999-05-17 Keith Seitz <keiths@cygnus.com>
6952 * configure.tgt: Add MCore target.
6953 * Makefile.in: Add mcore-tdep.c and mcore-rom.c
6954 * config/mcore/tm-mcore.h: New file.
6955 * config/mcore/mcore.mt: New file.
6956 * mcore-rom.c: New file.
6957 * mcore-tdep.c: New file.
6959 1999-05-17 Fernando Nasser <fnasser@totem.to.cygnus.com>
6961 * top.c (print_command_line): Added the missing stream argument.
6962 * gdbcmd.h: Added argument to prototype.
6963 * command.c: Fixed call to include extra argument.
6964 * breakpoint.c: Same.
6966 1999-05-14 Jim Blandy <jimb@zwingli.cygnus.com>
6968 Targets are #defining PREPARE_TO_PROCEED with inconsistent numbers
6969 of arguments. Since the Mach 3 target needs an argument, we'll
6970 make things consistent by adding an argument everywhere.
6971 * infrun.c (proceed): Pass an argument to PREPARE_TO_PROCEED.
6972 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Add ignored argument
6975 1999-05-11 Stan Shebs <shebs@andros.cygnus.com>
6977 Fri Apr 23 13:27:34 PDT 1999 Toshiyasu Morita (tm@netcom.com)
6978 * sh-stub.c: Mostly localize processor dependencies.
6980 1999-05-10 Martin Hunt <hunt@cygnus.com>
6982 * debugify.c, debugify.h: Removed because they are no
6985 1999-05-08 Jim Blandy <jimb@zwingli.cygnus.com>
6987 * infrun.c (_initialize_infrun): Handle TARGET_SIGNAL_LWP,
6988 TARGET_SIGNAL_WAITING, and TARGET_SIGNAL_CANCEL like SIGALRM or
6989 SIGIO --- pass them through to the inferior silently.
6990 * target.h (enum target_signals): Add TARGET_SIGNAL_CANCEL, for
6991 Solaris's SIGCANCEL.
6992 * target.c (target_signal_from_host, target_signal_to_host): Add
6993 mapping between SIGCANCEL and TARGET_SIGNAL_CANCEL.
6994 (signals): Add entry for SIGCANCEL.
6996 1999-05-07 Stan Shebs <shebs@andros.cygnus.com>
6998 After years of talking about it, finally break up the
6999 wait_for_inferior loop.
7000 * infrun.c (struct execution_control_state): New struct,
7001 holds what used to be local vars governing wfi behavior.
7002 (init_execution_control_state): New function, was code in
7003 wfi that set up execution control state.
7004 (handle_inferior_event): New function, was body of main
7005 wfi loop. Rewrite all local var references to go through
7006 the ecs structure passed into this function.
7007 (wait_for_inferior): Rewrite to set up and use execution control
7008 state, and to call the new functions.
7009 (currently_stepping): New function, was the macro
7011 (enum infwait_states): Rename from wfi_states.
7012 (infwait_normal_state, etc): Similarly.
7014 Thu May 6 15:25:32 1999 Philippe De Muyter <phdm@macqel.be>
7016 * coffread.c (coff_symtab_read): Call `record_line' with the line
7017 number of the ".bf" symbol only for one-line functions.
7019 1999-05-06 Michael Snyder <msnyder@cleaver.cygnus.com>
7021 * Makefile.in: thread.o depends on target.h.
7023 1999-05-06 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
7025 * event-top.c (change_line_handler): Use POLLIN instead of
7026 POLLRDNORM, for compatibility with Linux.
7027 (setup_event_loop): Ditto.
7029 1999-05-06 Jim Blandy <jimb@zwingli.cygnus.com>
7031 * mips-tdep.c (heuristic_proc_start): Rewrite cryptic error
7032 message about hitting the "heuristic fence post" with something
7033 that actually gives the user a fighting chance of figuring out
7036 1999-05-06 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
7038 * top.c: Include event-loop.h.
7039 (init_main): Add async version of 'set prompt' command.
7040 If in async mode define the editing and annotate set
7041 commands in a different way.
7042 Initialize new variable asyn_command_editing_p to 1.
7043 Initialize the gdb prompt for async mode.
7044 (quit_cover): Make not static, for use by the event loop.
7045 (gdb_init): Call async_init_signals for the asynchronous case.
7046 (source_line_number, source_file_name, source_error,
7047 source_pre_error, history_expansion_p): Make non-static, so
7048 event-top.c can use them.
7049 (command_loop_marker): Make non-static, for use in event-top.c.
7050 Include event-loop.h.
7052 * top.h: Add prototype for async_init_signals.
7053 (SET_TOP_LEVEL): Move here from main.c.
7054 Add setup_event_loop to exported functions.
7056 * defs.h: Add async_hook to exported variables.
7058 * main.c (SET_TOP_LEVEL): Move to top.h, so that it is visible in
7059 event-loop.c. Add new global variable async to determine whether
7060 we are running in async mode or not.
7061 (main): Add support for --async switch. Use async_hook to call
7062 setup_event_loop, when running in async mode.
7064 * event-top.c: New file. Gdb input line handler and command line
7065 handler for the event loop. Initialization of signal handlers.
7066 All the handled signals have handlers called handle_<signalname>.
7067 Set up all the appropriate tokens for asynchronous signal
7070 * event-loop.h: New file. Data structures and definitions for the
7073 * event-loop.c: New file. Functions for the event loop
7076 * config.in: Regenerate with autoheader.
7078 * configure.in (AC_CHECK_FUNCS): Add poll to list of functions
7081 * configure: Regenerate.
7083 * Makefile.in (SFILES): Add new source files.
7084 (eventloop_h): Define.
7085 (COMMON_OBS): Add new object files.
7086 (event-loop.o): Add rule for target object.
7087 (event-top.o): Ditto.
7089 1999-05-05 Stan Shebs <shebs@andros.cygnus.com>
7091 * infrun.c (wait_for_inferior): Transform breaks and continues
7092 into gotos, move the target_wait to the very top of the loop.
7094 1999-05-05 Jonathan Larmour <jlarmour@cygnus.co.uk>
7096 * configure.in: Ensure that GDB links with libuser32.a under
7097 cygwin because libreadline requires it.
7098 * Makefile.in (WIN32LIBS): Substitute in result from configure
7099 * configure: regenerate
7101 1999-05-04 Jim Blandy <jimb@zwingli.cygnus.com>
7103 Fix from John Rigby. Richard Henderson says it seems okay.
7104 * alpha-tdep.c (PROC_DUMMY_FRAME): As long as we're abusing fields
7105 of (proc)->pdr, we ought to at least abuse one large enough to
7106 hold the value we're trying to store in it. iopt is only 32 bits
7107 wide; cbLineOffset is a bfd_vma.
7109 1999-05-04 DJ Delorie <dj@cygnus.com>
7111 DJGPP changes from Robert Hoehne <robert.hoehne@gmx.net>
7113 * ser-go32.c: correct includes
7114 * source.c (openp): use ROOTED_P instead of SLASH_P
7115 * go32-nat.c: enhance exception and NPX handling
7116 (go32_kill_inferior): fix small bug killing inferior
7117 * configure.in: don't look for termcap with djgpp
7118 * configure: rebuild
7120 1999-05-04 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
7122 * main.c (main): Comment out unused and undocumented command line
7125 1999-04-30 Jim Blandy <jimb@zwingli.cygnus.com>
7127 Cleanup from Philippe De Muyter:
7128 * configure.in (BFD_NEED_DECLARATION): Check also for strstr.
7129 * acconfig.h (NEED_DECLARATION_MALLOC, NEED_DECLARATION_REALLOC,
7130 NEED_DECLARATION_FREE, NEED_DECLARATION_STRERROR): Define slots
7131 removed; they are now generated automatically.
7132 * gdb_string.h (strstr): Provide function prototype if
7133 NEED_DECLARATION_STRSTR.
7134 * configure, config.in: Regenerated.
7136 Fri Apr 30 11:16:09 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
7138 * target.h (to_find_new_threads): new target ops vector.
7139 (target_find_new_threads): define.
7140 * target.c (update_current_target): inherit new target ops vector.
7141 * remote.c: Setup to_find_new_threads vector.
7142 * sol-thread.c: ditto.
7143 * thread.c (target_find_new_threads): rename: local_find_new_threads.
7144 (info_threads_command): call target_find_new_threads by new method,
7145 as a target ops vector, rather than previous macro definition method.
7146 * infcmd.c (go_command): define only if in xdb mode.
7147 * procfs.c: fix typo in comment.
7149 Fri Apr 30 01:02:05 1999 Jeffrey A Law (law@cygnus.com)
7151 * hppah-nat.c: Fix various coding convention violations introduced
7153 (child_acknowledge_created_inferior): Do nothing if PT_SET_EVENT_MASK
7156 1999-04-28 Stan Shebs <shebs@andros.cygnus.com>
7158 * TODO: Add some items inspired by review of the manual.
7160 Tue Apr 27 17:38:19 1999 Andrew Cagney <cagney@b1.cygnus.com>
7162 * config/z8k/tm-z8k.h, config/v850/tm-v850.h,
7163 config/tic80/tm-tic80.h, config/sparc/tm-sparc.h,
7164 config/sh/tm-sh.h, config/pyr/tm-pyr.h, config/pa/tm-hppa.h,
7165 config/mn10300/tm-mn10300.h, config/mn10200/tm-mn10200.h,
7166 config/mips/tm-mips.h, config/m88k/tm-m88k.h,
7167 config/m68k/tm-m68k.h, config/m32r/tm-m32r.h,
7168 config/i960/tm-i960.h, config/i386/tm-i386.h,
7169 config/h8500/tm-h8500.h, config/h8300/tm-h8300.h,
7170 config/fr30/tm-fr30.h, config/d30v/tm-d30v.h,
7171 config/d10v/tm-d10v.h, config/alpha/tm-alpha.h,
7172 config/arm/tm-arm.h, config/a29k/tm-a29k.h, config/arc/tm-arc.h:
7173 Change SKIP_PROLOGUE and SKIP_PROLOGUE_FRAMELESS_P macros so that
7174 they return the new address.
7176 * sparc-tdep.c (sparc_skip_prologue), hppa-tdep.c
7177 (hppa_skip_prologue), m88k-tdep.c
7178 (m88k_skip_prologue), i960-tdep.c
7179 (i960_skip_prologue), arc-tdep.c
7180 (arc_skip_prologue), a29k-tdep.c (a29k_skip_prologue): Rename
7181 skip_prologue function.
7183 * config/m68k/tm-isi.h: Convert macro SKIP_PROLOGUE into a new
7185 * m68k-tdep.c (isi_skip_prologue): That new function.
7186 * vax-tdep.c (vax_skip_prologue), config/vax/tm-vax.h: Ditto.
7187 * tahoe-tdep.c (tahoe_skip_prologue), config/tahoe/tm-tahoe.h: Ditto.
7188 * rs6000-tdep.c (rs6000_skip_prologue), config/rs6000/tm-rs6000.h:
7190 * ns32k-tdep.c (umax_skip_prologue), config/ns32k/tm-umax.h: Ditto.
7191 * config/ns32k/tm-merlin.h, ns32k-tdep.c (merlin_skip_prologue):
7193 * config/m68k/tm-altos.h, m68k-tdep.c (altos_skip_prologue): Ditto.
7194 * config/convex/tm-convex.h, convex-tdep.c (convex_skip_prologue):
7197 * symtab.c (in_prologue, find_function_start_sal, decode_line_1),
7198 infrun.c (wait_for_inferior), blockframe.c
7199 (frameless_look_for_prologue): Update.
7200 * config/fr30/tm-fr30.h (FRAMELESS_FUNCTION_INVOCATION): Update.
7202 1999-04-27 Stan Shebs <shebs@andros.cygnus.com>
7204 * TODO: Remove item about DEBUG_EXPRESSIONS, no longer meaningful.
7206 * infrun.c (enum wfi_state): New enum.
7207 (wait_for_inferior): Merge all but one of the target_wait calls
7208 into a single call, add a wfi_state variable to encode which of
7209 the calls is being made.
7211 1999-04-26 Jim Blandy <jimb@zwingli.cygnus.com>
7213 Fix from Dave Holcomb.
7214 * hpux-thread.c (init_hpux_thread_ops): Use the right function
7215 name when initializing hpux_thread_ops.to_thread_alive.
7217 * coffread.c (coff_symfile_read): If we have a `.stab' section,
7218 but no `.stabstr' section, then print an error message; don't
7221 1999-04-26 Jim Blandy <jimb@zwingli.cygnus.com>
7223 1999-04-25 Mark Kettenis <kettenis@gnu.org>
7225 * gnu-nat.c (gnu_attach): Call target_terminal_init before calling
7226 inf_set_traced, since that function calls code that might try to
7227 restore the terminal settings.
7229 Mon Apr 26 08:55:46 1999 Andrew Cagney <cagney@b1.cygnus.com>
7231 * gdbarch.h, gdbarch.c: More format cleanups.
7233 Sun Apr 25 18:54:51 1999 Andrew Cagney <cagney@b1.cygnus.com>
7235 * gdbarch.h (CALL_DUMMY_STACK_ADJUST_P): Replace
7236 SIZEOF_CALL_DUMMY_STACK_ADJUST_P.
7237 (CALL_DUMMY_STACK_ADJUST): Replace
7238 SIZEOF_CALL_DUMMY_STACK_ADJUST_P.
7239 * gdbarch.c (gdbarch_call_dummy_stack_adjust,
7240 set_gdbarch_call_dummy_stack_adjust): Define.
7242 Fri Apr 23 15:00:25 1999 Andrew Cagney <cagney@b1.cygnus.com>
7244 * gdbarch.c (arch_ok): New function. Fix logic test for a valid
7248 1999-04-22 Jason Molenda (jsm@bugshack.cygnus.com)
7250 * README: Note that readline is not installed as a part of
7253 Thu Apr 22 21:02:28 1999 Andrew Cagney <cagney@b1.cygnus.com>
7255 * gdbarch.h, gdbarch.c (GET_SAVED_REGISTER, get_saved_register):
7257 (struct gdbarch, verify_gdbarch, gdbarch_alloc, gdbarch_dump,
7258 default_gdbarch): Update.
7260 * value.h (get_saved_register): Cleanup prototype.
7261 * findvar.c (default_get_saved_register): Rename function
7263 (GET_SAVED_REGISTER): Define as default_get_saved_register when
7265 (get_saved_register): Always declare. Call GET_SAVED_REGISTER.
7267 * sparc-tdep.c (sparc_get_saved_register): Rename function
7269 * config/sparc/tm-sparc.h (GET_SAVED_REGISTER): Update.
7270 * a29k-tdep.c (a29k_get_saved_register): Rename function
7272 * config/a29k/tm-a29k.h (GET_SAVED_REGISTER): Update.
7274 * config/d10v/tm-d10v.h, config/powerpc/tm-ppc-eabi.h,
7275 config/h8300/tm-h8300.h, config/m32r/tm-m32r.h,
7276 config/mn10200/tm-mn10200.h, config/mn10300/tm-mn10300.h,
7277 config/sh/tm-sh.h, config/tic80/tm-tic80.h, config/v850/tm-v850.h:
7278 Update macro GET_SAVED_REGISTER so that it calls
7279 generic_get_saved_register.
7280 * v850-tdep.c, tic80-tdep.c, sh-tdep.c, mn10300-tdep.c,
7281 mn10200-tdep.c, m32r-tdep.c, h8300-tdep.c, rs6000-tdep.c: Delete
7282 function get_saved_register.
7284 Thu Apr 22 13:32:23 1999 Andrew Cagney <cagney@b1.cygnus.com>
7286 * gdbarch.c: Cleanup. Re-order the definition of the ``struct
7287 gdbarch'' initialization functions so that maintenance is more
7290 Thu Apr 22 11:07:21 1999 Andrew Cagney <cagney@b1.cygnus.com>
7292 * gdbarch.h, gdbarch.c (use_generic_dummy_frames,
7293 USE_GENERIC_DUMMY_FRAMES): Add.
7294 (struct gdbarch, verify_gdbarch, gdbarch_alloc, gdbarch_dump,
7295 default_gdbarch): Update.
7297 * config/v850/tm-v850.h, config/tic80/tm-tic80.h,
7298 config/sh/tm-sh.h, config/powerpc/tm-ppc-eabi.h,
7299 config/mn10300/tm-mn10300.h, config/mn10200/tm-mn10200.h,
7300 config/m32r/tm-m32r.h, config/h8300/tm-h8300.h,
7301 config/fr30/tm-fr30.h, config/d10v/tm-d10v.h: Give the
7302 USE_GENERIC_DUMMY_FRAMES macro the value one.
7303 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Default to a value of
7306 * blockframe.c (generic_find_dummy_frame,
7307 generic_pc_in_call_dummy, generic_read_register_dummy,
7308 generic_push_dummy_frame, generic_pop_current_frame,
7309 generic_pop_dummy_frame, generic_frame_chain_valid,
7310 generic_get_saved_register): Always define.
7312 * breakpoint.c (frame_in_dummy): Convert #ifdef
7313 USE_GENERIC_DUMMY_FRAMES to runtime test.
7315 * rs6000-tdep.c (pop_frame, push_arguments, push_arguments,
7316 push_arguments, frame_saved_pc, rs6000_frame_chain,
7317 rs6000_frame_chain): Convert #ifdef USE_GENERIC_DUMMY_FRAMES to
7319 (get_saved_register): Always define.
7321 Wed Apr 21 17:15:52 1999 Andrew Cagney <cagney@b1.cygnus.com>
7323 * gdbarch.c (gdbarch_dump): Fix robustness check on
7324 BELIEVE_PCC_PROMOTION_TYPE.
7326 Wed Apr 21 15:39:27 1999 Andrew Cagney <cagney@b1.cygnus.com>
7328 * gdbarch.h (TARGET_BYTE_ORDER_SELECTABLE_P): When multi-arch,
7329 force selectable byte order.
7330 (CALL_DUMMY): Check for CALL_DUMMY definition when multi-arch. Are
7332 * gdbarch.c (verify_gdbarch): Check call_dummy_stack_adjust.
7334 Wed Apr 21 14:45:44 1999 Andrew Cagney <cagney@b1.cygnus.com>
7336 * gdbarch.c (gdbarch_update): Move dump-arch code from here.
7337 (gdbarch_dump): To here. Make more robust.
7338 * gdbarch.h (gdbarch_dump): Add prototype.
7340 * gdbarch.c (enum set_arch): Declare.
7341 (set_arch): Add type parameter. Only disable
7342 ``target_architecture_auto'' when set_arch_manual.
7343 (set_architecture, set_architecture_from_arch_mach,
7344 set_architecture_from_file): Update.
7345 (set_arch): When ``gdbarch_debug'', gdbarch_dump() the current
7348 Wed Apr 21 10:48:53 1999 Andrew Cagney <cagney@b1.cygnus.com>
7350 * frame.h (generic_pc_in_call_dummy): Make signature consistent
7351 with other pc_in_call_dummy functions by adding SP parameter.
7352 * blockframe.c (generic_pc_in_call_dummy): Update. Pass SP and
7353 not FP to generic_find_dummy_frame().
7354 * breakpoint.c (frame_in_dummy): Update.
7355 * config/v850/tm-v850.h, config/tic80/tm-tic80.h,
7356 config/sh/tm-sh.h, config/mn10300/tm-mn10300.h,
7357 config/mn10200/tm-mn10200.h, config/m32r/tm-m32r.h,
7358 config/h8300/tm-h8300.h, config/fr30/tm-fr30.h,
7359 config/d10v/tm-d10v.h: Update PC_IN_CALL_DUMMY definition.
7361 Tue Apr 20 12:15:45 1999 Andrew Cagney <cagney@b1.cygnus.com>
7363 * config/d10v/tm-d10v.h (GDB_TARGET_IS_D10V): Move from here.
7364 * gdbarch.h (GDB_TARGET_IS_D10V): To here. Implement using
7365 TARGET_ARCHITECTURE.
7366 (D10V_MAKE_DADDR, D10V_MAKE_IADDR): Provide fatal default
7369 * valops.c (value_at): Replace #ifdef GDB_TARGET_IS_D10V code with
7371 (value_fetch_lazy): Ditto.
7372 * values.c (unpack_long): Ditto.
7373 * printcmd.c (print_frame_args): Ditto.
7375 Sat Apr 17 15:39:33 1999 Andrew Cagney <cagney@b1.cygnus.com>
7377 * gdbarch.h: Cleanup multi-arch comments.
7379 Fri Apr 16 15:39:10 1999 Andrew Cagney <cagney@b1.cygnus.com>
7381 * gdbarch.h: Provide definition if GDB_MULTI_ARCH > 1 or
7382 GDB_MULTI_ARCH > 0 and no previous definition.
7383 * gdbarch.c (verify_gdbarch): Only verify a full multi-arch
7386 1999-04-15 Stan Shebs <shebs@andros.cygnus.com>
7388 * infrun.c (wait_for_inferior) [HAVE_STEPPABLE_WATCHPOINT,
7389 HAVE_NONSTEPPABLE_WATCHPOINT, HAVE_CONTINUABLE_WATCHPOINT]: Test
7390 at runtime instead of compile time.
7392 Thu Apr 15 15:15:07 1999 Andrew Cagney <cagney@amy.cygnus.com>
7394 * mips-tdep.c (struct gdbarch_tdep): Rename elf_abi to
7395 elf_flags. Check ABFD is elf_flavour before extracting elf_flags.
7396 Match ARCH against entire elf_flags instead of just the
7398 (mips_gdbarch_init): Extract/print ef_mips_arch and
7399 ef_mips_bitptrs and ef_mips_abi fields from elf_flags.
7401 1999-04-14 Philippe De Muyter <phdm@macqel.be>
7403 * breakpoint.c (maintenance_info_breakpoints): Function made
7404 static to match previous prototype.
7406 * coffread.c (coff_record_line): Static function removed.
7407 (enter_linenos): Call `record_line' instead of `coff_record_line'.
7408 (FILE-LEVEL, coff_start_symtab, coff_end_symtab): `coff_record_line'
7409 -related stuff removed.
7410 (coff_symfile_read): Redundant statement removed.
7411 (coff_symtab_read): `record_line' is now called with the first line
7412 number of each function, given by the ".bf" symbol. This solves
7413 the line-number bug for one-line functions.
7415 Wed Apr 14 11:09:45 1999 Andrew Cagney <cagney@b1.cygnus.com>
7417 * gdbarch.h (BELIEVE_PCC_PROMOTION_TYPE, BELIEVE_PCC_PROMOTION):
7418 Add multi-arch definitions.
7419 * gdbarch.c (gdbarch_believe_pcc_promotion,
7420 gdbarch_believe_pcc_promotion_type): New functions.
7421 (gdbarch_update): Update
7422 (struct gdbarch default_gdbarch): Update.
7424 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Provide default.
7425 (define_symbol): Change #if BELIEVE_PCC_PROMOTION_TYPE and #if
7426 BELIEVE_PCC_PROMOTION to if().
7428 1999-04-13 Jason Molenda (jsm@bugshack.cygnus.com)
7430 * configure.in (HAVE_MULTIPLE_PROC_FDS): Don't define if we're
7431 on a Solaris host (of any architecture).
7432 * configure: Regenerated.
7434 Wed Apr 14 08:23:32 1999 Andrew Cagney <cagney@b1.cygnus.com>
7436 * gdbarch.c (SET_GDBARCH, GET_GDBARCH, FSET_GDBARCH): New macros.
7437 (gdbarch_byte_order, gdbarch_long_bit, gdbarch_long_long_bit,
7438 gdbarch_ptr_bit, gdbarch_call_dummy_location,
7439 gdbarch_call_dummy_address, gdbarch_call_dummy_address,
7440 gdbarch_call_dummy_breakpoint_offset,
7441 gdbarch_call_dummy_breakpoint_offset, gdbarch_call_dummy_length,
7442 gdbarch_pc_in_call_dummy, dbarch_call_dummy_breakpoint_offset_p,
7443 dbarch_call_dummy_p, dbarch_call_dummy_words,
7444 dbarch_sizeof_call_dummy_words, dbarch_call_dummy_stack_adjust,
7445 dbarch_call_dummy_stack_adjust_p): Define using new macros.
7447 1999-04-13 Jason Molenda (jsm@bugshack.cygnus.com)
7449 * rom68k-rom.c (init_rom68k_cmds): Fix an accidental substitution
7450 in monitor command strings, fix some formatting mistakes.
7452 1999-04-13 Stan Shebs <shebs@andros.cygnus.com>
7454 * configure.tgt (arm-*-*): Whack another vestige of wingdb.
7456 1999-04-12 James Ingham <jingham@cygnus.com>
7458 * arm-tdep.c (arm_pop_frame): don't clobber the previous frame's
7459 stack pointer (stored in frame->framereg's register) BEFORE
7460 reading it. This was causing "return" to behave very oddly.
7462 1999-04-12 Stan Shebs <shebs@andros.cygnus.com>
7464 * NEWS: Mention tic80.
7466 1999-04-12 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
7468 * a68v-nat.c: Remove reference to 'extern char registers[]' throughout.
7469 * altos-xdep.c: Ditto.
7470 * arm-xdep.c: Ditto.
7471 * convex-xdep.c: Ditto.
7472 * cxux-nat.c: Ditto.
7473 * hp300ux-nat.c: Ditto.
7474 * hppab-nat.c: Ditto.
7475 * i386aix-nat.c: Ditto.
7476 * i386mach-nat.c: Ditto.
7477 * m88k-nat.c: Ditto.
7478 * ptx4-nat.c: Ditto.
7479 * pyr-xdep.c: Ditto.
7480 * rs6000-nat.c: Ditto.
7481 * sun3-nat.c: Ditto.
7482 * sun386-nat.c: Ditto.
7483 * symm-nat.c: Ditto.
7484 * umax-xdep.c: Ditto.
7485 * i386v4-nat.c: Ditto. Also include inferior.h.
7486 * m68k-tdep.c: Ditto. Also include inferior.h.
7488 Mon Apr 12 15:57:16 1999 Andrew Cagney <cagney@b1.cygnus.com>
7490 * inferior.h (CALL_DUMMY_STACK_ADJUST, CALL_DUMMY_STACK_ADJUST_P):
7491 Provide default definitions.
7492 * valops.c (hand_function_call): Replace #ifdef
7493 CALL_DUMMY_STACK_ADJUST with if (CALL_DUMMY_STACK_ADJUST_P).
7495 * gdbarch.h (SIZEOF_CALL_DUMMY_STACK_ADJUST,
7496 (SIZEOF_CALL_DUMMY_STACK_ADJUST_P): Define
7497 * gdbarch.c (struct gdbarch): Add call_dummy_stack_adjust,
7498 call_dummy_stack_adjust_p.
7499 (gdbarch_call_dummy_stack_adjust,
7500 set_gdbarch_call_dummy_stack_adjust,
7501 gdbarch_call_dummy_stack_adjust_p,
7502 set_gdbarch_call_dummy_stack_adjust_p): New functions.
7503 (default_gdbarch): Update.
7505 1999-04-09 Jim Blandy <jimb@zwingli.cygnus.com>
7507 * ax-gdb.c, ax-gdb.h, ax-general.c, ax.h: Remove RCS Id strings.
7510 * GDB 4.18 released.
7511 * Makefile.in (VERSION): Bump to 4.18.1.
7513 Thu Apr 8 16:04:34 1999 Andrew Cagney <cagney@b1.cygnus.com>
7515 * inferior.h (CALL_DUMMY_P, CALL_DUMMY_WORDS,
7516 SIZEOF_CALL_DUMMY_WORDS): Define macros.
7517 (PUSH_DUMMY_FRAME, FIX_CALL_DUMMY, STORE_STRUCT_RETURN): Provide
7520 * inferior.h, gdbarch.c (call_dummy_words,
7521 sizeof_call_dummy_words): Declare/Define variables.
7522 * valops.c (value_arg_coerce, find_function_addr,
7523 call_function_by_hand): Always define.
7524 (hand_function_call): Rename CALL_DUMMY version of
7525 call_function_by_hand. Make static. Add prototype.
7526 (hand_function_call): Update. Allocate space for *dummy and
7527 *dummy1 using alloca.
7528 * breakpoint.c (frame_in_dummy): Update.
7530 * gdbarch.h (CALL_DUMMY_P, CALL_DUMMY_WORDS,
7531 SIZEOF_CALL_DUMMY_WORDS): Define.
7532 * gdbarch.c (gdbarch_call_dummy_p, set_gdbarch_call_dummy_p,
7533 gdbarch_call_dummy_words, set_gdbarch_call_dummy_words,
7534 gdbarch_sizeof_call_dummy_words,
7535 set_gdbarch_sizeof_call_dummy_words): New functions.
7536 (gdbarch_alloc, verify_gdbarch, gdbarch_update, struct
7537 default_gdbarch): Update.
7539 1999-04-08 Jason Molenda (jsm@bugshack.cygnus.com)
7541 * monitor.c (monitor_read_memory): If a MO_GETMEM_NEEDS_RANGE
7542 monitor, increase the end address by one byte.
7544 1999-04-08 Jason Molenda (jsm@bugshack.cygnus.com)
7546 * dbug-rom.c (init_dbug_cmds): Fix strings in
7547 dbug_cmds.{step,clr_break,clr_all_break,fill} to send correct
7548 commands to the monitor.
7550 1999-04-08 Keith Seitz <keiths@cygnus.com>
7552 * m32r-stub.c (branchDestination): Undo overly ambitious
7553 sed script's conversion of cast from "char" to "unsigned char".
7554 Return offset should now be properly computed.
7556 Thu Apr 8 14:13:19 1999 Andrew Cagney <cagney@b1.cygnus.com>
7558 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): New macro.
7559 Non-zero when CALL_DUMMY_BREAKPOINT_OFFSET is valid.
7561 * infcmd.c (breakpoint_auto_delete_contents): Always define.
7562 (run_stack_dummy): Update.
7563 * infrun.c (wait_for_inferior): Update
7565 * gdbarch.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): New macro.
7566 * gdbarch.c (set_gdbarch_call_dummy_breakpoint_offset_p,
7567 gdbarch_call_dummy_breakpoint_offset_p): New functions.
7568 (struct gdbarch, gdbarch_alloc, default_gdbarch, gdbarch_update):
7571 1999-04-07 Stan Shebs <shebs@andros.cygnus.com>
7573 * MAINTAINERS: Mark Alexander can no longer maintain
7574 h8300 and other embedded targets, sniff.
7576 1999-04-06 Stan Shebs <shebs@andros.cygnus.com>
7578 * inftarg.c (child_wait): Initialize execd_pathname.
7579 * target.c (debug_to_has_execd): Handle NULL execd_pathname.
7581 * solib.c (clear_solib): Don't call disable_breakpoints_in_shlibs,
7582 this breaks rerunning on sun4 native.
7584 1999-04-06 Jim Blandy <jimb@zwingli.cygnus.com>
7586 * config/sparc/nm-linux.h: Don't redefine PT_ATTACH to use the
7587 deprecated PTRACE_SUNATTACH compatibility commands. The
7588 definitions from <sys/ptrace.h> are fine.
7590 1999-04-06 Martin Hunt <hunt@cygnus.com>
7592 * annotate.h: Declare annotate_signal_hook.
7594 * annotate.c (annotate_signal): Add a call to
7595 annotate_signal_hook().
7597 1999-04-06 Jim Blandy <jimb@zwingli.cygnus.com>
7599 * dwarf2read.c (dwarf_decode_lines): Don't call record_line when
7600 we hit a DW_LNE_end_sequence instruction.
7602 * README: Note that GDB requires an ANSI C compiler, and explain
7607 1999-04-05 Stan Shebs <shebs@andros.cygnus.com>
7609 * NEWS: Add more notes about user-visible changes.
7611 Mon Apr 5 14:56:59 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
7613 * target.c (target_signal_to_string): check for signal
7614 number in range; otherwise if the target board returns
7615 a bogus signal number we might core dump (per David Taylor).
7617 1999-04-05 David Taylor <taylor@ryobi.cygnus.com>
7619 * utils.c (fputs_maybe_filtered): test value of
7620 pagination_enabled before paginating.
7622 1999-04-02 James Ingham <jingham@cygnus.com>
7624 * blockframe.c (get_prev_frame): Remove the redundant
7625 get_prev_frame_info. It is now exactly the same as
7626 get_prev_frame, so there is no reason to have both functions.
7628 * rs6000-tdep.c (rs6000_init_extra_frame_info):
7630 a29k-tdep.c (init_extra_frame_info):
7631 config/a29k/tm-a29k.h:
7633 Change all references to get_prev_frame_info to get_prev_frame.
7635 1999-04-02 Stan Shebs <shebs@andros.cygnus.com>
7637 * bcache.c, bcache.h, breakpoint.c, defs.h, expprint.c,
7638 expression.h, gdbarch.c, gdbtypes.c, gdbtypes.h, gnu-nat.c,
7639 gnu-nat.h, hppa-tdep.c, maint.c, monitor.c, objfiles.h, parse.c,
7640 remote-mips.c, remote-sds.c, remote.c, sol-thread.c, symmisc.c,
7641 symtab.h, target.c, top.c, typeprint.c, config/nm-gnu.h: Evaporate
7642 the unused MAINTENANCE_CMDS conditional.
7644 1999-04-02 James Ingham <jingham@cygnus.com>
7646 * config/arm/tm-arm.h: (EXTRACT_STRUCT_VALUE_ADDRESS): This needs
7647 to call extract_address, not just cast the first 4 bytes, since
7648 the result will be passed to value_at which expects host-byte
7651 * arm-tdep.c (arm_scan_prologue): The prologue_start address was
7652 directly &'ed with 0x03fffffc, rather than using
7653 ADDR_BITS_REMOVE. This would cause inferior function calls to
7654 report the stack incorrectly on return.
7657 1999-04-02 Keith Seitz <keiths@cygnus.com>
7659 * top.c (ui_loop_hook): Change declaration. Now returns an int.
7660 * win32-nat.c (child_wait): Timeout WaitForDebugEvent and call
7661 the ui_loop_hook if there was no debug event.
7662 * top.c (ui_loop_hook): Change to return an int and include
7663 on all non-Cygwin builds.
7664 * v850ice.c: Change prototype of ui_loop_hook.
7665 (v850ice_wait): Update call to ui_loop_hook.
7666 * ser-unix.c (hardwire_readchar): Enable ui_loop_hook callbacks
7667 for non-Cygwin builds. Check return status of ui_loop_hook and
7668 return a timeout if told to detach. Add more documentation.
7669 * ser-tcp.c (tcp_readchar): Break up timeouts into one second
7670 intervals and call ui_loop_hook so that other UIs can
7671 keep up to date. If ui_loop_hook returns non-zero, then
7672 return SERIAL_TIMEOUT to facilitate detaching from the
7674 * remote.c (remote_interrupted_already): Remove.
7675 (remote_interrupt_twice): Revive.
7676 (remote_interrupt): Call remote_stop to interrupt the target
7677 and install remote_interrupt_twice to take more severe
7678 actions if this fails.
7679 (remote_stop): Only attempt to stop the target. This separates
7680 the command line from other UIs.
7681 * remote-sim.c (gdb_os_poll_quit): Add a call to ui_loop_hook,
7684 1999-04-01 Jim Blandy <jimb@zwingli.cygnus.com>
7686 Fix for cross-debugging on an AIX host from Johanna Svenningsson:
7687 * ax-gdb.h (enum axs_lvalue_kind): Remove trailing comma from enum.
7688 * ax.h (enum agent_op): Same.
7689 * tracepoint.h (enum actionline_type): Same.
7690 * config/xm-aix4.h: Add declaration for termdef.
7692 1999-03-31 Stan Shebs <shebs@andros.cygnus.com>
7694 * jv-lang.h (dynamics_objfile): Remove decl, conflicts with static
7697 * infrun.c (follow_inferior_fork): Add ifdefs around
7698 SOLIB_REMOVE_INFERIOR_HOOK.
7700 Wed Mar 31 11:39:49 1999 David Taylor <taylor@ryobi.cygnus.com>
7702 * valops.c (search_struct_field): revert HP merge change
7703 to this function -- it causes messages to be printed about
7704 member class ambiguity when the compiler is happy.
7705 (search_struct_field_aux): delete -- added as part of HP merge
7706 change; with aforementioned change it is no longer called.
7708 1999-03-30 Stan Shebs <shebs@andros.cygnus.com>
7710 Make more HPUX-specific code generic.
7711 * infrun.c: Include top.h.
7712 (MAY_SWITCH_FROM_INFERIOR_PID, MAY_FOLLOW_EXEC,
7713 USE_THREAD_STEP_NEEDED): New native macros.
7714 (may_switch_from_inferior_pid, may_follow_exec,
7715 use_thread_step_needed): New globals.
7716 (follow_inferior_fork): Remove HPUXHPPA ifdef.
7717 (follow_exec): Ditto, also save run target and re-push instead of
7718 always pushing child_ops, add ifdefs around SOLIB_RESTART and
7719 SOLIB_CREATE_INFERIOR_HOOK.
7720 (wait_for_inferior): Use new globals instead of ifdefing HPUXHPPA,
7721 always use printf_filtered to report new threads.
7722 (normal_stop): Ditto.
7723 * target.h, target.c (find_run_target): New function.
7724 * config/pa/nm-hppah.h: Define new macros.
7726 1999-03-29 Stan Shebs <shebs@andros.cygnus.com>
7728 * top.h: Include setjmp.h here.
7729 * main.c, top.c: Don't include it here.
7731 1999-03-29 Keith Seitz <keiths@cygnus.com>
7733 * symtab.c (decode_line_1): Take out change which breaks symbols
7734 which include class names and methods, e.g., "Foo::bar".
7736 1999-03-26 Stan Shebs <shebs@andros.cygnus.com>
7738 * configure.tgt (i[3456]86-*-sysv4.2MP, i[3456]86-*-sysv4.2uw2*):
7739 Recognize both, as i[3456]86-*-sysv4.2*.
7740 (i[3456]86-*-sysv5*): Recognize.
7742 * infrun.c (wait_for_inferior): Remove most #if 0 segments.
7744 Fri Mar 26 17:27:27 1999 Andrew Cagney <cagney@b1.cygnus.com>
7746 * blockframe.c (pc_in_call_dummy_on_stack): Fix. Had copied code
7747 from at_entry_point.
7749 Thu Mar 25 19:30:02 1999 Andrew Cagney <cagney@amy.cygnus.com>
7751 * gdbarch.c: Include all headers.
7752 (struct gdbarch), gdbarch.h (CALL_DUMMY_LOCATION,
7753 CALL_DUMMY_ADDRESS, CALL_DUMMY_START_OFFSET,
7754 CALL_DUMMY_BREAKPOINT_OFFSET, CALL_DUMMY_LENGTH,
7755 PC_IN_CALL_DUMMY): Add ``call_dummy_location'',
7756 ``call_dummy_length'', ``pc_in_call_dummy'',
7757 ``call_dummy_start_offset'', ``call_dummy_breakpoint_offset'' to
7758 multi-arch framework.
7760 * inferior.h, blockframe.c (pc_in_call_dummy_before_text_end,
7761 pc_in_call_dummy_after_text_end, pc_in_call_dummy_on_stack,
7762 pc_in_call_dummy_at_entry_point): Convert PC_IN_CALL_DUMMY macro's
7765 * mips-tdep.c (mips_gdbarch_init): Initialize above
7767 Tue Mar 23 17:22:57 1999 Philippe De Muyter <phdm@macqel.be>
7769 * remote.c, parse.c: Include ctype.h.
7771 1999-03-24 Stan Shebs <shebs@andros.cygnus.com>
7773 * configure.host (mips-dec-mach3*): Use mipsm3 not mach3.
7775 Attempt to sort out SCO-related configs.
7776 * configure.host (i[3456]86-*-sysv4.2*): Use instead of
7777 i[3456]86-*-sysv4.2MP and i[3456]86-*-sysv4.2uw2*.
7778 (i[3456]86-*-sysv5*): Recognize.
7779 * configure.tgt (i[3456]86-*-sco3.2v5*, i[3456]86-*-sco3.2v4*):
7782 Wed Mar 24 16:19:01 1999 Christopher Faylor <cgf@cygnus.com>
7784 * MAINTAINERS: Add DJ Delorie (dj@cygnus.com) as the djgpp
7787 Wed Mar 24 21:19:57 1999 Andrew Cagney <cagney@amy.cygnus.com>
7789 * target.h (enum target_signal): Do not hardwire values of MACH
7792 1999-03-14 Ken Raeburn <raeburn@raeburn.org>
7794 * target.h (enum target_signal): Add TARGET_SIGNAL_INFO.
7795 * target.c (signals): Add SIGINFO description.
7796 (target_signal_from_host, target_signal_to_host): Translate
7797 SIGINFO to/from TARGET_SIGNAL_INFO.
7799 Wed Mar 24 01:01:27 1999 Andrew Cagney <cagney@sludge.cygnus.com>
7801 * rs6000-tdep.c (rs6000_software_single_step): Change SIGNAL to
7804 From Rodney Brown <rodneybrown@pmsc.com>
7805 * target.h (enum thread_control_capabilities), breakpoint.h (enum
7806 bptype), breakpoint.c (enum insertion_state_t): Strict ISO-C
7807 doesn't allow trailing comma in enum definition.
7809 Mon Mar 22 15:56:04 1999 Andrew Cagney <cagney@b1.cygnus.com>
7811 * blockframe.c (inside_entry_file, inside_entry_func): Convert #if
7812 CALL_DUMMY_LOCATION to if.
7813 * valops.c (call_function_by_hand): Ditto.
7814 * infcmd.c (run_stack_dummy): Ditto.
7815 * inferior.h (CALL_DUMMY_ADDRESS, CALL_DUMMY_START_OFFSET,
7816 CALL_DUMMY_BREAKPOINT_OFFSET): Provide default.
7818 1999-03-23 Jason Molenda (jsm@bugshack.cygnus.com)
7820 * hppa-tdep.c (pa_register_look_aside): Remove CPU_HPPA_RISC_20
7821 check, test for presence of struct save_state_t and the ss_wide
7823 * configure.in: Remove CPU_HPPA_RISC_20 test. Add tests for
7824 HAVE_STRUCT_SAVE_STATE_T and HAVE_STRUCT_MEMBER_SS_WIDE.
7825 * acconfig.h: Add HAVE_STRUCT_SAVE_STATE_T HAVE_STRUCT_MEMBER_SS_WIDE.
7826 * configure, config.in: Regenerated.
7828 Mon Mar 22 13:25:13 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
7830 * infttrace.c (proc_wait): rename to ptrace_wait.
7832 1999-03-18 Jim Blandy <jimb@zwingli.cygnus.com>
7834 * dwarf2read.c: Correctly recognize location expressions that
7835 designate LOC_REF_ARG arguments. Doc fixes.
7836 (isderef): New global. (Yuck.)
7837 (dwarf2_complex_location_expr): New complaint.
7838 (read_func_scope): Reject frame_base attributes that use the
7839 `deref' opcode as too complex.
7840 (new_symbol): If both regoff and isderef are set, and the base
7841 register is the frame pointer, then it's a LOC_REF_ARG argument.
7842 (decode_locdesc): Recognize the `deref' opcode in location
7843 expressions. Complain if it's not the last op in the expression.
7845 * config/fr30/tm-fr30.h (COERCE_FLOAT_TO_DOUBLE): #define this to
7846 be true, or else value_arg_coere won't respect the (accurate)
7847 information we have about whether a function is prototyped.
7849 1999-03-17 Jim Blandy <jimb@zwingli.cygnus.com>
7851 * config/fr30/tm-fr30.h (STACK_ALIGN): Define this here, so
7852 calling functions by hand with odd-sized arguments doesn't munge
7855 1999-03-17 Jason Molenda (jsm@bugshack.cygnus.com)
7857 * configure.in (HAVE_MULTIPLE_PROC_FDS): Don't define for Solaris
7858 hosts--gdb doesn't support this yet.
7859 * configure: Regenerated.
7861 1999-03-16 Keith Seitz <keiths@cygnus.com>
7863 * remote.c (remote_binary_checked): New file global.
7864 (check_binary_download): New function to check if
7865 stub supports binary downloading that works with
7866 stubs that are not eight bit clean.
7867 (remote_write_bytes): Check for binary download capability
7868 and use it if available.
7869 Remove references to global remote_binary_length. What a hack.
7870 (putpkt_binary): New function.
7871 (putpkt): Call putpkt_binary.
7872 Use xor to escape trouble characters.
7873 * m32r-stub.c (bin2mem): Follow escape char convention change.
7875 Tue Mar 16 01:11:33 1999 Andrew Cagney <cagney@rhino.cygnus.com>
7877 * target.h (struct target_ops), target.c (debug_to_query),
7878 remote.c (pack_hex_byte, remote_query): Promote char parameters to
7879 int. Stops compile problems with pedantic ISO-C compilers.
7881 Tue Mar 16 15:29:04 1999 Stan Shebs <shebs@andros.cygnus.com>
7883 * go32-xdep.c: Remove, no longer used by anything.
7884 * Makefile.in: Remove references.
7886 * jv-lang.c, jv-lang.h (java_primitive_type): Declare argument
7887 as int instead of char.
7889 Mon Mar 15 11:42:43 1999 Andrew Cagney <cagney@b1.cygnus.com>
7891 * d10v-tdep.c (push_stack_item, pop_stack_item): New function.
7892 (d10v_push_arguments): Use.
7894 From Martin M. Hunt <hunt@cygnus.com>:
7895 * d10v-tdep.c (d10v_push_arguments): When arguments
7896 must be pushed onto the stack, they go on in
7899 1999-03-16 Jim Blandy <jimb@zwingli.cygnus.com>
7901 * symtab.c (make_symbol_overload_list): Don't try to stuff minimal
7902 or partial symbols into the overload list; we don't know their
7903 types. (Thanks to Rajiv Mirani.)
7905 1999-03-15 Jason Molenda (jsm@bugshack.cygnus.com)
7907 * acinclude.m4 (--with-itclconfig, --with-itkconfig, --with-tixconfig):
7908 Fix whitespace so --help messages line up.
7909 * configure.in (--with-cpu): Fix capitalization for --help messages.
7910 * configure, aclocal.m4: Regenerated.
7912 Mon Mar 15 11:39:03 1999 Ian Carmichael <iancarm@cygnus.com>
7914 Support building gdb w/o simulator:
7915 * configure.in: Support --disable-sim. Check for sim directory.
7916 * Makefile.in (IGNORE_SIM, IGNORE_SIM_OBS): New.
7917 * acconfig.h (WITH_SIM): Define.
7918 * configure, config.in: Regenerate.
7920 Mon Mar 15 08:01:33 1999 Elena Zannoni <ezannoni@cygnus.com>
7922 Patch from Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
7924 * top.c (read_command_lines): Reset control_level to 0.
7925 (define_command): Don't do it here.
7927 Sun Mar 14 16:12:15 1999 Andrew Cagney <cagney@rhino.cygnus.com>
7929 * hppah-nat.c (store_inferior_registers): Delete extern
7930 registers[] declaration.
7932 Sun Mar 14 19:17:30 1999 Andrew Cagney <cagney@b1.cygnus.com>
7934 * infrun.c (write_inferior_status_register): New function. Provide
7935 update access to an inf_status register buffer. Only used by HP.
7936 * inferior.h (write_inferior_status_register): Add prototype.
7938 * hppa-tdep.c (push_dummy_frame): Use
7939 write_inferior_status_register when hacking around a sleeping
7940 inferior. Accidently fix byte-order problem.
7942 Sun Mar 14 16:40:10 1999 Andrew Cagney <cagney@b1.cygnus.com>
7944 * config/pa/tm-hppa.h (PUSH_DUMMY_FRAME): Fix parameter. Address
7947 Fri Mar 12 13:11:48 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
7949 * remote.c (remote_write_bytes): fix 'X' packet protocol so that it
7950 can't overwrite the end of its buffer with escaped characters.
7952 1999-03-12 Jim Blandy <jimb@zwingli.cygnus.com>
7954 Alpha patches from Richard Henderson:
7956 * alpha-tdep.c (alpha_skip_prologue): Recognize subq.
7958 * config/alpha/tm-alpha.h (REGISTER_NAMES): No f31, but fpcr.
7960 (REGISTER_CONVERTIBLE): Don't convert fpcr.
7961 (REGISTER_VIRTUAL_TYPE): Don't make fpcr a double.
7963 * stabsread.c (define_symbol): Only consider live range extension
7964 if we have an open parenthesis.
7966 1999-03-11 Jim Blandy <jimb@zwingli.cygnus.com>
7968 * monitor.c (monitor_fetch_register): Print RDEBUG info correctly
7969 when the register name is null.
7971 Thu Mar 11 19:33:07 1999 Stan Shebs <shebs@andros.cygnus.com>
7973 * infrun.c (wait_for_inferior): Change #if DECR_PC_AFTER_BREAK
7974 uses to expressions, remove redundant extern decls.
7976 Thu Mar 11 18:05:11 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
7978 * infptrace.c (proc_wait): Rename to ptrace_wait.
7979 * inftarg.c (child_wait): call ptrace_wait instead of proc_wait.
7980 * inferior.h: Declare ptrace_wait instead of proc_wait.
7982 Thu Mar 11 11:46:25 1999 Andrew Cagney <cagney@amy.cygnus.com>
7984 * breakpoint.c (create_solib_load_unload_event_breakpoint,
7985 create_fork_vfork_event_catchpoint, tcatch_command,
7986 create_exception_catchpoint, break_at_finish_at_depth_command_1,
7987 catch_fork_command_1, ep_skip_leading_whitespace,
7988 break_at_finish_command_1, catch_exec_command_1,
7989 catch_exception_command_1, stop_command, stopin_command,
7990 stopat_command, ep_parse_optional_filename,
7991 ep_find_event_name_end, ep_parse_optional_if_clause,
7992 catch_fork_command_1), stack.c (show_and_print_stack_frame_stub,
7993 print_stack_frame_stub, print_only_stack_frame_stub,
7994 backtrace_command_1, backtrace_full_command, func_command),
7995 valprint.c (print_decimal), source.c (print_source_lines_base):
7998 * stack.c (print_stack_frame_stub, show_and_print_stack_frame_stub,
7999 print_only_stack_frame_stub): Make param void*.
8001 Wed Mar 10 19:33:28 1999 Geoffrey Noer <noer@cygnus.com>
8003 * win32-nat.c: If old Cygwin Win32 API headers aren't being used,
8004 define some gdb-specific defines that shouldn't have been in the
8007 Wed Mar 10 21:20:25 1999 Andrew Cagney <cagney@b1.cygnus.com>
8009 * findvar.c (registers, register_valid): Replace array with pointer.
8010 (build_findvar): New function. Allocate space for REGISTERS and
8012 (_initialize_findvar): Call build_findvar.
8013 (_initialize_findvar): Register REGISTERS and REGISTER_VALID as
8016 * inferior.h (registers, register_valid): Replace array with
8019 * inferior.h (struct inferior_status): Move definition from here.
8021 * infrun.c (struct inferior_status): To here.
8022 (struct inferior_status): Change ``stop_registers'' and
8023 ``registers'' to pointers.
8024 (xmalloc_inferior_status, free_inferior_status): New functions.
8025 (restore_inferior_status): Call free_inferior_status.
8026 (save_inferior_status): Call xmalloc_inferior_status.
8027 (discard_inferior_status): New function, discard inf_status
8028 buffer. Call free_inferior_status.
8030 * inferior.h (stop_registers): Replace array with pointer.
8031 * infrun.c (stop_registers): Update.
8032 (build_infrun): Initialize stop_registers.
8033 (_initialize_infrun): Call build_infrun.
8034 (_initialize_infrun): Register ``stop_registers'' as arch dependant.
8036 Wed Mar 10 14:50:42 1999 Andrew Cagney <cagney@amy.cygnus.com>
8038 * alpha-tdep.c (alpha_linux_sigtramp_offset): Only compile when
8039 LINUXALPHA target. Hack.
8041 * infrun.c (set_follow_fork_mode_command): Make static. Add
8043 * tracepoint.c (add_register): Ditto.
8044 * valprint.c (strcat_longest): Comment out. Does not appear to be
8046 * valops.c (find_method_list): Make static. Add prototype.
8047 * thread.c (target_find_new_threads): Make static. Add prototype.
8048 * stack.c (stack_publish_stopped_with_no_frame,
8049 select_and_maybe_print_frame): Comment out. Does not appear to be
8051 (current_frame_command): Add prototype.
8052 * breakpoint.c (break_at_finish_command,
8053 break_at_finish_at_depth_command, tbreak_at_finish_command): Make
8054 static. Add prototype.
8055 * findvar.c (read_relative_register_raw_bytes_for_frame): Ditto.
8057 Wed Mar 10 23:38:54 1999 Andrew Cagney <cagney@b1.cygnus.com>
8059 * corefile.c (registers): Delete redundant variable declaration.
8060 * inferior.h (run_stack_dummy): Change array argument to pointer.
8061 * infcmd.c (run_stack_dummy): Update.
8062 * value.h (value_being_returned): Change RETBUF to a pointer.
8063 * values.c (value_being_returned): Update.
8065 Wed Mar 10 11:08:16 1999 Andrew Cagney <cagney@amy.cygnus.com>
8067 * source.c (list_command): GCC suggested explicit braces to avoid
8070 * jv-typeprint.c: Include "c-lang.h".
8071 * Makefile.in (jv-typeprint.o): Add dependency.
8072 * jv-valprint.c: Include "gdbcore.h", "annotate.h".
8073 * Makefile.in (jv-valprint.o): Add dependencies.
8074 * objfiles.c: Include "breakpoint.h".
8075 * Makefile.in (objfiles.o): Add dependency.
8076 * main.c: Include <unistd.h>.
8077 * parse.c: Include <ctype.h>.
8078 * remote.c: Include <ctype.h>.
8079 * ser-tcp.c: Include <unistd.h>.
8080 * ax-general.c: Include "value.h".
8081 * Makefile.in (ax-general.o): Add dependency.
8083 * alpha-tdep.c (alpha_push_arguments): Make ``i'' an int instead
8085 * frame.h (show_and_print_stack_frame): Add function prototype.
8086 * language.h (language_enum): Add function prototype.
8087 * value.h (find_overload_match): Add function prototype.
8089 * defs.h, utils.c (subset_compare): Rename subsetCompare. Add
8091 * stack.c (backtrace_command): Update.
8093 Wed Mar 10 13:58:36 1999 Andrew Cagney <cagney@b1.cygnus.com>
8095 * configure.in (AC_CHECK_HEADERS): Check for <sys/select.h>
8096 * configure, config.in: Re-generate.
8097 * inflow.c: Conditionally include <sys/select.h>.
8099 Wed Mar 10 13:44:38 1999 Andrew Cagney <cagney@b1.cygnus.com>
8101 * frame.h (struct dummy_frame): Move from here.
8102 * blockframe.c (struct dummy_frame): To here.
8104 * blockframe.c (struct dummy_frame): Replace ``regs'' with pointer
8106 (generic_pop_dummy_frame): Free it.
8107 (generic_push_dummy_frame): Allocate dummy frame register buffer.
8109 Wed Mar 10 11:08:16 1999 Andrew Cagney <cagney@amy.cygnus.com>
8111 * thread.c (_initialize_thread): Delete redundant ``extern struct
8112 cmd_list_element *cmdlist''.
8113 * printcmd.c (print_command_1): Ditto for ``objectprint'';
8115 1999-03-09 Stan Shebs <shebs@andros.cygnus.com>
8117 * MAINTAINERS: New file, list of maintainers and areas they
8120 1999-03-09 Rodney Brown <RodneyBrown@pmsc.com>
8122 Get working on UnixWare 2.1.1.
8123 * acconfig.h: Update for defines for procfs.c.
8124 * configure.in: Identify defines for procfs.c.
8125 * configure.host: i386-*-sysv4.2uw2* => i386v42mp
8126 * configure.tgt: i386-*-sysv4.2uw2* => i386v42mp
8127 * configure, config.in: Regenerate.
8128 * procfs.c: Rename HAVE_NO_PRRUN_T to HAVE_PRRUN_T (autoconf
8129 standard), wrap UNIXWARE difference in THE_PR_LWP macro for
8131 * config/i386/tm-i386v42mp.h: Remove HAVE_PSTATUS_T,
8132 HAVE_NO_PRRUN_T; now set by configure.
8134 Tue Mar 9 16:29:24 1999 Andrew Cagney <cagney@b1.cygnus.com>
8136 * i386-tdep.c (gdb_print_insn_i386): Abort when disassembly_flavor
8139 * fr30-tdep.c (_initialize_fr30_tdep): Add prototype. Fix
8142 * target.c (debug_to_enable_exception_callback,
8143 debug_to_get_current_exception_event): Return result of call to
8146 1999-03-09 Jim Blandy <jimb@zwingli.cygnus.com>
8148 Another HURD fix from Mark Kettenis:
8149 * gnu-nat.c: Include <string.h>. Remove declaration of strerror.
8150 Include <bits/waitflags.h> instead of <waitflags.h> and define
8151 _SYS_WAIT_H to prevent the warning that we should not include it.
8152 (gnu_create_inferior): Change return type of attach_to_child to
8153 void. Do not return INFERIOR_PID.
8154 (gnu_pid_to_exec_file): Change return type to char *.
8157 Fix for the HURD from Mark Kettenis:
8158 * configure.in: Add AC_PROG_AWK. Needed by the machine-dependent
8159 makefile fragments for the Hurd.
8160 * Makefile.in (AWK): Add. Set by configure.
8161 * configure: Regenerated.
8163 1999-03-08 Jason Molenda (jsm@bugshack.cygnus.com)
8165 * infttrace.c (hppa_get_process_events): Removed. Function only
8166 usable on HPUX 10 and above. It is not called by any other part
8168 * hppah-nat.c (hppa_get_process_events): Ditto.
8169 (child_pid_to_exec_file): Only call ptrace with
8170 PT_GET_PROCESS_PATHNAME if that symbol has been defined.
8171 * config/pa/nm-hppah.h: Don't set up prototypes et al for
8172 hppa_get_process_events.
8174 * config/pa/hppahpux.mh (TERM_LIB): Do not initialize, let autoconf
8175 determine best library automatically.
8176 * config/pa/hpux1020.mh: Ditto.
8177 * config/pa/hpux1100.mh: Ditto.
8178 * configure.in (TERM_LIB): Also check for libHcurses.
8179 * configure: Regenerated.
8181 Thu Mar 4 17:16:04 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
8183 * m32r-stub.c: add support for crc "Compare" command.
8185 1999-03-04 Jim Blandy <jimb@zwingli.cygnus.com>
8187 * fr30-tdep.c (fr30_store_return_value): Allocate zeroes
8188 dynamically, to save BSS space, and to remove assumptions about
8189 the size of the largest value we'll return.
8191 * config/fr30/tm-fr30.h (fr30_store_return_value): Use PARAMS in
8194 Thu Mar 4 08:37:35 1999 Andrew Cagney <cagney@b1.cygnus.com>
8196 * sh3-rom.c (sh3_supply_register, sh3_supply_register),
8197 mips-tdep.c (mips_push_arguments), m32r-rom.c
8198 (m32r_upload_command), m32r-tdep.c (decode_prologue), monitor.c
8199 (longlong_hexchars), tracepoint.c (validate_actionline,
8200 read_actions), mdebugread.c
8201 (parse_symbol), jv-typeprint.c
8202 (java_type_print_base, java_type_print_base), mdebugread.c
8203 (parse_symbol), top.c (source_command), utils.c
8204 (floatformat_to_doublest): GCC suggest explicit braces to avoid
8207 * tracepoint.c (map_args_over_tracepoints, trace_actions_command),
8208 m32r-rom.c (m32r_supply_register), win32-nat.c
8209 (handle_output_debug_string, child_continue), i960-tdep.c
8210 (pop_frame), m32r-rom.c (m32r_upload_command): GCC suggested
8211 parentheses around assignment used as truth value.
8213 * remote-sds.c (sds_wait), monitor.c (monitor_fetch_register),
8214 ser-e7kpc.c, (dosasync_write), arc-tdep.c (arc_get_frame_setup):
8215 GCC suggested parentheses around operands.
8217 * c-typeprint.c (c_type_print_base): GCC suggested enclosing
8218 "while" expression in paren.
8220 Wed Mar 3 18:14:33 1999 Andrew Cagney <cagney@chook.cygnus.com>
8222 * sol-thread.c (save_inferior_pid): Cast the saved pid to void*.
8223 (restore_inferior_pid): Takes void* as required by make_cleanup.
8224 Casts pid back to an int.
8226 * procfs.c (make_cleanup_close_proc_file,
8227 close_proc_file_cleanup): Create a proc_file cleanup.
8230 * defs.h (make_cleanup_freeargv): Helper function. Establish
8231 cleanup using freeargv. Can not just typecast/pass freeargv as it
8233 * utils.c (do_freeargv): Helper.
8234 (make_cleanup_freeargv): New function.
8236 * symmisc.c (maintenance_print_symbols,
8237 maintenance_print_psymbols, maintenance_print_msymbols), symfile.c
8238 (symbol_file_command), stack.c (backtrace_command), remote-sim.c
8239 (gdbsim_create_inferior, gdbsim_open), remote-mips.c
8240 (common_open), procfs.c (info_proc), infrun.c (handle_command,
8241 xdb_handle_command), exec.c (exec_file_attach): Call
8242 make_cleanup_freeargv.
8244 1999-03-03 James Ingham <jingham@cygnus.com>
8246 * i386-tdep.c (_initialize_i386_tdep): Set the inital value for
8247 disassembly flavor at startup, rather than hardcoding it.
8249 1999-03-03 Jim Blandy <jimb@zwingli.cygnus.com>
8251 Put return values in the right place.
8252 * fr30-tdep.c (fr30_store_return_value): New function.
8253 * config/fr30/tm-fr30.h (STORE_RETURN_VALUE): Call
8254 fr30_store_return_value.
8256 Wed Mar 3 18:10:55 1999 Andrew Cagney <cagney@chook.cygnus.com>
8258 * gdbtypes.c (virtual_base_list_aux): Return void. Add prototype.
8260 * breakpoint.c (map_catch_names): Comment out unused function.
8262 1999-03-02 Jason Molenda (jsm@bugshack.cygnus.com)
8264 * hppa-tdep.c (pa_register_look_aside): Only refer to save_state_t
8265 structure on PA 2.0 systems.
8267 1999-03-02 Stan Shebs <shebs@andros.cygnus.com>
8269 From Gary Thomas <gthomas@cygnus.co.uk>:
8270 * arm-tdep.c (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT,
8271 THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Use illegal instruction
8273 * config/arm/tm-arm.h (CALL_DUMMY): Ditto.
8274 (IN_SIGTRAMP): Define.
8276 1999-03-02 Nick Clifton <nickc@cygnus.com>
8278 * findvar.c (store_address): Delete incorrect big endian
8281 Tue Mar 2 18:02:42 1999 Andrew Cagney <cagney@chook>
8283 * configure.in (gdb_cv_os_cygwin): Compat. Continue to reconize
8286 1999-03-01 Jason Molenda (jsm@bugshack.cygnus.com)
8288 * configure.in: Move setting of gdb_cv_os_cygwin to before
8289 setting of TERM_LIB. Check for __CYGWIN__ instead of __CYGWIN32__.
8290 * configure: Regenerated.
8292 1999-03-01 DJ Delorie <dj@cygnus.com>
8294 * configure.in: Change -cygwin32* to -cygwin*.
8297 1999-02-25 Stan Shebs <shebs@andros.cygnus.com>
8299 * breakpoint.c (SOLIB_LOADED_LIBRARY_PATHNAME,
8300 SOLIB_UNLOADED_LIBRARY_PATHNAME, SOLIB_CREATE_CATCH_LOAD_HOOK,
8301 SOLIB_CREATE_CATCH_UNLOAD_HOOK): Supply default definitions.
8302 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Ditto.
8304 1999-02-25 Keith Seitz <keiths@cygnus.com>
8306 * corelow.c (core_close): Clear out solib state before
8307 closing the bfd associated with the core file.
8308 * solib.c (clear_solib): Mention that clear_solib requires
8309 an open BFD in order for disable_breakpoints_in_shlibs to
8310 determine whether breakpoints live in shared libraries.
8312 1999-02-24 Jason Molenda (jsm@bugshack.cygnus.com)
8314 * configure.in: Set CPU_HPPA_RISC_20 if the host CPU is a PA 2.0
8316 * acconfig.h: Add CPU_HPPA_RISC_20
8317 * config.in, configure: Regenerated.
8318 * hppa-tdep.c (pa_register_look_aside): Only refer to new
8319 structure elements if we are on a PA2.0 system.
8320 * defs.h: Include limits.h.
8322 Tue Feb 23 14:37:08 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
8324 * infrun.c (wait_for_inferior): Check scheduler_locking state
8325 before resuming after a thread-specific breakpoint.
8327 1999-02-23 Jim Blandy <jimb@zwingli.cygnus.com>
8329 * aclocal.m4, config.in, configure: Regenerated with latest
8332 Mon Feb 22 12:32:19 1999 Per Bothner <bothner@cygnus.com>
8334 * jv-valprint.c (java_val_print): Restore line that somehow got lost.
8336 * jv-valprint.c (java_print_value_fields): Check for NULL type.
8338 1999-02-21 Jim Blandy <jimb@zwingli.cygnus.com>
8340 * tm-h8500.h, i386lynx-nat.c: Removed. These files are long
8341 dead; it seems that they only appeared due to some CVS weirdness.
8342 If they appear again, we may need to distribute garlic and holy
8345 1999-02-19 Jason Molenda (jsm@bugshack.cygnus.com)
8347 * configure.in (TERM_LIB): Move checking for TERM_LIB, substituting.
8348 * configure: Regenerated.
8350 1999-02-19 Robert Hoehne (robert.hoehne@gmx.net)
8352 * configure.host (i[3456]86-*-msdosdjgpp*): New host.
8353 * configure.tgt (i[3456]86-*-msdosdjgpp*): New target.
8354 * go32-nat.c: New file, native DJGPP support.
8355 * config/i386/go32.mh: Rewrite for DJGPP (go32) host.
8356 * config/i386/go32.mt: New file, DJGPP (go32) target.
8357 * config/i386/nm-go32.h: New file.
8358 * config/i386/tm-go32.h: New file.
8359 * config/i386/xm-go32.h: Rewritten for current DJGPP.
8361 1999-02-18 Jason Molenda (jsm@bugshack.cygnus.com)
8363 * reply_mig_hack.awk, config/nm-gnu.h, config/alpha/nm-linux.h
8364 config/alpha/xm-alphalinux.h, config/alpha/xm-alphaosf.h
8365 config/i386/nm-i386sco5.h, config/i386/tm-fbsd.h, config/i386/tm-i386.h
8366 config/powerpc/nm-aix.h, config/powerpc/tm-macos.h
8367 config/powerpc/tm-ppc-aix.h, config/powerpc/xm-aix.h
8368 config/rs6000/tm-rs6000-aix4.h: Update FSF address in copyright
8371 1999-02-18 Jason Molenda (jsm@bugshack.cygnus.com)
8373 * configure.in: Quote "$GCC" correctly.
8374 * configure: Regenerated.
8376 1999-02-18 Jim Blandy <jimb@zwingli.cygnus.com>
8378 * dbxread.c (elfstab_build_psymtabs): Don't assume that there's a
8379 section named ".text", which has all the code in it. Instead, look
8380 at all the sections in the file with the `code' flag set.
8381 (find_text_range): New function, that does all the work.
8383 Thu Feb 18 17:50:45 1999 Andrew Cagney <cagney@b1.cygnus.com>
8385 * mips-tdep.c (FP_REGISTER_DOUBLE): Conditionally define.
8387 Fri Jan 29 16:51:11 1999 Andrew Cagney <cagney@chook.cygnus.com>
8389 * mips-tdep.c (return_value_location): New function. Merge/rewrite
8390 of return-value code in mips_extract_return_value,
8391 mips_store_return_value. Stop buffer overflow when 64 bit value
8392 in 32 bit registers. Extract 64bit float from 32 bit register
8393 pair of correct order.
8394 (mips_extract_return_value, mips_store_return_value): Call
8395 return_value_location. For store, ensure that remainder of
8398 Thu Jan 28 18:58:02 1999 Andrew Cagney <cagney@chook.cygnus.com>
8400 From John Metzler <jmetzler@cygnus.com>:
8401 * mips-tdep.c (struct gdbarch_tdep): Add mips_saved_regsize.
8402 (MIPS_SAVED_REGSIZE): Define.
8403 (mips_find_saved_regs, read_next_frame_reg, mips_pop_frame):
8404 Read/write MIPS_SAVED_REGSIZE bytes of register on stack instead
8406 (mips_gdbarch_init): Initialize mips_saved_regsize.
8408 * mips-tdep.c (mips_frame_saved_pc, mips16_heuristic_proc_desc,
8409 mips_push_arguments, mips_push_dummy_frame,
8410 mips_use_struct_convention): Ditto. For MIPS_SAVED_REGSIZE <
8411 REGISTER_RAW_SIZE, handle little/big endian issues from only using
8413 (STACK_ARGSIZE): Default to MIPS_SAVED_REGSIZE instead of
8416 * mips-tdep.c (struct gdbarch_tdep, FP_REGISTER_DOUBLE,
8417 mips_gdbarch_init): Apply similar changes. Add
8418 mips_fp_register_double to struct.
8420 Wed Feb 17 10:10:27 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
8422 * gdbtypes.h (get_discrete_bounds): Remove duplicate decl.
8424 * jv-typeprint.c (java_type_print_base): Change fputs => fputs_filtered.
8426 Mon Jan 25 18:30:57 1999 Per Bothner <bothner@cygnus.com>
8428 * jv-lang.h (JAVA_OBJECT_SIZE): Change from hard-wired constant.
8429 (java_primitive_type_from_name, get_java_object_header_size): Declare.
8430 * jv-lang.c (java_class_from_object): Use get_java_object_type.
8431 * jv-lang.c: Update Class field names: dtable->vtable,
8432 msize->method_count, nfields->field_count, bfsize->size_in_bytes,
8433 nmethods->method_count.
8434 (type_from_class): Demangle array type names.
8435 (java_link_class_type): Array type names are now demangled.
8436 (get_java_object_type): If not defined yet, try looking it up.
8437 (get_java_object_header_size): New function.
8438 (java_primitive_type_from_name): New function.
8439 (java_demangled_signature_length, java_demangled_signature_copy): New.
8440 (java_demangle_type_signature): Re-implement using above functions.
8441 (evaluate_subexp_java): For UNOP_IND, call evaluate_subexp_java
8442 to evaluate subexp (not evaluate_subexp_standard).
8443 For BINOP_SUBSCRIPT update for new array type naming scheme.
8444 * jv-valprint.c (java_value_print): Use java_class_from_object.
8445 Update array printing to new array type naming convention.
8446 (java_val_print): Doing check_typedef when printing a pointer is
8447 is a waste of effort. Also, handle TYPE_CODE_INT, to make sure
8448 Java bytes as not printed as C chars.
8450 Fri Jan 8 16:58:22 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
8452 * blockframe.c (find_pc_sect_partial_function): Search full symtabs as
8453 a last ditch effort (after the partial & minimal symtabs).
8454 * defs.h utils.c: Fixup prototypes for vprintf_filtered,
8455 vfprintf_filtered, vfprintf_unfiltered and vprintf_unfiltered to return
8456 ints to match their standard equivalents.
8457 * defs.h symtab.c top.c: Create skip_prologue_hook to allow Java to
8458 control the prologue skipping process.
8459 * jv-typeprint.c (java_type_print_base): Remove extern for
8460 jv_class_demangle, add new arg for objfile (NULL).
8461 * symtab.h: Remove struct sourcevector and struct source. Definately
8463 * values.c (value_virtual_fn_field): Fixes code to handle new vtable
8464 debug info format. Patch from marka.
8466 Wed Dec 16 23:11:25 1998 Stu Grossman <grossman@fencer.cygnus.com>
8468 * jv-lang.c (java_class_from_object java_class_is_primitive
8469 is_object_type): Change dtable to vtable.
8470 * (java_primitive_type): Change arg to type char.
8471 * (_initialize_java_language): Make java_char_type be unsigned.
8472 * jv-lang.h: Fixup prototypes.
8474 Mon Dec 7 19:02:15 1998 Stu Grossman <grossman@babylon-5.cygnus.com>
8476 * jv-valprint.c (java_value_print): Fix printing of values where
8477 run time type != compile time type.
8479 Fri Dec 4 15:23:38 1998 Stu Grossman <grossman@fencer.cygnus.com>
8481 * Makefile.in: Whack out m2-typeprint.c.
8482 * c-typeprint.c (c_type_print_varspec_suffix) typeprint.h: Make this
8483 global. It's needed by Java.
8484 * (c_type_print_base): Whack prefix off of qualified method names
8485 (names with name spaces).
8486 * gdbtypes.h (struct cplus_struct_type): Add bits for Java attributes.
8488 to 16 bits to compensate for added bits above (hopefully this is still
8490 * Add new accessor macros (TYPE_FND_FIELD_PUBLIC, ...) for all new
8492 * jv-typeprint.c (java_type_print_base): Fix printing of method
8493 attributes. Handle JVM style manglings.
8494 * (java_print_type): Enable code type print varspec_suffix to allow
8495 array indices to print out.
8496 * jv-valprint.c (java_val_print): Minor formatting.
8497 * m2-lang.c (m2_language_d): Change m2_print_type to c_print_type.
8498 * stabsread.c (read_member_functions): Save public and static attributes.
8500 Wed Feb 17 15:32:57 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
8502 * breakpoint.c (watch_command_1): Reformat comment.
8504 * c-typeprint.c (c_type_print_base): Reformat comments.
8506 1999-02-17 Jim Blandy <jimb@zwingli.cygnus.com>
8508 * Makefile.in (VERSION): Bump version to 4.17.2.
8510 Tue Feb 16 15:48:20 1999 Edith Epstein <eepstein@sophia.cygnus.com>
8512 * config/pa/nm-hppah.h: Added prototype declarations for
8513 hppa_enable_page_protection_events and
8514 hppa_disable_page_protection_events.
8516 * inftarg.c (child_wait): Fixed code that checks whether
8517 or not the target program has done a fork/vfork.
8518 related_pid does not have a value unless the target
8519 program has forked/vforked.
8521 * infttrace.c (hppa_insert_hw_watchpoint): Make sure that
8522 function always returns a value.
8523 (hppa_remove_hw_watchpoint): Make sure that function always
8526 Tue Feb 16 06:31:58 1999 Keith Seitz <keiths@cygnus.com>
8528 * config/powerpc/tm-ppc-eabi.h: Do not define PC_IN_CALL_DUMMY,
8529 let the generic call dummy infrastructure do it.
8531 Sun Feb 14 18:21:08 1999 Mark Alexander <marka@cygnus.com>
8533 * config/sh/tm-sh.h (BELIEVE_PCC_PROMOTION): Define, so that
8534 coffread.c will correctly handle char or short function parameters.
8536 1999-02-11 Jason Molenda (jsm@bugshack.cygnus.com)
8538 * configure, aclocal.m4: Regenerate with correct version of aclocal.
8540 1999-02-10 Syd Polk <spolk@cygnus.com>
8542 * acinclude.m4: Fix for new location of itclConfig.sh and itkConfig.sh.
8543 * aclocal.m4: Regnerate.
8544 * configure: Regenerate.
8546 1999-02-10 Jason Molenda (jsm@bugshack.cygnus.com)
8548 * demangle.c: Fix comments to mention "set demangle-style"
8549 instead of "set demangle".
8550 Run through indent to fix minor indenting problems.
8552 Wed Feb 10 17:53:09 1999 Bob Manson <manson@charmed.cygnus.com>
8554 * i386-tdep.c (gdb_print_insn_i386): Add missing returns.
8556 Wed Feb 10 13:17:21 1999 Stan Shebs <shebs@andros.cygnus.com>
8558 Declare Gould configuration obsolete:
8559 * configure.host, configure.tgt: Comment out Gould configs.
8560 * Makefile.in: Comment out Gould-related actions.
8561 * gould-xdep.c, gould-tdep.c, config/gould/*: Comment out.
8562 * NEWS: Mention obsolete status.
8564 1999-02-09 DJ Delorie <dj@cygnus.com>
8566 * sparcl-tdep.c: UDP download works in cygwin
8568 1999-02-08 Jason Molenda (jsm@bugshack.cygnus.com)
8570 * gnu-regex.c: Check ENABLE_NLS instead of HAVE_LIBINTL_H.
8571 * configure.in: Don't check for libintl.h.
8572 * configure, config.in: Regenerated.
8574 Mon Feb 8 18:10:50 1999 Stan Shebs <shebs@andros.cygnus.com>
8576 * NEWS: Mention new X packet and PowerPC variant support.
8578 1999-02-08 Nick Clifton <nickc@cygnus.com>
8580 * configure.host: Add support for StrongARM host.
8581 * configure.tgt: Add support for StrongARM target.
8583 Mon Feb 8 12:05:05 1999 David Taylor <taylor@texas.cygnus.com>
8585 * dsrec.c (make_srec): Cast targ_addr to int in call to sprintf
8586 otherwise on big endian machine with a bfd_vma of 64 bits,
8587 *everything* gets loaded at location 0.
8589 Mon Feb 7 10:05:43 1999 Frank Ch. Eigler <fche@cygnus.com>
8591 * infrun.c (wait_for_inferior): Allow SIGTRAP to be "pass"ed
8594 Fri Feb 5 16:46:14 1999 Stan Shebs <shebs@andros.cygnus.com>
8596 * NEWS: Add mentions of various new things.
8598 Thu Feb 4 00:19:14 1999 Christopher Faylor <cgf@cygnus.com>
8600 * configure.in: Move termcap determination later in the
8601 file to catch setting of cygwin flag.
8602 * configure: Regenerate.
8604 Wed Feb 3 14:16:38 1999 Christopher Faylor <cgf@cygnus.com>
8606 * config/i386/cygwin.mh: Move TERMCAP test code to configure.in.
8607 * configure.in: Treat libtermcap.a detection as a special case
8608 when hosting on cygwin.
8609 * configure: Regenerate.
8611 1999-02-03 Keith Seitz <keiths@cygnus.com>
8613 * remote.c (remote_binary_download, remote_binary_length): New
8614 static globals for dealing with binary transmissions.
8615 (remote_write_bytes): Add support for binary downloads
8616 by shadowing the "M" packet with a new "X" packet. This
8617 defaults to ON; if the stub does not understand this, it
8618 will fall back to using "M".
8619 (putpkt): Add support for binary downloading.
8620 * monitor.c (monitor_expect): The mon2000 monitor
8621 on the MSA2000 will also emit random DC1/DC3 chars.
8622 * m32r-stub.c: Change all char's to unsigned char's
8623 to support binary downloading.
8624 (handle_exception): Add support for binary downloading
8625 via a new "X" packet.
8626 (getpacket): Do NOT strip eighth bit of incoming chars.
8627 Watch out for escaped characters in the incoming stream.
8628 (putpacket): Do NOT strip eighth bit of incoming chars.
8629 (bin2mem): New function to write binary data directly to
8631 * m32r-rom.c: Add new "mon2000" target.
8633 Tue Feb 2 18:40:29 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
8635 * hp-psymtab-read.c (hpread_build_psymtabs): Coerce first arg
8636 passed to make_cleanup to the correct type.
8637 (hpread_quick_traverse): Change fifth arg to call to
8638 hpread_end_psymtab to be 0.
8639 Compare CURR_MODULE_END to 0 rather than NULL.
8640 Get rid of ifdef'ed out code.
8641 (scan_procs): Get rid of ifdef'ed out code.
8643 * somread.c (som_symfile_read): Coerce first argument passed to
8644 make_cleanup to the correct type.
8646 Tue Feb 2 17:36:29 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
8648 * hp-psymtab-read.c (do_pxdb): New function. Check whether the
8649 file needs to be processed by pxdb (an HP debug info massaging
8650 tool), if so call it.
8651 (hpread_build_psymtabs): Initialize scan_start to 0 and
8652 simplify flow of control.
8654 * somread.c (som_symfile_read): Add call to do_pxdb (),
8655 in hp-psymtab-read.c.
8657 * symfile.c (symbol_file_add): Remove ifdef'ed out HPUX specific
8659 (symfile_bfd_open): Remove HPUXHPPA ifdef'ed code. Code is now
8660 in hp-psymtab-read.c.
8662 1999-02-02 Martin Hunt <hunt@cygnus.com>
8664 * printcmd.c (print_scalar_formatted): Use strcat to concat all
8665 the output together before calling fprintf_filtered().
8667 1999-02-01 Jason Molenda (jsm@bugshack.cygnus.com)
8669 * configure.in: Require autoconf 2.13.
8670 (AM_EXEEXT): Replace with new AC_EXEEXT.
8671 * acinclude.m4: Move itcl header macros from aclocal.m4 to here.
8672 * aclocal.m4: Regenerated.
8673 * configure: Regenerated.
8675 1999-02-01 Jim Blandy <jimb@zwingli.cygnus.com>
8677 Allow PPC users to select which PPC/RS6000 variant they're
8678 debugging at run-time. At the moment, the only thing this affects
8679 is the set of registers visible.
8680 * config/rs6000/tm-rs6000.h (REGISTER_NAME): Define this as a call
8681 to the function rs6000_register_name.
8682 (rs6000_register_name): Include extern decl.
8683 (NUM_REGS): Bump to 183. What's the right way to do this?
8684 (FIRST_UISA_SP_REGNUM, LAST_UISA_SP_REGNUM): Renamed from
8685 FIRST_SP_REGNUM, LAST_SP_REGNUM.
8686 (REGISTER_BYTES): Recompute this.
8687 * rs6000-tdep.c: Renamed all uses of FIRST_SP_REGNUM and
8688 LAST_SP_REGNUM to FIRST_UISA_SP_REGNUM and LAST_UISA_SP_REGNUM, with
8689 some concomitant formatting changes.
8690 #include "gdbcmd.h", so we can define commands here.
8691 (struct variant): New structure.
8692 (COMMON_UISA_REG_NAMES, PPC_UISA_SPR_NAMES, PPC_SEGMENT_REG_NAMES,
8693 PPC_32_OEA_SPR_NAMES, num_registers): New macros.
8694 (register_names_rs6000, register_names_uisa, register_names_403,
8695 register_names_403GC, register_names_505, register_names_860,
8696 register_names_601, register_names_602, register_names_603,
8697 register_names_604, register_names_750, variants): New variables.
8698 (rs6000_register_name, install_variant, find_variant_by_name,
8699 install_variant_by_name, list_variants, show_current_variant,
8700 set_processor, show_processor): New functions.
8701 (_initialize_rs6000_tdep): Define new commands `set processor' and
8702 `show processor', and call install_variant_by_name to set the
8704 * rs6000-nat.c: Renamed all uses of FIRST_SP_REGNUM and
8705 LAST_SP_REGNUM to FIRST_UISA_SP_REGNUM and LAST_UISA_SP_REGNUM, with
8706 some concomitant formatting changes.
8707 * configure.in: Accept the `--with-cpu' flag, to specify a default
8709 * acconfig.h: Provide a blurb for TARGET_CPU_DEFAULT, which is set
8710 by configure's `--with-cpu' flag.
8711 * config.in, configure: Regenerated.
8713 Sun Jan 31 15:24:24 1999 Stan Shebs <shebs@andros.cygnus.com>
8715 * buildsym.h, buildsym.c: Convert to ANSI-only.
8717 * buildsym.h, buildsym.c: Reformat to standard.
8719 * buildsym.c (merge_symbol_lists): Remove unused variable.
8720 (_initialize_buildsym): Remove, does nothing.
8722 1999-01-31 J.T. Conklin <jtc@redbacknetworks.com>
8724 * i386-stub.c, m32r-stub.c, m68k-stub.c, sh-stub.c, sparc-stub.c,
8725 sparcl-stub, sparclet-stub.c: Change declaration of putDebugChar
8726 to include explicit void return type as per documentation. Fix up
8727 occasions where stubs erroneously checked return type.
8729 Sun Jan 31 13:18:33 1999 Stan Shebs <shebs@andros.cygnus.com>
8731 From J.T. Conklin <jtc@redbacknetworks.com>:
8732 * remote.c (remote_query): Fix tipo.
8734 Fri Jan 29 15:25:09 1999 Stan Shebs <shebs@andros.cygnus.com>
8736 * configure.tgt (v850): Add wildcard to match.
8738 Fri Jan 29 16:44:01 1999 Edith Epstein <eepstein@sophia.cygnus.com>
8740 * inferior.h: Ran indent.
8742 * fork-child.c: Ran indent.
8744 * infrun.c : Ran indent.
8746 Fri Jan 29 12:57:34 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
8748 * infrun.c (_initialize_infrun): Do not stop or print anything
8749 when a SIGWINCH is received.
8751 * Makefile.in (m2-exp.tab.c): Use YACC not BISON.
8752 (f-exp.tab.c): Ditto.
8753 (jv-exp.tab.c): Ditto.
8754 (c-exp.tab.c): Ditto.
8755 (YACC): Define as @YACC@.
8757 1999-01-29 Martin Hunt <hunt@cygnus.com>
8759 Changes from Keith Seitz <keiths@cygnus.com>
8760 * valops.c (value_assign): Add calls to register_changed_hook and
8761 memory_changed_hook to inform UIs that the user has changed
8762 the target's registers/memory.
8763 * findvar.c (write_register_gen): Remove call to pc_changed_hook.
8764 * defs.h: Remove declaration for pc_changed_hook and
8765 add declarations for register_changed_hook and
8766 memory_changed_hook.
8769 1999-01-29 Mark Alexander <marka@cygnus.com>
8771 * procfs.c (wait_fd): Handle deleted threads correctly.
8773 1999-01-28 Jason Molenda (jsm@bugshack.cygnus.com)
8775 * utils.c (init_page_info): Force window size if running under emacs.
8777 1999-01-27 James Ingham <jingham@cygnus.com>
8779 * typeprint.c (whatis_exp): Remove static declaration.
8781 Wed Jan 27 16:50:25 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
8783 * hp-psymtab-read.c: Reformat using indent.
8785 Wed Jan 27 13:20:25 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
8787 * hp-psymtab-read.c: Reformat comments, update copyright.
8789 Wed Jan 27 15:09:22 1999 Andrew Cagney <cagney@chook.cygnus.com>
8791 * mips-tdep.c (mips_gdbarch_init): Trace e_flags from BFD
8794 Tue Jan 26 16:02:47 1999 Mark Alexander <marka@cygnus.com>
8796 * v850-tdep.c (v850_generic_reg_names, v850e_reg_names,
8797 v850_register_names, v850_processor_type_table): Declare tables
8798 and structures for handling differences in register names for
8800 (struct reg_list): Define new structure for creating tables
8801 of register bit masks in v850e instrutions.
8802 (handle_prepare, handle_pushm): New helpers for v850_scan_prologue.
8803 (v850_scan_prologue): Recognize v850e instructions: callt, prepare,
8805 (v850_target_architecture_hook): New function to set register
8806 names based on current machine.
8807 (_initialize_v850_tdep): Set up target_architecture_hook.
8808 * config/v850/tm-v850.h (v850_register_names): Declare.
8809 (REGISTER_NAME): Define to refer to v850_register_names.
8810 (SR0_REGNUM, CTBP_REGNUM): Define.
8811 (PS_REGNUM): Redefine in terms of SR0_REGNUM.
8813 Tue Jan 26 18:27:26 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
8815 * Makefile.in (c-exp.tab.c): Use BISON instead of YACC, to pick
8816 the correct value from configure output.
8817 (jv-exp.tab.c): Ditto.
8818 (f-exp.tab.c): Ditto.
8819 (m2-exp.tab.c): Ditto.
8821 1999-01-26 Jason Molenda (jsm@bugshack.cygnus.com)
8823 * breakpoint.h (ep_is_exception_catchpoint): Add prototype.
8824 * frame.h (select_and_print_frame): Add prototype.
8825 * stack.c (func_command): Call select_and_print_frame with correct
8826 number of arguments. Reformat whitespace.
8828 Tue Jan 26 16:53:54 1999 Fernando Nasser <fnasser@cygnus.com>
8830 * remote.c (remote_query): fix maximum packet size to account for
8832 (putpkt): add comment to alert about extra byte need.
8834 Mon Jan 25 19:55:30 1999 Mark Alexander <marka@cygnus.com>
8836 * sh-tdep.c (sh_target_architecture_hook): Return immediately
8837 when a matching machine is found.
8839 Fri Jan 22 09:10:35 1999 Mark Alexander <marka@cygnus.com>
8841 * remote-mips.c (mips_initialize): Fix parameters to clear_breakpoint.
8842 (common_breakpoint): Restore support for instruction breakpoints
8845 Thu Jan 21 17:16:19 1999 Andrew Cagney <cagney@b1.cygnus.com>
8847 * stack.c: Close open comment.
8848 * symtab.c (find_pc_sect_line): Ditto.
8850 Thu Jan 21 17:51:51 1999 Stan Shebs <shebs@andros.cygnus.com>
8852 * procfs.c (init_procfs_ops): New function, fills in procfs_ops,
8853 init only nonzero fields, leave to_require_attach and
8854 to_require_detach empty, not needed for /proc systems yet.
8855 (_initialize_procfs): Call init_procfs_ops.
8857 From J.T. Conklin <jtc@redbacknetworks.com>:
8858 * top.c (init_main): Fix tipo in description of the remotetimeout
8860 * breakpoint.c (bpstat_stop_status): Handle systems where
8861 DECR_PC_AFTER_BREAK != DECR_PC_AFTER_HW_BREAK.
8863 Thu Jan 21 17:25:46 1999 Mark Alexander <marka@cygnus.com>
8865 * mon960-rom.c (_initialize_mon960): Call init_mon960_cmds
8866 to fill in mon960_cmds structure properly.
8868 Wed Jan 20 17:53:22 1999 Stan Shebs <shebs@andros.cygnus.com>
8870 * remote-sds.c (sds_ops): Define only once.
8871 (init_sds_ops, sds_command, _initialize_remote_sds): Declare.
8872 (init_sds_ops): Init only non-zero fields.
8874 Wed Jan 20 15:45:15 1999 Mark Alexander <marka@cygnus.com>
8876 * h8300-tdep.c (original_register_names, h8300h_register_names,
8877 h8300_register_names): Define new variables.
8878 (set_register_names): New function to set register names based on
8880 (h8300_command, h8300h_command, h8300s_command): Call
8882 * config/h8300/tm-h8300.h (h8300_register_names): Declare.
8883 (REGISTER_NAME): Define to refer to h8300_register_names.
8885 1999-01-19 Fernando Nasser <fnasser@totem.to.cygnus.com>
8887 * sol-thread.c abug-rom.c cpu32bug-rom.c dbug-rom.c m32r-rom.c
8888 mac-nat.c mon960-rom.c op50-rom.c ppc-bdm.c remote-adapt.c
8889 remote-array.c remote-bug.c remote-e7000.c remote-eb.c remote-es.c
8890 remote-est.c remote-hms.c remote-mm.c remote-nindy.c remote-nrom.c
8891 remote-os9k.c remote-rdp.c remote-sds.c remote-sim.c remote-st.c
8892 remote-udi.c rom68k-rom.c sh3-rom.c sparcl-tdep.c sparclet-rom.c
8893 v850ice.c win32-nat.c: cosmetic changes to conform to coding
8896 1999-01-19 Jim Blandy <jimb@zwingli.cygnus.com>
8898 Use aclocal to generate GDB's aclocal.m4 script.
8899 * acinclude.m4: New file, containing the hand-written local macro
8900 definitions that used to be in aclocal.m4. Don't sinclude
8901 ../bfd/aclocal.m4 any more; running aclocal in this directory will
8902 get us the definitions we need. HOWEVER: Do sinclude
8903 ../bfd/acinclude.m4, because we need the definition of
8904 BFD_NEED_DECLARATION.
8905 * aclocal.m4: Regenerated by aclocal.
8906 * configure: Regenerated by autoconf.
8908 Tue Jan 19 10:27:23 1999 David Taylor <taylor@texas.cygnus.com>
8910 * breakpoint.c (disable_breakpoints_in_shlibs): new parameter,
8911 silent, controls whether to print message about removal of shared
8912 library breakpoints.
8913 * breakpoint.h (disable_breakpoints_in_shlibs): decl updated.
8914 * irix5-nat.c (clear_solib): call disable_breakpoints_in_shlibs.
8915 * osfsolib.c (clear_solib): ditto.
8916 * solib.c (clear_solib): ditto.
8917 * somsolib.c (som_solib_restart): update call to
8918 disable_breakpoints_in_shlibs.
8920 * target.h (child_post_attach): only declare if CHILD_POST_ATTACH
8923 Tue Jan 19 18:07:11 1999 Andrew Cagney <cagney@b1.cygnus.com>
8925 * corelow.c (solib_add_stub): Ditto.
8926 (core_file_to_sym_file): Cast make_cleanup parameter.
8928 * solib.c (symbol_add_stub, solib_map_sections): Change argument
8929 to PTR insted of a char*. Matches catch_errors interface.
8931 Mon Jan 18 14:01:24 1999 Andrew Cagney <cagney@b1.cygnus.com>
8933 * remote-array.c (array_open): Don't use fprintf_filtered to send
8934 data to the log file.
8936 * remote-array.c (handle_load_dll): Change argument type to PTR so
8937 that it is compatible with catch_errors.
8938 * ocd.c (ocd_start_remote): Ditto.
8939 * remote-sds.c (sds_start_remote): Ditto.
8941 * win32-nat.c (win32_child_thread_alive): Namespace proof
8943 (init_child_ops): Update.
8945 Mon Jan 18 12:03:47 1999 Andrew Cagney <cagney@b1.cygnus.com>
8947 * remote-rdi.c (arm_rdi_open): Set gdb_hostif.hostosarg and
8948 gdb_hostif.dbgarg to NULL instead of stdout.
8949 (voiddummy, myprint, mywritec): Use gdb_stdout instead of stdout.
8951 Mon Jan 18 16:40:50 1999 Stan Shebs <shebs@andros.cygnus.com>
8953 * ser-ocd.c (ocd_open): Handle Unix case gracefully.
8955 * target.c (dummy_target): Don't initialize statically.
8956 (init_dummy_target): New function, fills in dummy_target.
8957 (initialize_targets): Use it.
8958 * hpux-thread.c (hpux_thread_ops): Don't initialize statically.
8959 (init_hpux_thread_ops): New function, fills in hpux_thread_ops.
8960 (_initialize_hpux_thread): Use it.
8961 * m3-nat.c (m3_ops): Don't initialize statically.
8962 (init_m3_ops): New function, fills in m3_ops.
8963 (_initialize_m3): Use it.
8965 1999-01-18 Fernando Nasser <fnasser@totem.to.cygnus.com>
8967 * sol-thread.c: delete compile time initialization of target_ops
8968 (_initialize_sol_thread): initialize target_ops at run time.
8969 * hpux-thread.c: added target_ops entry.
8972 Mon Jan 18 15:19:13 1999 David Taylor <taylor@texas.cygnus.com>
8974 * procfs.c (procfs_ops): delete compile time initialization.
8975 (_initialize_procfs): initialize procfs_ops at run time.
8977 Mon Jan 18 12:51:44 1999 Christopher Faylor <cgf@cygnus.com>
8979 * configure.in: Ensure that -luser32 is always linked in
8981 * configure: Regenerated.
8983 Mon Jan 18 08:38:05 1999 Mark Alexander <marka@cygnus.com>
8985 * values.c (value_virtual_fn_field): Clear the pointed-to
8986 offset when casting to the base class.
8988 Mon Jan 18 10:30:51 1999 David Taylor <taylor@texas.cygnus.com>
8990 * remote-udi.c (init_udi_ops): change non-existant udi_run_ops to
8991 udi_ops; delete NULL initializers.
8993 Mon Jan 18 12:03:47 1999 Andrew Cagney <cagney@b1.cygnus.com>
8995 * serial.c (serial_close): gdb_fclose tages gdb_file** arg, not
8998 * f-valprint.c, target.c, gdbarch.c: Pass gdb_stderr not stderr.
9000 Mon Jan 18 10:46:12 1999 Andrew Cagney <cagney@b1.cygnus.com>
9002 * stack.c (print_frame_info_base): Don't cast call to
9004 (print_args_stub): Change char* arg to PTR.
9005 * symmisc.c (print_symbol): Ditto.
9006 * top.c (quit_cover): Ditto.
9007 * remote.c (remote_open_1, remote_start_remote): Ditto.
9008 * infrun.c (normal_stop, hook_stop_stub, restore_selected_frame):
9011 * stack.c (backtrace_command): Cast first arg of make_cleanup to
9013 * remote.c (remote_kill): Cast putpkt arg to catch_errors_ftype.
9015 Mon Jan 18 08:47:02 1999 Andrew Cagney <cagney@b1.cygnus.com>
9017 * defs.h (catch_errors_ftype): Define.
9018 (catch_errors): Replace char* arg with PTR arg.
9019 * top.c (catch_errors): Update
9021 * breakpoint.c (bpstat_stop_status, bpstat_stop_status,
9022 delete_breakpoint, breakpoint_re_set): Delete all casts in call to
9024 (breakpoint_cond_eval, watchpoint_check,
9025 cover_target_enable_exception_callback, breakpoint_re_set_one):
9026 Arg is PTR not char*.
9028 * breakpoint.c (cover_target_enable_exception_callback): Change
9029 type to int. Check for cast values of 0 and -1. Return a result!
9030 (insert_breakpoints): Move declaration of SAL and ARGS to where
9033 1999-01-16 Fernando Nasser <fnasser@totem.to.cygnus.com>
9035 * remote.c (remote_query): new function - creates proper interface
9036 to the remote protocol "q" command.
9038 Fri Jan 15 17:11:48 EST 1999 Zdenek Radouch (radouch@cygnus.com)
9040 * config/fr30/tm-fr30.h: Changed ABI to match GCC change
9041 (always use pointer for structs passed by value).
9043 1999-01-15 Fernando Nasser <fnasser@totem.to.cygnus.com>
9045 * target.h: added entry for target queries (to_query)
9048 Thu Jan 14 18:29:17 1999 David Taylor <taylor@texas.cygnus.com>
9050 * mips-tdep.c (mips_gdbarch_init): fix stream arg in
9051 fprintf_unfiltered calls.
9052 * remote-mm.c (mm_wait): fix stream arg to gdb_flush.
9053 * remote-udi.c (udi_wait): fix stream arg to fwrite.
9054 * symmisc.c (maintenance_check_symtabs): fix stream argument to
9055 print_address_numeric.
9057 Wed Jan 13 19:33:16 1999 David Taylor <taylor@texas.cygnus.com>
9059 * breakpoint.c (insert_breakpoints): insert cast to eliminate
9062 Wed Jan 13 14:59:02 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
9064 * infrun.c (set/show scheduler-locking) New command. Set a
9065 mode bit that will control how GDB attempts to control thread
9066 scheduling for step, continue, etc. (resume): make use of
9067 the schedule-locking mode.
9068 * target.h (struct target_ops): new field to_has_thread_control.
9069 * sol-thread.c: initialize target_ops to_has_thread_control.
9074 * hpux-thread.c: ditto.
9075 * thread.c: cull duplicate prototypes. Move prototypes to top.
9076 * serial.c: indentation cleanup.
9077 * breakpoint.c: add casts to eliminate compiler warnings.
9079 Tue Jan 12 17:00:00 1999 Edith Epstein <eepstein@sophia.cygnus.com>
9081 * inftarg.c (child_create_inferior): fixed HPUXHPPA specific
9082 call to fork_inferior. The shell param is now NULL.
9084 1999-01-12 Jason Molenda (jsm@bugshack.cygnus.com)
9086 * monitor.c (init_base_monitor_ops): Whitespace cleanup.
9087 (_initialize_remote_monitors): Same.
9089 1999-01-12 Jason Molenda (jsm@bugshack.cygnus.com)
9091 * monitor.c (init_monitor_ops): Initialize the monitor_ops
9092 structure if it hasn't already been done.
9094 Tue Jan 12 14:50:10 1999 Stan Shebs <shebs@andros.cygnus.com>
9096 * inftarg.c (child_ops): Don't initialize statically.
9097 (init_child_ops): New function, fills in child_ops.
9098 (_initialize_inftarg): Use it.
9099 (child_post_attach): Declare extern.
9100 (child_wait): Fix ambiguous parens.
9101 (child_attach_to_process): Remove unused local wstatus.
9102 (child_insert_fork_catchpoint, child_remove_fork_catchpoint,
9103 child_insert_vfork_catchpoint, child_remove_vfork_catchpoint,
9104 child_has_forked, child_insert_exec_catchpoint,
9105 child_remove_exec_catchpoint): Return a value.
9107 Mon Jan 11 16:43:44 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
9109 * remote.c (remote_wait): Add inferior_pid to thread list only
9110 if it is not already there.
9112 1999-01-11 Jason Molenda (jsm@bugshack.cygnus.com)
9114 * scm-tags.h: Update FSF's address on copyright notice.
9115 * ser-e7kpc.c: Same.
9118 Mon Jan 11 13:45:57 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
9120 * dwarf2read.c (dump_die): Change stderr to gdb_stderr.
9121 * expprint.c (print_subexp): fprintf => fprintf_unfiltered.
9122 * jv-typeprint.c (java_type_print_base): fputs => fputs_filtered.
9123 * stack.c (struct function_bounds): Remove superfluous `typedef'.
9124 * symfile.c (list_overlays_command): stdout => gdb_stdout.
9125 * symmisc.c (maintenance_check_symtabs): stdout => gdb_stdout.
9126 * utils.c (print_spaces): Make more efficient.
9128 Mon Jan 11 13:55:51 1999 David Taylor <taylor@texas.cygnus.com>
9130 * utils (print_spaces): fix arg to strcat; fix formatting.
9132 Fri Jan 8 11:57:24 1999 Stan Shebs <shebs@andros.cygnus.com>
9134 * exec.c (exec_ops): Don't initialize statically.
9135 (init_exec_ops): New function, fills in exec_ops.
9136 (_initialize_exec): Use it.
9138 Thu Jan 7 17:50:15 EST 1999 Zdenek Radouch (radouch@cygnus.com)
9142 * config/fr30/tm-fr30.h
9144 Wed Jan 6 12:28:35 1999 David Taylor <taylor@texas.cygnus.com>
9146 * configure.in: Add an --enable-tui argument. Construct
9147 tui/Makefile from tui/Makefile.in. Use AM_PROG_CC_STDC. If we
9148 have the GUI, then we need this to process libgui.h.
9149 (ENABLE_CFLAGS): define and export BUILD_TUI.
9150 (AC_CHECK_HEADERS): Add check for term.h.
9152 * configure.host (hppa-*-hpux10.20, hppa-*-hpux11.0*): New configs.
9154 * config.in, configure : regenerated.
9156 * Makefile.in: Allow the TUI code to be conditionally enabled.
9157 (TUI_LIBRARY): New variable, value are set by the configuration
9158 script. Set to the empty string when the TUI isn't enabled.
9159 (gdb$(GDBEXT)): Use those, instead of referring to all-tui and
9160 tui/libtui.a directly.
9161 (BUILD_TUI): build the tui -- only when configured with
9163 (YLWRAP): use ylwrap to avoid problems on systems w/o bison.
9164 (gdb$(EXEEXT)): make it dependent on BUILD_TUI.
9165 (all-tui): remove dependency from phony target.
9166 (c-exp.tab.c): use ylwrap instead of bison.
9167 (jv-exp.tab.c): ditto.
9168 (f-exp.tab.c): ditto.
9169 (m2-exp.tab.c): ditto.
9170 (ALLDEPFILES): add somread.c, hp-psymtab-read.c, hp-symtab-read.c.
9171 (SFILES): remove the above files
9172 (COMMON_OBS): remove somread.o
9173 (SFILES): Add the tui files to this, so they get included in etags
9175 (gdb$(EXEEXT)): Add all-tui to the list of dependencies, and add
9176 tui/libtui.a to the link list.
9177 (all-tui): New rule, which does a recursive make in the tui
9179 (tui/libtui.a): When recursing, pass down ${FLAGS_TO_PASS}. And
9180 don't echo the make command. This is closer to what the other
9182 (HFILES_NO_SRCDIR): add hpread.h
9183 (COMMON_OBS): add hp-psymtab-read.o, hp-symtab-read.o
9184 (SFILES): add hp-psymtab-read.c, hp-symtab-read.c add rules for
9185 the new files. Remove hpread.c, hpread.o
9186 (gdb$(EXEEXT)): Depend on the actual tui library, not on a
9187 fictitious target. Since the fictitious target never existed,
9188 make would always relink.
9189 (tui/libtui.a): Always recurse to make sure the library is up to
9192 Wed Jan 6 12:05:12 1999 Stan Shebs <shebs@andros.cygnus.com>
9194 * remote.c: Pacify --enable-build-warnings, reformat code
9195 to conform to standards, fix spelling errors.
9196 (ishex, stubhex, record_currthread, etc): Declare.
9197 (ishex, stubhex): Declare char arg as int.
9198 (pack_string): Comment out, never used but possibly useful.
9199 (threadref_to_int, remote_get_threadinfo, etc): Make static.
9201 Wed Jan 6 11:43:32 1999 David Taylor <taylor@texas.cygnus.com>
9203 The following changes were made by Elena Zannoni
9204 <ezannoni@cygnus.com> and Edith Epstein <eepstein@cygnus.com> as
9205 part of a project to merge in changes made by HP.
9207 * c-exp.y: use external flag hp_som_som_object_present to decide
9208 whether code was compiled by HP's compilers. Add two new C++
9209 tokens for true and false.
9210 (yylex): check for template name is done differently for the
9211 HP/aCC compiler case. Change some of the template processing code
9212 for handling HP aCC templates. Handle true and false tokens.
9214 Tue Jan 5 11:13:36 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
9216 * remote.c (record_curthread): Must not modify inferior_pid when
9217 called from wait_for_inferior. Instead, if a new thread-id is
9218 detected, call add_thread.
9219 (MAGIC_NULL_PID): new macro, use instead of the magic number
9221 (remote_find_new_threads): if inferior_pid is unknown, get and use
9222 the current thread id.
9223 (remote_start_remote): on connecting, attempt to get the current
9224 thread id for inferior_pid.
9225 (remote_resume): If pid == -1, then resume any-thread (not the
9226 current thread specifically). Also some cosmetic fixups.
9228 * thread.c (info_threads_command): don't initialize current_pid
9229 until after call to FIND_NEW_THREADS (which may change inferior_pid).
9230 Also some cosmetic fixups.
9231 * infrun.c: cosmetic fixups and casts to avoid warnings.
9232 * infcmd.c: cosmetic fixups, mainly long lines.
9234 Tue Jan 5 11:55:57 1999 David Taylor <taylor@texas.cygnus.com>
9236 * target.c (noprocess): terminate sentence with a period.
9237 * breakpoint.c (catch_command_1): ditto.
9239 * c-valprint.c (c_value_print): remove hack^2 from HP; it causes
9240 testsuite losses with no real gain.
9242 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): restore, but only
9243 if tm-*.h hasn't overridden default value.
9245 1999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
9247 * configure.in: Fix whitespace indentation for --help.
9248 * configure: Regenerated.
9250 1999-01-04 Manuel Bouyer <bouyer@antioche.lip6.fr>
9252 * main.c: Add --write command line option, document -w.
9253 * gdb.1: Document --write.
9255 1999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
9257 * configure.in: Require autoconf 2.12.1 or higher.
9258 * doc/configure.in: Ditto.
9259 * nlm/configure.in: Ditto.
9260 * rdi-share/configure.in: Ditto.
9261 * testsuite/configure.in: Ditto.
9262 * doc/Makefile.in: Don't hardcode $(SHELL).
9263 * nlm/Makefile.in: Ditto.
9264 * rdi-share/Makefile.in: Ditto.
9265 * testsuite/Makefile.in: Ditto.
9267 Mon Jan 4 12:53:03 1999 Stan Shebs <shebs@andros.cygnus.com>
9269 * remote-vx.c (init_vx_ops, init_vx_run_ops): Remove unneeded
9270 inits of new fields, including ref to bogus field.
9271 (vx_ops, vx_run_ops): Make static.
9273 Mon Jan 4 15:05:29 1999 David Taylor <taylor@texas.cygnus.com>
9275 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): delete,
9276 already defined in tm.h.
9278 * inftarg.c: change <sys/unistd.h> to <unistd.h> and
9279 conditionalize its inclusion.
9280 * infttrace.c: ditto.
9282 For older changes see ChangeLog-1998
9288 version-control: never