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