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