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