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