]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Zap some older PPC targets.
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
7bc65f05
AC
12001-12-01 Andrew Cagney <ac131313@redhat.com>
2
7768dd6c
AC
3 * NEWS: Note that powerpc-*-netware*, powerpcle-*-cygwin* and
4 powerpcle-*-solaris* were deleted.
5 * configure.host: Delete powerpcle-*-cygwin* and
6 powerpcle-*-solaris* hosts.
7 * configure.tgt: Delete powerpc-*-netware*, powerpcle-*-cygwin*
8 and powerpcle-*-solaris* targets.
9 * config/powerpc/cygwin.mh: Delete file.
10 * config/powerpc/cygwin.mt: Delete file.
11 * config/powerpc/nm-solaris.h: Delete.file.
12 * config/powerpc/ppc-nw.mt: Delete file.
13 * config/powerpc/solaris.mh: Delete file.
14 * config/powerpc/solaris.mt: Delete file.
15 * config/powerpc/tm-cygwin.h: Delete file.
16 * config/powerpc/tm-ppc-nw.h: Delete file.
17 * config/powerpc/tm-solaris.h: Delete file.
18 * config/powerpc/xm-cygwin.h: Delete file.
19 * config/powerpc/xm-mpw.h: Delete file.
20 * config/powerpc/xm-solaris.h: Delete file.
21
7bc65f05
AC
22 * NEWS, MAINTAINERS: Note that w65-*-* was deleted.
23 * configure.tgt: Delete w65-*-*.
24 * Makefile.in (w65-tdep.o): Delete.
25 * config/w65/tm-w65.h: Delete file.
26 * config/w65/w65.mt: Delete file.
27 * w65-tdep.c: Delete file.
28
e2caac18
AC
29 * NEWS: Mention deleted tic80-*-*.
30 * configure.tgt: Delete tic80-*-*.
31 * Makefile.in (tic80-tdep.o): Delete.
32 * config/tic80/tic80.mt: Delete.
33 * config/tic80/tm-tic80.h: Delete.
34 * tic80-tdep.c: Delete.
35 * MAINTAINERS: Note that tic80 was deleted.
36
6ded7999
KB
372001-11-30 Kevin Buettner <kevinb@redhat.com>
38
39 * ppc-linux-tdep.c (solib-svr4.h): Include.
40 (ppc_linux_svr4_fetch_link_map_offsets): New function.
41 * ppc-tdep.h (ppc_linux_svr4_fetch_link_map_offsets): Declare.
42 * rs6000-tdep.c (solib-svr4.h): Include.
43 (rs6000_gdbarch_init): Set up ppc_linux_svr4_fetch_link_map_offsets()
44 as the link map offsets fetcher.
45
46 * config/powerpc/aix.mt (TDEPFILES): Add solib-svr4.o.
47 * config/powerpc/macos.mt (TDEPFILES): Likewise.
48 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
49 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
50 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
51 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
52 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
53 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
54 * config/rs6000/aix4.mt (TDEPFILES): Likewise.
55 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
56 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
57
a42dd537
KB
582001-11-30 Kevin Buettner <kevinb@redhat.com>
59
60 From Louis Hamilton <hamilton@redhat.com>:
61 * arm-tdep.c (solib-svr4.h): Include.
62 (arm_linux_svr4_fetch_link_map_offsets): New function.
63 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Define.
64 (arm_linux_svr4_fetch_link_map_offsets): Declare.
65
21cfb3b6
DJ
662001-11-30 Daniel Jacobowitz <drow@mvista.com>
67
68 * values.c (value_primitive_field): Add embedded_offset to the
69 address of structure members.
70 * gnu-v3-abi.c (gnuv3_rtti_type): Cast to base type before
71 attempting to access vtable pointer. Set using_enc_p if we cast.
72 (gnuv3_virtual_fn_field): Call value_cast with structure rather than
73 structure pointer. Cast to base type before attempting to access
74 vtable pointer.
75
16333c4f
EZ
762001-11-29 Elena Zannoni <ezannoni@redhat.com>
77
78 * Makefile.in (ppc-linux-nat.o): Add dependency on ppc-tdep.h.
79
80 * ppc-tdep.h (PPC_GPLAST_REGNUM): Define.
81
82 * ppc-linux-nat.c: Include ppc-tdep.h.
83 (ppc_register_u_addr): Don't use the static array regmap[],
84 dynamically define the mapping instead.
85 (supply_gregset): Ditto.
86 (fill_gregset): Ditto.
87 (COPY_REG): Delete macro defintion.
88 (regmap): Delete array.
89
aead120c
JB
902001-11-29 Jim Blandy <jimb@redhat.com>
91
c8f9d51c
JB
92 Tighten up GDB's support for returning structs by value.
93 * s390-tdep.c (s390_use_struct_convention): New function.
94 (s390_gdbarch_init): Register it as the S/390's
95 USE_STRUCT_CONVENTION method. Register
96 generic_cannot_extract_struct_value_address as our
97 EXTRACT_STRUCT_VALUE_ADDRESS method.
98 * arch-utils.c (generic_cannot_extract_struct_value_address): New
99 function.
100 * arch-utils.h: Add corresponding prototype.
101
aead120c
JB
102 * values.c (value_being_returned): Make error message a proper
103 sentence.
104
a8329558 1052001-11-27 Keith Walker <keith.walker@arm.com>
aead120c 106
a8329558
KW
107 * dwarf2read.c (read_attribute_value): New function to handle
108 DW_FORM_indirect
109 (read_attribute): uses read_attribute_value
110
d0ad30c9
JB
1112001-11-29 Jim Blandy <jimb@redhat.com>
112
113 * s390-tdep.c (s390_frame_saved_pc_nofix): If the prologue didn't
114 save the return address register, assume that the return address
115 is still in there.
116
54c92070
AC
1172001-11-27 Andrew Cagney <ac131313@redhat.com>
118
119 * MAINTAINERS: Clarify obvious fix a little (as suggested by Eli
120 Zaretskii).
121
62f81eda
JB
1222001-11-25 Jim Blandy <jimb@redhat.com>
123
124 * mn10300-tdep.c (mn10300_analyze_prologue): Doc fixes.
125
4ed90530
JB
1262001-11-27 Jim Blandy <jimb@redhat.com>
127
5c3cf190
JB
128 * s390-tdep.c: Get frame chains and saved pc values properly from
129 dummy frames.
130 (s390_frame_saved_pc_nofix): if `*fi' is a dummy frame, get the
131 saved PC from the dummy frame's registers.
132 (s390_frame_chain): Same for the saved SP.
133 (s390_gdbarch_init): Register `generic_save_dummy_frame_tos' as
134 the `SAVE_DUMMY_FRAME_TOS' method, so the dummy frame's `top' gets
135 set correctly.
136
31c4d430
JB
137 * s390-tdep.c (s390_frame_chain): Remember that the SP's element
138 of the frame's saved_regs array is special.
139
4ed90530
JB
140 * s390-tdep.c (register_names): Call the general-purpose registers
141 `r0' -- `r15', and the floating-point registers `f0' -- `f15', to
142 match the assembly language.
143
97da3b20
CF
1442001-11-26 Pierre Muller <muller@ics.u-strasbg.fr>
145
146 * config/i386/tm-cygwin.h: Define HAVE_SSE_REGS if
147 HAVE_CONTEXT_EXTENDED_REGISTERS is defined.
148 * win32-nat.c: Define CONTEXT_DEBUGGER_DR that will also include
149 extended registers if HAVE_SSE_REGS is defined.
150 (mappings array): Add offset of extended registers.
151 (thread_rec): Use new CONTEXT_DEBUGGER_DR macro.
152
467d8519
TT
1532001-11-26 Tom Tromey <tromey@redhat.com>
154
155 * NEWS: Updated.
156 * event-loop.c (start_event_loop): Call
157 after_char_processing_hook.
158 * event-top.h (after_char_processing_hook): Declare.
159 * event-top.c (rl_callback_read_char_wrapper): Call
160 after_char_processing_hook.
161 (after_char_processing_hook): New global.
162 * top.c (operate_saved_history): New global.
163 (gdb_rl_operate_and_get_next): New function.
164 (init_main): Add the operate-and-get-next defun.
165 (gdb_rl_operate_and_get_next_completion): New function.
166
c2a727fa
TT
1672001-11-26 Tom Tromey <tromey@redhat.com>
168
169 * NEWS: Update for --args.
170 * infcmd.c (construct_inferior_arguments): Moved from ...
171 * fork-child.c: ... here.
172
b77b1eb7
JB
1732001-11-26 Jim Blandy <jimb@redhat.com>
174
175 * symtab.c (find_pc_sect_line): Revert change of 2001-11-13; add
176 comment explaining that hand-written assembly code can have line
177 number info but no debug info for an enclosing function.
178
7d69eeec
JJ
1792001-11-26 Jakub Jelinek <jakub@redhat.com>
180
181 * sparc-nat.c (fetch_inferior_registers): Don't rely
182 on CORE_ADDR being 32-bit.
183 (store_inferior_registers): Likewise.
184
1f5dc670
EZ
1852001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
186
c64a2835
EZ
187 * config/djgpp/config.sed: Fix an error in etc/ at "make install"
188 time on non-LFN systems where standards*.inf* expands to nothing.
189
1f5dc670
EZ
190 * go32-nat.c (save_npx): Avoid a warning from GCC 3.x.
191
d3ff4a77
CF
1922001-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
193 Christopher Faylor <cgf@redhat.com>
194
195 * win32-nat.c (struct so_stuff): Add objfile *objfile field needed to
196 be able to remove the DLL when unloaded. Remove unused last field.
197 (handle_unload_dll): New function to handle unloading of DLL.
198 (solib_symbols_add): Change return type to struct objfile *.
199 (get_child_debug_event): Call handle_unload_dll function.
200
2a3d5645
CF
2012001-11-24 Christopher Faylor <cgf@redhat.com>
202
203 * win32-nat.c (_initialize_check_for_gdb_ini): New function.
204 * config/i386/xm-cygwin.h: Remove obsolete handling of __CYGWIN32__.
205 (GDBINIT_FILENAME): Remove.
206
eb7cedd9
MK
2072001-11-23 Mark Kettenis <kettenis@gnu.org>
208
209 Add x86 OpenBSD native configuration.
210 * config/i386/obsd.mt, config/i386/tm-obsd.h, config/i386/obsd.mh,
211 config/i386/nm-obsd.h: New files.
212 * configure.host (i[3456]86-*-openbsd*): New host.
213 * configure.tgt (i[3456]86-*-openbsd*): New target.
214 * NEWS: Update.
215
172d914f
AC
2162001-11-21 GDB Administrator <gdbadmin@sourceware.cygnus.com>
217
218 * GDB 5.1 was released.
219
552c04a7
TT
2202001-11-21 Tom Tromey <tromey@redhat.com>
221
222 Fix for PR gdb/209, PR gdb/156:
223 * gdbarch.c, gdbarch.h: Rebuilt.
224 * gdbarch.sh: Added `construct_inferior_arguments'.
225 * cli/cli-decode.h (cmd_list_element): Added pre_show_hook.
226 Typo fix.
227 * cli/cli-setshow.c (do_setshow_command): Call the pre_show_hook.
228 * infcmd.c (_initialize_infcmd): Set sfunc on `set args' command.
229 (inferior_argc, inferior_argv): New globals.
230 (notice_args_set): New function.
231 (set_inferior_args): Clear inferior_argc and inferior_argv.
232 (set_inferior_args_vector): New function.
233 (get_inferior_args): Handle inferior argument vector.
234 (run_command): Use get_inferior_args().
235 (notice_args_read): New function.
236 (_initialize_infcmd): Don't call set_inferior_args.
237 * command.h: Typo fix.
238 (cmd_list_element): Added pre_show_hook.
239 * main.c (captured_main): Added --args option.
240 (print_gdb_help): Document --args.
241 * inferior.h (construct_inferior_arguments): Declare.
242 (set_inferior_args_vector): Likewise.
243 * fork-child.c (construct_inferior_arguments): New function.
244
da9c7185
KB
2452001-11-21 Kevin Buettner <kevinb@redhat.com>
246
247 * lin-lwp.c (lin_lwp_attach_lwp): Make sure SIGCHLD is in set of
248 blocked signals.
249
250 * lin-lwp.c (lin_lwp_attach_lwp): Mark main thread as stopped.
251
98eedd63
JB
2522001-11-20 Jim Blandy <jimb@redhat.com>
253
254 * target.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT): Delete
255 default definition; this is never used.
256
5bbc1a8e
KS
2572001-11-20 Keith Seitz <keiths@redhat.com>
258
259 * varobj.c (c_value_of_child): Release memory for "name" when
260 finshed using it.
261 (c_type_of_child): Likewise.
262 (cplus_value_of_child): Isolate the use of name_of_child to
263 one case that needs it.
264 Release memory for "name" when finished using it.
265
1ad24239
KS
2662001-11-20 Keith Seitz <keiths@redhat.com>
267
268 * top.c (gdb_init): Call init_ui_hook before initializing
269 the default UI.
270
4cb0dbef
EZ
2712001-11-19 Elena Zannoni <ezannoni@redhat.com>
272
273 * config/powerpc/nm-linux.h (ppc_register_u_addr): Add extern
274 declaration.
275
f00d3753
EZ
2762001-11-19 Elena Zannoni <ezannoni@redhat.com>
277
278 * ppc-linux-nat.c (COPY_REG): Use regcache_collect instead of
279 accessing registers[].
280 (fill_fpregset): Ditto.
281
8b6f1f3a
EZ
2822001-11-19 Elena Zannoni <ezannoni@redhat.com>
283
284 * infptrace.c (fetch_register): Dynamically allocate buffer for
285 register.
286 (store_register): Use regcache_collect, instead of accessing the
287 register buffer directly.
288
479412cd
DJ
2892001-11-19 Daniel Jacobowitz <drow@mvista.com>
290
291 * mips-tdep.c (find_proc_desc): Add cur_frame argument. Pass
292 cur_frame to heuristic_proc_desc.
293 (heuristic_proc_desc): Add cur_frame argument. Do not read SP
294 if cur_frame == 0.
295 (after_prologue): Pass cur_frame == 0 to find_proc_desc.
296 (mips_frame_chain): Pass cur_frame == 1 to find_proc_desc.
297 (mips_init_extra_frame_info): Likewise.
298
ab290c52
AC
2992001-11-19 Andrew Cagney <ac131313@redhat.com>
300
301 * defs.h (return_to_top_level): Comment.
302
22e04375
AC
303Mon Nov 19 14:58:52 2001 Andrew Cagney <cagney@redhat.com>
304
305 * remote.c (remote_open_1, remote_async_open_1): Use ISO C string
306 concatenation for error parameter.
307 (remote_cisco_open): Ditto.
308
30c6b1fb
KS
3092001-11-19 Keith Seitz <keiths@redhat.com>
310
311 * varobj.c (c_value_of_child): Use the wrapper function,
312 gdb_value_struct_elt.
313 (cplus_value_of_child): Likewise.
314
bd1ef5d2
AC
3152001-11-18 Andrew Cagney <ac131313@redhat.com>
316
317 * i386-tdep.c (i386_gdbarch_init): Initialize num_regs.
318 * config/i386/tm-i386.h (NUM_REGS): Delete.
319
76fb44f4
KB
3202001-11-18 Kevin Buettner <kevinb@redhat.com>
321
322 * i386-linux-nat.c (fill_gregset): Fix botched regcache_collect()
323 conversion for I386_LINUX_ORIG_EAX_REGNUM.
324
ed909a0d
AC
3252001-11-18 Andrew Cagney <ac131313@redhat.com>
326
327 * config/i386/embed.mt (TM_FILE): Set to tm-i386.h.
328 * config/i386/tm-embed.h: Delete.
329
4edb848c
AC
3302001-11-17 Andrew Cagney <ac131313@redhat.com>
331
332 * Makefile.in (distclean): Explicitly delete Makefile et.al. in
333 gdbserver sub directory.
334
f87ece4d
AC
3352001-11-17 Andrew Cagney <ac131313@redhat.com>
336
337 * README: Mention need for alloca(). Mention problems with
338 alpha-dec-osf4.0e. Clarify that comments refer to GDB 5.1.
339
8a406745
KB
3402001-11-17 Kevin Buettner <kevinb@redhat.com>
341
342 * i386-linux-nat.c (fill_gregset): Use regcache_collect() instead
343 of accessing registers[] directly.
344
7dd945fa
KB
3452001-11-17 Kevin Buettner <kevinb@redhat.com>
346
347 * i386-linux-nat.c (fill_gregset): Don't invoke read_register_gen()
348 when fetching ORIG_EAX.
349
c2152441
DJ
3502001-11-17 Daniel Jacobowitz <drow@mvista.com>
351
352 * arm-linux-nat.c: Don't include <asm/ptrace.h>.
353 (fetch_register): Use elf_gregset_t instead of struct pt_regs.
354 (fetch_regs): Likewise.
355 (store_register): Likewise.
356 (store_regs): Likewise.
357
b0677c2e
DJ
3582001-11-17 Daniel Jacobowitz <drow@mvista.com>
359
360 * sparc-linux-nat.c (fill_gregset): Replace read_register_gen
361 with regcache_collect.
362 (fill_fpregset): Likewise.
363
d2b57b94
DJ
3642001-11-17 Daniel Jacobowitz <drow@mvista.com>
365
366 * Makefile.in: Add mips-linux-nat.c, mips-linux-tdep.c,
367 and sparc-linux-nat.c to ALLDEPFILES. Add dependencies.
368 * config/sparc/linux.mh: Add sparc-linux-nat.o to NATDEPFILES.
369 * sparc-linux-nat.c: New file, from Mark Kettenis.
370
4bdf3d34
JJ
3712001-11-16 Jakub Jelinek <jakub@redhat.com>
372
373 * dwarf2read.c (dwarf_str_buffer): New.
374 (struct dwarf2_pinfo): Add dwarf_str_buffer and dwarf_str_size.
375 (DWARF_STR_BUFFER, DWARF_STR_SIZE): Define.
376 (dwarf2_has_info): Clear dwarf_str_offset.
377 (dwarf2_build_psymtabs): Read .debug_str section if present.
378 (dwarf2_build_psymtabs_hard): Save DWARF_STR_BUFFER and
379 DWARF_STR_SIZE.
380 (psymtab_to_symtab_1): Restore DWARF_STR_BUFFER and DWARF_STR_SIZE.
381 (read_attribute): Handle DW_FORM_strp.
382 (read_n_bytes, read_string): Remove HOST_CHAR_BIT != 8
383 handling code.
384 (read_indirect_string): New.
385 (dump_die): Handle DW_FORM_strp.
386
20a940cc
JB
3872001-11-16 Jim Blandy <jimb@redhat.com>
388
389 * s390-tdep.c: Tweak argument-passing to match GCC bugs.
390 (is_float_singleton, is_struct_like, is_float_like): New
391 functions, that isolate the weirdness.
392 (is_double_or_float, is_simple_arg, pass_by_copy_ref,
393 is_double_arg): Use is_struct_like and is_float_like, rather than
394 testing the type codes ourselves.
395 (s390_push_arguments): When passing args on the stack, align each
396 on to a four-byte boundary, regardless of what the type itself
397 needs.
398
e5d63811
BH
3992001-11-16 Ben Harris <bjh21@netbsd.org>
400
401 * Makefile.in (os9kread.o): Replace $< with autoconf-approved
402 $(srcdir)/....
403 (procfs.o): Ditto.
404 (z8k-tdep.o): Ditto.
405
1005d5ef
BH
4062001-11-16 Ben Harris <bjh21@netbsd.org>
407
408 * MAINTAINERS (write-after-approval): Add self.
409
a1677dfb
JB
4102001-11-15 Jim Blandy <jimb@redhat.com>
411
412 * s390-tdep.c (is_simple_arg): Structs and unions exactly eight
413 bytes long should be handled as DOUBLE_ARGs; don't recognize them
414 as SIMPLE_ARGs.
415
ad10f812
AC
4162001-11-12 Andrew Cagney <ac131313@redhat.com>
417
418 * remote.c (struct packet_reg): Declare.
419 (struct remote_state): Add fields sizeof_g_packet and g_packet.
420 (init_remote_state): Initialize sizeof_g_packet and g_packet.
421 (free_remote_state): Free g_packet.
422 (packet_reg_from_pnum, packet_reg_by_regnum): New functions.
423 (remote_wait): Use above instead of gdbarch methods
424 REGISTER_RAW_SIZE and REGISTER_BYTES.
425 (remote_async_wait): Ditto.
426 (remote_fetch_registers, remote_store_registers): Ditto.
427 (store_register_using_P): Ditto.
428
9525aa90
AC
4292001-11-15 Andrew Cagney <ac131313@redhat.com>
430
431 * remote.c (_initialize_remote): Don't multi-arch swap tty_input.
432 Second attempt.
433
faf833ca
AC
4342001-11-15 Andrew Cagney <ac131313@redhat.com>
435
436 * utils.c (phex_nz): For default case, set str to phex_nz return
437 value.
45a1e866 438 (phex): Ditto.
faf833ca 439
193cb69f
AC
4402001-11-15 Andrew Cagney <ac131313@redhat.com>
441
442 * TODO (register_buffer): Delete.
443 * regcache.c (register_buffer): Make static.
444 (regcache_collect): New function.
445 * regcache.h (register_buffer): Delete declaration.
446 (regcache_collect): Declare.
447 * remote.c (store_register_using_P): Rewrite using
448 regcache_collect.
449 (remote_store_registers): Ditto.
450 * go32-nat.c (store_register): Ditto.
451
d01949b6
AC
4522001-11-14 Andrew Cagney <ac131313@redhat.com>
453
454 * remote.c (struct remote_state): Declare.
455 (get_remote_state): New function.
456 (init_remote_state): New function.
457 (remote_gdbarch_data_handle): New global.
458 (build_remote_packet_sizes): Delete function, moved to
459 init_remote_state.
460 (register_remote_packet_sizes): Delete function.
461 (actual_register_packet_size, remote_packet_size): Moved to
462 ``struct remote_state''.
463 (PBUFSIZE): Delete. Replaced by rs->remote_packet_size.
464 (free_remote_state): New function.
465 (get_memory_packet_size, get_memory_read_packet_size)
466 (set_thread, remote_unpack_thread_info_response)
467 (remote_get_threadinfo, parse_threadlist_response)
468 (remote_get_threadlist, remote_current_thread)
469 (remote_threads_info, remote_threads_extra_info)
470 (extended_remote_restart, get_offsets)
471 (get_offsets, remote_check_symbols, remote_open_1)
472 (remote_async_open_1, remote_detach, remote_async_detach)
473 (remote_resume, remote_async_resume, remote_wait)
474 (remote_async_wait, remote_fetch_registers)
475 (store_register_using_P, remote_store_registers)
476 (check_binary_download, putpkt_binary)
477 (remote_insert_breakpoint, remote_remove_breakpoint)
478 (remote_insert_watchpoint, remote_remove_watchpoint)
479 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
480 (compare_sections_command, remote_query)
481 (remote_rcmd, remote_rcmd, packet_command)
482 (remote_info_process): Update.
483
1ff9c3d6
AC
4842001-11-14 Andrew Cagney <ac131313@redhat.com>
485
486 * remote.c: Include "gdb_assert.h".
487 (tty_input): Wire buffer to 400 bytes.
488 (readsocket): Check tty_input doesn't overflow.
489 (build_remote_gdbarch_data, _initialize_remote): Don't multi-arch
490 tty_input.
491
86884b37
MS
4922001-11-14 Michael Snyder <msnyder@redhat.com>
493
494 * d10v-tdep.c (d10v_pointer_to_address): Use new type flag
495 TYPE_FLAG_CODE_SPACE to recognize a pointer that has been cast
496 into the instruction address space.
497 * Makefile.in (doublest.o): Add dependency on gdbtypes.h.
498
47663de5
MS
4992001-11-14 Michael Snyder <msnyder@redhat.com>
500 Add address space identifiers to expression language for types.
501 * c-exp.y (space_identifier, cv_with_space_id,
502 const_or_volatile_or_space_identifier_noopt,
503 const_or_volatile_or_space_identifier): New terminals.
504 (ptype): Accept const_or_volatile_or_space_identifier.
505 (typebase): Accept const_or_volatile_or_space_identifier.
506 * c-typeprint.c (c_type_print_cv_qualifier): Rename to
507 c_type_print_modifier. Handle address space modified types.
508 * gdbtypes.h (TYPE_FLAG_CODE_SPACE, TYPE_FLAG_DATA_SPACE):
509 New type flags.
510 (struct type): Add new field as_type for addr-space qualified types.
511 (TYPE_AS_TYPE): New macro, retrieves the chain of types that are
512 identical to this one except for address-space qualification.
513 * gdbtypes.c (alloc_type): Initialize new field 'as_type'.
514 (address_space_name_to_int): New function.
515 (address_space_int_to_name): New function.
516 (make_type_with_address_space): New function.
517 (make_cv_type): Handle as_type field of new struct type object.
518 * parse.c (check_type_stack_depth): New function.
519 (push_type_address_space): New function.
520 (follow_types): Handle types with address-space qualifier.
521 * parser-defs.h (enum type_pieces): Add enum tp_space_identifier.
522
0d43edd1
JB
5232001-11-14 Jim Blandy <jimb@redhat.com>
524
9a1befc9
JB
525 * s390-tdep.c (s390_pop_frame_regular): On the S/390, the frame
526 pointer and the SP are often the same, so we can't pop the frame
527 by setting the SP to the FP; we need to get the old SP from
528 saved_regs.
529
f2c6cfba
JB
530 * s390-tdep.c (s390_extract_return_value): Returned `float' values
531 can simply be copied bitwise from the registers into the value
532 object's buffer.
533
09025237
JB
534 * s390-tdep.c (s390_get_frame_info): Initialize SP's element of
535 the frame's saved_regs array correctly.
536
0d43edd1
JB
537 * symfile.c (simple_read_overlay_table): Make sure we can find
538 both `_novlys' and `_ovly_table' before we try anything else;
539 print a helpful error message.
540 (simple_overlay_update): No need to print error message here.
541
befc81ac
MS
5422001-11-14 Michael Snyder <msnyder@redhat.com>
543
544 * Makefile.in (doublest.o): Add dependency on gdbtypes.h.
545
032758dc
AC
5462001-11-10 Andrew Cagney <ac131313@redhat.com>
547
548 * arm-tdep.c (arm_register_type): New function.
549 (arm_register_convertible): Delete.
550 (arm_register_convert_to_virtual): Delete.
551 (arm_register_convert_to_raw): Delete.
552 * config/arm/tm-arm.h (REGISTER_CONVERTIBLE): Delete.
553 (REGISTER_CONVERT_TO_VIRTUAL): Delete.
554 (REGISTER_CONVERT_TO_RAW): Delete.
555 (REGISTER_VIRTUAL_TYPE): Redefine as call to arm_register_type.
556 (arm_register_type): Declare.
557
8b982acf
EZ
5582001-11-13 Elena Zannoni <ezannoni@redhat.com>
559
560 From Andrew Cagney <cagney@redhat.com>:
561 * gdbtypes.h (builtin_type_int128, builtin_type_uint128): Declare.
562 * gdbtypes.c (_initialize_gdbtypes, build_gdbtypes): Initialize
563 new builtin types.
564
648f4f79
JB
5652001-11-13 Jim Blandy <jimb@redhat.com>
566
78f8b424
JB
567 * s390-tdep.c: Rewrite inferior function call code. This may
568 break zSeries support; that should be fixed soon.
569 #include "gdb_assert.h".
570 (is_integer_like, is_pointer_like, is_simple_arg,
571 pass_by_copy_ref, extend_simple_arg, is_double_arg, round_up,
572 round_down, alignment_of): New functions.
573 (s390_push_arguments): Rewritten to handle passing large arguments
574 by value, and to make more readable.
575
4c8287ac
JB
576 * s390-tdep.c (s390_pop_frame): Call generic_pop_current_frame, to
577 interact correctly with generic dummy frames.
578 (s390_pop_frame_regular): Move the guts of the frame-popping code
579 to here, to be called by generic_pop_current_frame. Use the
580 frame's saved_regs array; this works for `return' as well as
581 inferior function calls.
582
0adb2aba
JB
583 * s390-tdep.c (s390_gdbarch_init): Register the function
584 `standard_coerce_float_to_double', since GCC for the S/390 follows
585 the standard rules for passing floats.
586
641225a4
JB
587 * valops.c (default_coerce_float_to_double,
588 standard_coerce_float_to_double): Doc fixes.
589
648f4f79
JB
590 Patch from Peter Schauer:
591
592 * symtab.c (find_pc_sect_line): If we can't find the function
593 containing PC, we certainly won't have line number information for
594 that location, so return zero immediately.
595
0cb2e7c5
AC
5962001-11-10 Andrew Cagney <ac131313@redhat.com>
597
598 * config/i960/tm-nindy960.h (REGISTER_CONVERTIBLE)
599 (REGISTER_CONVERT_TO_RAW, REGISTER_CONVERT_TO_VIRTUAL): Delete
600 undef.
601 * i960-tdep.c (i960_register_type): New function.
602 * config/i960/tm-i960.h (REGISTER_CONVERTIBLE): Delete.
603 (REGISTER_CONVERT_TO_VIRTUAL): Delete.
604 (REGISTER_CONVERT_TO_RAW): Delete.
605 (REGISTER_VIRTUAL_TYPE): Update. Call i960_register_type.
606
2c10d744
AC
6072001-11-10 Andrew Cagney <ac131313@redhat.com>
608
609 * m88k-tdep.c (m88k_register_type): New function.
610 * config/m88k/tm-m88k.h (REGISTER_CONVERTIBLE): Delete.
611 (REGISTER_CONVERT_TO_VIRTUAL): Delete.
612 (REGISTER_CONVERT_TO_RAW): Delete.
613 (m88k_register_type): Declare.
614 (REGISTER_VIRTUAL_TYPE): Update. Call m88k_register_type.
615
226271d3
MK
6162001-11-11 Mark Kettenis <kettenis@elgar.my.domain>
617
618 * i386-tdep.h (FPU_REG_RAW_SIZE): Define unconditionally.
619 * i387-nat.c, i387-tdep.c: Unconditionally include "i386-tdep.h".
620 * config/i386/tm-i386.h (FPU_REG_RAW_SIZE): Removed.
621 (SIZEOF_FPU_REGS): Don't use FPU_REG_RAW_SIZE here.
622
c2636352
JB
6232001-11-12 Jim Blandy <jimb@redhat.com>
624
625 Patch from Andreas Schwab <schwab@suse.de>:
626 * eval.c (evaluate_subexp_standard): Fix memory leak: use alloca
627 instead of xmalloc.
628
c26e4683
JB
6292001-11-12 Jim Blandy <jimb@redhat.com>
630
631 * corefile.c (write_memory_unsigned_integer,
632 write_memory_signed_integer): New functions.
633 (write_memory): Move to be with other write_memory_* functions.
634 * gdbcore.h (write_memory_unsigned_integer,
635 write_memory_signed_integer): New declarations.
636
9aa1fe7e
GK
6372001-11-11 Geoffrey Keating <geoffk@redhat.com>
638
639 * dwarf2read.c (dwarf_decode_lines): Properly deal with
640 unknown standard opcodes.
641
5b582da3
AC
6422001-11-11 Andrew Cagney <ac131313@redhat.com>
643
644 * README (alpha-dec-osf5.1): Mention -DUSE_LDR_ROUTINES.
645 (sparcv9-sun-solars2.8): Mention problem with 64 bit GCC 3.0.x.
646 (i586-sco-sysv5uw7.1.1): Mention problem with threads.
647
b18c45ed
AC
6482001-11-11 Andrew Cagney <ac131313@redhat.com>
649
650 From Mark Kettenis <kettenis@gnu.org>:
651 * breakpoint.c (breakpoint_re_set_one): Don't discard SHLIB
652 breakpoints when they fail.
653
3d6d86c6
AC
6542001-11-10 Andrew Cagney <ac131313@redhat.com>
655
656 * printcmd.c, valprint.c, language.c, linespec.c, infcmd.c,
657 gnu-nat.c, findvar.c, expprint.c, typeprint.c, stack.c, top.c:
658 Replace value_ptr with struct value.
659
6943961c
AC
6602001-11-10 Andrew Cagney <ac131313@redhat.com>
661
662 * c-valprint.c, ch-lang.c, ch-valprint.c, cp-valprint.c,
663 p-valprint.c, scm-exp.c, scm-lang.c, scm-valprint.c: Replace
664 value_ptr with struct value.
665
61051030
AC
6662001-11-10 Andrew Cagney <ac131313@redhat.com>
667
668 * eval.c: Replace most occurances of value_ptr with struct value.
669
f312f057
JB
6702001-11-09 Jim Blandy <jimb@redhat.com>
671
d4d0c21e
JB
672 * s390-tdep.c: Don't use a call dummy.
673 (s390_fix_call_dummy, s390_pc_in_call_dummy): Delete.
674 (s390_push_return_address): Put the address of the inferior call
675 breakpoint in r14.
676 (s390_gdbarch_init):
677 - Provide trivial definition of s390_call_dummy_words; register it
678 with the gdbarch appropriately.
679 - Delete S390x_call_dummy_words.
680 - Gather inferior-call-related settings into a group.
681 - Use generic dummy frames.
682 - Put the inferior call breakpoint at the entry point.
683 - Use generic gdbarch methods: pc_in_call_dummy_at_entry_point,
684 generic_push_dummy_frame, generic_fix_call_dummy.
685 - There is a call dummy breakpoint offset; it's zero.
686
f7aaef7d 687 * s390-tdep.c: (s390_push_arguments): Write a back chain pointer
01c464e9
JB
688 into the dummy frame, to help us get backtraces.
689
f312f057
JB
690 * values.c (value_as_address): If VAL is a function or method,
691 just return its address; don't let COERCE_ARRAY convert its
692 address to a pointer, and then have unpack_long convert it back to
693 an address.
694
5598ce11
PM
6952001-11-06 Pierre Muller <muller@ics.u-strasbg.fr>
696
697 * p-lang.c (is_pascal_string_type): New function to determine if a
698 type is a string type.
699 * p-lang.h: Add prototype for is_pascal_string_type.
700 * p-valprint.c (pascal_val_print) : Use is_pascal_string_type function
701 to display strings nicely.
702
94a716bf
PM
7032001-11-06 Pierre Muller <muller@ics.u-strasbg.fr>
704
705 * p-exp.y (yylex): Only change case of expression if symbol is found.
706 Also check for GPC standard name form.
707
f6a9480e
AC
7082001-11-08 Andrew Cagney <ac131313@redhat.com>
709
710 * gdb_indent.sh: New file.
711
64f9bb98
JB
7122001-11-08 Jim Blandy <jimb@redhat.com>
713
714 * s390-tdep.c (s390_get_frame_info): Initialize got_load_addr and
715 got_load_len, to placate compiler.
716
cd3c07fc
MK
7172001-11-08 Mark Kettenis <kettenis@gnu.org>
718
719 * i386-tdep.c (i386_gdbarch_init): Fix typo.
720
4c801202
JB
7212001-11-08 Jim Blandy <jimb@redhat.com>
722
8001d1e4
JB
723 * s390-tdep.c (s390_gdbarch_init): Use func_frame_chain_valid, not
724 file_frame_chain_valid.
725
8ac0e65a
JB
726 * s390-tdep.c (s390_get_frame_info): If the prologue loads r12
727 from the constant pool, but doesn't add in the constant pool's
728 address to it, then this function probably isn't using r12 as a
729 GOT pointer, and that load probably wasn't part of the prologue.
730
4c801202
JB
731 * s390-tdep.c (s390_gdbarch_init): Use the default
732 prepare_to_proceed function established by config/nm-linux.h;
733 don't try to set it to linuxthreads_prepare_to_proceed.
734
a62cc96e
AC
735Wed Nov 7 20:38:14 2001 Andrew Cagney <cagney@redhat.com>
736
737 * i386-tdep.c: Include "i386-tdep.h".
738 (XMALLOC): Define.
739 (i386_gdbarch_init): New function.
740 (_initialize_i386_tdep): Register bfd_arch_i386.
741 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Define as
742 GDB_MULTI_ARCH_PARTIAL.
743 * i386-tdep.h: When partially multi-arch, conditionally define
744 all macros.
745
8ea43c6d
AC
746Wed Nov 7 20:45:32 2001 Andrew Cagney <cagney@redhat.com>
747
748 * i386-tdep.c (set_disassembly_flavor): Delete function.
749 (set_disassembly_flavor_sfunc): Delete function.
750
6a34fd2f
EZ
7512001-11-07 Elena Zannoni <ezannoni@redhat.com>
752
753 * dbxread.c (set_namestring): New function, replacing the
754 SET_NAMESTRING macro.
755 (SET_NAMESTRING, CUR_SYMBOL_TYPE, CUR_SYMBOL_VALUE,
756 CUR_SYMBOL_STRX, DBXREAD_ONLY, START_PSYMTAB, END_PSYMTAB): Delete
757 definitions.
758 (read_dbx_symtab): Don't include partial-stab.h any more. Don't
759 reuse code in partial-stab.h, include the code directly, instead.
760
761 * Makefile.in (dbxread.o): Remove dependency on partial-stab.h.
762 (HFILES_NO_SRCDIR): Remove partial-stab.h.
763
764 * partial-stab.h: Remove file.
765
a72293e2
AC
7662001-11-07 Andrew Cagney <ac131313@redhat.com>
767
768 * gdbarch.sh: For multi-arch functions, check there is a
769 predefault and use it as the static default.
770 * gdbarch.c: Re-generate.
771
8cf03c4c
MK
7722001-11-08 Mark Kettenis <kettenis@gnu.org>
773
774 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Define in
775 terms of NUM_GREGS, NUM_FREGS and NUM_SSE_REGS instead of
776 hardcoding the register number.
777
56f12751
AC
7782001-11-07 Andrew Cagney <ac131313@redhat.com>
779
780 * gdbarch.sh (USE_STRUCT_CONVENTION): Default to
781 generic_use_struct_convention.
782 * gdbarch.h, gdbarch.c: Regenerate.
783 * values.c (USE_STRUCT_CONVENTION): Delete definition, moved to
784 gdbarch.h.
785
a4a7d16f
AC
7862001-11-06 Andrew Cagney <ac131313@redhat.com>
787
788 * gdbarch.sh (PC_IN_CALL_DUMMY): Require a value.
789 * gdbarch.c: Regenerate.
790
4dc13854
FF
7912001-11-06 Fred Fish <fnf@redhat.com>
792
793 * complaints.c (info_verbose): Remove unneeded decl, is in defs.h.
794 * dbxread.c: Ditto
795 * dwarf2read.c: Ditto.
796 * dwarfread.c: Ditto.
797 * exec.c: Ditto.
798 * hpread.c: Ditto.
799 * hpread.h: Ditto.
800 * mdebugread.c: Ditto.
801 * os9kread.c: Ditto.
802 * stack.c: Ditto.
803 * symfile.c: Ditto.
804 * tracepoint.c: Ditto.
805
7fe4d0d2
AC
8062001-11-06 Andrew Cagney <ac131313@redhat.com>
807
808 * MAINTAINERS: Update Andrew Cagney's responsibilities. Mention
809 David Taylor and Nick Duffek in past maintainers.
810
d3119d1e
EZ
8112001-11-06 Elena Zannoni <ezannoni@redhat.com>
812
813 * mdebugread.c (CUR_SYMBOL_TYPE, CUR_SYMBOL_VALUE, START_PSYMTAB,
814 END_PSYMTAB, SET_NAMESTRING, HANDLE_RBRAC): Delete definitions.
815 (parse_partial_symbols): Don't include partial-stab.h any
816 more. Don't reuse code in partial-stab.h, include the code
817 directly, instead. Simplify code from partial-stab.h eliminating
818 ifdef DBXREAD_ONLY code.
819
820 * Makefile.in (mdebugread.o): Remove dependency on partial-stab.h.
821
e2d46a8c
JB
8222001-11-06 Jim Blandy <jimb@redhat.com>
823
3ecc0ae2
JB
824 * s390-nat.c: #include "regcache.h", to get declaration for
825 `supply_register'. (The last change already added the dependency
826 of s390-nat.o on regcache.h. Oops.)
827
e81b020b
JB
828 * Makefile.in (ALLDEPFILES): Add s390-tdep.c and s390-nat.c.
829 (s390-tdep.o, s390-nat.o): New rules.
830
38937755 831 * s390-nat.c (s390_register_u_addr): Pass proper arguments to
e2d46a8c
JB
832 internal_error.
833
a985cd41
AC
8342001-11-06 Andrew Cagney <ac131313@redhat.com>
835
836 * gdbarch.sh (CALL_DUMMY_LOCATION): Require a value.
837 * gdbarch.c: Regenerate.
838
e6b47f07
AC
8392001-11-06 Andrew Cagney <ac131313@redhat.com>
840
841 * blockframe.c (get_prev_frame): Replace #ifdef
842 INIT_EXTRA_FRAME_INFO with run-time test.
843
69a0d5f4
AC
8442001-11-05 Andrew Cagney <ac131313@redhat.com>
845
846 * gdbarch.sh (push_return_address): Change to a function with
847 predicate.
848 * gdbarch.h, gdbarch.c: Re-generate.
849 * valops.c (hand_function_call): Replace #ifdef
850 PUSH_RETURN_ADDRESS with run-time test of PUSH_RETURN_ADDRESS_P.
851
c12260ac
CV
8522001-11-06 Corinna Vinschen <vinschen@redhat.com>
853
854 * arch-utils.c (generic_in_function_epilogue_p): New function.
855 * arch-utils.h (generic_in_function_epilogue_p): Declare extern.
856 * breakpoint.c (watchpoint_check): Add test whether the pc is
857 currently in the epilogue of a function.
858 * gdbarch.c: Autogenerated from gdbarch.sh.
859 * gdbarch.h: Ditto.
860 * gdbarch.sh (function_list): Add `in_function_epilogue_p' definition.
861
c4620205
JB
8622001-11-05 Jim Blandy <jimb@redhat.com>
863
8114216b
JB
864 * config/s390/s390.mh (NATDEPFILES): Don't split this across
865 several lines with backslashes; the `sed' command in
866 configure.in's AC_OUTPUT clause that comments out the NATDEPFILES
867 assignment doesn't handle lines extended with backslashes.
868
c4620205
JB
869 * configure.in (AC_OUTPUT): Handle assignments to NATDEPFILES
870 using `+=' as well as `='.
871 * configure: Regenerated.
872
5fdff426
AC
8732001-11-05 Andrew Cagney <ac131313@redhat.com>
874
875 * gdbarch.sh (init_extra_frame_info): Change to a function with
69a0d5f4 876 predicate.
5fdff426
AC
877 * gdbarch.h, gdbarch.c: Re-generate.
878 * blockframe.c (create_new_frame): Replace #ifdef
879 INIT_EXTRA_FRAME_INFO with run-time test of
880 INIT_EXTRA_FRAME_INFO_P.
881
f16a1923
AC
8822001-11-05 Andrew Cagney <ac131313@redhat.com>
883
884 * gdbarch.sh (verify_gdbarch): Use a mem_file to accumulate all
885 error messages. Print in a single batch.
886 * gdbarch.c: Re-generate.
887
0fc087fe
MK
8882001-11-04 Mark Kettenis <kettenis@gnu.org>
889
3fb1c838
MK
890 * i386-linux-nat.c (GETREGS_SUPPLIES, supply_gregset,
891 fill_gregset): Add support for "orig_eax" register.
892
6441c4a0
MK
893 Add support for "orig_eax" pseudo register on Linux/x86.
894 * i386-linux-tdep.c: Include "inferior.h".
895 (i386_linux_register_name, i386_linux_register_byte,
896 i386_linux_register_raw_size): New functions.
897 (i386_linux_write_pc): New function.
898 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): New define.
899 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
900 REGISTER_BYTE, REGISTER_RAW_SIZE): Define to deal with additional
901 register.
902 (i386_linux_register_name, i386_linux_register_byte,
903 i386_linux_register_raw_size): New prototypes.
904 (TARGET_WRITE_PC): New define.
905 (i386_linux_write_pc): New prototype.
906
1a11ba71
MK
907 * i386-tdep.c (i386_register_offset): Renamed from
908 i386_register_byte. Made static.
909 (i386_register_size): Renamed from i386_register_raw_size. Made
910 static.
911 (i386_register_virtual_size): Removed.
912 (i386_register_byte, i386_register_raw_size,
913 i386_register_virtual_size): New functions.
914 (_initialize_i386_tdep): Initialize i386_register_offset instead
915 of i386_register_byte. Remove code to initialize
916 i386_register_virtual_size.
917 * config/i386/tm-i386.h (REGISTER_BYTE): Redefine to use
918 i386_register_byte function.
919 (REGISTER_RAW_SIZE): Redefine to use i386_register_raw_size
920 function.
921 (REGISTER_VIRTUAL_SIZE): Redefine to use
922 i386_register_virtual_size function.
923 (i386_register_byte, i386_register_raw_size,
924 i386_register_virtual_size): New functions.
925
0fc087fe
MK
926 * Makefile.in (ALLDEPFILES): Add i387-nat.c.
927 (i387-nat.o): Add dependencies.
928
1396e6f1
AC
9292001-11-02 Andrew Cagney <ac131313@redhat.com>
930
931 * README: Mention problem with alpha-dec-osf5.1.
932
5c7dd748
AC
9332001-11-02 Andrew Cagney <ac131313@redhat.com>
934
935 * utils.c (internal_verror): Restore calls to abort().
936 Fix PR gdb/219.
937
3559696c
MC
9382001-11-02 Michael Chastain <mec@shout.net>
939
940 * MAINTAINERS: Update my entry.
941
53e8ad3d
MS
9422001-11-01 Michael Snyder <msnyder@redhat.com>
943
944 * symtab.c (operator_chars): Allow '*' and '[' to be quoted in
945 operator names, to avoid regexp expansion.
946 (search_symbols): Alloca buffer is too small, may get clobbered.
947
990f9fe3
FF
9482001-11-01 Fred Fish <fnf@redhat.com>
949
950 * coff-solib.c (coff_solib_add): Add new readsyms arg.
951 * irix5-nat.c (solib_add): Ditto.
952 * osfsolib.c (solib_add): Ditto.
953 * pa64solib.c (pa64_solib_add): Ditto.
954 * pa64solib.c (add_to_solist): Ditto.
955 * pa64solib.c (read_dld_descriptor): Ditto.
956 * solib.c (solib_add): Ditto.
957 * somsolib.c (som_solib_add): Ditto.
958 * win32-nat.c (child_solib_add): Ditto.
959 * xcoffsolib.c (solib_add): Ditto.
960
961 * coff-solib.h (coff_solib_add): Add new readsyms arg to prototype.
962 * pa64solib.c (add_to_solist): Ditto.
963 * pa64solib.c (read_dld_descriptor): Ditto.
964 * pa64solib.h (pa64_solib_add): Ditto.
965 * solib.h (solib_add): Ditto.
966 * somsolib.h (som_solib_add): Ditto.
967 * config/i386/tm-cygwin.h (child_solib_add): Ditto.
968
969 * coff-solib.c (coff_solib_add): If readsyms is zero don't read
970 symbols but do any other needed work for shared libs.
971 * irix5-nat.c: Ditto.
972 * osfsolib.c (solib_add): Ditto.
973 * solib.c (solib_add): Ditto.
974 * win32-nat.c (child_solib_add): Ditto.
975 * xcoffsolib.c (solib_add): Ditto.
976
977 * irix5-nat.c (sharedlibrary_command): Pass 1 as readsyms to
978 solib_add to force reading of shared library symbols.
979 * osfsolib.c (sharedlibrary_command;): Ditto.
980 * pa64solib.c (pa64_solib_sharedlibrary_command): Ditto.
981 * solib.c (sharedlibrary_command): Ditto.
982 * somsolib.c (som_solib_sharedlibrary_command): Ditto.
983 * xcoffsolib.c (sharedlibrary_command): Ditto.
984
985 * coff-solib.c (coff_solib_create_inferior_hook): Call solib_add
986 unconditionally with auto_solib_add.
987 * irix5-nat.c (solib_create_inferior_hook): Ditto.
988 * osfsolib.c (solib_create_inferior_hook): Ditto.
989 * solib.c (solib_create_inferior_hook): Ditto.
990 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
991 * solib-svr4.c (enable_break): Ditto.
992 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
993
994 * corelow.c (solib_add_stub): Add auto_solib_add to args passed
995 via SOLIB_ADD.
996 * sol-thread.c (sol_thread_attach): Ditto.
997 * config/rs6000/nm-rs6000.h (SOLIB_ADD): Ditto.
998
999 * infcmd.c (attach_command): Remove auto_solib_add decl.
1000 Call SOLIB_ADD directly with auto_solib_add.
1001 * infrun.c (handle_inferior_event): Ditto.
1002
1003 * coff-solib.h (SOLIB_ADD): Add readsyms arg.
1004 * pa64solib.h (SOLIB_ADD): Ditto.
1005 * solib.h (SOLIB_ADD): Ditto.
1006 * somsolib.h (SOLIB_ADD): Ditto.
1007 * config/i386/tm-cygwin.h (SOLIB_ADD): Ditto.
1008
1009 * fork-child.c (clone_and_follow_inferior): Remove unused
1010 auto_solib_add decl.
1011
1012 * pa64solib.c (pa64_solib_add): Call add_to_solist with readsyms.
1013 (read_dld_descriptor): Ditto.
1014 (pa64_solib_add): Call read_dld_descriptor with readsyms.
1015 (pa64_solib_in_dynamic_linker): Ditto.
1016
1017 * corelow.c (symfile.h): Need this for auto_solib_add declaration.
1018 * sol-thread.c (symfile.h): Ditto.
1019
1de2edba
AC
10202001-10-31 Andrew Cagney <ac131313@redhat.com>
1021
1022 * s390-nat.c (s390_remove_watchpoint): Use xfree.
1023 (s390_insert_watchpoint): Use xmalloc.
1024
30b28db1
AC
10252001-10-31 Andrew Cagney <ac131313@redhat.com>
1026
1027 * varobj.c: Replace value_ptr with ``struct value *''.
1028
72330bd6
AC
10292001-10-31 Andrew Cagney <ac131313@redhat.com>
1030
1031 * varobj.c: Re-indent.
1032
d45fc520
AC
10332001-10-31 Andrew Cagney <ac131313@redhat.com>
1034
1035 * x86-64-tdep.c (value_push, x86_64_push_arguments): Replace
1036 ``value_ptr'' with ``struct value *''.
1037 * s390-tdep.c (s390_push_arguments): Ditto.
1038
3a1c5313
AC
10392001-10-30 Andrew Cagney <ac131313@redhat.com>
1040
1041 * ppc-tdep.h: Add #ifndef wrapper. Replace value_ptr with
1042 ``struct value *''.
1043 (struct frame_info, struct value): Add opaque declarations.
1044
68e9cc94
CV
10452001-10-31 Corinna Vinschen <vinschen@redhat.com>
1046
1047 * arch-utils.c (generic_in_solib_call_trampoline): New function.
1048 * arch-utils.h (generic_in_solib_call_trampoline): Extern declaration.
1049 * gdbarch.c: Regenerated from gdbarch.sh.
1050 * gdbarch.h: Ditto.
1051 * gdbarch.sh (function_list): Add `IN_SOLIB_CALL_TRAMPOLINE' definition.
1052 * infrun.c (IN_SOLIB_CALL_TRAMPOLINE): Remove macro.
1053
60e6cc42
AC
10542001-10-31 Andrew Cagney <ac131313@redhat.com>
1055
1056 From DJ Barrow.
1057 * s390-tdep.c: (s390_gdbarch_init): Don't initialize
1058 find_solib_trampoline_target.
1059
61387159
AC
10602001-10-31 Andrew Cagney <ac131313@redhat.com>
1061
1062 * remote-vx.c (net_wait): Fix typo from PIDGET change.
1063
fc633446
MK
10642001-10-31 Mark Kettenis <kettenis@gnu.org>
1065
1066 * config/i386/tm-i386.h (REGISTER_NAMES): Remove.
1067 (REGISTER_NAME): New define.
1068 (i386_register_name): New prototype.
1069 * i386-tdep.c (i386_register_names): New variable.
1070 (i386_register_name): New function.
1071 * config/i386/tm-i386os9k.h, config/i386/tm-ptx.h,
1072 config/i386/tm-symmetry.h: Undefine REGISTER_NAME instead of
1073 REGISTER_NAMES.
1074
3f8ad85b
CF
10752001-10-31 Christopher Faylor <cgf@redhat.com>
1076
1077 * win32-nat.c (register_loaded_dll): Attempt to ensure that the case of
1078 the loaded DLL matches the on-disk case since the debugging API does
1079 not seem to ensure this. Calculate max name length here.
1080 (handle_load_dll): Move max name length calculation to
1081 register_loaded_dll.
1082
433144fb
DJ
10832001-10-31 Daniel Jacobowitz <drow@mvista.com>
1084
1085 * arm-linux-nat.c: Include <asm/ptrace.h> explicitly.
1086
ddc54292
KS
10872001-10-30 Keith Seitz <keiths@redhat.com>
1088
1089 * wrapper.h (gdb_value_struct_elt): New function.
1090 * wrapper.c (gdb_value_struct_elt): Ditto.
1091 (do_captured_value_struct_elt): Ditto.
1092
34f47bc4
AC
10932001-10-30 Andrew Cagney <ac131313@redhat.com>
1094
1095 * README, NEWS: Update for 5.1.
1096
4536bbc6
AC
10972001-10-30 Andrew Cagney <ac131313@redhat.com>
1098
1099 * configure.in (WERROR_CFLAGS): Use AC_TRY_COMPILE to test the
1100 -W... flags.
1101 * configure: Re-generate.
1102
c3c057c8
FF
11032001-10-30 Fred Fish <fnf@redhat.com>
1104
1105 * somsolib.c (som_solib_add): A megabyte is 1024*1024 bytes.
1106 * pa64solib.c (add_to_solist): Ditto.
1107 * win32-nat.c (_initialize_inftarg): Remove unnecessary
1108 initialization of auto_solib_add, it defaults to 1.
1109
b7209cb4
FF
11102001-10-27 Fred Fish <fnf@redhat.com>
1111
1112 * symfile.c (auto_solib_add): Update comment to note that
1113 this variable is now just used as a boolean to control shlib
1114 autoloading, and clarify when it is used.
1115 * symfile.h (auto_solib_add): Ditto.
1116
1117 * symfile.c (auto_solib_limit): New variable that holds the
1118 autoloading threshold instead of overloading auto_solib_add.
1119 * symfile.h (auto_solib_limit): Ditto.
1120
1121 * irix5-nat.c (_initialize_solib): Change auto-solib-add
1122 variable from var_zinteger to var_boolean and update help.
1123 * osfsolib.c (_initialize_solib): Ditto.
1124 * pa64solib.c (_initialize_pa64_solib): Ditto.
1125 * solib.c (_initialize_solib): Ditto.
1126 * somsolib.c (_initialize_som_solib): Ditto.
1127 * xcoffsolib.c (_initialize_solib): Ditto.
1128
1129 * pa64solib.c (pa64_solib_total_st_size): Update comment to
1130 note that the new auto_solib_limit variable is used instead
1131 of overloading auto_solib_add variable.
1132 (_initialize_pa64_solib): Ditto.
1133 * somsolib.c (som_solib_total_st_size): Ditto.
1134 (_initialize_som_solib): Ditto.
1135
1136 * pa64solib.c (_initialize_pa64_solib): Add new set/show
1137 commands for auto-solib-limit variable.
1138 * somsolib.c (_initialize_som_solib): Ditto
1139
1140 * pa64solib.c (add_to_solist): Check that auto_solib_add is
1141 set and use auto_solib_limit as the threshold size instead
1142 of auto_solib_add.
1143 * somsolib.c (som_solib_add): Ditto, and also change warning
1144 text about size threshold exceeded.
1145
dec66fe5
MK
11462001-10-21 Mark Kettenis <kettenis@gnu.org>
1147
1148 * config/i386/tm-i386v.h: Don't include "regcache.h".
1149 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, FRAME_CHAIN,
1150 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_NUM_ARGS):
1151 Remove macros. The versions from "tm-i386.h" should work fine
1152 (and in most cases even better).
1153
c6ba6f0d
MK
11542001-10-30 Mark Kettenis <kettenis@gnu.org>
1155
1156 * i386-tdep.c (i386_extract_return_value): Use
1157 convert_typed_floating to extract floating-point value from
1158 register buffer.
1159 (i386_store_return_value): Use convert_typed_floating to store
1160 floating-point return balue in register buffer
1161 (i386_register_virtual_type): Change type of floating-point
1162 registers to builtin_type_i387_ext.
1163 (i386_register_convert_to_virtual): Use convert_typed_floating to
1164 do the conversion.
1165 (i386_register_convert_to_raw): Likewise.
1166
43686d64
MK
11672001-10-29 Mark Kettenis <kettenis@gnu.org>
1168
1169 * doublest.h (convert_typed_floating): New prototype.
1170 * doublest.c (convert_typed_floating): New function.
1171
87ffba60
MK
11722001-10-28 Mark Kettenis <kettenis@gnu.org>
1173
1174 * doublest.c: Improve comments a bit.
1175 (floatformat_from_length): New function.
1176 (NAN): Define to 0.0 if not already defined.
1177 (extract_floating): Rewrite to use floatformat_from_length. Warn
1178 instead of error if LEN doesn't match a known floating-point type,
1179 and return NaN (or 0.0 if NaN isn't available) in that case.
1180 (store_floating): Likewise, but zero out the target byte-stream if
1181 LEN doesn't match a known floating-point type.
1182 (extract_typed_floating): Reformat a bit.
1183 (store_typed_floating): Reformat a bit. Add comment about zeroing
1184 out padding in the target buffer.
1185 * doublest.h (extract_floating, store_floating): Fix comment about
1186 deprecation of these functions. Add parameter names to prototypes.
1187
e371b258
MK
11882001-10-28 Mark Kettenis <kettenis@gnu.org>
1189
4583280c
MK
1190 * i387-tdep.c (print_i387_value): Use extract_typed_floating to
1191 convert RAW to a DOUBLEST instead of extract_floating.
1192
e371b258
MK
1193 * gdbtypes.c (_initialize_gdbtypes): Set floating-point type for
1194 builtin_type_i387_ext to floatformat_i387_ext.
1195
17fd1ad9
DJ
11962001-10-24 Daniel Jacobowitz <drow@mvista.com>
1197
1198 * arm-linux-nat.c (fill_gregset): Do not check register_valid[].
1199 (fill_fpregset): Likewise.
1200
fa4e4598
OF
12012001-10-26 Orjan Friberg <orjanf@axis.com>
1202
1203 * cris-tdep.c (constraint): Loop through the whole cris_spec_regs
1204 struct, not just the NUM_SPECREGS first entries.
1205 (bdap_prefix): Read PC before autoincrement.
1206
02cc9f49
CV
12072001-10-24 Corinna Vinschen <vinschen@redhat.com>
1208
1209 * win32-nat.c (DebugSetProcessKillOnExit): New static function
1210 pointer to Windows' DebugSetProcessKillOnExit() function.
1211 (DebugActiveProcessStop): Ditto for DebugActiveProcessStop().
1212 (has_detach_ability): New function.
1213 (child_attach): If system has detach ability, enable it.
1214 (child_detach): If system has detach ability, actually
1215 detach from process.
1216 Change tty output to Linux format.
1217
3973eadd
JB
12182001-10-23 Jim Blandy <jimb@redhat.com>
1219
1220 Isolate STABS readers' use of the `textlow' and `texthigh' fields
1221 of `struct partial_symtab' to only a few locations. This change
1222 is not supposed to affect the way the values are computed, only
1223 where they live.
1224
1225 * dbxread.c (struct symloc): Add `textlow' and `texthigh' fields
1226 to the reader-specific structure.
1227 * mdebugread.c (struct symloc): Same.
1228 * dbxread.c (TEXTLOW, TEXTHIGH): New accessor macros.
1229 * mdebugread.c (TEXTLOW, TEXTHIGH): Same.
1230 * dbxread.c (dbx_symfile_read): After we've built all our partial
1231 symbol tables, set each partial symtab's `textlow' and `texthigh'
1232 fields from our reader-specific structure.
1233 * mdebugread.c (mdebug_build_psymtabs): Same.
1234 * dbxread.c (start_psymtab): Initialize the reader-specific
1235 structure's `textlow' and `texthigh' from the new psymtab's.
1236 * mdebugread.c (parse_partial_symbols, new_psymtab): Same.
1237 * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab): Use
1238 the reader-specific `textlow' and `texthigh', not the generic
1239 psymtab fields.
1240 * mdebugread.c (parse_lines, parse_partial_symbols,
1241 psymtab_to_symtab_1): Same.
1242 * partial-stab.h: Same.
1243
ce414844
AC
1244Tue Oct 23 18:59:42 2001 Andrew Cagney <cagney@redhat.com>
1245
1246 * hp-psymtab-read.c, hppah-nat.c, hppa-tdep.c: Fix -Wformat
1247 problems.
1248
8f236061
AC
1249Tue Oct 23 14:16:10 2001 Andrew Cagney <cagney@redhat.com>
1250
1251 * somsolib.c (som_solib_add): Use core_addr_to_host_pointer.
1252 (som_solib_desire_dynamic_linker_symbols): Compare integers with
1253 zero not NULL.
1254 * hp-psymtab-read.c (hpread_call_pxdb): Make parameter constant.
1255
d20bf2e8
AC
12562001-10-21 Andrew Cagney <ac131313@redhat.com>
1257
1258 * top.c (print_gdb_version): Do not print ``(MI_OUT)''. MI
1259 interface is always enabled.
1260
17732724
AC
12612001-10-21 Andrew Cagney <ac131313@redhat.com>
1262
1263 * Makefile.in: Replace top.h with $(top_h). Replace expression.h
1264 with $(expression_h). Replace command.h with $(command_h).
1265 (language_h): Define. Replace language.h with $(language_h).
1266 Replace call-cmds.h with $(call_cmds_h). Replace varobj.h with
1267 $(varobj_h).
1268 (wrapper_h, valprint_h, objfiles_h, complaints_h): Ditto.
1269 (serial_h, hpread_h, buildsym_h, stabsread_h): Ditto.
1270 (xcoffsolib_h, gdb_stabs_h, linespec_h): Ditto.
1271 (bcache_h, gdb_events_h, monitor_h): Ditto.
1272 (ser_unix_h, source_h): Ditto.
1273 (varobj_h): Update list.
1274
1275 * call-cmds.h: Add CALL_CMDS_H macro wrapper.
1276 * solist.h: Add SOLIST_H macro wrapper.
1277 * monitor.h: Add MONITOR_H macro wrapper.
1278 * typeprint.h: Add TYPEPRINT_H macro wrapper.
1279 * xcoffsolib.h: Add XCOFFSOLIB_H macro wrapper.
1280 * valprint.h: Add VALPRINT_H macro wrapper.
1281 * top.h: Add TOP_H macro wrapper.
1282
fd0407d6
AC
12832001-10-21 Andrew Cagney <ac131313@redhat.com>
1284
1285 * config/a29k/tm-vx29k.h, i386-tdep.c: Include "value.h".
1286 * arm-tdep.c, exec.c, ia64-tdep.c, infrun.c: Ditto.
1287 * ppc-linux-tdep.c, remote-es.c, remote.c: Ditto.
1288 * rs6000-tdep.c, s390-tdep.c, x86-64-tdep.c: Ditto.
1289 * Makefile.in (arm-tdep.o, exec.o, i386-tdep.o, ia64-tdep.o)
1290 (infrun.o, ppc-linux-tdep.o, remote.o, rs6000-tdep.o)
1291 (x86-64-tdep.o): Update dependencies.
1292 * gdbarch.sh [!GDB_MULTI_ARCH]: Include "value.h".
1293 * gdbarch.h, gdbarch.c: Re-generate.
1294
3c2fb7bd
MK
12952001-10-21 Mark Kettenis <kettenis@gnu.org>
1296
1297 * infptrace.c (child_xfer_memory): Fix a few coding standards
1298 violations.
1299
c4282e67
EZ
13002001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
1301
1302 * config/djgpp/README: Fix a typo and tweak for GDB 5.1.
1303
c9847381
AC
13042001-10-20 Andrew Cagney <ac131313@redhat.com>
1305
75c9979e
AC
1306 * jv-lang.h: Add #ifndef JV_LANG_H wrapper.
1307 (struct value): Add opaque declaration. Replace value_ptr with
1308 ``struct value *''.
1309 * jv-valprint.c, jv-lang.c: Replace value_ptr with equivalent
1310 struct.
1311
c9847381
AC
1312 * wrapper.h (struct value): Add opaque declaration. Replace
1313 value_ptr with ``struct value *''.
1314 * wrapper.c: Replace value_ptr with ``struct value *''.
278cd55f 1315 * breakpoint.h, breakpoint.c: Ditto.
e933e538 1316 * cp-abi.h, hpacc-abi.c, gnu-v2-abi.c, cp-abi.c: Ditto.
c9847381 1317
f1e3ec29
AC
13182001-10-20 Andrew Cagney <ac131313@redhat.com>
1319
1320 * alpha-nat.c: Include <alpha/coreregs.h> instead of
1321 <machine/reg.h>.
1322 (fetch_osf_core_registers): Define core_reg_mapping in a way that
1323 works on OSF5 as well as previous OSF versions.
1324
83413c55
CF
13252001-10-20 Christopher Faylor <cgf@redhat.com>
1326
1327 * win32-nat.c (handle_load_dll): Avoid strlwr'ing loaded DLLs or cygwin
1328 may not be able to read them in certain situations.
1329
457174f6
AC
13302001-10-18 Andrew Cagney <ac131313@redhat.com>
1331
1332 * config/powerpc/nbsd.mt (SIM_OBS, SIM): Define.
1333 * config/powerpc/linux.mt (SIM, SIM_OBS): Ditto
1334
4bb5d567
AC
13352001-10-18 Andrew Cagney <ac131313@redhat.com>
1336
1337 * README: Mention problems with HP/UX.
1338
03dd37c3
AC
13392001-10-16 Andrew Cagney <ac131313@redhat.com>
1340
1341 Based on code by John Moore <jmore@redhat.com>:
1342
1343 * utils.c (core_addr_to_string): New function for conversion of
1344 CORE_ADDR to string.
1345 (string_to_core_addr): New function to convert from string to
1346 CORE_ADDR.
1347 * defs.h: Added extern statements for the above.
1348
1ba7c32c
JM
13492001-10-17 Jason Molenda (jason-cl@molenda.com)
1350
1351 * symtab.c (lookup_block_symbol): Break out of linear search
1352 if we're past the range of possible matches.
1353
7470a420
CF
13542001-10-16 Christopher Faylor <cgf@redhat.com>
1355
1356 * win32-nat.c (safe_symbol_file_add_stub): Improve logic for avoiding
1357 load of already loaded DLL.
1358 (register_loaded_dll): Convert loaded DLL name to "posix" format or it
1359 will confuse subsequent opening of the filename due to dos paths.
1360 (dll_symbol_command): Pass from_tty parameter to safe_symbol_file_add.
1361
8cc1c882
EZ
13622001-10-15 Elena Zannoni <ezannoni@redhat.com>
1363
1364 * symtab.c (lookup_block_symbol): Update comment.
1365
1aa20aa8
AC
13662001-10-15 Andrew Cagney <ac131313@redhat.com>
1367
1368 * value.h (value_as_address): Rename value_as_pointer.
1369 * eval.c, findvar.c, gnu-v2-abi.c, gnu-v3-abi.c, jv-lang.c,
1370 jv-valprint.c, printcmd.c, stack.c, top.c, valarith.c, valops.c,
1371 values.c: Update.
1372
dbbd9c57
AC
1373202001-10-15 Jim Ingham <jingham@inghji.apple.com>
1374
1375 * valarith.c (value_sub): Don't pass a raw type to
1376 value_from_pointer, it has to go through check_typedef first.
1377
73d3c16e
AC
13782001-10-15 Andrew Cagney <ac131313@redhat.com>
1379
1380 * gdbarch.sh (fallbackdefault): Set to one when predefault is
1381 empty.
1382 * gdbarch.h: Regenerate.
1383
fc0c74b1
AC
13842001-10-15 Andrew Cagney <ac131313@redhat.com>
1385
1386 * mips-tdep.c (mips_integer_to_address): New function.
1387 (mips_gdbarch_init): Initialize pointer_to_address,
1388 address_to_pointer and integer_to_address.
1389
1390 * config/mips/tm-mips.h (POINTER_TO_ADDRESS): Delete
1391 (ADDRESS_TO_POINTER): Delete.
1392
1393 * d10v-tdep.c (d10v_integer_to_address): New function.
1394 (d10v_gdbarch_init): Initialize integer_to_address.
1395
1396 * values.c (value_as_pointer): Use INTEGER_TO_ADDRESS when
1397 available.
1398
1399 * gdbarch.sh (INTEGER_TO_ADDRESS): New predicate and function.
1400 * gdbarch.h, gdbarch.c: Regenerate.
1401
cacab7c4
MK
14022001-10-14 Mark Kettenis <kettenis@gnu.org>
1403
39024782
MK
1404 * config/s390/nm-linux.h: Don't include <signal.h>.
1405 (lin_lwp_attach_lwp, ATTACH_LWP, lin_thread_get_thread_signals,
1406 GET_THREAD_SIGNAL): Remove.
1407
dc17571d
MK
1408 * config/nm-linux.h (struct objfile): Remove forward declaration.
1409 (linuxthreads_new_objfile): Remove prototype.
1410 (linuxthreads_pid_to_str): Remove prototype.
1411 (PREPARE_TO_PROCEED): Redefine in terms of
1412 lin_lwp_prepare_to_proceed.
1413 (struct target_waitstatus): Forward declaration.
1414 (child_wait): New prototype.
1415 (CHILD_WAIT): Define.
1416 (lin_lwp_attach_lwp, ATTACH_LWP, lin_thread_get_thread_signals,
1417 GET_THREAD_SIGNAL): Moved here from arch-specific files.
1418 * config/alpha/nm-linux.h, config/arm/nm-linux.h,
1419 config/ia64/nm-linux.h, config/mips/nm-linux.h,
1420 config/powerpc/nm-linux.h: Don't include <signal.h>.
1421 (lin_lwp_attach_lwp, ATTACH_LWP, lin_thread_get_thread_signals,
1422 GET_THREAD_SIGNAL): Remove.
1423 * config/i386/nm-linux.h: Likewise.
1424 (struct target_waitstatus, child_wait, CHILD_WAIT): Remove.
1425 * config/m68k/linux.mh, config/sparc/linux.mh (NATDEPFILES):
1426 Remove linux-thread.o. Add proc-service.o, thread-db.o and
1427 lin-lwp.o.
1428 (LOADLIBES): New variable.
1429
8e4d17db
MK
1430 * sparc-nat.c (fetch_core_registers): Remove redundant prototype.
1431
c987d8c0
MK
1432 * proc-service.c (BUILD_LWP): Redefine in terms of ptid_build.
1433
cacab7c4
MK
1434 Fix attaching to cloned processes. This fixes PR gdb/61.
1435 * lin-lwp.c (struct lwp_info): Add new member `cloned'.
1436 (is_cloned) Removed.
1437 (lin_lwp_attach_lwp): Don't call stop_wait_callback. Instead call
1438 waitpid explicitly. Mark the LWP as cloned if waitpid fails and
1439 retry with __WCLONE flag.
1440 (lin_lwp_attach): Likewise. Warn if attaching to a cloned process.
1441 (detach_callback): Replace use of is_cloned with explicit check on
1442 LWP id and process id.
1443 (stop_wait_callback): Replace use of is_cloned with check if LWP
1444 is marked as cloned.
1445 [CHILD_WAIT] (child_wait): New function.
1446 (lin_lwp_wait): Replace use of is_cloned with check if LWP is
1447 marked as cloned. Mark newly detected LWPs as cloned if detected
1448 by waitpid with __WCLONE flag.
1449 (kill_wait_callback): Replace use of is_cloned with check if LWP
1450 is marked as cloned.
1451 * config/i386/nm-linux.h (struct target_waitstatus): Add forward
1452 declaration.
1453 (child_wait): Add prototype.
1454 (CHILD_WAIT): Define.
1455
5769d3cd
AC
14562001-10-13 Andrew Cagney <ac131313@redhat.com>
1457
1458 S/390 31 & 64 bit target and GNU/Linux native support.
1459 Contributed by D.J. Barrow <djbarrow@de.ibm.com> of IBM.
1460 * s390-nat.c, s390-tdep.c: New file.
1461 * config/s390/nm-linux.h, config/s390/s390.mh: New file.
1462 * config/s390/s390.mt, config/s390/s390x.mt: New file.
1463 * config/s390/tm-linux.h, config/s390/tm-s390.h: New file.
1464 * config/s390/xm-linux.h: New file.
1465 * NEWS: Update.
1466 * MAINTAINERS: Update.
1467
83e6b173
AC
14682001-10-13 Andrew Cagney <ac131313@redhat.com>
1469
1470 From 2001-07-09 D.J. Barrow <djbarrow@de.ibm.com>:
1471 * gdbarch.sh: Fixed CALL_DUMMY_BREAKPOINT_OFFSET to check
1472 CALL_DUMMY_BREAKPOINT_OFFSET_P.
1473 * gdbarch.c: Regenerate.
1474
21bf60fe
MK
14752001-10-13 Mark Kettenis <kettenis@gnu.org>
1476
1477 * thread-db.c: Fix a few formatting mistakes.
1478
fefd0a37
CF
14792001-10-12 Christopher Faylor <cgf@redhat.com>
1480
1481 * win32-nat.c (safe_symbol_file_add_stub): Properly initialize linked
1482 list pointer to beginning rather than one beyond beginning.
1483
e88c90f2
DJ
14842001-10-12 Daniel Jacobowitz <drow@mvista.com>
1485
1486 * symtab.h (struct block): (ALL_BLOCK_SYMBOLS): New macro.
1487
1488 * symtab.c (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
1489 (make_symbol_completion_list): Likewise.
1490 (make_symbol_overload_list): Likewise.
1491 * buildsym.c (finish_block): Likewise.
1492 * breakpoint.c (get_catch_sals): Likewise.
1493 * mdebugread.c (mylookup_symbol): Likewise.
1494 * objfiles.c (objfile_relocate): Likewise.
1495 * printcmd.c (print_frame_args): Likewise.
1496 * stack.c (print_block_frame_locals): Likewise.
1497 (print_block_frame_labels): Likewise.
1498 (print_frame_arg_vars): Likewise.
1499 * symmisc.c (dump_symtab): Likewise.
1500 * tracepoint.c (add_local_symbols): Likewise.
1501 (scope_info): Likewise.
1502
375f3d86
DJ
15032001-10-12 Daniel Jacobowitz <drow@mvista.com>
1504
1505 * minsyms.c (msymbol_hash): Use better hash function.
1506 (msymbol_hash_iw): Likewise. Terminate loop at '(' properly.
1507
1508 * objfiles.h: Increase MINIMAL_SYMBOL_HASH_SIZE to match modern
1509 binaries.
1510
55159471
DJ
15112001-10-12 Daniel Jacobowitz <drow@mvista.com>
1512
1513 * printcmd.c (print_frame_args): Move symbol iteration explicitly
1514 inside the func != NULL block.
1515
30ef99d1
FN
15162001-10-12 Fernando Nasser <fnasser@redhat.com>
1517
1518 * MAINTAINERS (Misc): Add Ian Roxborough as tcl/, tk/ and itcl/
1519 maintainer.
1520
02e423b9
CF
15212001-10-12 Pierre Muller <muller@ics.u-strasbg.fr>
1522
d60dc82a 1523 * config/i386/tm-cygwin.h: Include tm-i386.h instead of tm-i386v.h.
02e423b9
CF
1524 This fixes errors in "long long" handling for 'finish' and 'return'
1525 commands.
1526
15272001-10-12 Christopher Faylor <cgf@redhat.com>
1528
1529 * win32-nat.c (safe_symbol_file_add_stub): Avoid adding a shared
1530 library if it has already been loaded.
1531 (safe_symbol_file_add_cleanup): Don't mess with stderr or we won't see
1532 any error messages.
1533 (safe_symbol_file_add): Ditto.
1534 (solib_symbols_add): Make static. Accept 'from_tty' parameter. Pass
1535 it to safe_symbol_file_add.
1536 (core_dll_symbols_add): Accomodate extra solib_symbols_add parameter.
1537 (child_solib_add): Ditto.
1538
1539 * win32-nat.c (handle_exception): Don't print "first chance"
1540 exceptions.
1541 (get_child_debug_event): Continue from exceptions if !handle_exception.
1542
1b15f1fa
TT
15432001-10-11 Tom Tromey <tromey@redhat.com>
1544
1545 * symtab.c (lookup_symtab): Removed.
1546 (lookup_symtab_1): Renamed to lookup_symtab.
1547
700b351b
CF
15482001-10-10 Christopher Faylor <cgf@redhat.com>
1549
1550 * win32-nat.c (get_child_debug_event): Close file handles created after
1551 process creation and DLL load.
1552 (child_create_inferior): Close unneeded process/thread handle after
1553 thread creation.
1554
4eab1e18
JB
15552001-10-10 Jim Blandy <jimb@redhat.com>
1556
1557 * mn10300-tdep.c (mn10300_analyze_prologue): Doc fixes.
1558
4abb499e
KS
15592001-10-10 Keith Seitz <keiths@redhat.com>
1560
1561 * varobj.c (cplus_value_of_child): Deal with a failure
1562 to dereference a pointer object.
1563
8b2797db
JB
15642001-10-08 J. Brobecker <brobecker@gnat.com>
1565
1566 * hpux-thread.c: rewrite find_active_thread() and find_tcb()
1567 to use ptid_t, instead of overloading the thread and the pid
1568 into the same 32-bit value. Make associated necessary adaptations.
1569 Also remove unused variable cached_active_thread.
1570
420effb8
ND
15712001-10-08 Nicholas Duffek <nsd@redhat.com>
1572
1573 * MAINTAINERS (powerpc, SCO/Unixware, Solaris/x86): Remove my
1574 entries.
1575
3eb970a8
MK
15762001-10-06 Mark Kettenis <kettenis@beast.freebsd.org>
1577
1578 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Define.
1579
78f49586
TT
15802001-10-04 Tom Tromey <tromey@redhat.com>
1581
1582 * main.c (enable_external_editor): Don't declare.
1583 (captured_main): Don't set enable_external_editor.
1584
ab31aa69
KB
15852001-10-02 Kevin Buettner <kevinb@redhat.com>
1586
1587 * Makefile.in (ALLDEPFILES): Add solib-svr4.c and solib-sunos.c
1588 to this list.
1589 (solib-sunos.o): Add dependencies.
1590 (solib-svr4.o): Revise dependencies.
1591 * solib-svr4.c: Remove SunOS shared library support.
1592 * solib-sunos.c: New file, created from solib-svr4.c, which still
1593 contains SunOS shared library support, but no SVR4 support.
1594
1595 * config/i386/nbsd.mh (NATDEPFILES): Remove solib-svr4.o and
1596 solib-legacy.o from this list. Add solib-sunos.o.
1597 * config/i386/sun386.mt (TDEPFILES): Likewise.
1598 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
1599 * config/m68k/sun2os4.mt (TDEPFILES): Likewise.
1600 * config/m68k/sun3os4.mt (TDEPFILES): Likewise.
1601 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
1602 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
1603 * config/sparc/sun4os4.mt (TDEPFILES): Likewise.
1604
39ae698d
EZ
16052001-10-01 Elena Zannoni <ezannoni@redhat.com>
1606
1607 * Makefile.in (mipsread.o): Remove old dependency on partial-stab.h.
1608
d5d0a62f
EZ
16092001-10-01 Elena Zannoni <ezannoni@redhat.com>
1610
1611 * xcoffread.c (N_UNDF, N_ABS, N_TEXT, N_DATA, N_BSS, N_COMM, N_FN,
1612 N_EXT, N_INDR, N_SETA, N_SETT, N_SETD, N_SETB, N_SETV,
1613 CUR_SYMBOL_TYPE, CUR_SYMBOL_VALUE, START_PSYMTAB, END_PSYMTAB,
1614 SET_NAMESTRING): Delete definitions.
1615 Don't include language.h any more.
1616 Don't include partial-stab.h any more.
1617 (scan_xcoff_symtab): Don't jump through hoops to reuse code in
1618 partial-stab.h, include the code directly, instead.
1619
1620 * Makefile.in (xcoffread.o): Remove dependency on partial-stab.h.
1621
447aa9a6
AC
16222001-10-01 Andrew Cagney <ac131313@redhat.com>
1623
1624 * infcmd.c (do_registers_info): Delete code dumping large
1625 registers. Handled by val_print.
1626
85de9627
AC
16272001-09-30 Andrew Cagney <ac131313@redhat.com>
1628
1629 * gdbarch.sh (gdbarch_alloc): Name the new architecture
1630 ``current_gdbarch'' so that it, and not the identically named
1631 global is refered to by macros.
1632 * gdbarch.c: Regenerate.
1633
f3796e26
AC
16342001-09-29 Andrew Cagney <ac131313@redhat.com>
1635
1636 * cli/cli-decode.c (add_set_boolean_cmd): Define.
1637 * cli/cli-decode.h (add_set_boolean_cmd): Declare.
1638 * command.h (add_set_boolean_cmd): Ditto.
1639 * remote.c (_initialize_remote): Use add_set_boolean_cmd for "set
1640 remotebreak"
1641
08e45a40
AC
16422001-09-29 Andrew Cagney <ac131313@redhat.com>
1643
1644 * gdbarch.sh (gdbarch_dump): Sort output.
1645 * gdbarch.c: Regenerate.
1646
e712c1cf
AC
16472001-09-29 Andrew Cagney <ac131313@redhat.com>
1648
1649 * rs6000-tdep.c (rs6000_gdbarch_init): Don't use the previous
1650 architecture to infer the wordsize. Previous architecture may not
1651 be a PowerPC.
1652
d68f31a9
JB
16532001-09-27 J. Brobecker <brobecker@gnat.com>
1654
1655 * infttrace.c (kill_inferior): Issue a TT_PROC_EXIT request rather
1656 than a TT_PROC_STOP request to kill the inferior and its child
1657 processes. Otherwise, the inferior is not killed on HPUX 11.0.
1658 Removed the code that detaches the child processes since we just
1659 killed them.
1660
e3abfe1d
AC
16612001-09-26 Andrew Cagney <ac131313@redhat.com>
1662
1663 * serial.c (serial_set_cmdlist, serial_show_cmdlist): New
1664 variables.
1665 (serial_set_cmd, serial_show_cmd): New functions.
1666 (_initialize_serial): Add "set/show serial" command.
1667
ff1da24e
AC
16682001-09-26 Andrew Cagney <ac131313@redhat.com>
1669
1670 * CONTRIBUTE: Update.
1671
e5e2b9ff
KB
16722001-09-26 Kevin Buettner <kevinb@redhat.com>
1673
1674 * solib-svr4.h (set_solib_svr4_fetch_link_map_offsets): Add
1675 argument ``gdbarch''.
1676 * solib-svr4.c (SVR4_FETCH_LINK_MAP_OFFSETS): Change default value.
1677 (default_svr4_fetch_link_map_offsets): Rename to
1678 legacy_fetch_link_map_offsets().
1679 (svr4_fetch_link_map_offsets): New function.
1680 (fetch_link_map_offsets, fetch_link_map_offsets_init): Deleted.
1681 (fetch_link_map_offsets_gdbarch_data): New static global.
1682 (set_solib_svr4_fetch_link_map_offsets): Add argument ``gdbarch''.
1683 Revise to invoke set_gdbarch_data().
1684 (init_fetch_link_map_offsets): Change return type and add an
1685 argument so that it may be used as a gdbarch_data initializer.
1686 (_initialize_svr4_solib): Eliminate use of gdbarch swap mechanism.
1687 Use gdbarch data mechanism instead.
1688
86ed34a9 16892001-09-25 Jiri Smid <smid@suse.cz>
c74ae012
JS
1690
1691 * x86-64-linux-tdep.c (LINUX_SIGINFO_SIZE): Add.
1692 (x86_64_linux_sigcontext_addr): Replace `sizeof (struct siginfo)'
1693 by LINUX_SIGINFO_SIZE.
1694
4f337972
AC
16952001-09-24 Andrew Cagney <ac131313@redhat.com>
1696
1697 * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): New
1698 variables.
1699 (maintenance_set_profile_cmd): New function.
1700 (maintenance_show_cmd, maintenance_set_cmd): New functions.
1701 (_initialize_maint_cmds): Add "maintenance set" and "maintenance
1702 show" and, commented out, "maintenance set/show profile" commands.
1703
f76febae
AC
17042001-09-24 Andrew Cagney <ac131313@redhat.com>
1705
1706 * findvar.c (read_var_value): For LOC_INDIRECT and LOC_REF_ARG
1707 convert the pointer into a CORE_ADDRs.
1708
96d2f608
AC
17092001-09-24 Andrew Cagney <ac131313@redhat.com>
1710
1711 * doublest.h (store_floating, extract_floating): Add comment
1712 indicating these functions are deprecated.
1713 (extract_typed_floating, store_typed_floating): Declare.
1714 * doublest.c: Include "gdbtypes.h".
1715 (extract_typed_floating, store_typed_floating): Define.
1716
1717 * stabsread.c (define_symbol): Use store_typed_floating.
1718 * valarith.c (value_binop): Ditto.
1719 * values.c (unpack_long): Use extract_typed_floating.
1720 (unpack_double): Ditto.
1721
7ab98e9e
OF
17222001-09-24 Orjan Friberg <orjanf@axis.com>
1723
1724 * cris-tdep.c (reg_mode_add_sub_cmp_and_or_move_op): Fetch operand1
1725 from correct register.
1726
1dbeeb7b
MK
17272001-09-22 Mark Kettenis <kettenis@gnu.org>
1728
1729 * x86-64-linux-tdep.c (STRUCT_OFFSET): Removed.
1730
c4d82c96
JS
17312001-09-21 Jiri Smid <smid@suse.cz>
1732
1733 * config/i386/x86-64linux.mh: New file.
1734 * config/i386/x86-64linux.mt: New file.
1735 * config/i386/nm-x86_64.h: New file.
1736 * x86-64-linux-tdep.c: New file.
1737 * x86-64-linux-nat.c: New file.
1738 * x86-64-tdep.c: New file.
1739 * x86-64-tdep.h: New file.
1740 * i386-tdep.h: New file.
1741 * i387-nat.c: Include i386-tdep.h when multiarch.
1742 * i387-tdep.c: Ditto.
1743 * config/djgpp/fnchange.lst: Add entries for x86_64-linux-tdep.c
1744 and x86_64-linux-nat.c
1745 * Makefile.in: Add x86_64-linux-tdep.o, x86_64-tdep.o,
1746 x86_64-linux-tdep.o, x86_64-nat.o, update dependencies.
1747
cab16195
JS
17482001-09-21 Jiri Smid <smid@suse.cz>
1749
1750 * MAINTAINERS: Add myself to the write-after-approval list.
1751 * i386-nat.c (TARGET_HAS_DR_LEN_8, DR_LEN_8): Declare.
1752 (i386_length_and_rw_bits, i386_handle_nonaligned_watchpoint,
1753 i386_insert_watchpoint, i386_remove_watchpoint): Add support for
1754 8-byte wide watchpoints.
1755 (i386_show_dr): Debug message format string change.
1756
3e9986d2
MS
17572001-09-21 Michael Snyder <msnyder@redhat.com>
1758
1759 * c-exp.y (typebase): Accept (signed long long) as a type expr.
1760
56e2d25a
MS
17612001-09-20 Michael Snyder <msnyder@redhat.com>
1762 Changes by Daniel Berlin <dan@cgsoftware.com>, to support
1763 better parsing of const and volatile type expressions.
1764 * c-exp.y (const_and_volatile, const_or_volatile_noopt,
1765 const_or_volatile): New non-terminals.
1766 (ptype): Use new rule for const_or_volatile.
1767 (typebase): Use new rule for const_or_volatile_noopt.
1768 * parser-defs.h (enum type_pieces): New values tp_const, tp_volatile.
1769 * parse.c (follow_types): Handle tp_const and tp_volatile on the
1770 type stack: call make_cv_type to create new const/volatile type.
1771
1c4dcb57
KB
17722001-09-20 Kevin Buettner <kevinb@redhat.com>
1773
1774 * solib-svr4.c (fetch_link_map_offsets): Add comment.
1775 (fetch_link_map_offsets_init): New static global.
1776 (set_solib_svr4_fetch_link_map_offsets, init_fetch_link_map_offsets):
1777 Revise implementation to use ``fetch_link_map_offsets_init''
1778 instead of ``fetch_link_map_offsets''.
1779
3a42e9d0
AM
17802001-09-20 Alan Modra <amodra@bigpond.net.au>
1781
1782 * coffread.c: Replace all occurrences of bfd_read with bfd_bread.
1783 * dbxread.c: Likewise.
1784 * dwarf2read.c: Likewise.
1785 * dwarfread.c: Likewise.
1786 * somread.c: Likewise.
1787 * ultra3-nat.c: Likewise.
1788 * xcoffread.c: Likewise.
1789
e0441cf0
AC
17902001-09-19 Andrew Cagney <ac131313@redhat.com>
1791
8535cb38
AC
1792 * cris-tdep.c (cris_get_signed_offset): Change return type to an
1793 explicitly signed char.
1794
e0441cf0
AC
1795 * config/mcore/tm-mcore.h (mcore_virtual_frame_pointer): Update
1796 function signature to match recent tracepoint.c:encode_actions
1797 changes.
1798 * mcore-tdep.c (mcore_virtual_frame_pointer): Ditto.
1799
2b65245e
AC
18002001-09-18 Andrew Cagney <ac131313@redhat.com>
1801
1802 * thread.c (do_captured_thread_select): Add uiout parameter.
1803 (do_captured_list_thread_ids): Ditto.
1804 * breakpoint.c (do_captured_breakpoint_query): Ditto.
1805
1806 * breakpoint.c (gdb_breakpoint_query): Update. Use
1807 catch_exceptions.
1808 * thread.c (gdb_list_thread_ids): Ditto.
1809 (gdb_thread_select): Ditto.
1810 (thread_command): Pass uiout to gdb_thread_select.
1811
1812 * gdb.h (gdb_breakpoint_query): Add parameter ui_out.
1813 (gdb_thread_select, gdb_list_thread_ids): Ditto.
1814
2069d78d
KB
18152001-09-13 Kevin Buettner <kevinb@redhat.com>
1816
1817 From Ilya Golubev <gin@mo.msk.ru>:
1818 * solib.c (clear_solib): Call `remove_target_sections' to fix
1819 stale pointers in `struct target_ops'.
1820 * irix5-nat.c (clear_solib): Likewise.
1821 * osfsolib.c (clear_solib): Likewise.
1822
348d75a5
JB
18232001-09-13 Jim Blandy <jimb@redhat.com>
1824
e8816aac
JB
1825 * monitor.c (monitor_load): Don't delete symtab users, or reset
1826 inferior_ptid.
1827
348d75a5
JB
1828 * monitor.c (monitor_load): Fix indentation.
1829
18302001-09-11 Jim Blandy <jimb@redhat.com>
1831
1832 * printcmd.c (print_scalar_formatted): Compare the length of the
1833 value against the lengths of the target's floating-point types,
1834 not the host's. Add support for `long double'.
1835
1836 * printcmd.c (print_scalar_formatted): Fix indentation.
1837
a5666cc9
JB
18382001-09-10 Jim Blandy <jimb@redhat.com>
1839
1840 * rom68k-rom.c (init_rom68k_cmds): Set the flag indicating that
1841 programs running on the board can produce output.
1842
6d6b80e5
JM
18432001-09-10 Jason Molenda (jmolenda@apple.com)
1844
1845 * NEWS: "ANS/ISO C" -> "ISO C".
1846 * MAINTAINERS (write-after-approval): Update my entry.
1847
7fc73f38
MK
18482001-09-08 Mark Kettenis <kettenis@gnu.org>
1849
df5fdb3d
MK
1850 * config/xm-aix4.h (MEM_FNS_DECLARED): Removed.
1851
4ad318e6
MK
1852 * config/arm/xm-linux.h, config/ia64/xm-linux.h,
1853 config/m68k/xm-linux.h, config/mips/xm-linux.h,
1854 config/powerpc/xm-linux.h, config/sparc/xm-linux.h: Remove
1855 redundant inclusion of <unistd.h>.
1856
7fc73f38
MK
1857 * gdbtypes.h (struct block): Add forward declaration.
1858
f9c696d2
AC
18592001-09-07 Andrew Cagney <ac131313@redhat.com>
1860
1861 * defs.h (enum return_reason): Renumber so that all values are
1862 negative.
1863 (RETURN_MASK): Negate reason.
1864 (catch_exception_ftype): Declare.
1865 (catch_exceptions): Declare.
1866 * top.c (catcher): New function, based on catch_errors. Add in
1867 parameter func_uiout and out parameters func_val, func_caught and
1868 func_cleanup. Change type of func to catch_exceptions_ftype.
1869 Save/restore uiout.
1870 (struct catch_errors_args): Define.
1871 (do_catch_errors): New function.
1872 (catch_errors): Rewrite, use do_catch_errors and catcher.
1873 (catch_exceptions): New function, use catcher.
1874
a2e2dd80
JB
18752001-09-07 Jim Blandy <jimb@redhat.com>
1876
1877 Correctly parse register values provided by the monitor.
1878 * rom68k-rom.c: #include "value.h".
1879 (is_hex_digit, hex_digit_value, is_whitespace,
1880 rom68k_supply_one_register): New static functions.
1881 (rom68k_supply_register): Call rom68k_supply_one_register, instead
1882 of monitor_supply_register; the latter was incorrectly parsing
1883 the values.
1884 * Makefile.in (rom68k-rom.o): Note that this now #includes value.h.
1885
93befcf3
MK
18862001-09-07 Mark Kettenis <kettenis@gnu.org>
1887
1888 * config/rs6000/xm-rs6000.h (setpgrp): Remove macro. GDB defaults
1889 to using setpgid if available now.
1890
b381d62d
KS
18912001-09-06 Keith Seitz <keiths@redhat.com>
1892
1893 From Ian Roxborough <irox@redhat.com>
1894 * configure.in: Use ITCL_LIB_FULL_PATH and
1895 ITK_LIB_FULL_PATH to set Itcl and Itk dependancies
1896 for gdb.
1897 * configure: Regenerated.
1898
9a058a09
KB
18992001-09-06 Kevin Buettner <kevinb@redhat.com>
1900
1901 * dbxread.c (process_one_symbol): Don't use error result from
1902 find_stab_function_addr().
1903 * partial-stab.h (case 'F'): Likewise.
1904
1905 * partial-stab.h (case 'f'): Make SOFUN_ADDRESS_MAYBE_MISSING
1906 code match that used for case 'F'. This fixes the divergence
1907 that was introduced by my 1999-09-14 changes to partial-stab.h.
1908
2bf0cb65
EZ
19092001-09-05 Elena Zannoni <ezannoni@redhat.com>
1910
1911 * gdbarch.sh: Move include of dis-asm.h so it is generated earlier
1912 in gdbarch.h.
1913 (TARGET_PRINT_INSN): Multiarch.
1914 * gdbarch.h: Regenerate.
1915 * gdbarch.c: Regenerate.
1916
1917 * arch-utils.c (legacy_print_insn): New function.
1918 * arch-utils.h (legacy_print_insn): Export.
1919
1920 * cris-tdep.c (cris_delayed_get_disassembler): Use
1921 TARGET_PRINT_INSN, instead of tm_print_insn.
1922 * d10v-tdep.c (print_insn): Ditto.
1923 * d30v-tdep.c (print_insn): Ditto.
1924 * m32r-tdep.c (dump_insn): Ditto.
1925 * v850-tdep.c (v850_scan_prologue): Ditto.
1926 * mcore-tdep.c (mcore_dump_insn): Ditto.
1927 * sh-tdep.c (sh_gdbarch_init): Set print_insn gdbarch field.
1928
6369010f
JB
19292001-09-05 Jim Blandy <jimb@redhat.com>
1930
1931 * gdbtypes.h (struct type): Doc fix.
1932
d3d55eeb
EZ
19332001-09-04 Elena Zannoni <ezannoni@redhat.com>
1934
1935 From Daniel Jacobowitz <drow@mvista.com>
1936 * dbxread.c (free_header_files): Make global.
1937 (init_header_files): Likewise.
1938 * stabsread.h (free_header_files): Add prototype.
1939 (init_header_files): Likewise.
1940 * mdebugread.c (mdebug_build_psymtabs): Initialize
1941 properly before using the stabs debug reader.
1942
16db6055 19432001-09-04 Elena Zannoni <ezannoni@redhat.com>
ef96bde8
EZ
1944
1945 From Daniel Jacobowitz <drow@mvista.com>
1946 * dbxread.c (dbx_symfile_read): Only reinitialize
1947 the psymbol list if mainline or if both static
1948 and global lists are empty.
1949 * dwarf2read.c (dwarf2_build_psymtabs): Likewise.
1950 * dwarfread.c (dwarf_build_psymtabs): Likewise.
1951 * xcoffread.c (xcoff_initial_scan): Likewise.
1952 * os9kread.c (os9k_symfile_read): Likewise.
16db6055 1953
ef96bde8
EZ
19542001-09-04 Elena Zannoni <ezannoni@redhat.com>
1955
16db6055
EZ
1956 From Daniel Jacobowitz <drow@mvista.com>
1957 * mdebugread.c (psymtab_to_symtab_1): Handle N_SO stabs without
1958 a name specially.
1959
f77b92bf
MK
19602001-09-01 Mark Kettenis <kettenis@gnu.org>
1961
1962 Make GDB use libiberty regex implementation.
1963 * gdb_regex.h: Normalize protection against multiple inclusion.
1964 Include "xregex.h" instead of "gnu-regex.h".
1965 * cli/cli-cmds.c: Include "gdb_regex.h" instead of "gnu-regex.h".
1966 * cli/cli-decode.c: Likewise.
1967 * Makefile.in (REGEX): Remove.
1968 (GDB_CFLAGS): Remove reference to gnu-regex.h in comment.
1969 (ADD_FILES, ADD_DEPS): Remove $(REGEX).
1970 (POSSLIBS): Remove.
1971 (TAGFILES_NO_SRCDIR): Remove $(POSSLIBS).
1972 (irix5-nat.o, solib.o, solib-svr4.o, source.o, symtab.o,
1973 xcoffsolib.o, cli-decode.o, cli-cmd.o): Replace gnu-regex.h with
1974 gdb_regex.h in list of dependencies.
1975 (gnu-regex.o): Remove rule.
1976 * gnu-regex.c, gnu-regex.h: Remove files.
1977
a4f30b31
MS
19782001-08-31 Jason Molenda (jmolenda@apple.com)
1979
1980 * c-valprint.c (c_val_print): Second call to check_typedef ()
1981 is no longer necessary.
1982
902d7086
KB
19832001-08-31 Kevin Buettner <kevinb@redhat.com>
1984
1985 * ia64-tdep.c (examine_prologue): Don't let a branch unit nop
1986 terminate the prologue scan.
1987
2889e661
JB
19882001-08-30 Jim Blandy <jimb@redhat.com>
1989
9ec8e6a0
JB
1990 * symfile.c (sections_overlap): New function.
1991 (map_overlay_command): Call sections_overlap, instead of using
1992 incorrect logic to recognize overlapping sections.
1993
2889e661
JB
1994 * symfile.c (load_command): Invalidate the overlay cache.
1995
cd903d53
MK
19962001-08-30 Mark Kettenis <kettenis@gnu.org>
1997
1998 * config/i386/xm-i386.h (HOST_BYTE_ORDER): Removed.
1999
8ad2fcde
KB
20002001-08-29 Kevin Buettner <kevinb@redhat.com>
2001
2002 From 2001-08-07 Daniel Jacobowitz <drow@mvista.com>:
2003 * solib-svr4.c (enable_break): Check the inferior link map
2004 before assuming the inferior PC is at the start of the dynamic
2005 loader.
2006
e8759349
AC
20072001-08-28 Andrew Cagney <cagney@toribio.toronto.redhat.com>
2008
2009 * frame.h (struct frame_info): Fix documentation on fields
2010 saved_regs, next and prev.
2011
46711df8
MK
20122001-08-23 Mark Kettenis <kettenis@gnu.org>
2013
2014 * event-top.c (async_stop_sig) [HAVE_SIGPROCMASK]: Some
2015 gratuitious whitespace changes.
2016 [!HAVE_SIGPROCMASK]: Call sigsetmask if HAVE_SIGSETMASK is defined.
2017 * top.c: Remove redundant logic to define HAVE_SIGSETMASK.
2018 (sigsetmask) Don't define macro.
2019 (stop_sig) [HAVE_SIGPROCMASK]: Add bit of code snatched from
2020 async_stop_sig from event-top.c.
2021 [!HAVE_SIGPROCMASK]: Call sigsetmask if HAVE_SIGSETMASK is
2022 defined.
2023 * configure.in (AC_CHECK_FUNCS): Put functions in alphabetical
2024 order. Add sigsetmask.
2025 (AC_FUNC_VFORK, AC_FUNC_ALLOCA): Reorder such that they're in
2026 alphabetical order.
2027 * config/xm-aix4.h, config/alpha/xm-alphalinux.h,
2028 config/i386/xm-cygwin.h, config/rs6000/xm-rs6000.h
2029 (HAVE_SIGSETMASK): Remove.
964840f7 2030 * aclocal.m4, config.in, configure: Regenerated.
46711df8 2031
526eeb95
AC
20322001-08-26 Andrew Cagney <ac131313@redhat.com>
2033
2034 From 2001-06-29 Andrew Cagney <ac131313@redhat.com>:
2035 * config/powerpc/nbsd.mh (XM_FILE): Delete.
2036
c16ac28f
AC
20372001-08-21 Andrew Cagney <ac131313@redhat.com>
2038
2039 * doublest.h (HOST_FLOAT_FORMAT): Delete macro.
2040 (HOST_DOUBLE_FORMAT): Delete macro.
2041
ceacb162
MK
20422001-08-24 Mark Kettenis <kettenis@gnu.org>
2043
2044 * config/xm-lynx.h, config/xm-nbsd.h, config/xm-sysv4.h,
2045 config/i386/xm-i386aix.h, config/m68k/xm-dpx2.h: Remove redundant
2046 inclusion of <limits.h>.
2047
275f450c
AC
20482001-08-24 Andrew Cagney <ac131313@redhat.com>
2049
2050 * regcache.c (read_register_bytes): When REGISTER_NAME indicates
2051 that a register should be ignored, supply a value for the register
2052 from the raw registers[] buffer.
2053
12a498f3
AC
20542001-08-24 Andrew Cagney <ac131313@redhat.com>
2055
2056 * go32-nat.c (go32_create_inferior): Use xfree instead of free.
2057 * config/djgpp/fnchange.lst: Add entries for i386bsd-tdep.c and
2058 i386bsd-nat.c.
2059
598f52df
AC
20602001-08-21 Andrew Cagney <ac131313@redhat.com>
2061
2062 * gdbtypes.h (builtin_type_ieee_single_big)
2063 (builtin_type_ieee_single_little, builtin_type_ieee_double_big)
2064 (builtin_type_ieee_double_little)
2065 (builtin_type_ieee_double_littlebyte_bigword)
2066 (builtin_type_i387_ext, builtin_type_m68881_ext)
2067 (builtin_type_i960_ext, builtin_type_m88110_ext)
2068 (builtin_type_m88110_harris_ext, builtin_type_arm_ext_big)
2069 (builtin_type_arm_ext_littlebyte_bigword)
2070 (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
2071 (builtin_type_ia64_quad_big)
2072 (builtin_type_ia64_quad_little): Declare.
2073 * gdbtypes.c (builtin_type_ieee_single_big)
2074 (builtin_type_ieee_single_little, builtin_type_ieee_double_big)
2075 (builtin_type_ieee_double_little)
2076 (builtin_type_ieee_double_littlebyte_bigword)
2077 (builtin_type_i387_ext, builtin_type_m68881_ext)
2078 (builtin_type_i960_ext, builtin_type_m88110_ext)
2079 (builtin_type_m88110_harris_ext, builtin_type_arm_ext_big)
2080 (builtin_type_arm_ext_littlebyte_bigword)
2081 (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
2082 (builtin_type_ia64_quad_big)
2083 (builtin_type_ia64_quad_little): Define.
2084 (_initialize_gdbtypes): Initialize builtin floatformat types.
2085
1a6fae3c
MK
20862001-08-23 Mark Kettenis <kettenis@gnu.org>
2087
2088 * tracepoint.c (read_actions): Add FIXME for code depending on
2089 STOP_SIGNAL.
2090
7829b833
MH
20912001-08-23 Martin M. Hunt <hunt@redhat.com>
2092
2093 * remote-mips.c (pmon_load_fast): Add ui_load_progress_hook
2094 to download loop.
2095 (mips_load_srec): Ditto.
2096
701c159d
AC
20972001-08-22 Andrew Cagney <ac131313@redhat.com>
2098
2099 * gdbtypes.c (build_gdbtypes): Initialize TYPE_FLOATFORMAT field
2100 of builtin_type_float, builtin_type_double and
2101 builtin_type_long_double.
2102 (recursive_dump_type): Print the floatformat name.
2103 * gdbtypes.h (struct type): Add type_specific field floatformat.
2104 (TYPE_FLOATFORMAT): Define
2105
99a6d8ba
KS
21062001-08-21 Keith Seitz <keiths@redhat.com>
2107
2108 * printcmd.c (print_insn): Use the given stream for
2109 output.
2110
a37b3cc0
AC
21112001-07-24 Andrew Cagney <ac131313@redhat.com>
2112
2113 * arm-tdep.c (convert_from_extended, convert_to_extended): Delete
2114 assembler version of function.
2115 (convert_from_extended, convert_to_extended): Rewrite. Use
2116 floatformat_to_doublest, floatformat_from_doublest,
2117 floatformat_arm_ext_big, floatformat_arm_ext_littlebyte_bigword.
2118 (arm_push_arguments): Use extract_floating and store_floating to
2119 perform floating point conversions.
2120 (SWAP_TARGET_AND_HOST): Delete macro.
2121 * arm-linux-tdep.c (arm_linux_push_arguments): Use
2122 extract_floating and store_floating to perform floating point
2123 conversions.
2124
1c72f9b0
AC
21252001-08-20 Andrew Cagney <ac131313@redhat.com>
2126
2127 * gdbtypes.h (struct type): Clarify meaning of field ``length''.
2128
705da579
KS
21292001-08-17 Keith Seitz <keiths@redhat.com>
2130
2131 * varobj.c (varobj_update): Change first parameter to
2132 pointer to struct varobj*. This function can delete
2133 varobjs, so we need to give callers the new varobj
2134 when this happens.
2135 (value_of_root): Update "var", too, if "var_handle"
2136 changes.
2137 * varobj.h (varobj_update): Likewise.
2138
2bf63d86
KS
21392001-08-17 Keith Seitz <keiths@redhat.com>
2140
2141 * Makefile.in (varobj_h): Define.
2142 (mi-cmd-var.o): Depends on varobj_h.
2143 (gdbtk-varobj.o): Change varobj.h to $(varobj_h).
2144
d1c3b63a
KS
21452001-08-16 Keith Seitz <keiths@redhat.com>
2146
2147 * configure.in (GDBTK_SRC_DIR): We must have autoconf
2148 give us the absolute path to the source directory.
2149 * configure: Regenerated.
2150 * Makefile.in (GDBTK_SRC_DIR): Add variable so that
2151 autoconf can substitue it in for us.
2152 (gdbtk.o): Pass in GDBTK_SRC_DIR instead of srcdir. We
2153 really do need an absolute pathname.
2154
f0b743a9
KS
21552001-08-15 Keith Seitz <keiths@redhat.com>
2156
2157 * Makefile.in (GDBTK_VERSION): Set a version number.
2158 (GDBTK_LIBRARY): New variable to point to location where
2159 gdbtk will install its tcl library. Changed all refereneces
2160 to $(datadir)/insight1.0 to $(GDBTK_LIBRARY).
2161 (SUBDIR_GDBTK_ALL): Remove "all-gdbtk". No longer needed.
2162 (SUBDIR_GDBTK_CLEAN): Remove "clean-gdbtk". No longer needed.
2163 (all-gdbtk): Remove.
2164 (install-gdbtk): Remove.
2165 (gdbtk.o): Pass srcdir to file when compiling.
2166
21672001-08-15 Ian Roxborough <irox@redhat.com>
2168
2169 * Makefile.in: Changed all references to the install directory
2170 "gdbtcl" to read "insight1.0".
2171
bdcd319a
CV
21722001-08-15 Corinna Vinschen <vinschen@redhat.com>
2173
2174 * arch-utils.c (generic_skip_trampoline_code): New function.
2175 * arch-utils.h (generic_skip_trampoline_code): Declare external.
2176 * gdbarch.c: Regeberated from gdbarch.sh.
2177 * gdbarch.h: Ditto.
2178 * gdbarch.sh (SKIP_TRAMPOLINE_CODE): Multi-arch.
2179 * infrun.c: Remove default setting of SKIP_TRAMPOLINE_CODE macro.
2180
40b3352b
L
21812001-08-14 Daniel Jacobowitz <drow@mvista.com>
2182 H.J. Lu (hjl@gnu.org)
2183
2184 * partial-stab.h: valu should be a CORE_ADDR.
2185
21862001-08-14 H.J. Lu (hjl@gnu.org)
2187
2188 * dbxread.c (SWAP_SYMBOL): Removed.
2189 (INTERNALIZE_SYMBOL): Check sign extended vma.
2190
ae9d9b96
CF
21912001-08-13 Christopher Faylor <cgf@cygnus.com>
2192
2193 * top.c (SIGSETJMP): Protect env argument with parentheses.
2194 (SIGLONGJMP): Protect env argument with parentheses.
2195
6ca173e3
AC
21962001-08-11 Andrew Cagney <ac131313@redhat.com>
2197
2198 * config/mn10300/mn10300.mt (TM_FILE): Delete.
2199 * configure.tgt: Add mn10300 to list of mulit-arch targets.
2200 * config/mn10300/tm-mn10300.h: Delete file. Move contents ...
2201 * mn10300-tdep.c: To here.
2202
5ea92dfe
AC
22032001-08-11 Andrew Cagney <ac131313@redhat.com>
2204
2205 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_VIRTUAL): Make
2206 val a DOUBLEST. Use floatformat_to_doublest.
2207 (REGISTER_CONVERT_TO_RAW): Ditto. Use foatformat_from_doublest.
2208 * config/m88k/tm-m88k.h (REGISTER_CONVERT_TO_VIRTUAL): Ditto.
2209 (REGISTER_CONVERT_TO_RAW): Ditto.
2210
a15525c1
AC
22112001-08-11 Andrew Cagney <ac131313@redhat.com>
2212
2213 * config/mn10300/tm-mn10300.h (PC_REGNUM, SP_REGNUM): Delete.
2214 * mn10300-tdep.c (mn10300_gdbarch_init): Initialize pc_regnum and
2215 sp_regnum.
2216
c422e771
AC
22172001-08-11 Andrew Cagney <ac131313@redhat.com>
2218
2219 * doublest.c (convert_doublest_to_floatformat): Rename
2220 floatformat_from_doublest. Make static.
2221 (convert_floatformat_to_doublest): Rename floatformat_to_doublest.
2222 Make static.
2223 (floatformat_to_doublest): New function.
2224 (floatformat_from_doublest): New function.
2225 (host_float_format, host_double_format, host_long_double_format):
2226 New static variables.
2227 (store_floating, extract_floating): Always use
2228 floatformat_to_doublest and floatformat_from_doublest.
2229 * doublest.h (HOST_LONG_DOUBLE_FORMAT): Delete macro.
2230
f096a152
AC
22312001-08-11 Andrew Cagney <ac131313@redhat.com>
2232
2233 * config/mn10300/tm-mn10300.h (INIT_FRAME_PC): Delete.
2234 * mn10300-tdep.c (mn10300_gdbarch_init): Initialize init_frame_pc.
2235
39d4ef09
AC
22362001-08-07 Andrew Cagney <ac131313@redhat.com>
2237
2238 * target.h (TARGET_VIRTUAL_FRAME_POINTER): Delete, multi-arched.
2239 * gdbarch.sh (TARGET_VIRTUAL_FRAME_POINTER): Add.
2240 * gdbarch.h, gdbarch.c: Regenerate.
2241
2242 * arch-utils.h (legacy_virtual_frame_pointer): Declare.
2243 * arch-utils.c: Include "gdb_assert.h".
2244 (legacy_virtual_frame_pointer): Define.
2245 * Makefile.in (arch-utils.o): Depends on gdb_assert.h.
2246
2247 * tracepoint.c (encode_actions): Make frame_reg an int. Make
2248 frame_offset a LONGEST.
2249 * ax-gdb.c (gen_frame_args_address): Ditto.
2250 (gen_frame_locals_address): Ditto.
2251 * mn10300-tdep.c (mn10300_gdbarch_init): Initialize
2252 virtual_frame_pointer.
2253 (mn10300_virtual_frame_pointer): Make static. Update parameter
2254 list to match function signature.
2255 * config/mn10300/tm-mn10300.h (TARGET_VIRTUAL_FRAME_POINTER): Delete.
2256
67c2c32c
KS
22572001-08-10 Keith Seitz <keiths@redhat.com>
2258
2259 * gdb-events.sh: Add architecture_changed event.
2260 * gdbarch.sh: Include gdb-event.h.
2261 (gdbarch_update_p): Notify UIs when architecture changes.
2262 * gdb-events.h: Regenerated.
2263 * gdb-events.c: Regenerated.
2264 * gdbarch.c: Regenerated.
2265
1297a2f0
MS
22662001-08-10 Michael Snyder <msnyder@redhat.com>
2267
2268 * regcache.c (legacy_write_register_gen): Don't 'optimize out'
2269 a write_register to a pseudo-reg. Target_store_pseudo_register
2270 needs to get called, because these regs may be computed and may
2271 have side-effects.
2272
fd969be2
KS
22732001-08-10 Keith Seitz <keiths@redhat.com>
2274
2275 * gdb-events.sh: Deal with event notifications with no
2276 arguments.
2277
fb6e5c55
OF
22782001-08-10 Orjan Friberg <orjanf@axis.com>
2279
2280 * remote.c (read_frame): Correct off-by-one error in condition.
2281
a1bab801
DH
22822001-08-08 Don Howard <dhoward@redhat.com>
2283
2284 * stabsread.c (read_type): Add support for const and volatile
2285 modifiers.
2286
455ecc72
DJ
22872001-08-02 Daniel Jacobowitz <drow@mvista.com>
2288
2289 * core-regset.c (fetch_core_registers): Remove HAVE_GREGSET_T
2290 and HAVE_FPREGSET_T checks. Use gdb_gregset_t and gdb_fpregset_t.
2291
a5cedf2f
KS
22922001-08-02 Keith Seitz <keiths@redhat.com>
2293
2294 * defs.h (SLASH_STRING): If not defined, set
2295 to "/", regardless of _WIN32, __CYGWIN__, or
2296 whatnot.
2297
d7275149
MK
22982001-08-02 Mark Kettenis <kettenis@gnu.org>
2299
cc6dd2c0
MK
2300 * cli/cli-decode.h: Include "gdb_regex.h" instead of
2301 "gnu-regex.h".
2302
d7275149
MK
2303 * NEWS: Update.
2304
40cd916f
EZ
23052001-08-02 Eli Zaretskii <eliz@is.elta.co.il>
2306
2307 * config/i386/xm-go32.h: Include xm-i386.h.
2308 (HOST_BYTE_ORDER, HOST_LONG_DOUBLE_FORMAT): Remove definitions.
2309
b5de0fa7
EZ
23102001-08-02 Eli Zaretskii <eliz@is.elta.co.il>
2311
2312 The following changes avoid polluting global namespace with the
2313 `enable' and `disable' identifiers, because some platforms define
2314 in their system headers symbols with global scope that go by those
2315 names.
2316
2317 * breakpoint.h (enum enable_state): Rename from `enum enable'.
2318 Also rename all the enum members to have the "bp_" prefix.
2319 (struct breakpoint): Rename the `enable' member to `enable_state'.
2320 (enum bpdisp): Rename all members to have the "disp_" prefix.
2321
2322 * breakpoint.c: All users of `enum enable' and `enum bpdisp'
2323 changed.
2324 (args_for_catchpoint_enable): Rename the `enable' member to
2325 `enable_p'. All users changed.
2326
2327 * tracepoint.h (enum enable): Remove.
2328 (struct tracepoint): The member `enabled' is now `int enabled_p'.
2329
2330 * tracepoint.c: All users of the `enabled' member changed.
2331
2332 * printcmd.c (struct display): The `status' member is now an int.
2333
2334 * memattr.h (struct mem_region): Rename the `status' member to
2335 `enabled_p'.
2336 (enum enable): Remove.
2337
2338 * memattr.c: Change all users of the `status' member of struct
2339 mem_region to use `enabled_p' instead.
2340
2341 * infcmd.c (run_stack_dummy): Use disp_del instead of del.
2342
2343 * go32-nat.c: Remove the kludgey work-around for conflicts between
2344 <dos.h> and "breakpoint.h".
2345
ad4571f3
CV
23462001-08-02 Corinna Vinschen <vinschen@redhat.com>
2347
2348 * MAINTAINERS: Add myself to the write-after-approval list.
2349 * ser-tcp.c (tcp_open): Use `localhost' as default host if no
2350 hostname is given.
2351
64f6fcad
AC
23522001-08-01 Andrew Cagney <ac131313@redhat.com>
2353
2354 * doublest.h (store_floating, floatformat_to_doublest): Make IN
2355 paramter a const void pointer.
2356 (floatformat_from_doublest): Make IN const, Make OUT a void
2357 pointer.
2358 * doublest.c (floatformat_to_doublest): Update.
2359 (floatformat_from_doublest): Update.
2360 (extract_floating): Update.
2361
d16aafd8
AC
23622001-07-31 Andrew Cagney <ac131313@redhat.com>
2363
2364 * defs.h (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
2365 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
2366 (HOST_LONG_DOUBLE_FORMAT, DOUBLEST)
2367 (floatformat_to_doublest, floatformat_from_doublest)
2368 (floatformat_is_negative, floatformat_is_nan)
2369 (floatformat_mantissa, store_floating)
2370 (extract_floating): Move declaration from here.
2371 * doublest.h: To here. New file.
2372 * utils.c (get_field, floatformat_to_doublest, put_field)
2373 (ldfrexp, floatformat_from_doublest, floatformat_is_negative)
2374 (floatformat_is_nan, floatformat_mantissa)
2375 (FLOATFORMAT_CHAR_BIT): Move from here.
2376 * doublest.c: To here. New file.
2377 * findvar.c (store_floating, extract_floating): Move from here.
2378 * doublest.c: To here.
2379 * Makefile.in (SFILES): Add doublest.c.
2380 (COMMON_OBS): Add doublest.o.
2381 (doublest.o): Specify dependencies.
2382 (doublest_h): Define.
2383
2384 * config/m88k/tm-m88k.h: Include "doublest.h".
2385 * config/i960/tm-i960.h: Ditto.
2386 * config/i386/tm-symmetry.h: Ditto.
2387 * rs6000-tdep.c, valarith.c: Ditto.
2388 * valprint.c, stabsread.c, sh-tdep.c: Ditto.
2389 * ia64-tdep.c, i387-tdep.c, i386-tdep.c: Ditto.
2390 * values.c, arm-tdep.c, arm-linux-tdep.c: Ditto.
2391 * alpha-tdep.c, ax.h, expression.h: Ditto.
2392 * sh-tdep.c, parse.c, top.c, value.h: Ditto.
2393
2394 * Makefile.in (arm-tdep.o): Add $(doublest_h).
2395 (i386-tdep.o, i387-tdep.o, ia64-tdep.o): Ditto.
2396 (rs6000-tdep.o, stabsread.o, valarith.o): Ditto.
2397 (values.o, valprint.o, arm-linux-tdep.o): Ditto.
2398 (alpha-tdep.o, ax_h, parse.o, top.o, value_h): Ditto.
2399 (parser_defs_h): Ditto.
2400 (expression_h): Add $(doublest_h) and $(symtab_h).
2401
1b0cad1c
AC
24022001-08-01 Andrew Cagney <ac131313@redhat.com>
2403
2404 * Makefile.in: Sort header definitions.
2405 (parser_defs_h, dis_asm_h, annotate_h, gdbthread_h): Define.
2406 Replace parser-defs.h with $(parser_defs_h). Replace $(dis-asm_h)
2407 and $(dis-asm.h) with $(dis_asm_h). Replace annotate.h with
2408 $(annotate_h). Replace target.h with $(target_h). Replace
2409 gdbthread.h with $(gdb_thread_h). Replace symfile.h with $(symfile_h).
2410
1ca66634
MK
24112001-07-31 Mark Kettenis <kettenis@gnu.org>
2412
2413 * config/i386/xm-i386.h: New file.
2414 * config/i386/xm-fbsd.h: Removed.
2415 * config/i386/xm-linux.h: Removed.
2416 * config/i386/fbsd.mh: Reorganize a bit.
2417 (XM_FILE): Set to xm-i386.h instead of xm-fbsd.h.
2418 * config/i386/linux.mh (XM_FILE): Set to xm-i386.h insread of
2419 xm-linux.h.
2420
9e84cbde
JB
24212001-07-30 Jim Blandy <jimb@redhat.com>
2422
2423 * dwarf2read.c (dwarf2_build_psymtabs_hard): Doc fix.
2424
72473524
DJ
24252001-07-27 Daniel Jacobowitz <drow@mvista.com>
2426
2427 * configure.in: Only invoke AC_FUNC_SETPGRP if not cross-compiling.
2428 Check for SETPGRP_VOID separately if cross-compiling and ISO C
2429 headers are available.
2430
8d7f6b4a
MK
24312001-07-30 Mark Kettenis <kettenis@gnu.org>
2432
4b418e06
MK
2433 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Redefine to call
2434 i386_dwarf_reg_to_regnum.
2435
8d7f6b4a
MK
2436 * i386-tdep.c (i386_register_convert_to_virtual): Replace
2437 assertion with a warning if we're asked to convert towards a
2438 non-floating-point type. Zero out the the buffer where the data
2439 is supposed to be stored in that case.
2440
6c56c069
EZ
24412001-07-29 Eli Zaretskii <eliz@is.elta.co.il>
2442
f959bc41
EZ
2443 * config/djgpp/djconfig.sh: Unset CDPATH.
2444
a3b9cbb3
EZ
2445 * go32-nat.c (get_cr3): Temporary disable support for page tables
2446 in UMBs, as it is incomplete.
2447
6c56c069
EZ
2448 Support for stepping through longjmp in DJGPP programs:
2449
2450 * config/i386/tm-go32.h (JB_ELEMENT_SIZE, JB_PC): New macros.
2451 (GET_LONGJMP_TARGET): Define to call get_longjmp_target.
2452 (get_longjmp_target): Add prototype.
2453
de6ee558
AC
24542001-07-28 Andrew Cagney <ac131313@redhat.com>
2455
2456 Fix some PID/TPID fallout for HP/UX.
2457 From 2001-07-22 Rodney Brown <rbrown64@csc.com.au>:
2458 * infttrace.c (ptrace_wait): Match external declaration,
2459 and match target_post_wait declaration.
2460
93755ae6
AC
24612001-07-28 Andrew Cagney <ac131313@redhat.com>
2462
2463 * MAINTAINERS: Add Orjan Friberg as cris target maintainer.
158ff1e6 2464 (cris): Set --enable-gdb-build-warnings flag to -w.
93755ae6 2465
16f769f3
AC
24662001-07-28 Andrew Cagney <ac131313@redhat.com>
2467
2468 From 2001-07-23 Andreas Schwab <schwab@suse.de>:
2469 * config/m68k/tm-m68k.h (TARGET_LONG_DOUBLE_FORMAT): Define.
2470 (TARGET_LONG_DOUBLE_BIT): Define.
2471 (REGISTER_VIRTUAL_SIZE): Return 12 for floating point registers.
2472 (MAX_REGISTER_VIRTUAL_SIZE): Increase to 12.
2473 (REGISTER_VIRTUAL_TYPE): Return builtin_type_long_double for
2474 floating point registers.
2475 (REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL)
2476 (REGISTER_CONVERT_TO_RAW): Remove.
2477 * config/m68k/xm-linux.h (HOST_LONG_DOUBLE_FORMAT): Define.
2478
5b7f31a4
AC
24792001-07-26 Andrew Cagney <ac131313@redhat.com>
2480
2481 * thread.c, breakpoint.c: Include "gdb.h".
2482 * Makefile.in (gdb_h): Define.
2483 (HFILES_NO_SRCDIR): Add gdb.h.
2484 (mi-cmd-break.o, mi-main.o, thread.o)
2485 (breakpoint.o): Add dependency on $(gdb_h).
2486
2487 * defs.h (enum gdb_rc, gdb_breakpoint_query)
2488 (gdb_breakpoint, gdb_thread_select)
2489 (gdb_list_thread_ids): Move declaration from here ...
2490 * gdb.h: To here. New file.
2491
8aaf581c
SC
24922001-07-28 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2493
2494 * Makefile.in (SUBDIR_TUI_OBS): Add tui-out.o, tui-hooks.o.
2495 (SUBDIR_TUI_SRCS): Add tui-out.c tui-hooks.c
2496 (SFILES): Likewise.
2497 (tui-out.o): Define dependencies.
2498 (tui-hooks.o): Likewise.
2499
f9e2d830
AC
25002001-07-28 Andrew Cagney <ac131313@redhat.com>
2501
2502 * MAINTAINERS: Update e-mail address of active @cygnus.com
2503 maintainers to @redhat.com.
2504
de6ed73f
AC
25052001-07-28 Andrew Cagney <ac131313@redhat.com>
2506
2507 * README (Known bugs): Delete section.
2508 (Kernel debugging): Delete section.
2509 (Languages other than C): Delete section.
2510 (Host/target specific installation notes) New section.
2511
3d261580
MK
25122001-07-28 Mark Kettenis <kettenis@gnu.org>
2513
85540d8c
MK
2514 * config/i386/tm-i386.h (STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
2515 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): New defines.
2516 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): New
2517 prototypes.
2518 * config/i386/tm-fbsd.h, config/i386/tm-i386gnu.h,
2519 config/i386/tm-linux.h (STAB_REG_TO_REGNUM): Redefine to call
2520 i386_dwarf_reg_to_regnum.
2521 * i386-tdep.c (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum):
2522 New functions.
2523
3d261580
MK
2524 * i386-tdep.c: Include "gdb_assert.h"
2525 (i386_register_convert_to_virtual): Fix such that it can handle
2526 conversion to any floating-point type. Assert that we are dealing
2527 with a floating-point first.
2528 (i386_register_convert_to_raw): Assert that TYPE is a
2529 floating-point type with length 12.
2530
2db5ca22
JM
25312001-07-27 John R. Moore <jmoore@redhat.com>
2532
2533 * configure.in: Added dependency of gdb on tcl/tk libraries.
2534 * Makefile.in: Likewise.
2535 * configure: Regenerated with the above using autoconf.
2536
88e04cc1
EZ
25372001-07-26 Elena Zannoni <ezannoni@redhat.com>
2538
2539 * sh-tdep.c (sh_gdbarch_init): Use SH_DEFAULT_NUM_REGS instead of
2540 NUM_REGS.
2541 (SH_DEFAULT_NUM_REGS): Define.
2542
2033c18a
EZ
25432001-07-26 Eli Zaretskii <eliz@is.elta.co.il>
2544
2545 * go32-nat.c (read_memory_region): Make sure the segment limit was
2546 indeed set, to work around a Windows 2000 bug.
2547
9f30d7f5
DJ
25482001-07-25 Daniel Jacobowitz <drow@mvista.com>
2549
2550 * infptrace.c (child_xfer_memory): Add cast to CORE_ADDR.
2551 * infttrace.c (child_xfer_memory): Likewise.
2552 * symm-nat.c (child_xfer_memory): Likewise.
2553 * gdbserver/low-hppabsd.c (read_inferior_memory): Likewise.
2554 (write_inferior_memory): Likewise.
2555 * gdbserver/low-linux.c (read_inferior_memory): Likewise.
2556 (write_inferior_memory): Likewise.
2557 * gdbserver/low-lynx.c (read_inferior_memory): Likewise.
2558 (write_inferior_memory): Likewise.
2559 * gdbserver/low-nbsd.c (read_inferior_memory): Likewise.
2560 (write_inferior_memory): Likewise.
2561 * gdbserver/low-sparc.c (read_inferior_memory): Likewise.
2562 (write_inferior_memory): Likewise.
2563 * gdbserver/low-sun3.c (read_inferior_memory): Likewise.
2564 (write_inferior_memory): Likewise.
2565
e23194cb
EZ
25662001-07-25 Eli Zaretskii <eliz@is.elta.co.il>
2567
966beb0f
EZ
2568 * README: Mention how to make gdb.pdf.
2569
e23194cb
EZ
2570 * NEWS: Update.
2571
7c542009
SS
25722001-07-24 Stephen P. Smith <ischis2@home.com>
2573
a3f3e535
SS
2574 * MAINTAINERS (Stephen P. Smith): Added to write after approval
2575 list.
2576
675fb869
AC
25772001-07-23 Andrew Cagney <ac131313@redhat.com>
2578
2579 * mips-tdep.c (mips_push_arguments): Add comment explaining
2580 problem with LE o32 GCC.
2581
a7019e23
EZ
25822001-07-23 Elena Zannoni <ezannoni@redhat.com>
2583
2584 * config/powerpc/aix.mh (MH_LDFLAGS): Don't set these, the Gnu linker
2585 doesn't understand them.
2586
ab35b611
EZ
25872001-07-23 Elena Zannoni <ezannoni@redhat.com>
2588
2589 * memattr.c (mem_info_command): Reformat output to look more like
2590 'info break' output.
2591 (_initialize_mem): Improve help.
2592
0200359f
MK
25932001-07-23 Mark Kettenis <kettenis@gnu.org>
2594
2595 * configure.in (AC_CHECK_FUNCS): Add setpggrp.
2596 (AC_FUNC_SETPGRP): Add.
2597 * aclocal.m4, configure, config.in: Regenerated.
2598 * inflow.c (gdb_setpgid): Get rid of NEED_POSIX_SETPGID and
2599 SETPGRP_ARGS. Always use setpgid if it is available, fall back on
2600 setpgrp if it isn't. Use SETPGRP_VOID (defined by autoconf) to
2601 distinguish between the two setpgrp flavours.
2602 * config/xm-sysv4.h, config/arm/xm-linux.h,
2603 config/i386/xm-i386aix.h, config/i386/xm-sco.h,
2604 config/i386/xm-linux.h, config/i386/xm-ptx.h,
2605 config/m68k/xm-linux.h, config/powerpc/xm-linux.h,
2606 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h,
2607 config/ia64/xm-linux.h (NEED_POSIX_SETPGID): Remove.
2608 * config/rs6000/xm-rs6000.h (SETPGRP_ARGS): Remove.
2609
9f20bf26
EZ
26102001-07-23 Eli Zaretskii <eliz@is.elta.co.il>
2611
2612 * go32-nat.c (read_memory_region): Set the granularity bit of the
2613 allocated segment according to its size, and adjust the limit to
2614 be page-aligned if the segment is page-granular.
2615
2616 * (get_cr3, get_pde, get_pte, display_ptable_entry, go32_pde)
2617 (display_page_table, go32_pte, go32_pte_for_address): New functions.
2618 (_initialize_go32_nat): Initialize and document them.
2619
383d750b
MK
26202001-07-22 Mark Kettenis <kettenis@gnu.org>
2621
2622 * i386gnu-nat.c: Include "i387-nat.h".
2623 (struct env387): Removed.
2624 (reg_offset): Fix comment.
2625 (fetch_fpregs): Use FCTRL_REGNUM and FOP_REGNUM instead of
2626 FIRST_FPU_CONTROL_REGNUM and LAST_FPU_CONTROL_REGNUM. Rewrite to
2627 use i387_supply_fsave.
2628 (gnu_fetch_registers): Remove spurious whitespace.
2629 (convert_to_env387): Remove.
2630 (store_fpregs): Add argument regno. Use i387_fill_fsave instead
2631 of convert_to_env387.
2632 (gnu_store_registers): Remove spurious whitespace. Pass REGNO to
2633 store_fpregs.
2634 * config/i386/i386gnu.mt (TDEPFILES): Add i387-tdep.o.
2635 * config/i386/i386gnu.mh (XDEPFILES): Remove i387-tdep.o.
2636 (NATDEPFILES): Add i387-nat.o.
2637
1a12f22f
SC
26382001-07-22 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2639
2640 * Makefile.in (ALLDEPFILES): Add m68hc11-tdep.c.
2641 (m68hc11-tdep.o): Define dependencies.
2642
7d32ba20
SC
26432001-07-22 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2644
2645 * m68hc11-tdep.c (m68hc11_gdbarch_init): Define int at 16-bits.
2646
5ecb1806
SC
26472001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2648
2649 * utils.c (init_page_info): Use tui_get_command_dimension.
2650 * printcmd.c (disassemble_command): Simplify tui specific code,
2651 use tui_is_window_visible, tui_show_assembly.
2652
25630444
MK
26532001-07-21 Mark Kettenis <kettenis@gnu.org>
2654
2655 * i386bsd-nat.c: Do not include <sys/sysctl.h>.
2656 (_initialize_i386bsd_nat) [KERN_PS_STRINGS]: Move FreeBSD-specific
2657 code to ...
2658 * i386fbsd-nat.c: ... here. New file.
2659 * config/i386/fbsd.mh (NATDEPFILES): Add i386-fbsd.o.
2660 * config/i386/nm-fbsd.h (CHILD_RESUME): Define.
2661 * Makefile.in (ALLDEPFILES): Add i386fbsd-nat.c.
2662 (i386fbsd-nat.o): Add dependencies.
2663
0150732f
DJ
26642001-07-19 Daniel Jacobowitz <drow@mvista.com>
2665
2666 * signals.c: New file.
2667 * Makefile.in: Add signals.o.
2668 * target.c (struct signals, target_signal_to_name)
2669 (target_signal_from_name, target_signal_from_host)
2670 (do_target_signal_to_host, target_signal_to_host_p)
2671 (target_signal_to_host, target_signal_from_command): Move to
2672 signals.c.
2673 (initialize_targets): Move check of struct signals to...
2674 * signals.c (_initialize_signals): Here.
2675
e36118e7
AC
26762001-07-19 Andrew Cagney <ac131313@redhat.com>
2677
2678 * MAINTAINERS: Add Michael Chastain as C++ testsuite maintainer.
2679
b4fc7a30
AC
26802001-07-19 Andrew Cagney <ac131313@redhat.com>
2681
2682 From Stephen Smith:
2683 * configure.tgt (i*86-*-pe*): New target.
2684
4b048bc0
AC
26852001-07-19 Andrew Cagney <ac131313@redhat.com>
2686
2687 From 2001-07-16 Rodney Brown <rbrown64@csc.com.au>:
2688 * infttrace.c (child_thread_alive): Fix gdb_tid typo.
2689 * somsolib.c (no_shared_libraries): Provide stub.
2690 * xcoffsolib.c (no_shared_libraries): Provide stub.
2691
227288a0
SC
26922001-07-18 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2693
2694 * Makefile.in (COMMON_OBS): Remove tui-file.o.
2695 (SUBDIR_TUI_OBS): Add it here.
2696 (SUBDIR_TUI_SRCS): Move tui-file.c and tui-file.h here.
2697 (main.o): Remove dependency with tui-file.h.
2698
f9eb4b01
EZ
26992001-07-17 Elena Zannoni <ezannoni@redhat.com>
2700
2701 * Makefile.in (tui-file.o): Update dependencies.
2702
d0c8cdfb
EZ
27032001-07-17 Elena Zannoni <ezannoni@redhat.com>
2704
2705 * top.c (catch_errors): Convert PTR to void * in parameters list.
2706 (quit_cover): Ditto.
2707
063190b6
SC
27082001-07-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2709
2710 * source.c (find_source_lines): Remove tui test, must be replaced
2711 by appropriate warning hook.
2712 (print_source_lines): Remove tui hacks, must be replaced by cli.
2713 (forward_search_command): Remove tui hacks, can be replaced by
2714 appropriate calls to identify_source_line when tui scrolls.
2715 (reverse_search_command): Likewise.
2716
cf759d3b
ND
27172001-07-16 Nick Duffek <nsd@redhat.com>
2718
2719 * remote.c (init_remote_ops, init_remote_cisco_ops,
2720 init_remote_async_ops): Set to_pid_to_str and
2721 to_extra_thread_info correctly and in the same order as declared
2722 in target.h.
2723
0caabb7e
AC
27242001-07-16 Andrew Cagney <ac131313@redhat.com>
2725
2726 * remote.c: Revert below. Included more than intended.
2727
943b3971
ND
27282001-07-16 Nick Duffek <nsd@redhat.com>
2729
2730 * remote.c (init_remote_ops, init_remote_cisco_ops,
2731 init_remote_async_ops): Set to_pid_to_str and
2732 to_extra_thread_info correctly and in the same order as declared
2733 in target.h.
2734
9ed10b08
ND
27352001-07-16 Nick Duffek <nsd@redhat.com>
2736
2737 * findvar.c (read_var_value): Apply value_as_pointer() to
2738 addresses retrieved from the target for LOC_BASEREG and
2739 LOC_BASEREG_ARG variables.
2740
24be5c34
OF
27412001-07-16 Orjan Friberg <orjanf@axis.com>
2742
2743 * NEWS: New target CRIS.
2744
314b6fb7
EZ
27452001-07-16 Elena Zannoni <ezannoni@redhat.com>
2746
2747 * top.c (show_commands): Remove extern decl of history_get, it's
2748 already in readline/history.h.
2749
210661e7
EZ
27502001-07-16 Elena Zannoni <ezannoni@redhat.com>
2751
2752 * top.c (is_complete_command, init_cmd_lists, init_cli_cmds,
2753 execute_user_command, do_setshow_command, get_prompt, init_proc,
2754 serial_log_command): Remove extern declarations. Include
2755 cli/cli-cmds.h, cli/cli-script.h, cli/cli-setshow.h, serial.h.
2756 * gdbcmd.h (execute_user_command): Remove declaration, it's already
2757 in cli/cli-script.h.
2758 * command.h (do_setshow_command): Remove declaration, it's already
2759 in cli/cli-setshow.h.
2760 * infrun.c: Include "cli/cli-script.h" for execute_user_command.
2761 * Makefile.in (infrun.o): Update dependencies.
2762 (top.o): Ditto.
2763 * cli/cli-setshow.h: Add comment for do_setshow_command.
2764
2584159e
EZ
27652001-07-16 Eli Zaretskii <eliz@is.elta.co.il>
2766
2767 * cli/cli-cmds.c (shell_escape) [GLOBAL_CURDIR]: Condition the
2768 call to chdir on this symbol rather than on __DJGPP__.
2769 (CANT_FORK) [__MSDOS__]: Move from here...
2770 * defs.h (CANT_FORK) [__MSDOS__]: ...to here.
2771 (GLOBAL_CURDIR) [__MSDOS__]: Define.
2772
cf54db79
OF
27732001-07-16 Orjan Friberg <orjanf@axis.com>
2774
2775 * configure.tgt: Recognise the CRIS architecture.
2776 * config/cris/cris.mt: New file for CRIS target.
2777 * cris-tdep.c: New file for CRIS target.
2778
64cdedad
EZ
27792001-07-15 Elena Zannoni <ezannoni@redhat.com>
2780
2781 * top.c (quit_cover, float_handler): Move definition up before use.
2782 (gdb_init): Move to end of file, to avoid calls to not yet defined
2783 functions.
2784 Delete prototypes.
2785
2cd58942
AC
27862001-07-14 Andrew Cagney <ac131313@redhat.com>
2787
2788 * serial.h (SERIAL_ASYNC): Delete.
2789 (DEPRECATED_SERIAL_FD): Delete.
2790 (SERIAL_DEBUG): Delete.
2791 (SERIAL_DEBUG_P): Delete.
2792 (SERIAL_DRAIN_OUTPUT): Delete.
2793 (SERIAL_FLUSH_OUTPUT): Delete.
2794 (SERIAL_FLUSH_INPUT): Delete.
2795 (SERIAL_SEND_BREAK): Delete.
2796 (SERIAL_RAW): Delete.
2797 (SERIAL_GET_TTY_STATE): Delete.
2798 (SERIAL_SET_TTY_STATE): Delete.
2799 (SERIAL_PRINT_TTY_STATE): Delete.
2800 (SERIAL_NOFLUSH_SET_TTY_STATE): Delete.
2801 (SERIAL_SETBAUDRATE): Delete.
2802 (SERIAL_SETSTOPBITS): Delete.
2803 (SERIAL_CAN_ASYNC_P): Delete.
2804 (SERIAL_IS_ASYNC_P): Delete.
2805 (SERIAL_UN_FDOPEN): Delete.
2806 (SERIAL_READCHAR): Delete.
2807 (SERIAL_CLOSE): Delete.
2808 (SERIAL_FDOPEN): Delete.
2809 (SERIAL_OPEN): Delete.
2810 * ser-unix.c: Update.
2811 * sparclet-rom.c: Update.
2812 * remote-bug.c: Update.
2813 * dsrec.c: Update.
2814 * xmodem.c: Update.
2815 * nindy-share/ttyflush.c: Update.
2816 * nindy-share/Onindy.c: Update.
2817 * utils.c: Update.
2818 * serial.c: Update.
2819 * remote-nindy.c: Update.
2820 * inflow.c: Update.
2821 * sparcl-tdep.c: Update.
2822 * sh3-rom.c: Update.
2823 * remote.c: Update.
2824 * remote-utils.c: Update.
2825 * remote-st.c: Update.
2826 * remote-sds.c: Update.
2827 * remote-rdp.c: Update.
2828 * remote-os9k.c: Update.
2829 * remote-nrom.c: Update.
2830 * remote-mips.c: Update.
2831 * remote-es.c: Update.
2832 * remote-e7000.c: Update.
2833 * remote-array.c: Update.
2834 * ocd.c: Update.
2835 * nindy-share/nindy.c: Update.
2836 * monitor.c: Update.
2837
ea7c478f
AC
28382001-07-14 Andrew Cagney <ac131313@redhat.com>
2839
2840 * mn10200-tdep.c: Replace value_ptr with ``struct value *''.
2841 * mcore-tdep.c: Ditto.
2842 * sparc-tdep.c: Ditto.
2843 * sh-tdep.c: Ditto.
2844 * rs6000-tdep.c: Ditto.
2845 * ppc-linux-tdep.c: Ditto.
2846 * m68hc11-tdep.c: Ditto.
2847 * ia64-tdep.c: Ditto.
2848 * i386-tdep.c: Ditto.
2849 * arm-linux-tdep.c: Ditto.
2850 * hppa-tdep.c: Ditto.
2851 * h8500-tdep.c: Ditto.
2852 * fr30-tdep.c: Ditto.
2853 * arm-tdep.c: Ditto.
2854 * alpha-tdep.c: Ditto.
2855 * d30v-tdep.c: Ditto.
2856 * d10v-tdep.c: Ditto.
2857 * m32r-tdep.c: Ditto.
2858 * mips-tdep.c: Ditto.
2859 * v850-tdep.c: Ditto.
2860
d75b5104
EZ
28612001-07-15 Elena Zannoni <ezannoni@redhat.com>
2862
2863 * top.c (readline_line_completion_function, noop_completer): Move
2864 from here...
2865 * completer.c (readline_line_completion_function, noop_completer):
2866 ...to here.
2867 * gdbcmd.h (readline_line_completion_function, noop_completer):
2868 Move declarations from here...
2869 * completer.h (readline_line_completion_function, noop_completer):
2870 ...to here.
2871 * corefile.c: Include completer.h.
2872 * source.c: Ditto.
2873 * symfile.c: Ditto.
2874 * Makefile.in: Update dependencies.
2875
150985e3
EZ
28762001-07-15 Eli Zaretskii <eliz@is.elta.co.il>
2877
2878 * go32-nat.c (go32_create_inferior): Support command lines longer
2879 than 126 characters.
2880
def90278
SC
28812001-07-14 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2882
2883 * NEWS: New target 68HC11/68HC12.
2884
37767e42
SC
28852001-07-14 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2886
2887 * utils.c (query): Remove tui hacks; tui must use the query_hook.
2888 * top.c (command_loop): Remove tui insert_mode hacks; don't call
2889 tuiCleanUp because this must be made with atexit by tui.
2890 * symfile.c (symbol_file_command): Remove call to TUIDO
2891 * stack.c (show_and_print_stack_frame_stub): Remove tui check;
2892 not necessary when using the selected frame hooks.
2893 (print_stack_frame_stub): Likewise.
2894 (print_frame_info_base): Likewise.
2895 (print_frame_info): Likewise.
2896 (up_silently_command): Likewise.
2897 (down_silently_command): Likewise.
2898 (show_stack_frame): Likewise for TUIDO.
2899 (select_frame): Likewise.
2900 (select_and_print_frame): Likewise.
2901 (stack_publish_stopped_with_no_frame): Remove.
2902 (select_and_maybe_print_frame): Remove.
2903 * main.c (captured_main): Remove tui_fileopen and tuiInit; tui
2904 must use the initialize ui hook.
2905 * infrun.c (normal_stop): Remove call to TUIDO; tui must use the
2906 selected frame hooks.
2907 * event-top.c (command_handler): Remove tui insert_mode hack.
2908 * defs.h: Remove TUIDO; Only include tui.h.
2909 * breakpoint.c (mention): Remove calls to TUIDO.
2910 (delete_breakpoint): Remove tui hacks; tui must install
2911 the breakpoint hooks.
2912
0123ceaf
MK
29132001-07-14 Mark Kettenis <kettenis@gnu.org>
2914
1fe7ac85
MK
2915 * config/i386/xm-linux.h (KERNEL_U_ADDR): Move from here...
2916 * config/i386/nm-linux.h: ...to here. Change comments about user
2917 area/struct a bit.
2918
d0f3ce3c
MK
2919 * config/i386/xm-linux.h (HAVE_TERMIOS): Really remove.
2920
0123ceaf
MK
2921 * Makefile.in (ALLDEPFILES): Add i386bsd-nat.c and i386bsd-tdep.c
2922 (i386bsd-tdep.o, i386bsd-nat.o): New targets.
2923
4902674b
EZ
29242001-07-13 Elena Zannoni <ezannoni@redhat.com>
2925
2926 * remote-e7000.c (fetch_regs_from_dump): If register set is null,
2927 generate an internal error.
2928 (e7000_fetch_registers): Initialize variable 'wanted'.
2929 (e7000_wait): Initialize variable 'wanted_nopc'.
2930 (e7000_store_register): Fix sprintf compiler warnings.
2931 (sub2_from_pc): Ditto.
2932 (e7000_open): Close the descriptor, not the name.
2933 (e7000_load): Fix compiler warnings.
2934 (sub2_from_pc): Ditto.
2935 * Makefile.in (remote-e7000.o): Can now compile with -Werror.
2936
b7247919
MK
29372001-07-13 Mark Kettenis <kettenis@gnu.org>
2938
2939 * i386bsd-nat.c: Include <signal.h>, <stddef.h> and
2940 <sys/sysctl.h>.
2941 (store_inferior_registers): Wrap long line.
2942 (i386bsd_dr_get_status): Fix typo in comment.
2943 (_initialize_i386bsd_nat): New function. * i386bsd-tdep.c: New
2944 file. * config/i386/tm-fbsd.h (IN_SIGTRAMP): New define.
2945 (i386bsd_in_sigtramp): New prototype.
2946 (SIGTRAMP_START, SIGTRAMP_END): Redefine in terms...
2947 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): ...these new
2948 (external) variables.
2949 (SIGCONTEXT_PC_OFFSET): Removed.
2950 (FRAME_SAVED_PC): New define.
2951 (i386bsd_frame_saved_pc): New function. * config/i386/fbsd.mt
2952 (TDEPFILES): Add i386bsd-tdep.o.
2953
d1bacddc
DJ
29542001-07-12 Daniel Jacobowitz <drow@mvista.com>
2955
2956 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Use ISO C
2957 definition.
2958
9a973a8f
MK
29592001-07-13 Mark Kettenis <kettenis@gnu.org>
2960
2961 * lin-lwp.c (lin_lwp_wait): Avoid check for resumed LWPs if there
2962 are no registered LWPs yet.
2963
6ef7fa21
DJ
29642001-07-12 Daniel Jacobowitz <drow@mvista.com>
2965
2966 * config/i386/nm-linux.h (CANNOT_FETCH_REGISTER): Call the right
2967 function.
2968 (CANNOT_STORE_REGISTER): Likewise.
2969
75e266ac
KS
29702001-07-12 Keith Seitz <keiths@redhat.com>
2971
2972 * remote-rdp.c: Include "serial.h"
2973
d0608e50
DJ
29742001-07-12 Daniel Jacobowitz <drow@mvista.com>
2975
2976 * gdbserver/remote-utils.c (remote_open): Set VMIN to 1
2977 in HAVE_TERMIO/HAVE_TERMIOS cases.
2978
1e4fac59
MK
29792001-07-12 Mark Kettenis <kettenis@gnu.org>
2980
de4ca854
MK
2981 * lin-lwp.c (stop_wait_callback): Add support for flushing
2982 signals. Use that in favour of the old code to get rid of
2983 superfluous SIGINTs.
2984 (lin_lwp_wait): Use the new support in stop_wait_callback to
2985 flush all but one SIGINT.
2986
635b0cc1
MK
2987 * i386-tdep.c (i386_extract_return_value): Undo 2001-07-11 changes
2988 to comment.
2989 (i386_store_return_value): Improve comments about storing
2990 floating-point return values.
2991
1e4fac59
MK
2992 * config/arm/xm-linux.h, config/i386/xm-linux.h,
2993 config/m68k/xm-linux.h, config/powerpc/xm-linux.h,
2994 config/sparc/xm-linux.h, config/ia64/xm-linux.h (HAVE_TERMIOS):
2995 Removed. Taken care of by autoconf and terminal.h.
2996
49e790b0
DJ
29972001-07-12 Daniel Jacobowitz <drow@mvista.com>
2998
2999 * mips-tdep.c (mips_type_needs_double_align): New function.
3000 (mips_push_arguments): Align o32 structs to even argument
3001 registers if necessary.
3002
e7df8212
DJ
30032001-07-11 Daniel Jacobowitz <drow@mvista.com>
3004
3005 * config/djgpp/fnchange.lst: Add entries for
3006 mips-linux-nat.c and mips-linux-tdep.c.
3007
2b2d558c
MK
30082001-07-12 Mark Kettenis <kettenis@gnu.org>
3009
9e158af1
MK
3010 * config/powerpc/xm-linux.h: Fix corrupted file.
3011
2b2d558c
MK
3012 * configure.in: Add check for sigsetjmp.
3013 * config/m68k/xm-linux.h (HAVE_SIGSETJMP): Removed.
3014 * config/xm-sysv4.h (HAVE_SIGSETJMP): Removed.
3015 * configure, config.in: Regenerated.
3016
3bbfbb92
EZ
30172001-07-11 Elena Zannoni <ezannoni@redhat.com>
3018
3019 * config/sh/tm-sh.h (struct gdbarch_tdep): Add
3020 FLOAT_ARGLAST_REGNUM, RETURN_REGNUM, ARG0_REGNUM, ARGLAST_REGNUM,
3021 PR_REGNUM fields.
3022
3023 * sh-tdep.c (sh_skip_prologue_hard_way): Rename from
3024 skip_prologue_hard_way().
3025 (skip_prologue_hard_way): Make it a function pointer.
3026 (sh_print_register): Use function pointer do_pseudo_register,
3027 instead of sh_do_pseudo_register.
3028 (sh_do_registers_info): Ditto.
3029 (sh_gdbarch_init): Initialize do_pseudo_register.
3030 (IS_MOV_TO_R14): Rename from IS_MOV_R14.
3031 (skip_prologue_hard_way): Update.
3032 (sh_gdbarch_init): Move setting of frame_chain,
3033 get_saved_register, init_extra_frame_info, push_arguments,
3034 extract_return_value, pop_frame, store_struct_return,
3035 extract_struct_value_address, use_struct_convention,
3036 init_extra_frame_info to before target specific settings.
3037 (sh_gdbarch_init): Initialize new tdep fields
3038 FLOAT_ARGLAST_REGNUM, RETURN_REGNUM, ARG0_REGNUM, ARGLAST_REGNUM,
3039 PR_REGNUM.
3040 (sh_push_arguments): Use new gdbarch_tdep fields
3041 {ARG0,ARGLAST}_REGNUM.
3042 (sh_saved_pc_after_call, sh_nofp_frame_init_saved_regs,
3043 sh_init_extra_frame_info, sh_push_return_address,
3044 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
3045 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs): Update to use
3046 gdbarch_tdep->PR_REGNUM.
3047 (dr_reg_base_num, fv_reg_base_num): Move to earlier in the file.
3048
e64c0717
DJ
30492001-07-11 Daniel Jacobowitz <drow@mvista.com>
3050
3051 * config/mips/tm-linux.h: Include "tm-linux.h" instead of copying
3052 from it. Move definitions of REALTIME_LO and REALTIME_HI above
3053 include.
3054
6c8e04b5
DJ
30552001-07-11 Daniel Jacobowitz <drow@mvista.com>
3056
3057 * MAINTAINERS: List myself for MIPS/Linux
3058 port.
3059
94dfea5d
DJ
30602001-07-11 Daniel Jacobowitz <drow@mvista.com>
3061
3062 * gdbserver/remote-utils.c (remote_open): Only
3063 check for F_SETOWN if we had F_SETFL and FASYNC.
3064
f175af98
DJ
30652001-07-11 Daniel Jacobowitz <drow@mvista.com>
3066
3067 From Michael Fedrowitz <michael.fedrowitz@informatik.uni-ulm.de>:
3068
3069 * config/m68k/linux.mh: Remove core-regset.o.
3070 * m68klinux-nat.c: Fix comment.
3071 (supply_gregset): Change argument to elf_gregset_t *.
3072 (supply_fpregset): Change argument to elf_fpregset_t *.
3073 (fetch_core_registers): New function.
3074 (linux_elf_core_fns): Define.
3075 (_initialize_m68k_linux_nat): New function.
3076
21624696
AC
30772001-07-11 Andrew Cagney <ac131313@redhat.com>
3078
3079 * configure.tgt: Mark d10v as pure multi-arch.
3080 * config/d10v/tm-d10v.h: Delete file.
3081 * config/d10v/d10v.mt (TM_FILE): Delete.
3082
819cc324
AC
30832001-07-10 Andrew Cagney <ac131313@redhat.com>
3084
3085 * serial.h (typedef serial_t): Delete. Replace all references to
3086 serial_t with `struct serial *'.
3087 * serial.c: Update.
3088 * nindy-share/ttyflush.c: Update.
3089 * nindy-share/ttyflush.c: Update.
3090 * nindy-share/Onindy.c: Update.
3091 * nindy-share/nindy.c: Update.
3092 * remote-rdp.c: Update.
3093 * remote-sds.c: Update.
3094 * remote-st.c: Update.
3095 * remote-nindy.c: Update.
3096 * remote-mips.c: Update.
3097 * remote-e7000.c: Update.
3098 * remote-os9k.c: Update.
3099 * remote-nrom.c: Update.
3100 * remote-es.c: Update.
3101 * remote-array.c: Update.
3102 * ocd.c: Update.
3103 * mon960-rom.c: Update.
3104 * dsrec.c: Update.
3105 * inflow.c: Update.
3106 * ser-e7kpc.c: Update.
3107 * sparclet-rom.c: Update.
3108 * srec.h: Update.
3109 * ser-tcp.c: Update.
3110 * ser-go32.c: Update.
3111 * sparcl-tdep.c: Update.
3112 * w89k-rom.c: Update.
3113 * utils.c: Update.
3114 * sh3-rom.c: Update.
3115 * remote.c: Update.
3116 * ser-pipe.c: Update.
3117 * ser-unix.c: Update.
3118 * ser-unix.h: Update.
3119 * xmodem.c: Update.
3120 * xmodem.h: Update.
3121
30120c46
AC
31222001-07-11 J.T. Conklin <jtc@redback.com>
3123
3124 From Greg McGary <greg@mcgary.org>:
cf30a8e1
C
3125 * gdbserver/remote-utils.c (remote_open): Set gdbserver as "owner"
3126 of SIGIO.
3127 (input_interrupt): Don't block on read, in case we got redundant
3128 SIGIO. Don't gripe about redundant SIGIO.
3129 * gdbserver/low-hppabsd.c (mywait): Use waitpid(). Enable SIGIO
3130 handler while waiting.
3131 * gdbserver/low-linux.c (mywait): Likewise.
3132 * gdbserver/low-nbsd.c (mywait): Likewise.
3133 * gdbserver/low-sparc.c (mywait): Likewise.
3134
84c6c83c
KS
31352001-07-11 Keith Seitz <keiths@redhat.com>
3136
3137 * infrun.c (print_stop_reason): Add missing uiout field
3138 "reason" for SIGNAL_RECEIVED case.
3139
e6da861e
MK
31402001-07-11 Mark Kettenis <kettenis@gnu.org>
3141
82de0203
MK
3142 * config/alpha/nm-linux.h (TARGET_ELF64, PSIGNAL_IN_SIGNAL_H):
3143 Remove unused macro's.
3144
e6da861e
MK
3145 * config/powerpc/nm-linux.h (NO_SYS_REG_H): Remove, it's no longer
3146 used.
3147
d8c852a1
EZ
31482001-07-11 Eli Zaretskii <eliz@is.elta.co.il>
3149
3150 * go32-nat.c (info_dos_cmdlist): New variable.
3151 (go32_info_dos_command): New function.
3152 (_initialize_go32_nat): Convert all DOS-specific commands into
3153 subcommands of "info dos". Suggested by Andrew Cagney
3154 <ac131313@redhat.com>.
3155
f8d13125
MK
31562001-07-11 Mark Kettenis <kettenis@gnu.org>
3157
11d18042
MK
3158 * config/nm-linux.h: Fix comments.
3159
936742ab
MK
3160 * thread-db.c (enable_thread_event_reporting): Correct warning
3161 message about getting thread death breakpoint.
3162 Reported by John S Kallal <jskallal@home.com>.
3163
ccb945b8
MK
3164 * i386-tdep.c (i386_extract_return_value): "Fix" comment.
3165 (i386_store_return_value): Frob FPU status and tag word to make
3166 sure the return value is the only value on the FPU stack.
3167
f8d13125
MK
3168 * config/tm-linux.h: Do not include <signal.h>. Instead provide
3169 reasonable defaults for REALTIME_LO and REALTIME_HI if they're not
3170 already defined.
3171 * config/nm-linux.h: Include <signal.h>.
3172 [__SIGRTMIN] (REALTIME_LO, REALTIME_HI): Define to __SIGRTMIN and
3173 (__SIGRTMAX + 1) respectively.
3174
56ff796a
AC
31752001-07-10 Andrew Cagney <ac131313@redhat.com>
3176
3177 * mcore-rom.c: Include "serial.h".
3178 * Makefile.in (mcore-rom.o): Depends on "serial.h".
3179
899ff3a2
AC
31802001-07-10 Andrew Cagney <ac131313@redhat.com>
3181
3182 * Makefile.in (remote-bug.o): Depends on serial.h.
3183 * remote-bug.c: Include "serial.h".
3184 * MAINTAINERS: Mark m88k target as buildable.
3185 * TODO: Update.
3186
2bf1f4a1
JB
31872001-07-10 Jim Blandy <jimb@redhat.com>
3188
75af7f68
JB
3189 Clean up the D10V port so that GDB and the target program no
3190 longer disagree on how big pointers are.
3191 * findvar.c (value_from_register): Remove special case code for D10V.
3192 * printcmd.c (print_frame_args): Same.
3193 * valops.c (value_at, value_fetch_lazy): Same.
3194 * values.c (unpack_long): Same.
3195 * gdbarch.sh: Changes to effect the following:
3196 * gdbarch.h (GDB_TARGET_IS_D10V, D10V_MAKE_DADDR,
3197 gdbarch_d10v_make_daddr_ftype, gdbarch_d10v_make_daddr,
3198 set_gdbarch_d10v_make_daddr, D10V_MAKE_IADDR,
3199 gdbarch_d10v_make_iaddr_ftype, gdbarch_d10v_make_iaddr,
3200 set_gdbarch_d10v_make_iaddr, D10V_DADDR_P,
3201 gdbarch_d10v_daddr_p_ftype, gdbarch_d10v_daddr_p,
3202 set_gdbarch_d10v_daddr_p, D10V_IADDR_P,
3203 gdbarch_d10v_iaddr_p_ftype, gdbarch_d10v_iaddr_p,
3204 set_gdbarch_d10v_iaddr_p, D10V_CONVERT_DADDR_TO_RAW,
3205 gdbarch_d10v_convert_daddr_to_raw_ftype,
3206 gdbarch_d10v_convert_daddr_to_raw,
3207 set_gdbarch_d10v_convert_daddr_to_raw, D10V_CONVERT_IADDR_TO_RAW,
3208 gdbarch_d10v_convert_iaddr_to_raw_ftype,
3209 gdbarch_d10v_convert_iaddr_to_raw,
3210 set_gdbarch_d10v_convert_iaddr_to_raw): Delete declarations.
3211 * gdbarch.c: Delete the corresponding definitions.
3212 (struct gdbarch): Delete members d10v_make_daddr,
3213 d10v_make_iaddr, d10v_daddr_p, d10v_iaddr_p,
3214 d10v_convert_daddr_to_raw, and d10v_convert_iaddr_to_raw.
3215 (startup_gdbarch): Remove initializers for the above.
3216 (verify_gdbarch, gdbarch_dump): Don't verify or dump them any
3217 more.
3218 * d10v-tdep.c (d10v_register_virtual_type): Rather that
3219 claiming the stack pointer and PC are 32 bits long (which they
3220 aren't), say that the stack pointer is an int16_t, and the
3221 program counter is a function pointer. This allows the rest
3222 of GDB to make the appropriate conversions between the code
3223 pointer format and real addresses.
3224 (d10v_register_convertible, d10v_register_convert_to_virtual,
3225 d10v_register_convert_to_raw): Delete function; no registers
3226 are convertible now, so we use
3227 generic_register_convertible_not instead.
3228 (d10v_address_to_pointer, d10v_pointer_to_address): New gdbarch
3229 methods.
3230 (d10v_push_arguments, d10v_extract_return_value): Remove special
3231 cases for code and data pointers.
3232 (d10v_gdbarch_init): Set gdbarch_ptr_bit to 16, so that GDB and
3233 the target agree on how large pointers are. Say that addresses
3234 are 32 bits long. Register the address_to_pointer and
3235 pointer_to_address conversion functions. Since no registers are
3236 convertible now, register generic_register_convertible_not as the
3237 gdbarch_register_convertible method instead of
3238 d10v_register_convertible. Remove registrations for
3239 d10v_register_convert_to_virtual,
3240 d10v_register_convert_to_raw, gdbarch_d10v_make_daddr,
3241 gdbarch_d10v_make_iaddr, gdbarch_d10v_daddr_p,
3242 gdbarch_d10v_iaddr_p, gdbarch_d10v_convert_daddr_to_raw, and
3243 gdbarch_d10v_convert_iaddr_to_raw.
3244
ef166cf4
JB
3245 * printcmd.c (print_scalar_formatted): If we are printing an
3246 address, remember that TARGET_ADDR_BIT is not always equal to
3247 TARGET_PTR_BIT.
3248
2bf1f4a1
JB
3249 * valops.c (value_cast): When casting a pointer to an integer,
3250 don't convert it to an address.
3251
ba3a8523
AC
32522001-07-10 Andrew Cagney <ac131313@redhat.com>
3253
3254 * remote-utils.h (struct serial): Declare as opaque. Remove
3255 include of "serial.h".
3256 * Makefile.in (remote_utils_h): Update.
3257
3258 * monitor.h (struct serial): Declare as opaque. Remove include of
3259 "serial.h".
3260 (struct monitor_ops): Replace serial_t with `struct serial *'.
3261 * monitor.c (monitor_desc): Ditto.
3262
2aa830e4
DJ
32632001-07-10 Daniel Jacobowitz <drow@mvista.com>
3264
3265 * mips-linux-tdep.c: New file.
3266 * mips-linux-nat.c: New file.
3267 * config/mips/linux.mh: New file.
3268 * config/mips/linux.mt: New file.
3269 * config/mips/xm-linux.h: New file.
3270 * config/mips/nm-linux.h: New file.
3271 * config/mips/tm-linux.h: New file.
3272 * configure.host: Recognize mips*-*-linux*.
3273 * configure.tgt: Likewise.
3274 * NEWS: Mention mips*-*-linux* port.
3275
65e2f740
AC
32762001-07-09 Andrew Cagney <ac131313@redhat.com>
3277
3278 * serial.h (struct serial): Rename `struct _serial_t'.
3279 * serial.c (XMALLOC): Define.
3280 (serial_open): Update. Use XMALLOC.
3281 (serial_fdopen): Ditto.
3282
090a2205
AC
32832001-07-07 Andrew Cagney <ac131313@redhat.com>
3284
3285 * gdbtypes.h (builtin_type_void_data_ptr): Rename
3286 builtin_type_ptr.
3287 * gdbtypes.c (builtin_type_void_data_ptr): Update.
3288 (build_gdbtypes): Update.
3289 (_initialize_gdbtypes): Update.
3290 * values.c (value_as_pointer): Update.
3291 * utils.c (host_pointer_to_address): Update.
3292 (address_to_host_pointer): Update.
3293
8059d5aa
AC
32942001-07-08 Andrew Cagney <ac131313@redhat.com>
3295
3296 * remote-udi.c (udi_wait): Make type, instead of name, of first
3297 parameter a ptid_t.
3298
cc61049c
AC
32992001-07-07 Andrew Cagney <ac131313@redhat.com>
3300
3301 * ser-mac.c: Make obsolete.
3302 * Makefile.in (ser-mac.o): Ditto.
3303
10ba702d
EZ
33042001-07-08 Eli Zaretskii <eliz@is.elta.co.il>
3305
3306 * go32-nat.c (go32_get_windows_version, print_mem, go32_sysinfo)
3307 (read_memory_region, get_descriptor, display_descriptor)
3308 (go32_sldt, go32_sgdt, go32_sidt): New functions.
3309 (top-level): Include ctype.h, utsname.h, dos.h, and go32.h. Ifdef
3310 away `disable' from dos.h, since breakpoint.h defines an enum
3311 member of the same name, and GCC 2.7.2 barfs.
3312 (_initialize_go32_nat): Provide new commands dos-sysinfo, dos-ldt,
3313 dos-gdt, and dos-idt, all of them in the "info" class
3314
44312dba
KB
33152001-07-07 Kevin Buettner <kevinb@redhat.com>
3316
3317 * procfs.c (create_procinfo): Allocate space for saved_entryset
3318 and saved_exitset.
3319 (destroy_one_procinfo): Free space allocated to saved_entryset
3320 and saved_exitset.
3321
5329c756
AC
33222001-07-07 Andrew Cagney <ac131313@redhat.com>
3323
3324 * TODO (5.1): Update.
3325
51cc5b07
AC
33262001-07-07 Andrew Cagney <ac131313@redhat.com>
3327
3328 * symtab.c (main_name): New function.
3329 (set_main_name): New function.
3330 * symtab.h: Declare.
3331 * TODO: Update
3332
3333 From 2000-03-05 Anthony Green <green@redhat.com>:
3334 * dbxread.c (process_one_symbol): Handle the N_MAIN stab by
3335 setting main_name.
3336 * blockframe.c (inside_main_func): Use main_name instead of
3337 "main".
3338 * symtab.c (find_main_psymtab): Ditto.
3339 * source.c (select_source_symtab): Ditto.
3340 * nlmread.c (nlm_symfile_read): Ditto.
3341 * rs6000-tdep.c (skip_prologue): Ditto.
3342
56ddd993
AC
33432001-07-07 Andrew Cagney <ac131313@redhat.com>
3344
3345 * TODO: Convert most items into PRs.
3346
58eeadba
MK
33472001-07-07 Mark Kettenis <kettenis@gnu.org>
3348
3349 * lin-lwp.c (status_to_str): New function.
3350 (lin_lwp_wait): Use it to print debug messages where appropriate.
3351
7f1659e6
MC
33522001-07-06 Michael Chastain <chastain@redhat.com>
3353
3354 * i387-tdep.c (print_i387_value): Fix pointer glitch.
3355
00d4fce6
MK
33562001-07-07 Mark Kettenis <kettenis@gnu.org>
3357
3358 * lin-lwp.c (count_events_callback): Fix formatting. Turn check
3359 commented with "paranoia" into gdb_assert.
3360 (select_event_lwp_callback): Likewise.
3361 (cancel_breakpoints_callback): Bail out early if LP is the event
3362 LWP. Add comment about backup up breakpoints. Fix formatting and
3363 debug message.
3364 (select_event_lwp): Make solely repsonsible for switching event
3365 LWP. Fix formatting and remove bogus "ERROR" debug message.
3366 Don't backup breakpoints from here.
3367 (lin_lwp_wait): Don't touch LP->status, let select_event_lwp
3368 handle that. Only call select_event_lwp if we're not waiting for
3369 a specific LWP, i.e. when PID == -1. Backup breakpoints from here.
3370
7de45904
MS
33712001-07-06 Michael Snyder <msnyder@redhat.com>
3372
3373 * procfs.c (procfs_resume): Silence noisy warning.
3374
b1aeb4c5
MS
33752001-06-12 Michael Snyder <msnyder@redhat.com>
3376
3377 * lin-lwp.c: Prevent thread starvation by using a monte carlo
3378 method to choose which of several event threads to handle next.
3379
3380 (stop_wait_callback): Defer pushback of breakpoint events until
3381 later; add SIGTRAP events to the queue of unhandled events.
3382 Keep calling waitpid until SIGSTOP retrieved. If more than one
3383 non-SIGSTOP event is retrieved, push them back onto the process
3384 queue using kill.
3385 (count_events_callback, select_singlestep_lwp_callback,
3386 select_event_lwp_callback, cancel_breakpoints_callback,
3387 select_event_lwp): New functions. Implement monte carlo method
3388 for selecting which of several SIGTRAP threads to handle next.
3389 Push back the breakpoint event for all threads other than the
3390 selected one.
3391 (lin_lwp_wait): Call select_event_lwp to decide which of several
3392 sigtrapped lwps to handle next.
3393 (resume_callback): Disable code that attempts to handle
3394 step_resume breakpoints. Let core gdb handle this.
3395
ee3a7b7f
JB
33962001-07-06 Jim Blandy <jimb@redhat.com>
3397
3398 * gdbtypes.h (builtin_type_void_func_ptr): New builtin type.
3399 * gdbtypes.c (builtin_type_void_func_ptr): Define the variable.
3400 (build_gdbtypes): Initialize it.
3401 (_initialize_gdbtypes): Swap it.
3402
e135b889 34032001-07-04 Daniel Jacobowitz <drow@mvista.com>
ee3a7b7f 3404
e135b889
DJ
3405 * mips-tdep.c (mips32_op): Correct offset.
3406 (itype_op): Likewise.
3407 (itype_rs): Fix formatting.
3408 (itype_immediate): Fix formatting.
3409 (jtype_op): Correct offset.
3410 (jtype_target): Fix formatting.
3411 (rtype_op): Correct offset.
3412 (rtype_rs): Fix formatting.
3413 (rtype_rt): Likewise.
3414 (rtype_rd): Likewise.
3415 (rtype_shamt): Likewise.
3416 (rtype_funct): Likewise.
3417
3418 (mips32_next_pc): Fix formatting and comments. Recognize
3419 coprocessor 1 branches. Check the correct field for BLT family
3420 branches. Use itype_rt instead of itype_rs for the second register
3421 of a BNE or BNEL branch. Move (unreachable) default case.
3422
9dc5e2a9
AC
34232001-07-04 Andrew Cagney <ac131313@redhat.com>
3424
3425 * ui-out.h (struct ui_out_impl): Add field is_mi_like_p.
3426 (ui_out_is_mi_like_p): Declare.
3427 * ui-out.c (ui_out_is_mi_like_p): Define.
3428 (default_ui_out_impl): Initialize is_mi_like_p to zero.
3429 * cli-out.c (cli_ui_out_impl): Ditto.
3430 * breakpoint.c (print_it_typical): Use ui_out_is_mi_like_p.
3431 (watchpoint_check, print_one_breakpoint, mention): Ditto.
3432 * infrun.c (print_stop_reason, normal_stop): Ditto.
3433
9022177c
DJ
34342001-07-05 Daniel Jacobowitz <drow@mvista.com>
3435
3436 * mips-tdep.c (mips_software_single_step): New function.
3437 * config/mips/tm-mips.h: Add prototype for
3438 mips_software_single_step.
3439
2ac44c70
DJ
34402001-07-05 Daniel Jacobowitz <drow@mvista.com>
3441
3442 * ppc-linux-nat.c (supply_gregset): Use elf_greg_t instead
3443 of greg_t.
3444 (fill_gregset): Likewise.
3445
bdda63b0
AC
34462001-07-05 Andrew Cagney <ac131313@redhat.com>
3447
3448 * objfiles.c (open_mapped_file): Use lbasename instead of
3449 basename.
3450
af703f96
JB
34512001-07-05 Jim Blandy <jimb@redhat.com>
3452
7b570125
JB
3453 * d10v-tdep.c (d10v_frame_chain, d10v_frame_init_saved_regs,
3454 show_regs, d10v_read_pc, d10v_write_pc, d10v_read_sp,
3455 d10v_write_sp, d10v_write_fp, d10v_read_fp,
3456 d10v_push_return_address): Call the functions d10v_make_daddr,
3457 d10v_make_iaddr, d10v_convert_iaddr_to_raw, and
3458 d10v_convert_daddr_to_raw, not the global macros D10V_MAKE_DADDR,
3459 D10V_MAKE_IADDR, D10V_CONVERT_IADDR_TO_RAW, and
3460 D10V_CONVERT_DADDR_TO_RAW.
3461
af703f96
JB
3462 * dwarf2read (dwarf2_build_psymtabs_hard): Doc fix.
3463
e087d0d6
MK
34642001-07-05 Mark Kettenis <kettenis@gnu.org>
3465
3466 * config/i386/xm-go32.h (HOST_I386): Removed.
3467 * config/i386/xm-linux.h (HOST_I386): Removed.
3468
c96646d0
MK
34692001-07-04 Mark Kettenis <kettenis@gnu.org>
3470
3471 * i387-tdep.c (print_i387_value): Add extra space after final full
3472 stop in comment.
3473
af6c57ea
AC
34742001-07-04 Andrew Cagney <ac131313@redhat.com>
3475
3476 * TODO (5.1): Update. Doco changes committed.
3477
9da8e4f8
AC
34782001-06-29 Andrew Cagney <ac131313@redhat.com>
3479
3480 * config/arm/tm-arm.h: Include "floatformat.h".
3481
d0df8472
AC
34822001-06-29 Andrew Cagney <ac131313@redhat.com>
3483
3484 * i387-tdep.c: Include "gdb_assert.h".
3485 (print_i387_value): Use extract_floating to extract the FP value
3486 from a zero padded local buffer.
3487
291903b1
AC
34882001-06-28 Andrew Cagney <ac131313@redhat.com>
3489
3490 * TODO: Delete all thread items. The thread code was overhauled.
3491
80629b1b
EZ
34922001-07-04 Elena Zannoni <ezannoni@redhat.com>
3493
2ed3d0b5
EZ
3494 * memattr.c (create_mem_region): Move n to next memory region,
3495 to avoid infinite loop.
3496
80629b1b
EZ
3497 * memattr.h: Add copyright statement.
3498 * memattr.c: Ditto.
3499
2541c7cf
JB
35002001-07-04 Jim Blandy <jimb@redhat.com>
3501
0b010bcc
JB
3502 * dwarf2read.c (struct partial_die_info): New member: has_pc_info.
3503 (read_partial_die): Delete fourth argument; we return this info in
3504 the struct partial_die_info object itself now.
3505 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Use the
3506 has_pc_info field of the partial die struct, rather than passing a
3507 variable by reference to read_partial_die.
3508
2541c7cf 3509 * dwarf2read.c (dwarf2_build_psymtabs_hard): Remove extraneous
9faef8a7 3510 code in loop condition.
2541c7cf 3511
5d12882f
MS
35122001-07-03 Michael Snyder <msnyder@redhat.com>
3513
3514 * thread_db (find_new_threads_callback, thread_db_thread_alive,
3515 attach_thread): Update comments.
3516
00783ba9
MS
35172001-06-29 Ken Whaley <ken@believe.com>
3518
3519 * thread-db.c (attach_thread): Check for TD_THR_ZOMBIE in addition
3520 to TD_THR_UNKNOWN when looking for defunct zombie threads.
3521 (thread_db_thread_alive): Ditto.
3522 (find_new_threads_callback): Ditto.
3523
f7856c8f 35242001-07-02 Daniel Jacobowitz <drow@mvista.com>
2740bf6c
DJ
3525
3526 * MAINTAINERS: Add myself to the write-after-approval list.
3527
35282001-07-02 Daniel Jacobowitz <drow@mvista.com>
3529
f7856c8f
DJ
3530 * solib-svr4.c: Include "elf/mips.h".
3531 (elf_locate_base): Make DT_MIPS_RLD_MAP block unconditional.
3532
f9aca02d
JB
35332001-07-02 Jim Blandy <jimb@redhat.com>
3534
3535 * dwarf2read.c (read_comp_unit, sibling_die, dump_die,
3536 dump_die_list, store_in_ref_table, follow_die_ref): Make these
3537 static; they're private functions.
3538
42a076f0
EZ
35392001-07-01 Mark Elbrecht <snowball@bigfoot.com>
3540
3541 * coffread.c (coff_symfile_read): Parse DWARF2 info if present.
3542
77467810
EZ
35432001-06-28 Elena Zannoni <ezannoni@redhat.com>
3544
3545 * TODO: Add import of readline 4.2 as a gdb 5.2 task.
3546
85593179
AC
35472001-06-29 Andrew Cagney <ac131313@redhat.com>
3548
3549 * config/djgpp/fnchange.lst: Sort.
3550
cde2d0fb
AC
35512001-06-28 Andrew Cagney <ac131313@redhat.com>
3552
3553 * config/djgpp/fnchange.lst: Rename mi0-var-block.exp,
3554 mi0-var-cmd.exp, mi0-var-child.exp and mi0-var-display.exp.
3555
37965979
AJ
35562001-06-29 Andreas Jaeger <aj@suse.de>
3557
3558 * MAINTAINERS: Add myself to the write-after-approval list.
3559
a1337894
AC
35602001-06-28 Andrew Cagney <ac131313@redhat.com>
3561
3562 * remote-array.c (SWAP_TARGET_AND_HOST): Delete macro.
3563 (get_hex_word): Don't use HOST_BYTE_ORDER.
3564 (array_fetch_registers): Add variable ``reg''. Use
3565 store_unsigned_integer to byte-swap the register. Delete unused
3566 local ``regs''.
3567
aa8aac68
AC
35682001-06-28 Andrew Cagney <ac131313@redhat.com>
3569
3570 * MAINTAINERS: Add Per Bothner to Java maintainers.
3571
a8016339
AC
35722001-06-28 Andrew Cagney <ac131313@redhat.com>
3573
3574 * rdi-share/unixcomm.c (SERIAL_PREFIX): Always provide a default.
3575 * rdi-share/hostchan.h (__unix): Hack, provide a default value.
3576 * rdi-share/host.h (__unix): Hack, define when __NetBSD__.
3577 * TODO: Update.
3578 * MAINTAINERS: Update. arm-elf builds.
3579
f5e1cf12
JB
35802001-06-28 Jim Blandy <jimb@redhat.com>
3581
bf93dfed
JB
3582 * d10v-tdep.c (d10v_ts2_dmap_register): Doc fix.
3583
3584 * d10v-tdep.c (d10v_frame_chain_valid, d10v_use_struct_convention,
f5e1cf12
JB
3585 d10v_breakpoint_from_pc, d10v_register_byte,
3586 d10v_register_raw_size, d10v_register_virtual_size,
3587 d10v_register_virtual_type, d10v_register_convertible,
3588 d10v_register_convert_to_virtual, d10v_register_convert_to_raw,
3589 d10v_make_daddr, d10v_make_iaddr, d10v_daddr_p, d10v_iaddr_p,
3590 d10v_convert_iaddr_to_raw, d10v_convert_daddr_to_raw,
3591 d10v_store_struct_return, d10v_store_return_value,
3592 d10v_extract_struct_value_address, d10v_frame_saved_pc,
3593 d10v_saved_pc_after_call, d10v_pop_frame, d10v_skip_prologue,
3594 d10v_frame_chain, d10v_frame_init_saved_regs,
3595 d10v_init_extra_frame_info, d10v_read_pc, d10v_write_pc,
3596 d10v_read_sp, d10v_write_sp, d10v_write_fp, d10v_read_fp,
3597 d10v_push_return_address, d10v_push_arguments,
3598 d10v_extract_return_value): Make these functions static.
3599
100a02e1
AC
36002001-06-28 Andrew Cagney <ac131313@redhat.com>
3601
3602 From Fernando Nasser:
3603 * infrun.c (handle_inferior_event): Handle "nexti" inside function
3604 prologues.
3605
80b34fab
MS
36062001-06-28 Michael Snyder <msnyder@redhat.com>
3607
3608 * infrun.c (handle_inferior_event): Replace prev_pc test in all
3609 calls to bpstat_stop_status (removed in 1999-09-24). This test
3610 helps distinguish stepping over a breakpoint trap from stepping
3611 thru a jump to the instruction after a breakpoint trap.
3612 (handle_inferior_event): Don't bother writing the PC if
3613 DECR_PC_AFTER_BREAK is zero (optimization).
3614 * breakpoint.c (bpstat_stop_status): Add comment explaining the
3615 purpose and usage of the "not_a_breakpoint" argument in computing
3616 the breakpoint address.
3617
1456ad8e
AC
36182001-06-28 Andrew Cagney <ac131313@redhat.com>
3619
3620 From 2000-12-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>:
3621 * monitor.c (setmem_resp_delim_pattern): New regexp pattern.
3622 (setreg_resp_delim_pattern): Likewise.
3623 (setmem_resp_delim_fastmap): New buffer.
3624 (setreg_resp_delim_fastmap): Likewise.
3625 (monitor_open): Initialize above regexp if they are defined.
3626 (monitor_write_memory): Use regexp to check the result of write.
3627 (monitor_store_register): Likewise to check result of register set.
3628
399371f6
AC
36292001-06-28 Andrew Cagney <ac131313@redhat.com>
3630
3631 From 2000-06-14 John Marshall <john_w_marshall@palm.com>:
3632 * coff-solib.c: Include symfile.h and objfiles.h to make
3633 OBJF_SHARED visible.
3634
b0e2e90a
AC
36352001-06-28 Andrew Cagney <ac131313@redhat.com>
3636
3637 * configure.in (--enable-gdbmi): Enable by default.
3638 * configure: Regenerate.
3639 * TODO: Update.
3640 * NEWS: Update
3641
ad98fdaf
JB
36422001-06-28 Joel Brobecker <brobecker@act-europe.fr>
3643
3644 * solib-osf.c (osf_in_dynsym_resolve_code): Add a comment
3645 explaining the consequences of always returning zero. No code
3646 change.
3647
49dd83ba
AC
36482001-06-28 Andrew Cagney <ac131313@redhat.com>
3649
3650 From 2001-06-08 Daniel Jacobowitz <djacobowitz@mvista.com>:
3651 * defs.h (enum target_signal): Add TARGET_SIGNAL_REALTIME_65
3652 to TARGET_SIGNAL_REALTIME_127.
3653 * target.c (struct signals): Add SIG63 to SIG127.
3654 (target_signal_from_host): Handle up to 127 signals.
3655 (do_target_signal_to_host): Likewise.
3656
29372230
AC
36572001-06-27 Andrew Cagney <ac131313@redhat.com>
3658
3659 * remote-sds.c (sds_start_remote): Change type of ``c'' to int
3660 from possibly unsigned char.
3661
a196c81c
AC
36622001-06-27 Andrew Cagney <ac131313@redhat.com>
3663
3664 * ser-ocd.c: Delete file.
3665 * Makefile.in (ALLDEPFILES): Remove ser-ocd.c
3666 (ser-ocd.o): Delete target.
3667 * TODO: Update.
3668 * NEWS: Update.
3669
e7745bde
AC
36702001-06-27 Andrew Cagney <ac131313@redhat.com>
3671
3672 * MAINTAINERS (Write After Approval): Sort.
f4c100a7 3673 (Past Maintainers): Daniel Berlin stepped down as C++ maintainer.
e7745bde 3674
d7faa9e7
AC
36752001-06-26 Andrew Cagney <ac131313@redhat.com>
3676
3677 * breakpoint.c (breakpoint_1): Always output the breakpoint
3678 headings. Leave it to ui-out to decide which
3679
68c81b54
AC
36802001-06-25 Andrew Cagney <ac131313@redhat.com>
3681
3682 * stack.c (print_frame): For ui_out, output a list of arguments.
3683
834091c8
KB
36842001-06-25 Kevin Buettner <kevinb@redhat.com>
3685
3686 * MAINTAINERS (paper trail): Update.
3687
ef5cf84e
MS
36882001-06-25 Michael Snyder <msnyder@redhat.com>
3689
3690 * infrun.c: Eliminate the "thread_step_needed" state variable,
3691 and replace it with a relatively simple test in resume.
3692 (resume): Replace thread_step_needed logic with a test for
3693 stepping, breakpoint_here_p and breakpoints_inserted.
3694 Move CANNOT_STEP_BREAKPOINT logic to after thread_step logic.
3695 (proceed): Discard thread_step_needed logic.
3696 (wait_for_inferior, fetch_inferior_event, handle_inferior_event):
3697 Discard thread_step_needed logic.
3698
cb90e81a
FN
36992001-06-24 Fernando Nasser <fnasser@redhat.com>
3700
3701 * remote-rdi.c (arm_rdi_wait): Fix return type in prototype.
3702 * rdi-share/host.h: Add missing parenthesis in conditional.
3703
39812ceb
C
37042001-06-22 J.T. Conklin <jtc@redback.com>
3705
3706 * configure.in: include nlist.h when checking for member som_addr
3707 in struct so_map.
3708 * configure: regenerate.
3709
8d2139f3
KS
37102001-06-21 Keith Seitz <keiths@redhat.com>
3711
3712 * cli-out.c (cli_out_new): Initialize new structure member
3713 "suppress_output".
3714
b25959ec
AC
37152001-06-20 Andrew Cagney <ac131313@redhat.com>
3716
3717 * ui-out.h (ui_out_table_header): Add parameter ``col_name''.
3718 (table_header_ftype): Ditto.
3719 * cli-out.c (cli_table_header): Update.
3720 * ui-out.c (ui_out_table_header): Update.
3721 (uo_table_header): Update.
3722 (default_table_header): Update.
3723 (append_header_to_list): Update.
3724 (struct ui_out_header): Add field ``col_name''.
3725 (append_header_to_list): Use xstrdup. Initialize col_name.
3726 * breakpoint.c (breakpoint_1): Pass COL_NAME to
3727 ui_out_table_header.
3728
698384cd
AC
37292001-06-19 Andrew Cagney <ac131313@redhat.com>
3730
3731 * cli-out.c: Include "gdb_assert.h'.
3732 (struct ui_out_data): Add field ``suppress_output.
3733 (cli_table_begin): When NR_ROWS is zero, suppress_output.
3734 (cli_table_end): Clear suppress_output.
3735 (cli_table_body): Check suppress_output.
3736 (cli_table_header, cli_begin): Ditto.
3737 (cli_end, cli_field_int, cli_field_skip): Ditto.
3738 (cli_field_string, cli_field_fmt, cli_spaces): Ditto.
3739 (cli_text, cli_message, cli_wrap_hint): Ditto.
3740 * breakpoint.c (breakpoint_1): Close the ui_out table before
3741 printing the breakpoint not found message.
3742
d63f1d40
AC
37432001-06-18 Andrew Cagney <ac131313@redhat.com>
3744
3745 * ui-out.c (ui_out_table_begin): Add parameter ``nr_rows''.
3746 (default_table_begin): Ditto.
3747 (uo_table_begin): Ditto.
3748 * cli-out.c (cli_table_begin): Ditto.
3749 * ui-out.h (ui_out_table_begin): Update
3750 (table_begin_ftype): Update.
3751 * breakpoint.c (breakpoint_1): Pass nr_printable_breakpoints to
3752 ui_out_table_begin.
3753
7f3b0473
AC
37542001-06-16 Andrew Cagney <ac131313@redhat.com>
3755
3756 * breakpoint.c (breakpoint_1): Restructure. Compute the
3757 nr_printable_breakpoints. Move the header output to before the
3758 main print breakpoints loop.
3759 (user_settable_breakpoint): New function.
3760
b30bf9ee
AC
37612001-06-18 Andrew Cagney <ac131313@redhat.com>
3762
3763 * infrun.c, breakpoint.c: Use strncmp as the "mi" test. Allow,
3764 "mi", "mi0" and "mi1".
3765
83905903
AC
37662001-06-17 Andrew Cagney <ac131313@redhat.com>
3767
3768 * gdbarch.sh: Generate an error when conflicting macro
3769 definitions. Generate an error when both pure multi-arch and
3770 "tm.h".
3771 * gdbarch.h, gdbarch.c: Regenerate.
3772 * defs.h (GDB_MULTI_ARCH_TM): Rewrite definition.
3773
c2202abf
AC
37742001-06-17 Andrew Cagney <ac131313@redhat.com>
3775
3776 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Down grade to
3777 GDB_MULTI_ARCH_PARTIAL from two.
3778
0d70f41b
FN
37792001-06-17 Fernando Nasser <fnasser@redhat.com>
3780
3781 From 2001-06-15 Eirik Fuller <eirik@hackrat.com>
3782 * cli/cli-script.c (free_command_lines): Reset list pointer.
3783
7824d2f2
AC
37842001-06-16 Andrew Cagney <ac131313@redhat.com>
3785
3786 * arch-utils.c (init_frame_pc_default): New function
3787 * arch-utils.h (init_frame_pc_default): Declare.
3788 * gdbarch.sh (INIT_FRAME_PC): Default to init_frame_pc_default and
3789 not init_frame_pc_noop.
3790 * gdbarch.h, gdbarch.c: Re-generate.
3791 * blockframe.c (INIT_FRAME_PC): Delete macro definition.
3792 * mips-tdep.c (mips_gdbarch_init): Set init_frame_pc to
3793 init_frame_pc_noop.
3794
1622c8f7
AC
37952001-06-16 Andrew Cagney <ac131313@redhat.com>
3796
3797 * gdbarch.c: Regenerate. Out-of-sync with gdbarch.sh.
3798
01fb7433
AC
37992001-06-15 Andrew Cagney <ac131313@redhat.com>
3800
3801 * gdbarch.sh (CANNOT_FETCH_REGISTER): Multi-arch.
3802 (CANNOT_STORE_REGISTER): Ditto.
3803 * infptrace.c (CANNOT_FETCH_REGISTER): Delete definition.
3804 (CANNOT_STORE_REGISTER): Ditto.
3805 * regcache.c (CANNOT_STORE_REGISTER): Ditto.
3806 * lynx-nat.c (CANNOT_STORE_REGISTER): Ditto.
3807 * arch-utils.h (cannot_register_not): Define.
3808 * arch-utils.c (cannot_register_not): Declare.
3809
10312cc4
AC
38102001-06-15 Andrew Cagney <ac131313@redhat.com>
3811
3812 * gdbarch.sh: Clarify pre/post default
3813 (INIT_FRAME_PC_FIRST, INIT_FRAME_PC): Multiarch.
3814 * blockframe.c (get_prev_frame): Remove #ifdef from around
3815 INIT_FRAME_PC_FIRST call.
3816 * arch-utils.c (init_frame_pc_noop): Define.
3817 * arch-utils.h (init_frame_pc_noop): Declare.
3818 * config/mips/tm-mips.h (INIT_FRAME_PC_FIRST): Delete.
3819 (INIT_FRAME_PC, mips_init_frame_pc_first): Ditto.
3820 * mips-tdep.c (mips_init_frame_pc_first): Make static.
3821 (mips_gdbarch_init): Initialize init_frame_pc_first.
3822 (mips_dump_tdep): Update.
3823
dd80620e
MS
38242001-06-15 Michael Snyder <msnyder@redhat.com>
3825
3826 * infrun.c (context_switch): New function. Abstract the operation
3827 of saving and restoring infrun's state when switching threads.
3828 (handle_inferior_event): Normalize the handling of the 'thread hop'
3829 event (when the wrong thread hits a thread-specific breakpoint,
3830 and we need to solo-step that thread past the breakpoint).
3831 Call keep_going, instead of target_resume. Handle the subsequent
3832 singlestep-trap as a normal event instead of just resuming.
3833
875e1767
AC
38342001-06-15 Andrew Cagney <ac131313@redhat.com>
3835
3836 * arch-utils.c (core_addr_identity): New function. Rename
3837 default_convert_from_func_ptr_addr.
3838 * gdbarch.sh (CONVERT_FROM_FUNC_PTR_ADDR): Update.
3839 (ADDR_BITS_REMOVE): Define. Default to core_addr_identity.
3840 * defs.h (ADDR_BITS_REMOVE): Delete macro definition.
3841 * config/mips/tm-mips.h (ADDR_BITS_REMOVE): Delete definition.
3842 * mips-tdep.c (mips_addr_bits_remove): Make static.
3843 (mips_gdbarch_init): Initialize addr_bits_remove.
3844
4009c677
AC
38452001-06-15 Andrew Cagney <ac131313@redhat.com>
3846
3847 From 2001-02-26 D.J. Barrow <djbarrow@de.ibm.com>:
3848 * configure.tgt: Add S/390 31 & 64 bit target configuration.
3849 * configure.host: Ditto for host.
3850
d6dd581e
AC
38512001-06-15 Andrew Cagney <ac131313@redhat.com>
3852
3853 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS_P): Delete definition.
3854 (EXTRACT_STRUCT_VALUE_ADDRESS): Change to a function with
3855 predicate.
3856 * gdbarch.h, gdbarch.c: Regenerate.
3857 * values.c (value_being_returned): Change the reference to
3858 EXTRACT_STRUCT_VALUE_ADDRESS_P to a function call.
3859
09843d7f
JB
38602001-06-15 Joel Brobecker <brobecker@act-europe.fr>
3861
3862 * MAINTAINERS: Add Paul Hilfinger and Joel Brobecker to the
3863 Write After Approval list.
3864
dc8acb97
MS
38652001-06-14 Michael Snyder <msnyder@redhat.com>
3866
3867 * remote.c (show_remote_protocol_qSymbol_packet_cmd,
3868 set_remote_protocol_qSymbol_packet_cmd): New functions.
3869 (init_all_packet_configs, show_remote_cmd): Add qSymbol packet.
3870 (remote_check_symbols): New function. Implement qSymbol packet,
3871 allowing target to request symbol lookup service from gdb.
3872 (remote_open_1, remote_async_open_1): Call remote_check_symbols,
3873 allowing symbol lookup from exec_bfd on connection to target.
3874 (remote_new_objfile): New function. Catch new objfile notifications
3875 from shared library module, and call remote_check_symbols.
3876 (_initialize_remote): Hook remote_new_objfile into the shared
3877 library notification chain. Add "set remote symbol-lookup" command.
3878
578c1fe6
KS
38792001-06-14 Keith Seitz <keiths@redhat.com>
3880
3881 * tracepoint.c (trace_command): We now have tracepoint
3882 events. Get rid of those ugly hooks.
3883 (tracepoint_operation): Likewise.
3884 (trace_pass_command): Likewise.
3885
6c0d3f6a
MS
38862001-06-13 Michael Snyder <msnyder@redhat.com>
3887
3888 * gdbthread.h (struct thread_info): Add new fields:
3889 current_line, current_symtab, step_sp, for saved infrun state.
3890 * thread.c (save_infrun_state, load_infrun_state): Save and
3891 restore current_line, current_symtab, and step_sp.
3892 (add_thread): Rather than adding assignments to initialize
3893 the new fields, just use memset (tp, 0, sizeof (*tp).
3894 This way future new fields will not be overlooked.
3895 * infrun.c (handle_inferior_event): Save and restore save_sp,
3896 current_line, and current_symtab when switching threads.
3897
16075ace
EZ
38982001-06-13 Elena Zannoni <ezannoni@redhat.com>
3899
3900 * MAINTAINERS: Add Andrew Cagney as co-maintainer of
3901 testsuite/gdb.mi.
3902
31889e00
AC
39032001-06-11 Andrew Cagney <ac131313@redhat.com>
3904
3905 * symtab.c (lookup_symtab_1): Replace basename with lbasename.
3906 (lookup_partial_symtab, file_matches): Ditto.
3907 (make_source_files_completion_list): Ditto.
3908 (make_file_symbol_completion_list): Ditto. Make local char*
3909 variable ``tail'' constant.
3910 (make_source_files_completion_list): Ditto with ``base_name''.
3911 * source.c (open_source_file): Use lbasename. Make ``p'' const
3912 char *.
3913
4ac40b29
EZ
39142001-06-13 Eli Zaretskii <eliz@is.elta.co.il>
3915
3916 * config/i386/xm-go32.h (SLASH_P, ROOTED_P, SLASH_CHAR)
bfefb583 3917 (SLASH_STRING): Remove unused definitions.
4ac40b29
EZ
3918 * config/i386/xm-cygwin.h: Likewise.
3919
6b28c186
AC
39202001-06-12 Andrew Cagney <ac131313@redhat.com>
3921
3922 * ui-out.c (ui_out_list_begin): Add parameter ``id''.
3923 (make_cleanup_ui_out_list_begin_end): Ditto. Open the list.
3924 * ui-out.h: Update declarations.
3925
1f8cc6db
AC
3926Mon Jun 11 17:26:43 2001 Andrew Cagney <cagney@b1.cygnus.com>
3927
3928 * source.c (openp): Make parameters ``path'' and ``string''
3929 constant.
3930 (openp): Use alloca to safely duplicate ``string''. Make local
3931 variables ``p'' and ``p1'' constant. Delete char* casts.
3932 * defs.h: Update.
3933
3934 * symtab.c (lookup_symtab_1): Make parameter ``name'' constant.
3935 (lookup_symtab, lookup_partial_symtab): Ditto.
3936 * symtab.h (lookup_symtab, lookup_partial_symtab): Update.
3937
88379baf
AC
39382001-06-11 Andrew Cagney <ac131313@redhat.com>
3939
3940 * ui-out.h (ui_out_table_begin): Make char* parameters constant.
3941 (ui_out_table_header, ui_out_field_int): Ditto.
3942 (ui_out_field_core_addr, ui_out_field_string): Ditto.
3943 (ui_out_field_stream, ui_out_field_fmt): Ditto.
3944 (ui_out_field_skip, ui_out_text, ui_out_message): Ditto.
3945 * ui-out.c (ui_out_table_begin, ui_out_table_header): Update.
3946 (ui_out_field_core_addr, ui_out_field_stream): Update.
3947 (ui_out_field_string, ui_out_field_fmt): Update.
3948 (ui_out_text, ui_out_message): Update.
3949 (append_header_to_list): Make char* parameters constant.
3950 (uo_table_header, uo_table_begin): Ditto.
3951 (uo_field_int, uo_field_skip): Ditto.
3952 (uo_field_string, uo_field_fmt): Ditto.
3953 (uo_text, uo_message): Ditto.
3954
c94fdfd0
EZ
39552001-06-11 Eli Zaretskii <eliz@is.elta.co.il>
3956
3957 * completer.c (gdb_completer_loc_break_characters): New variable.
3958 (line_completion_function): If we are completing on locations,
3959 back up the start of word pointer past all characters which can
3960 appear in a location spec.
3961 (location_completer): New function.
3962
3963 * completer.h: Add prototype for location_completer.
3964
3965 * symtab.c (make_source_files_completion_list)
3966 (add_filename_to_list, not_interesting_fname): New functions.
3967 (filename_seen): New function, body extracted from
3968 output_source_filename.
3969 (output_source_filename): Call filename_seen to check if the file
3970 was already printed.
3971 (make_symbol_completion_list): If TEXT includes a
3972 double-quoted string, return an empty list, not NULL.
3973 (make_file_symbol_completion_list): New function, similar to
3974 make_symbol_completion_list but with an additional argument
3975 SRCFILE.
3976
3977 * symtab.h (make_file_symbol_completion_list)
3978 (make_source_files_completion_list): Add prototypes.
3979
3980 * breakpoint.c (_initialize_breakpoint): Make location_completer
3981 be the completion function for all commands which set breakpoints
3982 and watchpoints.
3983 (top-level): #include "completer.h".
3984
3985 * tracepoint.c (_initialize_tracepoint): Make location_completer
3986 be the completion function for the "trace" command.
3987 (top-level): #include "completer.h".
3988
3989 * printcmd.c (_initialize_printcmd): Make location_completer be
3990 the completion function for the "print", "inspect", "call", and
3991 "disassemble" commands.
3992 (top-level): #include "completer.h".
3993
3994 * infcmd.c (_initialize_infcmd): Make location_completer be the
3995 completion function for the "go", "jump", and "until" commands.
3996 (top-level): #include "completer.h".
3997
0b6a968e
CF
39982001-06-10 Christopher Faylor <cgf@redhat.com>
3999
4000 * gnu-regex.c: Eliminate obsolete check for _MSC_VER.
4001 * utils.c (notice_quit): Remove dummy function only used for _MSC_VER.
4002 * values.c (unpack_double): Remove obsolete check for _MSC_VER.
4003 * defs.h: Ditto.
4004 * m32r-rom.c: Ditto.
4005 * p-exp.y: Ditto.
4006 * ser-e7kpc.c: Ditto. Define WIN32_LEAN_AND_MEAN under _WIN32, for
4007 faster compilation.
4008 (get_ds_base): Remove _MSC_VER version of this function.
67bfdb89
CF
4009 * nindy-share/ttyflush.c: Ditto.
4010 * rdi-share/host.h: Ditto.
0b6a968e
CF
4011 * ser-go32.c (dos_readchar): Remove call to obsolete function.
4012 * remote-sim.c (gdb_os_poll_quit): Ditto.
4013 * remote-e7000.c (expect): Remove obsolete #if 0'ed code.
4014
4015 * main.c (captured_main): Eliminate special Cygwin checks.
4016 * ser-tcp.c: Remove unneeded __CYGWIN__ guard against system include.
4017
e2e11a41
AC
40182001-06-09 Andrew Cagney <ac131313@redhat.com>
4019
bf5efbab
AC
4020 * Makefile.in (gdbcmd_h): Add ui_out_h.
4021 (breakpoint.o, infcmd.o, main.o, printcmd.o, stack.o): Ditto.
4022 (thread.o, top.o): Ditto.
4023
e2e11a41
AC
4024 * ui-out.h (table_begin_ftype): Make string parameters constant.
4025 (table_header_ftype): Ditto.
4026 (field_int_ftype): Ditto.
4027 (field_skip_ftype): Ditto.
4028 (field_string_ftype): Ditto.
4029 (field_fmt_ftype): Ditto.
4030 (text_ftype): Ditto.
4031 (message_ftype): Ditto.
4032 * cli-out.c (cli_table_begin): Ditto.
4033 (cli_table_header): Ditto.
4034 (cli_field_int): Ditto.
4035 (cli_field_skip): Ditto.
4036 (cli_field_string): Ditto.
4037 (cli_field_fmt): Ditto.
4038 (cli_text): Ditto.
4039 (cli_message): Ditto.
4040 (out_field_fmt): Ditto.
4041 * ui-out.c (default_table_begin): Ditto.
4042 (default_table_header): Ditto.
4043 (default_field_int): Ditto.
4044 (default_field_skip): Ditto.
4045 (default_field_string): Ditto.
4046 (default_field_fmt): Ditto.
4047 (default_text): Ditto.
4048 (default_message): Ditto.
4049
2e663524
MS
40502001-06-08 Michael Snyder <msnyder@redhat.com>
4051
4052 * breakpoint.c (delete_breakpoint): Pass mark_inserted to
4053 remove_breakpoint, so that the subsequent test for
4054 bpt->inserted will succeed, and duplicates will be fixed up.
4055
bebd888e
PB
40562001-06-08 Per Bothner <per@bothner.com>
4057
4058 * dwarf2read.c (set_cu_language): Handle DW_LANG_Java.
4059
8f45b7fe
KS
40602001-06-07 Keith Seitz <keiths@redhat.com>
4061
4062 * tracepoint.c (tracepoint_opertation): Add ui event
4063 notifications.
4064 (trace_pass_command): Ditto.
4065
b76a2a57
AC
40662001-06-07 Andrew Cagney <ac131313@redhat.com>
4067
4068 * MAINTAINERS (Write After Approval): Note the entry criteria.
a4f1e24f 4069 (HP/PA): Jeff Law stepped down
b76a2a57 4070
72e74a21
JB
40712001-06-07 Jim Blandy <jimb@redhat.com>
4072
4073 * gdbarch.sh: Make sure that '[' doesn't interpret interesting
4074 variable values as operators.
4075
8c6ee715
KS
40762001-06-07 Keith Seitz <keiths@redhat.com>
4077
4078 * gdb-events.sh: Fix quote escaping which was obsoleted
4079 by last patch.
4080
9e791099
KS
40812001-06-07 Keith Seitz <keiths@redhat.com>
4082
4083 * gdb-events.sh: Make if statements and tests
4084 a little more portable.
4085 Don't use shell's echo command to put strings containing
4086 escaped characeters into a file -- different flavors of /bin/sh
4087 require differnt levels of escaping. Use cat <<EOF instead.
4088 Our internal field separator is a colon. Change all
4089 commands which assume it is a space.
4090
fce0e6e1
MK
40912001-06-06 Mark Kettenis <kettenis@gnu.org>
4092
4093 * lin-lwp.c (struct lwp_info): Add member `resumed'.
4094 (iterate_over_lwps): Make sure we can handle CALLBACK deleting the
4095 LWP it's called for.
4096 (lin_lwp_attach): Mark LWP as resumed to make sure the fake
4097 SIGSTOP is reported.
4098 (resume_clear_callback): New function.
4099 (resume_set_callback): New function.
4100 (lin_lwp_resume): Mark all LWP's that we're going to resume as
4101 resumed, and unmark all others.
4102 (status_callback): Only report a pending wait status if we pretend
4103 that LP has been resumed.
4104 (resumed_callback): New function.
4105 (lin_lwp_wait): Add assertions to check that LWP's are properly
4106 marked as resumed. Partially revert 2001-05-25 patch by Michael
4107 Snyder: do not resume all threads. Add comment explaining the
4108 problems associated with this bit of code.
4109
54403c59
KS
41102001-06-07 Keith Seitz <keiths@redhat.com>
4111
4112 * MAINTAINTERS: Syd Polk is stepping down from
4113 maintaining libgui. I am replacing him.
4114
1d06468c
EZ
41152001-06-07 Eli Zaretskii <elis@is.elta.co.il>
4116
4117 * config/mips/tm-irix6.h: New file.
4118
4119 * config/mips/irix6.mh: New file.
4120
4121 * config/mips/irix6.mt: New file.
4122
4123 * config/mips/xm-irix6.h: New file.
4124
4125 * config/mips/nm-irix6.h: New file.
4126
4127 * mips-tdep.c (mips_gdbarch_init) <MIPS_ABI_N32>: Set up the
4128 disassembler info in tm_print_insn_info as appropriate for the N32
4129 ABI. Force N32 ABI to be the default if the CPU is R8000 or
4130 R10000.
4131
4132 * configure.tgt (mips*-sgi-irix6*): Map to irix6.
4133
4134 * configure.host (mips*-sgi-irix6*): Ditto.
4135
3d499020
AC
41362001-06-07 Andrew Cagney <ac131313@redhat.com>
4137
4138 * gnu-v3-abi.c: Include "gdb_assert.h".
4139 (build_gdb_vtable_type): Replace abort() with gdb_assert().
4140
ceaa8edf
JB
41412001-06-06 Jim Blandy <jimb@redhat.com>
4142
c5f5341b
JB
4143 * cp-abi.h: Rearrange code to put documentation comments above the
4144 functions we export. The actual function table itself simply
4145 refers to those functions. Minor doc fixes.
4146
ceaa8edf
JB
4147 * gdbarch.sh: Changes to effect the following:
4148 * gdbarch.c (initialize_non_multiarch): New function.
4149 * gdbarch.h (initialize_non_multiarch): New declaration.
4150 * arch-utils.c (initialize_current_architecture): For
4151 non-multiarch configurations, call initialize_non_multiarch.
4152
0cd64fe2
AC
41532001-06-06 Andrew Cagney <ac131313@redhat.com>
4154
4155 * symfile.c (compare_psymbols): Replace PTR with void*. Delete
4156 declaration.
4157 (compare_symbols): Ditto.
4158
8849f47d
JL
41592001-06-06 Jonathan Larmour <jlarmour@redhat.com>
4160
4161 * arch-utils.c (generic_prepare_to_proceed): Allow for having
4162 stopped due to a Ctrl-C as well as breakpoints.
4163
4164 * hppa-tdep.c (hppa_prepare_to_proceed): Add FIXME as this may not
4165 support thread switches after Ctrl-C.
4166 * lin-lwp.c (lin_lwp_prepare_to_proceed): Ditto.
4167 * linux-thread.c (linuxthreads_prepare_to_proceed): Ditto.
4168 * m3-nat.c (mach3_prepare_to_proceed): Ditto.
4169
b3cc3077
JB
41702001-06-06 Jim Blandy <jimb@redhat.com>
4171
4172 * gdbarch.sh, gdbarch.c: Revert change of 2001-06-01; all
4173 per-architecture data should be registered at initialization time,
4174 before any gdbarch objects get used, so the generality is
4175 unnecessary.
4176
ba9fe036
KS
41772001-06-06 Keith Seitz <keiths@redhat.com>
4178
4179 * gdb-events.sh (function_list): Add tracepoint_create,
4180 tracepoint_delete, and tracepoint_modify events.
4181 * gdb-events.c: Regenerated.
4182 * gdb-events.h: Regenerated.
4183
e28f816a
KS
41842001-06-06 Keith Seitz <keiths@redhat.com>
4185
4186 * gdb-events.sh: Update copyrights.
4187 Change free to xfree.
4188 * gdb-events.c: Regenerated.
4189 * gdb-events.h: Regenerated.
4190
c3690141
EZ
41912001-06-06 Eli Zaretskii <eliz@is.elta.co.il>
4192
4193 * source.c (mod_path, openp): Use #ifdef HAVE_DOS_BASED_FILE_SYSTEM
4194 instead of #if HAVE_DOS_BASED_FILE_SYSTEM.
4195 * completer.c: Ditto.
4196 * cli/cli-cmds.c (cd_command): Ditto.
4197
37ba1196
EZ
41982001-06-04 Eli Zaretskii <eliz@is.elta.co.il>
4199
1012bd0e
EZ
4200 * mips-tdep.c (show_mipsfpu_command): Remove unused variable msg.
4201 (mips_set_processor_type_command): Remove unused variable j.
4202 (mips_breakpoint_from_pc): Declare breakpoint instruction
4203 sequences as unsigned char, to avoid compiler warnings.
4204
fe4e3eb8
EZ
4205 * source.c (mod_path, openp): Use HAVE_DOS_BASED_FILE_SYSTEM
4206 instead of system-specific define's like _WIN32 and __MSDOS__.
4207 Use IS_DIR_SEPARATOR and IS_ABSOLUTE_PATH instead of SLASH_P and
4208 ROOTED_P.
4209 (top-level): #include "filenames.h".
4210
4211 * solib.c (solib_open): Use IS_DIR_SEPARATOR and IS_ABSOLUTE_PATH
4212 instead of SLASH_CHAR, ROOTED_P and SLASH_P.
4213 (top-level): #include "filenames.h".
4214
4215 * defs.h (SLASH_P, SLASH_CHAR, ROOTED_P): Remove definitions.
4216 (SLASH_STRING): Define only for _WIN32.
4217
4218 * completer.c: Use HAVE_DOS_BASED_FILE_SYSTEM instead of
4219 __MSDOS_.
4220
4221 * cli/cli-cmds.c (cd_command): Use IS_DIR_SEPARATOR and
4222 IS_ABSOLUTE_PATH instead of SLASH_P and ROOTED_P. Replace
4223 system-specific ifdefs with HAVE_DOS_BASED_FILE_SYSTEM.
4224 (top-level): #include "filenames.h".
4225
37ba1196
EZ
4226 * go32-nat.c (go32_wait): Change the return value to ptid_t.
4227
4228 * config/djgpp/fnchange.lst: Add two new files in the
4229 gdb/testsuite/gdb.c++/ directory to the remapped names.
4230
4231 * config/djgpp/djconfig.sh (lt_cv_sys_max_cmd_len): Set to 12KB.
4232
3c875b6f
JB
42332001-06-01 Jim Blandy <jimb@redhat.com>
4234
4235 Expand the gdbarch per-architecture data vector as needed, rather
4236 than requiring that all per-architecture data be registered before
4237 the first gdbarch object is allocated.
4238 * gdbarch.sh: Changes to effect the following:
4239 * gdbarch.c (alloc_gdbarch_data, init_gdbarch_data): Delete
4240 declarations and definitions.
4241 (check_gdbarch_data): New function, and declaration.
4242 (gdbarch_alloc): Don't call alloc_gdbarch_data; leaving the fields
4243 zero is good enough.
4244 (free_gdbarch_data): Tolerate a null data pointer. Free only
4245 those data items gdbarch->data actually has allocated.
4246 (set_gdbarch_data, gdbarch_data): Call check_gdbarch_data.
4247 (gdbarch_update_p): No need to call init_gdbarch_data.
4248
98f96ba1
KB
42492001-06-01 Kevin Buettner <kevinb@redhat.com>
4250
4251 * ia64-tdep.c (is_float_or_hfa_type_recurse): Call check_typedef()
4252 on types that we wish to recurse on.
4253 (slot_alignment_is_next_even): New function.
4254 (ia64_push_arguments): Call slot_alignment_is_next_even() to
4255 examine the type in order to decide if it's necessary to skip
4256 an odd slot.
4257
c6ad9598
MS
42582001-06-01 Michael Snyder <msnyder@redhat.com>
4259
8601f500
MS
4260 * thread.c (delete_step_resume_breakpoint): New function.
4261 Maintain internal consistency of the thread list while deleting
4262 a step_resume_breakpoint.
4263 * gdbthread.h (delete_step_resume_breakpoint): Export.
4264 * breakpoint.c (bpstat_find_step_resume_breakpoint):
4265 Make thread-aware: don't return a step_resume_breakpoint
4266 for the wrong thread.
4267 * infrun.c (wait_for_inferior): Call delete_step_resume_breakpoint
4268 instead of delete_breakpoint_current_contents.
4269 (fetch_inferior_event): Ditto.
4270 (handle_inferior_event): Call delete_step_resume_breakpoint
4271 instead of delete_breakpoint.
c6ad9598
MS
4272 * infrun.c (handle_inferior_event): After singlestepping over a
4273 thread-specific breakpoint, use currently_stepping() to decide
4274 whether to step or continue.
4275
531017df
JB
42762001-06-01 Jim Blandy <jimb@redhat.com>
4277
b27b8843
JB
4278 * gnu-v3-abi.c (gnu_v3_abi_ops, vtable_type_gdbarch_data): Make
4279 these static --- there's no reason other files should use these.
4280
d0bbfec7
JB
4281 * partial-stab.h (case N_FUN: case 'f':, case N_FUN: case 'F':)
4282 Fix memory leak.
4283
531017df
JB
4284 * partial-stab.h: New complaint: function_outside_compilation_unit.
4285 (case N_FUN: case 'f':, case N_FUN: case 'F':): If pst is zero,
4286 complain, and don't try to set pst's start address.
4287
d469a809
KB
42882001-05-31 Kevin Buettner <kevinb@redhat.com>
4289
4290 * ia64-linux-tdep.c (IA64_LINUX_SIGCONTEXT_OFFSET): Revise to
4291 match the location at which the kernel is placing the sigcontext
4292 struct.
4293
58ab00f9
KB
4294 * ia64-tdep.c (max_skip_non_prologue_insns): New static global.
4295 (refine_prologue_limit): New function.
4296 (examine_prologue): Further limit number of instructions
4297 scanned by calling refine_prologue_limit(). Revise way in
4298 which the end of prologue address is computed for frameless
4299 functions.
4300
9fd7143a
CF
43012001-05-29 Christopher Faylor <cgf@redhat.com>
4302
4303 * partial-stab.h: Revert previous patch.
4304
34a7837a
CF
43052001-05-29 Christopher Faylor <cgf@redhat.com>
4306
4307 * partial-stab.h: Consistently guard against pst being NULL.
4308
ad53e288
AO
43092001-05-29 Alexandre Oliva <aoliva@redhat.com>
4310
4311 * symfile.c (compare_psymbols, compare_symbols): Declare using
4312 PTR, as in the definition.
09d011c5
AO
4313 * minsyms.c (compare_minimal_symbols): Likewise.
4314 * coffread.c (find_targ_sec): Likewise.
4315 * elfread.c (free_elfinfo, elf_locate_sections): Likewise.
4316 * mipsread.c (alphacoff_locate_sections): Likewise.
4317 * mdebugread.c (compare_blocks): Likewise.
ad53e288 4318
b41be06e
ND
43192001-05-25 Nick Duffek <nsd@redhat.com>
4320
4321 * solib.c (update_solib_list): Move target_resize_to_sections()
4322 into solib_map_sections() loop.
4323 (info_sharedlibrary_command): Try bfd_arch_bits_per_address() if
4324 bfd_get_arch_size() fails.
4325
a1cd1908
ND
43262001-05-25 Nick Duffek <nsd@redhat.com>
4327
4328 * Makefile.in (osfsolib.c, osfsolib.o): Rename to solib-osf.c and
4329 solib-osf.o.
4330 * config/alpha/alpha-osf1.mh (NATDEPFILES): Replace osfsolib.o
4331 with solib-osf.o and solib.o.
4332 * config/alpha/alpha-osf2.mh: Likewise.
4333 * config/alpha/alpha-osf3.mh: Likewise.
4334 * solib-osf.c: New file, renamed and largely rewritten from
4335 osfsolib.c.
4336
aa6c0017
MS
43372001-05-25 Michael Snyder <msnyder@redhat.com>
4338
c4365b19
MS
4339 * lin-lwp.c (lin_lwp_attach_lwp): Call stop_wait_callback,
4340 to consume the SIGSTOP generated by PTRACE_ATTACH.
4341 (stop_wait_callback): If a SIGTRAP or a SIGINT event is consumed,
4342 try again to get the SIGSTOP event.
4343 (lin_lwp_wait): Resume all threads when ignoring a signal.
4344 This will insure that newly attached threads get resumed.
5f885618 4345 * lin-lwp.c (stop_wait_callback): Discard redundant SIGINT events.
aa6c0017
MS
4346 * remote.c (remote_write_bytes): Update 'p' packet pointer.
4347
4b1fedf1
JB
43482001-05-25 Jim Blandy <jimb@redhat.com>
4349
4350 * gnu-v2-abi.c (gnuv2_virtual_fn_field): There's no need to clear
4351 VALUE_POINTED_TO_OFFSET here; if value_cast doesn't return a
4352 useful value, then we should fix that instead.
4353
fa3b51d2
ND
43542001-05-24 Nick Duffek <nsd@redhat.com>
4355
4356 * solist.h (struct so_list): Document the requirement that
4357 current_sos initialize some fields to 0.
4358
2747183e
MK
43592001-05-24 Mark Kettenis <kettenis@gnu.org>
4360
4361 * gnu-nat.c: Include <ctype.h>.
4362 (gnu_pid_to_exec_file): Add PID parameter.
4363 (set_sig_thread_cmd): Use PIDGET on return value from
4364 thread_id_to_pid.
4365 (proc_string): Use MERGEPID to construct argument to
4366 pid_to_thread_id.
4367
e4f237da
KB
43682001-05-22 Kevin Buettner <kevinb@redhat.com>
4369
4370 * breakpoint.c (breakpoint_address_is_meaningful): New function.
4371 (check_duplicates): Don't compare non-meaningful addresses.
4372
5fd913cc
MS
43732001-05-22 Michael Snyder <msnyder@redhat.com>
4374
4375 * thread-db.c: Allow for defunct zombie threads.
4376 (attach_thread): Do not attempt to attach zombie thread.
4377 (thread_db_thread_alive): Return false for defunct zombie thread.
4378 (find_new_threads_callback): Don't add defunct zombie thread to list.
4379
7ed49443
JB
43802001-05-22 Jim Blandy <jimb@redhat.com>
4381
4382 Add support for the GNU V3 C++ ABI.
4383 (Includes changes by Dan Berlin.)
4384
4385 * gnu-v3-abi.c: New file.
4386 * minsyms.c: #include "value.h" and "cp-abi.h".
4387 (install_minimal_symbols): Check the minimal symbol table for
4388 symbols that look mangled in the V3 style, and select the V3 ABI
4389 if we find any.
4390 * Makefile.in (SFILES): Add gnu-v3-abi.c.
4391 (COMMON_OBS): Add gnu-v3-abi.o.
4392 (gnu-v3-abi.o): Add new rule.
4393 (minsyms.o): Depend on $(cp_abi_h) and $(value_h).
4394
a44999d5
JB
43952001-05-21 Jim Blandy <jimb@redhat.com>
4396
8d65888a
JB
4397 * values.c (value_primitive_field): If we're extracting a base
4398 class, then the type of the result should be the base class being
4399 extracted, not the type of which it is a base class.
4400
a44999d5
JB
4401 * value.h (struct value): Doc fix, and rearrange members to place
4402 them near their explanations.
4403
6c3f2dbf
MS
44042001-05-21 Michael Snyder <msnyder@redhat.com>
4405
4406 * remote.c (remote_async_wait): Added new variable fieldsize.
4407 Add fieldsize (return value of hex2bin) to string pointer p.
4408
b4fa4770
SC
44092001-05-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4410
4411 * m68hc11-tdep.c (m68hc11_pop_frame): Fix stack pointer computation.
4412 (m68hc11_analyze_instruction): Update the pc correctly.
4413 (m68hc11_guess_from_prologue): Take into account the stack correction
4414 for the saving address.
4415
2b127877
DB
44162001-05-07 Daniel Berlin <dan@cgsoftware.com>
4417
4418 Changes by Jim Ingham:
4419
4420 * values.c (value_change_enclosing_type): New function. If the
4421 new enclosing type is larger than the old one, we need to allocate
4422 more space.
4423 * value.h: Add value_change_enclosing_type prototype.
4424 * valops.c (value_cast): Use it.
4425 (value_assign): Use it.
4426 (value_addr): Use it.
4427 (value_ind): Use it.
4428 (value_full_object): Use it.
4429
44302001-05-07 Daniel Berlin <dan@cgsoftware.com>
4431
984e377c
JB
4432 * values.c (value_static_field): Handle static fields that have a
4433 constant value.
2b127877 4434
736d0890
MS
44352001-05-17 Michael Snyder <msnyder@redhat.com>
4436
4437 * blockframe.c (create_new_frame): Zero all the fields via memset,
4438 rather than zeroing them one by one.
4439
a577b05c
EZ
44402001-05-17 Eli Zaretskii <eliz@is.elta.co.il>
4441
4442 * top.c (user_args): Remove unused declaration.
4443
b8adfa9f
MS
44442001-05-16 Michael Snyder <msnyder@redhat.com>
4445
4446 * infcmd.c (do_registers_info): Move alloca outside of loop.
4447
97345198
MS
44482001-05-15 John S Kallal <jskallal@home.com>
4449
4450 * remote.c (remote_wait): Added new variable fieldsize.
4451 Add fieldsize (return value of hex2bin) to string pointer p.
4452
aca21d9a
MK
44532001-05-15 Mark Kettenis <kettenis@gnu.org>
4454
4455 * sparc-tdep.c (sparc_gdbarch_init): Get the architecture from
4456 info.bfd_arch_info.
4457
b08cfdb6
KB
44582001-05-14 Kevin Buettner <kevinb@redhat.com>
4459
4460 * lin-lwp.c (detach_callback, lin_lwp_wait, lin_lwp_pid_to_str):
4461 Adjust format strings for printing LWPs to account for the fact
4462 that the type returned by GET_LWP() is now a long instead of an
4463 int.
4464
ca6724c1
KB
44652001-05-14 Kevin Buettner <kevinb@redhat.com>
4466
4467 * inferior.h (null_ptid, minus_one_ptid): New variable declarations.
4468 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
4469 (ptid_get_tid, ptid_equal): New function declarations.
4470 * infrun.c (null_ptid, minus_one_ptid): New variables.
4471 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
4472 (ptid_get_tid, ptid_equal): New functions.
4473 (_initialize_infrun): Initialize null_ptid, minus_one_ptid,
4474 inferior_ptid, and target_last_wait_ptid.
4475
4476 * defs.h (ptid_t): Redefine to be a struct rather than an int.
4477 (pid_to_ptid, null_ptid, ptid_equal): Delete these macros.
4478 (PIDGET, TIDGET, MERGEPID): Redefine these macros using the
4479 new ptid accessors and constructor.
4480
4481 * config/i386/tm-i386v42mp.h (PIDGET, TIDGET, LIDGET, MERGEPID,
4482 MKLID, MKTID, ISTID): Provide new definitions for these macros.
4483 The old macros are retained, but disabled via #if 0 in order
4484 to aid in future restructuring. See FIXME.
4485
4486 * arm-linux-nat.c (PIDGET, TIDGET): Delete macro definitions.
4487 * i386-linux-nat.c (PIDGET, TIDGET): Likewise.
4488 * infptrace.c (PIDGET, TIDGET): Likewise.
4489 * lin-lwp.c (PIDGET0, PIDGET, TIDGET, MERGEPID): Likewise.
4490 * lin-thread.c (PIDGET0, PIDGET, TIDGET, MERGEPID): Likewise.
4491 * proc-service.c (MERGEPID): Likewise.
4492 * procfs.c (PIDGET, TIDGET, MERGEPID): Likewise.
4493 * thread-db.c (PIDGET0, PIDGET, TIDGET, MERGEPID): Likewise.
4494 * config/nm-linux.h (PIDGET0, PIDGET, TIDGET, MERGEPID): Likewise.
4495 * config/i386/tm-i386sol2.h (PIDGET0, PIDGET, TIDGET, MERGEPID):
4496 Likewise.
4497 * config/sparc/tm-sun4sol2.h (PIDGET0, PIDGET, TIDGET, MERGEPID):
4498 Likewise.
4499
4500 * lin-lwp.c (THREAD_FLAG): Delete macro definition.
4501 (GET_LWP): Redefine in terms of ptid_get_lwp().
4502 (GET_PID): Redefine in terms of ptid_get_pid().
4503 (is_lwp): Redefine without the need for THREAD_FLAG.
4504 (BUILD_LWP): Redefine in terms of ptid_build().
4505 * lin-thread.c (THREAD_FLAG): Delete macro definition.
4506 (GET_LWP): Redefine in terms of ptid_get_lwp().
4507 (GET_PID): Redefine in terms of ptid_get_pid().
4508 (GET_THREAD): Redefine in terms of ptid_get_tid().
4509 (BUILD_THREAD, BUILD_LWP): Redefine in terms of ptid_build().
4510 (is_lwp, is_thread): Redefine.
4511 (linux_child_wait, check_all_signal_numbers)
4512 (linuxthreads_discard_global_state, attach_thread): Declare these
4513 functions to squash warnings about missing declarations.
4514 * sol-thread.c (THREAD_FLAG): Delete macro definition.
4515 (GET_PID): Redefine in terms of ptid_get_pid().
4516 (GET_LWP): Redefine in terms of ptid_get_lwp().
4517 (GET_THREAD): Redefine in terms of ptid_get_tid().
4518 (BUILD_THREAD, BUILD_LWP): Redefine in terms of ptid_build().
4519 (is_lwp, is_thread): Redefine.
4520 * thread-db.c (THREAD_FLAG): Delete macro definition.
4521 (GET_PID): Redefine in terms of ptid_get_pid().
4522 (GET_LWP): Redefine in terms of ptid_get_lwp().
4523 (GET_THREAD): Redefine in terms of ptid_get_tid().
4524 (BUILD_THREAD, BUILD_LWP): Redefine in terms of ptid_build().
4525 (is_lwp, is_thread): Redefine.
4526
4527 * corelow.c (add_to_thread_list, get_core_register_section):
4528 Eliminate hacks needed to prevent regressions when inferior_ptid
4529 wasn't wide enough to hold the core file thread id in the pid
4530 component of inferior_ptid.
4531
234fa6d1
MS
45322001-05-14 Michael Snyder <msnyder@redhat.com>
4533
4534 * remote.c (hex2bin): Make first argument const.
4535 Require explicit count, don't accept null-terminated str.
4536 (remote_resume, remote_async_resume): White space fix-up.
4537 (remote_write_bytes): Set nr_bytes to return value of bin2hex.
4538
caadab2c
MK
45392001-05-13 Mark Kettenis <kettenis@gnu.org>
4540
4541 * symtab.c (lookup_symtab_1): Use lbasename (NAME) instead of
4542 basename (NAME). The FreeBSD basename returns a pointer to a
4543 static buffer, even if it's simply returning a string identical to
4544 its argument.
4545 (lookup_partial_symtab): Likewise.
4546
2644f393
MS
45472001-05-14 Michael Snyder <msnyder@redhat.com>
4548
cb0ba49e 4549 * solib.c, solib.h: Add comment for function no_shared_libraries.
2644f393 4550
183a2f1a
KB
45512001-05-14 Kevin Buettner <kevinb@redhat.com>
4552
4553 * solib.h (no_shared_libraries): Make declaration match definition
4554 in solib.c.
4555
1dd1751e
AC
45562001-05-14 Andrew Cagney <ac131313@redhat.com>
4557
4558 * remote.c (remote_write_bytes): Set nr_bytes before returning it.
4559 * solib.h (no_shared_libraries): Declare.
4560
b732d07d
AC
45612001-05-12 Andrew Cagney <ac131313@redhat.com>
4562
4563 * gdbarch.sh (struct gdbarch_info): Delete field bfd_architecture.
4564 (gdbarch_update_p): Rewrite logic filling in INFO struct. Use
4565 user specified values when available.
4566 * rs6000-tdep.c (rs6000_gdbarch_init): Update. Get the
4567 architecture from info.bfd_arch_info.
4568 * gdbarch.c, gdbarch.h: Regenerate.
4569
67dd5ca6
FN
45702001-05-12 Fernando Nasser <fnasser@redhat.com>
4571
4572 * remote-e7000.c (e7000_open): Check for bad baud rate.
4573 * remote-st.c (st2000_open): Ditto.
4574
529acb48
JB
45752001-05-11 Jim Blandy <jimb@redhat.com>
4576
f8e42d24
JB
4577 * thread.c (do_captured_list_thread_ids): Use ui_out_tuple_begin
4578 and ui_out_tuple_end instead of ui_out_list_begin and
4579 ui_out_list_end.
4580
529acb48
JB
4581 * Makefile.in (gnu-v2-abi.o): Add $(demangle_h) to list of
4582 dependencies. Reorder dependencies to match #includes in file,
4583 for easier verification.
4584
666547aa
AC
4585Fri May 11 13:32:50 2001 Andrew Cagney <cagney@b1.cygnus.com>
4586
4587 * breakpoint.c: Replace ui_out_list_begin, ui_out_list_end and
4588 make_cleanup_ui_out_list_end with ui_out_tuple_begin,
4589 ui_out_tuple_end and make_cleanup_ui_out_tuple_begin_end.
4590 * cli/cli-setshow.c: Ditto.
4591 * printcmd.c: Ditto.
4592 * stack.c: Ditto.
4593
4594 * ui-out.h (enum ui_out_type): Fix tipo - tupple -> tuple.
4595 * ui-out.c (ui_out_list_begin): Delete ``lstid'' parameter.
4596 (ui_out_tuple_begin): New function.
4597 (ui_out_tuple_end): New function.
4598 (ui_out_tuple_begin_end): New function.
4599 (make_cleanup_ui_out_list_begin_end): Replace
4600 make_cleanup_ui_out_list_end function.
4601 * ui-out.h (ui_out_list_begin): Update declaration.
4602 (make_cleanup_ui_out_list_begin_end): Replace
4603 make_cleanup_ui_out_list_end declaration.
4604 (ui_out_tuple_begin, ui_out_tuple_end): Declare.
4605 (ui_out_tuple_begin_end): Declare.
4606
30c98d84
JB
46072001-05-11 Jim Blandy <jimb@redhat.com>
4608
4609 * gnu-v2-abi.c: Don't #include "gdb_regex.h". We don't use it.
4610
1faa59a8
AC
46112001-05-11 Andrew Cagney <ac131313@redhat.com>
4612
4613 From 2001-03-26 Rodney Brown <RodneyBrown@mynd.com>
4614 * config/pa/tm-hppa.h: Remove trigraph.
4615 * hp-symtab-read.c (hpread_type_translate): Provide return value.
4616 (hpread_read_struct_type): Remove trigraph. Add parameter in
4617 `warning'.
4618 (hpread_read_array_type): Provide return value.
4619 (hpread_type_lookup): Avoid ambiguous `else'. Provide return
4620 value.
4621 * hppa-tdep.c (initialize_hp_cxx_exception_support): Remove
4622 trigraph.
4623
99567b1b
JB
46242001-05-11 Jim Blandy <jimb@redhat.com>
4625
4626 * mips-tdep.c (mips_store_return_value,
4627 mips_extract_return_value): Pass arguments to
4628 return_value_location in the proper order.
4629
d3814881
AC
46302001-05-11 Andrew Cagney <ac131313@redhat.com>
4631
4632 * Makefile.in (VERSION): Delete. Moved to file ``version.in''.
4633 (version.c): Depends on file ``version.in''. Extract version
4634 number from ``version.in'' file.
4635 (clean mostlyclean): Update.
4636 * version.in: New file.
5d6640b1 4637 * NEWS: Update.
d3814881 4638
4d28f7a8
KB
46392001-05-11 Kevin Buettner <kevinb@redhat.com>
4640
4641 * breakpoint.c (set_raw_breakpoint): Add new parameter
4642 representing the breakpoint's type. Adjust all callers.
4643 (create_longjmp_breakpoint, create_temp_exception_breakpoint)
4644 (create_thread_event_breakpoint): Don't test for zero return
4645 value from set_raw_breakpoint(). It can never be zero.
4646 (create_exception_catchpoint, watch_command_1): Move logic
4647 which calculates the breakpoint type prior to the call to
4648 set_raw_breakpoint().
4649
08b4f080
FN
46502001-05-11 Fernando Nasser <fnasser@redhat.com>
4651
4652 * ser-unix.c (rate_to_code): Issue warning if baud rate is invalid.
4653 (hardwire_setbaudrate): Set errno to EINVAL and return with error
4654 if the conversion of the baud rate to code fails.
4655
127431f9
AC
46562001-05-10 Andrew Cagney <ac131313@redhat.com>
4657
4658 * ui-out.h (make_cleanup_ui_out_begin_end): Declare.
4659 * ui-out.c (struct ui_out_end_cleanup_data): Define.
4660 (do_cleanup_end): New function. Replace do_list_end.
4661 (make_cleanup_ui_out_end): New function.
4662 (make_cleanup_ui_out_begin_end): New function.
4663 (make_cleanup_ui_out_list_end): Use make_cleanup_ui_out_end.
4664
5dbc5e5f
EZ
46652001-05-10 Elena Zannoni <ezannoni@redhat.com>
4666
4667 * MAINTAINERS: Declare xcoffread.c open to all maintainers,
4668 and make Kevin Buettner (kevinb@redhat.com) the reference person.
4669
8e40d292
EZ
46702001-05-10 Elena Zannoni <ezannoni@redhat.com>
4671
4672 * proc-api.c (ioctl_with_trace): Fix uninitialized variable.
4673
5a703563
FN
46742001-05-10 Fernando Nasser <fnasser@redhat.com>
4675
4676 * MAINTAINERS: Add testsuite subdirectory co-maintainers.
4677
6311b07d
AC
4678Thu May 10 16:26:47 2001 Andrew Cagney <cagney@b1.cygnus.com>
4679
4680 * Makefile.in (mi-main.o): Compile with -Werror.
4681
30559e10
MS
46822001-05-10 Michael Snyder <msnyder@redhat.com>
4683
f78f6cf1
MS
4684 * remote.c (remote_open_1): Call no_shared_libraries, so that
4685 symbols for shared libraries can be reloaded per session.
4686 (remote_async_open_1): Ditto.
30559e10
MS
4687 * remote.c (bin2hex, hex2bin): New functions. Factor out these
4688 two conversions which are coded for repeatedly in this module.
4689 (remote_threads_extra_info, remote_wait, remote_async_wait,
4690 store_register_using_P, remote_store_registers, remote_write_bytes,
4691 remote_read_bytes, remote_rcmd): Use bin2hex and hex2bin instead
4692 of coding the conversions inline.
4693 (fromhex): Not exported, change from extern to static.
4694
0a1d9791
AC
46952001-05-10 Andrew Cagney <ac131313@redhat.com>
4696
4697 * arch-utils.c (initialize_current_architecture): Delete obsolete
4698 ``info architecture'' command.
4699 (info_architecture): Delete function.
4700
ee055267
AC
47012001-05-10 Andrew Cagney <ac131313@redhat.com>
4702
4703 * TODO (5.1, 5.2): Update.
4704
85886af6
AC
47052001-05-09 Andrew Cagney <ac131313@redhat.com>
4706
4707 * MAINTAINERS: Jim Ingham is no longer maintaining Arm related
4708 stuff.
30559e10 4709
ecb9ce7e
KS
47102001-05-10 Keith Seitz <keiths@cygnus.com>
4711
4712 * Makefile.in (SUBDIR_GDBTK_OBS): Add gdbtk-bp.o, gdbtk-register.o
4713 and gdbtk-stack.o.
4714 (SUBDIR_GDBTK_SRCS): Ditto for the sources.
4715 (gdbtk-bp.o): New rule.
4716 (gdbtk-register.o): New rule.
4717 (gdbtk-stack.o): New rule.
4718 (gdbtk-cmds.o): Update dependencies.
4719 (gdbtk.o): Ditto.
4720 (gdbtk-hooks.o): Ditto.
4721 (gdbtk-varobj.o): Ditto.
4722
f7635dd9
FN
47232001-05-10 Fernando Nasser <fnasser@redhat.com>
4724
4725 * varobj.c (c_number_of_children): Fix memory leak. Delete unwanted old
4726 variables, not just unregister them.
4727
0755e6c1
FN
47282001-05-10 Fernando Nasser <fnasser@redhat.com>
4729
4730 * varobj.c (c_number_of_children): Check for target type of void*,
4731 not the target type name. Allow dereferencing char*.
4732
d7db6da9
FN
47332001-05-10 Fernando Nasser <fnasser@redhat.com>
4734
4735 * symfile.c (symbol_file_add_main_1): New static function.
4736 Passes the flags arguments to symbol_file_add() and takes care
4737 of any necessary reinitializations.
4738 (symbol_file_command): Call symbol_file_add_main_1() instead of
4739 symbol_file_add().
4740 (symbol_file_add_main): Ditto.
4741
3d6e28e2
KB
47422001-05-09 Kevin Buettner <kevinb@redhat.com>
4743
4744 * lin-lwp.c (lin_lwp_pid_to_str): Revert inadvertent format
4745 string change in 2001-05-03 changes.
4746 (lin_lwp_wait): Revert GET_LWP coercion introduced in 2001-05-03
4747 changes.
4748
01263b57
KB
47492001-05-09 Kevin Buettner <kevinb@redhat.com>
4750
4751 * lin-lwp.c (lin_lwp_attach): Use PIDGET() to fetch the pid
4752 component from inferior_ptid.
4753 (lin_lwp_detach): Use pid_to_ptid() to convert from a pid to a
4754 ptid.
4755
74a151fa
EZ
47562001-05-09 Elena Zannoni <ezannoni@redhat.com>
4757
4758 * sh3-rom.c (_initialize_sh3_rom): Get rid of specific _WINDOWS
4759 conditional for help with connections through parallel ports,
4760 given that the actual code for downloading through a parallel port
4761 is not conditionalized.
4762
4763 * sh-tdep.c: Remove WIN32_WCE conditional. The wince sh target is
4764 unmaintaned, and probably on its way to obsolescence.
4765
d7a0d72c
MK
47662001-05-09 Mark Kettenis <kettenis@gnu.org>
4767
0d17c81d
MK
4768 * i386-tdep.c (i386_frame_saved_pc): New function.
4769 * config/i386/tm-i386.h (FRAME_SAVED_PC): Redefine in terms of
4770 i386_frame_saved_pc.
4771 (i386_frame_saved_pc): New prototype.
4772
d7a0d72c
MK
4773 * i386-tdep.c (i386_register_virtual_type): New function.
4774 (i386_register_convertible): New function.
4775 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE): Redefine in terms
4776 of i386_register_virtual_type.
4777 (REGISTER_CONVERTIBLE): Redefine in terms of
4778 i386_register_convertible.
4779 (i386_register_virtual_type, i386_register_convertible): New
4780 prototypes.
4781
ad8fe2ce
JB
47822001-05-08 Jim Blandy <jimb@redhat.com>
4783
33757489
JB
4784 * Makefile.in (mn10300-tdep.o): New rule.
4785
4786 * Makefile.in (gdb_string_h): Define. Use it throughout.
4787 Some rules were already using this, even though it isn't defined.
4788
c2c197ae
JB
4789 * Makefile.in (obstack_h, target_h): Define; these are already
4790 used elsewhere, but have been expanding to the empty string.
4791 (memattr_h): Define; needed by target_h.
4792
c064f384
JB
4793 * mn10300-tdep.c (mn10300_extract_return_value): Mark this as
4794 static. (This was accidentally omitted from the earlier patch.)
4795
23436510
JB
4796 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): New function.
4797 (mn10300_gdbarch_init): Register it as the architecture's
4798 dwarf2_reg_to_regnum method.
4799
ae83b20d
JB
4800 Correct and expand handling of `movm' instruction, and register
4801 saves in general.
4802 * config/mn10300/tm-mn10300.h (D0_REGNUM, A0_REGNUM, MDRQ_REGNUM,
4803 MCRH_REGNUM, MCRL_REGNUM, MCVF_REGNUM): New definitions.
4804 (enum movm_register_bits): New enum.
4805 * mn10300-tdep.c (set_movm_offsets): Use symbolic names for the
4806 bits, not hex literals. Handle the `other', `exreg0', and
4807 `exother' bits. Correct handling of `exreg1': it saves r4, r5,
4808 r6, and r7, not r2, r3, r4, and r5.
4809 (saved_regs_size): New function.
4810 (mn10300_frame_chain, mn10300_frame_saved_pc): Use it, instead
4811 of computing the same thing inline, incorrectly.
4812
bf4b70a5
JB
4813 * mn10300-tdep.c (mn10300_gdbarch_init): We do have a
4814 dummy_breakpoint_offset; it's zero.
4815
ee9f9641
JB
4816 * mn10300-tdep.c (mn10300_pop_frame): Split the mn10300-specific
4817 stuff out into mn10300_pop_frame_regular, and use
4818 generic_pop_current_frame. This lets us share code, and also
4819 makes this function's prototype match that expected by gdbarch.
4820 Make this function static.
4821 (mn10300_pop_frame_regular): New function.
4822 (mn10300_gdbarch_init): Register mn10300_pop_frame as the
4823 gdbarch's pop_frame method.
4824 * config/mn10300/tm-mn10300.h (POP_FRAME): Delete definition.
4825 (mn10300_pop_frame): Delete declaration.
4826
2ac51b36
JB
4827 * mn10300-tdep.c (mn10300_saved_pc_after_call,
4828 mn10300_extract_return_value,
4829 mn10300_extract_struct_value_address, mn10300_store_return_value,
4830 mn10300_use_struct_convention, mn10300_breakpoint_from_pc,
4831 mn10300_frame_chain, mn10300_skip_prologue,
4832 mn10300_push_arguments, mn10300_push_return_address,
4833 mn10300_store_struct_return, mn10300_frame_saved_pc,
4834 mn10300_init_extra_frame_info, mn10300_frame_init_saved_regs):
4835 Make these functions static; they should only be visible to the
4836 outside world as gdbarch methods.
4837
af4e72e9
JB
4838 * config/mn10300/tm-mn10300.h (mn10300_find_callers_reg): Delete
4839 unused declaration.
4840
584f96a8
JB
4841 * mn10300-tdep.c (mn10300_gdbarch_init): Put the gdbarch methods
4842 in some rational order.
4843
82d983b6
JB
4844 * mn10300-tdep.c (mn10300_gdbarch_init): Rather than using
4845 generic_pc_in_call_dummy, use pc_in_call_dummy_at_entry_point.
4846
ad8fe2ce
JB
4847 Use gdbarch for most target parameters for the MN10300, rather
4848 than the tm-*.h file.
4849 * config/mn10300/tm-mn10300.h (MAX_REGISTER_VIRTUAL_SIZE,
4850 REGISTER_BYTES, FP_REGNUM, BREAKPOINT_FROM_PC,
4851 FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK, INNER_THAN,
4852 SAVED_PC_AFTER_CALL, INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS,
4853 FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC,
4854 EXTRACT_RETURN_VALUE, EXTRACT_STRUCT_VALUE_ADDRESS,
4855 STORE_RETURN_VALUE, STORE_STRUCT_RETURN, SKIP_PROLOGUE,
4856 FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
4857 FRAME_NUM_ARGS, POP_FRAME, USE_GENERIC_DUMMY_FRAMES, CALL_DUMMY,
4858 CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
4859 CALL_DUMMY_LOCATION, FIX_CALL_DUMMY, CALL_DUMMY_ADDRESS,
4860 TARGET_READ_FP, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
4861 SAVE_DUMMY_FRAME_TOS, PUSH_ARGUMENTS, PC_IN_CALL_DUMMY,
4862 REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER):
4863 Delete definitions. We register gdbarch methods for these now.
4864 (struct frame_info, struct type, struct value): Delete forward
4865 declarations of these types; they're no longer necessary, since we
4866 don't have function declarations here any more.
4867 * mn10300-tdep.c: #include "arch-utils.h", to get declarations for
4868 some default gdbarch methods.
4869 (mn10300_store_struct_return): Return void, as expected by
4870 gdbarch.
4871 (mn10300_init_extra_frame_info): Take initial `fromleaf' argument,
4872 as expected by gdbarch.
4873 (mn10300_frame_init_saved_regs): Provide dummy definition for
4874 this, as required by gdbarch.
4875 (mn10300_gdbarch_init): Add mn10300_call_dummy_words, as expected
4876 by gdbarch. Register gdbarch methods or values for all the stuff
4877 removed from tm-10300.h, listed above.
4878
631ec795
AC
48792001-05-08 Andrew Cagney <ac131313@redhat.com>
4880
4881 * cli-out.c (cli_begin, cli_end): Replace cli_list_begin and
4882 cli_list_end.
4883 (cli_ui_out_impl): Update.
4884
4885 * ui-out.c (default_begin, default_end): Replace
4886 default_list_begin and default_list_end.
4887 (default_ui_out_impl): Update.
4888 (uo_begin, uo_end): Replace ou_list_begin and uo_list_end.
4889 (ui_out_begin, ui_out_end): Replace ui_out_list_begin and
4890 ui_out_list_end.
4891 (ui_out_list_begin, ui_out_list_end): New. Compatibility
4892 functions.
4893 (struct ui_out_level): Add field type.
4894 (push_level, pop_level): Update. Add type parameter.
4895
4896 * ui-out.h (enum ui_out_type): Declare.
4897 (ui_out_begin, ui_out_end): Declare.
4898 (ui_out_begin_ftype, ui_out_end_ftype): Replace list_begin_ftype
4899 and list_end_ftype.
4900 (struct ui_out_impl): Update.
4901
80f49b30
AC
49022001-05-07 Andrew Cagney <ac131313@redhat.com>
4903
4904 * ui-out.h (list_begin_ftype, list_end_ftype): Rename argument
4905 ``list_flag'' to ``depth''.
4906 * ui-out.c (default_list_begin, default_list_end): Update.
4907 (uo_list_begin, uo_list_end): Update.
4908 (MAX_UI_OUT_LEVELS): Define.
4909 (struct ui_out_level): Define.
4910 (top-level): Include "gdb_assert.h".
4911 (struct ui_out): Add fields ``level'' and ``levels''. Delete
4912 fields ``list_flag'' and ``field_count''.
4913 (ui_out_new): Update.
4914 (verify_field_proper_position): Update.
4915 (current_level, push_level, pop_level): New functions.
4916 (ui_out_list_begin): Use push_level.
4917 (ui_out_list_end): Use pop_level.
4918 (ui_out_field_int): Use current_level.
4919 (ui_out_field_skip): Ditto.
4920 (ui_out_field_fmt): Ditto.
4921
7aedc9f8
MS
49222001-05-08 Michael Snyder <msnyder@redhat.com>
4923
4924 * language.c (longest_local_hex_string_custom): Strlen test is
4925 inverted -- reverse the sense of the test.
4926
c6ec85d6
MK
49272001-05-08 Mark Kettenis <kettenis@gnu.org>
4928
4929 * config/i386/tm-i386v.h (struct frame_info, struct
4930 frame_saved_regs): Remove declarations.
4931 (i386_frame_num_args): Remove prototype.
4932
f938fa6a
AC
49332001-05-07 Andrew Cagney <ac131313@redhat.com>
4934
4935 * MAINTAINERS: I'm no longer actively maintaining the mn10300
4936 target.
4937
fb106663
AC
49382001-05-04 Andrew Cagney <ac131313@redhat.com>
4939
4940 * main.c (captured_main): Delete #ifndef _WIN32 conditional for
4941 WinGDB.
4942
ce696e05
KB
49432001-05-06 Kevin Buettner <kevinb@redhat.com>
4944
4945 * inferior.h (save_inferior_ptid): Declare.
4946 * infrun.c (save_inferior_ptid, restore_inferior_ptid): Define.
4947
4948 * hpux-thread.c (save_inferior_ptid, restore_inferior_ptid):
4949 Delete these functions.
4950 * lin-lwp.c (save_inferior_ptid, restore_inferior_ptid): Likewise.
4951 * lin-thread.c (save_inferior_ptid, restore_inferior_ptid): Likewise.
4952 * linux-thread.c (save_inferior_ptid, restore_inferior_ptid):
4953 Likewise.
4954 * proc-service.c (save_inferior_ptid, restore_inferior_ptid):
4955 Likewise.
4956 * sol-thread.c (save_inferior_ptid, restore_inferior_ptid): Likewise.
4957 * thread-db.c (save_inferior_ptid, restore_inferior_ptid): Likewise.
4958
4959 * somsolib.c (reset_inferior_ptid): Delete.
4960 (som_solib_remove_inferior_hook): Use save_inferior_ptid() to
4961 build the cleanup struct.
4962
4963 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
4964 a cleanup to save/restore inferior_ptid.
4965
c194fbe1
MK
49662001-05-06 Mark Kettenis <kettenis@gnu.org>
4967
4968 Implement attach/detach for multi-threaded programs on Linux.
4969 * thread-db.c (keep_thread_db): Adjust comment.
4970 (deactivate_target): Removed.
4971 (thread_db_new_objfile): Don't call deactivate_target. Implement
4972 guts of deactivate_target inline instead.
4973 (attach_thread): Call ATTACH_LWP unconditionally if defined.
4974 (thread_db_attach): New function.
4975 (thread_db_detach): Don't call deactivate_target. Do necessary
4976 cleanup inline instead. Set inferior_ptid to LWP corresponding to
4977 the current user-level thread.
4978 (thread_db_kill): Set inferior_ptid to LWP corresponding to the
4979 current user-level thread.
4980 (thread_db_create_inferior): Deactivate target vector if
4981 KEEP_THREAD_DB is zero.
4982 (thread_db_mourn_inferior): Don't call deactivate_target. Do
4983 necessary cleanup inline instead.
4984 (init_thread_db_ops): Initialize to_attach field to
4985 thread_db_attach.
4986 * lin-lwp.c (lin_lwp_mourn_inferior): Remove prototype.
4987 (stop_wait_callback): Add prototype.
4988 (init_lwp_list): Add comment about when to re-initialize the LWP
4989 list.
4990 (lin_lwp_attach_lwp): Only call ptrace for cloned processes.
4991 Avoid adding publicates to the LWP list. Only mark an LWP as
4992 signalled if it doesn't correspond to a cloned process.
4993 (lin_lwp_attach): Add initial process to the LWP list. Make sure
4994 it's stopped and fake a SIGSTOP.
4995 (detach_callback): New function.
4996 (lin_lwp_detach): Implement.
4997 (lin_lwp_create_inferior): Don't re-initialize LWP list here.
4998 Call child_ops.to_create_inferior directly instead of via
4999 target_beneath local.
5000 (lin_lwp_mourn_inferior): Call child_ops.to_mourn_inferior
5001 directly instead of via target_beneath local.
5002
a7fdf62f
EZ
50032001-05-06 Eli Zaretskii <eliz@is.elta.co.il>
5004
5005 * symtab.c (lookup_symtab_1, lookup_partial_symtab): Use basename
5006 instead of non-portable search for `/'. Use FILENAME_CMP instead
5007 of STREQ, to account for case-insensitive filesystems.
5008 (top-level): #include "filenames.h".
5009
9f60f21b
JB
50102001-05-05 Jim Blandy <jimb@redhat.com>
5011
644a1fe1
JB
5012 * breakpoint.c (check_duplicates): Use the breakpoint's type, not
5013 its address, to decide whether it's a watchpoint or not. Zero
5014 is a valid code address.
5015 (update_breakpoints_after_exec): Admonishing comments.
5016 * breakpoint.h (struct breakpoint): Doc fixes.
5017
9f60f21b
JB
5018 * breakpoint.c (check_duplicates): Take a breakpoint object as an
5019 argument, rather than an address and section. All callers changed.
5020
39f77062
KB
50212001-05-03 Kevin Buettner <kevinb@redhat.com>
5022
5023 * defs.h (ptid_t): New typedef.
5024 (pid_to_ptid, null_ptid, minus_one_ptid, ptid_equal): New macros.
5025
5026 * a68v-nat.c, alphabsd-nat.c, arch-utils.c, arm-linux-nat.c,
5027 blockframe.c, breakpoint.c, breakpoint.h,
5028 config/i386/nm-i386sol2.h, config/i386/tm-i386sco5.h,
5029 config/ia64/nm-linux.h, config/m68k/nm-hp300bsd.h,
5030 config/mips/nm-irix4.h, config/mips/nm-irix5.h,
5031 config/pa/nm-hppah.h, config/pa/tm-hppa.h,
5032 config/rs6000/nm-rs6000.h, config/sparc/nm-sun4sol2.h,
5033 corelow.c, cxux-nat.c, d10v-tdep.c, dink32-rom.c,
5034 dve3900-rom.c, fork-child.c, frame.c, gnu-nat.c, go32-nat.c,
5035 hp300ux-nat.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c,
5036 hpux-thread.c, i386-linux-nat.c, i386aix-nat.c, i386b-nat.c,
5037 i386bsd-nat.c, i386gnu-nat.c, i386mach-nat.c, i386nbsd-nat.c,
5038 infcmd.c, inferior.h, inflow.c, infptrace.c, infrun.c,
5039 inftarg.c, infttrace.c, lin-lwp.c, lin-thread.c,
5040 linux-thread.c, lynx-nat.c, m3-nat.c, m32r-rom.c,
5041 m68knbsd-nat.c, m88k-nat.c, mac-nat.c, mips-nat.c,
5042 mon960-rom.c, monitor.c, ns32knbsd-nat.c, ocd.c, ppc-bdm.c,
5043 ppcnbsd-nat.c, proc-service.c, procfs.c, ptx4-nat.c,
5044 regcache.c, remote-adapt.c, remote-array.c, remote-bug.c,
5045 remote-e7000.c, remote-es.c, remote-mips.c, remote-mm.c,
5046 remote-nindy.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
5047 remote-sds.c, remote-sim.c, remote-st.c, remote-udi.c,
5048 remote-vx.c, remote.c, rs6000-nat.c, sol-thread.c,
5049 solib-aix5.c, solib-svr4.c, somsolib.c, sparc-nat.c,
5050 standalone.c, sun3-nat.c, sun386-nat.c, symm-nat.c, target.c,
5051 target.h, thread-db.c, thread.c, top.c, ultra3-nat.c,
5052 uw-thread.c, v850ice.c, win32-nat.c, wince.c, xcoffsolib.c
5053 (inferior_pid): Rename to inferior_ptid everywhere - even in
5054 comments and obsolete ports. In cases where this variable
5055 really is supposed to be used as a process id, use PIDGET() to
5056 extract the process id component from inferior_ptid. The
5057 other cases, either involving other variables whose types had
5058 to be changed or functions whose signatures had to changed
5059 are listed separately below.
5060
5061 * arm-linux-nat.c (get_thread_id): Change type of argument
5062 representing a combined process/thread id from ``int'' to
5063 ``ptid_t''. Also change parameter name to ptid.
5064 * breakpoint.h, breakpoint.c (breakpoint_thread_match): Likewise.
5065 * corelow.c (core_file_thread_alive): Likewise.
5066 * d10v-tdep.c (d10v_read_pc, d10v_write_pc): Likewise.
5067 * defs.h (*target_wait_hook): Likewise.
5068 * gdbthread.h (thread_info, delete_thread, pid_to_thread_id)
5069 (find_thread_pid, save_infrun_state, load_infrun_state): Likewise.
5070 * gnu-nat.c (gnu_thread_alive, gnu_pid_to_str, gnu_wait)
5071 (gnu_resume): Likewise.
5072 * go32-nat.c (go32_wait, go32_resume): Likewise.
5073 * h8500-tdep.c (h8500_read_pc, h8500_write_pc): Likewise.
5074 * hppa-tdep.c (target_read_pc, target_write_pc): Likewise.
5075 * hppah-nat.c (child_pid_to_str, hppa_tid_to_str,
5076 (hppa_pid_or_tid_to_str, child_post_startup_inferior)
5077 (child_thread_alive): Likewise.
5078 * hpux-thread.c (hpux_thread_notice_signals, hpux_thread_alive)
5079 (hpux_pid_to_str, hpux_thread_wait, hpux_thread_resume): Likewise.
5080 * i386-linux-nat.c (child_resume): Likewise.
5081 * ia64-linux-nat.c (enable_watchpoints_in_psr, fetch_debug_register)
5082 (store_debug_register, fetch_debug_register_pair)
5083 (store_debug_register_pair, ia64_linux_insert_watchpoint)
5084 (ia64_linux_remove_watchpoint, ia64_linux_stopped_by_watchpoint):
5085 Likewise.
5086 * ia64-tdep.c (ia64_read_pc, ia64_write_pc): Likewise.
5087 * inferior.h (read_pc_pid, generic_target_read_pc, write_pc_pid)
5088 (generic_target_write_pc, ptrace_wait, child_resume)
5089 (get_last_target_status): Likewise.
5090 * infptrace.c (ptrace_wait, child_resume): Likewise.
5091 * inftarg.c (child_wait, child_post_wait, child_thread_live)
5092 (child_pid_to_str): Likewise.
5093 * infttrace.c (ptrace_wait, child_thread_alive, child_resume)
5094 (hppa_pid_or_tid_to_str, child_post_startup_inferior): Likewise.
5095 * lin-lwp.c (add_lwp, delete_lwp, find_lwp_pid, lin_lwp_attach_lwp)
5096 (lin_lwp_resume, lin_lwp_wait, lin_lwp_thread_alive)
5097 (lin_lwp_pid_to_str): Likewise.
5098 * lin-thread.c (thread_db_alive, thread_db_pid_to_str)
5099 (thread_db_resume, thread_db_wait): Likewise.
5100 * linux-thread.c (linuxthreads_thread_alive, linuxthreads_pid_to_str)
5101 (linuxthreads_resume, linuxthreads_wait): Likewise.
5102 * lynx-nat.c (child_wait, child_thread_alive, child_resume)
5103 (child_pid_to_str): Likewise.
5104 * m3-nat.c (mach_really_wait, m3_resume): Likewise.
5105 * mac-nat.c (child_wait, child_resume): Likewise.
5106 * mips-tdep.c (mips_read_pc): Likewise.
5107 * monitor.c (monitor_wait, monitor_resume): Likewise.
5108 * ocd.c, ocd.h (ocd_thread_alive, ocd_resume): Likewise.
5109 * ppc-bdm.c (bdm_ppc_wait): Likewise.
5110 * procfs.c (do_attach, procfs_wait, procfs_resume)
5111 (procfs_notice_signals, procfs_thread_alive, procfs_pid_to_str)
5112 (procfs_set_watchpoint, procfs_stopped_by_watchpoint)
5113 (procfs_find_LDT_entry): Likewise.
5114 * regcache.c (read_register_pid, read_signed_register_pid)
5115 (write_register_pid, generic_target_read_pc, read_pc_pid)
5116 (generic_target_write_pc, write_pc_pid): Likewise.
5117 * regcache.h (read_register_pid, read_signed_register_pid)
5118 (write_register_pid): Likewise.
5119 * remote-adapt.c (adapt_wait, adapt_resume): Likewise.
5120 * remote-array.c (array_wait, array_resume): Likewise.
5121 * remote-bug.c (bug_wait, bug_resume): Likewise.
5122 * remote-e7000.c (e7000_wait, e7000_resume): Likewise.
5123 * remote-eb.c (eb_wait, eb_resume): Likewise.
5124 * remote-es.c (es1800_wait, es1800_resume): Likewise.
5125 * remote-mips.c (mips_wait, mips_resume): Likewise.
5126 * remote-mm.c (mm_wait, mm_resume): Likewise.
5127 * remote-nindy.c (nindy_wait, nindy_resume): Likewise.
5128 * remote-os9k.c (rombug_wait, rombug_resume): Likewise.
5129 * remote-rdi.c (arm_rdi_wait, arm_rdi_resume): Likewise.
5130 * remote-rdp.c (remote_rdp_resume, remote_rdp_wait): Likewise.
5131 * remote-sds.c (sds_wait, sds_resume): Likewise.
5132 * remote-sim.c (gdbsim_wait, gdbsim_resume): Likewise.
5133 * remote-st.c (st2000_wait, st2000_resume): Likewise.
5134 * remote-udi.c (udi_wait, udi_resume): Likewise.
5135 * remote-vx.c (vx_wait, vx_resume): Likewise.
5136 * remote.c (remote_current_thread, remote_resume, remote_wait)
5137 (remote_async_resume, remote_async_wait, remote_cisco_wait)
5138 (remote_thread_alive): Likewise.
5139 * sol-thread.c (thread_to_lwp, lwp_to_thread, sol_thread_resume)
5140 (sol_thread_wait, sol_thread_notice_signals, sol_thread_alive)
5141 (solaris_pid_to_str): Likewise.
5142 * symm-nat.c (child_wait, child_resume): Likewise.
5143 * target.c (debug_to_resume, debug_to_wait, debug_to_post_wait)
5144 (debug_to_notice_signals, debug_to_thread_alive)
5145 (normal_target_post_startup_inferior, normal_pid_to_str)
5146 (debug_to_post_startup_inferior): Likewise.
5147 * target.h (to_resume, to_wait, to_post_wait)
5148 (to_post_startup_inferior, to_notice_signals, to_thread_alive)
5149 (to_pid_to_str [all in struct target_ops]): Likewise.
5150 (child_post_wait, child_thread_alive, normal_pid_to_str): Likewise.
5151 * thread-db.c (thread_from_lwp, lwp_from_thread, thread_db_wait)
5152 (attach_thread, detach_thread, thread_db_resume, check_event)
5153 (thread_db_post_startup_inferior, thread_db_thread_alive)
5154 (thread_db_pid_to_str): Likewise.
5155 * thread.c (add_thread, delete_thread, find_thread_pid)
5156 (pid_to_thread_id, in_thread_list, load_infrun_state)
5157 (save_infrun_state, switch_to_thread, restore_current_thread)
5158 (make_cleanup_restore_current_thread): Likewise.
5159 * top.c (target_wait_hook): Likewise.
5160 * uw-thread.c (dbgpid, thr_to_lwp, lwp_to_thr, add_thread_uw)
5161 (uw_thread_resume, libtrhead_stub, uw_thread_wait, uw_thread_alive)
5162 (uw_thread_pid_to_str): Likewise.
5163 * v850ice.c (v850ice_wait, v850ice_resume): Likewise.
5164 * win32-nat.c (child_wait, child_resume, win32_child_thread_alive)
5165 (cywin_pid_to_str): Likewise.
5166 * wince.c (child_wait, child_resume, win32_child_thread_alive):
5167 Likewise.
5168 * config/nm-linux.h (linuxthreads_pid_to_str): Likewise.
5169 * config/nm-lynx.h (child_wait, lynx_pid_to_str): Likewise.
5170 * config/alpha/nm-linux.h (lin_lwp_attach_lwp): Likewise.
5171 * config/arm/nm-linux.h (lin_lwp_attach_lwp): Likewise.
5172 * config/h8500/tm-h8500.h (h8500_read_pc, h8500_write_pc): Likewise.
5173 * config/i386/nm-i386sol2.h (procfs_stopped_by_watchpoint)
5174 (procfs_set_watchpoint): Likewise.
5175 * config/i386/nm-linux.h (lin_lwp_attach_lwp): Likewise.
5176 * config/i386/nm-ptx4.h (child_wait): Likewise.
5177 * config/i386/nm-symmetry.h (child_wait): Likewise.
5178 * config/i386/tm-cygwin.h (cygwin_pid_to_str): Likewise.
5179 * config/ia64/nm-linux.h (ia64_linux_stopped_by_watchpoint)
5180 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
5181 (lin_lwp_attach_lwp): Likewise.
5182 * config/mips/nm-irix4.h, config/mips/nm-irix5.h
5183 (procfs_stopped_by_watchpoint, procfs_set_watchpoint): Likewise.
5184 * config/pa/nm-hppah.h (child_pid_to_str, hppa_tid_to_str)
5185 (hppa_pid_or_tid_to_str): Likewise.
5186 * config/pa/tm-hppa.h (target_read_pc, target_write_pc): Likewise.
5187 * config/powerpc/nm-linux.h (lin_lwp_attach_lwp): Likewise.
5188 * config/sparc/nm-sun4sol2.h (procfs_stopped_by_watchpoint)
5189 (procfs_set_watchpoint): Likewise.
5190
5191 * gdbthread.h (thread_id_to_pid): Change return type which
5192 represents a combined process/thread id from ``int'' to
5193 ``ptid_t''.
5194 * gnu-nat.c (gnu_wait): Likewise.
5195 * go32-nat.c (go32_wait): Likewise.
5196 * hpux-thread.c (hpux_thread_wait): Likewise.
5197 * inferior.h (procfs_first_available): Likewise.
5198 * inftarg.c (child_wait): Likewise.
5199 * infttrace.c (ptrace_wait): Likewise.
5200 * lin-lwp.c (lin_lwp_wait): Likewise.
5201 * lin-thread.c (thread_db_wait): Likewise.
5202 * linux-thread.c (linuxthreads_wait): Likewise.
5203 * lynx-nat.c (child_wait): Likewise.
5204 * m3-nat.c (mach_really_wait): Likewise.
5205 * mac-nat.c (child_wait): Likewise.
5206 * monitor.c (monitor_wait): Likewise.
5207 * ppc-bdm.c (bdm_ppc_wait): Likewise.
5208 * procfs.c (do_attach, procfs_wait, procfs_first_available): Likewise.
5209 * remote-adapt.c (adapt_wait): Likewise.
5210 * remote-array.c (array_wait): Likewise.
5211 * remote-bug.c (bug_wait): Likewise.
5212 * remote-e7000.c (e7000_wait): Likewise.
5213 * remote-eb.c (eb_wait): Likewise.
5214 * remote-es.c (es1800_wait): Likewise.
5215 * remote-mips.c (mips_wait): Likewise.
5216 * remote-mm.c (mm_wait): Likewise.
5217 * remote-nindy.c (nindy_wait): Likewise.
5218 * remote-os9k (rombug_wait): Likewise.
5219 * remote-rdi.c (arm_rdi_wait): Likewise.
5220 * remote-rdp.c (remote_rdp_wait): Likewise.
5221 * remote-sds.c (sds_wait): Likewise.
5222 * remote-sim.c (gdbsim_wait): Likewise.
5223 * remote-st.c (st2000_wait): Likewise.
5224 * remote-udi.c (udi_wait): Likewise.
5225 * remote-vx.c (vx_wait): Likewise.
5226 * remote.c (remote_wait, remote_async_wait, remote_current_thread)
5227 (remote_cisco_wait): Likewise.
5228 * sol-thread.c (thread_to_lwp, lwp_to_thread, sol_thread_wait):
5229 Likewise.
5230 * symm-nat.c (child_wait): Likewise.
5231 * target.c (debug_to_wait): Likewise.
5232 * target.h (to_wait [in struct target_ops]): Likewise.
5233 * thread.c (thread_id_to_pid): Likewise.
5234 * thread-db.c (thread_from_lwp, lwp_from_thread, thread_db_wait):
5235 Likewise.
5236 * top.c (*target_wait_hook): Likewise.
5237 * uw-thread.c (lwp_to_thr, uw_thread_wait): Likewise.
5238 * v850ice.c (v850ice_wait): Likewise.
5239 * win32-nat.c (child_wait): Likewise.
5240 * wince.c (child_wait): Likewise.
5241 * config/nm-lynx.h (child_wait): Likewise.
5242 * config/i386/nm-ptx4.h (child_wait): Likewise.
5243 * config/i386/nm-symmetry.h (child_wait): Likewise.
5244
5245 * arch-utils.c (generic_prepare_to_proceed): Rename wait_pid
5246 to wait_ptid and change its type from ``int'' to ``ptid_t''.
5247 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Likewise,
5248 but rename saved_inferior_pid to saved_inferior_ptid.
5249 * d10v-tdep.c (d10v_read_pc, d10_write_pc): Likewise, but rename
5250 save_pid to save_ptid.
5251 * gdbthread.h (struct thread_info): Likewise, but rename pid to ptid.
5252 * hppah-nat.c (child_pid_to_exec): Likewise, but rename
5253 saved_inferior_pid to saved_inferior_ptid.
5254 * hpux-thread.c (main_ptid): Likewise, but rename from main_pid.
5255 * infrun.c (previous_inferior_pid [static global]): Likewise,
5256 but rename to previous_inferior_ptid.
5257 (resume): Likewise, but rename resume_pid to resume_ptid.
5258 (struct execution_control_state): Likewise, but rename
5259 pid to ptid, saved_inferior_pid to saved_inferior_ptid,
5260 and waiton_pid to waiton_ptid.
5261 (target_last_wait_pid): Likewise, but rename to
5262 target_last_wait_ptid.
5263 * infttrace.c (saved_real_pid): Likewise, but rename to
5264 saved_real_ptid.
5265 (child_pid_to_exec_file): Likewise, but rename saved_inferior_pid
5266 to saved_inferior_ptid.
5267 * lin-lwp.c (struct lwp_info): Likewise, but rename pid to ptid.
5268 (trap_ptid): Likewise, but renamed from trap_pid.
5269 * lin-thread.c (handle_new_thread): Likewise, but rename gdb_pid
5270 to gdb_ptid.
5271 * linux-thread.c (detach_thread): Likewise, but rename pid to ptid.
5272 (thread_db_wait): Likewise, but rename ret_pid to retptid.
5273 * procfs.c (procfs_wait): Likewise, for retval whose name
5274 doesn't change. Also, ``temp'' becomes two separate variables,
5275 one named temp_tid (an int) and the other temp_ptid.
5276 (procfs_notice_thread): Likewise (type change) for gdb_threadid
5277 whose name does not change.
5278 * regcache.c (registers_ptid): Likewise, but renamed from
5279 registers_pid.
5280 (read_register_pid, read_signed_register_pid, write_register_pid):
5281 Likewise, but rename save_pid to save_ptid.
5282 (read_pc_pid, write_pc_pid): Likewise, but rename saved_inferior_pid
5283 to saved_inferior_ptid.
5284 * remote.c (remote_newthread_step): Likewise, but rename pid to ptid.
5285 * sol-thread.c (struct ps_prochandle): Likewise.
5286 (sol_thread_resume): Likewise, for save_pid which becomes save_ptid.
5287 (sol_thread_wait): Likewise, for rtnval whose name does not
5288 change, and for save_pid which becomes save_ptid.
5289 (solaris_pid_to_str): Likewise for lwp whose name does not change.
5290 (sol_find_new_threads_callback): Likewise, for pid which becomes
5291 ptid.
5292 * target.h (target_resume, target_wait, target_post_wait)
5293 (target_post_startup_inferior, target_notice_signals)
5294 (target_thread_alive): Likewise.
5295 * thread.c (info_threads_command): Likewise, but rename
5296 current_pid to current_ptid.
5297 (struct current_thread_cleanup): Likewise, but rename field
5298 inferior_pid to inferior_ptid.
5299 * thread-db.c (find_new_threads_callback): Likewise, but rename
5300 pid to ptid.
5301 * uw-thread.c (thr_to_lwp): Likewise for lid whose name does not
5302 change.
5303 (lwp_to_tr): Likewise fo tid whose name remains unchanged.
5304 (thr_infpid, lwp_infpid, notice_thread, libthread_stub): Likewise,
5305 but rename pid to ptid.
5306 * config/alpha/nm-linux.h (ATTACH_LWP): Likewise.
5307 * config/arm/nm-linux.h (ATTACH_LWP): Likewise.
5308 * config/i386/nm-linux.h (ATTACH_LWP): Likewise.
5309 * config/ia64/nm-linux.h (ATTACH_LWP): Likewise.
5310 * config/pa/nm-hppah.h (target_tid_to_str): Likewise.
5311 * config/powerpc/nm-linux.h (ATTACH_LWP): Likewise.
5312
5313 * arch-utils.c (generic_prepare_to_proceed): Test for the
5314 "zero" ptid by using ptid_equal() to test to see if variable
5315 in question is the same as null_ptid. This replaces a direct
5316 test against zero.
5317 * cxux-nat.c (add_shared_symbol_files): Likewise.
5318 * i386aix-nat.c, i386b-nat.c (i386_float_info): Likewise.
5319 * infcmd.c (run_command): Likewise.
5320 * inflow.c (kill_command): Likewise.
5321 * infttrace.c (call_ttrace): Likewise.
5322 * lin-lwp.c (lin_lwp_prepare_to_proceed): Likewise.
5323 * lin-thread.c (thread_db_kill): Likewise.
5324 * procfs.c (procfs_kill_inferior, procfs_mourn_inferior): Likewise.
5325 * remote-es.c (es1800_kill): Likewise.
5326 * sol-thread.c (sol_thread_create_inferior): Likewise.
5327 * solib.c (locate_base): Likewise.
5328 * target.c (nosupport_runtime): Likewise.
5329 * thread-db.c (thread_db_wait): Likewise.
5330 * top.c (quit_confirm, quit_force): Likewise.
5331 * uw-thread (lwp_infpid, uw_thread_resume): Likewise.
5332
5333 * infrun.c (handle_inferior_event, stop_stepping, normal_stop):
5334 Use ptid_equal to compare value of process/thread ids instead of
5335 ``=='' and ``!='' operators.
5336 lin-lwp.c (delete_lwp, lin_lwp_prepare_to_proceed)
5337 (stop_wait_callback, lin_lwp_wait): Likewise.
5338 * procfs.c (procfs_wait): Likewise.
5339 * regcache.c (read_register_bytes, read_register_gen)
5340 (write_register_gen, read_register, read_register_pid)
5341 (read_signed_register, read_signed_register_pid, write_register)
5342 (write_register_pid, supply_register): Likewise.
5343 * remote-vx.c (vx_resume): Likewise.
5344 * sol-thread.c (sol_thread_wait): Likewise.
5345 * symm-nat.c (kill_inferior): Likewise.
5346 * thread.c (delete_thread, find_thread_pid, pid_to_thread_id)
5347 (in_thread_list, info_threads_command, switch_to_thread)
5348 (restore_current_thread): Likewise.
5349 * uw-thread (libtread_stub): Likewise.
5350
5351 * arm-linux-nat.c (GET_THREAD_ID): Change PID to PTID.
5352
5353 * corelow.c (add_to_thread_list): Convert argument in add_thread()
5354 call to a ptid_t.
5355 * gnu-nat.c (inf_validate_procs): Likewise.
5356 * linux-thread.c (stop_thread, update_stop_threads): Likewise.
5357 * remote.c (record_currthread, remote_threads_info): Likewise.
5358 * win32-nat.c (child_add_thread): Likewise.
5359
5360 * hpux-thread.c (save_inferior_pid, restore_inferior_pid): Rename,
5361 respectively, to save_inferior_ptid() and restore_inferior_ptid().
5362 Adjust implementations to operate on ``ptid_t'' instead of ``int''.
5363 * lin-lwp.c (save_inferior_pid, restore_inferior_pid): Likewise.
5364 * lin-thread.c (save_inferior_pid, restore_inferior_pid): Likewise.
5365 * linux-thread.c (save_inferior_pid, restore_inferior_pid): Likewise.
5366 * proc-service.c (save_inferior_pid, restore_inferior_pid): Likewise.
5367 * sol-thread.c (save_inferior_pid, restore_inferior_pid): Likewise.
5368 * thread-db.c (save_inferior_pid, restore_inferior_pid): Likewise.
5369
5370 * infrun.c (RESUME_ALL): New macro representing the -1 ptid
5371 to be passed to target_resume() when all threads should resume.
5372 (resume): Set resume_ptid to RESUME_ALL rather than -1.
5373 (handle_inferior_event): Invoke target_resume() with RESUME_ALL
5374 instead of -1.
5375 * irix5-nat.c (solib_create_inferior_hook): Convert -1 to
5376 a ptid_t in target_resume() call.
5377 * osfsolib.c (solib_create_inferior_hook): Likewise.
5378 * solib-svr4.c (solib_create_inferior_hook): Likewise.
5379
5380 * lin-lwp.c (PIDGET, PIDGET0): Rename original PIDGET macro to
5381 PIDGET0. Define new PIDGET macro which uses PIDGET0, the only
5382 difference being that the 0xffff pattern will be interpreted
5383 as -1.
5384 * lin-thread.c (PIDGET, PIDGET0): Likewise.
5385 * thread-db.c (PIDGET, PIDGET0): Likewise.
5386 * config/nm-linux.h (PIDGET, PIDGET0): Likewise.
5387 * config/i386/tm-i386sol2.h (PIDGET, PIDGET0): Likewise.
5388 * config/i386/tm-i386v42mp.h (PIDGET, PIDGET0): Likewise.
5389 * config/sparc/tm-sun4sol2.h (PIDGET, PIDGET0): Likewise.
5390
5391 * m3-nat.c (init_m3_ops): Fix typo; initialize to_wait field to
5392 mach_really_wait rather than mach_really__wait.
5393 * lin-thread.c (check_for_thread_event): Fix warning; make function
5394 actually return a value.
5395
5396 * gdbarch.sh (TARGET_READ_PC, TARGET_WRITE_PC): Change type of
5397 ``pid'' arguments from ``int'' to ``ptid_t''. Also renamed
5398 pid to ptid.
5399 * gdbarch.h, gdbarch.c: Regenerated.
5400
31e28849
JL
54012001-05-03 Jonathan Larmour <jlarmour@redhat.com>
5402
5403 * rdi-share/devsw.c: Include <time.h> for struct tm
5404
8d341142
EZ
54052001-05-03 Eli Zaretskii <eliz@is.elta.co.il>
5406
5407 * config/djgpp/fnchange.lst: Add mappings for the new
5408 opcodes/openrisc-* files.
5409
9572d2b6
MS
54102001-05-01 Michael Snyder <msnyder@redhat.com>
5411
9085700c 5412 * lin-lwp.c: Change printf to fprintf_unfiltered.
9572d2b6
MS
5413 * Makefile.in: Add rules for thread-db.o, lin-lwp.o, proc-service.o.
5414
977adac5
ND
54152001-05-01 Nicholas Duffek <nsd@redhat.com>
5416
5417 * config/rs6000/tm-rs6000.h (IN_SOLIB_RETURN_TRAMPOLINE): Define.
5418 (rs6000_in_solib_return_trampoline): Declare.
5419 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): New
5420 function.
5421 (rs6000_skip_trampoline_code): Skip bigtoc fixup code.
5422 * xcoffread.c (read_xcoff_symtab): Perform the ISFCN function
5423 check after the CSECT check rather than before it. Allocate
5424 separate symtabs for CSECTs whose names begin with '@'.
5425 (scan_xcoff_symtab): Don't ignore symbols beginning with '@'.
5426 Activate the misc_func_recorded mechanism for whose names begin
5427 with '@'.
5428
6d799331
C
54292001-04-30 J.T. Conklin <jtc@redback.com>
5430
5431 * ppcnbsd-nat.c (fetch_inferior_registers)
5432 (store_inferior_registers, fetch_core_registers): Changed to use
5433 fpreg[] instead of r_regs[] to access floating point registers.
5434
7f4dbe94
EZ
54352001-04-30 Elena Zannoni <ezannoni@redhat.com>
5436
5437 * sh-tdep.c: Get rid of the function prototypes.
5438 (sh_sh4_build_float_register_type): Move earlier in file.
5439 (fv_reg_base_num): Ditto.
5440 (dr_reg_base_num): Ditto.
5441
540af400
MS
54422001-04-30 Michael Snyder <msnyder@redhat.com>
5443
5444 * thread-db.c: Revert 2001-04-26 change for debugging output.
7ca673cd
MS
5445 * lin-lwp.c: Ditto.
5446 * lin-lwp.c: Add set/show debug lin-lwp command. Use this
5447 command to turn extra debugging output on / off.
540af400 5448
f5a6fc05
EZ
54492001-04-30 Eli Zaretskii <eliz@is.elta.co.il>
5450
5451 * buildsym.c (start_subfile): Use FILENAME_CMP instead of STREQ.
5452 (top-level): #include filenames.h.
5453
5454 * dwarf2read.c (dwarf2_start_subfile): Use IS_ABSOLUTE_PATH and
5455 FILENAME_CMP, to DTRT on non-Posix platforms.
5456 (top-level): #include filenames.h.
5457
5458
502dcf4e
AC
54592001-04-27 Andrew Cagney <ac131313@redhat.com>
5460
5461 * gdbtypes.c (check_stub_method): Always initialize ``p''.
5462
cc3f9cbb
AC
54632001-04-27 Andrew Cagney <ac131313@redhat.com>
5464
5465 * configure.host: Delete romp host.
5466 * TODO: Update.
5467
ed9c5cf2
AC
54682001-04-27 Andrew Cagney <ac131313@redhat.com>
5469
5470 * TODO: Updates to 5.1. No more targets to obsolete.
5471
d1a310e7
DH
54722001-04-27 Don Howard <dhoward@redhat.com>
5473
128437e6
DH
5474 (Changes from Kevin Buettner, with minor update by Don Howard.)
5475
5476 * i387-nat.c (i387_supply_fxsave, i387_fill_fxsave, i387_tag): Fix
5477 typos in which hexadecimal constants were really intended to be
5478 binary constants.
5479 (i387_tag): Swap logic regarding zero vs non-zero exponents.
d1a310e7
DH
5480 * MAINTAINERS (Misc): Added myself to the write-after-approval
5481 list.
5482
015a42b4
JB
54832001-04-26 Jim Blandy <jimb@redhat.com>
5484
5485 (Changes from Daniel Berlin, with revisions by Jim Blandy.)
5486
5487 Abstract out operations specific to particular C++ ABI's, and
5488 invoke them through a function table. This removes the C++ ABI
5489 dependencies scattered throughout the code, and allows us to
5490 cleanly add support for new C++ ABI's.
5491 * cp-abi.h, cp-abi.h, gnu-v2-abi.c, hpacc-abi.c: New files.
5492 * c-typeprint.c, c-valprint.c, dbxread.c, eval.c, gdbtypes.c,
5493 jv-typeprint.c, linespec.c, symtab.c, typeprint.c, valops.c:
5494 #include "cp-abi.h". These files all use functions now declared
5495 there.
5496 * symtab.h (OPNAME_PREFIX_P, VTBL_PREFIX_P, DESTRUCTOR_PREFIX_P):
5497 Deleted. These services are now provided by functions declared in
5498 cp-abi.h.
5499 * value.h (value_rtti_type, value_virtual_fn_field): Same.
5500 * values.c (value_virtual_fn_field): Same, for this definition.
5501 * valops.c (value_rtti_type): Same.
5502 * c-typeprint.c (c_type_print_base): Use the functions from
5503 "cp-abi.h", instead of the old macros, or hard-coded ABI-specific
5504 tests.
5505 * dbxread.c (record_minimal_symbol): Same.
5506 * gdbtypes.c (get_destructor_fn_field, virtual_base_index,
5507 virtual_base_index_skip_primaries): Same.
5508 * jv-typeprint.c (java_type_print_base): Same.
5509 * linespec.c (find_methods, decode_line_1): Same.
5510 * symtab.c (gdb_mangle_name): Same.
5511 * Makefile.in (SFILES): Add the new .c files mentioned above.
5512 (cp_abi_h): New variable.
5513 (COMMON_OBS): Add gnu-v2-abi.o, hpacc-abi.o, and cp-abi.o.
5514 (cp-abi.o, gnu-v2-abi.o, hpacc-abi.o): New targets.
5515 (c-typeprint.o, c-valprint.o, dbxread.o, eval.o, gdbtypes.o,
5516 jv-typeprint.o, symtab.o, linespec.o, typeprint.o, valops.o): Add
5517 dependency on $(cp_abi_h).
5518
f3fb8c85
MS
55192001-04-26 Michael Snyder <msnyder@redhat.com>
5520
20b8570d
MS
5521 * thread-db.c (_initialize_thread_db): Add set/show command
5522 "debug-linux-threads" for debugging output.
5523 * lin-lwp.c (various): Use global "debug_linux_threads to
5524 turn on extra debugging output.
4c8de859 5525 * lin-lwp.c: Minor cleanups in comments.
f3fb8c85
MS
5526 * target.c (normal_pid_to_str): Get rid of an ancient hack.
5527 * remote.c (remote_pid_to_str): New function for remote target.
5528
7f0b5c30
JB
55292001-04-24 Jim Blandy <jimb@redhat.com>
5530
5531 * c-typeprint.c (c_type_print_cv_qualifier): Don't print `const'
5532 qualifier on C++ references; all references are innately const.
5533
0af5533d
MK
55342001-04-20 Mark Kettenis <kettenis@gnu.org>
5535
5536 * event-top.h: Fix formatting.
5537
d036b4d9
AC
55382001-04-17 Andrew Cagney <ac131313@redhat.com>
5539
5540 * source.c (openp): Obsolete #ifdef MPW code.
5541 (open_source_file): Ditto.
5542 * event-top.c (display_gdb_prompt): Ditto.
5543 * utils.c (query): Ditto.
5544 (init_page_info): Ditto.
5545 (init_page_info): Delete #ifndef MPW.
5546 * top.c (gdb_readline): Ditto.
5547 * mac-xdep.c: Obsolete.
5548 * mac-gdb.r: Obsolete.
5549 * config/powerpc/xm-mpw.h: Obsolete.
5550 * config/xm-mpw.h: Obsolete.
5551 * mpw-make.sed: Obsolete.
5552 * mpw-config.in: Obsolete.
5553 * TODO: Update
5554 * NEWS: Update
5555
539ffe0b
MK
55562001-04-19 Mark Kettenis <kettenis@gnu.org>
5557
5558 * i386-tdep.c (i386_frameless_function_invocation): New function.
5559 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION): Redefine
5560 in terms of i386_frameless_function_invocation. Adjust comment.
5561 (i386_frameless_function_invocation): New prototype.
5562
67e1e03a
MH
55632001-04-18 Martin M. Hunt <hunt@redhat.com>
5564
5565 * top.c (gdb_init): Don't call cli_out_new() to
5566 create global uiout if init_ui_hook is set. uiout will
5567 have to be initialized there.
5568
fbec36e2
AC
55692001-04-18 Andrew Cagney <ac131313@redhat.com>
5570
5571 * arch-utils.c: Include "regcache.h".
5572
ed84f6c1
MK
55732001-04-18 Mark Kettenis <kettenis@gnu.org>
5574
5575 * i386-tdep.c (i386_saved_pc_after_call): New function.
5576 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Redefine in terms
5577 of i386_saved_pc_after_call.
5578 (i386_saved_pc_after_call): New prototype.
5579
c60a7562
MS
55802001-04-17 Michael Snyder <msnyder@redhat.com>
5581
c9e030cf 5582 * i386-nat.c: Fix typo in comment.
c60a7562
MS
5583 * solib.c (no_shared_libraries): New function. Discard all symbols
5584 from shared libraries.
5585 (_initialize_solib): Add command "nosharedlibrary" as complement
5586 to the command "sharedlibrary". Unloads symbols for all solibs.
5587
514e603d
AC
55882001-04-16 Andrew Cagney <ac131313@redhat.com>
5589
5590 * configure.host (m68030-sony-*, m68*-isi-*, m68*-sony-*):
5591 * configure.tgt (m68*-rom68k-*, m68*-*bug-*, m68*-monitor-*)
5592 (m68*-est-*, m68*-sony-*, m68*-isi-*):
5593 * Makefile.in (xm-news1000.h, tm-news.h, xm-news.h): Obsolete..
5594 * config/m68k/xm-news.h: Obsolete.
5595 * config/m68k/tm-news.h:
5596 * config/m68k/xm-news1000.h: Obsolete.
5597 * config/m68k/news.mh: Obsolete.
5598 * config/m68k/news.mt: Obsolete.
5599 * config/m68k/nm-news.h: Obsolete.
5600 * config/m68k/news1000.mh: Obsolete.
5601 * news-xdep.c: Obsolete.
5602 * Makefile.in (isi-xdep.o): Obsolete.
5603 (ALLDEPFILES): Delete isi-xdep.c.
5604 (tm-isi.h): Obsolete.
5605 * m68k-tdep.c (altos_skip_prologue): Update comments.
5606 (isi_skip_prologue): Obsolete.
5607 * isi-xdep.c: Obsolete.
5608 * config/m68k/xm-isi.h: Obsolete.
5609 * config/m68k/isi.mh: Obsolete.
5610 * config/m68k/tm-isi.h: Obsolete.
5611 * config/m68k/isi.mt: Obsolete.
5612
5613 * TODO: Update.
5614 * NEWS: Update.
5615
6240bebf
MS
56162001-04-17 Michael Snyder <msnyder@redhat.com>
5617
5618 * remote.c (remote_open_1): On opening the remote target, activate
5619 the solib_create_inferior_hook, so that it can detect when the
5620 target loads shared libraries.
5621 (remote_async_open_1): Ditto.
5622
75ac9d7b
MS
56232001-04-17 Michael Snyder <msnyder@redhat.com>
5624
5625 * breakpoint.c (print_one_breakpoint): Handle 64-bit addresses.
5626 * tracepoint.c (tracepoints_info): Handle 64-bit addresses.
5627 * testsuite/gdb.trace/deltrace.exp: Allow for 64-bit addresses.
5628 * testsuite/gdb.trace/infotrace.exp: Ditto.
5629 * testsuite/gdb.trace/passcount.exp: Ditto.
5630 * testsuite/gdb.trace/while-stepping.exp: Ditto.
5631
b9569773
MS
56322001-04-17 Michael Snyder <msnyder@redhat.com>
5633
5634 * thread-db.c (check_thread_signals): When looping over all
5635 signals, ignore signal zero.
5636 (disable_thread_signals): Ditto.
5637
81490ea1
MS
56382001-04-17 Eirik Fuller <eirik@netapp.com>
5639
5640 * thread.c (do_captured_thread_select): Allow the argument to the
5641 thread command to be an expression rather than a literal integer.
5642
e5434c3d
MK
56432001-04-17 Mark Kettenis <kettenis@gnu.org>
5644
5645 * i386-linux-tdep.c (i386_linux_saved_pc_after_call): Use
5646 read_memory_unsigned_integer instead of read_memory_integer.
5647
00c7912d
KB
56482001-04-16 Kevin Buettner <kevinb@redhat.com>
5649
5650 * solib-aix5.c (map_index_vs_section_name_okay): New function.
5651 (aix5_relocate_main_executable): Don't use file offsets for
5652 determining corresponding sections and map file entries. Call
5653 map_index_vs_section_name_okay() to do this instead.
5654
4d1bcd09
KB
56552001-04-16 Kevin Buettner <kevinb@redhat.com>
5656
5657 * procfs.c (open_with_retry): New function.
5658 (open_procinfo_files, load_syscalls, proc_iterate_over_mappings)
5659 (proc_get_LDT_entry): Call open_with_retry() instead of open().
5660
097e5c0b 56612001-04-16 Kevin Buettner <kevinb@redhat.com>
1186f287
KB
5662
5663 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Adjust
5664 comparison against TRAP_HWBKPT constant yet again to account
5665 for the various values used by different kernel versions.
5666
9e0c176c
DB
56672001-04-16 Daniel Berlin <dan@cgsoftware.com>
5668
5669 * demangle.c (_initialize_demangler): Use xcalloc on the
5670 demangling_style_names, and make it a null terminated array of
5671 names, to avoid a crash.
5672
c833a37e
MK
56732001-04-16 Mark Kettenis <kettenis@gnu.org>
5674
5675 * i386-tdep.c (i386_frame_chain): New function.
5676 * config/i386/tm-i386.h (FRAME_CHAIN): Redefine in terms of
5677 i386_frame_chain.
5678 (i386_frame_chain): New prototype.
5679
46c6cdcf
C
56802001-04-14 J.T. Conklin <jtc@redback.com>
5681
5682 * target.h (target_ops): Removed to_core_file_to_sym_file vector
5683 function.
5684 * corelow.c (core_ops): Updated for above change.
5685 * gnu-nat.c (core_ops): Likewise.
5686 * inftarg.c (child_ops): Likewise.
5687 * monitor.c (monitor_ops): Likewise.
5688 * ppc-bdm.c (bdm_ppc_ops): Likewise.
5689 * remote-adapt.c (adapt_ops): Likewise.
5690 * remote-bug.c (bug_ops): Likewise.
5691 * remote-e7000.c (e7000_ops): Likewise.
5692 * remote-eb.c (eb_ops): Likewise.
5693 * remote-es.c (es1800_ops, es1800_child_ops): Likewise.
5694 * remote-mm.c (mm_ops): Likewise.
5695 * remote-nindy.c (nindy_ops): Likewise.
5696 * remote-nrom.c (nrom_ops): Likewise.
5697 * remote-os9k.c (rombug_ops): Likewise.
5698 * remote-rdp.c (remote_rdp_ops): Likewise.
5699 * remote-sim.c (gdbsim_ops): Likewise.
5700 * remote-st.c (st2000_ops): Likewise.
5701 * v850ice.c (v850ice_ops): Likewise.
5702 * target.c (cleanup_target): Likewise
5703 (update_current_target): Likewise.
5704 (setup_target_debug): Likewise
5705 (debug_to_core_file_to_sym_file): Removed.
5706
5707 * corefile.c (core_file_command) [HPUXHPPA]: Removed code that
5708 sets symbol file from information obtained from the core file.
5709 * corelow.c (core_file_to_sym_file): Removed.
5710
d1566ff5
FN
57112001-04-13 Fernando Nasser <fnasser@redhat.com>
5712
5713 From Adam Mirowski <Adam.Mirowski@Sun.COM>
5714 Fixed Insight on Solaris. It was not possible to debug a process
5715 because of EINTR "errors".
5716 * procfs.c: (procfs_wait): if proc_wait_for_stop() fails
5717 with EINTR, retry the call.
5718
6c98e688
KB
57192001-04-12 Kevin Buettner <kevinb@redhat.com>
5720
5721 * solib-aix5.c (enum maptype): Delete.
5722 (struct lm_info): Add new member ``nmappings''. Make ``mapping''
5723 member a pointer instead of a statically sized array.
5724 (build_so_list_from_mapfile): Dynamically allocate ``mapping''
5725 array.
5726 (aix5_relocate_main_executable, aix5_relocate_section_addresses,
5727 aix5_find_global_pointer): Search for correct mapping to use
5728 based on file offset instead of knowledge of whether the section
5729 is read-only or read/write.
5730 (aix5_find_gate_addresses): Use the first mapping instead of
5731 the (now defunct) MT_READONLY mapping.
5732
49282387
ND
57332001-04-12 Nicholas Duffek <nsd@redhat.com>
5734
5735 * xcoffread.c (scan_xcoff_symtab): Ignore symbols beginning with
5736 "@".
5737
7f6b83a5
KB
57382001-04-12 Kevin Buettner <kevinb@redhat.com>
5739
5740 * config/i386/fbsd.mh (NATDEPFILES): Add i386-nat.o.
5741
24f89b68
AC
57422001-04-09 Andrew Cagney <ac131313@redhat.com>
5743
5744 Obsolete i[3456]86-*-sunos* (aka Sun386) host and target.
5745 * config/i386/sun386.mh: Obsolete.
5746 * config/i386/sun386.mt: Obsolete.
5747 * config/i386/xm-sun386.h: Obsolete.
5748 * config/i386/tm-sun386.h: Obsolete.
5749 * config/i386/nm-sun386.h: Obsolete.
5750 * Makefile.in (ALLDEPFILES): Delete sun386-nat.c.
5751 (sun386-nat.o): Target is obsolete.
5752 * sun386-nat.c: Obsolete.
5753 * configure.tgt (i[3456]86-*-sunos*): Obsolete.
5754 * configure.host (i[3456]86-*-sunos*): Obsolete.
5755 * NEWS: Update.
5756 * TODO: Update.
5757
c114dcd5
C
57582001-04-10 J.T. Conklin <jtc@redback.com>
5759
5760 * maint.c: Fix typo in comment.
5761
6755f5ad
KS
57622001-04-09 Keith Seitz <keiths@cygnus.com>
5763
5764 * MAINTAINERS: Swap with Syd Polk as a gdbtk maintainer.
5765
7700434b
KB
57662001-04-08 Kevin Buettner <kevinb@redhat.com>
5767
5768 * fork-child.c (fork_inferior, clone_and_follow_inferior):
5769 Document fact that apparent call to vfork() might actually be
5770 a call to fork() instead.
5771 * ser-pipe.c (pipe_open): Likewise.
5772
d493eb33
KB
57732001-04-08 Kevin Buettner <kevinb@redhat.com>
5774
5775 * printcmd.c (print_frame_args): Use a cleanup to invoke
5776 ui_out_list_end() so that the list count nesting flag will
5777 be decremented properly when an error occurs.
5778 * stack.c (print_frame): Likewise.
5779
af471f3c
C
57802001-04-06 J.T. Conklin <jtc@redback.com>
5781
c839c4db
C
5782 * dcache.c (dcache_write_line): Fixed bugs where cache line was
5783 not written to target correctly.
5784
af471f3c
C
5785 * gdbserver/low-hppabsd.c (read_inferior_memory): Add explicit
5786 void return value;
5787 * gdbserver/low-nbsd.c: Likewise.
5788 * gdbserver/low-sparc.c: Likewise.
5789 * gdbserver/low-sun3.c: Likewise.
5790
d8e275b4
GK
57912001-04-06 Geoffrey Keating <geoffk@redhat.com>
5792
5793 * config/rs6000/nm-rs6000.h (PTRACE_ATTACH): Don't define.
5794 (PTRACE_DETACH): Don't define.
5795
e02bc4cc
DS
57962001-04-06 David Smith <dsmith@redhat.com>
5797
5798 * arch-utils.c (default_prepare_to_proceed)
5799 (generic_prepare_to_proceed): Added new functions.
5800 * arch-utils.h: New function declarations for
5801 default_prepare_to_proceed() and generic_prepare_to_proceed().
5802 * gdbarch.sh: Added PREPARE_TO_PROCEED.
5803 * gdbarch.c: Regenerated.
5804 * gdbarch.h: Regenerated.
5805 * inferior.h: Added get_last_target_status() declaration.
5806 * infrun.c (get_last_target_status): Added new function.
5807 (handle_inferior_event): Saves last pid and waitstatus, which will
5808 get returned by get_last_target_status().
5809
5810 * hppa-tdep.c (prepare_to_proceed): Added comment stating that
5811 prepare_to_proceed() is potentially redundant since
5812 default_prepare_to_proceed() has been added.
5813 * linux-thread.c (prepare_to_proceed): Ditto.
5814 * lin-lwp.c (prepare_to_proceed): Ditto.
5815 * m3-nat.c (prepare_to_proceed): Ditto.
5816
1b2b2c16
AC
58172001-04-05 Andrew Cagney <ac131313@redhat.com>
5818
5819 Obsolete powerpcle-*-cygwin* and powerpcle-*-solaris* platforms
5820 and powerpc-*-netware* target.
5821 * configure.host (powerpcle-*-cygwin*, powerpcle-*-solaris*):
5822 Obsolete.
5823 * configure.tgt (powerpc-*-netware*, powerpcle-*-cygwin*)
5824 (powerpcle-*-solaris*): Obsolete.
5825 * config/powerpc/tm-cygwin.h: Obsolete.
5826 * config/powerpc/cygwin.mt: Obsolete.
5827 * config/powerpc/xm-cygwin.h: Obsolete.
5828 * config/powerpc/cygwin.mh: Obsolete.
5829 * config/powerpc/nm-solaris.h: Obsolete.
5830 * config/powerpc/xm-solaris.h: Obsolete.
5831 * config/powerpc/tm-solaris.h: Obsolete.
5832 * config/powerpc/solaris.mt: Obsolete.
5833 * config/powerpc/tm-ppc-nw.h: Obsolete.
5834 * config/powerpc/ppc-nw.mt: Obsolete.
5835 * TODO: Update.
5836 * NEWS: Update.
5837
063fd668
FN
58382001-04-06 Fernando Nasser <fnasser@redhat.com>
5839
5840 * buildsym.c (record_line): Turn off unused addr bits.
5841
a250df2e
FN
58422001-04-06 Fernando Nasser <fnasser@redhat.com>
5843
5844 From David Deephanphongs <deephan@telocity.com>
5845 * inferior.h: Fix declarations of get_inferior_args and
5846 set_inferior_args, which were missing the trailing 's'.
5847
1fcef334
JH
58482001-04-05 Jeff Holcomb <jeffh@redhat.com>
5849
5850 * monitor.c (monitor_supply_register): Only report an error if we
5851 don't get a valid value.
5852
f032fb6e
EZ
58532001-04-05 Eli Zaretskii <eliz@is.elta.co.il>
5854
5855 * README: Don't mention gdba.el.
5856
0191bed7
EZ
58572001-04-05 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
5858
5859 From Jimmy Guo <guo@cup.hp.com>
5860 * top.c (init_main): set prompt if annotation_level>1,
5861 this is necessary when annotation_level is set to 2 via
5862 --annotate=2 command line option.
5863
4a1968f4
AC
58642001-04-04 Andrew Cagney <ac131313@redhat.com>
5865
5866 Obsolete a29k-*-* host and a29k-*-sym1* and a29k-*-kern* targets.
5867 * configure.tgt (a29k-*-sym1*, a29k-*-kern*): Obsolete.
5868 * configure.host (a29k-*-*): Obsolete.
5869 * Makefile.in (ALLDEPFILES): Remove ultra3-nat.c and
5870 ultra3-xdep.c.
5871 (ultra3-nat.o, ultra3-xdep.o): Obsolete.
5872 * config/a29k/tm-ultra3.h: Obsolete.
5873 * config/a29k/ultra3.mt: Obsolete.
5874 * config/a29k/ultra3.mh: Obsolete.
5875 * config/a29k/nm-ultra3.h: Obsolete.
5876 * config/a29k/xm-ultra3.h: Obsolete.
5877 * ultra3-xdep.c: Obsolete.
5878 * ultra3-nat.c: Obsolete.
5879 * config/a29k/a29k-kern.mt: Obsolete.
5880 * NEWS: Update.
5881 * TODO: Update.
5882
608506ed
CF
5883Wed Apr 4 21:48:42 2001 Christopher Faylor <cgf@cygnus.com>
5884
5885 * main.c: Remove windows.h use.
5886 (gdbtk_test): Use PATH_MAX for home var calculation.
5887 * remote-e7000.c (e7000_parse_device): Accomodate Cygwin as well as
5888 Win32 in colon test.
5889 * ser-tcp.c: Use modern __CYGWIN__ conditional.
5890 * source.c (mod_path): Add __CYGWIN__ conditional to WIN32 test.
5891 (openp): Ditto.
5892 * symfile.c (symfile_bfd_open): Ditto.
608506ed 5893
6457bd47
MH
58942001-04-04 Martin M. Hunt <hunt@redhat.com>
5895
5896 * main.c (captured_main): For GDBtk, don't use tui_fileopen().
5897 Handle all stream setup in gdbtk_init
5898
3df1b9b4
MK
58992001-04-04 Mark Kettenis <kettenis@gnu.org>
5900
5901 * i386-tdep.c (i386_extract_return_value): Don't return the return
5902 value of a void function.
5903 (i386_store_return_value): Likewise.
5904
76f4ea53
AC
59052001-04-03 Andrew Cagney <ac131313@redhat.com>
5906
5907 Obsolete w65-*-* target.
5908 * configure.tgt (w65-*-*): Obsolete.
5909 * config/w65/w65.mt: Obsolete.
5910 * config/w65/tm-w65.h: Obsolete.
5911 * w65-tdep.c: Obsolete.
5912 * NEWS: Update. Fix TiC80 description.
5913 * TODO: Update.
5914
52071915
AC
59152001-04-03 Andrew Cagney <ac131313@redhat.com>
5916
5917 Obsolete tic80-*-* target.
5918 * configure.tgt (tic80-*-*): Obsolete.
5919 * config/tic80/tic80.mt: Obsolete.
5920 * config/tic80/tm-tic80.h: Obsolete.
5921 * tic80-tdep.c: Obsolete.
5922 * TODO: Update
5923 * NEWS: Update.
5924
44eaed12
C
59252001-04-02 J.T. Conklin <jtc@redback.com>
5926
ba79cc81
C
5927 * remote-mips.c (S_IROTH): Moved definition from here.
5928 * gdb_stat.h (S_IROTH): to here.
5929
44eaed12
C
5930 * remote.c (remote_protocol_e, remote_protocol_E): Define.
5931 (set_remote_protocol_e_packet_cmd)
5932 (set_remote_protocol_E_packet_cmd)
5933 (show_remote_protocol_e_packet_command)
5934 (show_remote_protocol_E_packet_command): New functions.
5935 (init_all_packet_configs): Initialize remote_protocol_e and
5936 remote_protocol_E.
5937 (remote_resume, remote_async_resume): Support e/E command
5938 packets.
5939 (show_remote_cmd): Show state of remote_protocol_e and
5940 remote_protocol_E.
5941 (_initialize_remote): Add "set remote step-over-range-packet"
5942 and "set remote step-over-range-w-signal-packet" to CLI.
5943
bb19ff3b
AC
59442001-04-01 Andrew Cagney <ac131313@redhat.com>
5945
5946 Obsolete ns32k-*-mach3*, ns32k-umax-*, ns32k-utek-sysv* and
5947 ns32k-utek-*.
5948 * Makefile.in (ALLDEPFILES): Delete umax-xdep.c and ns32km3-nat.c.
5949 (umax-xdep.o, ns32km3-nat.o): Obsolete.
5950 * configure.tgt (ns32k-*-mach3*, ns32k-utek-sysv*, ns32k-utek-*):
5951 Obsolete.
5952 * configure.host (ns32k-*-mach3*, ns32k-umax-*, ns32k-utek-sysv*):
5953 Obsolete.
5954 * config/ns32k/merlin.mh: Obsolete.
5955 * config/ns32k/merlin.mt: Obsolete.
5956 * config/ns32k/xm-merlin.h: Obsolete.
5957 * config/ns32k/tm-merlin.h: Obsolete.
5958 * config/ns32k/nm-umax.h: Obsolete.
5959 * config/ns32k/umax.mh: Obsolete.
5960 * config/ns32k/umax.mt: Obsolete.
5961 * config/ns32k/xm-umax.h: Obsolete.
5962 * umax-xdep.c: Obsolete.
5963 * config/ns32k/ns32km3.mh: Obsolete.
5964 * config/ns32k/ns32km3.mt: Obsolete.
5965 * config/ns32k/tm-ns32km3.h: Obsolete.
5966 * config/ns32k/xm-ns32km3.h: Obsolete.
5967 * ns32km3-nat.c: Obsolete.
5968 * ns32k-tdep.c (merlin_skip_prologue): Obsolete.
5969 (merlin_frame_num_args): Ditto.
5970 * NEWS: Update.
5971 * TODO: Update.
5972
d6259d75
EZ
59732001-04-02 Eli Zaretskii <eliz@is.elta.co.il>
5974
5975 * config/djgpp/fnchange.lst: Tweak due to
5976 expect/example/chesslib.c.
5977
971ff545
KB
59782001-04-02 Kevin Buettner <kevinb@redhat.com>
5979
5980 * m88k-tdep.c (examine_prologue): Change type of ``insn'' from
5981 unsigned int to unsigned long. Also, fix format string.
5982 (pop_frame): Fix PC_IN_CALL_DUMMY() call so that it doesn't
5983 use an undeclared variable. Also, delete declaration and
5984 initialization of ``fp'' because it is otherwise unused.
5985 * remote-bug.c (sleep): Delete declaration.
5986 (bug_store_register, bug_write_memory, bug_read_memory)
5987 (bug_insert_breakpoint, bug_remove_breakpoint): Fix sprintf()
5988 format statements and cast certain sprintf() arguments to
5989 eliminate warnings.
5990 (bug_load): Likewise for call to printf_filtered().
5991 * config/m88k/tm-m88k.h (FIX_CALL_DUMMY): Eliminate
5992 assignment to ``pc''. The necessary assignment is done in
5993 hand_function_call() after the invocation of FIX_CALL_DUMMY().
5994
4e4f46a1
DB
59952001-03-20 Daniel Berlin <dberlin@redhat.com>
5996
5997 * symtab.c (completion_list_add_name): Remove duplicate string checks,
5998 readline already does this, and it's much faster at it, too.
5999
ba8629a9
EZ
60002001-04-01 Eli Zaretskii <eliz@is.elta.co.il>
6001
6002 * go32-nat.c: Minor tweaks, to pacify the ari script.
6003
7bf0983e
MK
60042001-04-01 Mark Kettenis <kettenis@gnu.org>
6005
f7af9647
MK
6006 * i386-tdep.c (i386_extract_struct_value_address): New function.
6007 * config/i386/tm-i386.h (EXTRACT_STRUCT_VALUE_ADDRESS): Redefine
6008 in terms of i386_extract_struct_value_address.
6009 (i386_extract_struct_value_address): New prototype.
6010
7bf0983e
MK
6011 * i386-linux-nat.c (i386_linux_dr_get): Change type of return
6012 value to `unsigned long'. Change type of `value' to `unsigned
6013 long'.
6014 (i386_linux_dr_set): Change type of second argument to `unsigned
6015 long'.
6016 (i386_linux_dr_set_control): Change type of first argument to
6017 `unsigned long'.
6018 (i386_linux_dr_get_status): Change type of return value to
6019 unsigned long.
6020 * config/i386/nm-linux.h (i386_linux_dr_set_control,
6021 i386_linux_dr_get_status): Adjust prototypes accordingly.
6022
6e4862ff
KB
60232001-03-31 Kevin Buettner <kevinb@redhat.com>
6024
6025 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Change
6026 TRAP_HWBKPT constant to match that in the kernel headers for
6027 Linux/IA-64.
521f1f96 6028
1e8d0a7b
MK
60292001-03-31 Mark Kettenis <kettenis@gnu.org>
6030
0afdd437
MK
6031 * i386bsd-nat.c: Include "gdb_assert.h".
6032 [HAVE_PT_GETDBREGS] (DBREG_DRX): Define if not
6033 already defined.
6034 [HAVE_PT_GETDBREGS] (i386bsd_dr_set, i386bsd_dr_set_control,
6035 i386bsd_dr_set_addr, i386bsd_dr_reset_addr,
6036 i386bsd_dr_get_status): New functions.
6037 * config/i386/nm-fbsd.h [HAVE_PT_GETDBREGS]
6038 (I386_USE_GENERIC_WATCHPOINTS): Define.
6039 Include "i386/nm-i386.h".
6040 (I386_DR_LOW_SET_CONTROL, I386_DR_LOW_SET_ADDR,
6041 I386_DR_LOW_RESET_ADDR, I386_DR_LOW_GET_STATUS): New macros.
6042 (i386bsd_dr_set_control, i386bsd_dr_set_addr,
6043 i386bsd_dr_reset_addr, i386bsd_dr_get_status): New prototypes.
6044 * acconfig.h (HAVE_PT_GETDBREGS): New configure macro.
6045 * configure.in: Cleanup a few comments. Check for PT_GETDBREGS
6046 ptrace request.
6047 * config.in, configure: Regenerate.
6048
4bcc3944
MK
6049 * i386-nat.c (i386_insert_aligned_watchpoint): Set address
6050 register before enabling it by setting the control register.
6051 (i386_remove_aligned_watchpoint): Reset address register after
6052 disabling it by setting the control register.
6053
1e8d0a7b
MK
6054 * i386-tdep.c (i386_extract_return_value): If the type of the
6055 return value is TYPE_STRUCT and the number of fields is one, call
6056 ourselves with TYPE set tp the type of the first field.
6057 (i386_store_return_value): Likewise.
6058 This fixes a problem with returning structs consisting of a single
6059 `float' or `double' on *BSD.
6060
95a85621
MK
60612001-03-30 Mark Kettenis <kettenis@gnu.org>
6062
40564aca
MK
6063 * lin-lwp.c (lin_lwp_resume): Don't mark LWP as not stopped until
6064 we're absolutely sure we're going to resume it.
6065
95a85621
MK
6066 * thread-db.c (check_event): Don't report an error if we encounter
6067 a thread creation event for a thread that's already in the thread
6068 list, since that may legitemately happen. Instead only call
6069 attach_thread if it's not already in the thread list.
6070
2e94c453
AC
60712001-03-28 Andrew Cagney <ac131313@redhat.com>
6072
6073 * config/pa/xm-hppah.h (malloc): Really delete declaration
6074 (MALLOC_INCOMPATIBLE): Really delete macro.
6075 * cli/cli-cmds.c (apropos_command): Use xcalloc.
6076
93d56215
AC
60772001-03-28 Andrew Cagney <ac131313@redhat.com>
6078
6079 * configure.in (build_warnings): Add -Wuninitialized.
6080 * configure: Regenerate.
6081
6082 * v850-tdep.c (v850_scan_prologue): Initialize ``insn2''.
6083 * sparc-tdep.c (sparc64_push_arguments): Add default case to
6084 switch.
6085 * sh-tdep.c (sh_do_fp_register): Replace ``?:'' printf format
6086 expression with if statement.
6087 * mn10200-tdep.c (mn10200_analyze_prologue): Initialize
6088 ``stack_size''.
6089 * mips-tdep.c (show_mipsfpu_command): Add default case to switch.
6090 (mips_dump_tdep): Fix setting of ef_mips_arch.
6091 * mcore-tdep.c (mcore_analyze_prologue): Initialize ``fp_regnum''.
6092 * dsrec.c (make_srec): Always initialize ``binbuf''.
6093 * monitor.c (monitor_read_memory_single): Do not pass an
6094 uninitialized buffer to monitor_error. Make ``i'' more local.
6095
381bab78
AC
60962001-03-28 Andrew Cagney <ac131313@redhat.com>
6097
6098 * MAINTAINERS: Change ns32k target to ,-Werror.
6099
6100 * ns32k-tdep.c: Include "gdbcore.h"
6101 (flip_bytes): Change first argument to void*. Add forward
6102 declaration.
6103 (sign_extend): Add declaration.
6104 (merlin_frame_num_args): Add final else clause to if-else chain.
6105 (umax_frame_num_args): Ditto.
6106 * config/ns32k/tm-umax.h (ns32k_localcount): Declare.
6107 (flip_bytes): Ditto.
6108
b9511b9a
MK
61092001-03-28 Mark Kettenis <kettenis@gnu.org>
6110
b05f2432
MK
6111 * i386-linux-tdep.c (FRAMELESS_SIGNAL): Moved here from
6112 config/i386/nm-linux.h (including comment).
6113 (i386_linux_frame_chain): New function implementing guts of the
6114 former FRAME_CHAIN macro, but using read_memory_unsigned_integer
6115 instead of read_memory_integer.
6116 (i386_linux_frame_saved_pc): Removed doc pointing to
6117 i386/tm-linux.h for an explanation of FRAMELESS_SIGNAL since that
6118 now lives in this file.
6119 * config/i386/tm-linux.h (FRAMELESS_SIGNAL): Moved to
6120 i386-linux-tdep.c (including comment).
6121 (FRAME_CHAIN): Redefined in terms of i386_linux_frame_chain.
6122 (i386_linux_frame_chain): New prototype.
6123
0eebe06a
MK
6124 * gdbserver/low-linux.c [I386_GNULINUX_TARGET]: Cleanup code and
6125 make it work again.
6126 (NUM_FREGS): Redefine to 0.
6127 (NUM_REGS): Redefine as NUM_GREGS.
6128 (i386_register_byte, i386_register_raw_size): Update from
6129 i386-tdep.c. Add comment about their origin.
6130 (regmap, register_u_addr): Take these from i386-linux-nat.c.
6131 (i386_register_u_addr): Removed.
6132
b9511b9a
MK
6133 * i386-linux-nat.c (i386_linux_dr_get): Return 0 if ptrace call
6134 fails instead of calling perror_with_name. This should fix
6135 debugging remote i386 targets with a native Linux/x86 GDB. Add
6136 FIXME for this hack.
6137
3172dc30
C
61382001-03-19 J.T. Conklin <jtc@redback.com>
6139
6140 * arch-utils.c (#include "gdbthread.h"): Removed.
6141 (#include "symfile.h"): Removed.
6142 (XMALLOC): Removed unused macro.
6143 * breakpoint.c (tbreak_command): Removed local declaration.
6144 (awatch_command, do_enable_breakpoint, set_breakpoint_count):
6145 Remove duplicate declarations.
6146 (bpstat_should_step, bpstat_have_active_hw_watchpoints)
6147 (remove_solib_event_breakpoints): Fix indentation botch.
6148 * c-typeprint.c (#include "command.h"): Removed.
6149 (#include "gdbcmd.h"): Removed.
6150 * ch-exp.c (ch_terminal_match_float_literal, parse_expr)
6151 (parse_primval, parse_untyped_expr, parse_opt_untyped_expr):
6152 Removed duplicate declarations.
6153 * ch-typeprint.c (#include "command.h"): Removed.
6154 (#include "gdbcmd.h"): Removed.
6155 * corefile.c (#include "frame.h"): Removed
6156 (#include "symfile.h"): Removed.
6157 (#include "language.h"): Removed.
6158 * dbxread.c (#include "command.h"): Removed.
6159 * environ.c (#include "gdbcore.h"): Removed.
6160 * event-loop.c (#include "top.h"): Removed.
6161 * f-typeprint.c (#include "command.h"): Removed.
6162 (#include "gdbcmd.h"): Removed.
6163 (#include "language.h"): Removed.
6164 (#include "typeprint.h"): Removed.
6165 (#include "frame.h"): Removed.
6166 * gdbtypes.h (print_type_scalar): Removed declaration.
6167 * infcmd.c (#include "completer.h"): Removed.
6168 * language.c (#include "frame.h"): Removed.
6169 * m2-typeprint.c (#include "command.h"): Removed.
6170 (#include "gdbcmd.h"): Removed.
6171 (#include "language.h"): Removed.
6172 * m2-valprint.c (#include "valprint.h"): Removed.
6173 * p-typeprint.c (#include "command.h"): Removed.
6174 (#include "gdbcmd.h"): Removed.
6175 * p-valprint.c (#include "typeprint.h"): Removed.
6176 * parse.c (#include "linespec.h"): Removed.
6177 * regcache.c (#include "frame.h"): Removed.
6178 * remote.c (#include "frame.h"): Removed.
6179 (getpkt_sane): Make static.
6180 * source.c (#include "completer.h"): Removed.
6181 * stack.c (#include "symfile.h"): Removed.
6182 (#include "objfiles.h"): Removed.
6183 * symfile.c (#include "completer.h"): Removed.
6184 * tracepoint.c (#include "completer.h"): Removed.
6185 * values.c (#include "frame.h"): Removed.
6186 * varobj.c (#include "valprint.h"): Removed.
6187 * wrapper.c (#include "frame.h"): Removed.
6188
6189 * memattr.c (create_mem_region): Removed unused variable.
6190 * remote-nrom.c: Removed spurious semicolon after init_nrom_ops.
6191
397b41ad
NC
61922001-03-27 Nick Clifton <nickc@redhat.com>
6193
6194 * remote-rdp.c (rdp_set_command_line): Add missing double quote.
6195
ed817e68
KB
61962001-03-27 Kevin Buettner <kevinb@redhat.com>
6197
6198 * solib-aix5.c (build_so_lib_from_mapfile): Use xfree() instead
6199 of free().
6200
b75e0a6b
EZ
62012001-03-27 Eli Zaretskii <eliz@is.elta.co.il>
6202
6203 * TODO (Cleanups): Remove the item about converting docs to GFDL.
6204
2fc3ac7e
KB
62052001-03-26 Kevin Buettner <kevinb@redhat.com>
6206
6207 * ia64-tdep.c (slotN_contents, replace_slotN_contents): Change
6208 type of ``bundle'' from unsigned char * to char *.
6209 (ia64_get_saved_register): Use alloca() to allocate register
6210 buffers.
6211
224d8953
KB
6212 * solib-aix5.c (build_so_lib_from_mapfile): Fix xasprintf() usage.
6213
37de36c6
KB
62142001-03-26 Kevin Buettner <kevinb@redhat.com>
6215
6216 * proc-utils.h (procfs_ctl_t): New typedef.
6217 * proc-api.c (write_with_trace): Change type of ``opcode'' from
6218 long to procfs_ctl_t. Don't assume that the target has defined
6219 BREAKPOINT. Handle case in which PCRESET is the same as PCUNSET.
6220 * proc-events.c (sys/syscall.h, sys/fault.h): Include conditionally.
6221 * procfs.c (sys/fault.h, sys/syscall.h): Include conditionally.
6222 (gdb_sigset_t, gdb_sigaction_t, gdb_siginfo_t, gdb_premptysysset)
6223 (gdb_praddsysset, gdb_prdelsysset, gdb_pr_issyssetmember):
6224 Conditionally define as appropriate for AIX/non-AIX systems. Use
6225 these defines/typedefs as appropriate elsewhere in file.
6226 (struct procinfo): Change type of saved_sigset and saved_sighold
6227 from sigset_t to gdb_sigset_t. Make saved_exitset and
6228 saved_entryset pointer variables. Add two new fields, num_syscalls
6229 and syscall_names.
6230 (DYNAMIC_SYSCALLS): Define when HAVE_PRSYSENT_T is defined.
6231 (sysset_t_size, sysset_t_alloc): New functions.
6232 (load_syscalls, free_syscalls, find_syscall): New functions for
6233 platforms which define DYNAMIC_SYSCALLS.
6234 (create_procinfo): Call load_syscalls.
6235 (destroy_one_procinfo): Call free_syscalls.
6236 (GDBRESET): Don't define twice.
6237 (proc_modify_flag): Change type of operation code array `arg'
6238 from long to procfs_ctl_t.
6239 (proc_stop_process, proc_wait_for_stop, proc_run_process)
6240 (proc_set_traced_signals, proc_set_traced_faults)
6241 (proc_set_traced_sysentry, proc_set_traced_sysexit)
6242 (proc_set_held_signals, proc_clear_current_fault)
6243 (proc_set_current_signal, proc_clear_current_signal, proc_set_gregs)
6244 (proc_set_fpregs, proc_kill, proc_set_watchpoint): Likewise for `cmd'.
6245 (proc_set_traced_sysentry): Dynamically allocate variable sized
6246 struct gdb_proc_ctl_pcsentry. Also, free it at function exit.
6247 (proc_set_traced_sysexit): Dynamically allocate variable
6248 sized struct gdb_proc_ctl_pcsexit. Also, free it at
6249 function exit.
6250 (proc_get_traced_sysentry, proc_get_traced_sysexit): Add new code
6251 for reading the sysset_t struct on AIX5.
6252 (procfs_debug_inferior): Don't assume that SYS_exit will be
6253 defined. Add new code for finding certain syscalls on AIX5.
6254 (syscall_is_lwp_exit, syscall_is_exit, syscall_is_exec)
6255 (syscall_is_lwp_create): New functions.
6256 (procfs_wait): Restructured code which checks for certain
6257 system calls to use the new syscall_is_... functions.
6258 (procfs_notice_signals): Account for the fact that saved_entryset
6259 and saved_exitset in struct procinfo are now pointers.
6260
25d53da1
KB
62612001-03-26 Kevin Buettner <kevinb@redhat.com>
6262
6263 * symtab.c (find_pc_sect_line): Revise method used for finding
6264 the ending pc.
6265
50e27f84
MK
62662001-03-26 Mark Kettenis <kettenis@gnu.org>
6267
6268 * i386-linux-tdep.c (i386_linux_sigtramp_saved_pc,
6269 i386_linux_sigtramp_saved_sp): Make static.
6270 (i386_linux_frame_saved_pc): New function based on the old
6271 FRAME_SAVED_PC macro, but use read_memory_unsigned_integer instead
6272 of read_memory_integer.
6273 * config/i386/tm-linux.h (sigtramp_saved_pc): Remove definition.
6274 (i386_linux_sigtramp_saved_pc): Remove prototype.
6275 (FRAME_SAVED_PC): Redefine in terms of i386_linux_frame_saved_pc.
6276 (i386_linux_frame_saved_pc): New prototype.
6277
1a5cef06
AC
62782001-03-26 Andrew Cagney <ac131313@redhat.com>
6279
6280 * MAINTAINERS: Document m88k as a ``Known problem in 5.1''.
6281 * TODO (GDB 5.1 - Cleanups): Update.
6282
af802127
AC
62832001-03-26 Andrew Cagney <ac131313@redhat.com>
6284
6285 * fork-child.c (clone_and_follow_inferior): Delete #ifdef
6286 HAVE_VFORK.
6287
22f8ba57
MK
62882001-03-26 Mark Kettenis <kettenis@gnu.org>
6289
5b31405b
MK
6290 * config/i386/tm-symmetry.h (PUSH_ARGUMENTS): #undef.
6291
22f8ba57
MK
6292 * i386-tdep.c (i386_push_arguments, i386_store_struct_return): New
6293 functions.
6294 * config/i386/tm-i386.h (PUSH_ARGUMENTS): New macro.
6295 (STORE_STRUCT_RETURN): Redefine in terms of
6296 i386_store_struct_return.
6297 (i386_push_arguments, i386_store_struct_return): New prototypes.
6298 * config/i386/tm-i386v.h (STORE_STRUCT_RETURN): Remove. It's
6299 definition was identical to the definition in "i386/tm-i386.h" so
6300 the new definition should suffice too.
6301
49baf819 63022001-03-26 Eli Zaretskii <eliz@is.elta.co.il>
4d277981 6303
b78a4f26
EZ
6304 * event-loop.c (toplevel) [!HAVE_POLL] [NO_FD_SET]: Remove unused
6305 definitions for SELECT, NBBY, FD_SETSIZE, NFDBITS, and MASK_SIZE.
6306
4d277981
EZ
6307 * config/djgpp/djconfig.sh: Add copyright notice.
6308
6309 * ser-go32.c (rawclock): Remove prototype; include time.h instead.
6310 (ISR, dos_hookirq, isr_t): Convert K&R definition to ANSI C.
6311 (top level) <string.h>: Include gdb_string.h instead.
6312 (dos_noop, dos_raw, dos_noflush_set_tty_state)
6313 (dos_print_tty_state, dos_info): Remove ATTRIBUTE_UNUSED.
6314
6315 * go32-nat.c (go32_create_inferior): Move the declaration of
6316 `environ' to here from the top level.
6317 (top level) <_initialize_go32_nat>: Remove redundant prototype.
6318 <gdb_string.h>: Include it instead of string.h.
6319 (store_register): Call register_buffer instead of accessing
6320 registers[] directly.
6321 (redir_cmdline_delete, redir_cmdline_parse, redir_to_debugger)
6322 (redir_to_debugger, redir_debug_init) [__DJGPP_MINOR__ < 3]: Put
6323 the function names at the start of the line.
6324 (go32_set_dr): Throw internal_error if the argument is not a valid
6325 debug register number.
6326 (go32_open, go32_close, go32_attach, go32_detach, go32_resume)
6327 (go32_wait, go32_xfer_memory, go32_files_info)
6328 (go32_terminal_info): Remove ATTRIBUTE_UNUSED.
6329
8f3ee2ae
JB
63302001-03-25 Jim Blandy <jimb@redhat.com>
6331
6332 * mips-tdep.c (mips_gdbarch_init): Tweak indentation.
6333
6ec4c4bd
EZ
63342001-03-25 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
6335
6336 From Andrew Cagney <ac131313@redhat.com>
6337
6338 * coffread.c: Include "gdb_assert.h".
6339 (coff_symtab_read): Cast the integer s_sclass to a long before
6340 casting it to a pointer.
6341
b9179dbc
EZ
63422001-03-25 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
6343
6344 From Andrew Cagney <ac131313@redhat.com>
6345
6346 * coffread.c (coff_symtab_read): Initialize
6347 ``fcn_first_line_addr''. Check that the ``.bf'' always preceeds
6348 the ``.ef'' info.
6349 * dbxread.c (find_text_range): Initialize ``start'' and ``end''.
6350
64c4637f
AC
63512001-03-23 Andrew Cagney <ac131313@redhat.com>
6352
6353 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Down grade to
6354 GDB_MULTI_ARCH_PARTIAL from two. SOFTWARE_SINGLE_STEP is not
6355 multi-arch.
6356
6357 * gdbarch.sh (SOFTWARE_SINGLE_STEP): Add.
6358 * gdbarch.h, gdbarch.c: Re-generate.
6359
6360 * target.h (SOFTWARE_SINGLE_STEP_P)
6361 (SOFTWARE_SINGLE_STEP): Delete macro definitions.
6362
61a0eb5b
AC
63632001-03-23 Andrew Cagney <ac131313@redhat.com>
6364
6365 * gdbarch.sh (gdbarch_register_read, gdbarch_register_write): Add.
6366 * gdbarch.h, gdbarch.c: Regenerate.
6367
6368 * regcache.h (regcache_read, regcache_write): Declare.
6369 (registers, register_valid, register_buffer): Add note that these
6370 interfaces are deprecated.
6371
6372 * regcache.c: Include "gdb_assert.h".
6373 (legacy_write_register_gen): Rename write_register_gen.
6374 (legacy_read_register_gen): Rename read_register_gen.
6375 (regcache_read, regcache_write): New function.
6376 (read_register_gen, write_register_gen): New function.
6377 (write_register): Simplify. Use write_register_gen.
6378 (read_register): Ditto using read_register_gen.
6379 (read_signed_register): Ditto.
6380 (read_register_bytes): Ditto!!!!
6381 (supply_register): Add note that CLEANUP_REGISTER_VALUE is being
6382 replaced by gdbarch_register_read.
6383
6384 * TODO (GDB 5.2 - Cleanups): Add list of gdbarch methods to
6385 deprecate.
6386
c2bd2ed9
JB
63872001-03-23 Jim Blandy <jimb@redhat.com>
6388
f34754ee
JB
6389 Fix from Dan Berlin:
6390
c2bd2ed9
JB
6391 * stabsread.c (read_cpp_abbrev): Properly construct the names of
6392 virtual function table pointer fields.
6393
c0e61796
AC
63942001-03-19 Andrew Cagney <ac131313@redhat.com>
6395
6396 * defs.h (xfree, mcalloc, mmalloc, mrealloc, mfree, xmmalloc,
6397 xmrealloc): Move existing declarations to the one place and
6398 re-order to be consistent.
6399 (xmcalloc, xmfree): Declare.
6400 (xmmalloc, xmrealoc): Assume ISO-C - use size_t and void* in
6401 declaration.
6402
6403 * utils.c (size_t): Delete #ifdef defining size_t.
6404 (mmalloc, mrealloc, mcalloc, mfree): Re-order.
6405 (mmalloc, mrealloc, mcalloc): Document as only calls in GDB
6406 corresponding malloc, realloc, calloc.
6407 (mfree): Call free directly.
6408 (xmmalloc, xmrealloc): Clean up. Assume ISO-C.
6409 (xmcalloc, xmfree): New functions. Copy old xcalloc and xfree
6410 function bodies to here.
6411 (xcalloc, xfree): Call xmcalloc and xmfree respectfully.
6412
c65ecaf3
AC
64132001-03-23 Andrew Cagney <ac131313@redhat.com>
6414
6415 * fork-child.c (fork_inferior): Make ``argv'', ``exec_file'' and
6416 ``shell_file'' static locals.
6417
6418 * jv-lang.c (java_link_class_type): Initialize ``field'' and
6419 ``method''.
6420
6421 * jv-valprint.c (java_value_print): Initialize ``next_element''.
6422
207e433e
MK
64232001-03-23 Mark Kettenis <kettenis@gnu.org>
6424
6425 * config/i386/nm-i386.h: Fix formatting and change reference to
6426 i386-tdep.c to i386-nat.c.
6427
6c5cfe5b
DS
64282001-03-23 David Smith <dsmith@redhat.com>
6429
6430 * configure.in: Corrected spelling errors.
6431 * configure: Regenerated.
6432
5300940c
AC
64332001-03-22 Andrew Cagney <ac131313@redhat.com>
6434
6435 * TODO (GDB 5.1 - Cleanups): Add more targets to obsolete.
6436
17e78a56
AC
64372001-03-22 Andrew Cagney <ac131313@redhat.com>
6438
6439 * Makefile.in (NTSSTART): Delete.
6440 (NTSOBS): Delete.
6441 (kdb): Delete target.
6442 * kdb-start.c, stuff.c: Mark as obsolete.
6443 * NEWS: Update.
6444
41899c04
AC
64452001-03-22 Andrew Cagney <ac131313@redhat.com>
6446
6447 * config/pa/xm-hppah.h (HPPA_COMPILER_BUG): Delete. GDB only
6448 compiles using an ISO-C compiler.
6449 (MALLOC_INCOMPATIBLE): Ditto.
6450 * linespec.c (decode_line_1): Delete hack to work around
6451 HPPA_COMPILER_BUG.
6452
88665544
AC
64532001-03-22 Andrew Cagney <ac131313@redhat.com>
6454
6455 * exec.c (xfer_memory): Always initialize section.
6456 * infrun.c (normal_stop): Always initialize source_flag.
6457
a2061976
AC
64582001-03-22 Andrew Cagney <ac131313@redhat.com>
6459
6460 * TODO (Remote Protocol Support): Review. Add notes about ``!'',
6461 non-use of a continue address and typical use of ``q'' packet.
6462
e24d4c64
EZ
64632001-03-22 Eli Zaretskii <eliz@is.elta.co.il>
6464
6465 Make DJGPP use the new unified support for hardware
6466 breakpoints and watchpoints on x86 targets:
6467
6468 * config/i386/nm-go32.h <top level>: Don't include nm-i386v.h,
6469 include nm-i386.h instead.
6470 (TARGET_HAS_HARDWARE_WATCHPOINTS, HAVE_CONTINUABLE_WATCHPOINT)
6471 (TARGET_CAN_USE_HARDWARE_WATCHPOINT, STOPPED_BY_WATCHPOINT)
6472 (TARGET_REGION_OK_FOR_HW_WATCHPOINT, DECR_PC_AFTER_HW_BREAK)
6473 (target_stopped_data_address, target_insert_watchpoint)
6474 (target_remove_watchpoint, target_insert_hw_breakpoint)
6475 (target_remove_hw_breakpoint): Don't define.
6476 (I386_USE_GENERIC_WATCHPOINTS, I386_DR_LOW_SET_CONTROL)
6477 (I386_DR_LOW_SET_ADDR, I386_DR_LOW_RESET_ADDR)
6478 (I386_DR_LOW_GET_STATUS): Define to call appropriate go32_*
6479 functions from go32-nat.c.
6480
6481 * config/i386/go32.mh (NATDEPFILES): Add i386-nat.o.
6482
6483 * go32-nat.c <top level>: Remove prototypes for watchpoint-
6484 related functions. Remove definitions of watchpoint-related
6485 macros.
6486 (go32_mourn_inferior): Call i386_cleanup_dregs instead of the
6487 private cleanup_dregs function.
6488 (cleanup_dregs, go32_insert_watchpoint)
6489 (go32_insert_aligned_watchpoint, go32_handle_nonaligned_watchpoint)
6490 (go32_remove_watchpoint, go32_remove_aligned_watchpoint)
6491 (go32_region_ok_for_watchpoint, go32_stopped_by_watchpoint)
6492 (go32_remove_hw_breakpoint, go32_insert_hw_breakpoint): Remove.
6493 (go32_set_dr, go32_set_dr7, go32_get_dr6): New functions.
6494
c26e1c2b
KB
64952001-03-21 Kevin Buettner <kevinb@redhat.com>
6496
6497 * ia64-tdep.c (fetch_instruction): Warn about slot numbers greater
6498 than two instead of generating an error.
6499
272ba48f
JB
65002001-03-21 Jim Blandy <jimb@redhat.com>
6501
6502 * cp-valprint.c: Reformat to bring into line with GNU coding
6503 standards.
6504
84346e11
MK
65052001-03-21 Mark Kettenis <kettenis@gnu.org>
6506
6507 Make Linux use the new unified support for hardware breakpoints
6508 and watchpoints on x86 targets.
6509 * i386-linux-nat.c: Doc fixes. Include "gdb_assert.h".
6510 [HAVE_SYS_DEBUGREG_H]: Include <sys/debugreg.h>.
6511 (DR_FIRSTADDR, DR_LASTADDR, DR_STATUS, DR_CONTROL): Define to
6512 appropriate value if not already defined.
6513 (register_u_addr): New function.
6514 (kernel_u_size): New function.
6515 (i386_linux_dr_get, i386_linux_dr_set): New functions.
6516 (i386_linux_dr_set_control, i386_linux_dr_set_addr,
6517 i386_linux_reset_addr, i386_linux_dr_get_status): New functions.
6518 * config/i386/nm-linux.h: Don't include "nm-i386v.h".
6519 (I386_USE_GENERIC_WATCHPOINTS): Define and include "nm-i386.h".
6520 (TARGET_HAS_HARDWARE_WATCHPOINTS,
6521 TARGET_CAN_USE_HARDWARE_WATCHPOINTS, HAVE_CONTINUABLE_WATCHPOINT,
6522 STOPPED_BY_WATCHPOINT, target_insert_watchpoint,
6523 target_remove_watchpoint): Remove macros.
6524 (i386_stopped_by_watchpoint, i386_insert_watchpoint,
6525 i386_remove_watchpoint): Remove prototypes.
6526 (register_u_addr): New prototype.
6527 (REGISTER_U_ADDR): Define in terms of register_u_addr.
6528 (i386_linux_dr_set_control, i386_linux_dr_set_addr,
6529 i386_linux_reset_addr, i386_linux_dr_get_status): New prototypes.
6530 (I386_DR_LOW_SET_CONTROL, I386_DR_LOW_SET_ADDR,
6531 I386_DR_LOW_RESET_ADDR, I386_DR_LOW_GET_STATUS): New macros.
6532 * config/i386/linux.mh (NATDEPFILES): Replace i386v-nat.o with
6533 i386-nat.o.
6534
13b57657
JB
65352001-03-21 Jim Blandy <jimb@redhat.com>
6536
f34754ee
JB
6537 Fix from Dan Berlin:
6538
13b57657
JB
6539 * linespec.c (find_methods): Whitespace differences aren't
6540 significant in *un*mangled method names. Use strcmp_iw to compare
f34754ee 6541 them, not STREQ.
13b57657 6542
eee30e78
AC
65432001-03-21 Andrew Cagney <ac131313@redhat.com>
6544
6545 * gdbarch.sh: Allow a non- multi-arch target to override a
6546 predicate.
6547 * gdbarch.h: Regenerate.
6548
b77be6cf
AC
65492001-03-21 Andrew Cagney <ac131313@redhat.com>
6550
6551 * gdbarch.sh: Avoid use of ``!''.
6552
379d08a1
AC
65532001-03-20 Andrew Cagney <ac131313@redhat.com>
6554
6555 * target.h (enum target_signal): Move definition from here.
6556 * defs.h (enum target_signal): To here.
6557
6558 * config/arc/tm-arc.h (arc_software_single_step): Change type of
6559 first parameter to enum target_signal.
6560 * config/rs6000/tm-rs6000.h (rs6000_software_single_step): Ditto.
6561 * config/sparc/tm-sparc.h (sparc_software_single_step): Ditto.
6562 * rs6000-tdep.c (rs6000_software_single_step): Update.
6563
64485362
AC
65642001-03-20 Andrew Cagney <ac131313@redhat.com>
6565
6566 * frame.h (SIZEOF_FRAME_SAVED_REGS): Report an error if macro
6567 already defined.
6568
6569 From 2000-08-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>:
6570 * stabsread.c (define_symbol): A parameter ('R'), a local ('r'),
6571 or a reference ('a') can be in a pseudo register.
6572 * infcmd.c (do_registers_info): Must take into account the pseudo
6573 registers to print their value.
6574 (registers_info): Likewise.
6575 * stack.c (frame_info): Likewise.
6576 * frame.h (SIZEOF_FRAME_SAVED_REGS): Save the pseudo registers.
6577
52b98211
EZ
65782001-03-21 Eli Zaretskii <eliz@is.elta.co.il>
6579
6580 Unified support for hardware breakpoints and watchpoints on
6581 x86 targets:
6582
6583 * config/i386/nm-i386.h: New file.
6584
6585 * config/i386/nm-i386.h: (i386_cleanup_dregs)
6586 (i386_insert_watchpoint, i386_remove_watchpoint)
6587 (i386_region_ok_for_watchpoint, i386_stopped_by_hwbp)
6588 (i386_stopped_data_address, i386_insert_hw_breakpoint)
6589 (i386_remove_hw_breakpoint): Declare prototypes.
6590 [I386_USE_GENERIC_WATCHPOINTS] (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
6591 Define if not already defined.
6592 (TARGET_REGION_OK_FOR_HW_WATCHPOINT, HAVE_CONTINUABLE_WATCHPOINT)
6593 (STOPPED_BY_WATCHPOINT, target_stopped_data_address)
6594 (target_insert_watchpoint, target_remove_watchpoint)
6595 (target_insert_hw_breakpoint, target_remove_hw_breakpoint): Define
6596 to call the appropriate i386_* functions.
6597
6598 * i386-nat.c: New file.
6599
6600 * i386-nat.c (I386_DR_CONTROL_MASK, I386_DR_LOCAL_ENABLE)
6601 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
6602 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): New macros.
6603 (dr_mirror, dr_status_mirror, dr_control_mirror, dr_ref_count)
6604 (maint_show_dr): New variables.
6605 (i386_cleanup_dregs, i386_show_dr, i386_length_and_rw_bits)
6606 (i386_insert_aligned_watchpoint, i386_remove_aligned_watchpoint)
6607 (i386_handle_nonaligned_watchpoint, i386_insert_watchpoint)
6608 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
6609 (i386_stopped_data_address, i386_stopped_by_hwbp)
6610 (i386_insert_hw_breakpoint, i386_remove_hw_breakpoint): New
6611 functions.
6612 (_initialize_i386_nat): New function.
6613 [I386_USE_GENERIC_WATCHPOINTS]: Add new maint command
6614 `show-debug-regs', sets maint_show_dr to non-zero value and
6615 activates debugging print-outs in functions which insert, remove,
6616 and test watchpoints and hardware breakpoints.
6617
6618 * Makefile.in (i386-nat.o): New target.
6619 (ALLDEPFILES): Add i386-nat.o.
6620
28e9e0f0
MK
66212001-03-21 Mark Kettenis <kettenis@gnu.org>
6622
6623 * i386-tdep.c: Add back _initialize_i386_tdep prototype with
6624 appropriate comment.
6625
e40eccb4
KB
66262001-03-20 Kevin Buettner <kevinb@redhat.com>
6627
6628 * config/alpha/alpha-linux.mh (NATDEPFILES): Use proc-service.o,
6629 thread-db.o, and lin-lwp.o for thread support instead of
6630 linux-thread.o and lin-thread.o.
6631 * config/alpha/nm-linux.h (PREPARE_TO_PROCEED, GET_THREAD_SIGNALS)
6632 (ATTACH_LWP): Define to use the following lin-lwp.c functions...
6633 (lin_lwp_prepare_to_proceed, lin_thread_get_thread_signals)
6634 (lin_lwp_attach_lwp): Declare.
6635
bea7bb93
JB
66362001-03-20 Jim Blandy <jimb@redhat.com>
6637
f34754ee
JB
6638 Fix from Dan Berlin:
6639
bea7bb93
JB
6640 * Makefile.in: Clean up dependencies on ../include/demangle.h.
6641 (demangle_h): New variable.
6642 (jv-typeprint.o, jv-valprint.o, linespec.o): Use it.
6643
b0ed3589
AC
66442001-03-20 Andrew Cagney <ac131313@redhat.com>
6645
6646 * target.h (SOFTWARE_SINGLE_STEP_P): Add empty parameter list.
6647 * breakpoint.c (bpstat_stop_status): Update.
6648 * infrun.c (handle_inferior_event): Ditto.
6649 * mips-tdep.c (mips_dump_tdep): Ditto.
6650 * infrun.c (resume): Ditto.
6651 * infptrace.c (child_resume): Ditto.
6652 * config/mips/tm-wince.h (SOFTWARE_SINGLE_STEP_P): Ditto.
6653 * config/sh/tm-wince.h (SOFTWARE_SINGLE_STEP_P): Ditto.
6654 * config/sparc/tm-sparc.h (SOFTWARE_SINGLE_STEP_P): Ditto.
6655 * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP_P): Ditto.
6656 * config/arm/tm-wince.h (SOFTWARE_SINGLE_STEP_P): Ditto.
6657 * config/arc/tm-arc.h (SOFTWARE_SINGLE_STEP_P): Ditto.
6658 * config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
6659
df087c62
AC
66602001-03-20 Andrew Cagney <ac131313@redhat.com>
6661
6662 * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Replace abort
6663 with internal_error.
6664
8bd1f2c6
JB
66652001-03-20 Jim Blandy <jimb@redhat.com>
6666
f34754ee
JB
6667 Fix from Dan Berlin:
6668
8bd1f2c6
JB
6669 * linespec.c (find_methods): Just call CHECK_TYPEDEF on t, rather
6670 than asking for sym_class's type; that's circuitous. Remove
6671 sym_class, since the last use of it is gone.
6672
c97fe386
EZ
66732001-03-20 Eli Zaretskii <eliz@is.elta.co.il>
6674
6675 * breakpoint.c (print_it_typical) <bp_access_watchpoint> [UI_OUT]:
6676 Correct the order of calls to ui_out_field_string and
6677 ui_out_list_begin when bs->old_val is NULL.
6678
486363b6
KB
66792001-03-19 Kevin Buettner <kevinb@redhat.com>
6680
6681 * configure.in (AC_CHECK_HEADERS): Check for existence of nlist.h.
6682 * configure: Regenerate.
6683 * config.in: Regenerate.
6684 * solib-legacy.c (nlist.h): Include if HAVE_NLIST_H is defined.
6685
087bb2e2
KB
66862001-03-19 Kevin Buettner <kevinb@redhat.com>
6687
6688 * config/i386/i386v42mp.mh (NATDEPFILES): List all files on
6689 same line to avoid problems with Unixware 7's make when building
6690 a cross debugger.
6691
3c37485b
AC
66922001-03-19 Andrew Cagney <ac131313@redhat.com>
6693
6694 * defs.h (malloc): Move declaration from here.
6695 * utils.c (malloc): To here.
6696 * config/pa/xm-hppah.h (malloc): Delete declaration.
6697
6698 * gnu-nat.c (make_proc): Use xmalloc instead of malloc.
6699 * hp-psymtab-read.c (hpread_call_pxdb): Ditto.
6700 (hpread_quick_traverse): Ditto.
6701 * infttrace.c (create_thread_info): Ditto.
6702 (kill_inferior): Ditto.
6703 * gnu-nat.c (make_inf): Ditto, and don't check return value.
6704 * procfs.c (proc_update_threads): Ditto.
6705 * valprint.c (print_decimal_chars): Ditto.
6706 * gdbtypes.c (cfront_mangle_name): Use xasprintf instead of
6707 malloc and sprintf.
6708 * remote-rdp.c (rdp_set_command_line): Ditto.
6709
0e52036f
AC
67102001-03-19 Andrew Cagney <ac131313@redhat.com>
6711
6712 * defs.h (realloc): Move declaration from here.
6713 * utils.c (realloc): To here.
6714 * config/pa/xm-hppah.h (realloc): Delete declaration.
6715 * lin-thread.c (insert_thread): Use xrealloc instead of realloc.
6716 * symfile.c (add_filename_language): Ditto.
6717 * event-loop.c (create_file_handler): Ditto.
6718
81b8eb80
AC
67192001-03-19 Andrew Cagney <ac131313@redhat.com>
6720
6721 * defs.h (free): Move declaration from here.
6722 * utils.c (free): To here.
6723 (xfree): Document as the only call to free().
6724 * config/pa/xm-hppah.h (free): Delete declaration.
6725
8cca004a
KB
67262001-03-19 Kevin Buettner <kevinb@redhat.com>
6727
6728 * config/ia64/linux.mh (NATDEPFILES): Add proc-service.o to
6729 this list.
6730
cf4eee44
AC
67312001-03-19 Andrew Cagney <ac131313@redhat.com>
6732
6733 * eval.c (evaluate_subexp): Remove #ifdef __STDC__ and ``inline''.
6734 * config/mips/xm-mips.h (offsetof): Define when !GNUC not !STDC.
6735 * cli/cli-cmds.c (init_cli_cmds): Remove #ifdef __STDC__
6736
1c5b31ef
AC
67372001-03-19 Andrew Cagney <ac131313@redhat.com>
6738
6739 * TODO: List known problems with TUI.
6740
3a0c66d4
AC
67412001-03-19 Andrew Cagney <ac131313@redhat.com>
6742
6743 * MAINTAINERS: Jimmy Guo stepped down as a maintiner (TUI,
6744 gdb.hp).
6745
ce359b09
AC
67462001-03-19 Andrew Cagney <ac131313@redhat.com>
6747
6748 * remote.c (remote_cisco_section_offsets): Do not cast result from
6749 bfd_get_section_name.
6750 (compare_sections_command): Ditto.
6751 (remote_cisco_section_offsets): Make ``p'' a const pointer.
6752 (compare_sections_command): Ditto for ``sectname''.
6753
0b3f98d3
AC
67542001-03-19 Andrew Cagney <ac131313@redhat.com>
6755
6756 From Mon Nov 20 13:59:29 2000 Andrew Cagney <cagney@b1.cygnus.com>:
6757 * valops.c (hand_function_call): Simplify computation of the
6758 address of the pushed argument.
6759
7451d027
AC
67602001-03-17 Andrew Cagney <ac131313@redhat.com>
6761
6762 * p-exp.y (parse_number): Avoid shift overflow when ``long''.
6763 Code copied from c-exp.y.
6764
fb70ab0c
KB
67652001-03-18 Kevin Buettner <kevinb@redhat.com>
6766
6767 * acconfig.h (HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS)
6768 (HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS)
6769 (HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS): New configure macros.
6770 * configure.in (HAVE_STRUCT_LINK_MAP32): Move this test out
6771 of the Solaris procfs testing section. Instead, group with...
6772 (HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS)
6773 (HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS)
6774 (HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS): New <link.h> tests.
6775 * configure: Regenerate.
6776 * config.in: Regenerate.
6777
6778 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Use
6779 new configure macros to choose which (if any) code to
6780 compile in. Added code to explicitly handle *BSD systems;
6781 these systems were previously handled only through macro
6782 redefinition. Also, due to the way the autoconf tests are set
6783 up, this function will no longer return a non-zero value when
6784 GDB is configured as a cross debugger. I.e, cross debuggers
6785 will no longer be able to "accidentally" get the host system's
6786 link map offsets.
6787
8aa16b78
KB
67882001-03-18 Kevin Buettner <kevinb@redhat.com>
6789
6790 * config/i386/nbsd.mh (NATDEPFILES): List all files on the same
6791 line to avoid build problem on NetBSD 1.4.
6792
559e75c0
MC
67932001-03-17 Michael Chastain <chastain@redhat.com>
6794
6795 * win32-nat.c (child_attach): check args for NULL before passing
6796 to strtoul. This fixes PR gdb/43.
6797
fc338970
MK
67982001-03-17 Mark Kettenis <kettenis@gnu.org>
6799
7daede3b
MK
6800 * i387-nat.h: Doc Fix.
6801
fc338970
MK
6802 * i386-tdep.c: Fix formatting.
6803 (i386_get_frame_setup, i386_follow_jump, codestream_read,
6804 codestream_seek, codestream_fill, skip_trampoline_code,
6805 gdb_print_insn_i386, _initialize_i386_tdep): Remove redundant
6806 prototypoes.
6807
e3c6d36d
MK
68082001-03-17 Mark Kettenis <kettenis@gnu.org>
6809
6810 * config/i386/tm-linux.h (TARGET_ANALYZE_FLOATING): Remove. It's
6811 no longer used. Also remove associated FIXME.
6812
4a5c6a1d
AC
68132001-03-16 Andrew Cagney <ac131313@redhat.com>
6814
6815 * gdbarch.sh: Add classes ``m'' and ``M'' for pure multi-arch. Do
6816 not generate macro wrappers for multi-arch functions or
6817 predicates.
6818 (class_is_info_p, class_is_predicate_p): Update.
6819 (class_is_function_p, class_is_variable_p): Ditto.
6820 (class_is_multiarch_p): New class function.
6821
7256e1a5
C
68222001-03-16 J.T. Conklin <jtc@redback.com>
6823
6824 * config/h8300/tm-h8300.h (FRAME_ARGS_ADDRESS): Changed to use
6825 h8300_frame_args_address from frame_args_address.
6826 (FRAME_LOCALS_ADDRESS): Changed to use h8300_frame_locals_address
6827 from frame_locals_address.
6828 (PRINT_REGISTER_HOOK): Changed to use h8300_print_register_hook
6829 from print_register_hook.
6830 (h8300_frame_args_address): Declare.
6831 (h8300_frame_find_saved_regs): Declare.
6832 (h8300_frame_locals_address): Declare.
6833 (h8300_frame_saved_pc): Declare.
6834 (h8300_pop_frame): Declare.
6835 (h8300_print_register_hook): Declare.
6836 * h8300-tdep.c (h8300_frame_find_saved_regs): Removed declaration.
6837 (h8300_frame_args_address): Renamed from frame_args_address.
6838 (h8300_frame_locals_address): Renamed from frame_locals_address.
6839 (h8300_pop_frame): Renamed from pop_frame.
6840 (h8300_print_register_hook): Renamed from print_register_hook.
6841
435b259c
KB
68422001-03-16 Kevin Buettner <kevinb@redhat.com>
6843
6844 * solib-svr4.c (bfd_lookup_symbol): Change type of
6845 ``storage_needed'' from unsigned int to long in order to
6846 match return type of bfd_get_symtab_upper_bound() and
6847 bfd_get_dynamic_symtab_upper_bound().
6848 * solib-aix5.c (bfd_lookup_symbol): Likewise. Also, eliminate
6849 REASONABLE_LIMIT hack which had been added to work around this
6850 problem.
6851
80117be2
KB
68522001-03-15 Kevin Buettner <kevinb@redhat.com>
6853
6854 * solib-aix5.c (bfd_lookup_symbol, build_so_list_from_mapfile)
6855 (aix5_relocate_main_executable, aix5_clear_solib): Replace calls
6856 to free() with calls to xfree().
6857 (bfd_lookup_symbol): Eliminate use of PTR.
6858 (build_so_list_from_mapfile): Use xasprintf() instead of sprintf().
6859
77cd5909
MH
68602001-03-15 Martin Hunt <hunt@redhat.com>
6861
6862 * linespec.c (decode_line_1): Remove trailing quote
6863 when parsing double quotes.
6864
f7f5a202
KB
68652001-03-15 Kevin Buettner <kevinb@redhat.com>
6866
6867 * uw-thread.c (read_thr_debug, read_map, read_lwp, thread_iter)
6868 (libthread_stub, libthread_init): Pass NULL for the mem_attrib
6869 argument in the to_xfer_memory calls.
6870
0d35ddba
AC
68712001-03-15 Andrew Cagney <ac131313@redhat.com>
6872
6873 * MAINTAINERS: Fix typo - w65 not w64. Still doesn't build.
6874 * TODO (GDB 5.1 - Cleanups): Add status of targets being obsoleted.
6875
043780a1
AC
68762001-03-15 Andrew Cagney <ac131313@redhat.com>
6877
6878 * wince.c (child_xfer_memory): Add attrib parameter.
6879 * symm-nat.c (child_xfer_memory): Ditto.
6880 * mac-nat.c (child_xfer_memory): Ditto.
6881 * infttrace.c (child_xfer_memory): Ditto.
6882 * procfs.c (procfs_xfer_memory): Ditto.
6883 * lin-thread.c (thread_db_xfer_memory): Ditto.
6884 * gnu-nat.c (gnu_xfer_memory): Ditto.
6885
9b9c068d
AC
68862001-03-14 Andrew Cagney <ac131313@redhat.com>
6887
6888 * NEWS: Mention that Harris/CXUX m88k is obsolete.
6889
f88e2c52
AC
68902001-03-13 Andrew Cagney <ac131313@redhat.com>
6891
6892 * config/mips/tm-mips.h: Include "regcache.h" for macros refering
6893 to regcache functions.
6894 * config/m68k/tm-m68k.h: Ditto.
6895 * config/i386/tm-i386v.h: Ditto.
6896 * config/mcore/tm-mcore.h: Ditto.
6897 * config/m88k/tm-m88k.h: Ditto.
6898 * config/m68k/tm-news.h: Ditto.
6899 * config/m68k/tm-linux.h: Ditto.
6900 * config/m68k/tm-delta68.h: Ditto.
6901 * config/m68k/nm-sun3.h: Ditto.
6902 * config/m32r/tm-m32r.h: Ditto.
6903 * config/i386/tm-symmetry.h: Ditto.
6904 * config/i386/tm-sun386.h: Ditto.
6905 * config/i386/tm-i386.h: Ditto.
6906 * config/i386/nm-symmetry.h: Ditto.
6907 * config/i386/nm-sun386.h: Ditto.
6908 * config/i386/nm-ptx4.h: Ditto.
6909 * config/i386/nm-i386mach.h: Ditto.
6910 * config/h8500/tm-h8500.h: Ditto.
6911 * config/h8300/tm-h8300.h: Ditto.
6912 * config/fr30/tm-fr30.h: Ditto.
6913 * config/d30v/tm-d30v.h: Ditto.
6914 * config/arm/tm-arm.h: Ditto.
6915 * config/arc/tm-arc.h: Ditto.
6916 * config/alpha/tm-alpha.h: Ditto.
6917 * config/a29k/tm-vx29k.h: Ditto.
6918 * config/a29k/tm-a29k.h: Ditto.
6919 * config/w65/tm-w65.h: Ditto.
6920 * config/vax/tm-vax.h: Ditto.
6921 * config/v850/tm-v850.h: Ditto.
6922 * config/tic80/tm-tic80.h: Ditto.
6923 * config/sparc/tm-sparclite.h: Ditto.
6924 * config/sparc/tm-sparclet.h: Ditto.
6925 * config/sparc/tm-sparc.h: Ditto.
6926 * config/sparc/nm-sun4sol2.h: Ditto.
6927 * config/sparc/nm-sun4os4.h: Ditto.
6928 * config/sparc/nm-nbsd.h: Ditto.
6929 * config/powerpc/nm-solaris.h: Ditto.
6930 * config/pa/tm-hppao.h: Ditto.
6931 * config/pa/tm-hppa.h: Ditto.
6932 * config/pa/nm-hppab.h: Ditto.
6933 * config/ns32k/tm-umax.h: Ditto.
6934 * config/ns32k/tm-merlin.h: Ditto.
6935 * config/nm-m3.h: Ditto.
6936 * config/nm-gnu.h: Ditto.
6937
0981ead9
AC
69382001-03-14 Andrew Cagney <ac131313@redhat.com>
6939
6940 * MAINTAINERS: Update list of targets. Mark arm-* and v850-elf as
6941 broken. Mark sh-*, ia64-linux and ns32k-netbsd as buildable.
6942 Specify an m88k target. Include sample GAWK script to generate
6943 target list. Delete non-existant romp target.
6944 * TODO (GDB 5.1 - Cleanups): Update.
6945
91c1720e
KS
69462001-03-14 Keith Seitz <keiths@cygnus.com>
6947
6948 * linespec.c (decode_line_1): Skip argptr over a leading
6949 double quote. Prevents alloc of 0 bytes and memcpy of -1 bytes.
6950
3cc122b3
KB
69512001-03-14 Kevin Buettner <kevinb@redhat.com>
6952
6953 * config/djgpp/fnchange.lst (ia64-aix-nat.c): Add entry.
6954
5bb367b1
AC
69552001-03-13 Andrew Cagney <ac131313@redhat.com>
6956
6957 * ui-out.h: Remove #if __STDC__, assume an ISO-C compiler.
6958 * m3-nat.c: Ditto.
6959 * p-lang.h: Ditto.
6960 * printcmd.c (printf_command): Ditto.
6961 * ch-exp.c (match_integer_literal): Ditto.
6962 * scm-tags.h: Ditto.
6963 * ser-go32.c: Ditto.
6964 * hppa-tdep.c (unwind_command): Ditto.
6965 * defs.h (volatile): Delete macro definition. Assume __STDC__.
6966 * remote-adapt.c (volatile): Ditto.
6967 * remote-eb.c (volatile): Ditto.
6968 * remote-mm.c (volatile): Ditto.
6969 * defs.h (alloca): Assume __STDC__, declare returning void *.
6970
a728f042
AC
69712001-03-08 Andrew Cagney <ac131313@redhat.com>
6972
6973 * inferior.h (ARCH_NUM_REGS): Delete definition.
6974 * stack.c (frame_info): Use NUM_REGS, not ARCH_NUM_REGS.
6975 * regcache.c (registers_changed): Ditto.
6976 (registers_fetched): Ditto.
6977 * infptrace.c (fetch_inferior_registers): Ditto.
6978 (store_inferior_registers): Ditto.
6979 * infcmd.c (do_registers_info): Ditto.
6980 (registers_info): Ditto.
6981 * i386-linux-nat.c (old_fetch_inferior_registers): Ditto.
6982 (old_store_inferior_registers): Ditto.
6983 * gdbserver/low-linux.c (register_addr): Ditto.
6984 * gdbserver/low-hppabsd.c (register_addr): Ditto.
6985 * core-aout.c: Don't include "inferior.h".
6986 (fetch_core_registers): Use NUM_REGS not ARCH_NUM_REGS.
6987 (register_addr): Ditto.
6988
f48ff60a
FN
69892001-03-13 Fernando Nasser <fnasser@redhat.com>
6990
6991 From Steven Johnson <sjohnson@neurizon.net>
6992 * cli/cli-script.c (define_command): Fix setting of post hooks.
6993
305d65ca
MK
69942001-03-13 Mark Kettenis <kettenis@gnu.org>
6995
6996 * i386-linux-tdep.c: Fix formatting and clarify comments.
6997 (i386_linux_svr4_fetch_link_map_offsets): Use NULL instead of 0
6998 where appropriate.
6999
bf62e5b4
AC
70002001-03-12 Andrew Cagney <ac131313@redhat.com>
7001
7002 * gnu-nat.c: Include "gdb_assert.h" instead of <assert.h>.
7003 (proc_update_sc): Use gdb_assert instead of assert.
7004 (proc_abort): Ditto.
7005 (inf_set_step_thread): Ditto.
7006 (gnu_wait): Ditto.
7007 (S_exception_raise_request): Ditto.
7008 (gnu_terminal_init_inferior): Ditto.
7009
21479ded
KB
70102001-03-09 Kevin Buettner <kevinb@redhat.com>
7011
7012 * Makefile.in (solib-svr4.o): Depend on solib-svr4.c, not solib.c.
7013 (solib-legacy.o): New makefile target.
7014 * solib-legacy.c: New file.
7015 * solib-svr4.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
7016 (default_svr4_fetch_link_map_offsets): Delete.
7017 (set_solib_svr4_fetch_link_map_offsets): Declare.
7018 (legacy_svr4_fetch_link_map_offsets_hook): Declare.
7019 * solib-svr4.c (elf/common.h): Include.
7020 (link.h): Only include for SunOS shared library support.
7021 (_SYSCALL32): Don't define.
7022 (SVR4_FETCH_LINK_MAP_OFFSETS): Define.
7023 (default_svr4_fetch_link_map_offsets): Made static; added forward
7024 declaration.
7025 (fetch_link_map_offsets): New static global.
7026 (legacy_svr4_fetch_link_map_offsets_hook): New global variable.
7027 (default_svr4_fetch_link_map_offsets): Rewritten. The guts
7028 of what used to be in this function now reside in
7029 legacy_svr4_fetch_link_map_offsets() in solib-legacy.c.
7030 (open_symbol_file_object): Fix declaration in SunOS section
7031 of the code.
7032 (set_solib_svr4_fetch_link_map_offsets): New extern function.
7033 (init_fetch_link_map_offsets): New static function.
7034 (_initialize_svr4_solib): Put static global fetch_link_map_offsets
7035 under multiarch control.
7036
7037 * config/alpha/alpha-linux.mt (TDEPFILES): Add solib-legacy.o to
7038 list.
7039 * config/alpha/fbsd.mh (NATDEPFILES): Likewise.
7040 * config/arm/linux.mt (TDEPFILES): Likewise.
7041 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
7042 * config/i386/i386dgux.mh (NATDEPFILES): Likewise.
7043 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
7044 * config/i386/i386sco5.mh (NATDEPFILES): Likewise.
7045 * config/i386/i386sol2.mt (TDEPFILES): Likewise.
7046 * config/i386/i386v4.mh (NATDEPFILES): Likewise.
7047 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
7048 * config/i386/linux.mt (TDEPFILES): Likewise.
7049 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
7050 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7051 * config/i386/ncr3000.mt (TDEPFILES): Likewise.
7052 * config/i386/ptx4.mh (XDEPFILES): Likewise.
7053 * config/i386/sun386.mt (TDEPFILES): Likewise.
7054 * config/ia64/linux.mt (TDEPFILES): Likewise.
7055 * config/m68k/linux.mt (TDEPFILES): Likewise.
7056 * config/m68k/m68kv4.mh (NATDEPFILES): Likewise.
7057 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
7058 * config/m68k/sun2os4.mt (TDEPFILES): Likewise.
7059 * config/m68k/sun3os4.mt (TDEPFILES): Likewise.
7060 * config/m88k/delta88v4.mh (NATDEPFILES): Likewise.
7061 * config/mips/mipsv4.mh (NATDEPFILES): Likewise.
7062 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
7063 * config/powerpc/linux.mt (TDEPFILES): Likewise.
7064 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
7065 * config/powerpc/solaris.mh (NATDEPFILES): Likewise.
7066 * config/sh/linux.mt (TDEPFILES): Likewise.
7067 * config/sparc/linux.mt (TDEPFILES): Likewise.
7068 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
7069 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
7070 * config/sparc/sp64linux.mt (TDEPFILES): Likewise.
7071 * config/sparc/sun4os4.mt (TDEPFILES): Likewise.
7072 * config/sparc/sun4sol2.mh (NATDEPFILES): Likewise.
7073
d7fa9de0
KB
70742001-03-09 Kevin Buettner <kevinb@redhat.com>
7075
7076 * utils.c (xmrealloc, xcalloc): Return NULL for zero-sized requests.
7077
f8241bd1
AC
70782001-03-09 Andrew Cagney <ac131313@redhat.com>
7079
7080 * MAINTAINERS (Write After Approval): Update Philip Blundell.
7081
e6b4b0c2
KS
70822001-03-09 Keith Seitz <keiths@cygnus.com>
7083
7084 * MAINTAINERS: Add myself to write after approval list.
7085
96836138
MK
70862001-03-09 Mark Kettenis <kettenis@gnu.org>
7087
7088 * i387-tdep.c (print_i387_status_word): Fix printing of Stack
7089 fault flag. It is bit 6 of the x87 FPU status word, not bit 7.
7090
1b594327
AC
70912001-03-08 Andrew Cagney <ac131313@redhat.com>
7092
7093 * configure.host (m88*-harris-cxux*): Mark as obsolete.
7094 * configure.tgt: Ditto.
7095 * config/m88k/xm-cxux.h: Ditto.
7096 * config/m88k/tm-cxux.h: Ditto.
7097 * config/m88k/nm-cxux.h: Ditto.
7098 * config/m88k/cxux.mt: Ditto.
7099 * config/m88k/cxux.mh: Ditto.
7100
4a32a1e4
AC
71012001-03-08 Andrew Cagney <ac131313@redhat.com>
7102
7103 * Makefile.in: Delete rules for obsolete files.
7104
ec9a3449
DT
7105Thu Mar 8 15:43:40 2001 David Taylor <taylor@redhat.com>
7106
7107 * stack.c (parse_frame_specification): For one argument case,
7108 handle the situation where the argument is an integer, not an
7109 address -- arguably the most common case. This matters on
7110 targets where pointers and addresses are different.
7111
a50c34dc
AC
71122001-03-08 Andrew Cagney <ac131313@redhat.com>
7113
7114 * TODO: Revise 5.1 list. Delete PARAMS task. Add coding standard
7115 review. Clarify GNU/LINUX/sparc. Move other tasks to 5.2 or
7116 general.
7117
cfc046cf
AC
71182001-03-07 Andrew Cagney <ac131313@redhat.com>
7119
7120 * TODO (GDB 5.1 Known Problems): Document problem of building GDB
7121 with SID on Solaris 8.
7122
39424bef
MK
71232001-03-07 Mark Kettenis <kettenis@gnu.org>
7124
7125 * defs.h: Provide prototypes for floatformat_is_negative,
7126 floatformat_is_nan and floatformat_mantissa.
7127 * utils.c: Include "gdb_assert.h".
7128 (floatformat_is_negative): New function.
7129 (floatformat_is_nan): New function.
7130 (floatformat_mantissa): New function.
7131 * valprint.c: Include "floatformat.h".
7132 (print_floating): Get rid of the Linux-specific
7133 TARGET_ANALYZE_FLOATING macro and rewrite NaN detection with the
7134 help these new functions. Print NaN's in a format conforming to
7135 ISO C99.
7136
7a1bd56a
EZ
71372001-03-07 Eli Zaretskii <eliz@is.elta.co.il>
7138
7139 * top.c (init_main): Make `set history file name' complete on file
7140 names.
7141
5565b556
C
71422001-03-06 J.T. Conklin <jtc@redback.com>
7143
21a12a30
C
7144 * Makefile.in (LINTFLAGS): Update to contain all of the macros
7145 which define include paths used when compiling.
7146
7147 * util.c (savestring, msavestring): Change type of length argument.
7148 * defs.h (savestring, msavestring): Update to match.
7149
5565b556
C
7150 * symtab.h (decode_line_1): Removed declaration.
7151
7152 * symfile.c (#include <assert.h>): Removed.
7153
7154 * arch-utils.c (#include <ctype.h>): Removed.
7155 * c-typeprint.c: Likewise.
7156 * dbxread.c: Likewise.
7157 * gdbtypes.c: Likewise.
7158 * target.c: Likewise.
7159 * os9kread.c: Likewise.
7160
7161 * c-valprint.c (#include "demangle.h"): Removed.
7162 * ch-typeprint.c: Likewise.
7163 * eval.c: Likewise.
7164 * f-typeprint.c: Likewise.
7165 * f-valprint.c: Likewise.
7166 * m2-typeprint.c: Likewise.
7167 * typeprint.c: Likewise.
7168 * p-typeprint.c: Likewise.
7169 * valarith.c: Likewise.
7170 * valprint.c: Likewise.
7171
7172 * m2-typeprint.c (#include "gdb_string.h"): Removed.
7173 * nlmread.c: Likewise.
7174
7175 * mdebugread.c (#include "gdb-stabs.h"): Removed.
7176 * minsyms.c: Likewise.
7177 * mipsread.c: Likewise.
7178 * nlmread.c: Likewise.
7179
7180 * m2-typeprint.c (#include "obstack.h"): Removed.
7181 * m2-valprint.c: Likewise.
7182
7183 * event-loop.c (#include <setjmp.h>): Removed.
7184
e8be95ae
SS
71852001-03-06 Stan Shebs <shebs@apple.com>
7186
7187 * MAINTAINERS: Remove self from specific maintenance domains
7188 (macos, gdbserver, documentation, testsuite).
7189
b6ba6518
KB
71902001-03-06 Kevin Buettner <kevinb@redhat.com>
7191
7192 * 29k-share/udi/udip2soc.c, Makefile.in, a29k-tdep.c,
7193 a68v-nat.c, abug-rom.c, aclocal.m4, alpha-nat.c, alpha-tdep.c,
7194 annotate.c, annotate.h, arc-tdep.c, arch-utils.c,
7195 arch-utils.h, arm-tdep.c, ax-gdb.c, ax-gdb.h, ax-general.c,
7196 ax.h, bcache.c, bcache.h, blockframe.c, breakpoint.c,
7197 breakpoint.h, buildsym.c, buildsym.h, c-exp.y, c-lang.c,
7198 c-lang.h, c-typeprint.c, c-valprint.c, call-cmds.h, ch-exp.c,
7199 ch-lang.c, ch-lang.h, ch-typeprint.c, ch-valprint.c,
7200 cli/cli-cmds.h, cli/cli-decode.c, cli/cli-decode.h,
7201 cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.h,
7202 cli/cli-utils.h, cli-out.c, cli-out.h, coff-solib.c,
7203 coff-solib.h, coffread.c, command.h, complaints.c,
7204 complaints.h, completer.c, completer.h,
7205 config/a29k/nm-ultra3.h, config/a29k/tm-a29k.h,
7206 config/a29k/tm-ultra3.h, config/a29k/tm-vx29k.h,
7207 config/a29k/xm-ultra3.h, config/alpha/nm-fbsd.h,
7208 config/alpha/nm-linux.h, config/alpha/nm-osf.h,
7209 config/alpha/nm-osf2.h, config/alpha/nm-osf3.h,
7210 config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h,
7211 config/alpha/xm-alphalinux.h, config/alpha/xm-alphaosf.h,
7212 config/alpha/xm-fbsd.h, config/arc/tm-arc.h,
7213 config/arm/nm-linux.h, config/arm/tm-arm.h,
7214 config/arm/tm-embed.h, config/d10v/tm-d10v.h,
7215 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
7216 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
7217 config/i386/nm-fbsd.h, config/i386/nm-gnu.h,
7218 config/i386/nm-i386bsd.h, config/i386/nm-i386mach.h,
7219 config/i386/nm-i386sco.h, config/i386/nm-i386sol2.h,
7220 config/i386/nm-i386v.h, config/i386/nm-i386v4.h,
7221 config/i386/nm-i386v42mp.h, config/i386/nm-linux.h,
7222 config/i386/nm-nbsd.h, config/i386/nm-nbsdelf.h,
7223 config/i386/nm-ptx4.h, config/i386/nm-sun386.h,
7224 config/i386/nm-symmetry.h, config/i386/tm-cygwin.h,
7225 config/i386/tm-fbsd.h, config/i386/tm-i386.h,
7226 config/i386/tm-i386aix.h, config/i386/tm-i386bsd.h,
7227 config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h,
7228 config/i386/tm-i386m3.h, config/i386/tm-i386mk.h,
7229 config/i386/tm-i386nw.h, config/i386/tm-i386os9k.h,
7230 config/i386/tm-i386sco5.h, config/i386/tm-i386sol2.h,
7231 config/i386/tm-i386v.h, config/i386/tm-i386v4.h,
7232 config/i386/tm-i386v42mp.h, config/i386/tm-linux.h,
7233 config/i386/tm-nbsd.h, config/i386/tm-ptx.h,
7234 config/i386/tm-ptx4.h, config/i386/tm-sun386.h,
7235 config/i386/tm-symmetry.h, config/i386/tm-vxworks.h,
7236 config/i386/xm-fbsd.h, config/i386/xm-i386bsd.h,
7237 config/i386/xm-i386gnu.h, config/i386/xm-i386m3.h,
7238 config/i386/xm-i386mach.h, config/i386/xm-i386mk.h,
7239 config/i386/xm-i386sco.h, config/i386/xm-i386v4.h,
7240 config/i386/xm-linux.h, config/i386/xm-nbsd.h,
7241 config/i386/xm-ptx.h, config/i386/xm-ptx4.h,
7242 config/i386/xm-sun386.h, config/i386/xm-symmetry.h,
7243 config/i960/tm-i960.h, config/i960/tm-mon960.h,
7244 config/i960/tm-nindy960.h, config/i960/tm-vx960.h,
7245 config/ia64/nm-aix.h, config/ia64/nm-linux.h,
7246 config/ia64/tm-aix.h, config/ia64/tm-ia64.h,
7247 config/ia64/tm-linux.h, config/ia64/xm-aix.h,
7248 config/ia64/xm-linux.h, config/m68k/nm-apollo68b.h,
7249 config/m68k/nm-delta68.h, config/m68k/nm-dpx2.h,
7250 config/m68k/nm-hp300bsd.h, config/m68k/nm-hp300hpux.h,
7251 config/m68k/nm-linux.h, config/m68k/nm-sun3.h,
7252 config/m68k/tm-apollo68b.h, config/m68k/tm-cisco.h,
7253 config/m68k/tm-dpx2.h, config/m68k/tm-es1800.h,
7254 config/m68k/tm-hp300bsd.h, config/m68k/tm-hp300hpux.h,
7255 config/m68k/tm-isi.h, config/m68k/tm-linux.h,
7256 config/m68k/tm-m68k.h, config/m68k/tm-m68kv4.h,
7257 config/m68k/tm-mac.h, config/m68k/tm-monitor.h,
7258 config/m68k/tm-nbsd.h, config/m68k/tm-news.h,
7259 config/m68k/tm-os68k.h, config/m68k/tm-sun3.h,
7260 config/m68k/tm-vx68.h, config/m68k/xm-3b1.h,
7261 config/m68k/xm-apollo68b.h, config/m68k/xm-dpx2.h,
7262 config/m68k/xm-hp300bsd.h, config/m68k/xm-hp300hpux.h,
7263 config/m68k/xm-linux.h, config/m68k/xm-m68kv4.h,
7264 config/m68k/xm-mpw.h, config/m68k/xm-news.h,
7265 config/m68k/xm-sun2.h, config/m68k/xm-sun3.h,
7266 config/m68k/xm-sun3os4.h, config/m88k/nm-delta88v4.h,
7267 config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h,
7268 config/m88k/tm-m88k.h, config/m88k/xm-cxux.h,
7269 config/m88k/xm-delta88.h, config/m88k/xm-delta88v4.h,
7270 config/m88k/xm-dgux.h, config/mcore/tm-mcore.h,
7271 config/mips/nm-irix3.h, config/mips/nm-irix4.h,
7272 config/mips/nm-irix5.h, config/mips/nm-mips.h,
7273 config/mips/nm-news-mips.h, config/mips/tm-bigmips.h,
7274 config/mips/tm-embed.h, config/mips/tm-embed64.h,
7275 config/mips/tm-embedl.h, config/mips/tm-embedl64.h,
7276 config/mips/tm-irix3.h, config/mips/tm-irix5.h,
7277 config/mips/tm-mips.h, config/mips/tm-mips64.h,
7278 config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h,
7279 config/mips/tm-tx39.h, config/mips/tm-tx39l.h,
7280 config/mips/tm-vr4100.h, config/mips/tm-vr4300.h,
7281 config/mips/tm-vr4300el.h, config/mips/tm-vr4xxx.h,
7282 config/mips/tm-vr4xxxel.h, config/mips/tm-vr5000.h,
7283 config/mips/tm-vr5000el.h, config/mips/xm-irix3.h,
7284 config/mips/xm-irix4.h, config/mips/xm-irix5.h,
7285 config/mips/xm-mips.h, config/mips/xm-mipsm3.h,
7286 config/mips/xm-mipsv4.h, config/mips/xm-news-mips.h,
7287 config/mips/xm-riscos.h, config/mn10200/tm-mn10200.h,
7288 config/mn10300/tm-mn10300.h, config/nm-gnu.h,
7289 config/nm-linux.h, config/nm-lynx.h, config/nm-m3.h,
7290 config/nm-sysv4.h, config/none/nm-none.h,
7291 config/none/tm-none.h, config/none/xm-none.h,
7292 config/ns32k/nm-nbsd.h, config/ns32k/nm-umax.h,
7293 config/ns32k/tm-merlin.h, config/ns32k/tm-nbsd.h,
7294 config/ns32k/tm-ns32km3.h, config/ns32k/tm-umax.h,
7295 config/ns32k/xm-merlin.h, config/ns32k/xm-ns32km3.h,
7296 config/pa/nm-hppab.h, config/pa/nm-hppah.h,
7297 config/pa/nm-hppao.h, config/pa/tm-hppa.h,
7298 config/pa/tm-hppa64.h, config/pa/tm-hppah.h,
7299 config/pa/xm-hppab.h, config/pa/xm-hppah.h,
7300 config/powerpc/nm-aix.h, config/powerpc/nm-linux.h,
7301 config/powerpc/nm-macos.h, config/powerpc/nm-nbsd.h,
7302 config/powerpc/tm-cygwin.h, config/powerpc/tm-linux.h,
7303 config/powerpc/tm-macos.h, config/powerpc/tm-ppc-aix.h,
7304 config/powerpc/tm-ppc-eabi.h, config/powerpc/tm-ppc-nw.h,
7305 config/powerpc/tm-ppcle-eabi.h, config/powerpc/tm-solaris.h,
7306 config/powerpc/xm-aix.h, config/powerpc/xm-linux.h,
7307 config/powerpc/xm-mpw.h, config/rs6000/nm-rs6000.h,
7308 config/rs6000/tm-rs6000.h, config/rs6000/tm-rs6000ly.h,
7309 config/rs6000/xm-aix4.h, config/rs6000/xm-rs6000.h,
7310 config/sh/tm-linux.h, config/sh/tm-sh.h, config/sh/tm-wince.h,
7311 config/sparc/nm-linux.h, config/sparc/nm-nbsd.h,
7312 config/sparc/nm-nbsdelf.h, config/sparc/nm-sparclynx.h,
7313 config/sparc/nm-sun4os4.h, config/sparc/nm-sun4sol2.h,
7314 config/sparc/tm-linux.h, config/sparc/tm-sp64.h,
7315 config/sparc/tm-sp64sim.h, config/sparc/tm-sparc.h,
7316 config/sparc/tm-sparclet.h, config/sparc/tm-sparclite.h,
7317 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
7318 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
7319 config/sparc/xm-sun4os4.h, config/sparc/xm-sun4sol2.h,
7320 config/tic80/tm-tic80.h, config/tm-linux.h, config/tm-lynx.h,
7321 config/tm-sysv4.h, config/v850/tm-v850.h, config/vax/tm-vax.h,
7322 config/w65/tm-w65.h, config/xm-aix4.h, config/xm-lynx.h,
7323 config/xm-mpw.h, config/xm-nbsd.h, config/xm-sysv4.h,
7324 config/z8k/tm-z8k.h, configure.in, core-aout.c, core-regset.c,
7325 core-sol2.c, corefile.c, corelow.c, cp-valprint.c,
7326 cpu32bug-rom.c, cxux-nat.c, d10v-tdep.c, d30v-tdep.c,
7327 dbug-rom.c, dbxread.c, dcache.c, dcache.h, defs.h,
7328 delta68-nat.c, demangle.c, dink32-rom.c, dpx2-nat.c, dsrec.c,
7329 dstread.c, dve3900-rom.c, dwarf2read.c, dwarfread.c,
7330 elfread.c, environ.c, environ.h, eval.c, event-loop.c,
7331 event-loop.h, event-top.c, exec.c, expprint.c, f-exp.y,
7332 f-lang.c, f-lang.h, f-typeprint.c, f-valprint.c, findvar.c,
7333 fork-child.c, fr30-tdep.c, frame.c, frame.h, gdb-events.c,
7334 gdb-events.h, gdb-events.sh, gdb-stabs.h, gdb.1, gdb_string.h,
7335 gdb_thread_db.h, gdbcmd.h, gdbcore.h, gdbserver/Makefile.in,
7336 gdbserver/gdbreplay.c, gdbserver/gdbserver.1,
7337 gdbserver/low-hppabsd.c, gdbserver/low-linux.c,
7338 gdbserver/low-lynx.c, gdbserver/low-nbsd.c,
7339 gdbserver/low-sim.c, gdbserver/low-sparc.c,
7340 gdbserver/low-sun3.c, gdbserver/remote-utils.c,
7341 gdbserver/server.c, gdbserver/server.h, gdbserver/utils.c,
7342 gdbthread.h, gdbtypes.c, gdbtypes.h, gnu-nat.c, gnu-nat.h,
7343 gnu-regex.c, gnu-regex.h, h8300-tdep.c, h8500-tdep.c,
7344 hp-psymtab-read.c, hp-symtab-read.c, hp300ux-nat.c,
7345 hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c, hpread.c,
7346 hpread.h, hpux-thread.c, i386-tdep.c, i386aix-nat.c,
7347 i386b-nat.c, i386gnu-nat.c, i386ly-tdep.c, i386m3-nat.c,
7348 i386mach-nat.c, i386nbsd-nat.c, i386nbsd-tdep.c, i386v-nat.c,
7349 i386v4-nat.c, i387-tdep.c, i960-tdep.c, infcmd.c, inferior.h,
7350 inflow.c, infptrace.c, infrun.c, inftarg.c, infttrace.c,
7351 irix4-nat.c, irix5-nat.c, isi-xdep.c, jv-exp.y, jv-lang.c,
7352 jv-lang.h, jv-typeprint.c, jv-valprint.c, kdb-start.c,
7353 kod-cisco.c, kod.c, language.c, language.h, lin-thread.c,
7354 linespec.c, linespec.h, linux-thread.c, lynx-nat.c, m2-exp.y,
7355 m2-lang.c, m2-lang.h, m2-typeprint.c, m2-valprint.c, m3-nat.c,
7356 m32r-rom.c, m32r-tdep.c, m68k-tdep.c, m68klinux-nat.c,
7357 m68knbsd-nat.c, m88k-nat.c, m88k-tdep.c, mac-nat.c,
7358 mac-xdep.c, main.c, maint.c, mcore-rom.c, mcore-tdep.c,
7359 mdebugread.c, mem-break.c, minimon.h, minsyms.c, mips-nat.c,
7360 mips-tdep.c, mipsm3-nat.c, mipsread.c, mipsv4-nat.c,
7361 mn10200-tdep.c, mn10300-tdep.c, mon960-rom.c, monitor.c,
7362 monitor.h, news-xdep.c, nindy-share/env.h, nindy-tdep.c,
7363 nlm/Makefile.in, nlmread.c, ns32k-tdep.c, ns32km3-nat.c,
7364 ns32knbsd-nat.c, objfiles.c, objfiles.h, ocd.c, ocd.h,
7365 op50-rom.c, os9kread.c, osfsolib.c, p-exp.y, pa64solib.c,
7366 pa64solib.h, parse.c, parser-defs.h, partial-stab.h,
7367 ppc-bdm.c, ppc-linux-nat.c, ppc-linux-tdep.c, ppcbug-rom.c,
7368 ppcnbsd-nat.c, printcmd.c, proc-api.c, proc-events.c,
7369 proc-flags.c, proc-utils.h, proc-why.c, procfs.c, ptx4-nat.c,
7370 rdi-share/Makefile.in, rdi-share/aclocal.m4, regcache.c,
7371 regcache.h, remote-adapt.c, remote-array.c, remote-bug.c,
7372 remote-e7000.c, remote-eb.c, remote-es.c, remote-est.c,
7373 remote-hms.c, remote-mips.c, remote-mm.c, remote-nindy.c,
7374 remote-nrom.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
7375 remote-sds.c, remote-sim.c, remote-st.c, remote-udi.c,
7376 remote-utils.c, remote-utils.h, remote-vx.c, remote.c,
7377 remote.h, reply_mig_hack.awk, rom68k-rom.c, rs6000-nat.c,
7378 rs6000-tdep.c, scm-exp.c, scm-lang.c, scm-lang.h, scm-tags.h,
7379 scm-valprint.c, ser-e7kpc.c, ser-mac.c, ser-ocd.c, ser-pipe.c,
7380 ser-tcp.c, ser-unix.c, serial.c, serial.h, sh-tdep.c,
7381 sh3-rom.c, sol-thread.c, solib-aix5.c, solib-svr4.c, solib.c,
7382 solib.h, solist.h, somread.c, somsolib.c, somsolib.h,
7383 source.c, sparc-nat.c, sparc-tdep.c, sparcl-tdep.c,
7384 sparclet-rom.c, srec.h, stabsread.c, stabsread.h, stack.c,
7385 standalone.c, stop-gdb.c, stuff.c, sun3-nat.c, sun386-nat.c,
7386 symfile.c, symfile.h, symm-nat.c, symm-tdep.c, symmisc.c,
7387 symtab.c, symtab.h, target.c, target.h, terminal.h, thread.c,
7388 tic80-tdep.c, top.c, top.h, tracepoint.c, tracepoint.h,
7389 typeprint.c, ui-file.c, ui-file.h, ui-out.h, ultra3-nat.c,
7390 ultra3-xdep.c, umax-xdep.c, utils.c, v850-tdep.c, v850ice.c,
7391 valarith.c, valops.c, valprint.c, value.h, values.c, varobj.h,
7392 vax-tdep.c, version.h, vx-share/vxWorks.h, vx-share/xdr_ld.c,
7393 vx-share/xdr_ptrace.c, vx-share/xdr_ptrace.h,
7394 vx-share/xdr_rdb.c, w65-tdep.c, w89k-rom.c, win32-nat.c,
7395 wrapper.c, wrapper.h, xcoffread.c, xcoffsolib.c, xcoffsolib.h,
7396 xmodem.c, xmodem.h, z8k-tdep.c: Update/correct copyright
7397 notices.
7398
596c9d4b
KB
73992001-03-05 Kevin Buettner <kevinb@redhat.com>
7400
7401 * acconfig.h (HAVE_PRSYSENT_T, HAVE_PR_SIGSET_T,
7402 HAVE_PR_SIGACTION64_T, HAVE_PR_SIGINFO64_T): New configure
7403 macros.
7404 * configure.in (prsysent_t, pr_sigset_t, pr_sigaction64_t,
7405 pr_siginfo64_t): Test for these typedefs in <sys/procfs.h>.
7406 (sys/fault.h, sys/select.h): Test for presence of these
7407 header files.
7408 (ia64-*-aix*): Define NEW_PROC_API for this host.
7409 * configure: Regenerate.
7410 * config.in: Regenerate.
7411
7412 * configure.host (ia64-*-aix*): New host.
7413 * configure.tgt (ia64-*-aix*): New target.
8a5c92d3 7414
eccbb20d
AC
74152001-03-05 Andrew Cagney <ac131313@redhat.com>
7416
7417 * TODO (GDB 5.1 Known Problems): Document z8k as broken.
7418
9ff2efe5
CF
7419Mon Mar 5 11:56:09 2001 Christopher Faylor <cgf@cygnus.com>
7420
7421 * wince.c: Change realloc to xrealloc throughout.
61e2d1f3 7422 (handle_load_dll): Use void * rather than PTR in argument.
9ff2efe5 7423
58841d58
AC
74242001-03-04 Andrew Cagney <ac131313@redhat.com>
7425
7426 * ocd.h (ocd_xfer_memory): Add ``attrib'' parameter.
7427 * ocd.c (ocd_xfer_memory): Ditto.
7428 * ser-ocd.c (ocd_setstopbits): New function. Add to ocd_ops.
7429 * MAINTAINERS: Document powerpc-eabi and powerpcle-eabi as
7430 buildable with ,-Werror.
7431
7432 * Makefile.in (symfile_h): Define.
7433 (mcore-tdep.o): Add $(symfile_h), $(gdbcore_h) and $(inferior_h).
7434 * mcore-tdep.c: Include "symfile.h", "gdbcore.h" and "inferior.h".
7435 * MAINTAINERS: Document mcore-elf and mcore-pe as buildable with
7436 ,-Werror.
7437
7438 * dsrec.c (make_srec): Fix internal_error fmt arg.
7439 * MAINTAINERS: Document i960-coff as buildable with ,-Werror.
7440
3cad1ac9
KB
74412001-03-03 Kevin Buettner <kevinb@redhat.com>
7442
7443 * solib-aix5.c (aix5_relocate_main_executable): Don't use ANOFFSET
7444 as an lvalue.
7445
b9fa2e73
AC
74462001-03-02 Andrew Cagney <ac131313@redhat.com>
7447
130c39e6
AC
7448 * MAINTAINERS (paper trail): Update.
7449
b9fa2e73
AC
7450 * CONTRIBUTE: Update note on ``Fix PR gdb/4706'' convention.
7451
c53efe6e
AC
74522001-03-02 Andrew Cagney <ac131313@redhat.com>
7453
7454 From 2001-03-01 Tom Rix <trix@redhat.com>:
7455 * mn10200-tdep.c (mn10200_frame_chain): Pass 0 for ``pc''
7456 parameter to mn10200_analyze_prologue.
7457
7458 * config/mn10200/tm-mn10200.h: Include "regcache.h".
7459 * MAINTAINERS: Document that mn10200-elf target is buildable.
7460
52b5c2eb
KB
74612001-03-02 Kevin Buettner <kevinb@redhat.com>
7462
7463 * config/ia64/xm-aix.h (GDB_GREGSET_T, GDB_FPREGSET_T): Move defines
7464 from here...
7465 * config/ia64/nm-aix.h (GDB_GREGSET_T, GDB_FPREGSET_T): ...to here.
7466 (MONTEREY): Don't define.
7467 (AIX5): Define.
7468
2edb46b1
MH
74692001-03-02 Matt Hiller <hiller@redhat.com>
7470
7471 * config/mn10300/tm-mn10300.h (E0_REGNUM): Correct to 15.
7472
92c71a3e
KB
74732001-03-02 Kevin Buettner <kevinb@redhat.com>
7474
82a2886f 7475 * sparc-nat.c (sparc-nat.c): Don't include self.
92c71a3e 7476
e2a4c6c1
C
74772001-03-01 J.T. Conklin <jtc@redback.com>
7478
3a644c8d
C
7479 * defs.h (__CYGWIN__): Moved conditional which defines __CYGWIN__
7480 if __CYGWIN32__ is set from here.
7481 * config/i386/xm-cygwin.h: To here.
7482 * config/powerpc/xm-cygwin.h: To here.
7483
e2a4c6c1
C
7484 * i386-stub.c (handle_exception): Use 'T' response packet.
7485
4b33390a
MS
74862001-03-01 Michael Snyder <msnyder@mvstp600e.cygnus.com>
7487
7488 * m32r-tdep.c: Fix cut and paste error in comment.
7489
74902001-02-28 Michael Snyder <msnyder@mvstp600e.cygnus.com>
7491
7492 * symtab.c (print_msymbol_info): Print addresses by portable method
7493 longest_local_hex_string_custom. Allow for 64-bit addresses.
7494
ba41d549
C
74952001-03-01 J.T. Conklin <jtc@redback.com>
7496
7497 * gdbtypes.h (builtin_type_f_integer): Removed duplicate declaration.
7498 (MAX_OF_TYPE): Wrap macro definition in parenthesis.
7499 (MIN_OF_TYPE): Likewise.
7500
7501 * memattr.h (mem_access_mode): Removed extraneous trailing comma.
7502
088d891f
AC
75032001-03-01 Andrew Cagney <ac131313@redhat.com>
7504
7505 * Makefile.in (os9kread.o): Do not compile with WERROR_CFLAGS.
7506 * os9kread.c (os9k_process_one_symbol): Add assert to detect
7507 ``loses if sizeof (char *) > sizeof (int)''.
7508
38266776
AC
75092001-03-01 Andrew Cagney <ac131313@redhat.com>
7510
7511 * gdb_assert.h: Document pragmatics behind gdb_assert's case.
7512
2ad43c4f
AC
75132001-03-01 Andrew Cagney <ac131313@redhat.com>
7514
7515 * Makefile.in (gdbtk-cmds.o): Add $(regcache_h) to dependency
7516 lists.
7517 (mi-main.o): Ditto.
7518
367e21d8
AC
75192001-03-01 Andrew Cagney <ac131313@redhat.com>
7520
7521 * Makefile.in (regcache_h): Define. Add $(regcache_h) to
7522 dependency lists.
7523
d85310f7
MS
75242001-02-28 Michael Snyder <msnyder@mvstp600e.cygnus.com>
7525
c0d8fd9a
MS
7526 * printcmd.c (print_address_numeric): Update comments to refer
7527 to sizeof addr, not sizeof pointer.
7528 (x_command): Remove needless whitespace (shorten long line).
7529
d85310f7
MS
7530 * breakpoint.c (print_one_breakpoint): Formatting clean-up.
7531 (read_memory_nobpt): Ditto.
7532 (ep_is_catchpoint): Ditto.
7533 (ep_is_shlib_catchpoint): Ditto.
7534 (ep_is_exception_catchpoint): Ditto.
7535 (describe_other_breakpoints): Ditto.
7536
97900206
AC
7537Wed Feb 28 20:37:36 2001 Andrew Cagney <ac131313@redhat.com>
7538
7539 * regcache.h (register_valid): Fix comment documenting valid
7540 states.
7541
4e052eda
AC
7542Tue Feb 27 23:56:23 2001 Andrew Cagney <ac131313@redhat.com>
7543
7544 From Steven Johnson:
7545 * regcache.h: New file.
7546
7547 * value.h (read_register_bytes, read_register_gen)
7548 (write_register_gen, write_register_bytes)
7549 (read_register, read_register_pid)
7550 (read_signed_register, read_signed_register_pid)
7551 (write_register, write_register_pid)
7552 (register_cached, set_register_cached)
7553 (register_changed, register_buffer)
7554 (registers_changed, supply_register): Move declaration from here.
7555 * regcache.h: To here.
7556 * gdbcore.h (registers_fetched): Ditto.
7557 * inferior.h (registers, registers_valid): Ditto.
7558
7559 * regcache.c (generic_target_read_pc, read_pc_pid, read_pc,
7560 generic_target_write_pc, write_pc_pid, write_pc,
7561 generic_target_read_sp, read_sp, generic_target_write_sp,
7562 write_sp, generic_target_read_fp, read_fp,
7563 generic_target_write_fp, write_fp): Add note that these functions
7564 will be moved from this file.
7565
7566 * a29k-tdep.c: Include "regcache.h".
7567 * a68v-nat.c: Ditto.
7568 * abug-rom.c: Ditto.
7569 * alpha-nat.c: Ditto.
7570 * alpha-tdep.c: Ditto.
7571 * alphabsd-nat.c: Ditto.
7572 * arc-tdep.c: Ditto.
7573 * arm-linux-nat.c: Ditto.
7574 * arm-linux-tdep.c: Ditto.
7575 * arm-tdep.c: Ditto.
7576 * blockframe.c: Ditto.
7577 * core-aout.c: Ditto.
7578 * core-sol2.c: Ditto.
7579 * corelow.c: Ditto.
7580 * cpu32bug-rom.c: Ditto.
7581 * cxux-nat.c: Ditto.
7582 * d10v-tdep.c: Ditto.
7583 * d30v-tdep.c: Ditto.
7584 * dbug-rom.c: Ditto.
7585 * dink32-rom.c: Ditto.
7586 * dve3900-rom.c: Ditto.
7587 * findvar.c: Ditto.
7588 * fr30-tdep.c: Ditto.
7589 * frame.c: Ditto.
7590 * go32-nat.c: Ditto.
7591 * h8300-tdep.c: Ditto.
7592 * h8500-tdep.c: Ditto.
7593 * hp300ux-nat.c: Ditto.
7594 * hppa-tdep.c: Ditto.
7595 * hppab-nat.c: Ditto.
7596 * hppah-nat.c: Ditto.
7597 * hppam3-nat.c: Ditto.
7598 * hpux-thread.c: Ditto.
7599 * i386-linux-nat.c: Ditto.
7600 * i386-linux-tdep.c: Ditto.
7601 * i386-tdep.c: Ditto.
7602 * i386aix-nat.c: Ditto.
7603 * i386b-nat.c: Ditto.
7604 * i386bsd-nat.c: Ditto.
7605 * i386gnu-nat.c: Ditto.
7606 * i386ly-tdep.c: Ditto.
7607 * i386m3-nat.c: Ditto.
7608 * i386mach-nat.c: Ditto.
7609 * i386nbsd-nat.c: Ditto.
7610 * i386v4-nat.c: Ditto.
7611 * i387-nat.c: Ditto.
7612 * i387-tdep.c: Ditto.
7613 * i960-tdep.c: Ditto.
7614 * ia64-aix-nat.c: Ditto.
7615 * ia64-linux-nat.c: Ditto.
7616 * ia64-tdep.c: Ditto.
7617 * infptrace.c: Ditto.
7618 * infrun.c: Ditto.
7619 * irix4-nat.c: Ditto.
7620 * irix5-nat.c: Ditto.
7621 * lin-lwp.c: Ditto.
7622 * lin-thread.c: Ditto.
7623 * lynx-nat.c: Ditto.
7624 * m3-nat.c: Ditto.
7625 * m32r-rom.c: Ditto.
7626 * m32r-tdep.c: Ditto.
7627 * m68hc11-tdep.c: Ditto.
7628 * m68k-tdep.c: Ditto.
7629 * m68klinux-nat.c: Ditto.
7630 * m68knbsd-nat.c: Ditto.
7631 * m68knbsd-tdep.c: Ditto.
7632 * m88k-nat.c: Ditto.
7633 * m88k-tdep.c: Ditto.
7634 * mac-nat.c: Ditto.
7635 * mcore-rom.c: Ditto.
7636 * mcore-tdep.c: Ditto.
7637 * mi/mi-main.c: Ditto.
7638 * mips-nat.c: Ditto.
7639 * mips-tdep.c: Ditto.
7640 * mipsm3-nat.c: Ditto.
7641 * mipsv4-nat.c: Ditto.
7642 * mn10200-tdep.c: Ditto.
7643 * mn10300-tdep.c: Ditto.
7644 * monitor.c: Ditto.
7645 * ns32km3-nat.c: Ditto.
7646 * ns32knbsd-nat.c: Ditto.
7647 * ocd.c: Ditto.
7648 * pa64solib.c: Ditto.
7649 * ppc-bdm.c: Ditto.
7650 * ppc-linux-nat.c: Ditto.
7651 * ppc-linux-tdep.c: Ditto.
7652 * ppcbug-rom.c: Ditto.
7653 * ppcnbsd-nat.c: Ditto.
7654 * ptx4-nat.c: Ditto.
7655 * regcache.c: Ditto.
7656 * remote-adapt.c: Ditto.
7657 * remote-array.c: Ditto.
7658 * remote-bug.c: Ditto.
7659 * remote-e7000.c: Ditto.
7660 * remote-eb.c: Ditto.
7661 * remote-es.c: Ditto.
7662 * remote-est.c: Ditto.
7663 * remote-hms.c: Ditto.
7664 * remote-mips.c: Ditto.
7665 * remote-mm.c: Ditto.
7666 * remote-nindy.c: Ditto.
7667 * remote-os9k.c: Ditto.
7668 * remote-rdi.c: Ditto.
7669 * remote-rdp.c: Ditto.
7670 * remote-sds.c: Ditto.
7671 * remote-sim.c: Ditto.
7672 * remote-st.c: Ditto.
7673 * remote-udi.c: Ditto.
7674 * remote-utils.c: Ditto.
7675 * remote-vx.c: Ditto.
7676 * remote-vx29k.c: Ditto.
7677 * remote-vx68.c: Ditto.
7678 * remote-vx960.c: Ditto.
7679 * remote-vxmips.c: Ditto.
7680 * remote-vxsparc.c: Ditto.
7681 * remote.c: Ditto.
7682 * rom68k-rom.c: Ditto.
7683 * rs6000-nat.c: Ditto.
7684 * rs6000-tdep.c: Ditto.
7685 * sh-tdep.c: Ditto.
7686 * sh3-rom.c: Ditto.
7687 * sol-thread.c: Ditto.
7688 * solib-svr4.c: Ditto.
7689 * somsolib.c: Ditto.
7690 * sparc-nat.c: Ditto.
7691 * sparc-tdep.c: Ditto.
7692 * sparcl-tdep.c: Ditto.
7693 * sparclet-rom.c: Ditto.
7694 * sun3-nat.c: Ditto.
7695 * sun386-nat.c: Ditto.
7696 * symm-nat.c: Ditto.
7697 * target.c: Ditto.
7698 * thread-db.c: Ditto.
7699 * thread.c: Ditto.
7700 * tic80-tdep.c: Ditto.
7701 * tracepoint.c: Ditto.
7702 * ultra3-nat.c: Ditto.
7703 * umax-xdep.c: Ditto.
7704 * uw-thread.c: Ditto.
7705 * v850-tdep.c: Ditto.
7706 * v850ice.c: Ditto.
7707 * valops.c: Ditto.
7708 * w65-tdep.c: Ditto.
7709 * w89k-rom.c: Ditto.
7710 * win32-nat.c: Ditto.
7711 * wince.c: Ditto.
7712 * z8k-tdep.c: Ditto.
7713
07d48ebc
MH
77142001-02-28 Matt Hiller <hiller@redhat.com>
7715
7716 * MAINTAINERS: Add Matt Hiller to Write After Approval list.
7717
2edb46b1
MH
77182001-02-27 Matt Hiller <hiller@redhat.com>
7719
7720 * mn10300-tdep.c (mn10300_stab_reg_to_regnum): New function.
7721 (mn10300_gdbarch_init): Set appropriate elements of gdbarch to
7722 mn10300_stab_reg_to_regnum.
7723
993f3aa5
DT
7724Tue Feb 27 16:56:13 2001 David Taylor <taylor@redhat.com>
7725
7726 * symtab.c (search_symbols): Fix off by one error in test for
7727 error.
7728
86168def
AC
77292001-02-23 Andrew Cagney <ac131313@redhat.com>
7730
7731 * config/sparc/sp64linux.mt: New file.
7732 * configure.tgt: Recognize sparc64-*-linux* as a sp64linux target.
7733 * configure.host: Recognize sparc64-*-linux* as a linux host.
7734
7735 From 2000-03-17 Jakub Jelinek <jakub@redhat.com>:
7736 * config/sparc/tm-sp64linux.h: New file.
7737
e1e9e218
KB
77382001-02-24 Kevin Buettner <kevinb@redhat.com>
7739
7740 * buildsym.c (push_subfile, pop_subfile): Replace call to abort()
7741 with call to internal_error().
7742 * dbxread.c (process_one_symbol): Likewise.
7743 * exec.c (build_section_table, xfer_memory): Likewise.
7744 * h8500-tdep.c (h8500_register_size, h8500_register_virtual_type):
7745 Likewise.
7746 * hpread.c (hpread_type_translate, hpread_read_array_type)
7747 (hpread_type_lookup): Likewise.
7748 * i386-tdep.c (gdb_print_insn_i386): Likewise.
7749 * i960-tdep.c (mem): Likewise
7750 * inflow.c (set_sigio_trap, clear_sigio_trap): Likewise.
7751 * infptrace.c (child_resume): Likewise.
7752 * infttrace.c (_initialize_infttrace): Likewise.
7753 * language.c (binop_result_type, add_language): Likewise.
7754 * lynx-nat.c (store_inferior_registers): Likewise.
7755 * m3-nat.c (port_chain_insert, m3_trace_me): Likewise.
7756 * mdebugread.c (parse_partial_symbols): Likewise.
7757 * monitor.c (monitor_printf_noecho, monitor_printf)
7758 (monitor_dump_regs): Likewise.
7759 * ocd.c (stu_put_packet): Likewise.
7760 * printcmd.c (decode_format, print_scalar_formatted): Likewise.
7761 * remote-bug.c (bug_open): Likewise.
7762 * remote-e7000.c (fetch_regs_from_dump, e7000_wait): Likewise.
7763 * remote-es.c (es1800_read_bytes): Likewise.
7764 * remote-mips.c (common_breakpoint): Likewise.
7765 * remote-rdp.c (send_rdp): Likewise.
7766 * remote-sds.c (putmessage): Likewise.
7767 * sparc-nat.c (fetch_inferior_registers, store_inferior_registers):
7768 Likewise.
7769 * sparcl-tdep.c (sparclite_download): Likewise.
7770 * symtab.c (lookup_partial_symbol): Likewise.
7771 * target.c (push_target, pop_target, initialize_targets): Likewise.
7772 * utils.c (internal_verror, malloc_botch, wrap_here, decimal2str):
7773 Likewise.
7774 * valprint.c (print_decimal, print_longest, print_longest)
7775 (strcat_longest): Likewise.
7776 * w65-tdep.c (init_frame_pc, w65_push_dummy_frame): Likewise.
7777 * xmodem.c (xmodem_send_packet): Likewise.
7778 * z8k-tdep.c (init_frame_pc, z8k_push_dummy_frame): Likewise.
7779 * config/h8500/tm-h8500.h (STORE_STRUCT_RETURN): Likewise.
7780 * config/mn10200/tm-mn10200.h (EXTRACT_RETURN_VALUE)
7781 (STORE_RETURN_VALUE): Likewise.
7782 * config/ns32k/nm-umax.h (REGISTER_U_ADDR): Likewise.
7783 * config/ns32k/xm-merlin.h (REGISTER_U_ADDR): Likewise.
7784 * config/z8k/tm-z8k.h (STORE_STRUCT_RETURN, STORE_RETURN_VALUE):
7785 Likewise.
7786
17fceda3
AC
77872001-02-23 Andrew Cagney <ac131313@redhat.com>
7788
2126d5fb
AC
7789 * CONTRIBUTE: Document how to cite a problem report.
7790 * TODO: Note need to replace CONTRIBUTE with generated file.
7791
17fceda3
AC
7792 * CONTRIBUTE: Mention that patches do not need to include the
7793 generated files gdbarch.h and gdbarch.c.
7794
60edd51d
AC
77952001-02-21 Andrew Cagney <ac131313@redhat.com>
7796
7797 * value.h (get_saved_register): Move from here.
7798 * frame.h: To here.
7799
d7fa2ae2
KB
78002001-02-21 Kevin Buettner <kevinb@redhat.com>
7801
7802 * solib.h (in_svr4_dynsym_resolve_code): Delete declaration.
7803 (in_solib_dynsym_resolve_code): Add declaration.
7804 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Changed define to invoke
7805 in_solib_dynsym_resolve_code() rather than
7806 in_svr4_dynsym_resolve_code(). Also, removed the ifdefs
7807 which caused this macro to only be defined when
7808 SVR4_SHARED_LIBS is defined.
7809 * solib.c (in_solib_dynsym_resolve_code): New function.
7810 * solist.h (struct target_so_ops): Add new member
7811 in_dynsym_resolve_code.
7812 * solib-aix5.c (aix5_in_dynsym_resolve_code): Renamed from
7813 in_svr4_dynsym_resolve_code. Also, made static.
7814 (_initialize_aix5_solib): Initialize in_dynsym_resolve_code
7815 member in aix5_so_ops.
7816 * solib-svr4.c (svr4_in_dynsym_resolve_code): Renamed from
7817 in_svr4_dynsym_resolve_code. Also, added second version
7818 of this function which will be used when SVR4_SHARED_LIBS
7819 is not defined.
7820 (_initialize_svr4_solib): Initialize in_dynsym_resolve_code
7821 member in svr4_so_ops.
7822
7823 * ia64-aix-nat.c, ia64-aix-tdep.c, config/ia64/aix.mh,
7824 config/ia64/aix.mt, config/ia64/nm-aix.h, config/ia64/tm-aix.h,
7825 config/ia64/xm-aix.h: New files.
7826 * ia64-tdep.c (_initialize_ia64_tdep): Remove declaration.
7827 (ia64_aix_sigcontext_register_address): New declaration.
aacc1edd 7828 (ia64_gdbarch_init): Provide for initialization of
d7fa2ae2
KB
7829 sigcontext_register_address member of struct tdep when
7830 on target is detected to be running AIX.
7831 * config/ia64/linux.mt (TDEPFILES): Add ia64-aix-tdep.o to
7832 this list.
7833
fbad0893
KB
78342001-02-20 Kevin Buettner <kevinb@redhat.com>
7835
7836 * ia64-tdep.c (ia64_frameless_function_invocation): Implement.
7837 * config/ia64/linux.mh (NATDEPFILES): Use thread-db.o and lin-lwp.o
7838 for thread support instead of linux-thread.o and lin-thread.o.
7839 * config/ia64/nm-linux.h (PREPARE_TO_PROCEED, GET_THREAD_SIGNALS,
7840 ATTACH_LWP): Define to use the following lin-lwp.c functions...
7841 (lin_lwp_prepare_to_proceed, lin_thread_get_thread_signals,
7842 lin_lwp_attach_lwp): Declare.
7843
1adad886
AC
78442001-02-20 Andrew Cagney <ac131313@redhat.com>
7845
7846 * mips-tdep.c (do_fp_register_row, do_fp_register_row): Fix printf
7847 formatting.
7848
0579d647
KB
78492001-02-20 Kevin Buettner <kevinb@redhat.com>
7850
7851 * solib-aix5.c (solib-svr4.h): Remove include.
7852 (solib_break_names): Delete names which aren't actually
7853 used by AIX5.
7854 (bkpt_names): Remove.
7855 (aix5_relocate_main_executable, bfd_lookup_symbol): Replace calls
7856 to STREQ() with equivalent calls to strcmp().
7857 (in_svr4_dynsym_resolve_code, enable_break, bfd_lookup_symbol,
7858 aix5_solib_create_inferior_hook): Revise comments.
7859 (enable_break): Remove old ``bkpt_names'' code.
7860
d65fe839
AC
78612001-02-19 Andrew Cagney <ac131313@redhat.com>
7862
7863 * Makefile.in (SFILES): Add frame.c .
7864 (COMMON_OBS): Add frame.o .
7865 (frame.o): New target.
7866
7867 * frame.c (find_saved_register):
7868 (default_get_saved_register):
7869 (get_saved_register):
7870 (read_relative_register_raw_bytes_for_frame):
7871 (read_relative_register_raw_bytes): Moved to here.
7872 * regcache.c: From here.
7873
60cf7a85
KB
78742001-02-20 Kevin Buettner <kevinb@redhat.com>
7875
7876 * solib-aix5.c: New file.
7877
291b7e04
MH
78782001-02-20 Martin M. Hunt <hunt@redhat.com>
7879
a43ad351
MH
7880 * solib.c (info_sharedlibrary_command): Don't assume pointers
7881 are the same size of long, call longest_local_hex_string_custom().
7882
58bc91c9
MH
7883 * solib-svr4.c (LM_ADDR): LM_ADDR is a signed offset, so
7884 extract_signed_integer() should be called instead of
7885 extract_address().
7886
78872001-02-20 Martin M. Hunt <hunt@redhat.com>
7888
291b7e04
MH
7889 * MAINTAINERS: Add Martin Hunt to Write After Approval list.
7890
d02ee681
AC
78912001-02-19 Andrew Cagney <ac131313@redhat.com>
7892
7893 Frm 2001-02-09 Jim Kingdon <jkingdon@engr.sgi.com>:
7894 * mips-tdep.c (mips_register_raw_size): If FP_REGISTER_DOUBLE,
7895 then floating point registers are 8 bytes.
7896
a858089e
MS
78972001-02-19 Michael Snyder <msnyder@mvstp600e.cygnus.com>
7898
7899 * parse.c (write_exp_msymbol): Make the type CORE_ADDR, to
7900 accomodate 64-bit addresses.
7901
23cc649f
EZ
79022001-02-19 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
7903
7904 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>
7905 * symtab.c (lookup_symbol_aux): Call lookup_symbol_aux, not
7906 lookup_symbol, when trying to find a symbol with a mangled name,
7907 to avoid infinite recursion.
7908
0db23c95
AC
79092001-02-18 Andrew Cagney <ac131313@redhat.com>
7910
7911 * TODO (5.2): Mention G++ 3.0 ABI. General cleanups.
7912
911413e6
JL
79132001-02-19 Jonathan Larmour <jlarmour@redhat.com>
7914
7915 * arm-tdep.c (check_prologue_cache): Fix off by 1 error.
7916 (save_prologue_cache): Ditto.
7917
8d1de4b7
EZ
79182001-02-19 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
7919
7920 From: innadadadavida@yahoo.com:
7921 * partial-stab.h (switch): Check that pst is not null
7922 before dereferencing it.
7923
3017564a
EZ
79242001-02-19 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
7925
7926 From Andrew Cagney <cagney@b1.cygnus.com>:
7927 * symfile.c (add_symbol_file_command): Always initialize
7928 my_cleanup using a NULL cleanup.
7929
fa58ee11
EZ
79302001-02-19 Eli Zaretskii <eliz@is.elta.co.il>
7931
7932 * demangle.c (demangling_style_names): New variable.
7933 (_initialize_demangler): Fill demangling_style_names with the
7934 names of known demangling styles from libiberty_demanglers[]. Use
7935 add_set_enum_cmd instead of add_set_cmd, to get completion on
7936 demangling style names.
7937
7938 * proc-api.c (_initialize_proc_api): Make `procfs-file' use
7939 file-name completion.
7940
7941 * remote-rdi.c (_initialize_remote_rdi): Ditto for `rdilogfile'.
7942
7943 * solib.c (_initialize_solib): Ditto for `solib-search-path' and
7944 `solib-absolute-prefix'.
7945
7946 * tracepoint.c (_initialize_tracepoint): Ditto for
7947 `save-tracepoints'.
7948
7949 * win32-nat.c (_initialize_inftarg): Ditto for `dll-symbols'.
7950
7951 * cli/cli-cmds.c (init_cli_cmds): Make `shell' and `make' use
7952 file-name completion.
7953
7954 * infcmd.c (_initialize_infcmd): Make the following commands use
7955 the file-name completer: `tty', `args', `path', `paths', and
7956 `run'.
7957
7830cf6f
EZ
79582001-02-18 Eli Zaretskii <eliz@is.elta.co.il>
7959
89dea5aa
EZ
7960 * go32-nat.c: Include i387-nat.h.
7961 (fetch_register): New function, uses some of the guts of
7962 go32_fetch_registers and calls i387_supply_register.
7963 (go32_fetch_registers): Most of the code moved into
7964 fetch_register. Use i387_supply_fsave.
7965 (store_register): Use i387_fill_fsave instead of custom code.
7966 (go32_store_registers): Use i387_fill_fsave.
7967
7968 * Makefile.in (go32-nat.o): Depend on i387-nat.h.
7969
7970 * config/i386/go32.mh (NATDEPFILES): Add i387-nat.o.
7971
7830cf6f
EZ
7972 * completer.c (gdb_completer_file_name_break_characters): Remove
7973 slash from file-name break characters.
7974 [__MSDOS__]: Special definition for DOS/Windows file names.
7975 (line_completion_function): When completing on file names, bump
7976 `p' to the first file-name constituent character of `word', before
7977 invoking the completer.
7978
f31e928c
MK
79792001-02-17 Mark Kettenis <kettenis@gnu.org>
7980
7981 * i387-nat.c: Include "i387-nat.h". Use regnum instead of regno
7982 consistently for parameter names. Fix comments accordingly.
7983 (i387_supply_register): New function.
7984 (i387_supply_fsave): Implement using i387_supply_register.
7985 * i387-nat.h: Use regnum instead of regno consistently for
7986 parameter names. Fix comments accordingly.
7987 (i387_supply_register): New prototype.
7988
d696208f
MS
79892001-02-16 Michael Snyder <msnyder@mvstp600e.cygnus.com>
7990
7991 * remote.c (build_remote_gdbarch_data): Use new TARGET_ADDR_BIT
7992 instead of TARGET_PTR_BIT (to support Harvard architectures).
7993
971429b4
AC
79942001-02-16 Andrew Cagney <ac131313@redhat.com>
7995
7996 From 2001-02-11 Paul Hilfinger <hilfingr@lisbon.int.act-europe.fr>
7997 * hpux-thread.c (hpux_thread_xfer_memory): Add mem_attrib
7998 argument to parameter list and to call in order to conform to
7999 to_xfer_memory field of struct target_ops.
8000
9ca0e47c
MC
80012001-02-12 Michael Chastain <chastain@redhat.com>
8002
da7dd56f 8003 * somsolib.c (som_solib_add_solib_objfile): Do not use
9ca0e47c
MC
8004 section relocation feature of syms_from_objfile. Do my own
8005 section relocation, offsetting each section of the som by
8006 either text_addr - text_link_addr or data_start.
8007
7d65bd2d
AC
80082001-02-16 Andrew Cagney <ac131313@redhat.com>
8009
8010 * TODO (5.1): Move ``Hardware watchpint problems'' out of 5.1.
8011
e33e9692
AC
80122001-02-16 Andrew Cagney <ac131313@redhat.com>
8013
8014 * MAINTAINERS (paper trail): Update.
8015
17dee195
MK
80162001-02-16 Mark Kettenis <kettenis@gnu.org>
8017
8018 * target.h (target_fetch_registers): Fix comment.
8019
0f6e1ba6
AC
80202001-02-15 Andrew Cagney <ac131313@redhat.com>
8021
8022 * f-exp.y: Include <ctype.h>.
8023 (parse_number): Ensure that ``i'' is always initialized.
8024
9a069618
JK
80252001-02-14 Jim Kingdon <jkingdon@engr.sgi.com>
8026
8027 * MAINTAINERS: Add myself to paper trail section.
8028
fc24370e
MS
80292001-02-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
8030
8031 * configure.in (AC_CHECK_HEADERS): Add sys/file.h.
8032 * configure, config.in: Regenerate.
8033 * corelow.c: Include <sys/file.h> if present.
8034
4b69c284
AC
80352001-02-14 Andrew Cagney <ac131313@redhat.com>
8036
8037 * inflow.c (terminal_ours_1): Initialize ``osigtou''. Only
8038 declare when have SIGTTOU.
8039
7904f322
EZ
80402001-02-14 Eli Zaretskii <eliz@is.elta.co.il>
8041
8042 * config/djgpp/fnchange.lst: Add entries for gdb/gdbtk/*/ChangeLog-*.
8043
9e798668
JK
80442001-02-12 Jim Kingdon <jkingdon@engr.sgi.com>
8045
8046 * MAINTAINERS: Update my email address.
8047
65d5a54a
EZ
80482001-02-11 Eli Zaretskii <eliz@is.elta.co.il>
8049
8050 * NEWS: Document that "info symbol" works with COFF debug info and
8051 its variants.
8052
8053 * minsyms.c (lookup_minimal_symbol_by_pc_section): Don't skip
8054 symbols whose SYMBOL_BFD_SECTION is NULL.
8055
0cff82d9 80562001-02-10 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
a8079a9b
PS
8057
8058 Get rid of AIX specific PC_LOAD_SEGMENT, replace with PC_SOLIB.
8059 * xcoffsolib.c (xcoff_solib_address): Renamed from
8060 pc_load_segment_name. Return NULL if address is not in a shared
8061 library. Cleanup shared library name construction, using xasprintf.
8062 Format shared library member names consistent with format in exec.c.
8063 (solib_info): Format shared library member names consistent with
8064 format in exec.c.
8065 * config/rs6000/nm-rs6000.h: Replace PC_LOAD_SEGMENT with PC_SOLIB,
8066 using xcoff_solib_address for PC_SOLIB definition.
8067 * stack.c (print_frame): Remove PC_LOAD_SEGMENT code, no longer
8068 needed.
8069
0cff82d9 80702001-02-10 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4b2e4867
PS
8071
8072 * mipsread.c (read_alphacoff_dynamic_symtab): Replace alloca calls
8073 with xmalloc calls and cleanups.
8074
0cff82d9 80752001-02-10 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
d737ece6
PS
8076
8077 * rs6000-nat.c (child_xfer_memory): Add missing parameter
8078 'struct mem_attrib *' required by 2001-01-23 change.
8079
c5bb1243
JK
80802001-02-08 Jim Kingdon <jkingdon@engr.sgi.com>
8081
8082 Updates to "make TAGS":
8083 * Makefile.in (ALLDEPFILES): Remove altos-xdep.c arm-convert.s
8084 arm-xdep.c convex-tdep.c convex-xdep.c pyr-tdep.c pyr-xdep.c
8085 tahoe-tdep.c.
8086 (TAGFILES_NO_SRCDIR): Add $(SUBDIR_CLI_SRCS).
8087
c799ae7b
EZ
80882001-02-08 Eli Zaretskii <eliz@is.elta.co.il>
8089
8090 * config/djgpp/fnchange.lst: Remove extraneous "too many dots".
8091
12685e01
AC
8092Wed Feb 7 22:39:26 2001 Andrew Cagney <cagney@redhat.com>
8093
8094 From Dean Luick <luick@cray.com>:
8095 * defs.h (continuation): Remove unused global variable.
8096
7fcca85b
AC
8097Wed Feb 7 22:28:31 2001 Andrew Cagney <cagney@redhat.com>
8098
8099 * configure.tgt: Remove references to convex, pyramid, altos and
8100 tahoe.
8101 * configure.host: Ditto.
8102 * MAINTAINERS: Ditto.
8103 * NEWS: Update.
8104
8105 * tahoe-tdep.c: Delete obsolete file.
8106 * pyr-xdep.c: Ditto.
8107 * pyr-tdep.c: Ditto.
8108 * convex-tdep.c: Ditto.
8109 * convex-xdep.c: Ditto.
8110 * config/tahoe/xm-tahoe.h: Ditto.
8111 * config/tahoe/tm-tahoe.h: Ditto.
8112 * config/tahoe/tahoe.mt: Ditto.
8113 * config/tahoe/tahoe.mh: Ditto.
8114 * config/pyr/xm-pyr.h: Ditto.
8115 * config/pyr/tm-pyr.h: Ditto.
8116 * config/pyr/pyramid.mt: Ditto.
8117 * config/pyr/pyramid.mh: Ditto.
8118 * config/m68k/xm-altos.h: Ditto.
8119 * config/m68k/tm-altos.h: Ditto.
8120 * config/m68k/altos.mt: Ditto.
8121 * config/m68k/altos.mh: Ditto.
8122 * config/convex/xm-convex.h: Ditto.
8123 * config/convex/tm-convex.h: Ditto.
8124 * config/convex/convex.mt: Ditto.
8125 * config/convex/convex.mh: Ditto.
8126 * config/convex/Convex.notes: Ditto.
8127 * config/arm/xm-arm.h: Ditto.
8128 * config/arm/nm-arm.h: Ditto.
8129 * config/arm/arm.mt: Ditto.
8130 * config/arm/arm.mh: Ditto.
8131 * arm-convert.s: Ditto.
8132 * arm-xdep.c: Ditto.
8133 * altos-xdep.c: Ditto.
8134
8e65ff28
AC
8135Wed Feb 7 19:41:21 2001 Andrew Cagney <cagney@redhat.com>
8136
8137 * defs.h (internal_error, internal_verror): Add __FILE__ and
8138 __LINE__ parameter.
8139 * utils.c (internal_error, internal_verror): Update.
8140
8141 * v850-tdep.c: Update calls to internal_error.
8142 * utils.c: Ditto.
8143 * ui-out.c: Ditto.
8144 * ui-file.c: Ditto.
8145 * target.h: Ditto.
8146 * symtab.h: Ditto.
8147 * symm-nat.c: Ditto.
8148 * sparc-tdep.c: Ditto.
8149 * source.c: Ditto.
8150 * serial.c: Ditto.
8151 * rs6000-tdep.c: Ditto.
8152 * rs6000-nat.c: Ditto.
8153 * remote.c: Ditto.
8154 * remote-vx.c: Ditto.
8155 * remote-sim.c: Ditto.
8156 * remote-mips.c: Ditto.
8157 * regcache.c: Ditto.
8158 * objfiles.h: Ditto.
8159 * objfiles.c: Ditto.
8160 * mn10300-tdep.c: Ditto.
8161 * mips-tdep.c: Ditto.
8162 * maint.c: Ditto.
8163 * m68k-tdep.c: Ditto.
8164 * m3-nat.c: Ditto.
8165 * language.c: Ditto.
8166 * infptrace.c: Ditto.
8167 * inferior.h: Ditto.
8168 * infcmd.c: Ditto.
8169 * ia64-tdep.c: Ditto.
8170 * i386-tdep.c: Ditto.
8171 * i386-linux-nat.c: Ditto.
8172 * hppah-nat.c: Ditto.
8173 * go32-nat.c: Ditto.
8174 * findvar.c: Ditto.
8175 * f-lang.c: Ditto.
8176 * elfread.c: Ditto.
8177 * event-loop.c: Ditto.
8178 * dwarf2read.c: Ditto.
8179 * dsrec.c: Ditto.
8180 * d30v-tdep.c: Ditto.
8181 * d10v-tdep.c: Ditto.
8182 * cli/cli-setshow.c: Ditto.
8183 * cli/cli-script.c: Ditto.
8184 * ch-exp.c: Ditto.
8185 * breakpoint.c: Ditto.
8186 * ax-gdb.c: Ditto.
8187 * arch-utils.c: Ditto.
8188 * a29k-tdep.c: Ditto.
8189 * gdb_assert.h: Ditto.
8190 * gdbarch.sh: Ditto.
8191 * gdbarch.h, gdbarch.c: Re-generate.
8192
72290732
AC
81932001-02-07 Andrew Cagney <ac131313@redhat.com>
8194
8195 From Mark Kettenis <kettenis@gnu.org>:
8196 * event-top.h [!STOP_SIGNAL]: #include <signal.h>.
8197
a6da1910
AC
81982001-02-07 Andrew Cagney <ac131313@redhat.com>
8199
8200 * remote-sim.c (dump_mem): Cleanup printf format argument.
8201 * MAINTAINERS: Update, mn10300-elf now builds.
8202
153f9905
MK
82032001-02-07 Mark Kettenis <kettenis@gnu.org>
8204
8205 * event-top.c: Remove duplicate #include <signal.h>.
8206
f042532c
AC
82072001-02-06 Andrew Cagney <ac131313@redhat.com>
8208
8209 * sol-thread.c (restore_inferior_pid): Save the PID in a freshly
8210 allocated buffer.
8211 (save_inferior_pid): Restore the PID from that tempoary
8212 buffer. Delete the buffer.
8213 * utils.c (make_cleanup_close, do_close_cleanup): Ditto for FD.
8214
58cfabe6
AC
82152001-02-06 Andrew Cagney <ac131313@redhat.com>
8216
8217 * MAINTAINERS: Add ``The Obvious Fix Rule''.
8218
ea8a41b8
AC
82192001-02-06 Andrew Cagney <ac131313@redhat.com>
8220
8221 * MAINTAINERS: Add Michael Snyder to Solaris/SPARC list.
8222
95160752
AC
82232001-02-06 Andrew Cagney <ac131313@cygnus.com>
8224
8225 * gdbarch.sh: Include "gdb_assert.h".
8226 (struct gdbarch): Change ``nr_data'' to unsigned.
8227 (alloc_gdbarch_data, free_gdbarch_data): New functions.
8228 (gdbarch_free): Free the data-pointer vector. Use xfree to delete
8229 architecture vector.
8230 (struct gdbarch_data, struct gdbarch_data_registration): Move init
8231 method to gdbarch_data. Add free method, make index unsigned.
8232 (struct gdbarch_data_registry): Make nr unsigned.
8233 (register_gdbarch_data): Add free parameter. Store in
8234 gdbarch_data.
8235 (init_gdbarch_data): Use set_gdbarch_data.
8236 (set_gdbarch_data): New function.
8237
8238 * gdbarch.h, gdbarch.c: Re-generate.
8239
64122a8b
MS
82402001-02-06 Michael Sokolov <msokolov@ivan.Harhan.ORG>
8241
8242 * ser-unix.c (hardware_print_tty_state) [HAVE_SGTTY]: Call
8243 fprintf_filtered with correct arguments.
8244
e6cbd02a
MS
82452001-02-06 Michael Snyder <msnyder@makita.cygnus.com>
8246 Submitted by Paul Hilfinger (hilfingr@gnat.com)
8247 and Andrei Petrov (and@genesyslab.com).
8248 * findvar.c: Buffers of size MAX_REGISTER_RAW_SIZE or REGISTER_BYTES
8249 must be allocated dynamically, since these are no longer constants.
8250 * infcmd.c: Ditto.
8251 * regcache.c: Ditto.
8252 * remote.c: Ditto.
8253 * sol-thread.c: Ditto.
8254 * valops.c: Ditto.
8255 * config/sparc/sun4sol2.mh (MH_CFLAGS): Add -I/usr/include/v9, as a
8256 work-around for a missing Sun header file in solaris for sparc64.
8257
713f0374
PB
82582001-02-04 Philip Blundell <philb@gnu.org>
8259
8260 * config/arm/linux.mh (NATDEPFILES): Add proc-service.o,
8261 thread-db.o, lin-lwp.o; remove lin-thread.o, linux-thread.o.
8262 * config/arm/nm-linux.h (PREPARE_TO_PROCEED, ATTACH_LWP,
8263 GET_THREAD_SIGNALS): Define.
8264 * arm-linux-nat.c (fill_gregset): Correct type of argument.
8265 (supply_gregset): Likewise.
8266 (fill_fpregset): Likewise.
8267 (supply_fpregset): Likewise.
8268
4603e466
DT
8269Tue Feb 6 11:58:57 2001 David Taylor <taylor@redhat.com>
8270
8271 * valops.c (value_cast): If casting a scalar to a pointer, do not
8272 issue a message about truncation unless it exceeds the length of
8273 an address, not the length of a pointer. This is because what the
8274 user gives us is an address, not a pointer, and we will ultimately
8275 convert it (via ADDRESS_TO_POINTER) to a pointer, not truncate it
8276 to a pointer. This allows things like "print *(int *)0x01000234"
8277 to work without generating a misleading message on a target having
8278 two byte pointers and four byte addresses.
8279
554cb486
CF
82802001-02-05 Christopher Faylor <cgf@cygnus.com>
8281
8282 * win32-nat.c: Change PTR to void * throughout.
8283
042be3a9
C
82842001-02-05 J.T. Conklin <jtc@redback.com>
8285
8286 * signals.h: Removed.
8287 * event-top.c (#include <signal.h>): Changed from signals.h.
8288 * inflow.c: Likewise.
8289 * mac-xdep.c: Likewise.
8290 * ser-pipe.c: Likewise.
8291 * ser-tcp.c: Likewise.
8292 * standalone.c: Likewise.
8293 * top.c: Likewise.
8294 * utils.c: Likewise.
8295 * Makefile.in: Removed signals.h from dependencies.
8296
a4acd088
CF
82972001-02-05 Christopher Faylor <cgf@cygnus.com>
8298
8299 Change suggested by Dean Luick <luick@cray.com>
8300 * inferior.h (step_over_calls_kind): Remove trailing comma from
8301 last enum element.
8302 (step_over_calls): Declare as extern rather than global.
8303
3116c80a
EZ
83042001-02-05 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
8305
8306 * sh-tdep.c: Update copyright.
8307 (sh_extract_return_value): Rewrite.
8308 (sh3e_sh4_extract_return_value): New function.
8309 (sh_gdbarch_init): Initialize gdbarch_extract-return_value to new
8310 version of the function for sh3e and sh4 CPUs.
8311
240be855
MC
83122001-02-05 Michael Chastain <chastain@redhat.com>
8313
8314 * hppah-nat.c (child_xfer_memory): Add parameter 'struct mem_attrib *'
8315 to conform with interface change.
8316
a17b5c4e
EZ
83172001-02-04 Eli Zaretskii <eliz@is.elta.co.il>
8318
32fe0950
EZ
8319 * config/djgpp/fnchange.lst: Tweak to make consistent with the
8320 new files.
8321
619cbaf7
EZ
8322 * config/djgpp/djconfig.sh: Use explicit absolute file name when
8323 invoking `find'.
8324
cd42d3a8
EZ
8325 * ser-go32.c (dos_write) [UART_FIFO_WORKS]: Use outportsb only if
8326 UART_FIFO_WORKS is defined. Otherwise use outportb.
8327 From Francisco Pastor <fpastor.etra-id@etra.es>
8328
a17b5c4e
EZ
8329 * go32-nat.c (go32_xfer_memory): Make the argument list consistent
8330 with target.h's `to_xfer_memory' member.
8331
86ddecc5
C
83322001-02-02 J.T. Conklin <jtc@redback.com>
8333
8334 * ppc-bdm.c (#include <signal.h>): Removed.
8335 * remote-array.c: Likewise.
8336 * remote-bug.c: Likewise.
8337 * remote-e7000.c: Likewise.
8338 * remote-mips.c: Likewise.
8339 * remote-os9k.c: Likewise.
8340 * remote-st.c: Likewise.
8341 * remote-udi.c: Likewise.
8342 * remote-vx29k.c: Likewise.
8343 * remote-vx68.c: Likewise.
8344 * remote-vx960.c: Likewise.
8345 * remote-vxmips.c: Likewise.
8346 * remote-vxsparc.c: Likewise.
8347
338d7c5c
JM
83482001-02-02 John Moore <jmoore@redhat.com>
8349
8350 * remote-utils.h (sr_set_device): Changed free() to xfree() where
8351 appropriate. Also changed Copyright to include 2001.
8352 * symtab.h (obstack_chunk_free, SYMBOL_INIT_DEMANGLED_NAME): Likewise.
8353 * value.h (value_free): Likewise.
8354 * gdbarch.sh (gdbarch_free): Likewise.
8355 * gdbarch.c, gdbarch.h: Regenerated.
8356
2b5436af
JM
83572001-02-02 John Moore <jmoore@redhat.com>
8358
8359 * cli/cli-cmds.c (apropos_command): Changed occurance of free() to
338d7c5c 8360 xfree(). Also changed Copyright to include 2001.
2b5436af 8361
82467003
C
83622001-02-02 J.T. Conklin <jtc@redback.com>
8363
8364 * monitor.c (#include "gdb_wait.h"): Removed.
8365 * ocd.c: Likewise.
8366 * ppc-bdm.c: Likewise.
8367 * remote-adapt.c: Likewise.
8368 * remote-array.c: Likewise.
8369 * remote-bug.c: Likewise.
8370 * remote-e7000.c: Likewise.
8371 * remote-eb.c: Likewise.
8372 * remote-es.c: Likewise.
8373 * remote-mips.c: Likewise.
8374 * remote-mm.c: Likewise.
8375 * remote-nindy.c: Likewise.
8376 * remote-os9k.c: Likewise.
8377 * remote-rdi.c: Likewise.
8378 * remote-rdp.c: Likewise.
8379 * remote-sds.c: Likewise.
8380 * remote-sim.c: Likewise.
8381 * remote-st.c: Likewise.
8382 * remote-udi.c: Likewise.
8383 * remote-vx.c: Likewise.
8384 * remote-vx29k.c: Likewise.
8385 * remote-vx68.c: Likewise.
8386 * remote-vx960.c: Likewise.
8387 * remote-vxmips.c: Likewise.
8388 * remote-vxsparc.c: Likewise.
8389 * remote.c: Likewise.
8390 * ser-pipe.c: Likewise.
8391 * ser-unix.c: Likewise.
8392 * Makefile.in: Updated dependencies.
8393
27b82ed2
DS
83942001-01-31 David Smith <dsmith@redhat.com>
8395
8396 * event-loop.c: Change inclusion of string.h to gdb_string.h and
8397 updated the copyright notice.
8398 * ser-pipe.c: Ditto.
8399 * mi/mi-cmds.c: Ditto.
8400 * mi/mi-console.c: Ditto.
8401 * mi/mi-getopt.c: Ditto.
8402 * mi/mi-parse.c: Ditto.
8403
ab9cc815
DS
84042001-01-31 David Smith <dsmith@redhat.com>
8405
8406 * MAINTAINERS: Add David Smith to Write After Approval list.
8407
d1f4cff8
AC
8408Tue Jan 30 15:43:08 2001 Andrew Cagney <cagney@cygnus.com>
8409
8410 * cli/cli-utils.c (putchar_filtered): Move function from here.
8411 * utils.c (putchar_filtered): To here.
8412 * cli/cli-utils.h (putchar_filtered): Move declaration from here.
8413 * defs.h (putchar_filtered): To here.
8414
74c1b268
AC
8415Tue Jan 30 17:27:11 2001 Andrew Cagney <cagney@redhat.com>
8416
8417 * configure.in (AC_CHECK_FUNCS): Replace vfork test with
8418 AC_FUNC_VFORK macro.
8419 * config.in, configure: Re-generate.
8420
8421 * gdb_vfork.h: New file.
8422 * ser-pipe.c (pipe_open): Update. Include "gdb_vfork.h".
8423 * fork-child.c (fork_inferior): Ditto.
8424
4fcf66da
AC
8425Tue Jan 30 17:09:07 2001 Andrew Cagney <cagney@redhat.com>
8426
8427 * defs.h (strsave): Delete declaration.
8428 * utils.c (strsave): Delete definition.
8429 * TODO (strsave): Update
8430
8431 * mac-xdep.c (tilde_expand): Replace strsave with xstrdup.
8432 * sparcl-tdep.c (sparclite_open): Ditto.
8433 * mips-tdep.c (mips_set_processor_type_command): Ditto.
8434 (_initialize_mips_tdep): Ditto.
8435 * solib.c (solib_open): Ditto.
8436 * symfile.c (add_filename_language): Ditto.
8437 (set_ext_lang_command): Ditto.
8438 * source.c (init_source_path): Ditto.
8439 (mod_path): Ditto.
8440 * sh3-rom.c (sh3_open): Ditto.
8441 (sh3e_open): Ditto.
8442 * serial.c (serial_open): Ditto.
8443 * remote-mips.c (common_open): Ditto.
8444 * monitor.c (monitor_open): Ditto.
8445 * m32r-rom.c (m32r_upload_command): Ditto.
8446 * infcmd.c (path_command): Ditto.
8447 * f-exp.y (parse_number): Ditto.
8448 * breakpoint.c (create_longjmp_breakpoint): Ditto.
8449 (create_thread_event_breakpoint): Ditto.
8450 * arc-tdep.c (arc_set_cpu_type_command): Ditto.
8451 (_initialize_arc_tdep): Ditto.
8452
e191e0ab
AC
8453Tue Jan 30 15:14:26 2001 Andrew Cagney <cagney@skil>
8454
8455 * cli/cli-script.c (define_command): Check for a bad hook value in
8456 switch statement.
8457
10214f55
C
84582001-01-30 J.T. Conklin <jtc@redback.com>
8459
8460 * configure/sh/embed.mt: New file.
8461 * configure/sh/linux.mt: New file.
8462 * configure/sh/sh.mt: Removed.
8463 * configure.tgt (sh-*-hms,sh-*-coff*,sh-*-elf*,sh-*-linux): New targets.
8464 (sh-*-*): Removed.
8465
c9049fc9
MC
84662001-01-29 Michael Chastain <chastain@redhat.com>
8467
a4f30b31 8468 * symtab.c (lookup_block_symbol): Use 'namespace' parameter in
c9049fc9
MC
8469 symbol comparisons in binary search.
8470
0cff82d9 84712001-01-27 Christopher Faylor <cgf@cygnus.com>
aea02b6b
CF
8472
8473 * win32-nat.c (child_xfer_memory): Add missing argument required by
8474 2001-01-23 change.
8475
e6e0bfab
MK
84762001-01-27 Mark Kettenis <kettenis@gnu.org>
8477
8478 * ui-out.c (do_list_end): New function.
8479 (make_cleanup_ui_out_list_end): New function.
8480 * ui-out.h: Provide prototype for make_cleanup_ui_out_list_end.
8481 * stack.c (print_frame) [UI_OUT]: Call
8482 make_cleanup_ui_out_list_end to make sure we mark the end of the
8483 list if we do a non-local exit. At the end of the function,
8484 instead of calling ui_out_list_end directly, let do_cleanups
8485 handle it.
8486
1adeb98a
FN
84872001-01-26 Fernando Nasser <fnasser@redhat.com>
8488
8489 Fix double parsing of filenames passed as command line arguments
8490 to GDB (causes weird handling of escape characters).
8491 Also, remove dependencies on the CLI from libgdb.
8492 * call-cmds.h: Remove declaration of exec_file_command().
8493 * gdbcore.h: Remove declaration of exec_file_command().
8494 Add declarations for exec_open() and exec_file_clear().
8495 * symfile.h: Add declarations for symbol_file_add_main() and
8496 symbol_file_clear().
8497 * exec.c (exec_open): New function. Implements to_open for exec
8498 targets.
8499 (exec_file_clear): New function. Makes GDB forget about a previously
8500 specified executable file.
8501 (exec_file_attach): Move parsing of arguments from here ...
8502 (exec_file_command): ... to here.
8503 (init_exec_ops): Use exec_open(), not exec_file_command() to
8504 implement to_open for exec targets.
8505 * symfile.c (symbol_file_add_main): New function. Call symbol_file_add()
8506 with default values. Used when the file name has already been parsed.
8507 (symbol_file_clear): New function. Makes GDB forget about previously
8508 read symbols.
8509 (symbol_file_command): Call the above function instead of inline code.
8510 * main.c: Include "symfile.h" and "gdbcore.h" instead of the deprecated
8511 "call-cmds.h".
8512 (captured_main): Call exec_file_attach() and symbol_file_add_main()
8513 instead of exec_file_command() and symbol_file_command().
8514 (captured_main): Add comment.
8515 * corefile.c: Include "symfile.h".
8516 (core_file_command): Call symbol_file_add_main() instead of
8517 symbol_file_command().
8518 (reopen_exec_file): Call exec_open() instead of exec_file_command().
8519 * infcmd.c: Include "symfile.h".
8520 (attach_command): Call symbol_file_add_main() instead of
8521 symbol_file_command().
8522 * infrun.c: Remove comment about the inclusion of "symfile.h",
8523 not any longer appropriate.
8524 (follow_exec): Call symbol_file_add_main() instead of
8525 symbol_file_command().
8526 * remote-es.c: Include "symfile.h".
8527 (es1800_load): Call symbol_file_add_main() instead of
8528 symbol_file_command().
8529 * remote-vx.c: Remove comment about the inclusion of "symfile.h",
8530 not any longer appropriate.
8531 (vx-wait): Call symbol_file_add_main() instead of
8532 symbol_file_command().
8533 * solib-svr4.c (open_symbol_file_object): Call symbol_file_add_main()
8534 instead of symbol_file_command().
8535 * v850ice.c (ice_file): Call exec_open(), exec_file_attach() and
8536 symbol_file_add_main() instead of exec_file_command() and
8537 symbol_file_command().
8538 * Makefile.in: Update dependencies.
8539
5b616ba1
JH
85402001-01-26 Jeff Holcomb <jeffh@redhat.com>
8541
8542 * remote-udi.c (udi_open): Change strdup to xstrdup.
8543 * thread.c (thread_apply_all_command): Change strdup to xstrdup.
8544 Update copyright message.
8545 * varobj.c (delete_variable_1): Likewise.
8546
8547 * gdb_string.h: Remove declaration of strdup. Update copyright
8548 message.
8549 * config/xm-mpw.h: Likewise.
8550 * config/i386/xm-i386mach.h: Likewise.
8551 * config/m68k/xm-apollo68b.h: Likewise.
8552 * config/m68k/xm-hp300bsd.h: Likewise.
8553 * config/rs6000/xm-rs6000.h: Likewise.
8554 * config/vax/xm-vaxult.h: Remove declaration of strdup.
8555 * config/vax/xm-vaxult2.h: Likewise.
8556
b91d87cf
JH
85572001-01-26 Jeff Holcomb <jeffh@redhat.com>
8558
8559 * MAINTAINERS: Add Jeff Holcomb to Write After Approval list.
8560
873406a6
C
85612001-01-25 J.T. Conklin <jtc@redback.com>
8562
8563 * target.c (target_xfer_memory_partial): Return -1 on failure due
8564 to invalid access mode attribute.
8565
0613c401
CF
85662001-01-25 Christopher Faylor <cgf@cygnus.com>
8567
8568 * win32-nat.c (_initialize_core_win32): Prototype correctly.
8569
efd59e3f
MK
85702001-01-25 Mark Kettenis <kettenis@gnu.org>
8571
8572 * config/alpha/tm-fbsd.h: Update copyright.
8573 (USE_STRUCT_CONVENTION): Define in terms of
8574 alphabsd_use_struct_convention.
8575 * config/alpha/fbsd.mt (TDEPFILES): Add alphafbsd-tdep.c.
8576 * alphafbsd-tdep.c: New file.
8577
388e1ff2
FN
85782001-01-24 Fernando Nasser <fnasser@redhat.com>
8579
8580 * top.c (print_gdb_version): Update Copyright year.
8581
f4d650ec
C
85822001-01-24 J.T. Conklin <jtc@redback.com>
8583
8584 * dcache.c (dcache_write_line): Fix typo.
8585
8586 * memattr.c (delete_mem_region): Replace free() with xfree().
8587 (mem_number): Add explicit type.
8588
8589 * sol-thread.c (sol_thread_xfer_memory): Add attrib argument.
8590 (rw_common): Likewise.
8591
07091751
FN
85922001-01-24 Fernando Nasser <fnasser@redhat.com>
8593
8594 * infcmd.c (get_inferior_args, set_inferior_args): Accessor functions
8595 for the inferior program arguments.
8596 (run_command, run_no_args_command, init_infcmd)): Use accessor
8597 functions to set the inferior program arguments.
8598 * inferior.h: Add definitions to the accessor functions above.
8599
090c42a4
JB
86002001-01-23 Jim Blandy <jimb@redhat.com>
8601
8602 * dwarf2read.c (read_tag_const_type, read_tag_volatile_type):
8603 Implement these correctly, using make_cv_type.
8604
f29d9b6d 86052001-01-23 J.T. Conklin <jtc@redback.com>
29e57380
C
8606
8607 * exec.c (xfer_memory): Add attrib argument.
8608 * infptrace.c (child_xfer_memory): Likewise.
e5da8f38 8609 * lin-lwp.c (lin_lwp_xfer_memory): Likewise.
29e57380
C
8610 * monitor.c (monitor_xfer_memory): Likewise.
8611 * remote-adapt.c (adapt_xfer_inferior_memory): Likewise.
8612 * remote-array.c (array_xfer_memory): Likewise.
8613 * remote-bug.c (bug_xfer_memory): Likewise.
8614 * remote-e7000.c (e7000_xfer_inferior_memory): Likewise.
8615 * remote-eb.c (eb_xfer_inferior_memory): Likewise.
8616 * remote-es.c (es1800_xfer_inferior_memory): Likewise.
8617 * remote-mips.c (mips_xfer_memory): Likewise.
8618 * remote-mm.c (mm_xfer_inferior_memory): Likewise.
8619 * remote-nindy.c (nindy_xfer_inferior_memory): Likewise.
8620 * remote-os9k.c (rombug_xfer_inferior_memory): Likewise.
8621 * remote-rdi.c (arm_rdi_xfer_memory): Likewise.
8622 * remote-rdp.c (remote_rdp_xfer_inferior_memory): Likewise.
8623 * remote-sds.c (sds_xfer_memory): Likewise.
8624 * remote-sim.c (gdbsim_xfer_inferior_memory): Likewise.
8625 * remote-st.c (st2000_xfer_inferior_memory): Likewise.
8626 * remote-udi.c (udi_xfer_inferior_memory): Likewise.
8627 * remote-vx.c (vx_xfer_memory): Likewise.
8628 * remote.c (remote_xfer_memory): Likewise.
8629 * target.c (debug_to_xfer_memory, do_xfer_memory): Likewise.
8630 * target.h (child_xfer_memory, do_xfer_memory, xfer_memory): Likewise.
e5da8f38 8631 * thread-db.c (thread_db_xfer_memory): Likewise.
29e57380
C
8632
8633 * target.h (#include "memattr.h"): Added.
8634 (target_ops.to_xfer_memory): Add attrib argument.
8635
8636 * wince.c (_initialize_inftarg): Removed call to set_dcache_state.
8637 * dcache.h (set_dcache_state): Removed declaration.
8638 * dcache.c (set_dcache_state): Removed definition
8639
8640 * dcache.c: Update module comment, as dcache is now enabled and
8641 disabled with memory region attributes instead of by the global
8642 variable "remotecache". Add comment describing the interaction
8643 between dcache and memory region attributes.
8644 (dcache_xfer_memory): Add comment describing benefits of moving
8645 cache writeback to a higher level.
8646 (dcache_struct): Removed cache_has_stuff field. This was used to
8647 record whether the cache had been accessed in order to invalidate
8648 it when it was disabled. However, this is not needed because the
8649 cache is write through and the code that enables, disables, and
8650 deletes memory regions invalidate the cache. Add comment which
8651 suggests that we could be more selective and only invalidate those
8652 cache lines containing data from those memory regions.
8653 (dcache_invalidate): Updated.
8654 (dcache_xfer_memory): Updated.
f29d9b6d 8655
29e57380
C
8656 (dcache_alloc): Don't abort() if dcache_enabled_p is clear.
8657 (dcache_xfer_memory): Removed code that called do_xfer_memory() to
8658 perform a uncached transfer if dcache_enabled_p was clear. This
8659 function is now only called if caching is enabled for the memory
8660 region.
8661 (dcache_info): Always print cache info.
8662
8663 * target.c (do_xfer_memory): Add attrib argument.
8664 (target_xfer_memory, target_xfer_memory_partial): Break transfer
8665 into chunks defined by memory regions, pass region attributes to
8666 do_xfer_memory().
8667 * dcache.c (dcache_read_line, dcache_write_line): Likewise.
8668
8669 * Makefile.in (SFILES): Add memattr.c.
8670 (COMMON_OBS): Add memattr.o.
8671 (dcache.o): Add target.h to dependencies.
8672 * memattr.c: New file.
8673 * memattr.h: Likewise.
8674
f29d9b6d
C
8675 * config/m32r/m32r.mt (GDBSERVER_LIBS): Added ../../intl/libintl.a.
8676 * config/mips/vr5000.mt (GDBSERVER_LIBS): Likewise.
8677 * config/tic80/tic80.mt (GDBSERVER_LIBS): Likewise.
8678 * gdbserver/low-sim.c (#include "defs.h"): Removed.
8679 (mygeneric_load): Rename from generic_load.
8680
8681 * gdbserver/low-hppabsd.c (#include "server.h"): Added.
8682 (#include "defs.h"): Removed.
8683 (inferior_pid, perror_with_name): Remove declarations.
8684 * gdbserver/low-linux.c: Likewise.
8685 * gdbserver/low-nbsd.c: Likewise.
8686 * gdbserver/low-sparc.c: Likewise.
8687 * gdbserver/low-sun3.c: Likewise.
8688
8689 * i386-stub.c: Re-indent.
8690 * m68k-stub.c: Re-indent.
8691
58d5518e
ND
86922001-01-22 Nicholas Duffek <nsd@redhat.com>
8693
8694 * gdbarch.sh (PARM_BOUNDARY): Define.
8695 * gdbarch.c: Regenerate.
8696 * gdbarch.h: Regenerate.
8697
f6427ade
C
86982001-01-22 J.T. Conklin <jtc@redback.com>
8699
8700 * ns32k-tdep.c: #include "frame.h"
8701 * config/ns32k/tm-umax.h (FRAME_FIND_SAVED_REGS): Restore. It
8702 appears to have been inadvertantly removed sometime in May 1999.
8703
8704 * Revert 2000-11-09 changes where shared library objects were
8705 moved from NATDEPFILES to TDEPFILES on NetBSD targets. While
8706 we'd like to be able to debug dynamically linked executables,
8707 this makes it impossible to build a cross debugger on a many
8708 hosts.
8709
8710 * config/i386/nbsd.mt: Remove solib.o, solib-svr4.o from TDEPFILES.
8711 * config/i386/nbsdelf.mt: Likewise.
8712 * config/m68k/nbsd.mt: Likewise.
8713 * config/ns32k/nbsd.mt: Likewise.
8714 * config/powerpc/nbsd.mt: Likewise.
8715 * config/sparc/nbsd.mt: Likewise.
8716 * config/sparc/nbsdelf.mt: Likewise.
8717 * config/i386/nbsd.mh: Add solib.o, solib-svr4.o to NATDEPFILES.
8718 * config/i386/nbsdelf.mh: Likewise.
8719 * config/m68k/nbsd.mh: Likewise.
8720 * config/ns32k/nbsd.mh: Likewise.
8721 * config/powerpc/nbsd.mh: Likewise.
8722 * config/sparc/nbsd.mh: Likewise.
8723
8052a17a
JM
87242001-01-19 Jason Merrill <jason@redhat.com>
8725
8726 * dbxread.c (read_ofile_symtab): Stay with AUTO_DEMANGLING for G++.
8727 (process_one_symbol): Likewise.
8728 * dwarfread.c (handle_producer): Likewise.
8729
21a6f6bb
AC
8730Thu Jan 18 12:08:57 2001 Andrew Cagney <cagney@b1.cygnus.com>
8731
8732 * configure.in (build_warnings): Disable -Wuninitialized until GDB
8733 compiles with -Wuninitialized,-Werror.
8734 * configure: Regenerate.
8735
8736 * MAINTAINERS: Add list of buildable targets.
8737
494b7ec9
AC
8738Thu Jan 18 12:48:04 2001 Andrew Cagney <cagney@b1.cygnus.com>
8739
8740 * defs.h (STRCMP): Delete macro.
8741
8742 * objfiles.c (objfile_relocate): Replace STRCMP with call to
8743 strcmp.
8744 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
8745 * symfile.c (compare_symbols): Ditto.
8746 * standalone.c (open): Ditto.
8747 * remote-es.c (verify_break): Ditto.
8748 * cli/cli-decode.c (add_cmd, add_show_from_set): Ditto.
8749
8750 * symfile.c (compare_psymbols): Delete comment refering to STRCMP.
8751
8038e1e2
AC
8752Thu Jan 18 12:25:06 2001 Andrew Cagney <cagney@b1.cygnus.com>
8753
8754 * varobj.c (FREEIF): Delete macro.
8755 (varobj_set_value, free_variable): Replace FREEIF with ``xfree''
8756 call.
8757
ea8d0b28
NC
87582001-01-18 Nick Clifton <nickc@redhat.com>
8759
8760 * arc-tdep.c (arc_cpu_type_table): Add new arc core numbers.
8761 (arc_print_insn): No bfd available, so pass NULL to
8762 arc_get_disassembler.
8763
5dbd9048
JB
87642001-01-09 James Ingham <jingham@inghji.apple.com>
8765
8766 * symtab.c (lookup_symbol_aux): Call lookup_symbol_aux to lookup
8767 a mangled symbol rather than recursing into lookup_symbol, since
8768 this will just re-unmangle the name & call lookup_symbol_aux -
8769 leading to an infinite recursion.
8770
28ae27b1
MK
87712001-01-18 Mark Kettenis <kettenis@gnu.org>
8772
8773 * infcmd.c (print_return_value): Restore another space lost by
8774 switch to UIOUT. ``$NN='' should be ``$NN =''.
8775
6ab3a9c9
AC
8776Fri Jan 19 02:31:40 2001 Andrew Cagney <cagney@b1.cygnus.com>
8777
8778 * target.h (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT)
8779 * breakpoint.c (TARGET_REGION_OK_FOR_HW_WATCHPOINT): Wrap macro
8780 definition in parenthesis.
8781
ad6525fc
AC
8782Fri Jan 19 02:13:40 2001 Andrew Cagney <cagney@b1.cygnus.com>
8783
8784 From 2000-10-27 Mark Salter <msalter@redhat.com>:
8785 * remote.c (remote_remove_hw_breakpoint): Add 'len' field to Z
8786 packet.
8787 (remote_insert_hw_breakpoint): Ditto.
8788
6259c7e2
C
87892001-01-17 J.T. Conklin <jtc@redback.com>
8790
8791 * config/m68k/tm-nbsd.h (USE_STRUCT_CONVENTION): Define.
9c95b27f 8792 (BPT_VECTOR, REMOTE_BPT_VECTOR): Change to 0xf.
6259c7e2
C
8793 * config/m68k/nbsd.mt (TDEPFILES): Add m68knbsd-tdep.o.
8794 * m68knbsd-tdep.c: New file.
8795
8796 * i386nbsd-tdep.c: Remove #if 0'd out #includes.
8797
8798 * m68knbsd-nat.c: #include gdbcore.h.
8799
abdcb2a5
AC
8800Wed Jan 17 09:41:58 2001 Andrew Cagney <cagney@b1.cygnus.com>
8801
8802 * MAINTAINERS: Add J.T. Conklin to Blanket Write Privs.
8803
e7a8479f
MS
88042001-01-16 Michael Snyder <msnyder@cleaver.cygnus.com>
8805
aaeb7efa
MS
8806 * procfs.c (procfs_stopped_by_watchpoint): Don't die if process
8807 goes away -- just return false (ie. not stopped by watchpoint).
e7a8479f
MS
8808 * source.c (openp): Fix typo in comment.
8809
7036d6ce
ND
88102001-01-12 Nicholas Duffek <nsd@redhat.com>
8811
8812 * blockframe.c (generic_get_saved_register): Spelling fix.
8813 * frame.h (FRAME_FP): Spelling fix.
8814
9549d9c1
AC
8815Fri Jan 12 18:29:46 2001 Andrew Cagney <cagney@b1.cygnus.com>
8816
8817 * infcmd.c (print_return_value): Restore space lost by switch to
8818 UIOUT. ``$NN='' should be ``$NN =''.
8819
7302a204
ND
88202001-01-08 Nicholas Duffek <nsd@redhat.com>
8821
8822 * regcache.c (set_register_cached, register_buffer,
8823 real_register, pseudo_register fetch_register, store_register):
8824 New functions.
8825 (register_changed, read_relative_register_raw_bytes_for_frame,
8826 registers_changed, registers_fetched, read_register_bytes,
8827 read_register_gen, write_register_gen, read_register,
8828 read_signed_register, write_register, supply_register): Replace
8829 register_valid[] with register_cached() and
8830 set_register_cached().
8831 (read_register_bytes, read_register_gen, write_register_gen,
8832 read_register, read_signed_register, write_register,
8833 supply_register): Replace registers[] with register_buffer().
8834 (read_register_bytes, read_register_gen, read_register,
8835 read_signed_register): Call fetch_register().
8836 (write_register_gen, write_register): Call real_register() and
8837 store_register().
8838 (write_register_bytes): Call store_register().
8839 * value.h (set_register_cached, register_buffer): Prototype.
8840 * remote.c (remote_fetch_registers): Allocate regs[] with a
8841 run-time size. Replace register_valid[] with
8842 set_register_cached().
8843 (store_register_using_P, remote_store_registers): Replace
8844 registers[] with register_buffer().
8845
5ebd2499
ND
88462001-01-08 Nicholas Duffek <nsd@redhat.com>
8847
8848 * regcache.c: Change "write-back" comment to "write-through".
8849 Change "regno" to "regnum".
8850 (read_register, read_signed_register): Remove "raw" from return
8851 value description.
8852 (supply_register): Spelling fix.
8853 * value.h: Change "regno" to "regnum".
8854
1302fd5e
FN
88552001-01-08 Fernando Nasser <fnasser@redhat.com>
8856
8857 * Makefile.in (install-gdbtk): Add .itcl files to the list of files
8858 to be installed.
8859
9dcb560c
MS
88602001-01-04 Michael Snyder <msnyder@mvstp600e.cygnus.com>
8861
8862 * mips-tdep.c (mips_coerce_float_to_double): Fix typo in comment.
8863
0e2fb98e
ND
88642001-01-04 Nicholas Duffek <nsd@redhat.com>
8865
8866 * valops.c (VALUE_SUBSTRING_START): Delete.
8867
12cf3f1b
ND
88682001-01-04 Nicholas Duffek <nsd@redhat.com>
8869
8870 * Makefile.in (SUBDIR_CLI_OBS): Add cli/cli-utils.o.
8871 (SUBDIR_CLI_SRCS): Add cli/cli-utils.c.
8872 (cli_utils_h): New variable.
8873 (cli/cli-utils.o): New rule.
8874 * cli/cli-utils.c: New file.
8875 * cli/cli-utils.h: New file.
8876
cc533b9d
ND
88772001-01-04 Nicholas Duffek <nsd@redhat.com>
8878
8879 * config/i386/tm-i386.h (REGISTER_CONVERT_TO_VIRTUAL,
8880 REGISTER_CONVERT_TO_RAW): Delete trailing semicolon.
8881
ad2a4d09
C
88822001-01-03 J.T. Conklin <jtc@redback.com>
8883
8884 * alphabsd-nat.c, i386-linux-nat.c, i386bsd-nat.c: Fix typo in
8885 comment.
8886
8140e7ac
MS
88872001-01-02 Michael Snyder <msnyder@cleaver.cygnus.com>
8888
3116c80a
EZ
8889 * sh-tdep.c (sh_default_store_return_value): Allow for small return type.
8890 (sh3e_sh4_store_return_value): Call sh_default_store_return_value for
d19b71be 8891 non-float types.
779e876b 8892 * sparc-tdep.c (sparc_frame_chain): Fix typo in comment.
72e22353
MS
8893 Update copyright notice.
8894
15f33b66 8895For older changes see ChangeLog-2000
c906108c
SS
8896\f
8897Local Variables:
8898mode: change-log
8899left-margin: 8
8900fill-column: 74
8901version-control: never
8902End: