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