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