daily update
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
b6779aa2
AC
12002-04-26 Michal Ludvig <mludvig@suse.cz>
2
3 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
4 code without frame pointers.
5
7e57f5f4
AC
62002-04-26 Andrew Cagney <ac131313@redhat.com>
7
8 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
9 ON_STACK is needed.
10
2ceb85d0
BE
112002-04-26 Ben Elliston <bje@redhat.com>
12
13 * target.c (do_xfer_memory): Correct reference to the new option
14 "trust-readonly-sections".
15
f5f8a009
EZ
162002-04-26 Elena Zannoni <ezannoni@redhat.com>
17
18 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
19 * gdbtypes.c (recursive_dump_type): Output the vector flag.
20 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
21 vectors.
22 (read_array_type): Record the fact that this array type is really a
23 vector (i.e. are passed in by value).
24
5868c862
JT
252002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
26
27 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
28 * alpha-tdep.c (alpha_sigcontext_addr): New function.
29 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
30 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
31 * alpha-linux-tdep.c: Include frame.h.
32 (alpha_linux_sigcontext_addr): New function.
33 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
34 alpha_linux_sigcontext_addr.
35 * alpha-osf1-tdep.c: Include gdbcore.h.
36 (alpha_osf1_sigcontext_addr): New function.
37 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
38 alpha_osf1_sigcontext_addr.
39 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
40 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
41
bfb01f37
AC
422002-04-26 Andrew Cagney <ac131313@redhat.com>
43
44 * stack.c (selected_frame_level):
45 (select_frame): Do not set selected_frame_level.
46 * frame.h (selected_frame_level): Delete declaration.
47
15813d3f
AC
482002-04-26 Andrew Cagney <ac131313@redhat.com>
49
50 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
51 convert_from_func_ptr-addr when AIX / PowerOpen.
52
6096c27a
AC
532002-04-25 Andrew Cagney <ac131313@redhat.com>
54
55 * valops.c (hand_function_call): Call
56 generic_save_call_dummy_addr.
57 * frame.h (generic_save_call_dummy_addr): Declare.
58 * blockframe.c (struct dummy_frame): Add fields call_lo and
59 call_hi.
60 (generic_find_dummy_frame): Check for PC in range call_lo to
61 call_hi instead of entry_point_address.
62 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
63 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
64 (generic_save_call_dummy_addr): New function.
65
f510d44e
DM
662002-04-24 David S. Miller <davem@redhat.com>
67
68 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
69 sparc_skip_prologue.
70 (sparc_skip_prologue): Kill frameless_p arg, and use line number
71 information to find prologue when possible.
72 (sparc_prologue_frameless_p): Call examine_prologue directly.
73 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
74 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
75 second argument.
76 (SKIP_PROLOGUE): Likewise.
77
15d72a92
JT
782002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
79
80 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
81 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
82 indicate that the condition it was testing is always true.
83 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
84 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
85 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
86
accc6d1f
JT
872002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
88
89 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
90 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
91 tdep->jb_pc and tdep->jb_elt_size.
92 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
93 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
94 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
95 * alpha-nat.c (get_longjmp_target): Remove.
96 (JB_ELEMENT_SIZE): Ditto.
97 (JB_PC): Ditto.
98 * alpha-tdep.c (alpha_get_longjmp_target): New function.
99 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
100 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
101 to alpha_get_longjmp_target.
102 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
103 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
104 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
105
1bfdc549
AC
1062002-04-25 Andrew Cagney <ac131313@redhat.com>
107
108 * README: Update to GDB 5.2.
109
1bd316f0
AC
1102002-04-25 Andrew Cagney <ac131313@redhat.com>
111
112 * gdbarch.sh (LC_ALL): Set to `c'.
113
2e5ff58c
TR
1142002-04-25 Theodore A. Roth <troth@verinet.com>
115
116 * avr-tdep.c: Ran through gdb_indent.sh.
117
e33ce519
TR
1182002-04-25 Theodore A. Roth <troth@verinet.com>
119
120 * MAINTAINERS: Add myself as AVR maintainer.
121 * NEWS: Note new target avr.
122
8818c391
TR
1232002-04-25 Theodore A. Roth <troth@verinet.com>
124
125 * Makefile.in: Add support for AVR target.
126 * configure.tgt: Add support for AVR target.
127 * avr-tdep.c: New file
128 * config/avr/avr.mt: New file.
129
79509c2d
TR
1302002-04-25 Theodore A. Roth <troth@verinet.com>
131
132 * MAINTAINERS: Add myself to write-after-approval.
133
dac8068e
PM
1342002-04-24 Pierre Muller <ics.u-strasbg.fr>
135
136 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
137 with fprintf_unfiltered (gdb_stderr,....
138
25bf3106
PM
1392002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
140
141 Fix PR gdb/508.
142 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
143
24467a86
PM
1442002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
145
146 * p-exp.y: Also use new prev_lexptr variable
147 to improve error reporting. Based on Michael Snyder
148 2002-04-24 dated patch to c-exp.y.
149
95b80706
JT
1502002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
151
152 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
153 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
154 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
155 to 0.
156 * config/alpha/tm-alpha.h: Remove forward decls of struct type
157 and struct value.
158 (FUNCTION_START_OFFSET): Remove.
159 (BREAKPOINT): Ditto.
160
e90cc612
JT
1612002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
162
163 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
164 * NEWS: Ditto.
165
6c72f9f9
JT
1662002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
167
168 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
169 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
170 alpha_linux_pc_in_sigtramp.
171 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
172 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
173 alpha_osf1_pc_in_sigtramp.
174 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
175 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
176 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
177 alphafbsd_pc_in_sigtramp.
178 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
179 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
180 alphanbsd_pc_in_sigtramp.
181 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
182 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
183
5e4f3379
JT
1842002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
185
186 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
187
da8ca43d
JT
1882002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
189
190 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
191 alphanbsd-tdep.c.
192 (alphanbsd-nat.o): New dependency list.
193 (alphanbsd-tdep.o): Ditto.
194 * NEWS: Note new native NetBSD/alpha configuration.
195 * alphanbsd-nat.c: New file.
196 * alphanbsd-tdep.c: Ditto.
197 * configure.host (alpha*-*-netbsd*): New host.
198 * configure.tgt (alpha*-*-netbsd*): New target.
199 * config/alpha/nbsd.mh: New file.
200 * config/alpha/nbsd.mt: Ditto.
201 * config/alpha/nm-nbsd.h: Ditto.
202 * config/alpha/tm-nbsd.h: Ditto.
203
36a6271d
JT
2042002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
205
206 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
207 (alpha-osf1-tdep.o): New dependency list.
208 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
209 and skip_sigtramp_frame members.
210 * alpha-linux-tdep.c: Include gdbcore.h.
211 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
212 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
213 * alpha-osf1-tdep.c: New file.
214 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
215 alpha-osf1-dep.c.
216 (alpha_frame_past_sigtramp_frame): New function.
217 (alpha_dynamic_sigtramp_offset): Ditto.
218 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
219 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
220 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
221 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
222 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
223 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
224 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
225 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
226 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
227 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
228 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
229 to find_solib_trampoline_target.
230 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
231 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
232 (SKIP_TRAMPOLINE_CODE): Remove.
233 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
234 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
235 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
236 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
237 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
238 (PROC_SIGTRAMP_MAGIC): Ditto.
239 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
240 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
241 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
242 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
243 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
244
2f4bc57b
JT
2452002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
246
247 * NEWS: Note that Alpha targets are now multi-arch.
248
665132f9
MS
2492002-04-24 Michael Snyder <msnyder@redhat.com>
250
251 * parser-defs.h (prev_lexptr): New external variable.
252 * parse.c (parse_exp_1): Set prev_lexptr to null before
253 calling the language-specific parser.
254 * c-exp.y (yylex): Set prev_lexptr to start of current token.
255 (yyerror): Use prev_lexptr in error reporting.
256
32872fa7
DJ
2572002-04-24 Daniel Jacobowitz <drow@mvista.com>
258
259 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
260 * gregset.h: If FILL_FPXREGSET is defined, provide
261 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
262 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
263 is defined, call fill_fpxregset.
264
57e76fac
MS
2652002-04-24 Roland McGrath <roland@frob.com>
266
267 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
268 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
269 (supply_gregset, supply_fpregset): New functions.
270
271 * gnu-nat.c (gnu_find_memory_regions): New function.
272 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
273 (gnu_xfer_memory): Add a cast.
274
f43845b3
MS
2752002-04-24 Michael Snyder <msnyder@redhat.com>
276
277 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
278 loop. Add handling for "str lr, [sp, #-4]!" and for saves
279 of argument regs ("str r(0123), [r11, #-nn"]).
280 (arm_skip_prologue): Better handling for frameless functions.
281 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
282 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
283
a0abec03
AC
284Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
285
286 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
287 NUM_PSEUDO_REGS can be used.
288
d7bd68ca
AC
2892002-04-24 Andrew Cagney <ac131313@redhat.com>
290
291 * arch-utils.h: Update copyright.
292
293 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
294 * gdbarch.h, gdbarch.c: Re-generate.
295
296 * inferior.h (IN_SIGTRAMP): Delete definition.
297 * arch-utils.c (legacy_pc_in_sigtramp): New function.
298 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
299
300 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
301 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
302 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
303 (find_proc_framesize): Ditto.
304 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
305 (alpha_init_extra_frame_info): Ditto.
306 * infrun.c (handle_inferior_event): Ditto.
307 (handle_inferior_event): Ditto.
308 (check_sigtramp2): Ditto.
309 * blockframe.c (create_new_frame): Ditto.
310 (get_prev_frame): Ditto.
311 * ppc-linux-tdep.c: Update comments.
312 * i386-linux-tdep.c: Update comments.
313 * breakpoint.c (bpstat_what): Update comment.
314
d06f167a
ML
3152002-04-24 Michal Ludvig <mludvig@suse.cz>
316
317 * gdbserver/linux-low.c (regsets_fetch_inferior_registers),
318 (regsets_store_inferior_registers): Removed cast to int from
319 ptrace() calls.
320 * gdbserver/regcache.h: Added declaration of struct inferior_info.
321
4867e41e
DM
3222002-04-24 David S. Miller <davem@redhat.com>
323
21d83aa5
DM
324 * i960-tdep.c (register_in_window_p): New function.
325 (i960_find_saved_register): Use it instead of
326 REGISTER_IN_WINDOW_P.
327 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
328
4867e41e
DM
329 * symtab.h (find_stab_function_addr): Kill extern.
330 * minsyms.c (find_stab_function_addr): Remove from here...
331 * dbxread.c: ... to here, and mark it static.
332
69cdf6a2
DM
3332002-04-20 David S. Miller <davem@redhat.com>
334
335 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
336 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
337
5a595886
DM
3382002-04-21 David S. Miller <davem@redhat.com>
339
340 * remote-vxsparc.c (vx_read_register): Fix typo, we want
341 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
342 (vx_write_register): Likewise.
343
1da1a192
JB
3442002-04-23 J. Brobecker <brobecker@gnat.com>
345
346 * source.c (is_regular_file): New function.
347 (openp): Check wether file to open is a regular file
348 to avoid opening directories.
349
baa6f10b
JT
3502002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
351
352 * findvar.c (extract_signed_integer): Cast printf argument
353 to suppress format warning.
354 (extract_unsigned_integer): Likewise.
355 * infcmd.c (registers_info): Likewise.
356 * top.c (get_prompt_1): Likewise.
357 * valops.c (value_assign): Likewise.
358 * valprint.c (print_decimal): Likewise.
359
b2c4da81
L
3602002-04-22 H.J. Lu (hjl@gnu.org)
361
362 * c-exp.y (typebase): Support
363
364 [long|long long|short] [signed|unsigned] [int|]
365
366 and
367
368 signed [long|long long|short] int
369
f267bd6a
JT
3702002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
371
372 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
373 and vax-tdep.h.
374 * vax-tdep.h: New file.
375 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
376 Make several routines static.
377 (vax_get_saved_register): New function.
378 (vax_gdbarch_init): New function.
379 (_initialize_vax_tdep): Register vax_gdbarch_init.
380 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
381 Remove macros now under the control of gdbarch.
382
da3c6d4a
MS
3832002-04-22 Michael Snyder <msnyder@redhat.com>
384
11d3b27d
MS
385 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
386 Some whitespace and coding standards tweaks.
da3c6d4a 387
a33f7558
JT
3882002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
389
390 * vax-tdep.c: Include regcache.h.
391 (vax_call_dummy_words): New.
392 (sizeof_vax_call_dummy_words): New.
393 (vax_fix_call_dummy): New function.
394 (vax_saved_pc_after_call): Ditto.
395 * config/vax/tm-vax.h: Don't include regcache.h.
396 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
397 (CALL_DUMMY): Remove.
398 (CALL_DUMMY_WORDS): Define.
399 (SIZEOF_CALL_DUMMY_WORDS): Define.
400 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
401
47a73475
MS
4022002-04-18 Michael Snyder <msnyder@redhat.com>
403
404 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
405
52efde73
JT
4062002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
407
408 * vax-tdep.c (vax_frame_chain): New function.
409 (vax_push_dummy_frame): Ditto.
410 (vax_pop_frame): Ditto.
411 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
412 (FRAMELESS_FUNCTION_INVOCATION): Use
413 generic_frameless_function_invocation_not.
414 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
415 (POP_FRAME): Use vax_pop_frame.
416
ea74468c
JT
4172002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
418
419 * vax-tdep.c (vax_store_struct_return): New function.
420 (vax_extract_return_value): Ditto.
421 (vax_store_return_value): Ditto.
422 (vax_extract_struct_value_address): Ditto.
423 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
424 vax_store_struct_return.
425 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
426 (STORE_RETURN_VALUE): Use vax_store_return_value.
427 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
428
5516aa92
JT
4292002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
430
431 * vax-tdep.c (vax_frame_saved_pc): New function.
432 (vax_frame_args_address_correct): Ditto.
433 (vax_frame_args_address): Ditto.
434 (vax_frame_locals_address): Ditto.
435 (vax_frame_num_args): Move code to be in proximity to
436 other frame-related functions.
437 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
438 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
439 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
440 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
441 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
442
36af0b35
L
4432002-04-22 H.J. Lu (hjl@gnu.org)
444
445 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
446 includedir.
447
ab62c900
JT
4482002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
449
450 * vax-tdep.c (vax_frame_init_saved_regs): New function.
451 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
452 (FRAME_INIT_SAVED_REGS): New macro.
453
7232b100
JT
4542002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
455
456 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
457
b70d2aee
JT
4582002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
459
460 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
461 where needed.
462 (fetch_osf_core_registers): Likewise.
463 (supply_gregset): Likewise.
464
a0e8a2d1
JB
4652002-04-22 J. Brobecker <brobecker@gnat.com>
466
467 * symfile.h (get_section_index): Define.
468 * symfile.c (get_section_index): New function.
469 * mdebugread.c (SC_IS_SBSS): New macro.
470 (SC_IS_BSS): Return true for the scBss storage class only, as
471 the scSBss storage class refers to the .sbss section.
472 (parse_partial_symbols): Discard the symbols which associated
473 section does not exist.
474 Make sure to use the .sbss section index for symbols which
475 storage class is scBss, rather than using the .bss section index.
476
51eb8b08
JT
4772002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
478
479 * vax-tdep.c: Update copyright years.
480 (vax_register_name): New function.
481 (vax_register_byte): Ditto.
482 (vax_register_raw_size): Ditto.
483 (vax_register_virtual_size): Ditto.
484 (vax_register_virtual_type): Ditto.
485 * config/vax/tm-vax.h: Update copyright years.
486 (REGISTER_NAMES): Remove.
487 (REGISTER_NAME): Define.
488 (REGISTER_BYTE): Use vax_register_byte.
489 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
490 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
491 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
492
6cc1c0a8
AC
4932002-04-21 Andrew Cagney <ac131313@redhat.com>
494
495 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
496 declaration
497 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
498
9319a2fe
DM
4992002-04-21 David S. Miller <davem@redhat.com>
500
501 * arch-utils.c (generic_prologue_frameless_p): Kill
502 SKIP_PROLOGUE_FRAMELESS_P code.
503 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
504 references.
505 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
506 * arc-tdep.c (arc_prologue_frameless_p): Implement.
507 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
508 references.
509 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
510 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
511 (sparc_gdbarch_init): Pass it to
512 set_gdbarch_prologue_frameless_p.
a0e8a2d1 513
e9ed6d01
JT
5142002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
515
516 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
517 (alphabsd-nat.o): New dependency list.
518
36012033
JT
5192002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
520
521 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
522 alphafbsd-tdep.c.
523 (alpha-linux-tdep.o): New dependency list.
524 (alphafbsd-tdep.o): Likewise.
525
3379287a
JT
5262002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
527
528 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
529 to here...
530 * alpha-tdep.c: ...from here.
531 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
532
4bcbd6cb
JT
5332002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
534
535 * config/alpha/tm-alpha.h: Move alpha_software_single_step
536 prototype from here...
537 * alpha-tdep.h: ...to here.
538
b31da25e
AC
5392002-04-21 Andrew Cagney <ac131313@redhat.com>
540
541 * frame.h (selected_frame_level): Document as deprecated.
542 (frame_relative_level): Declare.
543 * stack.c (frame_relative_level): New function.
544 (selected_frame_level): Document as deprecated.
545 (select_frame): Do not set the selected_frame_level.
546
547 * stack.c (frame_info, record_selected_frame): Update.
548 (frame_command, current_frame_command): Update.
549 (up_silently_base, up_command, down_silently_base): Update.
550 (down_command): Update.
551 * inflow.c (kill_command): Update.
552 * tracepoint.c (finish_tfind_command): Update.
553 * corelow.c (core_open): Update.
554 * thread.c (info_threads_command): Update.
555 (do_captured_thread_select): Update.
556 * infcmd.c (finish_command): Update.
557 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
558
9c1d6fe5
JT
5592002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
560
561 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
562
ab89facf
AC
5632002-04-21 Andrew Cagney <ac131313@redhat.com>
564
565 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
566 type const.
567
82a4efa1
JT
5682002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
569
570 * alphafbsd-tdep.c: Update copyright years. Include
571 alpha-tdep.h.
572 (alphafbsd_use_struct_convention): Make static.
573 (alphafbsd_init_abi): New function.
574 (_initialize_alphafbsd_tdep): New function.
575 * config/alpha/tm-fbsd.h: Update copyright years.
576 (USE_STRUCT_CONVENTION): Remove.
577
44dffaac
JT
5782002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
579
580 * alpha-tdep.c (alpha_abi_handler): New structure to describe
581 an Alpha ABI variant.
582 (alpha_abi_handler_list): Declare.
583 (alpha_gdbarch_register_os_abi): New function.
584 (alpha_gdbarch_init): Give registered ABI variant handlers a
585 chance to tweak the gdbarch once we have set up defaults.
586 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
587
65585be4
JT
5882002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
589
590 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
591 to standard_coerce_float_to_double.
592 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
593
d9b023cc
JT
5942002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
595
596 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
597 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
598 from gdbarch_tdep rather than a constant.
599 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
600 the default text address for all Alpha Unix ABIs.
601 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
602 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
603
dc129d82
JT
6042002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
605
606 * alpha-tdep.h: New file. Includes several Alpha target constants
607 taken from...
608 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
609 let gdbarch deal with.
610 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
611 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
612 to dependency list.
613 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
614 Alpha target register names.
615 * alphabsd-nat.c: Likewise.
616 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
617 Alpha target register names. Make serveral routines static.
618 (alpha_get_saved_register): New function.
619 (alpha_abi_names): New.
620 (process_note_abi_tag_sections): New function.
621 (get_elfosabi): New function.
622 (alpha_gdbarch_init): New function.
623 (alpha_dump_tdep): New function.
624 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
625
d49d1e0a
AC
6262002-04-21 Andrew Cagney <ac131313@redhat.com>
627
628 * frame.c (find_saved_register): Delete #ifdef
629 HAVE_REGISTER_WINDOWS code.
630 * config/sparc/tm-sparc.h: Update comments.
631 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
632
92e8c9ed
AC
6332002-04-21 Andrew Cagney <ac131313@redhat.com>
634
635 * i960-tdep.c (i960_find_saved_register): New function.
636 (i960_get_saved_register): New function.
637 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
638 (i960_get_saved_register): Declare.
639 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
640
e1925118
DM
6412002-04-20 David S. Miller <davem@redhat.com>
642
643 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
644
29673b29
AC
6452002-04-20 Andrew Cagney <ac131313@redhat.com>
646
647 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
648 instead of NUM_PSEUDO_REGS.
649
6c86dcd5
DM
6502002-04-20 David S. Miller <davem@redhat.com>
651
652 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
653 GDB_MULTI_ARCH_PARTIAL
654 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
655 define, let tm-sp64.h do it.
656
aa40ec90
JT
6572002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
658
659 * frame.c (find_saved_register): Avoid a NULL pointer
660 dereference and actually walk the frame list.
661
0f79675b
AC
6622002-04-20 Andrew Cagney <ac131313@redhat.com>
663
664 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
665 sorted in most most-recent-used order. Document.
666 * gdbarch.h, gdbarch.c: Regenerate.
667
c04a1aa8
DJ
6682002-04-20 Daniel Jacobowitz <drow@mvista.com>
669
670 * gdbserver/inferiors.c (struct inferior_info): Add regcache_data.
671 (add_inferior): Call create_register_cache.
672 (clear_inferiors): Call free_register_cache.
673 (inferior_regcache_data, set_inferior_regcache_data): New functions.
674 * gdbserver/regcache.c (struct inferior_regcache_data): New.
675 (registers): Remove.
676 (get_regcache): New function.
677 (create_register_cache, free_register_cache): New functions.
678 (set_register_cache): Don't initialize the register cache here.
679 (registers_to_string, registers_from_string, register_data): Call
680 get_regcache.
681 * gdbserver/regcache.h: Add prototypes.
682 * gdbserver/server.h: Likewise.
683
611cb4a5
DJ
6842002-04-20 Daniel Jacobowitz <drow@mvista.com>
685
686 * gdbserver/mem-break.c: New file.
687 * gdbserver/mem-break.h: New file.
688 * gdbserver/Makefile.in: Add mem-break.o rule; update server.h
689 dependencies.
690 * gdbserver/inferiors.c (struct inferior_info): Add target_data
691 member.
692 (clear_inferiors): Free target_data member if set.
693 (inferior_target_data, set_inferior_target_data): New functions.
694 * gdbserver/linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
695 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
696 * gdbserver/linux-low.c (linux_bp_reinsert): New variable.
697 (struct inferior_linux_data): New.
698 (linux_create_inferior): Use set_inferior_target_data.
699 (linux_attach): Likewise. Call add_inferior.
700 (linux_wait_for_one_inferior): New function.
701 (linux_wait): Call it.
702 (linux_write_memory): Add const.
703 (initialize_low): Call set_breakpoint_data.
704 * gdbserver/linux-low.h (struct linux_target_ops): Add breakpoint
705 handling members.
706 * gdbserver/server.c (attach_inferior): Remove extra add_inferior
707 call.
708 * gdbserver/server.h: Include mem-break.h. Update inferior.c
709 prototypes.
710 * gdbserver/target.c (read_inferior_memory)
711 (write_inferior_memory): New functions.
712 * gdbserver/target.h (read_inferior_memory)
713 (write_inferior_memory): Change macros to prototypes.
714 (struct target_ops): Update comments. Add const to write_memory
715 definition.
716
f91305dd 7172002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
718
719 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
720 instead of ->prev.
721 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
722 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
723 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
724 instead of ->prev.
725
73d322b1
EZ
7262002-04-19 Elena Zannoni <ezannoni@redhat.com>
727
728 Fix PR gdb/471.
729 * gdbtypes.c (init_simd_type): Rewrite using new functions.
730 (build_builtin_type_vec128): Ditto.
731 (append_composite_type_field): Fix calculation of type length in
732 union case.
733
ccd9a834
EZ
7342002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
735
736 * config/djgpp/README: Update.
737
738 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
739 compiler warnings.
740
a57f9e49
JT
7412002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
742
743 * alpha-tdep.c (setup_arbitrary_frame): Rename...
744 (alpha_setup_arbitrary_frame): ...to this.
745 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
746 for alpha_setup_arbitrary_frame.
747
f4f9705a
AC
7482002-04-18 Andrew Cagney <cagney@redhat.com>
749
750 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
751 * gdbarch.h, gdbarch.c: Regenerate.
752
753 * defs.h (breakpoint_from_pc_fn): Delete type definition.
754 * target.h (memory_breakpoint_from_pc): Update declaration.
755 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
756
757 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
758 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
759 * mem-break.c (memory_breakpoint_from_pc): Ditto.
760 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
761 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
762 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
763 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
764 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
765 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
766 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
767 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
768 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
769
770 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
771 const pointer.
772 * monitor.c (monitor_insert_breakpoint): Ditto.
773 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
774
775 * config/mcore/tm-mcore.h: Update copyright.
776 * mem-break.c: Ditto.
777 * xstormy16-tdep.c: Ditto.
778
29f319b8
PM
7792002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
780
781 * p-exp.y: Add precedence rule for '^' token.
782 This removes the shift/reduce conflicts.
783 Remove the comment concerning these shift/reduce conflicts.
784
ebeac11a
EZ
7852002-04-18 Elena Zannoni <ezannoni@redhat.com>
786
787 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
788 (registers_powerpc_nofp): New register set for processors
789 without floating point unit.
790
27c31547
DM
7912002-04-18 David S. Miller <davem@redhat.com>
792
793 * MAINTAINERS: Add myself to write-after-approval.
794
47a73475
MS
7952002-04-17 Michael Snyder <msnyder@redhat.com>
796
797 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
798
953836b2
AC
7992002-04-17 Andrew Cagney <ac131313@redhat.com>
800
801 * rs6000-tdep.c (frame_initial_stack_address): Use
802 frame_register_read to read the alloca_reg.
803
8b0d4340
AC
8042002-04-17 Andrew Cagney <ac131313@redhat.com>
805
806 * frame.c (find_saved_register): Find saved registers in the next
807 not prev frame.
808 Fix PR gdb/365.
809
d8864532
AC
8102002-04-17 Andrew Cagney <ac131313@redhat.com>
811
812 * gdbarch.sh (LANG): Set to ``c''.
813
36cc83a3
AC
8142002-04-15 Andrew Cagney <ac131313@redhat.com>
815
816 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
817
2f4150cc 8182002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
819
820 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
821 Update copyright.
822
628703c6 823 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc
AC
824 Also fix PR gdb/391.
825
56157b4a
AC
8262002-04-14 Andrew Cagney <ac131313@redhat.com>
827
828 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
829 * aclocal.m4, configure: Re-generate.
830 Fix PR gdb/391.
831
6d1e3329
EZ
8322002-04-14 Elena Zannoni <ezannoni@redhat.com>
833
834 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
835 instead of tm_print_insn.
836
cb06fa07
EZ
8372002-04-14 Elena Zannoni <ezannoni@redhat.com>
838
839 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
840
f208ba17
AC
8412002-04-14 Andrew Cagney <ac131313@redhat.com>
842
843 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
844 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
845 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
846
20f01a46
DH
8472002-04-12 Don Howard <dhoward@redhat.com>
848
849 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
850 max_user_call_depth.
851 (init_cmd_lists): Initialize the new value;
852 * cli/cli-script.c (execute_user_command): Limit the call depth of
853 user defined commands. This avoids a core-dump when user commands
854 are infinitly recursive.
855
a88376a3
KB
8562002-04-12 Kevin Buettner <kevinb@redhat.com>
857
858 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
859 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
860 from tdep struct instead of DEFAULT_LR_SAVE.
861 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
862 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
863 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
864
f2172603
MS
8652002-04-12 Michael Snyder <msnyder@redhat.com>
866
694f61fb 867 * Remote.c: Spelling fix.
20fe79c8
MS
868 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
869 If no symbol found for "sbrk", try "_sbrk".
870 (make_output_phdrs): Use bfd_section_name.
871 (gcore_copy_callback): Use bfd_section_name.
62995fc4 872 * eval.c: Indentation fix-ups.
169a7369
MS
873 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
874 in case it gets applied to an address that is already
875 in the instruction space.
de74f71f
MS
876 * cli/cli-decode.c (help_list): Allow long lines to wrap.
877 * symfile.c: Fix indentation, long lines.
f2172603
MS
878 * source.c: White space fix-up.
879
cda5a58a
AC
8802002-04-12 Andrew Cagney <cagney@redhat.com>
881
882 * defs.h (read_relative_register_raw_bytes): Delete declaration.
883 * frame.c (frame_register_read): New function. Return non-zero on
884 success.
885 (read_relative_register_raw_bytes_for_frame): Delete.
886 (read_relative_register_raw_bytes): Delete.
887 * frame.h (frame_register_read): Declare.
888 * d30v-tdep.c: Update Copyright. Use frame_register_read.
889 * sh-tdep.c: Ditto.
890 * infcmd.c (do_registers_info): Ditto.
891 * hppa-tdep.c: Ditto.
892 * rs6000-tdep.c: Ditto.
893 * h8500-tdep.c: Ditto.
894 * mips-tdep.c: Ditto.
895 * h8300-tdep.c: Ditto.
896 * z8k-tdep.c: Ditto.
897
2ea5f656
KB
8982002-04-12 Kevin Buettner <kevinb@redhat.com>
899
900 From Jimi X <jimix@watson.ibm.com>:
901 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
902 64-bit SysV ABI.
903
27b15785
KB
9042002-04-12 Kevin Buettner <kevinb@redhat.com>
905
906 From Jimi X <jimix@watson.ibm.com>:
907 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
908 bfd info.
909
5d57ee30
KB
9102002-04-12 Kevin Buettner <kevinb@redhat.com>
911
912 From Jimi X <jimix@watson.ibm.com>:
913 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
914 register sets for these processor variants.
915
bc1e36ca
DJ
9162002-04-11 Daniel Jacobowitz <drow@mvista.com>
917
918 * gdbserver/linux-low.c (usr_store_inferior_registers): Support
919 registers which are allowed to fail to store.
920 * gdbserver/linux-low.h (linux_target_ops): Likewise.
921 * gdbserver/linux-ppc-low.c (ppc_regmap): Support FPSCR.
922 (ppc_cannot_store_register): FPSCR may not be storable.
923 * regformats/reg-ppc.dat: Support FPSCR.
924
e3f36dbd
KB
9252002-04-11 Kevin Buettner <kevinb@redhat.com>
926
927 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
928 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
929 Add fpscr as an invalid/unfetchable register.
930 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
931 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
932 (fill_fpregset): Add support for register fpscr.
933 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
934 (fill_gregset): Account for the fact that register ``mq'' might
935 not exist.
936 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
937 (registers_power): Add fpscr to register set at slot 71.
938 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
939 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
940
943c9c25
MS
9412002-04-11 Michael Snyder <msnyder@redhat.com>
942
943 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
944 * configure: Regenerate.
945 * config.in: Regenerate.
946 * acconfig.h: Add define for _SYSCALL32.
947 * core-sol2.c: Remove #define _SYSCALL32.
948 * solib-legacy.c: Remove #define _SYSCALL32.
949
d8c0a2e7
AC
9502002-04-10 Andrew Cagney <ac131313@redhat.com>
951
952 * stack.c (select_frame): Cleanup internal error message, do not
953 use %p.
954
7cc19214
AC
9552002-04-10 Andrew Cagney <ac131313@redhat.com>
956
957 * stack.c (select_frame): Check that selected_frame and the
958 specified level are as expected.
959 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
960 Update copyright.
961 * frame.h (struct frame_info): Add field `level'. Update
962 copyright.
963 Work-in-progress PR gdb/464.
964
67a2b77e
AC
9652002-04-10 Andrew Cagney <ac131313@redhat.com>
966
967 * maint.c (maint_print_section_info): Rename print_section_info.
968 (print_bfd_section_info, print_objfile_section_info): Update.
969 * inferior.h (struct gdbarch): Add opaque declaration.
970 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
971 * gdbarch.h: Regenerate.
972
8cfda98c
ML
9732002-04-10 Michal Ludvig <mludvig@suse.cz>
974
975 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
976 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
977 (kernel_u_size): Added.
978 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
979 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
980
ca439ad2
JI
9812002-04-04 Jim Ingham <jingham@apple.com>
982
983 * valarith.c (find_size_for_pointer_math): New function, either returns
984 the size for a pointer's target, returns 1 for void *, or errors for
985 incomplete types.
986 (value_add, value_sub): use find_size_for_pointer_math.
987
2f2893d9
DJ
9882002-04-09 Daniel Jacobowitz <drow@mvista.com>
989
990 * linux-low.c (linux_look_up_symbols): New hook.
991 (linux_target_ops): Add linux_look_up_symbols.
992 * remote-utils.c (decode_address): New function.
993 (look_up_one_symbol): New function.
994 * server.c (handle_query): Call target look_up_symbols hook.
995 * server.h (look_up_one_symbol): Add prototype.
996 * target.h (struct target_ops): Add look_up_symbols hook.
997
2ec06d2e
DJ
9982002-04-09 Daniel Jacobowitz <drow@mvista.com>
999
d64b8841
DJ
1000 * gdbserver/server.h: Include <string.h> if HAVE_STRING_H.
1001 * ChangeLog: Correct paths in last ChangeLog entry.
1002
10032002-04-09 Daniel Jacobowitz <drow@mvista.com>
1004
1005 * gdbserver/linux-low.h: Remove obsolete prototypes.
2ec06d2e
DJ
1006 (struct linux_target_ops): New.
1007 (extern the_low_target): New.
d64b8841 1008 * gdbserver/linux-low.c (num_regs, regmap): Remove declarations.
2ec06d2e
DJ
1009 (register_addr): Use the_low_target explicitly.
1010 (fetch_register): Likewise.
1011 (usr_fetch_inferior_registers): Likewise.
1012 (usr_store_inferior_registers): Likewise.
d64b8841 1013 * gdbserver/linux-arm-low.c (num_regs): Remove.
2ec06d2e
DJ
1014 (arm_num_regs): Define.
1015 (arm_regmap): Renamed from regmap, made static.
1016 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
1017 made static.
1018 (arm_cannot_store_register): Renamed from cannot_store_register,
1019 made static.
1020 (the_low_target): New.
d64b8841 1021 * gdbserver/linux-i386-low.c (num_regs): Remove.
2ec06d2e
DJ
1022 (i386_num_regs): Define.
1023 (i386_regmap): Renamed from regmap, made static.
1024 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
1025 made static.
1026 (i386_cannot_store_register): Renamed from cannot_store_register,
1027 made static.
1028 (the_low_target): New.
d64b8841 1029 * gdbserver/linux-ia64-low.c (num_regs): Remove.
2ec06d2e
DJ
1030 (ia64_num_regs): Define.
1031 (ia64_regmap): Renamed from regmap, made static.
1032 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
1033 made static.
1034 (ia64_cannot_store_register): Renamed from cannot_store_register,
1035 made static.
1036 (the_low_target): New.
d64b8841 1037 * gdbserver/linux-m68k-low.c (num_regs): Remove.
2ec06d2e
DJ
1038 (m68k_num_regs): Define.
1039 (m68k_regmap): Renamed from regmap, made static.
1040 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
1041 made static.
1042 (m68k_cannot_store_register): Renamed from cannot_store_register,
1043 made static.
1044 (the_low_target): New.
d64b8841 1045 * gdbserver/linux-mips-low.c (num_regs): Remove.
2ec06d2e
DJ
1046 (mips_num_regs): Define.
1047 (mips_regmap): Renamed from regmap, made static.
1048 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
1049 made static.
1050 (mips_cannot_store_register): Renamed from cannot_store_register,
1051 made static.
1052 (the_low_target): New.
d64b8841 1053 * gdbserver/linux-ppc-low.c (num_regs): Remove.
2ec06d2e
DJ
1054 (ppc_num_regs): Define.
1055 (ppc_regmap): Renamed from regmap, made static.
1056 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
1057 made static.
1058 (ppc_cannot_store_register): Renamed from cannot_store_register,
1059 made static.
1060 (the_low_target): New.
d64b8841 1061 * gdbserver/linux-s390-low.c (num_regs): Remove.
2ec06d2e
DJ
1062 (s390_num_regs): Define.
1063 (s390_regmap): Renamed from regmap, made static.
1064 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
1065 made static.
1066 (s390_cannot_store_register): Renamed from cannot_store_register,
1067 made static.
1068 (the_low_target): New.
d64b8841 1069 * gdbserver/linux-sh-low.c (num_regs): Remove.
2ec06d2e
DJ
1070 (sh_num_regs): Define.
1071 (sh_regmap): Renamed from regmap, made static.
1072 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
1073 made static.
1074 (sh_cannot_store_register): Renamed from cannot_store_register,
1075 made static.
1076 (the_low_target): New.
d64b8841 1077 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
2ec06d2e
DJ
1078 (the_low_target): New.
1079
96cb11df
AC
10802002-04-09 Andrew Cagney <ac131313@redhat.com>
1081
1082 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
1083 override FP_REGNUM with frame->fp. Update copyright.
1084 * parse.c (num_std_regs, std_regs): Delete.
1085 (target_map_name_to_register): Do not search std_regs. Update
1086 function description.
1087 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
1088 declarations. Update copyright.
1089 Fix PR gdb/251.
1090
c3a3ccc7
DJ
10912002-04-09 Daniel Jacobowitz <drow@mvista.com>
1092
1093 * gdbserver/Makefile.in: Add stamp-h target.
1094 * gdbserver/configure.in: Create stamp-h.
1095 * gdbserver/configure: Regenerated.
1096
ce3a066d
DJ
10972002-04-09 Daniel Jacobowitz <drow@mvista.com>
1098
1099 * gdbserver/inferiors.c: New file.
1100 * gdbserver/target.c: New file.
1101 * gdbserver/target.h: New file.
1102 * gdbserver/Makefile.in: Add target.o and inferiors.o. Update
1103 dependencies.
1104 * gdbserver/linux-low.c (inferior_pid): New static variable,
1105 moved from server.c.
1106 (linux_create_inferior): Renamed from create_inferior.
1107 Call add_inferior. Return 0 on success instead of a PID.
1108 (linux_attach): Renamed from myattach.
1109 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
1110 (linux_thread_alive): Renamed from mythread_alive.
1111 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
1112 child dies.
1113 (linux_resume): Renamed from myresume. Add missing ``return 0''.
1114 (regsets_store_inferior_registers): Correct error message.
1115 Add missing ``return 0''.
1116 (linux_fetch_registers): Renamed from fetch_inferior_registers.
1117 (linux_store_registers): Renamed from store_inferior_registers.
1118 (linux_read_memory): Renamed from read_inferior_memory.
1119 (linux_write_memory): Renamed from write_inferior_memory.
1120 (linux_target_ops): New structure.
1121 (initialize_low): Call set_target_ops ().
1122 * gdbserver/remote-utils.c (unhexify): New function.
1123 (hexify): New function.
1124 (input_interrupt): Send signals to ``signal_pid''.
1125 * gdbserver/server.c (inferior_pid): Remove.
1126 (start_inferior): Update create_inferior call.
1127 (attach_inferior): Call add_inferior.
1128 (handle_query): New function.
1129 (main): Call handle_query for `q' packets.
1130 * gdbserver/server.h: Include "target.h". Remove obsolete prototypes.
1131 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
1132
0729219d
DJ
11332002-04-09 Daniel Jacobowitz <drow@mvista.com>
1134
1135 * gdbserver/Makefile.in: Add WARN_CFLAGS. Update configury
1136 dependencies.
1137 * gdbserver/configure.in: Check for <string.h>
1138 * gdbserver/configure: Regenerate.
1139 * gdbserver/config.in: Regenerate.
1140 * gdbserver/gdbreplay.c: Include needed system headers.
1141 (remote_open): Remove strchr prototype.
1142 * gdbserver/linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
1143 * gdbserver/regcache.c (supply_register): Change buf argument to const void *.
1144 (supply_register_by_name): Likewise.
1145 (collect_register): Change buf argument to void *.
1146 (collect_register_by_name): Likewise.
1147 * gdbserver/regcache.h: Add missing prototypes.
1148 * gdbserver/remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
1149 * gdbserver/server.c (handle_query): New function.
1150 (attached): New static variable, moved out of main.
1151 (main): Quiet longjmp clobber warnings.
1152 * gdbserver/server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
1153 * gdbserver/utils.c (error): Remove NORETURN.
1154 (fatal): Likewise.
1155
97658e92
DJ
11562002-04-09 Daniel Jacobowitz <drow@mvista.com>
1157
1158 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
1159 after the last symbol in a block.
1160
6044e3eb
PM
11612002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
1162
1163 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
1164 is non zero as a found symbol.
1165
0406ec40
AC
11662002-04-08 Andrew Cagney <ac131313@redhat.com>
1167
1168 * findvar.c: Include "builtin-regs.h".
1169 (value_of_register): Call value_of_builtin_reg when applicable.
1170 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
1171 (target_map_name_to_register): Call
1172 builtin_reg_map_name_to_regnum.
1173 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
1174 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
1175 (builtin_regs_h): Define.
1176 (builtin-regs.o): New target.
1177 (findvar.o): Add $(builtin_regs_h).
1178 * builtin-regs.c, builtin-regs.h: New files.
1179 * std-regs.c: New file.
1180 Partial fix for PR gdb/251.
1181
56a6dfb9
KB
11822002-04-08 Kevin Buettner <kevinb@redhat.com>
1183
1184 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
1185 it's no longer required.
1186
3a808432
AC
11872002-04-08 Andrew Cagney <ac131313@redhat.com>
1188
1189 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
1190
7c40d541
KB
11912002-04-08 Kevin Buettner <kevinb@redhat.com>
1192
1193 From Jimi X <jimix@watson.ibm.com>:
1194 * rs6000-tdep.c (rs6000_software_single_step): Use
1195 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
1196 and size. Use target_insert_breakpoint() and
1197 target_remove_breakpoint() to insert and remove breakpoints
1198 instead of explicit memory reads and writes.
1199
cc9836a8
KB
12002002-04-08 Kevin Buettner <kevinb@redhat.com>
1201
1202 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
1203 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
1204 ELF_OBJECT_FORMAT ifdef.
1205
7495d1dc
KB
12062002-04-08 Kevin Buettner <kevinb@redhat.com>
1207
1208 From Jimi X <jimix@watson.ibm.com>:
1209 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
1210
4288e836
KB
12112002-04-08 Kevin Buettner <kevinb@redhat.com>
1212
1213 From Jimi X <jimix@watson.ibm.com>:
1214 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
1215 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
1216
a4e4e501
MK
12172002-04-07 Mark Kettenis <kettenis@gnu.org>
1218
1219 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
1220 s/asprintf/xasprintf/.
1221 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
1222
006defba
AC
12232002-04-07 Andrew Cagney <ac131313@redhat.com>
1224
1225 I believe Jeff Law denies responsability for this one:
1226 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
1227 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
1228 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
1229 Work-around for PR gdb/366.
1230
7aa83cac
EZ
12312002-04-07 Elena Zannoni <ezannoni@redhat.com>
1232
1233 * remote-e7000.c (write_small, e7000_read_inferior_memory,
1234 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
1235 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
1236
cf1fcca1
EZ
12372002-04-07 Elena Zannoni <ezannoni@redhat.com>
1238
1239 * sh-tdep.c (sh_fp_frame_init_saved_regs,
1240 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
1241 information.
1242
3f289e6f
AC
12432002-04-07 Andrew Cagney <ac131313@redhat.com>
1244
1245 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
1246 maintainer.
1247
129188f6
AC
12482002-04-07 Andrew Cagney <ac131313@redhat.com>
1249
1250 * README (Reporting Bugs in GDB): Document the bug web page as the
1251 prefered way of submitting bugs.
1252 Fix PR gdb/402.
1253
1200cd6e
AC
12542002-04-06 Andrew Cagney <ac131313@redhat.com>
1255
1256 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
1257 -1. Update comment.
1258 * gdbarch.h, gdbarch.c: Re-generate.
1259
2853c33c
AS
12602002-04-07 Andreas Schwab <schwab@suse.de>
1261
1262 * m68klinux-nat.c (fill_fpregset): Properly pass address of
1263 buffer to regcache_collect.
1264
c2169756
AC
12652002-04-06 Andrew Cagney <ac131313@redhat.com>
1266
1267 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
1268 * gdbarch.c, gdbarch.h: Re-generate.
1269
25f1b008
AC
12702002-04-06 Andrew Cagney <ac131313@redhat.com>
1271
1272 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
1273 declaration. Fix -Werror.
1274
59263426
DJ
12752002-04-05 Daniel Jacobowitz <drow@mvista.com>
1276
1277 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
1278 * gdbarch.c: Regenerate.
1279
f5db4da3
MS
12802002-04-05 Michael Snyder <msnyder@redhat.com>
1281
80f8a6eb
MS
1282 * breakpoint.c (clear_command): Rewrite middle section to
1283 combine two loops with identical control conditions.
1284 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
1285 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
1286
ad3dcc5c
L
12872002-04-05 H.J. Lu (hjl@gnu.org)
1288
1289 * solib-svr4.c (bkpt_names): Add "__start".
1290
f32e7a74
AC
12912002-04-04 Andrew Cagney <ac131313@redhat.com>
1292
1293 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
1294 as test for 64 bit target.
1295
8227c0ff
AC
12962002-04-05 Andrew Cagney <ac131313@redhat.com>
1297
1298 * h8500-tdep.c (h8500_write_fp): Delete function.
1299 * dwarf2cfi.c (cfi_write_fp): Document as not used.
1300 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
1301 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
1302 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
1303 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
1304 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
1305 (s390_write_fp):
1306 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
1307 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
1308 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
1309 (d10v_write_fp): Delete function.
1310 * inferior.h (write_fp, generic_target_write_fp): Delete
1311 declarations.
1312 * regcache.c (generic_target_write_fp): Delete function.
1313 (write_fp): Delete function.
1314 * gdbarch.sh (TARGET_WRITE_FP): Delete.
1315 * gdbarch.h, gdbarch.c: Regenerate.
1316 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
1317 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
1318 (sparc64_write_fp): Delete declaration.
1319 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
1320 (h8500_write_fp): Delete declaration.
1321
2757dd86
AC
13222002-04-04 Andrew Cagney <ac131313@redhat.com>
1323
1324 * sparc-tdep.c (sparc64_write_fp): Delete.
1325 (sparc_push_dummy_frame): Replace write_fp call with code to store
1326 the FP directly.
1327 (sparc_gdbarch_init): Do not initialize write_fp.
1328
c69255e1
KB
13292002-04-05 Kevin Buettner <kevinb@redhat.com>
1330
1331 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
1332 clause.
1333
ae767bfb
JB
13342002-03-29 Jim Blandy <jimb@redhat.com>
1335
1336 * stack.c (get_selected_block): Add new argument `addr_in_block',
1337 used to return the exact code address we used to select the block,
1338 not just the block.
1339 * blockframe.c (get_frame_block, get_current_block): Same.
1340 * frame.h (get_frame_block, get_current_block,
1341 get_selected_block): Update declarations.
1342 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
1343 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
1344
84d2ac95
MS
13452002-04-05 Michael Snyder <msnyder@redhat.com>
1346
1347 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
1348 warning message.
1349
596aa3bf
JB
13502002-04-05 J. Brobecker <brobecker@gnat.com>
1351
1352 * utils.c (xfullpath): New function.
1353 * defs.h (xfullpath): Add declaration.
1354 * source.c (openp): Use xfullpath in place of gdb_realpath to
1355 avoid resolving the basename part of filenames when the
1356 associated file is a symbolic link. This fixes a potential
1357 inconsistency between the filenames known to GDB and the
1358 filenames it prints in the annotations.
1359 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
1360 to be able to match a filename with either the real filename, or
1361 the name of any symbolic link to this file.
1362 (lookup_partial_symtab): Ditto.
1363
c02f5703
MS
13642002-04-04 Michael Snyder <msnyder@redhat.com>
1365
1366 * breakpoint.c: Add support for hardware breakpoints in overlays.
1367 (overlay_events_enabled): New state variable.
1368 (insert_breakpoints): Use overlay_events_enabled to decide
1369 whether to attempt to set a breakpoint at the overlay load addr.
1370 Handle bp_hardware_breakpoint as well as bp_breakpoint.
1371 (remove_breakpoint): Use overlay_events_enabled to decide
1372 whether breakpoints need to be removed from overlay load addr.
1373 Handle bp_hardware_breakpoint as well as bp_breakpoint.
1374 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
1375 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
1376 disable_overlay_breakpoints): Update overlay_events_enabled.
1377
5fb290d7
DJ
13782002-04-04 Daniel Jacobowitz <drow@mvista.com>
1379
1380 * dwarf2read.c (struct function_range): New.
1381 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
1382 (check_cu_functions): New.
1383 (read_file_scope): Initialize global function lists.
1384 Call dwarf_decode_line after processing children.
1385 (read_func_scope): Add to global function list.
1386 (dwarf_decode_lines): Call check_cu_functions everywhere
1387 record_line is called. Call record_line with a linenumber
1388 of 0 to mark sequence ends.
1389
7b3fabf0
ML
13902002-04-04 Michal Ludvig <mludvig@suse.cz>
1391
1392 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
1393 change sync with glibc.
1394
bce58c09
JB
13952002-04-03 Jim Blandy <jimb@redhat.com>
1396
1397 * configure.in: Call AC_C_INLINE.
1398 * configure: Regenerated.
1399
2fccf04a
DJ
14002002-04-01 Daniel Jacobowitz <drow@mvista.com>
1401
1402 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
1403 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
1404
2d1bfe2e
MK
14052002-03-31 Mark Kettenis <kettenis@gnu.org>
1406
a5941fbf
MK
1407 * NEWS: Mention gcore support on FreeBSD/i386.
1408
a90cd31d
MK
1409 * fbsd-proc.c: New file.
1410 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
1411 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
1412
2d1bfe2e
MK
1413 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
1414 while statement.
1415
9eb6e5a1
JB
14162002-03-29 Jim Blandy <jimb@redhat.com>
1417
1418 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
1419 unescaped newlines in string literals, but newer ones don't. So
1420 escape them.
1421
f02df580
MS
14222002-03-26 Michael Snyder <msnyder@redhat.com>
1423 Andrew Cagney <cagney@redhat.com>
1424
1425 * cli/cli-dump.c: New file. Dump memory to file,
1426 restore file to memory.
1427 * cli/cli-dump.h: New file.
1428 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 1429 * NEWS: Mention new commands.
f02df580 1430
109f874e
MS
14312002-03-28 Michael Snyder <msnyder@redhat.com>
1432
1433 * symfile.c (symbol_file_add): Move test for null symbols to later.
1434
520f6ade
AC
14352002-03-27 Andrew Cagney <ac131313@redhat.com>
1436
1437 From veksler at il.ibm.com:
1438 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
1439 the xstrduped original path.
1440 Fix PR gdb/417.
1441
d4654627
MS
14422002-03-27 Michael Snyder <msnyder@redhat.com>
1443
1444 * breakpoint.c (_initialize_breakpoint): Clean up help string.
1445 * infcmd.c (_initialize_infcmd): Ditto.
1446 * language.c (_initialize_language): Ditto.
1447 * symfile.c (_initialize_symfile): Ditto.
1448 * top.c (_init_main): Ditto.
1449 * cli/cli-cmds.c (init_cli_cmds): Ditto.
1450
6be8bc0c
EZ
14512002-03-27 Elena Zannoni <ezannoni@redhat.com>
1452
1453 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
1454 vector registers handling.
1455 (skip_prologue): Handle new AltiVec instructions. Fill in new
1456 fields of frame data.
1457 (frame_get_saved_regs): Fill in information for AltiVec registers.
1458
12af6855
JB
14592002-03-27 Jim Blandy <jimb@redhat.com>
1460
1461 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
1462 a function; leave this macro here to invoke that function.
1463 (symbol_init_mangled_name): Declaration for that function.
1464 * symtab.c (symbol_init_mangled_name): New function.
1465
dc672865
AC
14662002-03-27 Andrew Cagney <ac131313@redhat.com>
1467
1468 * valarith.c: Replace strerror with safe_strerror.
1469 * tracepoint.c: Ditto.
1470 * lin-lwp.c: Ditto.
1471 * go32-nat.c: Ditto.
1472 * inflow.c: Ditto.
1473 * gnu-nat.c: Ditto.
1474
d96429cd
AS
14752002-03-27 Andreas Schwab <schwab@suse.de>
1476
1477 * event-top.c (command_line_handler): Remove useless if.
1478
7e336ba1
AJ
14792002-03-27 Andreas Jaeger <aj@suse.de>
1480
1481 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
1482 comment.
1483
de220d0f
ML
14842002-03-27 Michal Ludvig <mludvig@suse.cz>
1485
1486 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
1487 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
1488 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
1489 (x86_64_linux_dr_get_status, supply_gregset),
1490 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
1491 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
1492 (x86_64_register_info_table): Add.
1493 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
1494 (x86_64_register_raw_size, x86_64_register_virtual_type),
1495 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
1496 general x86_64_register_info_table.
1497 (i386_gdbarch_init): gdbarch_register_bytes is now set
1498 dynamicaly during initialization.
1499 * regformats/reg-x86-64.dat: Synced with changes to registers above.
1500 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 1501
0e98d0a7
DJ
15022002-03-27 Daniel Jacobowitz <drow@mvista.com>
1503
1504 * gdbserver/server.c (main): Call target_signal_to_host_p
1505 and target_signal_to_host on signals received from the remote.
1506 * gdbserver/remote-utils.c (prepare_resume_reply): Call
1507 target_signal_from_host on signals sent to the remote.
1508 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
1509 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
1510
3130066b
DJ
15112002-03-27 Daniel Jacobowitz <drow@mvista.com>
1512
1513 * signals/signals.c: Include "server.h" in gdbserver build.
1514 (target_signal_from_name): Don't use STREQ.
1515 (_initialize_signals): Likewise. Don't include function in
1516 gdbserver build.
1517
9aedf4f4
DJ
15182002-03-27 Daniel Jacobowitz <drow@mvista.com>
1519
1520 * signals.c: Moved to...
1521 * signals/signals.c: Here.
7e336ba1 1522 * Makefile (signals.o): Update.
9aedf4f4 1523
3fa41cdb
JL
15242002-03-26 Jeff Law (law@redhat.com)
1525
1526 * somread.c (som_symtab_read): Remove some commented out code and
1527 updated related comments. Do not set the minimal symbol table to
1528 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
1529 in a dynamic executable.
1530 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
1531 where we are unable to find the minimal symbol for the given
1532 PC value.
1533
ee677e8d
MS
15342002-03-25 Jeff Law (law@redhat.com)
1535
1536 * linux-proc.c (read_mapping): Scan up to end of line for filename.
1537
e76e1718
ML
15382002-03-25 Michal Ludvig <mludvig@suse.cz>
1539
1540 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
1541
18a642a1
AC
15422002-03-23 Andrew Cagney <ac131313@redhat.com>
1543
1544 * command.h: Update copyright.
1545 (struct cmd_list_element): Replace definition with opaque
1546 declaration.
1547 (enum cmd_types): Document that it will eventually be moved to
1548 cli/cli-decode.h
1549 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
1550 (MALLOCED_REPLACEMENT): Delete macro.
1551 * Makefile.in (cli_decode_h): Add $(command_h).
1552 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 1553 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
1554 * completer.c: Include "cli/cli-decode.h".
1555 * maint.c: Include "cli/cli-decode.h".
1556 * cli/cli-decode.h: Include "command.h".
1557 (enum command_class): Delete.
1558 (enum cmd_types): Comment out.
1559 (enum cmd_auto_boolean): Delete.
1560 (enum var_types): Delete.
1561
b2875cc0
AC
15622002-03-23 Andrew Cagney <ac131313@redhat.com>
1563
1564 * cli/cli-decode.c: Include "gdb_assert.h".
1565 (add_set_or_show_cmd): New static function.
1566 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
1567 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
1568 all fields, such as func, from the set command.
1569
3b45974e
AC
15702002-03-23 Andrew Cagney <ac131313@redhat.com>
1571
1572 * MAINTAINERS (sh-elf): Change warning flag to -w.
1573
823ca731
AC
15742002-03-23 Andrew Cagney <cagney@redhat.com>
1575
1576 * defs.h (error): Add printf format attribute.
1577 * thread-db.c (thread_from_lwp): Fix error format string.
1578 * stack.c (parse_frame_specification): Ditto.
1579 * cli/cli-decode.c (undef_cmd_error): Ditto.
1580 * scm-lang.c (scm_lookup_name): Ditto.
1581 * tracepoint.c (trace_error): Ditto.
1582 * remote-utils.c (usage): Ditto.
1583 * remote.c (compare_sections_command): Ditto.
1584 Fix PR gdb/328.
1585
0e101458
AC
15862002-03-22 Andrew Cagney <ac131313@redhat.com>
1587
1588 * gdbtypes.c (append_composite_type_field): New function.
1589 (init_composite_type): New function.
1590 * gdbtypes.h (append_composite_type_field): Declare.
1591 (init_composite_type): Ditto.
1592
8e0662df
EZ
15932002-03-22 Elena Zannoni <ezannoni@redhat.com>
1594
1595 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 1596 function.
8e0662df
EZ
1597 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
1598 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
1599 structure returning convention for SYSV ABI case, but not
1600 for GNU/Linux, FreeBSD, or NetBSD.
1601
3121eff0
DJ
16022002-03-22 Daniel Jacobowitz <drow@mvista.com>
1603
1604 * symtab.h (lookup_block_symbol): Add mangled_name argument
1605 to prototype.
1606
1607 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
1608 with new mangled_name argument.
1609 * linespec.c (decode_line_1): Likewise.
1610 * valops (value_of_this): Likewise.
1611 * symtab.c (lookup_transparent_type): Likewise.
1612 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
1613 (lookup_symbol): If we are given a mangled name, pass it down
1614 to lookup_symbol_aux.
1615 (lookup_block_symbol): If we are given a mangled name to check
1616 against, only return symbols which match it.
1617
349b409f
CF
16182002-03-22 Christopher Faylor <cgf@redhat.com>
1619
1620 * win32-nat.c (child_create_inferior): Check for proper shell to use
1621 here, in case the user changes it on the fly.
1622 (_initialize_inftarg): Remove shell path considerations.
1623
2a873819
EZ
16242002-03-21 Elena Zannoni <ezannoni@redhat.com>
1625
1626 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
1627 for gdbarch_max_register_raw_size and max_register_virtual_size.
1628 Adjust copyright year.
1629
a1b9830c
DJ
16302002-03-21 Daniel Jacobowitz <drow@mvista.com>
1631
1632 * dbxread.c (process_one_symbol): Extend the first N_SLINE
1633 in a function to cover the entire beginning of the function
1634 as well if it does not already.
1635
8b5790f2
TR
16362002-03-21 Tom Rix <trix@redhat.com>
1637
1638 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
1639 (rs6000_ptrace64): Renamed from ptrace64.
1640
bdbe5747
MH
16412002-03-20 Martin M. Hunt <hunt@redhat.com>
1642
1643 * gdbserver/remote-utils.c (remote_open): Don't call
1644 getprotobyname, we're all using TCP here so just use
1645 IPPROTO_TCP.
7e336ba1 1646 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
1647
16482002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 1649
bdbe5747
MH
1650 * regcache.c (_initialize_regcache): No need to call
1651 build_regcache() at this time; it gets called whenever
1652 the gdbarch changes.
1653
7781cd62
DB
16542002-03-20 David O'Brien <obrien@FreeBSD.org>
1655
1656 * sparc-nat.c: Include sys/param.h where possible.
1657
f65ca430
DJ
16582002-03-20 Daniel Jacobowitz <drow@mvista.com>
1659
1660 Fix PR gdb/422.
1661 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
1662 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
1663 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
1664 complex types.
1665 * stabsread.c (rs6000_builtin_type): Likewise.
1666 (read_sun_floating_type): Likewise.
1667
0c867556
PS
16682002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1669
1670 * stabsread.c (read_member_functions): Remove skip code for duplicate
1671 constructor/destructor methods. Use standard parsing for these
1672 methods and just do not chain them to the list of methods after
1673 parsing.
1674
12b9c64f
AO
16752002-03-19 Alexandre Oliva <aoliva@redhat.com>
1676
1677 * coffread.c: Remove redundant static declarations. Replace
1678 occurrences of `PTR' with `void *'.
1679 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
1680 * top.h (quit_cover): Likewise.
1681 * defs.h (catch_errors): Likewise.
1682
349c5d5f
AC
16832002-03-18 Andrew Cagney <ac131313@redhat.com>
1684
1685 * defs.h (XMALLOC): Define.
1686 * gdb-events.sh (XMALLOC): Delete macro.
1687 * gdb-events.c, gdb-events.h: Regenerate.
1688 * gdbarch.sh (XMALLOC): Delete macro.
1689 * gdbarch.c: Regenerate.
1690 * serial.c (XMALLOC): Delete macro.
1691 * ui-file.c (XMALLOC): Ditto.
1692 * ser-unix.h (XMALLOC): Ditto.
1693 * sh-tdep.c (XMALLOC): Ditto.
1694 * ui-out.c (XMALLOC): Ditto.
1695 * utils.c (XMALLOC): Ditto.
1696 * i386-tdep.c (XMALLOC): Ditto.
1697 * gdb-events.c (XMALLOC): Ditto.
1698 * d10v-tdep.c (XMALLOC): Ditto.
1699 * cli-out.c (XMALLOC): Ditto.
1700
1701 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
1702 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
1703 * ui-file.c, ui-out.c: Ditto.
1704
7d0766f3
AC
17052002-03-18 Andrew Cagney <ac131313@redhat.com>
1706
1707 * command.h (struct cmd_list_element): Add field context.
1708 (set_cmd_context, get_cmd_context): Declare.
1709 * cli/cli-decode.h: Ditto.
1710 * cli/cli-decode.c (get_cmd_context): New function.
1711 (set_cmd_context): New function.
1712 (add_cmd): Initialize context.
1713 Part of fixing PR gdb/145 and PR gdb/146.
1714
5913bcb0
AC
17152002-03-17 Andrew Cagney <ac131313@redhat.com>
1716
1868c04e
AC
1717 * cli/cli-decode.c (cmd_type): New function.
1718 * command.h (cmd_type): Declare.
1719 * infrun.c (set_schedlock_func): Call function cmd_type.
1720 * kod.c (kod_set_os): Call cmd_type.
1721 * cris-tdep.c (cris_version_update): Use function cmd_type.
1722 (cris_mode_update, cris_abi_update): Ditto.
1723
5913bcb0
AC
1724 * command.h: (execute_cmd_post_hook): Declare.
1725 (execute_cmd_pre_hook): Declare.
1726 * cli/cli-script.c (clear_hook_in_cleanup): New function.
1727 (execute_cmd_post_hook, execute_cmd_pre_hook): New
1728 functions. Execute pre/post hook while ensuring that afterwords
1729 hook_in is cleared.
1730 * top.c (execute_command): Use execute_cmd_post_hook, and
1731 execute_cmd_pre_hook to execute pre/post commands.
1732 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
1733 hook_stop_stub.
1734 (hook_stop_stub): Call execute_cmd_pre_hook.
1735
b51450c9
AC
17362002-03-17 Andrew Cagney <ac131313@redhat.com>
1737
1738 * kod.c (kod_set_os): Revert previous change. Is called by ``info
1739 set'' and this leads to a core dump. Move xstrdup of
1740 operating_system to after check that it is not NULL.
1741
f66c9f11
AC
17422002-03-17 Andrew Cagney <ac131313@redhat.com>
1743
8e694ecf
AC
1744 * kod.c (kod_set_os): Remove unnecessary check that
1745 ``command->type'' is set_cmd.
1746
f66c9f11
AC
1747 * valprint.c (set_input_radix): Use input_radix.
1748 (set_output_radix): Use output_radix.
1749 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
1750 isn't reverted.
1751
9d01611c
AC
17522002-03-16 Andrew Cagney <ac131313@redhat.com>
1753
1754 * value.h (struct value): Delete field ``substring_addr''. Change
1755 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
1756 force_core_addr_align and force_pointer_aligh.
1757
1758 * value.h (struct value): Fix typo in above change.
9d01611c 1759
4156bb53
PS
17602002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1761
1762 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
1763 to fix internal_error from ``maintenance print architecture''.
1764
0e5e3ea6
PS
17652002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1766
1767 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
1768 for gcc versions after gcc-2.8.1.
1769
9b013045
PS
17702002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1771
1772 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
1773 for method resolution. Restore adjustment of ``this'' pointer after
1774 calling value_struct_elt, which was accidentally removed during the
1775 HP merge.
1776
376c9600
AC
17772002-03-15 Andrew Cagney <ac131313@redhat.com>
1778
1779 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
1780 value_of_register.
1781 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
1782 get_saved_register.
1783 * value.h (value_of_register): Update.
1784
a4db0f07
RH
17852002-03-14 Richard Henderson <rth@redhat.com>
1786
1787 * configure.in: Detect declaration for canonicalize_file_name.
1788 * utils.c (canonicalize_file_name): Declare, if needed.
1789 (gdb_realpath): Prefer realpath if available and usable.
1790 * config.in, configure: Rebuild.
1791
96383835
RH
17922002-03-14 Richard Henderson <rth@redhat.com>
1793
1794 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
1795 a constant array bound.
1796
1797 * MAINTAINERS: Add myself to write-after-approval.
1798
75245b24
MS
17992002-03-14 Michael Snyder <msnyder@redhat.com>
1800
1801 * symfile.c (syms_from_objfile): Return immediately if no syms.
1802 (symbol_file_add): Return immediately if no syms.
1803 (find_sym_fns): Return immediately if no syms.
1804
e641a1ca
ML
18052002-03-13 Michal Ludvig <mludvig@suse.cz>
1806
1807 * gdbserver/remote-util.c (remote_open): Print remote-side's
1808 IP address when remote debugging over the network.
7e336ba1 1809
df08bfec
DB
18102002-03-12 David O'Brien <obrien@FreeBSD.org>
1811
1812 * config/sparc/fbsd.mh: Fix copyright.
1813 * config/sparc/fbsd.mt: Likewise.
1814
9a57864f
RE
18152002-03-11 Richard Earnshaw <rearnsha@arm.com>
1816
1817 * MAINTAINERS: Fix typo in name of gdb warnings option.
1818 (x86-64): Fix formating so that this can be parsed by awk.
1819
dd7bf85e
DJ
18202002-03-10 Daniel Jacobowitz <drow@mvista.com>
1821
1822 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
1823 * defs.h: Include "gdb/signals.h".
1824 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
1825
33a0a2ac
ML
18262002-03-10 Michal Ludvig <mludvig@suse.cz>
1827
1828 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 1829 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
1830 from x86-64-tdep.h
1831
dd824b04
DJ
18322002-03-10 Daniel Jacobowitz <drow@mvista.com>
1833 Don Howard <dhoward@redhat.com>
1834
1835 * mips-tdep.c (ST0_FR): Define.
1836 (mips2_fp_compat): New function, temporarily disabled.
1837 (mips_read_fp_register_single): New function.
1838 (mips_read_fp_register_double): New function.
1839 (mips_print_register): Use them.
1840 (do_fp_register_row): Likewise.
1841
6a41ff59
AC
18422002-03-09 Andrew Cagney <ac131313@redhat.com>
1843
1844 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
1845 approval''.
1846
4ea09c10
PS
18472002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1848
1849 * stabsread.c (read_member_functions): Fix is_stub test for
1850 static member functions, improve comment.
1851
6ccc741d
RE
18522002-03-07 Richard Earnshaw <rearnsha@arm.com>
1853
1854 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
1855 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
1856 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
1857 commands that set boolean values.
1858 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
1859 (arm_rdi_resume): Always initialize PC.
1860 (arm_rdi_open): Don't use rslt as a boolean.
1861 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
1862 (arm_rdi_fetch_registers, arm_rdi_store_registers)
1863 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
1864 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
1865
438013df
AO
18662002-03-06 Alexandre Oliva <aoliva@redhat.com>
1867
1868 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
1869 * configure: Rebuilt.
1870
70ed8774
SC
18712002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1872
1873 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
1874 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
1875
5ba2abeb
AC
18762002-03-06 Andrew Cagney <ac131313@redhat.com>
1877
1878 * cli/cli-decode.c (set_cmd_completer): New function.
1879 * command.h (set_cmd_completer): Declare.
1880 * cli/cli-decode.h (set_cmd_completer): Ditto.
1881
1882 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
1883 * cli/cli-cmds.c (init_cli_cmds): Ditto.
1884 * win32-nat.c (_initialize_inftarg): Ditto.
1885 * remote-rdi.c (_initialize_remote_rdi): Ditto.
1886 * proc-api.c (_initialize_proc_api): Ditto.
1887 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
1888 * source.c (_initialize_source): Ditto.
1889 * exec.c (_initialize_exec): Ditto.
1890 * solib.c (_initialize_solib): Ditto.
1891 * top.c (init_main): Ditto.
1892 * tracepoint.c (_initialize_tracepoint): Ditto.
1893 * symfile.c (_initialize_symfile): Ditto.
1894 * printcmd.c (_initialize_printcmd): Ditto.
1895 * infcmd.c (_initialize_infcmd): Ditto.
1896 * corefile.c (_initialize_core): Ditto.
1897
f779ca99
AC
18982002-03-05 Andrew Cagney <ac131313@redhat.com>
1899
1900 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
1901
01a3934b
AC
19022002-03-05 Andrew Cagney <ac131313@redhat.com>
1903
1904 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
1905
37057839
AC
19062002-03-05 Andrew Cagney <ac131313@redhat.com>
1907
1908 * NEWS: Update headings, 5.2 has branched.
1909
c6ecbae5
DJ
19102002-03-04 Daniel Jacobowitz <drow@mvista.com>
1911
1912 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
1913 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
1914 (register_addr, REGISTER_RAW_SIZE): Likewise.
1915 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
1916 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
1917
e9f30c21
ML
19182002-03-03 Michal Ludvig <mludvig@suse.cz>
1919
1920 * MAINTAINERS (x86-64): Add myself.
1921 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
1922 changed value_ptr -> struct value *
1923
54394ac3
DB
19242002-03-01 David O'Brien <obrien@FreeBSD.org>
1925
1926 * configure.host (sparc64-*-freebsd): Add.
1927 * configure.tgt: Likewise.
1928 * config/sparc/fbsd.mh: New file.
1929 * config/sparc/fbsd.mt: Likewise.
1930 * config/sparc/nm-fbsd.h: Likewise.
1931 * config/sparc/tm-fbsd.h: Likewise.
1932
bfe95955
DJ
19332002-03-01 Daniel Jacobowitz <drow@mvista.com>
1934
1935 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
1936 regformats/reg-s390x.dat.
1937
f33c6cbf
AC
19382002-03-01 Andrew Cagney <ac131313@redhat.com>
1939
1940 * utils.c: Add FIXME explaining true/false problem.
1941
5ecaa7dd
AC
19422002-02-28 Andrew Cagney <ac131313@redhat.com>
1943
1944 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
1945
2a251cc2
MC
19462002-02-28 Michael Chastain <mec@shout.net>
1947
1948 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
1949
6a8031a3 19502002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
1951
1952 * gdbserver/linux-s390-low.c: New file.
1953 * regformats/reg-s390.dat: New file.
1954 * regformats/reg-s390x.dat: New file.
1955 * gdbserver/configure.srv: Add S/390.
1956 * gdbserver/Makefile.in: Add S/390.
1957 * configure.tgt: Enable gdbserver for S/390.
1958
ac469903
EZ
19592002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
1960
1961 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
1962 first line of the doc string for "info dos", except at the end of
1963 the sentence, since the short help stops at the first period.
1964
985cb1a3
JM
19652002-02-28 Jason Merrill <jason@redhat.com>
1966
1967 * dwarf2read.c (dwarf_cfi_name): Add new codes.
1968
c570663e
FF
19692002-02-27 Fred Fish <fnf@redhat.com>
1970
1971 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
1972 comment (dumy -> dummy).
1973
43630227
PS
19742002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1975
1976 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
1977
b84911e8
RB
19782002-02-27 Rodney Brown <rbrown64@csc.com.au>
1979
1980 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
1981
58caa3dc
DJ
19822002-02-27 Daniel Jacobowitz <drow@mvista.com>
1983
1984 * gdbserver/acconfig.h: New file.
1985 * gdbserver/i387-fp.c: New file.
1986 * gdbserver/i387-fp.h: New file.
1987 * gdbserver/linux-x86-64.c: New file.
1988 * regformats/reg-x86-64.dat: New file.
1989 * configure.tgt: Add x86_64-*-linux* gdbserver support.
1990 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
1991 * gdbserver/configure.in: Add support for regsets.
1992 * gdbserver/config.in: Regenerate.
1993 * gdbserver/configure: Regenerate.
1994 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
1995 * gdbserver/linux-low.h: New file.
1996 * gdbserver/linux-low.c: Include "linux-low.h". Add support
1997 for regsets.
1998 * gdbserver/linux-arm-low.c: Include "linux-low.h".
1999 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
2000 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
2001 * gdbserver/linux-mips-low.c: Include "linux-low.h".
2002 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
2003 * gdbserver/linux-sh-low.c: Include "linux-low.h".
2004 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
2005 "i387-fp.h". Add PTRACE_GETREGS and friends.
2006 * gdbserver/regcache.c (supply_register): New function.
2007 (supply_register_by_name): New function.
2008 (collect_register): New function.
2009 (collect_register_by_name): New function.
2010
93652174
DJ
20112002-02-27 Daniel Jacobowitz <drow@mvista.com>
2012
2013 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
2014 (config.status): Add configure.srv dependency.
2015 (server_h): Add config.h dependency.
2016
a02e4a61
DJ
20172002-02-27 Daniel Jacobowitz <drow@mvista.com>
2018
2019 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
2020 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
2021 * gdbserver/configure.srv: Change i386-*-linux* to use
2022 reg-i386-linux.o.
2023
ce0eebec
AC
20242002-02-26 Andrew Cagney <ac131313@redhat.com>
2025
2026 * x86-64-tdep.c: Re-indent. Update copyright date.
2027
82dbc5f7
AC
20282002-02-26 Andrew Cagney <ac131313@redhat.com>
2029
2030 From Michal Ludvig <mludvig@suse.cz>:
2031 * x86-64-tdep.c (value.h): Delete.
2032 (gdb_assert.h): Include.
2033 (x86_64_register_convert_to_virtual,
2034 x86_64_register_convert_to_raw ): Add check which lets only
2035 floating-point values to be converted.
2036 (value_push): Delete.
2037 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
2038 (i386_gdbarch_init): Number of register_bytes fixed.
2039
e4621584
AC
20402002-02-26 Andrew Cagney <ac131313@redhat.com>
2041
2042 * MAINTAINERS: Add x86-64 target.
2043
81a9a963
AC
20442002-02-26 Andrew Cagney <ac131313@redhat.com>
2045
2046 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
2047 * osfsolib.c (solib_map_sections): Ditto.
2048 * irix5-nat.c (solib_map_sections): Ditto.
2049 * corelow.c (gdb_check_format): Ditto.
2050 * symfile.c (symfile_bfd_open): Ditto.
2051 * solib.c (solib_map_sections): Ditto.
2052 Fix PR gdb/354.
7e336ba1 2053
0f017ab9
AC
20542002-02-26 Andrew Cagney <ac131313@redhat.com>
2055
2056 * remote.c (_initialize_remote): By default, disable ``e'' and
2057 ``E'' step out-of-range packets.
2058
75738c29
AS
20592002-02-26 Andreas Schwab <schwab@suse.de>
2060
2061 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
2062 m68k_linux_frame_saved_pc.
2063 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
2064 in_sigtramp.
2065 (SIGCONTEXT_PC_OFFSET): Remove.
2066 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
2067 m68k_linux_sigtramp_saved_pc): New functions.
2068 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
2069 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
2070 (UCONTEXT_PC_OFFSET): Define.
2071 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
2072 non-RT and RT signal trampolines.
2073
7e8ed687
RE
20742002-02-26 Richard Earnshaw <rearnsha@arm.com>
2075
2076 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
2077 (TARGET_NBPG, STACK_END_ADDR): Delete
2078 (VARIABLES_INSIDE_BLOCK): Delete.
2079
6972bc8b
AC
20802002-02-25 Andrew Cagney <ac131313@redhat.com>
2081
2082 * utils.c (perror_with_name): Make string parameter constant.
2083 (print_sys_errmsg): Ditto.
2084 (query): Ditto.
2085 * defs.h (perror_with_name): Update.
2086 (print_sys_errmsg): Update.
2087 (query): Update.
2088
aa32f823
DJ
20892002-02-25 Daniel Jacobowitz <drow@mvista.com>
2090
2091 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
2092 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
2093
19caaa45
PS
20942002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2095
2096 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
2097 if it already matches the current architecture from the exec file.
2098 Include arch-utils.h for gdbarch_info_init prototype.
2099 * Makefile.in (rs6000-nat.o): Update dependencies.
2100
d951901f
EZ
21012002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
2102
2103 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
2104 list of exported variables.
2105
7ea81414
DJ
21062002-02-24 Daniel Jacobowitz <drow@mvista.com>
2107
2108 * gdbserver/configure.srv: New file.
2109 * gdbserver/configure.in: Use configure.srv instead
2110 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
2111 from it.
2112 * gdbserver/configure: Regenerated.
2113 * gdbserver/terminal.h: New file.
2114 * gdbserver/Makefile.in: Update for configure changes. Remove
2115 more unneeded include paths.
2116
080fe24b
AC
21172002-02-24 Andrew Cagney <ac131313@redhat.com>
2118
2119 From wiz at danbala:
2120 * config/sparc/tm-sp64.h: Fix grammar and typos.
2121 Fix PR gdb/287.
2122
8605d56e
AC
21232002-02-24 Andrew Cagney <ac131313@redhat.com>
2124
2125 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
2126 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
2127 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
2128 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
2129 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
2130 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
2131 * s390-tdep.c: Ditto.
92362027
AC
2132 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
2133 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
2134 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
2135 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
2136 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
2137 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
2138 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
2139 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
2140 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
2141 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 2142 Fix PR gdb/378.
7e336ba1 2143
8ed32cc0
AC
21442002-02-23 Andrew Cagney <ac131313@redhat.com>
2145
a3007b6f
AC
2146 * lin-thread.c: Delete file.
2147 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
2148 to gdb_proc_service.h.
2149 * configure: Re-generate.
2150
50a9e2f1
AC
2151 * ocd.c (ocd_open): Do not try to open the "ocd" device.
2152 * serial.c (serial_open): Delete check for "ocd".
2153 Fix PR gdb/349.
2154
8b6e7932
AC
2155 * Makefile.in (linux-thread.o): Delete target.
2156 * linux-thread.c: Delete file.
2157
d155c46b
AC
2158 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
2159 renamed SH files to be consistent.
2160
8ed32cc0
AC
2161 * symtab.c (sort_search_symbols): Use xfree.
2162
0e18d038
RE
21632002-02-23 Richard Earnshaw <rearnsha@arm.com>
2164
2165 * arm-linux-tdep.c (arm_linux_init_abi): Register
2166 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
2167 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
2168 definition with undef, since we don't want the sysvr4 definition.
2169 (SKIP_TRAMPOLINE_CODE): Likewise.
2170
27aac7ff
AC
21712002-02-23 Andrew Cagney <ac131313@redhat.com>
2172
2173 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
2174
2175 * configure.in: (AC_CHECK_FUNCS) Added test for
2176 canonicalize_file_name Regenerated.
2177 * config.in, configure: Regenerated.
2178 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
2179 defined use canonicalize_file_name.
7e336ba1 2180
65a6e0ee
MC
21812002-02-23 Michael Chastain <mec@shout.net>
2182
2183 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
2184
47b95330
AC
21852002-02-23 Andrew Cagney <ac131313@redhat.com>
2186
2187 * README: Remove references to cygnus.com.
2188 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
2189 dot com'' form. Remove references to cygnus.com and sourceware.
2190
696f451b
AC
21912002-02-23 Andrew Cagney <ac131313@redhat.com>
2192
2193 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
2194 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
2195 1003.1-2001 no longer allows "head -1".
2196 * gdb/Makefile.in (version.c): Likewise.
2197 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
2198 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
2199 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
2200
bbaca940
AC
22012002-02-23 Andrew Cagney <ac131313@redhat.com>
2202
2203 * cli/cli-decode.c (cmd_cfunc_eq): New function.
2204 * command.h (cmd_cfunc_eq): Declare.
2205 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
2206
2207 * cli/cli-cmds.h (is_complete_command): Change parameter to a
2208 ``struct cmd_list_element *''.
2209 * cli/cli-cmds.c (is_complete_command): Update. Use
2210 cmd_cfunc_eq.
2211 * top.c (execute_command): Pass the command to
2212 is_complete_command.
2213 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
2214
b8b8b047
AC
22152002-02-23 Andrew Cagney <ac131313@redhat.com>
2216
2217 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
2218 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
2219 architecture defines.
2220 * s390-tdep.c (s390_gdbarch_init): Likewise.
2221
19d3fc80
RE
22222002-02-23 Richard Earnshaw <rearnsha@arm.com>
2223
2224 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
2225 (arm_linux_push_arguments): Likewise.
2226 (arm_linux_init_abi): Register them. Also register linux-specific
2227 call_dummy_words.
2228 (find_minsym_and_objfile): Use strcmp, not STREQ.
2229 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
2230 (arm_linux_call_dummy_words): Delete declaration.
2231 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
2232 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
2233 declarations.
2234 (LOWEST_PC): Delete.
2235
3ab13650
PS
22362002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2237
2238 * maint.c (print_section_info): Do not prepend `0x' to filepos
2239 output, it will be handled by local_hex_string_custom.
2240
19d3fc80 22412002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
2242
2243 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
2244 (store_newfpe_double, store_newfpe_extended, store_fpregister)
2245 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
2246
d85a5daf
JB
22472002-02-22 Jim Blandy <jimb@redhat.com>
2248
2249 Indicate that the bcache functions don't change the strings
2250 they're passed.
2251 * bcache.h (bcache, hash): Add `const' keywords to declarations.
2252 * bcache.c (bcache, hash): Add `const' keywords to definitions.
2253
eeb25b8a
PM
22542002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
2255
2256 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
2257
6badb179
CF
22582002-02-21 Christopher Faylor <cgf@redhat.com>
2259
2260 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
2261 find the complete path to a loaded DLL.
2262
e8717518
FF
22632002-02-21 Fred Fish <fnf@redhat.com>
2264
2265 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
2266 that marks the end of the range of a function, enter a line number
2267 entry that has a line number of zero and a PC offset that matches
2268 the end of the function. This starts a range of PC's for which no
2269 line number information is known.
2270 * symtab.c (find_pc_sect_line): If our best fit is in a range of
2271 PC's for which no line number info is found (line number is zero)
2272 then we didn't find any valid line information.
2273 * symtab.h: Document use of zero line number entry.
2274
9abe5450
EZ
22752002-02-21 Elena Zannoni <ezannoni@redhat.com>
2276
2277 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
2278 (have_ptrace_getvrregs): Define for run time checks.
2279 (gdb_vrregset_t): New type for Altivec register handling.
2280 (fetch_register, store_register): Fetch/store altivec register
2281 when needed.
2282 (fetch_altivec_register, store_altivec_register): New functions.
2283 (supply_vrregset, fill_vrregset): New functions.
2284 (fetch_altivec_registers, store_altivec_registers): New functions.
2285 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
2286 registers as well.
2287
aaa38bb5
AJ
22882002-02-21 Jiri Smid <smid@suse.cz>
2289
2290 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
2291
b34db576
RE
22922002-02-21 Richard Earnshaw <rearnsha@arm.com>
2293
2294 * Makefile.in (armnbsd-nat.o): Update dependencies.
2295 * armnbsd-nat.c (supply_gregset): New function. Common code to
2296 supply the integer register set.
2297 (supply_fparegset): New function. Similar for FPA registers.
2298 (fetch_regs, fetch_fp_regs): Use them.
2299 (fetch_core_registers): Likewise.
2300 (fetch_elfcore_registers): New function.
2301 (arm_netbsd_elfcore_fns): New core-file type specification.
2302 (_initialize_arm_netbsd_nat): Register it.
2303
3e56fc4b
RE
23042002-02-21 Richard Earnshaw <rearnsha@arm.com>
2305
2306 * armnbsd-nat.c: Include gdbcore.h.
2307 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
2308 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
2309 'void' to declaration, to shut up ARI.
2310 (fetch_core_registers): Make static. Rewrite using supply_register.
2311 (arm_netbsd_core_fns): New core-file type specification.
2312 (_initialize_arm_netbsd_nat): New function.
2313
097f6b0b
CF
23142002-02-21 Christopher Faylor <cgf@redhat.com>
2315
2316 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
2317 value.
2318
c914e0cc
CF
23192002-02-20 Christopher Faylor <cgf@redhat.com>
2320
2321 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
2322 fails.
2323
385fa495
DJ
23242002-02-20 Daniel Jacobowitz <drow@mvista.com>
2325
2326 * jv-exp.y (parse_number): Change type of implicit longs
2327 to builtin_type_uint64.
2328
e5f1222d
DJ
23292002-02-20 Daniel Jacobowitz <drow@mvista.com>
2330
2331 * gdbserver/linux-low.c (mywait): Change argument to waitpid
2332 to be an integer instead of a `union wait'.
2333
75c9abc6
DJ
23342002-02-20 Daniel Jacobowitz <drow@mvista.com>
2335
2336 * mips-linux-nat.c: Call the operating system GNU/Linux.
2337 * mips-linux-tdep.c: Likewise.
2338 * mips-tdep.c: Likewise.
2339
551792a5
DJ
23402002-02-20 Daniel Jacobowitz <drow@mvista.com>
2341
2342 Fix PR gdb/265.
2343 * jv-exp.y (parse_number): Handle 64-bit integers.
2344
ee6e2b82
DJ
23452002-02-20 Daniel Jacobowitz <drow@mvista.com>
2346
2347 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
2348 AC_STDC_HEADERS to AC_HEADER_STDC.
2349 * gdbserver/configure: Regenerated.
2350
a48442a0
RE
23512002-02-20 Richard Earnshaw <rearnsha@arm.com>
2352
2353 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
2354 is defined.
2355 * sparc-tdep.c (get_longjmp_target): Likewise.
2356
fe419ffc
RE
23572002-02-20 Richard Earnshaw <rearnsha@arm.com>
2358
2359 * News: Add news about ARM and Multi-arch. Mention the new target
2360 arm*-*-netbsd*.
2361
5832ed7e
JB
23622002-02-19 Jim Blandy <jimb@redhat.com>
2363
2364 * stabsread.c (error_type_complaint): Improve error message.
2365
84563040
DJ
23662002-02-19 Daniel Jacobowitz <drow@mvista.com>
2367
2368 * gdbserver/README: Update documentation.
2369 * gdbserver/configure.in: Update configury to match documentation.
2370 * gdbserver/Makefile.in: Likewise.
2371 * gdbserver/configure: Regenerated.
2372 * gdbserver/aclocal.m4: New file, generated by aclocal.
2373 * gdbserver/config.in: New file, generated by autoheader.
2374
375fd65b
RE
23752002-02-19 Richard Earnshaw <rearnsha@arm.com>
2376
2377 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
2378 armnbsd-nat.c.
2379
08216dd7
RE
23802002-02-19 Richard Earnshaw <rearnsha@arm.com>
2381
2382 * arm-tdep.h (enum arm_float_model): New enum.
2383 (struct gdbarch_tdep): Add fp_model.
2384 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
2385 up floating-point conversions until we know the floating-point model
2386 in use by the inferior. Don't complain about being unable to
2387 determine the ABI of the inferior when we don't have one.
2388 (arm_extract_return_value): Support different floating-point models.
2389 (arm_store_return_value): Likewise.
aaa38bb5 2390 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
2391 ARM_FLOAT_SOFT.
2392 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
2393
65d6d66a
PS
23942002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2395
2396 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
2397 of ``current_gdbarch''.
2398
47221191
RE
23992002-02-19 Richard Earnshaw <rearnsha@arm.com>
2400
2401 * armnbsd-nat.c : ANSIfy all function declarations.
2402 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
2403 (fetch_inferior_registers): Re-implement in terms of above.
2404 (store_register, store_regs, store_fp_register, store_fp_regs): New.
2405 (store_inferior_registers): Re-implement in terms of above.
2406
fdf39c9a
RE
24072002-02-19 Richard Earnshaw <rearnsha@arm.com>
2408
aaa38bb5 2409 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
2410 kernel.
2411 * arm-linux-tdep.c: Likewise.
2412 * config/arm/tm-linux.h: Likewise.
2413
93247f88
RE
24142002-02-19 Richard Earnshaw <rearnsha@arm.com>
2415
2416 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
2417 * config/arm/nbsd.mt (TM_FILE): Delete.
2418 * config/arm/tm-nbsd.h: Delete.
2419
d7b486e7
RE
24202002-02-19 Richard Earnshaw <rearnsha@arm.com>
2421
2422 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
2423 Initialize CALL_DUMMY_LENGTH.
2424
41d39a95
RE
24252002-02-19 Richard Earnshaw <rearnsha@arm.com>
2426
2427 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
2428 function.
2429 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 2430 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
2431 defines one thing and that is incorrect for this port.
2432 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
2433
e1195560
PM
24342002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
2435
2436 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
2437
c1748f97
PM
24382002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
2439
2440 * win32-nat.c (display_selector): New function. Displays information
2441 about the information returned by GetThreadSelectorEntry API function.
2442 (display_selectors): New function. Displays the infomation of
2443 the selector given as argument, or of CS, DS ans FS selectors
2444 if no argument is given.
2445 ( _initialize_inftarg): Add "w32" as info prefix command.
2446 Add "info w32 selector" as command calling display_selectors.
2447
e41e6bbf
PM
24482002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
2449
2450 * i386-tdep.c (get_longjmp_target): Fix compilation failure
2451 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
2452 if not defined.
2453
0d3a9f48
RE
24542002-02-18 Richard Earnshaw <rearnsha@arm.com>
2455
2456 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
2457
3fb4b924
RE
24582002-02-18 Richard Earnshaw <rearnsha@arm.com>
2459
2460 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
2461 (arm_fix_call_dummy): Call it.
2462 (arm_call_dummy_breakpoint_offset): Delete.
2463 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
2464 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
2465
7f55af32
AC
24662002-02-18 Andrew Cagney <ac131313@redhat.com>
2467
2468 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
2469 Default to func_frame_chain_valid.
2470 * gdbarch.h, gdbarch.c: Re-generate.
2471 * frame.h (FRAME_CHAIN_VALID): Delete definition.
2472
05f13b9c
EZ
24732002-02-18 Elena Zannoni <ezannoni@redhat.com>
2474
2475 * ppc-linux-nat.c: Update copyright.
2476 (fetch_register, store_register): Add tid parameter, don't compute
2477 tid here.
2478 (fetch_ppc_registers, store_ppc_registers): Add tid
2479 parameter. Pass it along to callees.
2480 (fetch_inferior_registers, store_inferior_registers): Compute tid
2481 here, and pass it to calleed functions.
2482 (fill_gregset, supply_fpregset): Clean up formatting.
2483
d7afb4c9
RE
24842002-02-18 Richard Earnshaw <rearnsha@arm.com>
2485
2486 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
2487 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
2488
9df628e0
RE
24892002-02-18 Richard Earnshaw <rearnsha@arm.com>
2490
2491 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
2492 * gdbarch.c gdbarch.h: Regenerate.
2493 * breakpoint.c (create_longjmp_breakpoint): Always compile this
2494 function.
2495 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
2496 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
2497 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
2498
2499 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
2500 * arm-tdep.c (arm_get_longjmp_target): New function.
2501 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
2502 this to a positive value register arm_get_longjmp_target as the
2503 longjmp handler.
2504 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
2505 (arm_linux_init_abi): Set up longjmp description in tdep.
2506 * armnbsd-nat.c (get_longjmp_target): Delete.
2507 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
2508 description in tdep.
2509 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
2510 (get_longjmp_target): Delete declaration.
2511 (GET_LONGJMP_TARGET): Delete.
2512 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
2513 (GET_LONGJMP_TARGET): Delete.
2514
57bc8964
KB
25152002-02-17 Kevin Buettner <kevinb@redhat.com>
2516
2517 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
2518 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
2519 of ``current_gdbarch''.
2520
83d31a92
TT
25212002-02-17 Tom Tromey <tromey@redhat.com>
2522
2523 * cli/cli-cmds.c (compare_strings): New function.
2524 (complete_command): Only print each unique item once.
2525 * completer.h (complete_line): Declare.
2526 * completer.c (complete_line): New function.
2527 (line_completion_function): Use it.
2528
17ef5d92
AC
25292002-02-16 Andrew Cagney <ac131313@redhat.com>
2530
2531 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
2532 * gdbarch.h, gdbarch.c: Re-generate.
2533
491b8946
DJ
25342002-02-16 Daniel Jacobowitz <drow@mvista.com>
2535
2536 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
2537
25382002-02-16 Daniel Jacobowitz <drow@mvista.com>
2539
2540 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
2541 * valops.c (value_arg_coerce): Don't take the address of a reference
2542 to convert an argument to a reference.
2543
dfe7f3ac
CF
25442002-02-15 Christopher Faylor <cgf@redhat.com>
2545
2546 * win32-nat.c (get_image_name): New function.
2547 (handle_load_dll): Use get_image_name function.
2548 (get_child_debug_event): Avoid registering debug events until possibly
2549 execed process is started.
2550 (child_create_inferior): Allow invocation via shell so that command
2551 line redirection, etc. works ok.
2552 (_initialize_inftarg): Add new command: "set shell" to control whether
2553 a shell is used to start a process.
2554
1d33e73a
DJ
25552002-02-15 Daniel Jacobowitz <drow@mvista.com>
2556
2557 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
2558 instead of find_register_by_number.
2559 (cannot_store_register): Likewise.
2560
48cd0caa
PM
25612002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
2562
aaa38bb5 2563 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
2564 fprintf_unfiltered (gdb_stderr, ...).
2565
8656e7d8
DJ
25662002-02-15 Daniel Jacobowitz <drow@mvista.com>
2567
2568 * gdbserver/gdbserver.1: Document --attach.
2569
66e810cd
RE
25702002-02-15 Richard Earnshaw <rearnsha@arm.com>
2571
2572 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
2573 descriptions.
2574 * arm-tdep.c (arm_default_arm_le_breakpoint)
2575 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
2576 (arm_default_thumb_be_breakpoint): New. Initialize them from
2577 traditional breakpoint defines.
2578 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
2579 (arm_gdbarch_init): Initialize new breakpoint variables.
2580 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
2581 (arm_linux_init_abi): Initialize linux-specific breakpoint.
2582 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
2583 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
2584 code out to ...
2585 (arm_netbsd_init_abi_common): ... here; new function.
2586 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
2587 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
2588 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
2589 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
2590
97e03143
RE
25912002-02-15 Richard Earnshaw <rearnsha@arm.com>
2592
2593 * arm-tdep.h (enum arm_abi): New enum.
2594 (struct gdbarch_tdep): New structure.
2595 (LOWEST_PC): Provide a default.
2596 (arm_gdbarch_register_os_abi): Declare new function.
2597 * arm-tdep.c (arm_abi_names): New array.
2598 (process_note_abi_tag_sections): New function.
2599 (get_elfosabi): New function.
2600 (arm_gdbarch_register_os_abi): New function.
2601 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
2602 support for that ABI has been built in, then call the appropriate
2603 configuration routine. Use gdbarch_num_regs() to get the number
2604 of registers.
2605 (arm_dump_tdep): New function.
2606 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
2607 place-holder functions.
2608 (_initialize_arm_tdep): Register them.
2609 * config/arm/tm-arm.h (LOWEST_PC): Delete.
2610
2611 * armnbsd-tdep.c: New file.
2612 * Makefile.in (armnbsd-tdep.o): Add dependencies.
2613 * config/arm/nbsd.mt (TDEPFILES): Add it.
2614 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
2615
2616 * armnbsd-nat.c: Include regcache.h.
2617 * Makefile.in (armnbsd-nat.o): Update dependency list.
2618
2619 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
2620
ad68be46
DJ
26212002-02-14 Daniel Jacobowitz <drow@mvista.com>
2622
2623 * gdbserver/Makefile.in: Fix typos in target rules.
2624
003d6d1d
DJ
26252002-02-14 Daniel Jacobowitz <drow@mvista.com>
2626
aaa38bb5 2627 Fix part of PR gdb/267.
003d6d1d
DJ
2628 * linespec.c (find_methods): Handle constructors specially for now.
2629
6b230f1b
CV
26302002-02-14 Corinna Vinschen <vinschen@redhat.com>
2631
2632 * arm-tdep.c (arm_push_arguments): Eliminate special float type
2633 handling.
2634 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
2635 standard_coerce_float_to_double().
2636
1ea98d12
CF
26372002-02-14 Christopher Faylor <cgf@redhat.com>
2638
2639 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
2640 GDBINIT_FILENAME.
2641
dd47e6fd
EZ
26422002-02-14 Elena Zannoni <ezannoni@redhat.com>
2643
2644 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
2645 find_variant_by_name, because it confuses the multiarch
2646 framework. Return NULL if there isn't an architecture with the
2647 user supplied name, instead of forcing a different one without
2648 recording the change with the multiarch machinery.
2649 (find_variant_by_name): Delete.
2650
d7e39b9e
PS
26512002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2652
2653 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
2654 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
2655
76e42a4f
MH
26562002-02-13 Martin M. Hunt <hunt@redhat.com>
2657
aaa38bb5 2658 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
2659 print_frame_info_listing_hook, set current_source_symtab.
2660
0a30fbc4
DJ
26612002-02-14 Daniel Jacobowitz <drow@mvista.com>
2662
2663 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
2664 and remove unused $(INCLUDE_DIR).
2665 Add regcache.c to OBS.
2666 Add generated register protocol files to clean target.
2667 Update dependencies for new objects, obsolete old target code.
2668
2669 * gdbserver/linux-low.c: Remove all platform-specific code to
2670 new files. Remove various dead code. Update to use regcache
2671 functionality.
2672 * gdbserver/remote-utils.c (fromhex): Add return statement
2673 to quiet warning.
2674 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
2675 constant.
2676 (input_interrupt): Add integer parameter to match prototype
2677 of a signal handler.
2678 (outreg): Use register_data ().
2679 (prepare_resume_reply): Use gdbserver_expedite_regs.
2680 * gdbserver/server.c (main): Dynamically allocate own_buf because
2681 PBUFSIZ is no longer constant. Use registers_to_string () and
2682 registers_from_string ().
2683 * gdbserver/server.h: No longer include "defs.h". Add prototypes
2684 for error (), fatal (), and warning (). Update definition of
2685 PBUFSIZ to use regcache functionality. Add include guard.
2686 * gdbserver/utils.c (fatal): Add missing ``const''.
2687 (warning): New function.
2688
2689 * regformats/regdat.sh: Include "regcache.h" in generated files.
2690 Provide init_registers () function.
2691 * regformats/regdef.h: Add prototype for set_register_cache ().
2692 Add include guard.
2693
2694 * gdbserver/linux-arm-low.c: New file.
2695 * gdbserver/linux-i386-low.c: New file.
2696 * gdbserver/linux-ia64-low.c: New file.
2697 * gdbserver/linux-m68k-low.c: New file.
2698 * gdbserver/linux-mips-low.c: New file.
2699 * gdbserver/linux-ppc-low.c: New file.
2700 * gdbserver/linux-sh-low.c: New file.
2701
2702 * gdbserver/regcache.c: New file.
2703 * gdbserver/regcache.h: New file.
2704
2705 * gdbserver/low-linux.c: Removed obsolete file.
2706
4cc841d0
DJ
27072002-02-14 Daniel Jacobowitz <drow@mvista.com>
2708
2709 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
2710 * config/i386/linux.mt: Likewise.
2711 * config/ia64/linux.mt: Likewise.
2712 * config/m68k/linux.mh: Likewise.
2713 * config/powerpc/linux.mh: Likewise.
2714 * config/mips/linux.mt: Likewise.
2715
2716 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
2717
2718 * config/i386/i386lynx.mh: Mark gdbserver variables
2719 as (currently) obsolete for this target.
2720 * config/i386/nbsd.mt: Likewise.
2721 * config/i386/nbsdelf.mt: Likewise.
2722 * config/m32r/m32r.mt: Likewise.
2723 * config/m68k/m68klynx.mh: Likewise.
2724 * config/m68k/nbsd.mt: Likewise.
2725 * config/m68k/sun3os4.mh: Likewise.
2726 * config/mips/vr5000.mt: Likewise.
2727 * config/ns32k/nbsd.mt: Likewise.
2728 * config/pa/hppabsd.mh: Likewise.
2729 * config/pa/hppaosf.mh: Likewise.
2730 * config/powerpc/nbsd.mt: Likewise.
2731 * config/rs6000/rs6000lynx.mh: Likewise.
2732 * config/s390/s390.mt: Likewise.
2733 * config/s390/s390x.mt: Likewise.
2734 * config/sparc/sparclynx.mh: Likewise.
2735 * config/sparc/sun4os4.mh: Likewise.
2736 * config/i386/x86-64linux.mt: Likewise.
2737 * config/sparc/linux.mh: Likewise.
2738
a85f51e7
DJ
27392002-02-14 Daniel Jacobowitz <drow@mvista.com>
2740
2741 * configure.tgt: Configure gdbserver only for known working
2742 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
2743 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
2744 SUBDIRS if it is configured. Update comment for ${nativefile}.
2745 * configure: Regenerated.
2746
65554fef
MS
27472002-02-13 Michael Snyder <msnyder@redhat.com>
2748
670a52db
MS
2749 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
2750
6dbdc4a3
MS
2751 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
2752 (default_gcore_mach): Just return 0, work around a problem in bfd.
2753 (default_gcore_target): OK to return NULL if exec_bfd is null.
2754 (make_mem_sec): Use a cast, avoid a warning.
2755
2756 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 2757 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
2758 sizeof (host pointer) != sizeof (target pointer)).
2759 (procfs_make_note_section): Avoid overflow in psargs string.
2760
aaa38bb5 2761 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
2762 implementation return an error.
2763
27642002-02-13 Rodney Brown <rbrown64@csc.com.au>
2765
2766 * procfs.c (procfs_make_note_section): Provide a default definition
2767 (for alpha-dec-osf4.0f). Fix typos.
2768
1e4d76e7
EZ
27692002-02-13 Elena Zannoni <ezannoni@redhat.com>
2770
2771 * linux-proc.c: Add include of regcache.h.
2772 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
2773
b6d1a1d5
AC
27742002-02-13 Andrew Cagney <ac131313@redhat.com>
2775
2776 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
2777 * memattr.c (create_mem_region): Disallow useless empty region.
2778 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 2779 non-overlapping.
b6d1a1d5 2780
6c6ea35e
MC
27812002-02-13 Michael Chastain <mec@shout.net>
2782
2783 * defs.h: Kill CONST_PTR.
2784 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
2785 * c-lang.c (c_builtin_types): Likewise.
2786 * ch-lang.c (ch_builtin_types): Likewise.
2787 * f-lang.c (f_builtin_types): Likewise.
2788 * language.c (unknown_builtin_types): Likewise.
2789 * m2-lang.c (m2_builtin_types): Likewise.
2790 * p-lang.c (pascal_builtin_types): Likewise.
2791 * scm-lang.c (c_builtin_types): Likewise.
2792
3e0b0f48
KS
27932002-02-13 Keith Seitz <keiths@redhat.com>
2794
2795 * arm-tdep.h (arm_get_next_pc): Add declaration.
2796
67255d04
RE
27972002-02-13 Richard Earnshaw <rearnsha@arm.com>
2798
2799 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
2800 with other related struct-returning functions.
2801 (arm_extract_struct_value_address): New function.
2802 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
2803 initialize float_format, double_format and long_double_format as
2804 appropriate to the endianness of the target.
2805 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
2806 (arm_use_struct_convention): Delete declaration.
2807 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
2808
079777f6
KS
28092002-02-13 Keith Seitz <keiths@redhat.com>
2810
2811 * defs.h (core_addr_to_string_nz): New function.
2812
34588f23
MK
28132002-02-13 Mark Kettenis <kettenis@gnu.org>
2814
2815 Apply missing bits of 2002-01-15 patch.
2816 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
2817 (fill_fpregset): Use i387_fill_fsave.
2818
49b563f9
KS
28192002-02-12 Keith Seitz <keiths@redhat.com>
2820
49b563f9
KS
2821 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
2822 (core_addr_to_string_nz): New function.
2823
aeb98c60
RE
28242002-02-11 Richard Earnshaw <rearnsha@arm.com>
2825
2826 * arm-linux-nat.c: Really include arm-tdep.h.
2827 * config/arm/tm-linux.h (struct type, struct value): Declare.
2828
65554fef
MS
28292002-02-11 Michael Snyder <msnyder@redhat.com>
2830
2831 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
2832 (gcore section): Ifdef for Solaris and Unixware only.
2833 (procfs_do_thread_registers): Unixware needs one lwpstatus
2834 per thread (not one prstatus or pstatus).
2835 (procfs_make_note_section): Iterate only over kernel threads (lwps),
2836 not over all gdb threads. For unixware, call elfcore_write_pstatus
2837 once before iterating over threads.
2838
34e8f22d
RE
28392002-02-11 Richard Earnshaw <rearnsha@arm.com>
2840
2841 * arm-tdep.h: New file.
2842 * arm-tdep.c: Include arm-tdep.h.
2843 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
2844 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
2845 (arm_print_float_info, arm_register_type, convert_to_extended)
2846 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
2847 (arm_extract_return_value, arm_register_name): Make static.
2848 (arm_software_single_step): Similarly. Fix types in declaration.
2849 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
2850 (arm_store_return_value, arm_store_struct_return): New functions.
2851 (arm_gdbarch_init): Register the above functions. Also register
2852 call_dummy_start_offset, sizeof_call_dummy_words,
2853 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
2854 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 2855 max_register_virtual_size, register_size. Set up
34e8f22d
RE
2856 prologue_cache.saved_regs here, rather than ...
2857 (_initialize_arm_tdep): ... here.
2858 * config/arm/tm-arm.h (struct type, struct value): Delete forward
2859 declarations.
2860 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
2861 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
2862 (arm_print_float_info, arm_register_type, convert_to_extended)
2863 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
2864 (arm_extract_return_value, arm_register_name): Delete declarations.
2865 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
2866 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
2867 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
2868 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
2869 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
2870 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
2871 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
2872 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
2873 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
2874 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
2875 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
2876 (arm_get_next_pc): No-longer static -- these are needed by the RDI
2877 interface.
2878 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
2879 * remote-rdi.c remote-rdp.c: Likewise.
2880 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
2881 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
2882 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
2883 definition.
2884
2885 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
2886 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
2887 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
2888 from non-ARM_ prefixed definitions.
2889 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
2890 all uses of above.
2891 * remote-rdi.c remote-rdp.c: Likewise.
2892 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
2893
148754e5
RE
28942002-02-11 Richard Earnshaw <rearnsha@arm.com>
2895
2896 * arm-tdep.c (arm_frameless_function_invocation)
2897 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
2898 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
2899 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
2900 (arm_pop_frame, arm_get_next_pc): Make static.
2901 (arm_gdbarch_init): Register above in gdbarch structure.
2902 (arm_read_fp): Renamed from arm_target_read_fp.
2903 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
2904 * config/arm/tm-arm.h (arm_frameless_function_invocation)
2905 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
2906 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
2907 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
2908 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
2909 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
2910 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
2911 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
2912 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
2913 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 2914
434d2d4f
DJ
29152002-02-10 Daniel Jacobowitz <drow@mvista.com>
2916
2917 * symtab.c (compare_search_syms): New function.
2918 (sort_search_symbols): New function.
2919 (search_symbols): Sort symbols after searching rather than
2920 before.
2921
55241689
AC
29222002-02-10 Andrew Cagney <ac131313@redhat.com>
2923
2924 * NEWS: Linux -> GNU/Linux.
2925
028c194b
AC
29262002-02-10 Andrew Cagney <ac131313@redhat.com>
2927
2928 * gdbarch.sh: For for level one methods, disallow a definition
2929 when partially multi-arched. Add comments explaining rationale.
2930 * gdbarch.h: Re-generate.
2931
6acf50cd
AC
29322002-02-10 Andrew Cagney <ac131313@redhat.com>
2933
2934 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
2935 multi-arch partial.
aaa38bb5 2936
50248794
AC
29372002-02-10 Andrew Cagney <ac131313@redhat.com>
2938
2939 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
2940 field. Use diff -u.
2941 * gdbarch.c: Re-generate.
2942
c30e0066
AC
29432002-02-10 Andrew Cagney <ac131313@redhat.com>
2944
9b56c5f3 2945 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
2946 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
2947 partial.
2948
6e6d6484
AC
29492002-02-10 Andrew Cagney <ac131313@redhat.com>
2950
2951 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
2952 multi-arch partial.
2953 (PUSH_ARGUMENTS): Switch to using predefault.
2954 * gdbarch.c: Regenerate.
2955
c203844d
AC
29562002-02-10 Andrew Cagney <ac131313@redhat.com>
2957
2958 * valops.c (PUSH_ARGUMENTS): Delete definition.
2959 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
2960 partial. Default to default_push_arguments.
2961 * gdbarch.h, gdbarch.c: Regenerate.
2962
b5a2688f
AC
29632002-02-09 Andrew Cagney <ac131313@redhat.com>
2964
2965 * defs.h (throw_exception): Rename return_to_top_level. Update
2966 comments.
2967 * utils.c (error_stream, internal_verror, quit): Ditto.
2968 * top.c (throw_exception, catcher): Ditto.
2969 * sparclet-rom.c (sparclet_load): Ditto.
2970 * remote.c (interrupt_query, minitelnet): Ditto.
2971 * remote-sds.c (interrupt_query): Ditto.
2972 * remote-mips.c (mips_error, mips_kill): Ditto.
2973 * ocd.c (interrupt_query): Ditto.
2974 * monitor.c (monitor_interrupt_query): Ditto.
2975 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
2976 * target.h: Update comment.
aaa38bb5 2977
b5a2688f 2978 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 2979
2fa5c1e0
AC
29802002-02-09 Andrew Cagney <ac131313@redhat.com>
2981
2982 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
2983 default_double_format.
2984 * gdbarch.h, gdbarch.c: Re-generate.
2985 * findvar.c (floatformat_unknown): Delete variable definition.
2986 * doublest.h (floatformat_unknown): Delete variable declaration.
2987
da966255
JB
29882002-02-09 Jim Blandy <jimb@redhat.com>
2989
2990 * stabsread.c (read_type): Add code to parse Sun's syntax for
2991 prototyped function types.
2992
123a4891
AC
29932002-02-09 Andrew Cagney <ac131313@redhat.com>
2994
2995 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
2996 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
2997
fb39c8f3
PS
29982002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2999
3000 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
3001 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
3002 now _initialize_xcoffsolib gets called again and overrides the
3003 commands from solib.c in a native configuration.
3004
0b87a11d
MK
30052002-02-09 Mark Kettenis <kettenis@gnu.org>
3006
3007 * doublest.c (store_typed_floating): Don't try to return a value.
3008 Fixes PR gdb/290.
3009
bdc2fc72
JB
30102002-02-08 Jim Blandy <jimb@redhat.com>
3011
3012 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
3013 is prototyped and has no arguments, print its argument list as
3014 `(void)'.
3015
da69bbcf
CD
30162002-02-08 Chris Demetriou <cgd@broadcom.com>
3017
3018 * MAINTAINERS (write-after-approval): Add myself.
3019 (paper-trail): I've escaped!
aaa38bb5 3020
b69571f5
CF
30212002-02-08 Christopher Faylor <cgf@redhat.com>
3022
3023 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
3024 changes.
3025 (_initialize_check_for_gdb_ini): Ditto.
3026
f6871398
MH
30272002-02-08 Martin M. Hunt <hunt@redhat.com>
3028
3029 * win32-nat.c (cygwin_pid_to_str): Fix typo.
3030 xaprintf -> xasprintf.
3031
4e52d31c
PM
30322002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
3033
3034 * win32-nat.c: Remove use of printf and sprintf functions.
3035
39bbf761
RE
30362002-02-08 Richard Earnshaw <rearnsha@arm.com>
3037
3038 * arm-tdep.c (arm_frame_chain_valid): Make static.
3039 (arm_push_arguments): Likewise.
3040 (arm_gdbarch_init): New function.
3041 (_initialize_arm_tdep): Call it.
3042 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
3043 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
3044 (FRAME_CHAIN_VALID): Delete.
3045 (arm_frame_chain_valid): Delete declaration.
3046 (PUSH_ARGUMENTS): Delete.
3047 (arm_push_arguments): Delete declaration.
3048 (CALL_DUMMY_P): Delete.
3049
9c9532c9
CV
30502002-02-08 Andrew Cagney <ac131313@redhat.com>
3051 Corinna Vinschen <vinschen@redhat.com>
3052
3053 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
3054 on builtin float types.
3055
4e8f7a8b
DJ
30562002-02-08 Daniel Jacobowitz <drow@mvista.com>
3057
3058 * utils.c: Include <curses.h> before "bfd.h".
3059 * tui/tui-hooks.c: Likewise.
3060 * tui/tui.c: Likewise.
3061 * tui/tuiCommand.c: Likewise.
3062 * tui/tuiData.c: Likewise.
3063 * tui/tuiDataWin.c: Likewise.
3064 * tui/tuiDisassem.c: Likewise.
3065 * tui/tuiGeneralWin.c: Likewise.
3066 * tui/tuiIO.c: Likewise.
3067 * tui/tuiLayout.c: Likewise.
3068 * tui/tuiRegs.c: Likewise.
3069 * tui/tuiSource.c: Likewise.
3070 * tui/tuiSourceWin.c: Likewise.
3071 * tui/tuiStack.c: Likewise.
3072 * tui/tuiWin.c: Likewise.
3073
cd4bffcf
EZ
30742002-02-07 Elena Zannoni <ezannoni@redhat.com>
3075
3076 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
3077 to include space for pseudoregs as well. Update loops accordingly.
3078 (sh_fp_frame_init_saved_regs): Ditto.
3079 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
3080
26806ce2
AC
30812002-02-07 Andrew Cagney <ac131313@redhat.com>
3082
3083 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
3084 Add Richard Earnshaw to Arm maintainers.
3085
97fdab62
AC
30862002-02-07 Andrew Cagney <ac131313@redhat.com>
3087
a6b98203
AC
3088 * defs.h (warning_begin): Delete declaration.
3089
97fdab62
AC
3090 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
3091 Delete macro.
3092
78b29b40
MS
30932002-02-07 Michael Snyder <msnyder@redhat.com>
3094
aaa38bb5 3095 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
3096 Logic bug, remove misplaced else.
3097
d8849953
KD
30982002-02-07 Klee Dienes <klee@apple.com>
3099
3100 * fork-inferior.c (fork_inferior): Add '!' to the list of
3101 characters that need to be quoted when building a string for the
3102 shell. Quote '!' specifically with a backslash, since CSH chokes
3103 when trying to evaluate "str!str".
aaa38bb5 3104
095778a0
NC
31052002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
3106
3107 * rdi-share/host.h: Only provide a typedef for bool if it is not
3108 defined.
3109
1900040c
MS
31102002-02-04 Michael Snyder <msnyder@redhat.com>
3111
3112 * breakpoint.h (enum bptype): Add new overlay event bp type.
3113 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 3114
1900040c
MS
3115 * breakpoint.c (create_internal_breakpoint): New function.
3116 (internal_breakpoint_number): Moved into create_internal_breakpoint.
3117 (create_longjmp_breakpoint): Use create_internal_breakpoint.
3118 (create_thread_event_breakpoint): Ditto.
3119 (create_solib_event_breakpoint): Ditto.
3120 (create_overlay_event_breakpoint): New function.
3121 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
3122 (update_breakpoints_after_exec): Delete and re-initialize
3123 overlay event breakpoints after an exec. Add FIXME comment
3124 about longjmp breakpoint.
3125 (print_it_typical): Ignore overlay event breakpoints.
3126 (print_one_breakpoint): Ditto.
3127 (mention): Ditto.
3128 (bpstat_what): Do not stop for overlay event breakpoints.
3129 (delete_breakpoint): Don't delete overlay event breakpoints.
3130 (breakpoint_re_set_one): Delete the overlay event breakpoint.
3131 (breakpoint_re_set): Re-create overlay event breakpoint.
3132
3133 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
3134 (overlay_manual_command): Disable overlay breakpoints.
3135 (overlay_off_command): Disable overlay breakpoints.
3136
082fc60d
RE
31372002-02-06 Richard Earnshaw <rearnsha@arm.com>
3138
3139 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
3140 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
3141 to here from config/tm-arm.h.
3142 (coff_sym_is_thumb): Make static.
3143 (arm_elf_make_msymbol_special): New function.
3144 (arm_coff_make_msymbol_special): New function.
3145 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
3146 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
3147 (coff_sym_is_thumb): Delete declaration.
3148 (arm_elf_make_msymbol_special): Declare.
3149 (arm_coff_make_msymbol_special): Declare.
3150 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
3151 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
3152
039c5766
RE
31532002-02-06 Richard Earnshaw <rearnsha@arm.com>
3154
3155 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
3156
31572002-02-06 Richard Earnshaw <rearnsha@arm.com>
3158
3159 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
3160 * gdbarch.c gdbarch.h: Regenerate.
3161 * arch-utils.c (default_print_float_info): New function.
3162 * arch-utils.h (default_print_float_info): Prototype it.
3163 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
3164 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
3165 (PRINT_FLOAT_INFO): Document it.
3166
3167 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
3168 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
3169 (PRINT_FLOAT_INFO): Define.
3170
58fa08f0
PM
31712002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
3172
aaa38bb5 3173 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
3174 Add typecast to sprintf argument to suppress a warning.
3175
7393af7c
PM
31762002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
3177
58fa08f0 3178 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
3179 to allow easier handling of pass state.
3180 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
3181 that gives exception name and address.
3182 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 3183 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 3184 exceptions added.
aaa38bb5
AJ
3185 (child_continue): Correctly report continue_status.
3186 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 3187 TARGET_SIGNAL_0 (new default value).
aaa38bb5 3188 (child_resume): consider sig argument passed to decide if
7393af7c
PM
3189 the exception should be passed to debuggee or not.
3190
6af4589c
MS
31912002-02-05 Michael Snyder <msnyder@redhat.com>
3192
3193 * regcache.c (fetch_register): Call target_fetch_register
3194 only if we don't call FETCH_PSEUDO_REGISTER.
3195 (store_register): Call target_store_register only if we
3196 don't call STORE_PSEUDO_REGISTER.
3197
a2cf933a
EZ
31982002-02-05 Elena Zannoni <ezannoni@redhat.com>
3199
3200 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
3201 ELF_MAKE_MSYMBOL_SPECIAL.
3202 * gdbarch.c, gdbarch.h: Regenerate.
3203 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 3204 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
3205 * elfread.c (elf_symtab_read): Compile use of
3206 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
3207 multiarched.
3208 * coffread.c (coff_symtab_read): Ditto, for
3209 COFF_MAKE_MSYMBOL_SPECIAL.
3210
6bb7be43
JB
32112002-02-05 Jim Blandy <jimb@redhat.com>
3212
3213 * solib-svr4.c (svr4_truncate_ptr): New function.
3214 (svr4_relocate_section_addresses): Do the address arithmetic with
3215 the appropriate truncation for target addresses, even when
3216 CORE_ADDR is larger than a target address.
3217
e18651ec
DJ
32182002-02-05 Daniel Jacobowitz <drow@mvista.com>
3219
3220 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
3221 to (int *).
3222
6b2725be
DJ
32232002-02-05 Daniel Jacobowitz <drow@mvista.com>
3224
3225 * gdbserver/linux-low.c (kill_inferior): Remove commented out
3226 code.
3227
fca9e603
DJ
32282002-02-05 Daniel Jacobowitz <drow@mvista.com>
3229
3230 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
3231
6c537a52
DJ
32322002-02-05 Daniel Jacobowitz <drow@mvista.com>
3233
3234 * gdbserver/linux-low.c: Remove unused include files.
3235
d844cde6
DJ
32362002-02-05 Daniel Jacobowitz <drow@mvista.com>
3237
3238 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
3239 (read_inferior_memory): Use it.
3240 (write_inferior_memory): Likewise.
3241
d07c63e7
DJ
32422002-02-05 Daniel Jacobowitz <drow@mvista.com>
3243
3244 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
3245 grubbing through sys_errlist.
3246
da6d8c04
DJ
32472002-02-05 Daniel Jacobowitz <drow@mvista.com>
3248
3249 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
3250
5b421780
PM
32512002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
3252 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
3253
9f60d481
AC
32542002-02-04 Andrew Cagney <ac131313@redhat.com>
3255
3256 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
3257 (do_sfunc, set_cmd_sfunc): New functions.
3258
3259 * command.h (struct cmd_list_element): Add field func.
3260 * cli/cli-decode.h (struct cmd_list_element): Ditto.
3261 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
3262 * cli/cli-decode.h: Ditto.
3263
3264 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
3265 (help_all, help_cmd_list): Ditto.
3266 (find_cmd, complete_on_cmdlist): Ditto.
3267 * top.c (execute_command): Ditto.
3268
3269 * cli/cli-setshow.c (do_setshow_command): Call func instead of
3270 function.sfunc.
3271
3272 * infcmd.c (notice_args_read): Fix function signature.
3273
3274 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
3275 * cli/cli-decode.c (add_set_cmd): Ditto.
3276 * utils.c (initialize_utils): Ditto.
3277 * maint.c (_initialize_maint_cmds): Ditto.
3278 * infrun.c (_initialize_infrun): Ditto.
3279 * demangle.c (_initialize_demangler): Ditto.
3280 * remote.c (add_packet_config_cmd): Ditto.
3281 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3282 * cris-tdep.c (_initialize_cris_tdep): Ditto.
3283 * proc-api.c (_initialize_proc_api): Ditto.
3284 * kod.c (_initialize_kod): Ditto.
3285 * valprint.c (_initialize_valprint): Ditto.
3286 * top.c (init_main): Ditto.
3287 * infcmd.c (_initialize_infcmd): Ditto.
3288 * corefile.c (_initialize_core): Ditto.
3289 * arm-tdep.c (_initialize_arm_tdep): Ditto.
3290 * arch-utils.c (initialize_current_architecture): Ditto.
3291 (_initialize_gdbarch_utils): Ditto.
3292 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
3293
3294 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
3295 * wince.c (_initialize_inftarg): Ditto.
3296 * symfile.c (_initialize_symfile): Ditto.
3297 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3298 * language.c (_initialize_language): Ditto.
3299 * arc-tdep.c (_initialize_arc_tdep): Ditto.
3300
f9ba0717
MS
33012002-02-04 Michael Snyder <msnyder@redhat.com>
3302
3303 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
3304
0c74b2a7
DJ
33052002-02-04 Daniel Jacobowitz <drow@mvista.com>
3306
3307 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
3308 Add rules for building the register data files.
3309
c638789f
DJ
33102002-02-04 Daniel Jacobowitz <drow@mvista.com>
3311
3312 * regformats/regdat.sh: Add braces to the definition of
3313 expedite_regs_${arch}.
3314
db253027
DJ
33152002-02-04 Daniel Jacobowitz <drow@mvista.com>
3316
3317 * regformats/regdef.h (struct reg): Add comment describing the
3318 requirements for offset and size fields.
3319
206be19c
AS
33202002-02-04 Andreas Schwab <schwab@suse.de>
3321
3322 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
3323 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
3324
181c1381
RE
33252002-02-04 Richard Earnshaw <rearnsha@arm.com>
3326
3327 * gdbarch.sh (copyright): Update years in generated header.
3328 (SMASH_TEXT_ADDRESS): Add rule.
db253027 3329 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
3330 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
3331 * dbxread.c: Likewise.
3332 * dwarfread.c: Likewise.
3333 * elfread.c: Likewise.
3334 * somread.c: Likewise.
3335
3336 * arm-tdep.c (arm_smash_text_address): New function.
3337 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
3338
fa4ba8da
PM
33392002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
3340
3341 Add support for hardware watchpoints on win32 native.
aaa38bb5 3342 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 3343 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 3344 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
3345 of debug registers.
3346 (debug_registers_changed): New variable. Reflects when debug registers
3347 are changed and need to be written to inferior.
aaa38bb5 3348 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
3349 was set, used when new threads are created.
3350 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
3351 i386-nat code.
3352 (thread_rec): Set dr array if id is the thread of current_event .
3353 (child_continue, child_resume): Change the debug registers for all
3354 threads if debug_registers_changed.
3355 (child_add_thread): Change the debug registers if debug_registers_used.
3356 * config/i386/cygwin.mh: Add use of i386-nat.o file.
3357 Link nm.h to new nm-cygwin.h file.
3358 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
3359 of hardware registers.
3360
a73c86fb
AC
33612002-02-03 Andrew Cagney <ac131313@redhat.com>
3362
3363 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
3364 Restore behavour broken by 2002-01-20 Andrew Cagney
3365 <ac131313@redhat.com> IEEE_FLOAT removal.
3366
acf5ed49
DJ
33672002-02-03 Daniel Jacobowitz <drow@mvista.com>
3368
3369 * c-valprint.c (c_val_print): Pass a proper valaddr to
3370 cp_print_class_method.
3371 * valops.c (search_struct_method): If there is only one method
3372 and args is NULL, return that method.
3373
493d28d5
DJ
33742002-02-03 Daniel Jacobowitz <drow@mvista.com>
3375
3376 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
3377 accessing tag_name directly.
3378
7495dfdb
DJ
33792002-02-03 Daniel Jacobowitz <drow@mvista.com>
3380
3381 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
3382 of accessing tag_name directly.
3383
dd6bda65
DJ
33842002-02-03 Daniel Jacobowitz <drow@mvista.com>
3385
3386 PR gdb/280
3387 * gdbtypes.c (replace_type): New function.
3388 * gdbtypes.h (replace_type): Add prototype.
3389 * stabsread.c (read_type): Use replace_type.
3390
88fe217c
RE
33912002-02-03 Richard Earnshaw <rearnsha@arm.com>
3392
3393 * Makefile.in (memattr.o): Add missing dependencies rule.
3394
e5d66720
PS
33952002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3396
3397 * breakpoint.c (break_at_finish_command): Really export.
3398 (break_at_finish_at_depth_command): Ditto.
3399 (tbreak_at_finish_command): Ditto.
3400 * hppa-tdep.c: Include completer.h.
3401 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
3402 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
3403
fffee0be
AC
34042002-02-01 Andrew Cagney <ac131313@redhat.com>
3405
3406 * utils.c (do_write): New function.
3407 (error_stream): Rewrite combining the code from error_begin and
3408 verror.
3409 (verror): Rewrite using error_stream.
3410 (error_begin): Delete function.
3411
255e7dbf
AC
34122002-02-01 Andrew Cagney <ac131313@redhat.com>
3413
3414 * utils.c (error_begin): Make static.
3415 * defs.h (error_begin): Delete declaration.
3416
3417 * linespec.c (cplusplus_error): Replace cplusplus_hint.
3418 (decode_line_1): Use cplusplus_error instead of error_begin,
3419 cplusplus_hint and return_to_top_level.
3420 * coffread.c (coff_symfile_read): Use error instead of error_begin
3421 and return_to_top_level.
3422 * infrun.c (default_skip_permanent_breakpoint): Ditto.
3423
ddfe3c15
AC
34242002-02-01 Andrew Cagney <ac131313@redhat.com>
3425
3426 * language.h (type_error, range_error): Make string parameter
3427 constant.
3428 * language.c (warning_pre_print): Delete extern declaration.
3429 * dwarfread.c (warning_pre_print): Ditto.
3430 * language.c (type_error, range_error): Rewrite to use verror and
3431 vwarning instead of warning_begin.
3432
03ac34d5
MS
34332002-02-01 Michael Snyder <msnyder@redhat.com>
3434
261c4ca2
MS
3435 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
3436 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 3437
e00d1dc8
AC
34382002-02-01 Andrew Cagney <ac131313@redhat.com>
3439
3440 * command.h (NO_FUNCTION): Delete macro.
3441 * cli/cli-decode.h (NO_FUNCTION): Ditto.
3442 * top.c (execute_command): Replace NO_FUNCTION with NULL.
3443 * tracepoint.c (_initialize_tracepoint): Ditto.
3444 * cli/cli-decode.c (add_set_cmd): Ditto.
3445 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 3446
76b79d6e
DJ
34472002-02-01 Daniel Jacobowitz <drow@mvista.com>
3448
3449 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
3450 Update ``this'' pointer when calling virtual functions.
3451
799f9e91
MS
34522002-02-01 Michael Snyder <msnyder@redhat.com>
3453
c7bd442c 3454 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
3455 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
3456
3cf384d4
DJ
34572002-02-01 Daniel Jacobowitz <drow@mvista.com>
3458
3459 * regformats/reg-arm.dat: New file.
3460 * regformats/reg-i386.dat: New file.
3461 * regformats/reg-ia64.dat: New file.
3462 * regformats/reg-m68k.dat: New file.
3463 * regformats/reg-mips.dat: New file.
3464 * regformats/reg-ppc.dat: New file.
3465 * regformats/reg-sh.dat: New file.
3466 * regformats/regdef.h: New file.
3467 * regformats/regdat.sh: New file.
3468
0defa245
RE
34692002-02-01 Richard Earnshaw <reanrsha@arm.com>
3470
3471 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
3472 (arm_frame_args_address, arm_frame_locals_address): New functions.
3473 (arm_frame_num_args): New function.
3474 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
3475 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
3476 (FRMA_NUM_ARGS): Call arm_frame_num_args.
3477
405f26e6
MS
34782002-01-31 Michael Snyder <msnyder@redhat.com>
3479
502fd408
MS
3480 * breakpoint.c (break_at_finish_command): Export.
3481 (break_at_finish_at_depth_command): Export.
3482 (tbreak_at_finish_command): Export.
3483 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
3484 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
3485 "tbreak" commands, which are HPPA specific.
3486
7d35e135
MS
3487 * printcmd.c (disassemble_command): Remove an ancient
3488 artifact of an old merge.
3489
aaa38bb5 3490 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
3491 Define enum constant values for overlay mode.
3492 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
3493 (overlay_is_mapped, overlay_auto_command,
3494 overlay_manual_command): Ditto.
d874f1e2 3495
aaa38bb5
AJ
3496 * breakpoint.c (insert_breakpoints, remove_breakpoint,
3497 breakpoint_here_p, breakpoint_inserted_here_p,
3498 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
3499 describe_other_breakpoints, check_duplicates, clear_command):
3500 Coding standard fixes.
3501
8add0441 3502 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 3503 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
3504 code: check bfd SEC_READONLY flag for section.
3505
e351066e
AC
35062002-01-31 Andrew Cagney <ac131313@redhat.com>
3507
7d35e135 3508 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 3509
8a48e967
DJ
35102002-01-30 Daniel Jacobowitz <drow@mvista.com>
3511
3512 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
3513 data symbols, since we search based on textlow and texthigh.
3514 (find_pc_sect_symtab): Likewise.
3515
f5a96129
AC
35162002-01-30 Andrew Cagney <ac131313@redhat.com>
3517
3518 * defs.h (vwarning): Declare.
f5a96129
AC
3519 * utils.c (vwarning): New function.
3520 (warning): Call vwarning.
3521 (warning_begin): Delete function.
3522
3523 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
3524 the warning message.
3525 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
3526 warning_begin.
3527
cefd4ef5
MS
35282002-01-30 Michael Snyder <msnyder@redhat.com>
3529
1a703748
MS
3530 * NEWS: Mention "set trust-readonly-sections" command.
3531 Mention generate-core-file command.
cefd4ef5 3532
3a11626d
MS
35332002-01-15 Michael Snyder <msnyder@redhat.com>
3534
3535 * target.c: New command, "set trust-readonly-sections on".
3536 (do_xfer_memory): Honor the suggestion to trust readonly sections
3537 by reading them from the object file instead of from the target.
3538 (initialize_targets): Register command "set trust-readonly-sections".
3539
d1c7e53b
AC
35402002-01-29 Andrew Cagney <ac131313@redhat.com>
3541
3542 * parse.c (target_map_name_to_register): Simplify, search regs and
3543 pseudo-regs using a single loop.
3544
e2c9a72c
AC
35452002-01-30 Andrew Cagney <ac131313@redhat.com>
3546
3547 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
3548
69824b4e
MK
35492002-01-15 Rodney Brown <rbrown64@csc.com.au>
3550
3551 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
3552 * config/i386/i386v42mp.mh: Add i387-nat.o .
3553 * i386v4-nat.c: Include i387-nat.h.
3554 (supply_fpregset): Use i387_supply_fsave.
3555 (fill_fpregset): Use i387_fill_fsave.
3556
6eb69eab
RE
35572002-01-30 Richard Earnshaw <rearnsha@arm.com>
3558
3559 * arm-tdep.c (arm_call_dummy_words): Define.
3560 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
3561 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
3562 (CALL_DUMMY_WORDS): Define.
3563 (arm_call_dummy_words): Declare.
3564 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
3565 (arm_linux_call_dummy_words): Declare.
3566
9852326a
AS
35672002-01-30 Andreas Schwab <schwab@suse.de>
3568
3569 * m68klinux-nat.c: Fix last change to use regcache_collect
3570 instead of referencing registers[] directly.
3571
977a3030
AC
35722002-01-29 Andrew Cagney <ac131313@redhat.com>
3573
3574 * parse.c (target_map_name_to_register): Delete code wrapped in
3575 #ifdef REGISTER_NAME_ALIAS_HOOK.
3576
2076c72b
MS
35772002-01-28 Michael Snyder <msnyder@redhat.com>
3578
3579 * regcache.c (legacy_read_register_gen): Need to be able to
3580 read pseudo-register as well as real register.
3581 (legacy_write_register_gen): Ditto.
3582
8fcc723b
AC
35832002-01-28 Andrew Cagney <ac131313@redhat.com>
3584
3585 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
3586 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
3587 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
3588 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
3589 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
3590 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
3591 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
3592 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
3593 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
3594 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
3595 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
3596 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
3597 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
3598 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
3599 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
3600 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
3601 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
3602 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
3603 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
3604 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
3605
afe64c1a
AC
36062002-01-28 Andrew Cagney <ac131313@redhat.com>
3607
3608 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
3609 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
3610 (initialize_current_architecture): Update target_byte_order using
3611 information from BFD.
aaa38bb5 3612 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
3613 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
3614
75bc7ddf
AC
36152002-01-28 Andrew Cagney <ac131313@redhat.com>
3616
3617 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
3618 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
3619
3620 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
3621 #ifdef INVALID_FLOAT.
3622 * infcmd.c (do_registers_info): Ditto.
3623 * values.c (unpack_double): Ditto. Add comment.
3624
3625 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
3626 already commented out.
3627
0280a90a
AS
36282002-01-26 Andreas Schwab <schwab@suse.de>
3629
3630 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
3631 * m68klinux-nat.c: Update ptrace interface for fetching/storing
3632 registers and add support for PTRACE_GETREGS.
3633
7072a954
AC
36342002-01-24 Andrew Cagney <ac131313@redhat.com>
3635
3636 GDB 5.1.1 released from 5.1 branch.
3637 * NEWS: Add 5.1.1 news.
3638 * README: Sync with 5.1 branch.
3639
86f902e0
FF
36402002-01-23 Fred Fish <fnf@redhat.com>
3641
3642 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
3643 stabstring on initial malloc. Reallocing will copy it for us,
3644 if necessary.
3645
8af51c36
EZ
36462002-01-23 Elena Zannoni <ezannoni@redhat.com>
3647
aaa38bb5 3648 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
3649 (HFILES_NO_SRCDIR): Remove hpread.h.
3650 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
3651 (hpread.o): Update dependencies.
3652 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
3653
3654 * hp-psymtab-read.c: Remove file.
3655 * hp-symtab-read.c: Remove file.
3656 * hpread.h: Remove file.
3657
3658 * hpread.c: Merge all contents of hp-psymtab-read.c,
3659 hp-symtab-read.c and hpread.h into this file, as it was prior to
3660 January 1999.
3661
3662 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 3663 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
3664 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
3665 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
3666
dc5cfeb6
EZ
36672002-01-23 Elena Zannoni <ezannoni@redhat.com>
3668
3669 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
3670 fill_gregset): Call gdbarch_tdep() just once, assign result to
3671 variable and use that, instead of calling the function several
3672 times.
3673
ea87b71b
AO
36742002-01-24 Alexandre Oliva <aoliva@redhat.com>
3675
3676 * configure.host: Accept sparcv9 as alias for sparc64.
3677 * configure.tgt: Likewise.
3678
13fc0c2f
KB
36792002-01-22 Kevin Buettner <kevinb@redhat.com>
3680
3681 * solib-aix5.c (build_so_list_from_mapfile)
3682 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
3683 arguments is not reversed.
3684 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
3685 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 3686
7bd872fe
EZ
36872002-01-22 Elena Zannoni <ezannoni@redhat.com>
3688
3689 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
3690 modified version of obsolete sh_fetch_pseudo_register.
3691 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
3692 (sh4_register_read): New function.
3693 (sh_pseudo_register_write): New function. Renamed and modified
3694 version of obsolete sh_store_pseudo_register.
3695 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
3696 (sh4_register_write): New function.
3697 (sh_gdbarch_init): Remove setting of gdbarch function
3698 fetch_pseudo_register and store_pseudo_register. Remove setting of
3699 register_convert_to_raw, register_convert_to_virtual,
3700 register_convertible.
3701 (sh_sh4_register_convertible): Delete. No longer needed. All is
3702 taken care by architecture specific functions
3703 register_read/register_write.
3704 (sh_sh4_register_convert_to_virtual): Make static.
3705 (sh_sh4_register_convert_to_raw): Ditto.
3706
069e84fd
AC
37072002-01-22 Andrew Cagney <ac131313@redhat.com>
3708
3709 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
3710 (floatformat_is_nan, floatformat_mantissa): Ditto.
3711
3712 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
3713 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
3714 builtin_type_ieee_double_little,
3715 builtin_type_ieee_double_littlebyte_bigword,
3716 builtin_type_m68881_ext, builtin_type_i960_ext,
3717 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
3718 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
3719 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
3720 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
3721
211a4f69
CV
37222002-01-22 Corinna Vinschen <vinschen@redhat.com>
3723
3724 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
3725 parameter. Set frameless flag if it exists and depended of
3726 whether the scanned function is frameless or not.
3727 (xstormy16_skip_prologue): If function is frameless, return
3728 result of xstormy16_scan_prologue().
3729 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
3730 call.
3731
f81353e4
EZ
37322002-01-21 Elena Zannoni <ezannoni@redhat.com>
3733
3734 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
3735 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
3736 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
3737 sh_sh4_register_byte, sh_sh4_register_raw_size,
3738 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
3739 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
3740 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
3741 sh_store_pseudo_register, sh_do_pseudo_register): Call
3742 gdbarch_tdep() just once, assign result to variable and use that,
3743 instead of calling the function several times.
3744
63c73a17
MK
37452002-01-20 Mark Kettenis <kettenis@gnu.org>
3746
3747 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
3748 macros instead of LAST_FPU_CTRL_REGNUM.
3749 (store_register): Likewise.
3750
39ad761d
JB
37512002-01-21 Jim Blandy <jimb@redhat.com>
3752
3753 * infcmd.c (run_command): Check that the `exec' target layer's BFD
3754 is up-to-date before running the program, not just when a program
3755 exits.
3756
3d74b771
FF
37572002-01-21 Fred Fish <fnf@redhat.com>
3758
3759 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
3760 when we have found all instructions we are looking for.
3761
966fbf70
RE
37622002-01-21 Richard Earnshaw <rearnsha@arm.com>
3763
3764 * arm-tdep.c (arm_register_name): New function.
3765 (arm_registers_names): Make static.
3766 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
3767 (arm_register_name): Declare.
3768 (REGISTER_NAME): Use it.
3769
c3b4394c
RE
37702002-01-21 Richard Earnshaw <rearnsha@arm.com>
3771 Kevin Buettner <kevinb@redhat.com>
3772
3773 Convert arm targets to new FRAME interface.
3774 * arm-tdep.c (struct frame_extra_info): Remove fsr.
3775 (arm_frame_find_save_regs): Delete.
3776 (arm_frame_init_saved_regs): New.
3777 (arm_init_extra_frame_info): Alloacte saved_regs as required.
3778 Allocate extra_info as required. Convert all uses of fsr.regs
3779 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
3780 to use extra_info.
3781 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
3782 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
3783 (check_prologue_cache, save_prologue_cache): Likewise.
3784 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
3785 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
3786 (FRAME_FIND_SAVED_REGS): Delete.
3787 (arm_frame_find_saved_regs): Delete prototype.
3788 (arm_frame_init_saved_regs): New prototype.
3789 (FRAME_INIT_SAVED_REGS): Define.
3790
61d99182
AC
37912002-01-20 Andrew Cagney <ac131313@redhat.com>
3792
3793 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
3794
6aaea291
AC
37952002-01-20 Andrew Cagney <ac131313@redhat.com>
3796
3797 From Jeff Law <law@redhat.com>:
3798 * infttrace.c: Include <sys/pstat.h>.
3799 (child_pid_to_exec_file): Revamp. Use pstat call to get the
3800 exec file if the ttrace equivalent fails.
3801
15f698d2
AC
38022002-01-20 Andrew Cagney <ac131313@redhat.com>
3803
3804 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
3805 (closeLogFile): Ditto.
3806
f86ddd7c
MC
38072002-01-20 Michael Chastain <mec@shout.net>
3808
3809 * top.c (print_gdb_version): Bump copyright year to 2002.
3810
904507ce
AC
38112002-01-20 Andrew Cagney <ac131313@redhat.com>
3812
3813 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
3814 Zannoni and Eli Zaretskii.
3815
d7f0b9ce
DJ
38162002-01-20 Daniel Jacobowitz <drow@mvista.com>
3817
3818 * buildsym.c: Update copyright years.
3819 * c-typeprint.c: Likewise.
3820 * dwarf2read.c: Likewise.
3821 * f-typeprint.c: Likewise.
3822 * gdbtypes.c: Likewise.
3823 * gdbtypes.h: Likewise.
3824 * hp-symtab-read.c: Likewise.
3825 * hpread.c: Likewise.
3826 * mdebugread.c: Likewise.
3827 * p-typeprint.c: Likewise.
3828
3fd3d7d2
AC
38292002-01-20 Andrew Cagney <ac131313@redhat.com>
3830
3831 * remote-sim.c (gdbsim_open): Simplify code testing the macro
3832 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
3833 byte-order selectable.
3834 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
3835 * arch-utils.c: Ditto.
3836 (set_endian): Ditto.
3837 (set_endian_from_file): Ditto.
3838 * gdbserver/low-sim.c (create_inferior): Ditto.
3839 * gdbarch.sh: Ditto.
3840 * gdbarch.h: Re-generate.
aaa38bb5
AJ
3841 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
3842 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
3843 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
3844 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
3845 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
3846 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
3847 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
3848 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
3849 macro definition.
3850 * config/mips/tm-wince.h: Remove #undef of macro
3851 TARGET_BYTE_ORDER_SELECTABLE.
3852 * config/sh/tm-wince.h: Ditto.
3853
b02dede2
DJ
38542002-01-20 Daniel Jacobowitz <drow@mvista.com>
3855
3856 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
3857 member function fields. Add accessor macro
3858 TYPE_FN_FIELD_ARTIFICIAL.
3859 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
3860 * c-typeprint.c (c_type_print_base): Skip artificial member
3861 functions.
3862
c3643761
DJ
38632002-01-20 Daniel Jacobowitz <drow@mvista.com>
3864
3865 * f-typeprint.c: Delete unused function f_type_print_args.
3866 * p-typeprint.c: Delete unused function pascal_type_print_args.
3867
8176bb6d
DJ
38682002-01-20 Daniel Jacobowitz <drow@mvista.com>
3869
3870 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
3871 comment. Add ``artificial'' to ``union field_location''.
3872
3873 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
3874
3875 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
3876 * mdebugread.c (parse_symbol): Likewise.
3877 * stabsread.c (define_symbol): Likewise.
3878 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
3879 initializing TYPE_FIELD_BITPOS to n (obsolete).
3880 (hpread_doc_function_type): Likewise.
3881 * hpread.c (hpread_function_type): Likewise.
3882
7fd60527
AC
38832002-01-20 Andrew Cagney <ac131313@redhat.com>
3884
3885 * configure.in (host_makefile_frag): Only require a host makefile
3886 fragment when a native build.
3887 * configure: Re-generate.
3888
c2f05ac9
AC
38892002-01-20 Andrew Cagney <ac131313@redhat.com>
3890
3891 * doublest.h (floatformat_from_type): Declare.
3892 * doublest.c (floatformat_from_type): New function.
3893 (convert_typed_floating): Use.
3894
3895 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
3896 call to function floatformat_from_type.
3897
3898 * gdbarch.sh (IEEE_FLOAT): Delete.
3899 * gdbarch.h, gdbarch.c: Re-generate.
3900 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
3901 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
3902 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
3903 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
3904 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
3905 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
3906 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
3907 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
3908 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
3909 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
3910 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
3911 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
3912
3913 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
3914 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
3915 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3916 * sh-tdep.c (sh_gdbarch_init): Ditto.
3917 * mips-tdep.c (mips_gdbarch_init): Ditto.
3918 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3919 * cris-tdep.c (cris_gdbarch_init): Ditto.
3920
abf22e64
AJ
39212002-01-20 Jiri Smid <smid@suse.cz>
3922
3923 * configure.host, configure.tgt: Support x86-64.
3924 * NEWS: Note new target x86-64.
3925
b7c4cbf8
AJ
3926 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
3927 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
3928 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
3929 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
3930 x86-64-linux-nat.o): Fix dependencies.
3931
82600034
AC
39322002-01-19 Andrew Cagney <ac131313@redhat.com>
3933
3934 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
3935 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
3936 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
3937 * config/sparc/xm-sun4os4.h: Delete file.
3938 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 3939
bbe5c628
AC
39402002-01-19 Andrew Cagney <ac131313@redhat.com>
3941
3942 * config/sparc/sparclynx.mh (XM_FILE): Delete.
3943 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
3944 * config/m68k/m68klynx.mh (XM_FILE): Delete.
3945 * config/i386/i386lynx.mh (XM_FILE): Delete.
3946 * config/rs6000/xm-rs6000ly.h: Delete file.
3947 * config/sparc/xm-sparclynx.h: Delete file.
3948 * config/m68k/xm-m68klynx.h: Delete file.
3949 * config/i386/xm-i386lynx.h: Delete file.
3950 * config/xm-lynx.h: Delete file.
3951 * config/djgpp/fnchange.lst: Update.
3952
f8453e34
JT
39532002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
3954
3955 * alpha-tdep.c (alpha_register_byte): New function.
3956 (alpha_register_raw_size): Ditto.
3957 (alpha_register_virtual_size): Ditto.
3958 (alpha_skip_prologue_internal): Renamed from
3959 alpha_skip_prologue.
3960 (alpha_skip_prologue): New version that calls
3961 alpha_skip_prologue_internal.
3962 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
3963 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
3964 second argument from alpha_skip_prologue.
3965 (REGISTER_BYTE): Use alpha_register_byte.
3966 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
3967 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
3968 (FRAMELESS_FUNCTION_INVOCATION): Use
3969 generic_frameless_function_invocation_not.
3970 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
3971 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
3972
52d9e613
AC
39732002-01-19 Andrew Cagney <ac131313@redhat.com>
3974
3975 * config/mips/xm-news-mips.h: Delete file.
3976 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
3977
3978 * config/m88k/xm-m88k.h: Delete file.
3979 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
3980 * config/m88k/xm-delta88v4.h: Ditto.
3981 * config/m88k/xm-delta88.h: Ditto.
3982
3983 * config/alpha/xm-fbsd.h: Delete file.
3984 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
3985
3986 * config/sparc/xm-sparc.h: Delete file.
3987 * Makefile.in (xm-sun4os4.h): Delete dependency.
3988 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
3989 * config/sparc/xm-sun4os4.h: Ditto.
3990 * config/sparc/xm-linux.h: Ditto.
3991
3992 * config/i386/xm-windows.h: Delete file.
3993
2d1b2124
AC
39942002-01-19 Andrew Cagney <ac131313@redhat.com>
3995
3996 * utils.c: Include <sys/param.h> for MAXPATHLEN.
3997 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
3998
ee1f65f0
JT
39992002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
4000
4001 * alpha-tdep.c (alpha_call_dummy_words): New.
4002 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
4003 (CALL_DUMMY_P): Define.
4004 (CALL_DUMMY_WORDS): Define.
4005 (SIZEOF_CALL_DUMMY_WORDS): Define.
4006
98081e55
PB
40072002-01-19 Per Bothner <per@bothner.com>
4008
4009 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
4010 isn't NULL, which can happen with some gcj-3.x-produced code.
4011
0d056799
JT
40122002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
4013
4014 * alpha-tdep.c (alpha_register_virtual_type): New function.
4015 (alpha_init_frame_pc_first): Ditto.
4016 (alpha_fix_call_dummy): Ditto.
4017 (alpha_store_struct_return): Ditto.
4018 (alpha_extract_struct_value_address): Ditto.
4019 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
4020 alpha_register_virtual_type.
4021 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
4022 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
4023 alpha_extract_struct_value_address.
4024 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
4025 (INIT_FRAME_PC): Use init_frame_pc_noop.
4026 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
4027
4604bcad
MK
40282002-01-19 Mark Kettenis <kettenis@gnu.org>
4029
4030 * i386gnu-nat.c: Include "i386-tdep.h".
4031 (fetch_fpregs): Simplify code dealing with uninitialized floating
4032 point states such that it doesn't require FP7_REGNUM.
4033
140f9984
JT
40342002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4035
abf22e64
AJ
4036 * alpha-tdep.c (frame_extra_info): New.
4037 (alpha_find_saved_regs): Make static. Use
140f9984
JT
4038 frame->extra_info.
4039 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
4040 (alpha_frame_saved_pc): Use frame->extra_info.
4041 (temp_saved_regs): Don't declare as struct frame_saved_regs.
4042 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
4043 (init_extra_frame_info): Rename to...
4044 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 4045 (alpha_print_extra_frame_info): New function.
140f9984
JT
4046 (alpha_frame_locals_address): Ditto.
4047 (alpha_frame_args_address): Ditto.
abf22e64 4048 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
4049 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
4050 alpha_frame_args_address.
abf22e64 4051 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 4052 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
4053 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
4054 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
4055 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
4056 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
4057
d734c450
JT
40582002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4059
4060 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
4061 (alpha_cannot_fetch_register): Ditto.
4062 (alpha_cannot_store_register): Ditto.
4063 (alpha_register_convertible): Ditto.
4064 (alpha_use_struct_convention): Ditto.
4065 * config/alpha/tm-alpha.h: Update copyright years.
4066 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
4067 (INNER_THAN): Use core_addr_lessthan.
4068 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
4069 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
4070 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
4071 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
4072 (FRAME_CHAIN): Remove unnecessary cast.
4073
b4ceaee6
AC
40742002-01-18 Andrew Cagney <ac131313@redhat.com>
4075
4076 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
4077 obsolete.
4078
0a65a603
AC
40792002-01-18 Andrew Cagney <ac131313@redhat.com>
4080
4081 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
4082 * monitor.c, remote-array.c, remote-bug.c: Ditto.
4083 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
4084 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
4085 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
4086 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
4087 * x86-64-linux-nat.c: Ditto.
4088
636a6dfc
JT
40892002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4090
abf22e64 4091 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
4092 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
4093 (REGISTER_NAME): Define.
4094
acceddb6
JT
40952002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4096
4097 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
4098
ec32e4be
JT
40992002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4100
4101 * alpha-tdep.c: Update copyright years.
4102 (alpha_next_pc): New function.
4103 (alpha_software_single_step): Ditto.
4104 * config/alpha/tm-alpha.h: Add prototype for
4105 alpha_software_single_step.
4106
e771a871
JT
41072002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4108
4109 * alphabsd-nat.c: Update copyright years.
4110 (fill_gregset): Use regcache_collect.
4111 (fill_fpregset): Likewise.
4112 (fetch_inferior_registers): Only fetch integer registers
4113 if requested to do so.
4114 (store_inferior_registers): Only store integer registers
4115 if requested to do so.
4116
7708fa01
AC
41172002-01-17 Andrew Cagney <ac131313@redhat.com>
4118
4119 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
4120 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
4121 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
4122 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
4123 * config/alpha/fbsd.mh (XDEPFILES): Delete.
4124 * config/arm/linux.mh (XDEPFILES): Delete.
4125 * config/arm/nbsd.mh (XDEPFILES): Delete.
4126 * config/i386/i386dgux.mh (XDEPFILES): Delete.
4127 * config/i386/i386sol2.mh (XDEPFILES): Delete.
4128 * config/i386/i386m3.mh (XDEPFILES): Delete.
4129 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
4130 * config/i386/i386gnu.mh (XDEPFILES): Delete.
4131 * config/i386/fbsd.mh (XDEPFILES): Delete.
4132 * config/i386/i386bsd.mh (XDEPFILES): Delete.
4133 * config/i386/i386sco5.mh (XDEPFILES): Delete.
4134 * config/i386/i386v4.mh (XDEPFILES): Delete.
4135 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
4136 * config/i386/i386sco4.mh (XDEPFILES): Delete.
4137 * config/i386/i386aix.mh (XDEPFILES): Delete.
4138 * config/i386/go32.mh (XDEPFILES): Delete.
4139 * config/i386/cygwin.mh (XDEPFILES): Delete.
4140 * config/i386/i386lynx.mh (XDEPFILES): Delete.
4141 * config/i386/i386mach.mh (XDEPFILES): Delete.
4142 * config/i386/i386v32.mh (XDEPFILES): Delete.
4143 * config/i386/linux.mh (XDEPFILES): Delete.
4144 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
4145 * config/i386/ncr3000.mh (XDEPFILES): Delete.
4146 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
4147 * config/i386/i386sco.mh (XDEPFILES): Delete.
4148 * config/i386/i386v.mh (XDEPFILES): Delete.
4149 * config/i386/nbsd.mh (XDEPFILES): Delete.
4150 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
4151 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
4152 * config/i386/symmetry.mh (XDEPFILES): Delete.
4153 * config/i386/obsd.mh (XDEPFILES): Delete.
4154 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
4155 * config/ia64/linux.mh (XDEPFILES): Delete.
4156 * config/ia64/aix.mh (XDEPFILES): Delete.
4157 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
4158 * config/m68k/dpx2.mh (XDEPFILES): Delete.
4159 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
4160 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
4161 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
4162 * config/m68k/linux.mh (XDEPFILES): Delete.
4163 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
4164 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
4165 * config/m68k/nbsd.mh (XDEPFILES): Delete.
4166 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
4167 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
4168 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
4169 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
4170 * config/m88k/delta88.mh (XDEPFILES): Delete.
4171 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
4172 * config/m88k/m88k.mh (XDEPFILES): Delete.
4173 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
4174 * config/mips/linux.mh (XDEPFILES): Delete.
4175 * config/mips/irix6.mh (XDEPFILES): Delete.
4176 * config/mips/irix5.mh (XDEPFILES): Delete.
4177 * config/mips/irix4.mh (XDEPFILES): Delete.
4178 * config/mips/irix3.mh (XDEPFILES): Delete.
4179 * config/mips/decstation.mh (XDEPFILES): Delete.
4180 * config/mips/mipsm3.mh (XDEPFILES): Delete.
4181 (NATDEPFILES): Move core-aout.o to here.
4182 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
4183 * config/pa/hpux1020.mh (XDEPFILES): Delete.
4184 * config/pa/hppabsd.mh (XDEPFILES): Delete.
4185 * config/pa/hppahpux.mh (XDEPFILES): Delete.
4186 * config/pa/hpux11w.mh (XDEPFILES): Delete.
4187 * config/pa/hppaosf.mh (XDEPFILES): Delete.
4188 * config/pa/hpux11.mh (XDEPFILES): Delete.
4189 * config/powerpc/aix.mh (XDEPFILES): Delete.
4190 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
4191 * config/powerpc/linux.mh (XDEPFILES): Delete.
4192 * config/romp/rtbsd.mh: Rename XDEPFILES.
4193 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
4194 * config/rs6000/aix4.mh (XDEPFILES): Delete.
4195 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
4196 * config/s390/s390.mh (XDEPFILES): Delete.
4197 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
4198 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
4199 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
4200 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
4201 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
4202 * config/sparc/nbsd.mh (XDEPFILES): Delete.
4203 * config/sparc/linux.mh (XDEPFILES): Delete.
4204 * config/vax/vaxult.mh (XDEPFILES): Delete.
4205 * config/vax/vaxult2.mh (XDEPFILES): Delete.
4206 * Makefile.in (DEPFILES): Remove XDEPFILES.
4207
375fc983
AC
42082002-01-17 Andrew Cagney <ac131313@redhat.com>
4209
4210 * utils.c (internal_verror): Fix comments, default is yes not no.
4211 Update queries to match. Default to quit and dump core.
4212
8926118c
AC
42132002-01-17 Andrew Cagney <ac131313@redhat.com>
4214
4215 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
4216 copyright.
4217 * defs.h, event-top.c, gdbcmd.h: Ditto.
4218 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
4219 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
4220 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
4221 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
4222 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
4223 * mi/mi-main.c:Ditto.
4224
4225 * stack.c, symfile.c: Update copyright.
4226
45b7b345
DJ
42272002-01-17 Daniel Jacobowitz <drow@mvista.com>
4228
db728ff7
DJ
4229 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
4230 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
4231 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
4232 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 4233
db728ff7
DJ
42342002-01-17 Daniel Jacobowitz <drow@mvista.com>
4235
4236 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
4237 * gdbserver/low-lynx.c (myattach): Likewise.
4238 * gdbserver/low-nbsd.c (myattach): Likewise.
4239 * gdbserver/low-sim.c (myattach): Likewise.
4240 * gdbserver/low-sparc.c (myattach): Likewise.
4241 * gdbserver/low-sun3.c (myattach): Likewise.
4242
4243 * gdbserver/low-linux.c (myattach): New function.
45b7b345 4244
db728ff7 4245 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
4246 (main): Handle "--attach".
4247
8de3c354
AC
42482002-01-16 Andrew Cagney <ac131313@redhat.com>
4249
4250 * MAINTAINERS (language support): Daniel Jacobwitz is C++
4251 maintainer.
4252
b0129042
DJ
42532002-01-15 Daniel Jacobowitz <drow@mvista.com>
4254
4255 * c-typeprint.c (is_type_conversion_operator): Add additional
4256 check for non-conversion operators.
4257
ba8679fb 42582002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
4259
4260 * linux-proc.c: Add "info proc" command, a la procfs.c.
4261 (read_mapping): New function, abstract and re-use code.
4262 (linux_find_memory_regions): Use new func read_mapping.
4263 (linux_info_proc_cmd): New function, implement "info proc".
4264 (_initialize_linux_proc): Add new command "info proc".
4265
e4f9b4d5
MS
42662002-01-15 Michael Snyder <msnyder@redhat.com>
4267
4268 * symfile.c (generic_load): Use bfd_map_over_sections method
4269 instead of manipulating bfd structure members directly.
4270 (add_section_size_callback): New function, bfd sections callback
4271 used by generic_load.
4272 (load_sections_callback): New function, bfd sections callback
4273 used by generic_load.
4274
08cf96df
EZ
42752002-01-15 Elena Zannoni <ezannoni@redhat.com>
4276
abf22e64 4277 [Based on work by Jim Blandy]
08cf96df
EZ
4278 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
4279 (builtin_type_vec128): Export.
4280 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
4281 types.
4282 (builtin_type_vec128): New builtin type for 128 bit vector
4283 registers.
4284 (build_gdbtypes): Initialize builtin_type_v16qi and
4285 builtin_type_v8hi. Create the vec128 register builtin type
4286 structure.
4287 (build_builtin_type_vec128): New function.
abf22e64 4288 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
4289 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
4290 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
4291 AltiVec register to new builtin type.
4292
d7242108
DJ
42932001-01-15 Daniel Jacobowitz <drow@mvista.com>
4294
4295 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
4296 to make_cv_type.
4297
4ee3352d
AC
42982002-01-14 Andrew Cagney <ac131313@redhat.com>
4299
4300 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
4301 CLEAN_UP_REGISTER_VALUE.
4302 * regcache.c (supply_register): Update only call.
4303
f015b2e7
AC
43042002-01-14 Andrew Cagney <ac131313@redhat.com>
4305
4306 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
4307 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
4308 a29k-*-vxworks* targets as obsolete.
4309
356ae49d
MS
43102002-01-14 Michael Snyder <msnyder@redhat.com>
4311
4312 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
4313 until we can resolve portability issues.
4314 * gregset.h: Remove references to fpxregs.
4315 * gcore.c (gcore_command): Initialize note_sec to NULL.
4316
ade8f45e
AC
43172002-01-13 Andrew Cagney <ac131313@redhat.com>
4318
4319 * signals.c (target_signal_to_name): Rewrite. Only use
4320 signals[].name when in bounds and non-NULL.
abf22e64 4321
89c49e7a
AC
43222002-01-13 Andrew Cagney <ac131313@redhat.com>
4323
4324 From Petr Ledvina <ledvinap@kae.zcu.cz>:
4325 * signals.c (target_signal_to_name): Verify that SIG is within the
4326 bounds of the signals array.
4327
4daa9f9f
AC
43282002-01-13 Andrew Cagney <ac131313@redhat.com>
4329
4330 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
4331
ba4bbdcb
KS
43322002-01-13 Keith Seitz <keiths@redhat.com>
4333
4334 * stack.c (print_frame_info_base): Print the frame's pc
4335 only if when print_frame_info_listing_hook is not defined.
4336
575bbeb6
KS
43372002-01-13 Keith Seitz <keiths@redhat.com>
4338
4339 * varobj.c (varobj_set_value): Make sure that there were no
4340 errors evaluating the object before attempting to set its
4341 value.
4342 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
4343 so this offset adjustment is no longer necessary.
4344 (create_child): Don't set the error flag if the child is
4345 a CPLUS_FAKE_CHILD.
4346 (value_of_child): If value_fetch_lazy fails, return NULL
4347 so that callers will be notified that an error occurred.
4348 (c_value_of_variable): Delay check of variable's validity
4349 until later. We actually want all structs and unions to have
4350 the value "{...}".
4351 Do not return "???" for variables which could not be evaluated.
4352 This error condition must be returned to the caller so that it
4353 can get the error condition from gdb.
4354 (cplus_name_of_child): Adjust index for vptr before figuring
4355 out the name of the child.
4356 (cplus_value_of_child): If a child's (real) parent is not valid,
4357 don't even bother trying to give a value for it. Just return
4358 an error. Change all instances in this function.
4359 (cplus_type_of_child): If our parent is one of the "fake"
4360 parents, we need to get at the type of the real parent, and
4361 derive the child's true type using this information.
4362
b76898ab
AC
43632002-01-13 Andrew Cagney <ac131313@redhat.com>
4364
4365 From 2002-01-09 John Marshall <johnm@falch.net>:
4366 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
4367 sources.redhat.com, and tweak some related URLs which had
4368 suffered from linkrot.
4369
b6649e88
AC
43702002-01-13 Andrew Cagney <ac131313@redhat.com>
4371
4372 From Jeff law:
4373 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
4374 structures passed in registers.
4375
82cc5033
EZ
43762002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
4377
4378 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
4379 white space which prevented compilation. Reported by DSK
4380 <dsk@student.unsw.edu.au>.
4381
ba5f2f8a
MS
43822002-01-11 Michael Snyder <msnyder@redhat.com>
4383
fbd35540
MS
4384 * symfile.c (build_section_addr_info_from_section_tab):
4385 Use bfd access method instead of manipulating bfd directly.
4386 (syms_from_objfile): Ditto.
4387 (simple_overlay_update_1): Ditto.
4388 (simple_overlay_update): Ditto.
4389 (generic_load): Ditto.
4390 (overlay_unmapped_address): FIXME comment, bfd access methods.
4391 (sections_overlap): FIXME comment, bfd access methods.
4392 (pc_in_mapped_range): FIXME comment, bfd access methods.
4393 (pc_in_unmapped_range): FIXME comment, bfd access methods.
4394 (section_is_mapped): FIXME comment, bfd access methods.
4395 (section_is_overlay): FIXME comment, bfd access methods.
4396
ba5f2f8a
MS
4397 * symfile.c (generic_load): Whitespace and long line cleanups.
4398 Remove duplicate variable, change several local variables to
4399 more appropriate data types.
4400 (print_transfer_performance): Use %lu instead of %ld for ulongs.
4401
17df2af6
AC
44022002-01-12 Andrew Cagney <ac131313@redhat.com>
4403
4404 From Peter Schauer:
4405 * language.c (longest_local_hex_string_custom): Use phex_nz to
4406 convert NUM to a hex string.
4407
ec920329
EZ
44082002-01-12 Elena Zannoni <ezannoni@redhat.com>
4409
4410 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
4411 the function.
538a76d6 4412 Update Copyright year.
ec920329 4413
3abd2e01
AC
44142002-01-12 Andrew Cagney <ac131313@redhat.com>
4415
4416 * language.c (longest_raw_hex_string): Delete unused function.
4417
b21b22e0
PS
44182002-01-11 Petr Sorfa <petrs@caldera.com>
4419
4420 * MAINTAINERS (write-after-approval): Add myself.
4421 * dwarf2read.c (read_tag_string_type): Handling of
4422 DW_AT_byte_size.
4423 (read_tag_string_type): FORTRAN fix to prevent propagation of
4424 first string size.
4425 (set_cu_language): Handling of DW_LANG_Fortran95
4426
747fe712
RE
44272002-01-11 Richard Earnshaw <rearnsha@arm.com>
4428
4429 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
4430 GETPID(inferior_ptid).
4431 (store_inferior_registers): Likewise.
4432
f1bea926
JM
44332002-01-10 Jason Merrill <jason@redhat.com>
4434
4435 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
4436 Fix DW_OP_minus.
4437
ae940673
AC
44382002-01-10 Andrew Cagney <ac131313@redhat.com>
4439
4440 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
4441 and bfd/elf32-sh-nbsd.c.
4442
00546b04
MS
44432002-01-10 Michael Snyder <msnyder@redhat.com>
4444
352ed7b4
MS
4445 * NEWS: Mention --pid and corefile/proc-id behavior change.
4446
c18be923
MS
4447 * Makefile.in: Add rules for gcore.o and linux-proc.o.
4448 * gcore.c: Include cli/cli-decode.h instead of command.h.
4449
00546b04
MS
4450 * main.c (captured_main): Add new command line option "--pid".
4451 If the second command line argument (following the symbol-file)
4452 begins with a digit, try to attach to it before trying to open
4453 it as a corefile.
4454 (print_gdb_help): Document the "--pid" argument.
4455
db60ec62
EZ
44562002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
4457
4458 * completer.c (command_completer): New function.
4459
4460 * completer.h <command_completer>: Add prototype.
4461
4462 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
4463 completer for the "help" command.
4464
39c22d1a
JM
44652002-01-09 Jason Merrill <jason@redhat.com>
4466
4467 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
4468
c564377f
MS
44692002-01-09 Michael Snyder <msnyder@redhat.com>
4470
975aec09
MS
4471 * i386-linux-nat.c (fill_fpxregset): Make global.
4472 (store_fpxregset): Ditto.
4473
db4a10fa
MS
4474 * gregset.h (gdb_fpxregset_t): Define.
4475 (supply_fpxregset): Prototype.
4476 (fill_fpxregset): Prototype.
4477
c564377f
MS
4478 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
4479
c3d45d70
RE
44802002-01-09 Richard Earnshaw <rearnsha@arm.com>
4481
4482 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
4483 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
4484 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
4485
fcc87af1
AC
44862002-01-09 Andrew Cagney <ac131313@redhat.com>
4487
4488 * MAINTAINERS: Update target maintainer rules so that any
4489 Maintainer can approve a tested patch for a maintenance-only
4490 target.
4491
dd96c05b
RE
44922002-01-09 Richard Earnshaw <rearnsha@arm.com>
4493
d4297db9 4494 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 4495
d4297db9 4496 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
4497 IN_SIGTRAMP.
4498
145fdc6e
MS
44992002-01-08 Michael Snyder <msnyder@redhat.com>
4500
4501 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
4502 real name of the executable, rather than the /proc name.
4503
be4d1333
MS
45042002-01-03 Michael Snyder <msnyder@redhat.com>
4505
4506 Implement a "generate-core-file" command in gdb, save target state.
4507 * gcore.c: New file. Implement new command 'generate-core-file'.
4508 Save a corefile image of the current state of the inferior.
4509 * linux-proc.c: Add linux-specific code for saving corefiles.
4510 * target.h (struct target_ops): Add new target vectors for saving
4511 corefiles; to_find_memory_regions and to_make_corefile_notes.
4512 (target_find_memory_regions): New macro.
4513 (target_make_corefile_notes): New macro.
4514 * target.c (update_current_target): Inherit new target methods.
4515 (dummy_find_memory_regions): New place-holder method.
4516 (dummy_make_corefile_notes): New place-holder method.
4517 (init_dummy_target): Initialize new dummy target vectors.
4518 * exec.c (exec_set_find_memory_regions): New function.
4519 Allow the exec_ops vector for memory regions to be taken over.
4520 (exec_make_note_section): New function, target vector method.
4521 * defs.h (exec_set_find_memory_regions): Export prototype.
4522 * procfs.c (proc_find_memory_regions): New function, corefile method.
4523 (procfs_make_note_section): New function, corefile method.
4524 (init_procfs_ops): Set new target vector pointers.
4525 (find_memory_regions_callback): New function.
4526 (procfs_do_thread_registers): New function.
4527 (procfs_corefile_thread_callback): New function.
4528 * sol-thread.c (sol_find_memory_regions): New function.
4529 (sol_make_note_section): New function.
4530 (init_sol_thread_ops): Initialize new target vectors.
4531 * inftarg.c (inftarg_set_find_memory_regions): New function.
4532 Allow to_find_memory_regions vector to be taken over.
4533 (inftarg_set_make_corefile_notes): New function.
4534 Allow to_make_corefile_notes vector to be taken over.
4535 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
4536 interface layer if not target_has_execution (may be a corefile).
4537 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
4538 * config/sparc/sun4sol2.mh: Ditto.
4539 * config/alpha/alpha-linux.mh: Ditto.
4540 * config/arm/linux.mh: Ditto.
4541 * config/i386/x86-64linux.mh: Ditto.
4542 * config/ia64/linux.mh: Ditto.
4543 * config/m68k/linux.mh: Ditto.
4544 * config/mips/linux.mh: Ditto.
4545 * config/powerpc/linux.mh: Ditto.
4546 * config/sparc/linux.mh: Ditto.
4547
c6b92abd
MS
45482002-01-07 Michael Snyder <msnyder@redhat.com>
4549
4550 * arm-linux-nat.c: Remove references to regcache.c internal data
4551 (registers[] and register_valid[]).
4552
4b09dc8c
MS
45532002-01-07 Michael Snyder <msnyder@redhat.com>
4554
abf22e64
AJ
4555 * linux-proc.c: New file. Implement child_pid_to_exec_file,
4556 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
4557 symbol file and shlibs.
4558 * Makefile.in: Add rule for linux-proc.o.
4559 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
4560 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
4561 * config/arm/linux.mh: Ditto.
4562 * config/i386/linux.mh: Ditto.
4563 * config/i386/x86-64linux.mh: Ditto.
4564 * config/ia64/linux.mh: Ditto.
4565 * config/m68k/linux.mh: Ditto.
4566 * config/mips/linux.mh: Ditto.
4567 * config/powerpc/linux.mh: Ditto.
4568 * config/sparc/linux.mh: Ditto.
4569
c25b74ac
PM
45702002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
4571
4572 * win32-nat.c: Add i386-tdep.h dependency.
4573
94cd915f
MS
45742002-01-07 Michael Snyder <msnyder@redhat.com>
4575
c7cccb76
MS
4576 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
4577 instead of bfd_get_arch_size. Don't bail out just because
4578 there's no exec_bfd.
abf22e64 4579
34c0bd93
MS
4580 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
4581 * p-valprint.c (pascal_object_print_value): Ditto.
4582 * somread.c (som_symtab_read): Ditto.
4583 * symfile.c (simple_free_overlay_region_table): Ditto.
4584 * valops.c (value_assign): Ditto.
4585
21c1c920
MS
4586 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
4587 use tilde_expand and strerror for opening save-tracepoints file.
4588
5bbd998e
MS
4589 * thread-db.c (thread_db_new_objfile): Indendation fix.
4590
94cd915f
MS
4591 * infptrace.c (GDB_MAX_ALLOCA): New define.
4592 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 4593 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
4594 can be overridden with whatever value is appropriate to the host).
4595 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
4596 alloca to allocate potentially large buffer.
4597 * rs6000-nat.c (child_xfer_memory): Ditto.
4598 * symm-nat.c (child_xfer_memory): Ditto.
4599 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
4600
494e8a93
JSC
46012002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
4602
4603 From Nick Clifton <nickc@redhat.com>
4604 * d10v-tdep.c: Set STACK_START to 0x200bffe.
4605
d0e1d48e
MS
46062002-01-07 Michael Snyder <msnyder@redhat.com>
4607
abf22e64 4608 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
4609 Don't use exec_bfd if it's NULL.
4610
290b2c7a
MK
46112002-01-06 Mark Kettenis <kettenis@gnu.org>
4612
abf22e64 4613 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 4614
aef21287
AC
46152002-01-06 Andrew Cagney <ac131313@redhat.com>
4616
4617 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
4618 * gnu-nat.c: Ditto.
4619
30efa627
AC
46202002-01-06 Andrew Cagney <ac131313@redhat.com>
4621
4622 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
4623 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
4624 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
4625 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
4626 z8k-coff have not been multi-arched. Update z8k-coff build
4627 status.
4628
9b4ff276
AC
46292002-01-06 Andrew Cagney <ac131313@redhat.com>
4630
4631 * MAINTAINERS: Mark a29k target as obsolete.
4632 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
4633 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
4634 comments.
4635 * NEWS: Note that a29k targets are obsolete.
4636 * a29k-tdep.c: Mark as obsolete.
4637 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
4638 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
4639 a29k-*-vxworks* targets as obsolete.
4640 * remote-adapt.c: Obsolete.
4641 * remote-eb.c: Obsolete.
4642 * remote-mm.c: Obsolete.
4643 * remote-udi.c: Obsolete.
4644 * config/a29k/a29k-udi.mt: Obsolete.
4645 * config/a29k/a29k.mt: Obsolete.
4646 * config/a29k/tm-a29k.h: Obsolete.
4647 * config/a29k/tm-vx29k.h: Obsolete.
4648 * config/a29k/vx29k.mt: Obsolete.
4649
a9011d31
AC
46502002-01-05 Andrew Cagney <ac131313@redhat.com>
4651
4652 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
4653 with BFD_ENDIAN_BIG.
4654
9299404e
AC
46552002-01-05 Andrew Cagney <ac131313@redhat.com>
4656
4657 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
4658 * configure, config.in: Re-generate.
4659 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
4660 * defs.h: Do not include <endian.h>.
4661
7e89e357
JT
46622002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
4663
4664 * acconfig.h (HAVE_PT_GETXMMREGS): New.
4665 * config.in: Regenerate.
4666 * configure.in: Update copyright years.
4667 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
4668 * configure: Regenerate.
4669 * i386bsd-nat.c: Update copyright years.
4670 (fill_gregset): Use regcache_collect.
4671 (fetch_inferior_registers): Only fetch integer registers
4672 if requested to do so. Add support for XMM registers
4673 using PT_GETXMMREGS.
4674 (store_inferior_registers): Only store integer registers
4675 if requested to do so. Add support for XMM registers
4676 using PT_SETXMMREGS.
4677 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
4678 (store_inferior_registers): Remove.
4679 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
4680 (fetch_elfcore_registers): New function.
4681 (i386nbsd_elfcore_fns): New.
4682 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
4683 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
4684 i386bsd-nat.o.
4685 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
4686 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
4687 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
4688 * config/i386/tm-nbsd.h: Update copyright years.
4689 (HAVE_SSE_REGS): Define.
4690 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
4691 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
4692 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
4693 (SIGCONTEXT_PC_OFFSET): Remove.
4694 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
4695
a752853e
AC
46962002-01-05 Andrew Cagney <ac131313@redhat.com>
4697
4698 * configure.tgt: Remove powerpc-*-macos* target.
4699 * config/m68k/xm-mpw.h: Delete file.
4700 * config/xm-mpw.h: Delete file.
4701 * ser-mac.c: Delete file.
4702 * mpw-make.sed: Delete file.
4703 * mpw-config.in: Delete file.
4704 * mac-xdep.c: Delete file.
4705 * mac-gdb.r: Delete file.
4706 * mac-defs.h: Delete file.
4707 * mac-nat.c: Delete file.
4708 * config/powerpc/macos.mh: Delete file.
4709 * config/powerpc/macos.mt: Delete file.
4710 * config/powerpc/nm-macos.h: Delete file.
4711 * config/powerpc/tm-macos.h: Delete file.
4712 * source.c (openp, open_source_file): Remove obsolete code.
4713 * top.c (gdb_readline): Ditto.
4714 * utils.c (query): Ditto.
4715 * event-top.c (display_gdb_prompt): Ditto.
4716 * Makefile.in (ser-mac.o): Delete obsolete target.
4717 * NEWS: Update.
4718
d7449b42
AC
47192002-01-04 Andrew Cagney <ac131313@redhat.com>
4720
4721 * defs.h (BIG_ENDIAN): Delete macro definition.
4722 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
4723 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
4724 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
4725 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
4726 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
4727 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
4728 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
4729 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
4730 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
4731 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
4732 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
4733 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
4734 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
4735 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
4736 * gdbarch.c: Re-generate.
4737
356374e8
DJ
47382002-01-04 Daniel Jacobowitz <drow@mvista.com>
4739
4740 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
4741 for core files.
4742
a2b8f8f8
JT
47432002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
4744
4745 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
4746
12466af9
AC
47472002-01-04 Andrew Cagney <ac131313@redhat.com>
4748
4749 * value.h (value_ptr): Delete typedef.
4750
3549ab40
JT
47512002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
4752
4753 * i386nbsd-nat.c: Update copyright years.
4754 Include i386-tdep.h.
4755
fedbd091
EZ
47562002-01-04 Elena Zannoni <ezannoni@redhat.com>
4757
4758 * stabsread.c: Update copyright years.
4759
4760 From Debashis Mahata <debashis.mahata@wipro.com>:
4761 (read_struct_fields): Deal with Sun C compiler erroneous stab
4762 output for structs and unions.
fec8b34f 4763 Fix PR gdb/269.
fedbd091 4764
eb43544b
DJ
47652002-01-04 Daniel Jacobowitz <drow@mvista.com>
4766
4767 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
4768 prototype.
4769
1514d34e
DJ
47702002-01-04 Daniel Jacobowitz <drow@mvista.com>
4771
4772 * cp-abi.c: Fix whitespace.
4773 (baseclass_offset): New wrapper function.
4774 * cp-abi.h (baseclass_offset): Add prototype.
4775 (struct cp_abi_ops): Add baseclass_offset pointer.
4776
4777 * valops.c (vb_match): Move to...
4778 * gnu-v2-abi.c (vb_match): here.
4779 * valops.c (baseclass_offset): Move to...
4780 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
4781
4782 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
4783
4784 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
4785 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
4786 * hpacc-abi.c (init_hpacc_ops): Likewise.
4787
7f8c9282
DJ
47882002-01-04 Daniel Jacobowitz <drow@mvista.com>
4789
4790 * valops.c (find_overload_match): Accept obj as a
4791 reference parameter. Update it before returning.
4792 * value.h (find_overload_match): Update prototype.
4793 * eval.c (evaluate_subexp_standard): Pass object to
4794 find_overload_match by reference.
4795
f23631e4
AC
47962002-01-03 Andrew Cagney <ac131313@redhat.com>
4797
4798 * valarith.c: Replace value_ptr with struct value pointer. Remove
4799 register attribute from value declarations.
4800 * valops.c: Ditto.
4801 * value.h: Ditto.
4802 * scm-lang.c (scm_lookup_name): Ditto.
4803
79e10fab 48042002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 4805
79e10fab
AC
4806 Abstract the functionality of iterating over mapped memory
4807 regions into a general purpose iterator function.
abf22e64 4808 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
4809 iterator for memory sections.
4810 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
4811 (solib_mappings_callback): New function, callback for above.
4812 (info_proc_mappings): Reimpliment using iterate_over_mappings.
4813 (info_mappings_callback): New function, callback for above.
4814
4815 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
4816
c5ad026a
MK
48172002-01-01 Mark Kettenis <kettenis@gnu.org>
4818
d2a7c97a
MK
4819 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
4820 * i386-tdep.c: Include "elf-bfd.h".
4821 (process_note_abi_tag_sections): New function.
4822 (i386_gdbarch_init): Add code to recognize various OS/ABI
4823 combinations.
4824
c5ad026a
MK
4825 * maint.c (_initialize_maint_cmds): Add missing \ in
4826 string-literal.
4827
a1a5b71e 4828For older changes see ChangeLog-2001
c906108c
SS
4829\f
4830Local Variables:
4831mode: change-log
4832left-margin: 8
4833fill-column: 74
4834version-control: never
4835End:
This page took 0.465686 seconds and 4 git commands to generate.