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