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