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