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