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